You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

110 lines
4.3 MiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-libs"],{"009a":function(e,t,n){var r=n("b3ad")("unscopables"),i=Array.prototype;void 0==i[r]&&n("1690")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"00b4":function(e,t,n){"use strict";n("ac1f");var r=n("23e7"),i=n("c65b"),o=n("1626"),a=n("825a"),s=n("577e"),c=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),l=/./.test;r({target:"RegExp",proto:!0,forced:!c},{test:function(e){var t=a(this),n=s(e),r=t.exec;if(!o(r))return i(l,t,n);var c=i(r,t,n);return null!==c&&(a(c),!0)}})},"00ce":function(e,t,n){"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(D){c=null}var l=function(){throw new a},u=c?function(){try{return l}catch(e){try{return c(arguments,"callee").get}catch(t){return l}}}():l,d=n("5156")(),f=n("0a36")(),p=Object.getPrototypeOf||(f?function(e){return e.__proto__}:null),h={},m="undefined"!==typeof Uint8Array&&p?p(Uint8Array):r,g={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":d&&p?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d&&p?p(p([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&d&&p?p((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&d&&p?p((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d&&p?p(""[Symbol.iterator]()):r,"%Symbol%":d?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(p)try{null.error}catch(D){var v=p(p(D));g["%Error.prototype%"]=v}var b=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&p&&(n=p(i.prototype))}return g[t]=n,n},_={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n("0f7c"),w=n("9671"),x=y.call(Function.call,Array.prototype.concat),k=y.call(Function.apply,Array.prototype.splice),C=y.call(Function.call,String.prototype.replace),A=y.call(Function.call,String.prototype.slice),S=y.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,O=function(e){var t=A(e,0,1),n=A(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return C(e,E,(function(e,t,n,i){r[r.length]=n?C(i,T,"$1"):t||e})),r},R=function(e,t){var n,r=e;if(w(_,r)&&(n=_[r],r="%"+n[0]+"%"),w(g,r)){var o=g[r];if(o===h&&(o=b(r)),"undefined"===typeof o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=O(e),r=n.length>0?n[0]:"",o=R("%"+r+"%",t),s=o.name,l=o.value,u=!1,d=o.alias;d&&(r=d[0],k(n,x([0,1],d)));for(var f=1,p=!0;f<n.length;f+=1){var h=n[f],m=A(h,0,1),v=A(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===v||"'"===v||"`"===v)&&m!==v)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&p||(u=!0),r+="."+h,s="%"+r+"%",w(g,s))l=g[s];else if(null!=l){if(!(h in l)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&f+1>=n.length){var b=c(l,h);p=!!b,l=p&&"get"in b&&!("originalValue"in b.get)?b.get:l[h]}else p=w(l,h),l=l[h];p&&!u&&(g[s]=l)}}return l}},"00d8":function(e,t){(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var i=e[r]<<16|e[r+1]<<8|e[r+2],o=0;o<4;o++)8*r+6*o<=8*e.length?n.push(t.charAt(i>>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,i=0;r<e.length;i=++r%4)0!=i&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(r))>>>6-2*i);return n}};e.exports=n})()},"00ee":function(e,t,n){"use strict";var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"01b4":function(e,t,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e){var t=this.head=e.next;return null===t&&(this.tail=null),e.item}}},e.exports=r},"030f":function(e,t,n){(function(e){(function(){"use strict";var t=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},n=function(e){return function(n){return t(n)===e}},r=function(e){return function(t){return typeof t===e}},i=function(e){return function(t){return e===t}},o=n("string"),a=n("object"),s=n("array"),c=i(null),l=r("boolean"),u=i(void 0),d=function(e){return null===e||void 0===e},f=function(e){return!d(e)},p=r("function"),h=r("number"),m=function(e,t){if(s(e)){for(var n=0,r=e.length;n<r;++n)if(!t(e[n]))return!1;return!0}return!1},g=function(){},v=function(e){return function(){return e()}},b=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},_=function(e,t){return function(n){return e(t(n))}},y=function(e){return function(){return e}},w=function(e){return e},x=function(e,t){return e===t};function k(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var C=function(e){return function(t){return!e(t)}},A=function(e){return function(){throw new Error(e)}},S=y(!1),E=y(!0),T=tinymce.util.Tools.resolve("tinymce.ThemeManager"),O=function(){return O=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},O.apply(this,arguments)};function R(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function D(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var L=function(){return M},M=function(){var e=function(e){return e()},t=w,n={fold:function(e,t){return e()},isSome:S,isNone:E,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:y(null),getOrUndefined:y(void 0),or:t,orThunk:e,map:L,each:g,bind:L,exists:S,forall:E,filter:function(){return L()},toArray:function(){return[]},toString:y("none()")};return n}(),F=function(e){var t=y(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:E,isNone:S,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return F(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:M},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},N=function(e){return null===e||void 0===e?M:F(e)},B={some:F,none:L,from:N},I=Array.prototype.slice,P=Array.prototype.indexOf,$=Array.prototype.push,j=function(e,t){return P.call(e,t)},z=function(e,t){var n=j(e,t);return-1===n?B.none():B.some(n)},q=function(e,t){return j(e,t)>-1},H=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},U=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},W=function(e,t){for(var n=[],r=0;r<e.length;r+=t){var i=I.call(e,r,r+t);n.push(i)}return n},V=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},G=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},K=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},Y=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=t(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},X=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},Q=function(e,t,n){return K(e,(function(e,r){n=t(n,e,r)})),n},J=function(e,t,n){return G(e,(function(e,r){n=t(n,e,r)})),n},Z=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return B.some(o);if(n(o,r))break}return B.none()},ee=function(e,t){return Z(e,t,S)},te=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return B.some(n)}return B.none()},ne=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);$.apply(t,e[n])}return t},re=function(e,t){return ne(V(e,t))},ie=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},oe=function(e){var t=I.call(e,0);return t.reverse(),t},ae=function(e,t){return X(e,(function(e){return!q(t,e)}))},se=function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n},ce=function(e){return[e]},le=function(e,t){var n=I.call(e,0);return n.sort(t),n},ue=function(e,t){return t>=0&&t<e.length?B.some(e[t]):B.none()},de=function(e){return ue(e,0)},fe=function(e){return ue(e,e.length-1)},pe=p(Array.from)?Array.from:function(e){return I.call(e)},he=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return B.none()},me=Object.keys,ge=Object.hasOwnProperty,ve=function(e,t){for(var n=me(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},be=function(e,t){return _e(e,(function(e,n){return{k:n,v:t(e,n)}}))},_e=function(e,t){var n={};return ve(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},ye=function(e){return function(t,n){e[n]=t}},we=function(e,t,n,r){var i={};return ve(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},xe=function(e,t){var n={};return we(e,t,ye(n),g),n},ke=function(e,t){var n=[];return ve(e,(function(e,r){n.push(t(e,r))})),n},Ce=function(e,t){for(var n=me(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];if(t(a,o,e))return B.some(a)}return B.none()},Ae=function(e){return ke(e,w)},Se=function(e,t){return Ee(e,t)?B.from(e[t]):B.none()},Ee=function(e,t){return ge.call(e,t)},Te=function(e,t){return Ee(e,t)&&void 0!==e[t]&&null!==e[t]},Oe=function(e,t,n){return void 0===n&&(n=x),e.exists((function(e){return n(e,t)}))},Re=function(e,t,n){return void 0===n&&(n=x),Me(e,t,n).getOr(e.isNone()&&t.isNone())},De=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},Le=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.isSome())return B.none();t.push(r.getOrDie())}return B.some(t)},Me=function(e,t,n){return e.isSome()&&t.isSome()?B.some(n(e.getOrDie(),t.getOrDie())):B.none()},Fe=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?B.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):B.none()},Ne=function(e,t){return void 0!==e&&null!==e?B.some(t(e)):B.none()},Be=function(e,t){return e?B.some(t):B.none()},Ie=function(e,t){return e+t},Pe=function(e,t){return e.substring(t)},$e=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},je=function(e,t){return He(e,t)?Pe(e,t.length):e},ze=function(e,t){return Ue(e,t)?e:Ie(e,t)},qe=function(e,t){return-1!==e.indexOf(t)},He=function(e,t){return $e(e,t,0)},Ue=function(e,t){return $e(e,t,e.length-t.length)},We=function(e){return function(t){return t.replace(e,"")}},Ve=We(/^\s+|\s+$/g),Ge=function(e){return e.length>0},Ke=function(e){return!Ge(e)},Ye=function(e){return void 0!==e.style&&p(e.style.getPropertyValue)},Xe=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw new Error("HTML must have a single root node");return Ze(r.childNodes[0])},Qe=function(e,t){var n=t||document,r=n.createElement(e);return Ze(r)},Je=function(e,t){var n=t||document,r=n.createTextNode(e);return Ze(r)},Ze=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},et=function(e,t,n){return B.from(e.dom.elementFromPoint(t,n)).map(Ze)},tt={fromHtml:Xe,fromTag:Qe,fromText:Je,fromDom:Ze,fromPoint:et};"undefined"!==typeof window?window:Function("return this;")();var nt,rt=9,it=11,ot=1,at=3,st=function(e){var t=e.dom.nodeName;return t.toLowerCase()},ct=function(e){return e.dom.nodeType},lt=function(e){return function(t){return ct(t)===e}},ut=lt(ot),dt=lt(at),ft=lt(rt),pt=lt(it),ht=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},mt=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),c=i||!o&&a&&r("(min-device-width:768px)"),l=o||a&&!c,u=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!l&&!c&&!u;return{isiPad:y(i),isiPhone:y(o),isTablet:y(c),isPhone:y(l),isTouch:y(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:y(u),isDesktop:y(d)}},gt=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},vt=function(e,t){var n=gt(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return yt(r(1),r(2))},bt=function(e,t){var n=String(t).toLowerCase();return 0===e.length?_t():vt(e,n)},_t=function(){return yt(0,0)},yt=function(e,t){return{major:e,minor:t}},wt={nu:yt,detect:bt,unknown:_t},xt=function(e,t){return he(t.brands,(function(t){var n=t.brand.toLowerCase();return ee(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:wt.nu(parseInt(t.version,10),0)}}))}))},kt=function(e,t){var n=String(t).toLowerCase();return ee(e,(function(e){return e.search(n)}))},Ct=function(e,t){return kt(e,t).map((function(e){var n=wt.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},At=function(e,t){return kt(e,t).map((function(e){var n=wt.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},St=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Et=function(e){return function(t){return qe(t,e)}},Tt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return qe(e,"edge/")&&qe(e,"chrome")&&qe(e,"safari")&&qe(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,St],search:function(e){return qe(e,"chrome")&&!qe(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return qe(e,"msie")||qe(e,"trident")}},{name:"Opera",versionRegexes:[St,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Et("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Et("firefox")},{name:"Safari",versionRegexes:[St,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(qe(e,"safari")||qe(e,"mobile/"))&&qe(e,"applewebkit")}}],Ot=[{name:"Windows",search:Et("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return qe(e,"iphone")||qe(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Et("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Et("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Et("linux"),versionRegexes:[]},{name:"Solaris",search:Et("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Et("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Et("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Rt={browsers:y(Tt),oses:y(Ot)},Dt="Edge",Lt="Chrome",Mt="IE",Ft="Opera",Nt="Firefox",Bt="Safari",It=function(){return Pt({current:void 0,version:wt.unknown()})},Pt=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Dt),isChrome:r(Lt),isIE:r(Mt),isOpera:r(Ft),isFirefox:r(Nt),isSafari:r(Bt)}},$t={unknown:It,nu:Pt,edge:y(Dt),chrome:y(Lt),ie:y(Mt),opera:y(Ft),firefox:y(Nt),safari:y(Bt)},jt="Windows",zt="iOS",qt="Android",Ht="Linux",Ut="OSX",Wt="Solaris",Vt="FreeBSD",Gt="ChromeOS",Kt=function(){return Yt({current:void 0,version:wt.unknown()})},Yt=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(jt),isiOS:r(zt),isAndroid:r(qt),isOSX:r(Ut),isLinux:r(Ht),isSolaris:r(Wt),isFreeBSD:r(Vt),isChromeOS:r(Gt)}},Xt={unknown:Kt,nu:Yt,windows:y(jt),ios:y(zt),android:y(qt),linux:y(Ht),osx:y(Ut),solaris:y(Wt),freebsd:y(Vt),chromeos:y(Gt)},Qt=function(e,t,n){var r=Rt.browsers(),i=Rt.oses(),o=t.bind((function(e){return xt(r,e)})).orThunk((function(){return Ct(r,e)})).fold($t.unknown,$t.nu),a=At(i,e).fold(Xt.unknown,Xt.nu),s=mt(a,o,e,n);return{browser:o,os:a,deviceType:s}},Jt={detect:Qt},Zt=function(e){return window.matchMedia(e).matches},en=ht((function(){return Jt.detect(navigator.userAgent,B.from(navigator.userAgentData),Zt)})),tn=function(){return en()},nn=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},rn=function(e,t){return nn(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},on=function(e,t){var n=e.dom;if(n.nodeType!==ot)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},an=function(e){return e.nodeType!==ot&&e.nodeType!==rt&&e.nodeType!==it||0===e.childElementCount},sn=function(e,t){var n=void 0===t?document:t.dom;return an(n)?[]:V(n.querySelectorAll(e),tt.fromDom)},cn=function(e,t){var n=void 0===t?document:t.dom;return an(n)?B.none():B.from(n.querySelector(e)).map(tt.fromDom)},ln=function(e,t){return e.dom===t.dom},un=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},dn=function(e,t){return rn(e.dom,t.dom)},fn=function(e,t){return tn().browser.isIE()?dn(e,t):un(e,t)},pn=function(e){return tt.fromDom(e.dom.ownerDocument)},hn=function(e){return ft(e)?e:pn(e)},mn=function(e){return tt.fromDom(hn(e).dom.documentElement)},gn=function(e){return tt.fromDom(hn(e).dom.defaultView)},vn=function(e){return B.from(e.dom.parentNode).map(tt.fromDom)},bn=function(e){return vn(e)},_n=function(e){return B.from(e.dom.offsetParent).map(tt.fromDom)},yn=function(e){return B.from(e.dom.nextSibling).map(tt.fromDom)},wn=function(e){return V(e.dom.childNodes,tt.fromDom)},xn=function(e,t){var n=e.dom.childNodes;return B.from(n[t]).map(tt.fromDom)},kn=function(e){return xn(e,0)},Cn=function(e,t){return{element:e,offset:t}},An=function(e,t){var n=wn(e);return n.length>0&&t<n.length?Cn(n[t],0):Cn(e,t)},Sn=function(e){return pt(e)&&f(e.dom.host)},En=p(Element.prototype.attachShadow)&&p(Node.prototype.getRootNode),Tn=y(En),On=En?function(e){return tt.fromDom(e.dom.getRootNode())}:hn,Rn=function(e){return Sn(e)?e:tt.fromDom(hn(e).dom.body)},Dn=function(e){return Ln(e).isSome()},Ln=function(e){var t=On(e);return Sn(t)?B.some(t):B.none()},Mn=function(e){return tt.fromDom(e.dom.host)},Fn=function(e){if(Tn()&&f(e.target)){var t=tt.fromDom(e.target);if(ut(t)&&Nn(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return de(n)}}return B.from(e.target)},Nn=function(e){return f(e.dom.shadowRoot)},Bn=function(e){var t=dt(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return Ln(tt.fromDom(t)).fold((function(){return n.body.contains(t)}),_(Bn,Mn))},In=function(){return Pn(tt.fromDom(document))},Pn=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return tt.fromDom(t)},$n=function(e,t,n){if(!(o(n)||l(n)||h(n)))throw new Error("Attribute value was not simple");e.setAttribute(t,n+"")},jn=function(e,t,n){$n(e.dom,t,n)},zn=function(e,t){var n=e.dom;ve(t,(function(e,t){$n(n,t,e)}))},qn=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},Hn=function(e,t){return B.from(qn(e,t))},Un=function(e,t){var n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},Wn=function(e,t){e.dom.removeAttribute(t)},Vn=function(e,t,n){if(!o(n))throw new Error("CSS value must be a string: "+n);Ye(e)&&e.style.setProperty(t,n)},Gn=function(e,t){Ye(e)&&e.style.removeProperty(t)},Kn=function(e,t,n){var r=e.dom;Vn(r,t,n)},Yn=function(e,t){var n=e.dom;ve(t,(function(e,t){Vn(n,t,e)}))},Xn=function(e,t){var n=e.dom;ve(t,(function(e,t){e.fold((function(){Gn(n,t)}),(function(e){Vn(n,t,e)}))}))},Qn=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||Bn(e)?i:Jn(n,t)},Jn=function(e,t){return Ye(e)?e.style.getPropertyValue(t):""},Zn=function(e,t){var n=e.dom,r=Jn(n,t);return B.from(r).filter((function(e){return e.length>0}))},er=function(e){var t={},n=e.dom;if(Ye(n))for(var r=0;r<n.style.length;r++){var i=n.style.item(r);t[i]=n.style[i]}return t},tr=function(e,t,n){var r=tt.fromTag(e);Kn(r,t,n);var i=Zn(r,t);return i.isSome()},nr=function(e,t){var n=e.dom;Gn(n,t),Oe(Hn(e,"style").map(Ve),"")&&Wn(e,"style")},rr=function(e){return e.dom.offsetWidth},ir=function(e,t){var n=function(t,n){if(!h(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;Ye(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=Qn(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return J(t,(function(t,n){var r=Qn(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}},or=ir("height",(function(e){var t=e.dom;return Bn(e)?t.getBoundingClientRect().height:t.offsetHeight})),ar=function(e){return or.get(e)},sr=function(e){return or.getOuter(e)},cr=function(e,t){var n=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],r=or.max(e,t,n);Kn(e,"max-height",r+"px")},lr=function(e,t){var n=function(n,r){return lr(e+n,t+r)};return{left:e,top:t,translate:n}},ur=lr,dr=function(e){var t=e.getBoundingClientRect();return ur(t.left,t.top)},fr=function(e,t){return void 0!==e?e:void 0!==t?t:0},pr=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom)return ur(n.offsetLeft,n.offsetTop);var o=fr(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=fr(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=fr(i.clientTop,n.clientTop),c=fr(i.clientLeft,n.clientLeft);return hr(e).translate(a-c,o-s)},hr=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?ur(r.offsetLeft,r.offsetTop):Bn(e)?dr(t):ur(0,0)},mr=ir("width",(function(e){return e.dom.offsetWidth})),gr=function(e,t){return mr.set(e,t)},vr=function(e){return mr.get(e)},br=function(e){return mr.getOuter(e)},_r=function(e,t){var n=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],r=mr.max(e,t,n);Kn(e,"max-width",r+"px")},yr=function(e,t,n,r,i,o,a){return{target:e,x:t,y:n,stop:r,prevent:i,kill:o,raw:a}},wr=function(e){var t=tt.fromDom(Fn(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},i=b(r,n);return yr(t,e.clientX,e.clientY,n,r,i,e)},xr=function(e,t){return function(n){e(n)&&t(wr(n))}},kr=function(e,t,n,r,i){var o=xr(n,r);return e.dom.addEventListener(t,o,i),{unbind:k(Sr,e,t,o,i)}},Cr=function(e,t,n,r){return kr(e,t,n,r,!1)},Ar=function(e,t,n,r){return kr(e,t,n,r,!0)},Sr=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Er=function(e,t){var n=vn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},Tr=function(e,t){var n=yn(e);n.fold((function(){var n=vn(e);n.each((function(e){Rr(e,t)}))}),(function(e){Er(e,t)}))},Or=function(e,t){var n=kn(e);n.fold((function(){Rr(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},Rr=function(e,t){e.dom.appendChild(t.dom)},Dr=function(e,t,n){xn(e,n).fold((function(){Rr(e,t)}),(function(e){Er(e,t)}))},Lr=function(e,t){G(t,(function(t){Er(e,t)}))},Mr=function(e,t){G(t,(function(t){Rr(e,t)}))},Fr=function(e){e.dom.textContent="",G(wn(e),(function(e){Nr(e)}))},Nr=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Br=function(e){var t=wn(e);t.length>0&&Lr(e,t),Nr(e)},Ir=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return ur(n,r)},Pr=function(e,t,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollTo(e,t)},$r=function(e){var t=void 0===e?window:e;return tn().browser.isFirefox()?B.none():B.from(t["visualViewport"])},jr=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},zr=function(e){var t=void 0===e?window:e,n=t.document,r=Ir(tt.fromDom(n));return $r(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,i=e.clientHeight;return jr(r.left,r.top,n,i)}),(function(e){return jr(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},qr=function(e,t){var n=e.view(t);return n.fold(y([]),(function(t){var n=e.owner(t),r=qr(e,n);return[t].concat(r)}))},Hr=function(e,t){var n=t.owner(e),r=qr(t,n);return B.some(r)},Ur=function(e){var t,n=e.dom===document?B.none():B.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement);return n.map(tt.fromDom)},Wr=function(e){return pn(e)},Vr=Object.freeze({__proto__:null,view:Ur,owner:Wr}),Gr=function(e){var t=tt.fromDom(document),n=Ir(t),r=Hr(e,Vr);return r.fold(k(pr,e),(function(t){var r=hr(e),i=Q(t,(function(e,t){var n=hr(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return ur(i.left+r.left+n.left,i.top+r.top+n.top)}))},Kr=function(e,t,n){return{point:e,width:t,height:n}},Yr=function(e,t,n,r){return{x:e,y:t,width:n,height:r}},Xr=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Qr=function(e){var t=pr(e),n=br(e),r=sr(e);return Xr(t.left,t.top,n,r)},Jr=function(e){var t=Gr(e),n=br(e),r=sr(e);return Xr(t.left,t.top,n,r)},Zr=function(){return zr(window)},ei=function(e){var t=function(t){return ei(e)},n=function(t){return ei(e)},r=function(t){return ei(t(e))},i=function(t){return ei(e)},o=function(t){t(e)},a=function(t){return t(e)},s=function(t,n){return n(e)},c=function(t){return t(e)},l=function(t){return t(e)},u=function(){return B.some(e)};return{isValue:E,isError:S,getOr:y(e),getOrThunk:y(e),getOrDie:y(e),or:t,orThunk:n,fold:s,map:r,mapError:i,each:o,bind:a,exists:c,forall:l,toOptional:u}},ti=function(e){var t=function(e){return e()},n=function(){return A(String(e))()},r=w,i=function(e){return e()},o=function(t){return ti(e)},a=function(t){return ti(t(e))},s=function(t){return ti(e)},c=function(t,n){return t(e)};return{isValue:S,isError:E,getOr:w,getOrThunk:t,getOrDie:n,or:r,orThunk:i,fold:c,map:o,mapError:a,each:g,bind:s,exists:S,forall:E,toOptional:B.none}},ni=function(e,t){return e.fold((function(){return ti(t)}),ei)},ri={value:ei,error:ti,fromOption:ni};(function(e){e[e["Error"]=0]="Error",e[e["Value"]=1]="Value"})(nt||(nt={}));var ii=function(e,t,n){return e.stype===nt.Error?t(e.serror):n(e.svalue)},oi=function(e){var t=[],n=[];return G(e,(function(e){ii(e,(function(e){return n.push(e)}),(function(e){return t.push(e)}))})),{values:t,errors:n}},ai=function(e,t){return e.stype===nt.Error?{stype:nt.Error,serror:t(e.serror)}:e},si=function(e,t){return e.stype===nt.Value?{stype:nt.Value,svalue:t(e.svalue)}:e},ci=function(e,t){return e.stype===nt.Value?t(e.svalue):e},li=function(e,t){return e.stype===nt.Error?t(e.serror):e},ui=function(e){return{stype:nt.Value,svalue:e}},di=function(e){return{stype:nt.Error,serror:e}},fi=function(e){return ii(e,ri.error,ri.value)},pi=function(e){return e.fold(di,ui)},hi={fromResult:pi,toResult:fi,svalue:ui,partition:oi,serror:di,bind:ci,bindError:li,map:si,mapError:ai,fold:ii},mi=function(e,t,n,r){return{tag:"field",key:e,newKey:t,presence:n,prop:r}},gi=function(e,t){return{tag:"custom",newKey:e,instantiator:t}},vi=function(e,t,n){switch(e.tag){case"field":return t(e.key,e.newKey,e.presence,e.prop);case"custom":return n(e.newKey,e.instantiator)}},bi=function(e,t){return t},_i=function(e,t){var n=a(e)&&a(t);return n?wi(e,t):t},yi=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)Ee(o,a)&&(r[a]=e(r[a],o[a]))}return r}},wi=yi(_i),xi=yi(bi),ki=function(){return{tag:"required",process:{}}},Ci=function(e){return{tag:"defaultedThunk",process:e}},Ai=function(e){return Ci(y(e))},Si=function(){return{tag:"option",process:{}}},Ei=function(e){return{tag:"mergeWithThunk",process:e}},Ti=function(e){return Ei(y(e))},Oi=function(e,t){return e.length>0?hi.svalue(wi(t,xi.apply(void 0,e))):hi.svalue(t)},Ri=function(e){return b(hi.serror,ne)(e)},Di=function(e,t){var n=hi.partition(e);return n.errors.length>0?Ri(n.errors):Oi(n.values,t)},Li=function(e){var t=hi.partition(e);return t.errors.length>0?Ri(t.errors):hi.svalue(t.values)},Mi={consolidateObj:Di,consolidateArr:Li},Fi=function(e){return a(e)&&me(e).length>100?" removed due to size":JSON.stringify(e,null,2)},Ni=function(e){var t=e.length>10?e.slice(0,10).concat([{path:[],getErrorInfo:y("... (only showing first ten failures)")}]):e;return V(t,(function(e){return"Failed path: ("+e.path.join(" > ")+")\n"+e.getErrorInfo()}))},Bi=function(e,t){return hi.serror([{path:e,getErrorInfo:t}])},Ii=function(e,t,n){return Bi(e,(function(){return'Could not find valid *required* value for "'+t+'" in '+Fi(n)}))},Pi=function(e,t){return Bi(e,(function(){return'Choice schema did not contain choice key: "'+t+'"'}))},$i=function(e,t,n){return Bi(e,(function(){return'The chosen schema: "'+n+'" did not exist in branches: '+Fi(t)}))},ji=function(e,t){return Bi(e,(function(){return"There are unsupported fields: ["+t.join(", ")+"] specified"}))},zi=function(e,t){return Bi(e,y(t))},qi=function(e){var t=function(t,n){return hi.bindError(e(n),(function(e){return zi(t,e)}))},n=y("val");return{extract:t,toString:n}},Hi=qi(hi.svalue),Ui=function(e,t,n,r){return Se(t,n).fold((function(){return Ii(e,n,t)}),r)},Wi=function(e,t,n,r){var i=Se(e,t).getOrThunk((function(){return n(e)}));return r(i)},Vi=function(e,t,n){return n(Se(e,t))},Gi=function(e,t,n,r){var i=Se(e,t).map((function(t){return!0===t?n(e):t}));return r(i)},Ki=function(e,t,n,r,i){var o=function(e){return i.extract(t.concat([r]),e)},a=function(e){return e.fold((function(){return hi.svalue(B.none())}),(function(e){var n=i.extract(t.concat([r]),e);return hi.map(n,B.some)}))};switch(e.tag){case"required":return Ui(t,n,r,o);case"defaultedThunk":return Wi(n,r,e.process,o);case"option":return Vi(n,r,a);case"defaultedOptionThunk":return Gi(n,r,e.process,a);case"mergeWithThunk":return Wi(n,r,y({}),(function(t){var r=wi(e.process(n),t);return o(r)}))}},Yi=function(e,t,n){for(var r={},i=[],o=0,a=n;o<a.length;o++){var s=a[o];vi(s,(function(n,o,a,s){var c=Ki(a,e,t,n,s);hi.fold(c,(function(e){i.push.apply(i,e)}),(function(e){r[o]=e}))}),(function(e,n){r[e]=n(t)}))}return i.length>0?hi.serror(i):hi.svalue(r)},Xi=function(e){var t=function(t,n){return e().extract(t,n)},n=function(){return e().toString()};return{extract:t,toString:n}},Qi=function(e){return me(xe(e,f))},Ji=function(e){var t=Zi(e),n=Q(e,(function(e,t){return vi(t,(function(t){var n;return wi(e,(n={},n[t]=!0,n))}),y(e))}),{}),r=function(e,r){var i=l(r)?[]:Qi(r),o=X(i,(function(e){return!Te(n,e)}));return 0===o.length?t.extract(e,r):ji(e,o)};return{extract:r,toString:t.toString}},Zi=function(e){var t=function(t,n){return Yi(t,n,e)},n=function(){var t=V(e,(function(e){return vi(e,(function(e,t,n,r){return e+" -> "+r.toString()}),(function(e,t){return"state("+e+")"}))}));return"obj{\n"+t.join("\n")+"}"};return{extract:t,toString:n}},eo=function(e){var t=function(t,n){var r=V(n,(function(n,r){return e.extract(t.concat(["["+r+"]"]),n)}));return Mi.consolidateArr(r)},n=function(){return"array("+e.toString()+")"};return{extract:t,toString:n}},to=function(e){var t=function(t,n){for(var r=[],i=0,o=e;i<o.length;i++){var a=o[i],s=a.extract(t,n);if(s.stype===nt.Value)return s;r.push(s)}return Mi.consolidateArr(r)},n=function(){return"oneOf("+V(e,(function(e){return e.toString()})).join(", ")+")"};return{extract:t,toString:n}},no=function(e,t){var n=function(t,n){return eo(qi(e)).extract(t,n)},r=function(e,r){var i=me(r),o=n(e,i);return hi.bind(o,(function(n){var i=V(n,(function(e){return mi(e,e,ki(),t)}));return Zi(i).extract(e,r)}))},i=function(){return"setOf("+t.toString()+")"};return{extract:r,toString:i}},ro=function(e,t){var n=ht(t),r=function(e,t){return n().extract(e,t)},i=function(){return n().toString()};return{extract:r,toString:i}},io=b(eo,Zi),oo=y(Hi),ao=function(e,t){return qi((function(n){var r=typeof n;return e(n)?hi.svalue(n):hi.serror("Expected type: "+t+" but got: "+r)}))},so=ao(h,"number"),co=ao(o,"string"),lo=ao(l,"boolean"),uo=ao(p,"function"),fo=function(e){if(Object(e)!==e)return!0;switch({}.toString.call(e).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(e).every((function(t){return fo(e[t])}));default:return!1}},po=qi((function(e){return fo(e)?hi.svalue(e):hi.serror("Expected value to be acceptable for sending via postMessage")})),ho=function(e,t,n,r){var i=Se(n,r);return i.fold((function(){return $i(e,n,r)}),(function(n){return n.extract(e.concat(["branch: "+r]),t)}))},mo=function(e,t){var n=function(n,r){var i=Se(r,e);return i.fold((function(){return Pi(n,e)}),(function(e){return ho(n,r,t,e)}))},r=function(){return"chooseOn("+e+"). Possible values: "+me(t)};return{extract:n,toString:r}},go=function(){return eo(Hi)},vo=function(e){return qi((function(t){return e(t).fold(hi.serror,hi.svalue)}))},bo=function(e,t){return no((function(t){return hi.fromResult(e(t))}),t)},_o=function(e,t,n){var r=t.extract([e],n);return hi.mapError(r,(function(e){return{input:n,errors:e}}))},yo=function(e,t,n){return hi.toResult(_o(e,t,n))},wo=function(e){return e.fold((function(e){throw new Error(ko(e))}),w)},xo=function(e,t,n){return wo(yo(e,t,n))},ko=function(e){return"Errors: \n"+Ni(e.errors).join("\n")+"\n\nInput object: "+Fi(e.input)},Co=function(e,t){return mo(e,be(t,Zi))},Ao=function(e,t){return ro(e,t)},So=mi,Eo=gi,To=function(e){return vo((function(t){return q(e,t)?ri.value(t):ri.error('Unsupported value: "'+t+'", choose one of "'+e.join(", ")+'".')}))},Oo=function(e){return So(e,e,ki(),oo())},Ro=function(e,t){return So(e,e,ki(),t)},Do=function(e){return Ro(e,so)},Lo=function(e){return Ro(e,co)},Mo=function(e,t){return So(e,e,ki(),To(t))},Fo=function(e){return Ro(e,lo)},No=function(e){return Ro(e,uo)},Bo=function(e,t){return So(e,e,Si(),qi((function(n){return hi.serror("The field: "+e+" is forbidden. "+t)})))},Io=function(e,t){return So(e,e,ki(),Zi(t))},Po=function(e,t){return So(e,e,ki(),io(t))},$o=function(e,t){return So(e,e,ki(),eo(t))},jo=function(e){return So(e,e,Si(),oo())},zo=function(e,t){return So(e,e,Si(),t)},qo=function(e){return zo(e,so)},Ho=function(e){return zo(e,co)},Uo=function(e){return zo(e,uo)},Wo=function(e,t){return zo(e,eo(t))},Vo=function(e,t){return zo(e,Zi(t))},Go=function(e,t){return zo(e,Ji(t))},Ko=function(e,t){return So(e,e,Ai(t),oo())},Yo=function(e,t,n){return So(e,e,Ai(t),n)},Xo=function(e,t){return Yo(e,t,so)},Qo=function(e,t){return Yo(e,t,co)},Jo=function(e,t,n){return Yo(e,t,To(n))},Zo=function(e,t){return Yo(e,t,lo)},ea=function(e,t){return Yo(e,t,uo)},ta=function(e,t){return Yo(e,t,po)},na=function(e,t,n){return Yo(e,t,eo(n))},ra=function(e,t,n){return Yo(e,t,Zi(n))},ia=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},oa=function(e){if(!s(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return G(e,(function(r,i){var o=me(r);if(1!==o.length)throw new Error("one and only one name per case");var a=o[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(!s(c))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==c.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+c.length+" ("+c+"), got "+o);var s=function(e){var r=me(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var i=ie(t,(function(e){return q(r,e)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var o=t[i];return o.apply(null,n)},match:s,log:function(e){}}}})),n},aa={generate:oa};aa.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var sa,ca=function(e){var t=[],n=[];return G(e,(function(e){e.fold((function(e){t.push(e)}),(function(e){n.push(e)}))})),{errors:t,values:n}},la=function(e,t){var n={};return ve(e,(function(e,r){q(t,r)||(n[r]=e)})),n},ua=function(e,t){var n;return n={},n[e]=t,n},da=function(e){var t={};return G(e,(function(e){t[e.key]=e.value})),t},fa=function(e,t){return la(e,t)},pa=function(e,t){return ua(e,t)},ha=function(e){return da(e)},ma=function(e,t){return 0===e.length?ri.value(t):ri.value(wi(t,xi.apply(void 0,e)))},ga=function(e){return ri.error(ne(e))},va=function(e,t){var n=ca(e);return n.errors.length>0?ga(n.errors):ma(n.values,t)},ba=function(e){return p(e)?e:S},_a=function(e,t,n){var r=e.dom,i=ba(n);while(r.parentNode){r=r.parentNode;var o=tt.fromDom(r),a=t(o);if(a.isSome())return a;if(i(o))break}return B.none()},ya=function(e,t,n){var r=t(e),i=ba(n);return r.orThunk((function(){return i(e)?B.none():_a(e,t,i)}))},wa=function(e,t){return ln(e.element,t.event.target)},xa={can:E,abort:S,run:g},ka=function(e){if(!Te(e,"can")&&!Te(e,"abort")&&!Te(e,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(e,null,2)+" does not have can, abort, or run!");return O(O({},xa),e)},Ca=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return J(e,(function(e,r){return e&&t(r).apply(void 0,n)}),!0)}},Aa=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return J(e,(function(e,r){return e||t(r).apply(void 0,n)}),!1)}},Sa=function(e){return p(e)?{can:E,abort:S,run:e}:e},Ea=function(e){var t=Ca(e,(function(e){return e.can})),n=Aa(e,(function(e){return e.abort})),r=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];G(e,(function(e){e.run.apply(void 0,t)}))};return{can:t,abort:n,run:r}},Ta=y,Oa=Ta("touchstart"),Ra=Ta("touchmove"),Da=Ta("touchend"),La=Ta("touchcancel"),Ma=Ta("mousedown"),Fa=Ta("mousemove"),Na=Ta("mouseout"),Ba=Ta("mouseup"),Ia=Ta("mouseover"),Pa=Ta("focusin"),$a=Ta("focusout"),ja=Ta("keydown"),za=Ta("keyup"),qa=Ta("input"),Ha=Ta("change"),Ua=Ta("click"),Wa=Ta("transitioncancel"),Va=Ta("transitionend"),Ga=Ta("transitionstart"),Ka=Ta("selectstart"),Ya=function(e){return y("alloy."+e)},Xa={tap:Ya("tap")},Qa=Ya("focus"),Ja=Ya("blur.post"),Za=Ya("paste.post"),es=Ya("receive"),ts=Ya("execute"),ns=Ya("focus.item"),rs=Xa.tap,is=Ya("longpress"),os=Ya("sandbox.close"),as=Ya("typeahead.cancel"),ss=Ya("system.init"),cs=Ya("system.touchmove"),ls=Ya("system.touchend"),us=Ya("system.scroll"),ds=Ya("system.resize"),fs=Ya("system.attached"),ps=Ya("system.detached"),hs=Ya("system.dismissRequested"),ms=Ya("system.repositionRequested"),gs=Ya("focusmanager.shifted"),vs=Ya("slotcontainer.visibility"),bs=Ya("change.tab"),_s=Ya("dismiss.tab"),ys=Ya("highlight"),ws=Ya("dehighlight"),xs=function(e,t){Ss(e,e.element,t,{})},ks=function(e,t,n){Ss(e,e.element,t,n)},Cs=function(e){xs(e,ts())},As=function(e,t,n){Ss(e,t,n,{})},Ss=function(e,t,n,r){var i=O({target:t},r);e.getSystem().triggerEvent(n,t,i)},Es=function(e,t,n,r){e.getSystem().triggerEvent(n,t,r.event)},Ts=function(e){return ha(e)},Os=function(e,t){return{key:e,value:ka({abort:t})}},Rs=function(e,t){return{key:e,value:ka({can:t})}},Ds=function(e){return{key:e,value:ka({run:function(e,t){t.event.prevent()}})}},Ls=function(e,t){return{key:e,value:ka({run:t})}},Ms=function(e,t,n){return{key:e,value:ka({run:function(e,r){t.apply(void 0,[e,r].concat(n))}})}},Fs=function(e){return function(t){return Ls(e,t)}},Ns=function(e){return function(t){return{key:e,value:ka({run:function(e,n){wa(e,n)&&t(e,n)}})}}},Bs=function(e,t){return Ls(e,(function(n,r){n.getSystem().getByUid(t).each((function(t){Es(t,t.element,e,r)}))}))},Is=function(e,t,n){var r=t.partUids[n];return Bs(e,r)},Ps=function(e,t){return Ls(e,(function(e,n){var r=n.event,i=e.getSystem().getByDom(r.target).getOrThunk((function(){var t=ya(r.target,(function(t){return e.getSystem().getByDom(t).toOptional()}),S);return t.getOr(e)}));t(e,i,n)}))},$s=function(e){return Ls(e,(function(e,t){t.cut()}))},js=function(e){return Ls(e,(function(e,t){t.stop()}))},zs=function(e,t){return Ns(e)(t)},qs=Ns(fs()),Hs=Ns(ps()),Us=Ns(ss()),Ws=Fs(ts()),Vs=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,wn(tt.fromDom(r))},Gs=function(e){return e.dom.innerHTML},Ks=function(e,t){var n=pn(e),r=n.dom,i=tt.fromDom(r.createDocumentFragment()),o=Vs(t,r);Mr(i,o),Fr(e),Rr(e,i)},Ys=function(e){var t=tt.fromTag("div"),n=tt.fromDom(e.dom.cloneNode(!0));return Rr(t,n),Gs(t)},Xs=function(e,t){return tt.fromDom(e.dom.cloneNode(t))},Qs=function(e){return Xs(e,!1)},Js=function(e){if(Sn(e))return"#shadow-root";var t=Qs(e);return Ys(t)},Zs=function(e){return Js(e)},ec=function(e,t,n){return ln(t,e.element)&&!ln(t,n)},tc=Ts([Rs(Qa(),(function(e,t){var n=t.event,r=n.originator,i=n.target;return!ec(e,r,i)}))]),nc=Object.freeze({__proto__:null,events:tc}),rc=0,ic=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return rc++,e+"_"+r+rc+String(n)},oc=y("alloy-id-"),ac=y("data-alloy-id"),sc=oc(),cc=ac(),lc=function(e,t){var n=ic(sc+e);return uc(t,n),n},uc=function(e,t){Object.defineProperty(e.dom,cc,{value:t,writable:!0})},dc=function(e){var t=ut(e)?e.dom[cc]:null;return B.from(t)},fc=function(e){return ic(e)},pc=w,hc=function(e){var t=function(t){return"The component must be in a context to execute: "+t+(e?"\n"+Zs(e().element)+" is not in context.":"")},n=function(e){return function(){throw new Error(t(e))}},r=function(e){return function(){}};return{debugInfo:y("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:S}},mc=hc(),gc=function(e,t,n){var r=n.toString(),i=r.indexOf(")")+1,o=r.indexOf("("),a=r.substring(o+1,i-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:t,parameters:vc(a.slice(0,1).concat(a.slice(3)))}},e},vc=function(e){return V(e,(function(e){return Ue(e,"/*")?e.substring(0,e.length-"/*".length):e}))},bc=function(e,t){var n=e.toString(),r=n.indexOf(")")+1,i=n.indexOf("("),o=n.substring(i+1,r-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:t,parameters:vc(o)}},e},_c=function(e,t){var n=t.toString(),r=n.indexOf(")")+1,i=n.indexOf("("),o=n.substring(i+1,r-1).split(/,\s*/);return e.toFunctionAnnotation=function(){return{name:"OVERRIDE",parameters:vc(o.slice(1))}},e},yc=ic("alloy-premade"),wc=function(e){return pa(yc,e)},xc=function(e){return Se(e,yc)},kc=function(e){return _c((function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.apply(void 0,D([t.getApis(),t],n,!1))}),e)},Cc={init:function(){return Ac({readState:y("No State required")})}},Ac=function(e){return e},Sc=function(e,t){var n=V(t,(function(e){return Vo(e.name(),[Oo("config"),Ko("state",Cc)])})),r=yo("component.behaviours",Zi(n),e.behaviours).fold((function(t){throw new Error(ko(t)+"\nComplete spec:\n"+JSON.stringify(e,null,2))}),w);return{list:t,data:be(r,(function(e){var t=e.map((function(e){return{config:e.config,state:e.state.init(e.config)}}));return y(t)}))}},Ec=function(e){return e.list},Tc=function(e){return e.data},Oc=function(e,t){var n={};return ve(e,(function(e,r){ve(e,(function(e,i){var o=Se(n,i).getOr([]);n[i]=o.concat([t(r,e)])}))})),n},Rc=function(e){return{classes:u(e.classes)?[]:e.classes,attributes:u(e.attributes)?{}:e.attributes,styles:u(e.styles)?{}:e.styles}},Dc=function(e,t){return O(O({},e),{attributes:O(O({},e.attributes),t.attributes),styles:O(O({},e.styles),t.styles),classes:e.classes.concat(t.classes)})},Lc=function(e,t,n,r){var i=O({},t);G(n,(function(t){i[t.name()]=t.exhibit(e,r)}));var o=Oc(i,(function(e,t){return{name:e,modification:t}})),a=function(e){return Q(e,(function(e,t){return O(O({},t.modification),e)}),{})},s=Q(o.classes,(function(e,t){return t.modification.concat(e)}),[]),c=a(o.attributes),l=a(o.styles);return Rc({classes:s,attributes:c,styles:l})},Mc=function(e,t,n,r){try{var i=le(n,(function(n,i){var o=n[t],a=i[t],s=r.indexOf(o),c=r.indexOf(a);if(-1===s)throw new Error("The ordering for "+e+" does not have an entry for "+o+".\nOrder specified: "+JSON.stringify(r,null,2));if(-1===c)throw new Error("The ordering for "+e+" does not have an entry for "+a+".\nOrder specified: "+JSON.stringify(r,null,2));return s<c?-1:c<s?1:0}));return ri.value(i)}catch(o){return ri.error([o])}},Fc=function(e,t){return{handler:e,purpose:t}},Nc=function(e,t){return{cHandler:e,purpose:t}},Bc=function(e,t){return Nc(k.apply(void 0,[e.handler].concat(t)),e.purpose)},Ic=function(e){return e.cHandler},Pc=function(e,t){return{name:e,handler:t}},$c=function(e,t){var n={};return G(e,(function(e){n[e.name()]=e.handlers(t)})),n},jc=function(e,t,n){var r=O(O({},n),$c(t,e));return Oc(r,Pc)},zc=function(e,t,n,r){var i=jc(e,n,r);return Wc(i,t)},qc=function(e){var t=Sa(e);return function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o=[e,n].concat(r);t.abort.apply(void 0,o)?n.stop():t.can.apply(void 0,o)&&t.run.apply(void 0,o)}},Hc=function(e,t){return ri.error(["The event ("+e+') 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(V(t,(function(e){return e.name})),null,2)])},Uc=function(e,t,n){var r=t[n];return r?Mc("Event: "+n,"name",e,r).map((function(e){var t=V(e,(function(e){return e.handler}));return Ea(t)})):Hc(n,e)},Wc=function(e,t){var n=ke(e,(function(e,n){var r=1===e.length?ri.value(e[0].handler):Uc(e,t,n);return r.map((function(r){var i=qc(r),o=e.length>1?X(t[n],(function(t){return H(e,(function(e){return e.name===t}))})).join(" > "):e[0].name;return pa(n,Fc(i,o))}))}));return va(n,{})},Vc="alloy.base.behaviour",Gc=Zi([So("dom","dom",ki(),Zi([Oo("tag"),Ko("styles",{}),Ko("classes",[]),Ko("attributes",{}),jo("value"),jo("innerHtml")])),Oo("components"),Oo("uid"),Ko("events",{}),Ko("apis",{}),So("eventOrder","eventOrder",Ti((sa={},sa[ts()]=["disabling",Vc,"toggling","typeaheadevents"],sa[Qa()]=[Vc,"focusing","keying"],sa[ss()]=[Vc,"disabling","toggling","representing"],sa[qa()]=[Vc,"representing","streaming","invalidating"],sa[ps()]=[Vc,"representing","item-events","tooltipping"],sa[Ma()]=["focusing",Vc,"item-type-events"],sa[Oa()]=["focusing",Vc,"item-type-events"],sa[Ia()]=["item-type-events","tooltipping"],sa[es()]=["receiving","reflecting","tooltipping"],sa)),oo()),jo("domModification")]),Kc=function(e){return yo("custom.definition",Gc,e)},Yc=function(e){return O(O({},e.dom),{uid:e.uid,domChildren:V(e.components,(function(e){return e.element}))})},Xc=function(e){return e.domModification.fold((function(){return Rc({})}),Rc)},Qc=function(e){return e.events},Jc=function(e,t){var n=qn(e,t);return void 0===n||""===n?[]:n.split(" ")},Zc=function(e,t,n){var r=Jc(e,t),i=r.concat([n]);return jn(e,t,i.join(" ")),!0},el=function(e,t,n){var r=X(Jc(e,t),(function(e){return e!==n}));return r.length>0?jn(e,t,r.join(" ")):Wn(e,t),!1},tl=function(e){return void 0!==e.dom.classList},nl=function(e){return Jc(e,"class")},rl=function(e,t){return Zc(e,"class",t)},il=function(e,t){return el(e,"class",t)},ol=function(e,t){tl(e)?e.dom.classList.add(t):rl(e,t)},al=function(e){var t=tl(e)?e.dom.classList:nl(e);0===t.length&&Wn(e,"class")},sl=function(e,t){if(tl(e)){var n=e.dom.classList;n.remove(t)}else il(e,t);al(e)},cl=function(e,t){return tl(e)&&e.dom.classList.contains(t)},ll=function(e,t){G(t,(function(t){ol(e,t)}))},ul=function(e,t){G(t,(function(t){sl(e,t)}))},dl=function(e,t){return ie(t,(function(t){return cl(e,t)}))},fl=function(e){return e.dom.value},pl=function(e,t){if(void 0===t)throw new Error("Value.set was undefined");e.dom.value=t},hl=function(e){var t=tt.fromTag(e.tag);zn(t,e.attributes),ll(t,e.classes),Yn(t,e.styles),e.innerHtml.each((function(e){return Ks(t,e)}));var n=e.domChildren;return Mr(t,n),e.value.each((function(e){pl(t,e)})),e.uid,uc(t,e.uid),t},ml=function(e){var t=Se(e,"behaviours").getOr({});return re(me(t),(function(e){var n=t[e];return f(n)?[n.me]:[]}))},gl=function(e,t){return Sc(e,t)},vl=function(e){var t=ml(e);return gl(e,t)},bl=function(e,t,n){var r=Yc(e),i=Xc(e),o={"alloy.base.modification":i},a=t.length>0?Lc(n,o,t,r):i;return Dc(r,a)},_l=function(e,t,n){var r={"alloy.base.behaviour":Qc(e)};return zc(n,e.eventOrder,t,r).getOrDie()},yl=function(e){var t=function(){return _},n=ia(mc),r=wo(Kc(e)),i=vl(e),o=Ec(i),a=Tc(i),s=bl(r,o,a),c=hl(s),l=_l(r,o,a),u=ia(r.components),d=function(e){n.set(e)},f=function(){n.set(hc(t))},h=function(){var e=wn(c),t=re(e,(function(e){return n.get().getByDom(e).fold((function(){return[]}),ce)}));u.set(t)},m=function(t){var n=a,r=p(n[t.name()])?n[t.name()]:function(){throw new Error("Could not find "+t.name()+" in "+JSON.stringify(e,null,2))};return r()},g=function(e){return p(a[e.name()])},v=function(){return r.apis},b=function(e){return a[e]().map((function(e){return e.state.readState()})).getOr("not enabled")},_={uid:e.uid,getSystem:n.get,config:m,hasConfigured:g,spec:e,readState:b,getApis:v,connect:d,disconnect:f,element:c,syncComponents:h,components:u.get,events:l};return _},wl=function(e){var t=Se(e,"components").getOr([]);return V(t,El)},xl=function(e){var t=pc(e),n=t.events,r=R(t,["events"]),i=wl(r),o=O(O({},r),{events:O(O({},nc),n),components:i});return ri.value(yl(o))},kl=function(e){var t=tt.fromText(e);return Cl({element:t})},Cl=function(e){var t=xo("external.component",Ji([Oo("element"),jo("uid")]),e),n=ia(hc()),r=function(e){n.set(e)},i=function(){n.set(hc((function(){return a})))},o=t.uid.getOrThunk((function(){return fc("external")}));uc(t.element,o);var a={uid:o,getSystem:n.get,config:B.none,hasConfigured:S,connect:r,disconnect:i,getApis:function(){return{}},element:t.element,spec:e,readState:y("No state"),syncComponents:g,components:y([]),events:{}};return wc(a)},Al=fc,Sl=function(e){return Ee(e,"uid")},El=function(e){return xc(e).getOrThunk((function(){var t=Sl(e)?e:O({uid:Al("")},e);return xl(t).getOrDie()}))},Tl=wc;function Ol(e,t,n,r,i){return e(n,r)?B.some(n):p(i)&&i(n)?B.none():t(n,r,i)}var Rl,Dl=function(e,t,n){var r=e.dom,i=p(n)?n:S;while(r.parentNode){r=r.parentNode;var o=tt.fromDom(r);if(t(o))return B.some(o);if(i(o))break}return B.none()},Ll=function(e,t,n){var r=function(e,t){return t(e)};return Ol(r,Dl,e,t,n)},Ml=function(e,t){var n=function(e){return t(tt.fromDom(e))},r=ee(e.dom.childNodes,n);return r.map(tt.fromDom)},Fl=function(e,t){var n=function(e){for(var r=0;r<e.childNodes.length;r++){var i=tt.fromDom(e.childNodes[r]);if(t(i))return B.some(i);var o=n(e.childNodes[r]);if(o.isSome())return o}return B.none()};return n(e.dom)},Nl=function(e,t,n){return Ll(e,t,n).isSome()},Bl=function(e,t,n){return Dl(e,(function(e){return on(e,t)}),n)},Il=function(e,t){return Ml(e,(function(e){return on(e,t)}))},Pl=function(e,t){return cn(t,e)},$l=function(e,t,n){var r=function(e,t){return on(e,t)};return Ol(r,Bl,e,t,n)},jl=function(e){var t=Ll(e,(function(e){if(!ut(e))return!1;var t=qn(e,"id");return void 0!==t&&t.indexOf("aria-owns")>-1}));return t.bind((function(e){var t=qn(e,"id"),n=On(e);return Pl(n,'[aria-owns="'+t+'"]')}))},zl=function(){var e=ic("aria-owns"),t=function(t){jn(t,"aria-owns",e)},n=function(e){Wn(e,"aria-owns")};return{id:e,link:t,unlink:n}},ql=function(e,t){return jl(t).exists((function(t){return Hl(e,t)}))},Hl=function(e,t){return Nl(t,(function(t){return ln(t,e.element)}),S)||ql(e,t)},Ul="unknown";(function(e){e[e["STOP"]=0]="STOP",e[e["NORMAL"]=1]="NORMAL",e[e["LOGGING"]=2]="LOGGING"})(Rl||(Rl={}));var Wl=ia({}),Vl=function(e,t){var n=[];(new Date).getTime();return{logEventCut:function(e,t,r){n.push({outcome:"cut",target:t,purpose:r})},logEventStopped:function(e,t,r){n.push({outcome:"stopped",target:t,purpose:r})},logNoParent:function(e,t,r){n.push({outcome:"no-parent",target:t,purpose:r})},logEventNoHandlers:function(e,t){n.push({outcome:"no-handlers-left",target:t})},logEventResponse:function(e,t,r){n.push({outcome:"response",purpose:r,target:t})},write:function(){(new Date).getTime();q(["mousemove","mouseover","mouseout",ss()],e)}}},Gl=function(e,t,n){var r=Se(Wl.get(),e).orThunk((function(){var t=me(Wl.get());return he(t,(function(t){return e.indexOf(t)>-1?B.some(Wl.get()[t]):B.none()}))})).getOr(Rl.NORMAL);switch(r){case Rl.NORMAL:return n(Jl());case Rl.LOGGING:var i=Vl(e,t),o=n(i);return i.write(),o;case Rl.STOP:return!0}},Kl=["alloy/data/Fields","alloy/debugging/Debugging"],Yl=function(){var e=new Error;if(void 0!==e.stack){var t=e.stack.split("\n");return ee(t,(function(e){return e.indexOf("alloy")>0&&!H(Kl,(function(t){return e.indexOf(t)>-1}))})).getOr(Ul)}return Ul},Xl={logEventCut:g,logEventStopped:g,logNoParent:g,logEventNoHandlers:g,logEventResponse:g,write:g},Ql=function(e,t,n){return Gl(e,t,n)},Jl=y(Xl),Zl=y([Oo("menu"),Oo("selectedMenu")]),eu=y([Oo("item"),Oo("selectedItem")]);y(Zi(eu().concat(Zl())));var tu=y(Zi(eu())),nu=Io("initSize",[Oo("numColumns"),Oo("numRows")]),ru=function(){return Ro("markers",tu())},iu=function(){return Io("markers",[Oo("backgroundMenu")].concat(Zl()).concat(eu()))},ou=function(e){return Io("markers",V(e,Oo))},au=function(e,t,n){return Yl(),So(t,t,n,vo((function(e){return ri.value((function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.apply(void 0,t)}))})))},su=function(e){return au("onHandler",e,Ai(g))},cu=function(e){return au("onKeyboardHandler",e,Ai(B.none))},lu=function(e){return au("onHandler",e,ki())},uu=function(e){return au("onKeyboardHandler",e,ki())},du=function(e,t){return Eo(e,y(t))},fu=function(e){return Eo(e,w)},pu=y(nu),hu=function(e,t,n,r,i,o,a,s){return void 0===s&&(s=!1),{x:e,y:t,bubble:n,direction:r,placement:i,restriction:o,label:a+"-"+i,alwaysFit:s}},mu=aa.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),gu=function(e,t,n,r,i,o,a,s,c){return e.fold(t,n,r,i,o,a,s,c)},vu=function(e,t,n,r){return e.fold(t,t,r,r,t,r,n,n)},bu=function(e,t,n,r){return e.fold(t,r,t,r,n,n,t,r)},_u=mu.southeast,yu=mu.southwest,wu=mu.northeast,xu=mu.northwest,ku=mu.south,Cu=mu.north,Au=mu.east,Su=mu.west,Eu=function(e,t,n,r){var i=e+t;return i>r?n:i<n?r:i},Tu=function(e,t,n){return Math.min(Math.max(e,t),n)},Ou=function(e,t){switch(t){case 1:return e.x;case 0:return e.x+e.width;case 2:return e.y;case 3:return e.y+e.height}},Ru=function(e,t){return se(["left","right","top","bottom"],(function(n){return Se(t,n).map((function(t){return Ou(e,t)}))}))},Du=function(e,t,n){var r=function(r,i){return t[r].map((function(t){var o="top"===r||"bottom"===r,a=o?n.top:n.left,s="left"===r||"top"===r?Math.max:Math.min,c=s(t,i)+a;return o?Tu(c,e.y,e.bottom):Tu(c,e.x,e.right)})).getOr(i)},i=r("left",e.x),o=r("top",e.y),a=r("right",e.right),s=r("bottom",e.bottom);return Xr(i,o,a-i,s-o)},Lu="layout",Mu=function(e){return e.x},Fu=function(e,t){return e.x+e.width/2-t.width/2},Nu=function(e,t){return e.x+e.width-t.width},Bu=function(e,t){return e.y-t.height},Iu=function(e){return e.y+e.height},Pu=function(e,t){return e.y+e.height/2-t.height/2},$u=function(e){return e.x+e.width},ju=function(e,t){return e.x-t.width},zu=function(e,t,n){return hu(Mu(e),Iu(e),n.southeast(),_u(),"southeast",Ru(e,{left:1,top:3}),Lu)},qu=function(e,t,n){return hu(Nu(e,t),Iu(e),n.southwest(),yu(),"southwest",Ru(e,{right:0,top:3}),Lu)},Hu=function(e,t,n){return hu(Mu(e),Bu(e,t),n.northeast(),wu(),"northeast",Ru(e,{left:1,bottom:2}),Lu)},Uu=function(e,t,n){return hu(Nu(e,t),Bu(e,t),n.northwest(),xu(),"northwest",Ru(e,{right:0,bottom:2}),Lu)},Wu=function(e,t,n){return hu(Fu(e,t),Bu(e,t),n.north(),Cu(),"north",Ru(e,{bottom:2}),Lu)},Vu=function(e,t,n){return hu(Fu(e,t),Iu(e),n.south(),ku(),"south",Ru(e,{top:3}),Lu)},Gu=function(e,t,n){return hu($u(e),Pu(e,t),n.east(),Au(),"east",Ru(e,{left:0}),Lu)},Ku=function(e,t,n){return hu(ju(e,t),Pu(e,t),n.west(),Su(),"west",Ru(e,{right:1}),Lu)},Yu=function(){return[zu,qu,Hu,Uu,Vu,Wu,Gu,Ku]},Xu=function(){return[qu,zu,Uu,Hu,Vu,Wu,Gu,Ku]},Qu=function(){return[Hu,Uu,zu,qu,Wu,Vu]},Ju=function(){return[Uu,Hu,qu,zu,Wu,Vu]},Zu=function(){return[zu,qu,Hu,Uu,Vu,Wu]},ed=function(){return[qu,zu,Uu,Hu,Vu,Wu]},td=function(e,t){return t.universal?e:X(e,(function(e){return q(t.channels,e)}))},nd=function(e){return Ts([Ls(es(),(function(t,n){var r=e.channels,i=me(r),o=n,a=td(i,o);G(a,(function(e){var n=r[e],i=n.schema,a=xo("channel["+e+"] data\nReceiver: "+Zs(t.element),i,o.data);n.onReceive(t,a)}))}))])},rd=Object.freeze({__proto__:null,events:nd}),id=[Ro("channels",bo(ri.value,Ji([lu("onReceive"),Ko("schema",oo())])))],od=function(e,t,n){return Ws((function(r){n(r,e,t)}))},ad=function(e,t,n){return Us((function(r,i){n(r,e,t)}))},sd=function(e,t,n,r,i,o){var a=Ji(e),s=Vo(t,[Go("config",e)]);return dd(a,s,t,n,r,i,o)},cd=function(e,t,n,r,i,o){var a=e,s=Vo(t,[zo("config",e)]);return dd(a,s,t,n,r,i,o)},ld=function(e,t,n){var r=function(r){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];var a=[r].concat(i);return r.config({name:y(e)}).fold((function(){throw new Error("We could not find any behaviour configuration for: "+e+". Using API: "+n)}),(function(e){var n=Array.prototype.slice.call(a,1);return t.apply(void 0,[r,e.config,e.state].concat(n))}))};return gc(r,n,t)},ud=function(e){return{key:e,value:void 0}},dd=function(e,t,n,r,i,o,a){var s=function(e){return Te(e,n)?e[n]():B.none()},c=be(i,(function(e,t){return ld(n,e,t)})),l=be(o,(function(e,t){return bc(e,t)})),u=O(O(O({},l),c),{revoke:k(ud,n),config:function(t){var r=xo(n+"-config",e,t);return{key:n,value:{config:r,me:u,configAsRaw:ht((function(){return xo(n+"-config",e,t)})),initialConfig:t,state:a}}},schema:y(t),exhibit:function(e,t){return Me(s(e),Se(r,"exhibit"),(function(e,n){return n(t,e.config,e.state)})).getOrThunk((function(){return Rc({})}))},name:y(n),handlers:function(e){return s(e).map((function(e){var t=Se(r,"events").getOr((function(){return{}}));return t(e.config,e.state)})).getOr({})}});return u},fd=function(e){return ha(e)},pd=Ji([Oo("fields"),Oo("name"),Ko("active",{}),Ko("apis",{}),Ko("state",Cc),Ko("extra",{})]),hd=function(e){var t=xo("Creating behaviour: "+e.name,pd,e);return sd(t.fields,t.name,t.active,t.apis,t.extra,t.state)},md=Ji([Oo("branchKey"),Oo("branches"),Oo("name"),Ko("active",{}),Ko("apis",{}),Ko("state",Cc),Ko("extra",{})]),gd=function(e){var t=xo("Creating behaviour: "+e.name,md,e);return cd(Co(t.branchKey,t.branches),t.name,t.active,t.apis,t.extra,t.state)},vd=y(void 0),bd=hd({fields:id,name:"receiving",active:rd}),_d=function(e,t){return Rc({classes:[],styles:t.useFixed()?{}:{position:"relative"}})},yd=Object.freeze({__proto__:null,exhibit:_d}),wd=function(){return tt.fromDom(document)},xd=function(e){return e.dom.focus()},kd=function(e){return e.dom.blur()},Cd=function(e){var t=On(e).dom;return e.dom===t.activeElement},Ad=function(e){return void 0===e&&(e=wd()),B.from(e.dom.activeElement).map(tt.fromDom)},Sd=function(e){return Ad(On(e)).filter((function(t){return e.dom.contains(t.dom)}))},Ed=function(e,t){var n=On(t),r=Ad(n).bind((function(e){var n=function(t){return ln(e,t)};return n(t)?B.some(t):Fl(t,n)})),i=e(t);return r.each((function(e){Ad(n).filter((function(t){return ln(t,e)})).fold((function(){xd(e)}),g)})),i},Td=function(e,t,n,r,i){var o=function(e){return e+"px"};return{position:e,left:t.map(o),top:n.map(o),right:r.map(o),bottom:i.map(o)}},Od=function(e){return O(O({},e),{position:B.some(e.position)})},Rd=function(e,t){Xn(e,Od(t))},Dd=aa.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),Ld=function(e,t,n,r,i,o){var a=t.rect,s=a.x-n,c=a.y-r,l=a.width,u=a.height,d=i-(s+l),f=o-(c+u),p=B.some(s),h=B.some(c),m=B.some(d),g=B.some(f),v=B.none();return gu(t.direction,(function(){return Td(e,p,h,v,v)}),(function(){return Td(e,v,h,m,v)}),(function(){return Td(e,p,v,v,g)}),(function(){return Td(e,v,v,m,g)}),(function(){return Td(e,p,h,v,v)}),(function(){return Td(e,p,v,v,g)}),(function(){return Td(e,p,h,v,v)}),(function(){return Td(e,v,h,m,v)}))},Md=function(e,t){return e.fold((function(){var e=t.rect;return Td("absolute",B.some(e.x),B.some(e.y),B.none(),B.none())}),(function(e,n,r,i){return Ld("absolute",t,e,n,r,i)}),(function(e,n,r,i){return Ld("fixed",t,e,n,r,i)}))},Fd=function(e,t){var n=k(Gr,t),r=e.fold(n,n,(function(){var e=Ir();return Gr(t).translate(-e.left,-e.top)})),i=br(t),o=sr(t);return Xr(r.left,r.top,i,o)},Nd=function(e,t){return t.fold((function(){return e.fold(Zr,Zr,Xr)}),(function(t){return e.fold(t,t,(function(){var n=t(),r=Bd(e,n.x,n.y);return Xr(r.left,r.top,n.width,n.height)}))}))},Bd=function(e,t,n){var r=ur(t,n),i=function(){var e=Ir();return r.translate(-e.left,-e.top)};return e.fold(y(r),y(r),i)},Id=function(e,t,n,r){return e.fold(t,n,r)};Dd.none;var Pd,$d=Dd.relative,jd=Dd.fixed,zd=function(e,t){return{anchorBox:e,origin:t}},qd=function(e,t){return zd(e,t)},Hd="data-alloy-placement",Ud=function(e,t){jn(e,Hd,t)},Wd=function(e){return Hn(e,Hd)},Vd=function(e){return Wn(e,Hd)},Gd=aa.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),Kd=function(e,t){var n=t.x,r=t.y,i=t.right,o=t.bottom,a=e.x,s=e.y,c=e.right,l=e.bottom,u=e.width,d=e.height,f=a>=n&&a<=i,p=s>=r&&s<=o,h=f&&p,m=c<=i&&c>=n,g=l<=o&&l>=r,v=m&&g,b=Math.min(u,a>=n?i-a:c-n),_=Math.min(d,s>=r?o-s:l-r);return{originInBounds:h,sizeInBounds:v,visibleW:b,visibleH:_}},Yd=function(e,t){var n=t.x,r=t.y,i=t.right,o=t.bottom,a=e.x,s=e.y,c=e.width,l=e.height,u=Math.max(n,i-c),d=Math.max(r,o-l),f=Tu(a,n,u),p=Tu(s,r,d),h=Math.min(f+c,i)-f,m=Math.min(p+l,o)-p;return Xr(f,p,h,m)},Xd=function(e,t,n){var r=y(t.bottom-n.y),i=y(n.bottom-t.y),o=vu(e,i,i,r),a=y(t.right-n.x),s=y(n.right-t.x),c=bu(e,s,s,a);return{maxWidth:c,maxHeight:o}},Qd=function(e,t,n,r){var i=e.bubble,o=i.offset,a=Du(r,e.restriction,o),s=e.x+o.left,c=e.y+o.top,l=Xr(s,c,t,n),u=Kd(l,a),d=u.originInBounds,f=u.sizeInBounds,p=u.visibleW,h=u.visibleH,m=d&&f,g=m?l:Yd(l,a),v=g.width>0&&g.height>0,b=Xd(e.direction,g,r),_=b.maxWidth,y=b.maxHeight,w={rect:g,maxHeight:y,maxWidth:_,direction:e.direction,placement:e.placement,classes:{on:i.classesOn,off:i.classesOff},layout:e.label,testY:c};return m||e.alwaysFit?Gd.fit(w):Gd.nofit(w,p,h,v)},Jd=function(e,t,n,r,i,o){var a=r.width,s=r.height,c=function(t,c,l,u,d){var f=t(n,r,i,e,o),p=Qd(f,a,s,o);return p.fold(y(p),(function(e,t,n,r){var i=d===r?n>u||t>l:!d&&r;return i?p:Gd.nofit(c,l,u,d)}))},l=J(t,(function(e,t){var n=k(c,t);return e.fold(y(e),n)}),Gd.nofit({rect:n,maxHeight:r.height,maxWidth:r.width,direction:_u(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:n.y},-1,-1,!1));return l.fold(w,w)},Zd=function(e){var t=ia(B.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(B.none())},i=function(){return t.get().isSome()},o=function(){return t.get()},a=function(e){n(),t.set(B.some(e))};return{clear:r,isSet:i,get:o,set:a}},ef=function(){return Zd((function(e){return e.destroy()}))},tf=function(){return Zd((function(e){return e.unbind()}))},nf=function(){var e=ef(),t=function(t){return e.get().each(t)};return O(O({},e),{run:t})},rf=function(){var e=Zd(g),t=function(t){return e.get().each(t)};return O(O({},e),{on:t})},of=E,af=function(e,t,n){return Cr(e,t,of,n)},sf=function(e,t,n){return Ar(e,t,of,n)},cf=wr,lf=["top","bottom","right","left"],uf="data-alloy-transition-timer",df=function(e,t){return dl(e,t.classes)},ff=function(e,t,n){return n.exists((function(n){var r=e.mode;return"all"===r||n[r]!==t[r]}))},pf=function(e,t){var n=function(e){return parseFloat(e).toFixed(3)};return Ce(t,(function(t,r){var i=e[r].map(n),o=t.map(n);return!Re(i,o)})).isSome()},hf=function(e){var t=function(t){var n=Qn(e,t),r=o(n)?n.split(/\s*,\s*/):[];return X(r,Ge)},n=function(e){if(o(e)&&/^[\d.]+/.test(e)){var t=parseFloat(e);return Ue(e,"ms")?t:1e3*t}return 0},r=t("transition-delay"),i=t("transition-duration");return J(i,(function(e,t,i){var o=n(r[i])+n(t);return Math.max(e,o)}),0)},mf=function(e,t){var n,r=tf(),i=tf(),o=function(t){var n,r=null!==(n=t.raw.pseudoElement)&&void 0!==n?n:"";return ln(t.target,e)&&Ke(r)&&q(lf,t.raw.propertyName)},a=function(a){if(d(a)||o(a)){r.clear(),i.clear();var s=null===a||void 0===a?void 0:a.raw.type;(d(s)||s===Va())&&(clearTimeout(n),Wn(e,uf),ul(e,t.classes))}},s=function(){r.set(af(e,Va(),a)),i.set(af(e,Wa(),a))};if("ontransitionstart"in e.dom)var c=af(e,Ga(),(function(e){o(e)&&(c.unbind(),s())}));else s();var l=hf(e);requestAnimationFrame((function(){n=setTimeout(a,l+17),jn(e,uf,n)}))},gf=function(e,t){ll(e,t.classes),Hn(e,uf).each((function(t){clearTimeout(parseInt(t,10)),Wn(e,uf)})),mf(e,t)},vf=function(e,t,n,r,i,o){var a=ff(r,i,o);if(a||df(e,r)){Kn(e,"position",n.position);var s=Fd(t,e),c=Md(t,O(O({},i),{rect:s})),l=se(lf,(function(e){return c[e]}));pf(n,l)&&(Xn(e,l),a&&gf(e,r),rr(e))}else ul(e,r.classes)},bf=function(e){return{width:br(e),height:sr(e)}},_f=function(e,t,n,r){nr(t,"max-height"),nr(t,"max-width");var i=bf(t);return Jd(t,r.preference,e,i,n,r.bounds)},yf=function(e,t){var n=t.classes;ul(e,n.off),ll(e,n.on)},wf=function(e,t,n){var r=n.maxHeightFunction;r(e,t.maxHeight)},xf=function(e,t,n){var r=n.maxWidthFunction;r(e,t.maxWidth)},kf=function(e,t,n){var r=Md(n.origin,t);n.transition.each((function(i){vf(e,n.origin,r,i,t,n.lastPlacement)})),Rd(e,r)},Cf=function(e,t){Ud(e,t.placement)},Af=function(e,t){cr(e,Math.floor(t))},Sf=y((function(e,t){Af(e,t),Yn(e,{"overflow-x":"hidden","overflow-y":"auto"})})),Ef=y((function(e,t){Af(e,t)})),Tf=function(e,t,n){return void 0===e[t]?n:e[t]},Of=function(e,t,n,r,i,o,a,s){var c=Tf(a,"maxHeightFunction",Sf()),l=Tf(a,"maxWidthFunction",g),u=e.anchorBox,d=e.origin,f={bounds:Nd(d,o),origin:d,preference:r,maxHeightFunction:c,maxWidthFunction:l,lastPlacement:i,transition:s};return Rf(u,t,n,f)},Rf=function(e,t,n,r){var i=_f(e,t,n,r);return kf(t,i,r),Cf(t,i),yf(t,i),wf(t,i,r),xf(t,i,r),{layout:i.layout,placement:i.placement}},Df=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],Lf=function(e,t,n,r){void 0===r&&(r=1);var i=e*r,o=t*r,a=function(e){return Se(n,e).getOr([])},s=function(e,t,n){var r=ae(Df,n);return{offset:ur(e,t),classesOn:re(n,a),classesOff:re(r,a)}};return{southeast:function(){return s(-e,t,["top","alignLeft"])},southwest:function(){return s(e,t,["top","alignRight"])},south:function(){return s(-e/2,t,["top","alignCentre"])},northeast:function(){return s(-e,-t,["bottom","alignLeft"])},northwest:function(){return s(e,-t,["bottom","alignRight"])},north:function(){return s(-e/2,-t,["bottom","alignCentre"])},east:function(){return s(e,-t/2,["valignCentre","left"])},west:function(){return s(-e,-t/2,["valignCentre","right"])},insetNortheast:function(){return s(i,o,["top","alignLeft","inset"])},insetNorthwest:function(){return s(-i,o,["top","alignRight","inset"])},insetNorth:function(){return s(-i/2,o,["top","alignCentre","inset"])},insetSoutheast:function(){return s(i,-o,["bottom","alignLeft","inset"])},insetSouthwest:function(){return s(-i,-o,["bottom","alignRight","inset"])},insetSouth:function(){return s(-i/2,-o,["bottom","alignCentre","inset"])},insetEast:function(){return s(-i,-o/2,["valignCentre","right","inset"])},insetWest:function(){return s(i,-o/2,["valignCentre","left","inset"])}}},Mf=function(){return Lf(0,0,{})},Ff=w,Nf=function(e,t){return function(n){return"rtl"===Bf(n)?t:e}},Bf=function(e){return"rtl"===Qn(e,"direction")?"rtl":"ltr"};(function(e){e["TopToBottom"]="toptobottom",e["BottomToTop"]="bottomtotop"})(Pd||(Pd={}));var If="data-alloy-vertical-dir",Pf=function(e){return Nl(e,(function(e){return ut(e)&&qn(e,"data-alloy-vertical-dir")===Pd.BottomToTop}))},$f=function(){return Vo("layouts",[Oo("onLtr"),Oo("onRtl"),jo("onBottomLtr"),jo("onBottomRtl")])},jf=function(e,t,n,r,i,o,a){var s=a.map(Pf).getOr(!1),c=t.layouts.map((function(t){return t.onLtr(e)})),l=t.layouts.map((function(t){return t.onRtl(e)})),u=s?t.layouts.bind((function(t){return t.onBottomLtr.map((function(t){return t(e)}))})).or(c).getOr(i):c.getOr(n),d=s?t.layouts.bind((function(t){return t.onBottomRtl.map((function(t){return t(e)}))})).or(l).getOr(o):l.getOr(r),f=Nf(u,d);return f(e)},zf=function(e,t,n){var r=t.hotspot,i=Fd(n,r.element),o=jf(e.element,t,Zu(),ed(),Qu(),Ju(),B.some(t.hotspot.element));return B.some(Ff({anchorBox:i,bubble:t.bubble.getOr(Mf()),overrides:t.overrides,layouts:o,placer:B.none()}))},qf=[Oo("hotspot"),jo("bubble"),Ko("overrides",{}),$f(),du("placement",zf)],Hf=function(e,t,n){var r=Bd(n,t.x,t.y),i=Xr(r.left,r.top,t.width,t.height),o=jf(e.element,t,Yu(),Xu(),Yu(),Xu(),B.none());return B.some(Ff({anchorBox:i,bubble:t.bubble,overrides:t.overrides,layouts:o,placer:B.none()}))},Uf=[Oo("x"),Oo("y"),Ko("height",0),Ko("width",0),Ko("bubble",Mf()),Ko("overrides",{}),$f(),du("placement",Hf)],Wf=aa.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),Vf=function(e){return e.fold(w,(function(e,t,n){return e.translate(-t,-n)}))},Gf=function(e){return e.fold(w,w)},Kf=function(e){return J(e,(function(e,t){return e.translate(t.left,t.top)}),ur(0,0))},Yf=function(e){var t=V(e,Vf);return Kf(t)},Xf=function(e){var t=V(e,Gf);return Kf(t)},Qf=Wf.screen,Jf=Wf.absolute,Zf=function(e,t,n){var r=gn(n.root).dom,i=function(t){var n=pn(t),r=pn(e.element);return ln(n,r)};return B.from(r.frameElement).map(tt.fromDom).filter(i).map(pr)},ep=function(e,t,n){var r=pn(e.element),i=Ir(r),o=Zf(e,t,n).getOr(i);return Jf(o,i.left,i.top)},tp=function(e,t,n,r){var i=Qf(ur(e,t));return B.some(Kr(i,n,r))},np=function(e,t,n,r,i){return e.map((function(e){var o=[t,e.point],a=Id(r,(function(){return Xf(o)}),(function(){return Xf(o)}),(function(){return Yf(o)})),s=Yr(a.left,a.top,e.width,e.height),c=n.showAbove?Qu():Zu(),l=n.showAbove?Ju():ed(),u=jf(i,n,c,l,c,l,B.none());return Ff({anchorBox:s,bubble:n.bubble.getOr(Mf()),overrides:n.overrides,layouts:u,placer:B.none()})}))},rp=function(e,t,n){var r=ep(e,n,t);return t.node.filter(Bn).bind((function(i){var o=i.dom.getBoundingClientRect(),a=tp(o.left,o.top,o.width,o.height),s=t.node.getOr(e.element);return np(a,r,t,n,s)}))},ip=[Oo("node"),Oo("root"),jo("bubble"),$f(),Ko("overrides",{}),Ko("showAbove",!1),du("placement",rp)],op="\ufeff",ap=" ",sp=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},cp={create:sp},lp=aa.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),up=function(e,t,n,r){return e.fold(t,n,r)},dp=function(e){return e.fold(w,w,w)},fp=lp.before,pp=lp.on,hp=lp.after,mp={before:fp,on:pp,after:hp,cata:up,getStart:dp},gp=aa.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),vp=function(e){return gp.exact(e.start,e.soffset,e.finish,e.foffset)},bp=function(e){return e.match({domRange:function(e){return tt.fromDom(e.startContainer)},relative:function(e,t){return mp.getStart(e)},exact:function(e,t,n,r){return e}})},_p=gp.domRange,yp=gp.relative,wp=gp.exact,xp=function(e){var t=bp(e);return gn(t)},kp=cp.create,Cp={domRange:_p,relative:yp,exact:wp,exactFromRange:vp,getWin:xp,range:kp},Ap=function(e,t){t.fold((function(t){e.setStartBefore(t.dom)}),(function(t,n){e.setStart(t.dom,n)}),(function(t){e.setStartAfter(t.dom)}))},Sp=function(e,t){t.fold((function(t){e.setEndBefore(t.dom)}),(function(t,n){e.setEnd(t.dom,n)}),(function(t){e.setEndAfter(t.dom)}))},Ep=function(e,t,n){var r=e.document.createRange();return Ap(r,t),Sp(r,n),r},Tp=function(e,t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},Op=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},Rp=function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?B.some(n).map(Op):B.none()},Dp=function(e){var t=e.getBoundingClientRect();return t.width>0||t.height>0?B.some(t).map(Op):B.none()},Lp=aa.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Mp=function(e,t,n){return t(tt.fromDom(n.startContainer),n.startOffset,tt.fromDom(n.endContainer),n.endOffset)},Fp=function(e,t){return t.match({domRange:function(e){return{ltr:y(e),rtl:B.none}},relative:function(t,n){return{ltr:ht((function(){return Ep(e,t,n)})),rtl:ht((function(){return B.some(Ep(e,n,t))}))}},exact:function(t,n,r,i){return{ltr:ht((function(){return Tp(e,t,n,r,i)})),rtl:ht((function(){return B.some(Tp(e,r,i,t,n))}))}}})},Np=function(e,t){var n=t.ltr();if(n.collapsed){var r=t.rtl().filter((function(e){return!1===e.collapsed}));return r.map((function(e){return Lp.rtl(tt.fromDom(e.endContainer),e.endOffset,tt.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return Mp(e,Lp.ltr,n)}))}return Mp(e,Lp.ltr,n)},Bp=function(e,t){var n=Fp(e,t);return Np(e,n)},Ip=function(e,t){var n=Bp(e,t);return n.match({ltr:function(t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},rtl:function(t,n,r,i){var o=e.document.createRange();return o.setStart(r.dom,i),o.setEnd(t.dom,n),o}})};Lp.ltr,Lp.rtl;var Pp,$p=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?B.from(t.dom.nodeValue):B.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}},jp=$p(dt,"text"),zp=function(e){return jp.get(e)},qp=function(e){return jp.getOption(e)},Hp=function(e){return"img"===st(e)?1:qp(e).fold((function(){return wn(e).length}),(function(e){return e.length}))},Up=function(e){return qp(e).filter((function(e){return 0!==e.trim().length||e.indexOf(ap)>-1})).isSome()},Wp=["img","br"],Vp=function(e){var t=Up(e);return t||q(Wp,st(e))},Gp=function(e){return Kp(e,Vp)},Kp=function(e,t){var n=function(e){for(var r=wn(e),i=r.length-1;i>=0;i--){var o=r[i];if(t(o))return B.some(o);var a=n(o);if(a.isSome())return a}return B.none()};return n(e)},Yp=function(e,t){return sn(t,e)},Xp=function(e,t,n,r){var i=pn(e),o=i.dom.createRange();return o.setStart(e.dom,t),o.setEnd(n.dom,r),o},Qp=function(e,t,n,r){var i=Xp(e,t,n,r),o=ln(e,n)&&t===r;return i.collapsed&&!o},Jp=function(e){return B.from(e.getSelection())},Zp=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return B.some(cp.create(tt.fromDom(t.startContainer),t.startOffset,tt.fromDom(n.endContainer),n.endOffset))}return B.none()},eh=function(e){if(null===e.anchorNode||null===e.focusNode)return Zp(e);var t=tt.fromDom(e.anchorNode),n=tt.fromDom(e.focusNode);return Qp(t,e.anchorOffset,n,e.focusOffset)?B.some(cp.create(t,e.anchorOffset,n,e.focusOffset)):Zp(e)},th=function(e){return Jp(e).filter((function(e){return e.rangeCount>0})).bind(eh)},nh=function(e,t){var n=Ip(e,t);return Rp(n)},rh=function(e,t){var n=Ip(e,t);return Dp(n)},ih=function(e,t){return{element:e,offset:t}},oh=function(e,t){var n=wn(e);if(0===n.length)return ih(e,t);if(t<n.length)return ih(n[t],0);var r=n[n.length-1],i=dt(r)?zp(r).length:wn(r).length;return ih(r,i)},ah=function(e,t){return dt(e)?ih(e,t):oh(e,t)},sh=function(e,t){var n=t.getSelection.getOrThunk((function(){return function(){return th(e)}}));return n().map((function(e){var t=ah(e.start,e.soffset),n=ah(e.finish,e.foffset);return Cp.range(t.element,t.offset,n.element,n.offset)}))},ch=function(e,t,n){var r=gn(t.root).dom,i=ep(e,n,t),o=sh(r,t).bind((function(e){var t=rh(r,Cp.exactFromRange(e)).orThunk((function(){var t=tt.fromText(op);Er(e.start,t);var n=nh(r,Cp.exact(t,0,t,1));return Nr(t),n}));return t.bind((function(e){return tp(e.left,e.top,e.width,e.height)}))})),a=sh(r,t).bind((function(e){return ut(e.start)?B.some(e.start):bn(e.start)})),s=a.getOr(e.element);return np(o,i,t,n,s)},lh=[jo("getSelection"),Oo("root"),jo("bubble"),$f(),Ko("overrides",{}),Ko("showAbove",!1),du("placement",ch)],uh="link-layout",dh=function(e){return e.x+e.width},fh=function(e,t){return e.x-t.width},ph=function(e,t){return e.y-t.height+e.height},hh=function(e){return e.y},mh=function(e,t,n){return hu(dh(e),hh(e),n.southeast(),_u(),"southeast",Ru(e,{left:0,top:2}),uh)},gh=function(e,t,n){return hu(fh(e,t),hh(e),n.southwest(),yu(),"southwest",Ru(e,{right:1,top:2}),uh)},vh=function(e,t,n){return hu(dh(e),ph(e,t),n.northeast(),wu(),"northeast",Ru(e,{left:0,bottom:3}),uh)},bh=function(e,t,n){return hu(fh(e,t),ph(e,t),n.northwest(),xu(),"northwest",Ru(e,{right:1,bottom:3}),uh)},_h=function(){return[mh,gh,vh,bh]},yh=function(){return[gh,mh,bh,vh]},wh=function(e,t,n){var r=Fd(n,t.item.element),i=jf(e.element,t,_h(),yh(),_h(),yh(),B.none());return B.some(Ff({anchorBox:r,bubble:Mf(),overrides:t.overrides,layouts:i,placer:B.none()}))},xh=[Oo("item"),$f(),Ko("overrides",{}),du("placement",wh)],kh=Co("type",{selection:lh,node:ip,hotspot:qf,submenu:xh,makeshift:Uf}),Ch=[$o("classes",co),Jo("mode","all",["all","layout","placement"])],Ah=[Ko("useFixed",S),jo("getBounds")],Sh=[Ro("anchor",kh),Vo("transition",Ch)],Eh=function(){var e=document.documentElement;return jd(0,0,e.clientWidth,e.clientHeight)},Th=function(e){var t=pr(e.element),n=e.element.dom.getBoundingClientRect();return $d(t.left,t.top,n.width,n.height)},Oh=function(e,t,n,r,i,o,a){var s=qd(n.anchorBox,t);return Of(s,i.element,n.bubble,n.layouts,o,r,n.overrides,a)},Rh=function(e,t,n,r,i){Dh(e,t,n,r,i,B.none())},Dh=function(e,t,n,r,i,o){var a=o.map(Qr);return Lh(e,t,n,r,i,a)},Lh=function(e,t,n,r,i,o){var a=xo("placement.info",Zi(Sh),i),s=a.anchor,c=r.element,l=n.get(r.uid);Ed((function(){Kn(c,"position","fixed");var i=Zn(c,"visibility");Kn(c,"visibility","hidden");var u=t.useFixed()?Eh():Th(e),d=s.placement,f=o.map(y).or(t.getBounds);d(e,s,u).each((function(t){var i=t.placer.getOr(Oh),o=i(e,u,t,f,r,l,a.transition);n.set(r.uid,o)})),i.fold((function(){nr(c,"visibility")}),(function(e){Kn(c,"visibility",e)})),Zn(c,"left").isNone()&&Zn(c,"top").isNone()&&Zn(c,"right").isNone()&&Zn(c,"bottom").isNone()&&Oe(Zn(c,"position"),"fixed")&&nr(c,"position")}),c)},Mh=function(e,t,n){return t.useFixed()?"fixed":"absolute"},Fh=function(e,t,n,r){var i=r.element;G(["position","left","right","top","bottom"],(function(e){return nr(i,e)})),Vd(i),n.clear(r.uid)},Nh=Object.freeze({__proto__:null,position:Rh,positionWithin:Dh,positionWithinBounds:Lh,getMode:Mh,reset:Fh}),Bh=function(){var e={},t=function(t,n){e[t]=n},n=function(t){return Se(e,t)},r=function(t){f(t)?delete e[t]:e={}};return Ac({readState:function(){return e},clear:r,set:t,get:n})},Ih=Object.freeze({__proto__:null,init:Bh}),Ph=hd({fields:Ah,name:"positioning",active:yd,apis:Nh,state:Ih}),$h=function(e){xs(e,ps());var t=e.components();G(t,$h)},jh=function(e){var t=e.components();G(t,jh),xs(e,fs())},zh=function(e,t){Rr(e.element,t.element)},qh=function(e){G(e.components(),(function(e){return Nr(e.element)})),Fr(e.element),e.syncComponents()},Hh=function(e,t){var n=e.components();qh(e);var r=ae(n,t);G(r,(function(t){$h(t),e.getSystem().removeFromWorld(t)})),G(t,(function(t){t.getSystem().isConnected()?zh(e,t):(e.getSystem().addToWorld(t),zh(e,t),Bn(e.element)&&jh(t)),e.syncComponents()}))},Uh=function(e,t){Wh(e,t,Rr)},Wh=function(e,t,n){e.getSystem().addToWorld(t),n(e.element,t.element),Bn(e.element)&&jh(t),e.syncComponents()},Vh=function(e){$h(e),Nr(e.element),e.getSystem().removeFromWorld(e)},Gh=function(e){var t=vn(e.element).bind((function(t){return e.getSystem().getByDom(t).toOptional()}));Vh(e),t.each((function(e){e.syncComponents()}))},Kh=function(e){var t=e.components();G(t,Vh),Fr(e.element),e.syncComponents()},Yh=function(e,t){Qh(e,t,Rr)},Xh=function(e,t){Qh(e,t,Tr)},Qh=function(e,t,n){n(e,t.element);var r=wn(t.element);G(r,(function(e){t.getByDom(e).each(jh)}))},Jh=function(e){var t=wn(e.element);G(t,(function(t){e.getByDom(t).each($h)})),Nr(e.element)},Zh=function(e,t,n,r){n.get().each((function(t){Kh(e)}));var i=t.getAttachPoint(e);Uh(i,e);var o=e.getSystem().build(r);return Uh(e,o),n.set(o),o},em=function(e,t,n,r){var i=Zh(e,t,n,r);return t.onOpen(e,i),i},tm=function(e,t,n,r){return n.get().map((function(){return Zh(e,t,n,r)}))},nm=function(e,t,n,r,i){lm(e,t),em(e,t,n,r),i(),dm(e,t)},rm=function(e,t,n){n.get().each((function(r){Kh(e),Gh(e),t.onClose(e,r),n.clear()}))},im=function(e,t,n){return n.isOpen()},om=function(e,t,n,r){return im(e,t,n)&&n.get().exists((function(n){return t.isPartOf(e,n,r)}))},am=function(e,t,n){return n.get()},sm=function(e,t,n,r){Zn(e.element,t).fold((function(){Wn(e.element,n)}),(function(t){jn(e.element,n,t)})),Kn(e.element,t,r)},cm=function(e,t,n){Hn(e.element,n).fold((function(){return nr(e.element,t)}),(function(n){return Kn(e.element,t,n)}))},lm=function(e,t,n){var r=t.getAttachPoint(e);Kn(e.element,"position",Ph.getMode(r)),sm(e,"visibility",t.cloakVisibilityAttr,"hidden")},um=function(e){return H(["top","left","right","bottom"],(function(t){return Zn(e,t).isSome()}))},dm=function(e,t,n){um(e.element)||nr(e.element,"position"),cm(e,"visibility",t.cloakVisibilityAttr)},fm=Object.freeze({__proto__:null,cloak:lm,decloak:dm,open:em,openWhileCloaked:nm,close:rm,isOpen:im,isPartOf:om,getState:am,setContent:tm}),pm=function(e,t){return Ts([Ls(os(),(function(n,r){rm(n,e,t)}))])},hm=Object.freeze({__proto__:null,events:pm}),mm=[su("onOpen"),su("onClose"),Oo("isPartOf"),Oo("getAttachPoint"),Ko("cloakVisibilityAttr","data-precloak-visibility")],gm=function(){var e=rf(),t=y("not-implemented");return Ac({readState:t,isOpen:e.isSet,clear:e.clear,set:e.set,get:e.get})},vm=Object.freeze({__proto__:null,init:gm}),bm=hd({fields:mm,name:"sandboxing",active:hm,apis:fm,state:vm}),_m=y("dismiss.popups"),ym=y("reposition.popups"),wm=y("mouse.released"),xm=Ji([Ko("isExtraPart",S),Vo("fireEventInstead",[Ko("event",hs())])]),km=function(e){var t,n=xo("Dismissal",xm,e);return t={},t[_m()]={schema:Ji([Oo("target")]),onReceive:function(e,t){if(bm.isOpen(e)){var r=bm.isPartOf(e,t.target)||n.isExtraPart(e,t.target);r||n.fireEventInstead.fold((function(){return bm.close(e)}),(function(t){return xs(e,t.event)}))}}},t},Cm=Ji([Vo("fireEventInstead",[Ko("event",ms())]),No("doReposition")]),Am=function(e){var t,n=xo("Reposition",Cm,e);return t={},t[ym()]={onReceive:function(e){bm.isOpen(e)&&n.fireEventInstead.fold((function(){return n.doReposition(e)}),(function(t){return xs(e,t.event)}))}},t},Sm=function(e,t,n){t.store.manager.onLoad(e,t,n)},Em=function(e,t,n){t.store.manager.onUnload(e,t,n)},Tm=function(e,t,n,r){t.store.manager.setValue(e,t,n,r)},Om=function(e,t,n){return t.store.manager.getValue(e,t,n)},Rm=function(e,t,n){return n},Dm=Object.freeze({__proto__:null,onLoad:Sm,onUnload:Em,setValue:Tm,getValue:Om,getState:Rm}),Lm=function(e,t){var n=e.resetOnDom?[qs((function(n,r){Sm(n,e,t)})),Hs((function(n,r){Em(n,e,t)}))]:[ad(e,t,Sm)];return Ts(n)},Mm=Object.freeze({__proto__:null,events:Lm}),Fm=function(){var e=ia(null),t=function(){return{mode:"memory",value:e.get()}},n=function(){return null===e.get()},r=function(){e.set(null)};return Ac({set:e.set,get:e.get,isNotSet:n,clear:r,readState:t})},Nm=function(){var e=g;return Ac({readState:e})},Bm=function(){var e=ia({}),t=ia({}),n=function(){return{mode:"dataset",dataByValue:e.get(),dataByText:t.get()}},r=function(){e.set({}),t.set({})},i=function(n){return Se(e.get(),n).orThunk((function(){return Se(t.get(),n)}))},o=function(n){var r=e.get(),i=t.get(),o={},a={};G(n,(function(e){o[e.value]=e,Se(e,"meta").each((function(t){Se(t,"text").each((function(t){a[t]=e}))}))})),e.set(O(O({},r),o)),t.set(O(O({},i),a))};return Ac({readState:n,lookup:i,update:o,clear:r})},Im=function(e){return e.store.manager.state(e)},Pm=Object.freeze({__proto__:null,memory:Fm,dataset:Bm,manual:Nm,init:Im}),$m=function(e,t,n,r){var i=t.store;n.update([r]),i.setValue(e,r),t.onSetValue(e,r)},jm=function(e,t,n){var r=t.store,i=r.getDataKey(e);return n.lookup(i).getOrThunk((function(){return r.getFallbackEntry(i)}))},zm=function(e,t,n){var r=t.store;r.initialValue.each((function(r){$m(e,t,n,r)}))},qm=function(e,t,n){n.clear()},Hm=[jo("initialValue"),Oo("getFallbackEntry"),Oo("getDataKey"),Oo("setValue"),du("manager",{setValue:$m,getValue:jm,onLoad:zm,onUnload:qm,state:Bm})],Um=function(e,t,n){return t.store.getValue(e)},Wm=function(e,t,n,r){t.store.setValue(e,r),t.onSetValue(e,r)},Vm=function(e,t,n){t.store.initialValue.each((function(n){t.store.setValue(e,n)}))},Gm=[Oo("getValue"),Ko("setValue",g),jo("initialValue"),du("manager",{setValue:Wm,getValue:Um,onLoad:Vm,onUnload:g,state:Cc.init})],Km=function(e,t,n,r){n.set(r),t.onSetValue(e,r)},Ym=function(e,t,n){return n.get()},Xm=function(e,t,n){t.store.initialValue.each((function(e){n.isNotSet()&&n.set(e)}))},Qm=function(e,t,n){n.clear()},Jm=[jo("initialValue"),du("manager",{setValue:Km,getValue:Ym,onLoad:Xm,onUnload:Qm,state:Fm})],Zm=[Yo("store",{mode:"memory"},Co("mode",{memory:Jm,manual:Gm,dataset:Hm})),su("onSetValue"),Ko("resetOnDom",!1)],eg=hd({fields:Zm,name:"representing",active:Mm,apis:Dm,extra:{setValueFrom:function(e,t){var n=eg.getValue(t);eg.setValue(e,n)}},state:Pm}),tg=function(e,t){return ra(e,{},V(t,(function(t){return Bo(t.name(),"Cannot configure "+t.name()+" for "+e)})).concat([Eo("dump",w)]))},ng=function(e){return e.dump},rg=function(e,t){return O(O({},fd(t)),e.dump)},ig={field:tg,augment:rg,get:ng},og="placeholder",ag=aa.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),sg=function(e){return Ee(e,"uiType")},cg=function(e,t,n,r){return e.exists((function(e){return e!==n.owner}))?ag.single(!0,y(n)):Se(r,n.name).fold((function(){throw new Error("Unknown placeholder component: "+n.name+"\nKnown: ["+me(r)+"]\nNamespace: "+e.getOr("none")+"\nSpec: "+JSON.stringify(n,null,2))}),(function(e){return e.replace()}))},lg=function(e,t,n,r){return sg(n)&&n.uiType===og?cg(e,t,n,r):ag.single(!1,y(n))},ug=function(e,t,n,r){var i=lg(e,t,n,r);return i.fold((function(i,o){var a=sg(n)?o(t,n.config,n.validated):o(t),s=Se(a,"components").getOr([]),c=re(s,(function(n){return ug(e,t,n,r)}));return[O(O({},a),{components:c})]}),(function(e,r){if(sg(n)){var i=r(t,n.config,n.validated),o=n.validated.preprocess.getOr(w);return o(i)}return r(t)}))},dg=function(e,t,n,r){return re(n,(function(n){return ug(e,t,n,r)}))},fg=function(e,t){var n=!1,r=function(){return n},i=function(){if(n)throw new Error("Trying to use the same placeholder more than once: "+e);return n=!0,t},o=function(){return t.fold((function(e,t){return e}),(function(e,t){return e}))};return{name:y(e),required:o,used:r,replace:i}},pg=function(e,t,n,r){var i=be(r,(function(e,t){return fg(t,e)})),o=dg(e,t,n,i);return ve(i,(function(n){if(!1===n.used()&&n.required())throw new Error("Placeholder: "+n.name()+" was not found in components list\nNamespace: "+e.getOr("none")+"\nComponents: "+JSON.stringify(t.components,null,2))})),o},hg=ag.single,mg=ag.multiple,gg=y(og),vg=aa.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),bg=Ko("factory",{sketch:w}),_g=Ko("schema",[]),yg=Oo("name"),wg=So("pname","pname",Ci((function(e){return"<alloy."+ic(e.name)+">"})),oo()),xg=Eo("schema",(function(){return[jo("preprocess")]})),kg=Ko("defaults",y({})),Cg=Ko("overrides",y({})),Ag=Zi([bg,_g,yg,wg,kg,Cg]),Sg=Zi([bg,_g,yg,kg,Cg]),Eg=Zi([bg,_g,yg,wg,kg,Cg]),Tg=Zi([bg,xg,yg,Oo("unit"),wg,kg,Cg]),Og=function(e){return e.fold(B.some,B.none,B.some,B.some)},Rg=function(e){var t=function(e){return e.name};return e.fold(t,t,t,t)},Dg=function(e){return e.fold(w,w,w,w)},Lg=function(e,t){return function(n){var r=xo("Converting part type",t,n);return e(r)}},Mg=Lg(vg.required,Ag),Fg=Lg(vg.external,Sg),Ng=Lg(vg.optional,Eg),Bg=Lg(vg.group,Tg),Ig=y("entirety"),Pg=Object.freeze({__proto__:null,required:Mg,external:Fg,optional:Ng,group:Bg,asNamedPart:Og,name:Rg,asCommon:Dg,original:Ig}),$g=function(e,t,n,r){return wi(t.defaults(e,n,r),n,{uid:e.partUids[t.name]},t.overrides(e,n,r))},jg=function(e,t,n){var r={},i={};return G(n,(function(e){e.fold((function(e){r[e.pname]=hg(!0,(function(t,n,r){return e.factory.sketch($g(t,e,n,r))}))}),(function(e){var n=t.parts[e.name];i[e.name]=y(e.factory.sketch($g(t,e,n[Ig()]),n))}),(function(e){r[e.pname]=hg(!1,(function(t,n,r){return e.factory.sketch($g(t,e,n,r))}))}),(function(e){r[e.pname]=mg(!0,(function(t,n,r){var i=t[e.name];return V(i,(function(n){return e.factory.sketch(wi(e.defaults(t,n,r),n,e.overrides(t,n)))}))}))}))})),{internals:y(r),externals:y(i)}},zg=function(e,t){var n={};return G(t,(function(t){Og(t).each((function(t){var r=qg(e,t.pname);n[t.name]=function(n){var i=xo("Part: "+t.name+" in "+e,Zi(t.schema),n);return O(O({},r),{config:n,validated:i})}}))})),n},qg=function(e,t){return{uiType:gg(),owner:e,name:t}},Hg=function(e,t,n){return{uiType:gg(),owner:e,name:t,config:n,validated:{}}},Ug=function(e){return re(e,(function(e){return e.fold(B.none,B.some,B.none,B.none).map((function(e){return Io(e.name,e.schema.concat([fu(Ig())]))})).toArray()}))},Wg=function(e){return V(e,Rg)},Vg=function(e,t,n){return jg(e,t,n)},Gg=function(e,t,n){return pg(B.some(e),t,t.components,n)},Kg=function(e,t,n){var r=t.partUids[n];return e.getSystem().getByUid(r).toOptional()},Yg=function(e,t,n){return Kg(e,t,n).getOrDie("Could not find part: "+n)},Xg=function(e,t,n){var r={},i=t.partUids,o=e.getSystem();return G(n,(function(e){r[e]=y(o.getByUid(i[e]))})),r},Qg=function(e,t){var n=e.getSystem();return be(t.partUids,(function(e,t){return y(n.getByUid(e))}))},Jg=function(e){return me(e.partUids)},Zg=function(e,t,n){var r={},i=t.partUids,o=e.getSystem();return G(n,(function(e){r[e]=y(o.getByUid(i[e]).getOrDie())})),r},ev=function(e,t){var n=Wg(t);return ha(V(n,(function(t){return{key:t,value:e+"-"+t}})))},tv=function(e){return So("partUids","partUids",Ei((function(t){return ev(t.uid,e)})),oo())},nv=Object.freeze({__proto__:null,generate:zg,generateOne:Hg,schemas:Ug,names:Wg,substitutes:Vg,components:Gg,defaultUids:ev,defaultUidsSchema:tv,getAllParts:Qg,getAllPartNames:Jg,getPart:Kg,getPartOrDie:Yg,getParts:Xg,getPartsOrDie:Zg}),rv=function(e,t){var n=e.length>0?[Io("parts",e)]:[];return n.concat([Oo("uid"),Ko("dom",{}),Ko("components",[]),fu("originalSpec"),Ko("debug.sketcher",{})]).concat(t)},iv=function(e,t,n,r,i){var o=rv(r,i);return xo(e+" [SpecSchema]",Ji(o.concat(t)),n)},ov=function(e,t,n,r){var i=cv(r),o=iv(e,t,i,[],[]);return n(o,i)},av=function(e,t,n,r,i){var o=cv(i),a=Ug(n),s=tv(n),c=iv(e,t,o,a,[s]),l=Vg(e,c,n),u=Gg(e,c,l.internals());return r(c,u,o,l.externals())},sv=function(e){return Ee(e,"uid")},cv=function(e){return sv(e)?e:O(O({},e),{uid:fc("uid")})},lv=function(e){return void 0!==e.uid},uv=Ji([Oo("name"),Oo("factory"),Oo("configFields"),Ko("apis",{}),Ko("extraApis",{})]),dv=Ji([Oo("name"),Oo("factory"),Oo("configFields"),Oo("partFields"),Ko("apis",{}),Ko("extraApis",{})]),fv=function(e){var t=xo("Sketcher for "+e.name,uv,e),n=function(e){return ov(t.name,t.configFields,t.factory,e)},r=be(t.apis,kc),i=be(t.extraApis,(function(e,t){return bc(e,t)}));return O(O({name:t.name,configFields:t.configFields,sketch:n},r),i)},pv=function(e){var t=xo("Sketcher for "+e.name,dv,e),n=function(e){return av(t.name,t.configFields,t.partFields,t.factory,e)},r=zg(t.name,t.partFields),i=be(t.apis,kc),o=be(t.extraApis,(function(e,t){return bc(e,t)}));return O(O({name:t.name,partFields:t.partFields,configFields:t.configFields,sketch:n,parts:r},i),o)},hv=function(e){return"input"===st(e)&&"radio"!==qn(e,"type")||"textarea"===st(e)},mv=function(e,t,n){return t.find(e)},gv=Object.freeze({__proto__:null,getCurrent:mv}),vv=[Oo("find")],bv=hd({fields:vv,name:"composing",apis:gv}),_v=["input","button","textarea","select"],yv=function(e,t,n){var r=t.disabled()?Tv:Ov;r(e,t)},wv=function(e,t){return!0===t.useNative&&q(_v,st(e.element))},xv=function(e){return Un(e.element,"disabled")},kv=function(e){jn(e.element,"disabled","disabled")},Cv=function(e){Wn(e.element,"disabled")},Av=function(e){return"true"===qn(e.element,"aria-disabled")},Sv=function(e){jn(e.element,"aria-disabled","true")},Ev=function(e){jn(e.element,"aria-disabled","false")},Tv=function(e,t,n){t.disableClass.each((function(t){ol(e.element,t)}));var r=wv(e,t)?kv:Sv;r(e),t.onDisabled(e)},Ov=function(e,t,n){t.disableClass.each((function(t){sl(e.element,t)}));var r=wv(e,t)?Cv:Ev;r(e),t.onEnabled(e)},Rv=function(e,t){return wv(e,t)?xv(e):Av(e)},Dv=function(e,t,n,r){var i=r?Tv:Ov;i(e,t)},Lv=Object.freeze({__proto__:null,enable:Ov,disable:Tv,isDisabled:Rv,onLoad:yv,set:Dv}),Mv=function(e,t){return Rc({classes:t.disabled()?t.disableClass.toArray():[]})},Fv=function(e,t){return Ts([Os(ts(),(function(t,n){return Rv(t,e)})),ad(e,t,yv)])},Nv=Object.freeze({__proto__:null,exhibit:Mv,events:Fv}),Bv=[ea("disabled",S),Ko("useNative",!0),jo("disableClass"),su("onDisabled"),su("onEnabled")],Iv=hd({fields:Bv,name:"disabling",active:Nv,apis:Lv}),Pv=function(e,t,n,r){var i=Yp(e.element,"."+t.highlightClass);G(i,(function(n){H(r,(function(e){return e.element===n}))||(sl(n,t.highlightClass),e.getSystem().getByDom(n).each((function(n){t.onDehighlight(e,n),xs(n,ws())})))}))},$v=function(e,t,n){return Pv(e,t,n,[])},jv=function(e,t,n,r){Vv(e,t,n,r)&&(sl(r.element,t.highlightClass),t.onDehighlight(e,r),xs(r,ws()))},zv=function(e,t,n,r){Pv(e,t,n,[r]),Vv(e,t,n,r)||(ol(r.element,t.highlightClass),t.onHighlight(e,r),xs(r,ys()))},qv=function(e,t,n){Yv(e,t).each((function(r){zv(e,t,n,r)}))},Hv=function(e,t,n){Xv(e,t).each((function(r){zv(e,t,n,r)}))},Uv=function(e,t,n,r){Kv(e,t,n,r).fold((function(e){throw e}),(function(r){zv(e,t,n,r)}))},Wv=function(e,t,n,r){var i=eb(e,t),o=ee(i,r);o.each((function(r){zv(e,t,n,r)}))},Vv=function(e,t,n,r){return cl(r.element,t.highlightClass)},Gv=function(e,t,n){return Pl(e.element,"."+t.highlightClass).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},Kv=function(e,t,n,r){var i=Yp(e.element,"."+t.itemClass);return B.from(i[r]).fold((function(){return ri.error(new Error("No element found with index "+r))}),e.getSystem().getByDom)},Yv=function(e,t,n){return Pl(e.element,"."+t.itemClass).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},Xv=function(e,t,n){var r=Yp(e.element,"."+t.itemClass),i=r.length>0?B.some(r[r.length-1]):B.none();return i.bind((function(t){return e.getSystem().getByDom(t).toOptional()}))},Qv=function(e,t,n,r){var i=Yp(e.element,"."+t.itemClass),o=te(i,(function(e){return cl(e,t.highlightClass)}));return o.bind((function(t){var n=Eu(t,r,0,i.length-1);return e.getSystem().getByDom(i[n]).toOptional()}))},Jv=function(e,t,n){return Qv(e,t,n,-1)},Zv=function(e,t,n){return Qv(e,t,n,1)},eb=function(e,t,n){var r=Yp(e.element,"."+t.itemClass);return De(V(r,(function(t){return e.getSystem().getByDom(t).toOptional()})))},tb=Object.freeze({__proto__:null,dehighlightAll:$v,dehighlight:jv,highlight:zv,highlightFirst:qv,highlightLast:Hv,highlightAt:Uv,highlightBy:Wv,isHighlighted:Vv,getHighlighted:Gv,getFirst:Yv,getLast:Xv,getPrevious:Jv,getNext:Zv,getCandidates:eb}),nb=[Oo("highlightClass"),Oo("itemClass"),su("onHighlight"),su("onDehighlight")],rb=hd({fields:nb,name:"highlighting",apis:tb}),ib=[8],ob=[9],ab=[13],sb=[27],cb=[32],lb=[37],ub=[38],db=[39],fb=[40],pb=function(e,t,n){var r=oe(e.slice(0,t)),i=oe(e.slice(t+1));return ee(r.concat(i),n)},hb=function(e,t,n){var r=oe(e.slice(0,t));return ee(r,n)},mb=function(e,t,n){var r=e.slice(0,t),i=e.slice(t+1);return ee(i.concat(r),n)},gb=function(e,t,n){var r=e.slice(t+1);return ee(r,n)},vb=function(e){return function(t){var n=t.raw;return q(e,n.which)}},bb=function(e){return function(t){return ie(e,(function(e){return e(t)}))}},_b=function(e){var t=e.raw;return!0===t.shiftKey},yb=function(e){var t=e.raw;return!0===t.ctrlKey},wb=C(_b),xb=function(e,t){return{matches:e,classification:t}},kb=function(e,t){var n=ee(e,(function(e){return e.matches(t)}));return n.map((function(e){return e.classification}))},Cb=function(e,t,n){var r=t.exists((function(e){return n.exists((function(t){return ln(t,e)}))}));r||ks(e,gs(),{prevFocus:t,newFocus:n})},Ab=function(){var e=function(e){return Sd(e.element)},t=function(t,n){var r=e(t);t.getSystem().triggerFocus(n,t.element);var i=e(t);Cb(t,r,i)};return{get:e,set:t}},Sb=function(){var e=function(e){return rb.getHighlighted(e).map((function(e){return e.element}))},t=function(t,n){var r=e(t);t.getSystem().getByDom(n).fold(g,(function(e){rb.highlight(t,e)}));var i=e(t);Cb(t,r,i)};return{get:e,set:t}};(function(e){e["OnFocusMode"]="onFocus",e["OnEnterOrSpaceMode"]="onEnterOrSpace",e["OnApiMode"]="onApi"})(Pp||(Pp={}));var Eb=function(e,t,n,r,i){var o=function(){return e.concat([Ko("focusManager",Ab()),Yo("focusInside","onFocus",vo((function(e){return q(["onFocus","onEnterOrSpace","onApi"],e)?ri.value(e):ri.error("Invalid value for focusInside")}))),du("handler",c),du("state",t),du("sendFocusIn",i)])},a=function(e,t,n,r,i){var o=n(e,t,r,i);return kb(o,t.event).bind((function(n){return n(e,t,r,i)}))},s=function(e,t){var o=e.focusInside!==Pp.OnFocusMode?B.none():i(e).map((function(n){return Ls(Qa(),(function(r,i){n(r,e,t),i.stop()}))})),s=function(n,r){var o=vb(cb.concat(ab))(r.event);e.focusInside===Pp.OnEnterOrSpaceMode&&o&&wa(n,r)&&i(e).each((function(i){i(n,e,t),r.stop()}))},c=[Ls(ja(),(function(r,i){a(r,i,n,e,t).fold((function(){s(r,i)}),(function(e){i.stop()}))})),Ls(za(),(function(n,i){a(n,i,r,e,t).each((function(e){i.stop()}))}))];return Ts(o.toArray().concat(c))},c={schema:o,processKey:a,toEvents:s};return c},Tb=function(e){var t=[jo("onEscape"),jo("onEnter"),Ko("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Ko("firstTabstop",0),Ko("useTabstopAt",E),jo("visibilitySelector")].concat([e]),n=function(e,t){var n=e.visibilitySelector.bind((function(e){return $l(t,e)})).getOr(t);return ar(n)>0},r=function(e,t){var r=Yp(e.element,t.selector),i=X(r,(function(e){return n(t,e)}));return B.from(i[t.firstTabstop])},i=function(e,t){return t.focusManager.get(e).bind((function(e){return $l(e,t.selector)}))},o=function(e,t){return n(e,t)&&e.useTabstopAt(t)},a=function(e,t,n){r(e,t).each((function(n){t.focusManager.set(e,n)}))},s=function(e,t,n,r,i){return i(t,n,(function(e){return o(r,e)})).fold((function(){return r.cyclic?B.some(!0):B.none()}),(function(t){return r.focusManager.set(e,t),B.some(!0)}))},c=function(e,t,n,r){var o=Yp(e.element,n.selector);return i(e,n).bind((function(t){var i=te(o,k(ln,t));return i.bind((function(t){return s(e,o,t,n,r)}))}))},l=function(e,t,n){var r=n.cyclic?pb:hb;return c(e,t,n,r)},u=function(e,t,n){var r=n.cyclic?mb:gb;return c(e,t,n,r)},d=function(e,t,n){return n.onEnter.bind((function(n){return n(e,t)}))},f=function(e,t,n){return n.onEscape.bind((function(n){return n(e,t)}))},p=y([xb(bb([_b,vb(ob)]),l),xb(vb(ob),u),xb(vb(sb),f),xb(bb([wb,vb(ab)]),d)]),h=y([]);return Eb(t,Cc.init,p,h,(function(){return B.some(a)}))},Ob=Tb(Eo("cyclic",S)),Rb=Tb(Eo("cyclic",E)),Db=function(e,t,n){return As(e,n,ts()),B.some(!0)},Lb=function(e,t,n){var r=hv(n)&&vb(cb)(t.event);return r?B.none():Db(e,t,n)},Mb=function(e,t){return B.some(!0)},Fb=[Ko("execute",Lb),Ko("useSpace",!1),Ko("useEnter",!0),Ko("useControlEnter",!1),Ko("useDown",!1)],Nb=function(e,t,n){return n.execute(e,t,e.element)},Bb=function(e,t,n,r){var i=n.useSpace&&!hv(e.element)?cb:[],o=n.useEnter?ab:[],a=n.useDown?fb:[],s=i.concat(o).concat(a);return[xb(vb(s),Nb)].concat(n.useControlEnter?[xb(bb([yb,vb(ab)]),Nb)]:[])},Ib=function(e,t,n,r){return n.useSpace&&!hv(e.element)?[xb(vb(cb),Mb)]:[]},Pb=Eb(Fb,Cc.init,Bb,Ib,(function(){return B.none()})),$b=function(){var e=rf(),t=function(t,n){e.set({numRows:t,numColumns:n})},n=function(){return e.get().map((function(e){return e.numRows}))},r=function(){return e.get().map((function(e){return e.numColumns}))};return Ac({readState:function(){return e.get().map((function(e){return{numRows:String(e.numRows),numColumns:String(e.numColumns)}})).getOr({numRows:"?",numColumns:"?"})},setGridSize:t,getNumRows:n,getNumColumns:r})},jb=function(e){return e.state(e)},zb=Object.freeze({__proto__:null,flatgrid:$b,init:jb}),qb=function(e){return function(t,n,r,i){var o=e(t.element);return Vb(o,t,n,r,i)}},Hb=function(e,t){var n=Nf(e,t);return qb(n)},Ub=function(e,t){var n=Nf(t,e);return qb(n)},Wb=function(e){return function(t,n,r,i){return Vb(e,t,n,r,i)}},Vb=function(e,t,n,r,i){var o=r.focusManager.get(t).bind((function(n){return e(t.element,n,r,i)}));return o.map((function(e){return r.focusManager.set(t,e),!0}))},Gb=Wb,Kb=Wb,Yb=Wb,Xb=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},Qb=function(e){return!Xb(e.dom)},Jb=function(e,t){return te(e,t).map((function(t){return{index:t,candidates:e}}))},Zb=function(e,t,n){var r=function(e){return ln(e,t)},i=Yp(e,n),o=X(i,Qb);return Jb(o,r)},e_=function(e,t){return te(e,(function(e){return ln(t,e)}))},t_=function(e,t,n,r){var i=Math.floor(t/n),o=t%n;return r(i,o).bind((function(t){var r=t.row*n+t.column;return r>=0&&r<e.length?B.some(e[r]):B.none()}))},n_=function(e,t,n,r,i){return t_(e,t,r,(function(t,o){var a=t===n-1,s=a?e.length-t*r:r,c=Eu(o,i,0,s-1);return B.some({row:t,column:c})}))},r_=function(e,t,n,r,i){return t_(e,t,r,(function(t,o){var a=Eu(t,i,0,n-1),s=a===n-1,c=s?e.length-a*r:r,l=Tu(o,0,c-1);return B.some({row:a,column:l})}))},i_=function(e,t,n,r){return n_(e,t,n,r,1)},o_=function(e,t,n,r){return n_(e,t,n,r,-1)},a_=function(e,t,n,r){return r_(e,t,n,r,-1)},s_=function(e,t,n,r){return r_(e,t,n,r,1)},c_=[Oo("selector"),Ko("execute",Lb),cu("onEscape"),Ko("captureTab",!1),pu()],l_=function(e,t,n){Pl(e.element,t.selector).each((function(n){t.focusManager.set(e,n)}))},u_=function(e,t){return t.focusManager.get(e).bind((function(e){return $l(e,t.selector)}))},d_=function(e,t,n,r){return u_(e,n).bind((function(r){return n.execute(e,t,r)}))},f_=function(e){return function(t,n,r,i){return Zb(t,n,r.selector).bind((function(t){return e(t.candidates,t.index,i.getNumRows().getOr(r.initSize.numRows),i.getNumColumns().getOr(r.initSize.numColumns))}))}},p_=function(e,t,n){return n.captureTab?B.some(!0):B.none()},h_=function(e,t,n){return n.onEscape(e,t)},m_=f_(o_),g_=f_(i_),v_=f_(a_),b_=f_(s_),__=y([xb(vb(lb),Hb(m_,g_)),xb(vb(db),Ub(m_,g_)),xb(vb(ub),Gb(v_)),xb(vb(fb),Kb(b_)),xb(bb([_b,vb(ob)]),p_),xb(bb([wb,vb(ob)]),p_),xb(vb(sb),h_),xb(vb(cb.concat(ab)),d_)]),y_=y([xb(vb(cb),Mb)]),w_=Eb(c_,$b,__,y_,(function(){return B.some(l_)})),x_=function(e,t,n,r){var i=function(e){return"button"===st(e)&&"disabled"===qn(e,"disabled")},o=function(e,t,n){var a=Eu(t,r,0,n.length-1);return a===e?B.none():i(n[a])?o(e,a,n):B.from(n[a])};return Zb(e,n,t).bind((function(e){var t=e.index,n=e.candidates;return o(t,t,n)}))},k_=[Oo("selector"),Ko("getInitial",B.none),Ko("execute",Lb),cu("onEscape"),Ko("executeOnMove",!1),Ko("allowVertical",!0)],C_=function(e,t){return t.focusManager.get(e).bind((function(e){return $l(e,t.selector)}))},A_=function(e,t,n){return C_(e,n).bind((function(r){return n.execute(e,t,r)}))},S_=function(e,t,n){t.getInitial(e).orThunk((function(){return Pl(e.element,t.selector)})).each((function(n){t.focusManager.set(e,n)}))},E_=function(e,t,n){return x_(e,n.selector,t,-1)},T_=function(e,t,n){return x_(e,n.selector,t,1)},O_=function(e){return function(t,n,r,i){return e(t,n,r,i).bind((function(){return r.executeOnMove?A_(t,n,r):B.some(!0)}))}},R_=function(e,t,n){return n.onEscape(e,t)},D_=function(e,t,n,r){var i=lb.concat(n.allowVertical?ub:[]),o=db.concat(n.allowVertical?fb:[]);return[xb(vb(i),O_(Hb(E_,T_))),xb(vb(o),O_(Ub(E_,T_))),xb(vb(ab),A_),xb(vb(cb),A_),xb(vb(sb),R_)]},L_=y([xb(vb(cb),Mb)]),M_=Eb(k_,Cc.init,D_,L_,(function(){return B.some(S_)})),F_=function(e,t,n){return B.from(e[t]).bind((function(e){return B.from(e[n]).map((function(e){return{rowIndex:t,columnIndex:n,cell:e}}))}))},N_=function(e,t,n,r){var i=e[t],o=i.length,a=Eu(n,r,0,o-1);return F_(e,t,a)},B_=function(e,t,n,r){var i=Eu(n,r,0,e.length-1),o=e[i].length,a=Tu(t,0,o-1);return F_(e,i,a)},I_=function(e,t,n,r){var i=e[t],o=i.length,a=Tu(n+r,0,o-1);return F_(e,t,a)},P_=function(e,t,n,r){var i=Tu(n+r,0,e.length-1),o=e[i].length,a=Tu(t,0,o-1);return F_(e,i,a)},$_=function(e,t,n){return N_(e,t,n,1)},j_=function(e,t,n){return N_(e,t,n,-1)},z_=function(e,t,n){return B_(e,n,t,-1)},q_=function(e,t,n){return B_(e,n,t,1)},H_=function(e,t,n){return I_(e,t,n,-1)},U_=function(e,t,n){return I_(e,t,n,1)},W_=function(e,t,n){return P_(e,n,t,-1)},V_=function(e,t,n){return P_(e,n,t,1)},G_=[Io("selectors",[Oo("row"),Oo("cell")]),Ko("cycles",!0),Ko("previousSelector",B.none),Ko("execute",Lb)],K_=function(e,t,n){var r=t.previousSelector(e).orThunk((function(){var n=t.selectors;return Pl(e.element,n.cell)}));r.each((function(n){t.focusManager.set(e,n)}))},Y_=function(e,t,n){return Sd(e.element).bind((function(r){return n.execute(e,t,r)}))},X_=function(e,t){return V(e,(function(e){return Yp(e,t.selectors.cell)}))},Q_=function(e,t){return function(n,r,i){var o=i.cycles?e:t;return $l(r,i.selectors.row).bind((function(e){var t=Yp(e,i.selectors.cell);return e_(t,r).bind((function(t){var r=Yp(n,i.selectors.row);return e_(r,e).bind((function(e){var n=X_(r,i);return o(n,e,t).map((function(e){return e.cell}))}))}))}))}},J_=Q_(j_,H_),Z_=Q_($_,U_),ey=Q_(z_,W_),ty=Q_(q_,V_),ny=y([xb(vb(lb),Hb(J_,Z_)),xb(vb(db),Ub(J_,Z_)),xb(vb(ub),Gb(ey)),xb(vb(fb),Kb(ty)),xb(vb(cb.concat(ab)),Y_)]),ry=y([xb(vb(cb),Mb)]),iy=Eb(G_,Cc.init,ny,ry,(function(){return B.some(K_)})),oy=[Oo("selector"),Ko("execute",Lb),Ko("moveOnTab",!1)],ay=function(e,t,n){return n.focusManager.get(e).bind((function(r){return n.execute(e,t,r)}))},sy=function(e,t,n){Pl(e.element,t.selector).each((function(n){t.focusManager.set(e,n)}))},cy=function(e,t,n){return x_(e,n.selector,t,-1)},ly=function(e,t,n){return x_(e,n.selector,t,1)},uy=function(e,t,n,r){return n.moveOnTab?Yb(cy)(e,t,n,r):B.none()},dy=function(e,t,n,r){return n.moveOnTab?Yb(ly)(e,t,n,r):B.none()},fy=y([xb(vb(ub),Yb(cy)),xb(vb(fb),Yb(ly)),xb(bb([_b,vb(ob)]),uy),xb(bb([wb,vb(ob)]),dy),xb(vb(ab),ay),xb(vb(cb),ay)]),py=y([xb(vb(cb),Mb)]),hy=Eb(oy,Cc.init,fy,py,(function(){return B.some(sy)})),my=[cu("onSpace"),cu("onEnter"),cu("onShiftEnter"),cu("onLeft"),cu("onRight"),cu("onTab"),cu("onShiftTab"),cu("onUp"),cu("onDown"),cu("onEscape"),Ko("stopSpaceKeyup",!1),jo("focusIn")],gy=function(e,t,n){return[xb(vb(cb),n.onSpace),xb(bb([wb,vb(ab)]),n.onEnter),xb(bb([_b,vb(ab)]),n.onShiftEnter),xb(bb([_b,vb(ob)]),n.onShiftTab),xb(bb([wb,vb(ob)]),n.onTab),xb(vb(ub),n.onUp),xb(vb(fb),n.onDown),xb(vb(lb),n.onLeft),xb(vb(db),n.onRight),xb(vb(cb),n.onSpace),xb(vb(sb),n.onEscape)]},vy=function(e,t,n){return n.stopSpaceKeyup?[xb(vb(cb),Mb)]:[]},by=Eb(my,Cc.init,gy,vy,(function(e){return e.focusIn})),_y=Ob.schema(),yy=Rb.schema(),wy=M_.schema(),xy=w_.schema(),ky=iy.schema(),Cy=Pb.schema(),Ay=hy.schema(),Sy=by.schema(),Ey=Object.freeze({__proto__:null,acyclic:_y,cyclic:yy,flow:wy,flatgrid:xy,matrix:ky,execution:Cy,menu:Ay,special:Sy}),Ty=function(e){return Te(e,"setGridSize")},Oy=gd({branchKey:"mode",branches:Ey,name:"keying",active:{events:function(e,t){var n=e.handler;return n.toEvents(e,t)}},apis:{focusIn:function(e,t,n){t.sendFocusIn(t).fold((function(){e.getSystem().triggerFocus(e.element,e.element)}),(function(r){r(e,t,n)}))},setGridSize:function(e,t,n,r,i){Ty(n)&&n.setGridSize(r,i)}},state:zb}),Ry=function(e,t,n,r){Ed((function(){var t=V(r,e.getSystem().build);Hh(e,t)}),e.element)},Dy=function(e,t,n,r){var i=e.getSystem().build(r);Wh(e,i,n)},Ly=function(e,t,n,r){Dy(e,t,Rr,r)},My=function(e,t,n,r){Dy(e,t,Or,r)},Fy=function(e,t,n,r){var i=Ny(e),o=ee(i,(function(e){return ln(r.element,e.element)}));o.each(Gh)},Ny=function(e,t){return e.components()},By=function(e,t,n,r,i){var o=Ny(e);return B.from(o[r]).map((function(o){return Fy(e,t,n,o),i.each((function(n){Dy(e,t,(function(e,t){Dr(e,t,r)}),n)})),o}))},Iy=function(e,t,n,r,i){var o=Ny(e);return te(o,r).bind((function(r){return By(e,t,n,r,i)}))},Py=Object.freeze({__proto__:null,append:Ly,prepend:My,remove:Fy,replaceAt:By,replaceBy:Iy,set:Ry,contents:Ny}),$y=hd({fields:[],name:"replacing",apis:Py}),jy=function(e,t){var n=Ts(t);return hd({fields:[Oo("enabled")],name:e,active:{events:y(n)}})},zy=function(e,t){var n=jy(e,t);return{key:e,value:{config:{},me:n,configAsRaw:y({}),initialConfig:{},state:Cc}}},qy=function(e,t){t.ignore||(xd(e.element),t.onFocus(e))},Hy=function(e,t){t.ignore||kd(e.element)},Uy=function(e){return Cd(e.element)},Wy=Object.freeze({__proto__:null,focus:qy,blur:Hy,isFocused:Uy}),Vy=function(e,t){var n=t.ignore?{}:{attributes:{tabindex:"-1"}};return Rc(n)},Gy=function(e){return Ts([Ls(Qa(),(function(t,n){qy(t,e),n.stop()}))].concat(e.stopMousedown?[Ls(Ma(),(function(e,t){t.event.prevent()}))]:[]))},Ky=Object.freeze({__proto__:null,exhibit:Vy,events:Gy}),Yy=[su("onFocus"),Ko("stopMousedown",!1),Ko("ignore",!1)],Xy=hd({fields:Yy,name:"focusing",active:Ky,apis:Wy}),Qy=function(e){var t=function(){var t=ia(e),n=function(){return t.get()},r=function(e){return t.set(e)},i=function(){return t.set(e)},o=function(){return t.get()};return{get:n,set:r,clear:i,readState:o}};return{init:t}},Jy=function(e,t,n){var r=t.aria;r.update(e,r,n.get())},Zy=function(e,t,n){t.toggleClass.each((function(t){n.get()?ol(e.element,t):sl(e.element,t)}))},ew=function(e,t,n){rw(e,t,n,!n.get())},tw=function(e,t,n){n.set(!0),Zy(e,t,n),Jy(e,t,n)},nw=function(e,t,n){n.set(!1),Zy(e,t,n),Jy(e,t,n)},rw=function(e,t,n,r){var i=r?tw:nw;i(e,t,n)},iw=function(e,t,n){return n.get()},ow=function(e,t,n){rw(e,t,n,t.selected)},aw=Object.freeze({__proto__:null,onLoad:ow,toggle:ew,isOn:iw,on:tw,off:nw,set:rw}),sw=function(){return Rc({})},cw=function(e,t){var n=od(e,t,ew),r=ad(e,t,ow);return Ts(ne([e.toggleOnExecute?[n]:[],[r]]))},lw=Object.freeze({__proto__:null,exhibit:sw,events:cw}),uw=function(e,t,n){jn(e.element,"aria-pressed",n),t.syncWithExpanded&&pw(e,t,n)},dw=function(e,t,n){jn(e.element,"aria-selected",n)},fw=function(e,t,n){jn(e.element,"aria-checked",n)},pw=function(e,t,n){jn(e.element,"aria-expanded",n)},hw=[Ko("selected",!1),jo("toggleClass"),Ko("toggleOnExecute",!0),Yo("aria",{mode:"none"},Co("mode",{pressed:[Ko("syncWithExpanded",!1),du("update",uw)],checked:[du("update",fw)],expanded:[du("update",pw)],selected:[du("update",dw)],none:[du("update",g)]}))],mw=hd({fields:hw,name:"toggling",active:lw,apis:aw,state:Qy(!1)}),gw=function(){var e=function(e,t){t.stop(),Cs(e)};return[Ls(Ua(),e),Ls(rs(),e),$s(Oa()),$s(Ma())]},vw=function(e){var t=function(e){return Ws((function(t,n){e(t),n.stop()}))};return Ts(ne([e.map(t).toArray(),gw()]))},bw="alloy.item-hover",_w="alloy.item-focus",yw=function(e){(Sd(e.element).isNone()||Xy.isFocused(e))&&(Xy.isFocused(e)||Xy.focus(e),ks(e,bw,{item:e}))},ww=function(e){ks(e,_w,{item:e})},xw=y(bw),kw=y(_w),Cw=function(e){return{dom:e.dom,domModification:O(O({},e.domModification),{attributes:O(O(O({role:e.toggling.isSome()?"menuitemcheckbox":"menuitem"},e.domModification.attributes),{"aria-haspopup":e.hasSubmenu}),e.hasSubmenu?{"aria-expanded":!1}:{})}),behaviours:ig.augment(e.itemBehaviours,[e.toggling.fold(mw.revoke,(function(e){return mw.config(O({aria:{mode:"checked"}},e))})),Xy.config({ignore:e.ignoreFocus,stopMousedown:e.ignoreFocus,onFocus:function(e){ww(e)}}),Oy.config({mode:"execution"}),eg.config({store:{mode:"memory",initialValue:e.data}}),zy("item-type-events",D(D([],gw(),!0),[Ls(Ia(),yw),Ls(ns(),Xy.focus)],!1))]),components:e.components,eventOrder:e.eventOrder}},Aw=[Oo("data"),Oo("components"),Oo("dom"),Ko("hasSubmenu",!1),jo("toggling"),ig.field("itemBehaviours",[mw,Xy,Oy,eg]),Ko("ignoreFocus",!1),Ko("domModification",{}),du("builder",Cw),Ko("eventOrder",{})],Sw=function(e){return{dom:e.dom,components:e.components,events:Ts([js(ns())])}},Ew=[Oo("dom"),Oo("components"),du("builder",Sw)],Tw=y("item-widget"),Ow=y([Mg({name:"widget",overrides:function(e){return{behaviours:fd([eg.config({store:{mode:"manual",getValue:function(t){return e.data},setValue:g}})])}}})]),Rw=function(e){var t=Vg(Tw(),e,Ow()),n=Gg(Tw(),e,t.internals()),r=function(t){return Kg(t,e,"widget").map((function(e){return Oy.focusIn(e),e}))},i=function(t,n){return hv(n.event.target)?B.none():function(){return e.autofocus?(n.setSource(t.element),B.none()):B.none()}()};return{dom:e.dom,components:n,domModification:e.domModification,events:Ts([Ws((function(e,t){r(e).each((function(e){t.stop()}))})),Ls(Ia(),yw),Ls(ns(),(function(t,n){e.autofocus?r(t):Xy.focus(t)}))]),behaviours:ig.augment(e.widgetBehaviours,[eg.config({store:{mode:"memory",initialValue:e.data}}),Xy.config({ignore:e.ignoreFocus,onFocus:function(e){ww(e)}}),Oy.config({mode:"special",focusIn:e.autofocus?function(e){r(e)}:vd(),onLeft:i,onRight:i,onEscape:function(t,n){return Xy.isFocused(t)||e.autofocus?e.autofocus?(n.setSource(t.element),B.none()):B.none():(Xy.focus(t),B.some(!0))}})])}},Dw=[Oo("uid"),Oo("data"),Oo("components"),Oo("dom"),Ko("autofocus",!1),Ko("ignoreFocus",!1),ig.field("widgetBehaviours",[eg,Xy,Oy]),Ko("domModification",{}),tv(Ow()),du("builder",Rw)],Lw=Co("type",{widget:Dw,item:Aw,separator:Ew}),Mw=function(e,t){return{mode:"flatgrid",selector:"."+e.markers.item,initSize:{numColumns:t.initSize.numColumns,numRows:t.initSize.numRows},focusManager:e.focusManager}},Fw=function(e,t){return{mode:"matrix",selectors:{row:t.rowSelector,cell:"."+e.markers.item},focusManager:e.focusManager}},Nw=function(e,t){return{mode:"menu",selector:"."+e.markers.item,moveOnTab:t.moveOnTab,focusManager:e.focusManager}},Bw=y([Bg({factory:{sketch:function(e){var t=xo("menu.spec item",Lw,e);return t.builder(t)}},name:"items",unit:"item",defaults:function(e,t){return Ee(t,"uid")?t:O(O({},t),{uid:fc("item")})},overrides:function(e,t){return{type:t.type,ignoreFocus:e.fakeFocus,domModification:{classes:[e.markers.item]}}}})]),Iw=y([Oo("value"),Oo("items"),Oo("dom"),Oo("components"),Ko("eventOrder",{}),tg("menuBehaviours",[rb,eg,bv,Oy]),Yo("movement",{mode:"menu",moveOnTab:!0},Co("mode",{grid:[pu(),du("config",Mw)],matrix:[du("config",Fw),Oo("rowSelector")],menu:[Ko("moveOnTab",!0),du("config",Nw)]})),ru(),Ko("fakeFocus",!1),Ko("focusManager",Ab()),su("onHighlight")]),Pw=y("alloy.menu-focus"),$w=function(e,t,n,r){return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:rg(e.menuBehaviours,[rb.config({highlightClass:e.markers.selectedItem,itemClass:e.markers.item,onHighlight:e.onHighlight}),eg.config({store:{mode:"memory",initialValue:e.value}}),bv.config({find:B.some}),Oy.config(e.movement.config(e,e.movement))]),events:Ts([Ls(kw(),(function(e,t){var n=t.event;e.getSystem().getByDom(n.target).each((function(n){rb.highlight(e,n),t.stop(),ks(e,Pw(),{menu:e,item:n})}))})),Ls(xw(),(function(e,t){var n=t.event.item;rb.highlight(e,n)}))]),components:t,eventOrder:e.eventOrder,domModification:{attributes:{role:"menu"}}}},jw=pv({name:"Menu",configFields:Iw(),partFields:Bw(),factory:$w}),zw=function(e){return _e(e,(function(e,t){return{k:e,v:t}}))},qw=function(e,t,n,r){return Se(n,r).bind((function(r){return Se(e,r).bind((function(r){var i=qw(e,t,n,r);return B.some([r].concat(i))}))})).getOr([])},Hw=function(e,t){var n={};ve(e,(function(e,t){G(e,(function(e){n[e]=t}))}));var r=t,i=zw(t),o=be(i,(function(e,t){return[t].concat(qw(n,r,i,t))}));return be(n,(function(e){return Se(o,e).getOr([e])}))},Uw=function(){var e=ia({}),t=ia({}),n=ia({}),r=rf(),i=ia({}),o=function(){e.set({}),t.set({}),n.set({}),r.clear()},a=function(){return r.get().isNone()},s=function(e,n){var r;t.set(O(O({},t.get()),(r={},r[e]={type:"prepared",menu:n},r)))},c=function(o,a,s,c){r.set(o),e.set(s),t.set(a),i.set(c);var l=Hw(c,s);n.set(l)},l=function(t){return Ce(e.get(),(function(e,n){return e===t}))},u=function(e,t,n){return m(e).bind((function(r){return l(e).bind((function(e){return t(e).map((function(e){return{triggeredMenu:r,triggeringItem:e,triggeringPath:n}}))}))}))},d=function(e,t){var i=X(v(e).toArray(),(function(e){return m(e).isSome()}));return Se(n.get(),e).bind((function(e){var n=oe(i.concat(e)),o=re(n,(function(e,i){return u(e,t,n.slice(0,i+1)).fold((function(){return Oe(r.get(),e)?[]:[B.none()]}),(function(e){return[B.some(e)]}))}));return Le(o)}))},f=function(t){return Se(e.get(),t).map((function(e){var r=Se(n.get(),t).getOr([]);return[e].concat(r)}))},p=function(e){return Se(n.get(),e).bind((function(e){return e.length>1?B.some(e.slice(1)):B.none()}))},h=function(e){return Se(n.get(),e)},m=function(e){return g(e).bind(Ww)},g=function(e){return Se(t.get(),e)},v=function(t){return Se(e.get(),t)},b=function(e){var t=i.get();return ae(me(t),e)},_=function(){return r.get().bind(m)},y=function(){return t.get()};return{setMenuBuilt:s,setContents:c,expand:f,refresh:h,collapse:p,lookupMenu:g,lookupItem:v,otherMenus:b,getPrimary:_,getMenus:y,clear:o,isClear:a,getTriggeringPath:d}},Ww=function(e){return"prepared"===e.type?B.some(e.menu):B.none()},Vw={init:Uw,extractPreparedMenu:Ww},Gw=function(e,t){var n,r=rf(),i=function(t,n,r){return be(r,(function(r,i){var o=function(){return jw.sketch(O(O({},r),{value:i,markers:e.markers,fakeFocus:e.fakeFocus,onHighlight:e.onHighlight,focusManager:e.fakeFocus?Sb():Ab()}))};return i===n?{type:"prepared",menu:t.getSystem().build(o())}:{type:"notbuilt",nbMenu:o}}))},o=Vw.init(),a=function(t){var n=i(t,e.data.primary,e.data.menus),r=l();return o.setContents(e.data.primary,n,e.data.expansions,r),o.getPrimary()},s=function(e){return eg.getValue(e).value},c=function(e,t,n){return he(t,(function(e){if(!e.getSystem().isConnected())return B.none();var t=rb.getCandidates(e);return ee(t,(function(e){return s(e)===n}))}))},l=function(t){return be(e.data.menus,(function(e,t){return re(e.items,(function(e){return"separator"===e.type?[]:[e.data.value]}))}))},u=function(e,t){rb.highlight(e,t),rb.getHighlighted(t).orThunk((function(){return rb.getFirst(t)})).each((function(t){As(e,t.element,ns())}))},d=function(e,t){return De(V(t,(function(t){return e.lookupMenu(t).bind((function(e){return"prepared"===e.type?B.some(e.menu):B.none()}))})))},f=function(t,n,r){var i=d(n,n.otherMenus(r));G(i,(function(n){ul(n.element,[e.markers.backgroundMenu]),e.stayInDom||$y.remove(t,n)}))},p=function(t){return r.get().getOrThunk((function(){var n={},i=Yp(t.element,"."+e.markers.item),o=X(i,(function(e){return"true"===qn(e,"aria-haspopup")}));return G(o,(function(e){t.getSystem().getByDom(e).each((function(e){var t=s(e);n[t]=e}))})),r.set(n),n}))},h=function(e,t){var n=p(e);ve(n,(function(e,n){var r=q(t,n);jn(e.element,"aria-expanded",r)}))},m=function(t,n,r){return B.from(r[0]).bind((function(i){return n.lookupMenu(i).bind((function(i){if("notbuilt"===i.type)return B.none();var o=i.menu,a=d(n,r.slice(1));return G(a,(function(t){ol(t.element,e.markers.backgroundMenu)})),Bn(o.element)||$y.append(t,Tl(o)),ul(o.element,[e.markers.backgroundMenu]),u(t,o),f(t,n,r),B.some(o)}))}))};(function(e){e[e["HighlightSubmenu"]=0]="HighlightSubmenu",e[e["HighlightParent"]=1]="HighlightParent"})(n||(n={}));var v=function(e,t,n){if("notbuilt"===n.type){var r=e.getSystem().build(n.nbMenu());return o.setMenuBuilt(t,r),r}return n.menu},b=function(t,r,i){if(void 0===i&&(i=n.HighlightSubmenu),r.hasConfigured(Iv)&&Iv.isDisabled(r))return B.some(r);var a=s(r);return o.expand(a).bind((function(a){return h(t,a),B.from(a[0]).bind((function(s){return o.lookupMenu(s).bind((function(c){var l=v(t,s,c);return Bn(l.element)||$y.append(t,Tl(l)),e.onOpenSubmenu(t,r,l,oe(a)),i===n.HighlightSubmenu?(rb.highlightFirst(l),m(t,o,a)):(rb.dehighlightAll(l),B.some(r))}))}))}))},_=function(t,n){var r=s(n);return o.collapse(r).bind((function(r){return h(t,r),m(t,o,r).map((function(r){return e.onCollapseMenu(t,n,r),r}))}))},y=function(e,t){var n=s(t);return o.refresh(n).bind((function(t){return h(e,t),m(e,o,t)}))},w=function(e,t){return hv(t.element)?B.none():b(e,t,n.HighlightSubmenu)},x=function(e,t){return hv(t.element)?B.none():_(e,t)},k=function(t,n){return _(t,n).orThunk((function(){return e.onEscape(t,n).map((function(){return t}))}))},C=function(t){return function(n,r){return $l(r.getSource(),"."+e.markers.item).bind((function(e){return n.getSystem().getByDom(e).toOptional().bind((function(e){return t(n,e).map(E)}))}))}},A=Ts([Ls(Pw(),(function(e,t){var n=t.event.item;o.lookupItem(s(n)).each((function(){var n=t.event.menu;rb.highlight(e,n);var r=s(t.event.item);o.refresh(r).each((function(t){return f(e,o,t)}))}))})),Ws((function(t,r){var i=r.event.target;t.getSystem().getByDom(i).each((function(r){var i=s(r);0===i.indexOf("collapse-item")&&_(t,r),b(t,r,n.HighlightSubmenu).fold((function(){e.onExecute(t,r)}),g)}))})),qs((function(t,n){a(t).each((function(n){$y.append(t,Tl(n)),e.onOpenMenu(t,n),e.highlightImmediately&&u(t,n)}))}))].concat(e.navigateOnHover?[Ls(xw(),(function(t,r){var i=r.event.item;y(t,i),b(t,i,n.HighlightParent),e.onHover(t,i)}))]:[])),S=function(e){return rb.getHighlighted(e).bind(rb.getHighlighted)},T=function(e){S(e).each((function(t){_(e,t)}))},R=function(e){o.getPrimary().each((function(t){u(e,t)}))},D=function(e){return B.from(e.components()[0]).filter((function(e){return"menu"===qn(e.element,"role")}))},L=function(t){var n=o.getPrimary().bind((function(e){return S(t).bind((function(e){var n=s(e),r=Ae(o.getMenus()),i=De(V(r,Vw.extractPreparedMenu));return o.getTriggeringPath(n,(function(e){return c(t,i,e)}))})).map((function(t){return{primary:e,triggeringPath:t}}))}));n.fold((function(){D(t).each((function(n){e.onRepositionMenu(t,n,[])}))}),(function(n){var r=n.primary,i=n.triggeringPath;e.onRepositionMenu(t,r,i)}))},M={collapseMenu:T,highlightPrimary:R,repositionMenus:L};return{uid:e.uid,dom:e.dom,markers:e.markers,behaviours:rg(e.tmenuBehaviours,[Oy.config({mode:"special",onRight:C(w),onLeft:C(x),onEscape:C(k),focusIn:function(e,t){o.getPrimary().each((function(t){As(e,t.element,ns())}))}}),rb.config({highlightClass:e.markers.selectedMenu,itemClass:e.markers.menu}),bv.config({find:function(e){return rb.getHighlighted(e)}}),$y.config({})]),eventOrder:e.eventOrder,apis:M,events:A}},Kw=y("collapse-item"),Yw=function(e,t,n){return{primary:e,menus:t,expansions:n}},Xw=function(e,t){return{primary:e,menus:pa(e,t),expansions:{}}},Qw=function(e){return{value:ic(Kw()),meta:{text:e}}},Jw=fv({name:"TieredMenu",configFields:[uu("onExecute"),uu("onEscape"),lu("onOpenMenu"),lu("onOpenSubmenu"),su("onRepositionMenu"),su("onCollapseMenu"),Ko("highlightImmediately",!0),Io("data",[Oo("primary"),Oo("menus"),Oo("expansions")]),Ko("fakeFocus",!1),su("onHighlight"),su("onHover"),iu(),Oo("dom"),Ko("navigateOnHover",!0),Ko("stayInDom",!1),tg("tmenuBehaviours",[Oy,rb,bv,$y]),Ko("eventOrder",{})],apis:{collapseMenu:function(e,t){e.collapseMenu(t)},highlightPrimary:function(e,t){e.highlightPrimary(t)},repositionMenus:function(e,t){e.repositionMenus(t)}},factory:Gw,extraApis:{tieredData:Yw,singleData:Xw,collapseItem:Qw}}),Zw=function(e,t,n,r,i){var o=function(){return e.lazySink(t)},a="horizontal"===r.type?{layouts:{onLtr:function(){return Zu()},onRtl:function(){return ed()}}}:{},s=function(e){return 2===e.length},c=function(e){return s(e)?a:{}};return Jw.sketch({dom:{tag:"div"},data:r.data,markers:r.menu.markers,highlightImmediately:r.menu.highlightImmediately,onEscape:function(){return bm.close(t),e.onEscape.map((function(e){return e(t)})),B.some(!0)},onExecute:function(){return B.some(!0)},onOpenMenu:function(e,t){Ph.positionWithinBounds(o().getOrDie(),t,n,i())},onOpenSubmenu:function(e,t,n,r){var i=o().getOrDie();Ph.position(i,n,{anchor:O({type:"submenu",item:t},c(r))})},onRepositionMenu:function(e,t,r){var a=o().getOrDie();Ph.positionWithinBounds(a,t,n,i()),G(r,(function(e){var t=c(e.triggeringPath);Ph.position(a,e.triggeredMenu,{anchor:O({type:"submenu",item:e.triggeringItem},t)})}))}})},ex=function(e,t){var n=function(t,n){var r=e.getRelated(t);return r.exists((function(e){return Hl(e,n)}))},r=function(e,t){bm.setContent(e,t)},i=function(e,t,n){o(e,t,n,B.none())},o=function(e,t,n,r){a(e,t,n,(function(){return r.map((function(e){return Qr(e)}))}))},a=function(t,n,r,i){var o=e.lazySink(t).getOrDie();bm.openWhileCloaked(t,n,(function(){return Ph.positionWithinBounds(o,t,r,i())})),eg.setValue(t,B.some({mode:"position",config:r,getBounds:i}))},s=function(e,t,n){c(e,t,n,B.none)},c=function(t,n,r,i){var o=Zw(e,t,n,r,i);bm.open(t,o),eg.setValue(t,B.some({mode:"menu",menu:o}))},l=function(e){bm.isOpen(e)&&(eg.setValue(e,B.none()),bm.close(e))},u=function(e){return bm.getState(e)},d=function(t){bm.isOpen(t)&&eg.getValue(t).each((function(n){switch(n.mode){case"menu":bm.getState(t).each(Jw.repositionMenus);break;case"position":var r=e.lazySink(t).getOrDie();Ph.positionWithinBounds(r,t,n.config,n.getBounds());break}}))},f={setContent:r,showAt:i,showWithin:o,showWithinBounds:a,showMenuAt:s,showMenuWithinBounds:c,hide:l,getContent:u,reposition:d,isOpen:bm.isOpen};return{uid:e.uid,dom:e.dom,behaviours:rg(e.inlineBehaviours,[bm.config({isPartOf:function(e,t,r){return Hl(t,r)||n(e,r)},getAttachPoint:function(t){return e.lazySink(t).getOrDie()},onOpen:function(t){e.onShow(t)},onClose:function(t){e.onHide(t)}}),eg.config({store:{mode:"memory",initialValue:B.none()}}),bd.config({channels:O(O({},km(O({isExtraPart:t.isExtraPart},e.fireDismissalEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})))),Am(O(O({},e.fireRepositionEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})),{doReposition:d})))})]),eventOrder:e.eventOrder,apis:f}},tx=fv({name:"InlineView",configFields:[Oo("lazySink"),su("onShow"),su("onHide"),Uo("onEscape"),tg("inlineBehaviours",[bm,eg,bd]),Vo("fireDismissalEventInstead",[Ko("event",hs())]),Vo("fireRepositionEventInstead",[Ko("event",ms())]),Ko("getRelated",B.none),Ko("isExtraPart",S),Ko("eventOrder",B.none)],factory:ex,apis:{showAt:function(e,t,n,r){e.showAt(t,n,r)},showWithin:function(e,t,n,r,i){e.showWithin(t,n,r,i)},showWithinBounds:function(e,t,n,r,i){e.showWithinBounds(t,n,r,i)},showMenuAt:function(e,t,n,r){e.showMenuAt(t,n,r)},showMenuWithinBounds:function(e,t,n,r,i){e.showMenuWithinBounds(t,n,r,i)},hide:function(e,t){e.hide(t)},isOpen:function(e,t){return e.isOpen(t)},getContent:function(e,t){return e.getContent(t)},setContent:function(e,t,n){e.setContent(t,n)},reposition:function(e,t){e.reposition(t)}}}),nx="layout-inset",rx=function(e){return e.x},ix=function(e,t){return e.x+e.width/2-t.width/2},ox=function(e,t){return e.x+e.width-t.width},ax=function(e){return e.y},sx=function(e,t){return e.y+e.height-t.height},cx=function(e,t){return e.y+e.height/2-t.height/2},lx=function(e,t,n){return hu(ox(e,t),sx(e,t),n.insetSouthwest(),xu(),"southwest",Ru(e,{right:0,bottom:3}),nx)},ux=function(e,t,n){return hu(rx(e),sx(e,t),n.insetSoutheast(),wu(),"southeast",Ru(e,{left:1,bottom:3}),nx)},dx=function(e,t,n){return hu(ox(e,t),ax(e),n.insetNorthwest(),yu(),"northwest",Ru(e,{right:0,top:2}),nx)},fx=function(e,t,n){return hu(rx(e),ax(e),n.insetNortheast(),_u(),"northeast",Ru(e,{left:1,top:2}),nx)},px=function(e,t,n){return hu(ix(e,t),ax(e),n.insetNorth(),ku(),"north",Ru(e,{top:2}),nx)},hx=function(e,t,n){return hu(ix(e,t),sx(e,t),n.insetSouth(),Cu(),"south",Ru(e,{bottom:3}),nx)},mx=function(e,t,n){return hu(ox(e,t),cx(e,t),n.insetEast(),Su(),"east",Ru(e,{right:0}),nx)},gx=function(e,t,n){return hu(rx(e),cx(e,t),n.insetWest(),Au(),"west",Ru(e,{left:1}),nx)},vx=function(e){switch(e){case"north":return px;case"northeast":return fx;case"northwest":return dx;case"south":return hx;case"southeast":return ux;case"southwest":return lx;case"east":return mx;case"west":return gx}},bx=function(e,t,n,r,i){var o=Wd(r).map(vx).getOr(px);return o(e,t,n,r,i)},_x=function(e){switch(e){case"north":return hx;case"northeast":return ux;case"northwest":return lx;case"south":return px;case"southeast":return fx;case"southwest":return dx;case"east":return gx;case"west":return mx}},yx=function(e,t,n,r,i){var o=Wd(r).map(_x).getOr(px);return o(e,t,n,r,i)},wx=tinymce.util.Tools.resolve("tinymce.util.Delay"),xx=function(e){var t=vw(e.action),n=e.dom.tag,r=function(t){return Se(e.dom,"attributes").bind((function(e){return Se(e,t)}))},i=function(){if("button"===n){var e=r("type").getOr("button"),t=r("role").map((function(e){return{role:e}})).getOr({});return O({type:e},t)}var i=r("role").getOr("button");return{role:i}};return{uid:e.uid,dom:e.dom,components:e.components,events:t,behaviours:ig.augment(e.buttonBehaviours,[Xy.config({}),Oy.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:i()},eventOrder:e.eventOrder}},kx=fv({name:"Button",factory:xx,configFields:[Ko("uid",void 0),Oo("dom"),Ko("components",[]),ig.field("buttonBehaviours",[Xy,Oy]),jo("action"),jo("role"),Ko("eventOrder",{})]}),Cx=function(e){var t=void 0!==e.dom.attributes?e.dom.attributes:[];return J(t,(function(e,t){var n;return"class"===t.name?e:O(O({},e),(n={},n[t.name]=t.value,n))}),{})},Ax=function(e){return Array.prototype.slice.call(e.dom.classList,0)},Sx=function(e){var t=tt.fromHtml(e),n=wn(t),r=Cx(t),i=Ax(t),o=0===n.length?{}:{innerHtml:Gs(t)};return O({tag:st(t),classes:i,attributes:r},o)},Ex=function(e){var t=lv(e)&&Te(e,"uid")?e.uid:fc("memento"),n=function(e){return e.getSystem().getByUid(t).getOrDie()},r=function(e){return e.getSystem().getByUid(t).toOptional()},i=function(){return O(O({},e),{uid:t})};return{get:n,getOpt:r,asSpec:i}};function Tx(e){return Tx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tx(e)}function Ox(e,t){return Ox=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ox(e,t)}function Rx(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Dx(e,t,n){return Dx=Rx()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),o=new i;return n&&Ox(o,n.prototype),o},Dx.apply(null,arguments)}function Lx(e){return Mx(e)||Fx(e)||Nx(e)||Ix()}function Mx(e){if(Array.isArray(e))return Bx(e)}function Fx(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Nx(e,t){if(e){if("string"===typeof e)return Bx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bx(e,t):void 0}}function Bx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ix(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Px=Object.hasOwnProperty,$x=Object.setPrototypeOf,jx=Object.isFrozen,zx=Object.getPrototypeOf,qx=Object.getOwnPropertyDescriptor,Hx=Object.freeze,Ux=Object.seal,Wx=Object.create,Vx="undefined"!==typeof Reflect&&Reflect,Gx=Vx.apply,Kx=Vx.construct;Gx||(Gx=function(e,t,n){return e.apply(t,n)}),Hx||(Hx=function(e){return e}),Ux||(Ux=function(e){return e}),Kx||(Kx=function(e,t){return Dx(e,Lx(t))});var Yx=ok(Array.prototype.forEach),Xx=ok(Array.prototype.pop),Qx=ok(Array.prototype.push),Jx=ok(String.prototype.toLowerCase),Zx=ok(String.prototype.match),ek=ok(String.prototype.replace),tk=ok(String.prototype.indexOf),nk=ok(String.prototype.trim),rk=ok(RegExp.prototype.test),ik=ak(TypeError);function ok(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Gx(e,t,r)}}function ak(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Kx(e,n)}}function sk(e,t){$x&&$x(e,null);var n=t.length;while(n--){var r=t[n];if("string"===typeof r){var i=Jx(r);i!==r&&(jx(t)||(t[n]=i),r=i)}e[r]=!0}return e}function ck(e){var t,n=Wx(null);for(t in e)Gx(Px,e,[t])&&(n[t]=e[t]);return n}function lk(e,t){while(null!==e){var n=qx(e,t);if(n){if(n.get)return ok(n.get);if("function"===typeof n.value)return ok(n.value)}e=zx(e)}function r(e){return null}return r}var uk=Hx(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),dk=Hx(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),fk=Hx(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),pk=Hx(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),hk=Hx(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),mk=Hx(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gk=Hx(["#text"]),vk=Hx(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),bk=Hx(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),_k=Hx(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),yk=Hx(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),wk=Ux(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xk=Ux(/<%[\w\W]*|[\w\W]*%>/gm),kk=Ux(/^data-[\-\w.\u00B7-\uFFFF]/),Ck=Ux(/^aria-[\-\w]+$/),Ak=Ux(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Sk=Ux(/^(?:\w+script|data):/i),Ek=Ux(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Tk=Ux(/^html$/i),Ok=function(){return"undefined"===typeof window?null:window},Rk=function(e,t){if("object"!==Tx(e)||"function"!==typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e}})}catch(o){return null}};function Dk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ok(),t=function(e){return Dk(e)};if(t.version="2.3.8",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,r=e.document,i=e.DocumentFragment,o=e.HTMLTemplateElement,a=e.Node,s=e.Element,c=e.NodeFilter,l=e.NamedNodeMap,u=void 0===l?e.NamedNodeMap||e.MozNamedAttrMap:l,d=e.HTMLFormElement,f=e.DOMParser,p=e.trustedTypes,h=s.prototype,m=lk(h,"cloneNode"),g=lk(h,"nextSibling"),v=lk(h,"childNodes"),b=lk(h,"parentNode");if("function"===typeof o){var _=r.createElement("template");_.content&&_.content.ownerDocument&&(r=_.content.ownerDocument)}var y=Rk(p,n),w=y?y.createHTML(""):"",x=r,k=x.implementation,C=x.createNodeIterator,A=x.createDocumentFragment,S=x.getElementsByTagName,E=n.importNode,T={};try{T=ck(r).documentMode?r.documentMode:{}}catch(ze){}var O={};t.isSupported="function"===typeof b&&k&&"undefined"!==typeof k.createHTMLDocument&&9!==T;var R,D,L=wk,M=xk,F=kk,N=Ck,B=Sk,I=Ek,P=Ak,$=null,j=sk({},[].concat(Lx(uk),Lx(dk),Lx(fk),Lx(hk),Lx(gk))),z=null,q=sk({},[].concat(Lx(vk),Lx(bk),Lx(_k),Lx(yk))),H=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),U=null,W=null,V=!0,G=!0,K=!1,Y=!1,X=!1,Q=!1,J=!1,Z=!1,ee=!1,te=!1,ne=!0,re=!0,ie=!1,oe={},ae=null,se=sk({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ce=null,le=sk({},["audio","video","img","source","image","track"]),ue=null,de=sk({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",pe="http://www.w3.org/2000/svg",he="http://www.w3.org/1999/xhtml",me=he,ge=!1,ve=["application/xhtml+xml","text/html"],be="text/html",_e=null,ye=r.createElement("form"),we=function(e){return e instanceof RegExp||e instanceof Function},xe=function(e){_e&&_e===e||(e&&"object"===Tx(e)||(e={}),e=ck(e),$="ALLOWED_TAGS"in e?sk({},e.ALLOWED_TAGS):j,z="ALLOWED_ATTR"in e?sk({},e.ALLOWED_ATTR):q,ue="ADD_URI_SAFE_ATTR"in e?sk(ck(de),e.ADD_URI_SAFE_ATTR):de,ce="ADD_DATA_URI_TAGS"in e?sk(ck(le),e.ADD_DATA_URI_TAGS):le,ae="FORBID_CONTENTS"in e?sk({},e.FORBID_CONTENTS):se,U="FORBID_TAGS"in e?sk({},e.FORBID_TAGS):{},W="FORBID_ATTR"in e?sk({},e.FORBID_ATTR):{},oe="USE_PROFILES"in e&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,K=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,X=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,ee=e.RETURN_DOM_FRAGMENT||!1,te=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,ne=!1!==e.SANITIZE_DOM,re=!1!==e.KEEP_CONTENT,ie=e.IN_PLACE||!1,P=e.ALLOWED_URI_REGEXP||P,me=e.NAMESPACE||he,e.CUSTOM_ELEMENT_HANDLING&&we(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&we(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),R=R=-1===ve.indexOf(e.PARSER_MEDIA_TYPE)?be:e.PARSER_MEDIA_TYPE,D="application/xhtml+xml"===R?function(e){return e}:Jx,Y&&(G=!1),ee&&(Z=!0),oe&&($=sk({},Lx(gk)),z=[],!0===oe.html&&(sk($,uk),sk(z,vk)),!0===oe.svg&&(sk($,dk),sk(z,bk),sk(z,yk)),!0===oe.svgFilters&&(sk($,fk),sk(z,bk),sk(z,yk)),!0===oe.mathMl&&(sk($,hk),sk(z,_k),sk(z,yk))),e.ADD_TAGS&&($===j&&($=ck($)),sk($,e.ADD_TAGS)),e.ADD_ATTR&&(z===q&&(z=ck(z)),sk(z,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&sk(ue,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(ae===se&&(ae=ck(ae)),sk(ae,e.FORBID_CONTENTS)),re&&($["#text"]=!0),X&&sk($,["html","head","body"]),$.table&&(sk($,["tbody"]),delete U.tbody),Hx&&Hx(e),_e=e)},ke=sk({},["mi","mo","mn","ms","mtext"]),Ce=sk({},["foreignobject","desc","title","annotation-xml"]),Ae=sk({},["title","style","font","a","script"]),Se=sk({},dk);sk(Se,fk),sk(Se,pk);var Ee=sk({},hk);sk(Ee,mk);var Te=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:he,tagName:"template"});var n=Jx(e.tagName),r=Jx(t.tagName);return e.namespaceURI===pe?t.namespaceURI===he?"svg"===n:t.namespaceURI===fe?"svg"===n&&("annotation-xml"===r||ke[r]):Boolean(Se[n]):e.namespaceURI===fe?t.namespaceURI===he?"math"===n:t.namespaceURI===pe?"math"===n&&Ce[r]:Boolean(Ee[n]):e.namespaceURI===he&&(!(t.namespaceURI===pe&&!Ce[r])&&(!(t.namespaceURI===fe&&!ke[r])&&(!Ee[n]&&(Ae[n]||!Se[n]))))},Oe=function(e){Qx(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(ze){try{e.outerHTML=w}catch(ze){e.remove()}}},Re=function(e,n){try{Qx(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(ze){Qx(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!z[e])if(Z||ee)try{Oe(n)}catch(ze){}else try{n.setAttribute(e,"")}catch(ze){}},De=function(e){var t,n;if(J)e="<remove></remove>"+e;else{var i=Zx(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===R&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=y?y.createHTML(e):e;if(me===he)try{t=(new f).parseFromString(o,R)}catch(ze){}if(!t||!t.documentElement){t=k.createDocument(me,"template",null);try{t.documentElement.innerHTML=ge?"":o}catch(ze){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),me===he?S.call(t,X?"html":"body")[0]:X?t.documentElement:a},Le=function(e){return C.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Me=function(e){return e instanceof d&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof u)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore)},Fe=function(e){return"object"===Tx(a)?e instanceof a:e&&"object"===Tx(e)&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},Ne=function(e,n,r){O[e]&&Yx(O[e],(function(e){e.call(t,n,r,_e)}))},Be=function(e){var n;if(Ne("beforeSanitizeElements",e,null),Me(e))return Oe(e),!0;if(rk(/[\u0080-\uFFFF]/,e.nodeName))return Oe(e),!0;var r=D(e.nodeName);if(Ne("uponSanitizeElement",e,{tagName:r,allowedTags:$}),e.hasChildNodes()&&!Fe(e.firstElementChild)&&(!Fe(e.content)||!Fe(e.content.firstElementChild))&&rk(/<[/\w]/g,e.innerHTML)&&rk(/<[/\w]/g,e.textContent))return Oe(e),!0;if("select"===r&&rk(/<template/i,e.innerHTML))return Oe(e),!0;if(!$[r]||U[r]){if(!U[r]&&Pe(r)){if(H.tagNameCheck instanceof RegExp&&rk(H.tagNameCheck,r))return!1;if(H.tagNameCheck instanceof Function&&H.tagNameCheck(r))return!1}if(re&&!ae[r]){var i=b(e)||e.parentNode,o=v(e)||e.childNodes;if(o&&i)for(var a=o.length,c=a-1;c>=0;--c)i.insertBefore(m(o[c],!0),g(e))}return Oe(e),!0}return e instanceof s&&!Te(e)?(Oe(e),!0):"noscript"!==r&&"noembed"!==r||!rk(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(n=e.textContent,n=ek(n,L," "),n=ek(n,M," "),e.textContent!==n&&(Qx(t.removed,{element:e.cloneNode()}),e.textContent=n)),Ne("afterSanitizeElements",e,null),!1):(Oe(e),!0)},Ie=function(e,t,n){if(ne&&("id"===t||"name"===t)&&(n in r||n in ye))return!1;if(G&&!W[t]&&rk(F,t));else if(V&&rk(N,t));else if(!z[t]||W[t]){if(!(Pe(e)&&(H.tagNameCheck instanceof RegExp&&rk(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&rk(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&rk(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(ue[t]);else if(rk(P,ek(n,I,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==tk(n,"data:")||!ce[e]){if(K&&!rk(B,ek(n,I,"")));else if(n)return!1}else;return!0},Pe=function(e){return e.indexOf("-")>0},$e=function(e){var n,r,i,o;Ne("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z};o=a.length;while(o--){n=a[o];var c=n,l=c.name,u=c.namespaceURI;if(r="value"===l?n.value:nk(n.value),i=D(l),s.attrName=i,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,Ne("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(Re(l,e),s.keepAttr))if(rk(/\/>/i,r))Re(l,e);else{Y&&(r=ek(r,L," "),r=ek(r,M," "));var d=D(e.nodeName);if(Ie(d,i,r))try{u?e.setAttributeNS(u,l,r):e.setAttribute(l,r),Xx(t.removed)}catch(ze){}}}Ne("afterSanitizeAttributes",e,null)}},je=function e(t){var n,r=Le(t);Ne("beforeSanitizeShadowDOM",t,null);while(n=r.nextNode())Ne("uponSanitizeShadowNode",n,null),Be(n)||(n.content instanceof i&&e(n.content),$e(n));Ne("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(r,o){var s,c,l,u,d;if(ge=!r,ge&&(r="\x3c!--\x3e"),"string"!==typeof r&&!Fe(r)){if("function"!==typeof r.toString)throw ik("toString is not a function");if(r=r.toString(),"string"!==typeof r)throw ik("dirty is not a string, aborting")}if(!t.isSupported){if("object"===Tx(e.toStaticHTML)||"function"===typeof e.toStaticHTML){if("string"===typeof r)return e.toStaticHTML(r);if(Fe(r))return e.toStaticHTML(r.outerHTML)}return r}if(Q||xe(o),t.removed=[],"string"===typeof r&&(ie=!1),ie){if(r.nodeName){var f=D(r.nodeName);if(!$[f]||U[f])throw ik("root node is forbidden and cannot be sanitized in-place")}}else if(r instanceof a)s=De("\x3c!----\x3e"),c=s.ownerDocument.importNode(r,!0),1===c.nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?s=c:s.appendChild(c);else{if(!Z&&!Y&&!X&&-1===r.indexOf("<"))return y&&te?y.createHTML(r):r;if(s=De(r),!s)return Z?null:te?w:""}s&&J&&Oe(s.firstChild);var p=Le(ie?r:s);while(l=p.nextNode())3===l.nodeType&&l===u||Be(l)||(l.content instanceof i&&je(l.content),$e(l),u=l);if(u=null,ie)return r;if(Z){if(ee){d=A.call(s.ownerDocument);while(s.firstChild)d.appendChild(s.firstChild)}else d=s;return z.shadowroot&&(d=E.call(n,d,!0)),d}var h=X?s.outerHTML:s.innerHTML;return X&&$["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&rk(Tk,s.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+s.ownerDocument.doctype.name+">\n"+h),Y&&(h=ek(h,L," "),h=ek(h,M," ")),y&&te?y.createHTML(h):h},t.setConfig=function(e){xe(e),Q=!0},t.clearConfig=function(){_e=null,Q=!1},t.isValidAttribute=function(e,t,n){_e||xe({});var r=D(e),i=D(t);return Ie(r,i,n)},t.addHook=function(e,t){"function"===typeof t&&(O[e]=O[e]||[],Qx(O[e],t))},t.removeHook=function(e){if(O[e])return Xx(O[e])},t.removeHooks=function(e){O[e]&&(O[e]=[])},t.removeAllHooks=function(){O={}},t}var Lk=Dk(),Mk=function(e){return Lk().sanitize(e)},Fk=tinymce.util.Tools.resolve("tinymce.util.I18n"),Nk={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},Bk="temporary-placeholder",Ik=function(e){return function(){return Se(e,Bk).getOr("!not found!")}},Pk=function(e,t){var n=e.toLowerCase();if(Fk.isRtl()){var r=ze(n,"-rtl");return Ee(t,r)?r:n}return n},$k=function(e,t){return Se(t,Pk(e,t))},jk=function(e,t){var n=t();return $k(e,n).getOrThunk(Ik(n))},zk=function(e,t,n){var r=t();return $k(e,r).or(n).getOrThunk(Ik(r))},qk=function(e){return!!Fk.isRtl()&&Ee(Nk,e)},Hk=function(){return zy("add-focusable",[qs((function(e){Il(e.element,"svg").each((function(e){return jn(e,"focusable","false")}))}))])},Uk=function(e,t,n,r){var i,o,a=qk(t)?["tox-icon--flip"]:[],s=Se(n,Pk(t,n)).or(r).getOrThunk(Ik(n));return{dom:{tag:e.tag,attributes:null!==(i=e.attributes)&&void 0!==i?i:{},classes:e.classes.concat(a),innerHtml:s},behaviours:fd(D(D([],null!==(o=e.behaviours)&&void 0!==o?o:[],!0),[Hk()],!1))}},Wk=function(e,t,n,r){return void 0===r&&(r=B.none()),Uk(t,e,n(),r)},Vk=function(e,t,n){var r=n(),i=ee(e,(function(e){return Ee(r,Pk(e,r))}));return Uk(t,i.getOr(Bk),r,B.none())},Gk={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},Kk=function(e){var t=Ex({dom:Sx("<p>"+Mk(e.translationProvider(e.text))+"</p>"),behaviours:fd([$y.config({})])}),n=function(e){return{dom:{tag:"div",classes:["tox-bar"],attributes:{style:"width: "+e+"%"}}}},r=function(e){return{dom:{tag:"div",classes:["tox-text"],innerHtml:e+"%"}}},i=Ex({dom:{tag:"div",classes:e.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(0)]},r(0)],behaviours:fd([$y.config({})])}),o=function(e,t){e.getSystem().isConnected()&&i.getOpt(e).each((function(e){$y.set(e,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[n(t)]},r(t)])}))},a=function(e,n){if(e.getSystem().isConnected()){var r=t.get(e);$y.set(r,[kl(n)])}},s={updateProgress:o,updateText:a},c=ne([e.icon.toArray(),e.level.toArray(),e.level.bind((function(e){return B.from(Gk[e])})).toArray()]),l=Ex(kx.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[Wk("close",{tag:"div",classes:["tox-icon"],attributes:{"aria-label":e.translationProvider("Close")}},e.iconProvider)],action:function(t){e.onAction(t)}})),u=Vk(c,{tag:"div",classes:["tox-notification__icon"]},e.iconProvider),d={dom:{tag:"div",classes:["tox-notification__body"]},components:[t.asSpec()],behaviours:fd([$y.config({})])},f=[u,d];return{uid:e.uid,dom:{tag:"div",attributes:{role:"alert"},classes:e.level.map((function(e){return["tox-notification","tox-notification--in","tox-notification--"+e]})).getOr(["tox-notification","tox-notification--in"])},behaviours:fd([Xy.config({}),zy("notification-events",[Ls(Pa(),(function(e){l.getOpt(e).each(Xy.focus)}))])]),components:f.concat(e.progress?[i.asSpec()]:[]).concat(e.closeButton?[l.asSpec()]:[]),apis:s}},Yk=fv({name:"Notification",factory:Kk,configFields:[jo("level"),Oo("progress"),Oo("icon"),Oo("onAction"),Oo("text"),Oo("iconProvider"),Oo("translationProvider"),Zo("closeButton",!0)],apis:{updateProgress:function(e,t,n){e.updateProgress(t,n)},updateText:function(e,t,n){e.updateText(t,n)}}});function Xk(e,t,n){var r=t.backstage.shared,i=function(e){switch(e){case"bc-bc":return hx;case"tc-tc":return px;case"tc-bc":return Wu;case"bc-tc":default:return Vu}},o=function(e){e.length>0&&G(e,(function(t,n){0===n?t.moveRel(null,"banner"):t.moveRel(e[n-1].getEl(),"bc-tc")}))},a=function(t,o){var a=!t.closeButton&&t.timeout&&(t.timeout>0||t.timeout<0),s=function(){o(),tx.hide(l)},c=El(Yk.sketch({text:t.text,level:q(["success","error","warning","warn","info"],t.type)?t.type:void 0,progress:!0===t.progressBar,icon:B.from(t.icon),closeButton:!a,onAction:s,iconProvider:r.providers.icons,translationProvider:r.providers.translate})),l=El(tx.sketch(O({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:r.getSink,fireDismissalEventInstead:{}},r.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}})));n.add(l),t.timeout>0&&wx.setTimeout((function(){s()}),t.timeout);var u=function(){var t=Qr(tt.fromDom(e.getContentAreaContainer())),n=Zr(),r=Tu(n.x,t.x,t.right),i=Tu(n.y,t.y,t.bottom),o=Math.max(t.right,n.right),a=Math.max(t.bottom,n.bottom);return B.some(Xr(r,i,o-r,a-i))};return{close:s,moveTo:function(e,t){tx.showAt(l,Tl(c),{anchor:{type:"makeshift",x:e,y:t}})},moveRel:function(e,t){var n=Tl(c),o={maxHeightFunction:Ef()};if("banner"!==t&&f(e)){var a=i(t),s={type:"node",root:In(),node:B.some(tt.fromDom(e)),overrides:o,layouts:{onRtl:function(){return[a]},onLtr:function(){return[a]}}};tx.showWithinBounds(l,n,{anchor:s},u)}else{var d=O(O({},r.anchors.banner()),{overrides:o});tx.showWithinBounds(l,n,{anchor:d},u)}},text:function(e){Yk.updateText(c,e)},settings:t,getEl:function(){return c.element.dom},progressBar:{value:function(e){Yk.updateProgress(c,e)}}}},s=function(e){e.close()},c=function(e){return e.settings};return{open:a,close:s,reposition:o,getArgs:c}}var Qk,Jk=function(e,t){var n=null,r=function(){c(n)||(clearTimeout(n),n=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];c(n)&&(n=setTimeout((function(){n=null,e.apply(null,r)}),t))};return{cancel:r,throttle:i}},Zk=function(e,t){var n=null,r=function(){c(n)||(clearTimeout(n),n=null)},i=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r(),n=setTimeout((function(){n=null,e.apply(null,i)}),t)};return{cancel:r,throttle:i}},eC=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker"),tC=function(e,t){return e.isBlock(t)||q(["BR","IMG","HR","INPUT"],t.nodeName)||"false"===e.getContentEditable(t)},nC=function(e,t,n,r,i){var o=eC(e,(function(t){return tC(e,t)}));return B.from(o.backwards(t,n,r,i))},rC="[data-mce-autocompleter]",iC=function(e,t){return oC(tt.fromDom(e.selection.getNode())).getOrThunk((function(){var n=tt.fromHtml('<span data-mce-autocompleter="1" data-mce-bogus="1"></span>',e.getDoc());return Rr(n,tt.fromDom(t.extractContents())),t.insertNode(n.dom),vn(n).each((function(e){return e.dom.normalize()})),Gp(n).map((function(t){e.selection.setCursorLocation(t.dom,Hp(t))})),n}))},oC=function(e){return $l(e,rC)},aC=function(e){return e.collapsed&&3===e.startContainer.nodeType},sC=function(e){return e.toString().replace(/\u00A0/g," ").replace(/\uFEFF/g,"")},cC=function(e){return""!==e&&-1!=="  \f\n\r\t\v".indexOf(e)},lC=function(e,t){return e.substring(t.length)},uC=function(e,t,n){var r;for(r=t-1;r>=0;r--){var i=e.charAt(r);if(cC(i))return B.none();if(i===n)break}return B.some(r)},dC=function(e,t,n,r){if(void 0===r&&(r=0),!aC(t))return B.none();var i=function(e,t,r){return uC(r,t,n).getOr(t)},o=e.getParent(t.startContainer,e.isBlock)||e.getRoot();return nC(e,t.startContainer,t.startOffset,i,o).bind((function(e){var i=t.cloneRange();if(i.setStart(e.container,e.offset),i.setEnd(t.endContainer,t.endOffset),i.collapsed)return B.none();var o=sC(i),a=o.lastIndexOf(n);return 0!==a||lC(o,n).length<r?B.none():B.some({text:lC(o,n),range:i,triggerChar:n})}))},fC=function(e,t,n,r){return void 0===r&&(r=0),oC(tt.fromDom(t.startContainer)).fold((function(){return dC(e,t,n,r)}),(function(t){var r=e.createRng();r.selectNode(t.dom);var i=sC(r);return B.some({range:r,text:lC(i,n),triggerChar:n})}))},pC=function(e,t){t.on("keypress compositionend",e.onKeypress.throttle),t.on("remove",e.onKeypress.cancel);var n=function(e,t){ks(e,ja(),{raw:t})};t.on("keydown",(function(t){var r=function(){return e.getView().bind(rb.getHighlighted)};8===t.which&&e.onKeypress.throttle(t),e.isActive()&&(27===t.which&&e.cancelIfNecessary(),e.isMenuOpen()?13===t.which?(r().each(Cs),t.preventDefault()):40===t.which?(r().fold((function(){e.getView().each(rb.highlightFirst)}),(function(e){n(e,t)})),t.preventDefault(),t.stopImmediatePropagation()):37!==t.which&&38!==t.which&&39!==t.which||r().each((function(e){n(e,t),t.preventDefault(),t.stopImmediatePropagation()})):13!==t.which&&38!==t.which&&40!==t.which||e.cancelIfNecessary())})),t.on("NodeChange",(function(t){e.isActive()&&!e.isProcessingAction()&&oC(tt.fromDom(t.element)).isNone()&&e.cancelIfNecessary()}))},hC={setup:pC},mC=tinymce.util.Tools.resolve("tinymce.util.Promise"),gC=function(e,t){return{container:e,offset:t}},vC=function(e){return e.nodeType===at},bC=function(e){return e.nodeType===ot},_C=function(e){if(vC(e))return gC(e,e.data.length);var t=e.childNodes;return t.length>0?_C(t[t.length-1]):gC(e,t.length)},yC=function(e,t){var n=e.childNodes;return n.length>0&&t<n.length?yC(n[t],0):n.length>0&&bC(e)&&n.length===t?_C(n[n.length-1]):gC(e,t)},wC=function(e,t){return nC(e,t.container,t.offset,(function(e,t){return 0===t?-1:t}),e.getRoot()).filter((function(e){var t=e.container.data.charAt(e.offset-1);return!cC(t)})).isSome()},xC=function(e){return function(t){var n=yC(t.startContainer,t.startOffset);return!wC(e,n)}},kC=function(e,t,n){return he(n.triggerChars,(function(n){return fC(e,t,n)}))},CC=function(e,t){var n=t(),r=e.selection.getRng();return kC(e.dom,r,n).bind((function(n){return AC(e,t,n)}))},AC=function(e,t,n,r){void 0===r&&(r={});var i=t(),o=e.selection.getRng(),a=o.startContainer.nodeValue,s=X(i.lookupByChar(n.triggerChar),(function(t){return n.text.length>=t.minChars&&t.matches.getOrThunk((function(){return xC(e.dom)}))(n.range,a,n.text)}));if(0===s.length)return B.none();var c=mC.all(V(s,(function(e){var t=e.fetch(n.text,e.maxResults,r);return t.then((function(t){return{matchText:n.text,items:t,columns:e.columns,onAction:e.onAction,highlightOn:e.highlightOn}}))})));return B.some({lookupData:c,context:n})},SC=Zi([Lo("type"),Ho("text")]),EC=function(e){return yo("separatormenuitem",SC,e)},TC=Zi([Ko("type","autocompleteitem"),Ko("active",!1),Ko("disabled",!1),Ko("meta",{}),Lo("value"),Ho("text"),Ho("icon")]),OC=Zi([Lo("type"),Lo("ch"),Xo("minChars",1),Ko("columns",1),Xo("maxResults",10),Uo("matches"),No("fetch"),No("onAction"),na("highlightOn",[],co)]),RC=function(e){return yo("Autocompleter.Separator",SC,e)},DC=function(e){return yo("Autocompleter.Item",TC,e)},LC=function(e){return yo("Autocompleter",OC,e)},MC=[Zo("disabled",!1),Ho("tooltip"),Ho("icon"),Ho("text"),ea("onSetup",(function(){return g}))],FC=Zi([Lo("type"),No("onAction")].concat(MC)),NC=function(e){return yo("toolbarbutton",FC,e)},BC=[Zo("active",!1)].concat(MC),IC=Zi(BC.concat([Lo("type"),No("onAction")])),PC=function(e){return yo("ToggleButton",IC,e)},$C=[ea("predicate",S),Jo("scope","node",["node","editor"]),Jo("position","selection",["node","selection","line"])],jC=MC.concat([Ko("type","contextformbutton"),Ko("primary",!1),No("onAction"),Eo("original",w)]),zC=BC.concat([Ko("type","contextformbutton"),Ko("primary",!1),No("onAction"),Eo("original",w)]),qC=MC.concat([Ko("type","contextformbutton")]),HC=BC.concat([Ko("type","contextformtogglebutton")]),UC=Co("type",{contextformbutton:jC,contextformtogglebutton:zC}),WC=Zi([Ko("type","contextform"),ea("initValue",y("")),Ho("label"),$o("commands",UC),zo("launch",Co("type",{contextformbutton:qC,contextformtogglebutton:HC}))].concat($C)),VC=function(e){return yo("ContextForm",WC,e)},GC=Zi([Ko("type","contexttoolbar"),Lo("items")].concat($C)),KC=function(e){return yo("ContextToolbar",GC,e)},YC=function(e){var t={};return G(e,(function(e){t[e]={}})),me(t)},XC=function(e){var t=e.ui.registry.getAll().popups,n=be(t,(function(e){return LC(e).fold((function(e){throw new Error(ko(e))}),w)})),r=YC(ke(n,(function(e){return e.ch}))),i=Ae(n),o=function(e){return X(i,(function(t){return t.ch===e}))};return{dataset:n,triggerChars:r,lookupByChar:o}};(function(e){e[e["CLOSE_ON_EXECUTE"]=0]="CLOSE_ON_EXECUTE",e[e["BUBBLE_TO_SANDBOX"]=1]="BUBBLE_TO_SANDBOX"})(Qk||(Qk={}));var QC,JC=Qk,ZC="tox-menu-nav__js",eA="tox-collection__item",tA="tox-swatch",nA={normal:ZC,color:tA},rA="tox-collection__item--enabled",iA="tox-collection__group-heading",oA="tox-collection__item-icon",aA="tox-collection__item-label",sA="tox-collection__item-accessory",cA="tox-collection__item-caret",lA="tox-collection__item-checkmark",uA="tox-collection__item--active",dA="tox-collection__item-container",fA="tox-collection__item-container--column",pA="tox-collection__item-container--row",hA="tox-collection__item-container--align-right",mA="tox-collection__item-container--align-left",gA="tox-collection__item-container--valign-top",vA="tox-collection__item-container--valign-middle",bA="tox-collection__item-container--valign-bottom",_A=function(e){return Se(nA,e).getOr(ZC)},yA=function(e){return"color"===e?"tox-swatches":"tox-menu"},wA=function(e){return{backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:yA(e),tieredMenu:"tox-tiered-menu"}},xA=function(e){var t=wA(e);return{backgroundMenu:t.backgroundMenu,selectedMenu:t.selectedMenu,menu:t.menu,selectedItem:t.selectedItem,item:_A(e)}},kA=function(e,t,n){var r=wA(n);return{tag:"div",classes:ne([[r.menu,"tox-menu-"+t+"-column"],e?[r.hasIcons]:[]])}},CA=[jw.parts.items({})],AA=function(e,t,n){var r=wA(n),i={tag:"div",classes:ne([[r.tieredMenu]])};return{dom:i,markers:xA(n)}},SA=function(e,t){return function(n){var r=W(n,t);return V(r,(function(t){return{dom:e,components:t}}))}},EA=function(e){return{dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[jw.parts.items({preprocess:"auto"!==e?SA({tag:"div",classes:["tox-swatches__row"]},e):w})]}]}},TA=function(e){return{dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[jw.parts.items({preprocess:SA({tag:"div",classes:["tox-collection__group"]},e)})]}},OA=function(e,t){var n=[],r=[];return G(e,(function(e,i){t(e,i)?(r.length>0&&n.push(r),r=[],Ee(e.dom,"innerHtml")&&r.push(e)):r.push(e)})),r.length>0&&n.push(r),V(n,(function(e){return{dom:{tag:"div",classes:["tox-collection__group"]},components:e}}))},RA=function(e,t,n){return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(1===e?["tox-collection--list"]:["tox-collection--grid"])},components:[jw.parts.items({preprocess:function(n){return"auto"!==e&&e>1?SA({tag:"div",classes:["tox-collection__group"]},e)(n):OA(n,(function(e,n){return"separator"===t[n].type}))}})]}},DA=function(e,t){return{dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[jw.parts.items({preprocess:function(t){return OA(t,(function(t,n){return"separator"===e[n].type}))}})]}},LA=function(e){return H(e,(function(e){return"icon"in e&&void 0!==e.icon}))},MA=function(e){return B.none()},FA=function(e,t,n,r,i){var o=DA(n);return{value:e,dom:o.dom,components:o.components,items:n}},NA=function(e,t,n,r,i){if("color"===i){var o=EA(r);return{value:e,dom:o.dom,components:o.components,items:n}}if("normal"===i&&"auto"===r){o=RA(r,n);return{value:e,dom:o.dom,components:o.components,items:n}}if("normal"===i&&1===r){o=RA(1,n);return{value:e,dom:o.dom,components:o.components,items:n}}if("normal"===i){o=RA(r,n);return{value:e,dom:o.dom,components:o.components,items:n}}if("listpreview"===i&&"auto"!==r){o=TA(r);return{value:e,dom:o.dom,components:o.components,items:n}}return{value:e,dom:kA(t,r,i),components:CA,items:n}},BA=[Lo("type"),Lo("src"),Ho("alt"),na("classes",[],co)],IA=Zi(BA),PA=[Lo("type"),Lo("text"),Ho("name"),na("classes",["tox-collection__item-label"],co)],$A=Zi(PA),jA=Xi((function(){return mo("type",{cardimage:IA,cardtext:$A,cardcontainer:zA})})),zA=Zi([Lo("type"),Qo("direction","horizontal"),Qo("align","left"),Qo("valign","middle"),$o("items",jA)]),qA=[Zo("disabled",!1),Ho("text"),Ho("shortcut"),So("value","value",Ci((function(){return ic("menuitem-value")})),oo()),Ko("meta",{})],HA=Zi([Lo("type"),Ho("label"),$o("items",jA),ea("onSetup",(function(){return g})),ea("onAction",g)].concat(qA)),UA=function(e){return yo("cardmenuitem",HA,e)},WA=Zi([Lo("type"),Zo("active",!1),Ho("icon")].concat(qA)),VA=function(e){return yo("choicemenuitem",WA,e)},GA=[Lo("type"),Lo("fancytype"),ea("onAction",g)],KA=[Ko("initData",{})].concat(GA),YA=[ra("initData",{},[Zo("allowCustomColors",!0),Wo("colors",oo())])].concat(GA),XA=Co("fancytype",{inserttable:KA,colorswatch:YA}),QA=function(e){return yo("fancymenuitem",XA,e)},JA=Zi([Lo("type"),ea("onSetup",(function(){return g})),ea("onAction",g),Ho("icon")].concat(qA)),ZA=function(e){return yo("menuitem",JA,e)},eS=Zi([Lo("type"),No("getSubmenuItems"),ea("onSetup",(function(){return g})),Ho("icon")].concat(qA)),tS=function(e){return yo("nestedmenuitem",eS,e)},nS=Zi([Lo("type"),Ho("icon"),Zo("active",!1),ea("onSetup",(function(){return g})),No("onAction")].concat(qA)),rS=function(e){return yo("togglemenuitem",nS,e)},iS=function(e,t,n){var r=Yp(e.element,"."+n);if(r.length>0){var i=te(r,(function(e){var n=e.dom.getBoundingClientRect().top,i=r[0].dom.getBoundingClientRect().top;return Math.abs(n-i)>t})).getOr(r.length);return B.some({numColumns:i,numRows:Math.ceil(r.length/i)})}return B.none()},oS=function(e,t){return fd([zy(e,t)])},aS=function(e){return oS(ic("unnamed-events"),e)},sS={namedEvents:oS,unnamedEvents:aS},cS=ic("tooltip.exclusive"),lS=ic("tooltip.show"),uS=ic("tooltip.hide"),dS=function(e,t,n){e.getSystem().broadcastOn([cS],{})},fS=function(e,t,n,r){n.getTooltip().each((function(e){e.getSystem().isConnected()&&$y.set(e,r)}))},pS=Object.freeze({__proto__:null,hideAllExclusive:dS,setComponents:fS}),hS=function(e,t){var n=function(n){t.getTooltip().each((function(r){Gh(r),e.onHide(n,r),t.clearTooltip()})),t.clearTimer()},r=function(n){if(!t.isShowing()){dS(n);var r=e.lazySink(n).getOrDie(),i=n.getSystem().build({dom:e.tooltipDom,components:e.tooltipComponents,events:Ts("normal"===e.mode?[Ls(Ia(),(function(e){xs(n,lS)})),Ls(Na(),(function(e){xs(n,uS)}))]:[]),behaviours:fd([$y.config({})])});t.setTooltip(i),Uh(r,i),e.onShow(n,i),Ph.position(r,i,{anchor:e.anchor(n)})}};return Ts(ne([[Ls(lS,(function(n){t.resetTimer((function(){r(n)}),e.delay)})),Ls(uS,(function(r){t.resetTimer((function(){n(r)}),e.delay)})),Ls(es(),(function(e,t){var r=t;r.universal||q(r.channels,cS)&&n(e)})),Hs((function(e){n(e)}))],"normal"===e.mode?[Ls(Pa(),(function(e){xs(e,lS)})),Ls(Ja(),(function(e){xs(e,uS)})),Ls(Ia(),(function(e){xs(e,lS)})),Ls(Na(),(function(e){xs(e,uS)}))]:[Ls(ys(),(function(e,t){xs(e,lS)})),Ls(ws(),(function(e){xs(e,uS)}))]]))},mS=Object.freeze({__proto__:null,events:hS}),gS=[Oo("lazySink"),Oo("tooltipDom"),Ko("exclusive",!0),Ko("tooltipComponents",[]),Ko("delay",300),Jo("mode","normal",["normal","follow-highlight"]),Ko("anchor",(function(e){return{type:"hotspot",hotspot:e,layouts:{onLtr:y([Vu,Wu,zu,Hu,qu,Uu]),onRtl:y([Vu,Wu,zu,Hu,qu,Uu])}}})),su("onHide"),su("onShow")],vS=function(){var e=rf(),t=rf(),n=function(){e.on(clearTimeout)},r=function(t,r){n(),e.set(setTimeout(t,r))},i=y("not-implemented");return Ac({getTooltip:t.get,isShowing:t.isSet,setTooltip:t.set,clearTooltip:t.clear,clearTimer:n,resetTimer:r,readState:i})},bS=Object.freeze({__proto__:null,init:vS}),_S=hd({fields:gS,name:"tooltipping",active:mS,state:bS,apis:pS}),yS=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},wS=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),xS=tinymce.util.Tools.resolve("tinymce.EditorManager"),kS=function(e){var t=e.getParam("skin"),n=e.getParam("skin_url");if(!1!==t){var r=t||"oxide";n=n?e.documentBaseURI.toAbsolute(n):xS.baseURL+"/skins/ui/"+r}return n},CS=function(e){return e.getParam("readonly",!1,"boolean")},AS=function(e){return!1===e.getParam("skin")},SS=function(e){return e.getParam("height",Math.max(e.getElement().offsetHeight,200))},ES=function(e){return e.getParam("width",wS.DOM.getStyle(e.getElement(),"width"))},TS=function(e){return B.from(e.getParam("min_width")).filter(h)},OS=function(e){return B.from(e.getParam("min_height")).filter(h)},RS=function(e){return B.from(e.getParam("max_width")).filter(h)},DS=function(e){return B.from(e.getParam("max_height")).filter(h)},LS=function(e){return B.from(e.getParam("style_formats")).filter(s)},MS=function(e){return e.getParam("style_formats_merge",!1,"boolean")},FS=function(e){return e.getParam("lineheight_formats","1 1.1 1.2 1.3 1.4 1.5 2","string").split(" ")},NS=function(e){return e.getParam("content_langs",void 0,"array")},BS=function(e){return e.getParam("removed_menuitems","")},IS=function(e){return!1!==e.getParam("menubar",!0,"boolean")},PS=function(e){var t=e.getParam("toolbar",!0),n=!0===t,r=o(t),i=s(t)&&t.length>0;return!jS(e)&&(i||r||n)},$S=function(e){var t=U(9,(function(t){return e.getParam("toolbar"+(t+1),!1,"string")})),n=X(t,(function(e){return"string"===typeof e}));return n.length>0?B.some(n):B.none()},jS=function(e){return $S(e).fold((function(){var t=e.getParam("toolbar",[],"string[]");return t.length>0}),E)};(function(e){e["default"]="wrap",e["floating"]="floating",e["sliding"]="sliding",e["scrolling"]="scrolling"})(QC||(QC={}));var zS,qS=function(e){return e.getParam("toolbar_mode","","string")};(function(e){e["auto"]="auto",e["top"]="top",e["bottom"]="bottom"})(zS||(zS={}));var HS,US=function(e){return e.getParam("toolbar_groups",{},"object")},WS=function(e){return e.getParam("toolbar_location",zS.auto,"string")},VS=function(e){return WS(e)===zS.bottom},GS=function(e){return e.getParam("fixed_toolbar_container","","string")},KS=function(e){return e.getParam("fixed_toolbar_container_target")},YS=function(e){return e.getParam("toolbar_persist",!1,"boolean")},XS=function(e){if(!e.inline)return B.none();var t=GS(e);if(t.length>0)return Pl(In(),t);var n=KS(e);return f(n)?B.some(tt.fromDom(n)):B.none()},QS=function(e){return e.inline&&XS(e).isSome()},JS=function(e){var t=XS(e);return t.getOrThunk((function(){return Rn(On(tt.fromDom(e.getElement())))}))},ZS=function(e){return e.inline&&!IS(e)&&!PS(e)&&!jS(e)},eE=function(e){var t=e.getParam("toolbar_sticky",!1,"boolean");return(t||e.inline)&&!QS(e)&&!ZS(e)},tE=function(e){return e.getParam("toolbar_sticky_offset",0,"number")},nE=function(e){return e.getParam("draggable_modal",!1,"boolean")},rE=function(e){var t=e.getParam("menu");return t?be(t,(function(e){return O(O({},e),{items:e.items})})):{}},iE=function(e){return e.getParam("menubar")},oE=function(e){return e.getParam("toolbar",!0)},aE=function(e){return e.getParam("file_picker_callback")},sE=function(e){return e.getParam("file_picker_types")},cE=function(e){return e.getParam("file_browser_callback_types")},lE=function(e){return!1===e.getParam("typeahead_urls")},uE=function(e){return e.getParam("anchor_top","#top")},dE=function(e){return e.getParam("anchor_bottom","#bottom")},fE=function(e){var t=e.getParam("file_picker_validator_handler",void 0,"function");return void 0===t?e.getParam("filepicker_validator_handler",void 0,"function"):t},pE="silver.readonly",hE=Zi([Fo("readonly")]),mE=function(e,t){var n=e.outerContainer,r=n.element;t&&(e.mothership.broadcastOn([_m()],{target:r}),e.uiMothership.broadcastOn([_m()],{target:r})),e.mothership.broadcastOn([pE],{readonly:t}),e.uiMothership.broadcastOn([pE],{readonly:t})},gE=function(e,t){e.on("init",(function(){e.mode.isReadOnly()&&mE(t,!0)})),e.on("SwitchMode",(function(){return mE(t,e.mode.isReadOnly())})),CS(e)&&e.setMode("readonly")},vE=function(){var e;return bd.config({channels:(e={},e[pE]={schema:hE,onReceive:function(e,t){Iv.set(e,t.readonly)}},e)})},bE=function(e){return Iv.config({disabled:e,disableClass:"tox-collection__item--state-disabled"})},_E=function(e){return Iv.config({disabled:e})},yE=function(e){return Iv.config({disabled:e,disableClass:"tox-tbtn--disabled"})},wE=function(e){return Iv.config({disabled:e,disableClass:"tox-tbtn--disabled",useNative:!1})},xE={item:bE,button:_E,splitButton:yE,toolbarButton:wE},kE=function(e,t){var n=e.getApi(t);return function(e){e(n)}},CE=function(e,t){return qs((function(n){var r=kE(e,n);r((function(n){var r=e.onSetup(n);p(r)&&t.set(r)}))}))},AE=function(e,t){return Hs((function(n){return kE(e,n)(t.get())}))},SE=function(e,t){return Ws((function(n,r){kE(e,n)(e.onAction),e.triggersSubmenu||t!==JC.CLOSE_ON_EXECUTE||(xs(n,os()),r.stop())}))},EE=(HS={},HS[ts()]=["disabling","alloy.base.behaviour","toggling","item-events"],HS),TE=De,OE=function(e,t,n,r){var i=ia(g);return{type:"item",dom:t.dom,components:TE(t.optComponents),data:e.data,eventOrder:EE,hasSubmenu:e.triggersSubmenu,itemBehaviours:fd([zy("item-events",[SE(e,n),CE(e,i),AE(e,i)]),xE.item((function(){return e.disabled||r.isDisabled()})),vE(),$y.config({})].concat(e.itemBehaviours))}},RE=function(e){return{value:e.value,meta:O({text:e.text.getOr("")},e.meta)}},DE=tinymce.util.Tools.resolve("tinymce.Env"),LE=function(e){var t={alt:"&#x2325;",ctrl:"&#x2303;",shift:"&#x21E7;",meta:"&#x2318;",access:"&#x2303;&#x2325;"},n={meta:"Ctrl",access:"Shift+Alt"},r=DE.mac?t:n,i=e.split("+"),o=V(i,(function(e){var t=e.toLowerCase().trim();return Ee(r,t)?r[t]:e}));return DE.mac?o.join(""):o.join("+")},ME=function(e,t,n){return void 0===n&&(n=[oA]),Wk(e,{tag:"div",classes:n},t)},FE=function(e){return{dom:{tag:"div",classes:[aA]},components:[kl(Fk.translate(e))]}},NE=function(e,t){return{dom:{tag:"div",classes:t,innerHtml:e}}},BE=function(e,t){return{dom:{tag:"div",classes:[aA]},components:[{dom:{tag:e.tag,styles:e.styles},components:[kl(Fk.translate(t))]}]}},IE=function(e){return{dom:{tag:"div",classes:[sA],innerHtml:LE(e)}}},PE=function(e){return ME("checkmark",e,[lA])},$E=function(e){return ME("chevron-right",e,[cA])},jE=function(e){return ME("chevron-down",e,[cA])},zE=function(e,t){var n="vertical"===e.direction?fA:pA,r="left"===e.align?mA:hA,i=function(){switch(e.valign){case"top":return gA;case"middle":return vA;case"bottom":return bA}};return{dom:{tag:"div",classes:[dA,n,r,i()]},components:t}},qE=function(e,t,n){return{dom:{tag:"img",classes:t,attributes:{src:e,alt:n.getOr("")}}}},HE=function(e,t,n){var r="custom",i="remove",o=e.ariaLabel,a=e.value,s=e.iconContent.map((function(e){return zk(e,t.icons,n)})),c=function(){var e=tA,n=s.getOr(""),c=o.map((function(e){return{title:t.translate(e)}})).getOr({}),l={tag:"div",attributes:c,classes:[e]};return O(O({},l),a===r?{tag:"button",classes:D(D([],l.classes,!0),["tox-swatches__picker-btn"],!1),innerHtml:n}:a===i?{classes:D(D([],l.classes,!0),["tox-swatch--remove"],!1),innerHtml:n}:{attributes:O(O({},l.attributes),{"data-mce-color":a}),styles:{"background-color":a}})};return{dom:c(),optComponents:[]}},UE=function(e){var t=e.map((function(e){return{attributes:{title:Fk.translate(e)}}})).getOr({});return O({tag:"div",classes:[ZC,eA]},t)},WE=function(e,t,n,r){var i={tag:"div",classes:[oA]},o=function(e){return Wk(e,i,t.icons,r)},a=function(){return B.some({dom:i})},s=n?e.iconContent.map(o).orThunk(a):B.none(),c=e.checkMark,l=B.from(e.meta).fold((function(){return FE}),(function(e){return Ee(e,"style")?k(BE,e.style):FE})),u=e.htmlContent.fold((function(){return e.textContent.map(l)}),(function(e){return B.some(NE(e,[aA]))})),d={dom:UE(e.ariaLabel),optComponents:[s,u,e.shortcutContent.map(IE),c,e.caret]};return d},VE=function(e,t,n,r){return void 0===r&&(r=B.none()),"color"===e.presets?HE(e,t,r):WE(e,t,n,r)},GE=function(e,t){return Se(e,"tooltipWorker").map((function(e){return[_S.config({lazySink:t.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:function(e){return{type:"submenu",item:e,overrides:{maxHeightFunction:Ef}}},mode:"follow-highlight",onShow:function(t,n){e((function(e){_S.setComponents(t,[Cl({element:tt.fromDom(e)})])}))}})]})).getOr([])},KE=function(e){return wS.DOM.encode(e)},YE=function(e,t){var n=Fk.translate(e),r=KE(n);if(t.length>0){var i=new RegExp(yS(t),"gi");return r.replace(i,(function(e){return'<span class="tox-autocompleter-highlight">'+e+"</span>"}))}return r},XE=function(e,t,n,r,i,o,a,s){void 0===s&&(s=!0);var c=VE({presets:r,textContent:B.none(),htmlContent:n?e.text.map((function(e){return YE(e,t)})):B.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:B.none(),checkMark:B.none(),caret:B.none(),value:e.value},a.providers,s,e.icon);return OE({data:RE(e),disabled:e.disabled,getApi:y({}),onAction:function(t){return i(e.value,e.meta)},onSetup:y(g),triggersSubmenu:!1,itemBehaviours:GE(e.meta,a)},c,o,a.providers)},QE=function(e,t){return V(e,(function(e){switch(e.type){case"cardcontainer":return zE(e,QE(e.items,t));case"cardimage":return qE(e.src,e.classes,e.alt);case"cardtext":var n=e.name.exists((function(e){return q(t.cardText.highlightOn,e)})),r=n?B.from(t.cardText.matchText).getOr(""):"";return NE(YE(e.text,r),e.classes)}}))},JE=function(e,t,n,r){var i=function(e){return{isDisabled:function(){return Iv.isDisabled(e)},setDisabled:function(t){Iv.set(e,t),G(Yp(e.element,"*"),(function(n){e.getSystem().getByDom(n).each((function(e){e.hasConfigured(Iv)&&Iv.set(e,t)}))}))}}},o={dom:UE(e.label),optComponents:[B.some({dom:{tag:"div",classes:[dA,pA]},components:QE(e.items,r)})]};return OE({data:RE(O({text:B.none()},e)),disabled:e.disabled,getApi:i,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:B.from(r.itemBehaviours).getOr([])},o,t,n.providers)},ZE=function(e,t,n,r,i,o,a,s){void 0===s&&(s=!0);var c=function(e){return{setActive:function(t){mw.set(e,t)},isActive:function(){return mw.isOn(e)},isDisabled:function(){return Iv.isDisabled(e)},setDisabled:function(t){return Iv.set(e,t)}}},l=VE({presets:n,textContent:t?e.text:B.none(),htmlContent:B.none(),ariaLabel:e.text,iconContent:e.icon,shortcutContent:t?e.shortcut:B.none(),checkMark:t?B.some(PE(a.icons)):B.none(),caret:B.none(),value:e.value},a,s);return wi(OE({data:RE(e),disabled:e.disabled,getApi:c,onAction:function(t){return r(e.value)},onSetup:function(e){return e.setActive(i),g},triggersSubmenu:!1,itemBehaviours:[]},l,o,a),{toggling:{toggleClass:rA,toggleOnExecute:!1,selected:e.active}})},eT=zg(Tw(),Ow()),tT=function(e){return{value:e}},nT=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,rT=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,iT=function(e){return nT.test(e)||rT.test(e)},oT=function(e){return je(e,"#").toUpperCase()},aT=function(e){return iT(e)?B.some({value:oT(e)}):B.none()},sT=function(e){var t=e.value.replace(nT,(function(e,t,n,r){return t+t+n+n+r+r}));return{value:t}},cT=function(e){var t=sT(e),n=rT.exec(t.value);return null===n?["FFFFFF","FF","FF","FF"]:n},lT=function(e){var t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},uT=function(e){var t=lT(e.red)+lT(e.green)+lT(e.blue);return tT(t)},dT=Math.min,fT=Math.max,pT=Math.round,hT=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,mT=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,gT=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},vT=function(e){var t=parseInt(e,10);return t.toString()===e&&t>=0&&t<=255},bT=function(e){var t,n,r,i=(e.hue||0)%360,o=e.saturation/100,a=e.value/100;if(o=fT(0,dT(o,1)),a=fT(0,dT(a,1)),0===o)return t=n=r=pT(255*a),gT(t,n,r,1);var s=i/60,c=a*o,l=c*(1-Math.abs(s%2-1)),u=a-c;switch(Math.floor(s)){case 0:t=c,n=l,r=0;break;case 1:t=l,n=c,r=0;break;case 2:t=0,n=c,r=l;break;case 3:t=0,n=l,r=c;break;case 4:t=l,n=0,r=c;break;case 5:t=c,n=0,r=l;break;default:t=n=r=0}return t=pT(255*(t+u)),n=pT(255*(n+u)),r=pT(255*(r+u)),gT(t,n,r,1)},_T=function(e){var t=cT(e),n=parseInt(t[1],16),r=parseInt(t[2],16),i=parseInt(t[3],16);return gT(n,r,i,1)},yT=function(e,t,n,r){var i=parseInt(e,10),o=parseInt(t,10),a=parseInt(n,10),s=parseFloat(r);return gT(i,o,a,s)},wT=function(e){if("transparent"===e)return B.some(gT(0,0,0,0));var t=hT.exec(e);if(null!==t)return B.some(yT(t[1],t[2],t[3],"1"));var n=mT.exec(e);return null!==n?B.some(yT(n[1],n[2],n[3],n[4])):B.none()},xT=function(e){return"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"},kT=gT(255,0,0,1),CT=function(e){return e.fire("SkinLoaded")},AT=function(e,t){return e.fire("SkinLoadError",t)},ST=function(e){return e.fire("ResizeEditor")},ET=function(e,t){return e.fire("ResizeContent",t)},TT=function(e,t){return e.fire("ScrollContent",t)},OT=function(e,t){return e.fire("TextColorChange",t)},RT=function(e,t,n){return{hue:e,saturation:t,value:n}},DT=function(e){var t=0,n=0,r=0,i=e.red/255,o=e.green/255,a=e.blue/255,s=Math.min(i,Math.min(o,a)),c=Math.max(i,Math.max(o,a));if(s===c)return r=s,RT(0,0,100*r);var l=i===s?o-a:a===s?i-o:a-i;return t=i===s?3:a===s?1:5,t=60*(t-l/(c-s)),n=(c-s)/c,r=c,RT(Math.round(t),Math.round(100*n),Math.round(100*r))},LT=function(e){return DT(_T(e))},MT=function(e){return uT(bT(e))},FT=function(e){return aT(e).orThunk((function(){return wT(e).map(uT)})).getOrThunk((function(){var t=document.createElement("canvas");t.height=1,t.width=1;var n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.fillStyle="#FFFFFF",n.fillStyle=e,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data,i=r[0],o=r[1],a=r[2],s=r[3];return uT(gT(i,o,a,s))}))},NT=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),BT="tinymce-custom-colors";function IT(e){void 0===e&&(e=10);var t=NT.getItem(BT),n=o(t)?JSON.parse(t):[],r=function(t){var n=e-t.length;return n<0?t.slice(0,e):t},i=r(n),a=function(t){z(i,t).each(s),i.unshift(t),i.length>e&&i.pop(),NT.setItem(BT,JSON.stringify(i))},s=function(e){i.splice(e,1)},c=function(){return i.slice(0)};return{add:a,state:c}}var PT,$T="choiceitem",jT=[{type:$T,text:"Light Green",value:"#BFEDD2"},{type:$T,text:"Light Yellow",value:"#FBEEB8"},{type:$T,text:"Light Red",value:"#F8CAC6"},{type:$T,text:"Light Purple",value:"#ECCAFA"},{type:$T,text:"Light Blue",value:"#C2E0F4"},{type:$T,text:"Green",value:"#2DC26B"},{type:$T,text:"Yellow",value:"#F1C40F"},{type:$T,text:"Red",value:"#E03E2D"},{type:$T,text:"Purple",value:"#B96AD9"},{type:$T,text:"Blue",value:"#3598DB"},{type:$T,text:"Dark Turquoise",value:"#169179"},{type:$T,text:"Orange",value:"#E67E23"},{type:$T,text:"Dark Red",value:"#BA372A"},{type:$T,text:"Dark Purple",value:"#843FA1"},{type:$T,text:"Dark Blue",value:"#236FA1"},{type:$T,text:"Light Gray",value:"#ECF0F1"},{type:$T,text:"Medium Gray",value:"#CED4D9"},{type:$T,text:"Gray",value:"#95A5A6"},{type:$T,text:"Dark Gray",value:"#7E8C8D"},{type:$T,text:"Navy Blue",value:"#34495E"},{type:$T,text:"Black",value:"#000000"},{type:$T,text:"White",value:"#ffffff"}],zT=IT(10),qT=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push({text:e[n+1],value:"#"+FT(e[n]).value,type:"choiceitem"});return t},HT=function(e,t){return e.getParam("color_cols",t,"number")},UT=function(e){return!1!==e.getParam("custom_colors")},WT=function(e){return e.getParam("color_map")},VT=function(e){var t=WT(e);return void 0!==t?qT(t):jT},GT=function(){return V(zT.state(),(function(e){return{type:$T,text:e,value:e}}))},KT=function(e){zT.add(e)},YT="#000000",XT=function(e,t){var n;return e.dom.getParents(e.selection.getStart(),(function(e){var r;(r=e.style["forecolor"===t?"color":"background-color"])&&(n=n||r)})),B.from(n)},QT=function(e,t,n){e.undoManager.transact((function(){e.focus(),e.formatter.apply(t,{value:n}),e.nodeChanged()}))},JT=function(e,t){e.undoManager.transact((function(){e.focus(),e.formatter.remove(t,{value:null},null,!0),e.nodeChanged()}))},ZT=function(e){e.addCommand("mceApplyTextcolor",(function(t,n){QT(e,t,n)})),e.addCommand("mceRemoveTextcolor",(function(t){JT(e,t)}))},eO=function(e){return Math.max(5,Math.ceil(Math.sqrt(e)))},tO=function(e){var t=VT(e),n=eO(t.length);return HT(e,n)},nO=function(e){var t="choiceitem",n={type:t,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"},r={type:t,text:"Custom color",icon:"color-picker",value:"custom"};return e?[n,r]:[n]},rO=function(e,t,n,r){if("custom"===n){var i=lO(e);i((function(n){n.each((function(n){KT(n),e.execCommand("mceApplyTextcolor",t,n),r(n)}))}),YT)}else"remove"===n?(r(""),e.execCommand("mceRemoveTextcolor",t)):(r(n),e.execCommand("mceApplyTextcolor",t,n))},iO=function(e,t){return e.concat(GT().concat(nO(t)))},oO=function(e,t){return function(n){n(iO(e,t))}},aO=function(e,t,n){var r="forecolor"===t?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";e.setIconFill(r,n)},sO=function(e,t,n,r,i){e.ui.registry.addSplitButton(t,{tooltip:r,presets:"color",icon:"forecolor"===t?"text-color":"highlight-bg-color",select:function(t){var r=XT(e,n);return r.bind((function(e){return wT(e).map((function(e){var n=uT(e).value;return qe(t.toLowerCase(),n)}))})).getOr(!1)},columns:tO(e),fetch:oO(VT(e),UT(e)),onAction:function(t){rO(e,n,i.get(),g)},onItemAction:function(r,o){rO(e,n,o,(function(n){i.set(n),OT(e,{name:t,color:n})}))},onSetup:function(n){aO(n,t,i.get());var r=function(e){e.name===t&&aO(n,e.name,e.color)};return e.on("TextColorChange",r),function(){e.off("TextColorChange",r)}}})},cO=function(e,t,n,r){e.ui.registry.addNestedMenuItem(t,{text:r,icon:"forecolor"===t?"text-color":"highlight-bg-color",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"colorswatch",onAction:function(t){rO(e,n,t.value,g)}}]}})},lO=function(e){return function(t,n){var r=!1,i=function(n){var i=n.getData(),o=i.colorpicker;r?(t(B.from(o)),n.close()):e.windowManager.alert(e.translate(["Invalid hex color code: {0}",o]))},o=function(e,t){"hex-valid"===t.name&&(r=t.value)},a={colorpicker:n};e.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:o,onSubmit:i,onClose:g,onCancel:function(){t(B.none())}})}},uO=function(e){ZT(e);var t=ia(YT),n=ia(YT);sO(e,"forecolor","forecolor","Text color",t),sO(e,"backcolor","hilitecolor","Background color",n),cO(e,"forecolor","forecolor","Text color"),cO(e,"backcolor","hilitecolor","Background color")},dO=function(e,t,n,r,i,o,a,s){var c=LA(t),l="color"!==i?"normal":"color",u=fO(t,n,r,l,o,a,s);return NA(e,c,u,r,i)},fO=function(e,t,n,r,i,o,a){return De(V(e,(function(s){return"choiceitem"===s.type?VA(s).fold(MA,(function(c){return B.some(ZE(c,1===n,r,t,o(s.value),i,a,LA(e)))})):B.none()})))},pO=function(e,t){var n=xA(t);if(1===e)return{mode:"menu",moveOnTab:!0};if("auto"===e)return{mode:"grid",selector:"."+n.item,initSize:{numColumns:1,numRows:1}};var r="color"===t?"tox-swatches__row":"tox-collection__group";return{mode:"matrix",rowSelector:"."+r}},hO=function(e,t){return 1===e?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:"auto"===e?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:"color"===t?".tox-swatches__row":".tox-collection__group",cell:"color"===t?"."+tA:"."+eA}}},mO=function(e,t){var n=gO(e,t),r=t.colorinput.getColorCols(),i="color",o=dO(ic("menu-value"),n,(function(t){e.onAction({value:t})}),r,i,JC.CLOSE_ON_EXECUTE,S,t.shared.providers),a=O(O({},o),{markers:xA(i),movement:pO(r,i)});return{type:"widget",data:{value:ic("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[eT.widget(jw.sketch(a))]}},gO=function(e,t){var n=e.initData.allowCustomColors&&t.colorinput.hasCustomColors();return e.initData.colors.fold((function(){return iO(t.colorinput.getColors(),n)}),(function(e){return e.concat(nO(n))}))},vO=ic("cell-over"),bO=ic("cell-execute"),_O=function(e,t,n){var r,i=function(n){return ks(n,vO,{row:e,col:t})},o=function(n){return ks(n,bO,{row:e,col:t})},a=function(e,t){t.stop(),o(e)};return El({dom:{tag:"div",attributes:(r={role:"button"},r["aria-labelledby"]=n,r)},behaviours:fd([zy("insert-table-picker-cell",[Ls(Ia(),Xy.focus),Ls(ts(),o),Ls(Ua(),a),Ls(rs(),a)]),mw.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),Xy.config({onFocus:i})])})},yO=function(e,t,n){for(var r=[],i=0;i<t;i++){for(var o=[],a=0;a<n;a++)o.push(_O(i,a,e));r.push(o)}return r},wO=function(e,t,n,r,i){for(var o=0;o<r;o++)for(var a=0;a<i;a++)mw.set(e[o][a],o<=t&&a<=n)},xO=function(e){return re(e,(function(e){return V(e,Tl)}))},kO=function(e,t){return kl(t+"x"+e)},CO=function(e){var t=10,n=10,r=ic("size-label"),i=yO(r,t,n),o=kO(0,0),a=Ex({dom:{tag:"span",classes:["tox-insert-table-picker__label"],attributes:{id:r}},components:[o],behaviours:fd([$y.config({})])});return{type:"widget",data:{value:ic("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[eT.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:xO(i).concat(a.asSpec()),behaviours:fd([zy("insert-table-picker",[qs((function(e){$y.set(a.get(e),[o])})),Ps(vO,(function(e,r,o){var s=o.event,c=s.row,l=s.col;wO(i,c,l,t,n),$y.set(a.get(e),[kO(c+1,l+1)])})),Ps(bO,(function(t,n,r){var i=r.event,o=i.row,a=i.col;e.onAction({numRows:o+1,numColumns:a+1}),xs(t,os())}))]),Oy.config({initSize:{numRows:t,numColumns:n},mode:"flatgrid",selector:'[role="button"]'})])})]}},AO={inserttable:CO,colorswatch:mO},SO=function(e,t){return Se(AO,e.fancytype).map((function(n){return n(e,t)}))},EO=function(e,t,n,r,i){void 0===r&&(r=!0),void 0===i&&(i=!1);var o=i?jE(n.icons):$E(n.icons),a=function(e){return{isDisabled:function(){return Iv.isDisabled(e)},setDisabled:function(t){return Iv.set(e,t)}}},s=VE({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:B.none(),ariaLabel:e.text,caret:B.some(o),checkMark:B.none(),shortcutContent:e.shortcut},n,r);return OE({data:RE(e),getApi:a,disabled:e.disabled,onAction:g,onSetup:e.onSetup,triggersSubmenu:!0,itemBehaviours:[]},s,t,n)},TO=function(e,t,n,r){void 0===r&&(r=!0);var i=function(e){return{isDisabled:function(){return Iv.isDisabled(e)},setDisabled:function(t){return Iv.set(e,t)}}},o=VE({presets:"normal",iconContent:e.icon,textContent:e.text,htmlContent:B.none(),ariaLabel:e.text,caret:B.none(),checkMark:B.none(),shortcutContent:e.shortcut},n,r);return OE({data:RE(e),getApi:i,disabled:e.disabled,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},o,t,n)},OO=function(e){var t=e.text.fold((function(){return{}}),(function(e){return{innerHtml:e}}));return{type:"separator",dom:O({tag:"div",classes:[eA,iA]},t),components:[]}},RO=function(e,t,n,r){void 0===r&&(r=!0);var i=function(e){return{setActive:function(t){mw.set(e,t)},isActive:function(){return mw.isOn(e)},isDisabled:function(){return Iv.isDisabled(e)},setDisabled:function(t){return Iv.set(e,t)}}},o=VE({iconContent:e.icon,textContent:e.text,htmlContent:B.none(),ariaLabel:e.text,checkMark:B.some(PE(n.icons)),caret:B.none(),shortcutContent:e.shortcut,presets:"normal",meta:e.meta},n,r);return wi(OE({data:RE(e),disabled:e.disabled,getApi:i,onAction:e.onAction,onSetup:e.onSetup,triggersSubmenu:!1,itemBehaviours:[]},o,t,n),{toggling:{toggleClass:rA,toggleOnExecute:!1,selected:e.active}})},DO=XE,LO=OO,MO=TO,FO=EO,NO=RO,BO=SO,IO=JE;(function(e){e[e["ContentFocus"]=0]="ContentFocus",e[e["UiFocus"]=1]="UiFocus"})(PT||(PT={}));var PO=function(e,t,n,r,i){var o=n.shared.providers,a=function(e){return i?O(O({},e),{shortcut:B.none(),icon:e.text.isSome()?B.none():e.icon}):e};switch(e.type){case"menuitem":return ZA(e).fold(MA,(function(e){return B.some(MO(a(e),t,o,r))}));case"nestedmenuitem":return tS(e).fold(MA,(function(e){return B.some(FO(a(e),t,o,r,i))}));case"togglemenuitem":return rS(e).fold(MA,(function(e){return B.some(NO(a(e),t,o,r))}));case"separator":return EC(e).fold(MA,(function(e){return B.some(LO(e))}));case"fancymenuitem":return QA(e).fold(MA,(function(e){return BO(a(e),n)}));default:return B.none()}},$O=function(e,t,n,r,i,o,a){var s=1===r,c=!s||LA(e);return De(V(e,(function(e){switch(e.type){case"separator":return RC(e).fold(MA,(function(e){return B.some(LO(e))}));case"cardmenuitem":return UA(e).fold(MA,(function(e){return B.some(IO(O(O({},e),{onAction:function(t){e.onAction(t),n(e.value,e.meta)}}),i,o,{itemBehaviours:GE(e.meta,o),cardText:{matchText:t,highlightOn:a}}))}));case"autocompleteitem":default:return DC(e).fold(MA,(function(e){return B.some(DO(e,t,s,"normal",n,i,o,c))}))}})))},jO=function(e,t,n,r,i){var o=LA(t),a=De(V(t,(function(e){var t=function(e){return i?!Ee(e,"text"):o},a=function(e){return PO(e,n,r,t(e),i)};return"nestedmenuitem"===e.type&&e.getSubmenuItems().length<=0?a(O(O({},e),{disabled:!0})):a(e)}))),s=i?FA:NA;return s(e,o,a,1,"normal")},zO=function(e){return Jw.singleData(e.value,e)},qO=function(e,t,n,r){var i=n===PT.ContentFocus?Sb():Ab(),o=pO(t,r),a=xA(r);return{dom:e.dom,components:e.components,items:e.items,value:e.value,markers:{selectedItem:a.selectedItem,item:a.item},movement:o,fakeFocus:n===PT.ContentFocus,focusManager:i,menuBehaviours:sS.unnamedEvents("auto"!==t?[]:[qs((function(e,t){iS(e,4,a.item).each((function(t){var n=t.numColumns,r=t.numRows;Oy.setGridSize(e,r,n)}))}))])}},HO=function(e,t){var n=rf(),r=ia(!1),i=El(tx.sketch({dom:{tag:"div",classes:["tox-autocompleter"]},components:[],fireDismissalEventInstead:{},inlineBehaviours:fd([zy("dismissAutocompleter",[Ls(hs(),(function(){return c()}))])]),lazySink:t.getSink})),o=function(){return tx.isOpen(i)},a=function(){return n.get().isSome()},s=function(){a()&&tx.hide(i)},c=function(){if(a()){var t=n.get().map((function(e){return e.element}));oC(t.getOr(tt.fromDom(e.selection.getNode()))).each(Br),s(),n.clear(),r.set(!1)}},l=ht((function(){return XC(e)})),u=function(n,i){var o=he(i,(function(e){return B.from(e.columns)})).getOr(1);return re(i,(function(i){var a=i.items;return $O(a,i.matchText,(function(t,o){var a=e.selection.getRng();fC(e.dom,a,n).fold((function(){}),(function(e){var n=e.range,a={hide:function(){c()},reload:function(e){s(),h(e)}};r.set(!0),i.onAction(a,n,t,o),r.set(!1)}))}),o,JC.BUBBLE_TO_SANDBOX,t,i.highlightOn)}))},d=function(t){if(!a()){var i=iC(e,t.range);n.set({triggerChar:t.triggerChar,element:i,matchLength:t.text.length}),r.set(!1)}},f=function(t,n,r,o){t.matchLength=n.text.length;var a=he(r,(function(e){return B.from(e.columns)})).getOr(1);tx.showAt(i,jw.sketch(qO(NA("autocompleter-value",!0,o,a,"normal"),a,PT.ContentFocus,"normal")),{anchor:{type:"node",root:tt.fromDom(e.getBody()),node:B.from(t.element)}}),tx.getContent(i).each(rb.highlightFirst)},p=function(t){return n.get().map((function(n){return fC(e.dom,e.selection.getRng(),n.triggerChar).bind((function(n){return AC(e,l,n,t)}))})).getOrThunk((function(){return CC(e,l)}))},h=function(e){p(e).fold(c,(function(e){d(e.context),e.lookupData.then((function(t){n.get().map((function(n){var r=e.context;if(n.triggerChar===r.triggerChar){var i=u(r.triggerChar,t);i.length>0?f(n,r,t,i):r.text.length-n.matchLength>=10?c():s()}}))}))}))},m=Zk((function(e){27!==e.which&&h()}),50),g={onKeypress:m,cancelIfNecessary:c,isMenuOpen:o,isActive:a,isProcessingAction:r.get,getView:function(){return tx.getContent(i)}};!1===e.hasPlugin("rtc")&&hC.setup(g,e)},UO={register:HO},WO=function(e,t,n){return $l(e,t,n).isSome()},VO=function(e,t){var n=null,r=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n=setTimeout((function(){e.apply(null,r),n=null}),t)},i=function(){null!==n&&(clearTimeout(n),n=null)};return{cancel:i,schedule:r}},GO=5,KO=400,YO=function(e){var t=e.raw;return void 0===t.touches||1!==t.touches.length?B.none():B.some(t.touches[0])},XO=function(e,t){var n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y);return n>GO||r>GO},QO=function(e){var t=rf(),n=ia(!1),r=VO((function(t){e.triggerEvent(is(),t),n.set(!0)}),KO),i=function(e){return YO(e).each((function(i){r.cancel();var o={x:i.clientX,y:i.clientY,target:e.target};r.schedule(e),n.set(!1),t.set(o)})),B.none()},o=function(e){return r.cancel(),YO(e).each((function(e){t.on((function(n){XO(e,n)&&t.clear()}))})),B.none()},a=function(i){r.cancel();var o=function(e){return ln(e.target,i.target)};return t.get().filter(o).map((function(t){return n.get()?(i.prevent(),!1):e.triggerEvent(rs(),i)}))},s=ha([{key:Oa(),value:i},{key:Ra(),value:o},{key:Da(),value:a}]),c=function(e,t){return Se(s,t).bind((function(t){return t(e)}))};return{fireIfReady:c}},JO=function(e){var t=e.raw;return t.which===ib[0]&&!q(["input","textarea"],st(e.target))&&!WO(e.target,'[contenteditable="true"]')},ZO=function(){return tn().browser.isFirefox()},eR=function(e,t){return ZO()?sf(e,"focus",t):af(e,"focusin",t)},tR=function(e,t){return ZO()?sf(e,"blur",t):af(e,"focusout",t)},nR=function(e,t){var n=O({stopBackspace:!0},t),r=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],i=QO(n),o=V(r.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),(function(t){return af(e,t,(function(e){i.fireIfReady(e,t).each((function(t){t&&e.kill()}));var r=n.triggerEvent(t,e);r&&e.kill()}))})),a=rf(),s=af(e,"paste",(function(e){i.fireIfReady(e,"paste").each((function(t){t&&e.kill()}));var t=n.triggerEvent("paste",e);t&&e.kill(),a.set(setTimeout((function(){n.triggerEvent(Za(),e)}),0))})),c=af(e,"keydown",(function(e){var t=n.triggerEvent("keydown",e);t?e.kill():n.stopBackspace&&JO(e)&&e.prevent()})),l=eR(e,(function(e){var t=n.triggerEvent("focusin",e);t&&e.kill()})),u=rf(),d=tR(e,(function(e){var t=n.triggerEvent("focusout",e);t&&e.kill(),u.set(setTimeout((function(){n.triggerEvent(Ja(),e)}),0))})),f=function(){G(o,(function(e){e.unbind()})),c.unbind(),l.unbind(),d.unbind(),s.unbind(),a.on(clearTimeout),u.on(clearTimeout)};return{unbind:f}},rR=function(e,t){var n=Se(e,"target").getOr(t);return ia(n)},iR=function(e,t){var n=ia(!1),r=ia(!1),i=function(){n.set(!0)},o=function(){r.set(!0)};return{stop:i,cut:o,isStopped:n.get,isCut:r.get,event:e,setSource:t.set,getSource:t.get}},oR=function(e){var t=ia(!1),n=function(){t.set(!0)};return{stop:n,cut:g,isStopped:t.get,isCut:S,event:e,setSource:A("Cannot set source of a broadcasted event"),getSource:A("Cannot get source of a broadcasted event")}},aR=aa.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),sR=function(e,t,n,r,i,o){var a=e(t,r),s=iR(n,i);return a.fold((function(){return o.logEventNoHandlers(t,r),aR.complete()}),(function(e){var n=e.descHandler,r=Ic(n);return r(s),s.isStopped()?(o.logEventStopped(t,e.element,n.purpose),aR.stopped()):s.isCut()?(o.logEventCut(t,e.element,n.purpose),aR.complete()):vn(e.element).fold((function(){return o.logNoParent(t,e.element,n.purpose),aR.complete()}),(function(r){return o.logEventResponse(t,e.element,n.purpose),aR.resume(r)}))}))},cR=function(e,t,n,r,i,o){return sR(e,t,n,r,i,o).fold(E,(function(r){return cR(e,t,n,r,i,o)}),S)},lR=function(e,t,n,r,i){var o=rR(n,r);return sR(e,t,n,r,o,i)},uR=function(e,t,n){var r=oR(t);return G(e,(function(e){var t=e.descHandler,n=Ic(t);n(r)})),r.isStopped()},dR=function(e,t,n,r){return fR(e,t,n,n.target,r)},fR=function(e,t,n,r,i){var o=rR(n,r);return cR(e,t,n,r,o,i)},pR=function(e,t){return{element:e,descHandler:t}},hR=function(e,t){return{id:e,descHandler:t}},mR=function(){var e={},t=function(t,n,r){ve(r,(function(r,i){var o=void 0!==e[i]?e[i]:{};o[n]=Bc(r,t),e[i]=o}))},n=function(e,t){return dc(t).bind((function(t){return Se(e,t)})).map((function(e){return pR(t,e)}))},r=function(t){return Se(e,t).map((function(e){return ke(e,(function(e,t){return hR(t,e)}))})).getOr([])},i=function(t,r,i){return Se(e,r).bind((function(e){return ya(i,(function(t){return n(e,t)}),t)}))},o=function(t){ve(e,(function(e,n){Ee(e,t)&&delete e[t]}))};return{registerId:t,unregisterId:o,filterByType:r,find:i}},gR=function(){var e=mR(),t={},n=function(e){var t=e.element;return dc(t).getOrThunk((function(){return lc("uid-",e.element)}))},r=function(e,n){var r=t[n];if(r!==e)throw new Error('The tagId "'+n+'" is already used by: '+Zs(r.element)+"\nCannot use it for: "+Zs(e.element)+"\nThe conflicting element is"+(Bn(r.element)?" ":" not ")+"already in the DOM");o(e)},i=function(i){var o=n(i);Te(t,o)&&r(i,o);var a=[i];e.registerId(a,o,i.events),t[o]=i},o=function(n){dc(n.element).each((function(n){delete t[n],e.unregisterId(n)}))},a=function(t){return e.filterByType(t)},s=function(t,n,r){return e.find(t,n,r)},c=function(e){return Se(t,e)};return{find:s,filter:a,register:i,unregister:o,getById:c}},vR=function(e){var t=e.dom,n=t.attributes,r=R(t,["attributes"]);return{uid:e.uid,dom:O({tag:"div",attributes:O({role:"presentation"},n)},r),components:e.components,behaviours:ng(e.containerBehaviours),events:e.events,domModification:e.domModification,eventOrder:e.eventOrder}},bR=fv({name:"Container",factory:vR,configFields:[Ko("components",[]),tg("containerBehaviours",[]),Ko("events",{}),Ko("domModification",{}),Ko("eventOrder",{})]}),_R=function(e){var t=function(t){return vn(e.element).fold(E,(function(e){return ln(t,e)}))},n=gR(),r=function(e,r){return n.find(t,e,r)},i=nR(e.element,{triggerEvent:function(e,t){return Ql(e,t.target,(function(n){return dR(r,e,t,n)}))}}),o={debugInfo:y("real"),triggerEvent:function(e,t,n){Ql(e,t,(function(i){return fR(r,e,n,t,i)}))},triggerFocus:function(e,t){dc(e).fold((function(){xd(e)}),(function(n){Ql(Qa(),e,(function(n){return lR(r,Qa(),{originator:t,kill:g,prevent:g,target:e},e,n),!1}))}))},triggerEscape:function(e,t){o.triggerEvent("keydown",e.element,t.event)},getByUid:function(e){return m(e)},getByDom:function(e){return v(e)},build:El,addToGui:function(e){c(e)},removeFromGui:function(e){l(e)},addToWorld:function(e){a(e)},removeFromWorld:function(e){s(e)},broadcast:function(e){f(e)},broadcastOn:function(e,t){p(e,t)},broadcastEvent:function(e,t){h(e,t)},isConnected:E},a=function(e){e.connect(o),dt(e.element)||(n.register(e),G(e.components(),a),o.triggerEvent(ss(),e.element,{target:e.element}))},s=function(e){dt(e.element)||(G(e.components(),s),n.unregister(e)),e.disconnect()},c=function(t){Uh(e,t)},l=function(e){Gh(e)},u=function(){i.unbind(),Nr(e.element)},d=function(e){var t=n.filter(es());G(t,(function(t){var n=t.descHandler,r=Ic(n);r(e)}))},f=function(e){d({universal:!0,data:e})},p=function(e,t){d({universal:!1,channels:e,data:t})},h=function(e,t){var r=n.filter(e);return uR(r,t)},m=function(e){return n.getById(e).fold((function(){return ri.error(new Error('Could not find component with uid: "'+e+'" in system.'))}),ri.value)},v=function(e){var t=dc(e).getOr("not found");return m(t)};return a(e),{root:e,element:e.element,destroy:u,add:c,remove:l,getByUid:m,getByDom:v,addToWorld:a,removeFromWorld:s,broadcast:f,broadcastOn:p,broadcastEvent:h}},yR=function(e,t){return{dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:V(e.items,t.interpreter)}},wR=y([Ko("prefix","form-field"),tg("fieldBehaviours",[bv,eg])]),xR=y([Ng({schema:[Oo("dom")],name:"label"}),Ng({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[Oo("text")],name:"aria-descriptor"}),Mg({factory:{sketch:function(e){var t=fa(e,["factory"]);return e.factory.sketch(t)}},schema:[Oo("factory")],name:"field"})]),kR=function(e,t,n,r){var i=rg(e.fieldBehaviours,[bv.config({find:function(t){return Kg(t,e,"field")}}),eg.config({store:{mode:"manual",getValue:function(e){return bv.getCurrent(e).bind(eg.getValue)},setValue:function(e,t){bv.getCurrent(e).each((function(e){eg.setValue(e,t)}))}}})]),o=Ts([qs((function(t,n){var r=Xg(t,e,["label","field","aria-descriptor"]);r.field().each((function(t){var n=ic(e.prefix);r.label().each((function(e){jn(e.element,"for",n),jn(t.element,"id",n)})),r["aria-descriptor"]().each((function(n){var r=ic(e.prefix);jn(n.element,"id",r),jn(t.element,"aria-describedby",r)}))}))}))]),a={getField:function(t){return Kg(t,e,"field")},getLabel:function(t){return Kg(t,e,"label")}};return{uid:e.uid,dom:e.dom,components:t,behaviours:i,events:o,apis:a}},CR=pv({name:"FormField",configFields:wR(),partFields:xR(),factory:kR,apis:{getField:function(e,t){return e.getField(t)},getLabel:function(e,t){return e.getLabel(t)}}}),AR=function(e,t){return Rc({attributes:ha([{key:t.tabAttr,value:"true"}])})},SR=Object.freeze({__proto__:null,exhibit:AR}),ER=[Ko("tabAttr","data-alloy-tabstop")],TR=hd({fields:ER,name:"tabstopping",active:SR}),OR=tinymce.util.Tools.resolve("tinymce.html.Entities"),RR=function(e,t,n,r){var i=LR(e,t,n,r);return CR.sketch(i)},DR=function(e,t){return RR(e,t,[],[])},LR=function(e,t,n,r){return{dom:FR(n),components:e.toArray().concat([t]),fieldBehaviours:fd(r)}},MR=function(){return FR([])},FR=function(e){return{tag:"div",classes:["tox-form__group"].concat(e)}},NR=function(e,t){return CR.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}})},BR=ic("form-component-change"),IR=ic("form-close"),PR=ic("form-cancel"),$R=ic("form-action"),jR=ic("form-submit"),zR=ic("form-block"),qR=ic("form-unblock"),HR=ic("form-tabchange"),UR=ic("form-resize"),WR=function(e,t){var n,r=e.label.map((function(e){return NR(e,t)})),i=function(e){return function(t,n){$l(n.event.target,"[data-collection-item-value]").each((function(r){e(t,n,r,qn(r,"data-collection-item-value"))}))}},o=function(n,r){var i=V(r,(function(n){var r=Fk.translate(n.text),i=1===e.columns?'<div class="tox-collection__item-label">'+r+"</div>":"",o='<div class="tox-collection__item-icon">'+n.icon+"</div>",a={_:" "," - ":" ","-":" "},s=r.replace(/\_| \- |\-/g,(function(e){return a[e]})),c=t.isDisabled()?" tox-collection__item--state-disabled":"";return'<div class="tox-collection__item'+c+'" tabindex="-1" data-collection-item-value="'+OR.encodeAllRaw(n.value)+'" title="'+s+'" aria-label="'+s+'">'+o+i+"</div>"})),o="auto"!==e.columns&&e.columns>1?W(i,e.columns):[i],a=V(o,(function(e){return'<div class="tox-collection__group">'+e.join("")+"</div>"}));Ks(n.element,a.join(""))},a=i((function(n,r,i,o){r.stop(),t.isDisabled()||ks(n,$R,{name:e.name,value:o})})),s=[Ls(Ia(),i((function(e,t,n){xd(n)}))),Ls(Ua(),a),Ls(rs(),a),Ls(Pa(),i((function(e,t,n){Pl(e.element,"."+uA).each((function(e){sl(e,uA)})),ol(n,uA)}))),Ls($a(),i((function(e){Pl(e.element,"."+uA).each((function(e){sl(e,uA)}))}))),Ws(i((function(t,n,r,i){ks(t,$R,{name:e.name,value:i})})))],c=function(e,t){return V(Yp(e.element,".tox-collection__item"),t)},l=CR.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(1!==e.columns?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:w},behaviours:fd([Iv.config({disabled:t.isDisabled,onDisabled:function(e){c(e,(function(e){ol(e,"tox-collection__item--state-disabled"),jn(e,"aria-disabled",!0)}))},onEnabled:function(e){c(e,(function(e){sl(e,"tox-collection__item--state-disabled"),Wn(e,"aria-disabled")}))}}),vE(),$y.config({}),eg.config({store:{mode:"memory",initialValue:[]},onSetValue:function(t,n){o(t,n),"auto"===e.columns&&iS(t,5,"tox-collection__item").each((function(e){var n=e.numRows,r=e.numColumns;Oy.setGridSize(t,n,r)})),xs(t,UR)}}),TR.config({}),Oy.config(hO(e.columns,"normal")),zy("collection-events",s)]),eventOrder:(n={},n[ts()]=["disabling","alloy.base.behaviour","collection-events"],n)}),u=["tox-form__group--collection"];return RR(r,l,u,[])},VR=y([jo("data"),Ko("inputAttributes",{}),Ko("inputStyles",{}),Ko("tag","input"),Ko("inputClasses",[]),su("onSetValue"),Ko("styles",{}),Ko("eventOrder",{}),tg("inputBehaviours",[eg,Xy]),Ko("selectOnFocus",!0)]),GR=function(e){return fd([Xy.config({onFocus:e.selectOnFocus?function(e){var t=e.element,n=fl(t);t.dom.setSelectionRange(0,n.length)}:g})])},KR=function(e){return O(O({},GR(e)),rg(e.inputBehaviours,[eg.config({store:O(O({mode:"manual"},e.data.map((function(e){return{initialValue:e}})).getOr({})),{getValue:function(e){return fl(e.element)},setValue:function(e,t){var n=fl(e.element);n!==t&&pl(e.element,t)}}),onSetValue:e.onSetValue})]))},YR=function(e){return{tag:e.tag,attributes:O({type:"text"},e.inputAttributes),styles:e.inputStyles,classes:e.inputClasses}},XR=function(e,t){return{uid:e.uid,dom:YR(e),components:[],behaviours:KR(e),eventOrder:e.eventOrder}},QR=fv({name:"Input",configFields:VR(),factory:XR}),JR={},ZR={exports:JR};(function(t,n,r,i){(function(e,i){"object"===typeof n&&"undefined"!==typeof r?r.exports=i():"function"===typeof t&&t.amd?t(i):(e="undefined"!==typeof globalThis?globalThis:e||self,e.EphoxContactWrapper=i())})(this,(function(){var t="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{},n={exports:{}};(function(e){(function(t){var n=setTimeout;function r(){}function i(e,t){return function(){e.apply(t,arguments)}}function o(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function a(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void c(t.promise,i)}s(t.promise,r)}else(1===e._state?s:c)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void l(e);if("function"===typeof n)return void d(i(n,t),e)}e._state=1,e._value=t,l(e)}catch(r){c(e,r)}}function c(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function u(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,s(t,e))}),(function(e){n||(n=!0,c(t,e))}))}catch(r){if(n)return;n=!0,c(t,r)}}o.prototype["catch"]=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new u(e,t,n)),n},o.all=function(e){var t=Array.prototype.slice.call(e);return new o((function(e,n){if(0===t.length)return e([]);var r=t.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){i(o,e)}),n)}t[o]=a,0===--r&&e(t)}catch(c){n(c)}}for(var o=0;o<t.length;o++)i(o,t[o])}))},o.resolve=function(e){return e&&"object"===typeof e&&e.constructor===o?e:new o((function(t){t(e)}))},o.reject=function(e){return new o((function(t,n){n(e)}))},o.race=function(e){return new o((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},o._immediateFn="function"===typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},o._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console},o._setImmediateFn=function(e){o._immediateFn=e},o._setUnhandledRejectionFn=function(e){o._unhandledRejectionFn=e},e.exports?e.exports=o:t.Promise||(t.Promise=o)})(t)})(n);var r=n.exports,i=function(){return"undefined"!==typeof window?window:Function("return this;")()}(),o={boltExport:i.Promise||r};return o}))})(void 0,JR,ZR);var eD,tD=ZR.exports.boltExport,nD=function(e){var t=B.none(),n=[],r=function(e){return nD((function(t){i((function(n){t(e(n))}))}))},i=function(e){a()?c(e):n.push(e)},o=function(e){a()||(t=B.some(e),s(n),n=[])},a=function(){return t.isSome()},s=function(e){G(e,c)},c=function(e){t.each((function(t){setTimeout((function(){e(t)}),0)}))};return e(o),{get:i,map:r,isReady:a}},rD=function(e){return nD((function(t){t(e)}))},iD={nu:nD,pure:rD},oD=function(e){setTimeout((function(){throw e}),0)},aD=function(e){var t=function(t){e().then(t,oD)},n=function(t){return aD((function(){return e().then(t)}))},r=function(t){return aD((function(){return e().then((function(e){return t(e).toPromise()}))}))},i=function(t){return aD((function(){return e().then((function(){return t.toPromise()}))}))},o=function(){return iD.nu(t)},a=function(){var t=null;return aD((function(){return null===t&&(t=e()),t}))},s=e;return{map:n,bind:r,anonBind:i,toLazy:o,toCached:a,toPromise:s,get:t}},sD=function(e){return aD((function(){return new tD(e)}))},cD=function(e){return aD((function(){return tD.resolve(e)}))},lD={nu:sD,pure:cD},uD=["input","textarea"],dD=function(e){var t=st(e);return q(uD,t)},fD=function(e,t){var n=t.getRoot(e).getOr(e.element);sl(n,t.invalidClass),t.notify.each((function(t){dD(e.element)&&jn(e.element,"aria-invalid",!1),t.getContainer(e).each((function(e){Ks(e,t.validHtml)})),t.onValid(e)}))},pD=function(e,t,n,r){var i=t.getRoot(e).getOr(e.element);ol(i,t.invalidClass),t.notify.each((function(t){dD(e.element)&&jn(e.element,"aria-invalid",!0),t.getContainer(e).each((function(e){Ks(e,r)})),t.onInvalid(e,r)}))},hD=function(e,t,n){return t.validator.fold((function(){return lD.pure(ri.value(!0))}),(function(t){return t.validate(e)}))},mD=function(e,t,n){return t.notify.each((function(t){t.onValidate(e)})),hD(e,t).map((function(r){return e.getSystem().isConnected()?r.fold((function(r){return pD(e,t,n,r),ri.error(r)}),(function(n){return fD(e,t),ri.value(n)})):ri.error("No longer in system")}))},gD=function(e,t){var n=t.getRoot(e).getOr(e.element);return cl(n,t.invalidClass)},vD=Object.freeze({__proto__:null,markValid:fD,markInvalid:pD,query:hD,run:mD,isInvalid:gD}),bD=function(e,t){return e.validator.map((function(n){return Ts([Ls(n.onEvent,(function(n){mD(n,e,t).get(w)}))].concat(n.validateOnLoad?[qs((function(n){mD(n,e,t).get(g)}))]:[]))})).getOr({})},_D=Object.freeze({__proto__:null,events:bD}),yD=[Oo("invalidClass"),Ko("getRoot",B.none),Vo("notify",[Ko("aria","alert"),Ko("getContainer",B.none),Ko("validHtml",""),su("onValid"),su("onInvalid"),su("onValidate")]),Vo("validator",[Oo("validate"),Ko("onEvent","input"),Ko("validateOnLoad",!0)])],wD=hd({fields:yD,name:"invalidating",active:_D,apis:vD,extra:{validation:function(e){return function(t){var n=eg.getValue(t);return lD.pure(e(n))}}}}),xD=function(e,t,n,r){return n.getOrCreate(e,t,r)},kD=Object.freeze({__proto__:null,getCoupled:xD}),CD=[Ro("others",bo(ri.value,oo()))],AD=function(){var e={},t=function(t,n,r){var i=me(n.others);if(i)return Se(e,r).getOrThunk((function(){var i=Se(n.others,r).getOrDie("No information found for coupled component: "+r),o=i(t),a=t.getSystem().build(o);return e[r]=a,a}));throw new Error("Cannot find coupled component: "+r+". Known coupled components: "+JSON.stringify(i,null,2))},n=y({});return Ac({readState:n,getOrCreate:t})},SD=Object.freeze({__proto__:null,init:AD}),ED=hd({fields:CD,name:"coupling",apis:kD,state:SD}),TD=y("sink"),OD=y(Ng({name:TD(),overrides:y({dom:{tag:"div"},behaviours:fd([Ph.config({useFixed:E})]),events:Ts([$s(ja()),$s(Ma()),$s(Ua())])})}));(function(e){e[e["HighlightFirst"]=0]="HighlightFirst",e[e["HighlightNone"]=1]="HighlightNone"})(eD||(eD={}));var RD,DD=function(e,t){var n=e.getHotspot(t).getOr(t),r="hotspot",i=e.getAnchorOverrides();return e.layouts.fold((function(){return{type:r,hotspot:n,overrides:i}}),(function(e){return{type:r,hotspot:n,overrides:i,layouts:e}}))},LD=function(e,t,n){var r=e.fetch;return r(n).map(t)},MD=function(e,t,n,r,i,o,a){var s=LD(e,t,r),c=PD(r,e);return s.map((function(e){return e.bind((function(e){return B.from(Jw.sketch(O(O({},o.menu()),{uid:fc(""),data:e,highlightImmediately:a===eD.HighlightFirst,onOpenMenu:function(e,t){var r=c().getOrDie();Ph.position(r,t,{anchor:n}),bm.decloak(i)},onOpenSubmenu:function(e,t,n){var r=c().getOrDie();Ph.position(r,n,{anchor:{type:"submenu",item:t}}),bm.decloak(i)},onRepositionMenu:function(e,t,r){var i=c().getOrDie();Ph.position(i,t,{anchor:n}),G(r,(function(e){Ph.position(i,e.triggeredMenu,{anchor:{type:"submenu",item:e.triggeringItem}})}))},onEscape:function(){return Xy.focus(r),bm.close(i),B.some(!0)}})))}))}))},FD=function(e,t,n,r,i,o,a){var s=DD(e,n),c=MD(e,t,s,n,r,i,a);return c.map((function(e){return e.fold((function(){bm.isOpen(r)&&bm.close(r)}),(function(e){bm.cloak(r),bm.open(r,e),o(r)})),r}))},ND=function(e,t,n,r,i,o,a){return bm.close(r),lD.pure(r)},BD=function(e,t,n,r,i,o){var a=ED.getCoupled(n,"sandbox"),s=bm.isOpen(a),c=s?ND:FD;return c(e,t,n,a,r,i,o)},ID=function(e,t,n){var r=bv.getCurrent(t).getOr(t),i=vr(e.element);n?Kn(r.element,"min-width",i+"px"):gr(r.element,i)},PD=function(e,t){return e.getSystem().getByUid(t.uid+"-"+TD()).map((function(e){return function(){return ri.value(e)}})).getOrThunk((function(){return t.lazySink.fold((function(){return function(){return ri.error(new Error("No internal sink is specified, nor could an external sink be found"))}}),(function(t){return function(){return t(e)}}))}))},$D=function(e){bm.getState(e).each((function(e){Jw.repositionMenus(e)}))},jD=function(e,t,n){var r=zl(),i=function(i,o){var a=DD(e,t);r.link(t.element),e.matchWidth&&ID(a.hotspot,o,e.useMinWidth),e.onOpen(a,i,o),void 0!==n&&void 0!==n.onOpen&&n.onOpen(i,o)},o=function(e,i){r.unlink(t.element),void 0!==n&&void 0!==n.onClose&&n.onClose(e,i)},a=PD(t,e);return{dom:{tag:"div",classes:e.sandboxClasses,attributes:{id:r.id,role:"listbox"}},behaviours:ig.augment(e.sandboxBehaviours,[eg.config({store:{mode:"memory",initialValue:t}}),bm.config({onOpen:i,onClose:o,isPartOf:function(e,n,r){return Hl(n,r)||Hl(t,r)},getAttachPoint:function(){return a().getOrDie()}}),bv.config({find:function(e){return bm.getState(e).bind((function(e){return bv.getCurrent(e)}))}}),bd.config({channels:O(O({},km({isExtraPart:S})),Am({doReposition:$D}))})])}},zD=function(e){var t=ED.getCoupled(e,"sandbox");$D(t)},qD=function(){return[Ko("sandboxClasses",[]),ig.field("sandboxBehaviours",[bv,bd,bm,eg])]},HD=y([Oo("dom"),Oo("fetch"),su("onOpen"),cu("onExecute"),Ko("getHotspot",B.some),Ko("getAnchorOverrides",y({})),$f(),tg("dropdownBehaviours",[mw,ED,Oy,Xy]),Oo("toggleClass"),Ko("eventOrder",{}),jo("lazySink"),Ko("matchWidth",!1),Ko("useMinWidth",!1),jo("role")].concat(qD())),UD=y([Fg({schema:[iu()],name:"menu",defaults:function(e){return{onExecute:e.onExecute}}}),OD()]),WD=function(e,t,n,r){var i,o=function(t){return Se(e.dom,"attributes").bind((function(e){return Se(e,t)}))},a=function(e){bm.getState(e).each((function(e){Jw.highlightPrimary(e)}))},s=function(t){var n=a;BD(e,w,t,r,n,eD.HighlightFirst).get(g)},c={expand:function(t){mw.isOn(t)||BD(e,w,t,r,g,eD.HighlightNone).get(g)},open:function(t){mw.isOn(t)||BD(e,w,t,r,g,eD.HighlightFirst).get(g)},isOpen:mw.isOn,close:function(t){mw.isOn(t)&&BD(e,w,t,r,g,eD.HighlightFirst).get(g)},repositionMenus:function(e){mw.isOn(e)&&zD(e)}},l=function(e,t){return Cs(e),B.some(!0)};return{uid:e.uid,dom:e.dom,components:t,behaviours:rg(e.dropdownBehaviours,[mw.config({toggleClass:e.toggleClass,aria:{mode:"expanded"}}),ED.config({others:{sandbox:function(t){return jD(e,t,{onOpen:function(){return mw.on(t)},onClose:function(){return mw.off(t)}})}}}),Oy.config({mode:"special",onSpace:l,onEnter:l,onDown:function(e,t){if(VD.isOpen(e)){var n=ED.getCoupled(e,"sandbox");a(n)}else VD.open(e);return B.some(!0)},onEscape:function(e,t){return VD.isOpen(e)?(VD.close(e),B.some(!0)):B.none()}}),Xy.config({})]),events:vw(B.some(s)),eventOrder:O(O({},e.eventOrder),(i={},i[ts()]=["disabling","toggling","alloy.base.behaviour"],i)),apis:c,domModification:{attributes:O(O({"aria-haspopup":"true"},e.role.fold((function(){return{}}),(function(e){return{role:e}}))),"button"===e.dom.tag?{type:o("type").getOr("button")}:{})}}},VD=pv({name:"Dropdown",configFields:HD(),partFields:UD(),factory:WD,apis:{open:function(e,t){return e.open(t)},expand:function(e,t){return e.expand(t)},close:function(e,t){return e.close(t)},isOpen:function(e,t){return e.isOpen(t)},repositionMenus:function(e,t){return e.repositionMenus(t)}}}),GD=function(){return Rc({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})},KD=function(){return Ts([Os(Ka(),E)])},YD=Object.freeze({__proto__:null,events:KD,exhibit:GD}),XD=hd({fields:[],name:"unselecting",active:YD}),QD=function(e,t){return VD.sketch({dom:e.dom,components:e.components,toggleClass:"mce-active",dropdownBehaviours:fd([xE.button(t.providers.isDisabled),vE(),XD.config({}),TR.config({})]),layouts:e.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:t.getSink,fetch:function(n){return lD.nu((function(t){return e.fetch(t)})).map((function(r){return B.from(zO(wi(dO(ic("menu-value"),r,(function(t){e.onItemAction(n,t)}),e.columns,e.presets,JC.CLOSE_ON_EXECUTE,S,t.providers),{movement:pO(e.columns,e.presets)})))}))},parts:{menu:AA(!1,1,e.presets)}})},JD=ic("color-input-change"),ZD=ic("color-swatch-change"),eL=ic("color-picker-cancel"),tL=function(e,t,n){var r=CR.parts.field({factory:QR,inputClasses:["tox-textfield"],onSetValue:function(e){return wD.run(e).get(g)},inputBehaviours:fd([Iv.config({disabled:t.providers.isDisabled}),vE(),TR.config({}),wD.config({invalidClass:"tox-textbox-field-invalid",getRoot:function(e){return vn(e.element)},notify:{onValid:function(e){var t=eg.getValue(e);ks(e,JD,{color:t})}},validator:{validateOnLoad:!1,validate:function(e){var t=eg.getValue(e);if(0===t.length)return lD.pure(ri.value(!0));var n=tt.fromTag("span");Kn(n,"background-color",t);var r=Zn(n,"background-color").fold((function(){return ri.error("blah")}),(function(e){return ri.value(t)}));return lD.pure(r)}}})]),selectOnFocus:!1}),i=e.label.map((function(e){return NR(e,t.providers)})),o=function(e,t){ks(e,ZD,{value:t})},a=function(e,t){s.getOpt(e).each((function(e){"custom"===t?n.colorPicker((function(t){t.fold((function(){return xs(e,eL)}),(function(t){o(e,t),KT(t)}))}),"#ffffff"):o(e,"remove"===t?"":t)}))},s=Ex(QD({dom:{tag:"span",attributes:{"aria-label":t.providers.translate("Color swatch")}},layouts:{onRtl:function(){return[qu,zu,Vu]},onLtr:function(){return[zu,qu,Vu]}},components:[],fetch:oO(n.getColors(),n.hasCustomColors()),columns:n.getColorCols(),presets:"color",onItemAction:a},t));return CR.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:i.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[r,s.asSpec()]}]),fieldBehaviours:fd([zy("form-field-events",[Ls(JD,(function(t,n){s.getOpt(t).each((function(e){Kn(e.element,"background-color",n.event.color)})),ks(t,BR,{name:e.name})})),Ls(ZD,(function(e,t){CR.getField(e).each((function(n){eg.setValue(n,t.event.value),bv.getCurrent(e).each(Xy.focus)}))})),Ls(eL,(function(e,t){CR.getField(e).each((function(t){bv.getCurrent(e).each(Xy.focus)}))}))])])})},nL=Ng({schema:[Oo("dom")],name:"label"}),rL=function(e){return Ng({name:e+"-edge",overrides:function(t){var n=t.model.manager.edgeActions[e];return n.fold((function(){return{}}),(function(e){return{events:Ts([Ms(Oa(),(function(t,n,r){return e(t,r)}),[t]),Ms(Ma(),(function(t,n,r){return e(t,r)}),[t]),Ms(Fa(),(function(t,n,r){r.mouseIsDown.get()&&e(t,r)}),[t])])}}))}})},iL=rL("top-left"),oL=rL("top"),aL=rL("top-right"),sL=rL("right"),cL=rL("bottom-right"),lL=rL("bottom"),uL=rL("bottom-left"),dL=rL("left"),fL=Mg({name:"thumb",defaults:y({dom:{styles:{position:"absolute"}}}),overrides:function(e){return{events:Ts([Is(Oa(),e,"spectrum"),Is(Ra(),e,"spectrum"),Is(Da(),e,"spectrum"),Is(Ma(),e,"spectrum"),Is(Fa(),e,"spectrum"),Is(Ba(),e,"spectrum")])}}}),pL=Mg({schema:[Eo("mouseIsDown",(function(){return ia(!1)}))],name:"spectrum",overrides:function(e){var t=e.model,n=t.manager,r=function(t,r){return n.getValueFromEvent(r).map((function(r){return n.setValueFrom(t,e,r)}))};return{behaviours:fd([Oy.config({mode:"special",onLeft:function(t){return n.onLeft(t,e)},onRight:function(t){return n.onRight(t,e)},onUp:function(t){return n.onUp(t,e)},onDown:function(t){return n.onDown(t,e)}}),Xy.config({})]),events:Ts([Ls(Oa(),r),Ls(Ra(),r),Ls(Ma(),r),Ls(Fa(),(function(t,n){e.mouseIsDown.get()&&r(t,n)}))])}}}),hL=[nL,dL,sL,oL,lL,iL,aL,uL,cL,fL,pL],mL="slider.change.value",gL=y(mL),vL=function(e){return-1!==e.type.indexOf("touch")},bL=function(e){var t=e.event.raw;if(vL(t)){var n=t;return void 0!==n.touches&&1===n.touches.length?B.some(n.touches[0]).map((function(e){return ur(e.clientX,e.clientY)})):B.none()}var r=t;return void 0!==r.clientX?B.some(r).map((function(e){return ur(e.clientX,e.clientY)})):B.none()},_L="top",yL="right",wL="bottom",xL="left",kL=function(e){return e.model.minX},CL=function(e){return e.model.minY},AL=function(e){return e.model.minX-1},SL=function(e){return e.model.minY-1},EL=function(e){return e.model.maxX},TL=function(e){return e.model.maxY},OL=function(e){return e.model.maxX+1},RL=function(e){return e.model.maxY+1},DL=function(e,t,n){return t(e)-n(e)},LL=function(e){return DL(e,EL,kL)},ML=function(e){return DL(e,TL,CL)},FL=function(e){return LL(e)/2},NL=function(e){return ML(e)/2},BL=function(e){return e.stepSize},IL=function(e){return e.snapToGrid},PL=function(e){return e.snapStart},$L=function(e){return e.rounded},jL=function(e,t){return void 0!==e[t+"-edge"]},zL=function(e){return jL(e,xL)},qL=function(e){return jL(e,yL)},HL=function(e){return jL(e,_L)},UL=function(e){return jL(e,wL)},WL=function(e){return e.model.value.get()},VL=function(e){return{x:e}},GL=function(e){return{y:e}},KL=function(e,t){return{x:e,y:t}},YL=function(e,t){ks(e,gL(),{value:t})},XL=function(e,t){YL(e,KL(AL(t),SL(t)))},QL=function(e,t){YL(e,GL(SL(t)))},JL=function(e,t){YL(e,KL(FL(t),SL(t)))},ZL=function(e,t){YL(e,KL(OL(t),SL(t)))},eM=function(e,t){YL(e,VL(OL(t)))},tM=function(e,t){YL(e,KL(OL(t),NL(t)))},nM=function(e,t){YL(e,KL(OL(t),RL(t)))},rM=function(e,t){YL(e,GL(RL(t)))},iM=function(e,t){YL(e,KL(FL(t),RL(t)))},oM=function(e,t){YL(e,KL(AL(t),RL(t)))},aM=function(e,t){YL(e,VL(AL(t)))},sM=function(e,t){YL(e,KL(AL(t),NL(t)))},cM=function(e,t,n,r){return e<t?e:e>n?n:e===t?t-1:Math.max(t,e-r)},lM=function(e,t,n,r){return e>n?e:e<t?t:e===n?n+1:Math.min(n,e+r)},uM=function(e,t,n){return Math.max(t,Math.min(n,e))},dM=function(e,t,n,r,i){return i.fold((function(){var i=e-t,o=Math.round(i/r)*r;return uM(t+o,t-1,n+1)}),(function(t){var i=(e-t)%r,o=Math.round(i/r),a=Math.floor((e-t)/r),s=Math.floor((n-t)/r),c=Math.min(s,a+o),l=t+c*r;return Math.max(t,l)}))},fM=function(e,t,n){return Math.min(n,Math.max(e,t))-t},pM=function(e){var t=e.min,n=e.max,r=e.range,i=e.value,o=e.step,a=e.snap,s=e.snapStart,c=e.rounded,l=e.hasMinEdge,u=e.hasMaxEdge,d=e.minBound,f=e.maxBound,p=e.screenRange,h=l?t-1:t,m=u?n+1:n;if(i<d)return h;if(i>f)return m;var g=fM(i,d,f),v=uM(g/p*r+t,h,m);return a&&v>=t&&v<=n?dM(v,t,n,o,s):c?Math.round(v):v},hM=function(e){var t=e.min,n=e.max,r=e.range,i=e.value,o=e.hasMinEdge,a=e.hasMaxEdge,s=e.maxBound,c=e.maxOffset,l=e.centerMinEdge,u=e.centerMaxEdge;return i<t?o?0:l:i>n?a?s:u:(i-t)/r*c},mM="top",gM="right",vM="bottom",bM="left",_M="width",yM="height",wM=function(e){return e.element.dom.getBoundingClientRect()},xM=function(e,t){return e[t]},kM=function(e){var t=wM(e);return xM(t,bM)},CM=function(e){var t=wM(e);return xM(t,gM)},AM=function(e){var t=wM(e);return xM(t,mM)},SM=function(e){var t=wM(e);return xM(t,vM)},EM=function(e){var t=wM(e);return xM(t,_M)},TM=function(e){var t=wM(e);return xM(t,yM)},OM=function(e,t,n){return(e+t)/2-n},RM=function(e,t){var n=wM(e),r=wM(t),i=xM(n,bM),o=xM(n,gM),a=xM(r,bM);return OM(i,o,a)},DM=function(e,t){var n=wM(e),r=wM(t),i=xM(n,mM),o=xM(n,vM),a=xM(r,mM);return OM(i,o,a)},LM=function(e,t){ks(e,gL(),{value:t})},MM=function(e){return{x:e}},FM=function(e,t,n){var r={min:kL(t),max:EL(t),range:LL(t),value:n,step:BL(t),snap:IL(t),snapStart:PL(t),rounded:$L(t),hasMinEdge:zL(t),hasMaxEdge:qL(t),minBound:kM(e),maxBound:CM(e),screenRange:EM(e)};return pM(r)},NM=function(e,t,n){var r=FM(e,t,n),i=MM(r);return LM(e,i),r},BM=function(e,t){var n=kL(t);LM(e,MM(n))},IM=function(e,t){var n=EL(t);LM(e,MM(n))},PM=function(e,t,n){var r=e>0?lM:cM,i=r(WL(n).x,kL(n),EL(n),BL(n));return LM(t,MM(i)),B.some(i)},$M=function(e){return function(t,n){return PM(e,t,n).map(E)}},jM=function(e){var t=bL(e);return t.map((function(e){return e.left}))},zM=function(e,t,n,r,i){var o=0,a=EM(e),s=r.bind((function(t){return B.some(RM(t,e))})).getOr(o),c=i.bind((function(t){return B.some(RM(t,e))})).getOr(a),l={min:kL(t),max:EL(t),range:LL(t),value:n,hasMinEdge:zL(t),hasMaxEdge:qL(t),minBound:kM(e),minOffset:o,maxBound:CM(e),maxOffset:a,centerMinEdge:s,centerMaxEdge:c};return hM(l)},qM=function(e,t,n,r,i,o){var a=zM(t,o,n,r,i);return kM(t)-kM(e)+a},HM=function(e,t,n,r){var i=WL(n),o=qM(e,r.getSpectrum(e),i.x,r.getLeftEdge(e),r.getRightEdge(e),n),a=vr(t.element)/2;Kn(t.element,"left",o-a+"px")},UM=$M(-1),WM=$M(1),VM=B.none,GM=B.none,KM={"top-left":B.none(),top:B.none(),"top-right":B.none(),right:B.some(eM),"bottom-right":B.none(),bottom:B.none(),"bottom-left":B.none(),left:B.some(aM)},YM=Object.freeze({__proto__:null,setValueFrom:NM,setToMin:BM,setToMax:IM,findValueOfOffset:FM,getValueFromEvent:jM,findPositionOfValue:qM,setPositionFromValue:HM,onLeft:UM,onRight:WM,onUp:VM,onDown:GM,edgeActions:KM}),XM=function(e,t){ks(e,gL(),{value:t})},QM=function(e){return{y:e}},JM=function(e,t,n){var r={min:CL(t),max:TL(t),range:ML(t),value:n,step:BL(t),snap:IL(t),snapStart:PL(t),rounded:$L(t),hasMinEdge:HL(t),hasMaxEdge:UL(t),minBound:AM(e),maxBound:SM(e),screenRange:TM(e)};return pM(r)},ZM=function(e,t,n){var r=JM(e,t,n),i=QM(r);return XM(e,i),r},eF=function(e,t){var n=CL(t);XM(e,QM(n))},tF=function(e,t){var n=TL(t);XM(e,QM(n))},nF=function(e,t,n){var r=e>0?lM:cM,i=r(WL(n).y,CL(n),TL(n),BL(n));return XM(t,QM(i)),B.some(i)},rF=function(e){return function(t,n){return nF(e,t,n).map(E)}},iF=function(e){var t=bL(e);return t.map((function(e){return e.top}))},oF=function(e,t,n,r,i){var o=0,a=TM(e),s=r.bind((function(t){return B.some(DM(t,e))})).getOr(o),c=i.bind((function(t){return B.some(DM(t,e))})).getOr(a),l={min:CL(t),max:TL(t),range:ML(t),value:n,hasMinEdge:HL(t),hasMaxEdge:UL(t),minBound:AM(e),minOffset:o,maxBound:SM(e),maxOffset:a,centerMinEdge:s,centerMaxEdge:c};return hM(l)},aF=function(e,t,n,r,i,o){var a=oF(t,o,n,r,i);return AM(t)-AM(e)+a},sF=function(e,t,n,r){var i=WL(n),o=aF(e,r.getSpectrum(e),i.y,r.getTopEdge(e),r.getBottomEdge(e),n),a=ar(t.element)/2;Kn(t.element,"top",o-a+"px")},cF=B.none,lF=B.none,uF=rF(-1),dF=rF(1),fF={"top-left":B.none(),top:B.some(QL),"top-right":B.none(),right:B.none(),"bottom-right":B.none(),bottom:B.some(rM),"bottom-left":B.none(),left:B.none()},pF=Object.freeze({__proto__:null,setValueFrom:ZM,setToMin:eF,setToMax:tF,findValueOfOffset:JM,getValueFromEvent:iF,findPositionOfValue:aF,setPositionFromValue:sF,onLeft:cF,onRight:lF,onUp:uF,onDown:dF,edgeActions:fF}),hF=function(e,t){ks(e,gL(),{value:t})},mF=function(e,t){return{x:e,y:t}},gF=function(e,t,n){var r=FM(e,t,n.left),i=JM(e,t,n.top),o=mF(r,i);return hF(e,o),o},vF=function(e,t,n,r){var i=e>0?lM:cM,o=t?WL(r).x:i(WL(r).x,kL(r),EL(r),BL(r)),a=t?i(WL(r).y,CL(r),TL(r),BL(r)):WL(r).y;return hF(n,mF(o,a)),B.some(o)},bF=function(e,t){return function(n,r){return vF(e,t,n,r).map(E)}},_F=function(e,t){var n=kL(t),r=CL(t);hF(e,mF(n,r))},yF=function(e,t){var n=EL(t),r=TL(t);hF(e,mF(n,r))},wF=function(e){return bL(e)},xF=function(e,t,n,r){var i=WL(n),o=qM(e,r.getSpectrum(e),i.x,r.getLeftEdge(e),r.getRightEdge(e),n),a=aF(e,r.getSpectrum(e),i.y,r.getTopEdge(e),r.getBottomEdge(e),n),s=vr(t.element)/2,c=ar(t.element)/2;Kn(t.element,"left",o-s+"px"),Kn(t.element,"top",a-c+"px")},kF=bF(-1,!1),CF=bF(1,!1),AF=bF(-1,!0),SF=bF(1,!0),EF={"top-left":B.some(XL),top:B.some(JL),"top-right":B.some(ZL),right:B.some(tM),"bottom-right":B.some(nM),bottom:B.some(iM),"bottom-left":B.some(oM),left:B.some(sM)},TF=Object.freeze({__proto__:null,setValueFrom:gF,setToMin:_F,setToMax:yF,getValueFromEvent:wF,setPositionFromValue:xF,onLeft:kF,onRight:CF,onUp:AF,onDown:SF,edgeActions:EF}),OF=[Ko("stepSize",1),Ko("onChange",g),Ko("onChoose",g),Ko("onInit",g),Ko("onDragStart",g),Ko("onDragEnd",g),Ko("snapToGrid",!1),Ko("rounded",!0),jo("snapStart"),Ro("model",Co("mode",{x:[Ko("minX",0),Ko("maxX",100),Eo("value",(function(e){return ia(e.mode.minX)})),Oo("getInitialValue"),du("manager",YM)],y:[Ko("minY",0),Ko("maxY",100),Eo("value",(function(e){return ia(e.mode.minY)})),Oo("getInitialValue"),du("manager",pF)],xy:[Ko("minX",0),Ko("maxX",100),Ko("minY",0),Ko("maxY",100),Eo("value",(function(e){return ia({x:e.mode.minX,y:e.mode.minY})})),Oo("getInitialValue"),du("manager",TF)]})),tg("sliderBehaviours",[Oy,eg]),Eo("mouseIsDown",(function(){return ia(!1)}))],RF=function(e,t,n,r){var i,o=function(t){return Yg(t,e,"thumb")},a=function(t){return Yg(t,e,"spectrum")},s=function(t){return Kg(t,e,"left-edge")},c=function(t){return Kg(t,e,"right-edge")},l=function(t){return Kg(t,e,"top-edge")},u=function(t){return Kg(t,e,"bottom-edge")},d=e.model,f=d.manager,p=function(t,n){f.setPositionFromValue(t,n,e,{getLeftEdge:s,getRightEdge:c,getTopEdge:l,getBottomEdge:u,getSpectrum:a})},h=function(e,t){d.value.set(t);var n=o(e);p(e,n)},m=function(t,n){h(t,n);var r=o(t);return e.onChange(t,r,n),B.some(!0)},g=function(t){f.setToMin(t,e)},v=function(t){f.setToMax(t,e)},b=function(t){var n=function(){Kg(t,e,"thumb").each((function(n){var r=d.value.get();e.onChoose(t,n,r)}))},r=e.mouseIsDown.get();e.mouseIsDown.set(!1),r&&n()},_=function(t,n){n.stop(),e.mouseIsDown.set(!0),e.onDragStart(t,o(t))},y=function(t,n){n.stop(),e.onDragEnd(t,o(t)),b(t)};return{uid:e.uid,dom:e.dom,components:t,behaviours:rg(e.sliderBehaviours,[Oy.config({mode:"special",focusIn:function(t){return Kg(t,e,"spectrum").map(Oy.focusIn).map(E)}}),eg.config({store:{mode:"manual",getValue:function(e){return d.value.get()}}}),bd.config({channels:(i={},i[wm()]={onReceive:b},i)})]),events:Ts([Ls(gL(),(function(e,t){m(e,t.event.value)})),qs((function(t,n){var r=d.getInitialValue();d.value.set(r);var i=o(t);p(t,i);var s=a(t);e.onInit(t,i,s,d.value.get())})),Ls(Oa(),_),Ls(Da(),y),Ls(Ma(),_),Ls(Ba(),y)]),apis:{resetToMin:g,resetToMax:v,setValue:h,refresh:p},domModification:{styles:{position:"relative"}}}},DF=pv({name:"Slider",configFields:OF,partFields:hL,factory:RF,apis:{setValue:function(e,t,n){e.setValue(t,n)},resetToMin:function(e,t){e.resetToMin(t)},resetToMax:function(e,t){e.resetToMax(t)},refresh:function(e,t){e.refresh(t)}}}),LF=ic("rgb-hex-update"),MF=ic("slider-update"),FF=ic("palette-update"),NF=function(e,t){var n=DF.parts.spectrum({dom:{tag:"div",classes:[t("hue-slider-spectrum")],attributes:{role:"presentation"}}}),r=DF.parts.thumb({dom:{tag:"div",classes:[t("hue-slider-thumb")],attributes:{role:"presentation"}}});return DF.sketch({dom:{tag:"div",classes:[t("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:y({y:0})},components:[n,r],sliderBehaviours:fd([Xy.config({})]),onChange:function(e,t,n){ks(e,MF,{value:n})}})},BF="form",IF=[tg("formBehaviours",[eg])],PF=function(e){return"<alloy.field."+e+">"},$F=function(e){var t=function(){var e=[],t=function(t,n){return e.push(t),Hg(BF,PF(t),n)};return{field:t,record:y(e)}}(),n=e(t),r=t.record(),i=V(r,(function(e){return Mg({name:e,pname:PF(e)})}));return av(BF,IF,i,zF,n)},jF=function(e,t){return e.fold((function(){return ri.error(t)}),ri.value)},zF=function(e,t){return{uid:e.uid,dom:e.dom,components:t,behaviours:rg(e.formBehaviours,[eg.config({store:{mode:"manual",getValue:function(t){var n=Qg(t,e);return be(n,(function(e,t){return e().bind((function(e){var n=bv.getCurrent(e);return jF(n,new Error("Cannot find a current component to extract the value from for form part '"+t+"': "+Zs(e.element)))})).map(eg.getValue)}))},setValue:function(t,n){ve(n,(function(n,r){Kg(t,e,r).each((function(e){bv.getCurrent(e).each((function(e){eg.setValue(e,n)}))}))}))}}})]),apis:{getField:function(t,n){return Kg(t,e,n).bind(bv.getCurrent)}}}},qF={getField:kc((function(e,t,n){return e.getField(t,n)})),sketch:$F},HF=ic("valid-input"),UF=ic("invalid-input"),WF=ic("validating-input"),VF="colorcustom.rgb.",GF=function(e,t,n,r){var i=function(n,r){return wD.config({invalidClass:t("invalid"),notify:{onValidate:function(e){ks(e,WF,{type:n})},onValid:function(e){ks(e,HF,{type:n,value:eg.getValue(e)})},onInvalid:function(e){ks(e,UF,{type:n,value:eg.getValue(e)})}},validator:{validate:function(t){var n=eg.getValue(t),i=r(n)?ri.value(!0):ri.error(e("aria.input.invalid"));return lD.pure(i)},validateOnLoad:!1}})},o=function(n,r,o,a,s){var c=e(VF+"range"),l=CR.parts.label({dom:{tag:"label",innerHtml:o,attributes:{"aria-label":a}}}),u=CR.parts.field({data:s,factory:QR,inputAttributes:O({type:"text"},"hex"===r?{"aria-live":"polite"}:{}),inputClasses:[t("textfield")],inputBehaviours:fd([i(r,n),TR.config({})]),onSetValue:function(e){if(wD.isInvalid(e)){var t=wD.run(e);t.get(g)}}}),d=[l,u],f="hex"!==r?[CR.parts["aria-descriptor"]({text:c})]:[],p=d.concat(f);return{dom:{tag:"div",attributes:{role:"presentation"}},components:p}},a=function(e,t){var n=uT(t);return qF.getField(e,"hex").each((function(t){Xy.isFocused(t)||eg.setValue(e,{hex:n.value})})),n},s=function(e,t){var n=t.red,r=t.green,i=t.blue;eg.setValue(e,{red:n,green:r,blue:i})},c=Ex({dom:{tag:"div",classes:[t("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),l=function(e,t){c.getOpt(e).each((function(e){Kn(e.element,"background-color","#"+t.value)}))},u=function(){var i={red:ia(B.some(255)),green:ia(B.some(255)),blue:ia(B.some(255)),hex:ia(B.some("ffffff"))},u=function(e,t){var n=_T(t);s(e,n),h(n)},d=function(e){return i[e].get()},f=function(e,t){i[e].set(t)},p=function(){return d("red").bind((function(e){return d("green").bind((function(t){return d("blue").map((function(n){return gT(e,t,n,1)}))}))}))},h=function(e){var t=e.red,n=e.green,r=e.blue;f("red",B.some(t)),f("green",B.some(n)),f("blue",B.some(r))},m=function(e,t){var n=t.event;"hex"!==n.type?f(n.type,B.none()):r(e)},g=function(e,t){n(e);var r=tT(t);f("hex",B.some(t));var i=_T(r);s(e,i),h(i),ks(e,LF,{hex:r}),l(e,r)},v=function(e,t,n){var r=parseInt(n,10);f(t,B.some(r)),p().each((function(t){var n=a(e,t);ks(e,LF,{hex:n}),l(e,n)}))},b=function(e){return"hex"===e.type},_=function(e,t){var n=t.event;b(n)?g(e,n.value):v(e,n.type,n.value)},y=function(t){return{label:e(VF+t+".label"),description:e(VF+t+".description")}},w=y("red"),x=y("green"),k=y("blue"),C=y("hex");return wi(qF.sketch((function(n){return{dom:{tag:"form",classes:[t("rgb-form")],attributes:{"aria-label":e("aria.color.picker")}},components:[n.field("red",CR.sketch(o(vT,"red",w.label,w.description,255))),n.field("green",CR.sketch(o(vT,"green",x.label,x.description,255))),n.field("blue",CR.sketch(o(vT,"blue",k.label,k.description,255))),n.field("hex",CR.sketch(o(iT,"hex",C.label,C.description,"ffffff"))),c.asSpec()],formBehaviours:fd([wD.config({invalidClass:t("form-invalid")}),zy("rgb-form-events",[Ls(HF,_),Ls(UF,m),Ls(WF,m)])])}})),{apis:{updateHex:function(e,t){eg.setValue(e,{hex:t.value}),u(e,t),l(e,t)}}})},d=fv({factory:u,name:"RgbForm",configFields:[],apis:{updateHex:function(e,t,n){e.updateHex(t,n)}},extraApis:{}});return d},KF=function(e,t){var n=DF.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[t("sv-palette-spectrum")]}}),r=DF.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette-thumb")],innerHtml:"<div class="+t("sv-palette-inner-thumb")+' role="presentation"></div>'}}),i=function(e,t){var n=e.width,r=e.height,i=e.getContext("2d");if(null!==i){i.fillStyle=t,i.fillRect(0,0,n,r);var o=i.createLinearGradient(0,0,n,0);o.addColorStop(0,"rgba(255,255,255,1)"),o.addColorStop(1,"rgba(255,255,255,0)"),i.fillStyle=o,i.fillRect(0,0,n,r);var a=i.createLinearGradient(0,0,0,r);a.addColorStop(0,"rgba(0,0,0,0)"),a.addColorStop(1,"rgba(0,0,0,1)"),i.fillStyle=a,i.fillRect(0,0,n,r)}},o=function(e,t){var n=e.components()[0].element.dom,r=RT(t,100,100),o=bT(r);i(n,xT(o))},a=function(e,t){var n=DT(_T(t));DF.setValue(e,{x:n.saturation,y:100-n.value})},s=function(e){var o=y({x:0,y:0}),a=function(e,t,n){ks(e,FF,{value:n})},s=function(e,t,n,r){i(n.element.dom,xT(kT))},c=fd([bv.config({find:B.some}),Xy.config({})]);return DF.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[t("sv-palette")]},model:{mode:"xy",getInitialValue:o},rounded:!1,components:[n,r],onChange:a,onInit:s,sliderBehaviours:c})},c=fv({factory:s,name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:function(e,t,n){o(t,n)},setThumb:function(e,t,n){a(t,n)}},extraApis:{}});return c},YF=function(e,t){var n=function(n){var r=GF(e,t,n.onValidHex,n.onInvalidHex),i=KF(e,t),o=function(e){return(100-e)/100*360},a=function(e){return 100-e/360*100},s={paletteRgba:ia(kT),paletteHue:ia(0)},c=Ex(NF(e,t)),l=Ex(i.sketch({})),u=Ex(r.sketch({})),d=function(e,t,n){l.getOpt(e).each((function(e){i.setHue(e,n)}))},f=function(e,t){u.getOpt(e).each((function(e){r.updateHex(e,t)}))},p=function(e,t,n){c.getOpt(e).each((function(e){DF.setValue(e,{y:a(n)})}))},h=function(e,t){l.getOpt(e).each((function(e){i.setThumb(e,t)}))},m=function(e,t){var n=_T(e);s.paletteRgba.set(n),s.paletteHue.set(t)},g=function(e,t,n,r){m(t,n),G(r,(function(r){r(e,t,n)}))},v=function(){var e=[f];return function(t,n){var r=n.event.value,i=s.paletteHue.get(),o=RT(i,r.x,100-r.y),a=MT(o);g(t,a,i,e)}},b=function(){var e=[d,f];return function(t,n){var r=o(n.event.value.y),i=s.paletteRgba.get(),a=DT(i),c=RT(r,a.saturation,a.value),l=MT(c);g(t,l,r,e)}},_=function(){var e=[d,p,h];return function(t,n){var r=n.event.hex,i=LT(r);g(t,r,i.hue,e)}};return{uid:n.uid,dom:n.dom,components:[l.asSpec(),c.asSpec(),u.asSpec()],behaviours:fd([zy("colour-picker-events",[Ls(LF,_()),Ls(FF,v()),Ls(MF,b())]),bv.config({find:function(e){return u.getOpt(e)}}),Oy.config({mode:"acyclic"})])}},r=fv({name:"ColourPicker",configFields:[Oo("dom"),Ko("onValidHex",g),Ko("onInvalidHex",g)],factory:n});return r},XF=function(){return bv.config({find:B.some})},QF=function(e){return bv.config({find:e.getOpt})},JF=function(e){return bv.config({find:function(t){return xn(t.element,e).bind((function(e){return t.getSystem().getByDom(e).toOptional()}))}})},ZF={self:XF,memento:QF,childAt:JF},eN={"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"},tN=function(e){return eN[e]},nN=function(e){return tN(e)},rN=function(e){var t=function(e){return"tox-"+e},n=YF(nN,t),r=function(e){ks(e,$R,{name:"hex-valid",value:!0})},i=function(e){ks(e,$R,{name:"hex-valid",value:!1})},o=Ex(n.sketch({dom:{tag:"div",classes:[t("color-picker-container")],attributes:{role:"presentation"}},onValidHex:r,onInvalidHex:i}));return{dom:{tag:"div"},components:[o.asSpec()],behaviours:fd([eg.config({store:{mode:"manual",getValue:function(e){var t=o.get(e),n=bv.getCurrent(t),r=n.bind((function(e){var t=eg.getValue(e);return t.hex}));return r.map((function(e){return"#"+e})).getOr("")},setValue:function(e,t){var n=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,r=n.exec(t),i=o.get(e),a=bv.getCurrent(i);a.fold((function(){}),(function(e){eg.setValue(e,{hex:B.from(r[1]).getOr("")}),qF.getField(e,"hex").each((function(e){xs(e,qa())}))}))}}}),ZF.self()])}},iN=tinymce.util.Tools.resolve("tinymce.Resource"),oN=function(e){return Ee(e,"init")},aN=function(e){var t=rf(),n=Ex({dom:{tag:e.tag}}),r=rf();return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:fd([zy("custom-editor-events",[qs((function(i){n.getOpt(i).each((function(n){(oN(e)?e.init(n.element.dom):iN.load(e.scriptId,e.scriptUrl).then((function(t){return t(n.element.dom,e.settings)}))).then((function(e){r.on((function(t){e.setValue(t)})),r.clear(),t.set(e)}))}))}))]),eg.config({store:{mode:"manual",getValue:function(){return t.get().fold((function(){return r.get().getOr("")}),(function(e){return e.getValue()}))},setValue:function(e,n){t.get().fold((function(){r.set(n)}),(function(e){return e.setValue(n)}))}}}),ZF.self()]),components:[n.asSpec()]}},sN=tinymce.util.Tools.resolve("tinymce.util.Tools"),cN=Zi([Ko("preprocess",w),Ko("postprocess",w)]),lN=function(e,t){var n=xo("RepresentingConfigs.memento processors",cN,t);return eg.config({store:{mode:"manual",getValue:function(t){var r=e.get(t),i=eg.getValue(r);return n.postprocess(i)},setValue:function(t,r){var i=n.preprocess(r),o=e.get(t);eg.setValue(o,i)}}})},uN=function(e,t,n){return eg.config(wi({store:{mode:"manual",getValue:t,setValue:n}},e.map((function(e){return{store:{initialValue:e}}})).getOr({})))},dN=function(e,t,n){return uN(e,(function(e){return t(e.element)}),(function(e,t){return n(e.element,t)}))},fN=function(e){return dN(e,fl,pl)},pN=function(e){return dN(e,Gs,Ks)},hN=function(e){return eg.config({store:{mode:"memory",initialValue:e}})},mN={memento:lN,withElement:dN,withComp:uN,domValue:fN,domHtml:pN,memory:hN},gN="jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp",vN=function(e,t){var n=sN.explode(t.getSetting("images_file_types",gN,"string")),r=function(e){return H(n,(function(t){return Ue(e.name.toLowerCase(),"."+t.toLowerCase())}))};return X(pe(e),r)},bN=function(e,t){var n=function(e,t){t.stop()},r=function(e){return function(t,n){G(e,(function(e){e(t,n)}))}},i=function(e,t){if(!Iv.isDisabled(e)){var n=t.event.raw;a(e,n.dataTransfer.files)}},o=function(e,t){var n=t.event.raw.target;a(e,n.files)},a=function(n,r){eg.setValue(n,vN(r,t)),ks(n,BR,{name:e.name})},s=Ex({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:fd([zy("input-file-events",[$s(Ua()),$s(rs())])])}),c=function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:fd([mN.memory([]),ZF.self(),Iv.config({}),mw.config({toggleClass:"dragenter",toggleOnExecute:!1}),zy("dropzone-events",[Ls("dragenter",r([n,mw.toggle])),Ls("dragleave",r([n,mw.toggle])),Ls("dragover",n),Ls("drop",r([n,i])),Ls(Ha(),o)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p",innerHtml:t.translate("Drop an image here")}},kx.sketch({dom:{tag:"button",innerHtml:t.translate("Browse for an image"),styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[s.asSpec()],action:function(e){var t=s.get(e);t.element.dom.click()},buttonBehaviours:fd([TR.config({}),xE.button(t.isDisabled),vE()])})]}]}},l=e.label.map((function(e){return NR(e,t)})),u=CR.parts.field({factory:{sketch:c}});return RR(l,u,["tox-form__group--stretched"],[])},_N=function(e,t){return{dom:{tag:"div",classes:["tox-form__grid","tox-form__grid--"+e.columns+"col"]},components:V(e.items,t.interpreter)}},yN=ic("alloy-fake-before-tabstop"),wN=ic("alloy-fake-after-tabstop"),xN=function(e){return{dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:e},behaviours:fd([Xy.config({ignore:!0}),TR.config({})])}},kN=function(e){return{dom:{tag:"div",classes:["tox-navobj"]},components:[xN([yN]),e,xN([wN])],behaviours:fd([ZF.childAt(1)])}},CN=function(e,t){ks(e,ja(),{raw:{which:9,shiftKey:t}})},AN=function(e,t){var n=t.element;cl(n,yN)?CN(e,!0):cl(n,wN)&&CN(e,!1)},SN=function(e){return WO(e,["."+yN,"."+wN].join(","),S)},EN=!(tn().browser.isIE()||tn().browser.isEdge()),TN=function(e){var t=ia("");return{getValue:function(e){return t.get()},setValue:function(n,r){if(e)jn(n.element,"srcdoc",r);else{jn(n.element,"src","javascript:''");var i=n.element.dom.contentWindow.document;i.open(),i.write(r),i.close()}t.set(r)}}},ON=function(e,t){var n=EN&&e.sandboxed,r=O(O({},e.label.map((function(e){return{title:e}})).getOr({})),n?{sandbox:"allow-scripts allow-same-origin"}:{}),i=TN(n),o=e.label.map((function(e){return NR(e,t)})),a=function(e){return kN({uid:e.uid,dom:{tag:"iframe",attributes:r},behaviours:fd([TR.config({}),Xy.config({}),mN.withComp(B.none(),i.getValue,i.setValue)])})},s=CR.parts.field({factory:{sketch:a}});return RR(o,s,["tox-form__group--stretched"],[])},RN=function(e,t){return MN(document.createElement("canvas"),e,t)},DN=function(e){var t=RN(e.width,e.height),n=LN(t);return n.drawImage(e,0,0),t},LN=function(e){return e.getContext("2d")},MN=function(e,t,n){return e.width=t,e.height=n,e},FN=function(e){return e.naturalWidth||e.width},NN=function(e){return e.naturalHeight||e.height},BN=function(e){return new tD((function(t,n){var r=URL.createObjectURL(e),i=new Image,o=function(){i.removeEventListener("load",a),i.removeEventListener("error",s)},a=function(){o(),t(i)},s=function(){o(),n("Unable to load data of type "+e.type+": "+r)};i.addEventListener("load",a),i.addEventListener("error",s),i.src=r,i.complete&&setTimeout(a,0)}))},IN=function(e){var t=e.split(","),n=/data:([^;]+)/.exec(t[0]);if(!n)return B.none();for(var r=n[1],i=t[1],o=1024,a=atob(i),s=a.length,c=Math.ceil(s/o),l=new Array(c),u=0;u<c;++u){for(var d=u*o,f=Math.min(d+o,s),p=new Array(f-d),h=d,m=0;h<f;++m,++h)p[m]=a[h].charCodeAt(0);l[u]=new Uint8Array(p)}return B.some(new Blob(l,{type:r}))},PN=function(e){return new tD((function(t,n){IN(e).fold((function(){n("uri is not base64: "+e)}),t)}))},$N=function(e,t,n){return t=t||"image/png",p(HTMLCanvasElement.prototype.toBlob)?new tD((function(r,i){e.toBlob((function(e){e?r(e):i()}),t,n)})):PN(e.toDataURL(t,n))},jN=function(e,t,n){return t=t||"image/png",e.toDataURL(t,n)},zN=function(e){return BN(e).then((function(e){HN(e);var t=RN(FN(e),NN(e)),n=LN(t);return n.drawImage(e,0,0),t}))},qN=function(e){return new tD((function(t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}))},HN=function(e){URL.revokeObjectURL(e.src)},UN=function(e,t,n){var r=t.type,i=y(r),o=function(){return tD.resolve(t)},a=y(n),s=function(){return n.split(",")[1]},c=function(t,n){return e.then((function(e){return $N(e,t,n)}))},l=function(t,n){return e.then((function(e){return jN(e,t,n)}))},u=function(e,t){return l(e,t).then((function(e){return e.split(",")[1]}))},d=function(){return e.then(DN)};return{getType:i,toBlob:o,toDataURL:a,toBase64:s,toAdjustedBlob:c,toAdjustedDataURL:l,toAdjustedBase64:u,toCanvas:d}},WN=function(e){return qN(e).then((function(t){return UN(zN(e),e,t)}))},VN=function(e,t){return $N(e,t).then((function(t){return UN(tD.resolve(e),t,e.toDataURL())}))},GN=function(e){return WN(e)},KN=function(e,t,n){var r="string"===typeof e?parseFloat(e):e;return r>n?r=n:r<t&&(r=t),r},YN=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]},XN=[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],QN=function(e,t){for(var n,r=[],i=new Array(25),o=0;o<5;o++){for(var a=0;a<5;a++)r[a]=t[a+5*o];for(a=0;a<5;a++){n=0;for(var s=0;s<5;s++)n+=e[a+5*s]*r[s];i[a+5*o]=n}}return i},JN=function(e,t){var n;return t=KN(t,-1,1),t*=100,t<0?n=127+t/100*127:(n=t%1,n=0===n?XN[t]:XN[Math.floor(t)]*(1-n)+XN[Math.floor(t)+1]*n,n=127*n+127),QN(e,[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])},ZN=function(e,t){return t=KN(255*t,-255,255),QN(e,[1,0,0,0,t,0,1,0,0,t,0,0,1,0,t,0,0,0,1,0,0,0,0,0,1])},eB=function(e,t,n,r){return t=KN(t,0,2),n=KN(n,0,2),r=KN(r,0,2),QN(e,[t,0,0,0,0,0,n,0,0,0,0,0,r,0,0,0,0,0,1,0,0,0,0,0,1])},tB=function(e,t){return e.toCanvas().then((function(n){return nB(n,e.getType(),t)}))},nB=function(e,t,n){var r=LN(e),i=function(e,t){for(var n,r,i,o,a=e.data,s=t[0],c=t[1],l=t[2],u=t[3],d=t[4],f=t[5],p=t[6],h=t[7],m=t[8],g=t[9],v=t[10],b=t[11],_=t[12],y=t[13],w=t[14],x=t[15],k=t[16],C=t[17],A=t[18],S=t[19],E=0;E<a.length;E+=4)n=a[E],r=a[E+1],i=a[E+2],o=a[E+3],a[E]=n*s+r*c+i*l+o*u+d,a[E+1]=n*f+r*p+i*h+o*m+g,a[E+2]=n*v+r*b+i*_+o*y+w,a[E+3]=n*x+r*k+i*C+o*A+S;return e},o=i(r.getImageData(0,0,e.width,e.height),n);return r.putImageData(o,0,0),VN(e,t)},rB=function(e,t){return e.toCanvas().then((function(n){return iB(n,e.getType(),t)}))},iB=function(e,t,n){var r=LN(e),i=function(e,t,n){for(var r=function(e,t,n){return e>n?e=n:e<t&&(e=t),e},i=Math.round(Math.sqrt(n.length)),o=Math.floor(i/2),a=e.data,s=t.data,c=e.width,l=e.height,u=0;u<l;u++)for(var d=0;d<c;d++){for(var f=0,p=0,h=0,m=0;m<i;m++)for(var g=0;g<i;g++){var v=r(d+g-o,0,c-1),b=r(u+m-o,0,l-1),_=4*(b*c+v),y=n[m*i+g];f+=a[_]*y,p+=a[_+1]*y,h+=a[_+2]*y}var w=4*(u*c+d);s[w]=r(f,0,255),s[w+1]=r(p,0,255),s[w+2]=r(h,0,255)}return t},o=r.getImageData(0,0,e.width,e.height),a=r.getImageData(0,0,e.width,e.height);return a=i(o,a,n),r.putImageData(a,0,0),VN(e,t)},oB=function(e){var t=function(t,n,r){for(var i=LN(t),o=new Array(256),a=function(e,t){for(var n=e.data,r=0;r<n.length;r+=4)n[r]=t[n[r]],n[r+1]=t[n[r+1]],n[r+2]=t[n[r+2]];return e},s=0;s<o.length;s++)o[s]=e(s,r);var c=a(i.getImageData(0,0,t.width,t.height),o);return i.putImageData(c,0,0),VN(t,n)};return function(e,n){return e.toCanvas().then((function(r){return t(r,e.getType(),n)}))}},aB=function(e){return function(t,n){return tB(t,e(YN(),n))}},sB=function(e){return function(t){return tB(t,e)}},cB=function(e){return function(t){return rB(t,e)}},lB=sB([-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]),uB=aB(ZN),dB=aB(JN),fB=function(e,t,n,r){return tB(e,eB(YN(),t,n,r))},pB=cB([0,-1,0,-1,5,-1,0,-1,0]),hB=oB((function(e,t){return 255*Math.pow(e/255,1-t)})),mB=function(e,t,n){var r=FN(e),i=NN(e),o=t/r,a=n/i,s=!1;(o<.5||o>2)&&(o=o<.5?.5:2,s=!0),(a<.5||a>2)&&(a=a<.5?.5:2,s=!0);var c=gB(e,o,a);return s?c.then((function(e){return mB(e,t,n)})):c},gB=function(e,t,n){return new tD((function(r){var i=FN(e),o=NN(e),a=Math.floor(i*t),s=Math.floor(o*n),c=RN(a,s),l=LN(c);l.drawImage(e,0,0,i,o,0,0,a,s),r(c)}))},vB=function(e,t){void 0===t&&(t=2);var n=Math.pow(10,t),r=Math.round(e*n);return Math.ceil(r/n)},bB=function(e,t){return e.toCanvas().then((function(n){return _B(n,e.getType(),t)}))},_B=function(e,t,n){var r=n<0?360+n:n,i=r*Math.PI/180,o=e.width,a=e.height,s=Math.sin(i),c=Math.cos(i),l=vB(Math.abs(o*c)+Math.abs(a*s)),u=vB(Math.abs(o*s)+Math.abs(a*c)),d=RN(l,u),f=LN(d);return f.translate(l/2,u/2),f.rotate(i),f.drawImage(e,-o/2,-a/2),VN(d,t)},yB=function(e,t){return e.toCanvas().then((function(n){return wB(n,e.getType(),t)}))},wB=function(e,t,n){var r=RN(e.width,e.height),i=LN(r);return"v"===n?(i.scale(1,-1),i.drawImage(e,0,-r.height)):(i.scale(-1,1),i.drawImage(e,-r.width,0)),VN(r,t)},xB=function(e,t,n,r,i){return e.toCanvas().then((function(o){return kB(o,e.getType(),t,n,r,i)}))},kB=function(e,t,n,r,i,o){var a=RN(i,o),s=LN(a);return s.drawImage(e,-n,-r),VN(a,t)},CB=function(e,t,n){return e.toCanvas().then((function(r){return mB(r,t,n).then((function(t){return VN(t,e.getType())}))}))},AB=function(e){return lB(e)},SB=function(e){return pB(e)},EB=function(e,t){return hB(e,t)},TB=function(e,t,n,r){return fB(e,t,n,r)},OB=function(e,t){return uB(e,t)},RB=function(e,t){return dB(e,t)},DB=function(e,t){return yB(e,t)},LB=function(e,t,n,r,i){return xB(e,t,n,r,i)},MB=function(e,t,n){return CB(e,t,n)},FB=function(e,t){return bB(e,t)},NB=function(e,t,n){return Wk(e,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:n},t)},BB=function(e,t){return NB(e,t,[])},IB=function(e,t){return NB(e,t,[$y.config({})])},PB=function(e,t,n){return{dom:{tag:"span",innerHtml:n.translate(e),classes:[t+"__select-label"]},behaviours:fd([$y.config({})])}},$B=ic("toolbar.button.execute"),jB=function(e){return Ws((function(t,n){kE(e,t)((function(n){ks(t,$B,{buttonApi:n}),e.onAction(n)}))}))},zB=(RD={},RD[ts()]=["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],RD),qB=ic("update-menu-text"),HB=ic("update-menu-icon"),UB=function(e,t,n){var r=ia(g),i=e.text.map((function(e){return Ex(PB(e,t,n.providers))})),o=e.icon.map((function(e){return Ex(IB(e,n.providers.icons))})),a=function(e,t){var n=eg.getValue(e);return Xy.focus(n),ks(n,"keydown",{raw:t.event.raw}),VD.close(n),B.some(!0)},s=e.role.fold((function(){return{}}),(function(e){return{role:e}})),c=e.tooltip.fold((function(){return{}}),(function(e){var t=n.providers.translate(e);return{title:t,"aria-label":t}})),l=Wk("chevron-down",{tag:"div",classes:[t+"__select-chevron"]},n.providers.icons),u=Ex(VD.sketch(O(O(O({},e.uid?{uid:e.uid}:{}),s),{dom:{tag:"button",classes:[t,t+"--select"].concat(V(e.classes,(function(e){return t+"--"+e}))),attributes:O({},c)},components:TE([o.map((function(e){return e.asSpec()})),i.map((function(e){return e.asSpec()})),B.some(l)]),matchWidth:!0,useMinWidth:!0,dropdownBehaviours:fd(D(D([],e.dropdownBehaviours,!0),[xE.button((function(){return e.disabled||n.providers.isDisabled()})),vE(),XD.config({}),$y.config({}),zy("dropdown-events",[CE(e,r),AE(e,r)]),zy("menubutton-update-display-text",[Ls(qB,(function(e,t){i.bind((function(t){return t.getOpt(e)})).each((function(e){$y.set(e,[kl(n.providers.translate(t.event.text))])}))})),Ls(HB,(function(e,t){o.bind((function(t){return t.getOpt(e)})).each((function(e){$y.set(e,[IB(t.event.icon,n.providers.icons)])}))}))])],!1)),eventOrder:wi(zB,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"]}),sandboxBehaviours:fd([Oy.config({mode:"special",onLeft:a,onRight:a})]),lazySink:n.getSink,toggleClass:t+"--active",parts:{menu:AA(!1,e.columns,e.presets)},fetch:function(t){return lD.nu(k(e.fetch,t))}})));return u.asSpec()},WB=function(e){return o(e)},VB=function(e){return"separator"===e.type},GB=function(e){return Ee(e,"getSubmenuItems")},KB={type:"separator"},YB=function(e,t){var n=J(e,(function(e,n){return WB(n)?""===n?e:"|"===n?e.length>0&&!VB(e[e.length-1])?e.concat([KB]):e:Ee(t,n.toLowerCase())?e.concat([t[n.toLowerCase()]]):e:e.concat([n])}),[]);return n.length>0&&VB(n[n.length-1])&&n.pop(),n},XB=function(e,t){var n=e.getSubmenuItems(),r=ZB(n,t),i=wi(r.menus,pa(e.value,r.items)),o=wi(r.expansions,pa(e.value,e.value));return{item:e,menus:i,expansions:o}},QB=function(e,t){return GB(e)?XB(e,t):{item:e,menus:{},expansions:{}}},JB=function(e){if(VB(e))return e;var t=Se(e,"value").getOrThunk((function(){return ic("generated-menu-item")}));return wi({value:t},e)},ZB=function(e,t){var n=YB(o(e)?e.split(" "):e,t);return Q(n,(function(e,n){var r=JB(n),i=QB(r,t);return{menus:wi(e.menus,i.menus),items:[i.item].concat(e.items),expansions:wi(e.expansions,i.expansions)}}),{menus:{},expansions:{},items:[]})},eI=function(e,t,n,r){var i=ic("primary-menu"),o=ZB(e,n.shared.providers.menuItems());if(0===o.items.length)return B.none();var a=jO(i,o.items,t,n,r),s=be(o.menus,(function(e,r){return jO(r,e,t,n,!1)})),c=wi(s,pa(i,a));return B.from(Jw.tieredData(i,c,o.expansions))},tI=function(e){return{isDisabled:function(){return Iv.isDisabled(e)},setDisabled:function(t){return Iv.set(e,t)},setActive:function(t){var n=e.element;t?(ol(n,"tox-tbtn--enabled"),jn(n,"aria-pressed",!0)):(sl(n,"tox-tbtn--enabled"),Wn(n,"aria-pressed"))},isActive:function(){return cl(e.element,"tox-tbtn--enabled")}}},nI=function(e,t,n,r){return UB({text:e.text,icon:e.icon,tooltip:e.tooltip,role:r,fetch:function(t,r){e.fetch((function(e){r(eI(e,JC.CLOSE_ON_EXECUTE,n,!1))}))},onSetup:e.onSetup,getApi:tI,columns:1,presets:"normal",classes:[],dropdownBehaviours:[TR.config({})]},t,n.shared)},rI=function(e,t,n){var r=function(e){return function(r){var i=!r.isActive();r.setActive(i),e.storage.set(i),n.shared.getSink().each((function(n){t().getOpt(n).each((function(t){xd(t.element),ks(t,$R,{name:e.name,value:e.storage.get()})}))}))}},i=function(e){return function(t){t.setActive(e.storage.get())}};return function(t){t(V(e,(function(e){var t=e.text.fold((function(){return{}}),(function(e){return{text:e}}));return O(O({type:e.type,active:!1},t),{onAction:r(e),onSetup:i(e)})})))}},iI=function(e,t,n,r,i,o){void 0===n&&(n=[]);var a=t.fold((function(){return{}}),(function(e){return{action:e}})),s=O({buttonBehaviours:fd([xE.button((function(){return e.disabled||o.isDisabled()})),vE(),TR.config({}),zy("button press",[Ds("click"),Ds("mousedown")])].concat(n)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]}},a),c=wi(s,{dom:r});return wi(c,{components:i})},oI=function(e,t,n,r){void 0===r&&(r=[]);var i=e.tooltip.map((function(e){return{"aria-label":n.translate(e),title:n.translate(e)}})).getOr({}),o={tag:"button",classes:["tox-tbtn"],attributes:i},a=e.icon.map((function(e){return BB(e,n.icons)})),s=TE([a]);return iI(e,t,r,o,s,n)},aI=function(e,t,n,r){void 0===r&&(r=[]);var i=oI(e,B.some(t),n,r);return kx.sketch(i)},sI=function(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var o=n.translate(e.text),a=e.icon?e.icon.map((function(e){return BB(e,n.icons)})):B.none(),s=a.isSome()?TE([a]):[],c=a.isSome()?{}:{innerHtml:o},l=D(D(D(D([],e.primary||e.borderless?["tox-button"]:["tox-button","tox-button--secondary"],!0),a.isSome()?["tox-button--icon"]:[],!0),e.borderless?["tox-button--naked"]:[],!0),i,!0),u=O(O({tag:"button",classes:l},c),{attributes:{title:o}});return iI(e,t,r,u,s,n)},cI=function(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var o=sI(e,B.some(t),n,r,i);return kx.sketch(o)},lI=function(e,t){return function(n){"custom"===t?ks(n,$R,{name:e,value:{}}):"submit"===t?xs(n,jR):"cancel"===t&&xs(n,PR)}},uI=function(e,t){return"menu"===t},dI=function(e,t){return"custom"===t||"cancel"===t||"submit"===t},fI=function(e,t,n){if(uI(e,t)){var r=function(){return a},i=e,o=O(O({},e),{onSetup:function(t){return t.setDisabled(e.disabled),g},fetch:rI(i.items,r,n)}),a=Ex(nI(o,"tox-tbtn",n,B.none()));return a.asSpec()}if(dI(e,t)){var s=lI(e.name,t),c=O(O({},e),{borderless:!1});return cI(c,s,n.shared.providers,[])}},pI=function(e,t){var n=lI(e.name,"custom");return DR(B.none(),CR.parts.field(O({factory:kx},sI(e,B.some(n),t,[mN.memory(""),ZF.self()]))))},hI=y([Ko("field1Name","field1"),Ko("field2Name","field2"),lu("onLockedChange"),ou(["lockClass"]),Ko("locked",!1),ig.field("coupledFieldBehaviours",[bv,eg])]),mI=function(e,t,n){return Kg(e,t,n).bind(bv.getCurrent)},gI=function(e,t){return Mg({factory:CR,name:e,overrides:function(e){return{fieldBehaviours:fd([zy("coupled-input-behaviour",[Ls(qa(),(function(n){mI(n,e,t).each((function(t){Kg(n,e,"lock").each((function(r){mw.isOn(r)&&e.onLockedChange(n,t,r)}))}))}))])])}}})},vI=y([gI("field1","field2"),gI("field2","field1"),Mg({factory:kx,schema:[Oo("dom")],name:"lock",overrides:function(e){return{buttonBehaviours:fd([mw.config({selected:e.locked,toggleClass:e.markers.lockClass,aria:{mode:"pressed"}})])}}})]),bI=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,behaviours:ig.augment(e.coupledFieldBehaviours,[bv.config({find:B.some}),eg.config({store:{mode:"manual",getValue:function(t){var n,r=Zg(t,e,["field1","field2"]);return n={},n[e.field1Name]=eg.getValue(r.field1()),n[e.field2Name]=eg.getValue(r.field2()),n},setValue:function(t,n){var r=Zg(t,e,["field1","field2"]);Te(n,e.field1Name)&&eg.setValue(r.field1(),n[e.field1Name]),Te(n,e.field2Name)&&eg.setValue(r.field2(),n[e.field2Name])}}})]),apis:{getField1:function(t){return Kg(t,e,"field1")},getField2:function(t){return Kg(t,e,"field2")},getLock:function(t){return Kg(t,e,"lock")}}}},_I=pv({name:"FormCoupledInputs",configFields:hI(),partFields:vI(),factory:bI,apis:{getField1:function(e,t){return e.getField1(t)},getField2:function(e,t){return e.getField2(t)},getLock:function(e,t){return e.getLock(t)}}}),yI=function(e){var t={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},n=function(e){return e in t?t[e]:1},r=e.value.toFixed(n(e.unit));return-1!==r.indexOf(".")&&(r=r.replace(/\.?0*$/,"")),r+e.unit},wI=function(e){var t=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/,n=t.exec(e);if(null!==n){var r=parseFloat(n[1]),i=n[2];return ri.value({value:r,unit:i})}return ri.error(e)},xI=function(e,t){var n={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},r=function(e){return Ee(n,e)};return e.unit===t?B.some(e.value):r(e.unit)&&r(t)?n[e.unit]===n[t]?B.some(e.value):B.some(e.value/n[e.unit]*n[t]):B.none()},kI=function(e){return B.none()},CI=function(e,t){return function(n){return xI(n,t).map((function(n){return{value:n*e,unit:t}}))}},AI=function(e,t){var n=wI(e).toOptional(),r=wI(t).toOptional();return Me(n,r,(function(e,t){return xI(e,t.unit).map((function(e){return t.value/e})).map((function(e){return CI(e,t.unit)})).getOr(kI)})).getOr(kI)},SI=function(e,t){var n=kI,r=ic("ratio-event"),i=function(e){return Wk(e,{tag:"span",classes:["tox-icon","tox-lock-icon__"+e]},t.icons)},o=_I.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:t.translate(e.label.getOr("Constrain proportions"))}},components:[i("lock"),i("unlock")],buttonBehaviours:fd([Iv.config({disabled:function(){return e.disabled||t.isDisabled()}}),vE(),TR.config({})])}),a=function(e){return{dom:{tag:"div",classes:["tox-form__group"]},components:e}},s=function(n){return CR.parts.field({factory:QR,inputClasses:["tox-textfield"],inputBehaviours:fd([Iv.config({disabled:function(){return e.disabled||t.isDisabled()}}),vE(),TR.config({}),zy("size-input-events",[Ls(Pa(),(function(e,t){ks(e,r,{isField1:n})})),Ls(Ha(),(function(t,n){ks(t,BR,{name:e.name})}))])]),selectOnFocus:!1})},c=function(e){return{dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}},l=_I.parts.field1(a([CR.parts.label(c("Width")),s(!0)])),u=_I.parts.field2(a([CR.parts.label(c("Height")),s(!1)]));return _I.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[l,u,a([c("&nbsp;"),o])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:function(e,t,r){wI(eg.getValue(e)).each((function(e){n(e).each((function(e){eg.setValue(t,yI(e))}))}))},coupledFieldBehaviours:fd([Iv.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){_I.getField1(e).bind(CR.getField).each(Iv.disable),_I.getField2(e).bind(CR.getField).each(Iv.disable),_I.getLock(e).each(Iv.disable)},onEnabled:function(e){_I.getField1(e).bind(CR.getField).each(Iv.enable),_I.getField2(e).bind(CR.getField).each(Iv.enable),_I.getLock(e).each(Iv.enable)}}),vE(),zy("size-input-events2",[Ls(r,(function(e,t){var r=t.event.isField1,i=r?_I.getField1(e):_I.getField2(e),o=r?_I.getField2(e):_I.getField1(e),a=i.map(eg.getValue).getOr(""),s=o.map(eg.getValue).getOr("");n=AI(a,s)}))])])})},EI=y(ic("undo")),TI=y(ic("redo")),OI=y(ic("zoom")),RI=y(ic("back")),DI=y(ic("apply")),LI=y(ic("swap")),MI=y(ic("transform")),FI=y(ic("temp-transform")),NI=y(ic("transform-apply")),BI={undo:EI,redo:TI,zoom:OI,back:RI,apply:DI,swap:LI,transform:MI,tempTransform:FI,transformApply:NI},II=y("save-state"),PI=y("disable"),$I=y("enable"),jI={formActionEvent:$R,saveState:II,disable:PI,enable:$I},zI=function(e,t){var n=function(e,n,r,i){return Ex(cI({name:e,text:e,disabled:r,primary:i,icon:B.none(),borderless:!1},n,t))},r=function(e,n,r,i){return Ex(aI({name:e,icon:B.some(e),tooltip:B.some(n),disabled:i,primary:!1,borderless:!1},r,t))},i=function(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(Iv)&&Iv.disable(n)}))},o=function(e,t){e.map((function(e){var n=e.get(t);n.hasConfigured(Iv)&&Iv.enable(n)}))},a={tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools-edit-panel"]},s=g,c=function(e,t,n){ks(e,t,n)},l=function(e){return xs(e,jI.disable())},u=function(e){return xs(e,jI.enable())},d=function(e,t){l(e),c(e,BI.transform(),{transform:t}),u(e)},f=function(e,t){l(e),c(e,BI.tempTransform(),{transform:t}),u(e)},p=function(e){return function(){ae.getOpt(e).each((function(e){$y.set(e,[ie])}))}},h=function(e,t){l(e),c(e,BI.transformApply(),{transform:t,swap:p(e)}),u(e)},m=function(){return n("Back",(function(e){return c(e,BI.back(),{swap:p(e)})}),!1,!1)},v=function(){return Ex({dom:{tag:"div",classes:["tox-spacer"]},behaviours:fd([Iv.config({})])})},b=function(){return n("Apply",(function(e){return c(e,BI.apply(),{swap:p(e)})}),!0,!0)},_=function(){return function(t){var n=e.getRect();return LB(t,n.x,n.y,n.w,n.h)}},w=[m(),v(),n("Apply",(function(t){var n=_();h(t,n),e.hideCrop()}),!1,!0)],x=bR.sketch({dom:a,components:w.map((function(e){return e.asSpec()})),containerBehaviours:fd([zy("image-tools-crop-buttons-events",[Ls(jI.disable(),(function(e,t){i(w,e)})),Ls(jI.enable(),(function(e,t){o(w,e)}))])])}),k=Ex(SI({name:"size",label:B.none(),constrain:!0,disabled:!1},t)),C=function(e,t){return function(n){return MB(n,e,t)}},A=[m(),v(),k,v(),n("Apply",(function(e){k.getOpt(e).each((function(t){var n=eg.getValue(t),r=parseInt(n.width,10),i=parseInt(n.height,10),o=C(r,i);h(e,o)}))}),!1,!0)],S=bR.sketch({dom:a,components:A.map((function(e){return e.asSpec()})),containerBehaviours:fd([zy("image-tools-resize-buttons-events",[Ls(jI.disable(),(function(e,t){i(A,e)})),Ls(jI.enable(),(function(e,t){o(A,e)}))])])}),E=function(e,t){return function(n){return e(n,t)}},T=E(DB,"h"),O=E(DB,"v"),R=E(FB,-90),D=E(FB,90),L=function(e,t){f(e,t)},M=[m(),v(),r("flip-horizontally","Flip horizontally",(function(e){L(e,T)}),!1),r("flip-vertically","Flip vertically",(function(e){L(e,O)}),!1),r("rotate-left","Rotate counterclockwise",(function(e){L(e,R)}),!1),r("rotate-right","Rotate clockwise",(function(e){L(e,D)}),!1),v(),b()],F=bR.sketch({dom:a,components:M.map((function(e){return e.asSpec()})),containerBehaviours:fd([zy("image-tools-fliprotate-buttons-events",[Ls(jI.disable(),(function(e,t){i(M,e)})),Ls(jI.enable(),(function(e,t){o(M,e)}))])])}),N=function(e,n,r,i,o){var a=DF.parts.label({dom:{tag:"label",classes:["tox-label"],innerHtml:t.translate(e)}}),s=DF.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),c=DF.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return Ex(DF.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:r,maxX:o,getInitialValue:y({x:i})},components:[a,s,c],sliderBehaviours:fd([Xy.config({})]),onChoose:n}))},I=function(e,t,n,r,i){var o=function(e,n,r){var i=E(t,r.x/100);d(e,i)};return N(e,o,n,r,i)},P=function(e,t,n,r,i){return[m(),I(e,t,n,r,i),b()]},$=function(e,t,n,r,s){var c=P(e,t,n,r,s);return bR.sketch({dom:a,components:c.map((function(e){return e.asSpec()})),containerBehaviours:fd([zy("image-tools-filter-panel-buttons-events",[Ls(jI.disable(),(function(e,t){i(c,e)})),Ls(jI.enable(),(function(e,t){o(c,e)}))])])})},j=[m(),v(),b()],z=bR.sketch({dom:a,components:j.map((function(e){return e.asSpec()}))}),q=$("Brightness",OB,-100,0,100),H=$("Contrast",RB,-100,0,100),U=$("Gamma",EB,-100,0,100),W=function(e,t,n){return function(r){return TB(r,e,t,n)}},V=function(e){var t=function(e,t,n){var r=G.getOpt(e),i=Y.getOpt(e),o=K.getOpt(e);r.each((function(t){i.each((function(n){o.each((function(r){var i=eg.getValue(t).x/100,o=eg.getValue(r).x/100,a=eg.getValue(n).x/100,s=W(i,o,a);d(e,s)}))}))}))};return N(e,t,0,100,200)},G=V("R"),K=V("G"),Y=V("B"),X=[m(),G,K,Y,b()],Q=bR.sketch({dom:a,components:X.map((function(e){return e.asSpec()}))}),J=function(e,t,n){return function(r){var i=function(){ae.getOpt(r).each((function(t){$y.set(t,[e]),n(t)}))};c(r,BI.swap(),{transform:t,swap:i})}},Z=function(t){e.showCrop()},ee=function(t){k.getOpt(t).each((function(t){var n=e.getMeasurements(),r=n.width,i=n.height;eg.setValue(t,{width:r,height:i})}))},te=B.some(SB),ne=B.some(AB),re=[r("crop","Crop",J(x,B.none(),Z),!1),r("resize","Resize",J(S,B.none(),ee),!1),r("orientation","Orientation",J(F,B.none(),s),!1),r("brightness","Brightness",J(q,B.none(),s),!1),r("sharpen","Sharpen",J(z,te,s),!1),r("contrast","Contrast",J(H,B.none(),s),!1),r("color-levels","Color levels",J(Q,B.none(),s),!1),r("gamma","Gamma",J(U,B.none(),s),!1),r("invert","Invert",J(z,ne,s),!1)],ie=bR.sketch({dom:a,components:re.map((function(e){return e.asSpec()}))}),oe=bR.sketch({dom:{tag:"div"},components:[ie],containerBehaviours:fd([$y.config({})])}),ae=Ex(oe),se=function(e){return ae.getOpt(e).map((function(e){var t=e.components()[0];return t.components()[t.components().length-1]}))};return{memContainer:ae,getApplyButton:se}},qI=tinymce.util.Tools.resolve("tinymce.geom.Rect"),HI=tinymce.util.Tools.resolve("tinymce.util.Observable"),UI=tinymce.util.Tools.resolve("tinymce.util.VK"),WI=function(e){var t=Math.max,n=e.documentElement,r=e.body,i=t(n.scrollWidth,r.scrollWidth),o=t(n.clientWidth,r.clientWidth),a=t(n.offsetWidth,r.offsetWidth),s=t(n.scrollHeight,r.scrollHeight),c=t(n.clientHeight,r.clientHeight),l=t(n.offsetHeight,r.offsetHeight);return{width:i<a?o:i,height:s<l?c:s}},VI=function(e){return f(e.changedTouches)},GI=function(e){if(VI(e))for(var t="screenX screenY pageX pageY clientX clientY".split(" "),n=0;n<t.length;n++)e[t[n]]=e.changedTouches[0][t[n]]};function KI(e,t){var n,r,i,o,a,s,c,l=[],u=[],d=null!==(n=t.document)&&void 0!==n?n:document,p=null!==(r=t.root)&&void 0!==r?r:d,h=tt.fromDom(d),m=tt.fromDom(p.getElementById(null!==(i=t.handle)&&void 0!==i?i:e)),g=function(e){var n=e.raw,r=WI(d);GI(n),e.prevent(),a=n.button,s=n.screenX,c=n.screenY;var i=Qn(m,"cursor");o=tt.fromTag("div",d),Yn(o,{position:"absolute",top:"0",left:"0",width:r.width+"px",height:r.height+"px","z-index":"2147483647",opacity:"0.0001",cursor:i}),Rr(Pn(h),o),u.push(af(h,"mousemove",v),af(h,"touchmove",v),af(h,"mouseup",b),af(h,"touchend",b)),t.start(n)},v=function(e){var n=e.raw;if(GI(n),n.button!==a)return b(e);n.deltaX=n.screenX-s,n.deltaY=n.screenY-c,e.prevent(),t.drag(n)},b=function(e){GI(e.raw),G(u,(function(e){return e.unbind()})),u=[],Nr(o),t.stop&&t.stop(e.raw)},_=function(){G(u.concat(l),(function(e){return e.unbind()})),u=[],l=[],f(o)&&Nr(o)};return l.push(af(m,"mousedown",g),af(m,"touchstart",g)),{destroy:_}}var YI=0,XI=function(e,t,n,r,i){var o,a=[],s="tox-",c=s+"crid-"+YI++,l=tt.fromDom(r),u=[{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"}],d=["top","right","bottom","left"],f=function(e,t){return{x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},p=function(e,t){return{x:t.x-e.x,y:t.y-e.y,w:t.w,h:t.h}},h=function(){return p(n,e)},m=function(t,r,i,o){var a=r.x+i*t.deltaX,s=r.y+o*t.deltaY,c=Math.max(20,r.w+i*t.deltaW),l=Math.max(20,r.h+o*t.deltaH),u=e=qI.clamp({x:a,y:s,w:c,h:l},n,"move"===t.name);u=p(n,u),C.fire("updateRect",{rect:u}),w(u)},g=function(){var t=function(t){var n;return KI(c,{document:r.ownerDocument,root:On(l).dom,handle:c+"-"+t.name,start:function(){n=e},drag:function(e){m(t,n,e.deltaX,e.deltaY)}})},n=tt.fromTag("div");zn(n,{id:c,class:s+"croprect-container",role:"grid","aria-dropeffect":"execute"}),Rr(l,n),G(d,(function(e){Pl(l,"#"+c).each((function(t){var n=tt.fromTag("div");zn(n,{id:c+"-"+e,class:s+"croprect-block","data-mce-bogus":"all"}),Kn(n,"display","none"),Rr(t,n)}))})),G(u,(function(e){Pl(l,"#"+c).each((function(t){var n=tt.fromTag("div");zn(n,{id:c+"-"+e.name,"aria-label":e.label,"aria-grabbed":"false","data-mce-bogus":"all",role:"gridcell",tabindex:"-1",title:e.label}),ll(n,[s+"croprect-handle",s+"croprect-handle-"+e.name]),Kn(n,"display","none"),Rr(t,n)}))})),o=V(u,t),b(e);var f=function(e){jn(e.target,"aria-grabbed","focus"===e.raw.type?"true":"false")},p=function(t){var n;G(u,(function(e){if(qn(t.target,"id")===c+"-"+e.name)return n=e,!1}));var r=function(e,t,r,i,o){e.stopPropagation(),e.preventDefault(),m(n,r,i,o)};switch(t.raw.keyCode){case UI.LEFT:r(t,n,e,-10,0);break;case UI.RIGHT:r(t,n,e,10,0);break;case UI.UP:r(t,n,e,0,-10);break;case UI.DOWN:r(t,n,e,0,10);break;case UI.ENTER:case UI.SPACEBAR:t.prevent(),i();break}};a.push(af(l,"focusin",f),af(l,"focusout",f),af(l,"keydown",p))},v=function(e){var t=D(D([],V(u,(function(e){return"#"+c+"-"+e.name})),!0),V(d,(function(e){return"#"+c+"-"+e})),!0).join(","),n=Yp(l,t);G(n,e?function(e){return nr(e,"display")}:function(e){return Kn(e,"display","none")})},b=function(e){var n=function(e,t){Pl(l,"#"+c+"-"+e).each((function(e){Yn(e,{left:t.x+"px",top:t.y+"px",width:Math.max(0,t.w)+"px",height:Math.max(0,t.h)+"px"})}))};G(u,(function(t){Pl(l,"#"+c+"-"+t.name).each((function(n){Yn(n,{left:e.w*t.xMul+e.x+"px",top:e.h*t.yMul+e.y+"px"})}))})),n("top",{x:t.x,y:t.y,w:t.w,h:e.y-t.y}),n("right",{x:e.x+e.w,y:e.y,w:t.w-e.x-e.w+t.x,h:e.h}),n("bottom",{x:t.x,y:e.y+e.h,w:t.w,h:t.h-e.y-e.h+t.y}),n("left",{x:t.x,y:e.y,w:e.x-t.x,h:e.h}),n("move",e)},_=function(t){e=t,b(e)},y=function(n){t=n,b(e)},w=function(e){_(f(n,e))},x=function(t){n=t,b(e)},k=function(){G(o,(function(e){return e.destroy()})),o=[],G(a,(function(e){return e.unbind()})),a=[]};g();var C=O(O({},HI),{toggleVisibility:v,setClampRect:x,setRect:_,getInnerRect:h,setInnerRect:w,setViewPortRect:y,destroy:k});return C},QI={create:XI},JI=function(e){return new mC((function(t){var n=function(){e.removeEventListener("load",n),t(e)};e.complete?t(e):e.addEventListener("load",n)}))},ZI=function(e){var t=Ex({dom:{tag:"div",classes:["tox-image-tools__image-bg"],attributes:{role:"presentation"}}}),n=ia(1),r=nf(),i=ia({x:0,y:0,w:1,h:1}),o=ia({x:0,y:0,w:1,h:1}),a=function(e,o){h.getOpt(e).each((function(e){var a=n.get(),s=vr(e.element),c=ar(e.element),l=o.dom.naturalWidth*a,u=o.dom.naturalHeight*a,d=Math.max(0,s/2-l/2),f=Math.max(0,c/2-u/2),p={left:d.toString()+"px",top:f.toString()+"px",width:l.toString()+"px",height:u.toString()+"px",position:"absolute"};Yn(o,p),t.getOpt(e).each((function(e){Yn(e.element,p)})),r.run((function(e){var t=i.get();e.setRect({x:t.x*a+d,y:t.y*a+f,w:t.w*a,h:t.h*a}),e.setClampRect({x:d,y:f,w:l,h:u}),e.setViewPortRect({x:0,y:0,w:s,h:c})}))}))},s=function(e,t){h.getOpt(e).each((function(e){var r=vr(e.element),i=ar(e.element),o=t.dom.naturalWidth,a=t.dom.naturalHeight,s=Math.min(r/o,i/a);s>=1?n.set(1):n.set(s)}))},c=function(e,t){var n=tt.fromTag("img");return jn(n,"src",t),JI(n.dom).then((function(){e.getSystem().isConnected()&&h.getOpt(e).map((function(e){var t=Cl({element:n});$y.replaceAt(e,1,B.some(t));var r=o.get(),c={x:0,y:0,w:n.dom.naturalWidth,h:n.dom.naturalHeight};o.set(c);var l=qI.inflate(c,-20,-20);i.set(l),r.w===c.w&&r.h===c.h||s(e,n),a(e,n)}))}))},l=function(e,t){var r=n.get(),i=t>0?Math.min(2,r+.1):Math.max(.1,r-.1);n.set(i),h.getOpt(e).each((function(e){var t=e.components()[1].element;a(e,t)}))},u=function(){r.run((function(e){e.toggleVisibility(!0)}))},d=function(){r.run((function(e){e.toggleVisibility(!1)}))},f=function(){return i.get()},p=bR.sketch({dom:{tag:"div",classes:["tox-image-tools__image"]},components:[t.asSpec(),{dom:{tag:"img",attributes:{src:e}}},{dom:{tag:"div"},behaviours:fd([zy("image-panel-crop-events",[qs((function(e){h.getOpt(e).each((function(e){var t=e.element.dom,o=QI.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},t,g);o.toggleVisibility(!1),o.on("updateRect",(function(e){var t=e.rect,r=n.get(),o={x:Math.round(t.x/r),y:Math.round(t.y/r),w:Math.round(t.w/r),h:Math.round(t.h/r)};i.set(o)})),r.set(o)}))})),Hs((function(){r.clear()}))])])}],containerBehaviours:fd([$y.config({}),zy("image-panel-events",[qs((function(t){c(t,e)}))])])}),h=Ex(p),m=function(){var e=o.get();return{width:e.w,height:e.h}};return{memContainer:h,updateSrc:c,zoom:l,showCrop:u,hideCrop:d,getRect:f,getMeasurements:m}},eP=function(e,t,n,r,i){return aI({name:e,icon:B.some(t),disabled:n,tooltip:B.some(e),primary:!1,borderless:!1},r,i)},tP=function(e,t){t?Iv.enable(e):Iv.disable(e)},nP=function(e){var t=function(e,t,i){n.getOpt(e).each((function(e){tP(e,t)})),r.getOpt(e).each((function(e){tP(e,i)}))},n=Ex(eP("Undo","undo",!0,(function(e){ks(e,BI.undo(),{direction:1})}),e)),r=Ex(eP("Redo","redo",!0,(function(e){ks(e,BI.redo(),{direction:1})}),e)),i=bR.sketch({dom:{tag:"div",classes:["tox-image-tools__toolbar","tox-image-tools__sidebar"]},components:[n.asSpec(),r.asSpec(),eP("Zoom in","zoom-in",!1,(function(e){ks(e,BI.zoom(),{direction:1})}),e),eP("Zoom out","zoom-out",!1,(function(e){ks(e,BI.zoom(),{direction:-1})}),e)]});return{container:i,updateButtonUndoStates:t}};function rP(){var e=[],t=-1,n=function(n){var r=e.splice(++t);return e.push(n),{state:n,removed:r}},r=function(){if(o())return e[--t]},i=function(){if(a())return e[++t]},o=function(){return t>0},a=function(){return-1!==t&&t<e.length-1};return{data:e,add:n,undo:r,redo:i,canUndo:o,canRedo:a}}var iP,oP=function(e){var t=ia(e),n=rf(),r=rP();r.add(e);var i=function(){return t.get()},o=function(e){t.set(e)},a=function(){return n.get().getOrThunk(t.get)},s=function(e){var t=c(e);return d(),n.set(t),t.url},c=function(e){return{blob:e,url:URL.createObjectURL(e)}},l=function(e){URL.revokeObjectURL(e.url)},u=function(e){sN.each(e,l)},d=function(){n.on(l),n.clear()},f=function(e){var t=c(e);o(t);var n=r.add(t).removed;return u(n),t.url},p=function(e){var t=c(e);return n.set(t),t.url},h=function(e){return n.get().fold(g,(function(t){f(t.blob),e()}))},m=function(){var e=r.undo();return o(e),e.url},v=function(){var e=r.redo();return o(e),e.url},b=function(){var e=r.canUndo(),t=r.canRedo();return{undoEnabled:e,redoEnabled:t}};return{getBlobState:i,setBlobState:o,addBlobState:f,getTempState:a,updateTempState:s,addTempState:p,applyTempState:h,destroyTempState:d,undo:m,redo:v,getHistoryStates:b}},aP=function(e,t){var n=oP(e.currentState),r=function(e,t){var n=t.event.direction;C.zoom(e,n)},i=function(e){var t=n.getHistoryStates();A.updateButtonUndoStates(e,t.undoEnabled,t.redoEnabled),ks(e,jI.formActionEvent,{name:jI.saveState(),value:t.undoEnabled})},o=function(e){A.updateButtonUndoStates(e,!1,!1)},a=function(e,t){var r=n.undo();d(e,r).then((function(t){u(e),i(e)}))},s=function(e,t){var r=n.redo();d(e,r).then((function(t){u(e),i(e)}))},c=function(e){return e.toBlob()},l=function(e){ks(e,jI.formActionEvent,{name:jI.disable(),value:{}})},u=function(e){S.getApplyButton(e).each((function(e){Iv.enable(e)})),ks(e,jI.formActionEvent,{name:jI.enable(),value:{}})},d=function(e,t){return l(e),C.updateSrc(e,t)},f=function(e,t,n,r,o){l(e),GN(t).then(n).then(c).then(r).then((function(t){return d(e,t)})).then((function(){i(e),o(),u(e)})).catch((function(t){e.getSystem().isConnected()&&u(e)}))},p=function(e,t,r){var i=n.getBlobState().blob,o=function(e){return n.updateTempState(e)};f(e,i,t,o,r)},h=function(e,t){var r=n.getTempState().blob,i=function(e){return n.addTempState(e)};f(e,r,t,i,g)},m=function(e,t,r){var i=n.getBlobState().blob,o=function(t){var r=n.addBlobState(t);return b(e),r};f(e,i,t,o,r)},v=function(e,t){var r=function(){b(e);var n=t.event.swap;n()};n.applyTempState(r)},b=function(e){var t=n.getBlobState().url;return n.destroyTempState(),i(e),t},_=function(e){var t=b(e);d(e,t).then((function(t){u(e)}))},y=function(e,t){_(e);var n=t.event.swap;n(),C.hideCrop()},w=function(e,t){return p(e,t.event.transform,g)},x=function(e,t){return h(e,t.event.transform)},k=function(e,t){return m(e,t.event.transform,t.event.swap)},C=ZI(e.currentState.url),A=nP(t),S=zI(C,t),E=function(e,t){o(e);var n=t.event.transform,r=t.event.swap;n.fold((function(){r()}),(function(t){p(e,t,r)}))};return{dom:{tag:"div",attributes:{role:"presentation"}},components:[S.memContainer.asSpec(),C.memContainer.asSpec(),A.container],behaviours:fd([eg.config({store:{mode:"manual",getValue:function(){return n.getBlobState()}}}),zy("image-tools-events",[Ls(BI.undo(),a),Ls(BI.redo(),s),Ls(BI.zoom(),r),Ls(BI.back(),y),Ls(BI.apply(),v),Ls(BI.transform(),w),Ls(BI.tempTransform(),x),Ls(BI.transformApply(),k),Ls(BI.swap(),E)]),ZF.self()])}},sP=function(e,t){var n={dom:{tag:"label",innerHtml:t.providers.translate(e.label),classes:["tox-label"]}},r=V(e.items,t.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[n].concat(r),behaviours:fd([ZF.self(),$y.config({}),mN.domHtml(B.none()),Oy.config({mode:"acyclic"})])}},cP=function(e){return!Ee(e,"items")},lP="data-value",uP=function(e,t,n,r){return V(n,(function(n){return cP(n)?{type:"togglemenuitem",text:n.text,value:n.value,active:n.value===r,onAction:function(){eg.setValue(e,n.value),ks(e,BR,{name:t}),Xy.focus(e)}}:{type:"nestedmenuitem",text:n.text,getSubmenuItems:function(){return uP(e,t,n.items,r)}}}))},dP=function(e,t){return he(e,(function(e){return cP(e)?Be(e.value===t,e):dP(e.items,t)}))},fP=function(e,t){var n=t.shared.providers,r=de(e.items).filter(cP),i=e.label.map((function(e){return NR(e,n)})),o=CR.parts.field({dom:{},factory:{sketch:function(n){return UB({uid:n.uid,text:r.map((function(e){return e.text})),icon:B.none(),tooltip:e.label,role:B.none(),fetch:function(n,r){var i=uP(n,e.name,e.items,eg.getValue(n));r(eI(i,JC.CLOSE_ON_EXECUTE,t,!1))},onSetup:y(g),getApi:y({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[TR.config({}),eg.config({store:{mode:"manual",initialValue:r.map((function(e){return e.value})).getOr(""),getValue:function(e){return qn(e.element,lP)},setValue:function(t,n){dP(e.items,n).each((function(e){jn(t.element,lP,e.value),ks(t,qB,{text:e.text})}))}}})]},"tox-listbox",t.shared)}}}),a={dom:{tag:"div",classes:["tox-listboxfield"]},components:[o]};return CR.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ne([i.toArray(),[a]]),fieldBehaviours:fd([Iv.config({disabled:y(e.disabled),onDisabled:function(e){CR.getField(e).each(Iv.disable)},onEnabled:function(e){CR.getField(e).each(Iv.enable)}})])})},pP=function(e,t){return{dom:{tag:"div",classes:e.classes},components:V(e.items,t.shared.interpreter)}},hP=function(e,t){var n=V(e.options,(function(e){return{dom:{tag:"option",value:e.value,innerHtml:e.text}}})),r=e.data.map((function(e){return pa("initialValue",e)})).getOr({});return{uid:e.uid,dom:{tag:"select",classes:e.selectClasses,attributes:e.selectAttributes},components:n,behaviours:rg(e.selectBehaviours,[Xy.config({}),eg.config({store:O({mode:"manual",getValue:function(e){return fl(e.element)},setValue:function(t,n){var r=ee(e.options,(function(e){return e.value===n}));r.isSome()&&pl(t.element,n)}},r)})])}},mP=fv({name:"HtmlSelect",configFields:[Oo("options"),tg("selectBehaviours",[Xy,eg]),Ko("selectClasses",[]),Ko("selectAttributes",{}),jo("data")],factory:hP}),gP=function(e,t){var n=V(e.items,(function(e){return{text:t.translate(e.text),value:e.value}})),r=e.label.map((function(e){return NR(e,t)})),i=CR.parts.field({dom:{},selectAttributes:{size:e.size},options:n,factory:mP,selectBehaviours:fd([Iv.config({disabled:function(){return e.disabled||t.isDisabled()}}),TR.config({}),zy("selectbox-change",[Ls(Ha(),(function(t,n){ks(t,BR,{name:e.name})}))])])}),o=e.size>1?B.none():B.some(Wk("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},t.icons)),a={dom:{tag:"div",classes:["tox-selectfield"]},components:ne([[i],o.toArray()])};return CR.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:ne([r.toArray(),[a]]),fieldBehaviours:fd([Iv.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){CR.getField(e).each(Iv.disable)},onEnabled:function(e){CR.getField(e).each(Iv.enable)}}),vE()])})},vP=function(e,t){var n=function(e){return{dom:{tag:"th",innerHtml:t.translate(e)}}},r=function(e){return{dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:V(e,n)}]}},i=function(e){return{dom:{tag:"td",innerHtml:t.translate(e)}}},o=function(e){return{dom:{tag:"tr"},components:V(e,i)}},a=function(e){return{dom:{tag:"tbody"},components:V(e,o)}};return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[r(e.header),a(e.cells)],behaviours:fd([TR.config({}),Xy.config({})])}},bP=function(e,t){var n=e.label.map((function(e){return NR(e,t)})),r=[Iv.config({disabled:function(){return e.disabled||t.isDisabled()}}),vE(),Oy.config({mode:"execution",useEnter:!0!==e.multiline,useControlEnter:!0===e.multiline,execute:function(e){return xs(e,jR),B.some(!0)}}),zy("textfield-change",[Ls(qa(),(function(t,n){ks(t,BR,{name:e.name})})),Ls(Za(),(function(t,n){ks(t,BR,{name:e.name})}))]),TR.config({})],i=e.validation.map((function(e){return wD.config({getRoot:function(e){return vn(e.element)},invalidClass:"tox-invalid",validator:{validate:function(t){var n=eg.getValue(t),r=e.validator(n);return lD.pure(!0===r?ri.value(n):ri.error(r))},validateOnLoad:e.validateOnLoad}})})).toArray(),o=e.placeholder.fold(y({}),(function(e){return{placeholder:t.translate(e)}})),a=e.inputMode.fold(y({}),(function(e){return{inputmode:e}})),s=O(O({},o),a),c=CR.parts.field({tag:!0===e.multiline?"textarea":"input",inputAttributes:s,inputClasses:[e.classname],inputBehaviours:fd(ne([r,i])),selectOnFocus:!1,factory:QR}),l=e.flex?["tox-form__group--stretched"]:[],u=l.concat(e.maximized?["tox-form-group--maximize"]:[]),d=[Iv.config({disabled:function(){return e.disabled||t.isDisabled()},onDisabled:function(e){CR.getField(e).each(Iv.disable)},onEnabled:function(e){CR.getField(e).each(Iv.enable)}}),vE()];return RR(n,c,u,d)},_P=function(e,t){return bP({name:e.name,multiline:!1,label:e.label,inputMode:e.inputMode,placeholder:e.placeholder,flex:!1,disabled:e.disabled,classname:"tox-textfield",validation:B.none(),maximized:e.maximized},t)},yP=function(e,t){return bP({name:e.name,multiline:!0,label:e.label,inputMode:B.none(),placeholder:e.placeholder,flex:!0,disabled:e.disabled,classname:"tox-textarea",validation:B.none(),maximized:e.maximized},t)},wP=function(e,t){var n=e.stream.streams,r=n.setup(e,t);return Ts([Ls(e.event,r),Hs((function(){return t.cancel()}))].concat(e.cancelEvent.map((function(e){return[Ls(e,(function(){return t.cancel()}))]})).getOr([])))},xP=Object.freeze({__proto__:null,events:wP}),kP=function(e){var t=ia(null),n=function(){return{timer:null!==t.get()?"set":"unset"}},r=function(e){t.set(e)},i=function(){var e=t.get();null!==e&&e.cancel()};return Ac({readState:n,setTimer:r,cancel:i})},CP=function(e){return e.stream.streams.state(e)},AP=Object.freeze({__proto__:null,throttle:kP,init:CP}),SP=function(e,t){var n=e.stream,r=Zk(e.onStream,n.delay);return t.setTimer(r),function(e,t){r.throttle(e,t),n.stopEvent&&t.stop()}},EP=[Ro("stream",Co("mode",{throttle:[Oo("delay"),Ko("stopEvent",!0),du("streams",{setup:SP,state:kP})]})),Ko("event","input"),jo("cancelEvent"),lu("onStream")],TP=hd({fields:EP,name:"streaming",active:xP,state:AP}),OP=function(e,t,n){var r=eg.getValue(n);eg.setValue(t,r),DP(t)},RP=function(e,t){var n=e.element,r=fl(n),i=n.dom;"number"!==qn(n,"type")&&t(i,r)},DP=function(e){RP(e,(function(e,t){return e.setSelectionRange(t.length,t.length)}))},LP=function(e,t){RP(e,(function(e,n){return e.setSelectionRange(t,n.length)}))},MP=function(e,t,n){if(e.selectsOver){var r=eg.getValue(t),i=e.getDisplayText(r),o=eg.getValue(n),a=e.getDisplayText(o);return 0===a.indexOf(i)?B.some((function(){OP(e,t,n),LP(t,i.length)})):B.none()}return B.none()},FP=y("alloy.typeahead.itemexecute"),NP=function(e,t,n,r){var i=function(t,n,i){e.previewing.set(!1);var o=ED.getCoupled(t,"sandbox");if(bm.isOpen(o))bv.getCurrent(o).each((function(e){rb.getHighlighted(e).fold((function(){i(e)}),(function(){Es(o,e.element,"keydown",n)}))}));else{var s=function(e){bv.getCurrent(e).each(i)};FD(e,a(t),t,o,r,s,eD.HighlightFirst).get(g)}},o=GR(e),a=function(e){return function(t){return t.map((function(t){var n=Ae(t.menus),r=re(n,(function(e){return X(e.items,(function(e){return"item"===e.type}))})),i=eg.getState(e);return i.update(V(r,(function(e){return e.data}))),t}))}},s=[Xy.config({}),eg.config({onSetValue:e.onSetValue,store:O({mode:"dataset",getDataKey:function(e){return fl(e.element)},getFallbackEntry:function(e){return{value:e,meta:{}}},setValue:function(t,n){pl(t.element,e.model.getDisplayText(n))}},e.initialData.map((function(e){return pa("initialValue",e)})).getOr({}))}),TP.config({stream:{mode:"throttle",delay:e.responseTime,stopEvent:!1},onStream:function(t,n){var i=ED.getCoupled(t,"sandbox"),o=Xy.isFocused(t);if(o&&fl(t.element).length>=e.minChars){var s=bv.getCurrent(i).bind((function(e){return rb.getHighlighted(e).map(eg.getValue)}));e.previewing.set(!0);var c=function(t){bv.getCurrent(i).each((function(t){s.fold((function(){e.model.selectsOver&&rb.highlightFirst(t)}),(function(e){rb.highlightBy(t,(function(t){var n=eg.getValue(t);return n.value===e.value})),rb.getHighlighted(t).orThunk((function(){return rb.highlightFirst(t),B.none()}))}))}))};FD(e,a(t),t,i,r,c,eD.HighlightFirst).get(g)}},cancelEvent:as()}),Oy.config({mode:"special",onDown:function(e,t){return i(e,t,rb.highlightFirst),B.some(!0)},onEscape:function(e){var t=ED.getCoupled(e,"sandbox");return bm.isOpen(t)?(bm.close(t),B.some(!0)):B.none()},onUp:function(e,t){return i(e,t,rb.highlightLast),B.some(!0)},onEnter:function(t){var n=ED.getCoupled(t,"sandbox"),r=bm.isOpen(n);if(r&&!e.previewing.get())return bv.getCurrent(n).bind((function(e){return rb.getHighlighted(e)})).map((function(e){return ks(t,FP(),{item:e}),!0}));var i=eg.getValue(t);return xs(t,as()),e.onExecute(n,t,i),r&&bm.close(n),B.some(!0)}}),mw.config({toggleClass:e.markers.openClass,aria:{mode:"expanded"}}),ED.config({others:{sandbox:function(t){return jD(e,t,{onOpen:function(){return mw.on(t)},onClose:function(){return mw.off(t)}})}}}),zy("typeaheadevents",[Ws((function(t){var n=g;BD(e,a(t),t,r,n,eD.HighlightFirst).get(g)})),Ls(FP(),(function(t,n){var r=ED.getCoupled(t,"sandbox");OP(e.model,t,n.event.item),xs(t,as()),e.onItemExecute(t,r,n.event.item,eg.getValue(t)),bm.close(r),DP(t)}))].concat(e.dismissOnBlur?[Ls(Ja(),(function(e){var t=ED.getCoupled(e,"sandbox");Sd(t.element).isNone()&&bm.close(t)}))]:[]))];return{uid:e.uid,dom:YR(wi(e,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:O(O({},o),rg(e.typeaheadBehaviours,s)),eventOrder:e.eventOrder}},BP=y([jo("lazySink"),Oo("fetch"),Ko("minChars",5),Ko("responseTime",1e3),su("onOpen"),Ko("getHotspot",B.some),Ko("getAnchorOverrides",y({})),Ko("layouts",B.none()),Ko("eventOrder",{}),ra("model",{},[Ko("getDisplayText",(function(e){return void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.value})),Ko("selectsOver",!0),Ko("populateFromBrowse",!0)]),su("onSetValue"),cu("onExecute"),su("onItemExecute"),Ko("inputClasses",[]),Ko("inputAttributes",{}),Ko("inputStyles",{}),Ko("matchWidth",!0),Ko("useMinWidth",!1),Ko("dismissOnBlur",!0),ou(["openClass"]),jo("initialData"),tg("typeaheadBehaviours",[Xy,eg,TP,Oy,mw,ED]),Eo("previewing",(function(){return ia(!0)}))].concat(VR()).concat(qD())),IP=y([Fg({schema:[iu()],name:"menu",overrides:function(e){return{fakeFocus:!0,onHighlight:function(t,n){e.previewing.get()?t.getSystem().getByUid(e.uid).each((function(r){MP(e.model,r,n).fold((function(){return rb.dehighlight(t,n)}),(function(e){return e()}))})):t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&OP(e.model,t,n)})),e.previewing.set(!1)},onExecute:function(t,n){return t.getSystem().getByUid(e.uid).toOptional().map((function(e){return ks(e,FP(),{item:n}),!0}))},onHover:function(t,n){e.previewing.set(!1),t.getSystem().getByUid(e.uid).each((function(t){e.model.populateFromBrowse&&OP(e.model,t,n)}))}}}})]),PP=pv({name:"Typeahead",configFields:BP(),partFields:IP(),factory:NP}),$P=function(e){var t=function(){return $P(e.toCached())},n=function(t){return $P(e.bind((function(e){return e.fold((function(e){return lD.pure(ri.error(e))}),(function(e){return t(e)}))})))},r=function(t){return $P(e.map((function(e){return e.bind(t)})))},i=function(t){return $P(e.map((function(e){return e.map(t)})))},o=function(t){return $P(e.map((function(e){return e.mapError(t)})))},a=function(t,n){return e.map((function(e){return e.fold(t,n)}))},s=function(t,n){return $P(lD.nu((function(r){var i=!1,o=setTimeout((function(){i=!0,r(ri.error(n()))}),t);e.get((function(e){i||(clearTimeout(o),r(e))}))})))};return O(O({},e),{toCached:t,bindFuture:n,bindResult:r,mapResult:i,mapError:o,foldResult:a,withTimeout:s})},jP=function(e){return $P(lD.nu(e))},zP=function(e){return $P(lD.pure(ri.value(e)))},qP=function(e){return $P(lD.pure(ri.error(e)))},HP=function(e){return $P(lD.pure(e))},UP=function(e){return $P(e.map(ri.value))},WP=function(e){return jP((function(t){e.then((function(e){t(ri.value(e))}),(function(e){t(ri.error(e))}))}))},VP={nu:jP,wrap:$P,pure:zP,value:zP,error:qP,fromResult:HP,fromFuture:UP,fromPromise:WP},GP={type:"separator"},KP=function(e){return{type:"menuitem",value:e.url,text:e.title,meta:{attach:e.attach},onAction:g}},YP=function(e,t){return{type:"menuitem",value:t,text:e,meta:{attach:void 0},onAction:g}},XP=function(e){return V(e,KP)},QP=function(e,t){return X(t,(function(t){return t.type===e}))},JP=function(e,t){return XP(QP(e,t))},ZP=function(e){return JP("header",e.targets)},e$=function(e){return JP("anchor",e.targets)},t$=function(e){return B.from(e.anchorTop).map((function(e){return YP("<top>",e)})).toArray()},n$=function(e){return B.from(e.anchorBottom).map((function(e){return YP("<bottom>",e)})).toArray()},r$=function(e){return V(e,(function(e){return YP(e,e)}))},i$=function(e){return J(e,(function(e,t){var n=0===e.length||0===t.length;return n?e.concat(t):e.concat(GP,t)}),[])},o$=function(e,t){var n=e.toLowerCase();return X(t,(function(e){var t=void 0!==e.meta&&void 0!==e.meta.text?e.meta.text:e.text;return qe(t.toLowerCase(),n)||qe(e.value.toLowerCase(),n)}))},a$=function(e,t,n){var r=eg.getValue(t),i=void 0!==r.meta.text?r.meta.text:r.value,o=n.getLinkInformation();return o.fold((function(){return[]}),(function(t){var r=o$(i,r$(n.getHistory(e)));return"file"===e?i$([r,o$(i,ZP(t)),o$(i,ne([t$(t),e$(t),n$(t)]))]):r}))},s$=ic("aria-invalid"),c$=function(e,t,n){var r,i=t.shared.providers,o=function(t){var r=eg.getValue(t);n.addToHistory(r.value,e.filetype)},a=CR.parts.field({factory:PP,dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":s$,type:"url"},minChars:0,responseTime:0,fetch:function(r){var i=a$(e.filetype,r,n),o=eI(i,JC.BUBBLE_TO_SANDBOX,t,!1);return lD.pure(o)},getHotspot:function(e){return p.getOpt(e)},onSetValue:function(e,t){e.hasConfigured(wD)&&wD.run(e).get(g)},typeaheadBehaviours:fd(ne([n.getValidationHandler().map((function(t){return wD.config({getRoot:function(e){return vn(e.element)},invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:function(e,t){l.getOpt(e).each((function(e){jn(e.element,"title",i.translate(t))}))}},validator:{validate:function(n){var r=eg.getValue(n);return VP.nu((function(n){t({type:e.filetype,url:r.value},(function(e){if("invalid"===e.status){var t=ri.error(e.message);n(t)}else{var r=ri.value(e.message);n(r)}}))}))},validateOnLoad:!1}})})).toArray(),[Iv.config({disabled:function(){return e.disabled||i.isDisabled()}}),TR.config({}),zy("urlinput-events",ne(["file"===e.filetype?[Ls(qa(),(function(t){ks(t,BR,{name:e.name})}))]:[],[Ls(Ha(),(function(t){ks(t,BR,{name:e.name}),o(t)})),Ls(Za(),(function(t){ks(t,BR,{name:e.name}),o(t)}))]]))]])),eventOrder:(r={},r[qa()]=["streaming","urlinput-events","invalidating"],r),model:{getDisplayText:function(e){return e.value},selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:t.shared.getSink,parts:{menu:AA(!1,1,"normal")},onExecute:function(e,t,n){ks(t,jR,{})},onItemExecute:function(t,n,r,i){o(t),ks(t,BR,{name:e.name})}}),s=e.label.map((function(e){return NR(e,i)})),c=function(e,t,n,r){return void 0===n&&(n=e),void 0===r&&(r=e),Wk(n,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+e],attributes:O({title:i.translate(r),"aria-live":"polite"},t.fold((function(){return{}}),(function(e){return{id:e}})))},i.icons)},l=Ex(c("invalid",B.some(s$),"warning")),u=Ex({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[l.asSpec()]}),d=n.getUrlPicker(e.filetype),f=ic("browser.url.event"),p=Ex({dom:{tag:"div",classes:["tox-control-wrap"]},components:[a,u.asSpec()],behaviours:fd([Iv.config({disabled:function(){return e.disabled||i.isDisabled()}})])}),h=Ex(cI({name:e.name,icon:B.some("browse"),text:e.label.getOr(""),disabled:e.disabled,primary:!1,borderless:!0},(function(e){return xs(e,f)}),i,[],["tox-browse-url"])),m=function(){return{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:ne([[p.asSpec()],d.map((function(){return h.asSpec()})).toArray()])}},v=function(t){bv.getCurrent(t).each((function(n){var r=eg.getValue(n),i=O({fieldname:e.name},r);d.each((function(r){r(i).get((function(r){eg.setValue(n,r),ks(t,BR,{name:e.name})}))}))}))};return CR.sketch({dom:MR(),components:s.toArray().concat([m()]),fieldBehaviours:fd([Iv.config({disabled:function(){return e.disabled||i.isDisabled()},onDisabled:function(e){CR.getField(e).each(Iv.disable),h.getOpt(e).each(Iv.disable)},onEnabled:function(e){CR.getField(e).each(Iv.enable),h.getOpt(e).each(Iv.enable)}}),vE(),zy("url-input-events",[Ls(f,v)])])})},l$=function(e,t){return bR.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in","tox-notification--"+e.level]},components:[{dom:{tag:"div",classes:["tox-notification__icon"]},components:[kx.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:jk(e.icon,t.icons),attributes:{title:t.translate(e.iconTooltip)}},action:function(t){ks(t,$R,{name:"alert-banner",value:e.url})},buttonBehaviours:fd([Hk()])})]},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:t.translate(e.text)}}]})},u$=function(e,t){var n=eg.config({store:{mode:"manual",getValue:function(e){var t=e.element.dom;return t.checked},setValue:function(e,t){var n=e.element.dom;n.checked=t}}}),r=function(e){return e.element.dom.click(),B.some(!0)},i=CR.parts.field({factory:{sketch:w},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:fd([ZF.self(),Iv.config({disabled:function(){return e.disabled||t.isDisabled()}}),TR.config({}),Xy.config({}),n,Oy.config({mode:"special",onEnter:r,onSpace:r,stopSpaceKeyup:!0}),zy("checkbox-events",[Ls(Ha(),(function(t,n){ks(t,BR,{name:e.name})}))])])}),o=CR.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"],innerHtml:t.translate(e.label)},behaviours:fd([XD.config({})])}),a=function(e){var n="checked"===e?"selected":"unselected";return Wk(n,{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+e]},t.icons)},s=Ex({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[a("checked"),a("unchecked")]});return CR.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[i,s.asSpec(),o],fieldBehaviours:fd([Iv.config({disabled:function(){return e.disabled||t.isDisabled()},disableClass:"tox-checkbox--disabled",onDisabled:function(e){CR.getField(e).each(Iv.disable)},onEnabled:function(e){CR.getField(e).each(Iv.enable)}}),vE()])})},d$=function(e){return"presentation"===e.presets?bR.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html}}):bR.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:e.html,attributes:{role:"document"}},containerBehaviours:fd([TR.config({}),Xy.config({})])})},f$=function(e){return function(t,n,r){return Se(n,"name").fold((function(){return e(n,r)}),(function(i){return t.field(i,e(n,r))}))}},p$=function(e){return function(t,n,r){var i=wi(n,{source:"dynamic"});return f$(e)(t,i,r)}},h$={bar:f$((function(e,t){return yR(e,t.shared)})),collection:f$((function(e,t){return WR(e,t.shared.providers)})),alertbanner:f$((function(e,t){return l$(e,t.shared.providers)})),input:f$((function(e,t){return _P(e,t.shared.providers)})),textarea:f$((function(e,t){return yP(e,t.shared.providers)})),label:f$((function(e,t){return sP(e,t.shared)})),iframe:p$((function(e,t){return ON(e,t.shared.providers)})),button:f$((function(e,t){return pI(e,t.shared.providers)})),checkbox:f$((function(e,t){return u$(e,t.shared.providers)})),colorinput:f$((function(e,t){return tL(e,t.shared,t.colorinput)})),colorpicker:f$(rN),dropzone:f$((function(e,t){return bN(e,t.shared.providers)})),grid:f$((function(e,t){return _N(e,t.shared)})),listbox:f$((function(e,t){return fP(e,t)})),selectbox:f$((function(e,t){return gP(e,t.shared.providers)})),sizeinput:f$((function(e,t){return SI(e,t.shared.providers)})),urlinput:f$((function(e,t){return c$(e,t,t.urlinput)})),customeditor:f$(aN),htmlpanel:f$(d$),imagetools:f$((function(e,t){return aP(e,t.shared.providers)})),table:f$((function(e,t){return vP(e,t.shared.providers)})),panel:f$((function(e,t){return pP(e,t)}))},m$={field:function(e,t){return t}},g$=function(e,t,n){var r=wi(n,{shared:{interpreter:function(t){return v$(e,t,r)}}});return v$(e,t,r)},v$=function(e,t,n){return Se(h$,t.type).fold((function(){return t}),(function(r){return r(e,t,n)}))},b$=function(e,t){var n=m$;return v$(n,e,t)},_$={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},y$=function(e,t,n){var r=12,i={maxHeightFunction:Ef()},o=function(){return{type:"node",root:Rn(e()),node:B.from(e()),bubble:Lf(r,r,_$),layouts:{onRtl:function(){return[fx]},onLtr:function(){return[dx]}},overrides:i}},a=function(){return{type:"hotspot",hotspot:t(),bubble:Lf(-r,r,_$),layouts:{onRtl:function(){return[zu]},onLtr:function(){return[qu]}},overrides:i}};return function(){return n()?o():a()}},w$=function(e,t,n){var r=function(){return{type:"node",root:Rn(e()),node:B.from(e()),layouts:{onRtl:function(){return[px]},onLtr:function(){return[px]}}}},i=function(){return{type:"hotspot",hotspot:t(),layouts:{onRtl:function(){return[Vu]},onLtr:function(){return[Vu]}}}};return function(){return n()?r():i()}},x$=function(e,t){return function(){return{type:"selection",root:t(),getSelection:function(){var t=e.selection.getRng();return B.some(Cp.range(tt.fromDom(t.startContainer),t.startOffset,tt.fromDom(t.endContainer),t.endOffset))}}}},k$=function(e){return function(t){return{type:"node",root:e(),node:t}}},C$=function(e,t,n){var r=QS(e),i=function(){return tt.fromDom(e.getBody())},o=function(){return tt.fromDom(e.getContentAreaContainer())},a=function(){return r||!n()};return{inlineDialog:y$(o,t,a),banner:w$(o,t,a),cursor:x$(e,i),node:k$(i)}},A$=function(e){return function(t,n){var r=lO(e);r(t,n)}},S$=function(e){return function(){return UT(e)}},E$=function(e){return function(){return VT(e)}},T$=function(e){return function(){return tO(e)}},O$=function(e){return{colorPicker:A$(e),hasCustomColors:S$(e),getColors:E$(e),getColorCols:T$(e)}},R$=function(e){return function(){return nE(e)}},D$=function(e){return{isDraggableModal:R$(e)}},L$=function(e){var t=ia(VS(e)?"bottom":"top");return{isPositionedAtTop:function(){return"top"===t.get()},getDockingMode:t.get,setDockingMode:t.set}},M$=[{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"}]}],F$=function(e){return Ee(e,"items")},N$=function(e){return Ee(e,"block")},B$=function(e){return Ee(e,"inline")},I$=function(e){return Ee(e,"selector")},P$=function(e){return J(e,(function(e,t){if(F$(t)){var n=P$(t.items);return{customFormats:e.customFormats.concat(n.customFormats),formats:e.formats.concat([{title:t.title,items:n.formats}])}}if(B$(t)||N$(t)||I$(t)){var r=o(t.name)?t.name:t.title.toLowerCase(),i="custom-"+r;return{customFormats:e.customFormats.concat([{name:i,format:t}]),formats:e.formats.concat([{title:t.title,format:i,icon:t.icon}])}}return O(O({},e),{formats:e.formats.concat(t)})}),{customFormats:[],formats:[]})},$$=function(e,t){var n=P$(t),r=function(t){G(t,(function(t){e.formatter.has(t.name)||e.formatter.register(t.name,t.format)}))};return e.formatter?r(n.customFormats):e.on("init",(function(){r(n.customFormats)})),n.formats},j$=function(e){return LS(e).map((function(t){var n=$$(e,t);return MS(e)?M$.concat(n):n})).getOr(M$)},z$=function(e,t,n){var r={type:"formatter",isSelected:t(e.format),getStylePreview:n(e.format)};return wi(e,r)},q$=function(e,t,n,r){var i=function(e){return z$(e,n,r)},a=function(e){var t={type:"submenu"};return wi(e,t)},s=function(t){var i=o(t.name)?t.name:ic(t.title),a="custom-"+i,s={type:"formatter",format:a,isSelected:n(a),getStylePreview:r(a)},c=wi(t,s);return e.formatter.register(i,c),c},c=function(e){return V(e,(function(e){var t=me(e);if(Te(e,"items")){var n=c(e.items);return wi(a(e),{getStyleItems:y(n)})}return Te(e,"format")?i(e):1===t.length&&q(t,"title")?wi(e,{type:"separator"}):s(e)}))};return c(t)},H$=function(e){var t=function(t){return function(){return e.formatter.match(t)}},n=function(t){return function(){var n=e.formatter.get(t);return void 0!==n?B.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):B.none()}},r=function(e){var t=e.items;return void 0!==t&&t.length>0?re(t,r):[e.format]},i=ia([]),o=ia([]),a=ia([]),s=ia([]),c=ia(!1);e.on("PreInit",(function(a){var s=j$(e),c=q$(e,s,t,n);i.set(c),o.set(re(c,r))})),e.on("addStyleModifications",(function(i){var o=q$(e,i.items,t,n);a.set(o),c.set(i.replace),s.set(re(o,r))}));var l=function(){var e=c.get()?[]:i.get(),t=a.get();return e.concat(t)},u=function(){var e=c.get()?[]:o.get(),t=s.get();return e.concat(t)};return{getData:l,getFlattenedKeys:u}},U$=function(e){return f(e)&&1===e.nodeType},W$=sN.trim,V$=function(e){return function(t){if(U$(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},G$=V$("true"),K$=V$("false"),Y$=function(e,t,n,r,i){return{type:e,title:t,url:n,level:r,attach:i}},X$=function(e){while(e=e.parentNode){var t=e.contentEditable;if(t&&"inherit"!==t)return G$(e)}return!1},Q$=function(e,t){return V(Yp(tt.fromDom(t),e),(function(e){return e.dom}))},J$=function(e){return e.innerText||e.textContent},Z$=function(e){return e.id?e.id:ic("h")},ej=function(e){return e&&"A"===e.nodeName&&void 0!==(e.id||e.name)},tj=function(e){return ej(e)&&rj(e)},nj=function(e){return e&&/^(H[1-6])$/.test(e.nodeName)},rj=function(e){return X$(e)&&!K$(e)},ij=function(e){return nj(e)&&rj(e)},oj=function(e){return nj(e)?parseInt(e.nodeName.substr(1),10):0},aj=function(e){var t=Z$(e),n=function(){e.id=t};return Y$("header",J$(e),"#"+t,oj(e),n)},sj=function(e){var t=e.id||e.name,n=J$(e);return Y$("anchor",n||"#"+t,"#"+t,0,g)},cj=function(e){return V(X(e,ij),aj)},lj=function(e){return V(X(e,tj),sj)},uj=function(e){var t=Q$("h1,h2,h3,h4,h5,h6,a:not([href])",e);return t},dj=function(e){return W$(e.title).length>0},fj=function(e){var t=uj(e);return X(cj(t).concat(lj(t)),dj)},pj={find:fj},hj="tinymce-url-history",mj=5,gj=function(e){return o(e)&&/^https?/.test(e)},vj=function(e){return s(e)&&e.length<=mj&&ie(e,gj)},bj=function(e){return a(e)&&Ce(e,(function(e){return!vj(e)})).isNone()},_j=function(){var e,t=NT.getItem(hj);if(null===t)return{};try{e=JSON.parse(t)}catch(n){if(n instanceof SyntaxError)return{};throw n}return bj(e)?e:{}},yj=function(e){if(!bj(e))throw new Error("Bad format for history:\n"+JSON.stringify(e));NT.setItem(hj,JSON.stringify(e))},wj=function(e){var t=_j();return Se(t,e).getOr([])},xj=function(e,t){if(gj(e)){var n=_j(),r=Se(n,t).getOr([]),i=X(r,(function(t){return t!==e}));n[t]=[e].concat(i).slice(0,mj),yj(n)}},kj=function(e){return!!e},Cj=function(e){return be(sN.makeMap(e,/[, ]/),kj)},Aj=function(e){return B.from(aE(e)).filter(p)},Sj=function(e){var t=B.some(sE(e)).filter(kj),n=B.some(cE(e)).filter(kj),r=t.or(n).map(Cj);return Aj(e).fold(S,(function(e){return r.fold(E,(function(e){return me(e).length>0&&e}))}))},Ej=function(e,t){var n=Sj(e);return l(n)?n?Aj(e):B.none():n[t]?Aj(e):B.none()},Tj=function(e,t){return Ej(e,t).map((function(n){return function(r){return lD.nu((function(i){var s=function(e,t){if(!o(e))throw new Error("Expected value to be string");if(void 0!==t&&!a(t))throw new Error("Expected meta to be a object");var n={value:e,meta:t};i(n)},c=O({filetype:t,fieldname:r.fieldname},B.from(r.meta).getOr({}));n.call(e,s,r.value,c)}))}}))},Oj=function(e){return B.from(e).filter(o).getOrUndefined()},Rj=function(e){return lE(e)?B.none():B.some({targets:pj.find(e.getBody()),anchorTop:Oj(uE(e)),anchorBottom:Oj(dE(e))})},Dj=function(e){return B.from(fE(e))},Lj=function(e){return{getHistory:wj,addToHistory:xj,getLinkInformation:function(){return Rj(e)},getValidationHandler:function(){return Dj(e)},getUrlPicker:function(t){return Tj(e,t)}}},Mj=function(e,t,n){var r=ia(!1),i=L$(t),o={shared:{providers:{icons:function(){return t.ui.registry.getAll().icons},menuItems:function(){return t.ui.registry.getAll().menuItems},translate:Fk.translate,isDisabled:function(){return t.mode.isReadOnly()||t.ui.isDisabled()},getSetting:t.getParam.bind(t)},interpreter:function(e){return b$(e,o)},anchors:C$(t,n,i.isPositionedAtTop),header:i,getSink:function(){return ri.value(e)}},urlinput:Lj(t),styleselect:H$(t),colorinput:O$(t),dialog:D$(t),isContextMenuOpen:function(){return r.get()},setContextMenuState:function(e){return r.set(e)}};return o},Fj=function(e,t,n){var r=function(e,r){G([t,n],(function(t){t.broadcastEvent(e,r)}))},i=function(e,r){G([t,n],(function(t){t.broadcastOn([e],r)}))},o=function(e){return i(_m(),{target:e.target})},a=wd(),s=af(a,"touchstart",o),c=af(a,"touchmove",(function(e){return r(cs(),e)})),l=af(a,"touchend",(function(e){return r(ls(),e)})),u=af(a,"mousedown",o),d=af(a,"mouseup",(function(e){0===e.raw.button&&i(wm(),{target:e.target})})),f=function(e){return i(_m(),{target:tt.fromDom(e.target)})},p=function(e){0===e.button&&i(wm(),{target:tt.fromDom(e.target)})},h=function(){G(e.editorManager.get(),(function(t){e!==t&&t.fire("DismissPopups",{relatedTarget:e})}))},m=function(e){return r(us(),cf(e))},g=function(e){i(ym(),{}),r(ds(),cf(e))},v=function(){return i(ym(),{})},b=function(t){t.state&&i(_m(),{target:tt.fromDom(e.getContainer())})},_=function(e){i(_m(),{target:tt.fromDom(e.relatedTarget.getContainer())})};e.on("PostRender",(function(){e.on("click",f),e.on("tap",f),e.on("mouseup",p),e.on("mousedown",h),e.on("ScrollWindow",m),e.on("ResizeWindow",g),e.on("ResizeEditor",v),e.on("AfterProgressState",b),e.on("DismissPopups",_)})),e.on("remove",(function(){e.off("click",f),e.off("tap",f),e.off("mouseup",p),e.off("mousedown",h),e.off("ScrollWindow",m),e.off("ResizeWindow",g),e.off("ResizeEditor",v),e.off("AfterProgressState",b),e.off("DismissPopups",_),u.unbind(),s.unbind(),c.unbind(),l.unbind(),d.unbind()})),e.on("detach",(function(){Jh(t),Jh(n),t.destroy(),n.destroy()}))},Nj=nv,Bj=Pg,Ij=y([Ko("shell",!1),Oo("makeItem"),Ko("setupItem",g),ig.field("listBehaviours",[$y])]),Pj=function(){return{behaviours:fd([$y.config({})])}},$j=Ng({name:"items",overrides:Pj}),jj=y([$j]),zj=y("CustomList"),qj=function(e,t,n,r){var i=function(t,n){a(t).fold((function(){throw new Error("Custom List was defined to not be a shell, but no item container was specified in components")}),(function(r){var i=$y.contents(r),o=n.length,a=o-i.length,s=a>0?U(a,(function(){return e.makeItem()})):[],c=i.slice(o);G(c,(function(e){return $y.remove(r,e)})),G(s,(function(e){return $y.append(r,e)}));var l=$y.contents(r);G(l,(function(r,i){e.setupItem(t,r,n[i],i)}))}))},o=e.shell?{behaviours:[$y.config({})],components:[]}:{behaviours:[],components:t},a=function(t){return e.shell?B.some(t):Kg(t,e,"items")};return{uid:e.uid,dom:e.dom,components:o.components,behaviours:rg(e.listBehaviours,o.behaviours),apis:{setItems:i}}},Hj=pv({name:zj(),configFields:Ij(),partFields:jj(),factory:qj,apis:{setItems:function(e,t,n){e.setItems(t,n)}}}),Uj=y([Oo("dom"),Ko("shell",!0),tg("toolbarBehaviours",[$y])]),Wj=function(){return{behaviours:fd([$y.config({})])}},Vj=y([Ng({name:"groups",overrides:Wj})]),Gj=function(e,t,n,r){var i=function(e,t){o(e).fold((function(){throw new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")}),(function(e){$y.set(e,t)}))},o=function(t){return e.shell?B.some(t):Kg(t,e,"groups")},a=e.shell?{behaviours:[$y.config({})],components:[]}:{behaviours:[],components:t};return{uid:e.uid,dom:e.dom,components:a.components,behaviours:rg(e.toolbarBehaviours,a.behaviours),apis:{setGroups:i},domModification:{attributes:{role:"group"}}}},Kj=pv({name:"Toolbar",configFields:Uj(),partFields:Vj(),factory:Gj,apis:{setGroups:function(e,t,n){e.setGroups(t,n)}}}),Yj=g,Xj=S,Qj=y([]),Jj=Object.freeze({__proto__:null,setup:Yj,isDocked:Xj,getBehaviours:Qj}),Zj=function(e){var t=Oe(Zn(e,"position"),"fixed"),n=t?B.none():_n(e);return n.orThunk((function(){var t=tt.fromTag("span");return vn(e).bind((function(e){Rr(e,t);var n=_n(t);return Nr(t),n}))}))},ez=function(e){return Zj(e).map(pr).getOrThunk((function(){return ur(0,0)}))},tz=aa.generate([{static:[]},{absolute:["positionCss"]},{fixed:["positionCss"]}]),nz=function(e,t){var n=e.element;ol(n,t.transitionClass),sl(n,t.fadeOutClass),ol(n,t.fadeInClass),t.onShow(e)},rz=function(e,t){var n=e.element;ol(n,t.transitionClass),sl(n,t.fadeInClass),ol(n,t.fadeOutClass),t.onHide(e)},iz=function(e,t){return e.y<t.bottom&&e.bottom>t.y},oz=function(e,t){return e.y>=t.y},az=function(e,t){return e.bottom<=t.bottom},sz=function(e,t,n){return ie(e,(function(e){switch(e){case"bottom":return az(t,n);case"top":return oz(t,n)}}))},cz=function(e,t){return t.getInitialPos().map((function(t){return Xr(t.bounds.x,t.bounds.y,vr(e),ar(e))}))},lz=function(e,t,n){n.setInitialPos({style:er(e),position:Qn(e,"position")||"static",bounds:t})},uz=function(e,t,n){return n.getInitialPos().bind((function(r){switch(n.clearInitialPos(),r.position){case"static":return B.some(tz.static());case"absolute":var i=Zj(e).map(Qr).getOrThunk((function(){return Qr(In())}));return B.some(tz.absolute(Td("absolute",Se(r.style,"left").map((function(e){return t.x-i.x})),Se(r.style,"top").map((function(e){return t.y-i.y})),Se(r.style,"right").map((function(e){return i.right-t.right})),Se(r.style,"bottom").map((function(e){return i.bottom-t.bottom})))));default:return B.none()}}))},dz=function(e,t,n){return cz(e,n).filter((function(e){return sz(n.getModes(),e,t)})).bind((function(t){return uz(e,t,n)}))},fz=function(e,t,n){var r=Qr(e);if(sz(n.getModes(),r,t))return B.none();lz(e,r,n);var i=Zr(),o=r.x-i.x,a=t.y-i.y,s=i.bottom-t.bottom,c=r.y<=t.y;return B.some(tz.fixed(Td("fixed",B.some(o),c?B.some(a):B.none(),B.none(),c?B.none():B.some(s))))},pz=function(e,t,n){var r=e.element,i=Oe(Zn(r,"position"),"fixed");return i?dz(r,t,n):fz(r,t,n)},hz=function(e,t){var n=e.element;return cz(n,t).bind((function(e){return uz(n,e,t)}))},mz=function(e,t,n){n.setDocked(!1),G(["left","right","top","bottom","position"],(function(t){return nr(e.element,t)})),t.onUndocked(e)},gz=function(e,t,n,r){var i="fixed"===r.position;n.setDocked(i),Rd(e.element,r);var o=i?t.onDocked:t.onUndocked;o(e)},vz=function(e,t,n,r,i){void 0===i&&(i=!1),t.contextual.each((function(t){t.lazyContext(e).each((function(o){var a=iz(o,r);if(a!==n.isVisible())if(n.setVisible(a),i&&!a)ll(e.element,[t.fadeOutClass]),t.onHide(e);else{var s=a?nz:rz;s(e,t)}}))}))},bz=function(e,t,n){var r=t.lazyViewport(e),i=n.isDocked();i&&vz(e,t,n,r),pz(e,r,n).each((function(i){i.fold((function(){return mz(e,t,n)}),(function(r){return gz(e,t,n,r)}),(function(i){vz(e,t,n,r,!0),gz(e,t,n,i)}))}))},_z=function(e,t,n){var r=e.element;n.setDocked(!1),hz(e,n).each((function(r){r.fold((function(){return mz(e,t,n)}),(function(r){return gz(e,t,n,r)}),g)})),n.setVisible(!0),t.contextual.each((function(t){ul(r,[t.fadeInClass,t.fadeOutClass,t.transitionClass]),t.onShow(e)})),yz(e,t,n)},yz=function(e,t,n){e.getSystem().isConnected()&&bz(e,t,n)},wz=function(e,t,n){n.isDocked()&&_z(e,t,n)},xz=function(e,t,n){return n.isDocked()},kz=function(e,t,n,r){return n.setModes(r)},Cz=function(e,t,n){return n.getModes()},Az=Object.freeze({__proto__:null,refresh:yz,reset:wz,isDocked:xz,getModes:Cz,setModes:kz}),Sz=function(e,t){return Ts([zs(Va(),(function(n,r){e.contextual.each((function(e){if(cl(n.element,e.transitionClass)){ul(n.element,[e.transitionClass,e.fadeInClass]);var i=t.isVisible()?e.onShown:e.onHidden;i(n)}r.stop()}))})),Ls(us(),(function(n,r){yz(n,e,t)})),Ls(ds(),(function(n,r){wz(n,e,t)}))])},Ez=Object.freeze({__proto__:null,events:Sz}),Tz=[Vo("contextual",[Lo("fadeInClass"),Lo("fadeOutClass"),Lo("transitionClass"),No("lazyContext"),su("onShow"),su("onShown"),su("onHide"),su("onHidden")]),ea("lazyViewport",Zr),na("modes",["top","bottom"],co),su("onDocked"),su("onUndocked")],Oz=function(e){var t=ia(!1),n=ia(!0),r=rf(),i=ia(e.modes),o=function(){return"docked: "+t.get()+", visible: "+n.get()+", modes: "+i.get().join(",")};return Ac({isDocked:t.get,setDocked:t.set,getInitialPos:r.get,setInitialPos:r.set,clearInitialPos:r.clear,isVisible:n.get,setVisible:n.set,getModes:i.get,setModes:i.set,readState:o})},Rz=Object.freeze({__proto__:null,init:Oz}),Dz=hd({fields:Tz,name:"docking",active:Ez,apis:Az,state:Rz}),Lz=y(ic("toolbar-height-change")),Mz={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},Fz="tox-tinymce--toolbar-sticky-on",Nz="tox-tinymce--toolbar-sticky-off",Bz=function(e,t){var n=pn(t),r=n.dom.defaultView.innerHeight,i=Ir(n),o=tt.fromDom(e.elm),a=Jr(o),s=ar(o),c=a.y,l=c+s,u=pr(t),d=ar(t),f=u.top,p=f+d,h=Math.abs(f-i.top)<2,m=Math.abs(p-(i.top+r))<2;if(h&&c<p)Pr(i.left,c-d,n);else if(m&&l>f){var g=c-r+s+d;Pr(i.left,g,n)}},Iz=function(e,t){return q(Dz.getModes(e),t)},Pz=function(e){var t=function(e){return sr(e)+(parseInt(Qn(e,"margin-top"),10)||0)+(parseInt(Qn(e,"margin-bottom"),10)||0)},n=e.element;vn(n).each((function(r){var i="padding-"+Dz.getModes(e)[0];if(Dz.isDocked(e)){var o=vr(r);Kn(n,"width",o+"px"),Kn(r,i,t(n)+"px")}else nr(n,"width"),nr(r,i)}))},$z=function(e,t){t?(sl(e,Mz.fadeOutClass),ll(e,[Mz.transitionClass,Mz.fadeInClass])):(sl(e,Mz.fadeInClass),ll(e,[Mz.fadeOutClass,Mz.transitionClass]))},jz=function(e,t){var n=tt.fromDom(e.getContainer());t?(ol(n,Fz),sl(n,Nz)):(ol(n,Nz),sl(n,Fz))},zz=function(e,t){var n=pn(t);Ad(n).filter((function(e){return!ln(t,e)})).filter((function(t){return ln(t,tt.fromDom(n.dom.body))||fn(e,t)})).each((function(){return xd(t)}))},qz=function(e,t){return Sd(e).orThunk((function(){return t().toOptional().bind((function(e){return Sd(e.element)}))}))},Hz=function(e,t,n){e.inline||(t.header.isPositionedAtTop()||e.on("ResizeEditor",(function(){n().each(Dz.reset)})),e.on("ResizeWindow ResizeEditor",(function(){n().each(Pz)})),e.on("SkinLoaded",(function(){n().each((function(e){Dz.isDocked(e)?Dz.reset(e):Dz.refresh(e)}))})),e.on("FullscreenStateChanged",(function(){n().each(Dz.reset)}))),e.on("AfterScrollIntoView",(function(e){n().each((function(t){Dz.refresh(t);var n=t.element;Qb(n)&&Bz(e,n)}))})),e.on("PostRender",(function(){jz(e,!1)}))},Uz=function(e){return e().map(Dz.isDocked).getOr(!1)},Wz=function(){var e;return[bd.config({channels:(e={},e[Lz()]={onReceive:Pz},e)})]},Vz=function(e,t){var n=rf(),r=t.getSink,i=function(e){r().each((function(t){return e(t.element)}))},o=function(t){e.inline||Pz(t),jz(e,Dz.isDocked(t)),t.getSystem().broadcastOn([ym()],{}),r().each((function(e){return e.getSystem().broadcastOn([ym()],{})}))},a=e.inline?[]:Wz();return D([Xy.config({}),Dz.config({contextual:O({lazyContext:function(t){var n=sr(t.element),r=e.inline?e.getContentAreaContainer():e.getContainer(),i=Qr(tt.fromDom(r)),o=i.height-n,a=i.y+(Iz(t,"top")?0:n);return B.some(Xr(i.x,a,i.width,o))},onShow:function(){i((function(e){return $z(e,!0)}))},onShown:function(e){i((function(e){return ul(e,[Mz.transitionClass,Mz.fadeInClass])})),n.get().each((function(t){zz(e.element,t),n.clear()}))},onHide:function(e){qz(e.element,r).fold(n.clear,n.set),i((function(e){return $z(e,!1)}))},onHidden:function(){i((function(e){return ul(e,[Mz.transitionClass])}))}},Mz),lazyViewport:function(t){var n=Zr(),r=tE(e),i=n.y+(Iz(t,"top")?r:0),o=n.height-(Iz(t,"bottom")?r:0);return Xr(n.x,i,n.width,o)},modes:[t.header.getDockingMode()],onDocked:o,onUndocked:o})],a,!0)},Gz=Object.freeze({__proto__:null,setup:Hz,isDocked:Uz,getBehaviours:Vz}),Kz=function(e){var t=e.editor,n=e.sticky?Vz:Qj;return{uid:e.uid,dom:e.dom,components:e.components,behaviours:fd(n(t,e.sharedBackstage))}},Yz=Zi([Lo("type"),Ro("items",to([io([Lo("name"),$o("items",co)]),co]))].concat(MC)),Xz=function(e){return yo("GroupToolbarButton",Yz,e)},Qz=[Ho("text"),Ho("tooltip"),Ho("icon"),No("fetch"),ea("onSetup",(function(){return g}))],Jz=Zi(D([Lo("type")],Qz,!0)),Zz=function(e){return yo("menubutton",Jz,e)},eq=Zi([Lo("type"),Ho("tooltip"),Ho("icon"),Ho("text"),Uo("select"),No("fetch"),ea("onSetup",(function(){return g})),Jo("presets","normal",["normal","color","listpreview"]),Ko("columns",1),No("onAction"),No("onItemAction")]),tq=function(e){return yo("SplitButton",eq,e)},nq=function(e,t){var n=function(e,n){var r=V(n,(function(e){var n={type:"menubutton",text:e.text,fetch:function(t){t(e.getItems())}},r=Zz(n).mapError((function(e){return ko(e)})).getOrDie();return nI(r,"tox-mbtn",t.backstage,B.some("menuitem"))}));$y.set(e,r)},r={focus:Oy.focusIn,setMenus:n};return{uid:e.uid,dom:e.dom,components:[],behaviours:fd([$y.config({}),zy("menubar-events",[qs((function(t){e.onSetup(t)})),Ls(Ia(),(function(e,t){Pl(e.element,".tox-mbtn--active").each((function(n){$l(t.event.target,".tox-mbtn").each((function(t){ln(n,t)||e.getSystem().getByDom(n).each((function(n){e.getSystem().getByDom(t).each((function(e){VD.expand(e),VD.close(n),Xy.focus(e)}))}))}))}))})),Ls(gs(),(function(e,t){t.event.prevFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(n){t.event.newFocus.bind((function(t){return e.getSystem().getByDom(t).toOptional()})).each((function(e){VD.isOpen(n)&&(VD.expand(e),VD.close(n))}))}))}))]),Oy.config({mode:"flow",selector:".tox-mbtn",onEscape:function(t){return e.onEscape(t),B.some(!0)}}),TR.config({})]),apis:r,domModification:{attributes:{role:"menubar"}}}},rq=fv({factory:nq,name:"silver.Menubar",configFields:[Oo("dom"),Oo("uid"),Oo("onEscape"),Oo("backstage"),Ko("onSetup",g)],apis:{focus:function(e,t){e.focus(t)},setMenus:function(e,t,n){e.setMenus(t,n)}}}),iq=function(e,t){return t.getAnimationRoot.fold((function(){return e.element}),(function(t){return t(e)}))},oq=function(e){return e.dimension.property},aq=function(e,t){return e.dimension.getDimension(t)},sq=function(e,t){var n=iq(e,t);ul(n,[t.shrinkingClass,t.growingClass])},cq=function(e,t){sl(e.element,t.openClass),ol(e.element,t.closedClass),Kn(e.element,oq(t),"0px"),rr(e.element)},lq=function(e,t){sl(e.element,t.closedClass),ol(e.element,t.openClass),nr(e.element,oq(t))},uq=function(e,t,n,r){n.setCollapsed(),Kn(e.element,oq(t),aq(t,e.element)),rr(e.element),sq(e,t),cq(e,t),t.onStartShrink(e),t.onShrunk(e)},dq=function(e,t,n,r){var i=r.getOrThunk((function(){return aq(t,e.element)}));n.setCollapsed(),Kn(e.element,oq(t),i),rr(e.element);var o=iq(e,t);sl(o,t.growingClass),ol(o,t.shrinkingClass),cq(e,t),t.onStartShrink(e)},fq=function(e,t,n){var r=aq(t,e.element),i="0px"===r?uq:dq;i(e,t,n,B.some(r))},pq=function(e,t,n){var r=iq(e,t),i=cl(r,t.shrinkingClass),o=aq(t,e.element);lq(e,t);var a=aq(t,e.element),s=function(){Kn(e.element,oq(t),o),rr(e.element)},c=function(){cq(e,t)},l=i?s:c;l(),sl(r,t.shrinkingClass),ol(r,t.growingClass),lq(e,t),Kn(e.element,oq(t),a),n.setExpanded(),t.onStartGrow(e)},hq=function(e,t,n){if(n.isExpanded()){nr(e.element,oq(t));var r=aq(t,e.element);Kn(e.element,oq(t),r)}},mq=function(e,t,n){n.isExpanded()||pq(e,t,n)},gq=function(e,t,n){n.isExpanded()&&fq(e,t,n)},vq=function(e,t,n){n.isExpanded()&&uq(e,t,n)},bq=function(e,t,n){return n.isExpanded()},_q=function(e,t,n){return n.isCollapsed()},yq=function(e,t,n){var r=iq(e,t);return!0===cl(r,t.growingClass)},wq=function(e,t,n){var r=iq(e,t);return!0===cl(r,t.shrinkingClass)},xq=function(e,t,n){return yq(e,t)||wq(e,t)},kq=function(e,t,n){var r=n.isExpanded()?fq:pq;r(e,t,n)},Cq=Object.freeze({__proto__:null,refresh:hq,grow:mq,shrink:gq,immediateShrink:vq,hasGrown:bq,hasShrunk:_q,isGrowing:yq,isShrinking:wq,isTransitioning:xq,toggleGrow:kq,disableTransitions:sq}),Aq=function(e,t,n){var r=t.expanded;return Rc(r?{classes:[t.openClass],styles:{}}:{classes:[t.closedClass],styles:pa(t.dimension.property,"0px")})},Sq=function(e,t){return Ts([zs(Va(),(function(n,r){var i=r.event.raw;if(i.propertyName===e.dimension.property){sq(n,e),t.isExpanded()&&nr(n.element,e.dimension.property);var o=t.isExpanded()?e.onGrown:e.onShrunk;o(n)}}))])},Eq=Object.freeze({__proto__:null,exhibit:Aq,events:Sq}),Tq=[Oo("closedClass"),Oo("openClass"),Oo("shrinkingClass"),Oo("growingClass"),jo("getAnimationRoot"),su("onShrunk"),su("onStartShrink"),su("onGrown"),su("onStartGrow"),Ko("expanded",!1),Ro("dimension",Co("property",{width:[du("property","width"),du("getDimension",(function(e){return vr(e)+"px"}))],height:[du("property","height"),du("getDimension",(function(e){return ar(e)+"px"}))]}))],Oq=function(e){var t=ia(e.expanded),n=function(){return"expanded: "+t.get()};return Ac({isExpanded:function(){return!0===t.get()},isCollapsed:function(){return!1===t.get()},setCollapsed:k(t.set,!1),setExpanded:k(t.set,!0),readState:n})},Rq=Object.freeze({__proto__:null,init:Oq}),Dq=hd({fields:Tq,name:"sliding",active:Eq,apis:Cq,state:Rq}),Lq="container",Mq=[tg("slotBehaviours",[])],Fq=function(e){return"<alloy.field."+e+">"},Nq=function(e){var t=function(){var e=[],t=function(t,n){return e.push(t),Hg(Lq,Fq(t),n)};return{slot:t,record:y(e)}}(),n=e(t),r=t.record(),i=V(r,(function(e){return Mg({name:e,pname:Fq(e)})}));return av(Lq,Mq,i,Bq,n)},Bq=function(e,t){var n=function(t){return Jg(e)},r=function(t,n){return Kg(t,e,n)},i=function(t,n){return function(r,i){return Kg(r,e,i).map((function(e){return t(e,i)})).getOr(n)}},o=function(e){return function(t,n){G(n,(function(n){return e(t,n)}))}},a=function(e,t){return"true"!==qn(e.element,"aria-hidden")},s=function(e,t){if(!a(e)){var n=e.element;nr(n,"display"),Wn(n,"aria-hidden"),ks(e,vs(),{name:t,visible:!0})}},c=function(e,t){if(a(e)){var n=e.element;Kn(n,"display","none"),jn(n,"aria-hidden","true"),ks(e,vs(),{name:t,visible:!1})}},l=i(a,!1),u=i(c),d=o(u),f=function(e){return d(e,n())},p=i(s),h={getSlotNames:n,getSlot:r,isShowing:l,hideSlot:u,hideAllSlots:f,showSlot:p};return{uid:e.uid,dom:e.dom,components:t,behaviours:ng(e.slotBehaviours),apis:h}},Iq=be({getSlotNames:function(e,t){return e.getSlotNames(t)},getSlot:function(e,t,n){return e.getSlot(t,n)},isShowing:function(e,t,n){return e.isShowing(t,n)},hideSlot:function(e,t,n){return e.hideSlot(t,n)},hideAllSlots:function(e,t){return e.hideAllSlots(t)},showSlot:function(e,t,n){return e.showSlot(t,n)}},(function(e){return kc(e)})),Pq=O(O({},Iq),{sketch:Nq}),$q=Zi([Ho("icon"),Ho("tooltip"),ea("onShow",g),ea("onHide",g),ea("onSetup",(function(){return g}))]),jq=function(e){return yo("sidebar",$q,e)},zq=function(e){var t=e.ui.registry.getAll().sidebars;G(me(t),(function(n){var r=t[n],i=function(){return Oe(B.from(e.queryCommandValue("ToggleSidebar")),n)};e.ui.registry.addToggleButton(n,{icon:r.icon,tooltip:r.tooltip,onAction:function(t){e.execCommand("ToggleSidebar",!1,n),t.setActive(i())},onSetup:function(t){var n=function(){return t.setActive(i())};return e.on("ToggleSidebar",n),function(){e.off("ToggleSidebar",n)}}})}))},qq=function(e){return{element:function(){return e.element.dom}}},Hq=function(e,t){var n=V(me(t),(function(e){var n=t[e],r=wo(jq(n));return{name:e,getApi:qq,onSetup:r.onSetup,onShow:r.onShow,onHide:r.onHide}}));return V(n,(function(t){var r=ia(g);return e.slot(t.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:sS.unnamedEvents([CE(t,r),AE(t,r),Ls(vs(),(function(e,t){var r=t.event,i=ee(n,(function(e){return e.name===r.name}));i.each((function(t){var n=r.visible?t.onShow:t.onHide;n(t.getApi(e))}))}))])})}))},Uq=function(e){return Pq.sketch((function(t){return{dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:Hq(t,e),slotBehaviours:sS.unnamedEvents([qs((function(e){return Pq.hideAllSlots(e)}))])}}))},Wq=function(e,t){var n=bv.getCurrent(e);n.each((function(e){return $y.set(e,[Uq(t)])}))},Vq=function(e,t){var n=bv.getCurrent(e);n.each((function(e){var n=bv.getCurrent(e);n.each((function(n){Dq.hasGrown(e)?Pq.isShowing(n,t)?Dq.shrink(e):(Pq.hideAllSlots(n),Pq.showSlot(n,t)):(Pq.hideAllSlots(n),Pq.showSlot(n,t),Dq.grow(e))}))}))},Gq=function(e){var t=bv.getCurrent(e);return t.bind((function(e){var t=Dq.isGrowing(e)||Dq.hasGrown(e);if(t){var n=bv.getCurrent(e);return n.bind((function(e){return ee(Pq.getSlotNames(e),(function(t){return Pq.isShowing(e,t)}))}))}return B.none()}))},Kq=ic("FixSizeEvent"),Yq=ic("AutoSizeEvent"),Xq=function(e){return{uid:e.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"complementary"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:fd([TR.config({}),Xy.config({}),Dq.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(e){var t=bv.getCurrent(e);t.each(Pq.hideAllSlots),xs(e,Yq)},onGrown:function(e){xs(e,Yq)},onStartGrow:function(e){ks(e,Kq,{width:Zn(e.element,"width").getOr("")})},onStartShrink:function(e){ks(e,Kq,{width:vr(e.element)+"px"})}}),$y.config({}),bv.config({find:function(e){var t=$y.contents(e);return de(t)}})])}],behaviours:fd([ZF.childAt(0),zy("sidebar-sliding-events",[Ls(Kq,(function(e,t){Kn(e.element,"width",t.event.width)})),Ls(Yq,(function(e,t){nr(e.element,"width")}))])])}},Qq=function(e,t,n,r){jn(e.element,"aria-busy",!0);var i=t.getRoot(e).getOr(e),o=fd([Oy.config({mode:"special",onTab:function(){return B.some(!0)},onShiftTab:function(){return B.some(!0)}}),Xy.config({})]),a=r(i,o),s=i.getSystem().build(a);$y.append(i,Tl(s)),s.hasConfigured(Oy)&&t.focus&&Oy.focusIn(s),n.isBlocked()||t.onBlock(e),n.blockWith((function(){return $y.remove(i,s)}))},Jq=function(e,t,n){Wn(e.element,"aria-busy"),n.isBlocked()&&t.onUnblock(e),n.clear()},Zq=Object.freeze({__proto__:null,block:Qq,unblock:Jq}),eH=[ea("getRoot",B.none),Zo("focus",!0),su("onBlock"),su("onUnblock")],tH=function(){var e=ef(),t=function(t){e.set({destroy:t})};return Ac({readState:e.isSet,blockWith:t,clear:e.clear,isBlocked:e.isSet})},nH=Object.freeze({__proto__:null,init:tH}),rH=hd({fields:eH,name:"blocking",apis:Zq,state:nH}),iH=function(e){return function(t,n){return{dom:{tag:"div",attributes:{"aria-label":e.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:Sx('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}}},oH=function(e){return bv.getCurrent(e).each((function(e){return xd(e.element)}))},aH=function(e,t){var n="tabindex",r="data-mce-"+n;B.from(e.iframeElement).map(tt.fromDom).each((function(e){t?(Hn(e,n).each((function(t){return jn(e,r,t)})),jn(e,n,-1)):(Wn(e,n),Hn(e,r).each((function(t){jn(e,n,t),Wn(e,r)})))}))},sH=function(e,t,n,r){var i=t.element;if(aH(e,n),n)rH.block(t,iH(r)),nr(i,"display"),Wn(i,"aria-hidden"),e.hasFocus()&&oH(t);else{var o=bv.getCurrent(t).exists((function(e){return Cd(e.element)}));rH.unblock(t),Kn(i,"display","none"),jn(i,"aria-hidden","true"),o&&e.focus()}},cH=function(e){return{uid:e.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:fd([$y.config({}),rH.config({focus:!1}),bv.config({find:function(e){return de(e.components())}})]),components:[]}},lH=function(e){return"focusin"===e.type},uH=function(e){if(lH(e)){var t=e.composed?de(e.composedPath()):B.from(e.target);return t.map(tt.fromDom).filter(ut).exists((function(e){return cl(e,"mce-pastebin")}))}return!1},dH=function(e,t,n){var r=ia(!1),i=rf(),o=function(n){r.get()&&!uH(n)&&(n.preventDefault(),oH(t()),e.editorManager.setActive(e))};e.inline||e.on("PreInit",(function(){e.dom.bind(e.getWin(),"focusin",o),e.on("BeforeExecCommand",(function(e){"mcefocus"===e.command.toLowerCase()&&!0!==e.value&&o(e)}))}));var a=function(i){i!==r.get()&&(r.set(i),sH(e,t(),i,n.providers),e.fire("AfterProgressState",{state:i}))};e.on("ProgressState",(function(t){if(i.on(wx.clearTimeout),h(t.time)){var n=wx.setEditorTimeout(e,(function(){return a(t.state)}),t.time);i.set(n)}else a(t.state),i.clear()}))},fH=function(e,t){var n={len:0,list:[]},r=J(e,(function(e,n){var r=t(n,e.len);return r.fold(y(e),(function(t){return{len:t.finish,list:e.list.concat([t])}}))}),n);return r.list},pH=function(e,t,n){return{within:e,extra:t,withinWidth:n}},hH=function(e,t,n){var r=fH(e,(function(e,t){var r=n(e);return B.some({element:e,start:t,finish:t+r,width:r})})),i=X(r,(function(e){return e.finish<=t})),o=Q(i,(function(e,t){return e+t.width}),0),a=r.slice(i.length);return{within:i,extra:a,withinWidth:o}},mH=function(e){return V(e,(function(e){return e.element}))},gH=function(e,t,n){var r=mH(e.concat(t));return pH(r,[],n)},vH=function(e,t,n,r){var i=mH(e).concat([n]);return pH(i,mH(t),r)},bH=function(e,t,n){return pH(mH(e),[],n)},_H=function(e,t,n){var r=hH(t,e,n);return 0===r.extra.length?B.some(r):B.none()},yH=function(e,t,n,r){var i=_H(e,t,n).getOrThunk((function(){return hH(t,e-n(r),n)})),o=i.within,a=i.extra,s=i.withinWidth;return 1===a.length&&a[0].width<=n(r)?gH(o,a,s):a.length>=1?vH(o,a,r,s):bH(o,a,s)},wH=function(e,t){var n=V(t,(function(e){return Tl(e)}));Kj.setGroups(e,n)},xH=function(e){return he(e,(function(e){return Sd(e.element).bind((function(t){return e.getSystem().getByDom(t).toOptional()}))}))},kH=function(e,t,n){var r=t.builtGroups.get();if(0!==r.length){var i=Yg(e,t,"primary"),o=ED.getCoupled(e,"overflowGroup");Kn(i.element,"visibility","hidden");var a=r.concat([o]),s=xH(a);n([]),wH(i,a);var c=vr(i.element),l=yH(c,t.builtGroups.get(),(function(e){return vr(e.element)}),o);0===l.extra.length?($y.remove(i,o),n([])):(wH(i,l.within),n(l.extra)),nr(i.element,"visibility"),rr(i.element),s.each(Xy.focus)}},CH=y([tg("splitToolbarBehaviours",[ED]),Eo("builtGroups",(function(){return ia([])}))]),AH=y([ou(["overflowToggledClass"]),Uo("getOverflowBounds"),Oo("lazySink"),Eo("overflowGroups",(function(){return ia([])}))].concat(CH())),SH=y([Mg({factory:Kj,schema:Uj(),name:"primary"}),Fg({schema:Uj(),name:"overflow"}),Fg({name:"overflow-button"}),Fg({name:"overflow-group"})]),EH=y((function(e,t){_r(e,Math.floor(t))})),TH=y([ou(["toggledClass"]),Oo("lazySink"),No("fetch"),Uo("getBounds"),Vo("fireDismissalEventInstead",[Ko("event",hs())]),$f()]),OH=y([Fg({name:"button",overrides:function(e){return{dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:fd([mw.config({toggleClass:e.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1})])}}}),Fg({factory:Kj,schema:Uj(),name:"toolbar",overrides:function(e){return{toolbarBehaviours:fd([Oy.config({mode:"cyclic",onEscape:function(t){return Kg(t,e,"button").each(Xy.focus),B.none()}})])}}})]),RH=function(e,t){var n=ED.getCoupled(e,"toolbarSandbox");bm.isOpen(n)?bm.close(n):bm.open(n,t.toolbar())},DH=function(e,t,n,r){var i=n.getBounds.map((function(e){return e()})),o=n.lazySink(e).getOrDie();Ph.positionWithinBounds(o,t,{anchor:{type:"hotspot",hotspot:e,layouts:r,overrides:{maxWidthFunction:EH()}}},i)},LH=function(e,t,n,r,i){Kj.setGroups(t,i),DH(e,t,n,r),mw.on(e)},MH=function(e,t,n){var r=zl(),i=function(i,o){n.fetch().get((function(i){LH(e,o,n,t.layouts,i),r.link(e.element),Oy.focusIn(o)}))},o=function(){mw.off(e),Xy.focus(e),r.unlink(e.element)};return{dom:{tag:"div",attributes:{id:r.id}},behaviours:fd([Oy.config({mode:"special",onEscape:function(e){return bm.close(e),B.some(!0)}}),bm.config({onOpen:i,onClose:o,isPartOf:function(t,n,r){return Hl(n,r)||Hl(e,r)},getAttachPoint:function(){return n.lazySink(e).getOrDie()}}),bd.config({channels:O(O({},km(O({isExtraPart:S},n.fireDismissalEventInstead.map((function(e){return{fireEventInstead:{event:e.event}}})).getOr({})))),Am({doReposition:function(){bm.getState(ED.getCoupled(e,"toolbarSandbox")).each((function(r){DH(e,r,n,t.layouts)}))}}))})])}},FH=function(e,t,n,r){return O(O({},kx.sketch(O(O({},r.button()),{action:function(e){RH(e,r)},buttonBehaviours:ig.augment({dump:r.button().buttonBehaviours},[ED.config({others:{toolbarSandbox:function(t){return MH(t,n,e)}}})])}))),{apis:{setGroups:function(t,r){bm.getState(ED.getCoupled(t,"toolbarSandbox")).each((function(i){LH(t,i,e,n.layouts,r)}))},reposition:function(t){bm.getState(ED.getCoupled(t,"toolbarSandbox")).each((function(r){DH(t,r,e,n.layouts)}))},toggle:function(e){RH(e,r)},getToolbar:function(e){return bm.getState(ED.getCoupled(e,"toolbarSandbox"))},isOpen:function(e){return bm.isOpen(ED.getCoupled(e,"toolbarSandbox"))}}})},NH=pv({name:"FloatingToolbarButton",factory:FH,configFields:TH(),partFields:OH(),apis:{setGroups:function(e,t,n){e.setGroups(t,n)},reposition:function(e,t){e.reposition(t)},toggle:function(e,t){e.toggle(t)},getToolbar:function(e,t){return e.getToolbar(t)},isOpen:function(e,t){return e.isOpen(t)}}}),BH=y([Oo("items"),ou(["itemSelector"]),tg("tgroupBehaviours",[Oy])]),IH=y([Bg({name:"items",unit:"item"})]),PH=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,behaviours:rg(e.tgroupBehaviours,[Oy.config({mode:"flow",selector:e.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}},$H=pv({name:"ToolbarGroup",configFields:BH(),partFields:IH(),factory:PH}),jH=function(e){return V(e,(function(e){return Tl(e)}))},zH=function(e,t,n){kH(e,n,(function(r){n.overflowGroups.set(r),t.getOpt(e).each((function(e){NH.setGroups(e,jH(r))}))}))},qH=function(e,t,n,r){var i=Ex(NH.sketch({fetch:function(){return lD.nu((function(t){t(jH(e.overflowGroups.get()))}))},layouts:{onLtr:function(){return[qu,zu]},onRtl:function(){return[zu,qu]},onBottomLtr:function(){return[Uu,Hu]},onBottomRtl:function(){return[Hu,Uu]}},getBounds:n.getOverflowBounds,lazySink:e.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:e.markers.overflowToggledClass},parts:{button:r["overflow-button"](),toolbar:r.overflow()}}));return{uid:e.uid,dom:e.dom,components:t,behaviours:rg(e.splitToolbarBehaviours,[ED.config({others:{overflowGroup:function(){return $H.sketch(O(O({},r["overflow-group"]()),{items:[i.asSpec()]}))}}})]),apis:{setGroups:function(t,n){e.builtGroups.set(V(n,t.getSystem().build)),zH(t,i,e)},refresh:function(t){return zH(t,i,e)},toggle:function(e){i.getOpt(e).each((function(e){NH.toggle(e)}))},isOpen:function(e){return i.getOpt(e).map(NH.isOpen).getOr(!1)},reposition:function(e){i.getOpt(e).each((function(e){NH.reposition(e)}))},getOverflow:function(e){return i.getOpt(e).bind(NH.getToolbar)}},domModification:{attributes:{role:"group"}}}},HH=pv({name:"SplitFloatingToolbar",configFields:AH(),partFields:SH(),factory:qH,apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},reposition:function(e,t){e.reposition(t)},toggle:function(e,t){e.toggle(t)},isOpen:function(e,t){return e.isOpen(t)},getOverflow:function(e,t){return e.getOverflow(t)}}}),UH=y([ou(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),su("onOpened"),su("onClosed")].concat(CH())),WH=y([Mg({factory:Kj,schema:Uj(),name:"primary"}),Mg({factory:Kj,schema:Uj(),name:"overflow",overrides:function(e){return{toolbarBehaviours:fd([Dq.config({dimension:{property:"height"},closedClass:e.markers.closedClass,openClass:e.markers.openClass,shrinkingClass:e.markers.shrinkingClass,growingClass:e.markers.growingClass,onShrunk:function(t){Kg(t,e,"overflow-button").each((function(e){mw.off(e),Xy.focus(e)})),e.onClosed(t)},onGrown:function(t){Oy.focusIn(t),e.onOpened(t)},onStartGrow:function(t){Kg(t,e,"overflow-button").each(mw.on)}}),Oy.config({mode:"acyclic",onEscape:function(t){return Kg(t,e,"overflow-button").each(Xy.focus),B.some(!0)}})])}}}),Fg({name:"overflow-button",overrides:function(e){return{buttonBehaviours:fd([mw.config({toggleClass:e.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])}}}),Fg({name:"overflow-group"})]),VH=function(e,t){return Kg(e,t,"overflow").map(Dq.hasGrown).getOr(!1)},GH=function(e,t){Kg(e,t,"overflow-button").bind((function(){return Kg(e,t,"overflow")})).each((function(n){KH(e,t),Dq.toggleGrow(n)}))},KH=function(e,t){Kg(e,t,"overflow").each((function(n){kH(e,t,(function(e){var t=V(e,(function(e){return Tl(e)}));Kj.setGroups(n,t)})),Kg(e,t,"overflow-button").each((function(e){Dq.hasGrown(n)&&mw.on(e)})),Dq.refresh(n)}))},YH=function(e,t,n,r){var i="alloy.toolbar.toggle",o=function(t,n){var r=V(n,t.getSystem().build);e.builtGroups.set(r)};return{uid:e.uid,dom:e.dom,components:t,behaviours:rg(e.splitToolbarBehaviours,[ED.config({others:{overflowGroup:function(e){return $H.sketch(O(O({},r["overflow-group"]()),{items:[kx.sketch(O(O({},r["overflow-button"]()),{action:function(t){xs(e,i)}}))]}))}}}),zy("toolbar-toggle-events",[Ls(i,(function(t){GH(t,e)}))])]),apis:{setGroups:function(t,n){o(t,n),KH(t,e)},refresh:function(t){return KH(t,e)},toggle:function(t){return GH(t,e)},isOpen:function(t){return VH(t,e)}},domModification:{attributes:{role:"group"}}}},XH=pv({name:"SplitSlidingToolbar",configFields:UH(),partFields:WH(),factory:YH,apis:{setGroups:function(e,t,n){e.setGroups(t,n)},refresh:function(e,t){e.refresh(t)},toggle:function(e,t){e.toggle(t)},isOpen:function(e,t){return e.isOpen(t)}}}),QH=function(e){var t=e.title.fold((function(){return{}}),(function(e){return{attributes:{title:e}}}));return{dom:O({tag:"div",classes:["tox-toolbar__group"]},t),components:[$H.parts.items({})],items:e.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled])"},tgroupBehaviours:fd([TR.config({}),Xy.config({})])}},JH=function(e){return $H.sketch(QH(e))},ZH=function(e,t){var n=qs((function(t){var n=V(e.initGroups,JH);Kj.setGroups(t,n)}));return fd([xE.toolbarButton(e.providers.isDisabled),vE(),Oy.config({mode:t,onEscape:e.onEscape,selector:".tox-toolbar__group"}),zy("toolbar-events",[n])])},eU=function(e){var t=e.cyclicKeying?"cyclic":"acyclic";return{uid:e.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":QH({title:B.none(),items:[]}),"overflow-button":oI({name:"more",icon:B.some("more-drawer"),disabled:!1,tooltip:B.some("More..."),primary:!1,borderless:!1},B.none(),e.providers)},splitToolbarBehaviours:ZH(e,t)}},tU=function(e){var t=eU(e),n=4,r=HH.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return HH.sketch(O(O({},t),{lazySink:e.getSink,getOverflowBounds:function(){var t=e.moreDrawerData.lazyHeader().element,r=Jr(t),i=mn(t),o=Jr(i),a=Math.max(i.dom.scrollHeight,o.height);return Xr(r.x+n,o.y,r.width-2*n,a)},parts:O(O({},t.parts),{overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:e.attributes}}}),components:[r],markers:{overflowToggledClass:"tox-tbtn--enabled"}}))},nU=function(e){var t=XH.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),n=XH.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),r=eU(e);return XH.sketch(O(O({},r),{components:[t,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(e){e.getSystem().broadcastOn([Lz()],{type:"opened"})},onClosed:function(e){e.getSystem().broadcastOn([Lz()],{type:"closed"})}}))},rU=function(e){var t=e.cyclicKeying?"cyclic":"acyclic";return Kj.sketch({uid:e.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(e.type===QC.scrolling?["tox-toolbar--scrolling"]:[])},components:[Kj.parts.groups({})],toolbarBehaviours:ZH(e,t)})},iU=function(e,t,n){var r={getSocket:function(t){return Nj.getPart(t,e,"socket")},setSidebar:function(t,n){Nj.getPart(t,e,"sidebar").each((function(e){return Wq(e,n)}))},toggleSidebar:function(t,n){Nj.getPart(t,e,"sidebar").each((function(e){return Vq(e,n)}))},whichSidebar:function(t){return Nj.getPart(t,e,"sidebar").bind(Gq).getOrNull()},getHeader:function(t){return Nj.getPart(t,e,"header")},getToolbar:function(t){return Nj.getPart(t,e,"toolbar")},setToolbar:function(t,n){Nj.getPart(t,e,"toolbar").each((function(e){e.getApis().setGroups(e,n)}))},setToolbars:function(t,n){Nj.getPart(t,e,"multiple-toolbar").each((function(e){Hj.setItems(e,n)}))},refreshToolbar:function(t){var n=Nj.getPart(t,e,"toolbar");n.each((function(e){return e.getApis().refresh(e)}))},toggleToolbarDrawer:function(t){Nj.getPart(t,e,"toolbar").each((function(e){Ne(e.getApis().toggle,(function(t){return t(e)}))}))},isToolbarDrawerToggled:function(t){return Nj.getPart(t,e,"toolbar").bind((function(e){return B.from(e.getApis().isOpen).map((function(t){return t(e)}))})).getOr(!1)},getThrobber:function(t){return Nj.getPart(t,e,"throbber")},focusToolbar:function(t){var n=Nj.getPart(t,e,"toolbar").orThunk((function(){return Nj.getPart(t,e,"multiple-toolbar")}));n.each((function(e){Oy.focusIn(e)}))},setMenubar:function(t,n){Nj.getPart(t,e,"menubar").each((function(e){rq.setMenus(e,n)}))},focusMenubar:function(t){Nj.getPart(t,e,"menubar").each((function(e){rq.focus(e)}))}};return{uid:e.uid,dom:e.dom,components:t,apis:r,behaviours:e.behaviours}},oU=Bj.optional({factory:rq,name:"menubar",schema:[Oo("backstage")]}),aU=function(e){return e.type===QC.sliding?nU:e.type===QC.floating?tU:rU},sU=Bj.optional({factory:{sketch:function(e){return Hj.sketch({uid:e.uid,dom:e.dom,listBehaviours:fd([Oy.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:function(){return rU({type:e.type,uid:ic("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:e.providers,onEscape:function(){return e.onEscape(),B.some(!0)}})},setupItem:function(e,t,n,r){Kj.setGroups(t,n)},shell:!0})}},name:"multiple-toolbar",schema:[Oo("dom"),Oo("onEscape")]}),cU=Bj.optional({factory:{sketch:function(e){var t=aU(e),n={type:e.type,uid:e.uid,onEscape:function(){return e.onEscape(),B.some(!0)},cyclicKeying:!1,initGroups:[],getSink:e.getSink,providers:e.providers,moreDrawerData:{lazyToolbar:e.lazyToolbar,lazyMoreButton:e.lazyMoreButton,lazyHeader:e.lazyHeader},attributes:e.attributes};return t(n)}},name:"toolbar",schema:[Oo("dom"),Oo("onEscape"),Oo("getSink")]}),lU=Bj.optional({factory:{sketch:Kz},name:"header",schema:[Oo("dom")]}),uU=Bj.optional({name:"socket",schema:[Oo("dom")]}),dU=Bj.optional({factory:{sketch:Xq},name:"sidebar",schema:[Oo("dom")]}),fU=Bj.optional({factory:{sketch:cH},name:"throbber",schema:[Oo("dom")]}),pU=pv({name:"OuterContainer",factory:iU,configFields:[Oo("dom"),Oo("behaviours")],partFields:[lU,oU,cU,sU,uU,dU,fU],apis:{getSocket:function(e,t){return e.getSocket(t)},setSidebar:function(e,t,n){e.setSidebar(t,n)},toggleSidebar:function(e,t,n){e.toggleSidebar(t,n)},whichSidebar:function(e,t){return e.whichSidebar(t)},getHeader:function(e,t){return e.getHeader(t)},getToolbar:function(e,t){return e.getToolbar(t)},setToolbar:function(e,t,n){var r=V(n,(function(e){return JH(e)}));e.setToolbar(t,r)},setToolbars:function(e,t,n){var r=V(n,(function(e){return V(e,JH)}));e.setToolbars(t,r)},refreshToolbar:function(e,t){return e.refreshToolbar(t)},toggleToolbarDrawer:function(e,t){e.toggleToolbarDrawer(t)},isToolbarDrawerToggled:function(e,t){return e.isToolbarDrawerToggled(t)},getThrobber:function(e,t){return e.getThrobber(t)},setMenubar:function(e,t,n){e.setMenubar(t,n)},focusMenubar:function(e,t){e.focusMenubar(t)},focusToolbar:function(e,t){e.focusToolbar(t)}}}),hU="file edit view insert format tools table help",mU={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"}},gU=function(e,t,n){var r=BS(n).split(/[ ,]/);return{text:e.title,getItems:function(){return re(e.items,(function(e){var n=e.toLowerCase();return 0===n.trim().length||H(r,(function(e){return e===n}))?[]:"separator"===n||"|"===n?[{type:"separator"}]:t.menuItems[n]?[t.menuItems[n]]:[]}))}}},vU=function(e){return"string"===typeof e?e.split(" "):e},bU=function(e,t){var n=O(O({},mU),t.menus),r=me(t.menus).length>0,i=void 0===t.menubar||!0===t.menubar?vU(hU):vU(!1===t.menubar?"":t.menubar),o=X(i,(function(e){var n=Ee(mU,e);return r?n||Se(t.menus,e).exists((function(e){return Ee(e,"items")})):n})),a=V(o,(function(r){var i=n[r];return gU({title:i.title,items:vU(i.items)},t,e)}));return X(a,(function(e){var t=function(e){return"separator"!==e.type};return e.getItems().length>0&&H(e.getItems(),t)}))},_U=function(e){var t=function(){e._skinLoaded=!0,CT(e)};return function(){e.initialized?t():e.on("init",t)}},yU=function(e,t){return function(){return AT(e,{message:t})}},wU=function(e,t,n){return new mC((function(r,i){n.load(t,r,i),e.on("remove",(function(){return n.unload(t)}))}))},xU=function(e,t){var n=t+"/skin.min.css";return wU(e,n,e.ui.styleSheetLoader)},kU=function(e,t){var n=Dn(tt.fromDom(e.getElement()));if(n){var r=t+"/skin.shadowdom.min.css";return wU(e,r,wS.DOM.styleSheetLoader)}return mC.resolve()},CU=function(e,t){var n=kS(t);n&&t.contentCSS.push(n+(e?"/content.inline":"/content")+".min.css"),!1===AS(t)&&o(n)?mC.all([xU(t,n),kU(t,n)]).then(_U(t),yU(t,"Skin could not be loaded")):_U(t)()},AU=k(CU,!1),SU=k(CU,!0),EU=function(e,t){return function(n){var r=tf(),i=function(){n.setActive(e.formatter.match(t));var i=e.formatter.formatChanged(t,n.setActive);r.set(i)};return e.initialized?i():e.once("init",i),function(){e.off("init",i),r.clear()}}},TU=function(e,t,n){return function(r){var i=function(){return n(r)},o=function(){n(r),e.on(t,i)};return e.initialized?o():e.once("init",o),function(){e.off("init",o),e.off(t,i)}}},OU=function(e){return function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("mceToggleFormat",!1,t.format)}))}}},RU=function(e,t){return function(){return e.execCommand(t)}},DU=function(e,t,n){var r=function(e,r,o,a){var s=t.shared.providers.translate(e.title);if("separator"===e.type)return B.some({type:"separator",text:s});if("submenu"===e.type){var c=re(e.getStyleItems(),(function(e){return i(e,r,a)}));return 0===r&&c.length<=0?B.none():B.some({type:"nestedmenuitem",text:s,disabled:c.length<=0,getSubmenuItems:function(){return re(e.getStyleItems(),(function(e){return i(e,r,a)}))}})}return B.some(O({type:"togglemenuitem",text:s,icon:e.icon,active:e.isSelected(a),disabled:o,onAction:n.onAction(e)},e.getStylePreview().fold((function(){return{}}),(function(e){return{meta:{style:e}}}))))},i=function(e,t,i){var o="formatter"===e.type&&n.isInvalid(e);return 0===t?o?[]:r(e,t,!1,i).toArray():r(e,t,o,i).toArray()},o=function(e){var t=n.getCurrentValue(),r=n.shouldHide?0:1;return re(e,(function(e){return i(e,r,t)}))},a=function(e,t){return function(n,r){var i=t(),a=o(i),s=eI(a,JC.CLOSE_ON_EXECUTE,e,!1);r(s)}};return{validateItems:o,getFetch:a}},LU=function(e,t,n){var r=n.dataset,i="basic"===r.type?function(){return V(r.data,(function(e){return z$(e,n.isSelectedFor,n.getPreviewFor)}))}:r.getData;return{items:DU(e,t,n),getStyleItems:i}},MU=function(e,t,n){var r=LU(e,t,n),i=r.items,o=r.getStyleItems,a=function(e){return{getComponent:y(e)}},s=TU(e,"NodeChange",(function(e){var t=e.getComponent();n.updateText(t)}));return UB({text:n.icon.isSome()?B.none():n.text,icon:n.icon,tooltip:B.from(n.tooltip),role:B.none(),fetch:i.getFetch(t,o),onSetup:s,getApi:a,columns:1,presets:"normal",classes:n.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",t.shared)},FU=function(e){return V(e,(function(e){var t=e,n=e,r=e.split("=");return r.length>1&&(t=r[0],n=r[1]),{title:t,format:n}}))},NU=function(e){return{type:"basic",data:e}};(function(e){e[e["SemiColon"]=0]="SemiColon",e[e["Space"]=1]="Space"})(iP||(iP={}));var BU,IU=function(e,t){return t===iP.SemiColon?e.replace(/;$/,"").split(";"):e.split(" ")},PU=function(e,t,n,r){var i=e.getParam(t,n,"string"),o=FU(IU(i,r));return{type:"basic",data:o}},$U=[{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"}],jU=function(e){var t=function(){return ee($U,(function(t){return e.formatter.match(t.format)}))},n=function(t){return function(){return e.formatter.match(t)}},r=function(e){return B.none},i=function(e){var n=t(),r=n.fold(y("left"),(function(e){return e.title.toLowerCase()}));ks(e,HB,{icon:"align-"+r})},o=NU($U),a=function(t){return function(){return ee($U,(function(e){return e.format===t.format})).each((function(t){return e.execCommand(t.command)}))}};return{tooltip:"Align",text:B.none(),icon:B.some("align-left"),isSelectedFor:n,getCurrentValue:B.none,getPreviewFor:r,onAction:a,updateText:i,dataset:o,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}},zU=function(e,t){return MU(e,t,jU(e))},qU=function(e,t){var n=LU(e,t,jU(e));e.ui.registry.addNestedMenuItem("align",{text:t.shared.providers.translate("Align"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},HU="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",UU=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],WU=function(e){var t=e.split(/\s*,\s*/);return V(t,(function(e){return e.replace(/^['"]+|['"]+$/g,"")}))},VU=function(e){var t=function(){var t=WU(e.toLowerCase());return ie(UU,(function(e){return t.indexOf(e.toLowerCase())>-1}))};return 0===e.indexOf("-apple-system")&&t()},GU=function(e){var t="System Font",n=function(){var n=function(e){return e?WU(e)[0]:""},r=e.queryCommandValue("FontName"),i=c.data,o=r?r.toLowerCase():"",a=ee(i,(function(e){var t=e.format;return t.toLowerCase()===o||n(t).toLowerCase()===n(o).toLowerCase()})).orThunk((function(){return Be(VU(o),{title:t,format:o})}));return{matchOpt:a,font:r}},r=function(e){return function(t){return t.exists((function(t){return t.format===e}))}},i=function(){var e=n().matchOpt;return e},o=function(e){return function(){return B.some({tag:"div",styles:-1===e.indexOf("dings")?{"font-family":e}:{}})}},a=function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontName",!1,t.format)}))}},s=function(e){var t=n(),r=t.matchOpt,i=t.font,o=r.fold(y(i),(function(e){return e.title}));ks(e,qB,{text:o})},c=PU(e,"font_formats",HU,iP.SemiColon);return{tooltip:"Fonts",text:B.some(t),icon:B.none(),isSelectedFor:r,getCurrentValue:i,getPreviewFor:o,onAction:a,updateText:s,dataset:c,shouldHide:!1,isInvalid:S}},KU=function(e,t){return MU(e,t,GU(e))},YU=function(e,t){var n=LU(e,t,GU(e));e.ui.registry.addNestedMenuItem("fontformats",{text:t.shared.providers.translate("Fonts"),getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},XU="8pt 10pt 12pt 14pt 18pt 24pt 36pt",QU={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},JU={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},ZU=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},eW=function(e,t){return/[0-9.]+px$/.test(e)?ZU(72*parseInt(e,10)/96,t||0)+"pt":Se(JU,e).getOr(e)},tW=function(e){return Se(QU,e).getOr("")},nW=function(e){var t=function(){var t=B.none(),n=s.data,r=e.queryCommandValue("FontSize");if(r)for(var i=function(e){var i=eW(r,e),o=tW(i);t=ee(n,(function(e){return e.format===r||e.format===i||e.format===o}))},o=3;t.isNone()&&o>=0;o--)i(o);return{matchOpt:t,size:r}},n=function(e){return function(t){return t.exists((function(t){return t.format===e}))}},r=function(){var e=t().matchOpt;return e},i=y(B.none),o=function(t){return function(){e.undoManager.transact((function(){e.focus(),e.execCommand("FontSize",!1,t.format)}))}},a=function(e){var n=t(),r=n.matchOpt,i=n.size,o=r.fold(y(i),(function(e){return e.title}));ks(e,qB,{text:o})},s=PU(e,"fontsize_formats",XU,iP.Space);return{tooltip:"Font sizes",text:B.some("12pt"),icon:B.none(),isSelectedFor:n,getPreviewFor:i,getCurrentValue:r,onAction:o,updateText:a,dataset:s,shouldHide:!1,isInvalid:S}},rW=function(e,t){return MU(e,t,nW(e))},iW=function(e,t){var n=LU(e,t,nW(e));e.ui.registry.addNestedMenuItem("fontsizes",{text:"Font sizes",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},oW=function(e,t){var n=t(),r=V(n,(function(e){return e.format}));return B.from(e.formatter.closest(r)).bind((function(e){return ee(n,(function(t){return t.format===e}))})).orThunk((function(){return Be(e.formatter.match("p"),{title:"Paragraph",format:"p"})}))},aW="Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre",sW=function(e){var t="Paragraph",n=function(t){return function(){return e.formatter.match(t)}},r=function(t){return function(){var n=e.formatter.get(t);return B.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))})}},i=function(n){var r=oW(e,(function(){return o.data})),i=r.fold(y(t),(function(e){return e.title}));ks(n,qB,{text:i})},o=PU(e,"block_formats",aW,iP.SemiColon);return{tooltip:"Blocks",text:B.some(t),icon:B.none(),isSelectedFor:n,getCurrentValue:B.none,getPreviewFor:r,onAction:OU(e),updateText:i,dataset:o,shouldHide:!1,isInvalid:function(t){return!e.formatter.canApply(t.format)}}},cW=function(e,t){return MU(e,t,sW(e))},lW=function(e,t){var n=LU(e,t,sW(e));e.ui.registry.addNestedMenuItem("blockformats",{text:"Blocks",getSubmenuItems:function(){return n.items.validateItems(n.getStyleItems())}})},uW=function(e,t){var n="Paragraph",r=function(t){return function(){return e.formatter.match(t)}},i=function(t){return function(){var n=e.formatter.get(t);return void 0!==n?B.some({tag:n.length>0&&(n[0].inline||n[0].block)||"div",styles:e.dom.parseStyle(e.formatter.getCssText(t))}):B.none()}},o=function(t){var r=function(e){var t=e.items;return void 0!==t&&t.length>0?re(t,r):[{title:e.title,format:e.format}]},i=re(j$(e),r),o=oW(e,y(i)),a=o.fold(y(n),(function(e){return e.title}));ks(t,qB,{text:a})};return{tooltip:"Formats",text:B.some(n),icon:B.none(),isSelectedFor:r,getCurrentValue:B.none,getPreviewFor:i,onAction:OU(e),updateText:o,shouldHide:e.getParam("style_formats_autohide",!1,"boolean"),isInvalid:function(t){return!e.formatter.canApply(t.format)},dataset:t}},dW=function(e,t){var n=O({type:"advanced"},t.styleselect);return MU(e,t,uW(e,n))},fW=function(e,t){var n=O({type:"advanced"},t.styleselect),r=LU(e,t,uW(e,n));e.ui.registry.addNestedMenuItem("formats",{text:"Formats",getSubmenuItems:function(){return r.items.validateItems(r.getStyleItems())}})},pW=function(e,t){var n=function(n,r){e.updateState.each((function(e){var i=e(n,r);t.set(i)})),e.renderComponents.each((function(e){var i=e(r,t.get()),o=V(i,n.getSystem().build);Hh(n,o)}))};return Ts([Ls(es(),(function(t,r){var i=r;if(!i.universal){var o=e.channel;q(i.channels,o)&&n(t,i.data)}})),qs((function(t,r){e.initialData.each((function(e){n(t,e)}))}))])},hW=Object.freeze({__proto__:null,events:pW}),mW=function(e,t,n){return n},gW=Object.freeze({__proto__:null,getState:mW}),vW=[Oo("channel"),jo("renderComponents"),jo("updateState"),jo("initialData")],bW=function(){var e=ia(B.none()),t=function(){return e.set(B.none())},n=function(){return e.get().getOr("none")};return{readState:n,get:e.get,set:e.set,clear:t}},_W=Object.freeze({__proto__:null,init:bW}),yW=hd({fields:vW,name:"reflecting",active:hW,apis:gW,state:_W}),wW=y([Oo("toggleClass"),Oo("fetch"),lu("onExecute"),Ko("getHotspot",B.some),Ko("getAnchorOverrides",y({})),$f(),lu("onItemExecute"),jo("lazySink"),Oo("dom"),su("onOpen"),tg("splitDropdownBehaviours",[ED,Oy,Xy]),Ko("matchWidth",!1),Ko("useMinWidth",!1),Ko("eventOrder",{}),jo("role")].concat(qD())),xW=Mg({factory:kx,schema:[Oo("dom")],name:"arrow",defaults:function(){return{buttonBehaviours:fd([Xy.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each(Cs)},buttonBehaviours:fd([mw.config({toggleOnExecute:!1,toggleClass:e.toggleClass})])}}}),kW=Mg({factory:kx,schema:[Oo("dom")],name:"button",defaults:function(){return{buttonBehaviours:fd([Xy.revoke()])}},overrides:function(e){return{dom:{tag:"span",attributes:{role:"presentation"}},action:function(t){t.getSystem().getByUid(e.uid).each((function(n){e.onExecute(n,t)}))}}}}),CW=y([xW,kW,Ng({factory:{sketch:function(e){return{uid:e.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:e.text}}}},schema:[Oo("text")],name:"aria-descriptor"}),Fg({schema:[iu()],name:"menu",defaults:function(e){return{onExecute:function(t,n){t.getSystem().getByUid(e.uid).each((function(r){e.onItemExecute(r,t,n)}))}}}}),OD()]),AW=function(e,t,n,r){var i,o=function(e){bv.getCurrent(e).each((function(e){rb.highlightFirst(e),Oy.focusIn(e)}))},a=function(t){var n=o;BD(e,w,t,r,n,eD.HighlightFirst).get(g)},s=function(e){return a(e),B.some(!0)},c=function(t){var n=Yg(t,e,"button");return Cs(n),B.some(!0)},l=O(O({},Ts([qs((function(t,n){var r=Kg(t,e,"aria-descriptor");r.each((function(e){var n=ic("aria");jn(e.element,"id",n),jn(t.element,"aria-describedby",n)}))}))])),vw(B.some(a))),u={repositionMenus:function(e){mw.isOn(e)&&zD(e)}};return{uid:e.uid,dom:e.dom,components:t,apis:u,eventOrder:O(O({},e.eventOrder),(i={},i[ts()]=["disabling","toggling","alloy.base.behaviour"],i)),events:l,behaviours:rg(e.splitDropdownBehaviours,[ED.config({others:{sandbox:function(t){var n=Yg(t,e,"arrow"),r={onOpen:function(){mw.on(n),mw.on(t)},onClose:function(){mw.off(n),mw.off(t)}};return jD(e,t,r)}}}),Oy.config({mode:"special",onSpace:c,onEnter:c,onDown:s}),Xy.config({}),mw.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:e.role.getOr("button"),"aria-haspopup":!0}}}},SW=pv({name:"SplitDropdown",configFields:wW(),partFields:CW(),factory:AW,apis:{repositionMenus:function(e,t){return e.repositionMenus(t)}}}),EW=function(e){return{isDisabled:function(){return Iv.isDisabled(e)},setDisabled:function(t){return Iv.set(e,t)}}},TW=function(e){return{setActive:function(t){mw.set(e,t)},isActive:function(){return mw.isOn(e)},isDisabled:function(){return Iv.isDisabled(e)},setDisabled:function(t){return Iv.set(e,t)}}},OW=function(e,t){return e.map((function(e){return{"aria-label":t.translate(e),title:t.translate(e)}})).getOr({})},RW=ic("focus-button"),DW=function(e,t,n,r,i,o){var a;return{dom:{tag:"button",classes:["tox-tbtn"].concat(t.isSome()?["tox-tbtn--select"]:[]),attributes:OW(n,o)},components:TE([e.map((function(e){return BB(e,o.icons)})),t.map((function(e){return PB(e,"tox-tbtn",o)}))]),eventOrder:(a={},a[Ma()]=["focusing","alloy.base.behaviour","common-button-display-events"],a),buttonBehaviours:fd([xE.toolbarButton(o.isDisabled),vE(),zy("common-button-display-events",[Ls(Ma(),(function(e,t){t.event.prevent(),xs(e,RW)}))])].concat(r.map((function(n){return yW.config({channel:n,initialData:{icon:e,text:t},renderComponents:function(e,t){return TE([e.icon.map((function(e){return BB(e,o.icons)})),e.text.map((function(e){return PB(e,"tox-tbtn",o)}))])}})})).toArray()).concat(i.getOr([])))}},LW=function(e,t,n,r){var i=t.shared;return NH.sketch({lazySink:i.getSink,fetch:function(){return lD.nu((function(t){t(V(n(e.items),JH))}))},markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:DW(e.icon,e.text,e.tooltip,B.none(),B.none(),i.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:r}}}})},MW=function(e,t,n){var r=ia(g),i=DW(e.icon,e.text,e.tooltip,B.none(),B.none(),n);return kx.sketch({dom:i.dom,components:i.components,eventOrder:zB,buttonBehaviours:fd([zy("toolbar-button-events",[jB({onAction:e.onAction,getApi:t.getApi}),CE(t,r),AE(t,r)]),xE.toolbarButton((function(){return e.disabled||n.isDisabled()})),vE()].concat(t.toolbarButtonBehaviours))})},FW=function(e,t){return NW(e,t,[])},NW=function(e,t,n){return MW(e,{toolbarButtonBehaviours:[].concat(n.length>0?[zy("toolbarButtonWith",n)]:[]),getApi:EW,onSetup:e.onSetup},t)},BW=function(e,t){return IW(e,t,[])},IW=function(e,t,n){return wi(MW(e,{toolbarButtonBehaviours:[$y.config({}),mw.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(n.length>0?[zy("toolbarToggleButtonWith",n)]:[]),getApi:TW,onSetup:e.onSetup},t))},PW=function(e,t,n){return function(r){return lD.nu((function(e){return t.fetch(e)})).map((function(i){return B.from(zO(wi(dO(ic("menu-value"),i,(function(n){t.onItemAction(e(r),n)}),t.columns,t.presets,JC.CLOSE_ON_EXECUTE,t.select.getOr(S),n),{movement:pO(t.columns,t.presets),menuBehaviours:sS.unnamedEvents("auto"!==t.columns?[]:[qs((function(e,n){iS(e,4,_A(t.presets)).each((function(t){var n=t.numRows,r=t.numColumns;Oy.setGridSize(e,n,r)}))}))])})))}))}},$W=function(e,t){var n,r=ic("channel-update-split-dropdown-display"),i=function(e){return{isDisabled:function(){return Iv.isDisabled(e)},setDisabled:function(t){return Iv.set(e,t)},setIconFill:function(t,n){Pl(e.element,'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){jn(e,"fill",n)}))},setIconStroke:function(t,n){Pl(e.element,'svg path[id="'+t+'"], rect[id="'+t+'"]').each((function(e){jn(e,"stroke",n)}))},setActive:function(t){jn(e.element,"aria-pressed",t),Pl(e.element,"span").each((function(n){e.getSystem().getByDom(n).each((function(e){return mw.set(e,t)}))}))},isActive:function(){return Pl(e.element,"span").exists((function(t){return e.getSystem().getByDom(t).exists(mw.isOn)}))}}},o=ia(g),a={getApi:i,onSetup:e.onSetup};return SW.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:O({"aria-pressed":!1},OW(e.tooltip,t.providers))},onExecute:function(t){e.onAction(i(t))},onItemExecute:function(e,t,n){},splitDropdownBehaviours:fd([xE.splitButton(t.providers.isDisabled),vE(),zy("split-dropdown-events",[Ls(RW,Xy.focus),CE(a,o),AE(a,o)]),XD.config({})]),eventOrder:(n={},n[fs()]=["alloy.base.behaviour","split-dropdown-events"],n),toggleClass:"tox-tbtn--enabled",lazySink:t.getSink,fetch:PW(i,e,t.providers),parts:{menu:AA(!1,e.columns,e.presets)},components:[SW.parts.button(DW(e.icon,e.text,B.none(),B.some(r),B.some([mw.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),t.providers)),SW.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:jk("chevron-down",t.providers.icons)},buttonBehaviours:fd([xE.splitButton(t.providers.isDisabled),vE(),Hk()])}),SW.parts["aria-descriptor"]({text:t.providers.translate("To open the popup, press Shift+Enter")})]})},jW=[{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"]}],zW=function(e,t){return function(n,r,i){var o=e(n).mapError((function(e){return ko(e)})).getOrDie();return t(o,r,i)}},qW={button:zW(NC,(function(e,t){return FW(e,t.backstage.shared.providers)})),togglebutton:zW(PC,(function(e,t){return BW(e,t.backstage.shared.providers)})),menubutton:zW(Zz,(function(e,t){return nI(e,"tox-tbtn",t.backstage,B.none())})),splitbutton:zW(tq,(function(e,t){return $W(e,t.backstage.shared)})),grouptoolbarbutton:zW(Xz,(function(e,t,n){var r,i=n.ui.registry.getAll().buttons,o=function(e){return XW(n,{buttons:i,toolbar:e,allowToolbarGroups:!1},t,B.none())},a=(r={},r[If]=t.backstage.shared.header.isPositionedAtTop()?Pd.TopToBottom:Pd.BottomToTop,r);switch(qS(n)){case QC.floating:return LW(e,t.backstage,o,a);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})),styleSelectButton:function(e,t){return dW(e,t.backstage)},fontsizeSelectButton:function(e,t){return rW(e,t.backstage)},fontSelectButton:function(e,t){return KU(e,t.backstage)},formatButton:function(e,t){return cW(e,t.backstage)},alignMenuButton:function(e,t){return zU(e,t.backstage)}},HW=function(e,t,n){return Se(qW,e.type).fold((function(){return B.none()}),(function(r){return B.some(r(e,t,n))}))},UW={styleselect:qW.styleSelectButton,fontsizeselect:qW.fontsizeSelectButton,fontselect:qW.fontSelectButton,formatselect:qW.formatButton,align:qW.alignMenuButton},WW=function(e){var t=V(jW,(function(t){var n=X(t.items,(function(t){return Ee(e,t)||Ee(UW,t)}));return{name:t.name,items:n}}));return X(t,(function(e){return e.items.length>0}))},VW=function(e){var t=e.split("|");return V(t,(function(e){return{items:e.trim().split(" ")}}))},GW=function(e){return m(e,(function(e){return Ee(e,"name")&&Ee(e,"items")}))},KW=function(e){var t=e.toolbar,n=e.buttons;return!1===t?[]:void 0===t||!0===t?WW(n):o(t)?VW(t):GW(t)?t:[]},YW=function(e,t,n,r,i,o){return Se(t,n.toLowerCase()).orThunk((function(){return o.bind((function(e){return he(e,(function(e){return Se(t,e+n.toLowerCase())}))}))})).fold((function(){return Se(UW,n.toLowerCase()).map((function(t){return t(e,i)})).orThunk((function(){return B.none()}))}),(function(t){return"grouptoolbarbutton"!==t.type||r?HW(t,i,e):B.none()}))},XW=function(e,t,n,r){var i=KW(t),o=V(i,(function(i){var o=re(i.items,(function(i){return 0===i.trim().length?[]:YW(e,t.buttons,i,t.allowToolbarGroups,n,r).toArray()}));return{title:B.from(e.translate(i.name)),items:o}}));return X(o,(function(e){return e.items.length>0}))},QW=function(e,t,n,r){var i=t.outerContainer,a=n.toolbar,s=n.buttons;if(m(a,o)){var c=a.map((function(t){var i={toolbar:t,buttons:s,allowToolbarGroups:n.allowToolbarGroups};return XW(e,i,{backstage:r},B.none())}));pU.setToolbars(i,c)}else pU.setToolbar(i,XW(e,n,{backstage:r},B.none()))},JW=tn(),ZW=JW.os.isiOS()&&JW.os.version.major<=12,eV=function(e,t){var n=e.dom,r=e.getWin(),i=e.getDoc().documentElement,o=ia(ur(r.innerWidth,r.innerHeight)),a=ia(ur(i.offsetWidth,i.offsetHeight)),s=function(){var t=o.get();t.left===r.innerWidth&&t.top===r.innerHeight||(o.set(ur(r.innerWidth,r.innerHeight)),ET(e))},c=function(){var t=e.getDoc().documentElement,n=a.get();n.left===t.offsetWidth&&n.top===t.offsetHeight||(a.set(ur(t.offsetWidth,t.offsetHeight)),ET(e))},l=function(t){return TT(e,t)};n.bind(r,"resize",s),n.bind(r,"scroll",l);var u=sf(tt.fromDom(e.getBody()),"load",c),d=t.uiMothership.element;e.on("hide",(function(){Kn(d,"display","none")})),e.on("show",(function(){nr(d,"display")})),e.on("NodeChange",c),e.on("remove",(function(){u.unbind(),n.unbind(r,"resize",s),n.unbind(r,"scroll",l),r=null}))},tV=function(e,t,n,r,i){var o=ia(0),a=t.outerContainer;AU(e);var s=tt.fromDom(i.targetNode),c=Rn(On(s));Xh(s,t.mothership),Yh(c,t.uiMothership),e.on("PostRender",(function(){QW(e,t,n,r),o.set(e.getWin().innerWidth),pU.setMenubar(a,bU(e,n)),pU.setSidebar(a,n.sidebar),eV(e,t)}));var l=pU.getSocket(a).getOrDie("Could not find expected socket element");if(ZW){Yn(l.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});var u=Jk((function(){e.fire("ScrollContent")}),20),d=af(l.element,"scroll",u.throttle);e.on("remove",d.unbind)}gE(e,t),e.addCommand("ToggleSidebar",(function(t,n){pU.toggleSidebar(a,n),e.fire("ToggleSidebar")})),e.addQueryValueHandler("ToggleSidebar",(function(){return pU.whichSidebar(a)}));var f=qS(e),p=function(){pU.refreshToolbar(t.outerContainer)};f!==QC.sliding&&f!==QC.floating||e.on("ResizeWindow ResizeEditor ResizeContent",(function(){var t=e.getWin().innerWidth;t!==o.get()&&(p(),o.set(t))}));var h={enable:function(){mE(t,!1)},disable:function(){mE(t,!0)},isDisabled:function(){return Iv.isDisabled(a)}};return{iframeContainer:l.element.dom,editorContainer:a.element.dom,api:h}},nV=Object.freeze({__proto__:null,render:tV}),rV=function(e){var t=/^[0-9\.]+(|px)$/i;return t.test(""+e)?B.some(parseInt(""+e,10)):B.none()},iV=function(e){return h(e)?e+"px":e},oV=function(e,t,n){var r=t.filter((function(t){return e<t})),i=n.filter((function(t){return e>t}));return r.or(i).getOr(e)},aV=function(e){var t=SS(e),n=OS(e),r=DS(e);return rV(t).map((function(e){return oV(e,n,r)}))},sV=function(e){var t=aV(e);return t.getOr(SS(e))},cV=function(e){var t=ES(e),n=TS(e),r=RS(e);return rV(t).map((function(e){return oV(e,n,r)}))},lV=function(e){var t=cV(e);return t.getOr(ES(e))},uV=function(e,t,n,r,i){var o=n.uiMothership,a=n.outerContainer,s=wS.DOM,c=QS(e),l=eE(e),u=RS(e).or(cV(e)),d=r.shared.header,f=d.isPositionedAtTop,p=qS(e),h=p===QC.sliding||p===QC.floating,m=ia(!1),g=function(){return m.get()&&!e.removed},v=function(e){return h?e.fold(y(0),(function(e){return e.components().length>1?ar(e.components()[1].element):0})):0},b=function(n){switch(WS(e)){case zS.auto:var r=pU.getToolbar(a),i=v(r),o=ar(n.element)-i,s=Qr(t),c=s.y>o;if(c)return"top";var l=mn(t),u=Math.max(l.dom.scrollHeight,ar(l)),d=s.bottom<u-o;if(d)return"bottom";var f=Zr(),p=f.bottom<s.bottom-o;return p?"bottom":"top";case zS.bottom:return"bottom";case zS.top:default:return"top"}},_=function(e){var t=i.get();Dz.setModes(t,[e]),d.setDockingMode(e);var n=f()?Pd.TopToBottom:Pd.BottomToTop;jn(t.element,If,n)},w=function(){var e=u.getOrThunk((function(){var e=rV(Qn(In(),"margin-left")).getOr(0);return vr(In())-pr(t).left+e}));Kn(i.get().element,"max-width",e+"px")},x=function(){var e=pU.getToolbar(a),n=v(e),r=Qr(t),o=f()?Math.max(r.y-ar(i.get().element)+n,0):r.bottom;Yn(a.element,{position:"absolute",top:Math.round(o)+"px",left:Math.round(r.x)+"px"})},k=function(){o.broadcastOn([ym()],{})},C=function(e){if(void 0===e&&(e=!1),g()){if(c||w(),h&&pU.refreshToolbar(a),c||x(),l){var t=i.get();e?Dz.reset(t):Dz.refresh(t)}k()}},A=function(e){if(void 0===e&&(e=!0),!c&&l&&g()){var t=d.getDockingMode(),n=b(i.get());n!==t&&(_(n),e&&C(!0))}},S=function(){m.set(!0),Kn(a.element,"display","flex"),s.addClass(e.getBody(),"mce-edit-focus"),nr(o.element,"display"),A(!1),C()},E=function(){m.set(!1),n.outerContainer&&(Kn(a.element,"display","none"),s.removeClass(e.getBody(),"mce-edit-focus")),Kn(o.element,"display","none")};return{isVisible:g,isPositionedAtTop:f,show:S,hide:E,update:C,updateMode:A,repositionPopups:k}},dV=function(e,t){var n=Qr(e);return{pos:t?n.y:n.bottom,bounds:n}},fV=function(e,t,n,r){var i=ia(dV(t,n.isPositionedAtTop())),o=function(r){var o=dV(t,n.isPositionedAtTop()),a=o.pos,s=o.bounds,c=i.get(),l=c.pos,u=c.bounds,d=s.height!==u.height||s.width!==u.width;i.set({pos:a,bounds:s}),d&&ET(e,r),n.isVisible()&&(l!==a?n.update(!0):d&&(n.updateMode(),n.repositionPopups()))};r||(e.on("activate",n.show),e.on("deactivate",n.hide)),e.on("SkinLoaded ResizeWindow",(function(){return n.update(!0)})),e.on("NodeChange keydown",(function(e){wx.requestAnimationFrame((function(){return o(e)}))})),e.on("ScrollWindow",(function(){return n.updateMode()}));var a=tf();a.set(sf(tt.fromDom(e.getBody()),"load",o)),e.on("remove",(function(){a.clear()}))},pV=function(e,t,n,r,i){var o=t.mothership,a=t.uiMothership,s=t.outerContainer,c=ia(null),l=tt.fromDom(i.targetNode),u=uV(e,l,t,r,c),d=YS(e);SU(e);var f=function(){if(c.get())u.show();else{c.set(pU.getHeader(s).getOrDie());var i=JS(e);Yh(i,o),Yh(i,a),QW(e,t,n,r),pU.setMenubar(s,bU(e,n)),u.show(),fV(e,l,u,d),e.nodeChanged()}};e.on("show",f),e.on("hide",u.hide),d||(e.on("focus",f),e.on("blur",u.hide)),e.on("init",(function(){(e.hasFocus()||d)&&f()})),gE(e,t);var p={show:function(){u.show()},hide:function(){u.hide()},enable:function(){mE(t,!1)},disable:function(){mE(t,!0)},isDisabled:function(){return Iv.isDisabled(s)}};return{editorContainer:s.element.dom,api:p}},hV=Object.freeze({__proto__:null,render:pV}),mV="contexttoolbar-show",gV="contexttoolbar-hide",vV=function(e){return{hide:function(){return xs(e,os())},getValue:function(){return eg.getValue(e)}}},bV=function(e,t){return Ls($B,(function(n,r){var i=e.get(n),o=vV(i);t.onAction(o,r.event.buttonApi)}))},_V=function(e,t,n){var r=t.original;r.primary;var i=R(r,["primary"]),o=wo(NC(O(O({},i),{type:"button",onAction:g})));return NW(o,n.backstage.shared.providers,[bV(e,t)])},yV=function(e,t,n){var r=t.original;r.primary;var i=R(r,["primary"]),o=wo(PC(O(O({},i),{type:"togglebutton",onAction:g})));return IW(o,n.backstage.shared.providers,[bV(e,t)])},wV=function(e,t,n){var r={backstage:{shared:{providers:n}}};return"contextformtogglebutton"===t.type?yV(e,t,r):_V(e,t,r)},xV=function(e,t,n){var r=V(t,(function(t){return Ex(wV(e,t,n))})),i=function(){return V(r,(function(e){return e.asSpec()}))},o=function(e){return he(t,(function(t,n){return t.primary?B.from(r[n]).bind((function(t){return t.getOpt(e)})).filter(C(Iv.isDisabled)):B.none()}))};return{asSpecs:i,findPrimary:o}},kV=function(e,t){var n=e.label.fold((function(){return{}}),(function(e){return{"aria-label":e}})),r=Ex(QR.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:e.initValue(),inputAttributes:n,selectOnFocus:!0,inputBehaviours:fd([Oy.config({mode:"special",onEnter:function(e){return i.findPrimary(e).map((function(e){return Cs(e),!0}))},onLeft:function(e,t){return t.cut(),B.none()},onRight:function(e,t){return t.cut(),B.none()}})])})),i=xV(r,e.commands,t);return[{title:B.none(),items:[r.asSpec()]},{title:B.none(),items:i.asSpecs()}]},CV=function(e,t,n){return rU({type:e,uid:ic("context-toolbar"),initGroups:kV(t,n),onEscape:B.none,cyclicKeying:!0,providers:n})},AV={renderContextForm:CV,buildInitGroups:kV},SV=function(e,t,n){return void 0===n&&(n=.01),t.bottom-e.y>=n&&e.bottom-t.y>=n},EV=function(e){var t=e.getBoundingClientRect();if(t.height<=0&&t.width<=0){var n=An(tt.fromDom(e.startContainer),e.startOffset).element,r=dt(n)?vn(n):B.some(n);return r.filter(ut).map((function(e){return e.dom.getBoundingClientRect()})).getOr(t)}return t},TV=function(e){var t=e.selection.getRng(),n=EV(t);if(e.inline){var r=Ir();return Xr(r.left+n.left,r.top+n.top,n.width,n.height)}var i=Jr(tt.fromDom(e.getBody()));return Xr(i.x+n.left,i.y+n.top,n.width,n.height)},OV=function(e,t){return t.filter(Bn).map(Jr).getOrThunk((function(){return TV(e)}))},RV=function(e,t,n){var r=Math.max(e.x+n,t.x),i=Math.min(e.right-n,t.right);return{x:r,width:i-r}},DV=function(e,t,n,r,i,o){var a=tt.fromDom(e.getContainer()),s=Pl(a,".tox-editor-header").getOr(a),c=Qr(s),l=c.y>=t.bottom,u=r&&!l;if(e.inline&&u)return{y:Math.max(c.bottom+o,n.y),bottom:n.bottom};if(e.inline&&!u)return{y:n.y,bottom:Math.min(c.y-o,n.bottom)};var d="line"===i?Qr(a):t;return u?{y:Math.max(c.bottom+o,n.y),bottom:Math.min(d.bottom-o,n.bottom)}:{y:Math.max(d.y+o,n.y),bottom:Math.min(c.y-o,n.bottom)}},LV=function(e,t,n,r){void 0===r&&(r=0);var i=zr(window),o=Qr(tt.fromDom(e.getContentAreaContainer())),a=IS(e)||PS(e)||jS(e),s=RV(o,i,r),c=s.x,l=s.width;if(e.inline&&!a)return Xr(c,i.y,l,i.height);var u=t.header.isPositionedAtTop(),d=DV(e,o,i,u,n,r),f=d.y,p=d.bottom;return Xr(c,f,l,p-f)},MV=12,FV={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"]},NV={maxHeightFunction:Ef(),maxWidthFunction:EH()},BV=function(e,t){var n=e.selection.getRng(),r=An(tt.fromDom(n.startContainer),n.startOffset);return n.startContainer===n.endContainer&&n.startOffset===n.endOffset-1&&ln(r.element,t)},IV=function(e,t,n){var r=Zn(e,"position");Kn(e,"position",t);var i=n(e);return r.each((function(t){return Kn(e,"position",t)})),i},PV=function(e){return"node"===e},$V=function(e,t,n,r,i){var o=TV(e),a=r.lastElement().exists((function(e){return ln(n,e)}));if(BV(e,n))return a?bx:px;if(a)return IV(t,r.getMode(),(function(){var e=SV(o,Qr(t));return e&&!r.isReposition()?yx:bx}));var s="fixed"===r.getMode()?i.y+Ir().top:i.y,c=ar(t)+MV;return s+c<=o.y?px:hx},jV=function(e,t,n,r){var i=function(t){return function(r,i,o,a,s){var c=$V(e,a,t,n,s),l=O(O({},r),{y:s.y,height:s.height});return O(O({},c(l,i,o,a,s)),{alwaysFit:!0})}},o=function(e){return PV(r)?[i(e)]:[]},a={onLtr:function(e){return[Wu,Vu,Hu,zu,Uu,qu].concat(o(e))},onRtl:function(e){return[Wu,Vu,Uu,qu,Hu,zu].concat(o(e))}},s={onLtr:function(e){return[Vu,zu,qu,Hu,Uu,Wu].concat(o(e))},onRtl:function(e){return[Vu,qu,zu,Uu,Hu,Wu].concat(o(e))}};return t?s:a},zV=function(e,t,n,r){return"line"===t?{bubble:Lf(MV,0,FV),layouts:{onLtr:function(){return[Gu]},onRtl:function(){return[Ku]}},overrides:NV}:{bubble:Lf(0,MV,FV,1/MV),layouts:jV(e,n,r,t),overrides:NV}},qV=function(e,t){var n=X(t,(function(t){return t.predicate(e.dom)})),r=Y(n,(function(e){return"contexttoolbar"===e.type})),i=r.pass,o=r.fail;return{contextToolbars:i,contextForms:o}},HV=function(e){if(e.length<=1)return e;var t=function(t){return H(e,(function(e){return e.position===t}))},n=function(t){return X(e,(function(e){return e.position===t}))},r=t("selection"),i=t("node");if(r||i){if(i&&r){var o=n("node"),a=V(n("selection"),(function(e){return O(O({},e),{position:"node"})}));return o.concat(a)}return n(r?"selection":"node")}return n("line")},UV=function(e){if(e.length<=1)return e;var t=function(t){return ee(e,(function(e){return e.position===t}))},n=t("selection").orThunk((function(){return t("node")})).orThunk((function(){return t("line")})).map((function(e){return e.position}));return n.fold((function(){return[]}),(function(t){return X(e,(function(e){return e.position===t}))}))},WV=function(e,t,n){var r=qV(e,t);if(r.contextForms.length>0)return B.some({elem:e,toolbars:[r.contextForms[0]]});var i=qV(e,n);if(i.contextForms.length>0)return B.some({elem:e,toolbars:[i.contextForms[0]]});if(r.contextToolbars.length>0||i.contextToolbars.length>0){var o=HV(r.contextToolbars.concat(i.contextToolbars));return B.some({elem:e,toolbars:o})}return B.none()},VV=function(e,t,n){return e(t)?B.none():_a(t,(function(e){if(ut(e)){var t=qV(e,n.inNodeScope),r=t.contextToolbars,i=t.contextForms,o=i.length>0?i:UV(r);return o.length>0?B.some({elem:e,toolbars:o}):B.none()}return B.none()}),e)},GV=function(e,t){var n=tt.fromDom(t.getBody()),r=function(e){return ln(e,n)},i=function(e){return!r(e)&&!fn(n,e)},o=tt.fromDom(t.selection.getNode());return i(o)?B.none():WV(o,e.inNodeScope,e.inEditorScope).orThunk((function(){return VV(r,o,e)}))},KV=function(e,t){var n={},r=[],i=[],o={},a={},s=function(e,s){var c=wo(VC(s));n[e]=c,c.launch.map((function(n){o["form:"+e]=O(O({},s.launch),{type:"contextformtogglebutton"===n.type?"togglebutton":"button",onAction:function(){t(c)}})})),"editor"===c.scope?i.push(c):r.push(c),a[e]=c},c=function(e,t){KC(t).each((function(n){"editor"===t.scope?i.push(n):r.push(n),a[e]=n}))},l=me(e);return G(l,(function(t){var n=e[t];"contextform"===n.type?s(t,n):"contexttoolbar"===n.type&&c(t,n)})),{forms:n,inNodeScope:r,inEditorScope:i,lookupTable:a,formNavigators:o}},YV=ic("forward-slide"),XV=ic("backward-slide"),QV=ic("change-slide-event"),JV="tox-pop--resizing",ZV=function(e){var t=ia([]);return tx.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:function(e){t.set([]),tx.getContent(e).each((function(e){nr(e.element,"visibility")})),sl(e.element,JV),nr(e.element,"width")},inlineBehaviours:fd([zy("context-toolbar-events",[zs(Va(),(function(e,t){"width"===t.event.raw.propertyName&&(sl(e.element,JV),nr(e.element,"width"))})),Ls(QV,(function(e,t){var n=e.element;nr(n,"width");var r=vr(n);tx.setContent(e,t.event.contents),ol(n,JV);var i=vr(n);Kn(n,"width",r+"px"),tx.getContent(e).each((function(e){t.event.focus.bind((function(e){return xd(e),Sd(n)})).orThunk((function(){return Oy.focusIn(e),Ad(On(n))}))})),wx.setTimeout((function(){Kn(e.element,"width",i+"px")}),0)})),Ls(YV,(function(e,n){tx.getContent(e).each((function(n){t.set(t.get().concat([{bar:n,focus:Ad(On(e.element))}]))})),ks(e,QV,{contents:n.event.forwardContents,focus:B.none()})})),Ls(XV,(function(e,n){fe(t.get()).each((function(n){t.set(t.get().slice(0,t.get().length-1)),ks(e,QV,{contents:Tl(n.bar),focus:n.focus})}))}))]),Oy.config({mode:"special",onEscape:function(n){return fe(t.get()).fold((function(){return e.onEscape()}),(function(e){return xs(n,XV),B.some(!0)}))}})]),lazySink:function(){return ri.value(e.sink)}})},eG="tox-pop--transition",tG=function(e,t,n,r){var i=r.backstage,o=i.shared,a=tn().deviceType.isTouch,s=rf(),c=rf(),l=rf(),u=El(ZV({sink:n,onEscape:function(){return e.focus(),B.some(!0)}})),d=function(){var t=l.get().getOr("node"),n=PV(t)?1:0;return LV(e,o,t,n)},f=function(){return!e.removed&&!(a()&&i.isContextMenuOpen())},p=function(e){return Oe(Me(e,s.get(),ln),!0)},h=function(){if(f()){var t=d(),n=Oe(l.get(),"node")?OV(e,s.get()):TV(e);return t.height<=0||!SV(n,t)}return!0},m=function(){s.clear(),c.clear(),l.clear(),tx.hide(u)},v=function(){if(tx.isOpen(u)){var e=u.element;nr(e,"display"),h()?Kn(e,"display","none"):(c.set(0),tx.reposition(u))}},b=function(t){return{dom:{tag:"div",classes:["tox-pop__dialog"]},components:[t],behaviours:fd([Oy.config({mode:"acyclic"}),zy("pop-dialog-wrap-events",[qs((function(t){e.shortcuts.add("ctrl+F9","focus statusbar",(function(){return Oy.focusIn(t)}))})),Hs((function(t){e.shortcuts.remove("ctrl+F9")}))])])}},_=ht((function(){return KV(t,(function(e){var t=x([e]);ks(u,YV,{forwardContents:b(t)})}))})),y=function(t,n){return XW(e,{buttons:t,toolbar:n.items,allowToolbarGroups:!1},r,B.some(["form:"]))},w=function(e,t){return AV.buildInitGroups(e,t)},x=function(t){var n=e.ui.registry.getAll().buttons,r=_(),i=O(O({},n),r.formNavigators),a=qS(e)===QC.scrolling?QC.scrolling:QC.default,s=ne(V(t,(function(e){return"contexttoolbar"===e.type?y(i,e):w(e,o.providers)})));return rU({type:a,uid:ic("context-toolbar"),initGroups:s,onEscape:B.none,cyclicKeying:!0,providers:o.providers})},k=function(t,r){var i="node"===t?o.anchors.node(r):o.anchors.cursor(),l=zV(e,t,a(),{lastElement:s.get,isReposition:function(){return Oe(c.get(),0)},getMode:function(){return Ph.getMode(n)}});return wi(i,l)},C=function(e,t){if(A.cancel(),f()){var r=x(e),i=e[0].position,o=k(i,t);l.set(i),c.set(1);var a=u.element;nr(a,"display"),p(t)||(sl(a,eG),Ph.reset(n,u)),tx.showWithinBounds(u,b(r),{anchor:o,transition:{classes:[eG],mode:"placement"}},(function(){return B.some(d())})),t.fold(s.clear,s.set),h()&&Kn(a,"display","none")}},A=Zk((function(){if(e.hasFocus()&&!e.removed)if(cl(u.element,eG))A.throttle();else{var t=_();GV(t,e).fold(m,(function(e){C(e.toolbars,B.some(e.elem))}))}}),17);e.on("init",(function(){e.on("remove",m),e.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",v),e.on("click keyup focus SetContent",A.throttle),e.on(gV,m),e.on(mV,(function(t){var n=_();Se(n.lookupTable,t.toolbarKey).each((function(n){C([n],Be(t.target!==e,t.target)),tx.getContent(u).each(Oy.focusIn)}))})),e.on("focusout",(function(t){wx.setEditorTimeout(e,(function(){Sd(n.element).isNone()&&Sd(u.element).isNone()&&m()}),0)})),e.on("SwitchMode",(function(){e.mode.isReadOnly()&&m()})),e.on("AfterProgressState",(function(t){t.state?m():e.hasFocus()&&A.throttle()})),e.on("NodeChange",(function(e){Sd(u.element).fold(A.throttle,g)}))}))},nG=function(e){var t=[{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"}];G(t,(function(t){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:RU(e,t.cmd),onSetup:EU(e,t.name)})})),e.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onAction:RU(e,"JustifyNone")})},rG={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:[""]},iG=function(){var e="[0-9]+",t="[+-]?"+e,n="[eE]"+t,r="\\.",i=function(e){return"(?:"+e+")?"},o=["Infinity",e+r+i(e)+i(n),r+e+i(n),e+i(n)].join("|"),a="[+-]?(?:"+o+")";return new RegExp("^("+a+")(.*)$")}(),oG=function(e,t){return H(t,(function(t){return H(rG[t],(function(t){return e===t}))}))},aG=function(e,t){var n=B.from(iG.exec(e));return n.bind((function(e){var n=Number(e[1]),r=e[2];return oG(r,t)?B.some({value:n,unit:r}):B.none()}))},sG=function(e,t){return aG(e,t).map((function(e){var t=e.value,n=e.unit;return t+n}))},cG=function(e,t){var n=function(){var n=t.getOptions(e),r=t.getCurrent(e).map(t.hash),i=rf();return V(n,(function(n){return{type:"togglemenuitem",text:t.display(n),onSetup:function(o){var a=function(e){e&&(i.on((function(e){return e.setActive(!1)})),i.set(o)),o.setActive(e)};a(Oe(r,t.hash(n)));var s=t.watcher(e,n,a);return function(){i.clear(),s()}},onAction:function(){return t.setCurrent(e,n)}}}))};e.ui.registry.addMenuButton(t.name,{tooltip:t.text,icon:t.icon,fetch:function(e){return e(n())},onSetup:t.onToolbarSetup}),e.ui.registry.addNestedMenuItem(t.name,{type:"nestedmenuitem",text:t.text,getSubmenuItems:n,onSetup:t.onMenuSetup})},lG={name:"lineheight",text:"Line height",icon:"line-height",getOptions:FS,hash:function(e){return sG(e,["fixed","relative","empty"]).getOr(e)},display:w,watcher:function(e,t,n){return e.formatter.formatChanged("lineheight",n,!1,{value:t}).unbind},getCurrent:function(e){return B.from(e.queryCommandValue("LineHeight"))},setCurrent:function(e,t){return e.execCommand("LineHeight",!1,t)}},uG=function(e){var t=B.from(NS(e));return t.map((function(t){return{name:"language",text:"Language",icon:"language",getOptions:y(t),hash:function(e){return u(e.customCode)?e.code:e.code+"/"+e.customCode},display:function(e){return e.title},watcher:function(e,t,n){return e.formatter.formatChanged("lang",n,!1,{value:t.code,customValue:t.customCode}).unbind},getCurrent:function(e){var t=tt.fromDom(e.selection.getNode());return ya(t,(function(e){return B.some(e).filter(ut).bind((function(e){var t=Hn(e,"lang");return t.map((function(t){var n=Hn(e,"data-mce-lang").getOrUndefined();return{code:t,customCode:n,title:""}}))}))}))},setCurrent:function(e,t){return e.execCommand("Lang",!1,t)},onToolbarSetup:function(t){var n=tf();return t.setActive(e.formatter.match("lang",{},void 0,!0)),n.set(e.formatter.formatChanged("lang",t.setActive,!0)),n.clear}}}))},dG=function(e){cG(e,lG),uG(e).each((function(t){return cG(e,t)}))},fG=function(e,t){qU(e,t),YU(e,t),fW(e,t),lW(e,t),iW(e,t)},pG=function(e){return TU(e,"NodeChange",(function(t){t.setDisabled(!e.queryCommandState("outdent"))}))},hG=function(e){e.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:pG(e),onAction:RU(e,"outdent")}),e.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onAction:RU(e,"indent")})},mG=function(e){hG(e)},gG=function(e,t){return function(){e.execCommand("mceToggleFormat",!1,t)}},vG=function(e){sN.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(t,n){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onSetup:EU(e,t.name),onAction:gG(e,t.name)})}));for(var t=1;t<=6;t++){var n="h"+t;e.ui.registry.addToggleButton(n,{text:n.toUpperCase(),tooltip:"Heading "+t,onSetup:EU(e,n),onAction:gG(e,n)})}},bG=function(e){sN.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(t){e.ui.registry.addButton(t.name,{tooltip:t.text,icon:t.icon,onAction:RU(e,t.action)})}))},_G=function(e){sN.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],(function(t){e.ui.registry.addToggleButton(t.name,{tooltip:t.text,icon:t.icon,onAction:RU(e,t.action),onSetup:EU(e,t.name)})}))},yG=function(e){vG(e),bG(e),_G(e)},wG=function(e){sN.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(t){e.ui.registry.addMenuItem(t.name,{text:t.text,icon:t.icon,shortcut:t.shortcut,onAction:RU(e,t.action)})})),e.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onAction:gG(e,"code")})},xG=function(e){yG(e),wG(e)},kG=function(e,t){return TU(e,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",(function(n){n.setDisabled(e.mode.isReadOnly()||!e.undoManager[t]())}))},CG=function(e){e.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:kG(e,"hasUndo"),onAction:RU(e,"undo")}),e.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:kG(e,"hasRedo"),onAction:RU(e,"redo")})},AG=function(e){e.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",disabled:!0,onSetup:kG(e,"hasUndo"),onAction:RU(e,"undo")}),e.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",disabled:!0,onSetup:kG(e,"hasRedo"),onAction:RU(e,"redo")})},SG=function(e){CG(e),AG(e)},EG=function(e){return TU(e,"VisualAid",(function(t){t.setActive(e.hasVisual)}))},TG=function(e){e.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:EG(e),onAction:RU(e,"mceToggleVisualAid")})},OG=function(e){e.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:RU(e,"mceToggleVisualAid")})},RG=function(e){OG(e),TG(e)},DG=function(e,t){nG(e),xG(e),fG(e,t),SG(e),uO(e),RG(e),mG(e),dG(e)},LG=function(e,t){return{type:"makeshift",x:e,y:t}},MG=function(e,t,n){return LG(e.x+t,e.y+n)},FG=function(e){return"longpress"===e.type||0===e.type.indexOf("touch")},NG=function(e){if(FG(e)){var t=e.touches[0];return LG(t.pageX,t.pageY)}return LG(e.pageX,e.pageY)},BG=function(e){if(FG(e)){var t=e.touches[0];return LG(t.clientX,t.clientY)}return LG(e.clientX,e.clientY)},IG=function(e,t){var n=wS.DOM.getPos(e);return MG(t,n.x,n.y)},PG=function(e,t){return"contextmenu"===t.type||"longpress"===t.type?e.inline?NG(t):IG(e.getContentAreaContainer(),BG(t)):$G(e)},$G=function(e){return{type:"selection",root:tt.fromDom(e.selection.getNode())}},jG=function(e){return{type:"node",node:B.some(tt.fromDom(e.selection.getNode())),root:tt.fromDom(e.getBody())}},zG=function(e,t,n){switch(n){case"node":return jG(e);case"point":return PG(e,t);case"selection":return $G(e)}},qG=function(e,t,n,r,i,o){var a=n(),s=zG(e,t,o);eI(a,JC.CLOSE_ON_EXECUTE,r,!1).map((function(e){t.preventDefault(),tx.showMenuAt(i,{anchor:s},{menu:{markers:xA("normal")},data:e})}))},HG={onLtr:function(){return[Vu,zu,qu,Hu,Uu,Wu,px,hx,fx,ux,dx,lx]},onRtl:function(){return[Vu,qu,zu,Uu,Hu,Wu,px,hx,dx,lx,fx,ux]}},UG=12,WG={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"]},VG=function(e,t){var n=e.selection;if(n.isCollapsed()||t.touches.length<1)return!1;var r=t.touches[0],i=n.getRng(),o=nh(e.getWin(),Cp.domRange(i));return o.exists((function(e){return e.left<=r.clientX&&e.right>=r.clientX&&e.top<=r.clientY&&e.bottom>=r.clientY}))},GG=function(e){var t=e.selection.getRng(),n=function(){wx.setEditorTimeout(e,(function(){e.selection.setRng(t)}),10),o()};e.once("touchend",n);var r=function(e){e.preventDefault(),e.stopImmediatePropagation()};e.on("mousedown",r,!0);var i=function(){return o()};e.once("longpresscancel",i);var o=function(){e.off("touchend",n),e.off("longpresscancel",i),e.off("mousedown",r)}},KG=function(e,t,n){var r=zG(e,t,n),i="point"===n?UG:0;return O({bubble:Lf(0,i,WG),layouts:HG,overrides:{maxWidthFunction:EH(),maxHeightFunction:Ef()}},r)},YG=function(e,t,n,r,i,o,a){var s=KG(e,t,o);eI(n,JC.CLOSE_ON_EXECUTE,r,!0).map((function(n){t.preventDefault(),tx.showMenuWithinBounds(i,{anchor:s},{menu:{markers:xA("normal"),highlightImmediately:a},data:n,type:"horizontal"},(function(){return B.some(LV(e,r.shared,"node"===o?"node":"selection"))})),e.fire(gV)}))},XG=function(e,t,n,r,i,o){var a=tn(),s=a.os.isiOS(),c=a.os.isOSX(),l=a.os.isAndroid(),u=a.deviceType.isTouch(),d=function(){return!(l||s||c&&u)},f=function(){var a=n();YG(e,t,a,r,i,o,d())};if((c||s)&&"node"!==o){var p=function(){GG(e),f()};VG(e,t)?p():(e.once("selectionchange",p),e.once("touchend",(function(){return e.off("selectionchange",p)})))}else f()},QG=function(e){return"string"===typeof e?e.split(/[ ,]/):e},JG=function(e){return e.getParam("contextmenu_never_use_native",!1,"boolean")},ZG=function(e,t,n){var r=e.ui.registry.getAll().contextMenus;return B.from(e.getParam(t)).map(QG).getOrThunk((function(){return X(QG(n),(function(e){return Ee(r,e)}))}))},eK=function(e){return!1===e.getParam("contextmenu")},tK=function(e){return ZG(e,"contextmenu","link linkchecker image imagetools table spellchecker configurepermanentpen")},nK=function(e){return e.getParam("contextmenu_avoid_overlap","","string")},rK=function(e){return o(e)?"|"===e:"separator"===e.type},iK={type:"separator"},oK=function(e){var t=function(e){return{text:e.text,icon:e.icon,disabled:e.disabled,shortcut:e.shortcut}};if(o(e))return e;switch(e.type){case"separator":return iK;case"submenu":return O(O({type:"nestedmenuitem"},t(e)),{getSubmenuItems:function(){var t=e.getSubmenuItems();return o(t)?t:V(t,oK)}});default:return O(O({type:"menuitem"},t(e)),{onAction:v(e.onAction)})}},aK=function(e,t){if(0===t.length)return e;var n=fe(e).filter((function(e){return!rK(e)})),r=n.fold((function(){return[]}),(function(e){return[iK]}));return e.concat(r).concat(t).concat([iK])},sK=function(e,t,n){var r=J(t,(function(t,r){return Se(e,r.toLowerCase()).map((function(e){var r=e.update(n);if(o(r))return aK(t,r.split(" "));if(r.length>0){var i=V(r,oK);return aK(t,i)}return t})).getOrThunk((function(){return t.concat([r])}))}),[]);return r.length>0&&rK(r[r.length-1])&&r.pop(),r},cK=function(e,t){return t.ctrlKey&&!JG(e)},lK=function(e,t){return"longpress"!==t.type&&(2!==t.button||t.target===e.getBody()&&""===t.pointerType)},uK=function(e,t){return lK(e,t)?e.selection.getStart(!0):t.target},dK=function(e,t){var n=nK(e),r=lK(e,t)?"selection":"point";if(Ge(n)){var i=uK(e,t),o=WO(tt.fromDom(i),n);return o?"node":r}return r},fK=function(e,t,n){var r=tn(),i=r.deviceType.isTouch,o=El(tx.sketch({dom:{tag:"div"},lazySink:t,onEscape:function(){return e.focus()},onShow:function(){return n.setContextMenuState(!0)},onHide:function(){return n.setContextMenuState(!1)},fireDismissalEventInstead:{},inlineBehaviours:fd([zy("dismissContextMenu",[Ls(hs(),(function(t,n){bm.close(t),e.focus()}))])])})),a=function(e){return tx.hide(o)},s=function(t){if(JG(e)&&t.preventDefault(),!cK(e,t)&&!eK(e)){var r=dK(e,t),a=function(){var n=uK(e,t),r=e.ui.registry.getAll(),i=tK(e);return sK(r.contextMenus,i,n)},s=i()?XG:qG;s(e,t,a,n,o,r)}};e.on("init",(function(){var t="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(i()?"":" ResizeWindow");e.on(t,a),e.on("longpress contextmenu",s)}))},pK=aa.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),hK=function(e){return function(t){return t.translate(-e.left,-e.top)}},mK=function(e){return function(t){return t.translate(e.left,e.top)}},gK=function(e){return function(t,n){return J(e,(function(e,t){return t(e)}),ur(t,n))}},vK=function(e,t,n){return e.fold(gK([mK(n),hK(t)]),gK([hK(t)]),gK([]))},bK=function(e,t,n){return e.fold(gK([mK(n)]),gK([]),gK([mK(t)]))},_K=function(e,t,n){return e.fold(gK([]),gK([hK(n)]),gK([mK(t),hK(n)]))},yK=function(e,t,n,r,i,o){var a=bK(e,i,o),s=bK(t,i,o);return Math.abs(a.left-s.left)<=n&&Math.abs(a.top-s.top)<=r},wK=function(e,t,n,r,i,o){var a=bK(e,i,o),s=bK(t,i,o),c=Math.abs(a.left-s.left),l=Math.abs(a.top-s.top);return ur(c,l)},xK=function(e,t,n){var r=e.fold((function(e,t){return{position:B.some("absolute"),left:B.some(e+"px"),top:B.some(t+"px")}}),(function(e,t){return{position:B.some("absolute"),left:B.some(e-n.left+"px"),top:B.some(t-n.top+"px")}}),(function(e,t){return{position:B.some("fixed"),left:B.some(e+"px"),top:B.some(t+"px")}}));return O({right:B.none(),bottom:B.none()},r)},kK=function(e,t,n){return e.fold((function(e,r){return AK(e+t,r+n)}),(function(e,r){return SK(e+t,r+n)}),(function(e,r){return EK(e+t,r+n)}))},CK=function(e,t,n,r){var i=function(e,i){return function(o,a){var s=e(t,n,r);return i(o.getOr(s.left),a.getOr(s.top))}};return e.fold(i(_K,AK),i(bK,SK),i(vK,EK))},AK=pK.offset,SK=pK.absolute,EK=pK.fixed,TK=function(e,t){var n=qn(e,t);return u(n)?NaN:parseInt(n,10)},OK=function(e,t){var n=e.element,r=TK(n,t.leftAttr),i=TK(n,t.topAttr);return isNaN(r)||isNaN(i)?B.none():B.some(ur(r,i))},RK=function(e,t,n){var r=e.element;jn(r,t.leftAttr,n.left+"px"),jn(r,t.topAttr,n.top+"px")},DK=function(e,t){var n=e.element;Wn(n,t.leftAttr),Wn(n,t.topAttr)},LK=function(e,t,n,r){return OK(e,t).fold((function(){return n}),(function(e){return EK(e.left+r.left,e.top+r.top)}))},MK=function(e,t,n,r,i,o){var a=LK(e,t,n,r),s=t.mustSnap?BK(e,t,a,i,o):IK(e,t,a,i,o),c=vK(a,i,o);return RK(e,t,c),s.fold((function(){return{coord:EK(c.left,c.top),extra:B.none()}}),(function(e){return{coord:e.output,extra:e.extra}}))},FK=function(e,t){DK(e,t)},NK=function(e,t,n,r){return he(e,(function(e){var i=e.sensor,o=yK(t,i,e.range.left,e.range.top,n,r);return o?B.some({output:CK(e.output,t,n,r),extra:e.extra}):B.none()}))},BK=function(e,t,n,r,i){var o=t.getSnapPoints(e),a=NK(o,n,r,i);return a.orThunk((function(){var e=J(o,(function(e,t){var o=t.sensor,a=wK(n,o,t.range.left,t.range.top,r,i);return e.deltas.fold((function(){return{deltas:B.some(a),snap:B.some(t)}}),(function(n){var r=(a.left+a.top)/2,i=(n.left+n.top)/2;return r<=i?{deltas:B.some(a),snap:B.some(t)}:e}))}),{deltas:B.none(),snap:B.none()});return e.snap.map((function(e){return{output:CK(e.output,n,r,i),extra:e.extra}}))}))},IK=function(e,t,n,r,i){var o=t.getSnapPoints(e);return NK(o,n,r,i)},PK=function(e,t,n){return{coord:CK(e.output,e.output,t,n),extra:e.extra}},$K=function(e,t,n,r){var i=t.getTarget(e.element);if(t.repositionTarget){var o=pn(e.element),a=Ir(o),s=ez(i),c=PK(r,a,s),l=xK(c.coord,a,s);Xn(i,l)}},jK=Object.freeze({__proto__:null,snapTo:$K}),zK="data-initial-z-index",qK=function(e){vn(e.element).filter(ut).each((function(e){Hn(e,zK).fold((function(){return nr(e,"z-index")}),(function(t){return Kn(e,"z-index",t)})),Wn(e,zK)}))},HK=function(e){vn(e.element).filter(ut).each((function(t){Zn(t,"z-index").each((function(e){jn(t,zK,e)})),Kn(t,"z-index",Qn(e.element,"z-index"))}))},UK=function(e,t){e.getSystem().addToGui(t),HK(t)},WK=function(e){qK(e),e.getSystem().removeFromGui(e)},VK=function(e,t,n){return e.getSystem().build(bR.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[t]},events:n}))},GK=Vo("snaps",[Oo("getSnapPoints"),su("onSensor"),Oo("leftAttr"),Oo("topAttr"),Ko("lazyViewport",Zr),Ko("mustSnap",!1)]),KK=[Ko("useFixed",S),Oo("blockerClass"),Ko("getTarget",w),Ko("onDrag",g),Ko("repositionTarget",!0),Ko("onDrop",g),ea("getBounds",Zr),GK],YK=function(e){return Fe(Zn(e,"left"),Zn(e,"top"),Zn(e,"position"),(function(e,t,n){var r="fixed"===n?EK:AK;return r(parseInt(e,10),parseInt(t,10))})).getOrThunk((function(){var t=pr(e);return SK(t.left,t.top)}))},XK=function(e,t,n,r,i){var o=i.bounds,a=bK(t,n,r),s=Tu(a.left,o.x,o.x+o.width-i.width),c=Tu(a.top,o.y,o.y+o.height-i.height),l=SK(s,c);return t.fold((function(){var e=_K(l,n,r);return AK(e.left,e.top)}),y(l),(function(){var e=vK(l,n,r);return EK(e.left,e.top)}))},QK=function(e,t,n,r,i,o,a){var s=t.fold((function(){var e=kK(n,o.left,o.top),t=vK(e,r,i);return EK(t.left,t.top)}),(function(t){var a=MK(e,t,n,o,r,i);return a.extra.each((function(n){t.onSensor(e,n)})),a.coord}));return XK(e,s,r,i,a)},JK=function(e,t,n,r){var i=t.getTarget(e.element);if(t.repositionTarget){var o=pn(e.element),a=Ir(o),s=ez(i),c=YK(i),l=QK(e,t.snaps,c,a,s,r,n),u=xK(l,a,s);Xn(i,u)}t.onDrag(e,i,r)},ZK=function(e,t){return{bounds:e.getBounds(),height:sr(t.element),width:br(t.element)}},eY=function(e,t,n,r,i){var o=n.update(r,i),a=n.getStartData().getOrThunk((function(){return ZK(t,e)}));o.each((function(n){JK(e,t,a,n)}))},tY=function(e,t,n,r){t.each(WK),n.snaps.each((function(t){FK(e,t)}));var i=n.getTarget(e.element);r.reset(),n.onDrop(e,i)},nY=function(e){return function(t,n){var r=function(e){n.setStartData(ZK(t,e))};return Ts(D([Ls(us(),(function(e){n.getStartData().each((function(){return r(e)}))}))],e(t,n,r),!0))}},rY=function(e){return Ts([Ls(Ma(),e.forceDrop),Ls(Ba(),e.drop),Ls(Fa(),(function(t,n){e.move(n.event)})),Ls(Na(),e.delayDrop)])},iY=function(e){return B.from(ur(e.x,e.y))},oY=function(e,t){return ur(t.left-e.left,t.top-e.top)},aY=Object.freeze({__proto__:null,getData:iY,getDelta:oY}),sY=function(e,t,n){return[Ls(Ma(),(function(r,i){var o=i.event.raw;if(0===o.button){i.stop();var a=function(){return tY(r,B.some(l),e,t)},s=VO(a,200),c={drop:a,delayDrop:s.schedule,forceDrop:a,move:function(n){s.cancel(),eY(r,e,t,aY,n)}},l=VK(r,e.blockerClass,rY(c)),u=function(){n(r),UK(r,l)};u()}}))]},cY=D(D([],KK,!0),[du("dragger",{handlers:nY(sY)})],!1),lY=function(e){return Ts([Ls(Oa(),e.forceDrop),Ls(Da(),e.drop),Ls(La(),e.drop),Ls(Ra(),(function(t,n){e.move(n.event)}))])},uY=function(e){var t=e[0];return B.some(ur(t.clientX,t.clientY))},dY=function(e){var t=e.raw,n=t.touches;return 1===n.length?uY(n):B.none()},fY=function(e,t){return ur(t.left-e.left,t.top-e.top)},pY=Object.freeze({__proto__:null,getData:dY,getDelta:fY}),hY=function(e,t,n){var r=rf(),i=function(n){tY(n,r.get(),e,t),r.clear()};return[Ls(Oa(),(function(o,a){a.stop();var s=function(){return i(o)},c={drop:s,delayDrop:g,forceDrop:s,move:function(n){eY(o,e,t,pY,n)}},l=VK(o,e.blockerClass,lY(c));r.set(l);var u=function(){n(o),UK(o,l)};u()})),Ls(Ra(),(function(n,r){r.stop(),eY(n,e,t,pY,r.event)})),Ls(Da(),(function(e,t){t.stop(),i(e)})),Ls(La(),i)]},mY=D(D([],KK,!0),[du("dragger",{handlers:nY(hY)})],!1),gY=function(e,t,n){return D(D([],sY(e,t,n),!0),hY(e,t,n),!0)},vY=D(D([],KK,!0),[du("dragger",{handlers:nY(gY)})],!1),bY=cY,_Y=mY,yY=vY,wY=Object.freeze({__proto__:null,mouse:bY,touch:_Y,mouseOrTouch:yY}),xY=function(){var e=B.none(),t=B.none(),n=function(){e=B.none(),t=B.none()},r=function(t,n){var r=e.map((function(e){return t.getDelta(e,n)}));return e=B.some(n),r},i=function(e,t){return e.getData(t).bind((function(t){return r(e,t)}))},o=function(e){t=B.some(e)},a=function(){return t},s=y({});return Ac({readState:s,reset:n,update:i,getStartData:a,setStartData:o})},kY=Object.freeze({__proto__:null,init:xY}),CY=gd({branchKey:"mode",branches:wY,name:"dragging",active:{events:function(e,t){var n=e.dragger;return n.handlers(e,t)}},extra:{snap:function(e){return{sensor:e.sensor,range:e.range,output:e.output,extra:B.from(e.extra)}}},state:kY,apis:jK}),AY=40,SY=AY/2,EY=function(e,t,n,r,i,o){return e.fold((function(){return CY.snap({sensor:SK(n-SY,r-SY),range:ur(i,o),output:SK(B.some(n),B.some(r)),extra:{td:t}})}),(function(e){var i=n-SY,o=r-SY,a=AY,s=AY,c=e.element.dom.getBoundingClientRect();return CY.snap({sensor:SK(i,o),range:ur(a,s),output:SK(B.some(n-c.width/2),B.some(r-c.height/2)),extra:{td:t}})}))},TY=function(e,t,n){var r=function(e,t){return e.exists((function(e){return ln(e,t)}))};return{getSnapPoints:e,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:function(e,i){var o=i.td;r(t.get(),o)||(t.set(o),n(o))},mustSnap:!0}},OY=function(e){return Ex(kx.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:fd([CY.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:e}),XD.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}}))},RY=function(e,t){var n=ia([]),r=ia([]),i=ia(!1),o=rf(),a=rf(),s=function(e){var n=Jr(e);return EY(p.getOpt(t),e,n.x,n.y,n.width,n.height)},c=function(){return V(n.get(),(function(e){return s(e)}))},l=function(e){var n=Jr(e);return EY(h.getOpt(t),e,n.right,n.bottom,n.width,n.height)},u=function(){return V(r.get(),(function(e){return l(e)}))},d=TY(c,o,(function(t){a.get().each((function(n){e.fire("TableSelectorChange",{start:t,finish:n})}))})),f=TY(u,a,(function(t){o.get().each((function(n){e.fire("TableSelectorChange",{start:n,finish:t})}))})),p=OY(d),h=OY(f),m=El(p.asSpec()),g=El(h.asSpec()),v=function(t,n,r,i){var o=n.dom.getBoundingClientRect();nr(t.element,"display");var a=gn(tt.fromDom(e.getBody())).dom.innerHeight,s=r(o),c=i(o,a);(s||c)&&Kn(t.element,"display","none")},b=function(e,t,n,r){var i=n(t);CY.snapTo(e,i);var o=function(e){return e[r]<0},a=function(e,t){return e[r]>t};v(e,t,o,a)},_=function(e){return b(m,e,s,"top")},y=function(){return o.get().each(_)},w=function(e){return b(g,e,l,"bottom")},x=function(){return a.get().each(w)};tn().deviceType.isTouch()&&(e.on("TableSelectionChange",(function(e){i.get()||(Uh(t,m),Uh(t,g),i.set(!0)),o.set(e.start),a.set(e.finish),e.otherCells.each((function(t){n.set(t.upOrLeftCells),r.set(t.downOrRightCells),_(e.start),w(e.finish)}))})),e.on("ResizeEditor ResizeWindow ScrollContent",(function(){y(),x()})),e.on("TableSelectionClear",(function(){i.get()&&(Gh(m),Gh(g),i.set(!1)),o.clear(),a.clear()})))},DY=function(e){if(1===e.nodeType){if("BR"===e.nodeName||e.getAttribute("data-mce-bogus"))return!0;if("bookmark"===e.getAttribute("data-mce-type"))return!0}return!1},LY=function(e,t,n){t.delimiter||(t.delimiter="»");var r=function(r){var i=r||[],o=V(i,(function(t,r){return kx.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{role:"button","data-index":r,"tab-index":-1,"aria-level":r+1},innerHtml:t.name},action:function(n){e.focus(),e.selection.select(t.element),e.nodeChanged()},buttonBehaviours:fd([xE.button(n.isDisabled),vE()])})})),a={dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0},innerHtml:" "+t.delimiter+" "}};return J(o.slice(1),(function(e,t){var n=e;return n.push(a),n.push(t),n}),[o[0]])},i=function(t){var n=[],r=t.length;while(r-- >0){var i=t[r];if(1===i.nodeType&&!DY(i)){var o=e.fire("ResolveName",{name:i.nodeName.toLowerCase(),target:i});if(o.isDefaultPrevented()||n.push({name:o.name,element:i}),o.isPropagationStopped())break}}return n};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:fd([Oy.config({mode:"flow",selector:"div[role=button]"}),Iv.config({disabled:n.isDisabled}),vE(),TR.config({}),$y.config({}),zy("elementPathEvents",[qs((function(t,n){e.shortcuts.add("alt+F11","focus statusbar elementpath",(function(){return Oy.focusIn(t)})),e.on("NodeChange",(function(e){var n=i(e.parents);n.length>0?$y.set(t,r(n)):$y.set(t,[])}))}))])]),components:[]}};(function(e){e[e["None"]=0]="None",e[e["Both"]=1]="Both",e[e["Vertical"]=2]="Vertical"})(BU||(BU={}));var MY=function(e,t,n,r,i){var o={};return o.height=oV(r+t.top,OS(e),DS(e)),n===BU.Both&&(o.width=oV(i+t.left,TS(e),RS(e))),o},FY=function(e,t,n){var r=tt.fromDom(e.getContainer()),i=MY(e,t,n,ar(r),vr(r));ve(i,(function(e,t){return Kn(r,t,iV(e))})),ST(e)},NY=function(e){var t=!e.hasPlugin("autoresize"),n=e.getParam("resize",t);return!1===n?BU.None:"both"===n?BU.Both:BU.Vertical},BY=function(e,t,n,r){var i=20,o=ur(n*i,r*i);return FY(e,o,t),B.some(!0)},IY=function(e,t){var n=NY(e);return n===BU.None?B.none():B.some(Wk("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:t.translate("Resize")},behaviours:[CY.config({mode:"mouse",repositionTarget:!1,onDrag:function(t,r,i){return FY(e,i,n)},blockerClass:"tox-blocker"}),Oy.config({mode:"special",onLeft:function(){return BY(e,n,-1,0)},onRight:function(){return BY(e,n,1,0)},onUp:function(){return BY(e,n,0,-1)},onDown:function(){return BY(e,n,0,1)}}),TR.config({}),Xy.config({})]},t.icons))},PY=function(e,t){var n,r=function(e,n,r){return $y.set(e,[kl(t.translate(["{0} "+r,n[r]]))])};return kx.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:fd([xE.button(t.isDisabled),vE(),TR.config({}),$y.config({}),eg.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),zy("wordcount-events",[Ws((function(e){var t=eg.getValue(e),n="words"===t.mode?"characters":"words";eg.setValue(e,{mode:n,count:t.count}),r(e,t.count,n)})),qs((function(t){e.on("wordCountUpdate",(function(e){var n=eg.getValue(t).mode;eg.setValue(t,{mode:n,count:e.wordCount}),r(t,e.wordCount,n)}))}))])]),eventOrder:(n={},n[ts()]=["disabling","alloy.base.behaviour","wordcount-events"],n)})},$Y=function(e,t){var n=function(){var e=Fk.translate(["Powered by {0}","Tiny"]),t='<a href="https://www.tiny.cloud/?utm_campaign=editor_referral&amp;utm_medium=poweredby&amp;utm_source=tinymce&amp;utm_content=v5" rel="noopener" target="_blank" tabindex="-1" aria-label="'+e+'">'+e+"</a>";return{dom:{tag:"span",classes:["tox-statusbar__branding"],innerHtml:t}}},r=function(){var r=[];return e.getParam("elementpath",!0,"boolean")&&r.push(LY(e,{},t)),e.hasPlugin("wordcount")&&r.push(PY(e,t)),e.getParam("branding",!0,"boolean")&&r.push(n()),r.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container"]},components:r}]:[]},i=function(){var n=r(),i=IY(e,t);return n.concat(i.toArray())};return{dom:{tag:"div",classes:["tox-statusbar"]},components:i()}},jY=function(e){var t,n=e.inline,r=n?hV:nV,i=eE(e)?Gz:Jj,o=B.none(),a=tn(),s=a.browser.isIE(),c=s?["tox-platform-ie"]:[],l=a.deviceType.isTouch(),u="tox-platform-touch",d=l?[u]:[],f=VS(e),p=JS(e),h=Fk.isRtl()?{attributes:{dir:"rtl"}}:{},m={attributes:(t={},t[If]=f?Pd.BottomToTop:Pd.TopToBottom,t)},v=function(){return o.bind(pU.getHeader)},b=function(){return i.isDocked(v)},_=function(){Kn(J.element,"width",document.body.clientWidth+"px")},y=function(){var e=ln(In(),p)&&"grid"===Qn(p,"display"),t={dom:O({tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(c).concat(d)},h),behaviours:fd([Ph.config({useFixed:function(){return b()}})])},n={dom:{styles:{width:document.body.clientWidth+"px"}},events:Ts([Ls(ds(),_)])};return wi(t,e?n:{})},w=El(y()),x=function(){return ri.value(w)},k=Ex({dom:{tag:"div",classes:["tox-anchorbar"]}}),C=function(){return o.bind((function(e){return k.getOpt(e)})).getOrDie("Could not find a anchor bar element")},A=function(){return o.bind((function(e){return pU.getToolbar(e)})).getOrDie("Could not find more toolbar element")},S=function(){return o.bind((function(e){return pU.getThrobber(e)})).getOrDie("Could not find throbber element")},E=Mj(w,e,C),T=pU.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:E,onEscape:function(){e.focus()}}),R=qS(e),D=pU.parts.toolbar(O({dom:{tag:"div",classes:["tox-toolbar"]},getSink:x,providers:E.shared.providers,onEscape:function(){e.focus()},type:R,lazyToolbar:A,lazyHeader:function(){return v().getOrDie("Could not find header element")}},m)),L=pU.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:E.shared.providers,onEscape:function(){e.focus()},type:R}),M=pU.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),F=pU.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}}),N=pU.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:E}),I=e.getParam("statusbar",!0,"boolean"),P=I&&!n?B.some($Y(e,E.shared.providers)):B.none(),$={dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[M,F]},j=jS(e),z=PS(e),q=IS(e),H=function(){return j?[L]:z?[D]:[]},U=pU.parts.header({dom:O({tag:"div",classes:["tox-editor-header"]},m),components:ne([q?[T]:[],H(),QS(e)?[]:[k.asSpec()]]),sticky:eE(e),editor:e,sharedBackstage:E.shared}),W=ne([f?[]:[U],n?[]:[$],f?[U]:[]]),V={dom:{tag:"div",classes:["tox-editor-container"]},components:W},G=ne([[V],n?[]:P.toArray(),[N]]),K=ZS(e),Y=O(O({role:"application"},Fk.isRtl()?{dir:"rtl"}:{}),K?{"aria-hidden":"true"}:{}),X=El(pU.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(n?["tox-tinymce-inline"]:[]).concat(f?["tox-tinymce--toolbar-bottom"]:[]).concat(d).concat(c),styles:O({visibility:"hidden"},K?{opacity:"0",border:"0"}:{}),attributes:Y},components:G,behaviours:fd([vE(),Iv.config({disableClass:"tox-tinymce--disabled"}),Oy.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"})])}));o=B.some(X),e.shortcuts.add("alt+F9","focus menubar",(function(){pU.focusMenubar(X)})),e.shortcuts.add("alt+F10","focus toolbar",(function(){pU.focusToolbar(X)})),e.addCommand("ToggleToolbarDrawer",(function(){pU.toggleToolbarDrawer(X)})),e.addQueryStateHandler("ToggleToolbarDrawer",(function(){return pU.isToolbarDrawerToggled(X)}));var Q=_R(X),J=_R(w);Fj(e,Q,J);var Z=function(){var e={broadcastAll:J.broadcast,broadcastOn:J.broadcastOn,register:g};return{channels:e}},ee=function(){var t=iV(sV(e)),n=iV(lV(e));return e.inline||(tr("div","width",n)&&Kn(X.element,"width",n),tr("div","height",t)?Kn(X.element,"height",t):Kn(X.element,"height","200px")),t},te=function(){i.setup(e,E.shared,v),DG(e,E),fK(e,x,E),zq(e),dH(e,S,E.shared),be(US(e),(function(t,n){e.ui.registry.addGroupToolbarButton(n,t)}));var t=e.ui.registry.getAll(),n=t.buttons,o=t.menuItems,a=t.contextToolbars,s=t.sidebars,c=$S(e),l={menuItems:o,menus:rE(e),menubar:iE(e),toolbar:c.getOrThunk((function(){return oE(e)})),allowToolbarGroups:R===QC.floating,buttons:n,sidebar:s};tG(e,a,w,{backstage:E}),RY(e,w);var u=e.getElement(),d=ee(),f={mothership:Q,uiMothership:J,outerContainer:X},p={targetNode:u,height:d};return r.render(e,f,l,E,p)};return{mothership:Q,uiMothership:J,backstage:E,renderUI:te,getUi:Z}},zY=function(e,t){var n=B.from(qn(e,"id")).fold((function(){var e=ic("dialog-describe");return jn(t,"id",e),e}),w);jn(e,"aria-describedby",n)},qY=function(e,t){var n=Hn(e,"id").fold((function(){var e=ic("dialog-label");return jn(t,"id",e),e}),w);jn(e,"aria-labelledby",n)},HY=y([Oo("lazySink"),jo("dragBlockClass"),ea("getBounds",Zr),Ko("useTabstopAt",E),Ko("eventOrder",{}),tg("modalBehaviours",[Oy]),cu("onExecute"),uu("onEscape")]),UY={sketch:w},WY=y([Ng({name:"draghandle",overrides:function(e,t){return{behaviours:fd([CY.config({mode:"mouse",getTarget:function(e){return Bl(e,'[role="dialog"]').getOr(e)},blockerClass:e.dragBlockClass.getOrDie(new Error("The drag blocker class was not specified for a dialog with a drag handle: \n"+JSON.stringify(t,null,2)).message),getBounds:e.getDragBounds})])}}}),Mg({schema:[Oo("dom")],name:"title"}),Mg({factory:UY,schema:[Oo("dom")],name:"close"}),Mg({factory:UY,schema:[Oo("dom")],name:"body"}),Ng({factory:UY,schema:[Oo("dom")],name:"footer"}),Fg({factory:{sketch:function(e,t){return O(O({},e),{dom:t.dom,components:t.components})}},schema:[Ko("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Ko("components",[])],name:"blocker"})]),VY=function(e,t,n,r){var i,o=rf(),a=function(t){o.set(t);var n=e.lazySink(t).getOrDie(),i=r.blocker(),a=n.getSystem().build(O(O({},i),{components:i.components.concat([Tl(t)]),behaviours:fd([Xy.config({}),zy("dialog-blocker-events",[zs(Pa(),(function(){Oy.focusIn(t)}))])])}));Uh(n,a),Oy.focusIn(t)},s=function(e){o.clear(),vn(e.element).each((function(t){e.getSystem().getByDom(t).each((function(e){Gh(e)}))}))},c=function(t){return Yg(t,e,"body")},l=function(t){return Yg(t,e,"footer")},u=function(e,t){rH.block(e,t)},d=function(e){rH.unblock(e)},f=ic("modal-events"),p=O(O({},e.eventOrder),(i={},i[fs()]=[f].concat(e.eventOrder["alloy.system.attached"]||[]),i));return{uid:e.uid,dom:e.dom,components:t,apis:{show:a,hide:s,getBody:c,getFooter:l,setIdle:d,setBusy:u},eventOrder:p,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:rg(e.modalBehaviours,[$y.config({}),Oy.config({mode:"cyclic",onEnter:e.onExecute,onEscape:e.onEscape,useTabstopAt:e.useTabstopAt}),rH.config({getRoot:o.get}),zy(f,[qs((function(t){qY(t.element,Yg(t,e,"title").element),zY(t.element,Yg(t,e,"body").element)}))])])}},GY=pv({name:"ModalDialog",configFields:HY(),partFields:WY(),factory:VY,apis:{show:function(e,t){e.show(t)},hide:function(e,t){e.hide(t)},getBody:function(e,t){return e.getBody(t)},getFooter:function(e,t){return e.getFooter(t)},setBusy:function(e,t,n){e.setBusy(t,n)},setIdle:function(e,t){e.setIdle(t)}}}),KY=Zi([Lo("type"),Lo("name")].concat(qA)),YY=lo,XY=[So("name","name",Ci((function(){return ic("button-name")})),co),Ho("icon"),Jo("align","end",["start","end"]),Zo("primary",!1),Zo("disabled",!1)],QY=D(D([],XY,!0),[Lo("text")],!1),JY=D([Mo("type",["submit","cancel","custom"])],QY,!0),ZY=D([Mo("type",["menu"]),Ho("text"),Ho("tooltip"),Ho("icon"),$o("items",KY)],XY,!0),eX=Co("type",{submit:JY,cancel:JY,custom:JY,menu:ZY}),tX=[Lo("type"),Lo("text"),Mo("level",["info","warn","error","success"]),Lo("icon"),Ko("url","")],nX=Zi(tX),rX=function(e){return[Lo("type"),e]},iX=[Lo("type"),Lo("text"),Zo("disabled",!1),Zo("primary",!1),So("name","name",Ci((function(){return ic("button-name")})),co),Ho("icon"),Zo("borderless",!1)],oX=Zi(iX),aX=[Lo("type"),Lo("name"),Lo("label"),Zo("disabled",!1)],sX=Zi(aX),cX=lo,lX=[Lo("type"),Lo("name")],uX=lX.concat([Ho("label")]),dX=uX.concat([Ko("columns","auto")]),fX=Zi(dX),pX=io([Lo("value"),Lo("text"),Lo("icon")]),hX=uX,mX=Zi(hX),gX=co,vX=uX,bX=Zi(vX),_X=co,yX=lX.concat([Qo("tag","textarea"),Lo("scriptId"),Lo("scriptUrl"),ta("settings",void 0)]),wX=lX.concat([Qo("tag","textarea"),No("init")]),xX=vo((function(e){return yo("customeditor.old",Ji(wX),e).orThunk((function(){return yo("customeditor.new",Ji(yX),e)}))})),kX=co,CX=uX,AX=Zi(CX),SX=go(),EX=function(e){return[Lo("type"),Do("columns"),e]},TX=[Lo("type"),Lo("html"),Jo("presets","presentation",["presentation","document"])],OX=Zi(TX),RX=uX.concat([Zo("sandboxed",!0)]),DX=Zi(RX),LX=co,MX=uX.concat([Ro("currentState",Zi([Oo("blob"),Lo("url")]))]),FX=Zi(MX),NX=uX.concat([Ho("inputMode"),Ho("placeholder"),Zo("maximized",!1),Zo("disabled",!1)]),BX=Zi(NX),IX=co,PX=function(e){return[Lo("type"),Lo("label"),e]},$X=[Lo("text"),Lo("value")],jX=[Lo("text"),$o("items",Ao("items",(function(){return zX})))],zX=to([Zi($X),Zi(jX)]),qX=uX.concat([$o("items",zX),Zo("disabled",!1)]),HX=Zi(qX),UX=co,WX=uX.concat([Po("items",[Lo("text"),Lo("value")]),Xo("size",1),Zo("disabled",!1)]),VX=Zi(WX),GX=co,KX=uX.concat([Zo("constrain",!0),Zo("disabled",!1)]),YX=Zi(KX),XX=Zi([Lo("width"),Lo("height")]),QX=[Lo("type"),$o("header",co),$o("cells",eo(co))],JX=Zi(QX),ZX=uX.concat([Ho("placeholder"),Zo("maximized",!1),Zo("disabled",!1)]),eQ=Zi(ZX),tQ=co,nQ=uX.concat([Jo("filetype","file",["image","media","file"]),Ko("disabled",!1)]),rQ=Zi(nQ),iQ=Zi([Lo("value"),Ko("meta",{})]),oQ=function(e){return So("items","items",ki(),eo(vo((function(t){return yo("Checking item of "+e,aQ,t).fold((function(e){return ri.error(ko(e))}),(function(e){return ri.value(e)}))}))))},aQ=Xi((function(){return mo("type",{alertbanner:nX,bar:Zi(rX(oQ("bar"))),button:oX,checkbox:sX,colorinput:mX,colorpicker:bX,dropzone:AX,grid:Zi(EX(oQ("grid"))),iframe:DX,input:BX,listbox:HX,selectbox:VX,sizeinput:YX,textarea:eQ,urlinput:rQ,customeditor:xX,htmlpanel:OX,imagetools:FX,collection:fX,label:Zi(PX(oQ("label"))),table:JX,panel:cQ})})),sQ=[Lo("type"),Ko("classes",[]),$o("items",aQ)],cQ=Zi(sQ),lQ=[So("name","name",Ci((function(){return ic("tab-name")})),co),Lo("title"),$o("items",aQ)],uQ=[Lo("type"),Po("tabs",lQ)],dQ=Zi(uQ),fQ=QY,pQ=eX,hQ=Zi([Lo("title"),Ro("body",mo("type",{panel:cQ,tabpanel:dQ})),Qo("size","normal"),$o("buttons",pQ),Ko("initialData",{}),ea("onAction",g),ea("onChange",g),ea("onSubmit",g),ea("onClose",g),ea("onCancel",g),Ko("onTabChange",g)]),mQ=function(e){return yo("dialog",hQ,e)},gQ=Zi(D([Mo("type",["cancel","custom"])],fQ,!0)),vQ=Zi([Lo("title"),Lo("url"),qo("height"),qo("width"),Wo("buttons",gQ),ea("onAction",g),ea("onCancel",g),ea("onClose",g),ea("onMessage",g)]),bQ=function(e){return yo("dialog",vQ,e)},_Q=function(e){return a(e)?[e].concat(re(Ae(e),_Q)):s(e)?re(e,_Q):[]},yQ=function(e){return o(e.type)&&o(e.name)},wQ={checkbox:cX,colorinput:gX,colorpicker:_X,dropzone:SX,input:IX,iframe:LX,sizeinput:XX,selectbox:GX,listbox:UX,size:XX,textarea:tQ,urlinput:iQ,customeditor:kX,collection:pX,togglemenuitem:YY},xQ=function(e){return B.from(wQ[e.type])},kQ=function(e){return X(_Q(e),yQ)},CQ=function(e){var t=kQ(e),n=re(t,(function(e){return xQ(e).fold((function(){return[]}),(function(t){return[Ro(e.name,t)]}))}));return Zi(n)},AQ=function(e){var t=wo(mQ(e)),n=CQ(e),r=e.initialData;return{internalDialog:t,dataValidator:n,initialData:r}},SQ={open:function(e,t){var n=AQ(t);return e(n.internalDialog,n.initialData,n.dataValidator)},openUrl:function(e,t){var n=wo(bQ(t));return e(n)},redial:function(e){return AQ(e)}},EQ=function(e){var t=[],n={};return ve(e,(function(e,r){e.fold((function(){t.push(r)}),(function(e){n[r]=e}))})),t.length>0?ri.error(t):ri.value(n)},TQ=function(e,t){var n=Ex(qF.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"].concat(e.classes)},components:V(e.items,(function(e){return g$(n,e,t)}))}})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[n.asSpec()]}],behaviours:fd([Oy.config({mode:"acyclic",useTabstopAt:C(SN)}),ZF.memento(n),mN.memento(n,{postprocess:function(e){return EQ(e).fold((function(e){return{}}),w)}})])}},OQ=function(e,t){return{uid:e.uid,dom:e.dom,components:e.components,events:vw(e.action),behaviours:rg(e.tabButtonBehaviours,[Xy.config({}),Oy.config({mode:"execution",useSpace:!0,useEnter:!0}),eg.config({store:{mode:"memory",initialValue:e.value}})]),domModification:e.domModification}},RQ=fv({name:"TabButton",configFields:[Ko("uid",void 0),Oo("value"),So("dom","dom",Ei((function(){return{attributes:{role:"tab",id:ic("aria"),"aria-selected":"false"}}})),oo()),jo("action"),Ko("domModification",{}),tg("tabButtonBehaviours",[Xy,Oy,eg]),Oo("view")],factory:OQ}),DQ=y([Oo("tabs"),Oo("dom"),Ko("clickToDismiss",!1),tg("tabbarBehaviours",[rb,Oy]),ou(["tabClass","selectedClass"])]),LQ=Bg({factory:RQ,name:"tabs",unit:"tab",overrides:function(e){var t=function(e,t){rb.dehighlight(e,t),ks(e,_s(),{tabbar:e,button:t})},n=function(e,t){rb.highlight(e,t),ks(e,bs(),{tabbar:e,button:t})};return{action:function(r){var i=r.getSystem().getByUid(e.uid).getOrDie(),o=rb.isHighlighted(i,r),a=function(){return o&&e.clickToDismiss?t:o?g:n}();a(i,r)},domModification:{classes:[e.markers.tabClass]}}}}),MQ=y([LQ]),FQ=function(e,t,n,r){return{uid:e.uid,dom:e.dom,components:t,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:rg(e.tabbarBehaviours,[rb.config({highlightClass:e.markers.selectedClass,itemClass:e.markers.tabClass,onHighlight:function(e,t){jn(t.element,"aria-selected","true")},onDehighlight:function(e,t){jn(t.element,"aria-selected","false")}}),Oy.config({mode:"flow",getInitial:function(e){return rb.getHighlighted(e).map((function(e){return e.element}))},selector:"."+e.markers.tabClass,executeOnMove:!0})])}},NQ=pv({name:"Tabbar",configFields:DQ(),partFields:MQ(),factory:FQ}),BQ=function(e,t){return{uid:e.uid,dom:e.dom,behaviours:rg(e.tabviewBehaviours,[$y.config({})]),domModification:{attributes:{role:"tabpanel"}}}},IQ=fv({name:"Tabview",configFields:[tg("tabviewBehaviours",[$y])],factory:BQ}),PQ=y([Ko("selectFirst",!0),su("onChangeTab"),su("onDismissTab"),Ko("tabs",[]),tg("tabSectionBehaviours",[])]),$Q=Mg({factory:NQ,schema:[Oo("dom"),Io("markers",[Oo("tabClass"),Oo("selectedClass")])],name:"tabbar",defaults:function(e){return{tabs:e.tabs}}}),jQ=Mg({factory:IQ,name:"tabview"}),zQ=y([$Q,jQ]),qQ=function(e,t,n,r){var i=function(t){var n=eg.getValue(t);Kg(t,e,"tabview").each((function(r){var i=ee(e.tabs,(function(e){return e.value===n}));i.each((function(n){var i=n.view();Hn(t.element,"id").each((function(e){jn(r.element,"aria-labelledby",e)})),$y.set(r,i),e.onChangeTab(r,t,i)}))}))},o=function(t,n){Kg(t,e,"tabbar").each((function(e){n(e).each(Cs)}))};return{uid:e.uid,dom:e.dom,components:t,behaviours:ng(e.tabSectionBehaviours),events:Ts(ne([e.selectFirst?[qs((function(e,t){o(e,rb.getFirst)}))]:[],[Ls(bs(),(function(e,t){var n=t.event.button;i(n)})),Ls(_s(),(function(t,n){var r=n.event.button;e.onDismissTab(t,r)}))]])),apis:{getViewItems:function(t){return Kg(t,e,"tabview").map((function(e){return $y.contents(e)})).getOr([])},showTab:function(e,t){var n=function(e){var n=rb.getCandidates(e),r=ee(n,(function(e){return eg.getValue(e)===t}));return r.filter((function(t){return!rb.isHighlighted(e,t)}))};o(e,n)}}}},HQ=pv({name:"TabSection",configFields:PQ(),partFields:zQ(),factory:qQ,apis:{getViewItems:function(e,t){return e.getViewItems(t)},showTab:function(e,t,n){e.showTab(t,n)}}}),UQ=function(e,t,n){return V(e,(function(r,i){$y.set(n,e[i].view());var o=t.dom.getBoundingClientRect();return $y.set(n,[]),o.height}))},WQ=function(e){return de(le(e,(function(e,t){return e>t?-1:e<t?1:0})))},VQ=function(e,t,n){var r,i=mn(e).dom,o=Bl(e,".tox-dialog-wrap").getOr(e),a="fixed"===Qn(o,"position");r=a?Math.max(i.clientHeight,window.innerHeight):Math.max(i.offsetHeight,i.scrollHeight);var s=ar(t),c=t.dom.offsetLeft>=n.dom.offsetLeft+vr(n),l=c?Math.max(ar(n),s):s,u=parseInt(Qn(e,"margin-top"),10)||0,d=parseInt(Qn(e,"margin-bottom"),10)||0,f=ar(e)+u+d,p=f-l;return r-p},GQ=function(e,t){de(e).each((function(e){return HQ.showTab(t,e.value)}))},KQ=function(e,t){Kn(e,"height",t+"px"),tn().browser.isIE()?nr(e,"flex-basis"):Kn(e,"flex-basis",t+"px")},YQ=function(e,t,n){Bl(e,'[role="dialog"]').each((function(e){Pl(e,'[role="tablist"]').each((function(r){n.get().map((function(n){return Kn(t,"height","0"),Kn(t,"flex-basis","0"),Math.min(n,VQ(e,t,r))})).each((function(e){KQ(t,e)}))}))}))},XQ=function(e){return Pl(e,'[role="tabpanel"]')},QQ=function(e){var t=function(){var t=rf(),n=[qs((function(n){var r=n.element;XQ(r).each((function(i){Kn(i,"visibility","hidden"),n.getSystem().getByDom(i).toOptional().each((function(n){var r=UQ(e,i,n),o=WQ(r);o.fold(t.clear,t.set)})),YQ(r,i,t),nr(i,"visibility"),GQ(e,n),wx.requestAnimationFrame((function(){YQ(r,i,t)}))}))})),Ls(ds(),(function(e){var n=e.element;XQ(n).each((function(e){YQ(n,e,t)}))})),Ls(UR,(function(e,n){var r=e.element;XQ(r).each((function(e){var n=Ad(On(e));Kn(e,"visibility","hidden");var i=Zn(e,"height").map((function(e){return parseInt(e,10)}));nr(e,"height"),nr(e,"flex-basis");var o=e.dom.getBoundingClientRect().height,a=i.forall((function(e){return o>e}));a?(t.set(o),YQ(r,e,t)):i.each((function(t){KQ(e,t)})),nr(e,"visibility"),n.each(xd)}))}))],r=!1;return{extraEvents:n,selectFirst:r}}(),n=function(){var e=[],t=!0;return{extraEvents:e,selectFirst:t}}();return{smartTabHeight:t,naiveTabHeight:n}},JQ="send-data-to-section",ZQ="send-data-to-view",eJ=function(e,t){var n=ia({}),r=function(e){var t=eg.getValue(e),r=EQ(t).getOr({}),i=n.get(),o=wi(i,r);n.set(o)},i=function(e){var t=n.get();eg.setValue(e,t)},o=ia(null),a=V(e.tabs,(function(e){return{value:e.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"],innerHtml:t.shared.providers.translate(e.title)},view:function(){return[qF.sketch((function(n){return{dom:{tag:"div",classes:["tox-form"]},components:V(e.items,(function(e){return g$(n,e,t)})),formBehaviours:fd([Oy.config({mode:"acyclic",useTabstopAt:C(SN)}),zy("TabView.form.events",[qs(i),Hs(r)]),bd.config({channels:ha([{key:JQ,value:{onReceive:r}},{key:ZQ,value:{onReceive:i}}])})])}}))]}}})),s=QQ(a).smartTabHeight;return HQ.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:function(e,t,n){var r=eg.getValue(t);ks(e,HR,{name:r,oldName:o.get()}),o.set(r)},tabs:a,components:[HQ.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[NQ.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:fd([TR.config({})])}),HQ.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:s.selectFirst,tabSectionBehaviours:fd([zy("tabpanel",s.extraEvents),Oy.config({mode:"acyclic"}),bv.config({find:function(e){return de(HQ.getViewItems(e))}}),eg.config({store:{mode:"manual",getValue:function(e){return e.getSystem().broadcastOn([JQ],{}),n.get()},setValue:function(e,t){n.set(t),e.getSystem().broadcastOn([ZQ],{})}}})])})},tJ=ic("update-dialog"),nJ=ic("update-title"),rJ=ic("update-body"),iJ=ic("update-footer"),oJ=ic("body-send-message"),aJ=function(e,t,n,r){var i=function(e){switch(e.body.type){case"tabpanel":return[eJ(e.body,n)];default:return[TQ(e.body,n)]}},o=function(e,t){return B.some({isTabPanel:function(){return"tabpanel"===t.body.type}})},a={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:O(O({},t.map((function(e){return{id:e}})).getOr({})),r?a:{})},components:[],behaviours:fd([ZF.childAt(0),yW.config({channel:rJ,updateState:o,renderComponents:i,initialData:e})])}},sJ=function(e,t,n,r){return aJ(e,B.some(t),n,r)},cJ=function(e,t){var n=aJ(e,B.none(),t,!1);return GY.parts.body(n)},lJ=function(e){var t={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[kN({dom:{tag:"iframe",attributes:{src:e.url}},behaviours:fd([TR.config({}),Xy.config({})])})]}],behaviours:fd([Oy.config({mode:"acyclic",useTabstopAt:C(SN)})])};return GY.parts.body(t)},uJ=DE.deviceType.isTouch(),dJ=function(e,t){return{dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[e,t]}},fJ=function(e,t){return GY.parts.close(kx.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close")}},action:e,buttonBehaviours:fd([TR.config({})])}))},pJ=function(){return GY.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}})},hJ=function(e,t){return GY.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:Sx("<p>"+Mk(t.translate(e))+"</p>")}]}]})},mJ=function(e){return GY.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:e})},gJ=function(e,t){return[bR.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:e}),bR.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:t})]},vJ=function(e){var t,n="tox-dialog",r=n+"-wrap",i=r+"__backdrop",o=n+"__disable-scroll";return GY.sketch({lazySink:e.lazySink,onEscape:function(t){return e.onEscape(t),B.some(!0)},useTabstopAt:function(e){return!SN(e)},dom:{tag:"div",classes:[n].concat(e.extraClasses),styles:O({position:"relative"},e.extraStyles)},components:D([e.header,e.body],e.footer.toArray(),!0),parts:{blocker:{dom:Sx('<div class="'+r+'"></div>'),components:[{dom:{tag:"div",classes:uJ?[i,i+"--opaque"]:[i]}}]}},dragBlockClass:r,modalBehaviours:fd(D([Xy.config({}),zy("dialog-events",e.dialogEvents.concat([zs(Pa(),(function(e,t){Oy.focusIn(e)}))])),zy("scroll-lock",[qs((function(){ol(In(),o)})),Hs((function(){sl(In(),o)}))])],e.extraBehaviours,!0)),eventOrder:O((t={},t[ts()]=["dialog-events"],t[fs()]=["scroll-lock","dialog-events","alloy.base.behaviour"],t[ps()]=["alloy.base.behaviour","dialog-events","scroll-lock"],t),e.eventOrder)})},bJ=function(e){return kx.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":e.translate("Close"),title:e.translate("Close")}},components:[Wk("close",{tag:"div",classes:["tox-icon"]},e.icons)],action:function(e){xs(e,PR)}})},_J=function(e,t,n){var r=function(e){return[kl(n.translate(e.title))]};return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:O({},t.map((function(e){return{id:e}})).getOr({}))},components:r(e),behaviours:fd([yW.config({channel:nJ,renderComponents:r})])}},yJ=function(){return{dom:Sx('<div class="tox-dialog__draghandle"></div>')}},wJ=function(e,t,n){return bR.sketch({dom:Sx('<div class="tox-dialog__header"></div>'),components:[_J(e,B.some(t),n),yJ(),bJ(n)],containerBehaviours:fd([CY.config({mode:"mouse",blockerClass:"blocker",getTarget:function(e){return $l(e,'[role="dialog"]').getOrDie()},snaps:{getSnapPoints:function(){return[]},leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])})},xJ=function(e,t){var n=GY.parts.title(_J(e,B.none(),t)),r=GY.parts.draghandle(yJ()),i=GY.parts.close(bJ(t)),o=[n].concat(e.draggable?[r]:[]).concat([i]);return bR.sketch({dom:Sx('<div class="tox-dialog__header"></div>'),components:o})},kJ=function(e,t){return xJ({title:t.shared.providers.translate(e),draggable:t.dialog.isDraggableModal()},t.shared.providers)},CJ=function(e,t,n){return{dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":n.translate(e)},styles:{left:"0px",right:"0px",bottom:"0px",top:"0px",position:"absolute"}},behaviours:t,components:[{dom:Sx('<div class="tox-spinner"><div></div><div></div><div></div></div>')}]}},AJ=function(e,t,n){return{onClose:function(){return n.closeWindow()},onBlock:function(n){GY.setBusy(e(),(function(e,r){return CJ(n.message,r,t)}))},onUnblock:function(){GY.setIdle(e())}}},SJ=function(e,t,n,r){var i,o=function(e,t){return B.some(t)};return El(vJ(O(O({},e),{lazySink:r.shared.getSink,extraBehaviours:D([yW.config({channel:tJ,updateState:o,initialData:t}),mN.memory({})],e.extraBehaviours,!0),onEscape:function(e){xs(e,PR)},dialogEvents:n,eventOrder:(i={},i[es()]=[yW.name(),bd.name()],i[fs()]=["scroll-lock",yW.name(),"messages","dialog-events","alloy.base.behaviour"],i[ps()]=["alloy.base.behaviour","dialog-events","messages",yW.name(),"scroll-lock"],i)})))},EJ=function(e){var t=function(e){var t=V(e.items,(function(e){var t=ia(!1);return O(O({},e),{storage:t})}));return O(O({},e),{items:t})};return V(e,(function(e){return"menu"===e.type?t(e):e}))},TJ=function(e){return J(e,(function(e,t){if("menu"===t.type){var n=t;return J(n.items,(function(e,t){return e[t.name]=t.storage,e}),e)}return e}),{})},OJ=function(e,t){return[Ps(Pa(),AN),e(IR,(function(e,n){t.onClose(),n.onClose()})),e(PR,(function(e,t,n,r){t.onCancel(e),xs(r,IR)})),Ls(qR,(function(e,n){return t.onUnblock()})),Ls(zR,(function(e,n){return t.onBlock(n.event)}))]},RJ=function(e,t){var n=function(t,n){return Ls(t,(function(t,i){r(t,(function(r,o){n(e(),r,i.event,t)}))}))},r=function(e,t){yW.getState(e).get().each((function(n){t(n,e)}))};return D(D([],OJ(n,t),!0),[n($R,(function(e,t,n){t.onAction(e,{name:n.name})}))],!1)},DJ=function(e,t,n){var r=function(t,n){return Ls(t,(function(t,r){i(t,(function(i,o){n(e(),i,r.event,t)}))}))},i=function(e,t){yW.getState(e).get().each((function(n){t(n.internalDialog,e)}))};return D(D([],OJ(r,t),!0),[r(jR,(function(e,t){return t.onSubmit(e)})),r(BR,(function(e,t,n){t.onChange(e,{name:n.name})})),r($R,(function(e,t,r,i){var o=function(){return Oy.focusIn(i)},a=function(e){return Un(e,"disabled")||Hn(e,"aria-disabled").exists((function(e){return"true"===e}))},s=On(i.element),c=Ad(s);t.onAction(e,{name:r.name,value:r.value}),Ad(s).fold(o,(function(e){a(e)||c.exists((function(t){return fn(e,t)&&a(t)}))?o():n().toOptional().filter((function(t){return!fn(t.element,e)})).each(o)}))})),r(HR,(function(e,t,n){t.onTabChange(e,{newTabName:n.name,oldTabName:n.oldName})})),Hs((function(t){var n=e();eg.setValue(t,n.getData())}))],!1)},LJ={initUrlDialog:RJ,initDialog:DJ},MJ=function(e,t){return fI(e,e.type,t)},FJ=function(e,t,n){return ee(t,(function(e){return e.name===n})).bind((function(t){return t.memento.getOpt(e)}))},NJ=function(e,t){var n=t.map((function(e){return e.footerButtons})).getOr([]),r=Y(n,(function(e){return"start"===e.align})),i=function(e,t){return bR.sketch({dom:{tag:"div",classes:["tox-dialog__footer-"+e]},components:V(t,(function(e){return e.memento.asSpec()}))})},o=i("start",r.pass),a=i("end",r.fail);return[o,a]},BJ=function(e,t){var n=function(e,n){var r=V(n.buttons,(function(e){var n=Ex(MJ(e,t));return{name:e.name,align:e.align,memento:n}})),i=function(e,t){return FJ(e,r,t)};return B.some({lookupByName:i,footerButtons:r})};return{dom:Sx('<div class="tox-dialog__footer"></div>'),components:[],behaviours:fd([yW.config({channel:iJ,initialData:e,updateState:n,renderComponents:NJ})])}},IJ=function(e,t){return BJ(e,t)},PJ=function(e,t){return GY.parts.footer(BJ(e,t))},$J=function(e,t){var n=e.getRoot();if(n.getSystem().isConnected()){var r=bv.getCurrent(e.getFormWrapper()).getOr(e.getFormWrapper());return qF.getField(r,t).fold((function(){var n=e.getFooter(),i=yW.getState(n);return i.get().bind((function(e){return e.lookupByName(r,t)}))}),(function(e){return B.some(e)}))}return B.none()},jJ=function(e,t){var n=e.getRoot();return yW.getState(n).get().map((function(e){return wo(yo("data",e.dataValidator,t))})).getOr(t)},zJ=function(e,t,n){var r=function(t){var n=e.getRoot();n.getSystem().isConnected()&&t(n)},i=function(){var t=e.getRoot(),r=t.getSystem().isConnected()?e.getFormWrapper():t,i=eg.getValue(r),o=be(n,(function(e){return e.get()}));return O(O({},i),o)},a=function(t){r((function(r){var i=m.getData(),o=O(O({},i),t),a=jJ(e,o),s=e.getFormWrapper();eg.setValue(s,a),ve(n,(function(e,t){Ee(o,t)&&e.set(o[t])}))}))},s=function(t){$J(e,t).each(Iv.disable)},c=function(t){$J(e,t).each(Iv.enable)},l=function(t){$J(e,t).each(Xy.focus)},u=function(e){if(!o(e))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");r((function(t){ks(t,zR,{message:e})}))},d=function(){r((function(e){xs(e,qR)}))},f=function(t){r((function(n){var r=e.getBody(),i=yW.getState(r);i.get().exists((function(e){return e.isTabPanel()}))&&bv.getCurrent(r).each((function(e){HQ.showTab(e,t)}))}))},p=function(e){r((function(n){var r=t(e);n.getSystem().broadcastOn([tJ],r),n.getSystem().broadcastOn([nJ],r.internalDialog),n.getSystem().broadcastOn([rJ],r.internalDialog),n.getSystem().broadcastOn([iJ],r.internalDialog),m.setData(r.initialData)}))},h=function(){r((function(e){xs(e,IR)}))},m={getData:i,setData:a,disable:s,enable:c,focus:l,block:u,unblock:d,showTab:f,redial:p,close:h};return m},qJ=function(e){switch(e){case"large":return["tox-dialog--width-lg"];case"medium":return["tox-dialog--width-md"];default:return[]}},HJ=function(e,t,n){var r=kJ(e.internalDialog.title,n),i=cJ({body:e.internalDialog.body},n),o=EJ(e.internalDialog.buttons),a=TJ(o),s=PJ({buttons:o},n),c=LJ.initDialog((function(){return p}),AJ((function(){return d}),n.shared.providers,t),n.shared.getSink),l=qJ(e.internalDialog.size),u={header:r,body:i,footer:B.some(s),extraClasses:l,extraBehaviours:[],extraStyles:{}},d=SJ(u,e,c,n),f=function(){var e=function(){var e=GY.getBody(d);return bv.getCurrent(e).getOr(e)};return{getRoot:y(d),getBody:function(){return GY.getBody(d)},getFooter:function(){return GY.getFooter(d)},getFormWrapper:e}}(),p=zJ(f,t.redial,a);return{dialog:d,instanceApi:p}},UJ=function(e,t,n,r){var i,o,a=ic("dialog-label"),s=ic("dialog-content"),c=function(e,t){return B.some(t)},l=Ex(wJ({title:e.internalDialog.title,draggable:!0},a,n.shared.providers)),u=Ex(sJ({body:e.internalDialog.body},s,n,r)),d=EJ(e.internalDialog.buttons),f=TJ(d),p=Ex(IJ({buttons:d},n)),h=LJ.initDialog((function(){return g}),{onBlock:function(e){rH.block(m,(function(t,r){return CJ(e.message,r,n.shared.providers)}))},onUnblock:function(){rH.unblock(m)},onClose:function(){return t.closeWindow()}},n.shared.getSink),m=El({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline"],attributes:(i={role:"dialog"},i["aria-labelledby"]=a,i["aria-describedby"]=s,i)},eventOrder:(o={},o[es()]=[yW.name(),bd.name()],o[ts()]=["execute-on-form"],o[fs()]=["reflecting","execute-on-form"],o),behaviours:fd([Oy.config({mode:"cyclic",onEscape:function(e){return xs(e,IR),B.some(!0)},useTabstopAt:function(e){return!SN(e)&&("button"!==st(e)||"disabled"!==qn(e,"disabled"))}}),yW.config({channel:tJ,updateState:c,initialData:e}),Xy.config({}),zy("execute-on-form",h.concat([zs(Pa(),(function(e,t){Oy.focusIn(e)}))])),rH.config({getRoot:function(){return B.some(m)}}),$y.config({}),mN.memory({})]),components:[l.asSpec(),u.asSpec(),p.asSpec()]}),g=zJ({getRoot:y(m),getFooter:function(){return p.get(m)},getBody:function(){return u.get(m)},getFormWrapper:function(){var e=u.get(m);return bv.getCurrent(e).getOr(e)}},t.redial,f);return{dialog:m,instanceApi:g}},WJ=tinymce.util.Tools.resolve("tinymce.util.URI"),VJ=function(e){var t=function(t){e.getSystem().isConnected()&&t(e)},n=function(e){if(!o(e))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");t((function(t){ks(t,zR,{message:e})}))},r=function(){t((function(e){xs(e,qR)}))},i=function(){t((function(e){xs(e,IR)}))},a=function(e){t((function(t){t.getSystem().broadcastOn([oJ],e)}))};return{block:n,unblock:r,close:i,sendMessage:a}},GJ=["insertContent","setContent","execCommand","close","block","unblock"],KJ=function(e){return a(e)&&-1!==GJ.indexOf(e.mceAction)},YJ=function(e){return!KJ(e)&&a(e)&&Ee(e,"mceAction")},XJ=function(e,t,n){switch(n.mceAction){case"insertContent":e.insertContent(n.content);break;case"setContent":e.setContent(n.content);break;case"execCommand":var r=!!l(n.ui)&&n.ui;e.execCommand(n.cmd,r,n.value);break;case"close":t.close();break;case"block":t.block(n.message);break;case"unblock":t.unblock();break}},QJ=function(e,t,n,r){var i,o=kJ(e.title,r),a=lJ(e),s=e.buttons.bind((function(e){return 0===e.length?B.none():B.some(PJ({buttons:e},r))})),c=LJ.initUrlDialog((function(){return v}),AJ((function(){return g}),r.shared.providers,t)),l=O(O({},e.height.fold((function(){return{}}),(function(e){return{height:e+"px","max-height":e+"px"}}))),e.width.fold((function(){return{}}),(function(e){return{width:e+"px","max-width":e+"px"}}))),u=e.width.isNone()&&e.height.isNone()?["tox-dialog--width-lg"]:[],d=new WJ(e.url,{base_uri:new WJ(window.location.href)}),f=d.protocol+"://"+d.host+(d.port?":"+d.port:""),p=tf(),h=[zy("messages",[qs((function(){var t=af(tt.fromDom(window),"message",(function(t){if(d.isSameOrigin(new WJ(t.raw.origin))){var r=t.raw.data;KJ(r)?XJ(n,v,r):YJ(r)&&e.onMessage(v,r)}}));p.set(t)})),Hs(p.clear)]),bd.config({channels:(i={},i[oJ]={onReceive:function(e,t){Pl(e.element,"iframe").each((function(e){var n=e.dom.contentWindow;n.postMessage(t,f)}))}},i)})],m={header:o,body:a,footer:s,extraClasses:u,extraBehaviours:h,extraStyles:l},g=SJ(m,e,c,r),v=VJ(g);return{dialog:g,instanceApi:v}},JJ=function(e){var t=e.backstage.shared,n=function(n,r){var i=function(){GY.hide(c),r()},o=Ex(fI({name:"close-alert",text:"OK",primary:!0,align:"end",disabled:!1,icon:B.none()},"cancel",e.backstage)),a=pJ(),s=fJ(i,t.providers),c=El(vJ({lazySink:function(){return t.getSink()},header:dJ(a,s),body:hJ(n,t.providers),footer:B.some(mJ(gJ([],[o.asSpec()]))),onEscape:i,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Ls(PR,i)],eventOrder:{}}));GY.show(c);var l=o.get(c);Xy.focus(l)};return{open:n}},ZJ=function(e){var t=e.backstage.shared,n=function(n,r){var i=function(e){GY.hide(l),r(e)},o=Ex(fI({name:"yes",text:"Yes",primary:!0,align:"end",disabled:!1,icon:B.none()},"submit",e.backstage)),a=fI({name:"no",text:"No",primary:!1,align:"end",disabled:!1,icon:B.none()},"cancel",e.backstage),s=pJ(),c=fJ((function(){return i(!1)}),t.providers),l=El(vJ({lazySink:function(){return t.getSink()},header:dJ(s,c),body:hJ(n,t.providers),footer:B.some(mJ(gJ([],[a,o.asSpec()]))),onEscape:function(){return i(!1)},extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Ls(PR,(function(){return i(!1)})),Ls(jR,(function(){return i(!0)}))],eventOrder:{}}));GY.show(l);var u=o.get(l);Xy.focus(u)};return{open:n}},eZ=function(e,t){return wo(yo("data",t,e))},tZ=function(e){return WO(e,".tox-alert-dialog")||WO(e,".tox-confirm-dialog")},nZ=function(e,t,n){return t&&n?[]:[Dz.config({contextual:{lazyContext:function(){return B.some(Qr(tt.fromDom(e.getContentAreaContainer())))},fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"]})]},rZ=function(e){var t=e.backstage,n=e.editor,r=eE(n),i=JJ(e),o=ZJ(e),a=function(e,n,r){return void 0!==n&&"toolbar"===n.inline?u(e,t.shared.anchors.inlineDialog(),r,n.ariaAttrs):void 0!==n&&"cursor"===n.inline?u(e,t.shared.anchors.cursor(),r,n.ariaAttrs):l(e,r)},s=function(e,t){return c(e,t)},c=function(e,r){var i=function(e){var i=QJ(e,{closeWindow:function(){GY.hide(i.dialog),r(i.instanceApi)}},n,t);return GY.show(i.dialog),i.instanceApi};return SQ.openUrl(i,e)},l=function(e,n){var r=function(e,r,i){var o=r,a={dataValidator:i,initialData:o,internalDialog:e},s=HJ(a,{redial:SQ.redial,closeWindow:function(){GY.hide(s.dialog),n(s.instanceApi)}},t);return GY.show(s.dialog),s.instanceApi.setData(o),s.instanceApi};return SQ.open(r,e)},u=function(e,i,o,a){var s=function(e,s,c){var l=eZ(s,c),u=rf(),d=t.shared.header.isPositionedAtTop(),f={dataValidator:c,initialData:l,internalDialog:e},p=function(){return u.on((function(e){tx.reposition(e),Dz.refresh(e)}))},h=UJ(f,{redial:SQ.redial,closeWindow:function(){u.on(tx.hide),n.off("ResizeEditor",p),u.clear(),o(h.instanceApi)}},t,a),m=El(tx.sketch(O(O({lazySink:t.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:{}},d?{}:{fireRepositionEventInstead:{}}),{inlineBehaviours:fd(D([zy("window-manager-inline-events",[Ls(hs(),(function(e,t){xs(h.dialog,PR)}))])],nZ(n,r,d),!0)),isExtraPart:function(e,t){return tZ(t)}})));return u.set(m),tx.showWithin(m,Tl(h.dialog),{anchor:i},B.some(In())),r&&d||(Dz.refresh(m),n.on("ResizeEditor",p)),h.instanceApi.setData(l),Oy.focusIn(h.dialog),h.instanceApi};return SQ.open(s,e)},d=function(e,t){o.open(e,(function(e){t(e)}))},f=function(e,t){i.open(e,(function(){t()}))},p=function(e){e.close()};return{open:a,openUrl:s,alert:f,close:p,confirm:d}};function iZ(){T.add("silver",(function(e){var t=jY(e),n=t.uiMothership,r=t.backstage,i=t.renderUI,o=t.getUi;UO.register(e,r.shared);var a=rZ({editor:e,backstage:r});return{renderUI:i,getWindowManagerImpl:y(a),getNotificationManagerImpl:function(){return Xk(e,{backstage:r},n)},ui:o()}}))}iZ()})()}).call(this,n("c8ba"))},"0366":function(e,t,n){"use strict";var r=n("4625"),i=n("59ed"),o=n("40d5"),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},"03d6":function(e,t,n){var r=n("9c0e"),i=n("6ca1"),o=n("39ad")(!1),a=n("5a94")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);while(t.length>c)r(s,n=t[c++])&&(~o(l,n)||l.push(n));return l}},"044b":function(e,t){function n(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&n(e.slice(0,0))}
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return null!=e&&(n(e)||r(e)||!!e._isBuffer)}},"04d1":function(e,t,n){"use strict";var r=n("342f"),i=r.match(/firefox\/(\d+)/i);e.exports=!!i&&+i[1]},"04f8":function(e,t,n){"use strict";var r=n("2d00"),i=n("d039"),o=n("da84"),a=o.String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"051b":function(e,t,n){var r=n("1a14"),i=n("10db");e.exports=n("0bad")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"057f":function(e,t,n){"use strict";var r=n("c6b6"),i=n("fc6a"),o=n("241c").f,a=n("f36a"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(e){try{return o(e)}catch(t){return a(s)}};e.exports.f=function(e){return s&&"Window"===r(e)?c(e):o(i(e))}},"05f5":function(e,t,n){var r=n("7a41"),i=n("ef08").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"061c":function(e,t,n){(function(){var e="ace",t=function(){return this}();if(t||"undefined"==typeof window||(t=window),e||"undefined"===typeof acequirejs){var n=function(e,t,r){"string"===typeof e?(2==arguments.length&&(r=t),n.modules[e]||(n.payloads[e]=r,n.modules[e]=null)):n.original&&n.original.apply(this,arguments)};n.modules={},n.payloads={};var r=function(e,t,n){if("string"===typeof t){var r=a(e,t);if(void 0!=r)return n&&n(),r}else if("[object Array]"===Object.prototype.toString.call(t)){for(var o=[],s=0,c=t.length;s<c;++s){var l=a(e,t[s]);if(void 0==l&&i.original)return;o.push(l)}return n&&n.apply(null,o)||!0}},i=function(e,t){var n=r("",e,t);return void 0==n&&i.original?i.original.apply(this,arguments):n},o=function(e,t){if(-1!==t.indexOf("!")){var n=t.split("!");return o(e,n[0])+"!"+o(e,n[1])}if("."==t.charAt(0)){var r=e.split("/").slice(0,-1).join("/");t=r+"/"+t;while(-1!==t.indexOf(".")&&i!=t){var i=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return t},a=function(e,t){t=o(e,t);var i=n.modules[t];if(!i){if(i=n.payloads[t],"function"===typeof i){var a={},s={id:t,uri:"",exports:a,packaged:!0},c=function(e,n){return r(t,e,n)},l=i(c,a,s);a=l||s.exports,n.modules[t]=a,delete n.payloads[t]}i=n.modules[t]=a||i}return i};s(e)}function s(e){var r=t;e&&(t[e]||(t[e]={}),r=t[e]),r.define&&r.define.packaged||(n.original=r.define,r.define=n,r.define.packaged=!0),r.acequire&&r.acequire.packaged||(i.original=r.acequire,r.acequire=i,r.acequire.packaged=!0)}})(),ace.define("ace/lib/regexp",["require","exports","module"],(function(e,t,n){"use strict";var r={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},i=void 0===r.exec.call(/()??/,"")[1],o=function(){var e=/^/g;return r.test.call(e,""),!e.lastIndex}();function a(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.extended?"x":"")+(e.sticky?"y":"")}function s(e,t,n){if(Array.prototype.indexOf)return e.indexOf(t,n);for(var r=n||0;r<e.length;r++)if(e[r]===t)return r;return-1}o&&i||(RegExp.prototype.exec=function(e){var t,n,c=r.exec.apply(this,arguments);if("string"==typeof e&&c){if(!i&&c.length>1&&s(c,"")>-1&&(n=RegExp(this.source,r.replace.call(a(this),"g","")),r.replace.call(e.slice(c.index),n,(function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(c[e]=void 0)}))),this._xregexp&&this._xregexp.captureNames)for(var l=1;l<c.length;l++)t=this._xregexp.captureNames[l-1],t&&(c[t]=c[l]);!o&&this.global&&!c[0].length&&this.lastIndex>c.index&&this.lastIndex--}return c},o||(RegExp.prototype.test=function(e){var t=r.exec.call(this,e);return t&&this.global&&!t[0].length&&this.lastIndex>t.index&&this.lastIndex--,!!t}))})),ace.define("ace/lib/es5-shim",["require","exports","module"],(function(e,t,n){function r(){}Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError("Function.prototype.bind called on incompatible "+t);var n=f.call(arguments,1),i=function(){if(this instanceof i){var r=t.apply(this,n.concat(f.call(arguments)));return Object(r)===r?r:this}return t.apply(e,n.concat(f.call(arguments)))};return t.prototype&&(r.prototype=t.prototype,i.prototype=new r,r.prototype=null),i});var i,o,a,s,c,l=Function.prototype.call,u=Array.prototype,d=Object.prototype,f=u.slice,p=l.bind(d.toString),h=l.bind(d.hasOwnProperty);if((c=h(d,"__defineGetter__"))&&(i=l.bind(d.__defineGetter__),o=l.bind(d.__defineSetter__),a=l.bind(d.__lookupGetter__),s=l.bind(d.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t,n=[];if(n.splice.apply(n,e(20)),n.splice.apply(n,e(26)),t=n.length,n.splice(5,0,"XXX"),n.length,t+1==n.length)return!0}()){var m=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?m.apply(this,[void 0===e?0:e,void 0===t?this.length-e:t].concat(f.call(arguments,2))):[]}}else Array.prototype.splice=function(e,t){var n=this.length;e>0?e>n&&(e=n):void 0==e?e=0:e<0&&(e=Math.max(n+e,0)),e+t<n||(t=n-e);var r=this.slice(e,e+t),i=f.call(arguments,2),o=i.length;if(e===n)o&&this.push.apply(this,i);else{var a=Math.min(t,n-e),s=e+a,c=s+o-a,l=n-s,u=n-a;if(c<s)for(var d=0;d<l;++d)this[c+d]=this[s+d];else if(c>s)for(d=l;d--;)this[c+d]=this[s+d];if(o&&e===u)this.length=u,this.push.apply(this,i);else for(this.length=u+o,d=0;d<o;++d)this[e+d]=i[d]}return r};Array.isArray||(Array.isArray=function(e){return"[object Array]"==p(e)});var g,v=Object("a"),b="a"!=v[0]||!(0 in v);if(Array.prototype.forEach||(Array.prototype.forEach=function(e){var t=N(this),n=b&&"[object String]"==p(this)?this.split(""):t,r=arguments[1],i=-1,o=n.length>>>0;if("[object Function]"!=p(e))throw new TypeError;while(++i<o)i in n&&e.call(r,n[i],i,t)}),Array.prototype.map||(Array.prototype.map=function(e){var t=N(this),n=b&&"[object String]"==p(this)?this.split(""):t,r=n.length>>>0,i=Array(r),o=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var a=0;a<r;a++)a in n&&(i[a]=e.call(o,n[a],a,t));return i}),Array.prototype.filter||(Array.prototype.filter=function(e){var t,n=N(this),r=b&&"[object String]"==p(this)?this.split(""):n,i=r.length>>>0,o=[],a=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var s=0;s<i;s++)s in r&&(t=r[s],e.call(a,t,s,n)&&o.push(t));return o}),Array.prototype.every||(Array.prototype.every=function(e){var t=N(this),n=b&&"[object String]"==p(this)?this.split(""):t,r=n.length>>>0,i=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var o=0;o<r;o++)if(o in n&&!e.call(i,n[o],o,t))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(e){var t=N(this),n=b&&"[object String]"==p(this)?this.split(""):t,r=n.length>>>0,i=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var o=0;o<r;o++)if(o in n&&e.call(i,n[o],o,t))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(e){var t=N(this),n=b&&"[object String]"==p(this)?this.split(""):t,r=n.length>>>0;if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var i,o=0;if(arguments.length>=2)i=arguments[1];else do{if(o in n){i=n[o++];break}if(++o>=r)throw new TypeError("reduce of empty array with no initial value")}while(1);for(;o<r;o++)o in n&&(i=e.call(void 0,i,n[o],o,t));return i}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(e){var t=N(this),n=b&&"[object String]"==p(this)?this.split(""):t,r=n.length>>>0;if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");if(!r&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var i,o=r-1;if(arguments.length>=2)i=arguments[1];else do{if(o in n){i=n[o--];break}if(--o<0)throw new TypeError("reduceRight of empty array with no initial value")}while(1);do{o in this&&(i=e.call(void 0,i,n[o],o,t))}while(o--);return i}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(e){var t=b&&"[object String]"==p(this)?this.split(""):N(this),n=t.length>>>0;if(!n)return-1;var r=0;for(arguments.length>1&&(r=F(arguments[1])),r=r>=0?r:Math.max(0,n+r);r<n;r++)if(r in t&&t[r]===e)return r;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(e){var t=b&&"[object String]"==p(this)?this.split(""):N(this),n=t.length>>>0;if(!n)return-1;var r=n-1;for(arguments.length>1&&(r=Math.min(r,F(arguments[1]))),r=r>=0?r:n-Math.abs(r);r>=0;r--)if(r in t&&e===t[r])return r;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__||(e.constructor?e.constructor.prototype:d)}),!Object.getOwnPropertyDescriptor){var _="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(e,t){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError(_+e);if(h(e,t)){var n;if(n={enumerable:!0,configurable:!0},c){var r=e.__proto__;e.__proto__=d;var i=a(e,t),o=s(e,t);if(e.__proto__=r,i||o)return i&&(n.get=i),o&&(n.set=o),n}return n.value=e[t],n}}}(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)}),Object.create)||(g=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(e,t){var n;if(null===e)n=g();else{if("object"!=typeof e)throw new TypeError("typeof prototype["+typeof e+"] != 'object'");var r=function(){};r.prototype=e,n=new r,n.__proto__=e}return void 0!==t&&Object.defineProperties(n,t),n});function y(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(t){}}if(Object.defineProperty){var w=y({}),x="undefined"==typeof document||y(document.createElement("div"));if(!w||!x)var k=Object.defineProperty}if(!Object.defineProperty||k){var C="Property description must be an object: ",A="Object.defineProperty called on non-object: ",S="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(e,t,n){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError(A+e);if("object"!=typeof n&&"function"!=typeof n||null===n)throw new TypeError(C+n);if(k)try{return k.call(Object,e,t,n)}catch(l){}if(h(n,"value"))if(c&&(a(e,t)||s(e,t))){var r=e.__proto__;e.__proto__=d,delete e[t],e[t]=n.value,e.__proto__=r}else e[t]=n.value;else{if(!c)throw new TypeError(S);h(n,"get")&&i(e,t,n.get),h(n,"set")&&o(e,t,n.set)}return e}}Object.defineProperties||(Object.defineProperties=function(e,t){for(var n in t)h(t,n)&&Object.defineProperty(e,n,t[n]);return e}),Object.seal||(Object.seal=function(e){return e}),Object.freeze||(Object.freeze=function(e){return e});try{Object.freeze((function(){}))}catch(B){Object.freeze=function(e){return function(t){return"function"==typeof t?t:e(t)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(e){return e}),Object.isSealed||(Object.isSealed=function(e){return!1}),Object.isFrozen||(Object.isFrozen=function(e){return!1}),Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)===e)throw new TypeError;var t="";while(h(e,t))t+="?";e[t]=!0;var n=h(e,t);return delete e[t],n}),!Object.keys){var E=!0,T=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],O=T.length;for(var R in{toString:null})E=!1;Object.keys=function(e){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.keys called on a non-object");var t=[];for(var n in e)h(e,n)&&t.push(n);if(E)for(var r=0,i=O;r<i;r++){var o=T[r];h(e,o)&&t.push(o)}return t}}Date.now||(Date.now=function(){return(new Date).getTime()});var D="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff";if(!String.prototype.trim||D.trim()){D="["+D+"]";var L=new RegExp("^"+D+D+"*"),M=new RegExp(D+D+"*$");String.prototype.trim=function(){return String(this).replace(L,"").replace(M,"")}}function F(e){return e=+e,e!==e?e=0:0!==e&&e!==1/0&&e!==-1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e}var N=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)}})),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],(function(e,t,n){"use strict";e("./regexp"),e("./es5-shim")})),ace.define("ace/lib/dom",["require","exports","module"],(function(e,t,n){"use strict";var r="http://www.w3.org/1999/xhtml";t.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName("head")[0]||e.documentElement},t.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||r,e):document.createElement(e)},t.hasCssClass=function(e,t){var n=(e.className+"").split(/\s+/g);return-1!==n.indexOf(t)},t.addCssClass=function(e,n){t.hasCssClass(e,n)||(e.className+=" "+n)},t.removeCssClass=function(e,t){var n=e.className.split(/\s+/g);while(1){var r=n.indexOf(t);if(-1==r)break;n.splice(r,1)}e.className=n.join(" ")},t.toggleCssClass=function(e,t){var n=e.className.split(/\s+/g),r=!0;while(1){var i=n.indexOf(t);if(-1==i)break;r=!1,n.splice(i,1)}return r&&n.push(t),e.className=n.join(" "),r},t.setCssClass=function(e,n,r){r?t.addCssClass(e,n):t.removeCssClass(e,n)},t.hasCssString=function(e,t){var n,r=0;if(t=t||document,t.createStyleSheet&&(n=t.styleSheets)){while(r<n.length)if(n[r++].owningElement.id===e)return!0}else if(n=t.getElementsByTagName("style"))while(r<n.length)if(n[r++].id===e)return!0;return!1},t.importCssString=function(e,n,r){if(r=r||document,n&&t.hasCssString(n,r))return null;var i;n&&(e+="\n/*# sourceURL=ace/css/"+n+" */"),r.createStyleSheet?(i=r.createStyleSheet(),i.cssText=e,n&&(i.owningElement.id=n)):(i=t.createElement("style"),i.appendChild(r.createTextNode(e)),n&&(i.id=n),t.getDocumentHead(r).appendChild(i))},t.importCssStylsheet=function(e,n){if(n.createStyleSheet)n.createStyleSheet(e);else{var r=t.createElement("link");r.rel="stylesheet",r.href=e,t.getDocumentHead(n).appendChild(r)}},t.getInnerWidth=function(e){return parseInt(t.computedStyle(e,"paddingLeft"),10)+parseInt(t.computedStyle(e,"paddingRight"),10)+e.clientWidth},t.getInnerHeight=function(e){return parseInt(t.computedStyle(e,"paddingTop"),10)+parseInt(t.computedStyle(e,"paddingBottom"),10)+e.clientHeight},t.scrollbarWidth=function(e){var n=t.createElement("ace_inner");n.style.width="100%",n.style.minWidth="0px",n.style.height="200px",n.style.display="block";var r=t.createElement("ace_outer"),i=r.style;i.position="absolute",i.left="-10000px",i.overflow="hidden",i.width="200px",i.minWidth="0px",i.height="150px",i.display="block",r.appendChild(n);var o=e.documentElement;o.appendChild(r);var a=n.offsetWidth;i.overflow="scroll";var s=n.offsetWidth;return a==s&&(s=r.clientWidth),o.removeChild(r),a-s},"undefined"!=typeof document?(void 0!==window.pageYOffset?(t.getPageScrollTop=function(){return window.pageYOffset},t.getPageScrollLeft=function(){return window.pageXOffset}):(t.getPageScrollTop=function(){return document.body.scrollTop},t.getPageScrollLeft=function(){return document.body.scrollLeft}),window.getComputedStyle?t.computedStyle=function(e,t){return t?(window.getComputedStyle(e,"")||{})[t]||"":window.getComputedStyle(e,"")||{}}:t.computedStyle=function(e,t){return t?e.currentStyle[t]:e.currentStyle},t.setInnerHtml=function(e,t){var n=e.cloneNode(!1);return n.innerHTML=t,e.parentNode.replaceChild(n,e),n},"textContent"in document.documentElement?(t.setInnerText=function(e,t){e.textContent=t},t.getInnerText=function(e){return e.textContent}):(t.setInnerText=function(e,t){e.innerText=t},t.getInnerText=function(e){return e.innerText}),t.getParentWindow=function(e){return e.defaultView||e.parentWindow}):t.importCssString=function(){}})),ace.define("ace/lib/oop",["require","exports","module"],(function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop"],(function(e,t,n){"use strict";e("./fixoldbrowsers");var r=e("./oop"),i=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return r.mixin(n,n.MODIFIER_KEYS),r.mixin(n,n.PRINTABLE_KEYS),r.mixin(n,n.FUNCTION_KEYS),n.enter=n["return"],n.escape=n.esc,n.del=n["delete"],n[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter((function(e){return t&n.KEY_MODS[e]})).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();r.mixin(t,i),t.keyCodeToString=function(e){var t=i[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define("ace/lib/useragent",["require","exports","module"],(function(e,t,n){"use strict";if(t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS},"object"==typeof navigator){var r=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),i=navigator.userAgent;t.isWin="win"==r,t.isMac="mac"==r,t.isLinux="linux"==r,t.isIE="Microsoft Internet Explorer"==navigator.appName||navigator.appName.indexOf("MSAppHost")>=0?parseFloat((i.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((i.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=(window.Controllers||window.controllers)&&"Gecko"===window.navigator.product,t.isOldGecko=t.isGecko&&parseInt((i.match(/rv:(\d+)/)||[])[1],10)<4,t.isOpera=window.opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(i.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(i.split(" Chrome/")[1])||void 0,t.isAIR=i.indexOf("AdobeAIR")>=0,t.isIPad=i.indexOf("iPad")>=0,t.isChromeOS=i.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(i)&&!window.MSStream,t.isIOS&&(t.isMac=!0)}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("./keys"),i=e("./useragent"),o=null,a=0;t.addListener=function(e,t,n){if(e.addEventListener)return e.addEventListener(t,n,!1);if(e.attachEvent){var r=function(){n.call(e,window.event)};n._wrapper=r,e.attachEvent("on"+t,r)}},t.removeListener=function(e,t,n){if(e.removeEventListener)return e.removeEventListener(t,n,!1);e.detachEvent&&e.detachEvent("on"+t,n._wrapper||n)},t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},t.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||i.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.preventDefault?e.button:{1:0,2:2,4:1}[e.button]},t.capture=function(e,n,r){function i(e){n&&n(e),r&&r(e),t.removeListener(document,"mousemove",n,!0),t.removeListener(document,"mouseup",i,!0),t.removeListener(document,"dragstart",i,!0)}return t.addListener(document,"mousemove",n,!0),t.addListener(document,"mouseup",i,!0),t.addListener(document,"dragstart",i,!0),i},t.addTouchMoveListener=function(e,n){var r,i;t.addListener(e,"touchstart",(function(e){var t=e.touches,n=t[0];r=n.clientX,i=n.clientY})),t.addListener(e,"touchmove",(function(e){var t=e.touches;if(!(t.length>1)){var o=t[0];e.wheelX=r-o.clientX,e.wheelY=i-o.clientY,r=o.clientX,i=o.clientY,n(e)}}))},t.addMouseWheelListener=function(e,n){"onmousewheel"in e?t.addListener(e,"mousewheel",(function(e){var t=8;void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/t,e.wheelY=-e.wheelDeltaY/t):(e.wheelX=0,e.wheelY=-e.wheelDelta/t),n(e)})):"onwheel"in e?t.addListener(e,"wheel",(function(e){var t=.35;switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=e.deltaX*t||0,e.wheelY=e.deltaY*t||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0);break}n(e)})):t.addListener(e,"DOMMouseScroll",(function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),n(e)}))},t.addMultiMouseDownListener=function(e,n,r,o){var a,s,c,l=0,u={2:"dblclick",3:"tripleclick",4:"quadclick"};function d(e){if(0!==t.getButton(e)?l=0:e.detail>1?(l++,l>4&&(l=1)):l=1,i.isIE){var d=Math.abs(e.clientX-a)>5||Math.abs(e.clientY-s)>5;c&&!d||(l=1),c&&clearTimeout(c),c=setTimeout((function(){c=null}),n[l-1]||600),1==l&&(a=e.clientX,s=e.clientY)}if(e._clicks=l,r[o]("mousedown",e),l>4)l=0;else if(l>1)return r[o](u[l],e)}function f(e){l=2,c&&clearTimeout(c),c=setTimeout((function(){c=null}),n[l-1]||600),r[o]("mousedown",e),r[o](u[l],e)}Array.isArray(e)||(e=[e]),e.forEach((function(e){t.addListener(e,"mousedown",d),i.isOldIE&&t.addListener(e,"dblclick",f)}))};var s=i.isMac&&i.isOpera&&!("KeyboardEvent"in window)?function(e){return 0|(e.metaKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.ctrlKey?8:0)}:function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function c(e,t,n){var c=s(t);if(!i.isMac&&o){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(c|=8),o.altGr){if(3==(3&c))return;o.altGr=0}if(18===n||17===n){var l="location"in t?t.location:t.keyLocation;if(17===n&&1===l)1==o[n]&&(a=t.timeStamp);else if(18===n&&3===c&&2===l){var u=t.timeStamp-a;u<50&&(o.altGr=!0)}}}if(n in r.MODIFIER_KEYS&&(n=-1),8&c&&n>=91&&n<=93&&(n=-1),!c&&13===n){l="location"in t?t.location:t.keyLocation;if(3===l&&(e(t,c,-n),t.defaultPrevented))return}if(i.isChromeOS&&8&c){if(e(t,c,n),t.defaultPrevented)return;c&=-9}return!!(c||n in r.FUNCTION_KEYS||n in r.PRINTABLE_KEYS)&&e(t,c,n)}function l(){o=Object.create(null)}if(t.getModifierString=function(e){return r.KEY_MODS[s(e)]},t.addCommandKeyListener=function(e,n){var r=t.addListener;if(i.isOldGecko||i.isOpera&&!("KeyboardEvent"in window)){var a=null;r(e,"keydown",(function(e){a=e.keyCode})),r(e,"keypress",(function(e){return c(n,e,a)}))}else{var s=null;r(e,"keydown",(function(e){o[e.keyCode]=(o[e.keyCode]||0)+1;var t=c(n,e,e.keyCode);return s=e.defaultPrevented,t})),r(e,"keypress",(function(e){s&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),s=null)})),r(e,"keyup",(function(e){o[e.keyCode]=null})),o||(l(),r(window,"focus",l))}},"object"==typeof window&&window.postMessage&&!i.isOldIE){var u=1;t.nextTick=function(e,n){n=n||window;var r="zero-timeout-message-"+u;t.addListener(n,"message",(function i(o){o.data==r&&(t.stopPropagation(o),t.removeListener(n,"message",i),e())})),n.postMessage(r,"*")}}t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/lib/lang",["require","exports","module"],(function(e,t,n){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){var n="";while(t>0)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var r=/^\s\s*/,i=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(r,"")},t.stringTrimRight=function(e){return e.replace(i,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,r=e.length;n<r;n++)e[n]&&"object"==typeof e[n]?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=function e(t){if("object"!==typeof t||!t)return t;var n;if(Array.isArray(t)){n=[];for(var r=0;r<t.length;r++)n[r]=e(t[r]);return n}if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var r in n={},t)n[r]=e(t[r]);return n},t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return e.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,(function(e){n.push({offset:arguments[arguments.length-2],length:e.length})})),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},i=function(e){null==n&&(n=setTimeout(r,e||t))};return i.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},i.schedule=i,i.call=function(){this.cancel(),e()},i.cancel=function(){n&&clearTimeout(n),n=null},i.isPending=function(){return n},i}})),ace.define("ace/keyboard/textinput_ios",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/lib/keys"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=e("../lib/dom"),a=e("../lib/lang"),s=e("../lib/keys"),c=s.KEY_MODS,l=i.isChrome<18,u=i.isIE,d=function(e,t){var n=o.createElement("textarea");n.className=i.isIOS?"ace_text-input ace_text-input-ios":"ace_text-input",i.isTouchPad&&n.setAttribute("x-palm-disable-auto-cap",!0),n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var d="\n aaaa a\n",f=!1,p=!1,h=!1,m=!1,g="",v=!0;try{var b=document.activeElement===n}catch(U){}r.addListener(n,"blur",(function(e){t.onBlur(e),b=!1})),r.addListener(n,"focus",(function(e){b=!0,t.onFocus(e),w()})),this.focus=function(){if(g)return n.focus();n.style.position="fixed",n.focus()},this.blur=function(){n.blur()},this.isFocused=function(){return b};var _=a.delayedCall((function(){b&&w(v)})),y=a.delayedCall((function(){m||(n.value=d,b&&w())}));function w(e){if(!m){if(m=!0,A)t=0,r=e?0:n.value.length-1;else var t=4,r=5;try{n.setSelectionRange(t,r)}catch(U){}m=!1}}function x(){m||(n.value=d,i.isWebKit&&y.schedule())}i.isWebKit||t.addEventListener("changeSelection",(function(){t.selection.isEmpty()!=v&&(v=!v,_.schedule())})),x(),b&&t.onFocus();var k=function(e){return 0===e.selectionStart&&e.selectionEnd===e.value.length},C=function(e){k(n)?(t.selectAll(),w()):A&&w(t.selection.isEmpty())},A=null;this.setInputHandler=function(e){A=e},this.getInputHandler=function(){return A};var S=!1,E=function(e){4===n.selectionStart&&5===n.selectionEnd||(A&&(e=A(e),A=null),h?(w(),e&&t.onPaste(e),h=!1):e==d.substr(0)&&4===n.selectionStart?S?t.execCommand("del",{source:"ace"}):t.execCommand("backspace",{source:"ace"}):f||(e.substring(0,9)==d&&e.length>d.length?e=e.substr(9):e.substr(0,4)==d.substr(0,4)?e=e.substr(4,e.length-d.length+1):e.charAt(e.length-1)==d.charAt(0)&&(e=e.slice(0,-1)),e==d.charAt(0)||e.charAt(e.length-1)==d.charAt(0)&&(e=e.slice(0,-1)),e&&t.onTextInput(e)),f&&(f=!1),S&&(S=!1))},T=function(e){if(!m){var t=n.value;E(t),x()}},O=function(e,t,n){var r=e.clipboardData||window.clipboardData;if(r&&!l){var i=u||n?"Text":"text/plain";try{return t?!1!==r.setData(i,t):r.getData(i)}catch(e){if(!n)return O(e,t,!0)}}},R=function(e,o){var a=t.getCopyText();if(!a)return r.preventDefault(e);O(e,a)?(i.isIOS&&(p=o,n.value="\n aa"+a+"a a\n",n.setSelectionRange(4,4+a.length),f={value:a}),o?t.onCut():t.onCopy(),i.isIOS||r.preventDefault(e)):(f=!0,n.value=a,n.select(),setTimeout((function(){f=!1,x(),w(),o?t.onCut():t.onCopy()})))},D=function(e){R(e,!0)},L=function(e){R(e,!1)},M=function(e){var o=O(e);"string"==typeof o?(o&&t.onPaste(o,e),i.isIE&&setTimeout(w),r.preventDefault(e)):(n.value="",h=!0)};r.addCommandKeyListener(n,t.onCommandKey.bind(t)),r.addListener(n,"select",C),r.addListener(n,"input",T),r.addListener(n,"cut",D),r.addListener(n,"copy",L),r.addListener(n,"paste",M);var F,N=function(e){m||!t.onCompositionStart||t.$readOnly||(m={},m.canUndo=t.session.$undoManager,t.onCompositionStart(),setTimeout(B,0),t.on("mousedown",I),m.canUndo&&!t.selection.isEmpty()&&(t.insert(""),t.session.markUndoGroup(),t.selection.clearSelection()),t.session.markUndoGroup())},B=function(){if(m&&t.onCompositionUpdate&&!t.$readOnly){var e=n.value.replace(/\x01/g,"");if(m.lastValue!==e&&(t.onCompositionUpdate(e),m.lastValue&&t.undo(),m.canUndo&&(m.lastValue=e),m.lastValue)){var r=t.selection.getRange();t.insert(m.lastValue),t.session.markUndoGroup(),m.range=t.selection.getRange(),t.selection.setRange(r),t.selection.clearSelection()}}},I=function(e){if(t.onCompositionEnd&&!t.$readOnly){var r=m;m=!1;var o=setTimeout((function(){o=null;var e=n.value.replace(/\x01/g,"");m||(e==r.lastValue?x():!r.lastValue&&e&&(x(),E(e)))}));A=function(e){return o&&clearTimeout(o),e=e.replace(/\x01/g,""),e==r.lastValue?"":(r.lastValue&&o&&t.undo(),e)},t.onCompositionEnd(),t.removeListener("mousedown",I),"compositionend"==e.type&&r.range&&t.selection.setRange(r.range);var a=!!i.isChrome&&i.isChrome>=53||!!i.isWebKit&&i.isWebKit>=603;a&&T()}},P=a.delayedCall(B,50);function $(){clearTimeout(F),F=setTimeout((function(){g&&(n.style.cssText=g,g=""),null==t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=!0,t.renderer.$moveTextAreaToCursor())}),0)}r.addListener(n,"compositionstart",N),i.isGecko?r.addListener(n,"text",(function(){P.schedule()})):(r.addListener(n,"keyup",(function(){P.schedule()})),r.addListener(n,"keydown",(function(){P.schedule()}))),r.addListener(n,"compositionend",I),this.getElement=function(){return n},this.setReadOnly=function(e){n.readOnly=e},this.onContextMenu=function(e){S=!0,w(t.selection.isEmpty()),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,a){g||(g=n.style.cssText),n.style.cssText=(a?"z-index:100000;":"")+"height:"+n.style.height+";"+(i.isIE?"opacity:0.1;":"");var s=t.container.getBoundingClientRect(),c=o.computedStyle(t.container),l=s.top+(parseInt(c.borderTopWidth)||0),u=s.left+(parseInt(s.borderLeftWidth)||0),d=s.bottom-l-n.clientHeight-2,f=function(e){n.style.left=e.clientX-u-2+"px",n.style.top=Math.min(e.clientY-l-2,d)+"px"};f(e),"mousedown"==e.type&&(t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=null),clearTimeout(F),i.isWin&&r.capture(t.container,f,$))},this.onContextMenuClose=$;var j=function(e){t.textInput.onContextMenu(e),$()};if(r.addListener(n,"mouseup",j),r.addListener(n,"mousedown",(function(e){e.preventDefault(),$()})),r.addListener(t.renderer.scroller,"contextmenu",j),r.addListener(n,"contextmenu",j),i.isIOS){var z=null,q=!1;e.addEventListener("keydown",(function(e){z&&clearTimeout(z),q=!0})),e.addEventListener("keyup",(function(e){z=setTimeout((function(){q=!1}),100)}));var H=function(e){if(document.activeElement===n&&!q){if(p)return setTimeout((function(){p=!1}),100);var r=n.selectionStart,i=n.selectionEnd;if(n.setSelectionRange(4,5),r==i)switch(r){case 0:t.onCommandKey(null,0,s.up);break;case 1:t.onCommandKey(null,0,s.home);break;case 2:t.onCommandKey(null,c.option,s.left);break;case 4:t.onCommandKey(null,0,s.left);break;case 5:t.onCommandKey(null,0,s.right);break;case 7:t.onCommandKey(null,c.option,s.right);break;case 8:t.onCommandKey(null,0,s.end);break;case 9:t.onCommandKey(null,0,s.down);break}else{switch(i){case 6:t.onCommandKey(null,c.shift,s.right);break;case 7:t.onCommandKey(null,c.shift|c.option,s.right);break;case 8:t.onCommandKey(null,c.shift,s.end);break;case 9:t.onCommandKey(null,c.shift,s.down);break}switch(r){case 0:t.onCommandKey(null,c.shift,s.up);break;case 1:t.onCommandKey(null,c.shift,s.home);break;case 2:t.onCommandKey(null,c.shift|c.option,s.left);break;case 3:t.onCommandKey(null,c.shift,s.left);break}}}};document.addEventListener("selectionchange",H),t.on("destroy",(function(){document.removeEventListener("selectionchange",H)}))}};t.TextInput=d})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/keyboard/textinput_ios"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=e("../lib/dom"),a=e("../lib/lang"),s=i.isChrome<18,c=i.isIE,l=e("./textinput_ios").TextInput,u=function(e,t){if(i.isIOS)return l.call(this,e,t);var n=o.createElement("textarea");n.className="ace_text-input",n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var u="\u2028\u2028",d=!1,f=!1,p=!1,h="",m=!0;try{var g=document.activeElement===n}catch($){}r.addListener(n,"blur",(function(e){t.onBlur(e),g=!1})),r.addListener(n,"focus",(function(e){g=!0,t.onFocus(e),_()})),this.focus=function(){if(h)return n.focus();var e=n.style.top;n.style.position="fixed",n.style.top="0px",n.focus(),setTimeout((function(){n.style.position="","0px"==n.style.top&&(n.style.top=e)}),0)},this.blur=function(){n.blur()},this.isFocused=function(){return g};var v=a.delayedCall((function(){g&&_(m)})),b=a.delayedCall((function(){p||(n.value=u,g&&_())}));function _(e){if(!p){if(p=!0,k)var t=0,r=e?0:n.value.length-1;else t=e?2:1,r=2;try{n.setSelectionRange(t,r)}catch($){}p=!1}}function y(){p||(n.value=u,i.isWebKit&&b.schedule())}i.isWebKit||t.addEventListener("changeSelection",(function(){t.selection.isEmpty()!=m&&(m=!m,v.schedule())})),y(),g&&t.onFocus();var w=function(e){return 0===e.selectionStart&&e.selectionEnd===e.value.length},x=function(e){d?d=!1:w(n)?(t.selectAll(),_()):k&&_(t.selection.isEmpty())},k=null;this.setInputHandler=function(e){k=e},this.getInputHandler=function(){return k};var C=!1,A=function(e){k&&(e=k(e),k=null),f?(_(),e&&t.onPaste(e),f=!1):e==u.charAt(0)?C?t.execCommand("del",{source:"ace"}):t.execCommand("backspace",{source:"ace"}):(e.substring(0,2)==u?e=e.substr(2):e.charAt(0)==u.charAt(0)?e=e.substr(1):e.charAt(e.length-1)==u.charAt(0)&&(e=e.slice(0,-1)),e.charAt(e.length-1)==u.charAt(0)&&(e=e.slice(0,-1)),e&&t.onTextInput(e)),C&&(C=!1)},S=function(e){if(!p){var t=n.value;A(t),y()}},E=function(e,t,n){var r=e.clipboardData||window.clipboardData;if(r&&!s){var i=c||n?"Text":"text/plain";try{return t?!1!==r.setData(i,t):r.getData(i)}catch(e){if(!n)return E(e,t,!0)}}},T=function(e,i){var o=t.getCopyText();if(!o)return r.preventDefault(e);E(e,o)?(i?t.onCut():t.onCopy(),r.preventDefault(e)):(d=!0,n.value=o,n.select(),setTimeout((function(){d=!1,y(),_(),i?t.onCut():t.onCopy()})))},O=function(e){T(e,!0)},R=function(e){T(e,!1)},D=function(e){var o=E(e);"string"==typeof o?(o&&t.onPaste(o,e),i.isIE&&setTimeout(_),r.preventDefault(e)):(n.value="",f=!0)};r.addCommandKeyListener(n,t.onCommandKey.bind(t)),r.addListener(n,"select",x),r.addListener(n,"input",S),r.addListener(n,"cut",O),r.addListener(n,"copy",R),r.addListener(n,"paste",D),"oncut"in n&&"oncopy"in n&&"onpaste"in n||r.addListener(e,"keydown",(function(e){if((!i.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:R(e);break;case 86:D(e);break;case 88:O(e);break}}));var L,M=function(e){p||!t.onCompositionStart||t.$readOnly||(p={},p.canUndo=t.session.$undoManager,t.onCompositionStart(),setTimeout(F,0),t.on("mousedown",N),p.canUndo&&!t.selection.isEmpty()&&(t.insert(""),t.session.markUndoGroup(),t.selection.clearSelection()),t.session.markUndoGroup())},F=function(){if(p&&t.onCompositionUpdate&&!t.$readOnly){var e=n.value.replace(/\u2028/g,"");if(p.lastValue!==e&&(t.onCompositionUpdate(e),p.lastValue&&t.undo(),p.canUndo&&(p.lastValue=e),p.lastValue)){var r=t.selection.getRange();t.insert(p.lastValue),t.session.markUndoGroup(),p.range=t.selection.getRange(),t.selection.setRange(r),t.selection.clearSelection()}}},N=function(e){if(t.onCompositionEnd&&!t.$readOnly){var r=p;p=!1;var o=setTimeout((function(){o=null;var e=n.value.replace(/\u2028/g,"");p||(e==r.lastValue?y():!r.lastValue&&e&&(y(),A(e)))}));k=function(e){return o&&clearTimeout(o),e=e.replace(/\u2028/g,""),e==r.lastValue?"":(r.lastValue&&o&&t.undo(),e)},t.onCompositionEnd(),t.removeListener("mousedown",N),"compositionend"==e.type&&r.range&&t.selection.setRange(r.range);var a=!!i.isChrome&&i.isChrome>=53||!!i.isWebKit&&i.isWebKit>=603;a&&S()}},B=a.delayedCall(F,50);function I(){clearTimeout(L),L=setTimeout((function(){h&&(n.style.cssText=h,h=""),null==t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=!0,t.renderer.$moveTextAreaToCursor())}),0)}r.addListener(n,"compositionstart",M),i.isGecko?r.addListener(n,"text",(function(){B.schedule()})):(r.addListener(n,"keyup",(function(){B.schedule()})),r.addListener(n,"keydown",(function(){B.schedule()}))),r.addListener(n,"compositionend",N),this.getElement=function(){return n},this.setReadOnly=function(e){n.readOnly=e},this.onContextMenu=function(e){C=!0,_(t.selection.isEmpty()),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,a){h||(h=n.style.cssText),n.style.cssText=(a?"z-index:100000;":"")+"height:"+n.style.height+";"+(i.isIE?"opacity:0.1;":"");var s=t.container.getBoundingClientRect(),c=o.computedStyle(t.container),l=s.top+(parseInt(c.borderTopWidth)||0),u=s.left+(parseInt(s.borderLeftWidth)||0),d=s.bottom-l-n.clientHeight-2,f=function(e){n.style.left=e.clientX-u-2+"px",n.style.top=Math.min(e.clientY-l-2,d)+"px"};f(e),"mousedown"==e.type&&(t.renderer.$keepTextAreaAtCursor&&(t.renderer.$keepTextAreaAtCursor=null),clearTimeout(L),i.isWin&&r.capture(t.container,f,I))},this.onContextMenuClose=I;var P=function(e){t.textInput.onContextMenu(e),I()};r.addListener(n,"mouseup",P),r.addListener(n,"mousedown",(function(e){e.preventDefault(),I()})),r.addListener(t.renderer.scroller,"contextmenu",P),r.addListener(n,"contextmenu",P)};t.TextInput=u})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";e("../lib/dom"),e("../lib/event");var r=e("../lib/useragent"),i=0,o=250;function a(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e)),t.setDefaultHandler("touchmove",this.onTouchMove.bind(e));var n=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];n.forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function s(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}function c(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var i=this.editor,o=e.getButton();if(0!==o){var a=i.getSelectionRange(),s=a.isEmpty();return i.$blockScrolling++,(s||1==o)&&i.selection.moveToPosition(n),i.$blockScrolling--,void(2==o&&(i.textInput.onContextMenu(e.domEvent),r.isMozilla||e.preventDefault()))}return this.mousedownEvent.time=Date.now(),!t||i.isFocused()||(i.focus(),!this.$focusTimout||this.$clickSelection||i.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;n.$blockScrolling++,this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"),n.$blockScrolling--},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(t.$blockScrolling++,this.$clickSelection){var r=this.$clickSelection.comparePoint(n);if(-1==r)e=this.$clickSelection.end;else if(1==r)e=this.$clickSelection.start;else{var i=c(this.$clickSelection,n);n=i.cursor,e=i.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.$blockScrolling--,t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,r=n.renderer.screenToTextCoordinates(this.x,this.y),i=n.selection[e](r.row,r.column);if(n.$blockScrolling++,this.$clickSelection){var o=this.$clickSelection.comparePoint(i.start),a=this.$clickSelection.comparePoint(i.end);if(-1==o&&a<=0)t=this.$clickSelection.end,i.end.row==r.row&&i.end.column==r.column||(r=i.start);else if(1==a&&o>=0)t=this.$clickSelection.start,i.start.row==r.row&&i.start.column==r.column||(r=i.end);else if(-1==o&&1==a)r=i.end,t=i.start;else{var s=c(this.$clickSelection,r);r=s.cursor,t=s.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(r),n.$blockScrolling--,n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e=s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),t=Date.now();(e>i||t-this.mousedownEvent.time>this.$focusTimout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,r=n.session,i=r.getBracketRange(t);i?(i.isEmpty()&&(i.start.column--,i.end.column++),this.setState("select")):(i=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=i,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var r=n.getSelectionRange();r.isMultiLine()&&r.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(r.start.row),this.$clickSelection.end=n.selection.getLineRange(r.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,r=e.domEvent.timeStamp,i=r-n.t,a=e.wheelX/i,s=e.wheelY/i;i<o&&(a=(a+n.vx)/2,s=(s+n.vy)/2);var c=Math.abs(a/s),l=!1;if(c>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(l=!0),c<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(l=!0),l)n.allowed=r;else if(r-n.allowed<o){var u=Math.abs(a)<=1.1*Math.abs(n.vx)&&Math.abs(s)<=1.1*Math.abs(n.vy);u?(l=!0,n.allowed=r):n.allowed=0}return n.t=r,n.vx=a,n.vy=s,l?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}},this.onTouchMove=function(e){this.editor._emit("mousewheel",e)}}).call(a.prototype),t.DefaultHandlers=a})),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],(function(e,t,n){"use strict";e("./lib/oop");var r=e("./lib/dom");function i(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=r.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){r.setInnerText(this.getElement(),e)},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){r.addCssClass(this.getElement(),e)},this.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(i.prototype),t.Tooltip=i})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/oop"),o=e("../lib/event"),a=e("../tooltip").Tooltip;function s(e){var t,n,i,a=e.editor,s=a.renderer.$gutterLayer,l=new c(a.container);function u(){var t=n.getDocumentPosition().row,r=s.$annotations[t];if(!r)return d();var o=a.session.getLength();if(t==o){var c=a.renderer.pixelToScreenCoordinates(0,n.y).row,u=n.$pos;if(c>a.session.documentToScreenRow(u.row,u.column))return d()}if(i!=r)if(i=r.text.join("<br/>"),l.setHtml(i),l.show(),a._signal("showGutterTooltip",l),a.on("mousewheel",d),e.$tooltipFollowsMouse)f(n);else{var p=n.domEvent.target,h=p.getBoundingClientRect(),m=l.getElement().style;m.left=h.right+"px",m.top=h.bottom+"px"}}function d(){t&&(t=clearTimeout(t)),i&&(l.hide(),i=null,a._signal("hideGutterTooltip",l),a.removeEventListener("mousewheel",d))}function f(e){l.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(a.isFocused()&&0==t.getButton()){var n=s.getRegion(t);if("foldWidgets"!=n){var r=t.getDocumentPosition().row,i=a.session.selection;if(t.getShiftKey())i.selectTo(r,0);else{if(2==t.domEvent.detail)return a.selectAll(),t.preventDefault();e.$clickSelection=a.selection.getLineRange(r)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}}})),e.editor.setDefaultHandler("guttermousemove",(function(o){var a=o.domEvent.target||o.domEvent.srcElement;if(r.hasCssClass(a,"ace_fold-widget"))return d();i&&e.$tooltipFollowsMouse&&f(o),n=o,t||(t=setTimeout((function(){t=null,n&&!e.isMousePressed?u():d()}),50))})),o.addListener(a.renderer.$gutter,"mouseout",(function(e){n=null,i&&!t&&(t=setTimeout((function(){t=null,d()}),50))})),a.on("changeSession",d)}function c(e){a.call(this,e)}i.inherits(c,a),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,i=this.getWidth(),o=this.getHeight();e+=15,t+=15,e+i>n&&(e-=e+i-n),t+o>r&&(t-=20+o),a.prototype.setPosition.call(this,e,t)}}.call(c.prototype),t.GutterHandler=s})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){r.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){r.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor,t=e.getSelectionRange();if(t.isEmpty())this.$inSelection=!1;else{var n=this.getDocumentPosition();this.$inSelection=t.contains(n.row,n.column)}return this.$inSelection},this.getButton=function(){return r.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=i.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(o.prototype)})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/event"),o=e("../lib/useragent"),a=200,s=200,c=5;function l(e){var t=e.editor,n=r.createElement("img");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",o.isOpera&&(n.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");var l=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];l.forEach((function(t){e[t]=this[t]}),this),t.addEventListener("mousedown",this.onMouseDown.bind(e));var d,f,p,h,m,g,v,b,_,y,w,x=t.container,k=0;function C(e,n){var r=Date.now(),i=!n||e.row!=n.row,o=!n||e.column!=n.column;if(!y||i||o)t.$blockScrolling+=1,t.moveCursorToPosition(e),t.$blockScrolling-=1,y=r,w={x:f,y:p};else{var a=u(w.x,w.y,f,p);a>c?y=null:r-y>=s&&(t.renderer.scrollCursorIntoView(),y=null)}}function A(e,n){var r=Date.now(),i=t.renderer.layerConfig.lineHeight,o=t.renderer.layerConfig.characterWidth,s=t.renderer.scroller.getBoundingClientRect(),c={x:{left:f-s.left,right:s.right-f},y:{top:p-s.top,bottom:s.bottom-p}},l=Math.min(c.x.left,c.x.right),u=Math.min(c.y.top,c.y.bottom),d={row:e.row,column:e.column};l/o<=2&&(d.column+=c.x.left<c.x.right?-3:2),u/i<=1&&(d.row+=c.y.top<c.y.bottom?-1:1);var h=e.row!=d.row,m=e.column!=d.column,g=!n||e.row!=n.row;h||m&&!g?_?r-_>=a&&t.renderer.scrollCursorIntoView(d):_=r:_=null}function S(){var e=g;g=t.renderer.screenToTextCoordinates(f,p),C(g,e),A(g,e)}function E(){m=t.selection.toOrientedRange(),d=t.session.addMarker(m,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(h),S(),h=setInterval(S,20),k=0,i.addListener(document,"mousemove",R)}function T(){clearInterval(h),t.session.removeMarker(d),d=null,t.$blockScrolling+=1,t.selection.fromOrientedRange(m),t.$blockScrolling-=1,t.isFocused()&&!b&&t.renderer.$cursorLayer.setBlinking(!t.getReadOnly()),m=null,g=null,k=0,_=null,y=null,i.removeListener(document,"mousemove",R)}this.onDragStart=function(e){if(this.cancelDrag||!x.draggable){var r=this;return setTimeout((function(){r.startSelect(),r.captureMouse(e)}),0),e.preventDefault()}m=t.getSelectionRange();var i=e.dataTransfer;i.effectAllowed=t.getReadOnly()?"copy":"copyMove",o.isOpera&&(t.container.appendChild(n),n.scrollTop=0),i.setDragImage&&i.setDragImage(n,0,0),o.isOpera&&t.container.removeChild(n),i.clearData(),i.setData("Text",t.session.getTextRange()),b=!0,this.setState("drag")},this.onDragEnd=function(e){if(x.draggable=!1,b=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;v||"move"!=n||t.session.remove(t.getSelectionRange()),t.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&D(e.dataTransfer))return f=e.clientX,p=e.clientY,d||E(),k++,e.dataTransfer.dropEffect=v=L(e),i.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&D(e.dataTransfer))return f=e.clientX,p=e.clientY,d||(E(),k++),null!==O&&(O=null),e.dataTransfer.dropEffect=v=L(e),i.preventDefault(e)},this.onDragLeave=function(e){if(k--,k<=0&&d)return T(),v=null,i.preventDefault(e)},this.onDrop=function(e){if(g){var n=e.dataTransfer;if(b)switch(v){case"move":m=m.contains(g.row,g.column)?{start:g,end:g}:t.moveText(m,g);break;case"copy":m=t.moveText(m,g,!0);break}else{var r=n.getData("Text");m={start:g,end:t.session.insert(g,r)},t.focus(),v=null}return T(),i.preventDefault(e)}},i.addListener(x,"dragstart",this.onDragStart.bind(e)),i.addListener(x,"dragend",this.onDragEnd.bind(e)),i.addListener(x,"dragenter",this.onDragEnter.bind(e)),i.addListener(x,"dragover",this.onDragOver.bind(e)),i.addListener(x,"dragleave",this.onDragLeave.bind(e)),i.addListener(x,"drop",this.onDrop.bind(e));var O=null;function R(){null==O&&(O=setTimeout((function(){null!=O&&d&&T()}),20))}function D(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function L(e){var t=["copy","copymove","all","uninitialized"],n=["move","copymove","linkmove","all","uninitialized"],r=o.isMac?e.altKey:e.ctrlKey,i="uninitialized";try{i=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var a="none";return r&&t.indexOf(i)>=0?a="copy":n.indexOf(i)>=0?a="move":t.indexOf(i)>=0&&(a="copy"),a}}function u(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}(function(){this.dragWait=function(){var e=Date.now()-this.mousedownEvent.time;e>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var e=this.editor.container;e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=e.container;t.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var n=o.isWin?"default":"move";e.renderer.setCursorStyle(n),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;if(o.isIE&&"dragReady"==this.state){var n=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>3&&t.dragDrop()}if("dragWait"===this.state){n=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),r=e.getButton(),i=e.domEvent.detail||1;if(1===i&&0===r&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var a=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in a&&(a.unselectable="on"),t.getDragDelay()){if(o.isWebKit){this.cancelDrag=!0;var s=t.container;s.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(l.prototype),t.DragdropHandler=l})),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("./dom");t.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,t){var n=r.getDocumentHead(),i=document.createElement("script");i.src=e,n.appendChild(i),i.onload=i.onreadystatechange=function(e,n){!n&&i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(i=i.onload=i.onreadystatechange=null,n||t())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(e,t,n){"use strict";var r={},i=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(n.length||r){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=i),t.preventDefault||(t.preventDefault=o),n=n.slice();for(var a=0;a<n.length;a++)if(n[a](t,this),t.propagationStopped)break;return r&&!t.defaultPrevented?r(t,this):void 0}},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)}},r.once=function(e,t){var n=this;t&&this.addEventListener(e,(function r(){n.removeEventListener(e,r),t.apply(null,arguments)}))},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){var r=n[e],i=n._disabled_[e];i||(n._disabled_[e]=i=[]),i.push(r);var o=i.indexOf(t);-1!=o&&i.splice(o,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var r=n._disabled_[e];if(n[e]==t){n[e];r&&this.setDefaultHandler(e,r.pop())}else if(r){var i=r.indexOf(t);-1!=i&&r.splice(i,1)}}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),-1==r.indexOf(t)&&r[n?"unshift":"push"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(n){var r=n.indexOf(t);-1!==r&&n.splice(r,1)}},r.removeAllListeners=function(e){this._eventRegistry&&(this._eventRegistry[e]=[])},t.EventEmitter=r})),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){var r=e("./oop"),i=e("./event_emitter").EventEmitter,o={setOptions:function(e){Object.keys(e).forEach((function(t){this.setOption(t,e[t])}),this)},getOptions:function(e){var t={};return e?Array.isArray(e)||(t=e,e=Object.keys(t)):e=Object.keys(this.$options),e.forEach((function(e){t[e]=this.getOption(e)}),this),t},setOption:function(e,t){if(this["$"+e]!==t){var n=this.$options[e];if(!n)return a('misspelled option "'+e+'"');if(n.forwardTo)return this[n.forwardTo]&&this[n.forwardTo].setOption(e,t);n.handlesSet||(this["$"+e]=t),n&&n.set&&n.set.call(this,t)}},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:a('misspelled option "'+e+'"')}};function a(e){"undefined"!=typeof console&&console.warn}function s(e,t){var n=new Error(e);n.data=t,"object"==typeof console&&console.error,setTimeout((function(){throw n}))}var c=function(){this.$defaultOptions={}};(function(){r.implement(this,i),this.defineOptions=function(e,t,n){return e.$options||(this.$defaultOptions[t]=e.$options={}),Object.keys(n).forEach((function(t){var r=n[t];"string"==typeof r&&(r={forwardTo:r}),r.name||(r.name=t),e.$options[r.name]=r,"initialValue"in r&&(e["$"+r.name]=r.initialValue)})),r.implement(e,o),this},this.resetOptions=function(e){Object.keys(e.$options).forEach((function(t){var n=e.$options[t];"value"in n&&e.setOption(t,n.value)}))},this.setDefaultValue=function(e,t,n){var r=this.$defaultOptions[e]||(this.$defaultOptions[e]={});r[t]&&(r.forwardTo?this.setDefaultValue(r.forwardTo,t,n):r[t].value=n)},this.setDefaultValues=function(e,t){Object.keys(t).forEach((function(n){this.setDefaultValue(e,n,t[n])}),this)},this.warn=a,this.reportError=s}).call(c.prototype),t.AppConfig=c})),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/app_config"],(function(e,t,r){var i=e("./lib/lang"),o=(e("./lib/oop"),e("./lib/net")),a=e("./lib/app_config").AppConfig;r.exports=t=new a;var s=function(){return this||"undefined"!=typeof window&&window}(),c={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{}};function l(i){if(s&&s.document){c.packaged=i||e.packaged||r.packaged||s.define&&n("07d6").packaged;for(var o={},a="",l=document.currentScript||document._currentScript,d=l&&l.ownerDocument||document,f=d.getElementsByTagName("script"),p=0;p<f.length;p++){var h=f[p],m=h.src||h.getAttribute("src");if(m){for(var g=h.attributes,v=0,b=g.length;v<b;v++){var _=g[v];0===_.name.indexOf("data-ace-")&&(o[u(_.name.replace(/^data-ace-/,""))]=_.value)}var y=m.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);y&&(a=y[1])}}for(var w in a&&(o.base=o.base||a,o.packaged=!0),o.basePath=o.base,o.workerPath=o.workerPath||o.base,o.modePath=o.modePath||o.base,o.themePath=o.themePath||o.base,delete o.base,o)"undefined"!==typeof o[w]&&t.set(w,o[w])}}function u(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}t.get=function(e){if(!c.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return c[e]},t.set=function(e,t){if(!c.hasOwnProperty(e))throw new Error("Unknown config key: "+e);c[e]=t},t.all=function(){return i.copyObject(c)},t.moduleUrl=function(e,t){if(c.$moduleUrls[e])return c.$moduleUrls[e];var n=e.split("/");t=t||n[n.length-2]||"";var r="snippets"==t?"/":"-",i=n[n.length-1];if("worker"==t&&"-"==r){var o=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g");i=i.replace(o,"")}(!i||i==t)&&n.length>1&&(i=n[n.length-2]);var a=c[t+"Path"];return null==a?a=c.basePath:"/"==r&&(t=r=""),a&&"/"!=a.slice(-1)&&(a+="/"),a+t+r+i+this.get("suffix")},t.setModuleUrl=function(e,t){return c.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(n,r){var i,a;Array.isArray(n)&&(a=n[0],n=n[1]);try{i=e(n)}catch(c){}if(i&&!t.$loading[n])return r&&r(i);if(t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(r),!(t.$loading[n].length>1)){var s=function(){e([n],(function(e){t._emit("load.module",{name:n,module:e});var r=t.$loading[n];t.$loading[n]=null,r.forEach((function(t){t&&t(e)}))}))};if(!t.get("packaged"))return s();o.loadScript(t.moduleUrl(n,a),s)}},l(!0),t.init=l})),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/config"],(function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=e("./default_handlers").DefaultHandlers,a=e("./default_gutter_handler").GutterHandler,s=e("./mouse_event").MouseEvent,c=e("./dragdrop_handler").DragdropHandler,l=e("../config"),u=function(e){var t=this;this.editor=e,new o(this),new a(this),new c(this);var n=function(t){var n=!document.hasFocus||!document.hasFocus()||!e.isFocused()&&document.activeElement==(e.textInput&&e.textInput.getElement());n&&window.focus(),e.focus()},s=e.renderer.getMouseEventTarget();r.addListener(s,"click",this.onMouseEvent.bind(this,"click")),r.addListener(s,"mousemove",this.onMouseMove.bind(this,"mousemove")),r.addMultiMouseDownListener([s,e.renderer.scrollBarV&&e.renderer.scrollBarV.inner,e.renderer.scrollBarH&&e.renderer.scrollBarH.inner,e.textInput&&e.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent"),r.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,"mousewheel")),r.addTouchMoveListener(e.container,this.onTouchMove.bind(this,"touchmove"));var l=e.renderer.$gutter;r.addListener(l,"mousedown",this.onMouseEvent.bind(this,"guttermousedown")),r.addListener(l,"click",this.onMouseEvent.bind(this,"gutterclick")),r.addListener(l,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick")),r.addListener(l,"mousemove",this.onMouseEvent.bind(this,"guttermousemove")),r.addListener(s,"mousedown",n),r.addListener(l,"mousedown",n),i.isIE&&e.renderer.scrollBarV&&(r.addListener(e.renderer.scrollBarV.element,"mousedown",n),r.addListener(e.renderer.scrollBarH.element,"mousedown",n)),e.on("mousemove",(function(n){if(!t.state&&!t.$dragDelay&&t.$dragEnabled){var r=e.renderer.screenToTextCoordinates(n.x,n.y),i=e.session.selection.getRange(),o=e.renderer;!i.isEmpty()&&i.insideStart(r.row,r.column)?o.setCursorStyle("default"):o.setCursorStyle("")}}))};(function(){this.onMouseEvent=function(e,t){this.editor._emit(e,new s(t,this.editor))},this.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new s(t,this.editor))},this.onMouseWheel=function(e,t){var n=new s(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.onTouchMove=function(e,t){var n=new s(t,this.editor);n.speed=1,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor.renderer;n.$keepTextAreaAtCursor&&(n.$keepTextAreaAtCursor=null);var o=this,a=function(e){if(e){if(i.isWebKit&&!e.which&&o.releaseMouse)return o.releaseMouse();o.x=e.clientX,o.y=e.clientY,t&&t(e),o.mouseEvent=new s(e,o.editor),o.$mouseMoved=!0}},c=function(e){clearInterval(u),l(),o[o.state+"End"]&&o[o.state+"End"](e),o.state="",null==n.$keepTextAreaAtCursor&&(n.$keepTextAreaAtCursor=!0,n.$moveTextAreaToCursor()),o.isMousePressed=!1,o.$onCaptureMouseMove=o.releaseMouse=null,e&&o.onMouseEvent("mouseup",e)},l=function(){o[o.state]&&o[o.state](),o.$mouseMoved=!1};if(i.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout((function(){c(e)}));o.$onCaptureMouseMove=a,o.releaseMouse=r.capture(this.editor.container,a,c);var u=setInterval(l,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&"contextmenu"!=t.domEvent.type||(this.editor.off("nativecontextmenu",e),t&&t.domEvent&&r.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on("nativecontextmenu",e)}}).call(u.prototype),l.defineOptions(u.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:i.isMac?150:0},dragEnabled:{initialValue:!0},focusTimout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=u})),ace.define("ace/mouse/fold_handler",["require","exports","module"],(function(e,t,n){"use strict";function r(e){e.on("click",(function(t){var n=t.getDocumentPosition(),r=e.session,i=r.getFoldAt(n.row,n.column,1);i&&(t.getAccelKey()?r.removeFold(i):r.expandFold(i),t.stop())})),e.on("gutterclick",(function(t){var n=e.renderer.$gutterLayer.getRegion(t);if("foldWidgets"==n){var r=t.getDocumentPosition().row,i=e.session;i.foldWidgets&&i.foldWidgets[r]&&e.session.onFoldWidgetClick(r,t),e.isFocused()||e.focus(),t.stop()}})),e.on("gutterdblclick",(function(t){var n=e.renderer.$gutterLayer.getRegion(t);if("foldWidgets"==n){var r=t.getDocumentPosition().row,i=e.session,o=i.getParentFoldRangeData(r,!0),a=o.range||o.firstRange;if(a){r=a.start.row;var s=i.getFoldAt(r,i.getLine(r).length,1);s?i.removeFold(s):(i.addFold("...",a),e.renderer.scrollCursorIntoView({row:a.start.row,column:0}))}t.stop()}}))}t.FoldHandler=r})),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],(function(e,t,n){"use strict";var r=e("../lib/keys"),i=e("../lib/event"),o=function(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)};(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){while(t[t.length-1]&&t[t.length-1]!=this.$defaultHandler)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.addKeyboardHandler=function(e,t){if(e){"function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);-1!=n&&this.$handlers.splice(n,1),void 0==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor)}},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map((function(n){return n.getStatusText&&n.getStatusText(t,e)||""})).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(e,t,n,r){for(var o,a=!1,s=this.$editor.commands,c=this.$handlers.length;c--;)if(o=this.$handlers[c].handleKeyboard(this.$data,e,t,n,r),o&&o.command&&(a="null"==o.command||s.exec(o.command,this.$editor,o.args,r),a&&r&&-1!=e&&1!=o.passEvent&&1!=o.command.passEvent&&i.stopEvent(r),a))break;return a||-1!=e||(o={command:"insertstring"},a=s.exec("insertstring",this.$editor,t)),a&&this.$editor._signal&&this.$editor._signal("keyboardActivity",o),a},this.onCommandKey=function(e,t,n){var i=r.keyCodeToString(n);this.$callKeyboardHandlers(t,i,n,e)},this.onTextInput=function(e){this.$callKeyboardHandlers(-1,e)}}).call(o.prototype),t.KeyBinding=o})),ace.define("ace/lib/bidiutil",["require","exports","module"],(function(e,t,n){"use strict";var r=0,i=0,o=!1,a=!1,s=!1,c=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],l=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],u=0,d=1,f=0,p=1,h=2,m=3,g=4,v=5,b=6,_=7,y=8,w=9,x=10,k=11,C=12,A=13,S=14,E=15,T=16,O=17,R=18,D=[R,R,R,R,R,R,R,R,R,b,v,b,y,v,R,R,R,R,R,R,R,R,R,R,R,R,R,R,v,v,v,b,y,g,g,k,k,k,g,g,g,g,g,x,w,x,w,w,h,h,h,h,h,h,h,h,h,h,w,g,g,g,g,g,g,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,g,g,g,g,g,g,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,g,g,g,g,R,R,R,R,R,R,v,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,w,g,k,k,k,k,g,g,g,g,f,g,g,R,g,g,k,k,h,h,g,f,g,g,g,h,f,g,g,g,g,g],L=[y,y,y,y,y,y,y,y,y,y,y,R,R,R,f,p,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,y,v,A,S,E,T,O,w,k,k,k,k,k,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,w,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,g,y];function M(e,t,n,u){var d=r?l:c,f=null,p=null,h=null,m=0,g=null,_=null,w=-1,x=null,k=null,C=[];if(!u)for(x=0,u=[];x<n;x++)u[x]=B(e[x]);for(i=r,o=!1,!1,a=!1,s=!1,k=0;k<n;k++){if(f=m,C[k]=p=N(e,u,C,k),m=d[f][p],g=240&m,m&=15,t[k]=h=d[m][5],g>0)if(16==g){for(x=w;x<k;x++)t[x]=1;w=-1}else w=-1;if(_=d[m][6],_)-1==w&&(w=k);else if(w>-1){for(x=w;x<k;x++)t[x]=h;w=-1}u[k]==v&&(t[k]=0),i|=h}if(s)for(x=0;x<n;x++)if(u[x]==b){t[x]=r;for(var A=x-1;A>=0;A--){if(u[A]!=y)break;t[A]=r}}}function F(e,t,n){if(!(i<e))if(1!=e||r!=d||a){var o,s,c,l,u=n.length,f=0;while(f<u){if(t[f]>=e){o=f+1;while(o<u&&t[o]>=e)o++;for(s=f,c=o-1;s<c;s++,c--)l=n[s],n[s]=n[c],n[c]=l;f=o}f++}}else n.reverse()}function N(e,t,n,i){var c,l,u,d,D=t[i];switch(D){case f:case p:o=!1;case g:case m:return D;case h:return o?m:h;case _:return o=!0,!0,p;case y:return g;case w:return i<1||i+1>=t.length||(c=n[i-1])!=h&&c!=m||(l=t[i+1])!=h&&l!=m?g:(o&&(l=m),l==c?l:g);case x:return c=i>0?n[i-1]:v,c==h&&i+1<t.length&&t[i+1]==h?h:g;case k:if(i>0&&n[i-1]==h)return h;if(o)return g;d=i+1,u=t.length;while(d<u&&t[d]==k)d++;return d<u&&t[d]==h?h:g;case C:u=t.length,d=i+1;while(d<u&&t[d]==C)d++;if(d<u){var L=e[i],M=L>=1425&&L<=2303||64286==L;if(c=t[d],M&&(c==p||c==_))return p}return i<1||(c=t[i-1])==v?g:n[i-1];case v:return o=!1,a=!0,r;case b:return s=!0,g;case A:case S:case T:case O:case E:o=!1;case R:return g}}function B(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?f:D[t]:5==n?/[\u0591-\u05f4]/.test(e)?p:f:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?C:/[\u0660-\u0669\u066b-\u066c]/.test(e)?m:1642==t?k:/[\u06f0-\u06f9]/.test(e)?h:_:32==n&&t<=8287?L[255&t]:254==n&&t>=65136?_:g}t.L=f,t.R=p,t.EN=h,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.DOT="·",t.doBidiReorder=function(e,n,i){if(e.length<2)return{};var o=e.split(""),a=new Array(o.length),s=new Array(o.length),c=[];r=i?d:u,M(o,c,o.length,n);for(var l=0;l<a.length;a[l]=l,l++);F(2,c,a),F(1,c,a);for(l=0;l<a.length-1;l++)n[l]===m?c[l]=t.AN:c[l]===p&&(n[l]>_&&n[l]<A||n[l]===g||n[l]===R)?c[l]=t.ON_R:l>0&&"ل"===o[l-1]&&/\u0622|\u0623|\u0625|\u0627/.test(o[l])&&(c[l-1]=c[l]=t.R_H,l++);o[o.length-1]===t.DOT&&(c[o.length-1]=t.B);for(l=0;l<a.length;l++)s[l]=c[a[l]];return{logicalFromVisual:a,bidiLevels:s}},t.hasBidiCharacters=function(e,t){for(var n=!1,r=0;r<e.length;r++)t[r]=B(e.charAt(r)),n||t[r]!=p&&t[r]!=_||(n=!0);return n},t.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual[n]==e)return n;return 0}})),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("./lib/bidiutil"),i=e("./lib/lang"),o=e("./lib/useragent"),a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,s=function(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=r,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.line="",this.wrapIndent=0,this.isLastRow=!1,this.EOF="¶",this.seenBidi=!1};(function(){this.isBidiRow=function(e,t,n){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},this.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&a.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},this.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n=this.session.$getRowCacheIndex(t,this.currentRow);n>=0&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n,r=this.session.$getRowCacheIndex(t,this.currentRow);while(this.currentRow-e>0){if(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1),n!==r)break;r=n,e++}}return e},this.updateRowLine=function(e,t){if(void 0===e&&(e=this.getDocumentRow()),this.wrapIndent=0,this.isLastRow=e===this.session.getLength()-1,this.line=this.session.getLine(e),this.session.$useWrapMode){var n=this.session.$wrapData[e];n&&(void 0===t&&(t=this.getSplitIndex()),t>0&&n.length?(this.wrapIndent=n.indent,this.line=t<n.length?this.line.substring(n[t-1],n[n.length-1]):this.line.substring(n[n.length-1])):this.line=this.line.substring(0,n[t]))}var o,a=this.session,s=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,(function(e,t){return"\t"===e||a.isFullWidth(e.charCodeAt(0))?(o="\t"===e?a.getScreenTabSize(t+s):2,s+=o-1,i.stringRepeat(r.DOT,o)):e}))},this.updateBidiMap=function(){var e=[],t=this.isLastRow?this.EOF:this.EOL,n=this.line+(this.showInvisibles?t:r.DOT);r.hasBidiCharacters(n,e)?this.bidiMap=r.doBidiReorder(n,e,this.isRtlDir):this.bidiMap={}},this.markAsDirty=function(){this.currentRow=null},this.updateCharacterWidths=function(e){if(this.seenBidi&&this.characterWidth!==e.$characterSize.width){var t=this.characterWidth=e.$characterSize.width,n=e.$measureCharWidth("ה");this.charWidths[r.L]=this.charWidths[r.EN]=this.charWidths[r.ON_R]=t,this.charWidths[r.R]=this.charWidths[r.AN]=n,this.charWidths[r.R_H]=o.isChrome?n:.45*n,this.charWidths[r.B]=0,this.currentRow=null}},this.getShowInvisibles=function(){return this.showInvisibles},this.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},this.setEolChar=function(e){this.EOL=e},this.setTextDir=function(e){this.isRtlDir=e},this.getPosLeft=function(e){e-=this.wrapIndent;var t=r.getVisualFromLogicalIdx(e>0?e-1:0,this.bidiMap),n=this.bidiMap.bidiLevels,i=0;0===e&&n[t]%2!==0&&t++;for(var o=0;o<t;o++)i+=this.charWidths[n[o]];return 0!==e&&n[t]%2===0&&(i+=this.charWidths[n[t]]),this.wrapIndent&&(i+=this.wrapIndent*this.charWidths[r.L]),i},this.getSelections=function(e,t){for(var n,i,o=this.bidiMap,a=o.bidiLevels,s=this.wrapIndent*this.charWidths[r.L],c=[],l=Math.min(e,t)-this.wrapIndent,u=Math.max(e,t)-this.wrapIndent,d=!1,f=!1,p=0,h=0;h<a.length;h++)i=o.logicalFromVisual[h],n=a[h],d=i>=l&&i<u,d&&!f?p=s:!d&&f&&c.push({left:p,width:s-p}),s+=this.charWidths[n],f=d;return d&&h===a.length&&c.push({left:p,width:s-p}),c},this.offsetToCol=function(e){var t=0,n=(e=Math.max(e,0),0),i=0,o=this.bidiMap.bidiLevels,a=this.charWidths[o[i]];this.wrapIndent&&(e-=this.wrapIndent*this.charWidths[r.L]);while(e>n+a/2){if(n+=a,i===o.length-1){a=0;break}a=this.charWidths[o[++i]]}return i>0&&o[i-1]%2!==0&&o[i]%2===0?(e<n&&i--,t=this.bidiMap.logicalFromVisual[i]):i>0&&o[i-1]%2===0&&o[i]%2!==0?t=1+(e>n?this.bidiMap.logicalFromVisual[i]:this.bidiMap.logicalFromVisual[i-1]):this.isRtlDir&&i===o.length-1&&0===a&&o[i-1]%2===0||!this.isRtlDir&&0===i&&o[i]%2!==0?t=1+this.bidiMap.logicalFromVisual[i]:(i>0&&o[i-1]%2!==0&&0!==a&&i--,t=this.bidiMap.logicalFromVisual[i]),t+this.wrapIndent}}).call(s.prototype),t.BidiHandler=s})),ace.define("ace/range",["require","exports","module"],(function(e,t,n){"use strict";var r=function(e,t){return e.row-t.row||e.column-t.column},i=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,r=e.start;return t=this.compare(n.row,n.column),1==t?(t=this.compare(r.row,r.column),1==t?2:0==t?1:0):-1==t?-2:(t=this.compare(r.row,r.column),-1==t?-1:1==t?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.row<e)n={row:e,column:0};if(this.start.row>t)var r={row:t+1,column:0};else if(this.start.row<e)r={row:e,column:0};return i.fromPoints(r||this.start,n||this.end)},this.extend=function(e,t){var n=this.compare(e,t);if(0==n)return this;if(-1==n)var r={row:e,column:t};else var o={row:e,column:t};return i.fromPoints(r||this.start,o||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return i.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new i(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new i(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),n=e.documentToScreenPosition(this.end);return new i(t.row,t.column,n.row,n.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(i.prototype),i.fromPoints=function(e,t){return new i(e.row,e.column,t.row,t.column)},i.comparePoints=r,i.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=i})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/lang"),o=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.lead=this.selectionLead=this.doc.createAnchor(0,0),this.anchor=this.selectionAnchor=this.doc.createAnchor(0,0);var t=this;this.lead.on("change",(function(e){t._emit("changeCursor"),t.$isEmpty||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.selectionAnchor.on("change",(function(){t.$isEmpty||t._emit("changeSelection")}))};(function(){r.implement(this,o),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.isEmpty()&&this.getRange().isMultiLine()},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.anchor.setPosition(e,t),this.$isEmpty&&(this.$isEmpty=!1,this._emit("changeSelection"))},this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.shiftSelection=function(e){if(this.$isEmpty)this.moveCursorTo(this.lead.row,this.lead.column+e);else{var t=this.getSelectionAnchor(),n=this.getSelectionLead(),r=this.isBackwards();r&&0===t.column||this.setSelectionAnchor(t.row,t.column+e),(r||0!==n.column)&&this.$moveSelection((function(){this.moveCursorTo(n.row,n.column+e)}))}},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.isEmpty()?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){var e=this.doc.getLength()-1;this.setSelectionAnchor(0,0),this.moveCursorTo(e,this.doc.getLine(e).length)},this.setRange=this.setSelectionRange=function(e,t){t?(this.setSelectionAnchor(e.end.row,e.end.column),this.selectTo(e.start.row,e.start.column)):(this.setSelectionAnchor(e.start.row,e.start.column),this.selectTo(e.end.row,e.end.column)),this.getRange().isEmpty()&&(this.$isEmpty=!0),this.$desiredColumn=null},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},this.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if("undefined"==typeof t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,r="number"==typeof e?e:this.lead.row,i=this.session.getFoldLine(r);return i?(r=i.start.row,n=i.end.row):n=r,!0===t?new a(r,0,n,this.session.getLine(n).length):new a(r,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var r=e.column,i=e.column+t;return n<0&&(r=e.column-t,i=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(r,i).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var n=this.session.getTabSize();t=this.lead;this.wouldMoveIntoSoftTab(t,n,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),r=this.session.screenToDocumentPosition(n,0),i=this.session.getDisplayLine(e,null,r.row,r.column),o=i.match(/^\s*/);o[0].length==t||this.session.$useEmacsStyleLineStart||(r.column+=o[0].length),this.moveCursorToPosition(r)},this.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var n=this.session.getLine(t.row);if(t.column==n.length){var r=n.search(/\s+$/);r>0&&(t.column=r)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var i=this.session.getFoldAt(e,t,1);if(i)this.moveCursorTo(i.end.row,i.end.column);else{if(this.session.nonTokenRe.exec(r)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,r=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(r)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},this.moveCursorLongWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))this.moveCursorTo(e.start.row,e.start.column);else{var r=this.session.getFoldStringAt(t,n,-1);null==r&&(r=this.doc.getLine(t).substring(0,n));var o=i.stringReverse(r);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(o)&&(n-=this.session.nonTokenRe.lastIndex,o=o.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(t>0&&this.moveCursorWordLeft());this.session.tokenRe.exec(o)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,r=/\s/,i=this.session.tokenRe;if(i.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{while((t=e[n])&&r.test(t))n++;if(n<1){i.lastIndex=0;while((t=e[n])&&!i.test(t))if(i.lastIndex=0,n++,r.test(t)){if(n>2){n--;break}while((t=e[n])&&r.test(t))n++;if(n>2)break}}}return i.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t),i=this.session.getFoldAt(e,t,1);if(i)return this.moveCursorTo(i.end.row,i.end.column);if(t==n.length){var o=this.doc.getLength();do{e++,r=this.doc.getLine(e)}while(e<o&&/^\s*$/.test(r));/^\s+/.test(r)||(r=""),t=0}var a=this.$shortWordEndIndex(r);this.moveCursorTo(e,t+a)},this.moveCursorShortWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))return this.moveCursorTo(e.start.row,e.start.column);var r=this.session.getLine(t).substring(0,n);if(0===n){do{t--,r=this.doc.getLine(t)}while(t>0&&/^\s*$/.test(r));n=r.length,/\s+$/.test(r)||(r="")}var o=i.stringReverse(r),a=this.$shortWordEndIndex(o);return this.moveCursorTo(t,n-a)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,r=this.session.documentToScreenPosition(this.lead.row,this.lead.column);0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column);var i=this.session.screenToDocumentPosition(r.row+e,r.column,n);0!==e&&0===t&&i.row===this.lead.row&&i.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[i.row]&&(i.row>0||e>0)&&i.row++,this.moveCursorTo(i.row,i.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var r=this.session.getFoldAt(e,t,1);r&&(e=r.start.row,t=r.start.column),this.$keepDesiredColumnOnChange=!0;var i=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(i.charAt(t))&&i.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var r=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(r.row,r.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return a.fromPoints(t,n)}catch(r){return a.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else{e=this.getRange();e.isBackwards=this.isBackwards()}return e},this.fromJSON=function(e){if(void 0==e.start){if(this.rangeList){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=a.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(s.prototype),t.Selection=s})),ace.define("ace/tokenizer",["require","exports","module","ace/config"],(function(e,t,n){"use strict";var r=e("./config"),i=2e3,o=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],r=[],i=0,o=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],c=0;c<n.length;c++){var l=n[c];if(l.defaultToken&&(o.defaultToken=l.defaultToken),l.caseInsensitive&&(a="gi"),null!=l.regex){l.regex instanceof RegExp&&(l.regex=l.regex.toString().slice(1,-1));var u=l.regex,d=new RegExp("(?:("+u+")|(.))").exec("a").length-2;Array.isArray(l.token)?1==l.token.length||1==d?l.token=l.token[0]:d-1!=l.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:l,groupCount:d-1}),l.token=l.token[0]):(l.tokenArray=l.token,l.token=null,l.onMatch=this.$arrayTokens):"function"!=typeof l.token||l.onMatch||(l.onMatch=d>1?this.$applyToken:l.token),d>1&&(/\\\d/.test(l.regex)?u=l.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+i+1)})):(d=1,u=this.removeCapturingGroups(l.regex)),l.splitRegex||"string"==typeof l.token||s.push(l)),o[i]=c,i+=d,r.push(u),l.onMatch||(l.onMatch=null)}}r.length||(o[0]=0,r.push("$")),s.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)}),this),this.regExps[t]=new RegExp("("+r.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){i=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"===typeof n)return[{type:n,value:e}];for(var r=[],i=0,o=n.length;i<o;i++)t[i]&&(r[r.length]={type:n[i],value:t[i]});return r},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],r=this.tokenArray,i=0,o=r.length;i<o;i++)t[i+1]&&(n[n.length]={type:r[i],value:t[i+1]});return n},this.removeCapturingGroups=function(e){var t=e.replace(/\[(?:\\.|[^\]])*?\]|\\.|\(\?[:=!]|(\()/g,(function(e,t){return t?"(?:":e}));return t},this.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var n=0,r=!1,i={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,(function(e,t,o,a,s,c){return r?r="]"!=s:s?r=!0:a?(n==i.stack&&(i.end=c+1,i.stack=-1),n--):o&&(n++,1!=o.length&&(i.stack=n,i.start=c)),e})),null!=i.end&&/^\)*$/.test(e.substr(i.end))&&(e=e.substring(0,i.start)+e.substr(i.end))}return"^"!=e.charAt(0)&&(e="^"+e),"$"!=e.charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},this.getLineTokens=function(e,t){if(t&&"string"!=typeof t){var n=t.slice(0);t=n[0],"#tmp"===t&&(n.shift(),t=n.shift())}else n=[];var r=t||"start",o=this.states[r];o||(r="start",o=this.states[r]);var a=this.matchMappings[r],s=this.regExps[r];s.lastIndex=0;var c,l=[],u=0,d=0,f={type:null,value:""};while(c=s.exec(e)){var p=a.defaultToken,h=null,m=c[0],g=s.lastIndex;if(g-m.length>u){var v=e.substring(u,g-m.length);f.type==p?f.value+=v:(f.type&&l.push(f),f={type:p,value:v})}for(var b=0;b<c.length-2;b++)if(void 0!==c[b+1]){h=o[a[b]],p=h.onMatch?h.onMatch(m,r,n,e):h.token,h.next&&(r="string"==typeof h.next?h.next:h.next(r,n),o=this.states[r],o||(this.reportError("state doesn't exist",r),r="start",o=this.states[r]),a=this.matchMappings[r],u=g,s=this.regExps[r],s.lastIndex=g),h.consumeLineEnd&&(u=g);break}if(m)if("string"===typeof p)h&&!1===h.merge||f.type!==p?(f.type&&l.push(f),f={type:p,value:m}):f.value+=m;else if(p){f.type&&l.push(f),f={type:null,value:""};for(b=0;b<p.length;b++)l.push(p[b])}if(u==e.length)break;if(u=g,d++>i){d>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});while(u<e.length)f.type&&l.push(f),f={value:e.substring(u,u+=2e3),type:"overflow"};r="start",n=[];break}}return f.type&&l.push(f),n.length>1&&n[0]!==r&&n.unshift("#tmp",r),{tokens:l,state:n.length?n:r}},this.reportError=r.reportError}).call(o.prototype),t.Tokenizer=o})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],(function(e,t,n){"use strict";var r=e("../lib/lang"),i=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var r=e[n],i=0;i<r.length;i++){var o=r[i];(o.next||o.onMatch)&&("string"==typeof o.next&&0!==o.next.indexOf(t)&&(o.next=t+o.next),o.nextState&&0!==o.nextState.indexOf(t)&&(o.nextState=t+o.nextState))}this.$rules[t+n]=r}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,i,o){var a="function"==typeof e?(new e).getRules():e;if(i)for(var s=0;s<i.length;s++)i[s]=t+i[s];else for(var c in i=[],a)i.push(t+c);if(this.addRules(a,t),n){var l=Array.prototype[o?"push":"unshift"];for(s=0;s<i.length;s++)l.apply(this.$rules[i[s]],r.deepCopy(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var e=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},t=function(e,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){var n=0,r=this.$rules;function i(o){var a=r[o];a.processed=!0;for(var s=0;s<a.length;s++){var c=a[s],l=null;Array.isArray(c)&&(l=c,c={}),!c.regex&&c.start&&(c.regex=c.start,c.next||(c.next=[]),c.next.push({defaultToken:c.token},{token:c.token+".end",regex:c.end||c.start,next:"pop"}),c.token=c.token+".start",c.push=!0);var u=c.next||c.push;if(u&&Array.isArray(u)){var d=c.stateName;d||(d=c.token,"string"!=typeof d&&(d=d[0]||""),r[d]&&(d+=n++)),r[d]=u,c.next=d,i(d)}else"pop"==u&&(c.next=t);if(c.push&&(c.nextState=c.next||c.push,c.next=e,delete c.push),c.rules)for(var f in c.rules)r[f]?r[f].push&&r[f].push.apply(r[f],c.rules[f]):r[f]=c.rules[f];var p="string"==typeof c?c:c.include;if(p&&(l=Array.isArray(p)?p.map((function(e){return r[e]})):r[p]),l){var h=[s,1].concat(l);c.noEscape&&(h=h.filter((function(e){return!e.next}))),a.splice.apply(a,h),s--}c.keywordMap&&(c.token=this.createKeywordMapper(c.keywordMap,c.defaultToken||"text",c.caseInsensitive),delete c.defaultToken)}}Object.keys(r).forEach(i,this)},this.createKeywordMapper=function(e,t,n,r){var i=Object.create(null);return Object.keys(e).forEach((function(t){var o=e[t];n&&(o=o.toLowerCase());for(var a=o.split(r||"|"),s=a.length;s--;)i[a[s]]=t})),Object.getPrototypeOf(i)&&(i.__proto__=null),this.$keywordList=Object.keys(i),e=null,n?function(e){return i[e.toLowerCase()]||t}:function(e){return i[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(i.prototype),t.TextHighlightRules=i})),ace.define("ace/mode/behaviour",["require","exports","module"],(function(e,t,n){"use strict";var r=function(){this.$behaviours={}};(function(){this.add=function(e,t,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if("function"===typeof e)var n=(new e).getBehaviours(t);else n=e.getBehaviours(t);this.addBehaviours(n)},this.getBehaviours=function(e){if(e){for(var t={},n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}return this.$behaviours}}).call(r.prototype),t.Behaviour=r})),ace.define("ace/token_iterator",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("./range").Range,i=function(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var r=e.getTokenAt(t,n);this.$tokenIndex=r?r.index:-1};(function(){this.stepBackward=function(){this.$tokenIndex-=1;while(this.$tokenIndex<0){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){var e;this.$tokenIndex+=1;while(this.$tokenIndex>=this.$rowTokens.length){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;n=0;while(t>0)t-=1,n+=e[t].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new r(this.$row,t,this.$row,t+e.value.length)}}).call(i.prototype),t.TokenIterator=i})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var r,i=e("../../lib/oop"),o=e("../behaviour").Behaviour,a=e("../../token_iterator").TokenIterator,s=e("../../lib/lang"),c=["text","paren.rparen","punctuation.operator"],l=["text","paren.rparen","punctuation.operator","comment"],u={},d={'"':'"',"'":"'"},f=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,u.rangeCount!=e.multiSelect.rangeCount&&(u={rangeCount:e.multiSelect.rangeCount})),u[t])return r=u[t];r=u[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},p=function(e,t,n,r){var i=e.end.row-e.start.row;return{text:n+t+r,selection:[0,e.start.column+1,i,e.end.column+(i?0:1)]}},h=function(e){this.add("braces","insertion",(function(t,n,i,o,a){var c=i.getCursorPosition(),l=o.doc.getLine(c.row);if("{"==a){f(i);var u=i.getSelectionRange(),d=o.doc.getTextRange(u);if(""!==d&&"{"!==d&&i.getWrapBehavioursEnabled())return p(u,d,"{","}");if(h.isSaneInsertion(i,o))return/[\]\}\)]/.test(l[c.column])||i.inMultiSelectMode||e&&e.braces?(h.recordAutoInsert(i,o,"}"),{text:"{}",selection:[1,1]}):(h.recordMaybeInsert(i,o,"{"),{text:"{",selection:[1,1]})}else if("}"==a){f(i);var m=l.substring(c.column,c.column+1);if("}"==m){var g=o.$findOpeningBracket("}",{column:c.column+1,row:c.row});if(null!==g&&h.isAutoInsertedClosing(c,l,a))return h.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else{if("\n"==a||"\r\n"==a){f(i);var v="";h.isMaybeInsertedClosing(c,l)&&(v=s.stringRepeat("}",r.maybeInsertedBrackets),h.clearMaybeInsertedClosing());m=l.substring(c.column,c.column+1);if("}"===m){var b=o.findMatchingBracket({row:c.row,column:c.column+1},"}");if(!b)return null;var _=this.$getIndent(o.getLine(b.row))}else{if(!v)return void h.clearMaybeInsertedClosing();_=this.$getIndent(l)}var y=_+o.getTabString();return{text:"\n"+y+"\n"+_+v,selection:[1,y.length,1,y.length]}}h.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,n,i,o){var a=i.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==a){f(n);var s=i.doc.getLine(o.start.row),c=s.substring(o.end.column,o.end.column+1);if("}"==c)return o.end.column++,o;r.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(e,t,n,r,i){if("("==i){f(n);var o=n.getSelectionRange(),a=r.doc.getTextRange(o);if(""!==a&&n.getWrapBehavioursEnabled())return p(o,a,"(",")");if(h.isSaneInsertion(n,r))return h.recordAutoInsert(n,r,")"),{text:"()",selection:[1,1]}}else if(")"==i){f(n);var s=n.getCursorPosition(),c=r.doc.getLine(s.row),l=c.substring(s.column,s.column+1);if(")"==l){var u=r.$findOpeningBracket(")",{column:s.column+1,row:s.row});if(null!==u&&h.isAutoInsertedClosing(s,c,i))return h.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}})),this.add("parens","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"("==o){f(n);var a=r.doc.getLine(i.start.row),s=a.substring(i.start.column+1,i.start.column+2);if(")"==s)return i.end.column++,i}})),this.add("brackets","insertion",(function(e,t,n,r,i){if("["==i){f(n);var o=n.getSelectionRange(),a=r.doc.getTextRange(o);if(""!==a&&n.getWrapBehavioursEnabled())return p(o,a,"[","]");if(h.isSaneInsertion(n,r))return h.recordAutoInsert(n,r,"]"),{text:"[]",selection:[1,1]}}else if("]"==i){f(n);var s=n.getCursorPosition(),c=r.doc.getLine(s.row),l=c.substring(s.column,s.column+1);if("]"==l){var u=r.$findOpeningBracket("]",{column:s.column+1,row:s.row});if(null!==u&&h.isAutoInsertedClosing(s,c,i))return h.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}})),this.add("brackets","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"["==o){f(n);var a=r.doc.getLine(i.start.row),s=a.substring(i.start.column+1,i.start.column+2);if("]"==s)return i.end.column++,i}})),this.add("string_dquotes","insertion",(function(e,t,n,r,i){var o=r.$mode.$quotes||d;if(1==i.length&&o[i]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(i))return;f(n);var a=i,s=n.getSelectionRange(),c=r.doc.getTextRange(s);if(!(""===c||1==c.length&&o[c])&&n.getWrapBehavioursEnabled())return p(s,c,a,a);if(!c){var l=n.getCursorPosition(),u=r.doc.getLine(l.row),h=u.substring(l.column-1,l.column),m=u.substring(l.column,l.column+1),g=r.getTokenAt(l.row,l.column),v=r.getTokenAt(l.row,l.column+1);if("\\"==h&&g&&/escape/.test(g.type))return null;var b,_=g&&/string|escape/.test(g.type),y=!v||/string|escape/.test(v.type);if(m==a)b=_!==y,b&&/string\.end/.test(v.type)&&(b=!1);else{if(_&&!y)return null;if(_&&y)return null;var w=r.$mode.tokenRe;w.lastIndex=0;var x=w.test(h);w.lastIndex=0;var k=w.test(h);if(x||k)return null;if(m&&!/[\s;,.})\]\\]/.test(m))return null;b=!0}return{text:b?a+a:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&('"'==o||"'"==o)){f(n);var a=r.doc.getLine(i.start.row),s=a.substring(i.start.column+1,i.start.column+2);if(s==o)return i.end.column++,i}}))};h.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),r=new a(t,n.row,n.column);if(!this.$matchTokenType(r.getCurrentToken()||"text",c)){var i=new a(t,n.row,n.column+1);if(!this.$matchTokenType(i.getCurrentToken()||"text",c))return!1}return r.stepForward(),r.getCurrentTokenRow()!==n.row||this.$matchTokenType(r.getCurrentToken()||"text",l)},h.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},h.recordAutoInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isAutoInsertedClosing(i,o,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=i.row,r.autoInsertedLineEnd=n+o.substr(i.column),r.autoInsertedBrackets++},h.recordMaybeInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isMaybeInsertedClosing(i,o)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=i.row,r.maybeInsertedLineStart=o.substr(0,i.column)+n,r.maybeInsertedLineEnd=o.substr(i.column),r.maybeInsertedBrackets++},h.isAutoInsertedClosing=function(e,t,n){return r.autoInsertedBrackets>0&&e.row===r.autoInsertedRow&&n===r.autoInsertedLineEnd[0]&&t.substr(e.column)===r.autoInsertedLineEnd},h.isMaybeInsertedClosing=function(e,t){return r.maybeInsertedBrackets>0&&e.row===r.maybeInsertedRow&&t.substr(e.column)===r.maybeInsertedLineEnd&&t.substr(0,e.column)==r.maybeInsertedLineStart},h.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},h.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},i.inherits(h,o),t.CstyleBehaviour=h})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,n){"use strict";function r(e){var n=/\w{4}/g;for(var r in e)t.packages[r]=e[r].replace(n,"\\u$&")}t.packages={},r({L:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",Ll:"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",Lu:"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",Lt:"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",Lm:"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",Lo:"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",M:"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",Mn:"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",Mc:"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",Me:"0488048906DE20DD-20E020E2-20E4A670-A672",N:"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nd:"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nl:"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",No:"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",P:"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",Pd:"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",Ps:"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",Pe:"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",Pi:"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",Pf:"00BB2019201D203A2E032E052E0A2E0D2E1D2E21",Pc:"005F203F20402054FE33FE34FE4D-FE4FFF3F",Po:"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",S:"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",Sm:"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",Sc:"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",Sk:"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",So:"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",Z:"002000A01680180E2000-200A20282029202F205F3000",Zs:"002000A01680180E2000-200A202F205F3000",Zl:"2028",Zp:"2029",C:"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",Cc:"0000-001F007F-009F",Cf:"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",Co:"E000-F8FF",Cs:"D800-DFFF",Cn:"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"})})),ace.define("ace/mode/text",["require","exports","module","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var r=e("../tokenizer").Tokenizer,i=e("./text_highlight_rules").TextHighlightRules,o=e("./behaviour/cstyle").CstyleBehaviour,a=e("../unicode"),s=e("../lib/lang"),c=e("../token_iterator").TokenIterator,l=e("../range").Range,u=function(){this.HighlightRules=i};(function(){this.$defaultBehaviour=new o,this.tokenRe=new RegExp("^["+a.packages.L+a.packages.Mn+a.packages.Mc+a.packages.Nd+a.packages.Pc+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+a.packages.L+a.packages.Mn+a.packages.Mc+a.packages.Nd+a.packages.Pc+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new r(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,t,n,r){var i=t.doc,o=!0,a=!0,c=1/0,l=t.getTabSize(),u=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))m=this.lineCommentStart.map(s.escapeRegExp).join("|"),p=this.lineCommentStart[0];else m=s.escapeRegExp(this.lineCommentStart),p=this.lineCommentStart;m=new RegExp("^(\\s*)(?:"+m+") ?"),u=t.getUseSoftTabs();b=function(e,t){var n=e.match(m);if(n){var r=n[1].length,o=n[0].length;f(e,r,o)||" "!=n[0][o-1]||o--,i.removeInLine(t,r,o)}};var d=p+" ",f=(v=function(e,t){o&&!/\S/.test(e)||(f(e,c,c)?i.insertInLine({row:t,column:c},d):i.insertInLine({row:t,column:c},p))},_=function(e,t){return m.test(e)},function(e,t,n){var r=0;while(t--&&" "==e.charAt(t))r++;if(r%l!=0)return!1;r=0;while(" "==e.charAt(n++))r++;return l>2?r%l!=l-1:r%l==0})}else{if(!this.blockComment)return!1;var p=this.blockComment.start,h=this.blockComment.end,m=new RegExp("^(\\s*)(?:"+s.escapeRegExp(p)+")"),g=new RegExp("(?:"+s.escapeRegExp(h)+")\\s*$"),v=function(e,t){_(e,t)||o&&!/\S/.test(e)||(i.insertInLine({row:t,column:e.length},h),i.insertInLine({row:t,column:c},p))},b=function(e,t){var n;(n=e.match(g))&&i.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(m))&&i.removeInLine(t,n[1].length,n[0].length)},_=function(e,n){if(m.test(e))return!0;for(var r=t.getTokens(n),i=0;i<r.length;i++)if("comment"===r[i].type)return!0}}function y(e){for(var t=n;t<=r;t++)e(i.getLine(t),t)}var w=1/0;y((function(e,t){var n=e.search(/\S/);-1!==n?(n<c&&(c=n),a&&!_(e,t)&&(a=!1)):w>e.length&&(w=e.length)})),c==1/0&&(c=w,o=!1,a=!1),u&&c%l!=0&&(c=Math.floor(c/l)*l),y(a?b:v)},this.toggleBlockComment=function(e,t,n,r){var i=this.blockComment;if(i){!i.start&&i[0]&&(i=i[0]);var o,a,s=new c(t,r.row,r.column),u=s.getCurrentToken(),d=(t.selection,t.selection.toOrientedRange());if(u&&/comment/.test(u.type)){var f,p;while(u&&/comment/.test(u.type)){var h=u.value.indexOf(i.start);if(-1!=h){var m=s.getCurrentTokenRow(),g=s.getCurrentTokenColumn()+h;f=new l(m,g,m,g+i.start.length);break}u=s.stepBackward()}s=new c(t,r.row,r.column),u=s.getCurrentToken();while(u&&/comment/.test(u.type)){h=u.value.indexOf(i.end);if(-1!=h){m=s.getCurrentTokenRow(),g=s.getCurrentTokenColumn()+h;p=new l(m,g,m,g+i.end.length);break}u=s.stepForward()}p&&t.remove(p),f&&(t.remove(f),o=f.start.row,a=-i.start.length)}else a=i.start.length,o=n.start.row,t.insert(n.end,i.end),t.insert(n.start,i.start);d.start.row==o&&(d.start.column+=a),d.end.row==o&&(d.end.column+=a),t.selection.fromOrientedRange(d)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)e[t]&&(this.$embeds.push(t),this.$modes[t]=new e[t]);var n=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;t<n.length;t++)(function(e){var r=n[t],i=e[r];e[n[t]]=function(){return this.$delegator(r,arguments,i)}})(this)},this.$delegator=function(e,t,n){var r=t[0];"string"!=typeof r&&(r=r[0]);for(var i=0;i<this.$embeds.length;i++)if(this.$modes[this.$embeds[i]]){var o=r.split(this.$embeds[i]);if(!o[0]&&o[1]){t[0]=o[1];var a=this.$modes[this.$embeds[i]];return a[e].apply(a,t)}}var s=n.apply(this,t);return n?s:void 0},this.transformAction=function(e,t,n,r,i){if(this.$behaviour){var o=this.$behaviour.getBehaviours();for(var a in o)if(o[a][t]){var s=o[a][t].apply(this,arguments);if(s)return s}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var r in t)for(var i=t[r],o=0,a=i.length;o<a;o++)if("string"===typeof i[o].token)/keyword|support|storage/.test(i[o].token)&&n.push(i[o].regex);else if("object"===typeof i[o].token)for(var s=0,c=i[o].token.length;s<c;s++)if(/keyword|support|storage/.test(i[o].token[s])){r=i[o].regex.match(/\(.+?\)/g)[s];n.push(r.substr(1,r.length-2))}this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,n,r){var i=this.$keywordList||this.$createKeywordList();return i.map((function(e){return{name:e,value:e,score:0,meta:"keyword"}}))},this.$id="ace/mode/text"}).call(u.prototype),t.Mode=u})),ace.define("ace/apply_delta",["require","exports","module"],(function(e,t,n){"use strict";t.applyDelta=function(e,t,n){var r=t.start.row,i=t.start.column,o=e[r]||"";switch(t.action){case"insert":var a=t.lines;if(1===a.length)e[r]=o.substring(0,i)+t.lines[0]+o.substring(i);else{var s=[r,1].concat(t.lines);e.splice.apply(e,s),e[r]=o.substring(0,i)+e[r],e[r+t.lines.length-1]+=o.substring(i)}break;case"remove":var c=t.end.column,l=t.end.row;r===l?e[r]=o.substring(0,i)+o.substring(c):e.splice(r,l-r+1,o.substring(0,i)+e[l].substring(c));break}}})),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),"undefined"==typeof n?this.setPosition(t.row,t.column):this.setPosition(t,n)};(function(){function e(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}function t(t,n,r){var i="insert"==t.action,o=(i?1:-1)*(t.end.row-t.start.row),a=(i?1:-1)*(t.end.column-t.start.column),s=t.start,c=i?s:t.end;return e(n,s,r)?{row:n.row,column:n.column}:e(c,n,!r)?{row:n.row+o,column:n.column+(n.row==c.row?a:0)}:{row:s.row,column:s.column}}r.implement(this,i),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if((e.start.row!=e.end.row||e.start.row==this.row)&&!(e.start.row>this.row)){var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var r;if(r=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=r.row||this.column!=r.column){var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(o.prototype)})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=e("./anchor").Anchor,c=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,o),this.setValue=function(e){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new s(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return this.insertFullLines(e,t)},this.removeLines=function(e,t){return this.removeFullLines(e,t)},this.insertNewLine=function(e){return this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var r=this.getLine(e);return void 0==t&&(t=r.length),t=Math.min(Math.max(t,0),r.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},this.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:"insert",lines:t}),this.clonePos(r)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},this.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),i=this.clippedPos(e,n);return this.applyDelta({start:r,end:i,action:"remove",lines:this.getLinesForRange({start:r,end:i})},!0),this.clonePos(r)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1),t=Math.min(Math.max(0,t),this.getLength()-1);var n=t==this.getLength()-1&&e>0,r=t<this.getLength()-1,i=n?e-1:e,o=n?this.getLine(i).length:0,s=r?t+1:t,c=r?0:this.getLine(s).length,l=new a(i,o,s,c),u=this.$lines.slice(e,t+1);return this.applyDelta({start:l.start,end:l.end,action:"remove",lines:this.getLinesForRange(l)}),u},this.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof a||(e=a.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),n=t?this.insert(e.start,t):e.start,n);var n},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!a.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4&&this.$splitAndapplyLargeDelta(e,2e4),i(this.$lines,e,t),this._signal("change",e))},this.$splitAndapplyLargeDelta=function(e,t){var n=e.lines,r=n.length,i=e.start.row,o=e.start.column,a=0,s=0;do{a=s,s+=t-1;var c=n.slice(a,s);if(s>r){e.lines=c,e.start.row=i+a,e.start.column=o;break}c.push(""),this.applyDelta({start:this.pos(i+a,o),end:this.pos(i+s,o=0),action:e.action,lines:c},!0)}while(1)},this.revertDelta=function(e){this.applyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=t||0,o=n.length;i<o;i++)if(e-=n[i].length+r,e<0)return{row:i,column:e+n[i].length+r};return{row:o-1,column:n[o-1].length}},this.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,i=0,o=Math.min(e.row,n.length),a=t||0;a<o;++a)i+=n[a].length+r;return i+e.column}}).call(c.prototype),t.Document=c})),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=function(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var n=this;this.$worker=function(){if(n.running){var e=new Date,t=n.currentLine,r=-1,i=n.doc,o=t;while(n.lines[t])t++;var a=i.getLength(),s=0;n.running=!1;while(t<a){n.$tokenizeRow(t),r=t;do{t++}while(n.lines[t]);if(s++,s%5===0&&new Date-e>20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==r&&(r=t),o<=r&&n.fireUpdateEvent(o,r)}}};(function(){r.implement(this,i),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.lines.splice.apply(this.lines,r),this.states.splice.apply(this.states,r)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],r=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!==r.state+""?(this.states[e]=r.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=r.tokens}}).call(o.prototype),t.BackgroundTokenizer=o})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),i=(e("./lib/oop"),e("./range").Range),o=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,o){if(this.regExp)for(var a=o.firstRow,s=o.lastRow,c=a;c<=s;c++){var l=this.cache[c];null==l&&(l=r.getMatchOffsets(n.getLine(c),this.regExp),l.length>this.MAX_RANGES&&(l=l.slice(0,this.MAX_RANGES)),l=l.map((function(e){return new i(c,e.offset,c,e.offset+e.length)})),this.cache[c]=l.length?l:"");for(var u=l.length;u--;)t.drawSingleLineMarker(e,l[u].toScreenRange(n),this.clazz,o)}}}).call(o.prototype),t.SearchHighlight=o})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range;function i(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new r(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var r,i,o,a=0,s=this.folds,c=!0;null==t&&(t=this.end.row,n=this.end.column);for(var l=0;l<s.length;l++){if(r=s[l],i=r.range.compareStart(t,n),-1==i)return void e(null,t,n,a,c);if(o=e(null,r.start.row,r.start.column,a,c),o=!o&&e(r.placeholder,r.start.row,r.start.column,a),o||0===i)return;c=!r.sameRow,a=r.end.column}e(null,t,n,a,c)},this.getNextFoldTo=function(e,t){for(var n,r,i=0;i<this.folds.length;i++){if(n=this.folds[i],r=n.range.compareEnd(e,t),-1==r)return{fold:n,kind:"after"};if(0===r)return{fold:n,kind:"inside"}}return null},this.addRemoveChars=function(e,t,n){var r,i,o=this.getNextFoldTo(e,t);if(o)if(r=o.fold,"inside"==o.kind&&r.start.column!=t&&r.start.row!=e)window.console&&window.console.log(e,t,r);else if(r.start.row==e){i=this.folds;var a=i.indexOf(r);for(0===a&&(this.start.column+=n),a;a<i.length;a++){if(r=i[a],r.start.column+=n,!r.sameRow)return;r.end.column+=n}this.end.column+=n}},this.split=function(e,t){var n=this.getNextFoldTo(e,t);if(!n||"inside"==n.kind)return null;var r=n.fold,o=this.folds,a=this.foldData,s=o.indexOf(r),c=o[s-1];this.end.row=c.end.row,this.end.column=c.end.column,o=o.splice(s,o.length-s);var l=new i(a,o);return a.splice(a.indexOf(this)+1,0,l),l},this.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var r=this.foldData;r.splice(r.indexOf(e),1)},this.toString=function(){var e=[this.range.toString()+": ["];return this.folds.forEach((function(t){e.push(" "+t.toString())})),e.push("]"),e.join("\n")},this.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var r=this.folds[n];if(e-=r.start.column-t,e<0)return{row:r.start.row,column:r.start.column+e};if(e-=r.placeholder.length,e<0)return r.start;t=r.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(i.prototype),t.FoldLine=i})),ace.define("ace/range_list",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("./range").Range,i=r.comparePoints,o=function(){this.ranges=[]};(function(){this.comparePoints=i,this.pointIndex=function(e,t,n){for(var r=this.ranges,o=n||0;o<r.length;o++){var a=r[o],s=i(e,a.end);if(!(s>0)){var c=i(e,a.start);return 0===s?t&&0!==c?-o-2:o:c>0||0===c&&!t?o:-o-1}}return-o-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var r=this.pointIndex(e.end,t,n);return r<0?r=-r-1:r++,this.ranges.splice(n,r-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){var e=[],t=this.ranges;t=t.sort((function(e,t){return i(e.start,t.start)}));for(var n,r=t[0],o=1;o<t.length;o++){n=r,r=t[o];var a=i(n.end,r.start);a<0||(0!=a||n.isEmpty()||r.isEmpty())&&(i(n.end,r.end)<0&&(n.end.row=r.end.row,n.end.column=r.end.column),t.splice(o,1),e.push(r),r=n,o--)}return this.ranges=t,e},this.contains=function(e,t){return this.pointIndex({row:e,column:t})>=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];var r=this.pointIndex({row:e,column:0});r<0&&(r=-r-1);var i=this.pointIndex({row:t,column:0},r);i<0&&(i=-i-1);for(var o=[],a=r;a<i;a++)o.push(n[a]);return o},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(e){if("insert"==e.action)var t=e.start,n=e.end;else n=e.start,t=e.end;for(var r=t.row,i=n.row,o=i-r,a=-t.column+n.column,s=this.ranges,c=0,l=s.length;c<l;c++){var u=s[c];if(!(u.end.row<r)){if(u.start.row>r)break;if(u.start.row==r&&u.start.column>=t.column&&(u.start.column==t.column&&this.$insertRight||(u.start.column+=a,u.start.row+=o)),u.end.row==r&&u.end.column>=t.column){if(u.end.column==t.column&&this.$insertRight)continue;u.end.column==t.column&&a>0&&c<l-1&&u.end.column>u.start.column&&u.end.column==s[c+1].start.column&&(u.end.column-=a),u.end.column+=a,u.end.row+=o}}}if(0!=o&&c<l)for(;c<l;c++){u=s[c];u.start.row+=o,u.end.row+=o}}}).call(o.prototype),t.RangeList=o})),ace.define("ace/edit_session/fold",["require","exports","module","ace/range","ace/range_list","ace/lib/oop"],(function(e,t,n){"use strict";e("../range").Range;var r=e("../range_list").RangeList,i=e("../lib/oop"),o=t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]};function a(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function s(e,t){a(e.start,t),a(e.end,t)}function c(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}function l(e,t){c(e.start,t),c(e.end,t)}i.inherits(o,r),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach((function(t){t.setFoldLine(e)}))},this.clone=function(){var e=this.range.clone(),t=new o(e,this.placeholder);return this.subFolds.forEach((function(e){t.subFolds.push(e.clone())})),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(!this.range.isEqual(e)){if(!this.range.containsRange(e))throw new Error("A fold can't intersect already existing fold"+e.range+this.range);s(e,this.start);for(var t=e.start.row,n=e.start.column,r=0,i=-1;r<this.subFolds.length;r++)if(i=this.subFolds[r].range.compare(t,n),1!=i)break;var o=this.subFolds[r];if(0==i)return o.addSubFold(e);t=e.range.end.row,n=e.range.end.column;var a=r;for(i=-1;a<this.subFolds.length;a++)if(i=this.subFolds[a].range.compare(t,n),1!=i)break;this.subFolds[a];if(0==i)throw new Error("A fold can't intersect already existing fold"+e.range+this.range);this.subFolds.splice(r,a-r,e);return e.setFoldLine(this.foldLine),e}},this.restoreRange=function(e){return l(e,this.start)}}.call(o.prototype)})),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],(function(e,t,n){"use strict";var r=e("../range").Range,i=e("./fold_line").FoldLine,o=e("./fold").Fold,a=e("../token_iterator").TokenIterator;function s(){this.getFoldAt=function(e,t,n){var r=this.getFoldLine(e);if(!r)return null;for(var i=r.folds,o=0;o<i.length;o++){var a=i[o];if(a.range.contains(e,t)){if(1==n&&a.range.isEnd(e,t))continue;if(-1==n&&a.range.isStart(e,t))continue;return a}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,r=this.$foldData,i=[];t.column+=1,n.column-=1;for(var o=0;o<r.length;o++){var a=r[o].range.compareRange(e);if(2!=a){if(-2==a)break;for(var s=r[o].folds,c=0;c<s.length;c++){var l=s[c];if(a=l.range.compareRange(e),-2==a)break;if(2!=a){if(42==a)break;i.push(l)}}}}return t.column-=1,n.column+=1,i},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach((function(e){t=t.concat(this.getFoldsInRange(e))}),this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var r=0;r<t[n].folds.length;r++)e.push(t[n].folds[r]);return e},this.getFoldStringAt=function(e,t,n,r){if(r=r||this.getFoldLine(e),!r)return null;for(var i,o,a={end:{column:0}},s=0;s<r.folds.length;s++){o=r.folds[s];var c=o.range.compareEnd(e,t);if(-1==c){i=this.getLine(o.start.row).substring(a.end.column,o.start.column);break}if(0===c)return null;a=o}return i||(i=this.getLine(o.start.row).substring(a.end.column)),-1==n?i.substring(0,t-a.end.column):1==n?i.substring(t-a.end.column):i},this.getFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0),r;r<n.length;r++){var i=n[r];if(i.start.row<=e&&i.end.row>=e)return i;if(i.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0),r;r<n.length;r++){var i=n[r];if(i.end.row>=e)return i}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,r=t-e+1,i=0;i<n.length;i++){var o=n[i],a=o.end.row,s=o.start.row;if(a>=t){s<t&&(s>=e?r-=t-s:r=0);break}a>=e&&(r-=s>=e?a-s:a-e+1)}return r},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var n,r=this.$foldData,a=!1;e instanceof o?n=e:(n=new o(t,e),n.collapseChildren=t.collapseChildren),this.$clipRangeToDocument(n.range);var s=n.start.row,c=n.start.column,l=n.end.row,u=n.end.column;if(!(s<l||s==l&&c<=u-2))throw new Error("The range has to be at least 2 characters width");var d=this.getFoldAt(s,c,1),f=this.getFoldAt(l,u,-1);if(d&&f==d)return d.addSubFold(n);d&&!d.range.isStart(s,c)&&this.removeFold(d),f&&!f.range.isEnd(l,u)&&this.removeFold(f);var p=this.getFoldsInRange(n.range);p.length>0&&(this.removeFolds(p),p.forEach((function(e){n.addSubFold(e)})));for(var h=0;h<r.length;h++){var m=r[h];if(l==m.start.row){m.addFold(n),a=!0;break}if(s==m.end.row){if(m.addFold(n),a=!0,!n.sameRow){var g=r[h+1];if(g&&g.start.row==l){m.merge(g);break}}break}if(l<=m.start.row)break}return a||(m=this.$addFoldLine(new i(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(m.start.row,m.start.row):this.$updateRowLengthCache(m.start.row,m.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(e){e.forEach((function(e){this.addFold(e)}),this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,r=t.end.row,i=this.$foldData,o=t.folds;if(1==o.length)i.splice(i.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))o.pop(),t.end.row=o[o.length-1].end.row,t.end.column=o[o.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))o.shift(),t.start.row=o[0].start.row,t.start.column=o[0].start.column;else if(e.sameRow)o.splice(o.indexOf(e),1);else{var a=t.split(e.start.row,e.start.column);o=a.folds,o.shift(),a.start.row=o[0].start.row,a.start.column=o[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,r):this.$updateRowLengthCache(n,r)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach((function(e){this.removeFold(e)}),this),this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach((function(t){e.restoreRange(t),this.addFold(t)}),this),e.collapseChildren>0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var n,i;if(null==e?(n=new r(0,0,this.getLength(),0),t=!0):n="number"==typeof e?new r(e,0,e,this.getLine(e).length):"row"in e?r.fromPoints(e,e):e,i=this.getFoldsInRangeList(n),t)this.removeFolds(i);else{var o=i;while(o.length)this.expandFolds(o),o=this.getFoldsInRangeList(n)}if(i.length)return i},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,r,i){null==r&&(r=e.start.row),null==i&&(i=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var o=this.doc,a="";return e.walk((function(e,t,n,s){if(!(t<r)){if(t==r){if(n<i)return;s=Math.max(i,s)}a+=null!=e?e:o.getLine(t).substring(s,n)}}),t,n),a},this.getDisplayLine=function(e,t,n,r){var i,o=this.getFoldLine(e);return o?this.getFoldDisplayLine(o,e,t,n,r):(i=this.doc.getLine(e),i.substring(r||0,t||i.length))},this.$cloneFoldData=function(){var e=[];return e=this.$foldData.map((function(t){var n=t.folds.map((function(e){return e.clone()}));return new i(e,n)})),e},this.toggleFold=function(e){var t,n,r=this.selection,i=r.getRange();if(i.isEmpty()){var o=i.start;if(t=this.getFoldAt(o.row,o.column),t)return void this.expandFold(t);(n=this.findMatchingBracket(o))?1==i.comparePoint(n)?i.end=n:(i.start=n,i.start.column++,i.end.column--):(n=this.findMatchingBracket({row:o.row,column:o.column+1}))?(1==i.comparePoint(n)?i.end=n:i.start=n,i.start.column++):i=this.getCommentFoldRange(o.row,o.column)||i}else{var a=this.getFoldsInRange(i);if(e&&a.length)return void this.expandFolds(a);1==a.length&&(t=a[0])}if(t||(t=this.getFoldAt(i.start.row,i.start.column)),t&&t.range.toString()==i.toString())this.expandFold(t);else{var s="...";if(!i.isMultiLine()){if(s=this.getTextRange(i),s.length<4)return;s=s.trim().substring(0,2)+".."}this.addFold(s,i)}},this.getCommentFoldRange=function(e,t,n){var i=new a(this,e,t),o=i.getCurrentToken(),s=o.type;if(o&&/^comment|string/.test(s)){s=s.match(/comment|string/)[0],"comment"==s&&(s+="|doc-start");var c=new RegExp(s),l=new r;if(1!=n){do{o=i.stepBackward()}while(o&&c.test(o.type));i.stepForward()}if(l.start.row=i.getCurrentTokenRow(),l.start.column=i.getCurrentTokenColumn()+2,i=new a(this,e,t),-1!=n){var u=-1;do{if(o=i.stepForward(),-1==u){var d=this.getState(i.$row);c.test(d)||(u=i.$row)}else if(i.$row>u)break}while(o&&c.test(o.type));o=i.stepBackward()}else o=i.getCurrentToken();return l.end.row=i.getCurrentTokenRow(),l.end.column=i.getCurrentTokenColumn()+o.value.length-2,l}},this.foldAll=function(e,t,n){void 0==n&&(n=1e5);var r=this.foldWidgets;if(r){t=t||this.getLength(),e=e||0;for(var i=e;i<t;i++)if(null==r[i]&&(r[i]=this.getFoldWidget(i)),"start"==r[i]){var o=this.getFoldWidgetRange(i);if(o&&o.isMultiLine()&&o.end.row<=t&&o.start.row>=e){i=o.end.row;try{var a=this.addFold("...",o);a&&(a.collapseChildren=n)}catch(s){}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};var r,i=e-1;while(i>=0){var o=n[i];if(null==o&&(o=n[i]=this.getFoldWidget(i)),"start"==o){var a=this.getFoldWidgetRange(i);if(r||(r=a),a&&a.end.row>=e)break}i--}return{range:-1!==i&&a,firstRange:r}},this.onFoldWidgetClick=function(e,t){t=t.domEvent;var n={children:t.shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey},r=this.$toggleFoldWidget(e,n);if(!r){var i=t.target||t.srcElement;i&&/ace_fold-widget/.test(i.className)&&(i.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),r=this.getLine(e),i="end"===n?-1:1,o=this.getFoldAt(e,-1===i?0:r.length,i);if(o)return t.children||t.all?this.removeFold(o):this.expandFold(o),o;var a=this.getFoldWidgetRange(e,!0);if(a&&!a.isMultiLine()&&(o=this.getFoldAt(a.start.row,a.start.column,1),o&&a.isEqual(o.range)))return this.removeFold(o),o;if(t.siblings){var s=this.getParentFoldRangeData(e);if(s.range)var c=s.range.start.row+1,l=s.range.end.row;this.foldAll(c,l,t.all?1e4:0)}else t.children?(l=a?a.end.row:this.getLength(),this.foldAll(e+1,l,t.all?1e4:0)):a&&(t.all&&(a.collapseChildren=1e4),this.addFold("...",a));return a}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var r=this.getParentFoldRangeData(t,!0);if(n=r.range||r.firstRange,n){t=n.start.row;var i=this.getFoldAt(t,this.getLine(t).length,1);i?this.removeFold(i):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,r)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}t.Folding=s})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var r=e("../token_iterator").TokenIterator,i=e("../range").Range;function o(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var r=n.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),r=!0,o=n.charAt(e.column-1),a=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(a||(o=n.charAt(e.column),e={row:e.row,column:e.column+1},a=o&&o.match(/([\(\[\{])|([\)\]\}])/),r=!1),!a)return null;if(a[1]){var s=this.$findClosingBracket(a[1],e);if(!s)return null;t=i.fromPoints(e,s),r||(t.end.column++,t.start.column--),t.cursor=t.end}else{s=this.$findOpeningBracket(a[2],e);if(!s)return null;t=i.fromPoints(s,e),r||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{"},this.$findOpeningBracket=function(e,t,n){var i=this.$brackets[e],o=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));var c=t.column-a.getCurrentTokenColumn()-2,l=s.value;while(1){while(c>=0){var u=l.charAt(c);if(u==i){if(o-=1,0==o)return{row:a.getCurrentTokenRow(),column:c+a.getCurrentTokenColumn()}}else u==e&&(o+=1);c-=1}do{s=a.stepBackward()}while(s&&!n.test(s.type));if(null==s)break;l=s.value,c=l.length-1}return null}},this.$findClosingBracket=function(e,t,n){var i=this.$brackets[e],o=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));var c=t.column-a.getCurrentTokenColumn();while(1){var l=s.value,u=l.length;while(c<u){var d=l.charAt(c);if(d==i){if(o-=1,0==o)return{row:a.getCurrentTokenRow(),column:c+a.getCurrentTokenColumn()}}else d==e&&(o+=1);c+=1}do{s=a.stepForward()}while(s&&!n.test(s.type));if(null==s)break;c=0}return null}}}t.BracketMatch=o})),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/lang"),o=e("./bidihandler").BidiHandler,a=e("./config"),s=e("./lib/event_emitter").EventEmitter,c=e("./selection").Selection,l=e("./mode/text").Mode,u=e("./range").Range,d=e("./document").Document,f=e("./background_tokenizer").BackgroundTokenizer,p=e("./search_highlight").SearchHighlight,h=function(e,t){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++h.$uid,this.$foldData.toString=function(){return this.join("\n")},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof e&&e.getLine||(e=new d(e)),this.$bidiHandler=new o(this),this.setDocument(e),this.selection=new c(this),a.resetOptions(this),this.setMode(t),a._signal("session",this)};h.$uid=0,function(){r.implement(this,s),this.setDocument=function(e){this.doc&&this.doc.removeListener("change",this.$onChange),this.doc=e,e.on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;t>n&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){var n=0,r=e.length-1;while(n<=r){var i=n+r>>1,o=e[i];if(t>o)n=i+1;else{if(!(t<o))return i;r=i-1}}return n-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},this.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);this.$fromUndo||!this.$undoManager||e.ignore||(this.$deltasDoc.push(e),t&&0!=t.length&&this.$deltasFold.push({action:"removeFolds",folds:t}),this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var n,r=this.bgTokenizer.getTokens(e),i=0;if(null==t){var o=r.length-1;i=this.getLine(e).length}else for(o=0;o<r.length;o++)if(i+=r[o].value.length,i>=t)break;return n=r[o],n?(n.index=o,n.start=i-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.$deltasFold.length&&(t.$deltas.push({group:"fold",deltas:t.$deltasFold}),t.$deltasFold=[]),t.$deltasDoc.length&&(t.$deltas.push({group:"doc",deltas:t.$deltasDoc}),t.$deltasDoc=[]),t.$deltas.length>0&&e.execute({action:"aceupdate",args:[t.$deltas,t],merge:t.mergeUndoDeltas}),t.mergeUndoDeltas=!1,t.$deltas=[]},this.$informUndoManager=i.delayedCall(this.$syncInformUndoManager)}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?i.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(e,t){void 0===t&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.addMarker=function(e,t,n,r){var i=this.$markerId++,o={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!r,id:i};return r?(this.$frontMarkers[i]=o,this._signal("changeFrontMarker")):(this.$backMarkers[i]=o,this._signal("changeBackMarker")),i},this.addDynamicMarker=function(e,t){if(e.update){var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e}},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];if(t){var n=t.inFront?this.$frontMarkers:this.$backMarkers;t&&(delete n[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))}},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){if(!this.$searchHighlight){var t=new p(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,n,r){"number"!=typeof t&&(n=t,t=e),n||(n="ace_step");var i=new u(e,0,t,1/0);return i.id=this.addMarker(i,n,"fullLine",r),i},this.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},this.getWordRange=function(e,t){var n=this.getLine(e),r=!1;if(t>0&&(r=!!n.charAt(t-1).match(this.tokenRe)),r||(r=!!n.charAt(t).match(this.tokenRe)),r)var i=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))i=/\s/;else i=this.nonTokenRe;var o=t;if(o>0){do{o--}while(o>=0&&n.charAt(o).match(i));o++}var a=t;while(a<n.length&&n.charAt(a).match(i))a++;return new u(e,o,e,a)},this.getAWordRange=function(e,t){var n=this.getWordRange(e,t),r=this.getLine(n.end.row);while(r.charAt(n.end.column).match(/[ \t]/))n.end.column+=1;return n},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption("useWorker",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes={},this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"===typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,r=n.path}else r=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new l),this.$modes[r]&&!n)return this.$onChangeMode(this.$modes[r]),void(t&&t());this.$modeId=r,a.loadModule(["mode",r],function(e){if(this.$modeId!==r)return t&&t();this.$modes[r]&&!n?this.$onChangeMode(this.$modes[r]):e&&e.Mode&&(e=new e.Mode(n),n||(this.$modes[r]=e,e.$id=r),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var n=e.getTokenizer();if(void 0!==n.addEventListener){var r=this.onReloadTokenizer.bind(this);n.addEventListener("update",r)}if(this.bgTokenizer)this.bgTokenizer.setTokenizer(n);else{this.bgTokenizer=new f(n);var i=this;this.bgTokenizer.addEventListener("update",(function(e){i._signal("tokenizerUpdate",e)}))}this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode"))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){a.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var e=0;return this.lineWidgets.forEach((function(t){t&&t.screenWidth>e&&(e=t.screenWidth)})),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,r=0,i=0,o=this.$foldData[i],a=o?o.start.row:1/0,s=t.length,c=0;c<s;c++){if(c>a){if(c=o.end.row+1,c>=s)break;o=this.$foldData[i++],a=o?o.start.row:1/0}null==n[c]&&(n[c]=this.$getStringScreenWidth(t[c])[0]),n[c]>r&&(r=n[c])}this.screenWidth=r}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=null,r=e.length-1;-1!=r;r--){var i=e[r];"doc"==i.group?(this.doc.revertDeltas(i.deltas),n=this.$getUndoSelection(i.deltas,!0,n)):i.deltas.forEach((function(e){this.addFolds(e.folds)}),this)}return this.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=null,r=0;r<e.length;r++){var i=e[r];"doc"==i.group&&(this.doc.applyDeltas(i.deltas),n=this.$getUndoSelection(i.deltas,!1,n))}return this.$fromUndo=!1,n&&this.$undoSelect&&!t&&this.selection.setSelectionRange(n),n}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t,n){function r(e){return t?"insert"!==e.action:"insert"===e.action}var i,o,a=e[0];r(a)?i=u.fromPoints(a.start,a.end):i=u.fromPoints(a.start,a.start);for(var s=1;s<e.length;s++)a=e[s],r(a)?(o=a.start,-1==i.compare(o.row,o.column)&&i.setStart(o),o=a.end,1==i.compare(o.row,o.column)&&i.setEnd(o),!0):(o=a.start,-1==i.compare(o.row,o.column)&&(i=u.fromPoints(a.start,a.start)),!1);if(null!=n){0===u.comparePoints(n.start,i.start)&&(n.start.column+=i.end.column-i.start.column,n.end.column+=i.end.column-i.start.column);var c=n.compareRange(i);1==c?i.setStart(n.start):-1==c&&i.setEnd(n.end)}return i},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,n){var r=this.getTextRange(e),i=this.getFoldsInRange(e),o=u.fromPoints(t,t);if(!n){this.remove(e);var a=e.start.row-e.end.row,s=a?-e.end.column:e.start.column-e.end.column;s&&(o.start.row==e.end.row&&o.start.column>e.end.column&&(o.start.column+=s),o.end.row==e.end.row&&o.end.column>e.end.column&&(o.end.column+=s)),a&&o.start.row>=e.end.row&&(o.start.row+=a,o.end.row+=a)}if(o.end=this.insert(o.start,r),i.length){var c=e.start,l=o.start;a=l.row-c.row,s=l.column-c.column;this.addFolds(i.map((function(e){return e=e.clone(),e.start.row==c.row&&(e.start.column+=s),e.end.row==c.row&&(e.end.column+=s),e.start.row+=a,e.end.row+=a,e})))}return o},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var r=e;r<=t;r++)this.doc.insertInLine({row:r,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new u(0,0,0,0),r=this.getTabSize(),i=t.start.row;i<=t.end.row;++i){var o=this.getLine(i);n.start.row=i,n.end.row=i;for(var a=0;a<r;++a)if(" "!=o.charAt(a))break;a<r&&"\t"==o.charAt(a)?(n.start.column=a,n.end.column=a+1):(n.start.column=0,n.end.column=a),this.remove(n)}},this.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){var r=this.getRowFoldStart(e+n);if(r<0)return 0;var i=r-e}else if(n>0){r=this.getRowFoldEnd(t+n);if(r>this.doc.getLength()-1)return 0;i=r-t}else{e=this.$clipRowToDocument(e),t=this.$clipRowToDocument(t);i=t-e+1}var o=new u(e,0,t,Number.MAX_VALUE),a=this.getFoldsInRange(o).map((function(e){return e=e.clone(),e.start.row+=i,e.end.row+=i,e})),s=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+i,s),a.length&&this.addFolds(a),i},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var r=this.$constrainWrapLimit(e,n.min,n.max);return r!=this.$wrapLimit&&r>1&&(this.$wrapLimit=r,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,r=e.start,i=e.end,o=r.row,a=i.row,s=a-o,c=null;if(this.$updating=!0,0!=s)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(o,s);var l=this.$foldData;c=this.getFoldsInRange(e),this.removeFolds(c);var u=this.getFoldLine(i.row),d=0;if(u){u.addRemoveChars(i.row,i.column,r.column-i.column),u.shiftRow(-s);var f=this.getFoldLine(o);f&&f!==u&&(f.merge(u),u=f),d=l.indexOf(u)+1}for(d;d<l.length;d++){u=l[d];u.start.row>=i.row&&u.shiftRow(-s)}a=o}else{var p=Array(s);p.unshift(o,0);var h=t?this.$wrapData:this.$rowLengthCache;h.splice.apply(h,p);l=this.$foldData,u=this.getFoldLine(o),d=0;if(u){var m=u.range.compareInside(r.row,r.column);0==m?(u=u.split(r.row,r.column),u&&(u.shiftRow(s),u.addRemoveChars(a,0,i.column-r.column))):-1==m&&(u.addRemoveChars(o,0,i.column-r.column),u.shiftRow(s)),d=l.indexOf(u)+1}for(d;d<l.length;d++){u=l[d];u.start.row>=o&&u.shiftRow(s)}}else{s=Math.abs(e.start.column-e.end.column),"remove"===n&&(c=this.getFoldsInRange(e),this.removeFolds(c),s=-s);u=this.getFoldLine(o);u&&u.addRemoveChars(o,r.column,s)}return t&&(this.$wrapData.length,this.doc.getLength()),this.$updating=!1,t?this.$updateWrapData(o,a):this.$updateRowLengthCache(o,a),c},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,t){var r,i,a=this.doc.getAllLines(),s=this.getTabSize(),c=this.$wrapData,l=this.$wrapLimit,u=e;t=Math.min(t,a.length-1);while(u<=t)i=this.getFoldLine(u,i),i?(r=[],i.walk(function(e,t,i,s){var c;if(null!=e){c=this.$getDisplayTokens(e,r.length),c[0]=n;for(var l=1;l<c.length;l++)c[l]=o}else c=this.$getDisplayTokens(a[t].substring(s,i),r.length);r=r.concat(c)}.bind(this),i.end.row,a[i.end.row].length+1),c[i.start.row]=this.$computeWrapSplits(r,l,s),u=i.end.row+1):(r=this.$getDisplayTokens(a[u]),c[u]=this.$computeWrapSplits(r,l,s),u++)};var e=1,t=2,n=3,o=4,c=9,d=10,h=11,m=12;function g(e){return!(e<4352)&&(e>=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(e,r,i){if(0==e.length)return[];var a=[],s=e.length,l=0,u=0,f=this.$wrapAsCode,p=this.$indentedSoftWrap,g=r<=Math.max(2*i,8)||!1===p?0:Math.floor(r/2);function v(){var t=0;if(0===g)return t;if(p)for(var n=0;n<e.length;n++){var r=e[n];if(r==d)t+=1;else{if(r!=h){if(r==m)continue;break}t+=i}}return f&&!1!==p&&(t+=i),Math.min(t,g)}function b(t){var n=e.slice(l,t),r=n.length;n.join("").replace(/12/g,(function(){r-=1})).replace(/2/g,(function(){r-=1})),a.length||(_=v(),a.indent=_),u+=r,a.push(u),l=t}var _=0;while(s-l>r-_){var y=l+r-_;if(e[y-1]>=d&&e[y]>=d)b(y);else if(e[y]!=n&&e[y]!=o){var w=Math.max(y-(r-(r>>2)),l-1);while(y>w&&e[y]<n)y--;if(f){while(y>w&&e[y]<n)y--;while(y>w&&e[y]==c)y--}else while(y>w&&e[y]<d)y--;y>w?b(++y):(y=l+r,e[y]==t&&y--,b(y-_))}else{for(y;y!=l-1;y--)if(e[y]==n)break;if(y>l){b(y);continue}for(y=l+r,y;y<e.length;y++)if(e[y]!=o)break;if(y==e.length)break;b(y)}}return a},this.$getDisplayTokens=function(n,r){var i,o=[];r=r||0;for(var a=0;a<n.length;a++){var s=n.charCodeAt(a);if(9==s){i=this.getScreenTabSize(o.length+r),o.push(h);for(var l=1;l<i;l++)o.push(m)}else 32==s?o.push(d):s>39&&s<48||s>57&&s<64?o.push(c):s>=4352&&g(s)?o.push(e,t):o.push(e)}return o},this.$getStringScreenWidth=function(e,t,n){if(0==t)return[0,0];var r,i;for(null==t&&(t=1/0),n=n||0,i=0;i<e.length;i++)if(r=e.charCodeAt(i),9==r?n+=this.getScreenTabSize(n):r>=4352&&g(r)?n+=2:n+=1,n>t)break;return[n,i]},this.lineWidgets=null,this.getRowLength=function(e){if(this.lineWidgets)var t=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;else t=0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]<t.column?n.indent:0}return 0},this.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},this.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},this.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},this.getScreenTabSize=function(e){return this.$tabSize-e%this.$tabSize},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};var r,i,o=0,a=0,s=0,c=0,l=this.$screenRowCache,u=this.$getRowCacheIndex(l,e),d=l.length;if(d&&u>=0){s=l[u],o=this.$docRowCache[u];var f=e>l[d-1]}else f=!d;var p=this.getLength()-1,h=this.getNextFoldLine(o),m=h?h.start.row:1/0;while(s<=e){if(c=this.getRowLength(o),s+c>e||o>=p)break;s+=c,o++,o>m&&(o=h.end.row+1,h=this.getNextFoldLine(o,h),m=h?h.start.row:1/0),f&&(this.$docRowCache.push(o),this.$screenRowCache.push(s))}if(h&&h.start.row<=o)r=this.getFoldDisplayLine(h),o=h.start.row;else{if(s+c<=e||o>p)return{row:p,column:this.getLine(p).length};r=this.getLine(o),h=null}var g=0,v=Math.floor(e-s);if(this.$useWrapMode){var b=this.$wrapData[o];b&&(i=b[v],v>0&&b.length&&(g=b.indent,a=b[v-1]||b[b.length-1],r=r.substring(a)))}return void 0!==n&&this.$bidiHandler.isBidiRow(s+v,o,v)&&(t=this.$bidiHandler.offsetToCol(n)),a+=this.$getStringScreenWidth(r,t-g)[1],this.$useWrapMode&&a>=i&&(a=i-1),h?h.idxToPosition(a):{row:o,column:a}},this.documentToScreenPosition=function(e,t){if("undefined"===typeof t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var r=0,i=null,o=null;o=this.getFoldAt(e,t,1),o&&(e=o.start.row,t=o.start.column);var a,s=0,c=this.$docRowCache,l=this.$getRowCacheIndex(c,e),u=c.length;if(u&&l>=0){s=c[l],r=this.$screenRowCache[l];var d=e>c[u-1]}else d=!u;var f=this.getNextFoldLine(s),p=f?f.start.row:1/0;while(s<e){if(s>=p){if(a=f.end.row+1,a>e)break;f=this.getNextFoldLine(a,f),p=f?f.start.row:1/0}else a=s+1;r+=this.getRowLength(s),s=a,d&&(this.$docRowCache.push(s),this.$screenRowCache.push(r))}var h="";f&&s>=p?(h=this.getFoldDisplayLine(f,e,t),i=f.start.row):(h=this.getLine(e).substring(0,t),i=e);var m=0;if(this.$useWrapMode){var g=this.$wrapData[i];if(g){var v=0;while(h.length>=g[v])r++,v++;h=h.substring(g[v-1]||0,h.length),m=v>0?g.indent:0}}return{row:r,column:m+this.$getStringScreenWidth(h)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode){var n=this.$wrapData.length,r=0,i=(s=0,t=this.$foldData[s++],t?t.start.row:1/0);while(r<n){var o=this.$wrapData[r];e+=o?o.length+1:1,r++,r>i&&(r=t.end.row+1,t=this.$foldData[s++],i=t?t.start.row:1/0)}}else{e=this.getLength();for(var a=this.$foldData,s=0;s<a.length;s++)t=a[s],e-=t.end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(e){this.$enableVarChar&&(this.$getStringScreenWidth=function(t,n,r){if(0===n)return[0,0];var i,o;for(n||(n=1/0),r=r||0,o=0;o<t.length;o++)if(i=t.charAt(o),r+="\t"===i?this.getScreenTabSize(r):e.getCharacterWidth(i),r>n)break;return[r,o]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()},this.isFullWidth=g}.call(h.prototype),e("./edit_session/folding").Folding.call(h.prototype),e("./edit_session/bracket_match").BracketMatch.call(h.prototype),a.defineOptions(h.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){e="auto"==e?"text"!=this.$mode.type:"text"!=e,e!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$modified=!0,this.$resetRowCache(0),this.$updateWrapData(0,this.getLength()-1)))},initialValue:"auto"},indentedSoftWrap:{initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){isNaN(e)||this.$tabSize===e||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId}}}),t.EditSession=h})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),i=e("./lib/oop"),o=e("./range").Range,a=function(){this.$options={}};function s(e,t){function n(e){return/\w/.test(e)||t.regExp?"\\b":""}return n(e[0])+e+n(e[e.length-1])}(function(){this.set=function(e){return i.mixin(this.$options,e),this},this.getOptions=function(){return r.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var r=null;return n.forEach((function(e,n,i,a){return r=new o(e,n,i,a),!(n==a&&t.start&&t.start.start&&0!=t.skipCurrent&&r.isEqual(t.start))||(r=null,!1)})),r},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,i=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),a=[],s=t.re;if(t.$isMultiLine){var c,l=s.length,u=i.length-l;e:for(var d=s.offset||0;d<=u;d++){for(var f=0;f<l;f++)if(-1==i[d+f].search(s[f]))continue e;var p=i[d],h=i[d+l-1],m=p.length-p.match(s[0])[0].length,g=h.match(s[l-1])[0].length;c&&c.end.row===d&&c.end.column>m||(a.push(c=new o(d,m,d+l-1,g)),l>2&&(d=d+l-2))}}else for(var v=0;v<i.length;v++){var b=r.getMatchOffsets(i[v],s);for(f=0;f<b.length;f++){var _=b[f];a.push(new o(v,_.offset,v,_.offset+_.length))}}if(n){var y=n.start.column,w=n.start.column;v=0,f=a.length-1;while(v<f&&a[v].start.column<y&&a[v].start.row==n.start.row)v++;while(v<f&&a[f].end.column>w&&a[f].end.row==n.end.row)f--;for(a=a.slice(v,f+1),v=0,f=a.length;v<f;v++)a[v].start.row+=n.start.row,a[v].end.row+=n.start.row}return a},this.replace=function(e,t){var n=this.$options,r=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(r){var i=r.exec(e);if(!i||i[0].length!=e.length)return null;if(t=e.replace(r,t),n.preserveCase){t=t.split("");for(var o=Math.min(e.length,e.length);o--;){var a=e[o];a&&a.toLowerCase()!=a?t[o]=t[o].toUpperCase():t[o]=t[o].toLowerCase()}t=t.join("")}return t}},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n=e.needle;if(!e.needle)return e.re=!1;e.regExp||(n=r.escapeRegExp(n)),e.wholeWord&&(n=s(n,e));var i=e.caseSensitive?"gm":"gmi";if(e.$isMultiLine=!t&&/[\n\r]/.test(n),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,i);try{var o=new RegExp(n,i)}catch(a){o=!1}return e.re=o},this.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),r=[],i=0;i<n.length;i++)try{r.push(new RegExp(n[i],t))}catch(o){return!1}return r},this.$matchIterator=function(e,t){var n=this.$assembleRegExp(t);if(!n)return!1;var r=1==t.backwards,i=0!=t.skipCurrent,o=t.range,a=t.start;a||(a=o?o[r?"end":"start"]:e.selection.getRange()),a.start&&(a=a[i!=r?"end":"start"]);var s=o?o.start.row:0,c=o?o.end.row:e.getLength()-1;if(r)var l=function(e){var n=a.row;if(!d(n,a.column,e)){for(n--;n>=s;n--)if(d(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=c,s=a.row;n>=s;n--)if(d(n,Number.MAX_VALUE,e))return}};else l=function(e){var n=a.row;if(!d(n,a.column,e)){for(n+=1;n<=c;n++)if(d(n,0,e))return;if(0!=t.wrap)for(n=s,c=a.row;n<=c;n++)if(d(n,0,e))return}};if(t.$isMultiLine)var u=n.length,d=function(t,i,o){var a=r?t-u+1:t;if(!(a<0)){var s=e.getLine(a),c=s.search(n[0]);if(!(!r&&c<i||-1===c)){for(var l=1;l<u;l++)if(s=e.getLine(a+l),-1==s.search(n[l]))return;var d=s.match(n[u-1])[0].length;if(!(r&&d>i))return!!o(a,c,a+u-1,d)||void 0}}};else if(r)d=function(t,r,i){var o,a=e.getLine(t),s=[],c=0;n.lastIndex=0;while(o=n.exec(a)){var l=o[0].length;if(c=o.index,!l){if(c>=a.length)break;n.lastIndex=c+=1}if(o.index+l>r)break;s.push(o.index,l)}for(var u=s.length-1;u>=0;u-=2){var d=s[u-1];l=s[u];if(i(t,d,t,d+l))return!0}};else d=function(t,r,i){var o,a=e.getLine(t),s=r;n.lastIndex=r;while(o=n.exec(a)){var c=o[0].length;if(s=o.index,i(t,s,t,s+c))return!0;if(!c&&(n.lastIndex=s+=1,s>=a.length))return!1}};return{forEach:l}}}).call(a.prototype),t.Search=a})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/keys"),i=e("../lib/useragent"),o=r.KEY_MODS;function a(e,t){this.platform=t||(i.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function s(e,t){a.call(this,e,t),this.$singleCommand=!1}s.prototype=a.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"===typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var r=this.commandKeyBinding;for(var i in r){var o=r[i];if(o==e)delete r[i];else if(Array.isArray(o)){var a=o.indexOf(e);-1!=a&&(o.splice(a,1),1==o.length&&(r[i]=o[0]))}}},this.bindKey=function(e,t,n){if("object"==typeof e&&e&&(void 0==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var r="";if(-1!=e.indexOf(" ")){var i=e.split(/\s+/);e=i.pop(),i.forEach((function(e){var t=this.parseKeys(e),n=o[t.hashId]+t.key;r+=(r?" ":"")+n,this._addCommandToBinding(r,"chainKeys")}),this),r+=" "}var a=this.parseKeys(e),s=o[a.hashId]+a.key;this._addCommandToBinding(r+s,t,n)}),this)},this._addCommandToBinding=function(t,n,r){var i,o=this.commandKeyBinding;if(n)if(!o[t]||this.$singleCommand)o[t]=n;else{Array.isArray(o[t])?-1!=(i=o[t].indexOf(n))&&o[t].splice(i,1):o[t]=[o[t]],"number"!=typeof r&&(r=e(n));var a=o[t];for(i=0;i<a.length;i++){var s=a[i],c=e(s);if(c>r)break}a.splice(i,0,n)}else delete o[t]},this.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"===typeof n)return this.bindKey(n,t);"function"===typeof n&&(n={exec:n}),"object"===typeof n&&(n.name||(n.name=t),this.addCommand(n))}}),this)},this.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},this.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),i=r[n];if(r.FUNCTION_KEYS[i])n=r.FUNCTION_KEYS[i].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var o=0,a=t.length;a--;){var s=r.KEY_MODS[t[a]];if(null==s)return!1;o|=s}return{key:n,hashId:o}},this.findKeyCommand=function(e,t){var n=o[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,r){if(!(r<0)){var i=o[t]+n,a=this.commandKeyBinding[i];return e.$keyChain&&(e.$keyChain+=" "+i,a=this.commandKeyBinding[e.$keyChain]||a),!a||"chainKeys"!=a&&"chainKeys"!=a[a.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||r>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-i.length-1)),{command:a}):(e.$keyChain=e.$keyChain||i,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(a.prototype),t.HashHandler=a,t.MultiHashHandler=s})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../keyboard/hash_handler").MultiHashHandler,o=e("../lib/event_emitter").EventEmitter,a=function(e,t){i.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",(function(e){return e.command.exec(e.editor,e.args||{})}))};r.inherits(a,i),function(){r.implement(this,o),this.exec=function(e,t,n){if(Array.isArray(e)){for(var r=e.length;r--;)if(this.exec(e[r],t,n))return!0;return!1}if("string"===typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(e.isAvailable&&!e.isAvailable(t))return!1;var i={editor:t,command:e,args:n};return i.returnValue=this._emit("exec",i),this._signal("afterExec",i),!1!==i.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))}}.call(a.prototype),t.CommandManager=a})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){"use strict";var r=e("../lib/lang"),i=e("../config"),o=e("../range").Range;function a(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",bindKey:a("Ctrl-,","Command-,"),exec:function(e){i.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",bindKey:a("Alt-E","F4"),exec:function(e){i.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(e){i.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:a("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",bindKey:a(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:a("Ctrl-L","Command-L"),exec:function(e){var t=parseInt(prompt("Enter line number:"),10);isNaN(t)||e.gotoLine(t)},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:a("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:a("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:a("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:a("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:a("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",bindKey:a("Ctrl-F","Command-F"),exec:function(e){i.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:a("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",bindKey:a("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",bindKey:a("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",bindKey:a("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",bindKey:a("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",bindKey:a("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",bindKey:a("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",bindKey:a(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",bindKey:a(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",bindKey:a("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",bindKey:a("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",bindKey:a("Ctrl-P","Ctrl-P"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",bindKey:a("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",exec:function(e){},readOnly:!0},{name:"cut",exec:function(e){var t=e.getSelectionRange();e._emit("cut",t),e.selection.isEmpty()||(e.session.remove(t),e.clearSelection())},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",bindKey:a("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",bindKey:a("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(e){i.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",bindKey:a("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",bindKey:a("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",bindKey:a("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",bindKey:a("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",exec:function(e,t){e.insert(r.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",bindKey:a(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",bindKey:a(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),i=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),a=e.session.doc.getLine(n.row).length,s=e.session.doc.getTextRange(e.selection.getRange()),c=s.replace(/\n\s*/," ").length,l=e.session.doc.getLine(n.row),u=n.row+1;u<=i.row+1;u++){var d=r.stringTrimLeft(r.stringTrimRight(e.session.doc.getLine(u)));0!==d.length&&(d=" "+d),l+=d}i.row+1<e.session.doc.getLength()-1&&(l+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new o(n.row,0,i.row+2,0),l),c>0?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+c)):(a=e.session.doc.getLine(n.row).length>a?a+1:a,e.selection.moveCursorTo(n.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",bindKey:a(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,r=e.selection.rangeList.ranges,i=[];r.length<1&&(r=[e.selection.getRange()]);for(var a=0;a<r.length;a++)a==r.length-1&&(r[a].end.row===t&&r[a].end.column===n||i.push(new o(r[a].end.row,r[a].end.column,t,n))),0===a?0===r[a].start.row&&0===r[a].start.column||i.push(new o(0,0,r[a].start.row,r[a].start.column)):i.push(new o(r[a-1].end.row,r[a-1].end.column,r[a].start.row,r[a].start.column));e.exitMultiSelectMode(),e.clearSelection();for(a=0;a<i.length;a++)e.selection.addRange(i[a],!1)},readOnly:!0,scrollIntoView:"none"}]})),ace.define("ace/editor",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator"],(function(e,t,n){"use strict";e("./lib/fixoldbrowsers");var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./lib/lang"),a=e("./lib/useragent"),s=e("./keyboard/textinput").TextInput,c=e("./mouse/mouse_handler").MouseHandler,l=e("./mouse/fold_handler").FoldHandler,u=e("./keyboard/keybinding").KeyBinding,d=e("./edit_session").EditSession,f=e("./search").Search,p=e("./range").Range,h=e("./lib/event_emitter").EventEmitter,m=e("./commands/command_manager").CommandManager,g=e("./commands/default_commands").commands,v=e("./config"),b=e("./token_iterator").TokenIterator,_=function(e,t){var n=e.getContainerElement();this.container=n,this.renderer=e,this.id="editor"+ ++_.$uid,this.commands=new m(a.isMac?"mac":"win",g),"object"==typeof document&&(this.textInput=new s(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new c(this),new l(this)),this.keyBinding=new u(this),this.$blockScrolling=0,this.$search=(new f).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=o.delayedCall(function(){this._signal("input",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(e,t){t._$emitInputEvent.schedule(31)})),this.setSession(t||new d("")),v.resetOptions(this),v._signal("editor",this)};_.$uid=0,function(){r.implement(this,h),this.$initOperationListeners=function(){this.selections=[],this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=o.delayedCall(this.endOperation.bind(this)),this.on("change",function(){this.curOp||this.startOperation(),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||this.startOperation(),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.command.name&&void 0!==this.curOp.command.scrollIntoView&&this.$blockScrolling++},this.endOperation=function(e){if(this.curOp){if(e&&!1===e.returnValue)return this.curOp=null;this._signal("beforeEndOperation");var t=this.curOp.command;t.name&&this.$blockScrolling>0&&this.$blockScrolling--;var n=t&&t.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var r=this.selection.getRange(),i=this.renderer.layerConfig;(r.start.row>=i.lastRow||r.end.row<=i.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break;default:break}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,r=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var i=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),r=r&&this.mergeNextCommand&&(!/\s/.test(i)||/\s/.test(t.args)),this.mergeNextCommand=!0}else r=r&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(r=!1),r?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"===typeof e){this.$keybindingId=e;var n=this;v.loadModule(["keybinding",e],(function(r){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(r&&r.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.$blockScrolling+=1,this.onCursorChange(),this.$blockScrolling-=1,this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||i.computedStyle(this.container,"fontSize")},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=t.findMatchingBracket(e.getCursorPosition());if(n)var r=new p(n.row,n.column,n.row,n.column+1);else if(t.$mode.getMatching)r=t.$mode.getMatching(e.session);r&&(t.$bracketHighlight=t.addMarker(r,"ace_bracket","text"))}}),50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var e=this;this.$highlightTagPending=!0,setTimeout((function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=e.getCursorPosition(),r=new b(e.session,n.row,n.column),i=r.getCurrentToken();if(!i||!/\b(?:tag-open|tag-name)/.test(i.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1==i.type.indexOf("tag-open")||(i=r.stepForward(),i)){var o=i.value,a=0,s=r.stepBackward();if("<"==s.value)do{s=i,i=r.stepForward(),i&&i.value===o&&-1!==i.type.indexOf("tag-name")&&("<"===s.value?a++:"</"===s.value&&a--)}while(i&&a>=0);else{do{i=s,s=r.stepBackward(),i&&i.value===o&&-1!==i.type.indexOf("tag-name")&&("<"===s.value?a++:"</"===s.value&&a--)}while(s&&a<=0);r.stepForward()}if(!i)return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);var c=r.getCurrentTokenRow(),l=r.getCurrentTokenColumn(),u=new p(c,l,c,l+i.value.length),d=t.$backMarkers[t.$tagHighlight];t.$tagHighlight&&void 0!=d&&0!==u.compareRange(d.range)&&(t.removeMarker(t.$tagHighlight),t.$tagHighlight=null),u&&!t.$tagHighlight&&(t.$tagHighlight=t.addMarker(u,"ace_bracket","text"))}}}),50)}},this.focus=function(){var e=this;setTimeout((function(){e.textInput.focus()})),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange(),this.$updateHighlightActiveLine()},this.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this.$blockScrolling||(v.warn("Automatically scrolling cursor into view after selection change","this will be disabled in the next version","set editor.$blockScrolling = Infinity to disable this message"),this.renderer.scrollCursorIntoView()),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),!this.renderer.$maxLines||1!==this.session.getLength()||this.renderer.$minLines>1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new p(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),r=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",r)}var i=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(i),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column-1,r=t.end.column+1,i=e.getLine(t.start.row),o=i.length,a=i.substring(Math.max(n,0),Math.min(r,o));if(!(n>=0&&/^[\w\d]/.test(a)||r<=o&&/[\w\d]$/.test(a))&&(a=i.substring(t.start.column,t.end.column),/^[\w\d]+$/.test(a))){var s=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:a});return s}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText();return this._signal("copy",e),e},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec("paste",this,n)},this.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)this.insert(t);else{var n=t.split(/\r\n|\r|\n/),r=this.selection.rangeList.ranges;if(n.length>r.length||n.length<2||!n[1])return this.commands.exec("insertstring",this,t);for(var i=r.length;i--;){var o=r[i];o.isEmpty()||this.session.remove(o),this.session.insert(o.start,n[i])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var n=this.session,r=n.getMode(),i=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var o=r.transformAction(n.getState(i.row),"insertion",this,n,e);o&&(e!==o.text&&(this.session.mergeUndoDeltas=!1,this.$mergeNextCommand=!1),e=o.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&-1==e.indexOf("\n")){a=new p.fromPoints(i,i);a.end.column+=e.length,this.session.remove(a)}}else{var a=this.getSelectionRange();i=this.session.remove(a),this.clearSelection()}if("\n"==e||"\r\n"==e){var s=n.getLine(i.row);if(i.column>s.search(/\S|$/)){var c=s.substr(i.column).search(/\S|$/);n.doc.removeInLine(i.row,i.column,i.column+c)}}this.clearSelection();var l=i.column,u=n.getState(i.row),d=(s=n.getLine(i.row),r.checkOutdent(u,s,e));n.insert(i,e);if(o&&o.selection&&(2==o.selection.length?this.selection.setSelectionRange(new p(i.row,l+o.selection[0],i.row,l+o.selection[1])):this.selection.setSelectionRange(new p(i.row+o.selection[0],o.selection[1],i.row+o.selection[2],o.selection[3]))),n.getDocument().isNewLine(e)){var f=r.getNextLineIndent(u,s.slice(0,i.column),n.getTabString());n.insert({row:i.row+1,column:0},f)}d&&r.autoOutdent(u,n,i.row)},this.onTextInput=function(e){this.keyBinding.onTextInput(e)},this.onCommandKey=function(e,t,n){this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,r=n.getState(t.start.row),i=n.getMode().transformAction(r,"deletion",this,n,t);if(0===t.end.column){var o=n.getTextRange(t);if("\n"==o[o.length-1]){var a=n.getLine(t.end.row);/^\s+$/.test(a)&&(t.end.column=a.length)}}i&&(t=i)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,r,i=this.session.getLine(e.row);t<i.length?(n=i.charAt(t)+i.charAt(t-1),r=new p(e.row,t-1,e.row,t+1)):(n=i.charAt(t-1)+i.charAt(t-2),r=new p(e.row,t-2,e.row,t)),this.session.replace(r,n),this.session.selection.moveToPosition(r.end)}}},this.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},this.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},this.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var n=e.getTextRange(t);if(!/^\s+$/.test(n)){u=this.$getSelectedRows();return void e.indentRows(u.first,u.last,"\t")}}var r=e.getLine(t.start.row),i=t.start,a=e.getTabSize(),s=e.documentToScreenColumn(i.row,i.column);if(this.session.getUseSoftTabs())var c=a-s%a,l=o.stringRepeat(" ",c);else{c=s%a;while(" "==r[t.start.column-1]&&c)t.start.column--,c--;this.selection.setSelectionRange(t),l="\t"}return this.insert(l)}var u=this.$getSelectedRows();e.indentRows(u.first,u.last,"\t")},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,n=[],r=e.first;r<=e.last;r++)n.push(t.getLine(r));n.sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0}));var i=new p(0,0,0,0);for(r=e.first;r<=e.last;r++){var o=t.getLine(r);i.start.row=r,i.end.row=r,i.end.column=o.length,t.replace(i,n[r-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;var r=this.session.getLine(e);while(n.lastIndex<t){var i=n.exec(r);if(i.index<=t&&i.index+i[0].length>=t){var o={value:i[0],start:i.index,end:i.index+i[0].length};return o}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,r=new p(t,n-1,t,n),i=this.session.getTextRange(r);if(!isNaN(parseFloat(i))&&isFinite(i)){var o=this.getNumberAt(t,n);if(o){var a=o.value.indexOf(".")>=0?o.start+o.value.indexOf(".")+1:o.end,s=o.start+o.value.length-a,c=parseFloat(o.value);c*=Math.pow(10,s),a!==o.end&&n<a?e*=Math.pow(10,o.end-n-1):e*=Math.pow(10,o.end-n),c+=e,c/=Math.pow(10,s);var l=c.toFixed(s),u=new p(t,o.start,t,o.end);this.session.replace(u,l),this.moveCursorTo(t,Math.max(o.start+1,n+l.length-o.value.length))}}},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),r=e.isBackwards();if(n.isEmpty()){var i=n.start.row;t.duplicateLines(i,i)}else{var o=r?n.start:n.end,a=t.insert(o,t.getTextRange(n),!1);n.start=o,n.end=a,e.setSelectionRange(n,r)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,n){return this.session.moveText(e,t,n)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var n,r,i=this.selection;if(!i.inMultiSelectMode||this.inVirtualSelectionMode){var o=i.toOrientedRange();n=this.$getSelectedRows(o),r=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(r=0),o.moveBy(r,0),i.fromOrientedRange(o)}else{var a=i.rangeList.ranges;i.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var s=0,c=0,l=a.length,u=0;u<l;u++){var d=u;a[u].moveBy(s,0),n=this.$getSelectedRows(a[u]);var f=n.first,p=n.last;while(++u<l){c&&a[u].moveBy(c,0);var h=this.$getSelectedRows(a[u]);if(t&&h.first!=p)break;if(!t&&h.first>p+1)break;p=h.last}u--,s=this.session.$moveLines(f,p,t?0:e),t&&-1==e&&(d=u+1);while(d<=u)a[d].moveBy(s,0),d++;t||(s=0),c+=s}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,r=this.renderer.layerConfig,i=e*Math.floor(r.height/r.lineHeight);this.$blockScrolling++,!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(i,0)})):!1===t&&(this.selection.moveCursorBy(i,0),this.selection.clearSelection()),this.$blockScrolling--;var o=n.scrollTop;n.scrollBy(0,i*r.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(o)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,r){this.renderer.scrollToLine(e,t,n,r)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),r=new b(this.session,n.row,n.column),i=r.getCurrentToken(),o=i||r.stepForward();if(o){var a,s,c=!1,l={},u=n.column-o.start,d={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(o.value.match(/[{}()\[\]]/g)){for(;u<o.value.length&&!c;u++)if(d[o.value[u]])switch(s=d[o.value[u]]+"."+o.type.replace("rparen","lparen"),isNaN(l[s])&&(l[s]=0),o.value[u]){case"(":case"[":case"{":l[s]++;break;case")":case"]":case"}":l[s]--,-1===l[s]&&(a="bracket",c=!0);break}}else o&&-1!==o.type.indexOf("tag-name")&&(isNaN(l[o.value])&&(l[o.value]=0),"<"===i.value?l[o.value]++:"</"===i.value&&l[o.value]--,-1===l[o.value]&&(a="tag",c=!0));c||(i=o,o=r.stepForward(),u=0)}while(o&&!c);if(a){var f,h;if("bracket"===a)f=this.session.getBracketRange(n),f||(f=new p(r.getCurrentTokenRow(),r.getCurrentTokenColumn()+u-1,r.getCurrentTokenRow(),r.getCurrentTokenColumn()+u-1),h=f.start,(t||h.row===n.row&&Math.abs(h.column-n.column)<2)&&(f=this.session.getBracketRange(h)));else if("tag"===a){if(!o||-1===o.type.indexOf("tag-name"))return;var m=o.value;if(f=new p(r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2,r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2),0===f.compare(n.row,n.column)){c=!1;do{o=i,i=r.stepBackward(),i&&(-1!==i.type.indexOf("tag-close")&&f.setEnd(r.getCurrentTokenRow(),r.getCurrentTokenColumn()+1),o.value===m&&-1!==o.type.indexOf("tag-name")&&("<"===i.value?l[m]++:"</"===i.value&&l[m]--,0===l[m]&&(c=!0)))}while(i&&!c)}o&&o.type.indexOf("tag-name")&&(h=f.start,h.row==n.row&&Math.abs(h.column-n.column)<2&&(h=f.end))}h=f&&f.cursor||h,h&&(e?f&&t?this.selection.setRange(f):f&&f.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(h.row,h.column):this.selection.moveTo(h.row,h.column))}}},this.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.$blockScrolling+=1,this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.$blockScrolling-=1,this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(this.selection.isEmpty()){e=e||1;while(e--)this.selection.moveCursorLeft()}else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateRight=function(e){if(this.selection.isEmpty()){e=e||1;while(e--)this.selection.moveCursorRight()}else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),r=0;return n?(this.$tryReplace(n,e)&&(r=1),null!==n&&(this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end)),r):r},this.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),r=0;if(!n.length)return r;this.$blockScrolling+=1;var i=this.getSelectionRange();this.selection.moveTo(0,0);for(var o=n.length-1;o>=0;--o)this.$tryReplace(n[o],e)&&r++;return this.selection.setSelectionRange(i),this.$blockScrolling-=1,r},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return t=this.$search.replace(n,t),null!==t?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&r.mixin(t,e);var i=this.selection.getRange();null==t.needle&&(e=this.session.getTextRange(i)||this.$search.$options.needle,e||(i=this.session.getWordRange(i.start.row,i.start.column),e=this.session.getTextRange(i)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:i});var o=this.$search.find(this.session);return t.preventScroll?o:o?(this.revealRange(o,n),o):(t.backwards?i.start=i.end:i.end=i.start,void this.selection.setRange(i))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.$blockScrolling+=1,this.session.unfold(e),this.selection.setSelectionRange(e),this.$blockScrolling-=1;var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,r=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var i=this.$scrollAnchor;i.style.cssText="position:absolute",this.container.insertBefore(i,this.container.firstChild);var o=this.on("changeSelection",(function(){r=!0})),a=this.renderer.on("beforeRender",(function(){r&&(t=n.renderer.container.getBoundingClientRect())})),s=this.renderer.on("afterRender",(function(){if(r&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,o=e.$cursorLayer.$pixelPos,a=e.layerConfig,s=o.top-a.offset;r=o.top>=0&&s+t.top<0||!(o.top<a.height&&o.top+t.top+a.lineHeight>window.innerHeight)&&null,null!=r&&(i.style.top=s+"px",i.style.left=o.left+"px",i.style.height=a.lineHeight+"px",i.scrollIntoView(r)),r=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",o),this.renderer.off("afterRender",s),this.renderer.off("beforeRender",a))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,i.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))}}.call(_.prototype),v.defineOptions(_.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),t.Editor=_})),ace.define("ace/undomanager",["require","exports","module"],(function(e,t,n){"use strict";var r=function(){this.reset()};(function(){function e(e){return{action:e.action,start:e.start,end:e.end,lines:1==e.lines.length?null:e.lines,text:1==e.lines.length?e.lines[0]:null}}function t(e){return{action:e.action,start:e.start,end:e.end,lines:e.lines||[e.text]}}function n(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++){for(var i=e[r],o={group:i.group,deltas:new Array(i.length)},a=0;a<i.deltas.length;a++){var s=i.deltas[a];o.deltas[a]=t(s)}n[r]=o}return n}this.execute=function(e){var t=e.args[0];this.$doc=e.args[1],e.merge&&this.hasUndo()&&(this.dirtyCounter--,t=this.$undoStack.pop().concat(t)),this.$undoStack.push(t),this.$redoStack=[],this.dirtyCounter<0&&(this.dirtyCounter=NaN),this.dirtyCounter++},this.undo=function(e){var t=this.$undoStack.pop(),n=null;return t&&(n=this.$doc.undoChanges(t,e),this.$redoStack.push(t),this.dirtyCounter--),n},this.redo=function(e){var t=this.$redoStack.pop(),n=null;return t&&(n=this.$doc.redoChanges(this.$deserializeDeltas(t),e),this.$undoStack.push(t),this.dirtyCounter++),n},this.reset=function(){this.$undoStack=[],this.$redoStack=[],this.dirtyCounter=0},this.hasUndo=function(){return this.$undoStack.length>0},this.hasRedo=function(){return this.$redoStack.length>0},this.markClean=function(){this.dirtyCounter=0},this.isClean=function(){return 0===this.dirtyCounter},this.$serializeDeltas=function(t){return n(t,e)},this.$deserializeDeltas=function(e){return n(e,t)}}).call(r.prototype),t.UndoManager=r})),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/oop"),o=e("../lib/lang"),a=e("../lib/event_emitter").EventEmitter,s=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$cells=[]};(function(){i.implement(this,a),this.setSession=function(e){this.session&&this.session.removeEventListener("change",this.$updateAnnotations),this.session=e,e&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn,this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn,this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],r=n.row,i=this.$annotations[r];i||(i=this.$annotations[r]={text:[]});var a=n.text;a=a?o.escapeHTML(a):n.html||"",-1===i.text.indexOf(a)&&i.text.push(a);var s=n.type;"error"==s?i.className=" ace_error":"warning"==s&&" ace_error"!=i.className?i.className=" ace_warning":"info"!=s||i.className||(i.className=" ace_info")}},this.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,n=e.end.row-t;if(0===n);else if("remove"==e.action)this.$annotations.splice(t,n+1,null);else{var r=new Array(n+1);r.unshift(t,1),this.$annotations.splice.apply(this.$annotations,r)}}},this.update=function(e){var t=this.session,n=e.firstRow,i=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1),o=t.getNextFoldLine(n),a=o?o.start.row:1/0,s=this.$showFoldWidgets&&t.foldWidgets,c=t.$breakpoints,l=t.$decorations,u=t.$firstLineNumber,d=0,f=t.gutterRenderer||this.$renderer,p=null,h=-1,m=n;while(1){if(m>a&&(m=o.end.row+1,o=t.getNextFoldLine(m,o),a=o?o.start.row:1/0),m>i){while(this.$cells.length>h+1)p=this.$cells.pop(),this.element.removeChild(p.element);break}p=this.$cells[++h],p||(p={element:null,textNode:null,foldWidget:null},p.element=r.createElement("div"),p.textNode=document.createTextNode(""),p.element.appendChild(p.textNode),this.element.appendChild(p.element),this.$cells[h]=p);var g="ace_gutter-cell ";c[m]&&(g+=c[m]),l[m]&&(g+=l[m]),this.$annotations[m]&&(g+=this.$annotations[m].className),p.element.className!=g&&(p.element.className=g);var v=t.getRowLength(m)*e.lineHeight+"px";if(v!=p.element.style.height&&(p.element.style.height=v),s){var b=s[m];null==b&&(b=s[m]=t.getFoldWidget(m))}if(b){p.foldWidget||(p.foldWidget=r.createElement("span"),p.element.appendChild(p.foldWidget));g="ace_fold-widget ace_"+b;"start"==b&&m==a&&m<o.end.row?g+=" ace_closed":g+=" ace_open",p.foldWidget.className!=g&&(p.foldWidget.className=g);v=e.lineHeight+"px";p.foldWidget.style.height!=v&&(p.foldWidget.style.height=v)}else p.foldWidget&&(p.element.removeChild(p.foldWidget),p.foldWidget=null);var _=d=f?f.getText(t,m):m+u;_!==p.textNode.data&&(p.textNode.data=_),m++}this.element.style.height=e.minHeight+"px",(this.$fixedWidth||t.$useWrapMode)&&(d=t.getLength()+u);var y=f?f.getWidth(t,d,e):d.toString().length*e.characterWidth,w=this.$padding||this.$computePadding();y+=w.left+w.right,y===this.gutterWidth||isNaN(y)||(this.gutterWidth=y,this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._emit("changeGutterWidth",y))},this.$fixedWidth=!1,this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return""},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?r.addCssClass(this.element,"ace_folding-enabled"):r.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=r.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=parseInt(e.paddingLeft)+1||0,this.$padding.right=parseInt(e.paddingRight)||0,this.$padding},this.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?"markers":this.$showFoldWidgets&&e.x>n.right-t.right?"foldWidgets":void 0}}).call(s.prototype),t.Gutter=s})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../range").Range,i=e("../lib/dom"),o=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){function e(e,t,n,r){return(e?1:0)|(t?2:0)|(n?4:0)|(r?8:0)}this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.update=function(e){if(e){this.config=e;var t=[];for(var n in this.markers){var r=this.markers[n];if(r.range){var i=r.range.clipRows(e.firstRow,e.lastRow);if(!i.isEmpty())if(i=i.toScreenRange(this.session),r.renderer){var o=this.$getTop(i.start.row,e),a=this.$padding+(this.session.$bidiHandler.isBidiRow(i.start.row)?this.session.$bidiHandler.getPosLeft(i.start.column):i.start.column*e.characterWidth);r.renderer(t,i,a,o,e)}else"fullLine"==r.type?this.drawFullLineMarker(t,i,r.clazz,e):"screenLine"==r.type?this.drawScreenLineMarker(t,i,r.clazz,e):i.isMultiLine()?"text"==r.type?this.drawTextMarker(t,i,r.clazz,e):this.drawMultiLineMarker(t,i,r.clazz,e):this.session.$bidiHandler.isBidiRow(i.start.row)?this.drawBidiSingleLineMarker(t,i,r.clazz+" ace_start ace_br15",e):this.drawSingleLineMarker(t,i,r.clazz+" ace_start ace_br15",e)}else r.update(t,this,this.session,e)}this.element.innerHTML=t.join("")}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(t,n,i,o,a){for(var s=this.session,c=n.start.row,l=n.end.row,u=c,d=0,f=0,p=s.getScreenLastRowColumn(u),h=null,m=new r(u,n.start.column,u,f);u<=l;u++)m.start.row=m.end.row=u,m.start.column=u==c?n.start.column:s.getRowWrapIndent(u),m.end.column=p,d=f,f=p,p=u+1<l?s.getScreenLastRowColumn(u+1):u==l?0:n.end.column,h=i+(u==c?" ace_start":"")+" ace_br"+e(u==c||u==c+1&&n.start.column,d<f,f>p,u==l),this.session.$bidiHandler.isBidiRow(u)?this.drawBidiSingleLineMarker(t,m,h,o,u==l?0:1,a):this.drawSingleLineMarker(t,m,h,o,u==l?0:1,a)},this.drawMultiLineMarker=function(e,t,n,r,i){var o,a,s,c=this.$padding;if(i=i||"",this.session.$bidiHandler.isBidiRow(t.start.row)){var l=t.clone();l.end.row=l.start.row,l.end.column=this.session.getLine(l.start.row).length,this.drawBidiSingleLineMarker(e,l,n+" ace_br1 ace_start",r,null,i)}else o=r.lineHeight,a=this.$getTop(t.start.row,r),s=c+t.start.column*r.characterWidth,e.push("<div class='",n," ace_br1 ace_start' style='","height:",o,"px;","right:0;","top:",a,"px;","left:",s,"px;",i,"'></div>");if(this.session.$bidiHandler.isBidiRow(t.end.row)){l=t.clone();l.start.row=l.end.row,l.start.column=0,this.drawBidiSingleLineMarker(e,l,n+" ace_br12",r,null,i)}else{var u=t.end.column*r.characterWidth;o=r.lineHeight,a=this.$getTop(t.end.row,r),e.push("<div class='",n," ace_br12' style='","height:",o,"px;","width:",u,"px;","top:",a,"px;","left:",c,"px;",i,"'></div>")}if(o=(t.end.row-t.start.row-1)*r.lineHeight,!(o<=0)){a=this.$getTop(t.start.row+1,r);var d=(t.start.column?1:0)|(t.end.column?0:8);e.push("<div class='",n,d?" ace_br"+d:"","' style='","height:",o,"px;","right:0;","top:",a,"px;","left:",c,"px;",i,"'></div>")}},this.drawSingleLineMarker=function(e,t,n,r,i,o){var a=r.lineHeight,s=(t.end.column+(i||0)-t.start.column)*r.characterWidth,c=this.$getTop(t.start.row,r),l=this.$padding+t.start.column*r.characterWidth;e.push("<div class='",n,"' style='","height:",a,"px;","width:",s,"px;","top:",c,"px;","left:",l,"px;",o||"","'></div>")},this.drawBidiSingleLineMarker=function(e,t,n,r,i,o){var a=r.lineHeight,s=this.$getTop(t.start.row,r),c=this.$padding,l=this.session.$bidiHandler.getSelections(t.start.column,t.end.column);l.forEach((function(t){e.push("<div class='",n,"' style='","height:",a,"px;","width:",t.width+(i||0),"px;","top:",s,"px;","left:",c+t.left,"px;",o||"","'></div>")}))},this.drawFullLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),a=r.lineHeight;t.start.row!=t.end.row&&(a+=this.$getTop(t.end.row,r)-o),e.push("<div class='",n,"' style='","height:",a,"px;","top:",o,"px;","left:0;right:0;",i||"","'></div>")},this.drawScreenLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),a=r.lineHeight;e.push("<div class='",n,"' style='","height:",a,"px;","top:",o,"px;","left:0;right:0;",i||"","'></div>")}}).call(o.prototype),t.Marker=o})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),a=(e("../lib/useragent"),e("../lib/event_emitter").EventEmitter),s=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){r.implement(this,a),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.$updateEolChar=function(){var e="\n"==this.session.doc.getNewLineCharacter()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e)return this.EOL_CHAR=e,!0},this.setPadding=function(e){this.$padding=e,this.element.style.padding="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n<e+1;n++)this.showInvisibles?t.push("<span class='ace_invisible ace_invisible_tab'>"+o.stringRepeat(this.TAB_CHAR,n)+"</span>"):t.push(o.stringRepeat(" ",n));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var r="ace_indent-guide",i="",a="";if(this.showInvisibles){r+=" ace_invisible",i=" ace_invisible_space",a=" ace_invisible_tab";var s=o.stringRepeat(this.SPACE_CHAR,this.tabSize),c=o.stringRepeat(this.TAB_CHAR,this.tabSize)}else s=o.stringRepeat(" ",this.tabSize),c=s;this.$tabStrings[" "]="<span class='"+r+i+"'>"+s+"</span>",this.$tabStrings["\t"]="<span class='"+r+a+"'>"+c+"</span>"}},this.updateLines=function(e,t,n){this.config.lastRow==e.lastRow&&this.config.firstRow==e.firstRow||this.scrollLines(e),this.config=e;for(var r=Math.max(t,e.firstRow),i=Math.min(n,e.lastRow),o=this.element.childNodes,a=0,s=e.firstRow;s<r;s++){var c=this.session.getFoldLine(s);if(c){if(c.containsRow(r)){r=c.start.row;break}s=c.end.row}a++}s=r,c=this.session.getNextFoldLine(s);var l=c?c.start.row:1/0;while(1){if(s>l&&(s=c.end.row+1,c=this.session.getNextFoldLine(s,c),l=c?c.start.row:1/0),s>i)break;var u=o[a++];if(u){var d=[];this.$renderLine(d,s,!this.$useLineGroups(),s==l&&c),u.style.height=e.lineHeight*this.session.getRowLength(s)+"px",u.innerHTML=d.join("")}s++}},this.scrollLines=function(e){var t=this.config;if(this.config=e,!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);var n=this.element;if(t.firstRow<e.firstRow)for(var r=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);r>0;r--)n.removeChild(n.firstChild);if(t.lastRow>e.lastRow)for(r=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);r>0;r--)n.removeChild(n.lastChild);if(e.firstRow<t.firstRow){var i=this.$renderLinesFragment(e,e.firstRow,t.firstRow-1);n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i)}if(e.lastRow>t.lastRow){i=this.$renderLinesFragment(e,t.lastRow+1,e.lastRow);n.appendChild(i)}},this.$renderLinesFragment=function(e,t,n){var r=this.element.ownerDocument.createDocumentFragment(),o=t,a=this.session.getNextFoldLine(o),s=a?a.start.row:1/0;while(1){if(o>s&&(o=a.end.row+1,a=this.session.getNextFoldLine(o,a),s=a?a.start.row:1/0),o>n)break;var c=i.createElement("div"),l=[];if(this.$renderLine(l,o,!1,o==s&&a),c.innerHTML=l.join(""),this.$useLineGroups())c.className="ace_line_group",r.appendChild(c),c.style.height=e.lineHeight*this.session.getRowLength(o)+"px";else while(c.firstChild)r.appendChild(c.firstChild);o++}return r},this.update=function(e){this.config=e;var t=[],n=e.firstRow,r=e.lastRow,i=n,o=this.session.getNextFoldLine(i),a=o?o.start.row:1/0;while(1){if(i>a&&(i=o.end.row+1,o=this.session.getNextFoldLine(i,o),a=o?o.start.row:1/0),i>r)break;this.$useLineGroups()&&t.push("<div class='ace_line_group' style='height:",e.lineHeight*this.session.getRowLength(i),"px'>"),this.$renderLine(t,i,!1,i==a&&o),this.$useLineGroups()&&t.push("</div>"),i++}this.element.innerHTML=t.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,r){var i=this,a=/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=function(e,n,r,a,s){if(n)return i.showInvisibles?"<span class='ace_invisible ace_invisible_space'>"+o.stringRepeat(i.SPACE_CHAR,e.length)+"</span>":e;if("&"==e)return"&#38;";if("<"==e)return"&#60;";if(">"==e)return"&#62;";if("\t"==e){var c=i.session.getScreenTabSize(t+a);return t+=c-1,i.$tabStrings[c]}if(" "==e){var l=i.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",u=i.showInvisibles?i.SPACE_CHAR:"";return t+=1,"<span class='"+l+"' style='width:"+2*i.config.characterWidth+"px'>"+u+"</span>"}return r?"<span class='ace_invisible ace_invisible_space ace_invalid'>"+i.SPACE_CHAR+"</span>":(t+=1,"<span class='ace_cjk' style='width:"+2*i.config.characterWidth+"px'>"+e+"</span>")},c=r.replace(a,s);if(this.$textToken[n.type])e.push(c);else{var l="ace_"+n.type.replace(/\./g," ace_"),u="";"fold"==n.type&&(u=" style='width:"+n.value.length*this.config.characterWidth+"px;' "),e.push("<span class='",l,"'",u,">",c,"</span>")}return t+r.length},this.renderIndentGuide=function(e,t,n){var r=t.search(this.$indentGuideRe);return r<=0||r>=n?t:" "==t[0]?(r-=r%this.tabSize,e.push(o.stringRepeat(this.$tabStrings[" "],r/this.tabSize)),t.substr(r)):"\t"==t[0]?(e.push(o.stringRepeat(this.$tabStrings["\t"],r)),t.substr(r)):t},this.$renderWrappedLine=function(e,t,n,r){for(var i=0,a=0,s=n[0],c=0,l=0;l<t.length;l++){var u=t[l],d=u.value;if(0==l&&this.displayIndentGuides){if(i=d.length,d=this.renderIndentGuide(e,d,s),!d)continue;i-=d.length}if(i+d.length<s)c=this.$renderToken(e,c,u,d),i+=d.length;else{while(i+d.length>=s)c=this.$renderToken(e,c,u,d.substring(0,s-i)),d=d.substring(s-i),i=s,r||e.push("</div>","<div class='ace_line' style='height:",this.config.lineHeight,"px'>"),e.push(o.stringRepeat(" ",n.indent)),a++,c=0,s=n[a]||Number.MAX_VALUE;0!=d.length&&(i+=d.length,c=this.$renderToken(e,c,u,d))}}},this.$renderSimpleLine=function(e,t){var n=0,r=t[0],i=r.value;this.displayIndentGuides&&(i=this.renderIndentGuide(e,i)),i&&(n=this.$renderToken(e,n,r,i));for(var o=1;o<t.length;o++)r=t[o],i=r.value,n=this.$renderToken(e,n,r,i)},this.$renderLine=function(e,t,n,r){if(r||0==r||(r=this.session.getFoldLine(t)),r)var i=this.$getFoldLineTokens(t,r);else i=this.session.getTokens(t);if(n||e.push("<div class='ace_line' style='height:",this.config.lineHeight*(this.$useLineGroups()?1:this.session.getRowLength(t)),"px'>"),i.length){var o=this.session.getRowSplitData(t);o&&o.length?this.$renderWrappedLine(e,i,o,n):this.$renderSimpleLine(e,i)}this.showInvisibles&&(r&&(t=r.end.row),e.push("<span class='ace_invisible ace_invisible_eol'>",t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,"</span>")),n||e.push("</div>")},this.$getFoldLineTokens=function(e,t){var n=this.session,r=[];function i(e,t,n){var i=0,o=0;while(o+e[i].value.length<t)if(o+=e[i].value.length,i++,i==e.length)return;if(o!=t){var a=e[i].value.substring(t-o);a.length>n-t&&(a=a.substring(0,n-t)),r.push({type:e[i].type,value:a}),o=t+a.length,i+=1}while(o<n&&i<e.length){a=e[i].value;a.length+o>n?r.push({type:e[i].type,value:a.substring(0,n-o)}):r.push(e[i]),o+=a.length,i+=1}}var o=n.getTokens(e);return t.walk((function(e,t,a,s,c){null!=e?r.push({type:"fold",value:e}):(c&&(o=n.getTokens(t)),o.length&&i(o,s,a))}),t.end.row,this.session.getLine(t.end.row).length),r},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(s.prototype),t.Text=s})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r,i=e("../lib/dom"),o=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),void 0===r&&(r=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),i.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(r?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.visibility=e?"":"hidden"},this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)t[n].style.opacity=e?"":"0"},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e==this.smoothBlinking||r||(this.smoothBlinking=e,i.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var e=i.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,i.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,i.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&i.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible){this.smoothBlinking&&setTimeout(function(){i.addCssClass(this.element,"ace_smooth-blinking")}.bind(this));var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e),r=this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),i=(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:r,top:i}},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,r=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]);n=0;for(var i=t.length;n<i;n++){var o=this.getPixelPosition(t[n].cursor,!0);if(!((o.top>e.height+e.offset||o.top<0)&&n>1)){var a=(this.cursors[r++]||this.addCursor()).style;this.drawCursor?this.drawCursor(a,o,e,t[n],this.session):(a.left=o.left+"px",a.top=o.top+"px",a.width=e.characterWidth+"px",a.height=e.lineHeight+"px")}}while(this.cursors.length>r)this.removeCursor();var s=this.session.getOverwrite();this.$setOverwrite(s),this.$pixelPos=o,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?i.addCssClass(this.element,"ace_overwrite-cursors"):i.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(o.prototype),t.Cursor=o})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./lib/event"),a=e("./lib/event_emitter").EventEmitter,s=32768,c=function(e){this.element=i.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=i.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)};(function(){r.implement(this,a),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(c.prototype);var l=function(e,t){c.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=i.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};r.inherits(l,c),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>s?(this.coeff=s/e,e=s):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(l.prototype);var u=function(e,t){c.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};r.inherits(u,c),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(u.prototype),t.ScrollBar=l,t.ScrollBarV=l,t.ScrollBarH=u,t.VScrollBar=l,t.HScrollBar=u})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){"use strict";var r=e("./lib/event"),i=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.window=t||window};(function(){this.schedule=function(e){if(this.changes=this.changes|e,!this.pending&&this.changes){this.pending=!0;var t=this;r.nextFrame((function(){var e;t.pending=!1;while(e=t.changes)t.changes=0,t.onRender(e)}),this.window)}}}).call(i.prototype),t.RenderLoop=i})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var r=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),a=e("../lib/useragent"),s=e("../lib/event_emitter").EventEmitter,c=0,l=t.FontMetrics=function(e){this.el=i.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=i.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=i.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),c||this.$testFractionalRect(),this.$measureNode.innerHTML=o.stringRepeat("X",c),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){r.implement(this,s),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var e=i.createElement("div");this.$setMeasureNodeStyles(e.style),e.style.width="0.2px",document.documentElement.appendChild(e);var t=e.getBoundingClientRect().width;c=t>0&&t<1?50:100,e.parentNode.removeChild(e)},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(){var e=this.$measureSizes();if(e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=setInterval((function(){e.checkForSizeChanges()}),500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(50===c){var e=null;try{e=this.$measureNode.getBoundingClientRect()}catch(n){e={width:0,height:0}}var t={height:e.height,width:e.width/c}}else t={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/c};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){this.$main.innerHTML=o.stringRepeat(e,c);var t=this.$main.getBoundingClientRect();return t.width/c},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(l.prototype)})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./config"),a=e("./lib/useragent"),s=e("./layer/gutter").Gutter,c=e("./layer/marker").Marker,l=e("./layer/text").Text,u=e("./layer/cursor").Cursor,d=e("./scrollbar").HScrollBar,f=e("./scrollbar").VScrollBar,p=e("./renderloop").RenderLoop,h=e("./layer/font_metrics").FontMetrics,m=e("./lib/event_emitter").EventEmitter,g='.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_text-input-ios {position: absolute !important;top: -100000px !important;left: -100000px !important;}';i.importCssString(g,"ace_editor.css");var v=function(e,t){var n=this;this.container=e||i.createElement("div"),this.$keepTextAreaAtCursor=!a.isOldIE,i.addCssClass(this.container,"ace_editor"),this.setTheme(t),this.$gutter=i.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=i.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=i.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new s(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new c(this.content);var r=this.$textLayer=new l(this.content);this.canvas=r.element,this.$markerFront=new c(this.content),this.$cursorLayer=new u(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new f(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.addEventListener("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new h(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$loop=new p(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),o.resetOptions(this),o._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,r.implement(this,m),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin()},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,r){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var i=this.container;r||(r=i.clientHeight||i.scrollHeight),n||(n=i.clientWidth||i.scrollWidth);var o=this.$updateCachedSize(e,t,n,r);if(!this.$size.scrollerHeight||!n&&!r)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,r){r-=this.$extraHeight||0;var i=0,o=this.$size,a={width:o.width,height:o.height,scrollerHeight:o.scrollerHeight,scrollerWidth:o.scrollerWidth};return r&&(e||o.height!=r)&&(o.height=r,i|=this.CHANGE_SIZE,o.scrollerHeight=o.height,this.$horizScroll&&(o.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",i|=this.CHANGE_SCROLL),n&&(e||o.width!=n)&&(i|=this.CHANGE_SIZE,o.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,this.scrollBarH.element.style.left=this.scroller.style.left=t+"px",o.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(i|=this.CHANGE_FULL)),o.$dirty=!n||!r,i&&this._signal("resize",a),i},this.onGutterResize=function(){var e=this.$showGutter?this.$gutter.offsetWidth:0;e!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,e,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):(this.$computeLayerConfig(),this.$loop.schedule(this.CHANGE_MARKER))},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var e=this.$cursorLayer.$pixelPos,t=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var n=this.session.selection.getCursor();n.column=0,e=this.$cursorLayer.getPixelPosition(n,!0),t*=this.session.getRowLength(n.row)}this.$gutterLineHighlight.style.top=e.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=t+"px"},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=i.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=i.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=this.characterWidth*this.$printMarginColumn+this.$padding+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var e=this.layerConfig,t=this.$cursorLayer.$pixelPos.top,n=this.$cursorLayer.$pixelPos.left;t-=e.offset;var r=this.textarea.style,i=this.lineHeight;if(t<0||t>e.height-i)r.top=r.left="0";else{var o=this.characterWidth;if(this.$composition){var a=this.textarea.value.replace(/^\x01+/,"");o*=this.session.$getStringScreenWidth(a)[0]+2,i+=2}n-=this.scrollLeft,n>this.$size.scrollerWidth-o&&(n=this.$size.scrollerWidth-o),n+=this.gutterWidth,r.height=i+"px",r.width=o+"px",r.left=Math.min(n,this.$size.scrollerWidth-o)+"px",r.top=Math.min(t,this.$size.height-i)+"px"}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow,n=this.session.documentToScreenRow(t,0)*e.lineHeight;return n-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,r){var i=this.scrollMargin;i.top=0|e,i.bottom=0|t,i.right=0|r,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,i.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-i.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender"),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var r=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;r>0&&(this.scrollTop=r,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-n.offset+"px",this.content.style.marginTop=-n.offset+"px",this.content.style.width=n.width+2*this.$padding+"px",this.content.style.height=n.minHeight+"px"}if(e&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),void this._signal("afterRender");if(e&this.CHANGE_SCROLL)return e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor(),void this._signal("afterRender");e&this.CHANGE_TEXT?(this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):(e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender")}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var r=e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||r!=this.$vScroll){r!=this.$vScroll&&(this.$vScroll=r,this.scrollBarV.setVisible(r));var i=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,i,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,r=this.session.getScreenLength(),i=r*this.lineHeight,o=this.$getLongestLine(),a=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-o-2*this.$padding<0),s=this.$horizScroll!==a;s&&(this.$horizScroll=a,this.scrollBarH.setVisible(a));var c=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var l=this.scrollTop%this.lineHeight,u=t.scrollerHeight+this.lineHeight,d=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;i+=d;var f=this.scrollMargin;this.session.setScrollTop(Math.max(-f.top,Math.min(this.scrollTop,i-t.scrollerHeight+f.bottom))),this.session.setScrollLeft(Math.max(-f.left,Math.min(this.scrollLeft,o+2*this.$padding-t.scrollerWidth+f.right)));var p=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-i+d<0||this.scrollTop>f.top),h=c!==p;h&&(this.$vScroll=p,this.scrollBarV.setVisible(p));var m,g,v=Math.ceil(u/this.lineHeight)-1,b=Math.max(0,Math.round((this.scrollTop-l)/this.lineHeight)),_=b+v,y=this.lineHeight;b=e.screenToDocumentRow(b,0);var w=e.getFoldLine(b);w&&(b=w.start.row),m=e.documentToScreenRow(b,0),g=e.getRowLength(b)*y,_=Math.min(e.screenToDocumentRow(_,0),e.getLength()-1),u=t.scrollerHeight+e.getRowLength(_)*y+g,l=this.scrollTop-m*y;var x=0;return this.layerConfig.width!=o&&(x=this.CHANGE_H_SCROLL),(s||h)&&(x=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),h&&(o=this.$getLongestLine())),this.layerConfig={width:o,padding:this.$padding,firstRow:b,firstRowScreen:m,lastRow:_,lineHeight:y,characterWidth:this.characterWidth,minHeight:u,maxHeight:i,offset:l,gutterOffset:y?Math.max(0,Math.ceil((l+t.height-t.scrollerHeight)/y)):0,height:this.$size.scrollerHeight},x},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1)&&!(t<n.firstRow))return t===1/0?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,e,t),!0)}},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var r=this.$cursorLayer.getPixelPosition(e),i=r.left,o=r.top,a=n&&n.top||0,s=n&&n.bottom||0,c=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;c+a>o?(t&&c+a>o+this.lineHeight&&(o-=t*this.$size.scrollerHeight),0===o&&(o=-this.scrollMargin.top),this.session.setScrollTop(o)):c+this.$size.scrollerHeight-s<o+this.lineHeight&&(t&&c+this.$size.scrollerHeight-s<o-this.lineHeight&&(o+=t*this.$size.scrollerHeight),this.session.setScrollTop(o+this.lineHeight-this.$size.scrollerHeight));var l=this.scrollLeft;l>i?(i<this.$padding+2*this.layerConfig.characterWidth&&(i=-this.scrollMargin.left),this.session.setScrollLeft(i)):l+this.$size.scrollerWidth<i+this.characterWidth?this.session.setScrollLeft(Math.round(i+this.characterWidth-this.$size.scrollerWidth)):l<=this.$padding&&i-l<this.characterWidth&&this.session.setScrollLeft(0)}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),r=this.$size.scrollerHeight-this.lineHeight,i=n.top-r*(t||0);return this.session.setScrollTop(i),i},this.STEPS=8,this.$calcSteps=function(e,t){var n=0,r=this.STEPS,i=[],o=function(e,t,n){return n*(Math.pow(e-1,3)+1)+t};for(n=0;n<r;++n)i.push(o(n/this.STEPS,e,t-e));return i},this.scrollToLine=function(e,t,n,r){var i=this.$cursorLayer.getPixelPosition({row:e,column:0}),o=i.top;t&&(o-=this.$size.scrollerHeight/2);var a=this.scrollTop;this.session.setScrollTop(o),!1!==n&&this.animateScrolling(a,r)},this.animateScrolling=function(e,t){var n=this.scrollTop;if(this.$animatedScroll){var r=this;if(e!=n){if(this.$scrollAnimation){var i=this.$scrollAnimation.steps;if(i.length&&(e=i[0],e==n))return}var o=r.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:o},clearInterval(this.$timer),r.session.setScrollTop(o.shift()),r.session.$scrollTop=n,this.$timer=setInterval((function(){o.length?(r.session.setScrollTop(o.shift()),r.session.$scrollTop=n):null!=n?(r.session.$scrollTop=-1,r.session.setScrollTop(n),n=null):(r.$timer=clearInterval(r.$timer),r.$scrollAnimation=null,t&&t())}),10)}}},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(t)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=e+this.scrollLeft-n.left-this.$padding,i=r/this.characterWidth,o=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),a=Math.round(i);return{row:o,column:a,side:i-a>0?1:-1,offsetX:r}},this.screenToTextCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=e+this.scrollLeft-n.left-this.$padding,i=Math.round(r/this.characterWidth),o=(t+this.scrollTop-n.top)/this.lineHeight;return this.session.screenToDocumentPosition(o,Math.max(i,0),r)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=this.session.documentToScreenPosition(e,t),i=this.$padding+(this.session.$bidiHandler.isBidiRow(r.row,e)?this.session.$bidiHandler.getPosLeft(r.column):Math.round(r.column*this.characterWidth)),o=r.row*this.lineHeight;return{pageX:n.left+i-this.scrollLeft,pageY:n.top+o-this.scrollTop}},this.visualizeFocus=function(){i.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){i.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,i.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(e){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(i.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(e,t){var n=this;if(this.$themeId=e,n._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e)a(e);else{var r=e||this.$options.theme.initialValue;o.loadModule(["theme",r],a)}function a(r){if(n.$themeId!=e)return t&&t();if(!r||!r.cssClass)throw new Error("couldn't load module "+e+" or it didn't call define");i.importCssString(r.cssText,r.cssClass,n.container.ownerDocument),n.theme&&i.removeCssClass(n.container,n.theme.cssClass);var o="padding"in r?r.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&o!=n.$padding&&n.setPadding(o),n.$theme=r.cssClass,n.theme=r,i.addCssClass(n.container,r.cssClass),i.setCssClass(n.container,"ace_dark",r.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:r}),t&&t()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){i.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){i.removeCssClass(this.container,e)},this.setCursorStyle=function(e){this.scroller.style.cursor!=e&&(this.scroller.style.cursor=e)},this.setMouseCursor=function(e){this.scroller.style.cursor=e},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(v.prototype),o.defineOptions(v.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){i.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e)},initialValue:!0},showLineNumbers:{set:function(e){this.$gutterLayer.setShowLineNumbers(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(e){if(!this.$gutterLineHighlight)return this.$gutterLineHighlight=i.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",void this.$gutter.appendChild(this.$gutterLineHighlight);this.$gutterLineHighlight.style.display=e?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),t.VirtualRenderer=v})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/net"),o=e("../lib/event_emitter").EventEmitter,a=e("../config");function s(e,t){var n=t.src;i.qualifyURL(e);try{return new Blob([n],{type:"application/javascript"})}catch(a){var r=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,o=new r;return o.append(n),o.getBlob("application/javascript")}}function c(e,t){var n=s(e,t),r=window.URL||window.webkitURL,i=r.createObjectURL(n);return new Worker(i)}var l=function(t,n,r,i,o){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),a.get("packaged")||!e.toUrl)i=i||a.moduleUrl(n.id,"worker");else{var s=this.$normalizePath;i=i||s(e.toUrl("ace/worker/worker.js",null,"_"));var l={};t.forEach((function(t){l[t]=s(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}this.$worker=c(i,n),o&&this.send("importScripts",o),this.$worker.postMessage({init:!0,tlns:l,module:n.id,classname:r}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){r.implement(this,o),this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log;break}},this.reportError=function(e){window.console&&console.error},this.$normalizePath=function(e){return i.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var r=this.callbackId++;this.callbacks[r]=n,t.push(r)}this.send(e,t)},this.emit=function(e,t){try{this.$worker.postMessage({event:e,data:{data:t.data}})}catch(n){}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(l.prototype);var u=function(e,t,n){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var r=null,i=!1,s=Object.create(o),c=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(e){c.messageBuffer.push(e),r&&(i?setTimeout(l):l())},this.setEmitSync=function(e){i=e};var l=function(){var e=c.messageBuffer.shift();e.command?r[e.command].apply(r,e.args):e.event&&s._signal(e.event,e.data)};s.postMessage=function(e){c.onMessage({data:e})},s.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},s.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},a.loadModule(["worker",t],(function(e){r=new e[n](s);while(c.messageBuffer.length)l()}))};u.prototype=l.prototype,t.UIWorkerClient=u,t.WorkerClient=l,t.createWorker=c})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){"use strict";var r=e("./range").Range,i=e("./lib/event_emitter").EventEmitter,o=e("./lib/oop"),a=function(e,t,n,r,i,o){var a=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=i,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=r,this.$onCursorChange=function(){setTimeout((function(){a.onCursorChange()}))},this.$pos=n;var s=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=s.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){o.implement(this,i),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=n.addMarker(new r(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var r=t.createAnchor(n.row,n.column);r.$insertRight=!0,r.detach(),e.others.push(r)})),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new r(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},this.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,i=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,o=t.start.column-this.pos.column;if(this.updateAnchors(e),i&&(this.length+=n),i&&!this.session.$fromUndo)if("insert"===e.action)for(var a=this.others.length-1;a>=0;a--){var s=this.others[a],c={row:s.row,column:s.column+o};this.doc.insertMergedLines(c,e.lines)}else if("remove"===e.action)for(a=this.others.length-1;a>=0;a--){s=this.others[a],c={row:s.row,column:s.column+o};this.doc.remove(new r(c.row,c.column,c.row,c.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,i){t.removeMarker(n.markerId),n.markerId=t.addMarker(new r(n.row,n.column,n.row,n.column+e.length),i,null,!1)};n(this.pos,this.mainClass);for(var i=this.others.length;i--;)n(this.others[i],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}}).call(a.prototype),t.PlaceHolder=a})),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){var r=e("../lib/event"),i=e("../lib/useragent");function o(e,t){return e.row==t.row&&e.column==t.column}function a(e){var t=e.domEvent,n=t.altKey,a=t.shiftKey,s=t.ctrlKey,c=e.getAccelKey(),l=e.getButton();if(s&&i.isMac&&(l=t.button),e.editor.inMultiSelectMode&&2==l)e.editor.textInput.onContextMenu(e.domEvent);else if(s||n||c){if(0===l){var u,d=e.editor,f=d.selection,p=d.inMultiSelectMode,h=e.getDocumentPosition(),m=f.getCursor(),g=e.inSelection()||f.isEmpty()&&o(h,m),v=e.x,b=e.y,_=function(e){v=e.clientX,b=e.clientY},y=d.session,w=d.renderer.pixelToScreenCoordinates(v,b),x=w;if(d.$mouseHandler.$enableJumpToDef)s&&n||c&&n?u=a?"block":"add":n&&d.$blockSelectEnabled&&(u="block");else if(c&&!n){if(u="add",!p&&a)return}else n&&d.$blockSelectEnabled&&(u="block");if(u&&i.isMac&&t.ctrlKey&&d.$mouseHandler.cancelContextMenu(),"add"==u){if(!p&&g)return;if(!p){var k=f.toOrientedRange();d.addSelectionMarker(k)}var C=f.rangeList.rangeAtPoint(h);d.$blockScrolling++,d.inVirtualSelectionMode=!0,a&&(C=null,k=f.ranges[0]||k,d.removeSelectionMarker(k)),d.once("mouseup",(function(){var e=f.toOrientedRange();C&&e.isEmpty()&&o(C.cursor,e.cursor)?f.substractPoint(e.cursor):(a?f.substractPoint(k.cursor):k&&(d.removeSelectionMarker(k),f.addRange(k)),f.addRange(e)),d.$blockScrolling--,d.inVirtualSelectionMode=!1}))}else if("block"==u){var A;e.stop(),d.inVirtualSelectionMode=!0;var S=[],E=function(){var e=d.renderer.pixelToScreenCoordinates(v,b),t=y.screenToDocumentPosition(e.row,e.column,e.offsetX);o(x,e)&&o(t,f.lead)||(x=e,d.$blockScrolling++,d.selection.moveToPosition(t),d.renderer.scrollCursorIntoView(),d.removeSelectionMarkers(S),S=f.rectangularRangeBlock(x,w),d.$mouseHandler.$clickSelection&&1==S.length&&S[0].isEmpty()&&(S[0]=d.$mouseHandler.$clickSelection.clone()),S.forEach(d.addSelectionMarker,d),d.updateSelectionMarkers(),d.$blockScrolling--)};d.$blockScrolling++,p&&!c?f.toSingleRange():!p&&c&&(A=f.toOrientedRange(),d.addSelectionMarker(A)),a?w=y.documentToScreenPosition(f.lead):f.moveToPosition(h),d.$blockScrolling--,x={row:-1,column:-1};var T=function(e){clearInterval(R),d.removeSelectionMarkers(S),S.length||(S=[f.toOrientedRange()]),d.$blockScrolling++,A&&(d.removeSelectionMarker(A),f.toSingleRange(A));for(var t=0;t<S.length;t++)f.addRange(S[t]);d.inVirtualSelectionMode=!1,d.$mouseHandler.$clickSelection=null,d.$blockScrolling--},O=E;r.capture(d.container,_,T);var R=setInterval((function(){O()}),20);return e.preventDefault()}}}else 0===l&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}t.onMouseDown=a})),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],(function(e,t,n){t.defaultCommands=[{name:"addCursorAbove",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"splitIntoLines",exec:function(e){e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"alignCursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var r=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new r(t.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(e,t,n){var r=e("./range_list").RangeList,i=e("./range").Range,o=e("./selection").Selection,a=e("./mouse/multi_select_handler").onMouseDown,s=e("./lib/event"),c=e("./lib/lang"),l=e("./commands/multi_select_commands");t.commands=l.defaultCommands.concat(l.multiSelectCommands);var u=e("./search").Search,d=new u;function f(e,t,n){return d.$options.wrap=!0,d.$options.needle=t,d.$options.backwards=-1==n,d.find(e)}var p=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(p.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var r=this.rangeList.add(e);return this.$onAddRange(e),r.length&&this.$onRemoveRange(r),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length?this.$onRemoveRange(e):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var r=this.ranges.indexOf(e[n]);this.ranges.splice(r,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),t=t||this.ranges[0],t&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new r,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=i.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{n=this.getRange();var r=this.isBackwards(),o=n.start.row,a=n.end.row;if(o==a){if(r)var s=n.end,c=n.start;else s=n.start,c=n.end;return this.addRange(i.fromPoints(c,c)),void this.addRange(i.fromPoints(s,s))}var l=[],u=this.getLineRange(o,!0);u.start.column=n.start.column,l.push(u);for(var d=o+1;d<a;d++)l.push(this.getLineRange(d,!0));u=this.getLineRange(a,!0),u.end.column=n.end.column,l.push(u),l.forEach(this.addRange,this)}},this.toggleBlockSelection=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=i.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var r=this.session.documentToScreenPosition(this.selectionLead),o=this.session.documentToScreenPosition(this.selectionAnchor),a=this.rectangularRangeBlock(r,o);a.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var r=[],o=e.column<t.column;if(o)var a=e.column,s=t.column,c=e.offsetX,l=t.offsetX;else a=t.column,s=e.column,c=t.offsetX,l=e.offsetX;var u=e.row<t.row;if(u)var d=e.row,f=t.row;else d=t.row,f=e.row;a<0&&(a=0),d<0&&(d=0),d==f&&(n=!0);for(var p=d;p<=f;p++){var h=i.fromPoints(this.session.screenToDocumentPosition(p,a,c),this.session.screenToDocumentPosition(p,s,l));if(h.isEmpty()){if(g&&m(h.end,g))break;var g=h.end}h.cursor=o?h.start:h.end,r.push(h)}if(u&&r.reverse(),!n){var v=r.length-1;while(r[v].isEmpty()&&v>0)v--;if(v>0){var b=0;while(r[b].isEmpty())b++}for(var _=v;_>=b;_--)r[_].isEmpty()&&r.splice(_,1)}return r}}.call(o.prototype);var h=e("./editor").Editor;function m(e,t){return e.row==t.row&&e.column==t.column}function g(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",a),e.commands.addCommands(l.defaultCommands),v(e))}function v(e){var t=e.textInput.getElement(),n=!1;function r(t){n&&(e.renderer.setMouseCursor(""),n=!1)}s.addListener(t,"keydown",(function(t){var i=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&i?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&r()})),s.addListener(t,"keyup",r),s.addListener(t,"blur",r)}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var r=e[n];if(r.marker){this.session.removeMarker(r.marker);var i=t.indexOf(r);-1!=i&&t.splice(i,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?r=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?r=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),r=t.exec(n,e.args||{})):r=t.multiSelectAction(n,e.args||{});else{var r=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return r}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var r,i=n&&n.keepOrder,a=1==n||n&&n.$byLines,s=this.session,c=this.selection,l=c.rangeList,u=(i?c:l).ranges;if(!u.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var d=c._eventRegistry;c._eventRegistry={};var f=new o(s);this.inVirtualSelectionMode=!0;for(var p=u.length;p--;){if(a)while(p>0&&u[p].start.row==u[p-1].end.row)p--;f.fromOrientedRange(u[p]),f.index=p,this.selection=s.selection=f;var h=e.exec?e.exec(this,t||{}):e(this,t||{});r||void 0===h||(r=h),f.toOrientedRange(u[p])}f.detach(),this.selection=s.selection=c,this.inVirtualSelectionMode=!1,c._eventRegistry=d,c.mergeOverlappingRanges();var m=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),m&&m.from==m.to&&this.renderer.animateScrolling(m.from),r}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],r=0;r<t.length;r++)n.push(this.session.getTextRange(t[r]));var i=this.session.getDocument().getNewLineCharacter();e=n.join(i),e.length==(n.length-1)*i.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var r=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;r.row==t.row&&this.session.$clipPositionToDocument(r.row,r.column).column==t.column||this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange())}},this.findAll=function(e,t,n){if(t=t||{},t.needle=e||t.needle,void 0==t.needle){var r=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(r)}this.$search.set(t);var i=this.$search.findAll(this.session);if(!i.length)return 0;this.$blockScrolling+=1;var o=this.multiSelect;n||o.toSingleRange(i[0]);for(var a=i.length;a--;)o.addRange(i[a],!0);return r&&o.rangeList.rangeAtPoint(r.start)&&o.addRange(r,!0),this.$blockScrolling-=1,i.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),r=n.cursor==n.end,o=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(o.column=this.selection.$desiredColumn);var a=this.session.screenToDocumentPosition(o.row+e,o.column);if(n.isEmpty())c=a;else var s=this.session.documentToScreenPosition(r?n.end:n.start),c=this.session.screenToDocumentPosition(s.row+e,s.column);if(r){var l=i.fromPoints(a,c);l.cursor=l.start}else{l=i.fromPoints(c,a);l.cursor=l.end}if(l.desiredColumn=o.column,this.selection.inMultiSelectMode){if(t)var u=n.cursor}else this.selection.addRange(n);this.selection.addRange(l),u&&this.selection.substractPoint(u)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,r=n.ranges,i=r.length;i--;){var o=r[i];if(o.isEmpty()){var a=t.getWordRange(o.start.row,o.start.column);o.start.row=a.start.row,o.start.column=a.start.column,o.end.row=a.end.row,o.end.column=a.end.column}}n.mergeOverlappingRanges();var s=[];for(i=r.length;i--;){o=r[i];s.unshift(t.getTextRange(o))}e<0?s.unshift(s.pop()):s.push(s.shift());for(i=r.length;i--;){o=r[i],a=o.clone();t.replace(o,s[i]),o.start.row=a.start.row,o.start.column=a.start.column}},this.selectMore=function(e,t,n){var r=this.session,i=r.multiSelect,o=i.toOrientedRange();if(!o.isEmpty()||(o=r.getWordRange(o.start.row,o.start.column),o.cursor=-1==e?o.start:o.end,this.multiSelect.addRange(o),!n)){var a=r.getTextRange(o),s=f(r,a,e);s&&(s.cursor=-1==e?s.start:s.end,this.$blockScrolling+=1,this.session.unfold(s),this.multiSelect.addRange(s),this.$blockScrolling-=1,this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(o.cursor)}},this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,r=-1,o=n.filter((function(e){if(e.cursor.row==r)return!0;r=e.cursor.row}));if(n.length&&o.length!=n.length-1){o.forEach((function(e){t.substractPoint(e.cursor)}));var a=0,s=1/0,l=n.map((function(t){var n=t.cursor,r=e.getLine(n.row),i=r.substr(n.column).search(/\S/g);return-1==i&&(i=0),n.column>a&&(a=n.column),i<s&&(s=i),i}));n.forEach((function(t,n){var r=t.cursor,o=a-r.column,u=l[n]-s;o>u?e.insert(r,c.stringRepeat(" ",o-u)):e.remove(new i(r.row,r.column,r.row,r.column-o+u)),t.start.column=t.end.column=a,t.start.row=t.end.row=r.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var u=this.selection.getRange(),d=u.start.row,f=u.end.row,p=d==f;if(p){var h,m=this.session.getLength();do{h=this.session.getLine(f)}while(/[=:]/.test(h)&&++f<m);do{h=this.session.getLine(d)}while(/[=:]/.test(h)&&--d>0);d<0&&(d=0),f>=m&&(f=m-1)}var g=this.session.removeFullLines(d,f);g=this.$reAlignText(g,p),this.session.insert({row:d,column:0},g.join("\n")+"\n"),p||(u.start.column=0,u.end.column=g[g.length-1].length),this.selection.setRange(u)}},this.$reAlignText=function(e,t){var n,r,i,o=!0,a=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,r=t[2].length,i=t[3].length,t):(n+r+i!=t[1].length+t[2].length+t[3].length&&(a=!1),n!=t[1].length&&(o=!1),n>t[1].length&&(n=t[1].length),r<t[2].length&&(r=t[2].length),i>t[3].length&&(i=t[3].length),t):[e]})).map(t?l:o?a?u:l:d);function s(e){return c.stringRepeat(" ",e)}function l(e){return e[2]?s(n)+e[2]+s(r-e[2].length+i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function u(e){return e[2]?s(n+r-e[2].length)+e[2]+s(i," ")+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function d(e){return e[2]?s(n)+e[2]+s(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(h.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=g,e("./config").defineOptions(h.prototype,"editor",{enableMultiselect:{set:function(e){g(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../../range").Range,i=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);return this.foldingStartMarker.test(r)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var i=/\S/,o=e.getLine(t),a=o.search(i);if(-1!=a){var s=n||o.length,c=e.getLength(),l=t,u=t;while(++t<c){var d=e.getLine(t).search(i);if(-1!=d){if(d<=a)break;u=t}}if(u>l){var f=e.getLine(u).length;return new r(l,s,u,f)}}},this.openingBracketBlock=function(e,t,n,i,o){var a={row:n,column:i+1},s=e.$findClosingBracket(t,a,o);if(s){var c=e.foldWidgets[s.row];return null==c&&(c=e.getFoldWidget(s.row)),"start"==c&&s.row>a.row&&(s.row--,s.column=e.getLine(s.row).length),r.fromPoints(a,s)}},this.closingBracketBlock=function(e,t,n,i,o){var a={row:n,column:i},s=e.$findOpeningBracket(t,a);if(s)return s.column++,a.column--,r.fromPoints(s,a)}}).call(i.prototype)})),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";e("./lib/oop");var r=e("./lib/dom");e("./range").Range;function i(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var r=e.data,i=r.start.row,o=r.end.row,a="add"==e.action,s=i+1;s<o;s++)n[s]&&(n[s].hidden=a);n[o]&&(a?n[i]?n[o].hidden=a:n[i]=n[o]:(n[i]==n[o]&&(n[i]=void 0),n[o].hidden=a))}},this.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var n=e.start.row,r=e.end.row-n;if(0===r);else if("remove"==e.action){var i=t.splice(n+1,r);i.forEach((function(e){e&&this.removeLineWidget(e)}),this),this.$updateRows()}else{var o=new Array(r);o.unshift(n,0),t.splice.apply(t,o),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach((function(e,n){if(e){t=!1,e.row=n;while(e.$oldWidget)e.$oldWidget.row=n,e=e.$oldWidget}})),t&&(this.session.lineWidgets=null)}},this.addLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e.session=this.session;var n=this.editor.renderer;e.html&&!e.el&&(e.el=r.createElement("div"),e.el.innerHTML=e.html),e.el&&(r.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,n.container.appendChild(e.el),e._inDocument=!0),e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight),null==e.rowCount&&(e.rowCount=e.pixelHeight/n.layerConfig.lineHeight);var i=this.session.getFoldAt(e.row,0);if(e.$fold=i,i){var o=this.session.lineWidgets;e.row!=i.end.row||o[i.start.row]?e.hidden=!0:o[i.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,n),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(n){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else while(t){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){var t=this.session.lineWidgets,n=t&&t[e],r=[];while(n)r.push(n),n=n.$oldWidget;return r},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,r=t.layerConfig;if(n&&n.length){for(var i=1/0,o=0;o<n.length;o++){var a=n[o];if(a&&a.el&&a.session==this.session){if(!a._inDocument){if(this.session.lineWidgets[a.row]!=a)continue;a._inDocument=!0,t.container.appendChild(a.el)}a.h=a.el.offsetHeight,a.fixedWidth||(a.w=a.el.offsetWidth,a.screenWidth=Math.ceil(a.w/r.characterWidth));var s=a.h/r.lineHeight;a.coverLine&&(s-=this.session.getRowLineCount(a.row),s<0&&(s=0)),a.rowCount!=s&&(a.rowCount=s,a.row<i&&(i=a.row))}}i!=1/0&&(this.session._emit("changeFold",{data:{start:{row:i}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(e,t){var n=t.layerConfig,r=this.session.lineWidgets;if(r){var i=Math.min(this.firstRow,n.firstRow),o=Math.max(this.lastRow,n.lastRow,r.length);while(i>0&&!r[i])i--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var a=i;a<=o;a++){var s=r[a];if(s&&s.el)if(s.hidden)s.el.style.top=-100-(s.pixelHeight||0)+"px";else{s._inDocument||(s._inDocument=!0,t.container.appendChild(s.el));var c=t.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;s.coverLine||(c+=n.lineHeight*this.session.getRowLineCount(s.row)),s.el.style.top=c-n.offset+"px";var l=s.coverGutter?0:t.gutterWidth;s.fixedWidth||(l-=t.scrollLeft),s.el.style.left=l+"px",s.fullWidth&&s.screenWidth&&(s.el.style.minWidth=n.width+2*n.padding+"px"),s.fixedWidth?s.el.style.right=t.scrollBar.getWidth()+"px":s.el.style.right=""}}}}}).call(i.prototype),t.LineWidgets=i})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";var r=e("../line_widgets").LineWidgets,i=e("../lib/dom"),o=e("../range").Range;function a(e,t,n){var r=0,i=e.length-1;while(r<=i){var o=r+i>>1,a=n(t,e[o]);if(a>0)r=o+1;else{if(!(a<0))return o;i=o-1}}return-(r+1)}function s(e,t,n){var r=e.getAnnotations().sort(o.comparePoints);if(r.length){var i=a(r,{row:t,column:-1},o.comparePoints);i<0&&(i=-i-1),i>=r.length?i=n>0?0:r.length-1:0===i&&n<0&&(i=r.length-1);var s=r[i];if(s&&n){if(s.row===t){do{s=r[i+=n]}while(s&&s.row===t);if(!s)return r.slice()}var c=[];t=s.row;do{c[n<0?"unshift":"push"](s),s=r[i+=n]}while(s&&s.row==t);return c.length&&c}}}t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new r(n),n.widgetManager.attach(e));var o=e.getCursorPosition(),a=o.row,c=n.widgetManager.getWidgetsAtRow(a).filter((function(e){return"errorMarker"==e.type}))[0];c?c.destroy():a-=t;var l,u=s(n,a,t);if(u){var d=u[0];o.column=(d.pos&&"number"!=typeof d.column?d.pos.sc:d.column)||0,o.row=d.row,l=e.renderer.$gutterLayer.$annotations[o.row]}else{if(c)return;l={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(o.row),e.selection.moveToPosition(o);var f={row:o.row,fixedWidth:!0,coverGutter:!0,el:i.createElement("div"),type:"errorMarker"},p=f.el.appendChild(i.createElement("div")),h=f.el.appendChild(i.createElement("div"));h.className="error_widget_arrow "+l.className;var m=e.renderer.$cursorLayer.getPixelPosition(o).left;h.style.left=m+e.renderer.gutterWidth-5+"px",f.el.className="error_widget_wrapper",p.className="error_widget "+l.className,p.innerHTML=l.text.join("<br>"),p.appendChild(i.createElement("div"));var g=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return f.destroy(),{command:"null"}};f.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(g),n.widgetManager.removeLineWidget(f),e.off("changeSelection",f.destroy),e.off("changeSession",f.destroy),e.off("mouseup",f.destroy),e.off("change",f.destroy))},e.keyBinding.addKeyboardHandler(g),e.on("changeSelection",f.destroy),e.on("changeSession",f.destroy),e.on("mouseup",f.destroy),e.on("change",f.destroy),e.session.widgetManager.addLineWidget(f),f.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:f.el.offsetHeight})},i.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")})),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],(function(e,t,r){"use strict";e("./lib/fixoldbrowsers");var i=e("./lib/dom"),o=e("./lib/event"),a=e("./editor").Editor,s=e("./edit_session").EditSession,c=e("./undomanager").UndoManager,l=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.acequire=e,t.define=n("07d6"),t.edit=function(e){if("string"==typeof e){var n=e;if(e=document.getElementById(n),!e)throw new Error("ace.edit can't find div #"+n)}if(e&&e.env&&e.env.editor instanceof a)return e.env.editor;var r="";if(e&&/input|textarea/i.test(e.tagName)){var s=e;r=s.value,e=i.createElement("pre"),s.parentNode.replaceChild(e,s)}else e&&(r=i.getInnerText(e),e.innerHTML="");var c=t.createEditSession(r),u=new a(new l(e));u.setSession(c);var d={document:c,editor:u,onResize:u.resize.bind(u,null)};return s&&(d.textarea=s),o.addListener(window,"resize",d.onResize),u.on("destroy",(function(){o.removeListener(window,"resize",d.onResize),d.editor.container.env=null})),u.container.env=u.env=d,u},t.createEditSession=function(e,t){var n=new s(e,t);return n.setUndoManager(new c),n},t.EditSession=s,t.UndoManager=c,t.version="1.2.9"})),function(){ace.acequire(["ace/ace"],(function(e){for(var t in e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t])}))}(),e.exports=window.ace.acequire("ace/ace")},"06c5":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("fb6a"),n("d3b7"),n("25f0"),n("b0c0"),n("a630"),n("3ca3"),n("ac1f"),n("00b4");var r=n("6b75");function i(e,t){if(e){if("string"===typeof e)return Object(r["a"])(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(e,t):void 0}}},"06cf":function(e,t,n){"use strict";var r=n("83ab"),i=n("c65b"),o=n("d1e7"),a=n("5c6c"),s=n("fc6a"),c=n("a04b"),l=n("1a2d"),u=n("0cfb"),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=c(t),u)try{return d(e,t)}catch(n){}if(l(e,t))return a(!i(o.f,e,t),e[t])}},"072d":function(e,t,n){"use strict";var r=n("0bad"),i=n("9876"),o=n("fed5"),a=n("1917"),s=n("0983"),c=n("9fbb"),l=Object.assign;e.exports=!l||n("4b8b")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r}))?function(e,t){var n=s(e),l=arguments.length,u=1,d=o.f,f=a.f;while(l>u){var p,h=c(arguments[u++]),m=d?i(h).concat(d(h)):i(h),g=m.length,v=0;while(g>v)p=m[v++],r&&!f.call(h,p)||(n[p]=h[p])}return n}:l},"07d1":function(e,t,n){n("94ce")},"07d6":function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},"07fa":function(e,t,n){"use strict";var r=n("50c4");e.exports=function(e){return r(e.length)}},"083a":function(e,t,n){"use strict";var r=n("0d51"),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+r(t)+" of "+r(e))}},"0983":function(e,t,n){var r=n("c901");e.exports=function(e){return Object(r(e))}},"0a06":function(e,t,n){"use strict";var r=n("2444"),i=n("c532"),o=n("f6b4"),a=n("5270");function s(e){this.defaults=e,this.interceptors={request:new o,response:new o}}s.prototype.request=function(e){"string"===typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),e=i.merge(r,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[a,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},i.forEach(["delete","get","head","options"],(function(e){s.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}})),i.forEach(["post","put","patch"],(function(e){s.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=s},"0a36":function(e,t,n){"use strict";var r={foo:{}},i=Object;e.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof i)}},"0ae2":function(e,t,n){var r=n("9876"),i=n("fed5"),o=n("1917");e.exports=function(e){var t=r(e),n=i.f;if(n){var a,s=n(e),c=o.f,l=0;while(s.length>l)c.call(e,a=s[l++])&&t.push(a)}return t}},"0b25":function(e,t,n){"use strict";var r=n("5926"),i=n("50c4"),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw new o("Wrong length or index");return n}},"0b42":function(e,t,n){"use strict";var r=n("e8b5"),i=n("68ee"),o=n("861d"),a=n("b622"),s=a("species"),c=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,i(t)&&(t===c||r(t.prototype))?t=void 0:o(t)&&(t=t[s],null===t&&(t=void 0))),void 0===t?c:t}},"0b43":function(e,t,n){"use strict";var r=n("04f8");e.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},"0b99":function(e,t,n){"use strict";var r=n("19fa")(!0);n("393a")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"0bad":function(e,t,n){e.exports=!n("4b8b")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"0bee":function(e,t,n){"use strict";function r(e,t){var n=null;return function(...r){null!==n&&clearTimeout(n),n=setTimeout(()=>e.call(this,...r),t)}}n.d(t,"a",(function(){return r}))},"0c47":function(e,t,n){"use strict";var r=n("da84"),i=n("d44e");i(r.JSON,"JSON",!0)},"0cb2":function(e,t,n){"use strict";var r=n("e330"),i=n("7b0b"),o=Math.floor,a=r("".charAt),s=r("".replace),c=r("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,f){var p=n+e.length,h=r.length,m=u;return void 0!==d&&(d=i(d),m=l),s(f,m,(function(i,s){var l;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,n);case"'":return c(t,p);case"<":l=d[c(s,1,-1)];break;default:var u=+s;if(0===u)return i;if(u>h){var f=o(u/10);return 0===f?i:f<=h?void 0===r[f-1]?a(s,1):r[f-1]+a(s,1):i}l=r[u-1]}return void 0===l?"":l}))}},"0cfb":function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("cc12");e.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(e,t,n){"use strict";var r=n("e330"),i=Error,o=r("".replace),a=function(e){return String(new i(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);e.exports=function(e,t){if(c&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=o(e,s,"");return e}},"0d51":function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(t){return"Object"}}},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e15":function(e,t,n){var r=n("597f");e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},"0eb6":function(e,t,n){"use strict";var r=n("23e7"),i=n("7c37"),o=n("d066"),a=n("d039"),s=n("7c73"),c=n("5c6c"),l=n("9bf2").f,u=n("cb2d"),d=n("edd0"),f=n("1a2d"),p=n("19aa"),h=n("825a"),m=n("aa1f"),g=n("e391"),v=n("cf98"),b=n("0d26"),_=n("69f3"),y=n("83ab"),w=n("c430"),x="DOMException",k="DATA_CLONE_ERR",C=o("Error"),A=o(x)||function(){try{var e=o("MessageChannel")||i("worker_threads").MessageChannel;(new e).port1.postMessage(new WeakMap)}catch(t){if(t.name===k&&25===t.code)return t.constructor}}(),S=A&&A.prototype,E=C.prototype,T=_.set,O=_.getterFor(x),R="stack"in new C(x),D=function(e){return f(v,e)&&v[e].m?v[e].c:0},L=function(){p(this,M);var e=arguments.length,t=g(e<1?void 0:arguments[0]),n=g(e<2?void 0:arguments[1],"Error"),r=D(n);if(T(this,{type:x,name:n,message:t,code:r}),y||(this.name=n,this.message=t,this.code=r),R){var i=new C(t);i.name=x,l(this,"stack",c(1,b(i.stack,1)))}},M=L.prototype=s(E),F=function(e){return{enumerable:!0,configurable:!0,get:e}},N=function(e){return F((function(){return O(this)[e]}))};y&&(d(M,"code",N("code")),d(M,"message",N("message")),d(M,"name",N("name"))),l(M,"constructor",c(1,L));var B=a((function(){return!(new A instanceof C)})),I=B||a((function(){return E.toString!==m||"2: 1"!==String(new A(1,2))})),P=B||a((function(){return 25!==new A(1,"DataCloneError").code})),$=B||25!==A[k]||25!==S[k],j=w?I||P||$:B;r({global:!0,constructor:!0,forced:j},{DOMException:j?L:A});var z=o(x),q=z.prototype;for(var H in I&&(w||A===z)&&u(q,"toString",m),P&&y&&A===z&&d(q,"code",F((function(){return D(h(this).name)}))),v)if(f(v,H)){var U=v[H],W=U.s,V=c(6,U.c);f(z,W)||l(z,W,V),f(q,W)||l(q,W,V)}},"0f7c":function(e,t,n){"use strict";var r=n("688e");e.exports=Function.prototype.bind||r},"0ffc":function(e,t,n){var r=n("9e27"),i=n("e81e"),o=n("b6d1"),a=Object.defineProperty;t.f=n("961e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"107c":function(e,t,n){"use strict";var r=n("d039"),i=n("da84"),o=i.RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},1098:function(e,t,n){"use strict";t.__esModule=!0;var r=n("17ed"),i=c(r),o=n("f893"),a=c(o),s="function"===typeof a.default&&"symbol"===typeof i.default?function(e){return typeof e}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};function c(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof a.default&&"symbol"===s(i.default)?function(e){return"undefined"===typeof e?"undefined":s(e)}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":"undefined"===typeof e?"undefined":s(e)}},"10db":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},1148:function(e,t,n){"use strict";var r=n("5926"),i=n("577e"),o=n("1d80"),a=RangeError;e.exports=function(e){var t=i(o(this)),n="",s=r(e);if(s<0||s===1/0)throw new a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},"131a":function(e,t,n){"use strict";var r=n("23e7"),i=n("d2bb");r({target:"Object",stat:!0},{setPrototypeOf:i})},1328:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"13a6":function(e,t,n){"use strict";var r=Math.round;e.exports=function(e){var t=r(e);return t<0?0:t>255?255:255&t}},"13d2":function(e,t,n){"use strict";var r=n("e330"),i=n("d039"),o=n("1626"),a=n("1a2d"),s=n("83ab"),c=n("5e77").CONFIGURABLE,l=n("8925"),u=n("69f3"),d=u.enforce,f=u.get,p=String,h=Object.defineProperty,m=r("".slice),g=r("".replace),v=r([].join),b=s&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),_=String(String).split("String"),y=e.exports=function(e,t,n){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||c&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),b&&n&&a(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=d(e);return a(r,"source")||(r.source=v(_,"string"==typeof t?t:"")),e};Function.prototype.toString=y((function(){return o(this)&&f(this).source||l(this)}),"toString")},"13d5":function(e,t,n){"use strict";var r=n("23e7"),i=n("d58f").left,o=n("a640"),a=n("2d00"),s=n("605d"),c=!s&&a>79&&a<83,l=c||!o("reduce");r({target:"Array",proto:!0,forced:l},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},1448:function(e,t,n){"use strict";var r=n("dfb9"),i=n("b6b7");e.exports=function(e,t){return r(i(e),t)}},"145e":function(e,t,n){"use strict";var r=n("7b0b"),i=n("23cb"),o=n("07fa"),a=n("083a"),s=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),c=o(n),l=i(e,c),u=i(t,c),d=arguments.length>2?arguments[2]:void 0,f=s((void 0===d?c:i(d,c))-u,c-l),p=1;u<l&&l<u+f&&(p=-1,u+=f-1,l+=f-1);while(f-- >0)u in n?n[l]=n[u]:a(n,l),l+=p,u+=p;return n}},"146d":function(e,t,n){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),o=t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|min-height|min-width|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",a=t.supportFunction="rgb|rgba|url|attr|counter|counters",s=t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero",c=t.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",l=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",u=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",d=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",f=t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|acequired|root|target|valid|visited)\\b",p=function(){var e=this.createKeywordMapper({"support.function":a,"support.constant":s,"support.type":o,"support.constant.color":c,"support.constant.fonts":l},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:u},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+u+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)"},{token:"constant.numeric",regex:u},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:d},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:f},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};r.inherits(p,i),t.CssHighlightRules=p})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var o=i[1].length,a=e.findMatchingBracket({row:t,column:o});if(!a||a.row==t)return 0;var s=this.$getIndent(e.getLine(a.row));e.replace(new r(t,0,t,o-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i})),ace.define("ace/mode/css_completions",["require","exports","module"],(function(e,t,n){"use strict";var r={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},i=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"===typeof e[t]){var n=t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));r.hasOwnProperty(n)||(r[n]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,r){this.completionsDefined||this.defineCompletions();var i=t.getTokenAt(n.row,n.column);if(!i)return[];if("ruleset"===e){var o=t.getLine(n.row).substr(0,n.column);return/:[^;]+$/.test(o)?(/([\w\-]+):[^:]*$/.test(o),this.getPropertyValueCompletions(e,t,n,r)):this.getPropertyCompletions(e,t,n,r)}return[]},this.getPropertyCompletions=function(e,t,n,i){var o=Object.keys(r);return o.map((function(e){return{caption:e,snippet:e+": $0;",meta:"property",score:Number.MAX_VALUE}}))},this.getPropertyValueCompletions=function(e,t,n,i){var o=t.getLine(n.row).substr(0,n.column),a=(/([\w\-]+):[^:]*$/.exec(o)||{})[1];if(!a)return[];var s=[];return a in r&&"object"===typeof r[a]&&(s=Object.keys(r[a])),s.map((function(e){return{caption:e,snippet:e,meta:"property value",score:Number.MAX_VALUE}}))}}).call(i.prototype),t.CssCompletions=i})),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),o=e("../../token_iterator").TokenIterator,a=function(){this.inherit(i),this.add("colon","insertion",(function(e,t,n,r,i){if(":"===i){var a=n.getCursorPosition(),s=new o(r,a.row,a.column),c=s.getCurrentToken();if(c&&c.value.match(/\s+/)&&(c=s.stepBackward()),c&&"support.type"===c.type){var l=r.doc.getLine(a.row),u=l.substring(a.column,a.column+1);if(":"===u)return{text:"",selection:[1,1]};if(!l.substring(a.column).match(/^\s*;/))return{text:":;",selection:[1,1]}}}})),this.add("colon","deletion",(function(e,t,n,r,i){var a=r.doc.getTextRange(i);if(!i.isMultiLine()&&":"===a){var s=n.getCursorPosition(),c=new o(r,s.row,s.column),l=c.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=c.stepBackward()),l&&"support.type"===l.type){var u=r.doc.getLine(i.start.row),d=u.substring(i.end.column,i.end.column+1);if(";"===d)return i.end.column++,i}}})),this.add("semicolon","insertion",(function(e,t,n,r,i){if(";"===i){var o=n.getCursorPosition(),a=r.doc.getLine(o.row),s=a.substring(o.column,o.column+1);if(";"===s)return{text:"",selection:[1,1]}}}))};r.inherits(a,i),t.CssBehaviour=a})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,a);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}if("markbegin"!==t){o=i.match(this.foldingStopMarker);if(o){a=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,a):e.getCommentFoldRange(n,a,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length;t+=1;var s=t,c=e.getLength();while(++t<c){n=e.getLine(t);var l=n.search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;while(++n<o){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?c--:c++,!c))break}var u=n;if(u>a)return new i(a,r,u,t.length)}}.call(a.prototype)})),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],(function(e,t,r){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,a=e("./css_highlight_rules").CssHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,c=e("../worker/worker_client").WorkerClient,l=e("./css_completions").CssCompletions,u=e("./behaviour/css").CssBehaviour,d=e("./folding/cstyle").FoldMode,f=function(){this.HighlightRules=a,this.$outdent=new s,this.$behaviour=new u,this.$completer=new l,this.foldingRules=new d};i.inherits(f,o),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e).tokens;if(i.length&&"comment"==i[i.length-1].type)return r;var o=t.match(/^.*\{\s*$/);return o&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,r){return this.$completer.getCompletions(e,t,n,r)},this.createWorker=function(e){var t=new c(["ace"],n("e070"),"Worker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/css"}.call(f.prototype),t.Mode=f}))},"14c3":function(e,t,n){"use strict";var r=n("c65b"),i=n("825a"),o=n("1626"),a=n("c6b6"),s=n("9263"),c=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var l=r(n,e,t);return null!==l&&i(l),l}if("RegExp"===a(e))return r(s,e,t);throw new c("RegExp#exec called on incompatible receiver")}},"14d4":function(e,t){ace.define("ace/theme/monokai",["require","exports","module","ace/lib/dom"],(function(e,t,n){t.isDark=!0,t.cssClass="ace-monokai",t.cssText=".ace-monokai .ace_gutter {background: #2F3129;color: #8F908A}.ace-monokai .ace_print-margin {width: 1px;background: #555651}.ace-monokai {background-color: #272822;color: #F8F8F2}.ace-monokai .ace_cursor {color: #F8F8F0}.ace-monokai .ace_marker-layer .ace_selection {background: #49483E}.ace-monokai.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #272822;}.ace-monokai .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-monokai .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #49483E}.ace-monokai .ace_marker-layer .ace_active-line {background: #202020}.ace-monokai .ace_gutter-active-line {background-color: #272727}.ace-monokai .ace_marker-layer .ace_selected-word {border: 1px solid #49483E}.ace-monokai .ace_invisible {color: #52524d}.ace-monokai .ace_entity.ace_name.ace_tag,.ace-monokai .ace_keyword,.ace-monokai .ace_meta.ace_tag,.ace-monokai .ace_storage {color: #F92672}.ace-monokai .ace_punctuation,.ace-monokai .ace_punctuation.ace_tag {color: #fff}.ace-monokai .ace_constant.ace_character,.ace-monokai .ace_constant.ace_language,.ace-monokai .ace_constant.ace_numeric,.ace-monokai .ace_constant.ace_other {color: #AE81FF}.ace-monokai .ace_invalid {color: #F8F8F0;background-color: #F92672}.ace-monokai .ace_invalid.ace_deprecated {color: #F8F8F0;background-color: #AE81FF}.ace-monokai .ace_support.ace_constant,.ace-monokai .ace_support.ace_function {color: #66D9EF}.ace-monokai .ace_fold {background-color: #A6E22E;border-color: #F8F8F2}.ace-monokai .ace_storage.ace_type,.ace-monokai .ace_support.ace_class,.ace-monokai .ace_support.ace_type {font-style: italic;color: #66D9EF}.ace-monokai .ace_entity.ace_name.ace_function,.ace-monokai .ace_entity.ace_other,.ace-monokai .ace_entity.ace_other.ace_attribute-name,.ace-monokai .ace_variable {color: #A6E22E}.ace-monokai .ace_variable.ace_parameter {font-style: italic;color: #FD971F}.ace-monokai .ace_string {color: #E6DB74}.ace-monokai .ace_comment {color: #75715E}.ace-monokai .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y}";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass)}))},"14d9":function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("07fa"),a=n("3a34"),s=n("3511"),c=n("d039"),l=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},d=l||!u();r({target:"Array",proto:!0,arity:1,forced:d},{push:function(e){var t=i(this),n=o(t),r=arguments.length;s(n+r);for(var c=0;c<r;c++)t[n]=arguments[c],n++;return a(t,n),n}})},"14e5":function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),a=n("f069"),s=n("e667"),c=n("2266"),l=n("5eed");r({target:"Promise",stat:!0,forced:l},{all:function(e){var t=this,n=a.f(t),r=n.resolve,l=n.reject,u=s((function(){var n=o(t.resolve),a=[],s=0,u=1;c(e,(function(e){var o=s++,c=!1;u++,i(n,t,e).then((function(e){c||(c=!0,a[o]=e,--u||r(a))}),l)})),--u||r(a)}));return u.error&&l(u.value),n.promise}})},"156f":function(e,t,n){
/*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/
!function(t,n){e.exports=n()}(0,(function(){return t={686:function(e,t,n){"use strict";n.d(t,{default:function(){return b}});t=n(279);var r=n.n(t),i=(t=n(370),n.n(t)),o=(t=n(817),n.n(t));function a(e){try{return document.execCommand(e)}catch(e){return}}var s=function(e){return e=o()(e),a("cut"),e};function c(e,t){var n,r;n=e,r="rtl"===document.documentElement.getAttribute("dir"),(e=document.createElement("textarea")).style.fontSize="12pt",e.style.border="0",e.style.padding="0",e.style.margin="0",e.style.position="absolute",e.style[r?"right":"left"]="-9999px",r=window.pageYOffset||document.documentElement.scrollTop,e.style.top="".concat(r,"px"),e.setAttribute("readonly",""),e.value=n,e=e;return t.container.appendChild(e),t=o()(e),a("copy"),e.remove(),t}var l=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=c(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=c(e.value,t):(n=o()(e),a("copy")),n};function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var d=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container;t=e.target,e=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==t){if(!t||"object"!==u(t)||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return e?l(e,{container:r}):t?"cut"===n?s(t):l(t,{container:r}):void 0};function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var e,r=g(t);return e=n?(e=g(this).constructor,Reflect.construct(r,arguments,e)):r.apply(this,arguments),r=this,!(e=e)||"object"!==f(e)&&"function"!=typeof e?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(r):e}}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){if(e="data-clipboard-".concat(e),t.hasAttribute(e))return t.getAttribute(e)}var b=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(a,r());var e,t,n,o=m(a);function a(e,t){var n;return function(e){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}(this),(n=o.call(this)).resolveOptions(t),n.listenClick(e),n}return e=a,n=[{key:"copy",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{container:document.body};return l(e,t)}},{key:"cut",value:function(e){return s(e)}},{key:"isSupported",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t=(e="string"==typeof e?[e]:e,!!document.queryCommandSupported);return e.forEach((function(e){t=t&&!!document.queryCommandSupported(e)})),t}}],(t=[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===f(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=i()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy";e=d({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(e?"success":"error",{action:n,text:e,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return v("action",e)}},{key:"defaultTarget",value:function(e){if(e=v("target",e),e)return document.querySelector(e)}},{key:"defaultText",value:function(e){return v("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&p(e.prototype,t),n&&p(e,n),a}()},828:function(e){var t;"undefined"==typeof Element||Element.prototype.matches||((t=Element.prototype).matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector),e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function i(e,t,n,i,o){var a=function(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}.apply(this,arguments);return e.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}e.exports=function(e,t,n,r,o){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,o)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),i=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return l=t,u=n,(c=e).addEventListener(l,u),{destroy:function(){c.removeEventListener(l,u)}};if(r.nodeList(e))return o=e,a=t,s=n,Array.prototype.forEach.call(o,(function(e){e.addEventListener(a,s)})),{destroy:function(){Array.prototype.forEach.call(o,(function(e){e.removeEventListener(a,s)}))}};if(r.string(e))return e=e,t=t,n=n,i(document.body,e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,a,s,c,l,u}},817:function(e){e.exports=function(e){var t,n="SELECT"===e.nodeName?(e.focus(),e.value):"INPUT"===e.nodeName||"TEXTAREA"===e.nodeName?((t=e.hasAttribute("readonly"))||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),t||e.removeAttribute("readonly"),e.value):(e.hasAttribute("contenteditable")&&e.focus(),n=window.getSelection(),(t=document.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(t),n.toString());return n}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,a=r.length;o<a;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},n={},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e(686).default;function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{}};return t[r](i,i.exports,e),i.exports}var t,n}))},"157a":function(e,t,n){"use strict";var r=n("da84"),i=n("83ab"),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return r[e];var t=o(r,e);return t&&t.value}},"159b":function(e,t,n){"use strict";var r=n("da84"),i=n("fdbc"),o=n("785a"),a=n("17c2"),s=n("9112"),c=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var l in i)i[l]&&c(r[l]&&r[l].prototype);c(o)},1609:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},1626:function(e,t,n){"use strict";var r="object"==typeof document&&document.all;e.exports="undefined"==typeof r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},1690:function(e,t,n){var r=n("0ffc"),i=n("170a");e.exports=n("961e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},1696:function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||!0!==o.enumerable)return!1}return!0}},"170a":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"170b":function(e,t,n){"use strict";var r=n("ebb5"),i=n("50c4"),o=n("23cb"),a=n("b6b7"),s=r.aTypedArray,c=r.exportTypedArrayMethod;c("subarray",(function(e,t){var n=s(this),r=n.length,c=o(e,r),l=a(n);return new l(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,i((void 0===t?r:o(t,r))-c))}))},1787:function(e,t,n){"use strict";var r=n("861d");e.exports=function(e){return r(e)||null===e}},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=i("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"17ed":function(e,t,n){e.exports={default:n("511f"),__esModule:!0}},"182d":function(e,t,n){"use strict";var r=n("f8cd"),i=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new i("Wrong offset");return n}},1836:function(e,t,n){var r=n("6ca1"),i=n("6438").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},1917:function(e,t){t.f={}.propertyIsEnumerable},1935:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},1980:function(e,t,n){(function(t,r){e.exports=r(n("4603"))})("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"02f4":function(e,t,n){var r=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0fc9":function(e,t,n){var r=n("3a38"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},1654:function(e,t,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(e,t,n){var r=n("63b6");r(r.S,"Array",{isArray:n("9003")})},"1bc3":function(e,t,n){var r=n("f772");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,n){var r=n("f772"),i=n("e53d").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"20fd":function(e,t,n){"use strict";var r=n("d9f6"),i=n("aebd");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),c=n("520a"),l=s("species"),u=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var f=s(e),p=!o((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),h=p?!o((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[l]=function(){return n}),n[f](""),!t})):void 0;if(!p||!h||"replace"===e&&!u||"split"===e&&!d){var m=/./[f],g=n(a,f,""[e],(function(e,t,n,r,i){return t.exec===c?p&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=g[0],b=g[1];r(String.prototype,e,v),i(RegExp.prototype,f,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"23c6":function(e,t,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},"241e":function(e,t,n){var r=n("25eb");e.exports=function(e){return Object(r(e))}},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),c="toString",l=(""+s).split(c);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,a)||i(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"30f1":function(e,t,n){"use strict";var r=n("b8e3"),i=n("63b6"),o=n("9138"),a=n("35e8"),s=n("481b"),c=n("8f60"),l=n("45f2"),u=n("53e2"),d=n("5168")("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,b,_,y){c(n,t,v);var w,x,k,C=function(e){if(!f&&e in T)return T[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},A=t+" Iterator",S=b==m,E=!1,T=e.prototype,O=T[d]||T[p]||b&&T[b],R=O||C(b),D=b?S?C("entries"):R:void 0,L="Array"==t&&T.entries||O;if(L&&(k=u(L.call(new e)),k!==Object.prototype&&k.next&&(l(k,A,!0),r||"function"==typeof k[d]||a(k,d,g))),S&&O&&O.name!==m&&(E=!0,R=function(){return O.call(this)}),r&&!y||!f&&!E&&T[d]||a(T,d,R),s[t]=R,s[A]=g,b)if(w={values:S?R:C(m),keys:_?R:C(h),entries:D},y)for(x in w)x in T||o(T,x,w[x]);else i(i.P+i.F*(f||E),t,w);return w}},"32a6":function(e,t,n){var r=n("241e"),i=n("c3a1");n("ce7e")("keys",(function(){return function(e){return i(r(e))}}))},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"32fc":function(e,t,n){var r=n("e53d").document;e.exports=r&&r.documentElement},"335c":function(e,t,n){var r=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var r=n("d9f6"),i=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"36c3":function(e,t,n){var r=n("335c"),i=n("25eb");e.exports=function(e){return r(i(e))}},3702:function(e,t,n){var r=n("481b"),i=n("5168")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},"3a38":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"40c3":function(e,t,n){var r=n("6b4c"),i=n("5168")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"45f2":function(e,t,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"469f":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("7d7b")},"481b":function(e,t){e.exports={}},"4aa6":function(e,t,n){e.exports=n("dc62")},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4ee1":function(e,t,n){var r=n("5168")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(a){}return n}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(i){}}return!0}},5168:function(e,t,n){var r=n("dbdb")("wks"),i=n("62a0"),o=n("e53d").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},5176:function(e,t,n){e.exports=n("51b6")},"51b6":function(e,t,n){n("a3c3"),e.exports=n("584a").Object.assign},"520a":function(e,t,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s="lastIndex",c=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),l=void 0!==/()??/.exec("")[1],u=c||l;u&&(a=function(e){var t,n,a,u,d=this;return l&&(n=new RegExp("^"+d.source+"$(?!\\s)",r.call(d))),c&&(t=d[s]),a=i.call(d,e),c&&a&&(d[s]=d.global?a.index+a[0].length:t),l&&a&&a.length>1&&o.call(a[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a}),e.exports=a},"53e2":function(e,t,n){var r=n("07e3"),i=n("241e"),o=n("5559")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"549b":function(e,t,n){"use strict";var r=n("d864"),i=n("63b6"),o=n("241e"),a=n("b0dc"),s=n("3702"),c=n("b447"),l=n("20fd"),u=n("7cd6");i(i.S+i.F*!n("4ee1")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,d,f=o(e),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m,v=0,b=u(f);if(g&&(m=r(m,h>2?arguments[2]:void 0,2)),void 0==b||p==Array&&s(b))for(t=c(f.length),n=new p(t);t>v;v++)l(n,v,g?m(f[v],v):f[v]);else for(d=b.call(f),n=new p;!(i=d.next()).done;v++)l(n,v,g?a(d,m,[i.value,v],!0):i.value);return n.length=v,n}})},"54a1":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("95d5")},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,n){var r=n("dbdb")("keys"),i=n("62a0");e.exports=function(e){return r[e]||(r[e]=i(e))}},"584a":function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"5b4e":function(e,t,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");e.exports=function(e){return function(t,n,a){var s,c=r(t),l=i(c.length),u=o(a,l);if(e&&n!=n){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),c="prototype",l=function(e,t,n){var u,d,f,p,h=e&l.F,m=e&l.G,g=e&l.S,v=e&l.P,b=e&l.B,_=m?r:g?r[t]||(r[t]={}):(r[t]||{})[c],y=m?i:i[t]||(i[t]={}),w=y[c]||(y[c]={});for(u in m&&(n=t),n)d=!h&&_&&void 0!==_[u],f=(d?_:n)[u],p=b&&d?s(f,r):v&&"function"==typeof f?s(Function.call,f):f,_&&a(_,u,f,e&l.U),y[u]!=f&&o(y,u,p),v&&w[u]!=f&&(w[u]=f)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"5d73":function(e,t,n){e.exports=n("469f")},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"62a0":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"63b6":function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),c="prototype",l=function(e,t,n){var u,d,f,p=e&l.F,h=e&l.G,m=e&l.S,g=e&l.P,v=e&l.B,b=e&l.W,_=h?i:i[t]||(i[t]={}),y=_[c],w=h?r:m?r[t]:(r[t]||{})[c];for(u in h&&(n=t),n)d=!p&&w&&void 0!==w[u],d&&s(_,u)||(f=d?w[u]:n[u],_[u]=h&&"function"!=typeof w[u]?n[u]:v&&d?o(f,r):b&&w[u]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[c]=e[c],t}(f):g&&"function"==typeof f?o(Function.call,f):f,g&&((_.virtual||(_.virtual={}))[u]=f,e&l.R&&y&&!y[u]&&a(y,u,f)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6c1c":function(e,t,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),a=n("5168")("toStringTag"),s="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<s.length;c++){var l=s[c],u=r[l],d=u&&u.prototype;d&&!d[a]&&i(d,a,l),o[l]=o.Array}},"71c1":function(e,t,n){var r=n("3a38"),i=n("25eb");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(e,t,n){e.exports=n("d2d5")},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7cd6":function(e,t,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");e.exports=n("584a").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},"7d7b":function(e,t,n){var r=n("e4ae"),i=n("7cd6");e.exports=n("584a").getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},"7e90":function(e,t,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,c=0;while(s>c)r.f(e,n=a[c++],t[n]);return e}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},8436:function(e,t){e.exports=function(){}},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"8aae":function(e,t,n){n("32a6"),e.exports=n("584a").Object.keys},"8e60":function(e,t,n){e.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8f60":function(e,t,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},9003:function(e,t,n){var r=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},9138:function(e,t,n){e.exports=n("35e8")},9306:function(e,t,n){"use strict";var r=n("c3a1"),i=n("9aa9"),o=n("355d"),a=n("241e"),s=n("335c"),c=Object.assign;e.exports=!c||n("294c")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r}))?function(e,t){var n=a(e),c=arguments.length,l=1,u=i.f,d=o.f;while(c>l){var f,p=s(arguments[l++]),h=u?r(p).concat(u(p)):r(p),m=h.length,g=0;while(m>g)d.call(p,f=h[g++])&&(n[f]=p[f])}return n}:c},9427:function(e,t,n){var r=n("63b6");r(r.S,"Object",{create:n("a159")})},"95d5":function(e,t,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");e.exports=n("584a").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a159:function(e,t,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),s=function(){},c="prototype",l=function(){var e,t=n("1ec9")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),l=e.F;while(r--)delete l[c][o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},a352:function(t,n){t.exports=e},a3c3:function(e,t,n){var r=n("63b6");r(r.S+r.F,"Object",{assign:n("9306")})},a481:function(e,t,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),c=n("5f1b"),l=Math.max,u=Math.min,d=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g,h=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,m){return[function(r,i){var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=m(n,e,this,t);if(i.done)return i.value;var d=r(e),f=String(this),p="function"===typeof t;p||(t=String(t));var v=d.global;if(v){var b=d.unicode;d.lastIndex=0}var _=[];while(1){var y=c(d,f);if(null===y)break;if(_.push(y),!v)break;var w=String(y[0]);""===w&&(d.lastIndex=s(f,o(d.lastIndex),b))}for(var x="",k=0,C=0;C<_.length;C++){y=_[C];for(var A=String(y[0]),S=l(u(a(y.index),f.length),0),E=[],T=1;T<y.length;T++)E.push(h(y[T]));var O=y.groups;if(p){var R=[A].concat(E,S,f);void 0!==O&&R.push(O);var D=String(t.apply(void 0,R))}else D=g(A,f,S,E,O,t);S>=k&&(x+=f.slice(k,S)+D,k=S+A.length)}return x+f.slice(k)}];function g(e,t,r,o,a,s){var c=r+e.length,l=o.length,u=p;return void 0!==a&&(a=i(a),u=f),n.call(s,u,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(c);case"<":s=a[i.slice(1,-1)];break;default:var u=+i;if(0===u)return n;if(u>l){var f=d(u/10);return 0===f?n:f<=l?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):n}s=o[u-1]}return void 0===s?"":s}))}}))},a4bb:function(e,t,n){e.exports=n("8aae")},a745:function(e,t,n){e.exports=n("f410")},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b0dc:function(e,t,n){var r=n("e4ae");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){var o=e["return"];throw void 0!==o&&r(o.call(e)),a}}},b447:function(e,t,n){var r=n("3a38"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},b8e3:function(e,t){e.exports=!0},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,c=r(t),l=i(c.length),u=o(a,l);if(e&&n!=n){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},c367:function(e,t,n){"use strict";var r=n("8436"),i=n("50ed"),o=n("481b"),a=n("36c3");e.exports=n("30f1")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},c3a1:function(e,t,n){var r=n("e6f3"),i=n("1691");e.exports=Object.keys||function(e){return r(e,i)}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return u})),n("a481");var r=n("4aa6"),i=n.n(r);function o(){return"undefined"!==typeof window?window.console:e.console}var a=o();function s(e){var t=i()(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var c=/-(\w)/g,l=s((function(e){return e.replace(c,(function(e,t){return t?t.toUpperCase():""}))}));function u(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function d(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8bb:function(e,t,n){e.exports=n("54a1")},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ce7e:function(e,t,n){var r=n("63b6"),i=n("584a"),o=n("294c");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d2d5:function(e,t,n){n("1654"),n("549b"),e.exports=n("584a").Array.from},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d864:function(e,t,n){var r=n("79aa");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d9f6:function(e,t,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),a=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},dbdb:function(e,t,n){var r=n("584a"),i=n("e53d"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},dc62:function(e,t,n){n("9427");var r=n("584a").Object;e.exports=function(e,t){return r.create(e,t)}},e4ae:function(e,t,n){var r=n("f772");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(e,t,n){var r=n("07e3"),i=n("36c3"),o=n("5b4e")(!1),a=n("5559")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);while(t.length>c)r(s,n=t[c++])&&(~o(l,n)||l.push(n));return l}},f410:function(e,t,n){n("1af6"),e.exports=n("584a").Array.isArray},f559:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];r(r.P+r.F*n("5147")(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fb15:function(e,t,n){"use strict";var r;n.r(t),"undefined"!==typeof window&&(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=r[1]);var i=n("5176"),o=n.n(i),a=(n("f559"),n("a4bb")),s=n.n(a),c=(n("6762"),n("2fdb"),n("a745")),l=n.n(c);function u(e){if(l()(e))return e}var d=n("5d73"),f=n.n(d);function p(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=f()(e);!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(c){i=!0,o=c}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function m(e,t){return u(e)||p(e,t)||h()}function g(e){if(l()(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}var v=n("774e"),b=n.n(v),_=n("c8bb"),y=n.n(_);function w(e){if(y()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return b()(e)}function x(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function k(e){return g(e)||w(e)||x()}var C=n("a352"),A=n.n(C),S=n("c649");function E(e,t,n){return void 0===n||(e=e||{},e[t]=n),e}function T(e,t){return e.map((function(e){return e.elm})).indexOf(t)}function O(e,t,n,r){if(!e)return[];var i=e.map((function(e){return e.elm})),o=t.length-r,a=k(t).map((function(e,t){return t>=o?i.length:i.indexOf(e)}));return n?a.filter((function(e){return-1!==e})):a}function R(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function D(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),R.call(t,e,n)}}function L(e){if(!e||1!==e.length)return!1;var t=m(e,1),n=t[0].componentOptions;return!!n&&["transition-group","TransitionGroup"].includes(n.tag)}function M(e,t){var n=t.header,r=t.footer,i=0,o=0;return n&&(i=n.length,e=e?[].concat(k(n),k(e)):k(n)),r&&(o=r.length,e=e?[].concat(k(e),k(r)):k(r)),{children:e,headerOffset:i,footerOffset:o}}function F(e,t){var n=null,r=function(e,t){n=E(n,e,t)},i=s()(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{});if(r("attrs",i),!t)return n;var a=t.on,c=t.props,l=t.attrs;return r("on",a),r("props",c),o()(n.attrs,l),n}var N=["Start","Add","Remove","Update","End"],B=["Choose","Sort","Filter","Clone"],I=["Move"].concat(N,B).map((function(e){return"on"+e})),P=null,$={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},j={name:"draggable",inheritAttrs:!1,props:$,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1,init:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=L(t);var n=M(t,this.$slots),r=n.children,i=n.headerOffset,o=n.footerOffset;this.headerOffset=i,this.footerOffset=o;var a=F(this.$attrs,this.componentData);return e(this.getTag(),a,r)},created:function(){null!==this.list&&null!==this.value&&S["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&S["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&S["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};N.forEach((function(n){t["on"+n]=D.call(e,n)})),B.forEach((function(n){t["on"+n]=R.bind(e,n)}));var n=s()(this.$attrs).reduce((function(t,n){return t[Object(S["a"])(n)]=e.$attrs[n],t}),{}),r=o()({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new A.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(S["a"])(t);-1===I.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.init||(this.noneFunctionalComponentMode=this.noneFunctionalComponentMode&&1===this.$children.length,this.init=!0),this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=O(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=T(this.getChildrenNodes()||[],e);if(-1===t)return null;var n=this.realList[t];return{index:t,element:n}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&"transition-group"===t.$options._componentTag?t.$parent:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=k(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,k(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var i=r.realList,a={list:i,component:r};if(t!==n&&i&&r.getUnderlyingVm){var s=r.getUnderlyingVm(n);if(s)return o()(s,a)}return a},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){var t=this.getChildrenNodes();t[e].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),P=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(S["d"])(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(Object(S["c"])(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(S["d"])(e.clone)},onDragUpdate:function(e){Object(S["d"])(e.item),Object(S["c"])(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=k(t.to.children).filter((function(e){return"none"!==e.style["display"]})),r=n.indexOf(t.related),i=e.component.getVmIndex(r),o=-1!==n.indexOf(P);return o||!t.willInsertAfter?i:i+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(e),i=this.context,a=this.computeFutureIndex(r,e);o()(i,{futureIndex:a});var s=o()({},e,{relatedContext:r,draggedContext:i});return n(s,t)},onDragEnd:function(){this.computeIndexes(),P=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",j);var z=j;t["default"]=z}})["default"]}))},"19aa":function(e,t,n){"use strict";var r=n("3a9b"),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},"19fa":function(e,t,n){var r=n("fc5e"),i=n("c901");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},"1a14":function(e,t,n){var r=n("77e9"),i=n("faf5"),o=n("3397"),a=Object.defineProperty;t.f=n("0bad")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"1a2d":function(e,t,n){"use strict";var r=n("e330"),i=n("7b0b"),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},"1be4":function(e,t,n){"use strict";var r=n("d066");e.exports=r("document","documentElement")},"1bf2":function(e,t,n){var r=n("1935").document;e.exports=r&&r.documentElement},"1c7e":function(e,t,n){"use strict";var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(c){return!1}var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(c){}return n}},"1cdc":function(e,t,n){"use strict";var r=n("342f");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},"1d02":function(e,t,n){"use strict";var r=n("ebb5"),i=n("a258").findLastIndex,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("findLastIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},"1d80":function(e,t,n){"use strict";var r=n("7234"),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},"1da1":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("d3b7");function r(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,c,"next",e)}function c(e){r(a,i,o,s,c,"throw",e)}s(void 0)}))}}},"1dde":function(e,t,n){"use strict";var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1e69":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"1f68":function(e,t,n){"use strict";var r=n("83ab"),i=n("edd0"),o=n("861d"),a=n("1787"),s=n("7b0b"),c=n("1d80"),l=Object.getPrototypeOf,u=Object.setPrototypeOf,d=Object.prototype,f="__proto__";if(r&&l&&u&&!(f in d))try{i(d,f,{configurable:!0,get:function(){return l(s(this))},set:function(e){var t=c(this);a(e)&&o(t)&&u(t,e)}})}catch(p){}},2099:function(e,t){ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/anchor","ace/keyboard/hash_handler","ace/tokenizer","ace/lib/dom","ace/editor"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=e("./lib/lang"),a=e("./range").Range,s=e("./anchor").Anchor,c=e("./keyboard/hash_handler").HashHandler,l=e("./tokenizer").Tokenizer,u=a.comparePoints,d=function(){this.snippetMap={},this.snippetNameMap={}};(function(){r.implement(this,i),this.getTokenizer=function(){function e(e,t,n){return e=e.substr(1),/^\d+$/.test(e)&&!n.inFormatString?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}return d.$tokenizer=new l({start:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectIf?(n[0].expectIf=!1,n[0].elseBranch=n[0],[n[0]]):":"}},{regex:/\\./,onMatch:function(e,t,n){var r=e[1];return"}"==r&&n.length||-1!="`$\\".indexOf(r)?e=r:n.inFormatString&&("n"==r||"t"==r?e="\n":-1!="ulULE".indexOf(r)&&(e={changeCase:r,local:r>"a"})),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,n,r){var i=e(t.substr(1),n,r);return r.unshift(i[0]),i},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,n){n[0].choices=e.slice(1,-1).split(",")},next:"start"},{regex:"/("+t("/")+"+)/(?:("+t("/")+"*)/)(\\w*):?",onMatch:function(e,t,n){var r=n[0];return r.fmtString=e,e=this.splitRegex.exec(e),r.guard=e[1],r.fmt=e[2],r.flag=e[3],""},next:"start"},{regex:"`"+t("`")+"*`",onMatch:function(e,t,n){return n[0].code=e.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(e,t,n){n[0]&&(n[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+t("/")+"+)/",token:"regex"},{regex:"",onMatch:function(e,t,n){n.inFormatString=!0},next:"start"}]}),d.prototype.getTokenizer=function(){return d.$tokenizer},d.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},this.$getDefaultValue=function(e,t){if(/^[A-Z]\d+$/.test(t)){var n=t.substr(1);return(this.variables[t[0]+"__"]||{})[n]}if(/^\d+$/.test(t))return(this.variables.__||{})[t];if(t=t.replace(/^TM_/,""),e){var r=e.session;switch(t){case"CURRENT_WORD":var i=r.getWordRange();case"SELECTION":case"SELECTED_TEXT":return r.getTextRange(i);case"CURRENT_LINE":return r.getLine(e.getCursorPosition().row);case"PREV_LINE":return r.getLine(e.getCursorPosition().row-1);case"LINE_INDEX":return e.getCursorPosition().column;case"LINE_NUMBER":return e.getCursorPosition().row+1;case"SOFT_TABS":return r.getUseSoftTabs()?"YES":"NO";case"TAB_SIZE":return r.getTabSize();case"FILENAME":case"FILEPATH":return"";case"FULLNAME":return"Ace"}}},this.variables={},this.getVariableValue=function(e,t){return this.variables.hasOwnProperty(t)?this.variables[t](e,t)||"":this.$getDefaultValue(e,t)||""},this.tmStrFormat=function(e,t,n){var r=t.flag||"",i=t.guard;i=new RegExp(i,r.replace(/[^gi]/,""));var o=this.tokenizeTmSnippet(t.fmt,"formatString"),a=this,s=e.replace(i,(function(){a.variables.__=arguments;for(var e=a.resolveVariables(o,n),t="E",r=0;r<e.length;r++){var i=e[r];if("object"==typeof i)if(e[r]="",i.changeCase&&i.local){var s=e[r+1];s&&"string"==typeof s&&("u"==i.changeCase?e[r]=s[0].toUpperCase():e[r]=s[0].toLowerCase(),e[r+1]=s.substr(1))}else i.changeCase&&(t=i.changeCase);else"U"==t?e[r]=i.toUpperCase():"L"==t&&(e[r]=i.toLowerCase())}return e.join("")}));return this.variables.__=null,s},this.resolveVariables=function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];if("string"==typeof i)n.push(i);else{if("object"!=typeof i)continue;if(i.skip)a(i);else{if(i.processed<r)continue;if(i.text){var o=this.getVariableValue(t,i.text);o&&i.fmtString&&(o=this.tmStrFormat(o,i)),i.processed=r,null==i.expectIf?o&&(n.push(o),a(i)):o?i.skip=i.elseBranch:a(i)}else(null!=i.tabstopId||null!=i.changeCase)&&n.push(i)}}}function a(t){var n=e.indexOf(t,r+1);-1!=n&&(r=n)}return n},this.insertSnippetForSelection=function(e,t){var n=e.getCursorPosition(),r=e.session.getLine(n.row),i=e.session.getTabString(),o=r.match(/^\s*/)[0];n.column<o.length&&(o=o.slice(0,n.column)),t=t.replace(/\r/g,"");var a=this.tokenizeTmSnippet(t);a=this.resolveVariables(a,e),a=a.map((function(e){return"\n"==e?e+o:"string"==typeof e?e.replace(/\t/g,i):e}));var s=[];a.forEach((function(e,t){if("object"==typeof e){var n=e.tabstopId,r=s[n];if(r||(r=s[n]=[],r.index=n,r.value=""),-1===r.indexOf(e)){r.push(e);var i=a.indexOf(e,t+1);if(-1!==i){var o=a.slice(t+1,i),c=o.some((function(e){return"object"===typeof e}));c&&!r.value?r.value=o:!o.length||r.value&&"string"===typeof r.value||(r.value=o.join(""))}}}})),s.forEach((function(e){e.length=0}));var c={};function l(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if("object"==typeof r){if(c[r.tabstopId])continue;var i=e.lastIndexOf(r,n-1);r=t[i]||{tabstopId:r.tabstopId}}t[n]=r}return t}for(var u=0;u<a.length;u++){var d=a[u];if("object"==typeof d){var p=d.tabstopId,h=a.indexOf(d,u+1);if(c[p])c[p]===d&&(c[p]=null);else{var m=s[p],g="string"==typeof m.value?[m.value]:l(m.value);g.unshift(u+1,Math.max(0,h-u)),g.push(d),c[p]=d,a.splice.apply(a,g),-1===m.indexOf(d)&&m.push(d)}}}var v=0,b=0,_="";a.forEach((function(e){if("string"===typeof e){var t=e.split("\n");t.length>1?(b=t[t.length-1].length,v+=t.length-1):b+=e.length,_+=e}else e.start?e.end={row:v,column:b}:e.start={row:v,column:b}}));var y=e.getSelectionRange(),w=e.session.replace(y,_),x=new f(e),k=e.inVirtualSelectionMode&&e.selection.index;x.addTabstops(s,y.start,w,k)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection((function(){n.insertSnippetForSelection(e,t)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if(t=t.split("/").pop(),"html"===t||"php"===t){"php"!==t||e.session.$mode.inlinePhp||(t="html");var n=e.getCursorPosition(),r=e.session.getState(n.row);"object"===typeof r&&(r=r[0]),r.substring&&("js-"==r.substring(0,3)?t="javascript":"css-"==r.substring(0,4)?t="css":"php-"==r.substring(0,4)&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],r=this.snippetMap;return r[t]&&r[t].includeScopes&&n.push.apply(n,r[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,r=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return r&&e.tabstopManager&&e.tabstopManager.tabNext(),r},this.expandSnippetForSelection=function(e,t){var n,r=e.getCursorPosition(),i=e.session.getLine(r.row),o=i.substring(0,r.column),a=i.substr(r.column),s=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=s[e];return t&&(n=this.findMatchingSnippet(t,o,a)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(r.row,r.column-n.replaceBefore.length,r.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(e,t,n){for(var r=e.length;r--;){var i=e[r];if((!i.startRe||i.startRe.test(t))&&((!i.endRe||i.endRe.test(n))&&(i.startRe||i.endRe)))return i.matchBefore=i.startRe?i.startRe.exec(t):[""],i.matchAfter=i.endRe?i.endRe.exec(n):[""],i.replaceBefore=i.triggerRe?i.triggerRe.exec(t)[0]:"",i.replaceAfter=i.endTriggerRe?i.endTriggerRe.exec(n)[0]:"",i}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){var n=this.snippetMap,r=this.snippetNameMap,i=this;function a(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function s(e,t,n){return e=a(e),t=a(t),n?(e=t+e,e&&"$"!=e[e.length-1]&&(e+="$")):(e+=t,e&&"^"!=e[0]&&(e="^"+e)),new RegExp(e)}function c(e){e.scope||(e.scope=t||"_"),t=e.scope,n[t]||(n[t]=[],r[t]={});var a=r[t];if(e.name){var c=a[e.name];c&&i.unregister(c),a[e.name]=e}n[t].push(e),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=o.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=s(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger,"",!0),e.endRe=s(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger,"",!0))}e||(e=[]),e&&e.content?c(e):Array.isArray(e)&&e.forEach(c),this._signal("registerSnippets",{scope:t})},this.unregister=function(e,t){var n=this.snippetMap,r=this.snippetNameMap;function i(e){var i=r[e.scope||t];if(i&&i[e.name]){delete i[e.name];var o=n[e.scope||t],a=o&&o.indexOf(e);a>=0&&o.splice(a,1)}}e.content?i(e):Array.isArray(e)&&e.forEach(i)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");var t,n=[],r={},i=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;while(t=i.exec(e)){if(t[1])try{r=JSON.parse(t[1]),n.push(r)}catch(c){}if(t[4])r.content=t[4].replace(/^\t/gm,""),n.push(r),r={};else{var o=t[2],a=t[3];if("regex"==o){var s=/\/((?:[^\/\\]|\\.)*)|$/g;r.guard=s.exec(a)[1],r.trigger=s.exec(a)[1],r.endTrigger=s.exec(a)[1],r.endGuard=s.exec(a)[1]}else"snippet"==o?(r.tabTrigger=a.match(/^\S*/)[0],r.name||(r.name=a)):r[o]=a}}return n},this.getSnippetByName=function(e,t){var n,r=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var i=r[t];return i&&(n=i[e]),!!n}),this),n}}).call(d.prototype);var f=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=o.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){var t="r"==e.action[0],n=e.start,r=e.end,i=n.row,o=r.row,a=o-i,s=r.column-n.column;if(t&&(a=-a,s=-s),!this.$inChange&&t){var c=this.selectedTabstop,l=c&&!c.some((function(e){return u(e.start,n)<=0&&u(e.end,r)>=0}));if(l)return this.detach()}for(var d=this.ranges,f=0;f<d.length;f++){var p=d[f];p.end.row<n.row||(t&&u(n,p.start)<0&&u(r,p.end)>0?(this.removeRange(p),f--):(p.start.row==i&&p.start.column>n.column&&(p.start.column+=s),p.end.row==i&&p.end.column>=n.column&&(p.end.column+=s),p.start.row>=i&&(p.start.row+=a),p.end.row>=i&&(p.end.row+=a),u(p.start,p.end)>0&&this.removeRange(p)))}d.length||this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges){this.$inChange=!0;for(var n=this.editor.session,r=n.getTextRange(e.firstNonLinked),i=e.length;i--;){var o=e[i];if(o.linked){var a=t.snippetManager.tmStrFormat(r,o.original);n.replace(o,a)}}this.$inChange=!1}},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),r=this.ranges.length;r--;)if(!this.ranges[r].linked){var i=this.ranges[r].contains(e.row,e.column),o=n||this.ranges[r].contains(t.row,t.column);if(i&&o)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);n=Math.min(Math.max(n,1),t),n==t&&(n=0),this.selectTabstop(n),0===n&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,t=this.tabstops[this.index],t&&t.length){if(this.selectedTabstop=t,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(t.firstNonLinked);else{var n=this.editor.multiSelect;n.toSingleRange(t.firstNonLinked.clone());for(var r=t.length;r--;)t.hasLinkedRanges&&t[r].linked||n.addRange(t[r].clone(),!0);n.ranges[0]&&n.addRange(n.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(e,t,n){if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var r=a.fromPoints(n,n);m(r.start,t),m(r.end,t),e[0]=[r],e[0].index=0}var i=this.index,o=[i+1,0],s=this.ranges;e.forEach((function(e,n){for(var r=this.$openTabstops[n]||e,i=e.length;i--;){var c=e[i],l=a.fromPoints(c.start,c.end||c.start);h(l.start,t),h(l.end,t),l.original=c,l.tabstop=r,s.push(l),r!=e?r.unshift(l):r[i]=l,c.fmtString?(l.linked=!0,r.hasLinkedRanges=!0):r.firstNonLinked||(r.firstNonLinked=l)}r.firstNonLinked||(r.hasLinkedRanges=!1),r===e&&(o.push(r),this.$openTabstops[n]=r),this.addTabstopMarkers(r)}),this),o.length>2&&(this.tabstops.length&&o.push(o.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,o))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))}))},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},this.removeRange=function(e){var t=e.tabstop.indexOf(e);e.tabstop.splice(t,1),t=this.ranges.indexOf(e),this.ranges.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(t=this.tabstops.indexOf(e.tabstop),-1!=t&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new c,this.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||e.tabstopManager.tabNext(1)},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1)},Esc:function(e){e.tabstopManager.detach()},Return:function(e){return!1}})}).call(f.prototype);var p={};p.onChange=s.prototype.onChange,p.setPosition=function(e,t){this.pos.row=e,this.pos.column=t},p.update=function(e,t,n){this.$insertRight=n,this.pos=e,this.onChange(t)};var h=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},m=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),t.snippetManager=new d;var g=e("./editor").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(g.prototype)})),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../virtual_renderer").VirtualRenderer,i=e("../editor").Editor,o=e("../range").Range,a=e("../lib/event"),s=e("../lib/lang"),c=e("../lib/dom"),l=function(e){var t=new r(e);t.$maxLines=4;var n=new i(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusWaitTimout=0,n.$highlightTagPending=!0,n},u=function(e){var t=c.createElement("div"),n=new l(t);e&&e.appendChild(t),t.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var r,i=function(){};n.focus=i,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=i,n.renderer.$cursorLayer.element.style.opacity=0,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(""),n.session.$searchHighlight.clazz="ace_highlight-marker",n.on("mousedown",(function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),d.start.row=d.end.row=t.row,e.stop()}));var u=new o(-1,0,-1,1/0),d=new o(-1,0,-1,1/0);d.id=n.session.addMarker(d,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?u.id&&(n.session.removeMarker(u.id),u.id=null):u.id=n.session.addMarker(u,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",(function(e){if(r){if(r.x!=e.x||r.y!=e.y){r=e,r.scrollTop=n.renderer.scrollTop;var t=r.getDocumentPosition().row;u.start.row!=t&&(u.id||n.setRow(t),p(t))}}else r=e})),n.renderer.on("beforeRender",(function(){if(r&&-1!=u.start.row){r.$pos=null;var e=r.getDocumentPosition().row;u.id||n.setRow(e),p(e,!0)}})),n.renderer.on("afterRender",(function(){var e=n.getRow(),t=n.renderer.$textLayer,r=t.element.childNodes[e-t.config.firstRow];r!=t.selectedNode&&(t.selectedNode&&c.removeCssClass(t.selectedNode,"ace_selected"),t.selectedNode=r,r&&c.addCssClass(r,"ace_selected"))}));var f=function(){p(-1)},p=function(e,t){e!==u.start.row&&(u.start.row=u.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return u.start.row},a.addListener(n.container,"mouseout",f),n.on("hide",f),n.on("changeSelection",f),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var h=n.session.bgTokenizer;return h.$tokenizeRow=function(e){var t=n.data[e],r=[];if(!t)return r;"string"==typeof t&&(t={value:t}),t.caption||(t.caption=t.value||t.name);for(var i,o,a=-1,s=0;s<t.caption.length;s++)o=t.caption[s],i=t.matchMask&1<<s?1:0,a!==i?(r.push({type:t.className||(i?"completion-highlight":""),value:o}),a=i):r[r.length-1].value+=o;if(t.meta){var c=n.renderer.$size.scrollerWidth/n.renderer.layerConfig.characterWidth,l=t.meta;l.length+t.caption.length>c-2&&(l=l.substr(0,c-t.caption.length-3)+"…"),r.push({type:"rightAlignedText",value:l})}return r},h.$updateOnChange=i,h.start=i,n.session.$computeWidth=function(){return this.screenWidth=0},n.$blockScrolling=1/0,n.isOpen=!1,n.isTopdown=!1,n.autoSelect=!0,n.data=[],n.setData=function(e){n.setValue(s.stringRepeat("\n",e.length),-1),n.data=e||[],n.setRow(0)},n.getData=function(e){return n.data[e]},n.getRow=function(){return d.start.row},n.setRow=function(e){e=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,e)),d.start.row!=e&&(n.selection.clearSelection(),d.start.row=d.end.row=e||0,n.session._emit("changeBackMarker"),n.moveCursorTo(e||0,0),n.isOpen&&n._signal("select"))},n.on("changeSelection",(function(){n.isOpen&&n.setRow(n.selection.lead.row),n.renderer.scrollCursorIntoView()})),n.hide=function(){this.container.style.display="none",this._signal("hide"),n.isOpen=!1},n.show=function(e,t,i){var o=this.container,a=window.innerHeight,s=window.innerWidth,c=this.renderer,l=c.$maxLines*t*1.4,u=e.top+this.$borderSize,d=u>a/2&&!i;d&&u+t+l>a?(c.$maxPixelHeight=u-2*this.$borderSize,o.style.top="",o.style.bottom=a-u+"px",n.isTopdown=!1):(u+=t,c.$maxPixelHeight=a-u-.2*t,o.style.top=u+"px",o.style.bottom="",n.isTopdown=!0),o.style.display="",this.renderer.$textLayer.checkForSizeChanges();var f=e.left;f+o.offsetWidth>s&&(f=s-o.offsetWidth),o.style.left=f+"px",this._signal("show"),r=null,n.isOpen=!0},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n};c.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4);}.ace_editor.ace_autocomplete .ace_line-hover { position: absolute; z-index: 2;}.ace_editor.ace_autocomplete .ace_scroller { background: none; border: none; box-shadow: none;}.ace_rightAlignedText { color: gray; display: inline-block; position: absolute; right: 4px; text-align: right; z-index: -1;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #000; text-shadow: 0 0 0.01em;}.ace_editor.ace_autocomplete { width: 280px; z-index: 200000; background: #fbfbfb; color: #444; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4;}"),t.AcePopup=u})),ace.define("ace/autocomplete/util",["require","exports","module"],(function(e,t,n){"use strict";t.parForEach=function(e,t,n){var r=0,i=e.length;0===i&&n();for(var o=0;o<i;o++)t(e[o],(function(e,t){r++,r===i&&n(e,t)}))};var r=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/;t.retrievePrecedingIdentifier=function(e,t,n){n=n||r;for(var i=[],o=t-1;o>=0;o--){if(!n.test(e[o]))break;i.push(e[o])}return i.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||r;for(var i=[],o=t;o<e.length;o++){if(!n.test(e[o]))break;i.push(e[o])}return i},t.getCompletionPrefix=function(e){var t,n=e.getCursorPosition(),r=e.session.getLine(n.row);return e.completers.forEach(function(e){e.identifierRegexps&&e.identifierRegexps.forEach(function(e){!t&&e&&(t=this.retrievePrecedingIdentifier(r,n.column,e))}.bind(this))}.bind(this)),t||this.retrievePrecedingIdentifier(r,n.column)}})),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/snippets"],(function(e,t,n){"use strict";var r=e("./keyboard/hash_handler").HashHandler,i=e("./autocomplete/popup").AcePopup,o=e("./autocomplete/util"),a=(e("./lib/event"),e("./lib/lang")),s=e("./lib/dom"),c=e("./snippets").snippetManager,l=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new r,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=a.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new i(document.body||document.documentElement),this.popup.on("click",function(e){this.insertMatch(),e.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(e,t,n){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered),e.keyBinding.addKeyboardHandler(this.keyboardHandler);var r=e.renderer;if(this.popup.setRow(this.autoSelect?0:-1),n)n&&!t&&this.detach();else{this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize());var i=r.layerConfig.lineHeight,o=r.$cursorLayer.getPixelPosition(this.base,!0);o.left-=this.popup.getTextLeftOffset();var a=e.container.getBoundingClientRect();o.top+=a.top-r.layerConfig.offset,o.left+=a.left-e.renderer.scrollLeft,o.left+=r.gutterWidth,this.popup.show(o,i)}},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(e){var t=this.editor.selection.lead;(t.row!=this.base.row||t.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(e){var t=document.activeElement,n=this.editor.textInput.getElement(),r=e.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(e.relatedTarget),i=this.popup&&this.popup.container;t==n||t.parentNode==i||r||t==this.tooltipNode||e.relatedTarget==n||this.detach()},this.mousedownListener=function(e){this.detach()},this.mousewheelListener=function(e){this.detach()},this.goTo=function(e){var t=this.popup.getRow(),n=this.popup.session.getLength()-1;switch(e){case"up":t=t<=0?n:t-1;break;case"down":t=t>=n?-1:t+1;break;case"start":t=0;break;case"end":t=n;break}this.popup.setRow(t)},this.insertMatch=function(e,t){if(e||(e=this.popup.getData(this.popup.getRow())),!e)return!1;if(e.completer&&e.completer.insertMatch)e.completer.insertMatch(this.editor,e);else{if(this.completions.filterText)for(var n,r=this.editor.selection.getAllRanges(),i=0;n=r[i];i++)n.start.column-=this.completions.filterText.length,this.editor.session.remove(n);e.snippet?c.insertSnippet(this.editor,e.snippet):this.editor.execCommand("insertstring",e.value||e)}this.detach()},this.commands={Up:function(e){e.completer.goTo("up")},Down:function(e){e.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(e){e.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(e){e.completer.goTo("end")},Esc:function(e){e.completer.detach()},Return:function(e){return e.completer.insertMatch()},"Shift-Return":function(e){e.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(e){var t=e.completer.insertMatch();if(t||e.tabstopManager)return t;e.completer.goTo("down")},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},this.gatherCompletions=function(e,t){var n=e.getSession(),r=e.getCursorPosition(),i=o.getCompletionPrefix(e);this.base=n.doc.createAnchor(r.row,r.column-i.length),this.base.$insertRight=!0;var a=[],s=e.completers.length;return e.completers.forEach((function(c,l){c.getCompletions(e,n,r,i,(function(n,r){!n&&r&&(a=a.concat(r)),t(null,{prefix:o.getCompletionPrefix(e),matches:a,finished:0===--s})}))})),!0},this.showPopup=function(e){this.editor&&this.detach(),this.activated=!0,this.editor=e,e.completer!=this&&(e.completer&&e.completer.detach(),e.completer=this),e.on("changeSelection",this.changeListener),e.on("blur",this.blurListener),e.on("mousedown",this.mousedownListener),e.on("mousewheel",this.mousewheelListener),this.updateCompletions()},this.updateCompletions=function(e){if(e&&this.base&&this.completions){var t=this.editor.getCursorPosition(),n=this.editor.session.getTextRange({start:this.base,end:t});if(n==this.completions.filterText)return;return this.completions.setFilter(n),this.completions.filtered.length?1!=this.completions.filtered.length||this.completions.filtered[0].value!=n||this.completions.filtered[0].snippet?void this.openPopup(this.editor,n,e):this.detach():this.detach()}var r=this.gatherCompletionsId;this.gatherCompletions(this.editor,function(t,n){var i=function(){if(n.finished)return this.detach()}.bind(this),o=n.prefix,a=n&&n.matches;if(!a||!a.length)return i();if(0===o.indexOf(n.prefix)&&r==this.gatherCompletionsId){this.completions=new u(a),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(o);var s=this.completions.filtered;return s.length&&(1!=s.length||s[0].value!=o||s[0].snippet)?this.autoInsert&&1==s.length&&n.finished?this.insertMatch(s[0]):void this.openPopup(this.editor,o,e):i()}}.bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var e=this.popup,t=e.data,n=t&&(t[e.getHoveredRow()]||t[e.getRow()]),r=null;return n&&this.editor&&this.popup.isOpen?(this.editor.completers.some((function(e){return e.getDocTooltip&&(r=e.getDocTooltip(n)),r})),r||(r=n),"string"==typeof r&&(r={docText:r}),r&&(r.docHTML||r.docText)?void this.showDocTooltip(r):this.hideDocTooltip()):this.hideDocTooltip()},this.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=s.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var t=this.tooltipNode;e.docHTML?t.innerHTML=e.docHTML:e.docText&&(t.textContent=e.docText),t.parentNode||document.body.appendChild(t);var n=this.popup,r=n.container.getBoundingClientRect();t.style.top=n.container.style.top,t.style.bottom=n.container.style.bottom,window.innerWidth-r.right<320?(t.style.right=window.innerWidth-r.left+"px",t.style.left=""):(t.style.left=r.right+1+"px",t.style.right=""),t.style.display="block"},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),this.tooltipNode){var e=this.tooltipNode;this.editor.isFocused()||document.activeElement!=e||this.editor.focus(),this.tooltipNode=null,e.parentNode&&e.parentNode.removeChild(e)}},this.onTooltipClick=function(e){var t=e.target;while(t&&t!=this.tooltipNode){if("A"==t.nodeName&&t.href){t.rel="noreferrer",t.target="_blank";break}t=t.parentNode}}}).call(l.prototype),l.startCommand={name:"startAutocomplete",exec:function(e){e.completer||(e.completer=new l),e.completer.autoInsert=!1,e.completer.autoSelect=!0,e.completer.showPopup(e),e.completer.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var u=function(e,t){this.all=e,this.filtered=e,this.filterText=t||"",this.exactMatch=!1};(function(){this.setFilter=function(e){if(e.length>this.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else t=this.all;this.filterText=e,t=this.filterCompletions(t,this.filterText),t=t.sort((function(e,t){return t.exactMatch-e.exactMatch||t.score-e.score}));var n=null;t=t.filter((function(e){var t=e.snippet||e.caption||e.value;return t!==n&&(n=t,!0)})),this.filtered=t},this.filterCompletions=function(e,t){var n=[],r=t.toUpperCase(),i=t.toLowerCase();e:for(var o,a=0;o=e[a];a++){var s=o.value||o.caption||o.snippet;if(s){var c,l,u=-1,d=0,f=0;if(this.exactMatch){if(t!==s.substr(0,t.length))continue e}else for(var p=0;p<t.length;p++){var h=s.indexOf(i[p],u+1),m=s.indexOf(r[p],u+1);if(c=h>=0&&(m<0||h<m)?h:m,c<0)continue e;l=c-u-1,l>0&&(-1===u&&(f+=10),f+=l),d|=1<<c,u=c}o.matchMask=d,o.exactMatch=f?0:1,o.score=(o.score||0)-f,n.push(o)}}return n}}).call(u.prototype),t.Autocomplete=l,t.FilteredList=u})),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],(function(e,t,n){var r=e("../range").Range,i=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function o(e,t){var n=e.getTextRange(r.fromPoints({row:0,column:0},t));return n.split(i).length-1}function a(e,t){var n=o(e,t),r=e.getValue().split(i),a=Object.create(null),s=r[n];return r.forEach((function(e,t){if(e&&e!==s){var i=Math.abs(n-t),o=r.length-i;a[e]?a[e]=Math.max(o,a[e]):a[e]=o}})),a}t.getCompletions=function(e,t,n,r,i){var o=a(t,n,r),s=Object.keys(o);i(null,s.map((function(e){return{caption:e,value:e,score:o[e],meta:"local"}})))}})),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],(function(e,t,n){"use strict";var r=e("../snippets").snippetManager,i=e("../autocomplete").Autocomplete,o=e("../config"),a=e("../lib/lang"),s=e("../autocomplete/util"),c=e("../autocomplete/text_completer"),l={getCompletions:function(e,t,n,r,i){if(t.$mode.completer)return t.$mode.completer.getCompletions(e,t,n,r,i);var o=e.session.getState(n.row),a=t.$mode.getCompletions(o,t,n,r);i(null,a)}},u={getCompletions:function(e,t,n,i,o){var a=r.snippetMap,s=[];r.getActiveScopes(e).forEach((function(e){for(var t=a[e]||[],n=t.length;n--;){var r=t[n],i=r.name||r.tabTrigger;i&&s.push({caption:i,snippet:r.content,meta:r.tabTrigger&&!r.name?r.tabTrigger+"⇥ ":"snippet",type:"snippet"})}}),this),o(null,s)},getDocTooltip:function(e){"snippet"!=e.type||e.docHTML||(e.docHTML=["<b>",a.escapeHTML(e.caption),"</b>","<hr></hr>",a.escapeHTML(e.snippet)].join(""))}},d=[u,c,l];t.setCompleters=function(e){d.length=0,e&&d.push.apply(d,e)},t.addCompleter=function(e){d.push(e)},t.textCompleter=c,t.keyWordCompleter=l,t.snippetCompleter=u;var f={name:"expandSnippet",exec:function(e){return r.expandWithTab(e)},bindKey:"Tab"},p=function(e,t){h(t.session.$mode)},h=function(e){var t=e.$id;r.files||(r.files={}),m(t),e.modes&&e.modes.forEach(h)},m=function(e){if(e&&!r.files[e]){var t=e.replace("mode","snippets");r.files[e]={},o.loadModule(t,(function(t){t&&(r.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=r.parseSnippetFile(t.snippetText)),r.register(t.snippets||[],t.scope),t.includeScopes&&(r.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach((function(e){m("ace/mode/"+e)}))))}))}},g=function(e){var t=e.editor,n=t.completer&&t.completer.activated;if("backspace"===e.command.name)n&&!s.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name){var r=s.getCompletionPrefix(t);r&&!n&&(t.completer||(t.completer=new i),t.completer.autoInsert=!1,t.completer.showPopup(t))}},v=e("../editor").Editor;e("../config").defineOptions(v.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:d),this.commands.addCommand(i.startCommand)):this.commands.removeCommand(i.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:d),this.commands.on("afterExec",g)):this.commands.removeListener("afterExec",g)},value:!1},enableSnippets:{set:function(e){e?(this.commands.addCommand(f),this.on("changeMode",p),p(null,this)):(this.commands.removeCommand(f),this.off("changeMode",p))},value:!1}})})),function(){ace.acequire(["ace/ext/language_tools"],(function(){}))}()},"219c":function(e,t,n){"use strict";var r=n("da84"),i=n("4625"),o=n("d039"),a=n("59ed"),s=n("addb"),c=n("ebb5"),l=n("04d1"),u=n("d998"),d=n("2d00"),f=n("512ce"),p=c.aTypedArray,h=c.exportTypedArrayMethod,m=r.Uint16Array,g=m&&i(m.prototype.sort),v=!!g&&!(o((function(){g(new m(2),null)}))&&o((function(){g(new m(2),{})}))),b=!!g&&!o((function(){if(d)return d<74;if(l)return l<67;if(u)return!0;if(f)return f<602;var e,t,n=new m(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(g(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0})),_=function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!==n?-1:t!==t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}};h("sort",(function(e){return void 0!==e&&a(e),b?g(this,e):s(p(this),_(e))}),!b||v)},"21a1":function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var n=e((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&e(n)?o(t(n),n,r):n}function r(t,r,i){var a=t.slice();return r.forEach((function(r,s){"undefined"===typeof a[s]?a[s]=n(r,i):e(r)?a[s]=o(t[s],r,i):-1===t.indexOf(r)&&a.push(n(r,i))})),a}function i(t,r,i){var a={};return e(t)&&Object.keys(t).forEach((function(e){a[e]=n(t[e],i)})),Object.keys(r).forEach((function(s){e(r[s])&&t[s]?a[s]=o(t[s],r[s],i):a[s]=n(r[s],i)})),a}function o(e,t,o){var a=Array.isArray(t),s=o||{arrayMerge:r},c=s.arrayMerge||r;return a?Array.isArray(e)?c(e,t,o):n(t,o):i(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return o(e,n,t)}))},o}))}));function r(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map((function(e){e(n)})),(e["*"]||[]).map((function(e){e(t,n)}))}}}var i=e((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),o=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,"&quot;");return t+'="'+n+'"'})).join(" ")},a=i.svg,s=i.xlink,c={};c[a.name]=a.uri,c[s.name]=s.uri;var l,u=function(e,t){void 0===e&&(e="");var r=n(c,t||{}),i=o(r);return"<svg "+i+">"+e+"</svg>"},d=i.svg,f=i.xlink,p={attrs:(l={style:["position: absolute","width: 0","height: 0"].join("; ")},l[d.name]=d.uri,l[f.name]=f.uri,l)},h=function(e){this.config=n(p,e||{}),this.symbols=[]};h.prototype.add=function(e){var t=this,n=t.symbols,r=this.find(e.id);return r?(n[n.indexOf(r)]=e,!1):(n.push(e),!0)},h.prototype.remove=function(e){var t=this,n=t.symbols,r=this.find(e);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},h.prototype.find=function(e){return this.symbols.filter((function(t){return t.id===e}))[0]||null},h.prototype.has=function(e){return null!==this.find(e)},h.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map((function(e){return e.stringify()})).join("");return u(n,t)},h.prototype.toString=function(){return this.stringify()},h.prototype.destroy=function(){this.symbols.forEach((function(e){return e.destroy()}))};var m=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};m.prototype.stringify=function(){return this.content},m.prototype.toString=function(){return this.stringify()},m.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var g=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},v=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return g(u(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(m),b={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},_=function(e){return Array.prototype.slice.call(e,0)},y=navigator.userAgent,w={isChrome:/chrome/i.test(y),isFirefox:/firefox/i.test(y),isIE:/msie/i.test(y)||/trident/i.test(y),isEdge:/edge/i.test(y)},x=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},k=function(e){var t=[];return _(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})),t},C=function(e){return(e||window.location.href).split("#")[0]},A=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,n,r){x(e,{oldUrl:r,newUrl:n})}))}])},S="linearGradient, radialGradient, pattern",E=function(e,t){return void 0===t&&(t=S),_(e.querySelectorAll("symbol")).forEach((function(e){_(e.querySelectorAll(t)).forEach((function(t){e.parentNode.insertBefore(t,e)}))})),e};function T(e,t){var n=_(e).reduce((function(e,n){if(!n.attributes)return e;var r=_(n.attributes),i=t?r.filter(t):r;return e.concat(i)}),[]);return n}var O=i.xlink.uri,R="xlink:href",D=/[{}|\\\^\[\]`"<>]/g;function L(e){return e.replace(D,(function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()}))}function M(e,t,n){return _(e).forEach((function(e){var r=e.getAttribute(R);if(r&&0===r.indexOf(t)){var i=r.replace(t,n);e.setAttributeNS(O,R,i)}})),e}var F,N=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],B=N.map((function(e){return"["+e+"]"})).join(","),I=function(e,t,n,r){var i=L(n),o=L(r),a=e.querySelectorAll(B),s=T(a,(function(e){var t=e.localName,n=e.value;return-1!==N.indexOf(t)&&-1!==n.indexOf("url("+i)}));s.forEach((function(e){return e.value=e.value.replace(i,o)})),M(t,i,o)},P={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},$=function(e){function t(t){var i=this;void 0===t&&(t={}),e.call(this,n(b,t));var o=r();this._emitter=o,this.node=null;var a=this,s=a.config;if(s.autoConfigure&&this._autoConfigure(t),s.syncUrlsWithBaseTag){var c=document.getElementsByTagName("base")[0].getAttribute("href");o.on(P.MOUNT,(function(){return i.updateUrls("#",c)}))}var l=this._handleLocationChange.bind(this);this._handleLocationChange=l,s.listenLocationChangeEvent&&window.addEventListener(s.locationChangeEvent,l),s.locationChangeAngularEmitter&&A(s.locationChangeEvent),o.on(P.MOUNT,(function(e){s.moveGradientsOutsideSymbol&&E(e)})),o.on(P.SYMBOL_MOUNT,(function(e){s.moveGradientsOutsideSymbol&&E(e.parentNode),(w.isIE||w.isEdge)&&k(e)}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},t.prototype._autoConfigure=function(e){var t=this,n=t.config;"undefined"===typeof e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="angular"in window),"undefined"===typeof e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=w.isFirefox)},t.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,r=t.newUrl;this.updateUrls(n,r)},t.prototype.add=function(t){var n=this,r=e.prototype.add.call(this,t);return this.isMounted&&r&&(t.mount(n.node),this._emitter.emit(P.SYMBOL_MOUNT,t.node)),r},t.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e;return n.node=r,this.symbols.forEach((function(e){e.mount(n.node),t._emitter.emit(P.SYMBOL_MOUNT,e.node)})),_(r.querySelectorAll("symbol")).forEach((function(e){var t=v.createFromExistingNode(e);t.node=e,n.add(t)})),this._emitter.emit(P.MOUNT,r),r},t.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,r=e._emitter;n.forEach((function(e){return e.destroy()})),r.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},t.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e,i=n.render();return this.node=i,t&&r.childNodes[0]?r.insertBefore(i,r.childNodes[0]):r.appendChild(i),this._emitter.emit(P.MOUNT,i),i},t.prototype.render=function(){return g(this.stringify())},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},t.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return I(this.node,n,C(e)+"#",C(t)+"#"),!0},Object.defineProperties(t.prototype,i),t}(h),j=e((function(e){
/*!
* domready (c) Dustin Diaz 2014 - License MIT
*/
!function(t,n){e.exports=n()}(0,(function(){var e,t=[],n=document,r=n.documentElement.doScroll,i="DOMContentLoaded",o=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return o||n.addEventListener(i,e=function(){n.removeEventListener(i,e),o=1;while(e=t.shift())e()}),function(e){o?setTimeout(e,0):t.push(e)}}))})),z="__SVG_SPRITE_NODE__",q="__SVG_SPRITE__",H=!!window[q];H?F=window[q]:(F=new $({attrs:{id:z}}),window[q]=F);var U=function(){var e=document.getElementById(z);e?F.attach(e):F.mount(document.body,!0)};document.body?U():j(U);var W=F;return W}))}).call(this,n("c8ba"))},2266:function(e,t,n){"use strict";var r=n("0366"),i=n("c65b"),o=n("825a"),a=n("0d51"),s=n("e95a"),c=n("07fa"),l=n("3a9b"),u=n("9a1f"),d=n("35a1"),f=n("2a62"),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,n){var g,v,b,_,y,w,x,k=n&&n.that,C=!(!n||!n.AS_ENTRIES),A=!(!n||!n.IS_RECORD),S=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),T=r(t,k),O=function(e){return g&&f(g,"normal",e),new h(!0,e)},R=function(e){return C?(o(e),E?T(e[0],e[1],O):T(e[0],e[1])):E?T(e,O):T(e)};if(A)g=e.iterator;else if(S)g=e;else{if(v=d(e),!v)throw new p(a(e)+" is not iterable");if(s(v)){for(b=0,_=c(e);_>b;b++)if(y=R(e[b]),y&&l(m,y))return y;return new h(!1)}g=u(e,v)}w=A?e.next:g.next;while(!(x=i(w,g)).done){try{y=R(x.value)}catch(D){f(g,"throw",D)}if("object"==typeof y&&y&&l(m,y))return y}return new h(!1)}},"23cb":function(e,t,n){"use strict";var r=n("5926"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"23dc":function(e,t,n){"use strict";var r=n("d44e");r(Math,"Math",!0)},"23e7":function(e,t,n){"use strict";var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("cb2d"),s=n("6374"),c=n("e893"),l=n("94ca");e.exports=function(e,t){var n,u,d,f,p,h,m=e.target,g=e.global,v=e.stat;if(u=g?r:v?r[m]||s(m,{}):(r[m]||{}).prototype,u)for(d in t){if(p=t[d],e.dontCallGetSet?(h=i(u,d),f=h&&h.value):f=u[d],n=l(g?d:m+(v?".":"#")+d,e.forced),!n&&void 0!==f){if(typeof p==typeof f)continue;c(p,f)}(e.sham||f&&f.sham)&&o(p,"sham",!0),a(u,d,p,e)}}},2401:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},n=function(e){return function(n){return t(n)===e}},r=function(e){return function(t){return typeof t===e}},i=n("string"),o=n("object"),a=n("array"),s=r("boolean"),c=r("function"),l=r("number"),u=function(){},d=function(e){return function(){return e}},f=function(e){return e},p=function(e,t){return e===t},h=function(e){return function(t){return!e(t)}},m=d(!1),g=d(!0),v=function(){return b},b=function(){var e=function(e){return e()},t=f,n={fold:function(e,t){return e()},isSome:m,isNone:g,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:d(null),getOrUndefined:d(void 0),or:t,orThunk:e,map:v,each:u,bind:v,exists:m,forall:g,filter:function(){return v()},toArray:function(){return[]},toString:d("none()")};return n}(),_=function(e){var t=d(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:g,isNone:m,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return _(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:b},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},y=function(e){return null===e||void 0===e?b:_(e)},w={some:_,none:v,from:y},x=Array.prototype.slice,k=Array.prototype.push,C=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},A=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},S=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},E=function(e,t){if(0===e.length)return[];for(var n=t(e[0]),r=[],i=[],o=0,a=e.length;o<a;o++){var s=e[o],c=t(s);c!==n&&(r.push(i),i=[]),n=c,i.push(s)}return 0!==i.length&&r.push(i),r},T=function(e,t,n){return A(e,(function(e,r){n=t(n,e,r)})),n},O=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return w.some(o);if(n(o,r))break}return w.none()},R=function(e,t){return O(e,t,m)},D=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);k.apply(t,e[n])}return t},L=function(e,t){return D(C(e,t))},M=function(e){var t=x.call(e,0);return t.reverse(),t},F=function(e,t){return t>=0&&t<e.length?w.some(e[t]):w.none()},N=function(e){return F(e,0)},B=function(e){return F(e,e.length-1)},I=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return w.none()},P=function(){return P=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},P.apply(this,arguments)};function $(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var j=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},z=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),c=i||!o&&a&&r("(min-device-width:768px)"),l=o||a&&!c,u=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),f=!l&&!c&&!u;return{isiPad:d(i),isiPhone:d(o),isTablet:d(c),isPhone:d(l),isTouch:d(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:d(u),isDesktop:d(f)}},q=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},H=function(e,t){var n=q(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return V(r(1),r(2))},U=function(e,t){var n=String(t).toLowerCase();return 0===e.length?W():H(e,n)},W=function(){return V(0,0)},V=function(e,t){return{major:e,minor:t}},G={nu:V,detect:U,unknown:W},K=function(e,t){return I(t.brands,(function(t){var n=t.brand.toLowerCase();return R(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:G.nu(parseInt(t.version,10),0)}}))}))},Y=function(e,t){var n=String(t).toLowerCase();return R(e,(function(e){return e.search(n)}))},X=function(e,t){return Y(e,t).map((function(e){var n=G.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},Q=function(e,t){return Y(e,t).map((function(e){var n=G.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},J=function(e,t){return-1!==e.indexOf(t)},Z=function(e){return function(t){return t.replace(e,"")}},ee=Z(/^\s+|\s+$/g),te=function(e){return e.length>0},ne=function(e){return!te(e)},re=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ie=function(e){return function(t){return J(t,e)}},oe=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return J(e,"edge/")&&J(e,"chrome")&&J(e,"safari")&&J(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,re],search:function(e){return J(e,"chrome")&&!J(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return J(e,"msie")||J(e,"trident")}},{name:"Opera",versionRegexes:[re,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ie("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ie("firefox")},{name:"Safari",versionRegexes:[re,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(J(e,"safari")||J(e,"mobile/"))&&J(e,"applewebkit")}}],ae=[{name:"Windows",search:ie("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return J(e,"iphone")||J(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ie("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ie("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ie("linux"),versionRegexes:[]},{name:"Solaris",search:ie("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ie("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ie("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],se={browsers:d(oe),oses:d(ae)},ce="Edge",le="Chrome",ue="IE",de="Opera",fe="Firefox",pe="Safari",he=function(){return me({current:void 0,version:G.unknown()})},me=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(ce),isChrome:r(le),isIE:r(ue),isOpera:r(de),isFirefox:r(fe),isSafari:r(pe)}},ge={unknown:he,nu:me,edge:d(ce),chrome:d(le),ie:d(ue),opera:d(de),firefox:d(fe),safari:d(pe)},ve="Windows",be="iOS",_e="Android",ye="Linux",we="OSX",xe="Solaris",ke="FreeBSD",Ce="ChromeOS",Ae=function(){return Se({current:void 0,version:G.unknown()})},Se=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(ve),isiOS:r(be),isAndroid:r(_e),isOSX:r(we),isLinux:r(ye),isSolaris:r(xe),isFreeBSD:r(ke),isChromeOS:r(Ce)}},Ee={unknown:Ae,nu:Se,windows:d(ve),ios:d(be),android:d(_e),linux:d(ye),osx:d(we),solaris:d(xe),freebsd:d(ke),chromeos:d(Ce)},Te=function(e,t,n){var r=se.browsers(),i=se.oses(),o=t.bind((function(e){return K(r,e)})).orThunk((function(){return X(r,e)})).fold(ge.unknown,ge.nu),a=Q(i,e).fold(Ee.unknown,Ee.nu),s=z(a,o,e,n);return{browser:o,os:a,deviceType:s}},Oe={detect:Te},Re=function(e){return window.matchMedia(e).matches},De=j((function(){return Oe.detect(navigator.userAgent,w.from(navigator.userAgentData),Re)})),Le=function(){return De()},Me=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},Fe=function(e,t){return Me(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},Ne=1,Be=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw new Error("HTML must have a single root node");return $e(r.childNodes[0])},Ie=function(e,t){var n=t||document,r=n.createElement(e);return $e(r)},Pe=function(e,t){var n=t||document,r=n.createTextNode(e);return $e(r)},$e=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},je=function(e,t,n){return w.from(e.dom.elementFromPoint(t,n)).map($e)},ze={fromHtml:Be,fromTag:Ie,fromText:Pe,fromDom:$e,fromPoint:je},qe=function(e,t){var n=e.dom;if(n.nodeType!==Ne)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},He=function(e,t){return e.dom===t.dom},Ue=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},We=function(e,t){return Fe(e.dom,t.dom)},Ve=function(e,t){return Le().browser.isIE()?We(e,t):Ue(e,t)},Ge=qe,Ke=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),Ye=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),Xe=tinymce.util.Tools.resolve("tinymce.util.VK"),Qe=Object.keys,Je=function(e,t){for(var n=Qe(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},Ze=function(e){return function(t,n){e[n]=t}},et=function(e,t,n,r){var i={};return Je(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},tt=function(e,t){var n={};return et(e,t,Ze(n),u),n};"undefined"!==typeof window?window:Function("return this;")();var nt=function(e){var t=e.dom.nodeName;return t.toLowerCase()},rt=function(e){return e.dom.nodeType},it=function(e){return function(t){return rt(t)===e}},ot=it(Ne),at=function(e){return function(t){return ot(t)&&nt(t)===e}},st=function(e,t,n){if(!(i(n)||s(n)||l(n)))throw new Error("Attribute value was not simple");e.setAttribute(t,n+"")},ct=function(e,t){var n=e.dom;Je(t,(function(e,t){st(n,t,e)}))},lt=function(e){return T(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},ut=function(e){return w.from(e.dom.parentNode).map(ze.fromDom)},dt=function(e){return C(e.dom.childNodes,ze.fromDom)},ft=function(e,t){var n=e.dom.childNodes;return w.from(n[t]).map(ze.fromDom)},pt=function(e){return ft(e,0)},ht=function(e){return ft(e,e.dom.childNodes.length-1)},mt=function(e,t){var n=ut(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},gt=function(e,t){e.dom.appendChild(t.dom)},vt=function(e,t){A(t,(function(t){mt(e,t)}))},bt=function(e,t){A(t,(function(t){gt(e,t)}))},_t=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},yt=function(e,t){return ze.fromDom(e.dom.cloneNode(t))},wt=function(e){return yt(e,!0)},xt=function(e,t){var n=ze.fromTag(t),r=lt(e);return ct(n,r),n},kt=function(e,t){var n=xt(e,t);mt(e,n);var r=dt(e);return bt(n,r),_t(e),n},Ct=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),At=tinymce.util.Tools.resolve("tinymce.util.Tools"),St=function(e){return function(t){return t&&t.nodeName.toLowerCase()===e}},Et=function(e){return function(t){return t&&e.test(t.nodeName)}},Tt=function(e){return e&&3===e.nodeType},Ot=Et(/^(OL|UL|DL)$/),Rt=Et(/^(OL|UL)$/),Dt=St("ol"),Lt=Et(/^(LI|DT|DD)$/),Mt=Et(/^(DT|DD)$/),Ft=Et(/^(TH|TD)$/),Nt=St("br"),Bt=function(e){return e.parentNode.firstChild===e},It=function(e,t){return t&&!!e.schema.getTextBlockElements()[t.nodeName]},Pt=function(e,t){return e&&e.nodeName in t},$t=function(e,t){return!!Nt(t)&&(e.isBlock(t.nextSibling)&&!Nt(t.previousSibling))},jt=function(e,t,n){var r=e.isEmpty(t);return!(n&&e.select("span[data-mce-type=bookmark]",t).length>0)&&r},zt=function(e,t){return e.isChildOf(t,e.getRoot())},qt=function(e){return e.getParam("lists_indent_on_tab",!0)},Ht=function(e){var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},Ut=function(e){return e.getParam("forced_root_block_attrs",{})},Wt=function(e,t){var n,r,i,o=e.dom,a=e.schema.getBlockElements(),s=o.createFragment(),c=Ht(e);if(c&&(r=o.create(c),r.tagName===c.toUpperCase()&&o.setAttribs(r,Ut(e)),Pt(t.firstChild,a)||s.appendChild(r)),t)while(n=t.firstChild){var l=n.nodeName;i||"SPAN"===l&&"bookmark"===n.getAttribute("data-mce-type")||(i=!0),Pt(n,a)?(s.appendChild(n),r=null):c?(r||(r=o.create(c),s.appendChild(r)),r.appendChild(n)):s.appendChild(n)}return c?i||r.appendChild(o.create("br",{"data-mce-bogus":"1"})):s.appendChild(o.create("br")),s},Vt=Ct.DOM,Gt=function(e,t,n){var r=function(e){At.each(i,(function(t){e.parentNode.insertBefore(t,n.parentNode)})),Vt.remove(e)},i=Vt.select('span[data-mce-type="bookmark"]',t),o=Wt(e,n),a=Vt.createRng();a.setStartAfter(n),a.setEndAfter(t);for(var s=a.extractContents(),c=s.firstChild;c;c=c.firstChild)if("LI"===c.nodeName&&e.dom.isEmpty(c)){Vt.remove(c);break}e.dom.isEmpty(s)||Vt.insertAfter(s,t),Vt.insertAfter(o,t),jt(e.dom,n.parentNode)&&r(n.parentNode),Vt.remove(n),jt(e.dom,t)&&Vt.remove(t)},Kt=at("dd"),Yt=at("dt"),Xt=function(e,t){Kt(t)?kt(t,"dt"):Yt(t)&&ut(t).each((function(n){return Gt(e,n.dom,t.dom)}))},Qt=function(e){Yt(e)&&kt(e,"dd")},Jt=function(e,t,n){A(n,"Indent"===t?Qt:function(t){return Xt(e,t)})},Zt=function(e,t){if(Tt(e))return{container:e,offset:t};var n=Ke.getNode(e,t);return Tt(n)?{container:n,offset:t>=e.childNodes.length?n.data.length:0}:n.previousSibling&&Tt(n.previousSibling)?{container:n.previousSibling,offset:n.previousSibling.data.length}:n.nextSibling&&Tt(n.nextSibling)?{container:n.nextSibling,offset:0}:{container:e,offset:t}},en=function(e){var t=e.cloneRange(),n=Zt(e.startContainer,e.startOffset);t.setStart(n.container,n.offset);var r=Zt(e.endContainer,e.endOffset);return t.setEnd(r.container,r.offset),t},tn=tinymce.util.Tools.resolve("tinymce.dom.DomQuery"),nn=function(e,t){var n=t||e.selection.getStart(!0);return e.dom.getParent(n,"OL,UL,DL",un(e,n))},rn=function(e,t){return e&&1===t.length&&t[0]===e},on=function(e){return S(e.querySelectorAll("ol,ul,dl"),Ot)},an=function(e){var t=nn(e),n=e.selection.getSelectedBlocks();return rn(t,n)?on(t):S(n,(function(e){return Ot(e)&&t!==e}))},sn=function(e,t){var n=At.map(t,(function(t){var n=e.dom.getParent(t,"li,dd,dt",un(e,t));return n||t}));return tn.unique(n)},cn=function(e){var t=e.selection.getSelectedBlocks();return S(sn(e,t),Lt)},ln=function(e){return S(cn(e),Mt)},un=function(e,t){var n=e.dom.getParents(t,"TD,TH");return n.length>0?n[0]:e.getBody()},dn=function(e,t){var n=e.dom.getParents(t,"ol,ul",un(e,t));return B(n)},fn=function(e){var t=dn(e,e.selection.getStart()),n=S(e.selection.getSelectedBlocks(),Rt);return t.toArray().concat(n)},pn=function(e){var t=fn(e);return hn(e,t)},hn=function(e,t){var n=C(t,(function(t){return dn(e,t).getOr(t)}));return tn.unique(n)},mn=function(e,t,n){return void 0===n&&(n=p),e.exists((function(e){return n(e,t)}))},gn=function(e,t,n){return e.isSome()&&t.isSome()?w.some(n(e.getOrDie(),t.getOrDie())):w.none()},vn=function(e,t){var n=t||document,r=n.createDocumentFragment();return A(e,(function(e){r.appendChild(e.dom)})),ze.fromDom(r)},bn=function(e,t,n){return e.fire("ListMutation",{action:t,element:n})},_n=function(e){return void 0!==e.style&&c(e.style.getPropertyValue)},yn=function(e,t,n){if(!i(n))throw new Error("CSS value must be a string: "+n);_n(e)&&e.style.setProperty(t,n)},wn=function(e,t,n){var r=e.dom;yn(r,t,n)},xn=function(e,t){gt(e.item,t.list)},kn=function(e){for(var t=1;t<e.length;t++)xn(e[t-1],e[t])},Cn=function(e,t){gn(B(e),N(t),xn)},An=function(e,t){var n={list:ze.fromTag(t,e),item:ze.fromTag("li",e)};return gt(n.list,n.item),n},Sn=function(e,t,n){for(var r=[],i=0;i<n;i++)r.push(An(e,t.listType));return r},En=function(e,t){for(var n=0;n<e.length-1;n++)wn(e[n].item,"list-style-type","none");B(e).each((function(e){ct(e.list,t.listAttributes),ct(e.item,t.itemAttributes),bt(e.item,t.content)}))},Tn=function(e,t){nt(e.list)!==t.listType&&(e.list=kt(e.list,t.listType)),ct(e.list,t.listAttributes)},On=function(e,t,n){var r=ze.fromTag("li",e);return ct(r,t),bt(r,n),r},Rn=function(e,t){gt(e.list,t),e.item=t},Dn=function(e,t,n){var r=t.slice(0,n.depth);return B(r).each((function(t){var r=On(e,n.itemAttributes,n.content);Rn(t,r),Tn(t,n)})),r},Ln=function(e,t,n){var r=Sn(e,n,n.depth-t.length);return kn(r),En(r,n),Cn(t,r),t.concat(r)},Mn=function(e,t){var n=T(t,(function(t,n){return n.depth>t.length?Ln(e,t,n):Dn(e,t,n)}),[]);return N(n).map((function(e){return e.list}))},Fn=function(e){return Ge(e,"OL,UL")},Nn=function(e){return pt(e).exists(Fn)},Bn=function(e){return ht(e).exists(Fn)},In=function(e){return e.depth>0},Pn=function(e){return e.isSelected},$n=function(e){var t=dt(e),n=Bn(e)?t.slice(0,-1):t;return C(n,wt)},jn=function(e,t,n){return ut(e).filter(ot).map((function(r){return{depth:t,dirty:!1,isSelected:n,content:$n(e),itemAttributes:lt(e),listAttributes:lt(r),listType:nt(r)}}))},zn=function(e,t){switch(e){case"Indent":t.depth++;break;case"Outdent":t.depth--;break;case"Flatten":t.depth=0}t.dirty=!0},qn=function(e,t){e.listType=t.listType,e.listAttributes=P({},t.listAttributes)},Hn=function(e){e.listAttributes=tt(e.listAttributes,(function(e,t){return"start"!==t}))},Un=function(e,t){var n=e[t].depth,r=function(e){return e.depth===n&&!e.dirty},i=function(e){return e.depth<n};return O(M(e.slice(0,t)),r,i).orThunk((function(){return O(e.slice(t+1),r,i)}))},Wn=function(e){return A(e,(function(t,n){Un(e,n).fold((function(){t.dirty&&Hn(t)}),(function(e){return qn(t,e)}))})),e},Vn=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},Gn=function(e,t,n,r){return pt(r).filter(Fn).fold((function(){t.each((function(e){He(e.start,r)&&n.set(!0)}));var i=jn(r,e,n.get());t.each((function(e){He(e.end,r)&&n.set(!1)}));var o=ht(r).filter(Fn).map((function(r){return Kn(e,t,n,r)})).getOr([]);return i.toArray().concat(o)}),(function(r){return Kn(e,t,n,r)}))},Kn=function(e,t,n,r){return L(dt(r),(function(r){var i=Fn(r)?Kn:Gn,o=e+1;return i(o,t,n,r)}))},Yn=function(e,t){var n=Vn(!1),r=0;return C(e,(function(e){return{sourceList:e,entries:Kn(r,t,n,e)}}))},Xn=function(e,t){var n=Wn(t);return C(n,(function(t){var n=vn(t.content);return ze.fromDom(Wt(e,n.dom))}))},Qn=function(e,t){var n=Wn(t);return Mn(e.contentDocument,n).toArray()},Jn=function(e,t){return L(E(t,In),(function(t){var n=N(t).exists(In);return n?Qn(e,t):Xn(e,t)}))},Zn=function(e,t){A(S(e,Pn),(function(e){return zn(t,e)}))},er=function(e){var t=C(cn(e),ze.fromDom);return gn(R(t,h(Nn)),R(M(t),h(Nn)),(function(e,t){return{start:e,end:t}}))},tr=function(e,t,n){var r=Yn(t,er(e));A(r,(function(t){Zn(t.entries,n);var r=Jn(e,t.entries);A(r,(function(t){bn(e,"Indent"===n?"IndentList":"OutdentList",t.dom)})),vt(t.sourceList,r),_t(t.sourceList)}))},nr=function(e,t){var n=C(pn(e),ze.fromDom),r=C(ln(e),ze.fromDom),i=!1;if(n.length||r.length){var o=e.selection.getBookmark();tr(e,n,t),Jt(e,t,r),e.selection.moveToBookmark(o),e.selection.setRng(en(e.selection.getRng())),e.nodeChanged(),i=!0}return i},rr=function(e){return nr(e,"Indent")},ir=function(e){return nr(e,"Outdent")},or=function(e){return nr(e,"Flatten")},ar=tinymce.util.Tools.resolve("tinymce.dom.BookmarkManager"),sr=Ct.DOM,cr=function(e){var t={},n=function(n){var r=e[n?"startContainer":"endContainer"],i=e[n?"startOffset":"endOffset"];if(1===r.nodeType){var o=sr.create("span",{"data-mce-type":"bookmark"});r.hasChildNodes()?(i=Math.min(i,r.childNodes.length-1),n?r.insertBefore(o,r.childNodes[i]):sr.insertAfter(o,r.childNodes[i])):r.appendChild(o),r=o,i=0}t[n?"startContainer":"endContainer"]=r,t[n?"startOffset":"endOffset"]=i};return n(!0),e.collapsed||n(),t},lr=function(e){var t=function(t){var n,r=function(e){var t=e.parentNode.firstChild,n=0;while(t){if(t===e)return n;1===t.nodeType&&"bookmark"===t.getAttribute("data-mce-type")||n++,t=t.nextSibling}return-1},i=n=e[t?"startContainer":"endContainer"],o=e[t?"startOffset":"endOffset"];i&&(1===i.nodeType&&(o=r(i),i=i.parentNode,sr.remove(n),!i.hasChildNodes()&&sr.isBlock(i)&&i.appendChild(sr.create("br"))),e[t?"startContainer":"endContainer"]=i,e[t?"startOffset":"endOffset"]=o)};t(!0),t();var n=sr.createRng();return n.setStart(e.startContainer,e.startOffset),e.endContainer&&n.setEnd(e.endContainer,e.endOffset),en(n)},ur=function(e){switch(e){case"UL":return"ToggleUlList";case"OL":return"ToggleOlList";case"DL":return"ToggleDLList"}},dr=function(e){return/\btox\-/.test(e.className)},fr=function(e,t,n){var r=function(e){var r=O(e.parents,Ot,Ft).filter((function(e){return e.nodeName===t&&!dr(e)})).isSome();n(r)},i=e.dom.getParents(e.selection.getNode());return r({parents:i}),e.on("NodeChange",r),function(){return e.off("NodeChange",r)}},pr=function(e,t,n){var r=n["list-style-type"]?n["list-style-type"]:null;e.setStyle(t,"list-style-type",r)},hr=function(e,t){At.each(t,(function(t,n){e.setAttribute(n,t)}))},mr=function(e,t,n){hr(t,n["list-attributes"]),At.each(e.select("li",t),(function(e){hr(e,n["list-item-attributes"])}))},gr=function(e,t,n){pr(e,t,n),mr(e,t,n)},vr=function(e,t,n){At.each(n,(function(n){var r;return e.setStyle(t,(r={},r[n]="",r))}))},br=function(e,t,n,r){var i=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"];1===i.nodeType&&(i=i.childNodes[Math.min(o,i.childNodes.length-1)]||i),!n&&Nt(i.nextSibling)&&(i=i.nextSibling);while(i.parentNode!==r){if(It(e,i))return i;if(/^(TD|TH)$/.test(i.parentNode.nodeName))return i;i=i.parentNode}return i},_r=function(e,t,n){for(var r,i=[],o=e.dom,a=br(e,t,!0,n),s=br(e,t,!1,n),c=[],l=a;l;l=l.nextSibling)if(c.push(l),l===s)break;return At.each(c,(function(t){if(It(e,t))return i.push(t),void(r=null);if(o.isBlock(t)||Nt(t))return Nt(t)&&o.remove(t),void(r=null);var a=t.nextSibling;ar.isBookmarkNode(t)&&(Ot(a)||It(e,a)||!a&&t.parentNode===n)?r=null:(r||(r=o.create("p"),t.parentNode.insertBefore(r,t),i.push(r)),r.appendChild(t))})),i},yr=function(e,t,n){var r=e.getStyle(t,"list-style-type"),i=n?n["list-style-type"]:"";return i=null===i?"":i,r===i},wr=function(e,t,n){var r=e.selection.getRng(),i="LI",o=un(e,e.selection.getStart(!0)),a=e.dom;if("false"!==a.getContentEditable(e.selection.getNode())){t=t.toUpperCase(),"DL"===t&&(i="DT");var s=cr(r),c=_r(e,r,o);At.each(c,(function(r){var o,s=r.previousSibling,c=r.parentNode;Lt(c)||(s&&Ot(s)&&s.nodeName===t&&yr(a,s,n)?(o=s,r=a.rename(r,i),s.appendChild(r)):(o=a.create(t),r.parentNode.insertBefore(o,r),o.appendChild(r),r=a.rename(r,i)),vr(a,r,["margin","margin-right","margin-bottom","margin-left","margin-top","padding","padding-right","padding-bottom","padding-left","padding-top"]),gr(a,o,n),Sr(e.dom,o))})),e.selection.setRng(lr(s))}},xr=function(e,t){return e&&t&&Ot(e)&&e.nodeName===t.nodeName},kr=function(e,t,n){var r=e.getStyle(t,"list-style-type",!0),i=e.getStyle(n,"list-style-type",!0);return r===i},Cr=function(e,t){return e.className===t.className},Ar=function(e,t,n){return xr(t,n)&&kr(e,t,n)&&Cr(t,n)},Sr=function(e,t){var n,r;if(n=t.nextSibling,Ar(e,t,n)){while(r=n.firstChild)t.appendChild(r);e.remove(n)}if(n=t.previousSibling,Ar(e,t,n)){while(r=n.lastChild)t.insertBefore(r,t.firstChild);e.remove(n)}},Er=function(e,t,n,r){if(t.nodeName!==n){var i=e.dom.rename(t,n);gr(e.dom,i,r),bn(e,ur(n),i)}else gr(e.dom,t,r),bn(e,ur(n),t)},Tr=function(e,t,n,r,i){var o=Ot(t);if(o&&t.nodeName===r&&!Or(i))or(e);else{wr(e,r,i);var a=cr(e.selection.getRng()),s=o?$([t],n,!0):n;At.each(s,(function(t){Er(e,t,r,i)})),e.selection.setRng(lr(a))}},Or=function(e){return"list-style-type"in e},Rr=function(e,t,n,r){if(t!==e.getBody())if(t)if(t.nodeName!==n||Or(r)||dr(t)){var i=cr(e.selection.getRng());gr(e.dom,t,r);var o=e.dom.rename(t,n);Sr(e.dom,o),e.selection.setRng(lr(i)),wr(e,n,r),bn(e,ur(n),o)}else or(e);else wr(e,n,r),bn(e,ur(n),t)},Dr=function(e,t,n){var r=nn(e),i=an(e),a=o(n)?n:{};i.length>0?Tr(e,r,i,t,a):Rr(e,r,t,a)},Lr=Ct.DOM,Mr=function(e,t){var n=t.parentNode;if("LI"===n.nodeName&&n.firstChild===t){var r=n.previousSibling;r&&"LI"===r.nodeName?(r.appendChild(t),jt(e,n)&&Lr.remove(n)):Lr.setStyle(n,"listStyleType","none")}if(Ot(n)){r=n.previousSibling;r&&"LI"===r.nodeName&&r.appendChild(t)}},Fr=function(e,t){var n=At.grep(e.select("ol,ul",t));At.each(n,(function(t){Mr(e,t)}))},Nr=function(e,t,n,r){var i=t.startContainer,o=t.startOffset;if(Tt(i)&&(n?o<i.data.length:o>0))return i;var a=e.schema.getNonEmptyElements();1===i.nodeType&&(i=Ke.getNode(i,o));var s=new Ye(i,r);n&&$t(e.dom,i)&&s.next();while(i=s[n?"next":"prev2"]()){if("LI"===i.nodeName&&!i.hasChildNodes())return i;if(a[i.nodeName])return i;if(Tt(i)&&i.data.length>0)return i}},Br=function(e,t){var n=t.childNodes;return 1===n.length&&!Ot(n[0])&&e.isBlock(n[0])},Ir=function(e,t){Br(e,t)&&e.remove(t.firstChild,!0)},Pr=function(e,t,n){var r,i=Br(e,n)?n.firstChild:n;if(Ir(e,t),!jt(e,t,!0))while(r=t.firstChild)i.appendChild(r)},$r=function(e,t,n){var r,i=t.parentNode;if(zt(e,t)&&zt(e,n)){Ot(n.lastChild)&&(r=n.lastChild),i===n.lastChild&&Nt(i.previousSibling)&&e.remove(i.previousSibling);var o=n.lastChild;o&&Nt(o)&&t.hasChildNodes()&&e.remove(o),jt(e,n,!0)&&e.$(n).empty(),Pr(e,t,n),r&&n.appendChild(r);var a=Ve(ze.fromDom(n),ze.fromDom(t)),s=a?e.getParents(t,Ot,n):[];e.remove(t),A(s,(function(t){jt(e,t)&&t!==e.getRoot()&&e.remove(t)}))}},jr=function(e,t,n){e.dom.$(n).empty(),$r(e.dom,t,n),e.selection.setCursorLocation(n,0)},zr=function(e,t,n,r){var i=e.dom;if(i.isEmpty(r))jr(e,n,r);else{var o=cr(t);$r(i,n,r),e.selection.setRng(lr(o))}},qr=function(e,t,n,r){var i=cr(t);$r(e.dom,n,r);var o=lr(i);e.selection.setRng(o)},Hr=function(e,t){var n=e.dom,r=e.selection,i=r.getStart(),o=un(e,i),a=n.getParent(r.getStart(),"LI",o);if(a){var s=a.parentNode;if(s===e.getBody()&&jt(n,s))return!0;var c=en(r.getRng()),l=n.getParent(Nr(e,c,t,o),"LI",o);if(l&&l!==a)return e.undoManager.transact((function(){t?zr(e,c,l,a):Bt(a)?ir(e):qr(e,c,a,l)})),!0;if(!l&&!t&&0===c.startOffset&&0===c.endOffset)return e.undoManager.transact((function(){or(e)})),!0}return!1},Ur=function(e,t,n){var r=e.getParent(t.parentNode,e.isBlock,n);e.remove(t),r&&e.isEmpty(r)&&e.remove(r)},Wr=function(e,t){var n=e.dom,r=e.selection.getStart(),i=un(e,r),o=n.getParent(r,n.isBlock,i);if(o&&n.isEmpty(o)){var a=en(e.selection.getRng()),s=n.getParent(Nr(e,a,t,i),"LI",i);if(s)return e.undoManager.transact((function(){Ur(n,o,i),Sr(n,s.parentNode),e.selection.select(s,!0),e.selection.collapse(t)})),!0}return!1},Vr=function(e,t){return Hr(e,t)||Wr(e,t)},Gr=function(e){var t=e.selection.getStart(),n=un(e,t),r=e.dom.getParent(t,"LI,DT,DD",n);return!!(r||cn(e).length>0)&&(e.undoManager.transact((function(){e.execCommand("Delete"),Fr(e.dom,e.getBody())})),!0)},Kr=function(e,t){return e.selection.isCollapsed()?Vr(e,t):Gr(e)},Yr=function(e){e.on("keydown",(function(t){t.keyCode===Xe.BACKSPACE?Kr(e,!1)&&t.preventDefault():t.keyCode===Xe.DELETE&&Kr(e,!0)&&t.preventDefault()}))},Xr=function(e){return{backspaceDelete:function(t){Kr(e,t)}}},Qr=function(e,t){var n=nn(e);e.undoManager.transact((function(){o(t.styles)&&e.dom.setStyles(n,t.styles),o(t.attrs)&&Je(t.attrs,(function(t,r){return e.dom.setAttrib(n,r,t)}))}))},Jr=function(e){var t=M(ee(e).split("")),n=C(t,(function(e,t){var n=e.toUpperCase().charCodeAt(0)-"A".charCodeAt(0)+1;return Math.pow(26,t)*n}));return T(n,(function(e,t){return e+t}),0)},Zr=function(e){if(e--,e<0)return"";var t=e%26,n=Math.floor(e/26),r=Zr(n),i=String.fromCharCode("A".charCodeAt(0)+t);return r+i},ei=function(e){return/^[A-Z]+$/.test(e)},ti=function(e){return/^[a-z]+$/.test(e)},ni=function(e){return/^[0-9]+$/.test(e)},ri=function(e){return ni(e)?2:ei(e)?0:ti(e)?1:ne(e)?3:4},ii=function(e){switch(ri(e)){case 2:return w.some({listStyleType:w.none(),start:e});case 0:return w.some({listStyleType:w.some("upper-alpha"),start:Jr(e).toString()});case 1:return w.some({listStyleType:w.some("lower-alpha"),start:Jr(e).toString()});case 3:return w.some({listStyleType:w.none(),start:""});case 4:return w.none()}},oi=function(e){var t=parseInt(e.start,10);return mn(e.listStyleType,"upper-alpha")?Zr(t):mn(e.listStyleType,"lower-alpha")?Zr(t).toLowerCase():e.start},ai=function(e){var t=nn(e);Dt(t)&&e.windowManager.open({title:"List Properties",body:{type:"panel",items:[{type:"input",name:"start",label:"Start list at number",inputMode:"numeric"}]},initialData:{start:oi({start:e.dom.getAttrib(t,"start","1"),listStyleType:w.some(e.dom.getStyle(t,"list-style-type"))})},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(t){var n=t.getData();ii(n.start).each((function(t){e.execCommand("mceListUpdate",!1,{attrs:{start:"1"===t.start?"":t.start},styles:{"list-style-type":t.listStyleType.getOr("")}})})),t.close()}})},si=function(e,t){return function(){var n=nn(e);return n&&n.nodeName===t}},ci=function(e){e.addCommand("mceListProps",(function(){ai(e)}))},li=function(e){e.on("BeforeExecCommand",(function(t){var n=t.command.toLowerCase();"indent"===n?rr(e):"outdent"===n&&ir(e)})),e.addCommand("InsertUnorderedList",(function(t,n){Dr(e,"UL",n)})),e.addCommand("InsertOrderedList",(function(t,n){Dr(e,"OL",n)})),e.addCommand("InsertDefinitionList",(function(t,n){Dr(e,"DL",n)})),e.addCommand("RemoveList",(function(){or(e)})),ci(e),e.addCommand("mceListUpdate",(function(t,n){o(n)&&Qr(e,n)})),e.addQueryStateHandler("InsertUnorderedList",si(e,"UL")),e.addQueryStateHandler("InsertOrderedList",si(e,"OL")),e.addQueryStateHandler("InsertDefinitionList",si(e,"DL"))},ui=function(e){e.on("keydown",(function(t){t.keyCode!==Xe.TAB||Xe.metaKeyPressed(t)||e.undoManager.transact((function(){(t.shiftKey?ir(e):rr(e))&&t.preventDefault()}))}))},di=function(e){qt(e)&&ui(e),Yr(e)},fi=function(e){var t=function(t){return function(){return e.execCommand(t)}};e.hasPlugin("advlist")||(e.ui.registry.addToggleButton("numlist",{icon:"ordered-list",active:!1,tooltip:"Numbered list",onAction:t("InsertOrderedList"),onSetup:function(t){return fr(e,"OL",t.setActive)}}),e.ui.registry.addToggleButton("bullist",{icon:"unordered-list",active:!1,tooltip:"Bullet list",onAction:t("InsertUnorderedList"),onSetup:function(t){return fr(e,"UL",t.setActive)}}))},pi=function(e){var t={text:"List properties...",icon:"ordered-list",onAction:function(){return e.execCommand("mceListProps")},onSetup:function(t){return fr(e,"OL",(function(e){return t.setDisabled(!e)}))}};e.ui.registry.addMenuItem("listprops",t),e.ui.registry.addContextMenu("lists",{update:function(t){var n=nn(e,t);return Dt(n)?["listprops"]:[]}})};function hi(){e.add("lists",(function(e){return!1===e.hasPlugin("rtc",!0)?(di(e),li(e)):ci(e),fi(e),pi(e),Xr(e)}))}hi()})()},"241c":function(e,t,n){"use strict";var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),i=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t)&&(e=n("b50d")),e}var c={adapter:s(),transformRequest:[function(e,t){return i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(o)})),e.exports=c}).call(this,n("4362"))},2532:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("5a34"),a=n("1d80"),s=n("577e"),c=n("ab13"),l=i("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~l(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},"25a1":function(e,t,n){"use strict";var r=n("ebb5"),i=n("d58f").right,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("reduceRight",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},"25f0":function(e,t,n){"use strict";var r=n("5e77").PROPER,i=n("cb2d"),o=n("825a"),a=n("577e"),s=n("d039"),c=n("90d8"),l="toString",u=RegExp.prototype,d=u[l],f=s((function(){return"/a/b"!==d.call({source:"a",flags:"b"})})),p=r&&d.name!==l;(f||p)&&i(u,l,(function(){var e=o(this),t=a(e.source),n=a(c(e));return"/"+t+"/"+n}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),i=n("edd0"),o=n("b622"),a=n("83ab"),s=o("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},"26dd":function(e,t,n){"use strict";var r=n("6f4f"),i=n("10db"),o=n("92f0"),a={};n("051b")(a,n("cc15")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},2714:function(e,t,n){(function(t){var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&c&&"function"===typeof c.get?c.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype,f=d?WeakMap.prototype.has:null,p="function"===typeof WeakSet&&WeakSet.prototype,h=p?WeakSet.prototype.has:null,m="function"===typeof WeakRef&&WeakRef.prototype,g=m?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,b=Object.prototype.toString,_=Function.prototype.toString,y=String.prototype.match,w=String.prototype.slice,x=String.prototype.replace,k=String.prototype.toUpperCase,C=String.prototype.toLowerCase,A=RegExp.prototype.test,S=Array.prototype.concat,E=Array.prototype.join,T=Array.prototype.slice,O=Math.floor,R="function"===typeof BigInt?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,L="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"===typeof Symbol&&"object"===typeof Symbol.iterator,F="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||"symbol")?Symbol.toStringTag:null,N=Object.prototype.propertyIsEnumerable,B=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function I(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||A.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-O(-e):O(e);if(r!==e){var i=String(r),o=w.call(t,i.length+1);return x.call(i,n,"$&_")+"."+x.call(x.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return x.call(t,n,"$&_")}var P=n(1),$=P.custom,j=X($)?$:null;function z(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function q(e){return x.call(String(e),/"/g,"&quot;")}function H(e){return"[object Array]"===ee(e)&&(!F||!("object"===typeof e&&F in e))}function U(e){return"[object Date]"===ee(e)&&(!F||!("object"===typeof e&&F in e))}function W(e){return"[object RegExp]"===ee(e)&&(!F||!("object"===typeof e&&F in e))}function V(e){return"[object Error]"===ee(e)&&(!F||!("object"===typeof e&&F in e))}function G(e){return"[object String]"===ee(e)&&(!F||!("object"===typeof e&&F in e))}function K(e){return"[object Number]"===ee(e)&&(!F||!("object"===typeof e&&F in e))}function Y(e){return"[object Boolean]"===ee(e)&&(!F||!("object"===typeof e&&F in e))}function X(e){if(M)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!L)return!1;try{return L.call(e),!0}catch(t){}return!1}function Q(e){if(!e||"object"!==typeof e||!R)return!1;try{return R.call(e),!0}catch(t){}return!1}e.exports=function e(n,r,i,s){var c=r||{};if(Z(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Z(c,"maxStringLength")&&("number"===typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var d=!Z(c,"customInspect")||c.customInspect;if("boolean"!==typeof d&&"symbol"!==d)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Z(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Z(c,"numericSeparator")&&"boolean"!==typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=c.numericSeparator;if("undefined"===typeof n)return"undefined";if(null===n)return"null";if("boolean"===typeof n)return n?"true":"false";if("string"===typeof n)return le(n,c);if("number"===typeof n){if(0===n)return 1/0/n>0?"0":"-0";var p=String(n);return f?I(n,p):p}if("bigint"===typeof n){var h=String(n)+"n";return f?I(n,h):h}var m="undefined"===typeof c.depth?5:c.depth;if("undefined"===typeof i&&(i=0),i>=m&&m>0&&"object"===typeof n)return H(n)?"[Array]":"[Object]";var g=me(c,i);if("undefined"===typeof s)s=[];else if(ne(s,n)>=0)return"[Circular]";function b(t,n,r){if(n&&(s=T.call(s),s.push(n)),r){var o={depth:c.depth};return Z(c,"quoteStyle")&&(o.quoteStyle=c.quoteStyle),e(t,o,i+1,s)}return e(t,c,i+1,s)}if("function"===typeof n&&!W(n)){var _=te(n),y=ve(n,b);return"[Function"+(_?": "+_:" (anonymous)")+"]"+(y.length>0?" { "+E.call(y,", ")+" }":"")}if(X(n)){var k=M?x.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):L.call(n);return"object"!==typeof n||M?k:de(k)}if(ce(n)){for(var A="<"+C.call(String(n.nodeName)),O=n.attributes||[],D=0;D<O.length;D++)A+=" "+O[D].name+"="+z(q(O[D].value),"double",c);return A+=">",n.childNodes&&n.childNodes.length&&(A+="..."),A+="</"+C.call(String(n.nodeName))+">",A}if(H(n)){if(0===n.length)return"[]";var $=ve(n,b);return g&&!he($)?"["+ge($,g)+"]":"[ "+E.call($,", ")+" ]"}if(V(n)){var J=ve(n,b);return"cause"in Error.prototype||!("cause"in n)||N.call(n,"cause")?0===J.length?"["+String(n)+"]":"{ ["+String(n)+"] "+E.call(J,", ")+" }":"{ ["+String(n)+"] "+E.call(S.call("[cause]: "+b(n.cause),J),", ")+" }"}if("object"===typeof n&&d){if(j&&"function"===typeof n[j]&&P)return P(n,{depth:m-i});if("symbol"!==d&&"function"===typeof n.inspect)return n.inspect()}if(re(n)){var ue=[];return a&&a.call(n,(function(e,t){ue.push(b(t,n,!0)+" => "+b(e,n))})),pe("Map",o.call(n),ue,g)}if(ae(n)){var be=[];return u&&u.call(n,(function(e){be.push(b(e,n))})),pe("Set",l.call(n),be,g)}if(ie(n))return fe("WeakMap");if(se(n))return fe("WeakSet");if(oe(n))return fe("WeakRef");if(K(n))return de(b(Number(n)));if(Q(n))return de(b(R.call(n)));if(Y(n))return de(v.call(n));if(G(n))return de(b(String(n)));if("undefined"!==typeof window&&n===window)return"{ [object Window] }";if(n===t)return"{ [object globalThis] }";if(!U(n)&&!W(n)){var _e=ve(n,b),ye=B?B(n)===Object.prototype:n instanceof Object||n.constructor===Object,we=n instanceof Object?"":"null prototype",xe=!ye&&F&&Object(n)===n&&F in n?w.call(ee(n),8,-1):we?"Object":"",ke=ye||"function"!==typeof n.constructor?"":n.constructor.name?n.constructor.name+" ":"",Ce=ke+(xe||we?"["+E.call(S.call([],xe||[],we||[]),": ")+"] ":"");return 0===_e.length?Ce+"{}":g?Ce+"{"+ge(_e,g)+"}":Ce+"{ "+E.call(_e,", ")+" }"}return String(n)};var J=Object.prototype.hasOwnProperty||function(e){return e in this};function Z(e,t){return J.call(e,t)}function ee(e){return b.call(e)}function te(e){if(e.name)return e.name;var t=y.call(_.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ne(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function re(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{l.call(e)}catch(t){return!0}return e instanceof Map}catch(n){}return!1}function ie(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{h.call(e,h)}catch(t){return!0}return e instanceof WeakMap}catch(n){}return!1}function oe(e){if(!g||!e||"object"!==typeof e)return!1;try{return g.call(e),!0}catch(t){}return!1}function ae(e){if(!l||!e||"object"!==typeof e)return!1;try{l.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}function se(e){if(!h||!e||"object"!==typeof e)return!1;try{h.call(e,h);try{f.call(e,f)}catch(t){return!0}return e instanceof WeakSet}catch(n){}return!1}function ce(e){return!(!e||"object"!==typeof e)&&("undefined"!==typeof HTMLElement&&e instanceof HTMLElement||"string"===typeof e.nodeName&&"function"===typeof e.getAttribute)}function le(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return le(w.call(e,0,t.maxStringLength),t)+r}var i=x.call(x.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ue);return z(i,"single",t)}function ue(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+k.call(t.toString(16))}function de(e){return"Object("+e+")"}function fe(e){return e+" { ? }"}function pe(e,t,n,r){var i=r?ge(n,r):E.call(n,", ");return e+" ("+t+") {"+i+"}"}function he(e){for(var t=0;t<e.length;t++)if(ne(e[t],"\n")>=0)return!1;return!0}function me(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=E.call(Array(e.indent+1)," ")}return{base:n,prev:E.call(Array(t+1),n)}}function ge(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+E.call(e,","+n)+"\n"+t.prev}function ve(e,t){var n=H(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=Z(e,i)?t(e[i],e):""}var o,a="function"===typeof D?D(e):[];if(M){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var c in e)Z(e,c)&&(n&&String(Number(c))===c&&c<e.length||M&&o["$"+c]instanceof Symbol||(A.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"===typeof D)for(var l=0;l<a.length;l++)N.call(e,a[l])&&r.push("["+t(a[l])+"]: "+t(e[a[l]],e));return r}}).call(this,n("c8ba"))},"271a":function(e,t,n){"use strict";var r=n("cb2d"),i=n("e330"),o=n("577e"),a=n("d6d6"),s=URLSearchParams,c=s.prototype,l=i(c.getAll),u=i(c.has),d=new s("a=1");!d.has("a",2)&&d.has("a",void 0)||r(c,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return u(this,e);var r=l(this,e);a(t,1);var i=o(n),s=0;while(s<r.length)if(r[s++]===i)return!0;return!1}),{enumerable:!0,unsafe:!0})},2834:function(e,t,n){"use strict";var r=n("ebb5"),i=n("e330"),o=n("59ed"),a=n("dfb9"),s=r.aTypedArray,c=r.getTypedArrayConstructor,l=r.exportTypedArrayMethod,u=i(r.TypedArrayPrototype.sort);l("toSorted",(function(e){void 0!==e&&o(e);var t=s(this),n=a(c(t),t);return u(n,e)}))},2877:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}n.d(t,"a",(function(){return r}))},2909:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("6b75");function i(e){if(Array.isArray(e))return Object(r["a"])(e)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630");function o(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var a=n("06c5");n("d9e2");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e){return i(e)||o(e)||Object(a["a"])(e)||s()}},2954:function(e,t,n){"use strict";var r=n("ebb5"),i=n("b6b7"),o=n("d039"),a=n("f36a"),s=r.aTypedArray,c=r.exportTypedArrayMethod,l=o((function(){new Int8Array(1).slice()}));c("slice",(function(e,t){var n=a(s(this),e,t),r=i(this),o=0,c=n.length,l=new r(c);while(c>o)l[o]=n[o++];return l}),l)},"29c7":function(e,t,n){var r=n("c56e");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"2a62":function(e,t,n){"use strict";var r=n("c65b"),i=n("825a"),o=n("dc4a");e.exports=function(e,t,n){var a,s;i(e);try{if(a=o(e,"return"),!a){if("throw"===t)throw n;return n}a=r(a,e)}catch(c){s=!0,a=c}if("throw"===t)throw n;if(s)throw a;return i(a),n}},"2aa9":function(e,t,n){"use strict";var r=n("00ce"),i=r("%Object.getOwnPropertyDescriptor%",!0);if(i)try{i([],"length")}catch(o){i=null}e.exports=i},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){
/*!
* Vue.js v2.6.10
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
var n=Object.freeze({});function r(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function o(e){return!0===e}function a(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function c(e){return null!==e&&"object"===typeof e}var l=Object.prototype.toString;function u(e){return"[object Object]"===l.call(e)}function d(e){return"[object RegExp]"===l.call(e)}function f(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function h(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}g("slot,component",!0);var v=g("key,ref,slot,slot-scope,is");function b(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function y(e,t){return _.call(e,t)}function w(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var x=/-(\w)/g,k=w((function(e){return e.replace(x,(function(e,t){return t?t.toUpperCase():""}))})),C=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),A=/\B([A-Z])/g,S=w((function(e){return e.replace(A,"-$1").toLowerCase()}));function E(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function T(e,t){return e.bind(t)}var O=Function.prototype.bind?T:E;function R(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function D(e,t){for(var n in t)e[n]=t[n];return e}function L(e){for(var t={},n=0;n<e.length;n++)e[n]&&D(t,e[n]);return t}function M(e,t,n){}var F=function(e,t,n){return!1},N=function(e){return e};function B(e,t){if(e===t)return!0;var n=c(e),r=c(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return B(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return B(e[n],t[n])}))}catch(l){return!1}}function I(e,t){for(var n=0;n<e.length;n++)if(B(e[n],t))return n;return-1}function P(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var $="data-server-rendered",j=["component","directive","filter"],z=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],q={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:F,isReservedAttr:F,isUnknownElement:F,getTagNamespace:M,parsePlatformTagName:N,mustUseProp:F,async:!0,_lifecycleHooks:z},H=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function U(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function W(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var V=new RegExp("[^"+H.source+".$_\\d]");function G(e){if(!V.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var K,Y="__proto__"in{},X="undefined"!==typeof window,Q="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=Q&&WXEnvironment.platform.toLowerCase(),Z=X&&window.navigator.userAgent.toLowerCase(),ee=Z&&/msie|trident/.test(Z),te=Z&&Z.indexOf("msie 9.0")>0,ne=Z&&Z.indexOf("edge/")>0,re=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===J),ie=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),oe={}.watch,ae=!1;if(X)try{var se={};Object.defineProperty(se,"passive",{get:function(){ae=!0}}),window.addEventListener("test-passive",null,se)}catch(ka){}var ce=function(){return void 0===K&&(K=!X&&!Q&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),K},le=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ue(e){return"function"===typeof e&&/native code/.test(e.toString())}var de,fe="undefined"!==typeof Symbol&&ue(Symbol)&&"undefined"!==typeof Reflect&&ue(Reflect.ownKeys);de="undefined"!==typeof Set&&ue(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var pe=M,he=0,me=function(){this.id=he++,this.subs=[]};me.prototype.addSub=function(e){this.subs.push(e)},me.prototype.removeSub=function(e){b(this.subs,e)},me.prototype.depend=function(){me.target&&me.target.addDep(this)},me.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},me.target=null;var ge=[];function ve(e){ge.push(e),me.target=e}function be(){ge.pop(),me.target=ge[ge.length-1]}var _e=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ye={child:{configurable:!0}};ye.child.get=function(){return this.componentInstance},Object.defineProperties(_e.prototype,ye);var we=function(e){void 0===e&&(e="");var t=new _e;return t.text=e,t.isComment=!0,t};function xe(e){return new _e(void 0,void 0,void 0,String(e))}function ke(e){var t=new _e(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Ce=Array.prototype,Ae=Object.create(Ce),Se=["push","pop","shift","unshift","splice","sort","reverse"];Se.forEach((function(e){var t=Ce[e];W(Ae,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var Ee=Object.getOwnPropertyNames(Ae),Te=!0;function Oe(e){Te=e}var Re=function(e){this.value=e,this.dep=new me,this.vmCount=0,W(e,"__ob__",this),Array.isArray(e)?(Y?De(e,Ae):Le(e,Ae,Ee),this.observeArray(e)):this.walk(e)};function De(e,t){e.__proto__=t}function Le(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];W(e,o,t[o])}}function Me(e,t){var n;if(c(e)&&!(e instanceof _e))return y(e,"__ob__")&&e.__ob__ instanceof Re?n=e.__ob__:Te&&!ce()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Re(e)),t&&n&&n.vmCount++,n}function Fe(e,t,n,r,i){var o=new me,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=e[t]);var l=!i&&Me(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return me.target&&(o.depend(),l&&(l.dep.depend(),Array.isArray(t)&&Ie(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!==t&&r!==r||s&&!c||(c?c.call(e,t):n=t,l=!i&&Me(t),o.notify())}})}}function Ne(e,t,n){if(Array.isArray(e)&&f(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Fe(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Be(e,t){if(Array.isArray(e)&&f(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||y(e,t)&&(delete e[t],n&&n.dep.notify())}}function Ie(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Ie(t)}Re.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Fe(e,t[n])},Re.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Me(e[t])};var Pe=q.optionMergeStrategies;function $e(e,t){if(!t)return e;for(var n,r,i,o=fe?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=e[n],i=t[n],y(e,n)?r!==i&&u(r)&&u(i)&&$e(r,i):Ne(e,n,i));return e}function je(e,t,n){return n?function(){var r="function"===typeof t?t.call(n,n):t,i="function"===typeof e?e.call(n,n):e;return r?$e(r,i):i}:t?e?function(){return $e("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function ze(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?qe(n):n}function qe(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function He(e,t,n,r){var i=Object.create(e||null);return t?D(i,t):i}Pe.data=function(e,t,n){return n?je(e,t,n):t&&"function"!==typeof t?e:je(e,t)},z.forEach((function(e){Pe[e]=ze})),j.forEach((function(e){Pe[e+"s"]=He})),Pe.watch=function(e,t,n,r){if(e===oe&&(e=void 0),t===oe&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in D(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Pe.props=Pe.methods=Pe.inject=Pe.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return D(i,e),t&&D(i,t),i},Pe.provide=je;var Ue=function(e,t){return void 0===t?e:t};function We(e,t){var n=e.props;if(n){var r,i,o,a={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=k(i),a[o]={type:null})}else if(u(n))for(var s in n)i=n[s],o=k(s),a[o]=u(i)?i:{type:i};else 0;e.props=a}}function Ve(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var o in n){var a=n[o];r[o]=u(a)?D({from:o},a):{from:a}}else 0}}function Ge(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"===typeof r&&(t[n]={bind:r,update:r})}}function Ke(e,t,n){if("function"===typeof t&&(t=t.options),We(t,n),Ve(t,n),Ge(t),!t._base&&(t.extends&&(e=Ke(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Ke(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)y(e,o)||s(o);function s(r){var i=Pe[r]||Ue;a[r]=i(e[r],t[r],n,r)}return a}function Ye(e,t,n,r){if("string"===typeof n){var i=e[t];if(y(i,n))return i[n];var o=k(n);if(y(i,o))return i[o];var a=C(o);if(y(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function Xe(e,t,n,r){var i=t[e],o=!y(n,e),a=n[e],s=et(Boolean,i.type);if(s>-1)if(o&&!y(i,"default"))a=!1;else if(""===a||a===S(e)){var c=et(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=Qe(r,i,e);var l=Te;Oe(!0),Me(a),Oe(l)}return a}function Qe(e,t,n){if(y(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof r&&"Function"!==Je(t.type)?r.call(e):r}}function Je(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Ze(e,t){return Je(e)===Je(t)}function et(e,t){if(!Array.isArray(t))return Ze(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Ze(t[n],e))return n;return-1}function tt(e,t,n){ve();try{if(t){var r=t;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,e,t,n);if(a)return}catch(ka){rt(ka,r,"errorCaptured hook")}}}rt(e,t,n)}finally{be()}}function nt(e,t,n,r,i){var o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&p(o)&&!o._handled&&(o.catch((function(e){return tt(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(ka){tt(ka,r,i)}return o}function rt(e,t,n){if(q.errorHandler)try{return q.errorHandler.call(null,e,t,n)}catch(ka){ka!==e&&it(ka,null,"config.errorHandler")}it(e,t,n)}function it(e,t,n){if(!X&&!Q||"undefined"===typeof console)throw e}var ot,at=!1,st=[],ct=!1;function lt(){ct=!1;var e=st.slice(0);st.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&ue(Promise)){var ut=Promise.resolve();ot=function(){ut.then(lt),re&&setTimeout(M)},at=!0}else if(ee||"undefined"===typeof MutationObserver||!ue(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ot="undefined"!==typeof setImmediate&&ue(setImmediate)?function(){setImmediate(lt)}:function(){setTimeout(lt,0)};else{var dt=1,ft=new MutationObserver(lt),pt=document.createTextNode(String(dt));ft.observe(pt,{characterData:!0}),ot=function(){dt=(dt+1)%2,pt.data=String(dt)},at=!0}function ht(e,t){var n;if(st.push((function(){if(e)try{e.call(t)}catch(ka){tt(ka,t,"nextTick")}else n&&n(t)})),ct||(ct=!0,ot()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var mt=new de;function gt(e){vt(e,mt),mt.clear()}function vt(e,t){var n,r,i=Array.isArray(e);if(!(!i&&!c(e)||Object.isFrozen(e)||e instanceof _e)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i){n=e.length;while(n--)vt(e[n],t)}else{r=Object.keys(e),n=r.length;while(n--)vt(e[r[n]],t)}}}var bt=w((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function _t(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return nt(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)nt(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function yt(e,t,n,i,a,s){var c,l,u,d;for(c in e)l=e[c],u=t[c],d=bt(c),r(l)||(r(u)?(r(l.fns)&&(l=e[c]=_t(l,s)),o(d.once)&&(l=e[c]=a(d.name,l,d.capture)),n(d.name,l,d.capture,d.passive,d.params)):l!==u&&(u.fns=l,e[c]=u));for(c in t)r(e[c])&&(d=bt(c),i(d.name,t[c],d.capture))}function wt(e,t,n){var a;e instanceof _e&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function c(){n.apply(this,arguments),b(a.fns,c)}r(s)?a=_t([c]):i(s.fns)&&o(s.merged)?(a=s,a.fns.push(c)):a=_t([s,c]),a.merged=!0,e[t]=a}function xt(e,t,n){var o=t.options.props;if(!r(o)){var a={},s=e.attrs,c=e.props;if(i(s)||i(c))for(var l in o){var u=S(l);kt(a,c,l,u,!0)||kt(a,s,l,u,!1)}return a}}function kt(e,t,n,r,o){if(i(t)){if(y(t,n))return e[n]=t[n],o||delete t[n],!0;if(y(t,r))return e[n]=t[r],o||delete t[r],!0}return!1}function Ct(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function At(e){return s(e)?[xe(e)]:Array.isArray(e)?Et(e):void 0}function St(e){return i(e)&&i(e.text)&&a(e.isComment)}function Et(e,t){var n,a,c,l,u=[];for(n=0;n<e.length;n++)a=e[n],r(a)||"boolean"===typeof a||(c=u.length-1,l=u[c],Array.isArray(a)?a.length>0&&(a=Et(a,(t||"")+"_"+n),St(a[0])&&St(l)&&(u[c]=xe(l.text+a[0].text),a.shift()),u.push.apply(u,a)):s(a)?St(l)?u[c]=xe(l.text+a):""!==a&&u.push(xe(a)):St(a)&&St(l)?u[c]=xe(l.text+a.text):(o(e._isVList)&&i(a.tag)&&r(a.key)&&i(t)&&(a.key="__vlist"+t+"_"+n+"__"),u.push(a)));return u}function Tt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Ot(e){var t=Rt(e.$options.inject,e);t&&(Oe(!1),Object.keys(t).forEach((function(n){Fe(e,n,t[n])})),Oe(!0))}function Rt(e,t){if(e){for(var n=Object.create(null),r=fe?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=e[o].from,s=t;while(s){if(s._provided&&y(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[o]){var c=e[o].default;n[o]="function"===typeof c?c.call(t):c}else 0}}return n}}function Dt(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var l in n)n[l].every(Lt)&&delete n[l];return n}function Lt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Mt(e,t,r){var i,o=Object.keys(t).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=Ft(t,c,e[c]))}else i={};for(var l in t)l in i||(i[l]=Nt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=i),W(i,"$stable",a),W(i,"$key",s),W(i,"$hasNormal",o),i}function Ft(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:At(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function Nt(e,t){return function(){return e[t]}}function Bt(e,t){var n,r,o,a,s;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,o=e.length;r<o;r++)n[r]=t(e[r],r);else if("number"===typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(c(e))if(fe&&e[Symbol.iterator]){n=[];var l=e[Symbol.iterator](),u=l.next();while(!u.done)n.push(t(u.value,n.length)),u=l.next()}else for(a=Object.keys(e),n=new Array(a.length),r=0,o=a.length;r<o;r++)s=a[r],n[r]=t(e[s],s,r);return i(n)||(n=[]),n._isVList=!0,n}function It(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=D(D({},r),n)),i=o(n)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function Pt(e){return Ye(this.$options,"filters",e,!0)||N}function $t(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function jt(e,t,n,r,i){var o=q.keyCodes[t]||n;return i&&r&&!q.keyCodes[t]?$t(i,r):o?$t(o,e):r?S(r)!==t:void 0}function zt(e,t,n,r,i){if(n)if(c(n)){var o;Array.isArray(n)&&(n=L(n));var a=function(a){if("class"===a||"style"===a||v(a))o=e;else{var s=e.attrs&&e.attrs.type;o=r||q.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=k(a),l=S(a);if(!(c in o)&&!(l in o)&&(o[a]=n[a],i)){var u=e.on||(e.on={});u["update:"+a]=function(e){n[a]=e}}};for(var s in n)a(s)}else;return e}function qt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),Ut(r,"__static__"+e,!1)),r}function Ht(e,t,n){return Ut(e,"__once__"+t+(n?"_"+n:""),!0),e}function Ut(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&Wt(e[r],t+"_"+r,n);else Wt(e,t,n)}function Wt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Vt(e,t){if(t)if(u(t)){var n=e.on=e.on?D({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function Gt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?Gt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Kt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"===typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Yt(e,t){return"string"===typeof e?t+e:e}function Xt(e){e._o=Ht,e._n=m,e._s=h,e._l=Bt,e._t=It,e._q=B,e._i=I,e._m=qt,e._f=Pt,e._k=jt,e._b=zt,e._v=xe,e._e=we,e._u=Gt,e._g=Vt,e._d=Kt,e._p=Yt}function Qt(e,t,r,i,a){var s,c=this,l=a.options;y(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var u=o(l._compiled),d=!u;this.data=e,this.props=t,this.children=r,this.parent=i,this.listeners=e.on||n,this.injections=Rt(l.inject,i),this.slots=function(){return c.$slots||Mt(e.scopedSlots,c.$slots=Dt(r,i)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Mt(e.scopedSlots,this.slots())}}),u&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=Mt(e.scopedSlots,this.$slots)),l._scopeId?this._c=function(e,t,n,r){var o=dn(s,e,t,n,r,d);return o&&!Array.isArray(o)&&(o.fnScopeId=l._scopeId,o.fnContext=i),o}:this._c=function(e,t,n,r){return dn(s,e,t,n,r,d)}}function Jt(e,t,r,o,a){var s=e.options,c={},l=s.props;if(i(l))for(var u in l)c[u]=Xe(u,l,t||n);else i(r.attrs)&&en(c,r.attrs),i(r.props)&&en(c,r.props);var d=new Qt(r,c,a,o,e),f=s.render.call(null,d._c,d);if(f instanceof _e)return Zt(f,r,d.parent,s,d);if(Array.isArray(f)){for(var p=At(f)||[],h=new Array(p.length),m=0;m<p.length;m++)h[m]=Zt(p[m],r,d.parent,s,d);return h}}function Zt(e,t,n,r,i){var o=ke(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function en(e,t){for(var n in t)e[k(n)]=t[n]}Xt(Qt.prototype);var tn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;tn.prepatch(n,n)}else{var r=e.componentInstance=on(e,Rn);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;Nn(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,$n(n,"mounted")),e.data.keepAlive&&(t._isMounted?Jn(n):In(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Pn(t,!0):t.$destroy())}},nn=Object.keys(tn);function rn(e,t,n,a,s){if(!r(e)){var l=n.$options._base;if(c(e)&&(e=l.extend(e)),"function"===typeof e){var u;if(r(e.cid)&&(u=e,e=wn(u,l),void 0===e))return yn(u,t,n,a,s);t=t||{},wr(e),i(t.model)&&cn(e.options,t);var d=xt(t,e,s);if(o(e.options.functional))return Jt(e,d,t,n,a);var f=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var p=t.slot;t={},p&&(t.slot=p)}an(t);var h=e.options.name||s,m=new _e("vue-component-"+e.cid+(h?"-"+h:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:d,listeners:f,tag:s,children:a},u);return m}}}function on(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function an(e){for(var t=e.hook||(e.hook={}),n=0;n<nn.length;n++){var r=nn[n],i=t[r],o=tn[r];i===o||i&&i._merged||(t[r]=i?sn(o,i):o)}}function sn(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function cn(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),a=o[r],s=t.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}var ln=1,un=2;function dn(e,t,n,r,i,a){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o(a)&&(i=un),fn(e,t,n,r,i)}function fn(e,t,n,r,o){if(i(n)&&i(n.__ob__))return we();if(i(n)&&i(n.is)&&(t=n.is),!t)return we();var a,s,c;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===un?r=At(r):o===ln&&(r=Ct(r)),"string"===typeof t)?(s=e.$vnode&&e.$vnode.ns||q.getTagNamespace(t),a=q.isReservedTag(t)?new _e(q.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!i(c=Ye(e.$options,"components",t))?new _e(t,n,r,void 0,void 0,e):rn(c,n,e,r,t)):a=rn(t,n,e,r);return Array.isArray(a)?a:i(a)?(i(s)&&pn(a,s),i(n)&&hn(n),a):we()}function pn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),i(e.children))for(var a=0,s=e.children.length;a<s;a++){var c=e.children[a];i(c.tag)&&(r(c.ns)||o(n)&&"svg"!==c.tag)&&pn(c,t,n)}}function hn(e){c(e.style)&&gt(e.style),c(e.class)&&gt(e.class)}function mn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,i=r&&r.context;e.$slots=Dt(t._renderChildren,i),e.$scopedSlots=n,e._c=function(t,n,r,i){return dn(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return dn(e,t,n,r,i,!0)};var o=r&&r.data;Fe(e,"$attrs",o&&o.attrs||n,null,!0),Fe(e,"$listeners",t._parentListeners||n,null,!0)}var gn,vn=null;function bn(e){Xt(e.prototype),e.prototype.$nextTick=function(e){return ht(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=Mt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{vn=t,e=r.call(t._renderProxy,t.$createElement)}catch(ka){tt(ka,t,"render"),e=t._vnode}finally{vn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof _e||(e=we()),e.parent=i,e}}function _n(e,t){return(e.__esModule||fe&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function yn(e,t,n,r,i){var o=we();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function wn(e,t){if(o(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;var n=vn;if(n&&i(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),o(e.loading)&&i(e.loadingComp))return e.loadingComp;if(n&&!i(e.owners)){var a=e.owners=[n],s=!0,l=null,u=null;n.$on("hook:destroyed",(function(){return b(a,n)}));var d=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==l&&(clearTimeout(l),l=null),null!==u&&(clearTimeout(u),u=null))},f=P((function(n){e.resolved=_n(n,t),s?a.length=0:d(!0)})),h=P((function(t){i(e.errorComp)&&(e.error=!0,d(!0))})),m=e(f,h);return c(m)&&(p(m)?r(e.resolved)&&m.then(f,h):p(m.component)&&(m.component.then(f,h),i(m.error)&&(e.errorComp=_n(m.error,t)),i(m.loading)&&(e.loadingComp=_n(m.loading,t),0===m.delay?e.loading=!0:l=setTimeout((function(){l=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,d(!1))}),m.delay||200)),i(m.timeout)&&(u=setTimeout((function(){u=null,r(e.resolved)&&h(null)}),m.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}function xn(e){return e.isComment&&e.asyncFactory}function kn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(i(n)&&(i(n.componentOptions)||xn(n)))return n}}function Cn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Tn(e,t)}function An(e,t){gn.$on(e,t)}function Sn(e,t){gn.$off(e,t)}function En(e,t){var n=gn;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function Tn(e,t,n){gn=e,yt(t,n||{},An,Sn,En,e),gn=void 0}function On(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;var s=a.length;while(s--)if(o=a[s],o===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?R(n):n;for(var r=R(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;o<a;o++)nt(n[o],t,r,t,i)}return t}}var Rn=null;function Dn(e){var t=Rn;return Rn=e,function(){Rn=t}}function Ln(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Mn(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=Dn(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){$n(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||b(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),$n(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function Fn(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=we),$n(e,"beforeMount"),r=function(){e._update(e._render(),n)},new nr(e,r,M,{before:function(){e._isMounted&&!e._isDestroyed&&$n(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,$n(e,"mounted")),e}function Nn(e,t,r,i,o){var a=i.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),l=!!(o||e.$options._renderChildren||c);if(e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o,e.$attrs=i.data.attrs||n,e.$listeners=r||n,t&&e.$options.props){Oe(!1);for(var u=e._props,d=e.$options._propKeys||[],f=0;f<d.length;f++){var p=d[f],h=e.$options.props;u[p]=Xe(p,h,t,e)}Oe(!0),e.$options.propsData=t}r=r||n;var m=e.$options._parentListeners;e.$options._parentListeners=r,Tn(e,r,m),l&&(e.$slots=Dt(o,i.context),e.$forceUpdate())}function Bn(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function In(e,t){if(t){if(e._directInactive=!1,Bn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)In(e.$children[n]);$n(e,"activated")}}function Pn(e,t){if((!t||(e._directInactive=!0,!Bn(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Pn(e.$children[n]);$n(e,"deactivated")}}function $n(e,t){ve();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)nt(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),be()}var jn=[],zn=[],qn={},Hn=!1,Un=!1,Wn=0;function Vn(){Wn=jn.length=zn.length=0,qn={},Hn=Un=!1}var Gn=0,Kn=Date.now;if(X&&!ee){var Yn=window.performance;Yn&&"function"===typeof Yn.now&&Kn()>document.createEvent("Event").timeStamp&&(Kn=function(){return Yn.now()})}function Xn(){var e,t;for(Gn=Kn(),Un=!0,jn.sort((function(e,t){return e.id-t.id})),Wn=0;Wn<jn.length;Wn++)e=jn[Wn],e.before&&e.before(),t=e.id,qn[t]=null,e.run();var n=zn.slice(),r=jn.slice();Vn(),Zn(n),Qn(r),le&&q.devtools&&le.emit("flush")}function Qn(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&$n(r,"updated")}}function Jn(e){e._inactive=!1,zn.push(e)}function Zn(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,In(e[t],!0)}function er(e){var t=e.id;if(null==qn[t]){if(qn[t]=!0,Un){var n=jn.length-1;while(n>Wn&&jn[n].id>e.id)n--;jn.splice(n+1,0,e)}else jn.push(e);Hn||(Hn=!0,ht(Xn))}}var tr=0,nr=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++tr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new de,this.newDepIds=new de,this.expression="","function"===typeof t?this.getter=t:(this.getter=G(t),this.getter||(this.getter=M)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var e;ve(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(ka){if(!this.user)throw ka;tt(ka,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&gt(e),be(),this.cleanupDeps()}return e},nr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},nr.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():er(this)},nr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(ka){tt(ka,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:M,set:M};function ir(e,t,n){rr.get=function(){return this[t][n]},rr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,rr)}function or(e){e._watchers=[];var t=e.$options;t.props&&ar(e,t.props),t.methods&&hr(e,t.methods),t.data?sr(e):Me(e._data={},!0),t.computed&&ur(e,t.computed),t.watch&&t.watch!==oe&&mr(e,t.watch)}function ar(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||Oe(!1);var a=function(o){i.push(o);var a=Xe(o,t,n,e);Fe(r,o,a),o in e||ir(e,"_props",o)};for(var s in t)a(s);Oe(!0)}function sr(e){var t=e.$options.data;t=e._data="function"===typeof t?cr(t,e):t||{},u(t)||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);while(i--){var o=n[i];0,r&&y(r,o)||U(o)||ir(e,"_data",o)}Me(t,!0)}function cr(e,t){ve();try{return e.call(t,t)}catch(ka){return tt(ka,t,"data()"),{}}finally{be()}}var lr={lazy:!0};function ur(e,t){var n=e._computedWatchers=Object.create(null),r=ce();for(var i in t){var o=t[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new nr(e,a||M,M,lr)),i in e||dr(e,i,o)}}function dr(e,t,n){var r=!ce();"function"===typeof n?(rr.get=r?fr(t):pr(n),rr.set=M):(rr.get=n.get?r&&!1!==n.cache?fr(t):pr(n.get):M,rr.set=n.set||M),Object.defineProperty(e,t,rr)}function fr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),me.target&&t.depend(),t.value}}function pr(e){return function(){return e.call(this,this)}}function hr(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?M:O(t[n],e)}function mr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)gr(e,n,r[i]);else gr(e,n,r)}}function gr(e,t,n,r){return u(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function vr(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ne,e.prototype.$delete=Be,e.prototype.$watch=function(e,t,n){var r=this;if(u(t))return gr(r,e,t,n);n=n||{},n.user=!0;var i=new nr(r,e,t,n);if(n.immediate)try{t.call(r,i.value)}catch(o){tt(o,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}var br=0;function _r(e){e.prototype._init=function(e){var t=this;t._uid=br++,t._isVue=!0,e&&e._isComponent?yr(t,e):t.$options=Ke(wr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Ln(t),Cn(t),mn(t),$n(t,"beforeCreate"),Ot(t),or(t),Tt(t),$n(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function yr(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function wr(e){var t=e.options;if(e.super){var n=wr(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var i=xr(e);i&&D(e.extendOptions,i),t=e.options=Ke(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function xr(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function kr(e){this._init(e)}function Cr(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=R(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function Ar(e){e.mixin=function(e){return this.options=Ke(this.options,e),this}}function Sr(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Ke(n.options,e),a["super"]=n,a.options.props&&Er(a),a.options.computed&&Tr(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,j.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=D({},a.options),i[r]=a,a}}function Er(e){var t=e.options.props;for(var n in t)ir(e.prototype,"_props",n)}function Tr(e){var t=e.options.computed;for(var n in t)dr(e.prototype,n,t[n])}function Or(e){j.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function Rr(e){return e&&(e.Ctor.options.name||e.tag)}function Dr(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function Lr(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=Rr(a.componentOptions);s&&!t(s)&&Mr(n,o,r,i)}}}function Mr(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,b(n,t)}_r(kr),vr(kr),On(kr),Mn(kr),bn(kr);var Fr=[String,RegExp,Array],Nr={name:"keep-alive",abstract:!0,props:{include:Fr,exclude:Fr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Mr(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Lr(e,(function(e){return Dr(t,e)}))})),this.$watch("exclude",(function(t){Lr(e,(function(e){return!Dr(t,e)}))}))},render:function(){var e=this.$slots.default,t=kn(e),n=t&&t.componentOptions;if(n){var r=Rr(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Dr(o,r))||a&&r&&Dr(a,r))return t;var s=this,c=s.cache,l=s.keys,u=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;c[u]?(t.componentInstance=c[u].componentInstance,b(l,u),l.push(u)):(c[u]=t,l.push(u),this.max&&l.length>parseInt(this.max)&&Mr(c,l[0],l,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Br={KeepAlive:Nr};function Ir(e){var t={get:function(){return q}};Object.defineProperty(e,"config",t),e.util={warn:pe,extend:D,mergeOptions:Ke,defineReactive:Fe},e.set=Ne,e.delete=Be,e.nextTick=ht,e.observable=function(e){return Me(e),e},e.options=Object.create(null),j.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,D(e.options.components,Br),Cr(e),Ar(e),Sr(e),Or(e)}Ir(kr),Object.defineProperty(kr.prototype,"$isServer",{get:ce}),Object.defineProperty(kr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(kr,"FunctionalRenderContext",{value:Qt}),kr.version="2.6.10";var Pr=g("style,class"),$r=g("input,textarea,option,select,progress"),jr=function(e,t,n){return"value"===n&&$r(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},zr=g("contenteditable,draggable,spellcheck"),qr=g("events,caret,typing,plaintext-only"),Hr=function(e,t){return Kr(t)||"false"===t?"false":"contenteditable"===e&&qr(t)?t:"true"},Ur=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Wr="http://www.w3.org/1999/xlink",Vr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Gr=function(e){return Vr(e)?e.slice(6,e.length):""},Kr=function(e){return null==e||!1===e};function Yr(e){var t=e.data,n=e,r=e;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=Xr(r.data,t));while(i(n=n.parent))n&&n.data&&(t=Xr(t,n.data));return Qr(t.staticClass,t.class)}function Xr(e,t){return{staticClass:Jr(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Qr(e,t){return i(e)||i(t)?Jr(e,Zr(t)):""}function Jr(e,t){return e?t?e+" "+t:e:t||""}function Zr(e){return Array.isArray(e)?ei(e):c(e)?ti(e):"string"===typeof e?e:""}function ei(e){for(var t,n="",r=0,o=e.length;r<o;r++)i(t=Zr(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function ti(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var ni={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ri=g("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ii=g("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),oi=function(e){return ri(e)||ii(e)};function ai(e){return ii(e)?"svg":"math"===e?"math":void 0}var si=Object.create(null);function ci(e){if(!X)return!0;if(oi(e))return!1;if(e=e.toLowerCase(),null!=si[e])return si[e];var t=document.createElement(e);return e.indexOf("-")>-1?si[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:si[e]=/HTMLUnknownElement/.test(t.toString())}var li=g("text,number,password,search,email,tel,url");function ui(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function di(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function fi(e,t){return document.createElementNS(ni[e],t)}function pi(e){return document.createTextNode(e)}function hi(e){return document.createComment(e)}function mi(e,t,n){e.insertBefore(t,n)}function gi(e,t){e.removeChild(t)}function vi(e,t){e.appendChild(t)}function bi(e){return e.parentNode}function _i(e){return e.nextSibling}function yi(e){return e.tagName}function wi(e,t){e.textContent=t}function xi(e,t){e.setAttribute(t,"")}var ki=Object.freeze({createElement:di,createElementNS:fi,createTextNode:pi,createComment:hi,insertBefore:mi,removeChild:gi,appendChild:vi,parentNode:bi,nextSibling:_i,tagName:yi,setTextContent:wi,setStyleScope:xi}),Ci={create:function(e,t){Ai(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Ai(e,!0),Ai(t))},destroy:function(e){Ai(e,!0)}};function Ai(e,t){var n=e.data.ref;if(i(n)){var r=e.context,o=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?b(a[n],o):a[n]===o&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var Si=new _e("",{},[]),Ei=["create","activate","update","remove","destroy"];function Ti(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&i(e.data)===i(t.data)&&Oi(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&r(t.asyncFactory.error))}function Oi(e,t){if("input"!==e.tag)return!0;var n,r=i(n=e.data)&&i(n=n.attrs)&&n.type,o=i(n=t.data)&&i(n=n.attrs)&&n.type;return r===o||li(r)&&li(o)}function Ri(e,t,n){var r,o,a={};for(r=t;r<=n;++r)o=e[r].key,i(o)&&(a[o]=r);return a}function Di(e){var t,n,a={},c=e.modules,l=e.nodeOps;for(t=0;t<Ei.length;++t)for(a[Ei[t]]=[],n=0;n<c.length;++n)i(c[n][Ei[t]])&&a[Ei[t]].push(c[n][Ei[t]]);function u(e){return new _e(l.tagName(e).toLowerCase(),{},[],void 0,e)}function d(e,t){function n(){0===--n.listeners&&f(e)}return n.listeners=t,n}function f(e){var t=l.parentNode(e);i(t)&&l.removeChild(t,e)}function p(e,t,n,r,a,s,c){if(i(e.elm)&&i(s)&&(e=s[c]=ke(e)),e.isRootInsert=!a,!h(e,t,n,r)){var u=e.data,d=e.children,f=e.tag;i(f)?(e.elm=e.ns?l.createElementNS(e.ns,f):l.createElement(f,e),x(e),_(e,d,t),i(u)&&w(e,t),b(n,e.elm,r)):o(e.isComment)?(e.elm=l.createComment(e.text),b(n,e.elm,r)):(e.elm=l.createTextNode(e.text),b(n,e.elm,r))}}function h(e,t,n,r){var a=e.data;if(i(a)){var s=i(e.componentInstance)&&a.keepAlive;if(i(a=a.hook)&&i(a=a.init)&&a(e,!1),i(e.componentInstance))return m(e,t),b(n,e.elm,r),o(s)&&v(e,t,n,r),!0}}function m(e,t){i(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,y(e)?(w(e,t),x(e)):(Ai(e),t.push(e))}function v(e,t,n,r){var o,s=e;while(s.componentInstance)if(s=s.componentInstance._vnode,i(o=s.data)&&i(o=o.transition)){for(o=0;o<a.activate.length;++o)a.activate[o](Si,s);t.push(s);break}b(n,e.elm,r)}function b(e,t,n){i(e)&&(i(n)?l.parentNode(n)===e&&l.insertBefore(e,t,n):l.appendChild(e,t))}function _(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)p(t[r],n,e.elm,null,!0,t,r)}else s(e.text)&&l.appendChild(e.elm,l.createTextNode(String(e.text)))}function y(e){while(e.componentInstance)e=e.componentInstance._vnode;return i(e.tag)}function w(e,n){for(var r=0;r<a.create.length;++r)a.create[r](Si,e);t=e.data.hook,i(t)&&(i(t.create)&&t.create(Si,e),i(t.insert)&&n.push(e))}function x(e){var t;if(i(t=e.fnScopeId))l.setStyleScope(e.elm,t);else{var n=e;while(n)i(t=n.context)&&i(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t),n=n.parent}i(t=Rn)&&t!==e.context&&t!==e.fnContext&&i(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t)}function k(e,t,n,r,i,o){for(;r<=i;++r)p(n[r],o,e,t,!1,n,r)}function C(e){var t,n,r=e.data;if(i(r))for(i(t=r.hook)&&i(t=t.destroy)&&t(e),t=0;t<a.destroy.length;++t)a.destroy[t](e);if(i(t=e.children))for(n=0;n<e.children.length;++n)C(e.children[n])}function A(e,t,n,r){for(;n<=r;++n){var o=t[n];i(o)&&(i(o.tag)?(S(o),C(o)):f(o.elm))}}function S(e,t){if(i(t)||i(e.data)){var n,r=a.remove.length+1;for(i(t)?t.listeners+=r:t=d(e.elm,r),i(n=e.componentInstance)&&i(n=n._vnode)&&i(n.data)&&S(n,t),n=0;n<a.remove.length;++n)a.remove[n](e,t);i(n=e.data.hook)&&i(n=n.remove)?n(e,t):t()}else f(e.elm)}function E(e,t,n,o,a){var s,c,u,d,f=0,h=0,m=t.length-1,g=t[0],v=t[m],b=n.length-1,_=n[0],y=n[b],w=!a;while(f<=m&&h<=b)r(g)?g=t[++f]:r(v)?v=t[--m]:Ti(g,_)?(O(g,_,o,n,h),g=t[++f],_=n[++h]):Ti(v,y)?(O(v,y,o,n,b),v=t[--m],y=n[--b]):Ti(g,y)?(O(g,y,o,n,b),w&&l.insertBefore(e,g.elm,l.nextSibling(v.elm)),g=t[++f],y=n[--b]):Ti(v,_)?(O(v,_,o,n,h),w&&l.insertBefore(e,v.elm,g.elm),v=t[--m],_=n[++h]):(r(s)&&(s=Ri(t,f,m)),c=i(_.key)?s[_.key]:T(_,t,f,m),r(c)?p(_,o,e,g.elm,!1,n,h):(u=t[c],Ti(u,_)?(O(u,_,o,n,h),t[c]=void 0,w&&l.insertBefore(e,u.elm,g.elm)):p(_,o,e,g.elm,!1,n,h)),_=n[++h]);f>m?(d=r(n[b+1])?null:n[b+1].elm,k(e,d,n,h,b,o)):h>b&&A(e,t,f,m)}function T(e,t,n,r){for(var o=n;o<r;o++){var a=t[o];if(i(a)&&Ti(e,a))return o}}function O(e,t,n,s,c,u){if(e!==t){i(t.elm)&&i(s)&&(t=s[c]=ke(t));var d=t.elm=e.elm;if(o(e.isAsyncPlaceholder))i(t.asyncFactory.resolved)?L(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))t.componentInstance=e.componentInstance;else{var f,p=t.data;i(p)&&i(f=p.hook)&&i(f=f.prepatch)&&f(e,t);var h=e.children,m=t.children;if(i(p)&&y(t)){for(f=0;f<a.update.length;++f)a.update[f](e,t);i(f=p.hook)&&i(f=f.update)&&f(e,t)}r(t.text)?i(h)&&i(m)?h!==m&&E(d,h,m,n,u):i(m)?(i(e.text)&&l.setTextContent(d,""),k(d,null,m,0,m.length-1,n)):i(h)?A(d,h,0,h.length-1):i(e.text)&&l.setTextContent(d,""):e.text!==t.text&&l.setTextContent(d,t.text),i(p)&&i(f=p.hook)&&i(f=f.postpatch)&&f(e,t)}}}function R(e,t,n){if(o(n)&&i(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var D=g("attrs,class,staticClass,staticStyle,key");function L(e,t,n,r){var a,s=t.tag,c=t.data,l=t.children;if(r=r||c&&c.pre,t.elm=e,o(t.isComment)&&i(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(i(c)&&(i(a=c.hook)&&i(a=a.init)&&a(t,!0),i(a=t.componentInstance)))return m(t,n),!0;if(i(s)){if(i(l))if(e.hasChildNodes())if(i(a=c)&&i(a=a.domProps)&&i(a=a.innerHTML)){if(a!==e.innerHTML)return!1}else{for(var u=!0,d=e.firstChild,f=0;f<l.length;f++){if(!d||!L(d,l[f],n,r)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else _(t,l,n);if(i(c)){var p=!1;for(var h in c)if(!D(h)){p=!0,w(t,n);break}!p&&c["class"]&&gt(c["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,s){if(!r(t)){var c=!1,d=[];if(r(e))c=!0,p(t,d);else{var f=i(e.nodeType);if(!f&&Ti(e,t))O(e,t,d,null,null,s);else{if(f){if(1===e.nodeType&&e.hasAttribute($)&&(e.removeAttribute($),n=!0),o(n)&&L(e,t,d))return R(t,d,!0),e;e=u(e)}var h=e.elm,m=l.parentNode(h);if(p(t,d,h._leaveCb?null:m,l.nextSibling(h)),i(t.parent)){var g=t.parent,v=y(t);while(g){for(var b=0;b<a.destroy.length;++b)a.destroy[b](g);if(g.elm=t.elm,v){for(var _=0;_<a.create.length;++_)a.create[_](Si,g);var w=g.data.hook.insert;if(w.merged)for(var x=1;x<w.fns.length;x++)w.fns[x]()}else Ai(g);g=g.parent}}i(m)?A(m,[e],0,0):i(e.tag)&&C(e)}}return R(t,d,c),t.elm}i(e)&&C(e)}}var Li={create:Mi,update:Mi,destroy:function(e){Mi(e,Si)}};function Mi(e,t){(e.data.directives||t.data.directives)&&Fi(e,t)}function Fi(e,t){var n,r,i,o=e===Si,a=t===Si,s=Bi(e.data.directives,e.context),c=Bi(t.data.directives,t.context),l=[],u=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Pi(i,"update",t,e),i.def&&i.def.componentUpdated&&u.push(i)):(Pi(i,"bind",t,e),i.def&&i.def.inserted&&l.push(i));if(l.length){var d=function(){for(var n=0;n<l.length;n++)Pi(l[n],"inserted",t,e)};o?wt(t,"insert",d):d()}if(u.length&&wt(t,"postpatch",(function(){for(var n=0;n<u.length;n++)Pi(u[n],"componentUpdated",t,e)})),!o)for(n in s)c[n]||Pi(s[n],"unbind",e,e,a)}var Ni=Object.create(null);function Bi(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)r=e[n],r.modifiers||(r.modifiers=Ni),i[Ii(r)]=r,r.def=Ye(t.$options,"directives",r.name,!0);return i}function Ii(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Pi(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(ka){tt(ka,n.context,"directive "+e.name+" "+t+" hook")}}var $i=[Ci,Li];function ji(e,t){var n=t.componentOptions;if((!i(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(e.data.attrs)||!r(t.data.attrs))){var o,a,s,c=t.elm,l=e.data.attrs||{},u=t.data.attrs||{};for(o in i(u.__ob__)&&(u=t.data.attrs=D({},u)),u)a=u[o],s=l[o],s!==a&&zi(c,o,a);for(o in(ee||ne)&&u.value!==l.value&&zi(c,"value",u.value),l)r(u[o])&&(Vr(o)?c.removeAttributeNS(Wr,Gr(o)):zr(o)||c.removeAttribute(o))}}function zi(e,t,n){e.tagName.indexOf("-")>-1?qi(e,t,n):Ur(t)?Kr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):zr(t)?e.setAttribute(t,Hr(t,n)):Vr(t)?Kr(n)?e.removeAttributeNS(Wr,Gr(t)):e.setAttributeNS(Wr,t,n):qi(e,t,n)}function qi(e,t,n){if(Kr(n))e.removeAttribute(t);else{if(ee&&!te&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Hi={create:ji,update:ji};function Ui(e,t){var n=t.elm,o=t.data,a=e.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Yr(t),c=n._transitionClasses;i(c)&&(s=Jr(s,Zr(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Wi,Vi={create:Ui,update:Ui},Gi="__r",Ki="__c";function Yi(e){if(i(e[Gi])){var t=ee?"change":"input";e[t]=[].concat(e[Gi],e[t]||[]),delete e[Gi]}i(e[Ki])&&(e.change=[].concat(e[Ki],e.change||[]),delete e[Ki])}function Xi(e,t,n){var r=Wi;return function i(){var o=t.apply(null,arguments);null!==o&&Zi(e,i,n,r)}}var Qi=at&&!(ie&&Number(ie[1])<=53);function Ji(e,t,n,r){if(Qi){var i=Gn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Wi.addEventListener(e,t,ae?{capture:n,passive:r}:n)}function Zi(e,t,n,r){(r||Wi).removeEventListener(e,t._wrapper||t,n)}function eo(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},i=e.data.on||{};Wi=t.elm,Yi(n),yt(n,i,Ji,Zi,Xi,t.context),Wi=void 0}}var to,no={create:eo,update:eo};function ro(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,o,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in i(c.__ob__)&&(c=t.data.domProps=D({},c)),s)n in c||(a[n]="");for(n in c){if(o=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var l=r(o)?"":String(o);io(a,l)&&(a.value=l)}else if("innerHTML"===n&&ii(a.tagName)&&r(a.innerHTML)){to=to||document.createElement("div"),to.innerHTML="<svg>"+o+"</svg>";var u=to.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(u.firstChild)a.appendChild(u.firstChild)}else if(o!==s[n])try{a[n]=o}catch(ka){}}}}function io(e,t){return!e.composing&&("OPTION"===e.tagName||oo(e,t)||ao(e,t))}function oo(e,t){var n=!0;try{n=document.activeElement!==e}catch(ka){}return n&&e.value!==t}function ao(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.number)return m(n)!==m(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var so={create:ro,update:ro},co=w((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function lo(e){var t=uo(e.style);return e.staticStyle?D(e.staticStyle,t):t}function uo(e){return Array.isArray(e)?L(e):"string"===typeof e?co(e):e}function fo(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=lo(i.data))&&D(r,n)}(n=lo(e.data))&&D(r,n);var o=e;while(o=o.parent)o.data&&(n=lo(o.data))&&D(r,n);return r}var po,ho=/^--/,mo=/\s*!important$/,go=function(e,t,n){if(ho.test(t))e.style.setProperty(t,n);else if(mo.test(n))e.style.setProperty(S(t),n.replace(mo,""),"important");else{var r=bo(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},vo=["Webkit","Moz","ms"],bo=w((function(e){if(po=po||document.createElement("div").style,e=k(e),"filter"!==e&&e in po)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<vo.length;n++){var r=vo[n]+t;if(r in po)return r}}));function _o(e,t){var n=t.data,o=e.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var a,s,c=t.elm,l=o.staticStyle,u=o.normalizedStyle||o.style||{},d=l||u,f=uo(t.data.style)||{};t.data.normalizedStyle=i(f.__ob__)?D({},f):f;var p=fo(t,!0);for(s in d)r(p[s])&&go(c,s,"");for(s in p)a=p[s],a!==d[s]&&go(c,s,null==a?"":a)}}var yo={create:_o,update:_o},wo=/\s+/;function xo(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(wo).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function ko(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(wo).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Co(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&D(t,Ao(e.name||"v")),D(t,e),t}return"string"===typeof e?Ao(e):void 0}}var Ao=w((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),So=X&&!te,Eo="transition",To="animation",Oo="transition",Ro="transitionend",Do="animation",Lo="animationend";So&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Oo="WebkitTransition",Ro="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Do="WebkitAnimation",Lo="webkitAnimationEnd"));var Mo=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Fo(e){Mo((function(){Mo(e)}))}function No(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),xo(e,t))}function Bo(e,t){e._transitionClasses&&b(e._transitionClasses,t),ko(e,t)}function Io(e,t,n){var r=$o(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Eo?Ro:Lo,c=0,l=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++c>=a&&l()};setTimeout((function(){c<a&&l()}),o+1),e.addEventListener(s,u)}var Po=/\b(transform|all)(,|$)/;function $o(e,t){var n,r=window.getComputedStyle(e),i=(r[Oo+"Delay"]||"").split(", "),o=(r[Oo+"Duration"]||"").split(", "),a=jo(i,o),s=(r[Do+"Delay"]||"").split(", "),c=(r[Do+"Duration"]||"").split(", "),l=jo(s,c),u=0,d=0;t===Eo?a>0&&(n=Eo,u=a,d=o.length):t===To?l>0&&(n=To,u=l,d=c.length):(u=Math.max(a,l),n=u>0?a>l?Eo:To:null,d=n?n===Eo?o.length:c.length:0);var f=n===Eo&&Po.test(r[Oo+"Property"]);return{type:n,timeout:u,propCount:d,hasTransform:f}}function jo(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return zo(t)+zo(e[n])})))}function zo(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function qo(e,t){var n=e.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=Co(e.data.transition);if(!r(o)&&!i(n._enterCb)&&1===n.nodeType){var a=o.css,s=o.type,l=o.enterClass,u=o.enterToClass,d=o.enterActiveClass,f=o.appearClass,p=o.appearToClass,h=o.appearActiveClass,g=o.beforeEnter,v=o.enter,b=o.afterEnter,_=o.enterCancelled,y=o.beforeAppear,w=o.appear,x=o.afterAppear,k=o.appearCancelled,C=o.duration,A=Rn,S=Rn.$vnode;while(S&&S.parent)A=S.context,S=S.parent;var E=!A._isMounted||!e.isRootInsert;if(!E||w||""===w){var T=E&&f?f:l,O=E&&h?h:d,R=E&&p?p:u,D=E&&y||g,L=E&&"function"===typeof w?w:v,M=E&&x||b,F=E&&k||_,N=m(c(C)?C.enter:C);0;var B=!1!==a&&!te,I=Wo(L),$=n._enterCb=P((function(){B&&(Bo(n,R),Bo(n,O)),$.cancelled?(B&&Bo(n,T),F&&F(n)):M&&M(n),n._enterCb=null}));e.data.show||wt(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),L&&L(n,$)})),D&&D(n),B&&(No(n,T),No(n,O),Fo((function(){Bo(n,T),$.cancelled||(No(n,R),I||(Uo(N)?setTimeout($,N):Io(n,s,$)))}))),e.data.show&&(t&&t(),L&&L(n,$)),B||I||$()}}}function Ho(e,t){var n=e.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=Co(e.data.transition);if(r(o)||1!==n.nodeType)return t();if(!i(n._leaveCb)){var a=o.css,s=o.type,l=o.leaveClass,u=o.leaveToClass,d=o.leaveActiveClass,f=o.beforeLeave,p=o.leave,h=o.afterLeave,g=o.leaveCancelled,v=o.delayLeave,b=o.duration,_=!1!==a&&!te,y=Wo(p),w=m(c(b)?b.leave:b);0;var x=n._leaveCb=P((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),_&&(Bo(n,u),Bo(n,d)),x.cancelled?(_&&Bo(n,l),g&&g(n)):(t(),h&&h(n)),n._leaveCb=null}));v?v(k):k()}function k(){x.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),f&&f(n),_&&(No(n,l),No(n,d),Fo((function(){Bo(n,l),x.cancelled||(No(n,u),y||(Uo(w)?setTimeout(x,w):Io(n,s,x)))}))),p&&p(n,x),_||y||x())}}function Uo(e){return"number"===typeof e&&!isNaN(e)}function Wo(e){if(r(e))return!1;var t=e.fns;return i(t)?Wo(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Vo(e,t){!0!==t.data.show&&qo(t)}var Go=X?{create:Vo,activate:Vo,remove:function(e,t){!0!==e.data.show?Ho(e,t):t()}}:{},Ko=[Hi,Vi,no,so,yo,Go],Yo=Ko.concat($i),Xo=Di({nodeOps:ki,modules:Yo});te&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&ia(e,"input")}));var Qo={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?wt(n,"postpatch",(function(){Qo.componentUpdated(e,t,n)})):Jo(e,t,n.context),e._vOptions=[].map.call(e.options,ta)):("textarea"===n.tag||li(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",na),e.addEventListener("compositionend",ra),e.addEventListener("change",ra),te&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Jo(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,ta);if(i.some((function(e,t){return!B(e,r[t])}))){var o=e.multiple?t.value.some((function(e){return ea(e,i)})):t.value!==t.oldValue&&ea(t.value,i);o&&ia(e,"change")}}}};function Jo(e,t,n){Zo(e,t,n),(ee||ne)&&setTimeout((function(){Zo(e,t,n)}),0)}function Zo(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],i)o=I(r,ta(a))>-1,a.selected!==o&&(a.selected=o);else if(B(ta(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function ea(e,t){return t.every((function(t){return!B(t,e)}))}function ta(e){return"_value"in e?e._value:e.value}function na(e){e.target.composing=!0}function ra(e){e.target.composing&&(e.target.composing=!1,ia(e.target,"input"))}function ia(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function oa(e){return!e.componentInstance||e.data&&e.data.transition?e:oa(e.componentInstance._vnode)}var aa={bind:function(e,t,n){var r=t.value;n=oa(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,qo(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!==!i){n=oa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?qo(n,(function(){e.style.display=e.__vOriginalDisplay})):Ho(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},sa={model:Qo,show:aa},ca={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function la(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?la(kn(t.children)):e}function ua(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[k(o)]=i[o];return t}function da(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function fa(e){while(e=e.parent)if(e.data.transition)return!0}function pa(e,t){return t.key===e.key&&t.tag===e.tag}var ha=function(e){return e.tag||xn(e)},ma=function(e){return"show"===e.name},ga={name:"transition",props:ca,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(ha),n.length)){0;var r=this.mode;0;var i=n[0];if(fa(this.$vnode))return i;var o=la(i);if(!o)return i;if(this._leaving)return da(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=ua(this),l=this._vnode,u=la(l);if(o.data.directives&&o.data.directives.some(ma)&&(o.data.show=!0),u&&u.data&&!pa(o,u)&&!xn(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=D({},c);if("out-in"===r)return this._leaving=!0,wt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),da(e,i);if("in-out"===r){if(xn(o))return l;var f,p=function(){f()};wt(c,"afterEnter",p),wt(c,"enterCancelled",p),wt(d,"delayLeave",(function(e){f=e}))}}return i}}},va=D({tag:String,moveClass:String},ca);delete va.mode;var ba={props:va,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Dn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=ua(this),s=0;s<i.length;s++){var c=i[s];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(r){for(var l=[],u=[],d=0;d<r.length;d++){var f=r[d];f.data.transition=a,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?l.push(f):u.push(f)}this.kept=e(t,null,l),this.removed=u}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(_a),e.forEach(ya),e.forEach(wa),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;No(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Ro,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Ro,e),n._moveCb=null,Bo(n,t))})}})))},methods:{hasMove:function(e,t){if(!So)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){ko(n,e)})),xo(n,t),n.style.display="none",this.$el.appendChild(n);var r=$o(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function _a(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function ya(e){e.data.newPos=e.elm.getBoundingClientRect()}function wa(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var xa={Transition:ga,TransitionGroup:ba};kr.config.mustUseProp=jr,kr.config.isReservedTag=oi,kr.config.isReservedAttr=Pr,kr.config.getTagNamespace=ai,kr.config.isUnknownElement=ci,D(kr.options.directives,sa),D(kr.options.components,xa),kr.prototype.__patch__=X?Xo:M,kr.prototype.$mount=function(e,t){return e=e&&X?ui(e):void 0,Fn(this,e,t)},X&&setTimeout((function(){q.devtools&&le&&le.emit("init",kr)}),0),t["default"]=kr}.call(this,n("c8ba"))},"2b3d":function(e,t,n){"use strict";n("4002")},"2ba4":function(e,t,n){"use strict";var r=n("40d5"),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},"2cd4":function(e,t,n){var r=n("8973"),i=n("85d0"),o=n("6a83")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"2cf4":function(e,t,n){"use strict";var r,i,o,a,s=n("da84"),c=n("2ba4"),l=n("0366"),u=n("1626"),d=n("1a2d"),f=n("d039"),p=n("1be4"),h=n("f36a"),m=n("cc12"),g=n("d6d6"),v=n("1cdc"),b=n("605d"),_=s.setImmediate,y=s.clearImmediate,w=s.process,x=s.Dispatch,k=s.Function,C=s.MessageChannel,A=s.String,S=0,E={},T="onreadystatechange";f((function(){r=s.location}));var O=function(e){if(d(E,e)){var t=E[e];delete E[e],t()}},R=function(e){return function(){O(e)}},D=function(e){O(e.data)},L=function(e){s.postMessage(A(e),r.protocol+"//"+r.host)};_&&y||(_=function(e){g(arguments.length,1);var t=u(e)?e:k(e),n=h(arguments,1);return E[++S]=function(){c(t,void 0,n)},i(S),S},y=function(e){delete E[e]},b?i=function(e){w.nextTick(R(e))}:x&&x.now?i=function(e){x.now(R(e))}:C&&!v?(o=new C,a=o.port2,o.port1.onmessage=D,i=l(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(L)?(i=L,s.addEventListener("message",D,!1)):i=T in m("script")?function(e){p.appendChild(m("script"))[T]=function(){p.removeChild(this),O(e)}}:function(e){setTimeout(R(e),0)}),e.exports={set:_,clear:y}},"2d00":function(e,t,n){"use strict";var r,i,o=n("da84"),a=n("342f"),s=o.process,c=o.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(r=u.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},"2e13":function(e,t,n){e.exports=n("dc7a")("native-function-to-string",Function.toString)},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2ef0":function(e,t,n){(function(e,r){var i;
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(){var o,a="4.17.21",s=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",f=500,p="__lodash_placeholder__",h=1,m=2,g=4,v=1,b=2,_=1,y=2,w=4,x=8,k=16,C=32,A=64,S=128,E=256,T=512,O=30,R="...",D=800,L=16,M=1,F=2,N=3,B=1/0,I=9007199254740991,P=17976931348623157e292,$=NaN,j=4294967295,z=j-1,q=j>>>1,H=[["ary",S],["bind",_],["bindKey",y],["curry",x],["curryRight",k],["flip",T],["partial",C],["partialRight",A],["rearg",E]],U="[object Arguments]",W="[object Array]",V="[object AsyncFunction]",G="[object Boolean]",K="[object Date]",Y="[object DOMException]",X="[object Error]",Q="[object Function]",J="[object GeneratorFunction]",Z="[object Map]",ee="[object Number]",te="[object Null]",ne="[object Object]",re="[object Promise]",ie="[object Proxy]",oe="[object RegExp]",ae="[object Set]",se="[object String]",ce="[object Symbol]",le="[object Undefined]",ue="[object WeakMap]",de="[object WeakSet]",fe="[object ArrayBuffer]",pe="[object DataView]",he="[object Float32Array]",me="[object Float64Array]",ge="[object Int8Array]",ve="[object Int16Array]",be="[object Int32Array]",_e="[object Uint8Array]",ye="[object Uint8ClampedArray]",we="[object Uint16Array]",xe="[object Uint32Array]",ke=/\b__p \+= '';/g,Ce=/\b(__p \+=) '' \+/g,Ae=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Se=/&(?:amp|lt|gt|quot|#39);/g,Ee=/[&<>"']/g,Te=RegExp(Se.source),Oe=RegExp(Ee.source),Re=/<%-([\s\S]+?)%>/g,De=/<%([\s\S]+?)%>/g,Le=/<%=([\s\S]+?)%>/g,Me=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fe=/^\w*$/,Ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Be=/[\\^$.*+?()[\]{}|]/g,Ie=RegExp(Be.source),Pe=/^\s+/,$e=/\s/,je=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ze=/\{\n\/\* \[wrapped with (.+)\] \*/,qe=/,? & /,He=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/[()=,{}\[\]\/\s]/,We=/\\(\\)?/g,Ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ge=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,Xe=/^\[object .+?Constructor\]$/,Qe=/^0o[0-7]+$/i,Je=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,et=/($^)/,tt=/['\n\r\u2028\u2029\\]/g,nt="\\ud800-\\udfff",rt="\\u0300-\\u036f",it="\\ufe20-\\ufe2f",ot="\\u20d0-\\u20ff",at=rt+it+ot,st="\\u2700-\\u27bf",ct="a-z\\xdf-\\xf6\\xf8-\\xff",lt="\\xac\\xb1\\xd7\\xf7",ut="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dt="\\u2000-\\u206f",ft=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="A-Z\\xc0-\\xd6\\xd8-\\xde",ht="\\ufe0e\\ufe0f",mt=lt+ut+dt+ft,gt="['’]",vt="["+nt+"]",bt="["+mt+"]",_t="["+at+"]",yt="\\d+",wt="["+st+"]",xt="["+ct+"]",kt="[^"+nt+mt+yt+st+ct+pt+"]",Ct="\\ud83c[\\udffb-\\udfff]",At="(?:"+_t+"|"+Ct+")",St="[^"+nt+"]",Et="(?:\\ud83c[\\udde6-\\uddff]){2}",Tt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ot="["+pt+"]",Rt="\\u200d",Dt="(?:"+xt+"|"+kt+")",Lt="(?:"+Ot+"|"+kt+")",Mt="(?:"+gt+"(?:d|ll|m|re|s|t|ve))?",Ft="(?:"+gt+"(?:D|LL|M|RE|S|T|VE))?",Nt=At+"?",Bt="["+ht+"]?",It="(?:"+Rt+"(?:"+[St,Et,Tt].join("|")+")"+Bt+Nt+")*",Pt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$t="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jt=Bt+Nt+It,zt="(?:"+[wt,Et,Tt].join("|")+")"+jt,qt="(?:"+[St+_t+"?",_t,Et,Tt,vt].join("|")+")",Ht=RegExp(gt,"g"),Ut=RegExp(_t,"g"),Wt=RegExp(Ct+"(?="+Ct+")|"+qt+jt,"g"),Vt=RegExp([Ot+"?"+xt+"+"+Mt+"(?="+[bt,Ot,"$"].join("|")+")",Lt+"+"+Ft+"(?="+[bt,Ot+Dt,"$"].join("|")+")",Ot+"?"+Dt+"+"+Mt,Ot+"+"+Ft,$t,Pt,yt,zt].join("|"),"g"),Gt=RegExp("["+Rt+nt+at+ht+"]"),Kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xt=-1,Qt={};Qt[he]=Qt[me]=Qt[ge]=Qt[ve]=Qt[be]=Qt[_e]=Qt[ye]=Qt[we]=Qt[xe]=!0,Qt[U]=Qt[W]=Qt[fe]=Qt[G]=Qt[pe]=Qt[K]=Qt[X]=Qt[Q]=Qt[Z]=Qt[ee]=Qt[ne]=Qt[oe]=Qt[ae]=Qt[se]=Qt[ue]=!1;var Jt={};Jt[U]=Jt[W]=Jt[fe]=Jt[pe]=Jt[G]=Jt[K]=Jt[he]=Jt[me]=Jt[ge]=Jt[ve]=Jt[be]=Jt[Z]=Jt[ee]=Jt[ne]=Jt[oe]=Jt[ae]=Jt[se]=Jt[ce]=Jt[_e]=Jt[ye]=Jt[we]=Jt[xe]=!0,Jt[X]=Jt[Q]=Jt[ue]=!1;var Zt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},en={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rn=parseFloat,on=parseInt,an="object"==typeof e&&e&&e.Object===Object&&e,sn="object"==typeof self&&self&&self.Object===Object&&self,cn=an||sn||Function("return this")(),ln=t&&!t.nodeType&&t,un=ln&&"object"==typeof r&&r&&!r.nodeType&&r,dn=un&&un.exports===ln,fn=dn&&an.process,pn=function(){try{var e=un&&un.require&&un.require("util").types;return e||fn&&fn.binding&&fn.binding("util")}catch(t){}}(),hn=pn&&pn.isArrayBuffer,mn=pn&&pn.isDate,gn=pn&&pn.isMap,vn=pn&&pn.isRegExp,bn=pn&&pn.isSet,_n=pn&&pn.isTypedArray;function yn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function wn(e,t,n,r){var i=-1,o=null==e?0:e.length;while(++i<o){var a=e[i];t(r,a,n(a),e)}return r}function xn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}function kn(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function Cn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function An(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Sn(e,t){var n=null==e?0:e.length;return!!n&&Pn(e,t,0)>-1}function En(e,t,n){var r=-1,i=null==e?0:e.length;while(++r<i)if(n(t,e[r]))return!0;return!1}function Tn(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}function On(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}function Rn(e,t,n,r){var i=-1,o=null==e?0:e.length;r&&o&&(n=e[++i]);while(++i<o)n=t(n,e[i],i,e);return n}function Dn(e,t,n,r){var i=null==e?0:e.length;r&&i&&(n=e[--i]);while(i--)n=t(n,e[i],i,e);return n}function Ln(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var Mn=qn("length");function Fn(e){return e.split("")}function Nn(e){return e.match(He)||[]}function Bn(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function In(e,t,n,r){var i=e.length,o=n+(r?1:-1);while(r?o--:++o<i)if(t(e[o],o,e))return o;return-1}function Pn(e,t,n){return t===t?hr(e,t,n):In(e,jn,n)}function $n(e,t,n,r){var i=n-1,o=e.length;while(++i<o)if(r(e[i],t))return i;return-1}function jn(e){return e!==e}function zn(e,t){var n=null==e?0:e.length;return n?Vn(e,t)/n:$}function qn(e){return function(t){return null==t?o:t[e]}}function Hn(e){return function(t){return null==e?o:e[t]}}function Un(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Wn(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Vn(e,t){var n,r=-1,i=e.length;while(++r<i){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Gn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Kn(e,t){return Tn(t,(function(t){return[t,e[t]]}))}function Yn(e){return e?e.slice(0,br(e)+1).replace(Pe,""):e}function Xn(e){return function(t){return e(t)}}function Qn(e,t){return Tn(t,(function(t){return e[t]}))}function Jn(e,t){return e.has(t)}function Zn(e,t){var n=-1,r=e.length;while(++n<r&&Pn(t,e[n],0)>-1);return n}function er(e,t){var n=e.length;while(n--&&Pn(t,e[n],0)>-1);return n}function tr(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var nr=Hn(Zt),rr=Hn(en);function ir(e){return"\\"+nn[e]}function or(e,t){return null==e?o:e[t]}function ar(e){return Gt.test(e)}function sr(e){return Kt.test(e)}function cr(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function lr(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ur(e,t){return function(n){return e(t(n))}}function dr(e,t){var n=-1,r=e.length,i=0,o=[];while(++n<r){var a=e[n];a!==t&&a!==p||(e[n]=p,o[i++]=n)}return o}function fr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hr(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}function mr(e,t,n){var r=n+1;while(r--)if(e[r]===t)return r;return r}function gr(e){return ar(e)?yr(e):Mn(e)}function vr(e){return ar(e)?wr(e):Fn(e)}function br(e){var t=e.length;while(t--&&$e.test(e.charAt(t)));return t}var _r=Hn(tn);function yr(e){var t=Wt.lastIndex=0;while(Wt.test(e))++t;return t}function wr(e){return e.match(Wt)||[]}function xr(e){return e.match(Vt)||[]}var kr=function e(t){t=null==t?cn:Cr.defaults(cn.Object(),t,Cr.pick(cn,Yt));var n=t.Array,r=t.Date,i=t.Error,$e=t.Function,He=t.Math,nt=t.Object,rt=t.RegExp,it=t.String,ot=t.TypeError,at=n.prototype,st=$e.prototype,ct=nt.prototype,lt=t["__core-js_shared__"],ut=st.toString,dt=ct.hasOwnProperty,ft=0,pt=function(){var e=/[^.]+$/.exec(lt&&lt.keys&&lt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ht=ct.toString,mt=ut.call(nt),gt=cn._,vt=rt("^"+ut.call(dt).replace(Be,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=dn?t.Buffer:o,_t=t.Symbol,yt=t.Uint8Array,wt=bt?bt.allocUnsafe:o,xt=ur(nt.getPrototypeOf,nt),kt=nt.create,Ct=ct.propertyIsEnumerable,At=at.splice,St=_t?_t.isConcatSpreadable:o,Et=_t?_t.iterator:o,Tt=_t?_t.toStringTag:o,Ot=function(){try{var e=Ga(nt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Rt=t.clearTimeout!==cn.clearTimeout&&t.clearTimeout,Dt=r&&r.now!==cn.Date.now&&r.now,Lt=t.setTimeout!==cn.setTimeout&&t.setTimeout,Mt=He.ceil,Ft=He.floor,Nt=nt.getOwnPropertySymbols,Bt=bt?bt.isBuffer:o,It=t.isFinite,Pt=at.join,$t=ur(nt.keys,nt),jt=He.max,zt=He.min,qt=r.now,Wt=t.parseInt,Vt=He.random,Gt=at.reverse,Kt=Ga(t,"DataView"),Zt=Ga(t,"Map"),en=Ga(t,"Promise"),tn=Ga(t,"Set"),nn=Ga(t,"WeakMap"),an=Ga(nt,"create"),sn=nn&&new nn,ln={},un=Ls(Kt),fn=Ls(Zt),pn=Ls(en),Mn=Ls(tn),Fn=Ls(nn),Hn=_t?_t.prototype:o,hr=Hn?Hn.valueOf:o,yr=Hn?Hn.toString:o;function wr(e){if(Au(e)&&!cu(e)&&!(e instanceof Er)){if(e instanceof Sr)return e;if(dt.call(e,"__wrapped__"))return Fs(e)}return new Sr(e)}var kr=function(){function e(){}return function(t){if(!Cu(t))return{};if(kt)return kt(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Ar(){}function Sr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Er(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=j,this.__views__=[]}function Tr(){var e=new Er(this.__wrapped__);return e.__actions__=ia(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ia(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ia(this.__views__),e}function Or(){if(this.__filtered__){var e=new Er(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Rr(){var e=this.__wrapped__.value(),t=this.__dir__,n=cu(e),r=t<0,i=n?e.length:0,o=Ja(0,i,this.__views__),a=o.start,s=o.end,c=s-a,l=r?s:a-1,u=this.__iteratees__,d=u.length,f=0,p=zt(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return $o(e,this.__actions__);var h=[];e:while(c--&&f<p){l+=t;var m=-1,g=e[l];while(++m<d){var v=u[m],b=v.iteratee,_=v.type,y=b(g);if(_==F)g=y;else if(!y){if(_==M)continue e;break e}}h[f++]=g}return h}function Dr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Lr(){this.__data__=an?an(null):{},this.size=0}function Mr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Fr(e){var t=this.__data__;if(an){var n=t[e];return n===d?o:n}return dt.call(t,e)?t[e]:o}function Nr(e){var t=this.__data__;return an?t[e]!==o:dt.call(t,e)}function Br(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=an&&t===o?d:t,this}function Ir(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Pr(){this.__data__=[],this.size=0}function $r(e){var t=this.__data__,n=ui(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():At.call(t,n,1),--this.size,!0}function jr(e){var t=this.__data__,n=ui(t,e);return n<0?o:t[n][1]}function zr(e){return ui(this.__data__,e)>-1}function qr(e,t){var n=this.__data__,r=ui(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Hr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Ur(){this.size=0,this.__data__={hash:new Dr,map:new(Zt||Ir),string:new Dr}}function Wr(e){var t=Wa(this,e)["delete"](e);return this.size-=t?1:0,t}function Vr(e){return Wa(this,e).get(e)}function Gr(e){return Wa(this,e).has(e)}function Kr(e,t){var n=Wa(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Yr(e){var t=-1,n=null==e?0:e.length;this.__data__=new Hr;while(++t<n)this.add(e[t])}function Xr(e){return this.__data__.set(e,d),this}function Qr(e){return this.__data__.has(e)}function Jr(e){var t=this.__data__=new Ir(e);this.size=t.size}function Zr(){this.__data__=new Ir,this.size=0}function ei(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function ti(e){return this.__data__.get(e)}function ni(e){return this.__data__.has(e)}function ri(e,t){var n=this.__data__;if(n instanceof Ir){var r=n.__data__;if(!Zt||r.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hr(r)}return n.set(e,t),this.size=n.size,this}function ii(e,t){var n=cu(e),r=!n&&su(e),i=!n&&!r&&pu(e),o=!n&&!r&&!i&&ju(e),a=n||r||i||o,s=a?Gn(e.length,it):[],c=s.length;for(var l in e)!t&&!dt.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||as(l,c))||s.push(l);return s}function oi(e){var t=e.length;return t?e[bo(0,t-1)]:o}function ai(e,t){return Os(ia(e),gi(t,0,e.length))}function si(e){return Os(ia(e))}function ci(e,t,n){(n!==o&&!iu(e[t],n)||n===o&&!(t in e))&&hi(e,t,n)}function li(e,t,n){var r=e[t];dt.call(e,t)&&iu(r,n)&&(n!==o||t in e)||hi(e,t,n)}function ui(e,t){var n=e.length;while(n--)if(iu(e[n][0],t))return n;return-1}function di(e,t,n,r){return xi(e,(function(e,i,o){t(r,e,n(e),o)})),r}function fi(e,t){return e&&oa(t,xd(t),e)}function pi(e,t){return e&&oa(t,kd(t),e)}function hi(e,t,n){"__proto__"==t&&Ot?Ot(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function mi(e,t){var r=-1,i=t.length,a=n(i),s=null==e;while(++r<i)a[r]=s?o:gd(e,t[r]);return a}function gi(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function vi(e,t,n,r,i,a){var s,c=t&h,l=t&m,u=t&g;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!Cu(e))return e;var d=cu(e);if(d){if(s=ts(e),!c)return ia(e,s)}else{var f=Qa(e),p=f==Q||f==J;if(pu(e))return Ko(e,c);if(f==ne||f==U||p&&!i){if(s=l||p?{}:ns(e),!c)return l?sa(e,pi(s,e)):aa(e,fi(s,e))}else{if(!Jt[f])return i?e:{};s=rs(e,f,c)}}a||(a=new Jr);var v=a.get(e);if(v)return v;a.set(e,s),Iu(e)?e.forEach((function(r){s.add(vi(r,t,n,r,e,a))})):Su(e)&&e.forEach((function(r,i){s.set(i,vi(r,t,n,i,e,a))}));var b=u?l?ja:$a:l?kd:xd,_=d?o:b(e);return xn(_||e,(function(r,i){_&&(i=r,r=e[i]),li(s,i,vi(r,t,n,i,e,a))})),s}function bi(e){var t=xd(e);return function(n){return _i(n,e,t)}}function _i(e,t,n){var r=n.length;if(null==e)return!r;e=nt(e);while(r--){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function yi(e,t,n){if("function"!=typeof e)throw new ot(l);return As((function(){e.apply(o,n)}),t)}function wi(e,t,n,r){var i=-1,o=Sn,a=!0,c=e.length,l=[],u=t.length;if(!c)return l;n&&(t=Tn(t,Xn(n))),r?(o=En,a=!1):t.length>=s&&(o=Jn,a=!1,t=new Yr(t));e:while(++i<c){var d=e[i],f=null==n?d:n(d);if(d=r||0!==d?d:0,a&&f===f){var p=u;while(p--)if(t[p]===f)continue e;l.push(d)}else o(t,f,r)||l.push(d)}return l}wr.templateSettings={escape:Re,evaluate:De,interpolate:Le,variable:"",imports:{_:wr}},wr.prototype=Ar.prototype,wr.prototype.constructor=wr,Sr.prototype=kr(Ar.prototype),Sr.prototype.constructor=Sr,Er.prototype=kr(Ar.prototype),Er.prototype.constructor=Er,Dr.prototype.clear=Lr,Dr.prototype["delete"]=Mr,Dr.prototype.get=Fr,Dr.prototype.has=Nr,Dr.prototype.set=Br,Ir.prototype.clear=Pr,Ir.prototype["delete"]=$r,Ir.prototype.get=jr,Ir.prototype.has=zr,Ir.prototype.set=qr,Hr.prototype.clear=Ur,Hr.prototype["delete"]=Wr,Hr.prototype.get=Vr,Hr.prototype.has=Gr,Hr.prototype.set=Kr,Yr.prototype.add=Yr.prototype.push=Xr,Yr.prototype.has=Qr,Jr.prototype.clear=Zr,Jr.prototype["delete"]=ei,Jr.prototype.get=ti,Jr.prototype.has=ni,Jr.prototype.set=ri;var xi=ua(Di),ki=ua(Li,!0);function Ci(e,t){var n=!0;return xi(e,(function(e,r,i){return n=!!t(e,r,i),n})),n}function Ai(e,t,n){var r=-1,i=e.length;while(++r<i){var a=e[r],s=t(a);if(null!=s&&(c===o?s===s&&!$u(s):n(s,c)))var c=s,l=a}return l}function Si(e,t,n,r){var i=e.length;n=Ku(n),n<0&&(n=-n>i?0:i+n),r=r===o||r>i?i:Ku(r),r<0&&(r+=i),r=n>r?0:Yu(r);while(n<r)e[n++]=t;return e}function Ei(e,t){var n=[];return xi(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Ti(e,t,n,r,i){var o=-1,a=e.length;n||(n=os),i||(i=[]);while(++o<a){var s=e[o];t>0&&n(s)?t>1?Ti(s,t-1,n,r,i):On(i,s):r||(i[i.length]=s)}return i}var Oi=da(),Ri=da(!0);function Di(e,t){return e&&Oi(e,t,xd)}function Li(e,t){return e&&Ri(e,t,xd)}function Mi(e,t){return An(t,(function(t){return wu(e[t])}))}function Fi(e,t){t=Uo(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[Ds(t[n++])];return n&&n==r?e:o}function Ni(e,t,n){var r=t(e);return cu(e)?r:On(r,n(e))}function Bi(e){return null==e?e===o?le:te:Tt&&Tt in nt(e)?Ka(e):_s(e)}function Ii(e,t){return e>t}function Pi(e,t){return null!=e&&dt.call(e,t)}function $i(e,t){return null!=e&&t in nt(e)}function ji(e,t,n){return e>=zt(t,n)&&e<jt(t,n)}function zi(e,t,r){var i=r?En:Sn,a=e[0].length,s=e.length,c=s,l=n(s),u=1/0,d=[];while(c--){var f=e[c];c&&t&&(f=Tn(f,Xn(t))),u=zt(f.length,u),l[c]=!r&&(t||a>=120&&f.length>=120)?new Yr(c&&f):o}f=e[0];var p=-1,h=l[0];e:while(++p<a&&d.length<u){var m=f[p],g=t?t(m):m;if(m=r||0!==m?m:0,!(h?Jn(h,g):i(d,g,r))){c=s;while(--c){var v=l[c];if(!(v?Jn(v,g):i(e[c],g,r)))continue e}h&&h.push(g),d.push(m)}}return d}function qi(e,t,n,r){return Di(e,(function(e,i,o){t(r,n(e),i,o)})),r}function Hi(e,t,n){t=Uo(t,e),e=ws(e,t);var r=null==e?e:e[Ds(oc(t))];return null==r?o:yn(r,e,n)}function Ui(e){return Au(e)&&Bi(e)==U}function Wi(e){return Au(e)&&Bi(e)==fe}function Vi(e){return Au(e)&&Bi(e)==K}function Gi(e,t,n,r,i){return e===t||(null==e||null==t||!Au(e)&&!Au(t)?e!==e&&t!==t:Ki(e,t,n,r,Gi,i))}function Ki(e,t,n,r,i,o){var a=cu(e),s=cu(t),c=a?W:Qa(e),l=s?W:Qa(t);c=c==U?ne:c,l=l==U?ne:l;var u=c==ne,d=l==ne,f=c==l;if(f&&pu(e)){if(!pu(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new Jr),a||ju(e)?Na(e,t,n,r,i,o):Ba(e,t,c,n,r,i,o);if(!(n&v)){var p=u&&dt.call(e,"__wrapped__"),h=d&&dt.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,g=h?t.value():t;return o||(o=new Jr),i(m,g,n,r,o)}}return!!f&&(o||(o=new Jr),Ia(e,t,n,r,i,o))}function Yi(e){return Au(e)&&Qa(e)==Z}function Xi(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;e=nt(e);while(i--){var c=n[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}while(++i<a){c=n[i];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===o&&!(l in e))return!1}else{var f=new Jr;if(r)var p=r(u,d,l,e,t,f);if(!(p===o?Gi(d,u,v|b,r,f):p))return!1}}return!0}function Qi(e){if(!Cu(e)||ds(e))return!1;var t=wu(e)?vt:Xe;return t.test(Ls(e))}function Ji(e){return Au(e)&&Bi(e)==oe}function Zi(e){return Au(e)&&Qa(e)==ae}function eo(e){return Au(e)&&ku(e.length)&&!!Qt[Bi(e)]}function to(e){return"function"==typeof e?e:null==e?Df:"object"==typeof e?cu(e)?so(e[0],e[1]):ao(e):Uf(e)}function no(e){if(!ps(e))return $t(e);var t=[];for(var n in nt(e))dt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ro(e){if(!Cu(e))return bs(e);var t=ps(e),n=[];for(var r in e)("constructor"!=r||!t&&dt.call(e,r))&&n.push(r);return n}function io(e,t){return e<t}function oo(e,t){var r=-1,i=uu(e)?n(e.length):[];return xi(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function ao(e){var t=Va(e);return 1==t.length&&t[0][2]?ms(t[0][0],t[0][1]):function(n){return n===e||Xi(n,e,t)}}function so(e,t){return cs(e)&&hs(t)?ms(Ds(e),t):function(n){var r=gd(n,e);return r===o&&r===t?bd(n,e):Gi(t,r,v|b)}}function co(e,t,n,r,i){e!==t&&Oi(t,(function(a,s){if(i||(i=new Jr),Cu(a))lo(e,t,s,n,co,r,i);else{var c=r?r(ks(e,s),a,s+"",e,t,i):o;c===o&&(c=a),ci(e,s,c)}}),kd)}function lo(e,t,n,r,i,a,s){var c=ks(e,n),l=ks(t,n),u=s.get(l);if(u)ci(e,n,u);else{var d=a?a(c,l,n+"",e,t,s):o,f=d===o;if(f){var p=cu(l),h=!p&&pu(l),m=!p&&!h&&ju(l);d=l,p||h||m?cu(c)?d=c:du(c)?d=ia(c):h?(f=!1,d=Ko(l,!0)):m?(f=!1,d=Zo(l,!0)):d=[]:Fu(l)||su(l)?(d=c,su(c)?d=Qu(c):Cu(c)&&!wu(c)||(d=ns(l))):f=!1}f&&(s.set(l,d),i(d,l,r,a,s),s["delete"](l)),ci(e,n,d)}}function uo(e,t){var n=e.length;if(n)return t+=t<0?n:0,as(t,n)?e[t]:o}function fo(e,t,n){t=t.length?Tn(t,(function(e){return cu(e)?function(t){return Fi(t,1===e.length?e[0]:e)}:e})):[Df];var r=-1;t=Tn(t,Xn(Ua()));var i=oo(e,(function(e,n,i){var o=Tn(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return Wn(i,(function(e,t){return ta(e,t,n)}))}function po(e,t){return ho(e,t,(function(t,n){return bd(e,n)}))}function ho(e,t,n){var r=-1,i=t.length,o={};while(++r<i){var a=t[r],s=Fi(e,a);n(s,a)&&Co(o,Uo(a,e),s)}return o}function mo(e){return function(t){return Fi(t,e)}}function go(e,t,n,r){var i=r?$n:Pn,o=-1,a=t.length,s=e;e===t&&(t=ia(t)),n&&(s=Tn(e,Xn(n)));while(++o<a){var c=0,l=t[o],u=n?n(l):l;while((c=i(s,u,c,r))>-1)s!==e&&At.call(s,c,1),At.call(e,c,1)}return e}function vo(e,t){var n=e?t.length:0,r=n-1;while(n--){var i=t[n];if(n==r||i!==o){var o=i;as(i)?At.call(e,i,1):Bo(e,i)}}return e}function bo(e,t){return e+Ft(Vt()*(t-e+1))}function _o(e,t,r,i){var o=-1,a=jt(Mt((t-e)/(r||1)),0),s=n(a);while(a--)s[i?a:++o]=e,e+=r;return s}function yo(e,t){var n="";if(!e||t<1||t>I)return n;do{t%2&&(n+=e),t=Ft(t/2),t&&(e+=e)}while(t);return n}function wo(e,t){return Ss(ys(e,t,Df),e+"")}function xo(e){return oi(zd(e))}function ko(e,t){var n=zd(e);return Os(n,gi(t,0,n.length))}function Co(e,t,n,r){if(!Cu(e))return e;t=Uo(t,e);var i=-1,a=t.length,s=a-1,c=e;while(null!=c&&++i<a){var l=Ds(t[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=s){var d=c[l];u=r?r(d,l,c):o,u===o&&(u=Cu(d)?d:as(t[i+1])?[]:{})}li(c,l,u),c=c[l]}return e}var Ao=sn?function(e,t){return sn.set(e,t),e}:Df,So=Ot?function(e,t){return Ot(e,"toString",{configurable:!0,enumerable:!1,value:Ef(t),writable:!0})}:Df;function Eo(e){return Os(zd(e))}function To(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;var a=n(o);while(++i<o)a[i]=e[i+t];return a}function Oo(e,t){var n;return xi(e,(function(e,r,i){return n=t(e,r,i),!n})),!!n}function Ro(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=q){while(r<i){var o=r+i>>>1,a=e[o];null!==a&&!$u(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Do(e,t,Df,n)}function Do(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;t=n(t);var s=t!==t,c=null===t,l=$u(t),u=t===o;while(i<a){var d=Ft((i+a)/2),f=n(e[d]),p=f!==o,h=null===f,m=f===f,g=$u(f);if(s)var v=r||m;else v=u?m&&(r||p):c?m&&p&&(r||!h):l?m&&p&&!h&&(r||!g):!h&&!g&&(r?f<=t:f<t);v?i=d+1:a=d}return zt(a,z)}function Lo(e,t){var n=-1,r=e.length,i=0,o=[];while(++n<r){var a=e[n],s=t?t(a):a;if(!n||!iu(s,c)){var c=s;o[i++]=0===a?0:a}}return o}function Mo(e){return"number"==typeof e?e:$u(e)?$:+e}function Fo(e){if("string"==typeof e)return e;if(cu(e))return Tn(e,Fo)+"";if($u(e))return yr?yr.call(e):"";var t=e+"";return"0"==t&&1/e==-B?"-0":t}function No(e,t,n){var r=-1,i=Sn,o=e.length,a=!0,c=[],l=c;if(n)a=!1,i=En;else if(o>=s){var u=t?null:Oa(e);if(u)return fr(u);a=!1,i=Jn,l=new Yr}else l=t?[]:c;e:while(++r<o){var d=e[r],f=t?t(d):d;if(d=n||0!==d?d:0,a&&f===f){var p=l.length;while(p--)if(l[p]===f)continue e;t&&l.push(f),c.push(d)}else i(l,f,n)||(l!==c&&l.push(f),c.push(d))}return c}function Bo(e,t){return t=Uo(t,e),e=ws(e,t),null==e||delete e[Ds(oc(t))]}function Io(e,t,n,r){return Co(e,t,n(Fi(e,t)),r)}function Po(e,t,n,r){var i=e.length,o=r?i:-1;while((r?o--:++o<i)&&t(e[o],o,e));return n?To(e,r?0:o,r?o+1:i):To(e,r?o+1:0,r?i:o)}function $o(e,t){var n=e;return n instanceof Er&&(n=n.value()),Rn(t,(function(e,t){return t.func.apply(t.thisArg,On([e],t.args))}),n)}function jo(e,t,r){var i=e.length;if(i<2)return i?No(e[0]):[];var o=-1,a=n(i);while(++o<i){var s=e[o],c=-1;while(++c<i)c!=o&&(a[o]=wi(a[o]||s,e[c],t,r))}return No(Ti(a,1),t,r)}function zo(e,t,n){var r=-1,i=e.length,a=t.length,s={};while(++r<i){var c=r<a?t[r]:o;n(s,e[r],c)}return s}function qo(e){return du(e)?e:[]}function Ho(e){return"function"==typeof e?e:Df}function Uo(e,t){return cu(e)?e:cs(e,t)?[e]:Rs(Zu(e))}var Wo=wo;function Vo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:To(e,t,n)}var Go=Rt||function(e){return cn.clearTimeout(e)};function Ko(e,t){if(t)return e.slice();var n=e.length,r=wt?wt(n):new e.constructor(n);return e.copy(r),r}function Yo(e){var t=new e.constructor(e.byteLength);return new yt(t).set(new yt(e)),t}function Xo(e,t){var n=t?Yo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Qo(e){var t=new e.constructor(e.source,Ge.exec(e));return t.lastIndex=e.lastIndex,t}function Jo(e){return hr?nt(hr.call(e)):{}}function Zo(e,t){var n=t?Yo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,a=$u(e),s=t!==o,c=null===t,l=t===t,u=$u(t);if(!c&&!u&&!a&&e>t||a&&s&&l&&!c&&!u||r&&s&&l||!n&&l||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||c&&n&&i||!s&&i||!l)return-1}return 0}function ta(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;while(++r<a){var c=ea(i[r],o[r]);if(c){if(r>=s)return c;var l=n[r];return c*("desc"==l?-1:1)}}return e.index-t.index}function na(e,t,r,i){var o=-1,a=e.length,s=r.length,c=-1,l=t.length,u=jt(a-s,0),d=n(l+u),f=!i;while(++c<l)d[c]=t[c];while(++o<s)(f||o<a)&&(d[r[o]]=e[o]);while(u--)d[c++]=e[o++];return d}function ra(e,t,r,i){var o=-1,a=e.length,s=-1,c=r.length,l=-1,u=t.length,d=jt(a-c,0),f=n(d+u),p=!i;while(++o<d)f[o]=e[o];var h=o;while(++l<u)f[h+l]=t[l];while(++s<c)(p||o<a)&&(f[h+r[s]]=e[o++]);return f}function ia(e,t){var r=-1,i=e.length;t||(t=n(i));while(++r<i)t[r]=e[r];return t}function oa(e,t,n,r){var i=!n;n||(n={});var a=-1,s=t.length;while(++a<s){var c=t[a],l=r?r(n[c],e[c],c,n,e):o;l===o&&(l=e[c]),i?hi(n,c,l):li(n,c,l)}return n}function aa(e,t){return oa(e,Ya(e),t)}function sa(e,t){return oa(e,Xa(e),t)}function ca(e,t){return function(n,r){var i=cu(n)?wn:di,o=t?t():{};return i(n,e,Ua(r,2),o)}}function la(e){return wo((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;a=e.length>3&&"function"==typeof a?(i--,a):o,s&&ss(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=nt(t);while(++r<i){var c=n[r];c&&e(t,c,r,a)}return t}))}function ua(e,t){return function(n,r){if(null==n)return n;if(!uu(n))return e(n,r);var i=n.length,o=t?i:-1,a=nt(n);while(t?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}function da(e){return function(t,n,r){var i=-1,o=nt(t),a=r(t),s=a.length;while(s--){var c=a[e?s:++i];if(!1===n(o[c],c,o))break}return t}}function fa(e,t,n){var r=t&_,i=ma(e);function o(){var t=this&&this!==cn&&this instanceof o?i:e;return t.apply(r?n:this,arguments)}return o}function pa(e){return function(t){t=Zu(t);var n=ar(t)?vr(t):o,r=n?n[0]:t.charAt(0),i=n?Vo(n,1).join(""):t.slice(1);return r[e]()+i}}function ha(e){return function(t){return Rn(xf(Kd(t).replace(Ht,"")),e,"")}}function ma(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=kr(e.prototype),r=e.apply(n,t);return Cu(r)?r:n}}function ga(e,t,r){var i=ma(e);function a(){var s=arguments.length,c=n(s),l=s,u=Ha(a);while(l--)c[l]=arguments[l];var d=s<3&&c[0]!==u&&c[s-1]!==u?[]:dr(c,u);if(s-=d.length,s<r)return Ea(e,t,_a,a.placeholder,o,c,d,o,o,r-s);var f=this&&this!==cn&&this instanceof a?i:e;return yn(f,this,c)}return a}function va(e){return function(t,n,r){var i=nt(t);if(!uu(t)){var a=Ua(n,3);t=xd(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function ba(e){return Pa((function(t){var n=t.length,r=n,i=Sr.prototype.thru;e&&t.reverse();while(r--){var a=t[r];if("function"!=typeof a)throw new ot(l);if(i&&!s&&"wrapper"==qa(a))var s=new Sr([],!0)}r=s?r:n;while(++r<n){a=t[r];var c=qa(a),u="wrapper"==c?za(a):o;s=u&&us(u[0])&&u[1]==(S|x|C|E)&&!u[4].length&&1==u[9]?s[qa(u[0])].apply(s,u[3]):1==a.length&&us(a)?s[c]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&cu(r))return s.plant(r).value();var i=0,o=n?t[i].apply(this,e):r;while(++i<n)o=t[i].call(this,o);return o}}))}function _a(e,t,r,i,a,s,c,l,u,d){var f=t&S,p=t&_,h=t&y,m=t&(x|k),g=t&T,v=h?o:ma(e);function b(){var o=arguments.length,_=n(o),y=o;while(y--)_[y]=arguments[y];if(m)var w=Ha(b),x=tr(_,w);if(i&&(_=na(_,i,a,m)),s&&(_=ra(_,s,c,m)),o-=x,m&&o<d){var k=dr(_,w);return Ea(e,t,_a,b.placeholder,r,_,k,l,u,d-o)}var C=p?r:this,A=h?C[e]:e;return o=_.length,l?_=xs(_,l):g&&o>1&&_.reverse(),f&&u<o&&(_.length=u),this&&this!==cn&&this instanceof b&&(A=v||ma(A)),A.apply(C,_)}return b}function ya(e,t){return function(n,r){return qi(n,e,t(r),{})}}function wa(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=Fo(n),r=Fo(r)):(n=Mo(n),r=Mo(r)),i=e(n,r)}return i}}function xa(e){return Pa((function(t){return t=Tn(t,Xn(Ua())),wo((function(n){var r=this;return e(t,(function(e){return yn(e,r,n)}))}))}))}function ka(e,t){t=t===o?" ":Fo(t);var n=t.length;if(n<2)return n?yo(t,e):t;var r=yo(t,Mt(e/gr(t)));return ar(t)?Vo(vr(r),0,e).join(""):r.slice(0,e)}function Ca(e,t,r,i){var o=t&_,a=ma(e);function s(){var t=-1,c=arguments.length,l=-1,u=i.length,d=n(u+c),f=this&&this!==cn&&this instanceof s?a:e;while(++l<u)d[l]=i[l];while(c--)d[l++]=arguments[++t];return yn(f,o?r:this,d)}return s}function Aa(e){return function(t,n,r){return r&&"number"!=typeof r&&ss(t,n,r)&&(n=r=o),t=Gu(t),n===o?(n=t,t=0):n=Gu(n),r=r===o?t<n?1:-1:Gu(r),_o(t,n,r,e)}}function Sa(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Xu(t),n=Xu(n)),e(t,n)}}function Ea(e,t,n,r,i,a,s,c,l,u){var d=t&x,f=d?s:o,p=d?o:s,h=d?a:o,m=d?o:a;t|=d?C:A,t&=~(d?A:C),t&w||(t&=~(_|y));var g=[e,t,i,h,f,m,p,c,l,u],v=n.apply(o,g);return us(e)&&Cs(v,g),v.placeholder=r,Es(v,e,t)}function Ta(e){var t=He[e];return function(e,n){if(e=Xu(e),n=null==n?0:zt(Ku(n),292),n&&It(e)){var r=(Zu(e)+"e").split("e"),i=t(r[0]+"e"+(+r[1]+n));return r=(Zu(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}var Oa=tn&&1/fr(new tn([,-0]))[1]==B?function(e){return new tn(e)}:$f;function Ra(e){return function(t){var n=Qa(t);return n==Z?lr(t):n==ae?pr(t):Kn(t,e(t))}}function Da(e,t,n,r,i,a,s,c){var u=t&y;if(!u&&"function"!=typeof e)throw new ot(l);var d=r?r.length:0;if(d||(t&=~(C|A),r=i=o),s=s===o?s:jt(Ku(s),0),c=c===o?c:Ku(c),d-=i?i.length:0,t&A){var f=r,p=i;r=i=o}var h=u?o:za(e),m=[e,t,n,r,i,f,p,a,s,c];if(h&&vs(m,h),e=m[0],t=m[1],n=m[2],r=m[3],i=m[4],c=m[9]=m[9]===o?u?0:e.length:jt(m[9]-d,0),!c&&t&(x|k)&&(t&=~(x|k)),t&&t!=_)g=t==x||t==k?ga(e,t,c):t!=C&&t!=(_|C)||i.length?_a.apply(o,m):Ca(e,t,n,r);else var g=fa(e,t,n);var v=h?Ao:Cs;return Es(v(g,m),e,t)}function La(e,t,n,r){return e===o||iu(e,ct[n])&&!dt.call(r,n)?t:e}function Ma(e,t,n,r,i,a){return Cu(e)&&Cu(t)&&(a.set(t,e),co(e,t,o,Ma,a),a["delete"](t)),e}function Fa(e){return Fu(e)?o:e}function Na(e,t,n,r,i,a){var s=n&v,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,h=n&b?new Yr:o;a.set(e,t),a.set(t,e);while(++f<c){var m=e[f],g=t[f];if(r)var _=s?r(g,m,f,t,e,a):r(m,g,f,e,t,a);if(_!==o){if(_)continue;p=!1;break}if(h){if(!Ln(t,(function(e,t){if(!Jn(h,t)&&(m===e||i(m,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(m!==g&&!i(m,g,n,r,a)){p=!1;break}}return a["delete"](e),a["delete"](t),p}function Ba(e,t,n,r,i,o,a){switch(n){case pe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fe:return!(e.byteLength!=t.byteLength||!o(new yt(e),new yt(t)));case G:case K:case ee:return iu(+e,+t);case X:return e.name==t.name&&e.message==t.message;case oe:case se:return e==t+"";case Z:var s=lr;case ae:var c=r&v;if(s||(s=fr),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=b,a.set(e,t);var u=Na(s(e),s(t),r,i,o,a);return a["delete"](e),u;case ce:if(hr)return hr.call(e)==hr.call(t)}return!1}function Ia(e,t,n,r,i,a){var s=n&v,c=$a(e),l=c.length,u=$a(t),d=u.length;if(l!=d&&!s)return!1;var f=l;while(f--){var p=c[f];if(!(s?p in t:dt.call(t,p)))return!1}var h=a.get(e),m=a.get(t);if(h&&m)return h==t&&m==e;var g=!0;a.set(e,t),a.set(t,e);var b=s;while(++f<l){p=c[f];var _=e[p],y=t[p];if(r)var w=s?r(y,_,p,t,e,a):r(_,y,p,e,t,a);if(!(w===o?_===y||i(_,y,n,r,a):w)){g=!1;break}b||(b="constructor"==p)}if(g&&!b){var x=e.constructor,k=t.constructor;x==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof k&&k instanceof k||(g=!1)}return a["delete"](e),a["delete"](t),g}function Pa(e){return Ss(ys(e,o,Ks),e+"")}function $a(e){return Ni(e,xd,Ya)}function ja(e){return Ni(e,kd,Xa)}var za=sn?function(e){return sn.get(e)}:$f;function qa(e){var t=e.name+"",n=ln[t],r=dt.call(ln,t)?n.length:0;while(r--){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Ha(e){var t=dt.call(wr,"placeholder")?wr:e;return t.placeholder}function Ua(){var e=wr.iteratee||Lf;return e=e===Lf?to:e,arguments.length?e(arguments[0],arguments[1]):e}function Wa(e,t){var n=e.__data__;return ls(t)?n["string"==typeof t?"string":"hash"]:n.map}function Va(e){var t=xd(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,hs(i)]}return t}function Ga(e,t){var n=or(e,t);return Qi(n)?n:o}function Ka(e){var t=dt.call(e,Tt),n=e[Tt];try{e[Tt]=o;var r=!0}catch(a){}var i=ht.call(e);return r&&(t?e[Tt]=n:delete e[Tt]),i}var Ya=Nt?function(e){return null==e?[]:(e=nt(e),An(Nt(e),(function(t){return Ct.call(e,t)})))}:Kf,Xa=Nt?function(e){var t=[];while(e)On(t,Ya(e)),e=xt(e);return t}:Kf,Qa=Bi;function Ja(e,t,n){var r=-1,i=n.length;while(++r<i){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=zt(t,e+a);break;case"takeRight":e=jt(e,t-a);break}}return{start:e,end:t}}function Za(e){var t=e.match(ze);return t?t[1].split(qe):[]}function es(e,t,n){t=Uo(t,e);var r=-1,i=t.length,o=!1;while(++r<i){var a=Ds(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=null==e?0:e.length,!!i&&ku(i)&&as(a,i)&&(cu(e)||su(e)))}function ts(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&dt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ns(e){return"function"!=typeof e.constructor||ps(e)?{}:kr(xt(e))}function rs(e,t,n){var r=e.constructor;switch(t){case fe:return Yo(e);case G:case K:return new r(+e);case pe:return Xo(e,n);case he:case me:case ge:case ve:case be:case _e:case ye:case we:case xe:return Zo(e,n);case Z:return new r;case ee:case se:return new r(e);case oe:return Qo(e);case ae:return new r;case ce:return Jo(e)}}function is(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(je,"{\n/* [wrapped with "+t+"] */\n")}function os(e){return cu(e)||su(e)||!!(St&&e&&e[St])}function as(e,t){var n=typeof e;return t=null==t?I:t,!!t&&("number"==n||"symbol"!=n&&Je.test(e))&&e>-1&&e%1==0&&e<t}function ss(e,t,n){if(!Cu(n))return!1;var r=typeof t;return!!("number"==r?uu(n)&&as(t,n.length):"string"==r&&t in n)&&iu(n[t],e)}function cs(e,t){if(cu(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!$u(e))||(Fe.test(e)||!Me.test(e)||null!=t&&e in nt(t))}function ls(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function us(e){var t=qa(e),n=wr[t];if("function"!=typeof n||!(t in Er.prototype))return!1;if(e===n)return!0;var r=za(n);return!!r&&e===r[0]}function ds(e){return!!pt&&pt in e}(Kt&&Qa(new Kt(new ArrayBuffer(1)))!=pe||Zt&&Qa(new Zt)!=Z||en&&Qa(en.resolve())!=re||tn&&Qa(new tn)!=ae||nn&&Qa(new nn)!=ue)&&(Qa=function(e){var t=Bi(e),n=t==ne?e.constructor:o,r=n?Ls(n):"";if(r)switch(r){case un:return pe;case fn:return Z;case pn:return re;case Mn:return ae;case Fn:return ue}return t});var fs=lt?wu:Yf;function ps(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||ct;return e===n}function hs(e){return e===e&&!Cu(e)}function ms(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in nt(n)))}}function gs(e){var t=jl(e,(function(e){return n.size===f&&n.clear(),e})),n=t.cache;return t}function vs(e,t){var n=e[1],r=t[1],i=n|r,o=i<(_|y|S),a=r==S&&n==x||r==S&&n==E&&e[7].length<=t[8]||r==(S|E)&&t[7].length<=t[8]&&n==x;if(!o&&!a)return e;r&_&&(e[2]=t[2],i|=n&_?0:w);var s=t[3];if(s){var c=e[3];e[3]=c?na(c,s,t[4]):s,e[4]=c?dr(e[3],p):t[4]}return s=t[5],s&&(c=e[5],e[5]=c?ra(c,s,t[6]):s,e[6]=c?dr(e[5],p):t[6]),s=t[7],s&&(e[7]=s),r&S&&(e[8]=null==e[8]?t[8]:zt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function bs(e){var t=[];if(null!=e)for(var n in nt(e))t.push(n);return t}function _s(e){return ht.call(e)}function ys(e,t,r){return t=jt(t===o?e.length-1:t,0),function(){var i=arguments,o=-1,a=jt(i.length-t,0),s=n(a);while(++o<a)s[o]=i[t+o];o=-1;var c=n(t+1);while(++o<t)c[o]=i[o];return c[t]=r(s),yn(e,this,c)}}function ws(e,t){return t.length<2?e:Fi(e,To(t,0,-1))}function xs(e,t){var n=e.length,r=zt(t.length,n),i=ia(e);while(r--){var a=t[r];e[r]=as(a,n)?i[a]:o}return e}function ks(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Cs=Ts(Ao),As=Lt||function(e,t){return cn.setTimeout(e,t)},Ss=Ts(So);function Es(e,t,n){var r=t+"";return Ss(e,is(r,Ms(Za(r),n)))}function Ts(e){var t=0,n=0;return function(){var r=qt(),i=L-(r-n);if(n=r,i>0){if(++t>=D)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Os(e,t){var n=-1,r=e.length,i=r-1;t=t===o?r:t;while(++n<t){var a=bo(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Rs=gs((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ne,(function(e,n,r,i){t.push(r?i.replace(We,"$1"):n||e)})),t}));function Ds(e){if("string"==typeof e||$u(e))return e;var t=e+"";return"0"==t&&1/e==-B?"-0":t}function Ls(e){if(null!=e){try{return ut.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ms(e,t){return xn(H,(function(n){var r="_."+n[0];t&n[1]&&!Sn(e,r)&&e.push(r)})),e.sort()}function Fs(e){if(e instanceof Er)return e.clone();var t=new Sr(e.__wrapped__,e.__chain__);return t.__actions__=ia(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ns(e,t,r){t=(r?ss(e,t,r):t===o)?1:jt(Ku(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];var a=0,s=0,c=n(Mt(i/t));while(a<i)c[s++]=To(e,a,a+=t);return c}function Bs(e){var t=-1,n=null==e?0:e.length,r=0,i=[];while(++t<n){var o=e[t];o&&(i[r++]=o)}return i}function Is(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],i=e;while(i--)t[i-1]=arguments[i];return On(cu(r)?ia(r):[r],Ti(t,1))}var Ps=wo((function(e,t){return du(e)?wi(e,Ti(t,1,du,!0)):[]})),$s=wo((function(e,t){var n=oc(t);return du(n)&&(n=o),du(e)?wi(e,Ti(t,1,du,!0),Ua(n,2)):[]})),js=wo((function(e,t){var n=oc(t);return du(n)&&(n=o),du(e)?wi(e,Ti(t,1,du,!0),o,n):[]}));function zs(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Ku(t),To(e,t<0?0:t,r)):[]}function qs(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Ku(t),t=r-t,To(e,0,t<0?0:t)):[]}function Hs(e,t){return e&&e.length?Po(e,Ua(t,3),!0,!0):[]}function Us(e,t){return e&&e.length?Po(e,Ua(t,3),!0):[]}function Ws(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ss(e,t,n)&&(n=0,r=i),Si(e,t,n,r)):[]}function Vs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ku(n);return i<0&&(i=jt(r+i,0)),In(e,Ua(t,3),i)}function Gs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=Ku(n),i=n<0?jt(r+i,0):zt(i,r-1)),In(e,Ua(t,3),i,!0)}function Ks(e){var t=null==e?0:e.length;return t?Ti(e,1):[]}function Ys(e){var t=null==e?0:e.length;return t?Ti(e,B):[]}function Xs(e,t){var n=null==e?0:e.length;return n?(t=t===o?1:Ku(t),Ti(e,t)):[]}function Qs(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var i=e[t];r[i[0]]=i[1]}return r}function Js(e){return e&&e.length?e[0]:o}function Zs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ku(n);return i<0&&(i=jt(r+i,0)),Pn(e,t,i)}function ec(e){var t=null==e?0:e.length;return t?To(e,0,-1):[]}var tc=wo((function(e){var t=Tn(e,qo);return t.length&&t[0]===e[0]?zi(t):[]})),nc=wo((function(e){var t=oc(e),n=Tn(e,qo);return t===oc(n)?t=o:n.pop(),n.length&&n[0]===e[0]?zi(n,Ua(t,2)):[]})),rc=wo((function(e){var t=oc(e),n=Tn(e,qo);return t="function"==typeof t?t:o,t&&n.pop(),n.length&&n[0]===e[0]?zi(n,o,t):[]}));function ic(e,t){return null==e?"":Pt.call(e,t)}function oc(e){var t=null==e?0:e.length;return t?e[t-1]:o}function ac(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=Ku(n),i=i<0?jt(r+i,0):zt(i,r-1)),t===t?mr(e,t,i):In(e,jn,i,!0)}function sc(e,t){return e&&e.length?uo(e,Ku(t)):o}var cc=wo(lc);function lc(e,t){return e&&e.length&&t&&t.length?go(e,t):e}function uc(e,t,n){return e&&e.length&&t&&t.length?go(e,t,Ua(n,2)):e}function dc(e,t,n){return e&&e.length&&t&&t.length?go(e,t,o,n):e}var fc=Pa((function(e,t){var n=null==e?0:e.length,r=mi(e,t);return vo(e,Tn(t,(function(e){return as(e,n)?+e:e})).sort(ea)),r}));function pc(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;t=Ua(t,3);while(++r<o){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return vo(e,i),n}function hc(e){return null==e?e:Gt.call(e)}function mc(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ss(e,t,n)?(t=0,n=r):(t=null==t?0:Ku(t),n=n===o?r:Ku(n)),To(e,t,n)):[]}function gc(e,t){return Ro(e,t)}function vc(e,t,n){return Do(e,t,Ua(n,2))}function bc(e,t){var n=null==e?0:e.length;if(n){var r=Ro(e,t);if(r<n&&iu(e[r],t))return r}return-1}function _c(e,t){return Ro(e,t,!0)}function yc(e,t,n){return Do(e,t,Ua(n,2),!0)}function wc(e,t){var n=null==e?0:e.length;if(n){var r=Ro(e,t,!0)-1;if(iu(e[r],t))return r}return-1}function xc(e){return e&&e.length?Lo(e):[]}function kc(e,t){return e&&e.length?Lo(e,Ua(t,2)):[]}function Cc(e){var t=null==e?0:e.length;return t?To(e,1,t):[]}function Ac(e,t,n){return e&&e.length?(t=n||t===o?1:Ku(t),To(e,0,t<0?0:t)):[]}function Sc(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Ku(t),t=r-t,To(e,t<0?0:t,r)):[]}function Ec(e,t){return e&&e.length?Po(e,Ua(t,3),!1,!0):[]}function Tc(e,t){return e&&e.length?Po(e,Ua(t,3)):[]}var Oc=wo((function(e){return No(Ti(e,1,du,!0))})),Rc=wo((function(e){var t=oc(e);return du(t)&&(t=o),No(Ti(e,1,du,!0),Ua(t,2))})),Dc=wo((function(e){var t=oc(e);return t="function"==typeof t?t:o,No(Ti(e,1,du,!0),o,t)}));function Lc(e){return e&&e.length?No(e):[]}function Mc(e,t){return e&&e.length?No(e,Ua(t,2)):[]}function Fc(e,t){return t="function"==typeof t?t:o,e&&e.length?No(e,o,t):[]}function Nc(e){if(!e||!e.length)return[];var t=0;return e=An(e,(function(e){if(du(e))return t=jt(e.length,t),!0})),Gn(t,(function(t){return Tn(e,qn(t))}))}function Bc(e,t){if(!e||!e.length)return[];var n=Nc(e);return null==t?n:Tn(n,(function(e){return yn(t,o,e)}))}var Ic=wo((function(e,t){return du(e)?wi(e,t):[]})),Pc=wo((function(e){return jo(An(e,du))})),$c=wo((function(e){var t=oc(e);return du(t)&&(t=o),jo(An(e,du),Ua(t,2))})),jc=wo((function(e){var t=oc(e);return t="function"==typeof t?t:o,jo(An(e,du),o,t)})),zc=wo(Nc);function qc(e,t){return zo(e||[],t||[],li)}function Hc(e,t){return zo(e||[],t||[],Co)}var Uc=wo((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,Bc(e,n)}));function Wc(e){var t=wr(e);return t.__chain__=!0,t}function Vc(e,t){return t(e),e}function Gc(e,t){return t(e)}var Kc=Pa((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return mi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Er&&as(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Gc,args:[i],thisArg:o}),new Sr(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));function Yc(){return Wc(this)}function Xc(){return new Sr(this.value(),this.__chain__)}function Qc(){this.__values__===o&&(this.__values__=Vu(this.value()));var e=this.__index__>=this.__values__.length,t=e?o:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Zc(e){var t,n=this;while(n instanceof Ar){var r=Fs(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function el(){var e=this.__wrapped__;if(e instanceof Er){var t=e;return this.__actions__.length&&(t=new Er(this)),t=t.reverse(),t.__actions__.push({func:Gc,args:[hc],thisArg:o}),new Sr(t,this.__chain__)}return this.thru(hc)}function tl(){return $o(this.__wrapped__,this.__actions__)}var nl=ca((function(e,t,n){dt.call(e,n)?++e[n]:hi(e,n,1)}));function rl(e,t,n){var r=cu(e)?Cn:Ci;return n&&ss(e,t,n)&&(t=o),r(e,Ua(t,3))}function il(e,t){var n=cu(e)?An:Ei;return n(e,Ua(t,3))}var ol=va(Vs),al=va(Gs);function sl(e,t){return Ti(gl(e,t),1)}function cl(e,t){return Ti(gl(e,t),B)}function ll(e,t,n){return n=n===o?1:Ku(n),Ti(gl(e,t),n)}function ul(e,t){var n=cu(e)?xn:xi;return n(e,Ua(t,3))}function dl(e,t){var n=cu(e)?kn:ki;return n(e,Ua(t,3))}var fl=ca((function(e,t,n){dt.call(e,n)?e[n].push(t):hi(e,n,[t])}));function pl(e,t,n,r){e=uu(e)?e:zd(e),n=n&&!r?Ku(n):0;var i=e.length;return n<0&&(n=jt(i+n,0)),Pu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Pn(e,t,n)>-1}var hl=wo((function(e,t,r){var i=-1,o="function"==typeof t,a=uu(e)?n(e.length):[];return xi(e,(function(e){a[++i]=o?yn(t,e,r):Hi(e,t,r)})),a})),ml=ca((function(e,t,n){hi(e,n,t)}));function gl(e,t){var n=cu(e)?Tn:oo;return n(e,Ua(t,3))}function vl(e,t,n,r){return null==e?[]:(cu(t)||(t=null==t?[]:[t]),n=r?o:n,cu(n)||(n=null==n?[]:[n]),fo(e,t,n))}var bl=ca((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function _l(e,t,n){var r=cu(e)?Rn:Un,i=arguments.length<3;return r(e,Ua(t,4),n,i,xi)}function yl(e,t,n){var r=cu(e)?Dn:Un,i=arguments.length<3;return r(e,Ua(t,4),n,i,ki)}function wl(e,t){var n=cu(e)?An:Ei;return n(e,zl(Ua(t,3)))}function xl(e){var t=cu(e)?oi:xo;return t(e)}function kl(e,t,n){t=(n?ss(e,t,n):t===o)?1:Ku(t);var r=cu(e)?ai:ko;return r(e,t)}function Cl(e){var t=cu(e)?si:Eo;return t(e)}function Al(e){if(null==e)return 0;if(uu(e))return Pu(e)?gr(e):e.length;var t=Qa(e);return t==Z||t==ae?e.size:no(e).length}function Sl(e,t,n){var r=cu(e)?Ln:Oo;return n&&ss(e,t,n)&&(t=o),r(e,Ua(t,3))}var El=wo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ss(e,t[0],t[1])?t=[]:n>2&&ss(t[0],t[1],t[2])&&(t=[t[0]]),fo(e,Ti(t,1),[])})),Tl=Dt||function(){return cn.Date.now()};function Ol(e,t){if("function"!=typeof t)throw new ot(l);return e=Ku(e),function(){if(--e<1)return t.apply(this,arguments)}}function Rl(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Da(e,S,o,o,o,o,t)}function Dl(e,t){var n;if("function"!=typeof t)throw new ot(l);return e=Ku(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ll=wo((function(e,t,n){var r=_;if(n.length){var i=dr(n,Ha(Ll));r|=C}return Da(e,r,t,n,i)})),Ml=wo((function(e,t,n){var r=_|y;if(n.length){var i=dr(n,Ha(Ml));r|=C}return Da(t,r,e,n,i)}));function Fl(e,t,n){t=n?o:t;var r=Da(e,x,o,o,o,o,o,t);return r.placeholder=Fl.placeholder,r}function Nl(e,t,n){t=n?o:t;var r=Da(e,k,o,o,o,o,o,t);return r.placeholder=Nl.placeholder,r}function Bl(e,t,n){var r,i,a,s,c,u,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new ot(l);function m(t){var n=r,a=i;return r=i=o,d=t,s=e.apply(a,n),s}function g(e){return d=e,c=As(_,t),f?m(e):s}function v(e){var n=e-u,r=e-d,i=t-n;return p?zt(i,a-r):i}function b(e){var n=e-u,r=e-d;return u===o||n>=t||n<0||p&&r>=a}function _(){var e=Tl();if(b(e))return y(e);c=As(_,v(e))}function y(e){return c=o,h&&r?m(e):(r=i=o,s)}function w(){c!==o&&Go(c),d=0,r=u=i=c=o}function x(){return c===o?s:y(Tl())}function k(){var e=Tl(),n=b(e);if(r=arguments,i=this,u=e,n){if(c===o)return g(u);if(p)return Go(c),c=As(_,t),m(u)}return c===o&&(c=As(_,t)),s}return t=Xu(t)||0,Cu(n)&&(f=!!n.leading,p="maxWait"in n,a=p?jt(Xu(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),k.cancel=w,k.flush=x,k}var Il=wo((function(e,t){return yi(e,1,t)})),Pl=wo((function(e,t,n){return yi(e,Xu(t)||0,n)}));function $l(e){return Da(e,T)}function jl(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(l);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(jl.Cache||Hr),n}function zl(e){if("function"!=typeof e)throw new ot(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ql(e){return Dl(2,e)}jl.Cache=Hr;var Hl=Wo((function(e,t){t=1==t.length&&cu(t[0])?Tn(t[0],Xn(Ua())):Tn(Ti(t,1),Xn(Ua()));var n=t.length;return wo((function(r){var i=-1,o=zt(r.length,n);while(++i<o)r[i]=t[i].call(this,r[i]);return yn(e,this,r)}))})),Ul=wo((function(e,t){var n=dr(t,Ha(Ul));return Da(e,C,o,t,n)})),Wl=wo((function(e,t){var n=dr(t,Ha(Wl));return Da(e,A,o,t,n)})),Vl=Pa((function(e,t){return Da(e,E,o,o,o,t)}));function Gl(e,t){if("function"!=typeof e)throw new ot(l);return t=t===o?t:Ku(t),wo(e,t)}function Kl(e,t){if("function"!=typeof e)throw new ot(l);return t=null==t?0:jt(Ku(t),0),wo((function(n){var r=n[t],i=Vo(n,0,t);return r&&On(i,r),yn(e,this,i)}))}function Yl(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ot(l);return Cu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Bl(e,t,{leading:r,maxWait:t,trailing:i})}function Xl(e){return Rl(e,1)}function Ql(e,t){return Ul(Ho(t),e)}function Jl(){if(!arguments.length)return[];var e=arguments[0];return cu(e)?e:[e]}function Zl(e){return vi(e,g)}function eu(e,t){return t="function"==typeof t?t:o,vi(e,g,t)}function tu(e){return vi(e,h|g)}function nu(e,t){return t="function"==typeof t?t:o,vi(e,h|g,t)}function ru(e,t){return null==t||_i(e,t,xd(t))}function iu(e,t){return e===t||e!==e&&t!==t}var ou=Sa(Ii),au=Sa((function(e,t){return e>=t})),su=Ui(function(){return arguments}())?Ui:function(e){return Au(e)&&dt.call(e,"callee")&&!Ct.call(e,"callee")},cu=n.isArray,lu=hn?Xn(hn):Wi;function uu(e){return null!=e&&ku(e.length)&&!wu(e)}function du(e){return Au(e)&&uu(e)}function fu(e){return!0===e||!1===e||Au(e)&&Bi(e)==G}var pu=Bt||Yf,hu=mn?Xn(mn):Vi;function mu(e){return Au(e)&&1===e.nodeType&&!Fu(e)}function gu(e){if(null==e)return!0;if(uu(e)&&(cu(e)||"string"==typeof e||"function"==typeof e.splice||pu(e)||ju(e)||su(e)))return!e.length;var t=Qa(e);if(t==Z||t==ae)return!e.size;if(ps(e))return!no(e).length;for(var n in e)if(dt.call(e,n))return!1;return!0}function vu(e,t){return Gi(e,t)}function bu(e,t,n){n="function"==typeof n?n:o;var r=n?n(e,t):o;return r===o?Gi(e,t,o,n):!!r}function _u(e){if(!Au(e))return!1;var t=Bi(e);return t==X||t==Y||"string"==typeof e.message&&"string"==typeof e.name&&!Fu(e)}function yu(e){return"number"==typeof e&&It(e)}function wu(e){if(!Cu(e))return!1;var t=Bi(e);return t==Q||t==J||t==V||t==ie}function xu(e){return"number"==typeof e&&e==Ku(e)}function ku(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=I}function Cu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Au(e){return null!=e&&"object"==typeof e}var Su=gn?Xn(gn):Yi;function Eu(e,t){return e===t||Xi(e,t,Va(t))}function Tu(e,t,n){return n="function"==typeof n?n:o,Xi(e,t,Va(t),n)}function Ou(e){return Mu(e)&&e!=+e}function Ru(e){if(fs(e))throw new i(c);return Qi(e)}function Du(e){return null===e}function Lu(e){return null==e}function Mu(e){return"number"==typeof e||Au(e)&&Bi(e)==ee}function Fu(e){if(!Au(e)||Bi(e)!=ne)return!1;var t=xt(e);if(null===t)return!0;var n=dt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==mt}var Nu=vn?Xn(vn):Ji;function Bu(e){return xu(e)&&e>=-I&&e<=I}var Iu=bn?Xn(bn):Zi;function Pu(e){return"string"==typeof e||!cu(e)&&Au(e)&&Bi(e)==se}function $u(e){return"symbol"==typeof e||Au(e)&&Bi(e)==ce}var ju=_n?Xn(_n):eo;function zu(e){return e===o}function qu(e){return Au(e)&&Qa(e)==ue}function Hu(e){return Au(e)&&Bi(e)==de}var Uu=Sa(io),Wu=Sa((function(e,t){return e<=t}));function Vu(e){if(!e)return[];if(uu(e))return Pu(e)?vr(e):ia(e);if(Et&&e[Et])return cr(e[Et]());var t=Qa(e),n=t==Z?lr:t==ae?fr:zd;return n(e)}function Gu(e){if(!e)return 0===e?e:0;if(e=Xu(e),e===B||e===-B){var t=e<0?-1:1;return t*P}return e===e?e:0}function Ku(e){var t=Gu(e),n=t%1;return t===t?n?t-n:t:0}function Yu(e){return e?gi(Ku(e),0,j):0}function Xu(e){if("number"==typeof e)return e;if($u(e))return $;if(Cu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Cu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yn(e);var n=Ye.test(e);return n||Qe.test(e)?on(e.slice(2),n?2:8):Ke.test(e)?$:+e}function Qu(e){return oa(e,kd(e))}function Ju(e){return e?gi(Ku(e),-I,I):0===e?e:0}function Zu(e){return null==e?"":Fo(e)}var ed=la((function(e,t){if(ps(t)||uu(t))oa(t,xd(t),e);else for(var n in t)dt.call(t,n)&&li(e,n,t[n])})),td=la((function(e,t){oa(t,kd(t),e)})),nd=la((function(e,t,n,r){oa(t,kd(t),e,r)})),rd=la((function(e,t,n,r){oa(t,xd(t),e,r)})),id=Pa(mi);function od(e,t){var n=kr(e);return null==t?n:fi(n,t)}var ad=wo((function(e,t){e=nt(e);var n=-1,r=t.length,i=r>2?t[2]:o;i&&ss(t[0],t[1],i)&&(r=1);while(++n<r){var a=t[n],s=kd(a),c=-1,l=s.length;while(++c<l){var u=s[c],d=e[u];(d===o||iu(d,ct[u])&&!dt.call(e,u))&&(e[u]=a[u])}}return e})),sd=wo((function(e){return e.push(o,Ma),yn(Ed,o,e)}));function cd(e,t){return Bn(e,Ua(t,3),Di)}function ld(e,t){return Bn(e,Ua(t,3),Li)}function ud(e,t){return null==e?e:Oi(e,Ua(t,3),kd)}function dd(e,t){return null==e?e:Ri(e,Ua(t,3),kd)}function fd(e,t){return e&&Di(e,Ua(t,3))}function pd(e,t){return e&&Li(e,Ua(t,3))}function hd(e){return null==e?[]:Mi(e,xd(e))}function md(e){return null==e?[]:Mi(e,kd(e))}function gd(e,t,n){var r=null==e?o:Fi(e,t);return r===o?n:r}function vd(e,t){return null!=e&&es(e,t,Pi)}function bd(e,t){return null!=e&&es(e,t,$i)}var _d=ya((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ht.call(t)),e[t]=n}),Ef(Df)),yd=ya((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=ht.call(t)),dt.call(e,t)?e[t].push(n):e[t]=[n]}),Ua),wd=wo(Hi);function xd(e){return uu(e)?ii(e):no(e)}function kd(e){return uu(e)?ii(e,!0):ro(e)}function Cd(e,t){var n={};return t=Ua(t,3),Di(e,(function(e,r,i){hi(n,t(e,r,i),e)})),n}function Ad(e,t){var n={};return t=Ua(t,3),Di(e,(function(e,r,i){hi(n,r,t(e,r,i))})),n}var Sd=la((function(e,t,n){co(e,t,n)})),Ed=la((function(e,t,n,r){co(e,t,n,r)})),Td=Pa((function(e,t){var n={};if(null==e)return n;var r=!1;t=Tn(t,(function(t){return t=Uo(t,e),r||(r=t.length>1),t})),oa(e,ja(e),n),r&&(n=vi(n,h|m|g,Fa));var i=t.length;while(i--)Bo(n,t[i]);return n}));function Od(e,t){return Dd(e,zl(Ua(t)))}var Rd=Pa((function(e,t){return null==e?{}:po(e,t)}));function Dd(e,t){if(null==e)return{};var n=Tn(ja(e),(function(e){return[e]}));return t=Ua(t),ho(e,n,(function(e,n){return t(e,n[0])}))}function Ld(e,t,n){t=Uo(t,e);var r=-1,i=t.length;i||(i=1,e=o);while(++r<i){var a=null==e?o:e[Ds(t[r])];a===o&&(r=i,a=n),e=wu(a)?a.call(e):a}return e}function Md(e,t,n){return null==e?e:Co(e,t,n)}function Fd(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Co(e,t,n,r)}var Nd=Ra(xd),Bd=Ra(kd);function Id(e,t,n){var r=cu(e),i=r||pu(e)||ju(e);if(t=Ua(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Cu(e)&&wu(o)?kr(xt(e)):{}}return(i?xn:Di)(e,(function(e,r,i){return t(n,e,r,i)})),n}function Pd(e,t){return null==e||Bo(e,t)}function $d(e,t,n){return null==e?e:Io(e,t,Ho(n))}function jd(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Io(e,t,Ho(n),r)}function zd(e){return null==e?[]:Qn(e,xd(e))}function qd(e){return null==e?[]:Qn(e,kd(e))}function Hd(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=Xu(n),n=n===n?n:0),t!==o&&(t=Xu(t),t=t===t?t:0),gi(Xu(e),t,n)}function Ud(e,t,n){return t=Gu(t),n===o?(n=t,t=0):n=Gu(n),e=Xu(e),ji(e,t,n)}function Wd(e,t,n){if(n&&"boolean"!=typeof n&&ss(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=Gu(e),t===o?(t=e,e=0):t=Gu(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Vt();return zt(e+i*(t-e+rn("1e-"+((i+"").length-1))),t)}return bo(e,t)}var Vd=ha((function(e,t,n){return t=t.toLowerCase(),e+(n?Gd(t):t)}));function Gd(e){return wf(Zu(e).toLowerCase())}function Kd(e){return e=Zu(e),e&&e.replace(Ze,nr).replace(Ut,"")}function Yd(e,t,n){e=Zu(e),t=Fo(t);var r=e.length;n=n===o?r:gi(Ku(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function Xd(e){return e=Zu(e),e&&Oe.test(e)?e.replace(Ee,rr):e}function Qd(e){return e=Zu(e),e&&Ie.test(e)?e.replace(Be,"\\$&"):e}var Jd=ha((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Zd=ha((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),ef=pa("toLowerCase");function tf(e,t,n){e=Zu(e),t=Ku(t);var r=t?gr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return ka(Ft(i),n)+e+ka(Mt(i),n)}function nf(e,t,n){e=Zu(e),t=Ku(t);var r=t?gr(e):0;return t&&r<t?e+ka(t-r,n):e}function rf(e,t,n){e=Zu(e),t=Ku(t);var r=t?gr(e):0;return t&&r<t?ka(t-r,n)+e:e}function of(e,t,n){return n||null==t?t=0:t&&(t=+t),Wt(Zu(e).replace(Pe,""),t||0)}function af(e,t,n){return t=(n?ss(e,t,n):t===o)?1:Ku(t),yo(Zu(e),t)}function sf(){var e=arguments,t=Zu(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var cf=ha((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function lf(e,t,n){return n&&"number"!=typeof n&&ss(e,t,n)&&(t=n=o),n=n===o?j:n>>>0,n?(e=Zu(e),e&&("string"==typeof t||null!=t&&!Nu(t))&&(t=Fo(t),!t&&ar(e))?Vo(vr(e),0,n):e.split(t,n)):[]}var uf=ha((function(e,t,n){return e+(n?" ":"")+wf(t)}));function df(e,t,n){return e=Zu(e),n=null==n?0:gi(Ku(n),0,e.length),t=Fo(t),e.slice(n,n+t.length)==t}function ff(e,t,n){var r=wr.templateSettings;n&&ss(e,t,n)&&(t=o),e=Zu(e),t=nd({},t,r,La);var a,s,c=nd({},t.imports,r.imports,La),l=xd(c),d=Qn(c,l),f=0,p=t.interpolate||et,h="__p += '",m=rt((t.escape||et).source+"|"+p.source+"|"+(p===Le?Ve:et).source+"|"+(t.evaluate||et).source+"|$","g"),g="//# sourceURL="+(dt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xt+"]")+"\n";e.replace(m,(function(t,n,r,i,o,c){return r||(r=i),h+=e.slice(f,c).replace(tt,ir),n&&(a=!0,h+="' +\n__e("+n+") +\n'"),o&&(s=!0,h+="';\n"+o+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=c+t.length,t})),h+="';\n";var v=dt.call(t,"variable")&&t.variable;if(v){if(Ue.test(v))throw new i(u)}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(ke,""):h).replace(Ce,"$1").replace(Ae,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var b=kf((function(){return $e(l,g+"return "+h).apply(o,d)}));if(b.source=h,_u(b))throw b;return b}function pf(e){return Zu(e).toLowerCase()}function hf(e){return Zu(e).toUpperCase()}function mf(e,t,n){if(e=Zu(e),e&&(n||t===o))return Yn(e);if(!e||!(t=Fo(t)))return e;var r=vr(e),i=vr(t),a=Zn(r,i),s=er(r,i)+1;return Vo(r,a,s).join("")}function gf(e,t,n){if(e=Zu(e),e&&(n||t===o))return e.slice(0,br(e)+1);if(!e||!(t=Fo(t)))return e;var r=vr(e),i=er(r,vr(t))+1;return Vo(r,0,i).join("")}function vf(e,t,n){if(e=Zu(e),e&&(n||t===o))return e.replace(Pe,"");if(!e||!(t=Fo(t)))return e;var r=vr(e),i=Zn(r,vr(t));return Vo(r,i).join("")}function bf(e,t){var n=O,r=R;if(Cu(t)){var i="separator"in t?t.separator:i;n="length"in t?Ku(t.length):n,r="omission"in t?Fo(t.omission):r}e=Zu(e);var a=e.length;if(ar(e)){var s=vr(e);a=s.length}if(n>=a)return e;var c=n-gr(r);if(c<1)return r;var l=s?Vo(s,0,c).join(""):e.slice(0,c);if(i===o)return l+r;if(s&&(c+=l.length-c),Nu(i)){if(e.slice(c).search(i)){var u,d=l;i.global||(i=rt(i.source,Zu(Ge.exec(i))+"g")),i.lastIndex=0;while(u=i.exec(d))var f=u.index;l=l.slice(0,f===o?c:f)}}else if(e.indexOf(Fo(i),c)!=c){var p=l.lastIndexOf(i);p>-1&&(l=l.slice(0,p))}return l+r}function _f(e){return e=Zu(e),e&&Te.test(e)?e.replace(Se,_r):e}var yf=ha((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),wf=pa("toUpperCase");function xf(e,t,n){return e=Zu(e),t=n?o:t,t===o?sr(e)?xr(e):Nn(e):e.match(t)||[]}var kf=wo((function(e,t){try{return yn(e,o,t)}catch(n){return _u(n)?n:new i(n)}})),Cf=Pa((function(e,t){return xn(t,(function(t){t=Ds(t),hi(e,t,Ll(e[t],e))})),e}));function Af(e){var t=null==e?0:e.length,n=Ua();return e=t?Tn(e,(function(e){if("function"!=typeof e[1])throw new ot(l);return[n(e[0]),e[1]]})):[],wo((function(n){var r=-1;while(++r<t){var i=e[r];if(yn(i[0],this,n))return yn(i[1],this,n)}}))}function Sf(e){return bi(vi(e,h))}function Ef(e){return function(){return e}}function Tf(e,t){return null==e||e!==e?t:e}var Of=ba(),Rf=ba(!0);function Df(e){return e}function Lf(e){return to("function"==typeof e?e:vi(e,h))}function Mf(e){return ao(vi(e,h))}function Ff(e,t){return so(e,vi(t,h))}var Nf=wo((function(e,t){return function(n){return Hi(n,e,t)}})),Bf=wo((function(e,t){return function(n){return Hi(e,n,t)}}));function If(e,t,n){var r=xd(t),i=Mi(t,r);null!=n||Cu(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Mi(t,xd(t)));var o=!(Cu(n)&&"chain"in n)||!!n.chain,a=wu(e);return xn(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=ia(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,On([this.value()],arguments))})})),e}function Pf(){return cn._===this&&(cn._=gt),this}function $f(){}function jf(e){return e=Ku(e),wo((function(t){return uo(t,e)}))}var zf=xa(Tn),qf=xa(Cn),Hf=xa(Ln);function Uf(e){return cs(e)?qn(Ds(e)):mo(e)}function Wf(e){return function(t){return null==e?o:Fi(e,t)}}var Vf=Aa(),Gf=Aa(!0);function Kf(){return[]}function Yf(){return!1}function Xf(){return{}}function Qf(){return""}function Jf(){return!0}function Zf(e,t){if(e=Ku(e),e<1||e>I)return[];var n=j,r=zt(e,j);t=Ua(t),e-=j;var i=Gn(r,t);while(++n<e)t(n);return i}function ep(e){return cu(e)?Tn(e,Ds):$u(e)?[e]:ia(Rs(Zu(e)))}function tp(e){var t=++ft;return Zu(e)+t}var np=wa((function(e,t){return e+t}),0),rp=Ta("ceil"),ip=wa((function(e,t){return e/t}),1),op=Ta("floor");function ap(e){return e&&e.length?Ai(e,Df,Ii):o}function sp(e,t){return e&&e.length?Ai(e,Ua(t,2),Ii):o}function cp(e){return zn(e,Df)}function lp(e,t){return zn(e,Ua(t,2))}function up(e){return e&&e.length?Ai(e,Df,io):o}function dp(e,t){return e&&e.length?Ai(e,Ua(t,2),io):o}var fp=wa((function(e,t){return e*t}),1),pp=Ta("round"),hp=wa((function(e,t){return e-t}),0);function mp(e){return e&&e.length?Vn(e,Df):0}function gp(e,t){return e&&e.length?Vn(e,Ua(t,2)):0}return wr.after=Ol,wr.ary=Rl,wr.assign=ed,wr.assignIn=td,wr.assignInWith=nd,wr.assignWith=rd,wr.at=id,wr.before=Dl,wr.bind=Ll,wr.bindAll=Cf,wr.bindKey=Ml,wr.castArray=Jl,wr.chain=Wc,wr.chunk=Ns,wr.compact=Bs,wr.concat=Is,wr.cond=Af,wr.conforms=Sf,wr.constant=Ef,wr.countBy=nl,wr.create=od,wr.curry=Fl,wr.curryRight=Nl,wr.debounce=Bl,wr.defaults=ad,wr.defaultsDeep=sd,wr.defer=Il,wr.delay=Pl,wr.difference=Ps,wr.differenceBy=$s,wr.differenceWith=js,wr.drop=zs,wr.dropRight=qs,wr.dropRightWhile=Hs,wr.dropWhile=Us,wr.fill=Ws,wr.filter=il,wr.flatMap=sl,wr.flatMapDeep=cl,wr.flatMapDepth=ll,wr.flatten=Ks,wr.flattenDeep=Ys,wr.flattenDepth=Xs,wr.flip=$l,wr.flow=Of,wr.flowRight=Rf,wr.fromPairs=Qs,wr.functions=hd,wr.functionsIn=md,wr.groupBy=fl,wr.initial=ec,wr.intersection=tc,wr.intersectionBy=nc,wr.intersectionWith=rc,wr.invert=_d,wr.invertBy=yd,wr.invokeMap=hl,wr.iteratee=Lf,wr.keyBy=ml,wr.keys=xd,wr.keysIn=kd,wr.map=gl,wr.mapKeys=Cd,wr.mapValues=Ad,wr.matches=Mf,wr.matchesProperty=Ff,wr.memoize=jl,wr.merge=Sd,wr.mergeWith=Ed,wr.method=Nf,wr.methodOf=Bf,wr.mixin=If,wr.negate=zl,wr.nthArg=jf,wr.omit=Td,wr.omitBy=Od,wr.once=ql,wr.orderBy=vl,wr.over=zf,wr.overArgs=Hl,wr.overEvery=qf,wr.overSome=Hf,wr.partial=Ul,wr.partialRight=Wl,wr.partition=bl,wr.pick=Rd,wr.pickBy=Dd,wr.property=Uf,wr.propertyOf=Wf,wr.pull=cc,wr.pullAll=lc,wr.pullAllBy=uc,wr.pullAllWith=dc,wr.pullAt=fc,wr.range=Vf,wr.rangeRight=Gf,wr.rearg=Vl,wr.reject=wl,wr.remove=pc,wr.rest=Gl,wr.reverse=hc,wr.sampleSize=kl,wr.set=Md,wr.setWith=Fd,wr.shuffle=Cl,wr.slice=mc,wr.sortBy=El,wr.sortedUniq=xc,wr.sortedUniqBy=kc,wr.split=lf,wr.spread=Kl,wr.tail=Cc,wr.take=Ac,wr.takeRight=Sc,wr.takeRightWhile=Ec,wr.takeWhile=Tc,wr.tap=Vc,wr.throttle=Yl,wr.thru=Gc,wr.toArray=Vu,wr.toPairs=Nd,wr.toPairsIn=Bd,wr.toPath=ep,wr.toPlainObject=Qu,wr.transform=Id,wr.unary=Xl,wr.union=Oc,wr.unionBy=Rc,wr.unionWith=Dc,wr.uniq=Lc,wr.uniqBy=Mc,wr.uniqWith=Fc,wr.unset=Pd,wr.unzip=Nc,wr.unzipWith=Bc,wr.update=$d,wr.updateWith=jd,wr.values=zd,wr.valuesIn=qd,wr.without=Ic,wr.words=xf,wr.wrap=Ql,wr.xor=Pc,wr.xorBy=$c,wr.xorWith=jc,wr.zip=zc,wr.zipObject=qc,wr.zipObjectDeep=Hc,wr.zipWith=Uc,wr.entries=Nd,wr.entriesIn=Bd,wr.extend=td,wr.extendWith=nd,If(wr,wr),wr.add=np,wr.attempt=kf,wr.camelCase=Vd,wr.capitalize=Gd,wr.ceil=rp,wr.clamp=Hd,wr.clone=Zl,wr.cloneDeep=tu,wr.cloneDeepWith=nu,wr.cloneWith=eu,wr.conformsTo=ru,wr.deburr=Kd,wr.defaultTo=Tf,wr.divide=ip,wr.endsWith=Yd,wr.eq=iu,wr.escape=Xd,wr.escapeRegExp=Qd,wr.every=rl,wr.find=ol,wr.findIndex=Vs,wr.findKey=cd,wr.findLast=al,wr.findLastIndex=Gs,wr.findLastKey=ld,wr.floor=op,wr.forEach=ul,wr.forEachRight=dl,wr.forIn=ud,wr.forInRight=dd,wr.forOwn=fd,wr.forOwnRight=pd,wr.get=gd,wr.gt=ou,wr.gte=au,wr.has=vd,wr.hasIn=bd,wr.head=Js,wr.identity=Df,wr.includes=pl,wr.indexOf=Zs,wr.inRange=Ud,wr.invoke=wd,wr.isArguments=su,wr.isArray=cu,wr.isArrayBuffer=lu,wr.isArrayLike=uu,wr.isArrayLikeObject=du,wr.isBoolean=fu,wr.isBuffer=pu,wr.isDate=hu,wr.isElement=mu,wr.isEmpty=gu,wr.isEqual=vu,wr.isEqualWith=bu,wr.isError=_u,wr.isFinite=yu,wr.isFunction=wu,wr.isInteger=xu,wr.isLength=ku,wr.isMap=Su,wr.isMatch=Eu,wr.isMatchWith=Tu,wr.isNaN=Ou,wr.isNative=Ru,wr.isNil=Lu,wr.isNull=Du,wr.isNumber=Mu,wr.isObject=Cu,wr.isObjectLike=Au,wr.isPlainObject=Fu,wr.isRegExp=Nu,wr.isSafeInteger=Bu,wr.isSet=Iu,wr.isString=Pu,wr.isSymbol=$u,wr.isTypedArray=ju,wr.isUndefined=zu,wr.isWeakMap=qu,wr.isWeakSet=Hu,wr.join=ic,wr.kebabCase=Jd,wr.last=oc,wr.lastIndexOf=ac,wr.lowerCase=Zd,wr.lowerFirst=ef,wr.lt=Uu,wr.lte=Wu,wr.max=ap,wr.maxBy=sp,wr.mean=cp,wr.meanBy=lp,wr.min=up,wr.minBy=dp,wr.stubArray=Kf,wr.stubFalse=Yf,wr.stubObject=Xf,wr.stubString=Qf,wr.stubTrue=Jf,wr.multiply=fp,wr.nth=sc,wr.noConflict=Pf,wr.noop=$f,wr.now=Tl,wr.pad=tf,wr.padEnd=nf,wr.padStart=rf,wr.parseInt=of,wr.random=Wd,wr.reduce=_l,wr.reduceRight=yl,wr.repeat=af,wr.replace=sf,wr.result=Ld,wr.round=pp,wr.runInContext=e,wr.sample=xl,wr.size=Al,wr.snakeCase=cf,wr.some=Sl,wr.sortedIndex=gc,wr.sortedIndexBy=vc,wr.sortedIndexOf=bc,wr.sortedLastIndex=_c,wr.sortedLastIndexBy=yc,wr.sortedLastIndexOf=wc,wr.startCase=uf,wr.startsWith=df,wr.subtract=hp,wr.sum=mp,wr.sumBy=gp,wr.template=ff,wr.times=Zf,wr.toFinite=Gu,wr.toInteger=Ku,wr.toLength=Yu,wr.toLower=pf,wr.toNumber=Xu,wr.toSafeInteger=Ju,wr.toString=Zu,wr.toUpper=hf,wr.trim=mf,wr.trimEnd=gf,wr.trimStart=vf,wr.truncate=bf,wr.unescape=_f,wr.uniqueId=tp,wr.upperCase=yf,wr.upperFirst=wf,wr.each=ul,wr.eachRight=dl,wr.first=Js,If(wr,function(){var e={};return Di(wr,(function(t,n){dt.call(wr.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),wr.VERSION=a,xn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){wr[e].placeholder=wr})),xn(["drop","take"],(function(e,t){Er.prototype[e]=function(n){n=n===o?1:jt(Ku(n),0);var r=this.__filtered__&&!t?new Er(this):this.clone();return r.__filtered__?r.__takeCount__=zt(n,r.__takeCount__):r.__views__.push({size:zt(n,j),type:e+(r.__dir__<0?"Right":"")}),r},Er.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),xn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==M||n==N;Er.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ua(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),xn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Er.prototype[e]=function(){return this[n](1).value()[0]}})),xn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Er.prototype[e]=function(){return this.__filtered__?new Er(this):this[n](1)}})),Er.prototype.compact=function(){return this.filter(Df)},Er.prototype.find=function(e){return this.filter(e).head()},Er.prototype.findLast=function(e){return this.reverse().find(e)},Er.prototype.invokeMap=wo((function(e,t){return"function"==typeof e?new Er(this):this.map((function(n){return Hi(n,e,t)}))})),Er.prototype.reject=function(e){return this.filter(zl(Ua(e)))},Er.prototype.slice=function(e,t){e=Ku(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Er(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(t=Ku(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Er.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Er.prototype.toArray=function(){return this.take(j)},Di(Er.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=wr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(wr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,c=t instanceof Er,l=s[0],u=c||cu(t),d=function(e){var t=i.apply(wr,On([e],s));return r&&f?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,m=c&&!p;if(!a&&u){t=m?t:new Er(this);var g=e.apply(t,s);return g.__actions__.push({func:Gc,args:[d],thisArg:o}),new Sr(g,f)}return h&&m?e.apply(this,s):(g=this.thru(d),h?r?g.value()[0]:g.value():g)})})),xn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);wr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(cu(i)?i:[],e)}return this[n]((function(n){return t.apply(cu(n)?n:[],e)}))}})),Di(Er.prototype,(function(e,t){var n=wr[t];if(n){var r=n.name+"";dt.call(ln,r)||(ln[r]=[]),ln[r].push({name:t,func:n})}})),ln[_a(o,y).name]=[{name:"wrapper",func:o}],Er.prototype.clone=Tr,Er.prototype.reverse=Or,Er.prototype.value=Rr,wr.prototype.at=Kc,wr.prototype.chain=Yc,wr.prototype.commit=Xc,wr.prototype.next=Qc,wr.prototype.plant=Zc,wr.prototype.reverse=el,wr.prototype.toJSON=wr.prototype.valueOf=wr.prototype.value=tl,wr.prototype.first=wr.prototype.head,Et&&(wr.prototype[Et]=Jc),wr},Cr=kr();cn._=Cr,i=function(){return Cr}.call(t,n,t,r),i===o||(r.exports=i)}).call(this)}).call(this,n("c8ba"),n("62e4")(e))},"2f62":function(e,t,n){"use strict";
/**
* vuex v3.1.0
* (c) 2019 Evan You
* @license MIT
*/
function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"b",(function(){return D}));var i="undefined"!==typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e){i&&(e._devtoolHook=i,i.emit("vuex:init",e),i.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){i.emit("vuex:mutation",e,t)})))}function a(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function s(e){return null!==e&&"object"===typeof e}function c(e){return e&&"function"===typeof e.then}var l=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},u={namespaced:{configurable:!0}};u.namespaced.get=function(){return!!this._rawModule.namespaced},l.prototype.addChild=function(e,t){this._children[e]=t},l.prototype.removeChild=function(e){delete this._children[e]},l.prototype.getChild=function(e){return this._children[e]},l.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},l.prototype.forEachChild=function(e){a(this._children,e)},l.prototype.forEachGetter=function(e){this._rawModule.getters&&a(this._rawModule.getters,e)},l.prototype.forEachAction=function(e){this._rawModule.actions&&a(this._rawModule.actions,e)},l.prototype.forEachMutation=function(e){this._rawModule.mutations&&a(this._rawModule.mutations,e)},Object.defineProperties(l.prototype,u);var d=function(e){this.register([],e,!1)};function f(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;f(e.concat(r),t.getChild(r),n.modules[r])}}d.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},d.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},d.prototype.update=function(e){f([],this.root,e)},d.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new l(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&a(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},d.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];t.getChild(n).runtime&&t.removeChild(n)};var p;var h=function(e){var t=this;void 0===e&&(e={}),!p&&"undefined"!==typeof window&&window.Vue&&T(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new d(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new p;var i=this,a=this,s=a.dispatch,c=a.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return c.call(i,e,t,n)},this.strict=r;var l=this._modules.root.state;_(this,l,[],this._modules.root),b(this,l),n.forEach((function(e){return e(t)}));var u=void 0!==e.devtools?e.devtools:p.config.devtools;u&&o(this)},m={state:{configurable:!0}};function g(e,t){return t.indexOf(e)<0&&t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function v(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;_(e,n,[],e._modules.root,!0),b(e,n,t)}function b(e,t,n){var r=e._vm;e.getters={};var i=e._wrappedGetters,o={};a(i,(function(t,n){o[n]=function(){return t(e)},Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=p.config.silent;p.config.silent=!0,e._vm=new p({data:{$$state:t},computed:o}),p.config.silent=s,e.strict&&A(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),p.nextTick((function(){return r.$destroy()})))}function _(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a]=r),!o&&!i){var s=S(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){p.set(s,c,r.state)}))}var l=r.context=y(e,a,n);r.forEachMutation((function(t,n){var r=a+n;x(e,r,t,l)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;k(e,r,i,l)})),r.forEachGetter((function(t,n){var r=a+n;C(e,r,t,l)})),r.forEachChild((function(r,o){_(e,t,n.concat(o),r,i)}))}function y(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=E(n,r,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:r?e.commit:function(n,r,i){var o=E(n,r,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return w(e,t)}},state:{get:function(){return S(e.state,n)}}}),i}function w(e,t){var n={},r=t.length;return Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),n}function x(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function k(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t,i){var o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t,i);return c(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}function C(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function A(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function S(e,t){return t.length?t.reduce((function(e,t){return e[t]}),e):e}function E(e,t,n){return s(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function T(e){p&&e===p||(p=e,r(p))}m.state.get=function(){return this._vm._data.$$state},m.state.set=function(e){0},h.prototype.commit=function(e,t,n){var r=this,i=E(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.forEach((function(e){return e(s,r.state)})))},h.prototype.dispatch=function(e,t){var n=this,r=E(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(l){0}var c=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return c.then((function(e){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(l){0}return e}))}},h.prototype.subscribe=function(e){return g(e,this._subscribers)},h.prototype.subscribeAction=function(e){var t="function"===typeof e?{before:e}:e;return g(t,this._actionSubscribers)},h.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},h.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},h.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),_(this,this.state,e,this._modules.get(e),n.preserveState),b(this,this.state)},h.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=S(t.state,e.slice(0,-1));p.delete(n,e[e.length-1])})),v(this)},h.prototype.hotUpdate=function(e){this._modules.update(e),v(this,!0)},h.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(h.prototype,m);var O=N((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=B(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),R=N((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=B(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),D=N((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||B(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),L=N((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=B(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),M=function(e){return{mapState:O.bind(null,e),mapGetters:D.bind(null,e),mapMutations:R.bind(null,e),mapActions:L.bind(null,e)}};function F(e){return Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}}))}function N(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function B(e,t,n){var r=e._modulesNamespaceMap[n];return r}var I={Store:h,install:T,version:"3.1.0",mapState:O,mapMutations:R,mapGetters:D,mapActions:L,createNamespacedHelpers:M};t["a"]=I},"2f9a":function(e,t){e.exports=function(){}},"301c":function(e,t,n){n("e198")("asyncIterator")},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}return o&&(e+=(-1===e.indexOf("?")?"?":"&")+o),e}},"30ba":function(e,t,n){
/*!
* @form-create/element-ui v2.5.33
* (c) 2018-2023 xaboy
* Github https://github.com/xaboy/form-create
* Released under the MIT License.
*/
!function(e,r){r(t,n("2b0e"))}(0,(function(e,t){"use strict";function n(){return(n=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var r=["attrs","props","domProps"],i=["class","style","directives"],o=["on","nativeOn"],a=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},s=function(e){return e.reduce((function(e,t){for(var s in t)if(e[s])if(-1!==r.indexOf(s))e[s]=n({},e[s],t[s]);else if(-1!==i.indexOf(s)){var c=e[s]instanceof Array?e[s]:[e[s]],l=t[s]instanceof Array?t[s]:[t[s]];e[s]=c.concat(l)}else if(-1!==o.indexOf(s))for(var u in t[s])if(e[s][u]){var d=e[s][u]instanceof Array?e[s][u]:[e[s][u]],f=t[s][u]instanceof Array?t[s][u]:[t[s][u]];e[s][u]=d.concat(f)}else e[s][u]=t[s][u];else if("hook"==s)for(var p in t[s])e[s][p]=e[s][p]?a(e[s][p],t[s][p]):t[s][p];else e[s]=t[s];else e[s]=t[s];return e}),{})};function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function g(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){return Object.keys(e).reduce((function(n,r){return t&&-1!==t.indexOf(r)||n.push(e[r]),n}),[])}var _={name:"fcCheckbox",props:{formCreateInject:{type:Object,required:!0},value:{type:Array,default:function(){return[]}},type:String},watch:{"formCreateInject.options":{handler:function(){this.update()},deep:!0},value:function(){this.update()}},data:function(){return{trueValue:[]}},methods:{options:function(){var e=this.formCreateInject.options;return Array.isArray(e)?e:[]},onInput:function(e){this.$emit("input",this.options().filter((function(t){return-1!==e.indexOf(t.label)})).map((function(e){return e.value})).filter((function(e){return void 0!==e})))},update:function(){var e=Array.isArray(this.value)?this.value:[this.value];this.trueValue=this.options().filter((function(t){return-1!==e.indexOf(t.value)})).map((function(e){return e.label}))}},created:function(){this.update()},render:function(){var e=this,t=arguments[0];return t("ElCheckboxGroup",s([{},this.formCreateInject.prop,{},{props:{value:this.trueValue}},{ref:"el",on:{input:this.onInput}}]),[this.options().map((function(n,r){var i=d({},n),o="button"===e.type?"ElCheckboxButton":"ElCheckbox";return delete i.value,t(o,s([{},{props:i},{key:o+r+"-"+n.value}]))})),b(this.$slots)])},mounted:function(){this.$emit("fc.el",this.$refs.el)}};function y(e){return Array.isArray(e)?e:[null,void 0,""].indexOf(e)>-1?[]:[e]}function w(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}w("._fc-frame .fc-files img {\n width: 100%;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n}\n\n._fc-frame .fc-upload-btn {\n border: 1px dashed #c0ccda;\n cursor: pointer;\n}\n\n._fc-frame .fc-upload-cover {\n opacity: 0;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: rgba(0, 0, 0, .6);\n -webkit-transition: opacity .3s;\n -o-transition: opacity .3s;\n transition: opacity .3s;\n}\n\n._fc-frame .fc-upload-cover i {\n color: #fff;\n font-size: 20px;\n cursor: pointer;\n margin: 0 2px;\n}\n\n._fc-frame .fc-files:hover .fc-upload-cover {\n opacity: 1;\n}\n\n._fc-frame .el-upload {\n display: block;\n}\n\n._fc-frame .fc-upload-btn, .fc-files {\n display: inline-block;\n width: 58px;\n height: 58px;\n text-align: center;\n line-height: 58px;\n border: 1px solid #c0ccda;\n border-radius: 4px;\n overflow: hidden;\n background: #fff;\n position: relative;\n -webkit-box-shadow: 2px 2px 5px rgba(0, 0, 0, .1);\n box-shadow: 2px 2px 5px rgba(0, 0, 0, .1);\n margin-right: 4px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n");var x={name:"fcFrame",props:{formCreateInject:{type:Object,required:!0},type:{type:String,default:"input"},field:String,helper:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},src:{type:String,required:!0},icon:{type:String,default:"el-icon-upload2"},width:{type:String,default:"500px"},height:{type:String,default:"370px"},maxLength:{type:Number,default:0},okBtnText:{type:String,default:"确定"},closeBtnText:{type:String,default:"关闭"},modalTitle:String,handleIcon:{type:[String,Boolean],default:void 0},title:String,allowRemove:{type:Boolean,default:!0},onOpen:{type:Function,default:function(){}},onOk:{type:Function,default:function(){}},onCancel:{type:Function,default:function(){}},onLoad:{type:Function,default:function(){}},onBeforeRemove:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},onHandle:{type:Function,default:function(e){this.previewImage=this.getSrc(e),this.previewVisible=!0}},modal:{type:Object,default:function(){return{}}},srcKey:{type:[String,Number]},value:[Array,String,Number,Object],previewMask:void 0,footer:{type:Boolean,default:!0},reload:{type:Boolean,default:!0},closeBtn:{type:Boolean,default:!0},okBtn:{type:Boolean,default:!0}},data:function(){return{fileList:y(this.value),previewVisible:!1,frameVisible:!1,previewImage:""}},watch:{value:function(e){this.fileList=y(e)},fileList:function(e){var t=1===this.maxLength?e[0]||"":e;this.$emit("input",t),this.$emit("change",t)},src:function(e){this.modalVm&&(this.modalVm.src=e)}},methods:{key:function(e){return e},closeModel:function(e){this.$emit(e?"$close":"$ok"),this.reload&&(this.$off("$ok"),this.$off("$close")),this.frameVisible=!1},handleCancel:function(){this.previewVisible=!1},showModel:function(){this.disabled||!1===this.onOpen()||(this.frameVisible=!0)},makeInput:function(){var e=this,t=this.$createElement,n={type:"text",value:this.fileList.map((function(t){return e.getSrc(t)})).toString(),readonly:!0};return t("ElInput",s([{},{props:n},{key:this.key("input")}]),[this.fileList.length?t("i",{slot:"suffix",class:"el-input__icon el-icon-circle-close",on:{click:function(){return e.fileList=[]}}}):null,t("ElButton",s([{attrs:{icon:this.icon}},{on:{click:function(){return e.showModel()}}},{slot:"append"}]))])},makeGroup:function(e){var t=this.$createElement;return(!this.maxLength||this.fileList.length<this.maxLength)&&e.push(this.makeBtn()),t("div",{key:this.key("group")},g(e))},makeItem:function(e,t){return(0,this.$createElement)("div",{class:"fc-files",key:this.key("file"+e)},g(t))},valid:function(e){var t=this.formCreateInject.field||this.field;if(t&&e!==t)throw new Error("[frame]无效的字段值")},makeIcons:function(e,t){var n=this.$createElement;if(!1!==this.handleIcon||!0===this.allowRemove){var r=[];return("file"!==this.type&&!1!==this.handleIcon||"file"===this.type&&this.handleIcon)&&r.push(this.makeHandleIcon(e,t)),this.allowRemove&&r.push(this.makeRemoveIcon(e,t)),n("div",{class:"fc-upload-cover",key:this.key("uc")},[r])}},makeHandleIcon:function(e,t){var n=this;return(0,this.$createElement)("i",{class:!0===this.handleIcon||void 0===this.handleIcon?"el-icon-view":this.handleIcon,on:{click:function(){return n.handleClick(e)}},key:this.key("hi"+t)})},makeRemoveIcon:function(e,t){var n=this;return(0,this.$createElement)("i",{class:"el-icon-delete",on:{click:function(){return n.handleRemove(e)}},key:this.key("ri"+t)})},makeFiles:function(){var e=this,t=this.$createElement;return this.makeGroup(this.fileList.map((function(n,r){return e.makeItem(r,[t("i",{class:"el-icon-tickets",on:{click:function(){return e.handleClick(n)}}}),e.makeIcons(n,r)])})))},makeImages:function(){var e=this,t=this.$createElement;return this.makeGroup(this.fileList.map((function(n,r){return e.makeItem(r,[t("img",{attrs:{src:e.getSrc(n)}}),e.makeIcons(n,r)])})))},makeBtn:function(){var e=this,t=this.$createElement;return t("div",{class:"fc-upload-btn",on:{click:function(){return e.showModel()}},key:this.key("btn")},[t("i",{class:this.icon})])},handleClick:function(e){return this.onHandle(e)},handleRemove:function(e){this.disabled||!1!==this.onBeforeRemove(e)&&(this.fileList.splice(this.fileList.indexOf(e),1),this.onRemove(e))},getSrc:function(e){return this.srcKey?e[this.srcKey]:e},frameLoad:function(e){var t=this;this.onLoad(e);try{!0===this.helper&&(e.form_create_helper={api:this.formCreateInject.api,close:function(e){t.valid(e),t.closeModel()},set:function(e,n){t.valid(e),t.disabled||t.$emit("input",n)},get:function(e){return t.valid(e),t.value},onOk:function(e){return t.$on("$ok",e)},onClose:function(e){return t.$on("$close",e)}})}catch(e){}},makeFooter:function(){var e=this,t=this.$createElement,n=this.$props,r=n.okBtnText,i=n.closeBtnText,o=n.closeBtn,a=n.okBtn;if(n.footer)return t("div",{slot:"footer"},[o?t("ElButton",{on:{click:function(){return!1!==e.onCancel()&&(e.frameVisible=!1)}}},[i]):null,a?t("ElButton",{attrs:{type:"primary"},on:{click:function(){return!1!==e.onOk()&&e.closeModel()}}},[r]):null])}},render:function(){var e,t=this,n=arguments[0],r=this.type;e="input"===r?this.makeInput():"image"===r?this.makeImages():this.makeFiles();var i=this.$props,o=i.width,a=void 0===o?"30%":o,c=i.height,l=i.src,u=i.title,f=i.modalTitle;return this.$nextTick((function(){t.$refs.frame&&t.frameLoad(t.$refs.frame.contentWindow||{})})),n("div",{class:"_fc-frame"},[e,n("el-dialog",s([{},{props:{appendToBody:!0,modal:this.previewMask,title:f,visible:this.previewVisible}},{on:{close:this.handleCancel}}]),[n("img",{style:"width: 100%",attrs:{src:this.previewImage}})]),n("el-dialog",s([{},{props:d(d({width:a,title:u,appendToBody:!0},this.modal),{},{visible:this.frameVisible})},{on:{close:function(){return t.closeModel(!0)}}}]),[this.frameVisible||!this.reload?n("iframe",{ref:"frame",attrs:{src:l,frameBorder:"0"},style:{height:c,border:"0 none",width:"100%"}}):null,this.makeFooter()])])},mounted:function(){this.$on("fc.closeModal",this.closeModal)}},k={name:"fcRadio",props:{formCreateInject:{type:Object,required:!0},value:{},type:String},watch:{"formCreateInject.options":{handler:function(){this.update()},deep:!0},value:function(){this.update()}},data:function(){return{trueValue:[]}},methods:{options:function(){var e=this.formCreateInject.options;return Array.isArray(e)?e:[]},onInput:function(e){this.$emit("input",this.options().filter((function(t){return t.label===e})).reduce((function(e,t){return t.value}),""))},update:function(){var e=this;this.trueValue=this.options().filter((function(t){return t.value===e.value})).reduce((function(e,t){return t.label}),"")}},created:function(){this.update()},render:function(){var e=this,t=arguments[0];return t("ElRadioGroup",s([{},this.formCreateInject.prop,{ref:"el"},{props:{value:this.trueValue}},{on:{input:this.onInput}}]),[this.options().map((function(n,r){var i=d({},n),o="button"===e.type?"ElRadioButton":"ElRadio";return delete i.value,t(o,s([{},{props:i},{key:o+r+"-"+n.value}]))})),b(this.$slots)])},mounted:function(){this.$emit("fc.el",this.$refs.el)}},C={type:function(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"},Undef:function(e){return null==e},Element:function(e){return"object"===c(e)&&null!==e&&1===e.nodeType&&!C.Object(e)},trueArray:function(e){return Array.isArray(e)&&e.length>0},Function:function(e){var t=this.getType(e);return"Function"===t||"AsyncFunction"===t},getType:function(e){var t=Object.prototype.toString.call(e);return/^\[object (.*)\]$/.exec(t)[1]},empty:function(e){return null==e||!(!Array.isArray(e)||!Array.isArray(e)||e.length)||"string"==typeof e&&!e}};function A(e,t){return{}.hasOwnProperty.call(e,t)}["Date","Object","String","Boolean","Array","Number"].forEach((function(e){C[e]=function(t){return C.type(t,e)}}));var S={name:"fcSelect",functional:!0,props:{formCreateInject:{type:Object,required:!0}},render:function(e,t){var n=function(t,n){var r=t.slot;return e("ElOption",s([{},{props:t},{key:n+"-"+t.value}]),[r?e("template",{slot:t.slotName||"default"},[C.Function(r)?t.slot(e):r]):null])},r=t.props.formCreateInject.options;return e("ElSelect",s([{},t.data,{ref:"el"}]),[(Array.isArray(r)?r:[]).map((function(t,r){return A(t||"","options")?function(t,r){return e("ElOptionGroup",{attrs:{label:t.label},key:r+"-"+t.label},[C.trueArray(t.options)&&t.options.map((function(e,t){return n(e,t)}))])}(t,r):n(t,r)})),t.children])},mounted:function(){this.$emit("fc.el",this.$refs.el)}},E={name:"fcTree",formCreateParser:{mergeProp:function(e){var t=e.prop.props;t.nodeKey||(t.nodeKey="id"),t.props||(t.props={label:"title"})}},props:{formCreateInject:{type:Object,required:!0},type:{type:String,default:"checked"},value:{type:[Array,String,Number],default:function(){return[]}}},watch:{value:function(){this.setValue()}},methods:{onChange:function(){this.updateValue()},updateValue:function(){var e;this.$refs.tree&&(e="selected"===this.type.toLocaleLowerCase()?this.$refs.tree.getCurrentKey():this.$refs.tree.getCheckedKeys(),this.$emit("input",e))},setValue:function(){"selected"===this.type.toLocaleLowerCase()?this.$refs.tree.setCurrentKey(this.value):this.$refs.tree.setCheckedKeys(y(this.value))}},render:function(){var e=this;return(0,arguments[0])("ElTree",s([{},this.formCreateInject.prop,{ref:"tree",on:{check:function(){return e.updateValue()},"node-click":function(){return e.updateValue()}}}]),[b(this.$slots)])},mounted:function(){this.setValue(),this.$emit("fc.el",this.$refs.tree)}};function T(e,t){return{url:e,name:O(e),uid:t}}function O(e){return(""+e).split("/").pop()}w("._fc-upload .fc-files img {\n width: 100%;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n}\n\n._fc-upload .fc-upload-btn {\n border: 1px dashed #c0ccda;\n cursor: pointer;\n}\n\n._fc-upload .fc-upload-cover {\n opacity: 0;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: rgba(0, 0, 0, .6);\n -webkit-transition: opacity .3s;\n -o-transition: opacity .3s;\n transition: opacity .3s;\n}\n\n._fc-upload .fc-upload-cover i {\n color: #fff;\n font-size: 20px;\n cursor: pointer;\n margin: 0 2px;\n}\n\n._fc-upload .fc-files:hover .fc-upload-cover {\n opacity: 1;\n}\n\n._fc-upload .el-upload {\n display: block;\n}\n\n._fc-upload .fc-upload-btn, ._fc-upload .fc-files {\n display: inline-block;\n width: 58px;\n height: 58px;\n text-align: center;\n line-height: 58px;\n border: 1px solid #c0ccda;\n border-radius: 4px;\n overflow: hidden;\n background: #fff;\n position: relative;\n -webkit-box-shadow: 2px 2px 5px rgba(0, 0, 0, .1);\n box-shadow: 2px 2px 5px rgba(0, 0, 0, .1);\n margin-right: 4px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n");var R={name:"fcUpload",props:{formCreateInject:{type:Object,required:!0},onHandle:{type:Function,default:function(e){this.previewImage=e.url,this.previewVisible=!0}},uploadType:{type:String,default:"file"},limit:{type:Number,default:0},allowRemove:{type:Boolean,default:!0},previewMask:void 0,modalTitle:String,handleIcon:{type:[String,Boolean],default:function(){}},value:[Array,String]},data:function(){return{uploadList:[],previewVisible:!1,previewImage:"",cacheFiles:[]}},created:function(){void 0===this.formCreateInject.prop.props.showFileList&&(this.formCreateInject.prop.props.showFileList=!1),this.formCreateInject.prop.props.fileList=y(this.value).map(T)},watch:{value:function(e){this.$refs.upload.uploadFiles.every((function(e){return!e.status||"success"===e.status}))&&(this.$refs.upload.uploadFiles=y(e).map(T),this.uploadList=this.$refs.upload.uploadFiles)},limit:function(e,t){1!==t&&1!==e||this.update()}},methods:{key:function(e){return e},isDisabled:function(){return!0===this.formCreateInject.prop.props.disabled},onRemove:function(e){this.isDisabled()||this.$refs.upload.handleRemove(e)},handleClick:function(e){this.onHandle(e)},makeItem:function(e,t){var n=this.$createElement;return"image"===this.uploadType?n("img",{attrs:{src:e.url},key:this.key("img"+t)}):n("i",{class:"el-icon-tickets",key:this.key("i"+t)})},makeRemoveIcon:function(e,t){var n=this;return(0,this.$createElement)("i",{class:"el-icon-delete",on:{click:function(){return n.onRemove(e)}},key:this.key("ri"+t)})},makeHandleIcon:function(e,t){var n=this;return(0,this.$createElement)("i",{class:!0===this.handleIcon||void 0===this.handleIcon?"el-icon-view":this.handleIcon,on:{click:function(){return n.handleClick(e)}},key:this.key("hi"+t)})},makeProgress:function(e,t){return(0,this.$createElement)("ElProgress",s([{},{props:{percentage:e.percentage,type:"circle",width:52}},{style:"margin-top:2px;",key:this.key("pg"+t)}]))},makeIcons:function(e,t){var n=this.$createElement,r=[];if(this.allowRemove||!1!==this.handleIcon)return("file"!==this.uploadType&&!1!==this.handleIcon||"file"===this.uploadType&&this.handleIcon)&&r.push(this.makeHandleIcon(e,t)),this.allowRemove&&r.push(this.makeRemoveIcon(e,t)),n("div",{class:"fc-upload-cover"},[r])},makeFiles:function(){var e=this,t=this.$createElement;return this.uploadList.map((function(n,r){return e.$scopedSlots.fileList?e.$scopedSlots.fileList({file:n,index:r,vm:e}):t("div",{key:e.key(r),class:"fc-files"},[void 0!==n.percentage&&"success"!==n.status?e.makeProgress(n,r):[e.makeItem(n,r),e.makeIcons(n,r)]])}))},makeUpload:function(){var e=this.$createElement,t=!this.limit||this.limit>this.uploadList.length;return e("ElUpload",s([{},this.formCreateInject.prop,{},{style:{display:"inline-block"},key:this.key("upload"),ref:"upload"}]),[t?e("template",{slot:"default"},[this.$slots.default||e("div",{class:"fc-upload-btn"},[e("i",{class:"el-icon-upload2"})])]):null,b(this.$slots,["default"])])},update:function(){var e=this.$refs.upload.uploadFiles.map((function(e){return e.url})).filter((function(e){return void 0!==e}));this.cacheFiles.length===e.length&&e.length||(this.cacheFiles=g(e),this.$emit("input",1===this.limit?e[0]||"":e))},handleCancel:function(){this.previewVisible=!1}},render:function(){var e=arguments[0];return this.$refs.upload&&(void 0===this.formCreateInject.prop.props.showFileList&&(this.formCreateInject.prop.props.showFileList=this.$refs.upload.showFileList),this.formCreateInject.prop.props.fileList=this.$refs.upload.fileList),e("div",{class:"_fc-upload"},[[this.formCreateInject.prop.props.showFileList?[]:this.makeFiles(),this.makeUpload()],e("el-dialog",s([{},{props:{appendToBody:!0,modal:this.previewMask,title:this.modalTitle,visible:this.previewVisible}},{on:{close:this.handleCancel}}]),[e("img",{attrs:{alt:"example",src:this.previewImage},style:"width: 100%"})])])},mounted:function(){var e=this;this.uploadList=this.$refs.upload.uploadFiles,this.$watch((function(){return e.$refs.upload.uploadFiles}),(function(){e.update()}),{deep:!0}),this.$emit("fc.el",this.$refs.upload)}};function D(e,n,r){t.set(e,n,r)}function L(e,n){t.delete(e,n)}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=!1;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=t[i];if((r=Array.isArray(o))||C.Object(o)){var a=void 0===e[i];if(r)r=!1,a&&D(e,i,[]);else if(o._clone&&void 0!==n){if(!n){D(e,i,o._clone());continue}o=o.getRule(),a&&D(e,i,{})}else a&&D(e,i,{});e[i]=M(e[i],o,n)}else D(e,i,o),C.Undef(o)||(C.Undef(o.__json)||(e[i].__json=o.__json),C.Undef(o.__origin)||(e[i].__origin=o.__origin))}return void 0!==n&&Array.isArray(e)?e.filter((function(e){return!e||!e.__ctrl})):e}function F(e){return M({},{value:e}).value}var N=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&D(e,r,t[r]);return e};function B(){return N.apply(this,arguments)}w('._fc-group{\n display: flex;\n min-height: 42px;\n justify-content: center;\n flex-direction: column;\n}\n\n._fc-group-disabled ._fc-group-btn, ._fc-group-disabled ._fc-group-add{\n cursor: not-allowed;\n}\n\n._fc-group-handle {\n display: flex;\n flex-direction: row;\n position: absolute;\n bottom: -15px;\n right: 30px;\n border-radius: 15px;\n border: 1px dashed #d9d9d9;\n padding: 3px 8px;\n background-color: #ffffff;\n}\n\n._fc-group-btn{\n cursor: pointer;\n}\n\n._fc-group-idx {\n position: absolute;\n bottom: -15px;\n left: 10px;\n width: 30px;\n height: 30px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #eee;\n border-radius: 15px;\n font-weight: 700;\n}\n\n._fc-group-handle ._fc-group-btn + ._fc-group-btn {\n margin-left: 7px;\n}\n\n._fc-group-container{\n position: relative;\n display: flex;\n flex-direction: column;\n border: 1px dashed #d9d9d9;\n padding: 20px;\n margin: 5px;\n border-radius: 5px;\n margin-bottom: 25px;\n padding-bottom: 25px;\n}\n\n._fc-group-arrow {\n position: relative;\n width: 20px;\n height: 20px;\n}\n\n._fc-group-arrow::before {\n content: "";\n position: absolute;\n top: 8px;\n left: 5px;\n width: 9px;\n height: 9px;\n border-left: 2px solid #999;\n border-top: 2px solid #999;\n}\n._fc-group-arrow::before {\n transform: rotate(45deg);\n}\n\n._fc-group-arrow._fc-group-down {\n transform: rotate(180deg);\n}\n\n._fc-group-plus-minus {\n width: 20px;\n height: 20px;\n position: relative;\n cursor: pointer;\n}\n\n._fc-group-plus-minus::before,\n._fc-group-plus-minus::after {\n content: "";\n position: absolute;\n top: 50%;\n left: 50%;\n width: 60%;\n height: 2px;\n background-color: #409eff;\n transform: translate(-50%, -50%);\n}\n\n._fc-group-plus-minus::before {\n transform: translate(-50%, -50%) rotate(90deg);\n}\n\n._fc-group-plus-minus._fc-group-minus::before {\n display: none;\n}\n._fc-group-plus-minus._fc-group-minus::after {\n background-color: #f56c6c;\n}\n\n\n._fc-group-add{\n cursor: pointer;\n width: 25px;\n height: 25px;\n border: 1px solid rgb(64 158 255 / 50%);\n border-radius: 15px;\n}\n\n._fc-group-add._fc-group-plus-minus::before, ._fc-group-add._fc-group-plus-minus::after {\n width: 50%;\n}\n\n');var I=[_,x,k,S,E,R,{name:"fcGroup",props:{field:String,rule:[Array,Object],rules:Array,expand:Number,options:Object,formCreateInject:{type:Object,required:!0},button:{type:Boolean,default:!0},max:{type:Number,default:0},min:{type:Number,default:0},value:{type:Array,default:function(){return[]}},sortBtn:{type:Boolean,default:!0},defaultValue:Object,disabled:{type:Boolean,default:!1},syncDisabled:{type:Boolean,default:!0},onBeforeRemove:{type:Function,default:function(){}},onBeforeAdd:{type:Function,default:function(){}},parse:Function},data:function(){return{len:0,cacheRule:{},cacheValue:{},sort:[],type:void 0}},computed:{formRule:function(){return this.rules?this.rules:this.rule?Array.isArray(this.rule)?this.rule:[this.rule]:[]}},watch:{cacheRule:{handler:function(e){this.sort=Object.keys(e)},immediate:!0},formRule:{handler:function(e,t){var n=this;Object.keys(this.cacheRule).forEach((function(r){var i=n.cacheRule[r];if(i.$f){var o=i.$f.formData();if(e===t)i.$f.deferSyncValue((function(){M(i.rule,e),i.$f.setValue(o)}),!0);else{var a=i.$f.formData();i.$f.once("reloading",(function(){i.$f.setValue(a)})),i.rule=F(e)}}}))},deep:!0},disabled:function(e){if(this.syncDisabled){var t=this.cacheRule;Object.keys(t).forEach((function(n){t[n].$f.disabled(e)}))}},expand:function(e){var t=e-this.value.length;t>0&&this.expandRule(t)},value:function(e,t){var n=this;e=e||[];var r=this.sort,i=r.length,o=i-e.length;if(o<0){for(var a=o;a<0;a++)this.addRule(e.length+a);for(var s=0;s<i;s++)this.setValue(r[s],e[s])}else{if(o>0)for(var c=0;c<o;c++)this.removeRule(r[i-c-1]);e.forEach((function(t,i){n.setValue(r[i],e[i])}))}}},methods:{_value:function(e){return e&&A(e,this.field)?e[this.field]:e},cache:function(e,t){this.cacheValue[e]=JSON.stringify(t)},input:function(e){this.$emit("input",e),this.$emit("change",e)},formData:function(e,t){var n=this,r=this.cacheRule,i=this.sort;if(i.filter((function(e){return r[e].$f})).length===i.length){var o=i.map((function(r){var i=e===r?t:d({},n.cacheRule[r].$f.form),o=n.field?i[n.field]||null:i;return n.cache(r,o),o}));this.input(o)}},setValue:function(e,t){var n=this.field,r=this.cacheRule[e].$f;n&&(t=l({},n,this._value(t))),this.cacheValue[e]!==JSON.stringify(n?t[n]:t)&&(this.cache(e,t),r&&r.coverValue(t||{}))},addRule:function(e,t){var n=this,r=this.formCreateInject.form.copyRules(this.formRule),i=this.options?d({},this.options):{submitBtn:!1,resetBtn:!1};if(this.defaultValue){i.formData||(i.formData={});var o=F(this.defaultValue);B(i.formData,this.field?l({},this.field,o):o)}this.parse&&this.parse({rule:r,options:i,index:this.sort.length}),this.$set(this.cacheRule,++this.len,{rule:r,options:i}),t&&this.$nextTick((function(){return n.$emit("add",r,Object.keys(n.cacheRule).length-1)}))},add$f:function(e,t,n){var r=this;this.cacheRule[t].$f=n,this.$nextTick((function(){r.syncDisabled&&n.disabled(r.disabled),r.$emit("itemMounted",n,Object.keys(r.cacheRule).indexOf(t))}))},removeRule:function(e,t){var n=this,r=Object.keys(this.cacheRule).indexOf(e);this.$delete(this.cacheRule,e),this.$delete(this.cacheValue,e),t&&this.$nextTick((function(){return n.$emit("remove",r)}))},add:function(e){this.disabled||!1===this.onBeforeAdd(this.value)||this.addRule(e,!0)},del:function(e,t){if(!this.disabled&&!1!==this.onBeforeRemove(this.value,e)){this.removeRule(t,!0);var n=g(this.value);n.splice(e,1),this.input(n)}},addIcon:function(e){return(0,this.$createElement)("div",{class:"_fc-group-btn _fc-group-plus-minus",on:{click:this.add}})},delIcon:function(e,t){var n=this;return(0,this.$createElement)("div",{class:"_fc-group-btn _fc-group-plus-minus _fc-group-minus",on:{click:function(){return n.del(e,t)}}})},sortUpIcon:function(e){var t=this;return(0,this.$createElement)("div",{class:"_fc-group-btn _fc-group-arrow _fc-group-up",on:{click:function(){return t.changeSort(e,-1)}}})},sortDownIcon:function(e){var t=this;return(0,this.$createElement)("div",{class:"_fc-group-btn _fc-group-arrow _fc-group-down",on:{click:function(){return t.changeSort(e,1)}}})},changeSort:function(e,t){var n=this.sort[e];this.$set(this.sort,e,this.sort[e+t]),this.sort[e+t]=n,this.formData(0)},makeIcon:function(e,t,n){var r=this;if(this.$scopedSlots.button)return this.$scopedSlots.button({total:e,index:t,vm:this,key:n,del:function(){return r.del(t,n)},add:this.add});var i=[];return(!this.max||e<this.max)&&e===t+1&&i.push(this.addIcon(n)),e>this.min&&i.push(this.delIcon(t,n)),this.sortBtn&&t&&i.push(this.sortUpIcon(t)),this.sortBtn&&t!==e-1&&i.push(this.sortDownIcon(t)),i},emitEvent:function(e,t,n,r){this.$emit.apply(this,[e].concat(g(t),[this.cacheRule[r].$f,n]))},expandRule:function(e){for(var t=0;t<e;t++)this.value.push(this.field?null:{})}},created:function(){this.type=this.formCreateInject.form.$form();var e=(this.expand||0)-this.value.length;e>0&&this.expandRule(e);for(var t=0;t<this.value.length;t++)this.addRule(t)},render:function(){var e=this,t=arguments[0],n=this.sort,r=this.button,i=this.type,o=this.disabled,a=0===n.length?this.$scopedSlots.default?this.$scopedSlots.default({vm:this,add:this.add}):t("div",{key:"a_def",class:"_fc-group-plus-minus _fc-group-add",on:{click:this.add}}):n.map((function(a,c){var u=e.cacheRule[a],d=u.rule,f=u.options,p=r&&!o?e.makeIcon(n.length,c,a):[];return t("div",{class:"_fc-group-container",key:a},[t(i,s([{key:a},{on:{"update:value":function(t){return e.formData(a,t)},"emit-event":function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.emitEvent(t,r,c,a)},input:function(t){return e.add$f(c,a,t)}}},{},{props:{inFor:!0,value:e.field?l({},e.field,e._value(e.value[c])):e.value[c],rule:d,option:f,extendOption:!0}}])),t("div",{class:"_fc-group-idx"},[c+1]),p.length?t("div",{class:"_fc-group-handle"},[p]):null])}));return t("div",{key:"con",class:"_fc-group "+(o?"_fc-group-disabled":"")},[a])}},{name:"fcSubForm",props:{rule:Array,options:Object,formCreateInject:{type:Object,required:!0},value:{type:Object,default:function(){return{}}},disabled:{type:Boolean,default:!1},syncDisabled:{type:Boolean,default:!0}},data:function(){return{cacheRule:{},cacheValue:{},type:void 0}},watch:{disabled:function(e){this.syncDisabled&&this.cacheRule.$f.disabled(e)},value:function(e){this.setValue(e)}},methods:{formData:function(e){this.cacheValue=JSON.stringify(e),this.$emit("input",e),this.$emit("change",e)},setValue:function(e){var t=JSON.stringify(e);this.cacheValue!==t&&(this.cacheValue=t,this.cacheRule.$f.coverValue(e||{}))},addRule:function(){var e=this.options?this.options:{submitBtn:!1,resetBtn:!1};e.formData=d({},this.value||{}),this.cacheRule={rule:this.rule,options:e}},add$f:function(e){var t=this;this.cacheRule.$f=e,this.$nextTick((function(){t.syncDisabled&&e.disabled(t.disabled),t.$emit("itemMounted",e)}))},emitEvent:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,[e].concat(n))}},created:function(){this.addRule(),this.type=this.formCreateInject.form.$form()},render:function(){var e=arguments[0],t=this.cacheRule,n=t.rule,r=t.options;return e(this.type,s([{},{on:{"update:value":this.formData,"emit-event":this.emitEvent,input:this.add$f}},{},{props:{rule:n,option:r,extendOption:!0}}]))}}],P="FormCreate",$=function e(t,n){if(t&&t!==n)return t.formCreateInject?t.formCreateInject:t.$parent?e(t.$parent,n):void 0};function j(e){return{name:P,componentName:P,model:{prop:"api"},provide:function(){return{$pfc:this}},inject:{$pfc:{default:null}},props:{rule:{type:Array,required:!0},option:{type:Object,default:function(){return{}}},extendOption:Boolean,value:Object,api:Object,name:String,subForm:{type:Boolean,default:!0},inFor:Boolean},data:function(){return{formData:void 0,destroyed:!1,validate:{},$f:void 0,isShow:!0,unique:1,renderRule:g(this.rule||[]),ctxInject:{},updateValue:JSON.stringify(this.value||{}),isMore:!!this.inFor}},render:function(){return this.formCreate.render()},methods:{_refresh:function(){++this.unique},_renderRule:function(){this.renderRule=g(this.rule||[])},_updateValue:function(e){this.destroyed||(this.updateValue=JSON.stringify(e),this.$emit("update:value",e))}},watch:{value:{handler:function(e){JSON.stringify(e||{})!==this.updateValue&&(this.$f.config.forceCoverValue?this.$f.coverValue(e||{}):this.$f.setValue(e||{}))},deep:!0},option:{handler:function(e){this.formCreate.initOptions(e),this.$f.refresh()},deep:!0},rule:function(e){var t=this;e.length===this.renderRule.length&&e.every((function(e){return t.renderRule.indexOf(e)>-1}))||(this.formCreate.$handle.reloadRule(e),this._renderRule())}},beforeCreate:function(){var t=this,n=this.$options.propsData,r=n.rule,i=n.option;this.formCreate=new e(this,r,i),Object.keys(this.formCreate.prop).forEach((function(e){B(t.$options[e],t.formCreate.prop[e])})),this.$emit("beforeCreate",this.formCreate.api())},created:function(){var e=this,t=this,n=this.formCreate.api(),r=function(){var e=$(t,t.$pfc);if(e)if(t.isMore){var r=y(e.getSubForm()),i=r.indexOf(n);i>-1&&r.splice(i,1)}else e.subForm()};t.$on("hook:beforeDestroy",(function(){r()})),this.$watch((function(){return e.subForm}),(function(e){e?function(){if(t.$pfc){var e,r=$(t,t.$pfc);r&&(t.isMore?(e=y(r.getSubForm())).push(n):e=n,r.subForm(e))}}():r()}),{immediate:!0})}}}var z=["attrs","props","domProps","scopedSlots"],q=["class","style","directives"],H=["on","nativeOn"],U=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=[].concat(z,g(r.normal||[])),o=[].concat(q,g(r.array||[])),a=[].concat(H,g(r.functional||[])),s=r.props||[];return t.reduce((function(t,n){for(var r in n)if(t[r])if(s.indexOf(r)>-1)t[r]=e([n[r]],t[r]);else if(i.indexOf(r)>-1)t[r]=d(d({},t[r]),n[r]);else if(o.indexOf(r)>-1){var l=t[r]instanceof Array?t[r]:[t[r]],u=n[r]instanceof Array?n[r]:[n[r]];t[r]=[].concat(g(l),g(u))}else if(a.indexOf(r)>-1)for(var f in n[r])if(t[r][f]){var p=t[r][f]instanceof Array?t[r][f]:[t[r][f]],h=n[r][f]instanceof Array?n[r][f]:[n[r][f]];t[r][f]=[].concat(g(p),g(h))}else t[r][f]=n[r][f];else if("hook"===r)for(var m in n[r])t[r][m]?t[r][m]=W(t[r][m],n[r][m]):t[r][m]=n[r][m];else t[r]=n[r];else i.indexOf(r)>-1||a.indexOf(r)>-1||s.indexOf(r)>-1?t[r]=d({},n[r]):o.indexOf(r)>-1?t[r]=n[r]instanceof Array?g(n[r]):"object"===c(n[r])?d({},n[r]):n[r]:t[r]=n[r];return t}),n)},W=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},V=["type","slot","emitPrefix","value","name","native","hidden","display","inject","options","emit","nativeEmit","link","prefix","suffix","update","sync","optionsTo","key","preview","component","cache"],G=["validate","children","control"],K=["effect","deep"];function Y(e,t,n){return"[form-create ".concat(e,"]: ").concat(t)+(n?"\n\nrule: "+JSON.stringify(n.getRule?n.getRule():n):"")}function X(e,t){}var Q="[[FORM-CREATE-PREFIX-",J="-FORM-CREATE-SUFFIX]]",Z="$FN:",ee="$FNX:",te="function";function ne(e,t){return JSON.stringify(M([],e,!0),(function(e,t){if(!t||!0!==t._isVue){if(c(t)!==te)return t;if(t.__json)return t.__json;if(t.__origin&&(t=t.__origin),!t.__emit)return Q+t+J}}),t)}function re(e){return new Function("return "+e)()}function ie(e,t){if(e&&C.String(e)&&e.length>4){var n=e.trim(),r=!1;try{if(n.indexOf(J)>0&&0===n.indexOf(Q))n=n.replace(J,"").replace(Q,""),r=!0;else if(0===n.indexOf(Z))n=n.replace(Z,""),r=!0;else{if(0===n.indexOf(ee))return(n=re("function($inject){"+n.replace(ee,"")+"}")).__json=e,n.__inject=!0,n;t||0!==n.indexOf(te)||n===te||(r=!0)}if(!r)return e;var i=re(-1===n.indexOf(te)&&0!==n.indexOf("(")?te+" "+n:n);return i.__json=e,i}catch(e){return void X("解析失败:".concat(n,"\n\nerr: ").concat(e))}}return e}function oe(e,t){return JSON.parse(e,(function(e,n){return C.Undef(n)||!n.indexOf?n:ie(n,t)}))}function ae(e,t){return{value:e,enumerable:!1,configurable:!1,writable:!!t}}function se(e){return ce([e])[0]}function ce(e,t){return M([],g(e),t||!1)}function le(e,t){return U(Array.isArray(t)?t:[t],e,{array:G,normal:K}),e}function ue(e){var t=C.Function(e.getRule)?e.getRule():e;return t.type||(t.type="input"),t}function de(e,t){Object.defineProperties(e,Object.keys(t).reduce((function(e,n){return e[n]={get:function(){return t[n]()}},e}),{}))}function fe(e){return e.__fc__||(e.__origin__?e.__origin__.__fc__:null)}function pe(e,t){try{t=e()}catch(e){!function(e){X(e.toString())}(e)}return t}function he(e,t){return function(n,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=new me(e,n,r,i,o);return t&&(C.Function(t)?t(a):a.props(t)),a}}function me(e,t,n,r,i){this._data=B({props:{},on:{},options:[],children:[],effect:{},hidden:!1,display:!0,value:void 0},{type:e,title:t,field:n,value:r,props:i||{}}),this.event=this.on}function ge(e){e.forEach((function(e){me.prototype[e]=function(t){return le(this._data,l({},e,arguments.length<2?t:l({},t,arguments[1]))),this}}))}B(me.prototype,{getRule:function(){return this._data},setProp:function(e,t){return D(this._data,e,t),this},_clone:function(){var e=new this.constructor;return e._data=se(this._data),e}}),ge([].concat(V,g(z),g(q),g(H),G,K));var ve=he("");function be(e,t,n){var r=ve("",t);return r._data.type=e,r._data.title=n,r}function _e(e,t,n,r){var i=ve("",n);return i._data.type="template",i._data.template=e,i._data.title=r,i._data.vm=t,i}function ye(){return{create:be,createTmp:_e,template:_e,factory:he}}function we(e){return F(e)}function xe(e){return ke(e.replace(/(-[a-z])/g,(function(e){return e.replace("-","").toLocaleUpperCase()})))}function ke(e){return e.replace(e[0],e[0].toLowerCase())}function Ce(e){return null==e?"":"object"===c(e)?JSON.stringify(e,null,2):String(e)}function Ae(e){var t=e.replace(/([A-Z])/g,"-$1").toLocaleLowerCase();return 0===t.indexOf("-")&&(t=t.substr(1)),t}var Se=0;function Ee(){return"F"+Math.random().toString(36).substr(3,3)+Number("".concat(Date.now()).concat(++Se)).toString(36)}function Te(e,t,n){var r,i=e;return(t||"").split(".").forEach((function(e){r&&(i[r]&&"object"==c(i[r])||(i[r]={}),i=i[r]),r=e})),i[r]=n,i}function Oe(e){B(this,{$handle:e,fc:e.fc,vm:e.vm,$manager:e.$manager,vNode:new e.fc.CreateNode(e.vm)}),de(this,{options:function(){return e.options},sort:function(){return e.sort}}),this.initCache(),this.initRender()}!function(e){B(e.prototype,{initCache:function(){this.clearCacheAll()},clearCache:function(e){if(!e.rule.cache)if(this.cache[e.id]){(!0===this.cache[e.id].use||this.cache[e.id].parent)&&this.$handle.refresh();var t=this.cache[e.id].parent;this.cache[e.id]=null,t&&this.clearCache(t)}else e.parent&&this.clearCache(e.parent)},clearCacheAll:function(){this.cache={}},setCache:function(e,t,n){this.cache[e.id]={vnode:t,use:!1,parent:n,slot:e.rule.slot}},getCache:function(e){var t=this.cache[e.id];if(t)return t.use=!0,t.vnode}})}(Oe),function(e){B(e.prototype,{initRender:function(){this.tempList={},this.clearOrgChildren()},initOrgChildren:function(){var e=this.$handle.ctxs;this.orgChildren=Object.keys(e).reduce((function(t,n){if(!1!==e[n].parser.loadChildren){var r=e[n].rule.children;t[n]=C.trueArray(r)?g(r):[]}return t}),{})},clearOrgChildren:function(){this.orgChildren={}},getTypeSlot:function(e){return function t(n){if(n){var r=void 0;return e.rule.field&&(r=n.$scopedSlots["field-"+Ae(e.rule.field)]||n.$scopedSlots["field-"+e.rule.field]),r||(r=n.$scopedSlots["type-"+Ae(e.type)]||n.$scopedSlots["type-"+e.type]),r||t(n.$pfc)}}(this.vm)},render:function(){var e=this;if(this.vm.isShow){var t;this.$h=this.vm.$createElement,this.$manager.beforeRender();var n=function(){return e.renderList()};return n.renderSlot=function(t){return e.renderList(t)},n.renderName=function(t){return e.renderId(t)},n.renderField=function(t){return e.renderId(t,"field")},t=this.vm.$scopedSlots.container?[this.vm.$scopedSlots.container(n)]:n(),this.$manager.render(t)}},renderList:function(e){var t=this;return this.sort.map((function(n){return e?t.renderSlot(t.$handle.ctxs[n],e):t.renderCtx(t.$handle.ctxs[n])})).filter((function(e){return void 0!==e}))},makeVm:function(e){var t=this,n=e.vm;return n?C.Function(n)?pe((function(){return e.vm(t.$handle.getInjectData(e))})):n._isVue?n:new Xe(n):new Xe},mergeGlobal:function(e){var t=this.$handle.options.global;t&&(e.cacheConfig||(e.cacheConfig=t[e.originType]||t[e.type]||t[e.trueType]||{}),e.prop=le({},[t["*"],e.cacheConfig,e.prop]))},setOptions:function(e){e.prop.optionsTo&&e.prop.options&&Te(e.prop,e.prop.optionsTo,e.prop.options)},deepSet:function(e){var t=e.rule.deep;t&&Object.keys(t).sort((function(e,t){return e.length<t.length?-1:1})).forEach((function(n){Te(e.prop,n,t[n])}))},setTempProps:function(e,t){if(e.$props){var n=t.prop,r=Object.keys(e.$props),i=this.injectProp(t),o=Object.keys(i);r.forEach((function(t){A(n.props,t)?e.$props[t]=n.props[t]:o.indexOf(t)>-1&&(e.$props[t]=i[t])}));var a=e.$options.model&&e.$options.model.prop||"value";r.indexOf(a)>-1&&(e.$props[a]=n.value)}},renderTemp:function(e){var t=this;if(!Xe.compile)return[];var n=e.prop,r=e.id,i=e.key;if(!this.tempList[r]){e.el||(e.el=this.makeVm(n),this.vm.$nextTick((function(){return e.parser.mounted(e)})));var o=e.el;e.input&&o.$on(o.$options.model&&o.$options.model.event||"input",(function(n){t.onInput(e,n)})),this.tempList[r]={vm:o,template:Xe.compile(n.template)}}var a=this.tempList[r],s=a.vm,c=a.template;this.setTempProps(s,e);var l=c.render.call(s);return C.Undef(l.data)&&(l.data={}),l.key=i,l.data.ref=e.ref,l.data.key=i,l},parseSide:function(e,t){return C.Object(e)?le({props:{formCreateInject:t.prop.props.formCreateInject}},e):e},renderSides:function(e,t,n){var r=t[n?"rule":"prop"];return[this.renderRule(this.parseSide(r.prefix,t)),e,this.renderRule(this.parseSide(r.suffix,t))]},renderSlot:function(e,t){return e.rule.slot===t?this.renderCtx(e):void 0},renderId:function(e,t){var n=this,r=this.$handle["field"===t?"fieldCtx":"nameCtx"][e];return r?r.map((function(e){return n.renderCtx(e,e.parent)})):void 0},renderCtx:function(e,t){if("hidden"!==e.type){var n=e.rule;if(!this.cache[e.id]||this.cache[e.id].slot!==n.slot){var r,i=!1!==n.cache,o=e.trueType,a=!(C.Undef(n.display)||n.display);if("template"!==o||n.template)if("fcFragment"===o)r=this.renderChildren(e);else{e.initProp(),this.mergeGlobal(e),this.$manager.tidyRule(e),this.deepSet(e),this.setOptions(e),this.ctxProp(e);var s=e.prop;s.preview=!!(A(s,"preview")?s.preview:this.options.preview),s.props.formCreateInject=this.injectProp(e);var c=s.preview;if(s.hidden)return void this.setCache(e,void 0,t);if("template"===o&&s.template)r=this.renderTemp(e),i=!1;else{var l=[];e.parser.renderChildren?l=e.parser.renderChildren(e):!1!==e.parser.loadChildren&&(l=this.renderChildren(e));var u=this.getTypeSlot(e);r=u?u({rule:n,prop:s,preview:c,children:l,api:this.$handle.api,model:s.model||{}}):c?e.parser.preview(l,e):e.parser.render(l,e)}r=this.renderSides(r,e),!e.input&&C.Undef(s.native)||!0===s.native||(r=this.$manager.makeWrap(e,r)),a&&(r=this.display(r)),r=this.item(e,r)}else r=this.renderSides(this.renderChildren(e),e,!0),a&&this.display(r),r=this.item(e,r);return i&&this.setCache(e,r,t),r}return this.getCache(e)}},display:function(e){var t=this;if(Array.isArray(e)){var n=[];return e.forEach((function(e){if(Array.isArray(e))return t.display(e);t.none(e)&&n.push(e)})),n}return this.none(e)},none:function(e){if(e&&e.data)return Array.isArray(e.data.style)?e.data.style.push({display:"none"}):C.String(e.data.style)?e.data.style+=";display:none;":e.data.style=[e.data.style,{display:"none"}],e},item:function(e,t){return this.$h("fcFragment",{slot:e.rule.slot,key:e.key},[t])},injectProp:function(e){var t=this;this.vm.ctxInject[e.id]||D(this.vm.ctxInject,e.id,{api:this.$handle.api,form:this.fc.create,subForm:function(n){t.$handle.addSubForm(e,n)},getSubForm:function(){return t.$handle.subForm[e.id]},options:[],children:[],prop:{},preview:!1,field:e.field,rule:e.rule,input:e.input});var n,r=this.vm.ctxInject[e.id];return B(r,{preview:e.prop.preview,options:e.prop.options,children:e.rule.children,prop:(n=d({},e.prop),n.on=n.on?d({},n.on):{},delete n.model,n)}),r},ctxProp:function(e,t){var n=this,r=e.ref,i=e.key,o=e.rule;this.$manager.mergeProp(e,t),e.parser.mergeProp(e,t);var a=[{ref:r,key:o.key||"".concat(i,"fc"),slot:void 0,on:{"hook:mounted":function(){n.onMounted(e)},"fc.sub-form":function(t){n.$handle.addSubForm(e,t)},"fc.el":function(t){e.exportEl=t,t&&((t.$el||t).__rule__=e.rule)}}}];return!t&&e.input&&(e.prop.model={value:this.$handle.getFormData(e),callback:function(t){n.onInput(e,t)},expression:"formData.".concat(e.id)}),U(a,e.prop),e.prop},onMounted:function(e){e.el=this.vm.$refs[e.ref],e.el&&((e.el.$el||e.el).__rule__=e.rule),e.parser.mounted(e),this.$handle.effect(e,"mounted")},onInput:function(e,t){this.$handle.onInput(e,t)},renderChildren:function(e){var t=this,n=e.rule.children,r=this.orgChildren[e.id],i=function(e){return!C.String(e)&&e.__fc__&&!t.$handle.ctxs[e.__fc__.id]};return!C.trueArray(n)&&r?(this.$handle.deferSyncValue((function(){r.forEach((function(e){e&&i(e)&&t.$handle.rmCtx(e.__fc__)}))})),this.orgChildren[e.id]=[],[]):(r&&this.$handle.deferSyncValue((function(){r.forEach((function(e){e&&-1===n.indexOf(e)&&i(e)&&t.$handle.rmCtx(e.__fc__)}))})),n.map((function(r){if(r)return C.String(r)?r:r.__fc__?t.renderCtx(r.__fc__,e):void(r.type&&t.vm.$nextTick((function(){t.$handle.loadChildren(n,e),t.$handle.refresh()})))})))},defaultRender:function(e,t){var n=e.prop;return n.component?this.vNode.makeComponent(n.component,n,t):this.vNode[e.type]?this.vNode[e.type](n,t):this.vNode[e.originType]?this.vNode[e.originType](n,t):this.vNode.make(ke(e.originType),n,t)},renderRule:function(e,t,n){var r=this;if(e){if(C.String(e))return e;var i;if(n)i=e.type;else if(i=e.is,e.type){i=xe(e.type);var o=this.vNode.aliasMap[i];o&&(i=xe(o))}if(i){var a=[[t]];return C.trueArray(e.children)&&a.push(e.children.map((function(e){return r.renderRule(e)}))),this.$h(i,d({},e),a)}}}})}(Oe);var Re=["hook:updated","hook:mounted"];function De(e,t,n){var r,i=Ee();B(this,{id:i,ref:i,wrapRef:i+"fi",rule:t,origin:t.__origin__||t,name:t.name,watch:[],linkOn:[],root:[],ctrlRule:[],parent:null,cacheConfig:null,prop:d({},t),computed:{},payload:{},input:!!t.field,el:void 0,exportEl:void 0,defaultValue:t.field?F(n):void 0,field:t.field||void 0}),this.updateType(),this.updateKey(),r=this,Object.defineProperties(r.origin,{__fc__:ae(r,!0)}),this.update(e,!0)}B(De.prototype,{effectData:function(e){return this.payload[e]||(this.payload[e]={}),this.payload[e]},clearEffectData:function(e){void 0===e?this.payload={}:delete this.payload[e]},updateKey:function(e){this.key=Ee(),e&&this.parent&&this.parent.updateKey(e)},updateType:function(){this.originType=this.rule.type,this.type=xe(this.rule.type)},setParser:function(e){this.parser=e,e.init(this)},initProp:function(){var e=this,t=d({},this.rule);delete t.children,this.prop=le({},[t].concat(g(Object.keys(this.payload).map((function(t){return e.payload[t]}))),[this.computed]))},check:function(e){return this.vm===e.vm},unwatch:function(){this.watch.forEach((function(e){return e()})),this.watch=[]},unlink:function(){this.linkOn.forEach((function(e){return e()})),this.linkOn=[]},link:function(){this.unlink(),this.$handle.appendLink(this)},watchTo:function(){this.$handle.watchCtx(this)},delete:function(){this.unwatch(),this.unlink(),this.rmCtrl(),B(this,{deleted:!0,prop:d({},this.rule),computed:{},el:void 0,$handle:void 0,$render:void 0,$api:void 0,vm:void 0,vNode:void 0,parent:null,cacheConfig:null})},rmCtrl:function(){this.ctrlRule.forEach((function(e){return e.__fc__&&e.__fc__.rm()})),this.ctrlRule=[]},rm:function(){var e=this,t=function(){var t=e.root.indexOf(e.origin);t>-1&&(e.root.splice(t,1),e.$handle&&e.$handle.refresh())};this.deleted?t():this.$handle.noWatch((function(){e.$handle.deferSyncValue((function(){e.rmCtrl(),t(),e.$handle.rmCtx(e),B(e,{root:[]})}),e.input)}))},update:function(e,t){B(this,{deleted:!1,$handle:e,$render:e.$render,$api:e.api,vm:e.vm,trueType:e.getType(this.originType),vNode:e.$render.vNode,updated:!1,cacheValue:this.rule.value}),!t&&this.unwatch(),this.watchTo(),this.link()}});var Le={"==":function(e){return function(t){return t===e}},"!=":function(e){return function(t){return t!==e}},"<>":function(e){return function(t){return t!==e}},">":function(e){return function(t){return t>e}},">=":function(e){return function(t){return t>=e}},"<":function(e){return function(t){return t<e}},"<=":function(e){return function(t){return t<=e}},in:function(e){return function(t){return e&&e.indexOf&&e.indexOf(t)>-1}},on:function(e){return function(t){return t&&t.indexOf&&t.indexOf(e)>-1}},notIn:function(e){return function(t){return!Le.in(e)(t)}},notOn:function(e){return function(t){return!Le.on(e)(t)}},between:function(e){return function(t){return t>e[0]&&t<e[1]}},notBetween:function(e){return function(t){return t<e[0]||t>e[1]}}};function Me(e,t){for(var n=0;n<e.ctrlRule.length;n++){var r=e.ctrlRule[n];if(r.children===t)return r}}function Fe(e){return!!e.rule.__ctrl}function Ne(e,t){return"function"==typeof t?""+t:t}function Be(e){Object.keys(e).forEach((function(t){return delete e[t]}))}var Ie={init:function(e){},toFormValue:function(e,t){return e},toValue:function(e,t){return e},mounted:function(e){},render:function(e,t){return t.$render.defaultRender(t,e)},preview:function(e,t){return this.render(e,t)},mergeProp:function(e){}},Pe=["field","value","vm","template","name","config","control","inject","sync","payload","optionsTo","update","component","cache"];function $e(e){var t=this;B(this,{fc:e,vm:e.vm,watching:!1,loading:!1,reloading:!1,noWatchFn:null,deferSyncFn:null,isMounted:!1,formData:{},subForm:{},form:{},appendData:{},providers:{},cycleLoad:null,loadedId:1,nextTick:null,changeStatus:!1,pageEnd:!0,nextReload:function(){t.lifecycle("reload")}}),de(this,{options:function(){return e.options},bus:function(){return e.bus}}),this.initData(e.rules),this.$manager=new e.manager(this),this.$render=new Oe(this),this.api=e.extendApi(function(e){function t(t){return C.Undef(t)?t=e.fields():Array.isArray(t)||(t=[t]),t}function n(n,r,i){t(n).forEach((function(t){e.getCtxs(t).forEach((function(t){D(t.rule,r,i),e.$render.clearCache(t)}))}))}function r(){var t=e.subForm;return Object.keys(t).reduce((function(e,n){var r=t[n];return r?(Array.isArray(r)?e.push.apply(e,g(r)):e.push(r),e):e}),[])}var i={get config(){return e.options},get options(){return e.options},get form(){return e.form},get rule(){return e.rules},get parent(){return e.vm.$pfc&&e.vm.$pfc.$f},get children(){return r()},formData:function(n){return t(n).reduce((function(t,n){var r=e.getFieldCtx(n);return r?(t[r.field]=we(r.rule.value),t):t}),e.options.appendValue?we(e.appendData):{})},getValue:function(t){var n=e.getFieldCtx(t);if(n)return we(n.rule.value)},coverValue:function(t){var n=d({},t||{});e.deferSyncValue((function(){i.fields().forEach((function(t){var r=e.fieldCtx[t];if(r){var i=A(n,t);r.forEach((function(e){e.rule.value=i?n[t]:void 0})),delete n[t]}})),B(e.appendData,n)}))},setValue:function(t){var n=t;arguments.length>=2&&(n=l({},t,arguments[1])),e.deferSyncValue((function(){Object.keys(n).forEach((function(t){var r=e.fieldCtx[t];if(!r)return e.appendData[t]=n[t];r.forEach((function(e){e.rule.value=n[t]}))}))}))},removeField:function(t){var n=e.getCtx(t);return e.deferSyncValue((function(){e.getCtxs(t).forEach((function(e){e.rm()}))}),!0),n?n.origin:void 0},removeRule:function(e){var t=e&&fe(e);if(t)return t.rm(),t.origin},destroy:function(){e.vm.$el.parentNode&&e.vm.$el.parentNode.removeChild(e.vm.$el),e.vm.$destroy()},fields:function(){return e.fields()},append:function(t,n,r){var i,o=e.sort.length-1,a=e.getCtx(n);a?r?(i=a.rule.children,o=a.rule.children.length-1):(o=a.root.indexOf(a.origin),i=a.root):i=e.rules,i.splice(o+1,0,t)},prepend:function(t,n,r){var i,o=0,a=e.getCtx(n);a?r?i=a.rule.children:(o=a.root.indexOf(a.origin),i=a.root):i=e.rules,i.splice(o,0,t)},hidden:function(t,r){n(r,"hidden",!!t),e.refresh()},hiddenStatus:function(t){var n=e.getCtx(t);if(n)return!!n.rule.hidden},display:function(t,r){n(r,"display",!!t),e.refresh()},displayStatus:function(t){var n=e.getCtx(t);if(n)return!!n.rule.display},disabled:function(n,r){t(r).forEach((function(t){e.getCtxs(t).forEach((function(e){e.rule.props&&D(e.rule.props,"disabled",!!n)}))})),e.refresh()},all:function(t){return Object.keys(e.ctxs).map((function(n){var r=e.ctxs[n];return t?r.origin:r.rule}))},model:function(t){return e.fields().reduce((function(n,r){var i=e.fieldCtx[r][0];return n[r]=t?i.origin:i.rule,n}),{})},component:function(t){return Object.keys(e.nameCtx).reduce((function(n,r){var i=e.nameCtx[r].map((function(e){return t?e.origin:e.rule}));return n[r]=1===i.length?i[0]:i,n}),{})},bind:function(){return i.form},reload:function(t){e.reloadRule(t)},updateOptions:function(t){e.fc.updateOptions(t),i.refresh()},onSubmit:function(e){i.updateOptions({onSubmit:e})},sync:function(t){if(Array.isArray(t))t.forEach((function(e){return i.sync(e)}));else{var n=C.Object(t)?fe(t):e.getCtxs(t);n&&((n=Array.isArray(n)?n:[n]).forEach((function(t){if(!t.deleted){var n=e.subForm[t.id];n&&(Array.isArray(n)?n.forEach((function(e){e.refresh()})):n&&n.refresh()),e.$render.clearCache(t)}})),e.refresh())}},refresh:function(){r().forEach((function(e){e.refresh()})),e.$render.clearCacheAll(),e.refresh()},refreshOptions:function(){e.$manager.updateOptions(e.options),i.refresh()},hideForm:function(t){D(e.vm,"isShow",!t)},changeStatus:function(){return e.changeStatus},clearChangeStatus:function(){e.changeStatus=!1},updateRule:function(t,n){e.getCtxs(t).forEach((function(e){B(e.rule,n)}))},updateRules:function(e){Object.keys(e).forEach((function(t){i.updateRule(t,e[t])}))},mergeRule:function(t,n){e.getCtxs(t).forEach((function(e){le(e.rule,n)}))},mergeRules:function(e){Object.keys(e).forEach((function(t){i.mergeRule(t,e[t])}))},getRule:function(t,n){var r=e.getCtx(t);if(r)return n?r.origin:r.rule},setEffect:function(t,n,r){var i=e.getCtx(t);i&&n&&("$"===n[0]&&(n=n.substr(1)),A(i.rule,"$"+n)&&D(i.rule,"$"+n,r),A(i.rule,"effect")||D(i.rule,"effect",{}),D(i.rule.effect,n,r))},clearEffectData:function(t,n){var r=e.getCtx(t);r&&(n&&"$"===n[0]&&(n=n.substr(1)),r.clearEffectData(n),i.sync(t))},updateValidate:function(e,t,r){r?i.mergeRule(e,{validate:t}):n(e,"validate",t)},updateValidates:function(e,t){Object.keys(e).forEach((function(n){i.updateValidate(n,e[n],t)}))},refreshValidate:function(){e.vm.validate={},i.refresh()},resetFields:function(n){t(n).forEach((function(t){e.getCtxs(t).forEach((function(t){e.$render.clearCache(t),t.rule.value=we(t.defaultValue)}))}))},method:function(e,t){var n=i.el(e);if(!n||!n[t])throw new Error(Y("err","".concat(t,"方法不存在")));return function(){return n[t].apply(n,arguments)}},exec:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return pe((function(){return i.method(e,t).apply(void 0,r)}))},toJson:function(e){return ne(i.rule,e)},trigger:function(e,t){for(var n=i.el(e),r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];n&&n.$emit.apply(n,[t].concat(o))},el:function(t){var n=e.getCtx(t);if(n)return n.exportEl||n.el||e.vm.$refs[n.ref]},closeModal:function(e){var t=i.el(e);t&&t.$emit&&t.$emit("close-modal")},getSubForm:function(t){var n=e.getCtx(t);return n?e.subForm[n.id]:void 0},nextTick:function(t){e.bus.$once("next-tick",t),e.refresh()},nextRefresh:function(t){e.nextRefresh(),t&&pe(t)},emit:function(t){for(var n,r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];(n=e.vm).$emit.apply(n,[t].concat(i))},deferSyncValue:function(t,n){e.deferSyncValue(t,n)},helper:{tidyFields:t,props:n}};return["on","once","off","set"].forEach((function(t){i[t]=function(){var n;(n=e.vm)["$".concat(t)].apply(n,arguments)}})),i.changeValue=i.changeField=i.setValue,i}(this),this)}function je(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function ze(e){if("undefined"!=typeof XMLHttpRequest){var t,n=new XMLHttpRequest,r=e.action;n.onerror=function(t){e.onError(t)},n.onload=function(){if(n.status<200||n.status>=300)return e.onError(function(e,t,n){var r="fail to ".concat(e," ").concat(n.status,"'"),i=new Error(r);return i.status=n.status,i.url=e,i}(r,0,n),je(n));e.onSuccess(je(n))},n.open(e.method||"get",r,!0),e.data&&("json"!==(e.dataType||"").toLowerCase()?(t=new FormData,Object.keys(e.data).map((function(n){t.append(n,e.data[n])}))):(t=JSON.stringify(e.data),n.setRequestHeader("content-type","application/json"))),e.withCredentials&&"withCredentials"in n&&(n.withCredentials=!0);var i=e.headers||{};Object.keys(i).forEach((function(e){null!==i[e]&&n.setRequestHeader(e,i[e])})),n.send(t)}}B($e.prototype,{initData:function(e){B(this,{ctxs:{},fieldCtx:{},nameCtx:{},sort:[],rules:e})},init:function(){this.appendData=d(d(d({},this.fc.options.formData||{}),this.vm.value||{}),this.appendData),this.useProvider(),this.usePage(),this.loadRule(),this.$manager.__init(),this.vm.$set(this.vm,"formData",this.formData)}}),function(e){B(e.prototype,{parseInjectEvent:function(e,t){var n=e.inject||this.options.injectEvent;return this.parseEventLst(e,t,n)},parseEventLst:function(e,t,n,r){var i=this;return Object.keys(t).forEach((function(o){var a=i.parseEvent(e,t[o],n,r);a&&(t[o]=a)})),t},parseEvent:function(e,t,n,r){if(C.Function(t)&&(!1!==n&&!C.Undef(n)||t.__inject))return this.inject(e,t,n);if(!r&&Array.isArray(t)&&t[0]&&(C.String(t[0])||C.Function(t[0])))return this.parseEventLst(e,t,n,!0);if(C.String(t)){var i=ie(t);if(i&&t!==i)return i.__inject?this.parseEvent(e,i,n,!0):i}},parseEmit:function(e,t){var n=this,r={},i=e.rule,o=i.emitPrefix,a=i.field,s=i.name,c=i.inject,l=i[t?"emit":"nativeEmit"]||[];if(C.trueArray(l)){var u=o||a||s;u&&(t||(u="native-".concat(u)),l.forEach((function(e){if(e){var t;C.Object(e)&&(t=e.inject,e=e.name);var o=Ae("".concat(u,"-").concat(e)),a=function(){for(var e,t,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];(e=n.vm).$emit.apply(e,[o].concat(i)),(t=n.vm).$emit.apply(t,["emit-event",o].concat(i))};if(a.__emit=!0,t||!1!==c){var s=t||c||n.options.injectEvent;r[e]=C.Undef(s)?a:n.inject(i,a,s)}else r[e]=a}})))}return e.computed[t?"on":"nativeOn"]=r,r},getInjectData:function(e,t){var n=this.vm.$options.propsData,r=n.option,i=n.rule;return{api:this.api,$f:this.api,rule:i,self:e.__origin__,option:r,inject:t}},inject:function(e,t,n){if(t.__origin){if(this.watching&&!this.loading)return t;t=t.__origin}var r=this,i=function(){for(var i=r.getInjectData(e,n),o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return i.args=[].concat(a),a.unshift(i),t.apply(this,a)};return i.__origin=t,i.__json=t.__json,i}})}($e),function(e){B(e.prototype,{usePage:function(){var e=this,t=this.options.page;if(t){var n,r=25,i=(n=this.rules).length<31?31:Math.ceil(n.length/3);C.Object(t)&&(t.first&&(r=parseInt(t.first,10)||r),t.limit&&(i=parseInt(t.limit,10)||i)),B(this,{first:r,limit:i,pageEnd:this.rules.length<=r}),this.bus.$on("page-end",(function(){return e.vm.$emit("page-end",e.api)})),this.pageLoad()}},pageLoad:function(){var e=this;this.vm.$on(Re,(function t(){e.pageEnd?(e.vm.$off(Re,t),e.bus.$emit("page-end")):(e.first+=e.limit,e.pageEnd=e.rules.length<=e.first,e.loadRule(),e.refresh())}))}})}($e),function(e){B(e.prototype,{clearNextTick:function(){this.nextTick&&clearTimeout(this.nextTick),this.nextTick=null},bindNextTick:function(e){var t=this;this.clearNextTick(),this.nextTick=setTimeout((function(){e(),t.nextTick=null}),10)},render:function(){return++this.loadedId,this.vm.unique>0?this.$render.render():(this.vm.unique=1,[])}})}($e),function(e){B(e.prototype,{nextRefresh:function(e){var t=this,n=this.loadedId;this.vm.$nextTick((function(){n===t.loadedId&&(e?e():t.refresh())}))},parseRule:function(e){var t=this,n=ue(e);return Object.defineProperties(n,{__origin__:ae(e,!0)}),function(e){var t={props:{},on:{},options:[],children:[],effect:{},hidden:!1,display:!0,value:void 0};Object.keys(t).forEach((function(n){A(e,n)||D(e,n,t[n])}))}(n),this.appendValue(n),n.options=Array.isArray(n.options)?n.options:[],[n,n.prefix,n.suffix].forEach((function(e){e&&t.loadFn(e,n)})),this.loadCtrl(n),n.update&&(n.update=ie(n.update)),n},loadFn:function(e,t){var n=this;["on","props","nativeOn","deep"].forEach((function(r){e[r]&&n.parseInjectEvent(t,e[r])}))},loadCtrl:function(e){e.control&&e.control.forEach((function(e){e.handle&&(e.handle=ie(e.handle))}))},syncProp:function(e){var t=this,n=e.rule;C.trueArray(n.sync)&&U([{on:n.sync.reduce((function(e,r){return e["update:".concat(r)]=function(e){n.props[r]=e,t.vm.$emit("sync",r,e,n,t.fapi)},e}),{})}],e.computed)},loadRule:function(){var e=this;this.cycleLoad=!1,this.loading=!0,this.pageEnd&&this.bus.$emit("load-start"),this.deferSyncValue((function(){if(e._loadRule(e.rules),e.loading=!1,e.cycleLoad&&e.pageEnd)return e.loadRule();e.pageEnd&&e.bus.$emit("load-end"),e.vm._renderRule(),e.$render.initOrgChildren(),e.syncForm()}))},loadChildren:function(e,t){if(this.cycleLoad=!1,this.loading=!0,this.bus.$emit("load-start"),this._loadRule(e,t),this.loading=!1,this.cycleLoad)return this.loadRule();this.bus.$emit("load-end"),this.syncForm(),this.$render.clearCache(t)},_loadRule:function(e,t){var n=this,r=function(e,t){C.trueArray(e)&&n._loadRule(e,t)};e.map((function(i,o){if((!t||C.Object(i))&&(n.pageEnd||t||!(o>=n.first))){if(i.__fc__&&i.__fc__.root===e&&n.ctxs[i.__fc__.id])return r(i.__fc__.rule.children,i.__fc__),i.__fc__;var a,s=ue(i),c=function(){return!(!s.field||!n.fieldCtx[s.field]||n.fieldCtx[s.field][0]===i.__fc__)};n.ruleEffect(s,"init",{repeat:c()}),c()&&n.vm.$emit("repeat-field",i,n.api);var l=!1,u=!!i.__fc__,d=s.value;if(u){d=(a=i.__fc__).defaultValue;var f=!a.check(n);if(a.deleted){if(f){if(Fe(a))return;a.update(n)}}else if(f){if(Fe(a))return;e[o]=i=i._clone?i._clone():se(i),a=null,l=!0}}if(a)a.originType!==a.rule.type&&(a.updateType(),n.bindParser(a)),n.appendValue(a.rule);else{var p=n.parseRule(i);a=new De(n,p,u?d:p.value),n.bindParser(a)}if([!1,!0].forEach((function(e){return n.parseEmit(a,e)})),n.syncProp(a),a.parent=t||null,a.root=e,n.setCtx(a),!l&&!u&&n.effect(a,"load"),n.effect(a,"created"),!1===a.parser.loadChildren||r(a.rule.children,a),!t){var h=function t(r){var i=e[r-1];if(!i||!i.__fc__)return r>0?t(r-1):-1;var o=n.sort.indexOf(i.__fc__.id);return o>-1?o:t(r-1)}(o);h>-1||!o?n.sort.splice(h+1,0,a.id):n.sort.push(a.id)}var m=a.rule;return a.updated||(a.updated=!0,C.Function(m.update)&&n.bus.$once("load-end",(function(){n.refreshUpdate(a,m.value,"init")})),n.effect(a,"loaded")),a.input&&Object.defineProperty(m,"value",n.valueHandle(a)),n.refreshControl(a)&&(n.cycleLoad=!0),a}}))},refreshControl:function(e){return e.input&&e.rule.control&&this.useCtrl(e)},useCtrl:function(e){var t=this,n=function(e){var t=e.rule.control||[];return C.Object(t)?[t]:t}(e),r=[],i=this.api;if(!n.length)return!1;for(var o=function(t){var o=n[t],a=o.handle||(Le[o.condition||"=="]||Le["=="])(o.value);if(!C.trueArray(o.rule))return"continue";var s=d(d({},o),{},{valid:pe((function(){return a(e.rule.value,i)})),ctrl:Me(e,o.rule),isHidden:C.String(o.rule[0])});if(s.valid&&s.ctrl||!s.valid&&!s.ctrl&&!s.isHidden)return"continue";r.push(s)},a=0;a<n.length;a++)o(a);if(!r.length)return!1;var s=[],c=!1;return this.deferSyncValue((function(){r.reverse().forEach((function(n){var r=n.isHidden,o=n.valid,a=n.rule,l=n.prepend,u=n.append,d=n.child,f=n.ctrl,p=n.method;if(r)return o?e.ctrlRule.push({__ctrl:!0,children:a,valid:o}):e.ctrlRule.splice(e.ctrlRule.indexOf(f),1),void s[o?"push":"unshift"]((function(){"disabled"===p?t.api.disabled(!o,a):"display"===p?t.api.display(o,a):"required"===p?(a.forEach((function(e){t.api.setEffect(e,"required",o)})),o||t.api.clearValidateState(a)):t.api.hidden(!o,a)}));if(o){c=!0;var h={type:"fcFragment",native:!0,__ctrl:!0,children:a};e.ctrlRule.push(h),t.bus.$once("load-start",(function(){l?i.prepend(h,l,d):u||d?i.append(h,u||e.id,d):e.root.splice(e.root.indexOf(e.origin)+1,0,h)}))}else{e.ctrlRule.splice(e.ctrlRule.indexOf(f),1);var m=fe(f);m&&m.rm()}}))})),s.length&&this.vm.$nextTick((function(){s.forEach((function(e){return e()}))})),this.vm.$emit("control",e.origin,this.api),this.effect(e,"control"),c},reloadRule:function(e){return this._reloadRule(e)},_reloadRule:function(e){var t=this;e||(e=this.rules);var n=d({},this.ctxs);this.clearNextTick(),this.$render.clearOrgChildren(),this.initData(e),this.fc.rules=e,this.deferSyncValue((function(){t.bus.$once("load-end",(function(){Object.keys(n).filter((function(e){return void 0===t.ctxs[e]})).forEach((function(e){return t.rmCtx(n[e])})),t.$render.clearCacheAll()})),t.reloading=!0,t.loadRule(),t.reloading=!1,t.refresh(),t.vm.$emit("reloading",t.api)})),this.bus.$off("next-tick",this.nextReload),this.bus.$once("next-tick",this.nextReload),this.vm.$emit("update",this.api)},refresh:function(){this.vm._refresh()}})}($e),function(e){B(e.prototype,{getValue:function(e){return C.Undef(e.cacheValue)&&(e.cacheValue=e.parser.toValue(this.getFormData(e),e)),e.cacheValue},setValue:function(e,t,n,r){e.deleted||(e.cacheValue=t,this.changeStatus=!0,this.nextRefresh(),this.$render.clearCache(e),this.setFormData(e,n),this.syncValue(),this.valueChange(e,t),this.vm.$emit("change",e.field,t,e.origin,this.api,r||!1),this.effect(e,"value"))},onInput:function(e,t){var n;e.input&&(this.isQuote(e,n=e.parser.toValue(t,e))||this.isChange(e,n))&&this.setValue(e,n,t)},setFormData:function(e,t){D(this.formData,e.id,null===t?void 0:t)},getFormData:function(e){return this.formData[e.id]},validate:function(){var e=this;return Be(this.vm.validate),this.fields().forEach((function(t){e.fieldCtx[t].forEach((function(t){e.vm.validate[t.id]=y(t.rule.validate)}))})),this.vm.validate},syncForm:function(){var e=this;Be(this.form),Object.defineProperties(this.form,this.fields().reduce((function(t,n){var r=e.getFieldCtx(n),i=e.valueHandle(r);return i.configurable=!0,t[n]=i,t}),this.options.appendValue?Object.keys(this.appendData).reduce((function(t,n){return t[n]={enumerable:!0,configurable:!0,get:function(){return e.appendData[n]},set:function(t){e.appendData[n]=t}},t}),{}):{})),this.syncValue()},valueHandle:function(e){var t=this;return{enumerable:!0,get:function(){return t.getValue(e)},set:function(n){t.isChange(e,n)&&t.setValue(e,n,e.parser.toFormValue(n,e),!0)}}},appendValue:function(e){e.field&&A(this.appendData,e.field)&&(e.value=this.appendData[e.field],delete this.appendData[e.field])},addSubForm:function(e,t){this.subForm[e.id]=t},deferSyncValue:function(e,t){this.deferSyncFn||(this.deferSyncFn=e),this.deferSyncFn.sync||(this.deferSyncFn.sync=t),pe(e),this.deferSyncFn===e&&(this.deferSyncFn=null,e.sync&&this.syncValue())},syncValue:function(){if(this.deferSyncFn)return this.deferSyncFn.sync=!0;this.vm._updateValue(d(d({},this.options.appendValue?this.appendData:{}),this.form))},isChange:function(e,t){return JSON.stringify(e.rule.value,Ne)!==JSON.stringify(null===t?void 0:t,Ne)},isQuote:function(e,t){return(C.Object(t)||Array.isArray(t))&&t===e.rule.value},refreshUpdate:function(e,t,n){var r=this;if(C.Function(e.rule.update)){var i=pe((function(){return e.rule.update(t,e.origin,r.api,{origin:n||"change"})}));if(void 0===i)return;e.rule.hidden=!0===i}},valueChange:function(e,t){this.refreshRule(e,t),this.bus.$emit("change-"+e.field,t)},refreshRule:function(e,t,n){this.refreshControl(e)&&(this.$render.clearCacheAll(),this.loadRule(),this.vm.$emit("update",this.api),this.refresh()),this.refreshUpdate(e,t,n)},appendLink:function(e){var t=this,n=e.rule.link;C.trueArray(n)&&n.forEach((function(n){var r=function(){return t.refreshRule(e,e.rule.value,"link")};t.bus.$on("change-"+n,r),e.linkOn.push((function(){return t.bus.$off("change-"+n,r)}))}))},fields:function(){return Object.keys(this.fieldCtx)}})}($e),function(e){B(e.prototype,{getCtx:function(e){return this.getFieldCtx(e)||this.getNameCtx(e)[0]||this.ctxs[e]},getCtxs:function(e){return this.fieldCtx[e]||this.nameCtx[e]||(this.ctxs[e]?[this.ctxs[e]]:[])},setIdCtx:function(e,t,n){var r="".concat(n,"Ctx");this[r][t]?this[r][t].push(e):this[r][t]=[e]},rmIdCtx:function(e,t,n){var r="".concat(n,"Ctx"),i=this[r][t];if(!i)return!1;var o=i.splice(i.indexOf(e)>>>0,1).length>0;return i.length||delete this[r][t],o},getFieldCtx:function(e){return(this.fieldCtx[e]||[])[0]},getNameCtx:function(e){return this.nameCtx[e]||[]},setCtx:function(e){var t=e.id,n=e.field,r=e.name,i=e.rule;this.ctxs[t]=e,r&&this.setIdCtx(e,r,"name"),e.input&&(this.setIdCtx(e,n,"field"),this.setFormData(e,e.parser.toFormValue(i.value,e)),this.isMounted&&!this.reloading&&this.vm.$emit("change",e.field,i.value,e.origin,this.api))},getParser:function(e){var t=this.fc.parsers;return t[e.originType]||t[xe(e.type)]||t[e.trueType]||Ie},bindParser:function(e){e.setParser(this.getParser(e))},getType:function(e){var t=this.fc.CreateNode.aliasMap,n=t[e]||t[xe(e)]||e;return xe(n)},noWatch:function(e){this.noWatchFn||(this.noWatchFn=e),pe(e),this.noWatchFn===e&&(this.noWatchFn=null)},watchCtx:function(e){var t=this,n=this.vm;Object.keys(e.rule).filter((function(e){return"_"!==e[0]&&"$"!==e[0]&&-1===Pe.indexOf(e)})).forEach((function(r){var i="children"===r;e.watch.push(n.$watch((function(){return e.rule[r]}),(function(n,o){if(!(t.loading||t.noWatchFn||t.reloading)){if(i&&!1===e.parser.loadChildren)return t.$render.clearCache(e),void t.nextRefresh();if(t.watching=!0,"link"!==r){if(["props","on","nativeOn","deep"].indexOf(r)>-1)t.parseInjectEvent(e.rule,n||{}),"props"===r&&e.input&&t.setFormData(e,e.parser.toFormValue(e.rule.value,e));else if(["emit","nativeEmit"].indexOf(r)>-1)t.parseEmit(e,"emit"===r);else if(["prefix","suffix"].indexOf(r)>-1)n&&t.loadFn(n,e.rule);else if("type"===r)e.updateType(),t.bindParser(e);else if("children"===r){var a=C.trueArray(n);t.deferSyncValue((function(){n!==o&&(t.rmSub(o,e),t.$render.initOrgChildren()),a&&t.loadChildren(n,e),t.vm.$emit("update",t.api)}))}t.$render.clearCache(e),t.refresh(),t.watching=!1}else e.link()}}),{deep:!i,sync:i}))})),this.watchEffect(e)},rmSub:function(e,t){var n=this;C.trueArray(e)&&e.forEach((function(e){e&&e.__fc__&&e.__fc__.parent===t&&n.rmCtx(e.__fc__)}))},rmCtx:function(e){var t=this;if(!e.deleted){var n=e.id,r=e.field,i=e.input,o=e.name;e.input&&Object.defineProperty(e.rule,"value",{value:e.rule.value,writable:!0}),L(this.ctxs,n),L(this.$render.tempList,n),L(this.$render.orgChildren,n),L(this.vm.ctxInject,n),L(this.formData,n),L(this.subForm,n),L(e,"cacheValue"),i&&this.rmIdCtx(e,r,"field"),o&&this.rmIdCtx(e,o,"name"),i&&!A(this.fieldCtx,r)&&L(this.form,r),this.deferSyncValue((function(){t.reloading||(!1!==e.parser.loadChildren&&C.trueArray(e.rule.children)&&e.rule.children.forEach((function(e){return e.__fc__&&t.rmCtx(e.__fc__)})),e.root===t.rules&&t.vm._renderRule())}),i);var a=this.sort.indexOf(n);return a>-1&&this.sort.splice(a,1),this.$render.clearCache(e),e.delete(),this.effect(e,"deleted"),i&&!this.fieldCtx[r]&&this.vm.$emit("removeField",r,e.rule,this.api),e.rule.__ctrl||this.vm.$emit("removeRule",e.rule,this.api),e}}})}($e),function(e){B(e.prototype,{mounted:function(){var e=this,t=function(){e.isMounted=!0,e.lifecycle("mounted")};this.pageEnd?t():this.bus.$once("page-end",t)},lifecycle:function(e){var t=this,n=this.options[e];C.Function(n)&&pe((function(){return n(t.api)})),this.vm.$emit(e,this.api)}})}($e),function(e){B(e.prototype,{useProvider:function(){var e=this,t=this.fc.providers;Object.keys(t).forEach((function(n){var r=t[n];C.Function(r)&&(r=r(e.fc)),r._c=function(e){var t=e.components;if(Array.isArray(t)){var n=function(e){return e.filter((function(e,t,n){return n.indexOf(e,0)===t}))}(t.filter((function(e){return"*"!==e})));return!!n.length&&n}return!!C.String(t)&&[t]}(r),e.onEffect(r),e.providers[n]=r}))},onEffect:function(e){var t=this,n=[];(e._c||["*"]).forEach((function(r){var i="*"===r?"*":t.getType(r);n.indexOf(i)>-1||(n.push(i),t.bus.$on("p:".concat(e.name,":").concat(i,":").concat(e.input?1:0),(function(t,n){e[t]&&e[t].apply(e,g(n))})))})),e._used=n},watchEffect:function(e){var t=this,n=this.vm,r={required:function(){var t,n;return(A(e.rule,"$required")?e.rule.$required:null===(t=e.rule)||void 0===t||null===(n=t.effect)||void 0===n?void 0:n.required)||!1}};Object.keys(e.rule.effect||{}).forEach((function(t){r[t]=function(){return e.rule.effect[t]}})),Object.keys(e.rule).forEach((function(t){"$"===t[0]&&(r[t.substr(1)]=function(){return e.rule[t]})})),Object.keys(r||{}).forEach((function(i){e.watch.push(n.$watch(r[i],(function(n){t.effect(e,"watch",l({},i,n))}),{deep:!0}))}))},ruleEffect:function(e,t,n){this.emitEffect({rule:e,input:!!e.field,type:this.getType(e.type)},t,n)},effect:function(e,t,n){this.emitEffect({rule:e.rule,input:e.input,type:e.trueType,ctx:e,custom:n},t)},getEffect:function(e,t){return A(e,"$"+t)?e["$"+t]:A(e,"effect")&&A(e.effect,t)?e.effect[t]:void 0},emitEffect:function(e,t,n){var r=this,i=e.ctx,o=e.rule,a=e.input,s=e.type,c=e.custom;if(s&&"fcFragment"!==s){var l=c||Object.keys(o).reduce((function(e,t){return"$"===t[0]&&(e[t.substr(1)]=o[t]),e}),d({},o.effect||{}));Object.keys(l).forEach((function(e){var c=r.providers[e];if(c&&(!c.input||a)){var u;if(c._c){if(!(c._used.indexOf(s)>-1))return;u=s}else u="*";var f=d({value:l[e],getValue:function(){return r.getEffect(o,e)}},n||{});i&&(f.getProp=function(){return i.effectData(e)},f.clearProp=function(){return i.clearEffectData(e)},f.mergeProp=function(e){return le(f.getProp(),[e])},f.id=i.id),r.bus.$emit("p:".concat(e,":").concat(u,":").concat(c.input?1:0),t,[f,o,r.api])}}))}}})}($e);var qe={name:"fcFragment",functional:!0,props:["vnode"],render:function(e,t){return t.props.vnode?t.props.vnode:t.children}};function He(){var e={};function n(e){e&&this.setVm(e)}return B(n.prototype,{setVm:function(e){this.vm=e,this.$h=e.$createElement},make:function(e,n,r){return t.config.isReservedTag(e)&&n.nativeOn&&delete n.nativeOn,this.makeComponent(e,n,r)},makeComponent:function(e,t,n){var r,i=this.$h(e,(r=t,C.String(r)?{domProps:{innerHTML:r}}:r),n||[]);return i.context=this.vm,i},aliasMap:e}),B(n,{aliasMap:e,alias:function(t,n){e[t]=n},use:function(e){Object.keys(e).forEach((function(t){var r=Ae(t),i=Ce(t).toLocaleLowerCase(),o=e[t];[t,r,i].forEach((function(e){n.alias(t,o),n.prototype[e]=function(e,t){return this.make(o,e,t)}}))}))}}),n}function Ue(e){var t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(n,We);var t=m(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),t.apply(this,arguments)}return n}();return Object.assign(t.prototype,e),t}function We(e){B(this,{$handle:e,vm:e.vm,options:{},ref:"fcForm",mergeOptionsRule:{normal:["form","row","info","submitBtn","resetBtn"]}}),this.updateKey(),this.init()}B(We.prototype,{__init:function(){var e=this;this.$render=this.$handle.$render,this.$r=function(){var t;return(t=e.$render).renderRule.apply(t,arguments)}},updateKey:function(){this.key=Ee()},init:function(){},update:function(){},beforeRender:function(){},form:function(){return this.vm.$refs[this.ref]},mergeOptions:function(e,t){var n=this;return U(e.map((function(e){return n.tidyOptions(e)})),t,this.mergeOptionsRule)},updateOptions:function(e){this.options=this.mergeOptions([e],this.getDefaultOptions()),this.update()},tidyOptions:function(e){return e},tidyRule:function(e){},mergeProp:function(e){},getDefaultOptions:function(){return{}},render:function(e){}});var Ve={name:"componentValidate",load:function(e,t,n){var r=e.getValue();r?e.getProp().validate=[{validator:function(){var i=fe(t);if(i){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return n.exec.apply(n,[i.id,!0===r?"formCreateValidate":r].concat(a,[{attr:e,rule:t,api:n}]))}}}]:(e.clearProp(),n.clearValidateState([t.field]))},watch:function(){Ve.load.apply(Ve,arguments)}},Ge={name:"required",load:function(e,t,n){var r=function(e){return C.Boolean(e)?{required:e}:C.String(e)?{message:e}:C.Undef(e)?{required:!1}:C.Function(e)?{validator:e}:C.Object(e)?e:{}}(e.getValue());if(!1===r.required)e.clearProp();else{var i=d({required:!0,validator:function(e,t,n){C.empty(t)?n(i.message):n()}},r);if(!i.message){var o=t.title||"";i.message=(("object"===c(o)?o.title:o)||"")+"不能为空"}e.getProp().validate=[i]}n.sync(t)},watch:function(){Ge.load.apply(Ge,arguments)}},Ke={fetch:function(e){function t(t,n,r){var i=t.value,o=function(e){void 0===e?(t.clearProp(),r.sync(n)):Te(t.getProp(),i.to||"options",e)};if(C.Function(i)&&(i=i(n,r)),(i=function(e){return C.String(e)&&(e={action:e,to:"options"}),e}(i))&&i.action){i.to||(i.to="options");var a=i.onError,s=function(){if(!t.getValue())return t.clearProp(),r.sync(n),!0},c=d(d({headers:{}},i),{},{onSuccess:function(e,t){if(!s()){var a=function(e){return t?e:e.data};C.Function(i.parse)?a=i.parse:i.parse&&C.String(i.parse)&&(a=function(e){return i.parse.split(".").forEach((function(t){e&&(e=e[t])})),e}),o(a(e,n,r)),r.sync(n)}},onError:function(e){o(void 0),s()||(a||function(e){return X(e.message||"fetch fail "+i.action)})(e,n,r)}});e.options.beforeFetch&&pe((function(){return e.options.beforeFetch(c,{rule:n,api:r})})),C.Function(i.action)?i.action(n,r).then((function(e){c.onSuccess(e,!0)})).catch((function(e){c.onError(e)})):pe((function(){return e.create.fetch(c,{inject:t,rule:n,api:r})}))}else o(void 0)}return{name:"fetch",loaded:function(){t.apply(void 0,arguments)},watch:function(){t.apply(void 0,arguments)}}},loadData:function(e){var t={name:"loadData",_fn:[],created:function(t,n,r){this.deleted(t);var i=y(t.getValue()),o=[];i.forEach((function(i){if(i){var a=function o(){!1!==i.watch&&(e.bus.$off("p.loadData."+i.attr,o),e.bus.$once("p.loadData."+i.attr,o));var a=void 0;i.attr&&(a=e.loadData[i.attr]||i.default,i.copy&&(a=F(a))),Te(t.getProp(),i.to||"options",a),r.sync(n)};o.push((function(){return e.bus.$off("p.loadData."+i.attr,a)})),a()}})),this._fn[t.id]=o},deleted:function(e){this._fn[e.id]&&(this._fn[e.id].forEach((function(e){e()})),delete this._fn[e.id]),e.clearProp()}};return t.watch=t.created,t},required:Ge,componentValidate:Ve},Ye={name:"html",loadChildren:!1,render:function(e,t){return t.prop.domProps||(t.prop.domProps={}),t.prop.domProps.innerHTML=e,t.vNode.make(t.prop.props.tag||"div",t.prop)},renderChildren:function(e){return Array.isArray(e.rule.children)?e.rule.children.filter((function(e){return C.String(e)})).join(""):""}},Xe="undefined"!=typeof window&&window.Vue?window.Vue:t;function Qe(){return function(e,t){var n;return 2===arguments.length?t=(n=arguments[1])[e]:n=arguments[2],{id:t,prop:n}}.apply(void 0,["name"].concat(Array.prototype.slice.call(arguments)))}function Je(e){return e&&e.el?C.Element(e.el)?e.el:document.querySelector(e.el):window.document.body}function Ze(e,t){var n=new Xe({data:function(){return{rule:e,option:t||{}}},render:function(e){return e("FormCreate",{ref:"fc",props:this.$data})}});return n.$mount(),n}var et=1,tt={};function nt(e){var t,n,r,i,o=l({},qe.name,qe),a={},s={},c=d({},Ke),u=ye(),f={global:{}},p={},h=He();function m(e){var t=tt[e];return Array.isArray(t)?t.map((function(e){return e.api()})):t?t.api():void 0}function v(){var e=Qe.apply(void 0,arguments);e.id&&e.prop&&(s[e.id]=e.prop)}function b(){var e=Qe.apply(void 0,arguments);e.id&&e.prop&&(c[e.id]=d(d({},e.prop),{},{name:e.id}))}function _(e){h.use(e)}function y(){var e=Qe.apply(void 0,arguments);if(e.id&&e.prop){var t=xe(e.id),n=e.prop,r=!0===n.merge?a[t]:void 0;a[t]=d(d({},r||Ie),n),u[t]=he(t),n.maker&&B(u,n.maker)}}function w(e,t){var n;if(C.String(e)){if(n=xe(e),["form-create","formcreate"].indexOf(n)>-1)return S();if(void 0===t)return o[n]}else n=xe(e.name),t=e;n&&t&&(o[n]=t,t.formCreateParser&&y(n,t.formCreateParser))}function x(e){Object.keys(tt).forEach((function(t){(Array.isArray(tt[t])?tt[t]:[tt[t]]).forEach((function(t){t.bus.$emit("p.loadData."+e)}))}))}function k(e,t){p[e]=t,x(e)}function A(e){delete p[e],x(e)}function S(){return Xe.extend(j(D))}function E(){return Xe.extend(qe)}function T(e,t){return C.Function(e.install)?e.install(O,t):C.Function(e)&&e(O,t),this}function O(e,t,n){var r=Ze(e,t||{}),i=r.$refs.fc.formCreate;return i.$parent=n,Je(i.options).appendChild(r.$el),i.api()}function R(t){var n=d({},e);return t?n.inherit={components:o,parsers:a,directives:s,providers:c,maker:u,loadData:p}:delete n.inherit,nt(n)}function D(t,n,r){B(this,{id:et++,vm:t,create:O,manager:Ue(e.manager),parsers:a,providers:c,rules:Array.isArray(n)?n:[],name:t.$options.propsData.name||Ee(),inFor:t.$options.propsData.inFor,prop:{components:o,directives:s},loadData:p,CreateNode:h,bus:new Xe,unwatch:null,options:r||{},extendApi:e.extendApi||function(e){return e}}),this.init(),this.initOptions(this.options),this.name&&(this.inFor?(tt[this.name]||(tt[this.name]=[]),tt[this.name].push(this)):tt[this.name]=this)}function L(t){B(t,{version:e.version,ui:e.ui,setData:k,removeData:A,maker:u,component:w,directive:v,register:b,$vnode:E,parser:y,use:T,factory:R,componentAlias:_,copyRule:se,copyRules:ce,fetch:ze,$form:S,parseFn:ie,parseJson:oe,toJson:ne,getApi:m,init:function(e){var t=Ze(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=t.$refs.fc.formCreate;return{mount:function(e){return e&&C.Element(e)&&(n.options.el=e),Je(n.options).appendChild(t.$el),n.api()},remove:function(){t.$el.parentNode&&t.$el.parentNode.removeChild(t.$el)},destroy:function(){this.remove(),t.$destroy()},$f:n.api()}}})}if(t=e.attrs||{},n=t.key||[],r=t.array||[],i=t.normal||[],V.push.apply(V,g(n)),G.push.apply(G,g(r)),K.push.apply(K,g(i)),ge([].concat(g(n),g(r),g(i))),B(D.prototype,{init:function(){var e=this,t=this.vm,n=new $e(this);this.$handle=n,t.$f=n.api,t.$emit("input",n.api),t.$on("hook:created",(function(){e.isSub()&&(e.unwatch=t.$watch((function(){return t.$pfc.option}),(function(){e.initOptions(e.options),t.$f.refresh()}),{deep:!0}),e.initOptions(e.options)),e.created()})),t.$on("hook:mounted",(function(){e.mounted()})),t.$on("hook:beforeDestroy",(function(){if(t.destroyed=!0,e.unwatch&&e.unwatch(),n.reloadRule([]),e.name)if(e.inFor){var r=tt[e.name].indexOf(e);tt[e.name].splice(r,1),tt[e.name].length||delete tt[e.name]}else delete tt[e.name]})),t.$on("hook:updated",(function(){n.bindNextTick((function(){return e.bus.$emit("next-tick",n.api)}))}))},isSub:function(){return this.vm.$pfc&&this.vm.extendOption},initOptions:function(e){this.options=d({formData:{},submitBtn:{},resetBtn:{}},F(f)),this.isSub()&&this.mergeOptions(this.options,this.vm.$pfc.$f.config||{},!0),this.updateOptions(e)},mergeOptions:function(e,t,n){return t=F(t),n&&["page","onSubmit","mounted","reload","formData","el"].forEach((function(e){delete t[e]})),t.global&&(e.global=function(e,t){return e?(Object.keys(t||{}).forEach((function(n){t[n]&&(e[n]=le(e[n]||{},t[n]))})),e):t}(e.global,t.global),delete t.global),this.$handle.$manager.mergeOptions([t],e),e},updateOptions:function(e){this.mergeOptions(this.options,e),this.$handle.$manager.updateOptions(this.options)},created:function(){this.$handle.init(),this.vm.$emit("created",this.api())},api:function(){return this.$handle.api},render:function(){return this.$handle.render()},mounted:function(){this.$handle.mounted()}}),L(O),B(O,{create:O,install:function(e,t){if(f=d(d({},f),t||{}),!0!==e._installedFormCreate){e._installedFormCreate=!0,Xe=e;var n=function(e){return O(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},this)};L(n),e.prototype.$formCreate=n,e.component("FormCreate",S()),e.component("FcFragment",E())}}}),h.use({fragment:"fcFragment"}),y(Ye),e.install&&O.use(e),e.inherit){var M=e.inherit;M.components&&B(o,M.components),M.parsers&&B(a,M.parsers),M.directives&&B(s,M.directives),M.providers&&B(c,M.providers),M.maker&&B(u,M.maker),M.loadData&&B(p,M.loadData)}return O}var rt={date:"yyyy-MM-dd",month:"yyyy-MM",datetime:"yyyy-MM-dd HH:mm:ss",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",monthrange:"yyyy-MM",datetimerange:"yyyy-MM-dd HH:mm:ss",year:"yyyy"},it={name:"datePicker",maker:["year","month","date","dates","week","datetime","datetimeRange","dateRange","monthRange"].reduce((function(e,t){return e[t]=he("datePicker",{type:t.toLowerCase()}),e}),{}),mergeProp:function(e){var t=e.prop.props;t.valueFormat||(t.valueFormat=rt[t.type]||rt.date)}},ot={name:"hidden",maker:l({},"hidden",(function(e,t){return he("hidden")("",e,t)})),render:function(){return[]}},at=[it,ot,{name:"input",maker:function(){var e=["password","url","email","text","textarea"].reduce((function(e,t){return e[t]=he("input",{type:t}),e}),{});return e.idate=he("input",{type:"date"}),e}(),mergeProp:function(e){var t=e.prop.props;t&&t.autosize&&t.autosize.minRows&&(t.rows=t.autosize.minRows||2)}},{name:"slider",maker:{sliderRange:he("slider",{range:!0})},toFormValue:function(e,t){var n=Array.isArray(e),r=t.prop.props,i=r.min||0;return!0===r.range?n?e:[i,parseFloat(e)||i]:n?parseFloat(e[0])||i:parseFloat(e)}},{name:"timePicker",maker:{time:he("timePicker",(function(e){return e.props.isRange=!1})),timeRange:he("timePicker",(function(e){return e.props.isRange=!0}))},mergeProp:function(e){var t=e.prop.props;t.valueFormat||(t.valueFormat="HH:mm:ss")}},{name:"FcRow",render:function(e,t){return t.vNode.col({props:{span:24}},[t.vNode.row(t.prop,e)])}},{name:"select",toFormValue:function(e,t){return t.prop.props.multiple&&!Array.isArray(e)?y(e):e}}],st={button:"elButton",icon:"i",slider:"elSlider",rate:"elRate",upload:"fcUpload",cascader:"elCascader",popover:"elPopover",tooltip:"elTooltip",colorPicker:"elColorPicker",timePicker:"elTimePicker",timeSelect:"elTimeSelect",datePicker:"elDatePicker",switch:"elSwitch",select:"fcSelect",checkbox:"fcCheckbox",radio:"fcRadio",inputNumber:"elInputNumber",number:"elInputNumber",input:"elInput",formItem:"elFormItem",form:"elForm",frame:"fcFrame",col:"elCol",row:"elRow",tree:"fcTree",autoComplete:"elAutocomplete",auto:"elAutocomplete",group:"fcGroup",object:"fcSubForm",subForm:"fcSubForm"},ct=/[A-Z]/;function lt(e,t){var n;A(e,t)&&C.String(e[t])&&(e[t]=(l(n={},t,e[t]),l(n,"show",!0),n))}function ut(e){return!1===e}var dt={validate:function(){var e=this.form();return e?e.validate():new Promise((function(e){return e()}))},validateField:function(e){var t=this.form();return new Promise(t?function(n,r){t.validateField(e,(function(e){e?r(e):n(null)}))}:function(e){return e()})},clearValidateState:function(e){var t=this.vm.$refs[e.wrapRef];t&&(t.validateMessage="",t.validateState="")},tidyOptions:function(e){return["submitBtn","resetBtn","row","info","wrap","col"].forEach((function(t){!function(e,t){A(e,t)&&!C.Object(e[t])&&(e[t]={show:!!e[t]})}(e,t)})),e},tidyRule:function(e){var t=e.prop;return lt(t,"title"),lt(t,"info"),t},mergeProp:function(e){var t=e.prop.props;e.prop=U([{attrs:Object.keys(t).reduce((function(e,n){var r,i;return r=n,i=t[n],ct.test(r)||!C.String(i)&&!C.Number(i)||(e[n]=t[n]),e}),{}),info:this.options.info||{},wrap:this.options.wrap||{},col:this.options.col||{}},e.prop],{info:{trigger:"hover",placement:"top-start",icon:"el-icon-warning"},title:{},col:{span:24},wrap:{}},{normal:["title","info","col","wrap"]})},getDefaultOptions:function(){return{form:{inline:!1,labelPosition:"right",labelWidth:"125px",disabled:!1,size:void 0},row:{show:!0,gutter:0},submitBtn:{type:"primary",loading:!1,disabled:!1,innerText:"提交",show:!0,col:void 0,click:void 0},resetBtn:{type:"default",loading:!1,disabled:!1,icon:"el-icon-refresh",innerText:"重置",show:!1,col:void 0,click:void 0}}},update:function(){var e=this.options.form;this.rule={props:d({},e),nativeOn:{submit:function(e){e.preventDefault()}},class:[e.className,e.class,"form-create"],style:e.style,type:"form"}},beforeRender:function(){var e=this.key,t=this.ref,n=this.$handle;B(this.rule,{key:e,ref:t}),B(this.rule.props,{model:n.formData,rules:n.validate()})},render:function(e){return e.length&&e.push(this.makeFormBtn()),this.$r(this.rule,ut(this.options.row.show)?e:[this.makeRow(e)])},makeWrap:function(e,t){var n=e.prop,r="".concat(this.key).concat(e.key),i=n.col,o=this.isTitle(n),a=i.labelWidth||o?i.labelWidth:0,s=this.rule.props,c=s.inline,l=s.col,u=ut(n.wrap.show)?t:this.$r(U([n.wrap,{props:d(d({labelWidth:void 0===a?a:Ce(a),label:o?n.title.title:void 0},n.wrap||{}),{},{prop:e.id,rules:n.validate}),class:n.className,key:"".concat(r,"fi"),ref:e.wrapRef,type:"formItem"}]),[t,o?this.makeInfo(n,r):null]);return!0===c||ut(l)||ut(i.show)?u:this.makeCol(n,r,[u])},isTitle:function(e){if(!1===this.options.form.title)return!1;var t=e.title;return!(!t.title&&!t.native||ut(t.show))},makeInfo:function(e,t){var n=e.title,r=e.info,i="tooltip"===r.type,o=this.options.form,a=[(n.title||"")+(o.labelSuffix||o["label-suffix"]||"")];if(!ut(r.show)&&(r.info||r.native)&&!ut(r.icon)){var s={type:r.type||"popover",props:d({},r),key:"".concat(t,"pop"),slot:"label"};r.info&&!A(s.props,"content")&&(s.props.content=r.info),a["left"!==r.align?"unshift":"push"](this.$r(U([r,s]),[this.$r({type:"i",slot:i?"default":"reference",class:!0===r.icon?"el-icon-warning":r.icon,key:"".concat(t,"i")})]))}return this.$r(U([n,{props:n,slot:n.slot||"label",key:"".concat(t,"tit"),type:n.type||"span"}]),a)},makeCol:function(e,t,n){var r=e.col;return this.$r({class:r.class,type:"col",props:r||{span:24},key:"".concat(t,"col")},n)},makeRow:function(e){var t=this.options.row||{};return this.$r({type:"row",props:t,class:t.class,key:"".concat(this.key,"row")},e)},makeFormBtn:function(){var e=[];if(ut(this.options.submitBtn.show)||e.push(this.makeSubmitBtn()),ut(this.options.resetBtn.show)||e.push(this.makeResetBtn()),e.length){var t=this.$r({type:"formItem",key:"".concat(this.key,"fb")},e);return!0===this.rule.props.inline?t:this.$r({type:"col",props:{span:24},key:"".concat(this.key,"fc")},[t])}},makeResetBtn:function(){var e=this,t=this.options.resetBtn;return this.$r({type:"button",props:t,style:{width:t.width},on:{click:function(){var n=e.$handle.api;t.click?t.click(n):n.resetFields()}},key:"".concat(this.key,"b2")},[t.innerText])},makeSubmitBtn:function(){var e=this,t=this.options.submitBtn;return this.$r({type:"button",props:t,style:{width:t.width},on:{click:function(){var n=e.$handle.api;t.click?t.click(n):n.submit()}},key:"".concat(this.key,"b1")},[t.innerText])}},ft={};function pt(e,t){return C.Boolean(e)?e={show:e}:C.Undef(e)||C.Object(e)||(e={show:t}),e}function ht(e,t){return B(e,{formEl:function(){return t.$manager.form()},wrapEl:function(e){var n=t.getFieldCtx(e);if(n)return t.vm.$refs[n.wrapRef]},validate:function(n){return new Promise((function(r,i){var o=e.children,a=[t.$manager.validate()];o.forEach((function(e){a.push(e.validate())})),Promise.all(a).then((function(){r(!0),n&&n(!0)})).catch((function(r){i(r),n&&n(!1,r),t.vm.$emit("validate-fail",r,{api:e})}))}))},validateField:function(n,r){return new Promise((function(i,o){var a=t.getFieldCtx(n);if(a){var s=t.subForm[a.id],c=[t.$manager.validateField(a.id)];y(s).forEach((function(e){c.push(e.validate().catch((function(){return Promise.reject("子表单验证未通过")})))})),Promise.all(c).then((function(){i(null),r&&r(null)})).catch((function(i){o(i),r&&r(i),t.vm.$emit("validate-field-fail",i,{field:n,api:e})}))}}))},clearValidateState:function(n){var r=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.helper.tidyFields(n).forEach((function(e){i&&r.clearSubValidateState(e),t.getCtxs(e).forEach((function(e){t.$manager.clearValidateState(e)}))}))},clearSubValidateState:function(n){e.helper.tidyFields(n).forEach((function(e){t.getCtxs(e).forEach((function(e){var n=t.subForm[e.id];n&&(Array.isArray(n)?n.forEach((function(e){e.clearValidateState()})):n&&n.clearValidateState())}))}))},btn:{loading:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.submitBtnProps({loading:!!t})},disabled:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.submitBtnProps({disabled:!!t})},show:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.submitBtnProps({show:!!t})}},resetBtn:{loading:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.resetBtnProps({loading:!!t})},disabled:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.resetBtnProps({disabled:!!t})},show:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e.resetBtnProps({show:!!t})}},submitBtnProps:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=pt(t.options.submitBtn,!0);B(r,n),t.options.submitBtn=r,e.refreshOptions()},resetBtnProps:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=pt(t.options.resetBtn,!1);B(r,n),t.options.resetBtn=r,e.refreshOptions()},submit:function(n,r){var i=arguments,o=this;e.validate((function(a){if(a){var s=e.formData();C.Function(n)?pe((function(){return n(s,o)})):(C.Function(t.options.onSubmit)&&pe((function(){return t.options.onSubmit(s,o)})),t.vm.$emit("submit",s,o))}else C.Function(r)&&pe((function(){return r.apply(void 0,[o].concat(g(i)))}))}))}}),e}function mt(e){e.componentAlias(st),I.forEach((function(t){e.component(t.name,t)})),at.forEach((function(t){e.parser(t)})),Object.keys(ft).forEach((function(t){e.maker[t]=ft[t]}))}!function(e){["group","tree","switch","upload","autoComplete","checkbox","cascader","colorPicker","datePicker","frame","inputNumber","radio","rate"].forEach((function(t){e[t]=he(t)})),e.auto=e.autoComplete,e.number=e.inputNumber,e.color=e.colorPicker}(ft),function(e){e.selectMultiple=he("select",l({},"multiple",!0)),e.selectOne=he("select",l({},"multiple",!1))}(ft),function(e){var t={treeSelected:"selected",treeChecked:"checked"};Object.keys(t).reduce((function(e,n){return e[n]=he("tree",{type:t[n]}),e}),e)}(ft),function(e){var t={image:["image",0],file:["file",0],uploadFileOne:["file",1],uploadImageOne:["image",1]};Object.keys(t).reduce((function(e,n){return e[n]=he("upload",(function(e){return e.props({uploadType:t[n][0],maxLength:t[n][1]})})),e}),e),e.uploadImage=e.image,e.uploadFile=e.file}(ft),function(e){var t={frameInputs:["input",0],frameFiles:["file",0],frameImages:["image",0],frameInputOne:["input",1],frameFileOne:["file",1],frameImageOne:["image",1]};Object.keys(t).reduce((function(e,n){return e[n]=he("frame",(function(e){return e.props({type:t[n][0],maxLength:t[n][1]})})),e}),e),e.frameInput=e.frameInputs,e.frameFile=e.frameFiles,e.frameImage=e.frameImages}(ft),w(".form-create .form-create .el-form-item {\n margin-bottom: 22px;\n}\n\n.form-create .form-create .el-form-item .el-form-item {\n margin-bottom: 0px;\n}\n");var gt=nt({ui:"".concat("element-ui"),version:"".concat("2.5.33"),manager:dt,extendApi:ht,install:mt,attrs:{normal:["col","wrap"],array:["className"],key:["title","info"]}});"undefined"!=typeof window&&(window.formCreate=gt,window.Vue&&gt.install(window.Vue));var vt=gt.maker;e.default=gt,e.maker=vt,Object.defineProperty(e,"__esModule",{value:!0})}))},3154:function(e,t,n){n("f034")},3280:function(e,t,n){"use strict";var r=n("ebb5"),i=n("2ba4"),o=n("e58c"),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("lastIndexOf",(function(e){var t=arguments.length;return i(o,a(this),t>1?[e,arguments[1]]:[e])}))},"333c":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n("2b0e");function i(e,t,n){r["default"].set(e,t,n)}var o=n("e866");function a(e,t={},n){let r=!1;for(let s in t)if(Object.prototype.hasOwnProperty.call(t,s)){let c=t[s];if((r=Array.isArray(c))||o["a"].Object(c)){let t=void 0===e[s];if(r)r=!1,t&&i(e,s,[]);else if(c._clone&&void 0!==n){if(!n){i(e,s,c._clone());continue}c=c.getRule(),t&&i(e,s,{})}else t&&i(e,s,{});e[s]=a(e[s],c,n)}else i(e,s,c),o["a"].Undef(c)||(o["a"].Undef(c.__json)||(e[s].__json=c.__json),o["a"].Undef(c.__origin)||(e[s].__origin=c.__origin))}return void 0!==n&&Array.isArray(e)?e.filter(e=>!e||!e.__ctrl):e}function s(e){return a({},{value:e}).value}},3397:function(e,t,n){var r=n("7a41");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},3410:function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("7b0b"),a=n("e163"),s=n("e177"),c=i((function(){a(1)}));r({target:"Object",stat:!0,forced:c,sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},"342f":function(e,t,n){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3491:function(e,t,n){var r=n("1e69"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},3511:function(e,t,n){"use strict";var r=TypeError,i=9007199254740991;e.exports=function(e){if(e>i)throw r("Maximum allowed index exceeded");return e}},3524:function(e,t,n){var r=n("53c6"),i=n("1935").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},3529:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),a=n("f069"),s=n("e667"),c=n("2266"),l=n("5eed");r({target:"Promise",stat:!0,forced:l},{race:function(e){var t=this,n=a.f(t),r=n.reject,l=s((function(){var a=o(t.resolve);c(e,(function(e){i(a,t,e).then(n.resolve,r)}))}));return l.error&&r(l.value),n.promise}})},"35a1":function(e,t,n){"use strict";var r=n("f5df"),i=n("dc4a"),o=n("7234"),a=n("3f8c"),s=n("b622"),c=s("iterator");e.exports=function(e){if(!o(e))return i(e,c)||i(e,"@@iterator")||a[r(e)]}},3699:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},i=r("string"),o=r("object"),a=r("array"),s=function(e){return null===e||void 0===e},c=function(e){return!s(e)},l=function(){},u=function(e){return function(){return e}},d=function(e){return e},f=u(!1),p=u(!0),h=function(){return m},m=function(){var e=function(e){return e()},t=d,n={fold:function(e,t){return e()},isSome:f,isNone:p,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:u(null),getOrUndefined:u(void 0),or:t,orThunk:e,map:h,each:l,bind:h,exists:f,forall:p,filter:function(){return h()},toArray:function(){return[]},toString:u("none()")};return n}(),g=function(e){var t=u(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:p,isNone:f,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return g(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:m},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},v=function(e){return null===e||void 0===e?m:g(e)},b={some:g,none:h,from:v},_=Array.prototype.push,y=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},w=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);_.apply(t,e[n])}return t},x=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},k=Object.keys,C=Object.hasOwnProperty,A=function(e,t){for(var n=k(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},S=function(e,t){return E(e,t)?b.from(e[t]):b.none()},E=function(e,t){return C.call(e,t)},T=function(e){return e.getParam("media_scripts")},O=function(e){return e.getParam("audio_template_callback")},R=function(e){return e.getParam("video_template_callback")},D=function(e){return e.getParam("media_live_embeds",!0)},L=function(e){return e.getParam("media_filter_html",!0)},M=function(e){return e.getParam("media_url_resolver")},F=function(e){return e.getParam("media_alt_source",!0)},N=function(e){return e.getParam("media_poster",!0)},B=function(e){return e.getParam("media_dimensions",!0)},I=tinymce.util.Tools.resolve("tinymce.util.Tools"),P=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),$=tinymce.util.Tools.resolve("tinymce.html.SaxParser"),j=function(e,t){if(e)for(var n=0;n<e.length;n++)if(-1!==t.indexOf(e[n].filter))return e[n]},z=P.DOM,q=function(e){return e.replace(/px$/,"")},H=function(e){var t=e.map.style,n=t?z.parseStyle(t):{};return{type:"ephox-embed-iri",source:e.map["data-ephox-embed-iri"],altsource:"",poster:"",width:S(n,"max-width").map(q).getOr(""),height:S(n,"max-height").map(q).getOr("")}},U=function(e,t){var n=x(!1),r={};return $({validate:!1,allow_conditional_comments:!0,start:function(t,i){if(n.get());else if(E(i.map,"data-ephox-embed-iri"))n.set(!0),r=H(i);else{if(r.source||"param"!==t||(r.source=i.map.movie),"iframe"!==t&&"object"!==t&&"embed"!==t&&"video"!==t&&"audio"!==t||(r.type||(r.type=t),r=I.extend(i.map,r)),"script"===t){var o=j(e,i.map.src);if(!o)return;r={type:"script",source:i.map.src,width:String(o.width),height:String(o.height)}}"source"===t&&(r.source?r.altsource||(r.altsource=i.map.src):r.source=i.map.src),"img"!==t||r.poster||(r.poster=i.map.src)}}}).parse(t),r.source=r.source||r.src||r.data,r.altsource=r.altsource||"",r.poster=r.poster||"",r},W=function(e){var t={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=e.toLowerCase().split(".").pop(),r=t[n];return r||""},V=tinymce.util.Tools.resolve("tinymce.html.Schema"),G=tinymce.util.Tools.resolve("tinymce.html.Writer"),K=P.DOM,Y=function(e){return/^[0-9.]+$/.test(e)?e+"px":e},X=function(e,t){A(t,(function(t,n){var r=""+t;if(e.map[n]){var i=e.length;while(i--){var o=e[i];o.name===n&&(r?(e.map[n]=r,o.value=r):(delete e.map[n],e.splice(i,1)))}}else r&&(e.push({name:n,value:r}),e.map[n]=r)}))},Q=function(e,t){var n=t.map.style,r=n?K.parseStyle(n):{};r["max-width"]=Y(e.width),r["max-height"]=Y(e.height),X(t,{style:K.serializeStyle(r)})},J=["source","altsource"],Z=function(e,t,n){var r,i=G(),o=x(!1),a=0;return $({validate:!1,allow_conditional_comments:!0,comment:function(e){i.comment(e)},cdata:function(e){i.cdata(e)},text:function(e,t){i.text(e,t)},start:function(e,s,c){if(o.get());else if(E(s.map,"data-ephox-embed-iri"))o.set(!0),Q(t,s);else{switch(e){case"video":case"object":case"embed":case"img":case"iframe":void 0!==t.height&&void 0!==t.width&&X(s,{width:t.width,height:t.height});break}if(n)switch(e){case"video":X(s,{poster:t.poster,src:""}),t.altsource&&X(s,{src:""});break;case"iframe":X(s,{src:t.source});break;case"source":if(a<2&&(X(s,{src:t[J[a]],type:t[J[a]+"mime"]}),!t[J[a]]))return;a++;break;case"img":if(!t.poster)return;r=!0;break}}i.start(e,s,c)},end:function(e){if(!o.get()){if("video"===e&&n)for(var s=0;s<2;s++)if(t[J[s]]){var c=[];c.map={},a<=s&&(X(c,{src:t[J[s]],type:t[J[s]+"mime"]}),i.start("source",c,!0))}if(t.poster&&"object"===e&&n&&!r){var l=[];l.map={},X(l,{src:t.poster,width:t.width,height:t.height}),i.start("img",l,!0)}}i.end(e)}},V({})).parse(e),i.getContent()},ee=[{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&amp;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}],te=function(e){var t=e.match(/^(https?:\/\/|www\.)(.+)$/i);return t&&t.length>1?"www."===t[1]?"https://":t[1]:"https://"},ne=function(e,t){for(var n=te(t),r=e.regex.exec(t),i=n+e.url,o=function(e){i=i.replace("$"+e,(function(){return r[e]?r[e]:""}))},a=0;a<r.length;a++)o(a);return i.replace(/\?$/,"")},re=function(e){var t=ee.filter((function(t){return t.regex.test(e)}));return t.length>0?I.extend({},t[0],{url:ne(t[0],e)}):null},ie=function(e){var t=e.allowfullscreen?' allowFullscreen="1"':"";return'<iframe src="'+e.source+'" width="'+e.width+'" height="'+e.height+'"'+t+"></iframe>"},oe=function(e){var t='<object data="'+e.source+'" width="'+e.width+'" height="'+e.height+'" type="application/x-shockwave-flash">';return e.poster&&(t+='<img src="'+e.poster+'" width="'+e.width+'" height="'+e.height+'" />'),t+="</object>",t},ae=function(e,t){return t?t(e):'<audio controls="controls" src="'+e.source+'">'+(e.altsource?'\n<source src="'+e.altsource+'"'+(e.altsourcemime?' type="'+e.altsourcemime+'"':"")+" />\n":"")+"</audio>"},se=function(e,t){return t?t(e):'<video width="'+e.width+'" height="'+e.height+'"'+(e.poster?' poster="'+e.poster+'"':"")+' controls="controls">\n<source src="'+e.source+'"'+(e.sourcemime?' type="'+e.sourcemime+'"':"")+" />\n"+(e.altsource?'<source src="'+e.altsource+'"'+(e.altsourcemime?' type="'+e.altsourcemime+'"':"")+" />\n":"")+"</video>"},ce=function(e){return'<script src="'+e.source+'"><\/script>'},le=function(e,t){var n=I.extend({},t);if(!n.source&&(I.extend(n,U(T(e),n.embed)),!n.source))return"";n.altsource||(n.altsource=""),n.poster||(n.poster=""),n.source=e.convertURL(n.source,"source"),n.altsource=e.convertURL(n.altsource,"source"),n.sourcemime=W(n.source),n.altsourcemime=W(n.altsource),n.poster=e.convertURL(n.poster,"poster");var r=re(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 Z(n.embed,n,!0);var i=j(T(e),n.source);i&&(n.type="script",n.width=String(i.width),n.height=String(i.height));var o=O(e),a=R(e);return n.width=n.width||"300",n.height=n.height||"150",I.each(n,(function(t,r){n[r]=e.dom.encode(""+t)})),"iframe"===n.type?ie(n):"application/x-shockwave-flash"===n.sourcemime?oe(n):-1!==n.sourcemime.indexOf("audio")?ae(n,o):"script"===n.type?ce(n):se(n,a)},ue=function(e){return e.hasAttribute("data-mce-object")||e.hasAttribute("data-ephox-embed-iri")},de=function(e){e.on("click keyup touchend",(function(){var t=e.selection.getNode();t&&e.dom.hasClass(t,"mce-preview-object")&&e.dom.getAttrib(t,"data-mce-selected")&&t.setAttribute("data-mce-selected","2")})),e.on("ObjectSelected",(function(e){var t=e.target.getAttribute("data-mce-object");"script"===t&&e.preventDefault()})),e.on("ObjectResized",(function(e){var t=e.target;if(t.getAttribute("data-mce-object")){var n=t.getAttribute("data-mce-html");n&&(n=unescape(n),t.setAttribute("data-mce-html",escape(Z(n,{width:String(e.width),height:String(e.height)}))))}}))},fe=tinymce.util.Tools.resolve("tinymce.util.Promise"),pe={},he=function(e,t,n){return new fe((function(r,i){var o=function(n){return n.html&&(pe[e.source]=n),r({url:e.source,html:n.html?n.html:t(e)})};pe[e.source]?o(pe[e.source]):n({url:e.source},o,i)}))},me=function(e,t){return fe.resolve({html:t(e),url:e.source})},ge=function(e){return function(t){return le(e,t)}},ve=function(e,t){var n=M(e);return n?he(t,ge(e),n):me(t,ge(e))},be=function(e){return E(pe,e)},_e=function(e,t){return S(t,e).bind((function(e){return S(e,"meta")}))},ye=function(e,t,n){return function(r){var i,a=function(){return S(e,r)},s=function(){return S(t,r)},c=function(e){return S(e,"value").bind((function(e){return e.length>0?b.some(e):b.none()}))},l=function(){return a().bind((function(e){return o(e)?c(e).orThunk(s):s().orThunk((function(){return b.from(e)}))}))},u=function(){return s().orThunk((function(){return a().bind((function(e){return o(e)?c(e):b.from(e)}))}))};return i={},i[r]=(r===n?l():u()).getOr(""),i}},we=function(e,t){var n={};return S(e,"dimensions").each((function(e){y(["width","height"],(function(r){S(t,r).orThunk((function(){return S(e,r)})).each((function(e){return n[r]=e}))}))})),n},xe=function(e,n){var r=n?_e(n,e).getOr({}):{},i=ye(e,r,n);return t(t(t(t(t({},i("source")),i("altsource")),i("poster")),i("embed")),we(e,r))},ke=function(e){var n=t(t({},e),{source:{value:S(e,"source").getOr("")},altsource:{value:S(e,"altsource").getOr("")},poster:{value:S(e,"poster").getOr("")}});return y(["width","height"],(function(t){S(e,t).each((function(e){var r=n.dimensions||{};r[t]=e,n.dimensions=r}))})),n},Ce=function(e){return function(t){var n=t&&t.msg?"Media embed handler error: "+t.msg:"Media embed handler threw unknown error.";e.notificationManager.open({type:"error",text:n})}},Ae=function(e,t){return U(T(e),t)},Se=function(e){var n=e.selection.getNode(),r=ue(n)?e.serializer.serialize(n,{selection:!0}):"";return t({embed:r},U(T(e),r))},Ee=function(e,n){return function(r){if(i(r.url)&&r.url.trim().length>0){var o=r.html,a=Ae(n,o),s=t(t({},a),{source:r.url,embed:o});e.setData(ke(s))}}},Te=function(e,t){for(var n=e.dom.select("*[data-mce-object]"),r=0;r<t.length;r++)for(var i=n.length-1;i>=0;i--)t[r]===n[i]&&n.splice(i,1);e.selection.select(n[0])},Oe=function(e,t){var n=e.dom.select("*[data-mce-object]");e.insertContent(t),Te(e,n),e.nodeChanged()},Re=function(e,t,n){t.embed=Z(t.embed,t),t.embed&&(e.source===t.source||be(t.source))?Oe(n,t.embed):ve(n,t).then((function(e){Oe(n,e.html)})).catch(Ce(n))},De=function(e){var n=Se(e),r=x(n),i=ke(n),o=function(t,n){var r=xe(n.getData(),"source");t.source!==r.source&&(Ee(v,e)({url:r.source,html:""}),ve(e,r).then(Ee(v,e)).catch(Ce(e)))},a=function(t){var n=xe(t.getData()),r=Ae(e,n.embed);t.setData(ke(r))},s=function(n,r){var i=xe(n.getData(),r),o=le(e,i);n.setData(ke(t(t({},i),{embed:o})))},c=[{name:"source",type:"urlinput",filetype:"media",label:"Source"}],l=B(e)?[{type:"sizeinput",name:"dimensions",label:"Constrain proportions",constrain:!0}]:[],u={title:"General",name:"general",items:w([c,l])},d={type:"textarea",name:"embed",label:"Paste your embed code below:"},f={title:"Embed",items:[d]},p=[];F(e)&&p.push({name:"altsource",type:"urlinput",filetype:"media",label:"Alternative source URL"}),N(e)&&p.push({name:"poster",type:"urlinput",filetype:"image",label:"Media poster (Image URL)"});var h={title:"Advanced",name:"advanced",items:p},m=[u,f];p.length>0&&m.push(h);var g={type:"tabpanel",tabs:m},v=e.windowManager.open({title:"Insert/Edit Media",size:"normal",body:g,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(t){var n=xe(t.getData());Re(r.get(),n,e),t.close()},onChange:function(e,t){switch(t.name){case"source":o(r.get(),e);break;case"embed":a(e);break;case"dimensions":case"altsource":case"poster":s(e,t.name);break}r.set(xe(e.getData()))},initialData:i})},Le=function(e){var t=function(){De(e)};return{showDialog:t}},Me=function(e){var t=function(){De(e)};e.addCommand("mceMedia",t)},Fe=tinymce.util.Tools.resolve("tinymce.html.Node"),Ne=tinymce.util.Tools.resolve("tinymce.Env"),Be=tinymce.util.Tools.resolve("tinymce.html.DomParser"),Ie=function(e,t){if(!1===L(e))return t;var n,r=G();return $({validate:!1,allow_conditional_comments:!1,comment:function(e){n||r.comment(e)},cdata:function(e){n||r.cdata(e)},text:function(e,t){n||r.text(e,t)},start:function(t,i,o){if(n=!0,"script"!==t&&"noscript"!==t&&"svg"!==t){for(var a=i.length-1;a>=0;a--){var s=i[a].name;0===s.indexOf("on")&&(delete i.map[s],i.splice(a,1)),"style"===s&&(i[a].value=e.dom.serializeStyle(e.dom.parseStyle(i[a].value),t))}r.start(t,i,o),n=!1}},end:function(e){n||r.end(e)}},V({})).parse(t),r.getContent()},Pe=function(e){var t=e.name;return"iframe"===t||"video"===t||"audio"===t},$e=function(e,t,n,r){void 0===r&&(r=null);var i=e.attr(n);return c(i)?i:E(t,n)?null:r},je=function(e,t,n){var r="img"===t.name||"video"===e.name,i=r?"300":null,o="audio"===e.name?"30":"150",a=r?o:null;t.attr({width:$e(e,n,"width",i),height:$e(e,n,"height",a)})},ze=function(e,t,n,r){var i=Be({forced_root_block:!1,validate:!1},e.schema).parse(r,{context:t});while(i.firstChild)n.append(i.firstChild)},qe=function(e,t){var n=t.name,r=new Fe("img",1);return r.shortEnded=!0,Ue(e,t,r),je(t,r,{}),r.attr({style:t.attr("style"),src:Ne.transparentSrc,"data-mce-object":n,class:"mce-object mce-object-"+n}),r},He=function(e,t){var n=t.name,r=new Fe("span",1);r.attr({contentEditable:"false",style:t.attr("style"),"data-mce-object":n,class:"mce-preview-object mce-object-"+n}),Ue(e,t,r);var i=e.dom.parseStyle(t.attr("style")),o=new Fe(n,1);if(je(t,o,i),o.attr({src:t.attr("src"),style:t.attr("style"),class:t.attr("class")}),"iframe"===n)o.attr({allowfullscreen:t.attr("allowfullscreen"),frameborder:"0"});else{var a=["controls","crossorigin","currentTime","loop","muted","poster","preload"];y(a,(function(e){o.attr(e,t.attr(e))}));var s=r.attr("data-mce-html");c(s)&&ze(e,n,o,unescape(s))}var l=new Fe("span",1);return l.attr("class","mce-shim"),r.append(o),r.append(l),r},Ue=function(e,t,n){var r=t.attributes,i=r.length;while(i--){var o=r[i].name,a=r[i].value;"width"!==o&&"height"!==o&&"style"!==o&&("data"!==o&&"src"!==o||(a=e.convertURL(a,o)),n.attr("data-mce-p-"+o,a))}var s=t.firstChild&&t.firstChild.value;s&&(n.attr("data-mce-html",escape(Ie(e,s))),n.firstChild=null)},We=function(e){var t=e.attr("class");return t&&/\btiny-pageembed\b/.test(t)},Ve=function(e){while(e=e.parent)if(e.attr("data-ephox-embed-iri")||We(e))return!0;return!1},Ge=function(e){return function(t){var n,r,i=t.length;while(i--)n=t[i],n.parent&&(n.parent.attr("data-mce-object")||("script"!==n.name||(r=j(T(e),n.attr("src")),r))&&(r&&(r.width&&n.attr("width",r.width.toString()),r.height&&n.attr("height",r.height.toString())),Pe(n)&&D(e)&&Ne.ceFalse?Ve(n)||n.replace(He(e,n)):Ve(n)||n.replace(qe(e,n))))}},Ke=function(e){e.on("preInit",(function(){var t=e.schema.getSpecialElements();I.each("video audio iframe object".split(" "),(function(e){t[e]=new RegExp("</"+e+"[^>]*>","gi")}));var n=e.schema.getBoolAttrs();I.each("webkitallowfullscreen mozallowfullscreen allowfullscreen".split(" "),(function(e){n[e]={}})),e.parser.addNodeFilter("iframe,video,audio,object,embed,script",Ge(e)),e.serializer.addAttributeFilter("data-mce-object",(function(t,n){var r,i,o,a,s,c,l,u,d=t.length;while(d--)if(r=t[d],r.parent){l=r.attr(n),i=new Fe(l,1),"audio"!==l&&"script"!==l&&(u=r.attr("class"),u&&-1!==u.indexOf("mce-preview-object")?i.attr({width:r.firstChild.attr("width"),height:r.firstChild.attr("height")}):i.attr({width:r.attr("width"),height:r.attr("height")})),i.attr({style:r.attr("style")}),a=r.attributes,o=a.length;while(o--){var f=a[o].name;0===f.indexOf("data-mce-p-")&&i.attr(f.substr(11),a[o].value)}"script"===l&&i.attr("type","text/javascript"),s=r.attr("data-mce-html"),s&&(c=new Fe("#text",3),c.raw=!0,c.value=Ie(e,unescape(s)),i.append(c)),r.replace(i)}}))})),e.on("SetContent",(function(){e.$("span.mce-preview-object").each((function(t,n){var r=e.$(n);0===r.find("span.mce-shim").length&&r.append('<span class="mce-shim"></span>')}))}))},Ye=function(e){e.on("ResolveName",(function(e){var t;1===e.target.nodeType&&(t=e.target.getAttribute("data-mce-object"))&&(e.name=t)}))},Xe=function(e){var t=function(){return e.execCommand("mceMedia")};e.ui.registry.addToggleButton("media",{tooltip:"Insert/edit media",icon:"embed",onAction:t,onSetup:function(t){var n=e.selection;return t.setActive(ue(n.getNode())),n.selectorChangedWithUnbind("img[data-mce-object],span[data-mce-object],div[data-ephox-embed-iri]",t.setActive).unbind}}),e.ui.registry.addMenuItem("media",{icon:"embed",text:"Media...",onAction:t})};function Qe(){e.add("media",(function(e){return Me(e),Xe(e),Ye(e),Ke(e),de(e),Le(e)}))}Qe()})()},3796:function(e,t,n){var r=n("0ffc"),i=n("9e27"),o=n("e496");e.exports=n("961e")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,c=0;while(s>c)r.f(e,n=a[c++],t[n]);return e}},"37e8":function(e,t,n){"use strict";var r=n("83ab"),i=n("aed9"),o=n("9bf2"),a=n("825a"),s=n("fc6a"),c=n("df75");t.f=r&&!i?Object.defineProperties:function(e,t){a(e);var n,r=s(t),i=c(t),l=i.length,u=0;while(l>u)o.f(e,n=i[u++],r[n]);return e}},3835:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return s}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("14d9");function i(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(l)throw i}}return s}}var o=n("06c5");n("d9e2");function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){return r(e)||i(e,t)||Object(o["a"])(e,t)||a()}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e}},"38cf":function(e,t,n){"use strict";var r=n("23e7"),i=n("1148");r({target:"String",proto:!0},{repeat:i})},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"393a":function(e,t,n){"use strict";var r=n("e444"),i=n("512c"),o=n("ba01"),a=n("051b"),s=n("8a0d"),c=n("26dd"),l=n("92f0"),u=n("ce7a"),d=n("cc15")("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,b,_,y){c(n,t,v);var w,x,k,C=function(e){if(!f&&e in T)return T[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},A=t+" Iterator",S=b==m,E=!1,T=e.prototype,O=T[d]||T[p]||b&&T[b],R=O||C(b),D=b?S?C("entries"):R:void 0,L="Array"==t&&T.entries||O;if(L&&(k=u(L.call(new e)),k!==Object.prototype&&k.next&&(l(k,A,!0),r||"function"==typeof k[d]||a(k,d,g))),S&&O&&O.name!==m&&(E=!0,R=function(){return O.call(this)}),r&&!y||!f&&!E&&T[d]||a(T,d,R),s[t]=R,s[A]=g,b)if(w={values:S?R:C(m),keys:_?R:C(h),entries:D},y)for(x in w)x in T||o(T,x,w[x]);else i(i.P+i.F*(f||E),t,w);return w}},"39ad":function(e,t,n){var r=n("6ca1"),i=n("d16a"),o=n("9d11");e.exports=function(e){return function(t,n,a){var s,c=r(t),l=i(c.length),u=o(a,l);if(e&&n!=n){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},"39f5":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));let r=0;function i(){return"F"+Math.random().toString(36).substr(3,3)+Number(`${Date.now()}${++r}`).toString(36)}},"3a34":function(e,t,n){"use strict";var r=n("83ab"),i=n("e8b5"),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!a(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},"3a7b":function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").findIndex,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("findIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},"3a9b":function(e,t,n){"use strict";var r=n("e330");e.exports=r({}.isPrototypeOf)},"3aea":function(e,t,n){n("3699")},"3b58":function(e,t,n){!function(t,n){e.exports=n()}(window,(function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=25)}([function(e,t,n){var r=n(11);"string"==typeof r&&(r=[[e.i,r,""]]);var i={transform:void 0};n(3)(r,i),r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return s(e)||a(e)||o(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e){if(Array.isArray(e))return c(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){e.forEach((function(e,t){document.documentElement.addEventListener(t,e)}))}function u(e){e.forEach((function(e,t){document.documentElement.removeEventListener(t,e)}))}var d=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vdr",class:(e.active||e.isActive?"active":"inactive")+" "+(e.contentClass?e.contentClass:""),style:e.positionStyle,on:{mousedown:function(t){e.bodyDown(t)},touchstart:function(t){e.bodyDown(t)},touchend:function(t){e.up(t)}}},[n("div",{ref:"container",staticClass:"content-container",style:e.sizeStyle},[e._t("default")],2),e._v(" "),e._l(e.sticks,(function(t){return n("div",{staticClass:"vdr-stick",class:["vdr-stick-"+t,e.isResizable?"":"not-resizable"],style:e.vdrStick(t),on:{mousedown:function(n){n.stopPropagation(),n.preventDefault(),e.stickDown(t,n)},touchstart:function(n){n.stopPropagation(),n.preventDefault(),e.stickDown(t,n)}}})}))],2)},f=[];d._withStripped=!0;var p={y:{t:"top",m:"marginTop",b:"bottom"},x:{l:"left",m:"marginLeft",r:"right"}},h={name:"vue-drag-resize",emits:["clicked","dragging","dragstop","resizing","resizestop","activated","deactivated"],props:{stickSize:{type:Number,default:8},parentScaleX:{type:Number,default:1},parentScaleY:{type:Number,default:1},isActive:{type:Boolean,default:!1},preventActiveBehavior:{type:Boolean,default:!1},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},aspectRatio:{type:Boolean,default:!1},parentLimitation:{type:Boolean,default:!1},snapToGrid:{type:Boolean,default:!1},gridX:{type:Number,default:50,validator:function(e){return e>=0}},gridY:{type:Number,default:50,validator:function(e){return e>=0}},parentW:{type:Number,default:0,validator:function(e){return e>=0}},parentH:{type:Number,default:0,validator:function(e){return e>=0}},w:{type:[String,Number],default:200,validator:function(e){return"string"==typeof e?"auto"===e:e>=0}},h:{type:[String,Number],default:200,validator:function(e){return"string"==typeof e?"auto"===e:e>=0}},minw:{type:Number,default:50,validator:function(e){return e>=0}},minh:{type:Number,default:50,validator:function(e){return e>=0}},x:{type:Number,default:0,validator:function(e){return"number"==typeof e}},y:{type:Number,default:0,validator:function(e){return"number"==typeof e}},z:{type:[String,Number],default:"auto",validator:function(e){return"string"==typeof e?"auto"===e:e>=0}},dragHandle:{type:String,default:null},dragCancel:{type:String,default:null},sticks:{type:Array,default:function(){return["tl","tm","tr","mr","br","bm","bl","ml"]}},axis:{type:String,default:"both",validator:function(e){return-1!==["x","y","both","none"].indexOf(e)}},contentClass:{type:String,required:!1,default:""}},data:function(){return{fixAspectRatio:null,active:null,zIndex:null,parentWidth:null,parentHeight:null,left:null,top:null,right:null,bottom:null,minHeight:null}},beforeCreate:function(){this.stickDrag=!1,this.bodyDrag=!1,this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}},this.currentStick=null},mounted:function(){var e=this;this.parentElement=this.$el.parentNode,this.parentWidth=this.parentW?this.parentW:this.parentElement.clientWidth,this.parentHeight=this.parentH?this.parentH:this.parentElement.clientHeight,this.left=this.x,this.top=this.y,this.right=this.parentWidth-("auto"===this.w?this.$refs.container.scrollWidth:this.w)-this.left,this.bottom=this.parentHeight-("auto"===this.h?this.$refs.container.scrollHeight:this.h)-this.top,this.domEvents=new Map([["mousemove",this.move],["mouseup",this.up],["mouseleave",this.up],["mousedown",this.deselect],["touchmove",this.move],["touchend",this.up],["touchcancel",this.up],["touchstart",this.up]]),l(this.domEvents),this.dragHandle&&r(this.$el.querySelectorAll(this.dragHandle)).forEach((function(t){t.setAttribute("data-drag-handle",e._uid)})),this.dragCancel&&r(this.$el.querySelectorAll(this.dragCancel)).forEach((function(t){t.setAttribute("data-drag-cancel",e._uid)}))},beforeDestroy:function(){u(this.domEvents)},methods:{deselect:function(){this.preventActiveBehavior||(this.active=!1)},move:function(e){if(this.stickDrag||this.bodyDrag){e.stopPropagation();var t=void 0!==e.pageX?e.pageX:e.touches[0].pageX,n=void 0!==e.pageY?e.pageY:e.touches[0].pageY,r=this.dimensionsBeforeMove,i={x:(r.pointerX-t)/this.parentScaleX,y:(r.pointerY-n)/this.parentScaleY};if(this.stickDrag&&this.stickMove(i),this.bodyDrag){if("x"===this.axis)i.y=0;else if("y"===this.axis)i.x=0;else if("none"===this.axis)return;this.bodyMove(i)}}},up:function(e){this.stickDrag?this.stickUp(e):this.bodyDrag&&this.bodyUp(e)},bodyDown:function(e){var t=e.target,n=e.button;if(this.preventActiveBehavior||(this.active=!0),(!n||0===n)&&(this.$emit("clicked",e),this.active&&!(this.dragHandle&&t.getAttribute("data-drag-handle")!==this._uid.toString()||this.dragCancel&&t.getAttribute("data-drag-cancel")===this._uid.toString()))){void 0!==e.stopPropagation&&e.stopPropagation(),void 0!==e.preventDefault&&e.preventDefault(),this.isDraggable&&(this.bodyDrag=!0);var r=void 0!==e.pageX?e.pageX:e.touches[0].pageX,i=void 0!==e.pageY?e.pageY:e.touches[0].pageY;this.saveDimensionsBeforeMove({pointerX:r,pointerY:i}),this.parentLimitation&&(this.limits=this.calcDragLimitation())}},bodyMove:function(e){var t=this.dimensionsBeforeMove,n=this.parentWidth,r=this.parentHeight,i=this.gridX,o=this.gridY,a=this.width,s=this.height,c=t.top-e.y,l=t.bottom+e.y,u=t.left-e.x,d=t.right+e.x;if(this.snapToGrid){var f=!0,p=!0,h=c-Math.floor(c/o)*o,m=r-l-Math.floor((r-l)/o)*o,g=u-Math.floor(u/i)*i,v=n-d-Math.floor((n-d)/i)*i;h>o/2&&(h-=o),m>o/2&&(m-=o),g>i/2&&(g-=i),v>i/2&&(v-=i),Math.abs(m)<Math.abs(h)&&(f=!1),Math.abs(v)<Math.abs(g)&&(p=!1),c-=f?h:m,l=r-s-c,u-=p?g:v,d=n-a-u}var b=this.rectCorrectionByLimit({newLeft:u,newRight:d,newTop:c,newBottom:l});this.left=b.newLeft,this.right=b.newRight,this.top=b.newTop,this.bottom=b.newBottom,this.$emit("dragging",this.rect)},bodyUp:function(){this.bodyDrag=!1,this.$emit("dragging",this.rect),this.$emit("dragstop",this.rect),this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}}},stickDown:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.isResizable&&this.active||n){this.stickDrag=!0;var r=void 0!==t.pageX?t.pageX:t.touches[0].pageX,i=void 0!==t.pageY?t.pageY:t.touches[0].pageY;this.saveDimensionsBeforeMove({pointerX:r,pointerY:i}),this.currentStick=e,this.limits=this.calcResizeLimits()}},saveDimensionsBeforeMove:function(e){var t=e.pointerX,n=e.pointerY;this.dimensionsBeforeMove.pointerX=t,this.dimensionsBeforeMove.pointerY=n,this.dimensionsBeforeMove.left=this.left,this.dimensionsBeforeMove.right=this.right,this.dimensionsBeforeMove.top=this.top,this.dimensionsBeforeMove.bottom=this.bottom,this.dimensionsBeforeMove.width=this.width,this.dimensionsBeforeMove.height=this.height,this.aspectFactor=this.width/this.height},stickMove:function(e){var t=this.currentStick,n=this.dimensionsBeforeMove,r=this.gridY,i=this.gridX,o=this.snapToGrid,a=this.parentHeight,s=this.parentWidth,c=n.top,l=n.bottom,u=n.left,d=n.right;switch(t[0]){case"b":l=n.bottom+e.y,o&&(l=a-Math.round((a-l)/r)*r);break;case"t":c=n.top-e.y,o&&(c=Math.round(c/r)*r)}switch(t[1]){case"r":d=n.right+e.x,o&&(d=s-Math.round((s-d)/i)*i);break;case"l":u=n.left-e.x,o&&(u=Math.round(u/i)*i)}var f=this.rectCorrectionByLimit({newLeft:u,newRight:d,newTop:c,newBottom:l});if(u=f.newLeft,d=f.newRight,c=f.newTop,l=f.newBottom,this.aspectRatio){var p=this.rectCorrectionByAspectRatio({newLeft:u,newRight:d,newTop:c,newBottom:l});u=p.newLeft,d=p.newRight,c=p.newTop,l=p.newBottom}this.left=u,this.right=d,this.top=c,this.bottom=l,this.$emit("resizing",this.rect)},stickUp:function(){this.stickDrag=!1,this.dimensionsBeforeMove={pointerX:0,pointerY:0,x:0,y:0,w:0,h:0},this.limits={left:{min:null,max:null},right:{min:null,max:null},top:{min:null,max:null},bottom:{min:null,max:null}},this.$emit("resizing",this.rect),this.$emit("resizestop",this.rect)},calcDragLimitation:function(){var e=this.parentWidth,t=this.parentHeight;return{left:{min:0,max:e-this.width},right:{min:0,max:e-this.width},top:{min:0,max:t-this.height},bottom:{min:0,max:t-this.height}}},calcResizeLimits:function(){var e=this.aspectFactor,t=this.width,n=this.height,r=this.bottom,i=this.top,o=this.left,a=this.right,s=this.minh,c=this.minw,l=this.parentLimitation?0:null;this.aspectRatio&&(c/s>e?s=c/e:c=e*s);var u={left:{min:l,max:o+(t-c)},right:{min:l,max:a+(t-c)},top:{min:l,max:i+(n-s)},bottom:{min:l,max:r+(n-s)}};if(this.aspectRatio){var d={left:{min:o-Math.min(i,r)*e*2,max:o+(n-s)/2*e*2},right:{min:a-Math.min(i,r)*e*2,max:a+(n-s)/2*e*2},top:{min:i-Math.min(o,a)/e*2,max:i+(t-c)/2/e*2},bottom:{min:r-Math.min(o,a)/e*2,max:r+(t-c)/2/e*2}};"m"===this.currentStick[0]?(u.left={min:Math.max(u.left.min,d.left.min),max:Math.min(u.left.max,d.left.max)},u.right={min:Math.max(u.right.min,d.right.min),max:Math.min(u.right.max,d.right.max)}):"m"===this.currentStick[1]&&(u.top={min:Math.max(u.top.min,d.top.min),max:Math.min(u.top.max,d.top.max)},u.bottom={min:Math.max(u.bottom.min,d.bottom.min),max:Math.min(u.bottom.max,d.bottom.max)})}return u},sideCorrectionByLimit:function(e,t){var n=t;return null!==e.min&&t<e.min?n=e.min:null!==e.max&&e.max<t&&(n=e.max),n},rectCorrectionByLimit:function(e){var t=this.limits,n=e.newRight,r=e.newLeft,i=e.newBottom,o=e.newTop;return r=this.sideCorrectionByLimit(t.left,r),n=this.sideCorrectionByLimit(t.right,n),o=this.sideCorrectionByLimit(t.top,o),i=this.sideCorrectionByLimit(t.bottom,i),{newLeft:r,newRight:n,newTop:o,newBottom:i}},rectCorrectionByAspectRatio:function(e){var t=e.newLeft,n=e.newRight,r=e.newTop,i=e.newBottom,o=this.parentWidth,a=this.parentHeight,s=this.currentStick,c=this.aspectFactor,l=this.dimensionsBeforeMove,u=o-t-n,d=a-r-i;if("m"===s[1]){var f=d-l.height;t-=f*c/2,n-=f*c/2}else if("m"===s[0]){var p=u-l.width;r-=p/c/2,i-=p/c/2}else u/d>c?(u=c*d,"l"===s[1]?t=o-n-u:n=o-t-u):(d=u/c,"t"===s[0]?r=a-i-d:i=a-r-d);return{newLeft:t,newRight:n,newTop:r,newBottom:i}}},computed:{positionStyle:function(){return{top:this.top+"px",left:this.left+"px",zIndex:this.zIndex}},sizeStyle:function(){return{width:"auto"==this.w?"auto":this.width+"px",height:"auto"==this.h?"auto":this.height+"px"}},vdrStick:function(){var e=this;return function(t){var n={width:"".concat(e.stickSize/e.parentScaleX,"px"),height:"".concat(e.stickSize/e.parentScaleY,"px")};return n[p.y[t[0]]]="".concat(e.stickSize/e.parentScaleX/-2,"px"),n[p.x[t[1]]]="".concat(e.stickSize/e.parentScaleX/-2,"px"),n}},width:function(){return this.parentWidth-this.left-this.right},height:function(){return this.parentHeight-this.top-this.bottom},rect:function(){return{left:Math.round(this.left),top:Math.round(this.top),width:Math.round(this.width),height:Math.round(this.height)}}},watch:{active:function(e){e?this.$emit("activated"):this.$emit("deactivated")},isActive:{immediate:!0,handler:function(e){this.active=e}},z:{immediate:!0,handler:function(e){(e>=0||"auto"===e)&&(this.zIndex=e)}},x:{handler:function(e,t){var n=this;if(!this.stickDrag&&!this.bodyDrag&&e!==this.left){var r=t-e;this.bodyDown({pageX:this.left,pageY:this.top}),this.bodyMove({x:r,y:0}),this.$nextTick((function(){n.bodyUp()}))}}},y:{handler:function(e,t){var n=this;if(!this.stickDrag&&!this.bodyDrag&&e!==this.top){var r=t-e;this.bodyDown({pageX:this.left,pageY:this.top}),this.bodyMove({x:0,y:r}),this.$nextTick((function(){n.bodyUp()}))}}},w:{handler:function(e,t){var n=this;if(!this.stickDrag&&!this.bodyDrag&&e!==this.width){var r=t-e;this.stickDown("mr",{pageX:this.right,pageY:this.top+this.height/2},!0),this.stickMove({x:r,y:0}),this.$nextTick((function(){n.stickUp()}))}}},h:{handler:function(e,t){var n=this;if(!this.stickDrag&&!this.bodyDrag&&e!==this.height){var r=t-e;this.stickDown("bm",{pageX:this.left+this.width/2,pageY:this.bottom},!0),this.stickMove({x:0,y:r}),this.$nextTick((function(){n.stickUp()}))}}},parentW:function(e){this.right=e-this.width-this.left,this.parentWidth=e},parentH:function(e){this.bottom=e-this.height-this.top,this.parentHeight=e}}},m=h,g=(n(12),n(1)),v=Object(g.a)(m,d,f,!1,null,null,null);v.options.__file="src/components/vue-drag-resize.vue",t.a=v.exports},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=h[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(u(r.parts[o],t))}else{var a=[];for(o=0;o<r.parts.length;o++)a.push(u(r.parts[o],t));h[r.id]={id:r.id,refs:1,parts:a}}}}function i(e,t){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=t.base?o[0]+t.base:o[0],s=o[1],c=o[2],l=o[3],u={css:s,media:c,sourceMap:l};r[a]?r[a].parts.push(u):n.push(r[a]={id:a,parts:[u]})}return n}function o(e,t){var n=g(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=_[_.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),_.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function a(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=_.indexOf(e);t>=0&&_.splice(t,1)}function s(e){var t=document.createElement("style");return e.attrs.type="text/css",l(t,e.attrs),o(e,t),t}function c(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",l(t,e.attrs),o(e,t),t}function l(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function u(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var l=b++;n=v||(v=s(t)),r=d.bind(null,n,l,!1),i=d.bind(null,n,l,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=c(t),r=p.bind(null,n,t),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=f.bind(null,n),i=function(){a(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function d(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function f(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function p(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=y(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var h={},m=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}((function(){return window&&document&&document.all&&!window.atob})),g=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e.call(this,n)),t[n]}}((function(e){return document.querySelector(e)})),v=null,b=0,_=[],y=n(10);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=m()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=i(e,t);return r(n,t),function(e){for(var o=[],a=0;a<n.length;a++){var s=n[a],c=h[s.id];c.refs--,o.push(c)}e&&r(i(e,t),t);for(a=0;a<o.length;a++){c=o[a];if(0===c.refs){for(var l=0;l<c.parts.length;l++)c.parts[l]();delete h[c.id]}}}};var w=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}))).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,,,function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}},function(e,t,n){t=e.exports=n(4)(!1),t.push([e.i,'\n.vdr,.vdr.active:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box\n}\n.vdr.active:before{content:"";width:100%;height:100%;top:0;left:0;outline:1px dashed #d6d6d6\n}\n.vdr-stick{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;font-size:1px;background:#fff;border:1px solid #6c6c6c;-webkit-box-shadow:0 0 2px #bbb;box-shadow:0 0 2px #bbb\n}\n.inactive .vdr-stick{display:none\n}\n.vdr-stick-br,.vdr-stick-tl{cursor:nwse-resize\n}\n.vdr-stick-bm,.vdr-stick-tm{left:50%;cursor:ns-resize\n}\n.vdr-stick-bl,.vdr-stick-tr{cursor:nesw-resize\n}\n.vdr-stick-ml,.vdr-stick-mr{top:50%;cursor:ew-resize\n}\n.vdr-stick.not-resizable{display:none\n}\n.content-container{display:block;position:relative\n}',""])},function(e,t,n){"use strict";var r=n(0),i=n.n(r);i.a},,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),function(e){function r(e){r.installed||(r.installed=!0,e.component("vue-drag-resize",i.a))}n.d(t,"install",(function(){return r}));var i=n(2),o={install:r},a=null;"undefined"!=typeof window?a=window.Vue:void 0!==e&&(a=e.Vue),a&&a.use(o),t.default=i.a}.call(this,n(5))}])}))},"3bbe":function(e,t,n){"use strict";var r=n("1787"),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},"3c35":function(e,t){(function(t){e.exports=t}).call(this,{})},"3c5d":function(e,t,n){"use strict";var r=n("da84"),i=n("c65b"),o=n("ebb5"),a=n("07fa"),s=n("182d"),c=n("7b0b"),l=n("d039"),u=r.RangeError,d=r.Int8Array,f=d&&d.prototype,p=f&&f.set,h=o.aTypedArray,m=o.exportTypedArrayMethod,g=!l((function(){var e=new Uint8ClampedArray(2);return i(p,e,{length:1,0:3},1),3!==e[1]})),v=g&&o.NATIVE_ARRAY_BUFFER_VIEWS&&l((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));m("set",(function(e){h(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=c(e);if(g)return i(p,this,n,t);var r=this.length,o=a(n),l=0;if(o+t>r)throw new u("Wrong length");while(l<o)this[t+l]=n[l++]}),!g||v)},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,i=n("577e"),o=n("69f3"),a=n("c6d2"),s=n("4754"),c="String Iterator",l=o.set,u=o.getterFor(c);a(String,"String",(function(e){l(this,{type:c,string:i(e),index:0})}),(function(){var e,t=u(this),n=t.string,i=t.index;return i>=n.length?s(void 0,!0):(e=r(n,i),t.index+=e.length,s(e,!1))}))},"3eb1":function(e,t,n){"use strict";var r=n("0f7c"),i=n("00ce"),o=n("d009"),a=i("%TypeError%"),s=i("%Function.prototype.apply%"),c=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||r.call(c,s),u=i("%Object.defineProperty%",!0),d=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(p){u=null}e.exports=function(e){if("function"!==typeof e)throw new a("a function is required");var t=l(r,c,arguments);return o(t,1+d(0,e.length-(arguments.length-1)),!0)};var f=function(){return l(r,s,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},"3f5c":function(e,t,n){},"3f6b":function(e,t,n){e.exports={default:n("b9c7"),__esModule:!0}},"3f8c":function(e,t,n){"use strict";e.exports={}},"3fcc":function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").map,o=n("b6b7"),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("map",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(e))(t)}))}))},4002:function(e,t,n){"use strict";n("3ca3");var r,i=n("23e7"),o=n("83ab"),a=n("f354"),s=n("da84"),c=n("0366"),l=n("e330"),u=n("cb2d"),d=n("edd0"),f=n("19aa"),p=n("1a2d"),h=n("60da"),m=n("4df4"),g=n("f36a"),v=n("6547").codeAt,b=n("5fb2"),_=n("577e"),y=n("d44e"),w=n("d6d6"),x=n("5352"),k=n("69f3"),C=k.set,A=k.getterFor("URL"),S=x.URLSearchParams,E=x.getState,T=s.URL,O=s.TypeError,R=s.parseInt,D=Math.floor,L=Math.pow,M=l("".charAt),F=l(/./.exec),N=l([].join),B=l(1..toString),I=l([].pop),P=l([].push),$=l("".replace),j=l([].shift),z=l("".split),q=l("".slice),H=l("".toLowerCase),U=l([].unshift),W="Invalid authority",V="Invalid scheme",G="Invalid host",K="Invalid port",Y=/[a-z]/i,X=/[\d+-.a-z]/i,Q=/\d/,J=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,ne=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ae=/[\t\n\r]/g,se=function(e){var t,n,r,i,o,a,s,c=z(e,".");if(c.length&&""===c[c.length-1]&&c.length--,t=c.length,t>4)return e;for(n=[],r=0;r<t;r++){if(i=c[r],""===i)return e;if(o=10,i.length>1&&"0"===M(i,0)&&(o=F(J,i)?16:8,i=q(i,8===o?1:2)),""===i)a=0;else{if(!F(10===o?ee:8===o?Z:te,i))return e;a=R(i,o)}P(n,a)}for(r=0;r<t;r++)if(a=n[r],r===t-1){if(a>=L(256,5-t))return null}else if(a>255)return null;for(s=I(n),r=0;r<n.length;r++)s+=n[r]*L(256,3-r);return s},ce=function(e){var t,n,r,i,o,a,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,d=0,f=function(){return M(e,d)};if(":"===f()){if(":"!==M(e,1))return;d+=2,l++,u=l}while(f()){if(8===l)return;if(":"!==f()){t=n=0;while(n<4&&F(te,f()))t=16*t+R(f(),16),d++,n++;if("."===f()){if(0===n)return;if(d-=n,l>6)return;r=0;while(f()){if(i=null,r>0){if(!("."===f()&&r<4))return;d++}if(!F(Q,f()))return;while(F(Q,f())){if(o=R(f(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}c[l]=256*c[l]+i,r++,2!==r&&4!==r||l++}if(4!==r)return;break}if(":"===f()){if(d++,!f())return}else if(f())return;c[l++]=t}else{if(null!==u)return;d++,l++,u=l}}if(null!==u){a=l-u,l=7;while(0!==l&&a>0)s=c[l],c[l--]=c[u+a-1],c[u+--a]=s}else if(8!==l)return;return c},le=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t},ue=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)U(t,e%256),e=D(e/256);return N(t,".")}if("object"==typeof e){for(t="",r=le(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=B(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},de={},fe=h({},de,{" ":1,'"':1,"<":1,">":1,"`":1}),pe=h({},fe,{"#":1,"?":1,"{":1,"}":1}),he=h({},pe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),me=function(e,t){var n=v(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},ge={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ve=function(e,t){var n;return 2===e.length&&F(Y,M(e,0))&&(":"===(n=M(e,1))||!t&&"|"===n)},be=function(e){var t;return e.length>1&&ve(q(e,0,2))&&(2===e.length||"/"===(t=M(e,2))||"\\"===t||"?"===t||"#"===t)},_e=function(e){return"."===e||"%2e"===H(e)},ye=function(e){return e=H(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},we={},xe={},ke={},Ce={},Ae={},Se={},Ee={},Te={},Oe={},Re={},De={},Le={},Me={},Fe={},Ne={},Be={},Ie={},Pe={},$e={},je={},ze={},qe=function(e,t,n){var r,i,o,a=_(e);if(t){if(i=this.parse(a),i)throw new O(i);this.searchParams=null}else{if(void 0!==n&&(r=new qe(n,!0)),i=this.parse(a,null,r),i)throw new O(i);o=E(new S),o.bindURL(this),this.searchParams=o}};qe.prototype={type:"URL",parse:function(e,t,n){var i,o,a,s,c=this,l=t||we,u=0,d="",f=!1,h=!1,v=!1;e=_(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=$(e,ie,""),e=$(e,oe,"$1")),e=$(e,ae,""),i=m(e);while(u<=i.length){switch(o=i[u],l){case we:if(!o||!F(Y,o)){if(t)return V;l=ke;continue}d+=H(o),l=xe;break;case xe:if(o&&(F(X,o)||"+"===o||"-"===o||"."===o))d+=H(o);else{if(":"!==o){if(t)return V;d="",l=ke,u=0;continue}if(t&&(c.isSpecial()!==p(ge,d)||"file"===d&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=d,t)return void(c.isSpecial()&&ge[c.scheme]===c.port&&(c.port=null));d="","file"===c.scheme?l=Fe:c.isSpecial()&&n&&n.scheme===c.scheme?l=Ce:c.isSpecial()?l=Te:"/"===i[u+1]?(l=Ae,u++):(c.cannotBeABaseURL=!0,P(c.path,""),l=$e)}break;case ke:if(!n||n.cannotBeABaseURL&&"#"!==o)return V;if(n.cannotBeABaseURL&&"#"===o){c.scheme=n.scheme,c.path=g(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=ze;break}l="file"===n.scheme?Fe:Se;continue;case Ce:if("/"!==o||"/"!==i[u+1]){l=Se;continue}l=Oe,u++;break;case Ae:if("/"===o){l=Re;break}l=Pe;continue;case Se:if(c.scheme=n.scheme,o===r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query=n.query;else if("/"===o||"\\"===o&&c.isSpecial())l=Ee;else if("?"===o)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query="",l=je;else{if("#"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.path.length--,l=Pe;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query=n.query,c.fragment="",l=ze}break;case Ee:if(!c.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=Pe;continue}l=Re}else l=Oe;break;case Te:if(l=Oe,"/"!==o||"/"!==M(d,u+1))continue;u++;break;case Oe:if("/"!==o&&"\\"!==o){l=Re;continue}break;case Re:if("@"===o){f&&(d="%40"+d),f=!0,a=m(d);for(var b=0;b<a.length;b++){var y=a[b];if(":"!==y||v){var w=me(y,he);v?c.password+=w:c.username+=w}else v=!0}d=""}else if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(f&&""===d)return W;u-=m(d).length+1,d="",l=De}else d+=o;break;case De:case Le:if(t&&"file"===c.scheme){l=Be;continue}if(":"!==o||h){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(c.isSpecial()&&""===d)return G;if(t&&""===d&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(d),s)return s;if(d="",l=Ie,t)return;continue}"["===o?h=!0:"]"===o&&(h=!1),d+=o}else{if(""===d)return G;if(s=c.parseHost(d),s)return s;if(d="",l=Me,t===Le)return}break;case Me:if(!F(Q,o)){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()||t){if(""!==d){var x=R(d,10);if(x>65535)return K;c.port=c.isSpecial()&&x===ge[c.scheme]?null:x,d=""}if(t)return;l=Ie;continue}return K}d+=o;break;case Fe:if(c.scheme="file","/"===o||"\\"===o)l=Ne;else{if(!n||"file"!==n.scheme){l=Pe;continue}switch(o){case r:c.host=n.host,c.path=g(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=g(n.path),c.query="",l=je;break;case"#":c.host=n.host,c.path=g(n.path),c.query=n.query,c.fragment="",l=ze;break;default:be(N(g(i,u),""))||(c.host=n.host,c.path=g(n.path),c.shortenPath()),l=Pe;continue}}break;case Ne:if("/"===o||"\\"===o){l=Be;break}n&&"file"===n.scheme&&!be(N(g(i,u),""))&&(ve(n.path[0],!0)?P(c.path,n.path[0]):c.host=n.host),l=Pe;continue;case Be:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&ve(d))l=Pe;else if(""===d){if(c.host="",t)return;l=Ie}else{if(s=c.parseHost(d),s)return s;if("localhost"===c.host&&(c.host=""),t)return;d="",l=Ie}continue}d+=o;break;case Ie:if(c.isSpecial()){if(l=Pe,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==r&&(l=Pe,"/"!==o))continue}else c.fragment="",l=ze;else c.query="",l=je;break;case Pe:if(o===r||"/"===o||"\\"===o&&c.isSpecial()||!t&&("?"===o||"#"===o)){if(ye(d)?(c.shortenPath(),"/"===o||"\\"===o&&c.isSpecial()||P(c.path,"")):_e(d)?"/"===o||"\\"===o&&c.isSpecial()||P(c.path,""):("file"===c.scheme&&!c.path.length&&ve(d)&&(c.host&&(c.host=""),d=M(d,0)+":"),P(c.path,d)),d="","file"===c.scheme&&(o===r||"?"===o||"#"===o))while(c.path.length>1&&""===c.path[0])j(c.path);"?"===o?(c.query="",l=je):"#"===o&&(c.fragment="",l=ze)}else d+=me(o,pe);break;case $e:"?"===o?(c.query="",l=je):"#"===o?(c.fragment="",l=ze):o!==r&&(c.path[0]+=me(o,de));break;case je:t||"#"!==o?o!==r&&("'"===o&&c.isSpecial()?c.query+="%27":c.query+="#"===o?"%23":me(o,de)):(c.fragment="",l=ze);break;case ze:o!==r&&(c.fragment+=me(o,fe));break}u++}},parseHost:function(e){var t,n,r;if("["===M(e,0)){if("]"!==M(e,e.length-1))return G;if(t=ce(q(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=b(e),F(ne,e))return G;if(t=se(e),null===t)return G;this.host=t}else{if(F(re,e))return G;for(t="",n=m(e),r=0;r<n.length;r++)t+=me(n[r],de);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return p(ge,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ve(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,l=t+":";return null!==i?(l+="//",e.includesCredentials()&&(l+=n+(r?":"+r:"")+"@"),l+=ue(i),null!==o&&(l+=":"+o)):"file"===t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+N(a,"/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},setHref:function(e){var t=this.parse(e);if(t)throw new O(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new He(e.path[0]).origin}catch(n){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ue(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(_(e)+":",we)},getUsername:function(){return this.username},setUsername:function(e){var t=m(_(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=me(t[n],he)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(_(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=me(t[n],he)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ue(e):ue(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,De)},getHostname:function(){var e=this.host;return null===e?"":ue(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Le)},getPort:function(){var e=this.port;return null===e?"":_(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=_(e),""===e?this.port=null:this.parse(e,Me))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+N(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ie))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=_(e),""===e?this.query=null:("?"===M(e,0)&&(e=q(e,1)),this.query="",this.parse(e,je)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){e=_(e),""!==e?("#"===M(e,0)&&(e=q(e,1)),this.fragment="",this.parse(e,ze)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var He=function(e){var t=f(this,Ue),n=w(arguments.length,1)>1?arguments[1]:void 0,r=C(t,new qe(e,!1,n));o||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Ue=He.prototype,We=function(e,t){return{get:function(){return A(this)[e]()},set:t&&function(e){return A(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(d(Ue,"href",We("serialize","setHref")),d(Ue,"origin",We("getOrigin")),d(Ue,"protocol",We("getProtocol","setProtocol")),d(Ue,"username",We("getUsername","setUsername")),d(Ue,"password",We("getPassword","setPassword")),d(Ue,"host",We("getHost","setHost")),d(Ue,"hostname",We("getHostname","setHostname")),d(Ue,"port",We("getPort","setPort")),d(Ue,"pathname",We("getPathname","setPathname")),d(Ue,"search",We("getSearch","setSearch")),d(Ue,"searchParams",We("getSearchParams")),d(Ue,"hash",We("getHash","setHash"))),u(Ue,"toJSON",(function(){return A(this).serialize()}),{enumerable:!0}),u(Ue,"toString",(function(){return A(this).serialize()}),{enumerable:!0}),T){var Ve=T.createObjectURL,Ge=T.revokeObjectURL;Ve&&u(He,"createObjectURL",c(Ve,T)),Ge&&u(He,"revokeObjectURL",c(Ge,T))}y(He,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:He})},"408a":function(e,t,n){"use strict";var r=n("e330");e.exports=r(1..valueOf)},"40a9":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},"40d5":function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4127:function(e,t,n){"use strict";var r=n("5402"),i=n("d233"),o=n("b313"),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=String.prototype.split,u=Array.prototype.push,d=function(e,t){u.apply(e,c(t)?t:[t])},f=Date.prototype.toISOString,p=o["default"],h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(e){return f.call(e)},skipNulls:!1,strictNullHandling:!1},m=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},g={},v=function e(t,n,o,a,s,u,f,p,v,b,_,y,w,x,k,C){var A=t,S=C,E=0,T=!1;while(void 0!==(S=S.get(g))&&!T){var O=S.get(t);if(E+=1,"undefined"!==typeof O){if(O===E)throw new RangeError("Cyclic object value");T=!0}"undefined"===typeof S.get(g)&&(E=0)}if("function"===typeof p?A=p(n,A):A instanceof Date?A=_(A):"comma"===o&&c(A)&&(A=i.maybeMap(A,(function(e){return e instanceof Date?_(e):e}))),null===A){if(s)return f&&!x?f(n,h.encoder,k,"key",y):n;A=""}if(m(A)||i.isBuffer(A)){if(f){var R=x?n:f(n,h.encoder,k,"key",y);if("comma"===o&&x){for(var D=l.call(String(A),","),L="",M=0;M<D.length;++M)L+=(0===M?"":",")+w(f(D[M],h.encoder,k,"value",y));return[w(R)+(a&&c(A)&&1===D.length?"[]":"")+"="+L]}return[w(R)+"="+w(f(A,h.encoder,k,"value",y))]}return[w(n)+"="+w(String(A))]}var F,N=[];if("undefined"===typeof A)return N;if("comma"===o&&c(A))F=[{value:A.length>0?A.join(",")||null:void 0}];else if(c(p))F=p;else{var B=Object.keys(A);F=v?B.sort(v):B}for(var I=a&&c(A)&&1===A.length?n+"[]":n,P=0;P<F.length;++P){var $=F[P],j="object"===typeof $&&"undefined"!==typeof $.value?$.value:A[$];if(!u||null!==j){var z=c(A)?"function"===typeof o?o(I,$):I:I+(b?"."+$:"["+$+"]");C.set(t,E);var q=r();q.set(g,C),d(N,e(j,z,o,a,s,u,f,p,v,b,_,y,w,x,k,q))}}return N},b=function(e){if(!e)return h;if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o["default"];if("undefined"!==typeof e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=h.filter;return("function"===typeof e.filter||c(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?h.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:h.encode,encoder:"function"===typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}};e.exports=function(e,t){var n,i,o=e,a=b(t);"function"===typeof a.filter?(i=a.filter,o=i("",o)):c(a.filter)&&(i=a.filter,n=i);var l,u=[];if("object"!==typeof o||null===o)return"";l=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=s[l];if(t&&"commaRoundTrip"in t&&"boolean"!==typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var p="comma"===f&&t&&t.commaRoundTrip;n||(n=Object.keys(o)),a.sort&&n.sort(a.sort);for(var h=r(),m=0;m<n.length;++m){var g=n[m];a.skipNulls&&null===o[g]||d(u,v(o[g],g,f,p,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,h))}var _=u.join(a.delimiter),y=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),_.length>0?y+_:""}},"41b2":function(e,t,n){"use strict";t.__esModule=!0;var r=n("3f6b"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},4237:function(e,t,n){n("be7f")},"428f":function(e,t,n){"use strict";var r=n("da84");e.exports=r},4328:function(e,t,n){"use strict";var r=n("4127"),i=n("9e6a"),o=n("b313");e.exports={formats:o,parse:i,stringify:r}},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"44ad":function(e,t,n){"use strict";var r=n("e330"),i=n("d039"),o=n("c6b6"),a=Object,s=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},"44d2":function(e,t,n){"use strict";var r=n("b622"),i=n("7c73"),o=n("9bf2").f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},"44de":function(e,t,n){"use strict";e.exports=function(e,t){}},"44e7":function(e,t,n){"use strict";var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"===i(e))}},4603:function(e,t,n){"use strict";
/**!
* Sortable 1.15.1
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/
function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function l(e,t){if(null==e)return{};var n,r,i=c(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e){return d(e)||f(e)||p(e)||m()}function d(e){if(Array.isArray(e))return h(e)}function f(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function p(e,t){if(e){if("string"===typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.r(t),n.d(t,"MultiDrag",(function(){return Ut})),n.d(t,"Sortable",(function(){return rt})),n.d(t,"Swap",(function(){return Lt}));var g="1.15.1";function v(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var b=v(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),_=v(/Edge/i),y=v(/firefox/i),w=v(/safari/i)&&!v(/chrome/i)&&!v(/android/i),x=v(/iP(ad|od|hone)/i),k=v(/chrome/i)&&v(/android/i),C={capture:!1,passive:!1};function A(e,t,n){e.addEventListener(t,n,!b&&C)}function S(e,t,n){e.removeEventListener(t,n,!b&&C)}function E(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function T(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function O(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&E(e,t):E(e,t))||r&&e===n)return e;if(e===n)break}while(e=T(e))}return null}var R,D=/\s+/g;function L(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(D," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(D," ")}}function M(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"===typeof n?"":"px")}}function F(e,t){var n="";if("string"===typeof e)n=e;else do{var r=M(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function N(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function B(){var e=document.scrollingElement;return e||document.documentElement}function I(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var o,a,s,c,l,u,d;if(e!==window&&e.parentNode&&e!==B()?(o=e.getBoundingClientRect(),a=o.top,s=o.left,c=o.bottom,l=o.right,u=o.height,d=o.width):(a=0,s=0,c=window.innerHeight,l=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!b))do{if(i&&i.getBoundingClientRect&&("none"!==M(i,"transform")||n&&"static"!==M(i,"position"))){var f=i.getBoundingClientRect();a-=f.top+parseInt(M(i,"border-top-width")),s-=f.left+parseInt(M(i,"border-left-width")),c=a+o.height,l=s+o.width;break}}while(i=i.parentNode);if(r&&e!==window){var p=F(i||e),h=p&&p.a,m=p&&p.d;p&&(a/=m,s/=h,d/=h,u/=m,c=a+u,l=s+d)}return{top:a,left:s,bottom:c,right:l,width:d,height:u}}}function P(e){var t=I(e),n=parseInt(M(e,"padding-left")),r=parseInt(M(e,"padding-top")),i=parseInt(M(e,"padding-right")),o=parseInt(M(e,"padding-bottom"));return t.top+=r+parseInt(M(e,"border-top-width")),t.left+=n+parseInt(M(e,"border-left-width")),t.width=e.clientWidth-n-i,t.height=e.clientHeight-r-o,t.bottom=t.top+t.height,t.right=t.left+t.width,t}function $(e,t,n){var r=W(e,!0),i=I(e)[t];while(r){var o=I(r)[n],a=void 0;if(a="top"===n||"left"===n?i>=o:i<=o,!a)return r;if(r===B())break;r=W(r,!1)}return!1}function j(e,t,n,r){var i=0,o=0,a=e.children;while(o<a.length){if("none"!==a[o].style.display&&a[o]!==rt.ghost&&(r||a[o]!==rt.dragged)&&O(a[o],n.draggable,e,!1)){if(i===t)return a[o];i++}o++}return null}function z(e,t){var n=e.lastElementChild;while(n&&(n===rt.ghost||"none"===M(n,"display")||t&&!E(n,t)))n=n.previousElementSibling;return n||null}function q(e,t){var n=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===rt.clone||t&&!E(e,t)||n++;return n}function H(e){var t=0,n=0,r=B();if(e)do{var i=F(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function U(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}function W(e,t){if(!e||!e.getBoundingClientRect)return B();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=M(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return B();if(r||t)return n;r=!0}}}while(n=n.parentNode);return B()}function V(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function G(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function K(e,t){return function(){if(!R){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),R=setTimeout((function(){R=void 0}),t)}}}function Y(){clearTimeout(R),R=void 0}function X(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Q(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function J(e,t){M(e,"position","absolute"),M(e,"top",t.top),M(e,"left",t.left),M(e,"width",t.width),M(e,"height",t.height)}function Z(e){M(e,"position",""),M(e,"top",""),M(e,"left",""),M(e,"width",""),M(e,"height","")}var ee="Sortable"+(new Date).getTime();function te(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==M(e,"display")&&e!==rt.ghost){t.push({target:e,rect:I(e)});var n=i({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=F(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(U(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var i=!1,o=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,s=I(n),c=n.prevFromRect,l=n.prevToRect,u=e.rect,d=F(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&G(c,s)&&!G(a,s)&&(u.top-s.top)/(u.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(t=re(u,c,l,r.options)),G(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,u,s,t)),t&&(i=!0,o=Math.max(o,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),i?e=setTimeout((function(){"function"===typeof n&&n()}),o):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){M(e,"transition",""),M(e,"transform","");var i=F(this.el),o=i&&i.a,a=i&&i.d,s=(t.left-n.left)/(o||1),c=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!c,M(e,"transform","translate3d("+s+"px,"+c+"px,0)"),this.forRepaintDummy=ne(e),M(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),M(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){M(e,"transition",""),M(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}function ne(e){return e.offsetWidth}function re(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var ie=[],oe={initializeByDefault:!0},ae={mount:function(e){for(var t in oe)oe.hasOwnProperty(t)&&!(t in e)&&(e[t]=oe[t]);ie.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),ie.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";ie.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][o]&&t[r.pluginName][o](i({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](i({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var i in ie.forEach((function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var o=new r(e,t,e.options);o.sortable=e,o.options=e.options,e[i]=o,s(n,o.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var o=this.modifyOption(e,i,e.options[i]);"undefined"!==typeof o&&(e.options[i]=o)}},getEventProperties:function(e,t){var n={};return ie.forEach((function(r){"function"===typeof r.eventProperties&&s(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return ie.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"===typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))})),r}};function se(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,a=e.cloneEl,s=e.toEl,c=e.fromEl,l=e.oldIndex,u=e.newIndex,d=e.oldDraggableIndex,f=e.newDraggableIndex,p=e.originalEvent,h=e.putSortable,m=e.extraEventProperties;if(t=t||n&&n[ee],t){var g,v=t.options,y="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||b||_?(g=document.createEvent("Event"),g.initEvent(r,!0,!0)):g=new CustomEvent(r,{bubbles:!0,cancelable:!0}),g.to=s||n,g.from=c||n,g.item=o||n,g.clone=a,g.oldIndex=l,g.newIndex=u,g.oldDraggableIndex=d,g.newDraggableIndex=f,g.originalEvent=p,g.pullMode=h?h.lastPutMode:void 0;var w=i(i({},m),ae.getEventProperties(r,t));for(var x in w)g[x]=w[x];n&&n.dispatchEvent(g),v[y]&&v[y].call(t,g)}}var ce=["evt"],le=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=l(n,ce);ae.pluginEvent.bind(rt)(e,t,i({dragEl:de,parentEl:fe,ghostEl:pe,rootEl:he,nextEl:me,lastDownEl:ge,cloneEl:ve,cloneHidden:be,dragStarted:De,putSortable:Ce,activeSortable:rt.active,originalEvent:r,oldIndex:_e,oldDraggableIndex:we,newIndex:ye,newDraggableIndex:xe,hideGhostForTarget:Ze,unhideGhostForTarget:et,cloneNowHidden:function(){be=!0},cloneNowShown:function(){be=!1},dispatchSortableEvent:function(e){ue({sortable:t,name:e,originalEvent:r})}},o))};function ue(e){se(i({putSortable:Ce,cloneEl:ve,targetEl:de,rootEl:he,oldIndex:_e,oldDraggableIndex:we,newIndex:ye,newDraggableIndex:xe},e))}var de,fe,pe,he,me,ge,ve,be,_e,ye,we,xe,ke,Ce,Ae,Se,Ee,Te,Oe,Re,De,Le,Me,Fe,Ne,Be=!1,Ie=!1,Pe=[],$e=!1,je=!1,ze=[],qe=!1,He=[],Ue="undefined"!==typeof document,We=x,Ve=_||b?"cssFloat":"float",Ge=Ue&&!k&&!x&&"draggable"in document.createElement("div"),Ke=function(){if(Ue){if(b)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Ye=function(e,t){var n=M(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=j(e,0,t),o=j(e,1,t),a=i&&M(i),s=o&&M(o),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+I(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+I(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a["float"]&&"none"!==a["float"]){var u="left"===a["float"]?"left":"right";return!o||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||c>=r&&"none"===n[Ve]||o&&"none"===n[Ve]&&c+l>r)?"vertical":"horizontal"},Xe=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return r===a||i===s||r+o/2===a+c/2},Qe=function(e,t){var n;return Pe.some((function(r){var i=r[ee].options.emptyInsertThreshold;if(i&&!z(r)){var o=I(r),a=e>=o.left-i&&e<=o.right+i,s=t>=o.top-i&&t<=o.bottom+i;return a&&s?n=r:void 0}})),n},Je=function(e){function t(e,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(r,i,o,a),n)(r,i,o,a);var c=(n?r:i).options.group.name;return!0===e||"string"===typeof e&&e===c||e.join&&e.indexOf(c)>-1}}var n={},r=e.group;r&&"object"==o(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Ze=function(){!Ke&&pe&&M(pe,"display","none")},et=function(){!Ke&&pe&&M(pe,"display","")};Ue&&!k&&document.addEventListener("click",(function(e){if(Ie)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ie=!1,!1}),!0);var tt=function(e){if(de){e=e.touches?e.touches[0]:e;var t=Qe(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[ee]._onDragOver(n)}}},nt=function(e){de&&de.parentNode[ee]._isOutsideThisEl(e.target)};function rt(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=s({},t),e[ee]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ye(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==rt.supportPointer&&"PointerEvent"in window&&!w,emptyInsertThreshold:5};for(var r in ae.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in Je(t),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Ge,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?A(e,"pointerdown",this._onTapStart):(A(e,"mousedown",this._onTapStart),A(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(A(e,"dragover",this),A(e,"dragenter",this)),Pe.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),s(this,te())}function it(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function ot(e,t,n,r,i,o,a,s){var c,l,u=e[ee],d=u.options.onMove;return!window.CustomEvent||b||_?(c=document.createEvent("Event"),c.initEvent("move",!0,!0)):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=i||t,c.relatedRect=o||I(t),c.willInsertAfter=s,c.originalEvent=a,e.dispatchEvent(c),d&&(l=d.call(u,c,a)),l}function at(e){e.draggable=!1}function st(){qe=!1}function ct(e,t,n){var r=I(j(n.el,0,n.options,!0)),i=P(n.el),o=10;return t?e.clientX<i.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<i.top-o||e.clientY<r.bottom&&e.clientX<r.left}function lt(e,t,n){var r=I(z(n.el,n.options.draggable)),i=P(n.el),o=10;return t?e.clientX>i.right+o||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+o||e.clientX>r.right&&e.clientY>r.top}function ut(e,t,n,r,i,o,a,s){var c=r?e.clientY:e.clientX,l=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!a)if(s&&Fe<l*i){if(!$e&&(1===Me?c>u+l*o/2:c<d-l*o/2)&&($e=!0),$e)f=!0;else if(1===Me?c<u+Fe:c>d-Fe)return-Me}else if(c>u+l*(1-i)/2&&c<d-l*(1-i)/2)return dt(t);return f=f||a,f&&(c<u+l*o/2||c>d-l*o/2)?c>u+l/2?1:-1:0}function dt(e){return q(de)<q(e)?1:-1}function ft(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;while(n--)r+=t.charCodeAt(n);return r.toString(36)}function pt(e){He.length=0;var t=e.getElementsByTagName("input"),n=t.length;while(n--){var r=t[n];r.checked&&He.push(r)}}function ht(e){return setTimeout(e,0)}function mt(e){return clearTimeout(e)}rt.prototype={constructor:rt,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Le=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,de):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(pt(n),!de&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||r.disabled)&&!c.isContentEditable&&(this.nativeDraggable||!w||!s||"SELECT"!==s.tagName.toUpperCase())&&(s=O(s,r.draggable,n,!1),(!s||!s.animated)&&ge!==s)){if(_e=q(s),we=q(s,r.draggable),"function"===typeof l){if(l.call(this,e,s,this))return ue({sortable:t,rootEl:c,name:"filter",targetEl:s,toEl:n,fromEl:n}),le("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(l&&(l=l.split(",").some((function(r){if(r=O(c,r.trim(),n,!1),r)return ue({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),le("filter",t,{evt:e}),!0})),l))return void(i&&e.cancelable&&e.preventDefault());r.handle&&!O(c,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!de&&n.parentNode===o){var c=I(n);if(he=o,de=n,fe=de.parentNode,me=de.nextSibling,ge=n,ke=a.group,rt.dragged=de,Ae={target:de,clientX:(t||e).clientX,clientY:(t||e).clientY},Oe=Ae.clientX-c.left,Re=Ae.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,de.style["will-change"]="all",r=function(){le("delayEnded",i,{evt:e}),rt.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!y&&i.nativeDraggable&&(de.draggable=!0),i._triggerDragStart(e,t),ue({sortable:i,name:"choose",originalEvent:e}),L(de,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){N(de,e.trim(),at)})),A(s,"dragover",tt),A(s,"mousemove",tt),A(s,"touchmove",tt),A(s,"mouseup",i._onDrop),A(s,"touchend",i._onDrop),A(s,"touchcancel",i._onDrop),y&&this.nativeDraggable&&(this.options.touchStartThreshold=4,de.draggable=!0),le("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(_||b))r();else{if(rt.eventCanceled)return void this._onDrop();A(s,"mouseup",i._disableDelayedDrag),A(s,"touchend",i._disableDelayedDrag),A(s,"touchcancel",i._disableDelayedDrag),A(s,"mousemove",i._delayedDragTouchMoveHandler),A(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&A(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){de&&at(de),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;S(e,"mouseup",this._disableDelayedDrag),S(e,"touchend",this._disableDelayedDrag),S(e,"touchcancel",this._disableDelayedDrag),S(e,"mousemove",this._delayedDragTouchMoveHandler),S(e,"touchmove",this._delayedDragTouchMoveHandler),S(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?A(document,"pointermove",this._onTouchMove):A(document,t?"touchmove":"mousemove",this._onTouchMove):(A(de,"dragend",this),A(he,"dragstart",this._onDragStart));try{document.selection?ht((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Be=!1,he&&de){le("dragStarted",this,{evt:t}),this.nativeDraggable&&A(document,"dragover",nt);var n=this.options;!e&&L(de,n.dragClass,!1),L(de,n.ghostClass,!0),rt.active=this,e&&this._appendGhost(),ue({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Se){this._lastX=Se.clientX,this._lastY=Se.clientY,Ze();var e=document.elementFromPoint(Se.clientX,Se.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(Se.clientX,Se.clientY),e===t)break;t=e}if(de.parentNode[ee]._isOutsideThisEl(e),t)do{if(t[ee]){var n=void 0;if(n=t[ee]._onDragOver({clientX:Se.clientX,clientY:Se.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);et()}},_onTouchMove:function(e){if(Ae){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=pe&&F(pe,!0),a=pe&&o&&o.a,s=pe&&o&&o.d,c=We&&Ne&&H(Ne),l=(i.clientX-Ae.clientX+r.x)/(a||1)+(c?c[0]-ze[0]:0)/(a||1),u=(i.clientY-Ae.clientY+r.y)/(s||1)+(c?c[1]-ze[1]:0)/(s||1);if(!rt.active&&!Be){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(pe){o?(o.e+=l-(Ee||0),o.f+=u-(Te||0)):o={a:1,b:0,c:0,d:1,e:l,f:u};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");M(pe,"webkitTransform",d),M(pe,"mozTransform",d),M(pe,"msTransform",d),M(pe,"transform",d),Ee=l,Te=u,Se=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!pe){var e=this.options.fallbackOnBody?document.body:he,t=I(de,!0,We,!0,e),n=this.options;if(We){Ne=e;while("static"===M(Ne,"position")&&"none"===M(Ne,"transform")&&Ne!==document)Ne=Ne.parentNode;Ne!==document.body&&Ne!==document.documentElement?(Ne===document&&(Ne=B()),t.top+=Ne.scrollTop,t.left+=Ne.scrollLeft):Ne=B(),ze=H(Ne)}pe=de.cloneNode(!0),L(pe,n.ghostClass,!1),L(pe,n.fallbackClass,!0),L(pe,n.dragClass,!0),M(pe,"transition",""),M(pe,"transform",""),M(pe,"box-sizing","border-box"),M(pe,"margin",0),M(pe,"top",t.top),M(pe,"left",t.left),M(pe,"width",t.width),M(pe,"height",t.height),M(pe,"opacity","0.8"),M(pe,"position",We?"absolute":"fixed"),M(pe,"zIndex","100000"),M(pe,"pointerEvents","none"),rt.ghost=pe,e.appendChild(pe),M(pe,"transform-origin",Oe/parseInt(pe.style.width)*100+"% "+Re/parseInt(pe.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;le("dragStart",this,{evt:e}),rt.eventCanceled?this._onDrop():(le("setupClone",this),rt.eventCanceled||(ve=Q(de),ve.removeAttribute("id"),ve.draggable=!1,ve.style["will-change"]="",this._hideClone(),L(ve,this.options.chosenClass,!1),rt.clone=ve),n.cloneId=ht((function(){le("clone",n),rt.eventCanceled||(n.options.removeCloneOnHide||he.insertBefore(ve,de),n._hideClone(),ue({sortable:n,name:"clone"}))})),!t&&L(de,i.dragClass,!0),t?(Ie=!0,n._loopId=setInterval(n._emulateDragOver,50)):(S(document,"mouseup",n._onDrop),S(document,"touchend",n._onDrop),S(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,de)),A(document,"drop",n),M(de,"transform","translateZ(0)")),Be=!0,n._dragStartId=ht(n._dragStarted.bind(n,t,e)),A(document,"selectstart",n),De=!0,w&&M(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,o,a=this.el,s=e.target,c=this.options,l=c.group,u=rt.active,d=ke===l,f=c.sort,p=Ce||u,h=this,m=!1;if(!qe){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=O(s,c.draggable,a,!0),D("dragOver"),rt.eventCanceled)return m;if(de.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||h._ignoreWhileAnimating===s)return N(!1);if(Ie=!1,u&&!c.disabled&&(d?f||(r=fe!==he):Ce===this||(this.lastPutMode=ke.checkPull(this,u,de,e))&&l.checkPut(this,u,de,e))){if(o="vertical"===this._getDirection(e,s),t=I(de),D("dragOverValid"),rt.eventCanceled)return m;if(r)return fe=he,F(),this._hideClone(),D("revert"),rt.eventCanceled||(me?he.insertBefore(de,me):he.appendChild(de)),N(!0);var g=z(a,c.draggable);if(!g||lt(e,o,this)&&!g.animated){if(g===de)return N(!1);if(g&&a===e.target&&(s=g),s&&(n=I(s)),!1!==ot(he,a,de,t,s,n,e,!!s))return F(),g&&g.nextSibling?a.insertBefore(de,g.nextSibling):a.appendChild(de),fe=a,B(),N(!0)}else if(g&&ct(e,o,this)){var v=j(a,0,c,!0);if(v===de)return N(!1);if(s=v,n=I(s),!1!==ot(he,a,de,t,s,n,e,!1))return F(),a.insertBefore(de,v),fe=a,B(),N(!0)}else if(s.parentNode===a){n=I(s);var b,_,y=0,w=de.parentNode!==a,x=!Xe(de.animated&&de.toRect||t,s.animated&&s.toRect||n,o),k=o?"top":"left",C=$(s,"top","top")||$(de,"top","top"),A=C?C.scrollTop:void 0;if(Le!==s&&(b=n[k],$e=!1,je=!x&&c.invertSwap||w),y=ut(e,s,n,o,x?1:c.swapThreshold,null==c.invertedSwapThreshold?c.swapThreshold:c.invertedSwapThreshold,je,Le===s),0!==y){var S=q(de);do{S-=y,_=fe.children[S]}while(_&&("none"===M(_,"display")||_===pe))}if(0===y||_===s)return N(!1);Le=s,Me=y;var E=s.nextElementSibling,T=!1;T=1===y;var R=ot(he,a,de,t,s,n,e,T);if(!1!==R)return 1!==R&&-1!==R||(T=1===R),qe=!0,setTimeout(st,30),F(),T&&!E?a.appendChild(de):s.parentNode.insertBefore(de,T?E:s),C&&X(C,0,A-C.scrollTop),fe=de.parentNode,void 0===b||je||(Fe=Math.abs(b-I(s)[k])),B(),N(!0)}if(a.contains(de))return N(!1)}return!1}function D(c,l){le(c,h,i({evt:e,isOwner:d,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:f,fromSortable:p,target:s,completed:N,onMove:function(n,r){return ot(he,a,de,t,n,I(n),e,r)},changed:B},l))}function F(){D("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function N(t){return D("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(h),h!==p&&(L(de,Ce?Ce.options.ghostClass:u.options.ghostClass,!1),L(de,c.ghostClass,!0)),Ce!==h&&h!==rt.active?Ce=h:h===rt.active&&Ce&&(Ce=null),p===h&&(h._ignoreWhileAnimating=s),h.animateAll((function(){D("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(s===de&&!de.animated||s===a&&!s.animated)&&(Le=null),c.dragoverBubble||e.rootEl||s===document||(de.parentNode[ee]._isOutsideThisEl(e.target),!t&&tt(e)),!c.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function B(){ye=q(de),xe=q(de,c.draggable),ue({sortable:h,name:"change",toEl:a,newIndex:ye,newDraggableIndex:xe,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){S(document,"mousemove",this._onTouchMove),S(document,"touchmove",this._onTouchMove),S(document,"pointermove",this._onTouchMove),S(document,"dragover",tt),S(document,"mousemove",tt),S(document,"touchmove",tt)},_offUpEvents:function(){var e=this.el.ownerDocument;S(e,"mouseup",this._onDrop),S(e,"touchend",this._onDrop),S(e,"pointerup",this._onDrop),S(e,"touchcancel",this._onDrop),S(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ye=q(de),xe=q(de,n.draggable),le("drop",this,{evt:e}),fe=de&&de.parentNode,ye=q(de),xe=q(de,n.draggable),rt.eventCanceled||(Be=!1,je=!1,$e=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),mt(this.cloneId),mt(this._dragStartId),this.nativeDraggable&&(S(document,"drop",this),S(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),w&&M(document.body,"user-select",""),M(de,"transform",""),e&&(De&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),pe&&pe.parentNode&&pe.parentNode.removeChild(pe),(he===fe||Ce&&"clone"!==Ce.lastPutMode)&&ve&&ve.parentNode&&ve.parentNode.removeChild(ve),de&&(this.nativeDraggable&&S(de,"dragend",this),at(de),de.style["will-change"]="",De&&!Be&&L(de,Ce?Ce.options.ghostClass:this.options.ghostClass,!1),L(de,this.options.chosenClass,!1),ue({sortable:this,name:"unchoose",toEl:fe,newIndex:null,newDraggableIndex:null,originalEvent:e}),he!==fe?(ye>=0&&(ue({rootEl:fe,name:"add",toEl:fe,fromEl:he,originalEvent:e}),ue({sortable:this,name:"remove",toEl:fe,originalEvent:e}),ue({rootEl:fe,name:"sort",toEl:fe,fromEl:he,originalEvent:e}),ue({sortable:this,name:"sort",toEl:fe,originalEvent:e})),Ce&&Ce.save()):ye!==_e&&ye>=0&&(ue({sortable:this,name:"update",toEl:fe,originalEvent:e}),ue({sortable:this,name:"sort",toEl:fe,originalEvent:e})),rt.active&&(null!=ye&&-1!==ye||(ye=_e,xe=we),ue({sortable:this,name:"end",toEl:fe,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){le("nulling",this),he=de=fe=pe=me=ve=ge=be=Ae=Se=De=ye=xe=_e=we=Le=Me=Ce=ke=rt.dragged=rt.ghost=rt.clone=rt.active=null,He.forEach((function(e){e.checked=!0})),He.length=Ee=Te=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":de&&(this._onDragOver(e),it(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)e=n[r],O(e,o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||ft(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var i=r.children[t];O(i,this.options.draggable,r,!1)&&(n[e]=i)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return O(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=ae.modifyOption(this,e,t);n[e]="undefined"!==typeof r?r:t,"group"===e&&Je(n)},destroy:function(){le("destroy",this);var e=this.el;e[ee]=null,S(e,"mousedown",this._onTapStart),S(e,"touchstart",this._onTapStart),S(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(S(e,"dragover",this),S(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Pe.splice(Pe.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!be){if(le("hideClone",this),rt.eventCanceled)return;M(ve,"display","none"),this.options.removeCloneOnHide&&ve.parentNode&&ve.parentNode.removeChild(ve),be=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(be){if(le("showClone",this),rt.eventCanceled)return;de.parentNode!=he||this.options.group.revertClone?me?he.insertBefore(ve,me):he.appendChild(ve):he.insertBefore(ve,de),this.options.group.revertClone&&this.animate(de,ve),M(ve,"display",""),be=!1}}else this._hideClone()}},Ue&&A(document,"touchmove",(function(e){(rt.active||Be)&&e.cancelable&&e.preventDefault()})),rt.utils={on:A,off:S,css:M,find:N,is:function(e,t){return!!O(e,t,e,!1)},extend:V,throttle:K,closest:O,toggleClass:L,clone:Q,index:q,nextTick:ht,cancelNextTick:mt,detectDirection:Ye,getChild:j},rt.get=function(e){return e[ee]},rt.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(rt.utils=i(i({},rt.utils),e.utils)),ae.mount(e)}))},rt.create=function(e,t){return new rt(e,t)},rt.version=g;var gt,vt,bt,_t,yt,wt,xt=[],kt=!1;function Ct(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?A(document,"dragover",this._handleAutoScroll):this.options.supportPointer?A(document,"pointermove",this._handleFallbackAutoScroll):t.touches?A(document,"touchmove",this._handleFallbackAutoScroll):A(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?S(document,"dragover",this._handleAutoScroll):(S(document,"pointermove",this._handleFallbackAutoScroll),S(document,"touchmove",this._handleFallbackAutoScroll),S(document,"mousemove",this._handleFallbackAutoScroll)),St(),At(),Y()},nulling:function(){yt=vt=gt=kt=wt=bt=_t=null,xt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(r,i);if(yt=e,t||this.options.forceAutoScrollFallback||_||b||w){Tt(e,this.options,o,t);var a=W(o,!0);!kt||wt&&r===bt&&i===_t||(wt&&St(),wt=setInterval((function(){var o=W(document.elementFromPoint(r,i),!0);o!==a&&(a=o,At()),Tt(e,n.options,o,t)}),10),bt=r,_t=i)}else{if(!this.options.bubbleScroll||W(o,!0)===B())return void At();Tt(e,this.options,W(o,!1),!1)}}},s(e,{pluginName:"scroll",initializeByDefault:!0})}function At(){xt.forEach((function(e){clearInterval(e.pid)})),xt=[]}function St(){clearInterval(wt)}var Et,Tt=K((function(e,t,n,r){if(t.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,c=t.scrollSpeed,l=B(),u=!1;vt!==n&&(vt=n,At(),gt=t.scroll,i=t.scrollFn,!0===gt&&(gt=W(n,!0)));var d=0,f=gt;do{var p=f,h=I(p),m=h.top,g=h.bottom,v=h.left,b=h.right,_=h.width,y=h.height,w=void 0,x=void 0,k=p.scrollWidth,C=p.scrollHeight,A=M(p),S=p.scrollLeft,E=p.scrollTop;p===l?(w=_<k&&("auto"===A.overflowX||"scroll"===A.overflowX||"visible"===A.overflowX),x=y<C&&("auto"===A.overflowY||"scroll"===A.overflowY||"visible"===A.overflowY)):(w=_<k&&("auto"===A.overflowX||"scroll"===A.overflowX),x=y<C&&("auto"===A.overflowY||"scroll"===A.overflowY));var T=w&&(Math.abs(b-o)<=s&&S+_<k)-(Math.abs(v-o)<=s&&!!S),O=x&&(Math.abs(g-a)<=s&&E+y<C)-(Math.abs(m-a)<=s&&!!E);if(!xt[d])for(var R=0;R<=d;R++)xt[R]||(xt[R]={});xt[d].vx==T&&xt[d].vy==O&&xt[d].el===p||(xt[d].el=p,xt[d].vx=T,xt[d].vy=O,clearInterval(xt[d].pid),0==T&&0==O||(u=!0,xt[d].pid=setInterval(function(){r&&0===this.layer&&rt.active._onTouchMove(yt);var t=xt[this.layer].vy?xt[this.layer].vy*c:0,n=xt[this.layer].vx?xt[this.layer].vx*c:0;"function"===typeof i&&"continue"!==i.call(rt.dragged.parentNode[ee],n,t,e,yt,xt[this.layer].el)||X(xt[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==l&&(f=W(f,!1)));kt=u}}),30),Ot=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var c=n||i;a();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(l.clientX,l.clientY);s(),c&&!c.el.contains(u)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Rt(){}function Dt(){}function Lt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;Et=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,i=e.activeSortable,o=e.changed,a=e.cancel;if(i.options.swap){var s=this.sortable.el,c=this.options;if(n&&n!==s){var l=Et;!1!==r(n)?(L(n,c.swapClass,!0),Et=n):Et=null,l&&l!==Et&&L(l,c.swapClass,!1)}o(),t(!0),a()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,i=n||this.sortable,o=this.options;Et&&L(Et,o.swapClass,!1),Et&&(o.swap||n&&n.options.swap)&&r!==Et&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),Mt(r,Et),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){Et=null}},s(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Et}}})}function Mt(e,t){var n,r,i=e.parentNode,o=t.parentNode;i&&o&&!i.isEqualNode(t)&&!o.isEqualNode(e)&&(n=q(e),r=q(t),i.isEqualNode(o)&&n<r&&r++,i.insertBefore(t,i.children[n]),o.insertBefore(e,o.children[r]))}Rt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=j(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Ot},s(Rt,{pluginName:"revertOnSpill"}),Dt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,r=n||this.sortable;r.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),r.animateAll()},drop:Ot},s(Dt,{pluginName:"removeOnSpill"});var Ft,Nt,Bt,It,Pt,$t=[],jt=[],zt=!1,qt=!1,Ht=!1;function Ut(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this));e.options.avoidImplicitDeselect||(e.options.supportPointer?A(document,"pointerup",this._deselectMultiDrag):(A(document,"mouseup",this._deselectMultiDrag),A(document,"touchend",this._deselectMultiDrag))),A(document,"keydown",this._checkKeyDown),A(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(t,n){var r="";$t.length&&Nt===e?$t.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;Bt=t},delayEnded:function(){this.isMultiDrag=~$t.indexOf(Bt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<$t.length;r++)jt.push(Q($t[r])),jt[r].sortableIndex=$t[r].sortableIndex,jt[r].draggable=!1,jt[r].style["will-change"]="",L(jt[r],this.options.selectedClass,!1),$t[r]===Bt&&L(jt[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,i=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||$t.length&&Nt===t&&(Vt(!0,n),r("clone"),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(Vt(!1,n),jt.forEach((function(e){M(e,"display","")})),t(),Pt=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(jt.forEach((function(e){M(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),Pt=!0,r())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&Nt&&Nt.multiDrag._deselectMultiDrag(),$t.forEach((function(e){e.sortableIndex=q(e)})),$t=$t.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),Ht=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){$t.forEach((function(e){e!==Bt&&M(e,"position","absolute")}));var r=I(Bt,!1,!0,!0);$t.forEach((function(e){e!==Bt&&J(e,r)})),qt=!0,zt=!0}n.animateAll((function(){qt=!1,zt=!1,t.options.animation&&$t.forEach((function(e){Z(e)})),t.options.sort&&Gt()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;qt&&~$t.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;$t.length>1&&($t.forEach((function(e){r.addAnimationState({target:e,rect:qt?I(e):i}),Z(e),e.fromRect=i,t.removeAnimationState(e)})),qt=!1,Wt(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,o=e.parentEl,a=e.putSortable,s=this.options;if(r){if(n&&i._hideClone(),zt=!1,s.animation&&$t.length>1&&(qt||!n&&!i.options.sort&&!a)){var c=I(Bt,!1,!0,!0);$t.forEach((function(e){e!==Bt&&(J(e,c),o.appendChild(e))})),qt=!0}if(!n)if(qt||Gt(),$t.length>1){var l=Pt;i._showClone(t),i.options.animation&&!Pt&&l&&jt.forEach((function(e){i.addAnimationState({target:e,rect:It}),e.fromRect=It,e.thisAnimationDuration=null}))}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if($t.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){It=s({},t);var i=F(Bt,!0);It.top-=i.f,It.left-=i.e}},dragOverAnimationComplete:function(){qt&&(qt=!1,Gt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,o=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,c=s||this.sortable;if(t){var l=this.options,u=r.children;if(!Ht)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),L(Bt,l.selectedClass,!~$t.indexOf(Bt)),~$t.indexOf(Bt))$t.splice($t.indexOf(Bt),1),Ft=null,se({sortable:i,rootEl:n,name:"deselect",targetEl:Bt,originalEvent:t});else{if($t.push(Bt),se({sortable:i,rootEl:n,name:"select",targetEl:Bt,originalEvent:t}),t.shiftKey&&Ft&&i.el.contains(Ft)){var d,f,p=q(Ft),h=q(Bt);if(~p&&~h&&p!==h)for(h>p?(f=p,d=h):(f=h,d=p+1);f<d;f++)~$t.indexOf(u[f])||(L(u[f],l.selectedClass,!0),$t.push(u[f]),se({sortable:i,rootEl:n,name:"select",targetEl:u[f],originalEvent:t}))}else Ft=Bt;Nt=c}if(Ht&&this.isMultiDrag){if(qt=!1,(r[ee].options.sort||r!==n)&&$t.length>1){var m=I(Bt),g=q(Bt,":not(."+this.options.selectedClass+")");if(!zt&&l.animation&&(Bt.thisAnimationDuration=null),c.captureAnimationState(),!zt&&(l.animation&&(Bt.fromRect=m,$t.forEach((function(e){if(e.thisAnimationDuration=null,e!==Bt){var t=qt?I(e):m;e.fromRect=t,c.addAnimationState({target:e,rect:t})}}))),Gt(),$t.forEach((function(e){u[g]?r.insertBefore(e,u[g]):r.appendChild(e),g++})),a===q(Bt))){var v=!1;$t.forEach((function(e){e.sortableIndex===q(e)||(v=!0)})),v&&(o("update"),o("sort"))}$t.forEach((function(e){Z(e)})),c.animateAll()}Nt=c}(n===r||s&&"clone"!==s.lastPutMode)&&jt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Ht=!1,jt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),S(document,"pointerup",this._deselectMultiDrag),S(document,"mouseup",this._deselectMultiDrag),S(document,"touchend",this._deselectMultiDrag),S(document,"keydown",this._checkKeyDown),S(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(("undefined"===typeof Ht||!Ht)&&Nt===this.sortable&&(!e||!O(e.target,this.options.draggable,this.sortable.el,!1))&&(!e||0===e.button))while($t.length){var t=$t[0];L(t,this.options.selectedClass,!1),$t.shift(),se({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvent:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},s(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[ee];t&&t.options.multiDrag&&!~$t.indexOf(e)&&(Nt&&Nt!==t&&(Nt.multiDrag._deselectMultiDrag(),Nt=t),L(e,t.options.selectedClass,!0),$t.push(e))},deselect:function(e){var t=e.parentNode[ee],n=$t.indexOf(e);t&&t.options.multiDrag&&~n&&(L(e,t.options.selectedClass,!1),$t.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return $t.forEach((function(r){var i;t.push({multiDragElement:r,index:r.sortableIndex}),i=qt&&r!==Bt?-1:qt?q(r,":not(."+e.options.selectedClass+")"):q(r),n.push({multiDragElement:r,index:i})})),{items:u($t),clones:[].concat(jt),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),"ctrl"===e?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Wt(e,t){$t.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function Vt(e,t){jt.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function Gt(){$t.forEach((function(e){e!==Bt&&e.parentNode&&e.parentNode.removeChild(e)}))}rt.mount(new Ct),rt.mount(Dt,Rt),t["default"]=rt},4625:function(e,t,n){"use strict";var r=n("c6b6"),i=n("e330");e.exports=function(e){if("Function"===r(e))return i(e)}},"466d":function(e,t,n){"use strict";var r=n("c65b"),i=n("d784"),o=n("825a"),a=n("7234"),s=n("50c4"),c=n("577e"),l=n("1d80"),u=n("dc4a"),d=n("8aa5"),f=n("14c3");i("match",(function(e,t,n){return[function(t){var n=l(this),i=a(t)?void 0:u(t,e);return i?r(i,t,n):new RegExp(t)[e](c(n))},function(e){var r=o(this),i=c(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return f(r,i);var l=r.unicode;r.lastIndex=0;var u,p=[],h=0;while(null!==(u=f(r,i))){var m=c(u[0]);p[h]=m,""===m&&(r.lastIndex=d(i,s(r.lastIndex),l)),h++}return 0===h?null:p}]}))},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"46c3":function(e,t){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>'}})},4738:function(e,t,n){"use strict";var r=n("da84"),i=n("d256"),o=n("1626"),a=n("94ca"),s=n("8925"),c=n("b622"),l=n("6069"),u=n("6c59"),d=n("c430"),f=n("2d00"),p=i&&i.prototype,h=c("species"),m=!1,g=o(r.PromiseRejectionEvent),v=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===f)return!0;if(d&&(!p["catch"]||!p["finally"]))return!0;if(!f||f<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))},o=n.constructor={};if(o[h]=r,m=n.then((function(){}))instanceof r,!m)return!0}return!t&&(l||u)&&!g}));e.exports={CONSTRUCTOR:v,REJECTION_EVENT:g,SUBCLASSING:m}},4754:function(e,t,n){"use strict";e.exports=function(e,t){return{value:e,done:t}}},4840:function(e,t,n){"use strict";var r=n("825a"),i=n("5087"),o=n("7234"),a=n("b622"),s=a("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||o(n=r(a)[s])?t:i(n)}},"485a":function(e,t,n){"use strict";var r=n("c65b"),i=n("1626"),o=n("861d"),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},"498a":function(e,t,n){"use strict";var r=n("23e7"),i=n("58a8").trim,o=n("c8d2");r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},"4b11":function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},"4b8b":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"4d20":function(e,t,n){var r=n("1917"),i=n("10db"),o=n("6ca1"),a=n("3397"),s=n("9c0e"),c=n("faf5"),l=Object.getOwnPropertyDescriptor;t.f=n("0bad")?l:function(e,t){if(e=o(e),t=a(t,!0),c)try{return l(e,t)}catch(n){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},"4d64":function(e,t,n){"use strict";var r=n("fc6a"),i=n("23cb"),o=n("07fa"),a=function(e){return function(t,n,a){var s,c=r(t),l=o(c),u=i(a,l);if(e&&n!==n){while(l>u)if(s=c[u++],s!==s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4d88":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"4de4":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").filter,o=n("1dde"),a=o("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var r=n("0366"),i=n("c65b"),o=n("7b0b"),a=n("9bdd"),s=n("e95a"),c=n("68ee"),l=n("07fa"),u=n("8418"),d=n("9a1f"),f=n("35a1"),p=Array;e.exports=function(e){var t=o(e),n=c(this),h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m;g&&(m=r(m,h>2?arguments[2]:void 0));var v,b,_,y,w,x,k=f(t),C=0;if(!k||this===p&&s(k))for(v=l(t),b=n?new this(v):p(v);v>C;C++)x=g?m(t[C],C):t[C],u(b,C,x);else for(y=d(t,k),w=y.next,b=n?new this:[];!(_=i(w,y)).done;C++)x=g?a(y,m,[_.value,C],!0):_.value,u(b,C,x);return b.length=C,b}},"4e71":function(e,t,n){n("e198")("observable")},"4ea1":function(e,t,n){"use strict";var r=n("d429"),i=n("ebb5"),o=n("bcbf"),a=n("5926"),s=n("f495"),c=i.aTypedArray,l=i.getTypedArrayConstructor,u=i.exportTypedArrayMethod,d=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();u("with",{with:function(e,t){var n=c(this),i=a(e),u=o(n)?s(t):+t;return r(n,l(n),i,u)}}["with"],!d)},"4ea8":function(e,t,n){n("cdd9")},"4eb5":function(e,t,n){var r=n("156f"),i={autoSetContainer:!1,appendToBody:!0},o={install:function(e){var t="3."===e.version.slice(0,2)?e.config.globalProperties:e.prototype;t.$clipboardConfig=i,t.$copyText=function(e,t){return new Promise((function(n,o){var a=document.createElement("button"),s=new r(a,{text:function(){return e},action:function(){return"copy"},container:"object"===typeof t?t:document.body});s.on("success",(function(e){s.destroy(),n(e)})),s.on("error",(function(e){s.destroy(),o(e)})),i.appendToBody&&document.body.appendChild(a),a.click(),i.appendToBody&&document.body.removeChild(a)}))},e.directive("clipboard",{bind:function(e,t,n){if("success"===t.arg)e._vClipboard_success=t.value;else if("error"===t.arg)e._vClipboard_error=t.value;else{var o=new r(e,{text:function(){return t.value},action:function(){return"cut"===t.arg?"cut":"copy"},container:i.autoSetContainer?e:void 0});o.on("success",(function(t){var n=e._vClipboard_success;n&&n(t)})),o.on("error",(function(t){var n=e._vClipboard_error;n&&n(t)})),e._vClipboard=o}},update:function(e,t){"success"===t.arg?e._vClipboard_success=t.value:"error"===t.arg?e._vClipboard_error=t.value:(e._vClipboard.text=function(){return t.value},e._vClipboard.action=function(){return"cut"===t.arg?"cut":"copy"})},unbind:function(e,t){e._vClipboard&&("success"===t.arg?delete e._vClipboard_success:"error"===t.arg?delete e._vClipboard_error:(e._vClipboard.destroy(),delete e._vClipboard))}})},config:i};e.exports=o},"4ebc":function(e,t,n){var r=n("4d88");e.exports=Array.isArray||function(e){return"Array"==r(e)}},5087:function(e,t,n){"use strict";var r=n("68ee"),i=n("0d51"),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},"50c4":function(e,t,n){"use strict";var r=n("5926"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"511f":function(e,t,n){n("0b99"),n("658f"),e.exports=n("fcd4").f("iterator")},"512c":function(e,t,n){var r=n("ef08"),i=n("5524"),o=n("9c0c"),a=n("051b"),s=n("9c0e"),c="prototype",l=function(e,t,n){var u,d,f,p=e&l.F,h=e&l.G,m=e&l.S,g=e&l.P,v=e&l.B,b=e&l.W,_=h?i:i[t]||(i[t]={}),y=_[c],w=h?r:m?r[t]:(r[t]||{})[c];for(u in h&&(n=t),n)d=!p&&w&&void 0!==w[u],d&&s(_,u)||(f=d?w[u]:n[u],_[u]=h&&"function"!=typeof w[u]?n[u]:v&&d?o(f,r):b&&w[u]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[c]=e[c],t}(f):g&&"function"==typeof f?o(Function.call,f):f,g&&((_.virtual||(_.virtual={}))[u]=f,e&l.R&&y&&!y[u]&&a(y,u,f)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"512ce":function(e,t,n){"use strict";var r=n("342f"),i=r.match(/AppleWebKit\/(\d+)\./);e.exports=!!i&&+i[1]},5156:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n("1696");e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},"51eb":function(e,t,n){"use strict";var r=n("825a"),i=n("485a"),o=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new o("Incorrect hint");return i(this,e)}},"521e":function(e,t,n){"use strict";n("e3f1");var r=n("9883"),i=n.n(r),o="ElInfiniteScroll",a="[el-table-infinite-scroll]: ",s=".el-table__body-wrapper",c={inserted:function(e,t,n,r){var c=e.querySelector(s);if(!c)throw"".concat(a,"找不到 ").concat(s," 容器");c.style.overflowY="auto",setTimeout((function(){e.style.height||(c.style.height="400px"),l(n,e,c),i.a.inserted(c,t,n,r),e[o]=c[o]}),0)},componentUpdated:function(e,t,n){l(n,e,e.querySelector(s))},unbind:i.a.unbind};function l(e,t,n){var r;["disabled","delay","immediate"].forEach((function(e){e="infinite-scroll-"+e,r=t.getAttribute(e),null!==r?n.setAttribute(e,r):n.removeAttribute(e)}));var i="infinite-scroll-distance";r=t.getAttribute(i),n.setAttribute(i,r<1?1:r)}c.install=function(e){e.directive("el-table-infinite-scroll",c)},t["a"]=c},5270:function(e,t,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444"),s=n("d925"),c=n("e683");function l(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){l(e),e.baseURL&&!s(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return l(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5319:function(e,t,n){"use strict";var r=n("2ba4"),i=n("c65b"),o=n("e330"),a=n("d784"),s=n("d039"),c=n("825a"),l=n("1626"),u=n("7234"),d=n("5926"),f=n("50c4"),p=n("577e"),h=n("1d80"),m=n("8aa5"),g=n("dc4a"),v=n("0cb2"),b=n("14c3"),_=n("b622"),y=_("replace"),w=Math.max,x=Math.min,k=o([].concat),C=o([].push),A=o("".indexOf),S=o("".slice),E=function(e){return void 0===e?e:String(e)},T=function(){return"$0"==="a".replace(/./,"$0")}(),O=function(){return!!/./[y]&&""===/./[y]("a","$0")}(),R=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));a("replace",(function(e,t,n){var o=O?"$":"$0";return[function(e,n){var r=h(this),o=u(e)?void 0:g(e,y);return o?i(o,e,r,n):i(t,p(r),e,n)},function(e,i){var a=c(this),s=p(e);if("string"==typeof i&&-1===A(i,o)&&-1===A(i,"$<")){var u=n(t,a,s,i);if(u.done)return u.value}var h=l(i);h||(i=p(i));var g,_=a.global;_&&(g=a.unicode,a.lastIndex=0);var y,T=[];while(1){if(y=b(a,s),null===y)break;if(C(T,y),!_)break;var O=p(y[0]);""===O&&(a.lastIndex=m(s,f(a.lastIndex),g))}for(var R="",D=0,L=0;L<T.length;L++){y=T[L];for(var M,F=p(y[0]),N=w(x(d(y.index),s.length),0),B=[],I=1;I<y.length;I++)C(B,E(y[I]));var P=y.groups;if(h){var $=k([F],B,N,s);void 0!==P&&C($,P),M=p(r(i,void 0,$))}else M=v(F,s,N,B,P,i);N>=D&&(R+=S(s,D,N)+M,D=N+F.length)}return R+S(s,D)}]}),!R||!T||O)},5352:function(e,t,n){"use strict";n("e260");var r=n("23e7"),i=n("da84"),o=n("157a"),a=n("c65b"),s=n("e330"),c=n("83ab"),l=n("f354"),u=n("cb2d"),d=n("edd0"),f=n("6964"),p=n("d44e"),h=n("dcc3"),m=n("69f3"),g=n("19aa"),v=n("1626"),b=n("1a2d"),_=n("0366"),y=n("f5df"),w=n("825a"),x=n("861d"),k=n("577e"),C=n("7c73"),A=n("5c6c"),S=n("9a1f"),E=n("35a1"),T=n("4754"),O=n("d6d6"),R=n("b622"),D=n("addb"),L=R("iterator"),M="URLSearchParams",F=M+"Iterator",N=m.set,B=m.getterFor(M),I=m.getterFor(F),P=o("fetch"),$=o("Request"),j=o("Headers"),z=$&&$.prototype,q=j&&j.prototype,H=i.RegExp,U=i.TypeError,W=i.decodeURIComponent,V=i.encodeURIComponent,G=s("".charAt),K=s([].join),Y=s([].push),X=s("".replace),Q=s([].shift),J=s([].splice),Z=s("".split),ee=s("".slice),te=/\+/g,ne=Array(4),re=function(e){return ne[e-1]||(ne[e-1]=H("((?:%[\\da-f]{2}){"+e+"})","gi"))},ie=function(e){try{return W(e)}catch(t){return e}},oe=function(e){var t=X(e,te," "),n=4;try{return W(t)}catch(r){while(n)t=X(t,re(n--),ie);return t}},ae=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ce=function(e){return se[e]},le=function(e){return X(V(e),ae,ce)},ue=h((function(e,t){N(this,{type:F,target:B(e).entries,index:0,kind:t})}),M,(function(){var e=I(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,T(void 0,!0);var r=t[n];switch(e.kind){case"keys":return T(r.key,!1);case"values":return T(r.value,!1)}return T([r.key,r.value],!1)}),!0),de=function(e){this.entries=[],this.url=null,void 0!==e&&(x(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===G(e,0)?ee(e,1):e:k(e)))};de.prototype={type:M,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,s,c,l=this.entries,u=E(e);if(u){t=S(e,u),n=t.next;while(!(r=a(n,t)).done){if(i=S(w(r.value)),o=i.next,(s=a(o,i)).done||(c=a(o,i)).done||!a(o,i).done)throw new U("Expected sequence with length 2");Y(l,{key:k(s.value),value:k(c.value)})}}else for(var d in e)b(e,d)&&Y(l,{key:d,value:k(e[d])})},parseQuery:function(e){if(e){var t,n,r=this.entries,i=Z(e,"&"),o=0;while(o<i.length)t=i[o++],t.length&&(n=Z(t,"="),Y(r,{key:oe(Q(n)),value:oe(K(n,"="))}))}},serialize:function(){var e,t=this.entries,n=[],r=0;while(r<t.length)e=t[r++],Y(n,le(e.key)+"="+le(e.value));return K(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var fe=function(){g(this,pe);var e=arguments.length>0?arguments[0]:void 0,t=N(this,new de(e));c||(this.size=t.entries.length)},pe=fe.prototype;if(f(pe,{append:function(e,t){var n=B(this);O(arguments.length,2),Y(n.entries,{key:k(e),value:k(t)}),c||this.length++,n.updateURL()},delete:function(e){var t=B(this),n=O(arguments.length,1),r=t.entries,i=k(e),o=n<2?void 0:arguments[1],a=void 0===o?o:k(o),s=0;while(s<r.length){var l=r[s];if(l.key!==i||void 0!==a&&l.value!==a)s++;else if(J(r,s,1),void 0!==a)break}c||(this.size=r.length),t.updateURL()},get:function(e){var t=B(this).entries;O(arguments.length,1);for(var n=k(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=B(this).entries;O(arguments.length,1);for(var n=k(e),r=[],i=0;i<t.length;i++)t[i].key===n&&Y(r,t[i].value);return r},has:function(e){var t=B(this).entries,n=O(arguments.length,1),r=k(e),i=n<2?void 0:arguments[1],o=void 0===i?i:k(i),a=0;while(a<t.length){var s=t[a++];if(s.key===r&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var n=B(this);O(arguments.length,1);for(var r,i=n.entries,o=!1,a=k(e),s=k(t),l=0;l<i.length;l++)r=i[l],r.key===a&&(o?J(i,l--,1):(o=!0,r.value=s));o||Y(i,{key:a,value:s}),c||(this.size=i.length),n.updateURL()},sort:function(){var e=B(this);D(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){var t,n=B(this).entries,r=_(e,arguments.length>1?arguments[1]:void 0),i=0;while(i<n.length)t=n[i++],r(t.value,t.key,this)},keys:function(){return new ue(this,"keys")},values:function(){return new ue(this,"values")},entries:function(){return new ue(this,"entries")}},{enumerable:!0}),u(pe,L,pe.entries,{name:"entries"}),u(pe,"toString",(function(){return B(this).serialize()}),{enumerable:!0}),c&&d(pe,"size",{get:function(){return B(this).entries.length},configurable:!0,enumerable:!0}),p(fe,M),r({global:!0,constructor:!0,forced:!l},{URLSearchParams:fe}),!l&&v(j)){var he=s(q.has),me=s(q.set),ge=function(e){if(x(e)){var t,n=e.body;if(y(n)===M)return t=e.headers?new j(e.headers):new j,he(t,"content-type")||me(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),C(e,{body:A(0,k(n)),headers:A(0,t)})}return e};if(v(P)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return P(e,arguments.length>1?ge(arguments[1]):{})}}),v($)){var ve=function(e){return g(this,z),new $(e,arguments.length>1?ge(arguments[1]):{})};z.constructor=ve,ve.prototype=z,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ve})}}e.exports={URLSearchParams:fe,getState:B}},"53c6":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"53ca":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0");function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}},5402:function(e,t,n){"use strict";var r=n("00ce"),i=n("545e"),o=n("2714"),a=r("%TypeError%"),s=r("%WeakMap%",!0),c=r("%Map%",!0),l=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),f=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),h=i("Map.prototype.has",!0),m=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},g=function(e,t){var n=m(e,t);return n&&n.value},v=function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},b=function(e,t){return!!m(e,t)};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return l(e,r)}else if(c){if(t)return f(t,r)}else if(n)return g(n,r)},has:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return d(e,r)}else if(c){if(t)return h(t,r)}else if(n)return b(n,r);return!1},set:function(r,i){s&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new s),u(e,r,i)):c?(t||(t=new c),p(t,r,i)):(n||(n={key:{},next:null}),v(n,r,i))}};return r}},"545e":function(e,t,n){"use strict";var r=n("00ce"),i=n("3eb1"),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},5494:function(e,t,n){"use strict";var r=n("83ab"),i=n("e330"),o=n("edd0"),a=URLSearchParams.prototype,s=i(a.forEach);r&&!("size"in a)&&o(a,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})},5524:function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},5530:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("14d9"),n("159b"),n("dbb4");var r=n("ade3");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},5692:function(e,t,n){"use strict";var r=n("c430"),i=n("c6cd");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"56b3":function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),c=!o&&/WebKit\//.test(e),l=c&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\//.test(e),d=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),m=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),g=/Android/.test(e),v=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=m||/Mac/.test(t),_=/\bCrOS\b/.test(e),y=/win/i.test(t),w=d&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(d=!1,c=!0);var x=b&&(l||d&&(null==w||w<12.11)),k=n||a&&s>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var A,S=function(e,t){var n=e.className,r=C(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function E(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function T(e,t){return E(e).appendChild(t)}function O(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function R(e,t,n,r){var i=O(e,t,n,r);return i.setAttribute("role","presentation"),i}function D(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function L(){var e;try{e=document.activeElement}catch(t){e=document.body||null}while(e&&e.shadowRoot&&e.shadowRoot.activeElement)e=e.shadowRoot.activeElement;return e}function M(e,t){var n=e.className;C(t).test(n)||(e.className+=(n?" ":"")+t)}function F(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!C(n[r]).test(t)&&(t+=" "+n[r]);return t}A=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(i){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var N=function(e){e.select()};function B(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function I(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function P(e,t,n,r,i){null==t&&(t=e.search(/[^\s\u00a0]/),-1==t&&(t=e.length));for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?N=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(N=function(e){try{e.select()}catch(t){}});var $=function(){this.id=null};function j(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}$.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var z=30,q={toString:function(){return"CodeMirror.Pass"}},H={scroll:!1},U={origin:"*mouse"},W={origin:"+move"};function V(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var G=[""];function K(e){while(G.length<=e)G.push(Y(G)+" ");return G[e]}function Y(e){return e[e.length-1]}function X(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function Q(e,t,n){var r=0,i=n(t);while(r<e.length&&n(e[r])<=i)r++;e.splice(r,0,t)}function J(){}function Z(e,t){var n;return Object.create?n=Object.create(e):(J.prototype=e,n=new J),t&&I(t,n),n}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function te(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function ae(e,t,n){while((n<0?t>0:t<e.length)&&oe(e.charAt(t)))t+=n;return t}function se(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function ce(e,t,r){var i=this;this.input=r,i.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=R("div",null,"CodeMirror-code"),i.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=O("div",null,"CodeMirror-cursors"),i.measure=O("div",null,"CodeMirror-measure"),i.lineMeasure=O("div",null,"CodeMirror-measure"),i.lineSpace=R("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=R("div",[i.lineSpace],"CodeMirror-lines");i.mover=O("div",[o],null,"position: relative"),i.sizer=O("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=O("div",null,null,"position: absolute; height: "+z+"px; width: 1px;"),i.gutters=O("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=O("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=O("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),a&&s<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),c||n&&v||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,r.init(i)}function le(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");var n=e;while(!n.lines)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function ue(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function de(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function fe(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function pe(e){if(null==e.parent)return null;for(var t=e.parent,n=j(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;;++i){if(r.children[i]==t)break;n+=r.children[i].chunkSize()}return n+t.first}function he(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a],c=s.height;if(t<c)break;t-=c}return n+a}function me(e,t){return t>=e.first&&t<e.first+e.size}function ge(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ve(e,t,n){if(void 0===n&&(n=null),!(this instanceof ve))return new ve(e,t,n);this.line=e,this.ch=t,this.sticky=n}function be(e,t){return e.line-t.line||e.ch-t.ch}function _e(e,t){return e.sticky==t.sticky&&0==be(e,t)}function ye(e){return ve(e.line,e.ch)}function we(e,t){return be(e,t)<0?t:e}function xe(e,t){return be(e,t)<0?e:t}function ke(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function Ce(e,t){if(t.line<e.first)return ve(e.first,0);var n=e.first+e.size-1;return t.line>n?ve(n,le(e,n).text.length):Ae(t,le(e,t.line).text.length)}function Ae(e,t){var n=e.ch;return null==n||n>t?ve(e.line,t):n<0?ve(e.line,0):e}function Se(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=Ce(e,t[r]);return n}var Ee=!1,Te=!1;function Oe(){Ee=!0}function Re(){Te=!0}function De(e,t,n){this.marker=e,this.from=t,this.to=n}function Le(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Me(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Fe(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function Ne(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);if(s||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var c=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new De(a,o.from,c?null:o.to))}}return r}function Be(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);if(s||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var c=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new De(a,c?null:o.from-t,null==o.to?null:o.to-t))}}return r}function Ie(e,t){if(t.full)return null;var n=me(e,t.from.line)&&le(e,t.from.line).markedSpans,r=me(e,t.to.line)&&le(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==be(t.from,t.to),s=Ne(n,i,a),c=Be(r,o,a),l=1==t.text.length,u=Y(t.text).length+(l?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(null==f.to){var p=Le(c,f.marker);p?l&&(f.to=null==p.to?null:p.to+u):f.to=i}}if(c)for(var h=0;h<c.length;++h){var m=c[h];if(null!=m.to&&(m.to+=u),null==m.from){var g=Le(s,m.marker);g||(m.from=u,l&&(s||(s=[])).push(m))}else m.from+=u,l&&(s||(s=[])).push(m)}s&&(s=Pe(s)),c&&c!=s&&(c=Pe(c));var v=[s];if(!l){var b,_=t.text.length-2;if(_>0&&s)for(var y=0;y<s.length;++y)null==s[y].to&&(b||(b=[])).push(new De(s[y].marker,null,null));for(var w=0;w<_;++w)v.push(b);v.push(c)}return v}function Pe(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function $e(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=j(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),c=0;c<i.length;++c){var l=i[c];if(!(be(l.to,s.from)<0||be(l.from,s.to)>0)){var u=[c,1],d=be(l.from,s.from),f=be(l.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:l.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:s.to,to:l.to}),i.splice.apply(i,u),c+=u.length-3}}return i}function je(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function ze(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function qe(e){return e.inclusiveLeft?-1:0}function He(e){return e.inclusiveRight?1:0}function Ue(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=be(r.from,i.from)||qe(e)-qe(t);if(o)return-o;var a=be(r.to,i.to)||He(e)-He(t);return a||t.id-e.id}function We(e,t){var n,r=Te&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)i=r[o],i.marker.collapsed&&null==(t?i.from:i.to)&&(!n||Ue(n,i.marker)<0)&&(n=i.marker);return n}function Ve(e){return We(e,!0)}function Ge(e){return We(e,!1)}function Ke(e,t){var n,r=Te&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Ue(n,o.marker)<0)&&(n=o.marker)}return n}function Ye(e,t,n,r,i){var o=le(e,t),a=Te&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var c=a[s];if(c.marker.collapsed){var l=c.marker.find(0),u=be(l.from,n)||qe(c.marker)-qe(i),d=be(l.to,r)||He(c.marker)-He(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?be(l.to,n)>=0:be(l.to,n)>0)||u>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?be(l.from,r)<=0:be(l.from,r)<0)))return!0}}}function Xe(e){var t;while(t=Ve(e))e=t.find(-1,!0).line;return e}function Qe(e){var t;while(t=Ge(e))e=t.find(1,!0).line;return e}function Je(e){var t,n;while(t=Ge(e))e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function Ze(e,t){var n=le(e,t),r=Xe(n);return n==r?t:pe(r)}function et(e,t){if(t>e.lastLine())return t;var n,r=le(e,t);if(!tt(e,r))return t;while(n=Ge(r))r=n.find(1,!0).line;return pe(r)+1}function tt(e,t){var n=Te&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],r.marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&nt(e,t,r))return!0}}function nt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return nt(e,r.line,Le(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if(i=t.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&nt(e,t,i))return!0}function rt(e){e=Xe(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;n=o,o=n.parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function it(e){if(0==e.height)return 0;var t,n=e.text.length,r=e;while(t=Ve(r)){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}r=e;while(t=Ge(r)){var o=t.find(0,!0);n-=r.text.length-o.from.ch,r=o.to.line,n+=r.text.length-o.to.ch}return n}function ot(e){var t=e.display,n=e.doc;t.maxLine=le(n,n.first),t.maxLineLength=it(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=it(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}function at(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var st=null;function ct(e,t,n){var r;st=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:st=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:st=i)}return null!=r?r:st}var lt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function c(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var l="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,d=[],f=0;f<u;++f)d.push(n(e.charCodeAt(f)));for(var p=0,h=l;p<u;++p){var m=d[p];"m"==m?d[p]=h:h=m}for(var g=0,v=l;g<u;++g){var b=d[g];"1"==b&&"r"==v?d[g]="n":o.test(b)&&(v=b,"r"==b&&(d[g]="R"))}for(var _=1,y=d[0];_<u-1;++_){var w=d[_];"+"==w&&"1"==y&&"1"==d[_+1]?d[_]="1":","!=w||y!=d[_+1]||"1"!=y&&"n"!=y||(d[_]=y),y=w}for(var x=0;x<u;++x){var k=d[x];if(","==k)d[x]="N";else if("%"==k){var C=void 0;for(C=x+1;C<u&&"%"==d[C];++C);for(var A=x&&"!"==d[x-1]||C<u&&"1"==d[C]?"1":"N",S=x;S<C;++S)d[S]=A;x=C-1}}for(var E=0,T=l;E<u;++E){var O=d[E];"L"==T&&"1"==O?d[E]="L":o.test(O)&&(T=O)}for(var R=0;R<u;++R)if(i.test(d[R])){var D=void 0;for(D=R+1;D<u&&i.test(d[D]);++D);for(var L="L"==(R?d[R-1]:l),M="L"==(D<u?d[D]:l),F=L==M?L?"L":"R":l,N=R;N<D;++N)d[N]=F;R=D-1}for(var B,I=[],P=0;P<u;)if(a.test(d[P])){var $=P;for(++P;P<u&&a.test(d[P]);++P);I.push(new c(0,$,P))}else{var j=P,z=I.length;for(++P;P<u&&"L"!=d[P];++P);for(var q=j;q<P;)if(s.test(d[q])){j<q&&I.splice(z,0,new c(1,j,q));var H=q;for(++q;q<P&&s.test(d[q]);++q);I.splice(z,0,new c(2,H,q)),j=q}else++q;j<P&&I.splice(z,0,new c(1,j,P))}return"ltr"==t&&(1==I[0].level&&(B=e.match(/^\s+/))&&(I[0].from=B[0].length,I.unshift(new c(0,0,B[0].length))),1==Y(I).level&&(B=e.match(/\s+$/))&&(Y(I).to-=B[0].length,I.push(new c(0,u-B[0].length,u)))),"rtl"==t?I.reverse():I}}();function ut(e,t){var n=e.order;return null==n&&(n=e.order=lt(e.text,t)),n}var dt=[],ft=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||dt).concat(n)}};function pt(e,t){return e._handlers&&e._handlers[t]||dt}function ht(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=j(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function mt(e,t){var n=pt(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function gt(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),mt(e,n||t.type,e,t),xt(t)||t.codemirrorIgnore}function vt(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==j(n,t[r])&&n.push(t[r])}function bt(e,t){return pt(e,t).length>0}function _t(e){e.prototype.on=function(e,t){ft(this,e,t)},e.prototype.off=function(e,t){ht(this,e,t)}}function yt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function wt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function xt(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function kt(e){yt(e),wt(e)}function Ct(e){return e.target||e.srcElement}function At(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var St,Et,Tt=function(){if(a&&s<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}();function Ot(e){if(null==St){var t=O("span","​");T(e,O("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(St=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=St?O("span","​"):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Rt(e){if(null!=Et)return Et;var t=T(e,document.createTextNode("AخA")),n=A(t,0,1).getBoundingClientRect(),r=A(t,1,2).getBoundingClientRect();return E(e),!(!n||n.left==n.right)&&(Et=r.right-n.right<3)}var Dt=3!="\n\nb".split(/\n/).length?function(e){var t=0,n=[],r=e.length;while(t<=r){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Lt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Mt=function(){var e=O("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Ft=null;function Nt(e){if(null!=Ft)return Ft;var t=T(e,O("span","x")),n=t.getBoundingClientRect(),r=A(t,0,1).getBoundingClientRect();return Ft=Math.abs(n.left-r.left)>1}var Bt={},It={};function Pt(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Bt[e]=t}function $t(e,t){It[e]=t}function jt(e){if("string"==typeof e&&It.hasOwnProperty(e))e=It[e];else if(e&&"string"==typeof e.name&&It.hasOwnProperty(e.name)){var t=It[e.name];"string"==typeof t&&(t={name:t}),e=Z(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return jt("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return jt("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function zt(e,t){t=jt(t);var n=Bt[t.name];if(!n)return zt(e,"text/plain");var r=n(e,t);if(qt.hasOwnProperty(t.name)){var i=qt[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var qt={};function Ht(e,t){var n=qt.hasOwnProperty(e)?qt[e]:qt[e]={};I(t,n)}function Ut(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Wt(e,t){var n;while(e.innerMode){if(n=e.innerMode(t),!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}}function Vt(e,t,n){return!e.startState||e.startState(t,n)}var Gt=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Gt.prototype.eol=function(){return this.pos>=this.string.length},Gt.prototype.sol=function(){return this.pos==this.lineStart},Gt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Gt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Gt.prototype.eat=function(e){var t,n=this.string.charAt(this.pos);if(t="string"==typeof e?n==e:n&&(e.test?e.test(n):e(n)),t)return++this.pos,n},Gt.prototype.eatWhile=function(e){var t=this.pos;while(this.eat(e));return this.pos>t},Gt.prototype.eatSpace=function(){var e=this,t=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++e.pos;return this.pos>t},Gt.prototype.skipToEnd=function(){this.pos=this.string.length},Gt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Gt.prototype.backUp=function(e){this.pos-=e},Gt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=P(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?P(this.string,this.lineStart,this.tabSize):0)},Gt.prototype.indentation=function(){return P(this.string,null,this.tabSize)-(this.lineStart?P(this.string,this.lineStart,this.tabSize):0)},Gt.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e},o=this.string.substr(this.pos,e.length);if(i(o)==i(e))return!1!==t&&(this.pos+=e.length),!0},Gt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Gt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Gt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Gt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Kt=function(e,t){this.state=e,this.lookAhead=t},Yt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function Xt(e,t,n,r){var i=[e.state.modeGen],o={};an(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],c=1,l=0;n.state=!0,an(e,t.text,s.mode,n,(function(e,t){var n=c;while(l<e){var r=i[c];r>e&&i.splice(c,1,e,i[c+1],r),c+=2,l=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,c-n,e,"overlay "+t),c=n+2;else for(;n<c;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},c=0;c<e.state.overlays.length;++c)s(c);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Qt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Jt(e,pe(t)),i=t.text.length>e.options.maxHighlightLength&&Ut(e.doc.mode,r.state),o=Xt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Jt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new Yt(r,!0,t);var o=sn(e,t,n),a=o>r.first&&le(r,o-1).stateAfter,s=a?Yt.fromSaved(r,a,o):new Yt(r,Vt(r.mode),o);return r.iter(o,t,(function(n){Zt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function Zt(e,t,n,r){var i=e.doc.mode,o=new Gt(t,e.options.tabSize,n);o.start=o.pos=r||0,""==t&&en(i,n.state);while(!o.eol())tn(i,o,n.state),o.start=o.pos}function en(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Wt(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function tn(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Wt(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}Yt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Yt.prototype.baseToken=function(e){var t=this;if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=e)t.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Yt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Yt.fromSaved=function(e,t,n){return t instanceof Kt?new Yt(e,Ut(e.mode,t.state),n,t.lookAhead):new Yt(e,Ut(e.mode,t),n)},Yt.prototype.save=function(e){var t=!1!==e?Ut(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Kt(t,this.maxLookAhead):t};var nn=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function rn(e,t,n,r){var i,o=e.doc,a=o.mode;t=Ce(o,t);var s,c=le(o,t.line),l=Jt(e,t.line,n),u=new Gt(c.text,e.options.tabSize,l);r&&(s=[]);while((r||u.pos<t.ch)&&!u.eol())u.start=u.pos,i=tn(a,u,l.state),r&&s.push(new nn(u,i,Ut(o.mode,l.state)));return r?s:new nn(u,i,l.state)}function on(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function an(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var c,l=0,u=null,d=new Gt(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];""==t&&on(en(n,r.state),o);while(!d.eol()){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&Zt(e,t,r,d.pos),d.pos=t.length,c=null):c=on(tn(n,d,r.state,f),o),f){var p=f[0].name;p&&(c="m-"+(c?p+" "+c:p))}if(!s||u!=c){while(l<d.start)l=Math.min(d.start,l+5e3),i(l,u);u=c}d.start=d.pos}while(l<d.pos){var h=Math.min(d.pos,l+5e3);i(h,u),l=h}}function sn(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var c=le(o,s-1),l=c.stateAfter;if(l&&(!n||s+(l instanceof Kt?l.lookAhead:0)<=o.modeFrontier))return s;var u=P(c.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}function cn(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=le(e,r).stateAfter;if(i&&(!(i instanceof Kt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var ln=function(e,t,n){this.text=e,ze(this,t),this.height=n?n(this):1};function un(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),je(e),ze(e,n);var i=r?r(e):1;i!=e.height&&fe(e,i)}function dn(e){e.parent=null,je(e)}ln.prototype.lineNo=function(){return pe(this)},_t(ln);var fn={},pn={};function hn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?pn:fn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function mn(e,t){var n=R("span",null,null,c?"padding-right: .1px":null),r={pre:R("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=vn,Rt(e.display.measure)&&(a=ut(o,e.doc.direction))&&(r.addToken=_n(r.addToken,a)),r.map=[];var s=t!=e.display.externalMeasured&&pe(o);wn(o,r,Qt(e,o,s)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=F(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=F(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ot(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(c){var l=r.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return mt(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=F(r.pre.className,r.textClass||"")),r}function gn(e){var t=O("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function vn(e,t,n,r,i,o,c){if(t){var l,u=e.splitSpaces?bn(t,e.trailingSpace):t,d=e.cm.state.specialChars,f=!1;if(d.test(t)){l=document.createDocumentFragment();var p=0;while(1){d.lastIndex=p;var h=d.exec(t),m=h?h.index-p:t.length-p;if(m){var g=document.createTextNode(u.slice(p,p+m));a&&s<9?l.appendChild(O("span",[g])):l.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var v=void 0;if("\t"==h[0]){var b=e.cm.options.tabSize,_=b-e.col%b;v=l.appendChild(O("span",K(_),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=_}else"\r"==h[0]||"\n"==h[0]?(v=l.appendChild(O("span","\r"==h[0]?"␍":"␤","cm-invalidchar")),v.setAttribute("cm-text",h[0]),e.col+=1):(v=e.cm.options.specialCharPlaceholder(h[0]),v.setAttribute("cm-text",h[0]),a&&s<9?l.appendChild(O("span",[v])):l.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,l=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,l),a&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||f||o){var y=n||"";r&&(y+=r),i&&(y+=i);var w=O("span",[l],y,o);if(c)for(var x in c)c.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&w.setAttribute(x,c[x]);return e.content.appendChild(w)}e.content.appendChild(l)}}function bn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function _n(e,t){return function(n,r,i,o,a,s,c){i=i?i+" cm-force-border":"cm-force-border";for(var l=n.pos,u=l+r.length;;){for(var d=void 0,f=0;f<t.length;f++)if(d=t[f],d.to>l&&d.from<=l)break;if(d.to>=u)return e(n,r,i,o,a,s,c);e(n,r.slice(0,d.to-l),i,o,null,s,c),o=null,r=r.slice(d.to-l),l=d.to}}}function yn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function wn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,c,l,u,d,f,p=i.length,h=0,m=1,g="",v=0;;){if(v==h){c=l=u=s="",f=null,d=null,v=1/0;for(var b=[],_=void 0,y=0;y<r.length;++y){var w=r[y],x=w.marker;if("bookmark"==x.type&&w.from==h&&x.widgetNode)b.push(x);else if(w.from<=h&&(null==w.to||w.to>h||x.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&v>w.to&&(v=w.to,l=""),x.className&&(c+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&w.from==h&&(u+=" "+x.startStyle),x.endStyle&&w.to==v&&(_||(_=[])).push(x.endStyle,w.to),x.title&&((f||(f={})).title=x.title),x.attributes)for(var k in x.attributes)(f||(f={}))[k]=x.attributes[k];x.collapsed&&(!d||Ue(d.marker,x)<0)&&(d=w)}else w.from>h&&v>w.from&&(v=w.from)}if(_)for(var C=0;C<_.length;C+=2)_[C+1]==v&&(l+=" "+_[C]);if(!d||d.from==h)for(var A=0;A<b.length;++A)yn(t,0,b[A]);if(d&&(d.from||0)==h){if(yn(t,(null==d.to?p+1:d.to)-h,d.marker,null==d.from),null==d.to)return;d.to==h&&(d=!1)}}if(h>=p)break;var S=Math.min(p,v);while(1){if(g){var E=h+g.length;if(!d){var T=E>S?g.slice(0,S-h):g;t.addToken(t,T,a?a+c:c,u,h+T.length==v?l:"",s,f)}if(E>=S){g=g.slice(S-h),h=S;break}h=E,u=""}g=i.slice(o,o=n[m++]),a=hn(n[m++],t.cm.options)}}else for(var O=1;O<n.length;O+=2)t.addToken(t,i.slice(o,o=n[O]),hn(n[O+1],t.cm.options))}function xn(e,t,n){this.line=t,this.rest=Je(t),this.size=this.rest?pe(Y(this.rest))-n+1:1,this.node=this.text=null,this.hidden=tt(e,t)}function kn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new xn(e.doc,le(e.doc,o),o);r=o+a.size,i.push(a)}return i}var Cn=null;function An(e){Cn?Cn.ops.push(e):e.ownsGroup=Cn={ops:[e],delayedCallbacks:[]}}function Sn(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)while(i.cursorActivityCalled<i.cursorActivityHandlers.length)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function En(e,t){var n=e.ownsGroup;if(n)try{Sn(n)}finally{Cn=null,t(n)}}var Tn=null;function On(e,t){var n=pt(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);Cn?r=Cn.delayedCallbacks:Tn?r=Tn:(r=Tn=[],setTimeout(Rn,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function Rn(){var e=Tn;Tn=null;for(var t=0;t<e.length;++t)e[t]()}function Dn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?Nn(e,t):"gutter"==o?In(e,t,n,r):"class"==o?Bn(e,t):"widget"==o&&Pn(e,t,r)}t.changes=null}function Ln(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function Mn(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Ln(t);t.background=r.insertBefore(O("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Fn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):mn(e,t)}function Nn(e,t){var n=t.text.className,r=Fn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Bn(e,t)):n&&(t.text.className=n)}function Bn(e,t){Mn(e,t),t.line.wrapClass?Ln(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function In(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Ln(t);t.gutterBackground=O("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=Ln(t),s=t.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(O("div",ge(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var c=0;c<e.options.gutters.length;++c){var l=e.options.gutters[c],u=o.hasOwnProperty(l)&&o[l];u&&s.appendChild(O("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[l]+"px; width: "+r.gutterWidth[l]+"px"))}}}function Pn(e,t,n){t.alignable&&(t.alignable=null);for(var r=t.node.firstChild,i=void 0;r;r=i)i=r.nextSibling,"CodeMirror-linewidget"==r.className&&t.node.removeChild(r);jn(e,t,n)}function $n(e,t,n,r){var i=Fn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Bn(e,t),In(e,t,n,r),jn(e,t,r),t.node}function jn(e,t,n){if(zn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)zn(e,t.rest[r],t,n,!1)}function zn(e,t,n,r,i){if(t.widgets)for(var o=Ln(n),a=0,s=t.widgets;a<s.length;++a){var c=s[a],l=O("div",[c.node],"CodeMirror-linewidget");c.handleMouseEvents||l.setAttribute("cm-ignore-events","true"),qn(c,l,n,r),e.display.input.setUneditable(l),i&&c.above?o.insertBefore(l,n.gutter||n.text):o.appendChild(l),On(c,"redraw")}}function qn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Hn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!D(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),T(t.display.measure,O("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Un(e,t){for(var n=Ct(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Wn(e){return e.lineSpace.offsetTop}function Vn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Gn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=T(e.measure,O("pre","x")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Kn(e){return z-e.display.nativeBarWidth}function Yn(e){return e.display.scroller.clientWidth-Kn(e)-e.display.barWidth}function Xn(e){return e.display.scroller.clientHeight-Kn(e)-e.display.barHeight}function Qn(e,t,n){var r=e.options.lineWrapping,i=r&&Yn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var c=a[s],l=a[s+1];Math.abs(c.bottom-l.bottom)>2&&o.push((c.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Jn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(pe(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Zn(e,t){t=Xe(t);var n=pe(t),r=e.display.externalMeasured=new xn(e.doc,t,n);r.lineN=n;var i=r.built=mn(e,r);return r.text=i.pre,T(e.display.lineMeasure,i.pre),r}function er(e,t,n,r){return rr(e,nr(e,t),n,r)}function tr(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Br(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function nr(e,t){var n=pe(t),r=tr(e,n);r&&!r.text?r=null:r&&r.changes&&(Dn(e,r,n,Dr(e)),e.curOp.forceUpdate=!0),r||(r=Zn(e,t));var i=Jn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function rr(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Qn(e,t.view,t.rect),t.hasHeights=!0),o=cr(e,t,n,r),o.bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var ir,or={left:0,right:0,top:0,bottom:0};function ar(e,t,n){for(var r,i,o,a,s,c,l=0;l<e.length;l+=3)if(s=e[l],c=e[l+1],t<s?(i=0,o=1,a="left"):t<c?(i=t-s,o=i+1):(l==e.length-3||t==c&&e[l+3]>t)&&(o=c-s,i=o-1,t>=c&&(a="right")),null!=i){if(r=e[l+2],s==c&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)while(l&&e[l-2]==e[l-3]&&e[l-1].insertLeft)r=e[2+(l-=3)],a="left";if("right"==n&&i==c-s)while(l<e.length-3&&e[l+3]==e[l+4]&&!e[l+5].insertLeft)r=e[(l+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:c}}function sr(e,t){var n=or;if("left"==t){for(var r=0;r<e.length;r++)if((n=e[r]).left!=n.right)break}else for(var i=e.length-1;i>=0;i--)if((n=e[i]).left!=n.right)break;return n}function cr(e,t,n,r){var i,o=ar(t.map,n,r),c=o.node,l=o.start,u=o.end,d=o.collapse;if(3==c.nodeType){for(var f=0;f<4;f++){while(l&&oe(t.line.text.charAt(o.coverStart+l)))--l;while(o.coverStart+u<o.coverEnd&&oe(t.line.text.charAt(o.coverStart+u)))++u;if(i=a&&s<9&&0==l&&u==o.coverEnd-o.coverStart?c.parentNode.getBoundingClientRect():sr(A(c,l,u).getClientRects(),r),i.left||i.right||0==l)break;u=l,l-=1,d="right"}a&&s<11&&(i=lr(e.display.measure,i))}else{var p;l>0&&(d=r="right"),i=e.options.lineWrapping&&(p=c.getClientRects()).length>1?p["right"==r?p.length-1:0]:c.getBoundingClientRect()}if(a&&s<9&&!l&&(!i||!i.left&&!i.right)){var h=c.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+Rr(e.display),top:h.top,bottom:h.bottom}:or}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,b=t.view.measure.heights,_=0;_<b.length-1;_++)if(v<b[_])break;var y=_?b[_-1]:0,w=b[_],x={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:y,bottom:w};return i.left||i.right||(x.bogus=!0),e.options.singleCursorHeightPerLine||(x.rtop=m,x.rbottom=g),x}function lr(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Nt(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function ur(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function dr(e){e.display.externalMeasure=null,E(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)ur(e.display.view[t])}function fr(e){dr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function pr(){return u&&g?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function hr(){return u&&g?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function mr(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=Hn(e.widgets[n]));return t}function gr(e,t,n,r,i){if(!i){var o=mr(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=rt(t);if("local"==r?a+=Wn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:hr());var c=s.left+("window"==r?0:pr());n.left+=c,n.right+=c}return n.top+=a,n.bottom+=a,n}function vr(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=pr(),i-=hr();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function br(e,t,n,r,i){return r||(r=le(e.doc,t.line)),gr(e,r,er(e,r,t.ch,i),n)}function _r(e,t,n,r,i,o){function a(t,a){var s=rr(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,gr(e,r,s,n)}r=r||le(e.doc,t.line),i||(i=nr(e,r));var s=ut(r,e.doc.direction),c=t.ch,l=t.sticky;if(c>=r.text.length?(c=r.text.length,l="before"):c<=0&&(c=0,l="after"),!s)return a("before"==l?c-1:c,"before"==l);function u(e,t,n){var r=s[t],i=1==r.level;return a(n?e-1:e,i!=n)}var d=ct(s,c,l),f=st,p=u(c,d,"before"==l);return null!=f&&(p.other=u(c,f,"before"!=l)),p}function yr(e,t){var n=0;t=Ce(e.doc,t),e.options.lineWrapping||(n=Rr(e.display)*t.ch);var r=le(e.doc,t.line),i=rt(r)+Wn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function wr(e,t,n,r,i){var o=ve(e,t,n);return o.xRel=i,r&&(o.outside=!0),o}function xr(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return wr(r.first,0,null,!0,-1);var i=he(r,n),o=r.first+r.size-1;if(i>o)return wr(r.first+r.size-1,le(r,o).text.length,null,!0,1);t<0&&(t=0);for(var a=le(r,i);;){var s=Sr(e,a,i,t,n),c=Ke(a,s.ch+(s.xRel>0?1:0));if(!c)return s;var l=c.find(1);if(l.line==i)return l;a=le(r,i=l.line)}}function kr(e,t,n,r){r-=mr(t);var i=t.text.length,o=se((function(t){return rr(e,n,t-1).bottom<=r}),i,0);return i=se((function(t){return rr(e,n,t).top>r}),o,i),{begin:o,end:i}}function Cr(e,t,n,r){n||(n=nr(e,t));var i=gr(e,t,rr(e,n,r),"line").top;return kr(e,t,n,i)}function Ar(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Sr(e,t,n,r,i){i-=rt(t);var o=nr(e,t),a=mr(t),s=0,c=t.text.length,l=!0,u=ut(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?Tr:Er)(e,t,n,o,u,r,i);l=1!=d.level,s=l?d.from:d.to-1,c=l?d.to:d.from-1}var f,p,h=null,m=null,g=se((function(t){var n=rr(e,o,t);return n.top+=a,n.bottom+=a,!!Ar(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,c),v=!1;if(m){var b=r-m.left<m.right-r,_=b==l;g=h+(_?0:1),p=_?"after":"before",f=b?m.left:m.right}else{l||g!=c&&g!=s||g++,p=0==g?"after":g==t.text.length?"before":rr(e,o,g-(l?1:0)).bottom+a<=i==l?"after":"before";var y=_r(e,ve(n,g,p),"line",t,o);f=y.left,v=i<y.top||i>=y.bottom}return g=ae(t.text,g,1),wr(n,g,p,v,r-f)}function Er(e,t,n,r,i,o,a){var s=se((function(s){var c=i[s],l=1!=c.level;return Ar(_r(e,ve(n,l?c.to:c.from,l?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),c=i[s];if(s>0){var l=1!=c.level,u=_r(e,ve(n,l?c.from:c.to,l?"after":"before"),"line",t,r);Ar(u,o,a,!0)&&u.top>a&&(c=i[s-1])}return c}function Tr(e,t,n,r,i,o,a){var s=kr(e,t,r,a),c=s.begin,l=s.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var u=null,d=null,f=0;f<i.length;f++){var p=i[f];if(!(p.from>=l||p.to<=c)){var h=1!=p.level,m=rr(e,r,h?Math.min(l,p.to)-1:Math.max(c,p.from)).right,g=m<o?o-m+1e9:m-o;(!u||d>g)&&(u=p,d=g)}}return u||(u=i[i.length-1]),u.from<c&&(u={from:c,to:u.to,level:u.level}),u.to>l&&(u={from:u.from,to:l,level:u.level}),u}function Or(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ir){ir=O("pre");for(var t=0;t<49;++t)ir.appendChild(document.createTextNode("x")),ir.appendChild(O("br"));ir.appendChild(document.createTextNode("x"))}T(e.measure,ir);var n=ir.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),E(e.measure),n||1}function Rr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),n=O("pre",[t]);T(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Dr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[a]]=o.clientWidth;return{fixedPos:Lr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Lr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Mr(e){var t=Or(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Rr(e.display)-3);return function(i){if(tt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Fr(e){var t=e.doc,n=Mr(e);t.iter((function(e){var t=n(e);t!=e.height&&fe(e,t)}))}function Nr(e,t,n,r){var i=e.display;if(!n&&"true"==Ct(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(t){return null}var c,l=xr(e,o,a);if(r&&1==l.xRel&&(c=le(e.doc,l.line).text).length==l.ch){var u=P(c,c.length,e.options.tabSize)-c.length;l=ve(l.line,Math.max(0,Math.round((o-Gn(e.display).left)/Rr(e.display))-u))}return l}function Br(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if(t-=n[r].size,t<0)return r}function Ir(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Pr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var c=s.empty();(c||e.options.showCursorWhenSelecting)&&$r(e,s.head,i),c||zr(e,s,o)}}return r}function $r(e,t,n){var r=_r(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(O("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(O("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function jr(e,t){return e.top-t.top||e.left-t.left}function zr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Gn(e.display),s=a.left,c=Math.max(r.sizerWidth,Yn(e)-r.sizer.offsetLeft)-a.right,l="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?c-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=le(i,t),f=d.text.length;function p(n,r){return br(e,ve(t,n),"div",d,r)}function h(t,n,r){var i=Cr(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right",a="after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1);return p(a,o)[o]}var m=ut(d,i.direction);return at(m,n||0,null==r?f:r,(function(e,t,i,d){var g="ltr"==i,v=p(e,g?"left":"right"),b=p(t-1,g?"right":"left"),_=null==n&&0==e,y=null==r&&t==f,w=0==d,x=!m||d==m.length-1;if(b.top-v.top<=3){var k=(l?_:y)&&w,C=(l?y:_)&&x,A=k?s:(g?v:b).left,S=C?c:(g?b:v).right;u(A,v.top,S-A,v.bottom)}else{var E,T,O,R;g?(E=l&&_&&w?s:v.left,T=l?c:h(e,i,"before"),O=l?s:h(t,i,"after"),R=l&&y&&x?c:b.right):(E=l?h(e,i,"before"):s,T=!l&&_&&w?c:v.right,O=!l&&y&&x?s:b.left,R=l?h(t,i,"after"):c),u(E,v.top,T-E,v.bottom),v.bottom<b.top&&u(s,v.bottom,null,b.top),u(O,b.top,R-O,b.bottom)}(!o||jr(v,o)<0)&&(o=v),jr(b,o)<0&&(o=b),(!a||jr(v,a)<0)&&(a=v),jr(b,a)<0&&(a=b)})),{start:o,end:a}}var f=t.from(),p=t.to();if(f.line==p.line)d(f.line,f.ch,p.ch);else{var h=le(i,f.line),m=le(i,p.line),g=Xe(h)==Xe(m),v=d(f.line,f.ch,g?h.text.length+1:null).end,b=d(p.line,g?0:null,p.ch).start;g&&(v.top<b.top-2?(u(v.right,v.top,null,v.bottom),u(s,b.top,b.left,b.bottom)):u(v.right,v.top,b.left-v.right,v.bottom)),v.bottom<b.top&&u(s,v.bottom,null,b.top)}n.appendChild(o)}function qr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Hr(e){e.state.focused||(e.display.input.focus(),Wr(e))}function Ur(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Vr(e))}),100)}function Wr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(mt(e,"focus",e,t),e.state.focused=!0,M(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),c&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),qr(e))}function Vr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(mt(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Gr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=e.options.lineWrapping,c=void 0,l=0;if(!i.hidden){if(a&&s<8){var u=i.node.offsetTop+i.node.offsetHeight;c=u-n,n=u}else{var d=i.node.getBoundingClientRect();c=d.bottom-d.top,!o&&i.text.firstChild&&(l=i.text.firstChild.getBoundingClientRect().right-d.left-1)}var f=i.line.height-c;if((f>.005||f<-.005)&&(fe(i.line,c),Kr(i.line),i.rest))for(var p=0;p<i.rest.length;p++)Kr(i.rest[p]);if(l>e.display.sizerWidth){var h=Math.ceil(l/Rr(e.display));h>e.display.maxLineLength&&(e.display.maxLineLength=h,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Kr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Yr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Wn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=he(t,r),a=he(t,i);if(n&&n.ensure){var s=n.ensure.from.line,c=n.ensure.to.line;s<o?(o=s,a=he(t,rt(le(t,s))+e.wrapper.clientHeight)):Math.min(c,t.lastLine())>=a&&(o=he(t,rt(le(t,c))-e.wrapper.clientHeight),a=c)}return{from:o,to:Math.max(a,o+1)}}function Xr(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Lr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var c=0;c<s.length;c++)s[c].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Qr(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=ge(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(O("div",[O("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Gi(e),!0}return!1}function Jr(e,t){if(!gt(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=O("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Wn(e.display))+"px;\n height: "+(t.bottom-t.top+Kn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function Zr(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(t=t.ch?ve(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t,n="before"==t.sticky?ve(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=_r(e,t),c=n&&n!=t?_r(e,n):s;i={left:Math.min(s.left,c.left),top:Math.min(s.top,c.top)-r,right:Math.max(s.left,c.left),bottom:Math.max(s.bottom,c.bottom)+r};var l=ti(e,i),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=l.scrollTop&&(ci(e,l.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=l.scrollLeft&&(ui(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}function ei(e,t){var n=ti(e,t);null!=n.scrollTop&&ci(e,n.scrollTop),null!=n.scrollLeft&&ui(e,n.scrollLeft)}function ti(e,t){var n=e.display,r=Or(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Xn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Vn(n),c=t.top<r,l=t.bottom>s-r;if(t.top<i)a.scrollTop=c?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(l?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,f=Yn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),p=t.right-t.left>f;return p&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.left<d?a.scrollLeft=Math.max(0,t.left-(p?0:10)):t.right>f+d-3&&(a.scrollLeft=t.right+(p?0:10)-f),a}function ni(e,t){null!=t&&(ai(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ri(e){ai(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function ii(e,t,n){null==t&&null==n||ai(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function oi(e,t){ai(e),e.curOp.scrollToPos=t}function ai(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=yr(e,t.from),r=yr(e,t.to);si(e,n,r,t.margin)}}function si(e,t,n,r){var i=ti(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});ii(e,i.scrollLeft,i.scrollTop)}function ci(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Wi(e,{top:t}),li(e,t,!0),n&&Wi(e),Ii(e,100))}function li(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function ui(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Xr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function di(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Vn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Kn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var fi=function(e,t,n){this.cm=n;var r=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),ft(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),ft(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};fi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},fi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},fi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},fi.prototype.zeroWidthHack=function(){var e=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new $,this.disableVert=new $},fi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},fi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var pi=function(){};function hi(e,t){t||(t=di(e));var n=e.display.barWidth,r=e.display.barHeight;mi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Gr(e),mi(e,di(e)),n=e.display.barWidth,r=e.display.barHeight}function mi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}pi.prototype.update=function(){return{bottom:0,right:0}},pi.prototype.setScrollLeft=function(){},pi.prototype.setScrollTop=function(){},pi.prototype.clear=function(){};var gi={native:fi,null:pi};function vi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new gi[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ft(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?ui(e,t):ci(e,t)}),e),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)}var bi=0;function _i(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++bi},An(e.curOp)}function yi(e){var t=e.curOp;t&&En(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;wi(e)}))}function wi(e){for(var t=e.ops,n=0;n<t.length;n++)xi(t[n]);for(var r=0;r<t.length;r++)ki(t[r]);for(var i=0;i<t.length;i++)Ci(t[i]);for(var o=0;o<t.length;o++)Ai(t[o]);for(var a=0;a<t.length;a++)Si(t[a])}function xi(e){var t=e.cm,n=t.display;ji(t),e.updateMaxLine&&ot(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new $i(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ki(e){e.updatedDisplay=e.mustUpdate&&Hi(e.cm,e.update)}function Ci(e){var t=e.cm,n=t.display;e.updatedDisplay&&Gr(t),e.barMeasure=di(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=er(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Kn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Yn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Ai(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&ui(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==L();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&hi(t,e.barMeasure),e.updatedDisplay&&Ki(t,e.barMeasure),e.selectionChanged&&qr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Hr(e.cm)}function Si(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&Ui(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&li(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&ui(t,e.scrollLeft,!0,!0),e.scrollToPos){var i=Zr(t,Ce(r,e.scrollToPos.from),Ce(r,e.scrollToPos.to),e.scrollToPos.margin);Jr(t,i)}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var s=0;s<o.length;++s)o[s].lines.length||mt(o[s],"hide");if(a)for(var c=0;c<a.length;++c)a[c].lines.length&&mt(a[c],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&mt(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ei(e,t){if(e.curOp)return t();_i(e);try{return t()}finally{yi(e)}}function Ti(e,t){return function(){if(e.curOp)return t.apply(e,arguments);_i(e);try{return t.apply(e,arguments)}finally{yi(e)}}}function Oi(e){return function(){if(this.curOp)return e.apply(this,arguments);_i(this);try{return e.apply(this,arguments)}finally{yi(this)}}}function Ri(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);_i(t);try{return e.apply(this,arguments)}finally{yi(t)}}}function Di(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Te&&Ze(e.doc,t)<i.viewTo&&Mi(e);else if(n<=i.viewFrom)Te&&et(e.doc,n+r)>i.viewFrom?Mi(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Mi(e);else if(t<=i.viewFrom){var o=Fi(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Mi(e)}else if(n>=i.viewTo){var a=Fi(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Mi(e)}else{var s=Fi(e,t,t,-1),c=Fi(e,n,n+r,1);s&&c?(i.view=i.view.slice(0,s.index).concat(kn(e,s.lineN,c.lineN)).concat(i.view.slice(c.index)),i.viewTo+=r):Mi(e)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=r:t<l.lineN+l.size&&(i.externalMeasured=null))}function Li(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Br(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==j(a,n)&&a.push(n)}}}function Mi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Fi(e,t,n,r){var i,o=Br(e,t),a=e.display.view;if(!Te||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,c=0;c<o;c++)s+=a[c].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}while(Ze(e.doc,n)!=n){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Ni(e,t,n){var r=e.display,i=r.view;0==i.length||t>=r.viewTo||n<=r.viewFrom?(r.view=kn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=kn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Br(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(kn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Br(e,n)))),r.viewTo=n}function Bi(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Ii(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,B(Pi,e))}function Pi(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Jt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ut(t.mode,r.state):null,c=Xt(e,o,r,!0);s&&(r.state=s),o.styles=c.styles;var l=o.styleClasses,u=c.classes;u?o.styleClasses=u:l&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||l!=u&&(!l||!u||l.bgClass!=u.bgClass||l.textClass!=u.textClass),f=0;!d&&f<a.length;++f)d=a[f]!=o.styles[f];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&Zt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Ii(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Ei(e,(function(){for(var t=0;t<i.length;t++)Li(e,i[t],"text")}))}}var $i=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Yr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Yn(e),this.force=n,this.dims=Dr(e),this.events=[]};function ji(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Kn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Kn(e)+"px",t.scrollbarsClipped=!0)}function zi(e){if(e.hasFocus())return null;var t=L();if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&D(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function qi(e){if(e&&e.activeElt&&e.activeElt!=L()&&(e.activeElt.focus(),e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function Hi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Mi(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Bi(e))return!1;Qr(e)&&(Mi(e),t.dims=Dr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Te&&(o=Ze(e.doc,o),a=et(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Ni(e,o,a),n.viewOffset=rt(le(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var c=Bi(e);if(!s&&0==c&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var l=zi(e);return c>4&&(n.lineDiv.style.display="none"),Vi(e,n.updateLineNumbers,t.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,qi(l),E(n.cursorDiv),E(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Ii(e,400)),n.updateLineNumbers=null,!0}function Ui(e,t){for(var n=t.viewport,r=!0;;r=!1){if((!r||!e.options.lineWrapping||t.oldDisplayWidth==Yn(e))&&(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Vn(e.display)-Xn(e),n.top)}),t.visible=Yr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo))break;if(!Hi(e,t))break;Gr(e);var i=di(e);Ir(e),hi(e,i),Ki(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Wi(e,t){var n=new $i(e,t);if(Hi(e,n)){Gr(e),Ui(e,n);var r=di(e);Ir(e),hi(e,r),Ki(e,r),n.finish()}}function Vi(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return c&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var l=r.view,u=r.viewFrom,d=0;d<l.length;d++){var f=l[d];if(f.hidden);else if(f.node&&f.node.parentNode==o){while(a!=f.node)a=s(a);var p=i&&null!=t&&t<=u&&f.lineNumber;f.changes&&(j(f.changes,"gutter")>-1&&(p=!1),Dn(e,f,u,n)),p&&(E(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(ge(e.options,u)))),a=f.node.nextSibling}else{var h=$n(e,f,u,n);o.insertBefore(h,a)}u+=f.size}while(a)a=s(a)}function Gi(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Ki(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Kn(e)+"px"}function Yi(e){var t=e.display.gutters,n=e.options.gutters;E(t);for(var r=0;r<n.length;++r){var i=n[r],o=t.appendChild(O("div",null,"CodeMirror-gutter "+i));"CodeMirror-linenumbers"==i&&(e.display.lineGutter=o,o.style.width=(e.display.lineNumWidth||1)+"px")}t.style.display=r?"":"none",Gi(e)}function Xi(e){var t=j(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}$i.prototype.signal=function(e,t){bt(e,t)&&this.events.push(arguments)},$i.prototype.finish=function(){for(var e=this,t=0;t<this.events.length;t++)mt.apply(null,e.events[t])};var Qi=0,Ji=null;function Zi(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function eo(e){var t=Zi(e);return t.x*=Ji,t.y*=Ji,t}function to(e,t){var r=Zi(t),i=r.x,o=r.y,a=e.display,s=a.scroller,l=s.scrollWidth>s.clientWidth,u=s.scrollHeight>s.clientHeight;if(i&&l||o&&u){if(o&&b&&c)e:for(var f=t.target,p=a.view;f!=s;f=f.parentNode)for(var h=0;h<p.length;h++)if(p[h].node==f){e.display.currentWheelTarget=f;break e}if(i&&!n&&!d&&null!=Ji)return o&&u&&ci(e,Math.max(0,s.scrollTop+o*Ji)),ui(e,Math.max(0,s.scrollLeft+i*Ji)),(!o||o&&u)&&yt(t),void(a.wheelStartX=null);if(o&&null!=Ji){var m=o*Ji,g=e.doc.scrollTop,v=g+a.wrapper.clientHeight;m<0?g=Math.max(0,g+m-50):v=Math.min(e.doc.height,v+m+50),Wi(e,{top:g,bottom:v})}Qi<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var e=s.scrollLeft-a.wheelStartX,t=s.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(Ji=(Ji*Qi+n)/(Qi+1),++Qi)}}),200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?Ji=-.53:n?Ji=15:u?Ji=-.7:f&&(Ji=-1/3);var no=function(e,t){this.ranges=e,this.primIndex=t};no.prototype.primary=function(){return this.ranges[this.primIndex]},no.prototype.equals=function(e){var t=this;if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var r=t.ranges[n],i=e.ranges[n];if(!_e(r.anchor,i.anchor)||!_e(r.head,i.head))return!1}return!0},no.prototype.deepCopy=function(){for(var e=this,t=[],n=0;n<this.ranges.length;n++)t[n]=new ro(ye(e.ranges[n].anchor),ye(e.ranges[n].head));return new no(t,this.primIndex)},no.prototype.somethingSelected=function(){for(var e=this,t=0;t<this.ranges.length;t++)if(!e.ranges[t].empty())return!0;return!1},no.prototype.contains=function(e,t){var n=this;t||(t=e);for(var r=0;r<this.ranges.length;r++){var i=n.ranges[r];if(be(t,i.from())>=0&&be(e,i.to())<=0)return r}return-1};var ro=function(e,t){this.anchor=e,this.head=t};function io(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return be(e.from(),t.from())})),n=j(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],c=be(s.to(),a.from());if(r&&!a.empty()?c>0:c>=0){var l=xe(s.from(),a.from()),u=we(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new ro(d?u:l,d?l:u))}}return new no(t,n)}function oo(e,t){return new no([new ro(e,t||e)],0)}function ao(e){return e.text?ve(e.from.line+e.text.length-1,Y(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function so(e,t){if(be(e,t.from)<0)return e;if(be(e,t.to)<=0)return ao(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=ao(t).ch-t.to.ch),ve(n,r)}function co(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new ro(so(i.anchor,t),so(i.head,t)))}return io(e.cm,n,e.sel.primIndex)}function lo(e,t,n){return e.line==t.line?ve(n.line,e.ch-t.ch+n.ch):ve(n.line+(e.line-t.line),e.ch)}function uo(e,t,n){for(var r=[],i=ve(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],c=lo(s.from,i,o),l=lo(ao(s),i,o);if(i=s.to,o=l,"around"==n){var u=e.sel.ranges[a],d=be(u.head,u.anchor)<0;r[a]=new ro(d?l:c,d?c:l)}else r[a]=new ro(c,c)}return new no(r,e.sel.primIndex)}function fo(e){e.doc.mode=zt(e.options,e.doc.modeOption),po(e)}function po(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Ii(e,100),e.state.modeGen++,e.curOp&&Di(e)}function ho(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Y(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function mo(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){un(e,n,i,r),On(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new ln(l[o],i(o),r));return n}var s=t.from,c=t.to,l=t.text,u=le(e,s.line),d=le(e,c.line),f=Y(l),p=i(l.length-1),h=c.line-s.line;if(t.full)e.insert(0,a(0,l.length)),e.remove(l.length,e.size-l.length);else if(ho(e,t)){var m=a(0,l.length-1);o(d,d.text,p),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(u==d)if(1==l.length)o(u,u.text.slice(0,s.ch)+f+u.text.slice(c.ch),p);else{var g=a(1,l.length-1);g.push(new ln(f+u.text.slice(c.ch),p,r)),o(u,u.text.slice(0,s.ch)+l[0],i(0)),e.insert(s.line+1,g)}else if(1==l.length)o(u,u.text.slice(0,s.ch)+l[0]+d.text.slice(c.ch),i(0)),e.remove(s.line+1,h);else{o(u,u.text.slice(0,s.ch)+l[0],i(0)),o(d,f+d.text.slice(c.ch),p);var v=a(1,l.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}On(e,"change",e,t)}function go(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=i){var c=o&&s.sharedHist;n&&!c||(t(s.doc,c),r(s.doc,e,c))}}}r(e,null,!0)}function vo(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Fr(e),fo(e),bo(e),e.options.lineWrapping||ot(e),e.options.mode=t.modeOption,Di(e)}function bo(e){("rtl"==e.doc.direction?M:S)(e.display.lineDiv,"CodeMirror-rtl")}function _o(e){Ei(e,(function(){bo(e),Di(e)}))}function yo(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function wo(e,t){var n={from:ye(t.from),to:ao(t),text:ue(e,t.from,t.to)};return To(e,n,t.from.line,t.to.line+1),go(e,(function(e){return To(e,n,t.from.line,t.to.line+1)}),!0),n}function xo(e){while(e.length){var t=Y(e);if(!t.ranges)break;e.pop()}}function ko(e,t){return t?(xo(e.done),Y(e.done)):e.done.length&&!Y(e.done).ranges?Y(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Y(e.done)):void 0}function Co(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=ko(i,i.lastOp==r)))a=Y(o.changes),0==be(t.from,t.to)&&0==be(t.from,a.to)?a.to=ao(t):o.changes.push(wo(e,t));else{var c=Y(i.done);c&&c.ranges||Eo(e.sel,i.done),o={changes:[wo(e,t)],generation:i.generation},i.done.push(o);while(i.done.length>i.undoDepth)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||mt(e,"historyAdded")}function Ao(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function So(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Ao(e,o,Y(i.done),t))?i.done[i.done.length-1]=t:Eo(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&xo(i.undone)}function Eo(e,t){var n=Y(t);n&&n.ranges&&n.equals(e)||t.push(e)}function To(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Oo(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Ro(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Oo(n[i]));return r}function Do(e,t){var n=Ro(e,t),r=Ie(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var c=a[s],l=0;l<o.length;++l)if(o[l].marker==c.marker)continue e;o.push(c)}else a&&(n[i]=a)}return n}function Lo(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?no.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var c=0;c<a.length;++c){var l=a[c],u=void 0;if(s.push({from:l.from,to:l.to,text:l.text}),t)for(var d in l)(u=d.match(/^spans_(\d+)$/))&&j(t,Number(u[1]))>-1&&(Y(s)[d]=l[d],delete l[d])}}}return r}function Mo(e,t,n,r){if(r){var i=e.anchor;if(n){var o=be(t,i)<0;o!=be(n,i)<0?(i=t,t=n):o!=be(t,n)<0&&(t=n)}return new ro(i,t)}return new ro(n||t,t)}function Fo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),jo(e,new no([Mo(e.sel.primary(),t,n,i)],0),r)}function No(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Mo(e.sel.ranges[o],t[o],null,i);var a=io(e.cm,r,e.sel.primIndex);jo(e,a,n)}function Bo(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,jo(e,io(e.cm,i,e.sel.primIndex),r)}function Io(e,t,n,r){jo(e,oo(t,n),r)}function Po(e,t,n){var r={ranges:t.ranges,update:function(t){var n=this;this.ranges=[];for(var r=0;r<t.length;r++)n.ranges[r]=new ro(Ce(e,t[r].anchor),Ce(e,t[r].head))},origin:n&&n.origin};return mt(e,"beforeSelectionChange",e,r),e.cm&&mt(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?io(e.cm,r.ranges,r.ranges.length-1):t}function $o(e,t,n){var r=e.history.done,i=Y(r);i&&i.ranges?(r[r.length-1]=t,zo(e,t,n)):jo(e,t,n)}function jo(e,t,n){zo(e,t,n),So(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function zo(e,t,n){(bt(e,"beforeSelectionChange")||e.cm&&bt(e.cm,"beforeSelectionChange"))&&(t=Po(e,t,n));var r=n&&n.bias||(be(t.primary().head,e.sel.primary().head)<0?-1:1);qo(e,Uo(e,t,r,!0)),n&&!1===n.scroll||!e.cm||ri(e.cm)}function qo(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,vt(e.cm)),On(e,"cursorActivity",e))}function Ho(e){qo(e,Uo(e,e.sel,null,!1))}function Uo(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],c=Vo(e,a.anchor,s&&s.anchor,n,r),l=Vo(e,a.head,s&&s.head,n,r);(i||c!=a.anchor||l!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new ro(c,l))}return i?io(e.cm,i,t.primIndex):t}function Wo(e,t,n,r,i){var o=le(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],c=s.marker;if((null==s.from||(c.inclusiveLeft?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c.inclusiveRight?s.to>=t.ch:s.to>t.ch))){if(i&&(mt(c,"beforeCursorEnter"),c.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!c.atomic)continue;if(n){var l=c.find(r<0?1:-1),u=void 0;if((r<0?c.inclusiveRight:c.inclusiveLeft)&&(l=Go(e,l,-r,l&&l.line==t.line?o:null)),l&&l.line==t.line&&(u=be(l,n))&&(r<0?u<0:u>0))return Wo(e,l,t,r,i)}var d=c.find(r<0?-1:1);return(r<0?c.inclusiveLeft:c.inclusiveRight)&&(d=Go(e,d,r,d.line==t.line?o:null)),d?Wo(e,d,t,r,i):null}}return t}function Vo(e,t,n,r,i){var o=r||1,a=Wo(e,t,n,o,i)||!i&&Wo(e,t,n,o,!0)||Wo(e,t,n,-o,i)||!i&&Wo(e,t,n,-o,!0);return a||(e.cantEdit=!0,ve(e.first,0))}function Go(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?Ce(e,ve(t.line-1)):null:n>0&&t.ch==(r||le(e,t.line)).text.length?t.line<e.first+e.size-1?ve(t.line+1,0):null:new ve(t.line,t.ch+n)}function Ko(e){e.setSelection(ve(e.firstLine(),0),ve(e.lastLine()),H)}function Yo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=Ce(e,t)),n&&(r.to=Ce(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),mt(e,"beforeChange",e,r),e.cm&&mt(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Xo(e,t,n){if(e.cm){if(!e.cm.curOp)return Ti(e.cm,Xo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(bt(e,"beforeChange")||e.cm&&bt(e.cm,"beforeChange"))||(t=Yo(e,t,!0),t)){var r=Ee&&!n&&$e(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Qo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Qo(e,t)}}function Qo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=be(t.from,t.to)){var n=co(e,t);Co(e,t,n,e.cm?e.cm.curOp.id:NaN),ea(e,t,n,Ie(e,t));var r=[];go(e,(function(e,n){n||-1!=j(r,e.history)||(oa(e.history,t),r.push(e.history)),ea(e,t,null,Ie(e,t))}))}}function Jo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,c="undo"==t?o.undone:o.done,l=0;l<s.length;l++)if(i=s[l],n?i.ranges&&!i.equals(e.sel):!i.ranges)break;if(l!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(i=s.pop(),!i.ranges){if(r)return void s.push(i);break}if(Eo(i,c),n&&!i.equals(e.sel))return void jo(e,i,{clearRedo:!1});a=i}var u=[];Eo(a,c),c.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=bt(e,"beforeChange")||e.cm&&bt(e.cm,"beforeChange"),f=function(n){var r=i.changes[n];if(r.origin=t,d&&!Yo(e,r,!1))return s.length=0,{};u.push(wo(e,r));var o=n?co(e,r):Y(s);ea(e,r,o,Do(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:ao(r)});var a=[];go(e,(function(e,t){t||-1!=j(a,e.history)||(oa(e.history,r),a.push(e.history)),ea(e,r,null,Do(e,r))}))},p=i.changes.length-1;p>=0;--p){var h=f(p);if(h)return h.v}}}}function Zo(e,t){if(0!=t&&(e.first+=t,e.sel=new no(X(e.sel.ranges,(function(e){return new ro(ve(e.anchor.line+t,e.anchor.ch),ve(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Di(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Li(e.cm,r,"gutter")}}function ea(e,t,n,r){if(e.cm&&!e.cm.curOp)return Ti(e.cm,ea)(e,t,n,r);if(t.to.line<e.first)Zo(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);Zo(e,i),t={from:ve(e.first,0),to:ve(t.to.line+i,t.to.ch),text:[Y(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ve(o,le(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ue(e,t.from,t.to),n||(n=co(e,t)),e.cm?ta(e.cm,t,r):mo(e,t,r),zo(e,n,H)}}function ta(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,c=o.line;e.options.lineWrapping||(c=pe(Xe(le(r,o.line))),r.iter(c,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&vt(e),mo(r,t,n,Mr(e)),e.options.lineWrapping||(r.iter(c,o.line+t.text.length,(function(e){var t=it(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),cn(r,o.line),Ii(e,400);var l=t.text.length-(a.line-o.line)-1;t.full?Di(e):o.line!=a.line||1!=t.text.length||ho(e.doc,t)?Di(e,o.line,a.line+1,l):Li(e,o.line,"text");var u=bt(e,"changes"),d=bt(e,"change");if(d||u){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&On(e,"change",e,f),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function na(e,t,n,r,i){var o;r||(r=n),be(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Xo(e,{from:n,to:r,text:t,origin:i})}function ra(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function ia(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var s=0;s<o.ranges.length;s++)ra(o.ranges[s].anchor,t,n,r),ra(o.ranges[s].head,t,n,r)}else{for(var c=0;c<o.changes.length;++c){var l=o.changes[c];if(n<l.from.line)l.from=ve(l.from.line+r,l.from.ch),l.to=ve(l.to.line+r,l.to.ch);else if(t<=l.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function oa(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;ia(e.done,n,r,i),ia(e.undone,n,r,i)}function aa(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=le(e,ke(e,t)):i=pe(t),null==i?null:(r(o,i)&&e.cm&&Li(e.cm,i,n),o)}function sa(e){var t=this;this.lines=e,this.parent=null;for(var n=0,r=0;r<e.length;++r)e[r].parent=t,n+=e[r].height;this.height=n}function ca(e){var t=this;this.children=e;for(var n=0,r=0,i=0;i<e.length;++i){var o=e[i];n+=o.chunkSize(),r+=o.height,o.parent=t}this.size=n,this.height=r,this.parent=null}ro.prototype.from=function(){return xe(this.anchor,this.head)},ro.prototype.to=function(){return we(this.anchor,this.head)},ro.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},sa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=this,r=e,i=e+t;r<i;++r){var o=n.lines[r];n.height-=o.height,dn(o),On(o,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){var r=this;this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;i<t.length;++i)t[i].parent=r},iterN:function(e,t,n){for(var r=this,i=e+t;e<i;++e)if(n(r.lines[e]))return!0}},ca.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){var n=this;this.size-=t;for(var r=0;r<this.children.length;++r){var i=n.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e),s=i.height;if(i.removeInner(e,a),n.height-=s-i.height,o==a&&(n.children.splice(r--,1),i.parent=null),0==(t-=a))break;e=0}else e-=o}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof sa))){var c=[];this.collapse(c),this.children=[new sa(c)],this.children[0].parent=this}},collapse:function(e){for(var t=this,n=0;n<this.children.length;++n)t.children[n].collapse(e)},insertInner:function(e,t,n){var r=this;this.size+=t.length,this.height+=n;for(var i=0;i<this.children.length;++i){var o=r.children[i],a=o.chunkSize();if(e<=a){if(o.insertInner(e,t,n),o.lines&&o.lines.length>50){for(var s=o.lines.length%25+25,c=s;c<o.lines.length;){var l=new sa(o.lines.slice(c,c+=25));o.height-=l.height,r.children.splice(++i,0,l),l.parent=r}o.lines=o.lines.slice(0,s),r.maybeSpill()}break}e-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new ca(t);if(e.parent){e.size-=n.size,e.height-=n.height;var r=j(e.parent.children,e);e.parent.children.splice(r+1,0,n)}else{var i=new ca(e.children);i.parent=e,e.children=[i,n],e=i}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=this,i=0;i<this.children.length;++i){var o=r.children[i],a=o.chunkSize();if(e<a){var s=Math.min(t,a-e);if(o.iterN(e,s,n))return!0;if(0==(t-=s))break;e=0}else e-=a}}};var la=function(e,t,n){var r=this;if(n)for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);this.doc=e,this.node=t};function ua(e,t,n){rt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ni(e,n)}function da(e,t,n,r){var i=new la(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),aa(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!tt(e,t)){var r=rt(t)<e.scrollTop;fe(t,t.height+Hn(i)),r&&ni(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&On(o,"lineWidgetAdded",o,i,"number"==typeof t?t:pe(t)),i}la.prototype.clear=function(){var e=this,t=this.doc.cm,n=this.line.widgets,r=this.line,i=pe(r);if(null!=i&&n){for(var o=0;o<n.length;++o)n[o]==e&&n.splice(o--,1);n.length||(r.widgets=null);var a=Hn(this);fe(r,Math.max(0,r.height-a)),t&&(Ei(t,(function(){ua(t,r,-a),Li(t,i,"widget")})),On(t,"lineWidgetCleared",t,this,i))}},la.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Hn(this)-t;i&&(tt(this.doc,r)||fe(r,r.height+i),n&&Ei(n,(function(){n.curOp.forceUpdate=!0,ua(n,r,i),On(n,"lineWidgetChanged",n,e,pe(r))})))},_t(la);var fa=0,pa=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++fa};function ha(e,t,n,r,i){if(r&&r.shared)return ga(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return Ti(e.cm,ha)(e,t,n,r,i);var o=new pa(e,i),a=be(t,n);if(r&&I(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=R("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ye(e,t.line,t,n,o)||t.line!=n.line&&Ye(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Re()}o.addToHistory&&Co(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,c=t.line,l=e.cm;if(e.iter(c,n.line+1,(function(e){l&&o.collapsed&&!l.options.lineWrapping&&Xe(e)==l.display.maxLine&&(s=!0),o.collapsed&&c!=t.line&&fe(e,0),Fe(e,new De(o,c==t.line?t.ch:null,c==n.line?n.ch:null)),++c})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){tt(e,t)&&fe(t,0)})),o.clearOnEnter&&ft(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Oe(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++fa,o.atomic=!0),l){if(s&&(l.curOp.updateMaxLine=!0),o.collapsed)Di(l,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)Li(l,u,"text");o.atomic&&Ho(l.doc),On(l,"markerAdded",l,o)}return o}pa.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){var t=this.doc.cm,n=t&&!t.curOp;if(n&&_i(t),bt(this,"clear")){var r=this.find();r&&On(this,"clear",r.from,r.to)}for(var i=null,o=null,a=0;a<this.lines.length;++a){var s=e.lines[a],c=Le(s.markedSpans,e);t&&!e.collapsed?Li(t,pe(s),"text"):t&&(null!=c.to&&(o=pe(s)),null!=c.from&&(i=pe(s))),s.markedSpans=Me(s.markedSpans,c),null==c.from&&e.collapsed&&!tt(e.doc,s)&&t&&fe(s,Or(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=Xe(e.lines[l]),d=it(u);d>t.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=d,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&Di(t,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Ho(t.doc)),t&&On(t,"markerCleared",t,this,i,o),n&&yi(t),this.parent&&this.parent.clear()}},pa.prototype.find=function(e,t){var n,r,i=this;null==e&&"bookmark"==this.type&&(e=1);for(var o=0;o<this.lines.length;++o){var a=i.lines[o],s=Le(a.markedSpans,i);if(null!=s.from&&(n=ve(t?a:pe(a),s.from),-1==e))return n;if(null!=s.to&&(r=ve(t?a:pe(a),s.to),1==e))return r}return n&&{from:n,to:r}},pa.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Ei(r,(function(){var i=t.line,o=pe(t.line),a=tr(r,o);if(a&&(ur(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!tt(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var c=Hn(n)-s;c&&fe(i,i.height+c)}On(r,"markerChanged",r,e)}))},pa.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=j(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},pa.prototype.detachLine=function(e){if(this.lines.splice(j(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},_t(pa);var ma=function(e,t){var n=this;this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=n};function ga(e,t,n,r,i){r=I(r),r.shared=!1;var o=[ha(e,t,n,r,i)],a=o[0],s=r.widgetNode;return go(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(ha(e,Ce(e,t),Ce(e,n),r,i));for(var c=0;c<e.linked.length;++c)if(e.linked[c].isParent)return;a=Y(o)})),new ma(o,a)}function va(e){return e.findMarks(ve(e.first,0),e.clipPos(ve(e.lastLine())),(function(e){return e.parent}))}function ba(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(be(o,a)){var s=ha(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function _a(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];go(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==j(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}ma.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)e.markers[t].clear();On(this,"clear")}},ma.prototype.find=function(e,t){return this.primary.find(e,t)},_t(ma);var ya=0,wa=function(e,t,n,r,i){if(!(this instanceof wa))return new wa(e,t,n,r,i);null==n&&(n=0),ca.call(this,[new sa([new ln("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=ve(n,0);this.sel=oo(o),this.history=new yo(null),this.id=++ya,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),mo(this,{from:o,to:o,text:e}),jo(this,oo(o),H)};wa.prototype=Z(ca.prototype,{constructor:wa,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=de(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Ri((function(e){var t=ve(this.first,0),n=this.first+this.size-1;Xo(this,{from:t,to:ve(n,le(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&ii(this.cm,0,0),jo(this,oo(t),H)})),replaceRange:function(e,t,n,r){t=Ce(this,t),n=n?Ce(this,n):t,na(this,e,t,n,r)},getRange:function(e,t,n){var r=ue(this,Ce(this,e),Ce(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(me(this,e))return le(this,e)},getLineNumber:function(e){return pe(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=le(this,e)),Xe(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Ce(this,e)},getCursor:function(e){var t,n=this.sel.primary();return t=null==e||"head"==e?n.head:"anchor"==e?n.anchor:"end"==e||"to"==e||!1===e?n.to():n.from(),t},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ri((function(e,t,n){Io(this,Ce(this,"number"==typeof e?ve(e,t||0):e),null,n)})),setSelection:Ri((function(e,t,n){Io(this,Ce(this,e),Ce(this,t||e),n)})),extendSelection:Ri((function(e,t,n){Fo(this,Ce(this,e),t&&Ce(this,t),n)})),extendSelections:Ri((function(e,t){No(this,Se(this,e),t)})),extendSelectionsBy:Ri((function(e,t){var n=X(this.sel.ranges,e);No(this,Se(this,n),t)})),setSelections:Ri((function(e,t,n){var r=this;if(e.length){for(var i=[],o=0;o<e.length;o++)i[o]=new ro(Ce(r,e[o].anchor),Ce(r,e[o].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),jo(this,io(this.cm,i,t),n)}})),addSelection:Ri((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new ro(Ce(this,e),Ce(this,t||e))),jo(this,io(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this,r=this.sel.ranges,i=0;i<r.length;i++){var o=ue(n,r[i].from(),r[i].to());t=t?t.concat(o):o}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=this,n=[],r=this.sel.ranges,i=0;i<r.length;i++){var o=ue(t,r[i].from(),r[i].to());!1!==e&&(o=o.join(e||t.lineSeparator())),n[i]=o}return n},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Ri((function(e,t,n){for(var r=this,i=[],o=this.sel,a=0;a<o.ranges.length;a++){var s=o.ranges[a];i[a]={from:s.from(),to:s.to(),text:r.splitLines(e[a]),origin:n}}for(var c=t&&"end"!=t&&uo(this,i,t),l=i.length-1;l>=0;l--)Xo(r,i[l]);c?$o(this,c):this.cm&&ri(this.cm)})),undo:Ri((function(){Jo(this,"undo")})),redo:Ri((function(){Jo(this,"redo")})),undoSelection:Ri((function(){Jo(this,"undo",!0)})),redoSelection:Ri((function(){Jo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new yo(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Lo(this.history.done),undone:Lo(this.history.undone)}},setHistory:function(e){var t=this.history=new yo(this.history.maxGeneration);t.done=Lo(e.done.slice(0),null,!0),t.undone=Lo(e.undone.slice(0),null,!0)},setGutterMarker:Ri((function(e,t,n){return aa(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&re(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:Ri((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&aa(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,re(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!me(this,e))return null;if(t=e,e=le(this,e),!e)return null}else if(t=pe(e),null==t)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Ri((function(e,t,n){return aa(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(C(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:Ri((function(e,t,n){return aa(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(C(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:Ri((function(e,t,n){return da(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ha(this,Ce(this,e),Ce(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=Ce(this,e),ha(this,e,e,n,"bookmark")},findMarksAt:function(e){e=Ce(this,e);var t=[],n=le(this,e.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=Ce(this,e),t=Ce(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var c=a[s];null!=c.to&&i==e.line&&e.ch>=c.to||null==c.from&&i!=e.line||null!=c.from&&i==t.line&&c.from>=t.ch||n&&!n(c.marker)||r.push(c.marker.parent||c.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),Ce(this,ve(n,t))},indexFromPos:function(e){e=Ce(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new wa(de(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new wa(de(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],ba(r,va(this)),r},unlinkDoc:function(e){var t=this;if(e instanceof Bs&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n){var r=t.linked[n];if(r.doc==e){t.linked.splice(n,1),e.unlinkDoc(t),_a(va(t));break}}if(e.history==this.history){var i=[e.id];go(e,(function(e){return i.push(e.id)}),!0),e.history=new yo(null),e.history.done=Lo(this.history.done,i),e.history.undone=Lo(this.history.undone,i)}},iterLinkedDocs:function(e){go(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Dt(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Ri((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&_o(this.cm))}))}),wa.prototype.eachLine=wa.prototype.iter;var xa=0;function ka(e){var t=this;if(Sa(t),!gt(t,e)&&!Un(t.display,e)){yt(e),a&&(xa=+new Date);var n=Nr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,c=function(e,r){if(!t.options.allowDropFileTypes||-1!=j(t.options.allowDropFileTypes,e.type)){var a=new FileReader;a.onload=Ti(t,(function(){var e=a.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[r]=e,++s==i){n=Ce(t.doc,n);var c={from:n,to:n,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};Xo(t.doc,c),$o(t.doc,oo(n,ao(c)))}})),a.readAsText(e)}},l=0;l<i;++l)c(r[l],l);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var u=e.dataTransfer.getData("Text");if(u){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),zo(t.doc,oo(n,n)),d)for(var f=0;f<d.length;++f)na(t.doc,"",d[f].anchor,d[f].head,"drag");t.replaceSelection(u,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Ca(e,t){if(a&&(!e.state.draggingText||+new Date-xa<100))kt(t);else if(!gt(e,t)&&!Un(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=O("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}function Aa(e,t){var n=Nr(e,t);if(n){var r=document.createDocumentFragment();$r(e,n,r),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),T(e.display.dragCursor,r)}}function Sa(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ea(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Ta=!1;function Oa(){Ta||(Ra(),Ta=!0)}function Ra(){var e;ft(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Ea(Da)}),100))})),ft(window,"blur",(function(){return Ea(Vr)}))}function Da(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var La={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ma=0;Ma<10;Ma++)La[Ma+48]=La[Ma+96]=String(Ma);for(var Fa=65;Fa<=90;Fa++)La[Fa]=String.fromCharCode(Fa);for(var Na=1;Na<=12;Na++)La[Na+111]=La[Na+63235]="F"+Na;var Ba={};function Ia(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Pa(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=X(n.split(" "),Ia),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var c=t[s];if(c){if(c!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var l in t)e[l]=t[l];return e}function $a(e,t,n,r){t=Ha(t);var i=t.call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return $a(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=$a(e,t.fallthrough[o],n,r);if(a)return a}}}function ja(e){var t="string"==typeof e?e:La[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function za(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(x?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(x?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function qa(e,t){if(d&&34==e.keyCode&&e["char"])return!1;var n=La[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),za(n,e,t))}function Ha(e){return"string"==typeof e?Ba[e]:e}function Ua(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){var o=t(n[i]);while(r.length&&be(o.from,Y(r).to)<=0){var a=r.pop();if(be(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Ei(e,(function(){for(var t=r.length-1;t>=0;t--)na(e.doc,"",r[t].from,r[t].to,"+delete");ri(e)}))}function Wa(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Va(e,t,n){var r=Wa(e,t.ch,n);return null==r?null:new ve(t.line,r,n<0?"after":"before")}function Ga(e,t,n,r,i){if(e){var o=ut(n,t.doc.direction);if(o){var a,s=i<0?Y(o):o[0],c=i<0==(1==s.level),l=c?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=nr(t,n);a=i<0?n.text.length-1:0;var d=rr(t,u,a).top;a=se((function(e){return rr(t,u,e).top==d}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Wa(n,a,1))}else a=i<0?s.to:s.from;return new ve(r,a,l)}}return new ve(r,i<0?n.text.length:0,i<0?"before":"after")}function Ka(e,t,n,r){var i=ut(t,e.doc.direction);if(!i)return Va(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ct(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Va(t,n,r);var s,c=function(e,n){return Wa(t,e instanceof ve?e.ch:e,n)},l=function(n){return e.options.lineWrapping?(s=s||nr(e,t),Cr(e,t,s,n)):{begin:0,end:t.text.length}},u=l("before"==n.sticky?c(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,f=c(n,d?1:-1);if(null!=f&&(d?f<=a.to&&f<=u.end:f>=a.from&&f>=u.begin)){var p=d?"before":"after";return new ve(n.line,f,p)}}var h=function(e,t,r){for(var o=function(e,t){return t?new ve(n.line,c(e,1),"before"):new ve(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),l=s?r.begin:c(r.end,-1);if(a.from<=l&&l<a.to)return o(l,s);if(l=s?a.from:c(a.to,-1),r.begin<=l&&l<r.end)return o(l,s)}},m=h(o+r,r,u);if(m)return m;var g=r>0?u.end:c(u.begin,-1);return null==g||r>0&&g==t.text.length||(m=h(r>0?0:i.length-1,r,l(g)),!m)?null:m}Ba.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ba.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ba.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ba.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ba["default"]=b?Ba.macDefault:Ba.pcDefault;var Ya={selectAll:Ko,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),H)},killLine:function(e){return Ua(e,(function(t){if(t.empty()){var n=le(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:ve(t.head.line+1,0)}:{from:t.head,to:ve(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Ua(e,(function(t){return{from:ve(t.from().line,0),to:Ce(e.doc,ve(t.to().line+1,0))}}))},delLineLeft:function(e){return Ua(e,(function(e){return{from:ve(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Ua(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return{from:r,to:t.from()}}))},delWrappedLineRight:function(e){return Ua(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ve(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ve(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return Xa(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return Ja(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return Qa(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),W)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),W)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?Ja(e,t.head):r}),W)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=P(e.getLine(o.line),o.ch,r);t.push(K(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ei(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=le(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new ve(i.line,i.ch-1)),i.ch>0)i=new ve(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ve(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=le(e.doc,i.line-1).text;a&&(i=new ve(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ve(i.line-1,a.length-1),i,"+transpose"))}n.push(new ro(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Ei(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);ri(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Xa(e,t){var n=le(e.doc,t),r=Xe(n);return r!=n&&(t=pe(r)),Ga(!0,e,r,t,1)}function Qa(e,t){var n=le(e.doc,t),r=Qe(n);return r!=n&&(t=pe(r)),Ga(!0,e,n,t,-1)}function Ja(e,t){var n=Xa(e,t.line),r=le(e.doc,n.line),i=ut(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return ve(n.line,a?0:o,n.sticky)}return n}function Za(e,t,n){if("string"==typeof t&&(t=Ya[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=q}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function es(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=$a(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&$a(t,e.options.extraKeys,n,e)||$a(t,e.options.keyMap,n,e)}var ts=new $;function ns(e,t,n,r){var i=e.state.keySeq;if(i){if(ja(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ts.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),rs(e,i+" "+t,n,r))return!0}return rs(e,t,n,r)}function rs(e,t,n,r){var i=es(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&On(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(yt(n),qr(e)),!!i}function is(e,t){var n=qa(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?ns(e,"Shift-"+n,t,(function(t){return Za(e,t,!0)}))||ns(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return Za(e,t)})):ns(e,n,t,(function(t){return Za(e,t)})))}function os(e,t,n){return ns(e,"'"+n+"'",t,(function(t){return Za(e,t,!0)}))}var as=null;function ss(e){var t=this;if(t.curOp.focus=L(),!gt(t,e)){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=is(t,e);d&&(as=r?n:null,r||88!=n||Mt||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||cs(t)}}function cs(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(S(t,"CodeMirror-crosshair"),ht(document,"keyup",n),ht(document,"mouseover",n))}M(t,"CodeMirror-crosshair"),ft(document,"keyup",n),ft(document,"mouseover",n)}function ls(e){16==e.keyCode&&(this.doc.sel.shift=!1),gt(this,e)}function us(e){var t=this;if(!(Un(t.display,e)||gt(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(d&&n==as)return as=null,void yt(e);if(!d||e.which&&!(e.which<10)||!is(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(os(t,e,i)||t.display.input.onKeyPress(e))}}}var ds,fs,ps=400,hs=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ms(e,t){var n=+new Date;return fs&&fs.compare(n,e,t)?(ds=fs=null,"triple"):ds&&ds.compare(n,e,t)?(fs=new hs(n,e,t),ds=null,"double"):(ds=new hs(n,e,t),fs=null,"single")}function gs(e){var t=this,n=t.display;if(!(gt(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Un(n,e))c||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!As(t,e)){var r=Nr(t,e),i=At(e),o=r?ms(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&vs(t,i,r,o,e)||(1==i?r?_s(t,r,o,e):Ct(e)==n.scroller&&yt(e):2==i?(r&&Fo(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(k?t.display.input.onContextMenu(e):Ur(t)))}}function vs(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),o=(1==t?"Left":2==t?"Middle":"Right")+o,ns(e,za(o,i),i,(function(t){if("string"==typeof t&&(t=Ya[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=q}finally{e.state.suppressEdits=!1}return r}))}function bs(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=_?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}function _s(e,t,n,r){a?setTimeout(B(Hr,e),0):e.curOp.focus=L();var i,o=bs(e,n,r),s=e.doc.sel;e.options.dragDrop&&Tt&&!e.isReadOnly()&&"single"==n&&(i=s.contains(t))>-1&&(be((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(be(i.to(),t)>0||t.xRel<0)?ys(e,r,t,o):xs(e,r,t,o)}function ys(e,t,n,r){var i=e.display,o=!1,l=Ti(e,(function(t){c&&(i.scroller.draggable=!1),e.state.draggingText=!1,ht(i.wrapper.ownerDocument,"mouseup",l),ht(i.wrapper.ownerDocument,"mousemove",u),ht(i.scroller,"dragstart",d),ht(i.scroller,"drop",l),o||(yt(t),r.addNew||Fo(e.doc,n,null,null,r.extend),c||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()}),20):i.input.focus())})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};c&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),ft(i.wrapper.ownerDocument,"mouseup",l),ft(i.wrapper.ownerDocument,"mousemove",u),ft(i.scroller,"dragstart",d),ft(i.scroller,"drop",l),Ur(e),setTimeout((function(){return i.input.focus()}),20)}function ws(e,t,n){if("char"==n)return new ro(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new ro(ve(t.line,0),Ce(e.doc,ve(t.line+1,0)));var r=n(e,t);return new ro(r.from,r.to)}function xs(e,t,n,r){var i=e.display,o=e.doc;yt(t);var a,s,c=o.sel,l=c.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?l[s]:new ro(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new ro(n,n)),n=Nr(e,t,!0,!0),s=-1;else{var u=ws(e,n,r.unit);a=r.extend?Mo(a,u.anchor,u.head,r.extend):u}r.addNew?-1==s?(s=l.length,jo(o,io(e,l.concat([a]),s),{scroll:!1,origin:"*mouse"})):l.length>1&&l[s].empty()&&"char"==r.unit&&!r.extend?(jo(o,io(e,l.slice(0,s).concat(l.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):Bo(o,s,a,U):(s=0,jo(o,new no([a],0),U),c=o.sel);var d=n;function f(t){if(0!=be(d,t))if(d=t,"rectangle"==r.unit){for(var i=[],l=e.options.tabSize,u=P(le(o,n.line).text,n.ch,l),f=P(le(o,t.line).text,t.ch,l),p=Math.min(u,f),h=Math.max(u,f),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=le(o,m).text,b=V(v,p,l);p==h?i.push(new ro(ve(m,b),ve(m,b))):v.length>b&&i.push(new ro(ve(m,b),ve(m,V(v,h,l))))}i.length||i.push(new ro(n,n)),jo(o,io(e,c.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var _,y=a,w=ws(e,t,r.unit),x=y.anchor;be(w.anchor,x)>0?(_=w.head,x=xe(y.from(),w.anchor)):(_=w.anchor,x=we(y.to(),w.head));var k=c.ranges.slice(0);k[s]=ks(e,new ro(Ce(o,x),_)),jo(o,io(e,k,s),U)}}var p=i.wrapper.getBoundingClientRect(),h=0;function m(t){var n=++h,a=Nr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=be(a,d)){e.curOp.focus=L(),f(a);var s=Yr(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(Ti(e,(function(){h==n&&m(t)})),150)}else{var c=t.clientY<p.top?-20:t.clientY>p.bottom?20:0;c&&setTimeout(Ti(e,(function(){h==n&&(i.scroller.scrollTop+=c,m(t))})),50)}}function g(t){e.state.selectingText=!1,h=1/0,yt(t),i.input.focus(),ht(i.wrapper.ownerDocument,"mousemove",v),ht(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var v=Ti(e,(function(e){0!==e.buttons&&At(e)?m(e):g(e)})),b=Ti(e,g);e.state.selectingText=b,ft(i.wrapper.ownerDocument,"mousemove",v),ft(i.wrapper.ownerDocument,"mouseup",b)}function ks(e,t){var n=t.anchor,r=t.head,i=le(e.doc,n.line);if(0==be(n,r)&&n.sticky==r.sticky)return t;var o=ut(i);if(!o)return t;var a=ct(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var c,l=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==l||l==o.length)return t;if(r.line!=n.line)c=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=ct(o,r.ch,r.sticky),d=u-a||(r.ch-n.ch)*(1==s.level?-1:1);c=u==l-1||u==l?d<0:d>0}var f=o[l+(c?-1:0)],p=c==(1==f.level),h=p?f.from:f.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new ro(new ve(n.line,h,m),r)}function Cs(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&yt(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!bt(e,n))return xt(t);o-=s.top-a.viewOffset;for(var c=0;c<e.options.gutters.length;++c){var l=a.gutters.childNodes[c];if(l&&l.getBoundingClientRect().right>=i){var u=he(e.doc,o),d=e.options.gutters[c];return mt(e,n,e,u,d,t),xt(t)}}}function As(e,t){return Cs(e,t,"gutterClick",!0)}function Ss(e,t){Un(e.display,t)||Es(e,t)||gt(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function Es(e,t){return!!bt(e,"gutterContextMenu")&&Cs(e,t,"gutterContextMenu",!1)}function Ts(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(e)}hs.prototype.compare=function(e,t,n){return this.time+ps>e&&0==be(t,this.pos)&&n==this.button};var Os={toString:function(){return"CodeMirror.Init"}},Rs={},Ds={};function Ls(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Os&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Os,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,fo(e)}),!0),n("indentUnit",2,fo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){po(e),fr(e),Di(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ve(r,o))}r++}));for(var i=n.length-1;i>=0;i--)na(e.doc,t,n[i],ve(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Os&&e.refresh()})),n("specialCharPlaceholder",gn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!y),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Ts(e),Ms(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Ha(t),i=n!=Os&&Ha(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ns,!0),n("gutters",[],(function(e){Xi(e.options),Ms(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Lr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return hi(e)}),!0),n("scrollbarStyle","native",(function(e){vi(e),hi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e){Xi(e.options),Ms(e)}),!0),n("firstLineNumber",1,Ms,!0),n("lineNumberFormatter",(function(e){return e}),Ms,!0),n("showCursorWhenSelecting",!1,Ir,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Vr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Fs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Ir,!0),n("singleCursorHeightPerLine",!0,Ir,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,po,!0),n("addModeClass",!1,po,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,po,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Ms(e){Yi(e),Di(e),Xr(e)}function Fs(e,t,n){var r=n&&n!=Os;if(!t!=!r){var i=e.display.dragFunctions,o=t?ft:ht;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function Ns(e){e.options.lineWrapping?(M(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),ot(e)),Fr(e),Di(e),fr(e),setTimeout((function(){return hi(e)}),100)}function Bs(e,t){var n=this;if(!(this instanceof Bs))return new Bs(e,t);this.options=t=t?I(t):{},I(Rs,t,!1),Xi(t);var r=t.value;"string"==typeof r?r=new wa(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Bs.inputStyles[t.inputStyle](this),o=this.display=new ce(e,r,i);for(var l in o.wrapper.CodeMirror=this,Yi(this),Ts(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),vi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new $,keySeq:null,specialChars:null},t.autofocus&&!v&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Is(this),Oa(),_i(this),this.curOp.forceUpdate=!0,vo(this,r),t.autofocus&&!v||this.hasFocus()?setTimeout(B(Wr,this),20):Vr(this),Ds)Ds.hasOwnProperty(l)&&Ds[l](n,t[l],Os);Qr(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Ps.length;++u)Ps[u](n);yi(this),c&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Is(e){var t=e.display;ft(t.scroller,"mousedown",Ti(e,gs)),ft(t.scroller,"dblclick",a&&s<11?Ti(e,(function(t){if(!gt(e,t)){var n=Nr(e,t);if(n&&!As(e,t)&&!Un(e.display,t)){yt(t);var r=e.findWordAt(n);Fo(e.doc,r.anchor,r.head)}}})):function(t){return gt(e,t)||yt(t)}),ft(t.scroller,"contextmenu",(function(t){return Ss(e,t)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),r=t.activeTouch,r.end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function c(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}ft(t.scroller,"touchstart",(function(i){if(!gt(e,i)&&!o(i)&&!As(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),ft(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ft(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Un(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||c(r,r.prev)?new ro(a,a):!r.prev.prev||c(r,r.prev.prev)?e.findWordAt(a):new ro(ve(a.line,0),Ce(e.doc,ve(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),yt(n)}i()})),ft(t.scroller,"touchcancel",i),ft(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(ci(e,t.scroller.scrollTop),ui(e,t.scroller.scrollLeft,!0),mt(e,"scroll",e))})),ft(t.scroller,"mousewheel",(function(t){return to(e,t)})),ft(t.scroller,"DOMMouseScroll",(function(t){return to(e,t)})),ft(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){gt(e,t)||kt(t)},over:function(t){gt(e,t)||(Aa(e,t),kt(t))},start:function(t){return Ca(e,t)},drop:Ti(e,ka),leave:function(t){gt(e,t)||Sa(e)}};var l=t.input.getField();ft(l,"keyup",(function(t){return ls.call(e,t)})),ft(l,"keydown",Ti(e,ss)),ft(l,"keypress",Ti(e,us)),ft(l,"focus",(function(t){return Wr(e,t)})),ft(l,"blur",(function(t){return Vr(e,t)}))}Bs.defaults=Rs,Bs.optionHandlers=Ds;var Ps=[];function $s(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=Jt(e,t).state:n="prev");var a=e.options.tabSize,s=le(o,t),c=P(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var l,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&(l=o.mode.indent(i,s.text.slice(u.length),s.text),l==q||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>o.first?P(le(o,t-1).text,null,a):0:"add"==n?l=c+e.options.indentUnit:"subtract"==n?l=c-e.options.indentUnit:"number"==typeof n&&(l=c+n),l=Math.max(0,l);var d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(l/a);p;--p)f+=a,d+="\t";if(f<l&&(d+=K(l-f)),d!=u)return na(o,d,ve(t,0),ve(t,u.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<u.length){var g=ve(t,u.length);Bo(o,h,new ro(g,g));break}}}Bs.defineInitHook=function(e){return Ps.push(e)};var js=null;function zs(e){js=e}function qs(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,c=Dt(t),l=null;if(s&&r.ranges.length>1)if(js&&js.text.join("\n")==t){if(r.ranges.length%js.text.length==0){l=[];for(var u=0;u<js.text.length;u++)l.push(o.splitLines(js.text[u]))}}else c.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(l=X(c,(function(e){return[e]})));for(var d=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var p=r.ranges[f],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=ve(h.line,h.ch-n):e.state.overwrite&&!s?m=ve(m.line,Math.min(le(o,m.line).text.length,m.ch+Y(c).length)):s&&js&&js.lineWise&&js.text.join("\n")==t&&(h=m=ve(h.line,0)));var g={from:h,to:m,text:l?l[f%l.length]:c,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};Xo(e.doc,g),On(e,"inputRead",e,g)}t&&!s&&Us(e,t),ri(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Hs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Ei(t,(function(){return qs(t,n,0,null,"paste")})),!0}function Us(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=$s(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(le(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=$s(e,i.head.line,"smart"));a&&On(e,"electricInput",e,i.head.line)}}}function Ws(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:ve(i,0),head:ve(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Vs(e,t,n,r){e.setAttribute("autocorrect",!!n),e.setAttribute("autocapitalize",!!r),e.setAttribute("spellcheck",!!t)}function Gs(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return c?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),Vs(e),t}function Ks(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Ti(this,t[e])(this,n,i),mt(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Ha(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Oi((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");Q(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,Di(this)})),removeOverlay:Oi((function(e){for(var t=this,n=this.state.overlays,r=0;r<n.length;++r){var i=n[r].modeSpec;if(i==e||"string"==typeof e&&i.name==e)return n.splice(r,1),t.state.modeGen++,void Di(t)}})),indentLine:Oi((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),me(this.doc,e)&&$s(this,e,t,n)})),indentSelection:Oi((function(e){for(var t=this,n=this.doc.sel.ranges,r=-1,i=0;i<n.length;i++){var o=n[i];if(o.empty())o.head.line>r&&($s(t,o.head.line,e,!0),r=o.head.line,i==t.doc.sel.primIndex&&ri(t));else{var a=o.from(),s=o.to(),c=Math.max(r,a.line);r=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var l=c;l<r;++l)$s(t,l,e);var u=t.doc.sel.ranges;0==a.ch&&n.length==u.length&&u[i].from().ch>0&&Bo(t.doc,i,new ro(a,u[i].to()),H)}}})),getTokenAt:function(e,t){return rn(this,e,t)},getLineTokens:function(e,t){return rn(this,ve(e),t,!0)},getTokenTypeAt:function(e){e=Ce(this.doc,e);var t,n=Qt(this,le(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=this,i=[];if(!n.hasOwnProperty(t))return i;var o=n[t],a=this.getModeAt(e);if("string"==typeof a[t])o[a[t]]&&i.push(o[a[t]]);else if(a[t])for(var s=0;s<a[t].length;s++){var c=o[a[t][s]];c&&i.push(c)}else a.helperType&&o[a.helperType]?i.push(o[a.helperType]):o[a.name]&&i.push(o[a.name]);for(var l=0;l<o._global.length;l++){var u=o._global[l];u.pred(a,r)&&-1==j(i,u.val)&&i.push(u.val)}return i},getStateAfter:function(e,t){var n=this.doc;return e=ke(n,null==e?n.first+n.size-1:e),Jt(this,e+1,t).state},cursorCoords:function(e,t){var n,r=this.doc.sel.primary();return n=null==e?r.head:"object"==typeof e?Ce(this.doc,e):e?r.from():r.to(),_r(this,n,t||"page")},charCoords:function(e,t){return br(this,Ce(this.doc,e),t||"page")},coordsChar:function(e,t){return e=vr(this,e,t||"page"),xr(this,e.left,e.top)},lineAtHeight:function(e,t){return e=vr(this,{top:e,left:0},t||"page").top,he(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=le(this.doc,e)}else r=e;return gr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-rt(r):0)},defaultTextHeight:function(){return Or(this.display)},defaultCharWidth:function(){return Rr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display;e=_r(this,Ce(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var c=Math.max(o.wrapper.clientHeight,this.doc.height),l=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>c)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=c&&(a=e.bottom),s+t.offsetWidth>l&&(s=l-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&ei(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Oi(ss),triggerOnKeyPress:Oi(us),triggerOnKeyUp:ls,triggerOnMouseDown:Oi(gs),execCommand:function(e){if(Ya.hasOwnProperty(e))return Ya[e].call(null,this)},triggerElectric:Oi((function(e){Us(this,e)})),findPosH:function(e,t,n,r){var i=this,o=1;t<0&&(o=-1,t=-t);for(var a=Ce(this.doc,e),s=0;s<t;++s)if(a=Ys(i.doc,a,o,n,r),a.hitSide)break;return a},moveH:Oi((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ys(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),W)})),deleteH:Oi((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Ua(this,(function(n){var i=Ys(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=this,o=1,a=r;t<0&&(o=-1,t=-t);for(var s=Ce(this.doc,e),c=0;c<t;++c){var l=_r(i,s,"div");if(null==a?a=l.left:l.left=a,s=Xs(i,l,o,n),s.hitSide)break}return s},moveV:Oi((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=_r(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var c=Xs(n,s,e,t);return"page"==t&&a==r.sel.primary()&&ni(n,br(n,c,"div").top-s.top),c}),W),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=this.doc,n=le(t,e.line).text,r=e.ch,i=e.ch;if(n){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&i!=n.length||!r?++i:--r;var a=n.charAt(r),s=ne(a,o)?function(e){return ne(e,o)}:/\s/.test(a)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ne(e)};while(r>0&&s(n.charAt(r-1)))--r;while(i<n.length&&s(n.charAt(i)))++i}return new ro(ve(e.line,r),ve(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?M(this.display.cursorDiv,"CodeMirror-overwrite"):S(this.display.cursorDiv,"CodeMirror-overwrite"),mt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==L()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Oi((function(e,t){ii(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Kn(this)-this.display.barHeight,width:e.scrollWidth-Kn(this)-this.display.barWidth,clientHeight:Xn(this),clientWidth:Yn(this)}},scrollIntoView:Oi((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ve(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?oi(this,e):si(this,e.from,e.to,e.margin)})),setSize:Oi((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&dr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Li(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,mt(this,"refresh",this)})),operation:function(e){return Ei(this,e)},startOperation:function(){return _i(this)},endOperation:function(){return yi(this)},refresh:Oi((function(){var e=this.display.cachedTextHeight;Di(this),this.curOp.forceUpdate=!0,fr(this),ii(this,this.doc.scrollLeft,this.doc.scrollTop),Gi(this),(null==e||Math.abs(e-Or(this.display))>.5)&&Fr(this),mt(this,"refresh",this)})),swapDoc:Oi((function(e){var t=this.doc;return t.cm=null,vo(this,e),fr(this),this.display.input.reset(),ii(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,On(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},_t(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function Ys(e,t,n,r,i){var o=t,a=n,s=le(e,t.line);function c(){var r=t.line+n;return!(r<e.first||r>=e.first+e.size)&&(t=new ve(r,t.ch,t.sticky),s=le(e,r))}function l(r){var o;if(o=i?Ka(e.cm,s,t,n):Va(s,t,n),null==o){if(r||!c())return!1;t=Ga(i,e.cm,s,t.line,n)}else t=o;return!0}if("char"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var u=null,d="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;;p=!1){if(n<0&&!l(!p))break;var h=s.text.charAt(t.ch)||"\n",m=ne(h,f)?"w":d&&"\n"==h?"n":!d||/\s/.test(h)?null:"p";if(!d||p||m||(m="s"),u&&u!=m){n<0&&(n=1,l(),t.sticky="after");break}if(m&&(u=m),n>0&&!l(!p))break}var g=Vo(e,t,o,a,!0);return _e(o,g)&&(g.hitSide=!0),g}function Xs(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var c=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(c-.5*Or(e.display),3);i=(n>0?t.bottom:t.top)+n*l}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;;){if(o=xr(e,s,i),!o.outside)break;if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Qs=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new $,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Js(e,t){var n=tr(e,t.line);if(!n||n.hidden)return null;var r=le(e.doc,t.line),i=Jn(n,r,t.line),o=ut(r,e.doc.direction),a="left";if(o){var s=ct(o,t.ch);a=s%2?"right":"left"}var c=ar(i.map,t.ch,a);return c.offset="right"==c.collapse?c.end:c.start,c}function Zs(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ec(e,t){return t&&(e.bad=!0),e}function tc(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),c=!1;function l(e){return function(t){return t.id==e}}function u(){a&&(o+=s,c&&(o+=s),a=c=!1)}function d(e){e&&(u(),o+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var o,p=t.getAttribute("cm-marker");if(p){var h=e.findMarks(ve(r,0),ve(i+1,0),l(+p));return void(h.length&&(o=h[0].find(0))&&d(ue(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&u();for(var g=0;g<t.childNodes.length;g++)f(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(c=!0),m&&(a=!0)}else 3==t.nodeType&&d(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;;){if(f(t),t==n)break;t=t.nextSibling,c=!1}return o}function nc(e,t,n){var r;if(t==e.display.lineDiv){if(r=e.display.lineDiv.childNodes[n],!r)return ec(e.clipPos(ve(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return rc(o,t,n)}}function rc(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!D(r,t))return ec(ve(pe(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Y(e.rest):e.line;return ec(ve(pe(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));while(s.parentNode!=r)s=s.parentNode;var c=e.measure,l=c.maps;function u(t,n,r){for(var i=-1;i<(l?l.length:0);i++)for(var o=i<0?c.map:l[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var u=pe(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),ve(u,d)}}}var d=u(a,s,n);if(d)return ec(d,i);for(var f=s.nextSibling,p=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(d=u(f,f.firstChild,0),d)return ec(ve(d.line,d.ch-p),i);p+=f.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(d=u(h,h.firstChild,-1),d)return ec(ve(d.line,d.ch+m),i);m+=h.textContent.length}}Qs.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){if(!gt(r,e)){if(r.somethingSelected())zs({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ws(r);zs({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,H),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var o=js.text.join("\n");if(e.clipboardData.setData("Text",o),e.clipboardData.getData("Text")==o)return void e.preventDefault()}var a=Gs(),s=a.firstChild;r.display.lineSpace.insertBefore(a,r.display.lineSpace.firstChild),s.value=js.text.join("\n");var c=document.activeElement;N(s),setTimeout((function(){r.display.lineSpace.removeChild(a),c.focus(),c==i&&n.showPrimarySelection()}),50)}}Vs(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),ft(i,"paste",(function(e){gt(r,e)||Hs(e,r)||s<=11&&setTimeout(Ti(r,(function(){return t.updateFromDOM()})),20)})),ft(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),ft(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),ft(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),ft(i,"touchstart",(function(){return n.forceCompositionEnd()})),ft(i,"input",(function(){t.composing||t.readFromDOMSoon()})),ft(i,"copy",o),ft(i,"cut",o)},Qs.prototype.prepareSelection=function(){var e=Pr(this.cm,!1);return e.focus=this.cm.state.focused,e},Qs.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Qs.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Qs.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=nc(t,e.anchorNode,e.anchorOffset),s=nc(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=be(xe(a,s),i)||0!=be(we(a,s),o)){var c=t.display.view,l=i.line>=t.display.viewFrom&&Js(t,i)||{node:c[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&Js(t,o);if(!u){var d=c[c.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(l&&u){var p,h=e.rangeCount&&e.getRangeAt(0);try{p=A(l.node,l.offset,u.offset,u.node)}catch(m){}p&&(!n&&t.state.focused?(e.collapse(l.node,l.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Qs.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Qs.prototype.showMultipleSelections=function(e){T(this.cm.display.cursorDiv,e.cursors),T(this.cm.display.selectionDiv,e.selection)},Qs.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Qs.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},Qs.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Qs.prototype.blur=function(){this.div.blur()},Qs.prototype.getField=function(){return this.div},Qs.prototype.supportsTouch=function(){return!0},Qs.prototype.receivedFocus=function(){var e=this;function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.selectionInEditor()?this.pollSelection():Ei(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,t)},Qs.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Qs.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(g&&u&&this.cm.options.gutters.length&&Zs(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=nc(t,e.anchorNode,e.anchorOffset),r=nc(t,e.focusNode,e.focusOffset);n&&r&&Ei(t,(function(){jo(t.doc,oo(n,r),H),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Qs.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=ve(a.line-1,le(r.doc,a.line-1).length)),s.ch==le(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=ve(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Br(r,a.line))?(t=pe(i.view[0].line),n=i.view[0].node):(t=pe(i.view[e].line),n=i.view[e-1].node.nextSibling);var c,l,u=Br(r,s.line);if(u==i.view.length-1?(c=i.viewTo-1,l=i.lineDiv.lastChild):(c=pe(i.view[u+1].line)-1,l=i.view[u+1].node.previousSibling),!n)return!1;var d=r.doc.splitLines(tc(r,n,l,t,c)),f=ue(r.doc,ve(t,0),ve(c,le(r.doc,c).text.length));while(d.length>1&&f.length>1)if(Y(d)==Y(f))d.pop(),f.pop(),c--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}var p=0,h=0,m=d[0],g=f[0],v=Math.min(m.length,g.length);while(p<v&&m.charCodeAt(p)==g.charCodeAt(p))++p;var b=Y(d),_=Y(f),y=Math.min(b.length-(1==d.length?p:0),_.length-(1==f.length?p:0));while(h<y&&b.charCodeAt(b.length-h-1)==_.charCodeAt(_.length-h-1))++h;if(1==d.length&&1==f.length&&t==a.line)while(p&&p>a.ch&&b.charCodeAt(b.length-h-1)==_.charCodeAt(_.length-h-1))p--,h++;d[d.length-1]=b.slice(0,b.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var w=ve(t,p),x=ve(c,f.length?Y(f).length-h:0);return d.length>1||d[0]||be(w,x)?(na(r.doc,d,w,x,"+input"),!0):void 0},Qs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Qs.prototype.reset=function(){this.forceCompositionEnd()},Qs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Qs.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Qs.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ei(this.cm,(function(){return Di(e.cm)}))},Qs.prototype.setUneditable=function(e){e.contentEditable="false"},Qs.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ti(this.cm,qs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Qs.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Qs.prototype.onContextMenu=function(){},Qs.prototype.resetPosition=function(){},Qs.prototype.needsContentAttribute=!0;var ic=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new $,this.hasSelection=!1,this.composing=null};function oc(e,t){if(t=t?I(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=L();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(ft(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(c){}}t.finishInit=function(t){t.save=r,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,r(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(ht(e.form,"submit",r),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var s=Bs((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function ac(e){e.off=ht,e.on=ft,e.wheelEventPixels=eo,e.Doc=wa,e.splitLines=Dt,e.countColumn=P,e.findColumn=V,e.isWordChar=te,e.Pass=q,e.signal=mt,e.Line=ln,e.changeEnd=ao,e.scrollbarModel=gi,e.Pos=ve,e.cmpPos=be,e.modes=Bt,e.mimeModes=It,e.resolveMode=jt,e.getMode=zt,e.modeExtensions=qt,e.extendMode=Ht,e.copyState=Ut,e.startState=Vt,e.innerMode=Wt,e.commands=Ya,e.keyMap=Ba,e.keyName=qa,e.isModifierKey=ja,e.lookupKey=$a,e.normalizeKeyMap=Pa,e.StringStream=Gt,e.SharedTextMarker=ma,e.TextMarker=pa,e.LineWidget=la,e.e_preventDefault=yt,e.e_stopPropagation=wt,e.e_stop=kt,e.addClass=M,e.contains=D,e.rmClass=S,e.keyNames=La}ic.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!gt(r,e)){if(r.somethingSelected())zs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ws(r);zs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,H):(n.prevInput="",i.value=t.text.join("\n"),N(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),ft(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),ft(i,"paste",(function(e){gt(r,e)||Hs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ft(i,"cut",o),ft(i,"copy",o),ft(e.scroller,"paste",(function(t){if(!Un(e,t)&&!gt(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),ft(e.lineSpace,"selectstart",(function(t){Un(e,t)||yt(t)})),ft(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),ft(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},ic.prototype.createField=function(e){this.wrapper=Gs(),this.textarea=this.wrapper.firstChild},ic.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Pr(e);if(e.options.moveInputWithCursor){var i=_r(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},ic.prototype.showSelection=function(e){var t=this.cm,n=t.display;T(n.cursorDiv,e.cursors),T(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ic.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&N(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},ic.prototype.getField=function(){return this.textarea},ic.prototype.supportsTouch=function(){return!1},ic.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||L()!=this.textarea))try{this.textarea.focus()}catch(e){}},ic.prototype.blur=function(){this.textarea.blur()},ic.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ic.prototype.receivedFocus=function(){this.slowPoll()},ic.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},ic.prototype.fastPoll=function(){var e=!1,t=this;function n(){var r=t.poll();r||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},ic.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Lt(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}var c=0,l=Math.min(r.length,i.length);while(c<l&&r.charCodeAt(c)==i.charCodeAt(c))++c;return Ei(t,(function(){qs(t,i.slice(c),r.length-c,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ic.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ic.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},ic.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Nr(n,e),l=r.scroller.scrollTop;if(o&&!d){var u=n.options.resetSelectionOnContextMenu;u&&-1==n.doc.sel.contains(o)&&Ti(n,jo)(n.doc,oo(o),H);var f,p=i.style.cssText,h=t.wrapper.style.cssText,m=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-m.top-5)+"px; left: "+(e.clientX-m.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",c&&(f=window.scrollY),r.input.focus(),c&&window.scrollTo(null,f),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=b,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),k){kt(e);var g=function(){ht(window,"mouseup",g),setTimeout(b,20)};ft(window,"mouseup",g)}else setTimeout(b,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function b(){if(t.contextMenuPending==b&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,i.style.cssText=p,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart)){(!a||a&&s<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Ti(n,Ko)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},ic.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},ic.prototype.setUneditable=function(){},ic.prototype.needsContentAttribute=!1,Ls(Bs),Ks(Bs);var sc="iter insert remove copy getEditor constructor".split(" ");for(var cc in wa.prototype)wa.prototype.hasOwnProperty(cc)&&j(sc,cc)<0&&(Bs.prototype[cc]=function(e){return function(){return e.apply(this.doc,arguments)}}(wa.prototype[cc]));return _t(wa),Bs.inputStyles={textarea:ic,contenteditable:Qs},Bs.defineMode=function(e){Bs.defaults.mode||"null"==e||(Bs.defaults.mode=e),Pt.apply(this,arguments)},Bs.defineMIME=$t,Bs.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Bs.defineMIME("text/plain","null"),Bs.defineExtension=function(e,t){Bs.prototype[e]=t},Bs.defineDocExtension=function(e,t){wa.prototype[e]=t},Bs.fromTextArea=oc,ac(Bs),Bs.version="5.45.0",Bs}))},"56e3":function(e,t){ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],(function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/lang"),o=e("../lib/event"),a='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;box-sizing: border-box!important;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;box-sizing: content-box!important;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width: 2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing: border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',s=e("../keyboard/hash_handler").HashHandler,c=e("../lib/keys"),l=999;r.importCssString(a,"ace_searchbox");var u='<div class="ace_search right"> <span action="hide" class="ace_searchbtn_close"></span> <div class="ace_search_form"> <input class="ace_search_field" placeholder="Search for" spellcheck="false"></input> <span action="findPrev" class="ace_searchbtn prev"></span> <span action="findNext" class="ace_searchbtn next"></span> <span action="findAll" class="ace_searchbtn" title="Alt-Enter">All</span> </div> <div class="ace_replace_form"> <input class="ace_search_field" placeholder="Replace with" spellcheck="false"></input> <span action="replaceAndFindNext" class="ace_searchbtn">Replace</span> <span action="replaceAll" class="ace_searchbtn">All</span> </div> <div class="ace_search_options"> <span action="toggleReplace" class="ace_button" title="Toggel Replace mode" style="float:left;margin-top:-2px;padding:0 5px;">+</span> <span class="ace_search_counter"></span> <span action="toggleRegexpMode" class="ace_button" title="RegExp Search">.*</span> <span action="toggleCaseSensitive" class="ace_button" title="CaseSensitive Search">Aa</span> <span action="toggleWholeWords" class="ace_button" title="Whole Word Search">\\b</span> <span action="searchInSelection" class="ace_button" title="Search In Selection">S</span> </div></div>'.replace(/> +/g,">"),d=function(e,t,n){var i=r.createElement("div");i.innerHTML=u,this.element=i.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(e)};(function(){this.setEditor=function(e){e.searchBox=this,e.renderer.scroller.appendChild(this.element),this.editor=e},this.setSession=function(e){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(e){this.searchBox=e.querySelector(".ace_search_form"),this.replaceBox=e.querySelector(".ace_replace_form"),this.searchOption=e.querySelector("[action=searchInSelection]"),this.replaceOption=e.querySelector("[action=toggleReplace]"),this.regExpOption=e.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=e.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=e.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=e.querySelector(".ace_search_counter")},this.$init=function(){var e=this.element;this.$initElements(e);var t=this;o.addListener(e,"mousedown",(function(e){setTimeout((function(){t.activeInput.focus()}),0),o.stopPropagation(e)})),o.addListener(e,"click",(function(e){var n=e.target||e.srcElement,r=n.getAttribute("action");r&&t[r]?t[r]():t.$searchBarKb.commands[r]&&t.$searchBarKb.commands[r].exec(t),o.stopPropagation(e)})),o.addCommandKeyListener(e,(function(e,n,r){var i=c.keyCodeToString(r),a=t.$searchBarKb.findKeyCommand(n,i);a&&a.exec&&(a.exec(t),o.stopEvent(e))})),this.$onChange=i.delayedCall((function(){t.find(!1,!1)})),o.addListener(this.searchInput,"input",(function(){t.$onChange.schedule(20)})),o.addListener(this.searchInput,"focus",(function(){t.activeInput=t.searchInput,t.searchInput.value&&t.highlight()})),o.addListener(this.replaceInput,"focus",(function(){t.activeInput=t.replaceInput,t.searchInput.value&&t.highlight()}))},this.$closeSearchBarKb=new s([{bindKey:"Esc",name:"closeSearchBar",exec:function(e){e.searchBox.hide()}}]),this.$searchBarKb=new s,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(e){var t=e.isReplace=!e.isReplace;e.replaceBox.style.display=t?"":"none",e.replaceOption.checked=!1,e.$syncOptions(),e.searchInput.focus()},"Ctrl-H|Command-Option-F":function(e){e.replaceOption.checked=!0,e.$syncOptions(),e.replaceInput.focus()},"Ctrl-G|Command-G":function(e){e.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(e){e.findPrev()},esc:function(e){setTimeout((function(){e.hide()}))},Return:function(e){e.activeInput==e.replaceInput&&e.replace(),e.findNext()},"Shift-Return":function(e){e.activeInput==e.replaceInput&&e.replace(),e.findPrev()},"Alt-Return":function(e){e.activeInput==e.replaceInput&&e.replaceAll(),e.findAll()},Tab:function(e){(e.activeInput==e.replaceInput?e.searchInput:e.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(e){e.regExpOption.checked=!e.regExpOption.checked,e.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(e){e.caseSensitiveOption.checked=!e.caseSensitiveOption.checked,e.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(e){e.wholeWordOption.checked=!e.wholeWordOption.checked,e.$syncOptions()}},{name:"toggleReplace",exec:function(e){e.replaceOption.checked=!e.replaceOption.checked,e.$syncOptions()}},{name:"searchInSelection",exec:function(e){e.searchOption.checked=!e.searchRange,e.setSearchRange(e.searchOption.checked&&e.editor.getSelectionRange()),e.$syncOptions()}}]),this.setSearchRange=function(e){this.searchRange=e,e?this.searchRangeMarker=this.editor.session.addMarker(e,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(e){r.setCssClass(this.replaceOption,"checked",this.searchRange),r.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",r.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),r.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),r.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),this.replaceBox.style.display=this.replaceOption.checked?"":"none",this.find(!1,!1,e)},this.highlight=function(e){this.editor.session.highlight(e||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(e,t,n){var i=this.editor.find(this.searchInput.value,{skipCurrent:e,backwards:t,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:n,range:this.searchRange}),o=!i&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",o),this.editor._emit("findSearchBox",{match:!o}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var e=this.editor,t=e.$search.$options.re,n=0,r=0;if(t){var i=this.searchRange?e.session.getTextRange(this.searchRange):e.getValue(),o=e.session.doc.positionToIndex(e.selection.anchor);this.searchRange&&(o-=e.session.doc.positionToIndex(this.searchRange.start));var a,s=t.lastIndex=0;while(a=t.exec(i)){if(n++,s=a.index,s<=o&&r++,n>l)break;if(!a[0]&&(t.lastIndex=s+=1,s>=i.length))break}}this.searchCounter.textContent=r+" of "+(n>l?l+"+":n)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var e=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),t=!e&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",t),this.editor._emit("findSearchBox",{match:!t}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(e,t){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=t,e&&(this.searchInput.value=e),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var e=document.activeElement;return e==this.searchInput||e==this.replaceInput}}).call(d.prototype),t.SearchBox=d,t.Search=function(e,t){var n=e.searchBox||new d(e);n.show(e.session.getTextRange(),t)}})),function(){ace.acequire(["ace/ext/searchbox"],(function(){}))}()},"56ef":function(e,t,n){"use strict";var r=n("d066"),i=n("e330"),o=n("241c"),a=n("7418"),s=n("825a"),c=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?c(t,n(e)):t}},5775:function(e,t,n){"use strict";var r=n("009a"),i=n("40a9"),o=n("b283"),a=n("6137");e.exports=n("7b22")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},"577e":function(e,t,n){"use strict";var r=n("f5df"),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},"57b9":function(e,t,n){"use strict";var r=n("c65b"),i=n("d066"),o=n("b622"),a=n("cb2d");e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=o("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},5899:function(e,t,n){"use strict";e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){"use strict";var r=n("e330"),i=n("1d80"),o=n("577e"),a=n("5899"),s=r("".replace),c=RegExp("^["+a+"]+"),l=RegExp("(^|[^"+a+"])["+a+"]+$"),u=function(e){return function(t){var n=o(i(t));return 1&e&&(n=s(n,c,"")),2&e&&(n=s(n,l,"$1")),n}};e.exports={start:u(1),end:u(2),trim:u(3)}},5926:function(e,t,n){"use strict";var r=n("b42e");e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},"597f":function(e,t){e.exports=function(e,t,n,r){var i,o=0;function a(){var a=this,s=Number(new Date)-o,c=arguments;function l(){o=Number(new Date),n.apply(a,c)}function u(){i=void 0}r&&!i&&l(),i&&clearTimeout(i),void 0===r&&s>e?l():!0!==t&&(i=setTimeout(r?u:l,void 0===r?e-s:e))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),a}},"59ed":function(e,t,n){"use strict";var r=n("1626"),i=n("0d51"),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},"5a34":function(e,t,n){"use strict";var r=n("44e7"),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},"5a47":function(e,t,n){"use strict";var r=n("23e7"),i=n("04f8"),o=n("d039"),a=n("7418"),s=n("7b0b"),c=!i||o((function(){a.f(1)}));r({target:"Object",stat:!0,forced:c},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},"5a94":function(e,t,n){var r=n("b367")("keys"),i=n("8b1a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"5b81":function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("e330"),a=n("1d80"),s=n("1626"),c=n("7234"),l=n("44e7"),u=n("577e"),d=n("dc4a"),f=n("90d8"),p=n("0cb2"),h=n("b622"),m=n("c430"),g=h("replace"),v=TypeError,b=o("".indexOf),_=o("".replace),y=o("".slice),w=Math.max,x=function(e,t,n){return n>e.length?-1:""===t?n:b(e,t,n)};r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,o,h,k,C,A,S,E,T=a(this),O=0,R=0,D="";if(!c(e)){if(n=l(e),n&&(r=u(a(f(e))),!~b(r,"g")))throw new v("`.replaceAll` does not allow non-global regexes");if(o=d(e,g),o)return i(o,e,T,t);if(m&&n)return _(u(T),e,t)}h=u(T),k=u(e),C=s(t),C||(t=u(t)),A=k.length,S=w(1,A),O=x(h,k,0);while(-1!==O)E=C?u(t(k,O,h)):p(k,h,O,[],void 0,t),D+=y(h,R,O)+E,R=O+A,O=x(h,k,O+S);return R<h.length&&(D+=y(h,R)),D}})},"5c6c":function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5cc6":function(e,t,n){"use strict";var r=n("74e8");r("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"5e77":function(e,t,n){"use strict";var r=n("83ab"),i=n("1a2d"),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,l=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},"5e7e":function(e,t,n){"use strict";var r,i,o,a,s=n("23e7"),c=n("c430"),l=n("605d"),u=n("da84"),d=n("c65b"),f=n("cb2d"),p=n("d2bb"),h=n("d44e"),m=n("2626"),g=n("59ed"),v=n("1626"),b=n("861d"),_=n("19aa"),y=n("4840"),w=n("2cf4").set,x=n("b575"),k=n("44de"),C=n("e667"),A=n("01b4"),S=n("69f3"),E=n("d256"),T=n("4738"),O=n("f069"),R="Promise",D=T.CONSTRUCTOR,L=T.REJECTION_EVENT,M=T.SUBCLASSING,F=S.getterFor(R),N=S.set,B=E&&E.prototype,I=E,P=B,$=u.TypeError,j=u.document,z=u.process,q=O.f,H=q,U=!!(j&&j.createEvent&&u.dispatchEvent),W="unhandledrejection",V="rejectionhandled",G=0,K=1,Y=2,X=1,Q=2,J=function(e){var t;return!(!b(e)||!v(t=e.then))&&t},Z=function(e,t){var n,r,i,o=t.value,a=t.state===K,s=a?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(a||(t.rejection===Q&&ie(t),t.rejection=X),!0===s?n=o:(u&&u.enter(),n=s(o),u&&(u.exit(),i=!0)),n===e.promise?l(new $("Promise-chain cycle")):(r=J(n))?d(r,n,c,l):c(n)):l(o)}catch(f){u&&!i&&u.exit(),l(f)}},ee=function(e,t){e.notified||(e.notified=!0,x((function(){var n,r=e.reactions;while(n=r.get())Z(n,e);e.notified=!1,t&&!e.rejection&&ne(e)})))},te=function(e,t,n){var r,i;U?(r=j.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!L&&(i=u["on"+e])?i(r):e===W&&k("Unhandled promise rejection",n)},ne=function(e){d(w,u,(function(){var t,n=e.facade,r=e.value,i=re(e);if(i&&(t=C((function(){l?z.emit("unhandledRejection",r,n):te(W,n,r)})),e.rejection=l||re(e)?Q:X,t.error))throw t.value}))},re=function(e){return e.rejection!==X&&!e.parent},ie=function(e){d(w,u,(function(){var t=e.facade;l?z.emit("rejectionHandled",t):te(V,t,e.value)}))},oe=function(e,t,n){return function(r){e(t,r,n)}},ae=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=Y,ee(e,!0))},se=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new $("Promise can't be resolved itself");var r=J(t);r?x((function(){var n={done:!1};try{d(r,t,oe(se,n,e),oe(ae,n,e))}catch(i){ae(n,i,e)}})):(e.value=t,e.state=K,ee(e,!1))}catch(i){ae({done:!1},i,e)}}};if(D&&(I=function(e){_(this,P),g(e),d(r,this);var t=F(this);try{e(oe(se,t),oe(ae,t))}catch(n){ae(t,n)}},P=I.prototype,r=function(e){N(this,{type:R,done:!1,notified:!1,parent:!1,reactions:new A,rejection:!1,state:G,value:void 0})},r.prototype=f(P,"then",(function(e,t){var n=F(this),r=q(y(this,I));return n.parent=!0,r.ok=!v(e)||e,r.fail=v(t)&&t,r.domain=l?z.domain:void 0,n.state===G?n.reactions.add(r):x((function(){Z(r,n)})),r.promise})),i=function(){var e=new r,t=F(e);this.promise=e,this.resolve=oe(se,t),this.reject=oe(ae,t)},O.f=q=function(e){return e===I||e===o?new i(e):H(e)},!c&&v(E)&&B!==Object.prototype)){a=B.then,M||f(B,"then",(function(e,t){var n=this;return new I((function(e,t){d(a,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete B.constructor}catch(ce){}p&&p(B,P)}s({global:!0,constructor:!0,wrap:!0,forced:D},{Promise:I}),h(I,R,!1,!0),m(R)},"5eed":function(e,t,n){"use strict";var r=n("d256"),i=n("1c7e"),o=n("4738").CONSTRUCTOR;e.exports=o||!i((function(e){r.all(e).then(void 0,(function(){}))}))},"5ef8":function(e,t,n){var r=n("1935"),i=n("ff91"),o=n("1690"),a=n("8393"),s=n("8733"),c="prototype",l=function(e,t,n){var u,d,f,p,h=e&l.F,m=e&l.G,g=e&l.S,v=e&l.P,b=e&l.B,_=m?r:g?r[t]||(r[t]={}):(r[t]||{})[c],y=m?i:i[t]||(i[t]={}),w=y[c]||(y[c]={});for(u in m&&(n=t),n)d=!h&&_&&void 0!==_[u],f=(d?_:n)[u],p=b&&d?s(f,r):v&&"function"==typeof f?s(Function.call,f):f,_&&a(_,u,f,e&l.U),y[u]!=f&&o(y,u,p),v&&w[u]!=f&&(w[u]=f)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"5f96":function(e,t,n){"use strict";var r=n("ebb5"),i=n("e330"),o=r.aTypedArray,a=r.exportTypedArrayMethod,s=i([].join);a("join",(function(e){return s(o(this),e)}))},"5fb2":function(e,t,n){"use strict";var r=n("e330"),i=2147483647,o=36,a=1,s=26,c=38,l=700,u=72,d=128,f="-",p=/[^\0-\u007E]/,h=/[.\u3002\uFF0E\uFF61]/g,m="Overflow: input needs wider integers to process",g=o-a,v=RangeError,b=r(h.exec),_=Math.floor,y=String.fromCharCode,w=r("".charCodeAt),x=r([].join),k=r([].push),C=r("".replace),A=r("".split),S=r("".toLowerCase),E=function(e){var t=[],n=0,r=e.length;while(n<r){var i=w(e,n++);if(i>=55296&&i<=56319&&n<r){var o=w(e,n++);56320===(64512&o)?k(t,((1023&i)<<10)+(1023&o)+65536):(k(t,i),n--)}else k(t,i)}return t},T=function(e){return e+22+75*(e<26)},O=function(e,t,n){var r=0;e=n?_(e/l):e>>1,e+=_(e/t);while(e>g*s>>1)e=_(e/g),r+=o;return _(r+(g+1)*e/(e+c))},R=function(e){var t=[];e=E(e);var n,r,c=e.length,l=d,p=0,h=u;for(n=0;n<e.length;n++)r=e[n],r<128&&k(t,y(r));var g=t.length,b=g;g&&k(t,f);while(b<c){var w=i;for(n=0;n<e.length;n++)r=e[n],r>=l&&r<w&&(w=r);var C=b+1;if(w-l>_((i-p)/C))throw new v(m);for(p+=(w-l)*C,l=w,n=0;n<e.length;n++){if(r=e[n],r<l&&++p>i)throw new v(m);if(r===l){var A=p,S=o;while(1){var R=S<=h?a:S>=h+s?s:S-h;if(A<R)break;var D=A-R,L=o-R;k(t,y(T(R+D%L))),A=_(D/L),S+=o}k(t,y(T(A))),h=O(p,C,b===g),p=0,b++}}p++,l++}return x(t,"")};e.exports=function(e){var t,n,r=[],i=A(C(S(e),h,"."),".");for(t=0;t<i.length;t++)n=i[t],k(r,b(p,n)?"xn--"+R(n):n);return x(r,".")}},"605d":function(e,t,n){"use strict";var r=n("da84"),i=n("c6b6");e.exports="process"===i(r.process)},6069:function(e,t,n){"use strict";var r=n("6c59"),i=n("605d");e.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},"60bd":function(e,t,n){"use strict";var r=n("da84"),i=n("d039"),o=n("e330"),a=n("ebb5"),s=n("e260"),c=n("b622"),l=c("iterator"),u=r.Uint8Array,d=o(s.values),f=o(s.keys),p=o(s.entries),h=a.aTypedArray,m=a.exportTypedArrayMethod,g=u&&u.prototype,v=!i((function(){g[l].call([1])})),b=!!g&&g.values&&g[l]===g.values&&"values"===g.values.name,_=function(){return d(h(this))};m("entries",(function(){return p(h(this))}),v),m("keys",(function(){return f(h(this))}),v),m("values",_,v||!b,{name:"values"}),m(l,_,v||!b,{name:"values"})},"60da":function(e,t,n){"use strict";var r=n("83ab"),i=n("e330"),o=n("c65b"),a=n("d039"),s=n("df75"),c=n("7418"),l=n("d1e7"),u=n("7b0b"),d=n("44ad"),f=Object.assign,p=Object.defineProperty,h=i([].concat);e.exports=!f||a((function(){if(r&&1!==f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!==f({},e)[n]||s(f({},t)).join("")!==i}))?function(e,t){var n=u(e),i=arguments.length,a=1,f=c.f,p=l.f;while(i>a){var m,g=d(arguments[a++]),v=f?h(s(g),f(g)):s(g),b=v.length,_=0;while(b>_)m=v[_++],r&&!o(p,g,m)||(n[m]=g[m])}return n}:f},6137:function(e,t,n){var r=n("29c7"),i=n("d37d");e.exports=function(e){return r(i(e))}},"621a":function(e,t,n){"use strict";var r=n("da84"),i=n("e330"),o=n("83ab"),a=n("4b11"),s=n("5e77"),c=n("9112"),l=n("edd0"),u=n("6964"),d=n("d039"),f=n("19aa"),p=n("5926"),h=n("50c4"),m=n("0b25"),g=n("be8e"),v=n("77a7"),b=n("e163"),_=n("d2bb"),y=n("81d5"),w=n("f36a"),x=n("7156"),k=n("e893"),C=n("d44e"),A=n("69f3"),S=s.PROPER,E=s.CONFIGURABLE,T="ArrayBuffer",O="DataView",R="prototype",D="Wrong length",L="Wrong index",M=A.getterFor(T),F=A.getterFor(O),N=A.set,B=r[T],I=B,P=I&&I[R],$=r[O],j=$&&$[R],z=Object.prototype,q=r.Array,H=r.RangeError,U=i(y),W=i([].reverse),V=v.pack,G=v.unpack,K=function(e){return[255&e]},Y=function(e){return[255&e,e>>8&255]},X=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Q=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},J=function(e){return V(g(e),23,4)},Z=function(e){return V(e,52,8)},ee=function(e,t,n){l(e[R],t,{configurable:!0,get:function(){return n(this)[t]}})},te=function(e,t,n,r){var i=F(e),o=m(n),a=!!r;if(o+t>i.byteLength)throw new H(L);var s=i.bytes,c=o+i.byteOffset,l=w(s,c,c+t);return a?l:W(l)},ne=function(e,t,n,r,i,o){var a=F(e),s=m(n),c=r(+i),l=!!o;if(s+t>a.byteLength)throw new H(L);for(var u=a.bytes,d=s+a.byteOffset,f=0;f<t;f++)u[d+f]=c[l?f:t-f-1]};if(a){var re=S&&B.name!==T;d((function(){B(1)}))&&d((function(){new B(-1)}))&&!d((function(){return new B,new B(1.5),new B(NaN),1!==B.length||re&&!E}))?re&&E&&c(B,"name",T):(I=function(e){return f(this,P),x(new B(m(e)),this,I)},I[R]=P,P.constructor=I,k(I,B)),_&&b(j)!==z&&_(j,z);var ie=new $(new I(2)),oe=i(j.setInt8);ie.setInt8(0,2147483648),ie.setInt8(1,2147483649),!ie.getInt8(0)&&ie.getInt8(1)||u(j,{setInt8:function(e,t){oe(this,e,t<<24>>24)},setUint8:function(e,t){oe(this,e,t<<24>>24)}},{unsafe:!0})}else I=function(e){f(this,P);var t=m(e);N(this,{type:T,bytes:U(q(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)},P=I[R],$=function(e,t,n){f(this,j),f(e,P);var r=M(e),i=r.byteLength,a=p(t);if(a<0||a>i)throw new H("Wrong offset");if(n=void 0===n?i-a:h(n),a+n>i)throw new H(D);N(this,{type:O,buffer:e,byteLength:n,byteOffset:a,bytes:r.bytes}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=a)},j=$[R],o&&(ee(I,"byteLength",M),ee($,"buffer",F),ee($,"byteLength",F),ee($,"byteOffset",F)),u(j,{getInt8:function(e){return te(this,1,e)[0]<<24>>24},getUint8:function(e){return te(this,1,e)[0]},getInt16:function(e){var t=te(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=te(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return Q(te(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return Q(te(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return G(te(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return G(te(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){ne(this,1,e,K,t)},setUint8:function(e,t){ne(this,1,e,K,t)},setInt16:function(e,t){ne(this,2,e,Y,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){ne(this,2,e,Y,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){ne(this,4,e,X,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){ne(this,4,e,X,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){ne(this,4,e,J,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){ne(this,8,e,Z,t,arguments.length>2&&arguments[2])}});C(I,T),C($,O),e.exports={ArrayBuffer:I,DataView:$}},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},6374:function(e,t,n){"use strict";var r=n("da84"),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},6438:function(e,t,n){var r=n("03d6"),i=n("9742").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"649e":function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").some,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("some",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},"64b0":function(e,t,n){"use strict";var r=n("00ce"),i=r("%Object.defineProperty%",!0),o=function(){if(i)try{return i({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==i([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},"64d8":function(e,t,n){n("ef1f")},6547:function(e,t,n){"use strict";var r=n("e330"),i=n("5926"),o=n("577e"),a=n("1d80"),s=r("".charAt),c=r("".charCodeAt),l=r("".slice),u=function(e){return function(t,n){var r,u,d=o(a(t)),f=i(n),p=d.length;return f<0||f>=p?e?"":void 0:(r=c(d,f),r<55296||r>56319||f+1===p||(u=c(d,f+1))<56320||u>57343?e?s(d,f):r:e?l(d,f,f+2):u-56320+(r-55296<<10)+65536)}};e.exports={codeAt:u(!1),charAt:u(!0)}},"658f":function(e,t,n){n("6858");for(var r=n("ef08"),i=n("051b"),o=n("8a0d"),a=n("cc15")("toStringTag"),s="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<s.length;c++){var l=s[c],u=r[l],d=u&&u.prototype;d&&!d[a]&&i(d,a,l),o[l]=o.Array}},"65f0":function(e,t,n){"use strict";var r=n("0b42");e.exports=function(e,t){return new(r(e))(0===t?0:t)}},"673b":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},6821:function(e,t,n){(function(){var t=n("00d8"),r=n("9a63").utf8,i=n("044b"),o=n("9a63").bin,a=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?o.stringToBytes(e):r.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var s=t.bytesToWords(e),c=8*e.length,l=1732584193,u=-271733879,d=-1732584194,f=271733878,p=0;p<s.length;p++)s[p]=16711935&(s[p]<<8|s[p]>>>24)|4278255360&(s[p]<<24|s[p]>>>8);s[c>>>5]|=128<<c%32,s[14+(c+64>>>9<<4)]=c;var h=a._ff,m=a._gg,g=a._hh,v=a._ii;for(p=0;p<s.length;p+=16){var b=l,_=u,y=d,w=f;l=h(l,u,d,f,s[p+0],7,-680876936),f=h(f,l,u,d,s[p+1],12,-389564586),d=h(d,f,l,u,s[p+2],17,606105819),u=h(u,d,f,l,s[p+3],22,-1044525330),l=h(l,u,d,f,s[p+4],7,-176418897),f=h(f,l,u,d,s[p+5],12,1200080426),d=h(d,f,l,u,s[p+6],17,-1473231341),u=h(u,d,f,l,s[p+7],22,-45705983),l=h(l,u,d,f,s[p+8],7,1770035416),f=h(f,l,u,d,s[p+9],12,-1958414417),d=h(d,f,l,u,s[p+10],17,-42063),u=h(u,d,f,l,s[p+11],22,-1990404162),l=h(l,u,d,f,s[p+12],7,1804603682),f=h(f,l,u,d,s[p+13],12,-40341101),d=h(d,f,l,u,s[p+14],17,-1502002290),u=h(u,d,f,l,s[p+15],22,1236535329),l=m(l,u,d,f,s[p+1],5,-165796510),f=m(f,l,u,d,s[p+6],9,-1069501632),d=m(d,f,l,u,s[p+11],14,643717713),u=m(u,d,f,l,s[p+0],20,-373897302),l=m(l,u,d,f,s[p+5],5,-701558691),f=m(f,l,u,d,s[p+10],9,38016083),d=m(d,f,l,u,s[p+15],14,-660478335),u=m(u,d,f,l,s[p+4],20,-405537848),l=m(l,u,d,f,s[p+9],5,568446438),f=m(f,l,u,d,s[p+14],9,-1019803690),d=m(d,f,l,u,s[p+3],14,-187363961),u=m(u,d,f,l,s[p+8],20,1163531501),l=m(l,u,d,f,s[p+13],5,-1444681467),f=m(f,l,u,d,s[p+2],9,-51403784),d=m(d,f,l,u,s[p+7],14,1735328473),u=m(u,d,f,l,s[p+12],20,-1926607734),l=g(l,u,d,f,s[p+5],4,-378558),f=g(f,l,u,d,s[p+8],11,-2022574463),d=g(d,f,l,u,s[p+11],16,1839030562),u=g(u,d,f,l,s[p+14],23,-35309556),l=g(l,u,d,f,s[p+1],4,-1530992060),f=g(f,l,u,d,s[p+4],11,1272893353),d=g(d,f,l,u,s[p+7],16,-155497632),u=g(u,d,f,l,s[p+10],23,-1094730640),l=g(l,u,d,f,s[p+13],4,681279174),f=g(f,l,u,d,s[p+0],11,-358537222),d=g(d,f,l,u,s[p+3],16,-722521979),u=g(u,d,f,l,s[p+6],23,76029189),l=g(l,u,d,f,s[p+9],4,-640364487),f=g(f,l,u,d,s[p+12],11,-421815835),d=g(d,f,l,u,s[p+15],16,530742520),u=g(u,d,f,l,s[p+2],23,-995338651),l=v(l,u,d,f,s[p+0],6,-198630844),f=v(f,l,u,d,s[p+7],10,1126891415),d=v(d,f,l,u,s[p+14],15,-1416354905),u=v(u,d,f,l,s[p+5],21,-57434055),l=v(l,u,d,f,s[p+12],6,1700485571),f=v(f,l,u,d,s[p+3],10,-1894986606),d=v(d,f,l,u,s[p+10],15,-1051523),u=v(u,d,f,l,s[p+1],21,-2054922799),l=v(l,u,d,f,s[p+8],6,1873313359),f=v(f,l,u,d,s[p+15],10,-30611744),d=v(d,f,l,u,s[p+6],15,-1560198380),u=v(u,d,f,l,s[p+13],21,1309151649),l=v(l,u,d,f,s[p+4],6,-145523070),f=v(f,l,u,d,s[p+11],10,-1120210379),d=v(d,f,l,u,s[p+2],15,718787259),u=v(u,d,f,l,s[p+9],21,-343485551),l=l+b>>>0,u=u+_>>>0,d=d+y>>>0,f=f+w>>>0}return t.endian([l,u,d,f])};a._ff=function(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},a._gg=function(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},a._hh=function(e,t,n,r,i,o,a){var s=e+(t^n^r)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},a._ii=function(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+(i>>>0)+a;return(s<<o|s>>>32-o)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(a(e,n));return n&&n.asBytes?r:n&&n.asString?o.bytesToString(r):t.bytesToHex(r)}})()},6858:function(e,t,n){"use strict";var r=n("2f9a"),i=n("ea34"),o=n("8a0d"),a=n("6ca1");e.exports=n("393a")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},"688e":function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,o=Math.max,a="[object Function]",s=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},c=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},l=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var t=this;if("function"!==typeof t||i.apply(t)!==a)throw new TypeError(r+t);for(var n,u=c(arguments,1),d=function(){if(this instanceof n){var r=t.apply(this,s(u,arguments));return Object(r)===r?r:this}return t.apply(e,s(u,arguments))},f=o(0,t.length-u.length),p=[],h=0;h<f;h++)p[h]="$"+h;if(n=Function("binder","return function ("+l(p,",")+"){ return binder.apply(this,arguments); }")(d),t.prototype){var m=function(){};m.prototype=t.prototype,n.prototype=new m,m.prototype=null}return n}},"68ee":function(e,t,n){"use strict";var r=n("e330"),i=n("d039"),o=n("1626"),a=n("f5df"),s=n("d066"),c=n("8925"),l=function(){},u=[],d=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,p=r(f.exec),h=!f.test(l),m=function(e){if(!o(e))return!1;try{return d(l,u,e),!0}catch(t){return!1}},g=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(f,c(e))}catch(t){return!0}};g.sham=!0,e.exports=!d||i((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?g:m},"693d":function(e,t,n){"use strict";var r=n("ef08"),i=n("9c0e"),o=n("0bad"),a=n("512c"),s=n("ba01"),c=n("e34a").KEY,l=n("4b8b"),u=n("b367"),d=n("92f0"),f=n("8b1a"),p=n("cc15"),h=n("fcd4"),m=n("e198"),g=n("0ae2"),v=n("4ebc"),b=n("77e9"),_=n("7a41"),y=n("0983"),w=n("6ca1"),x=n("3397"),k=n("10db"),C=n("6f4f"),A=n("1836"),S=n("4d20"),E=n("fed5"),T=n("1a14"),O=n("9876"),R=S.f,D=T.f,L=A.f,M=r.Symbol,F=r.JSON,N=F&&F.stringify,B="prototype",I=p("_hidden"),P=p("toPrimitive"),$={}.propertyIsEnumerable,j=u("symbol-registry"),z=u("symbols"),q=u("op-symbols"),H=Object[B],U="function"==typeof M&&!!E.f,W=r.QObject,V=!W||!W[B]||!W[B].findChild,G=o&&l((function(){return 7!=C(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=R(H,t);r&&delete H[t],D(e,t,n),r&&e!==H&&D(H,t,r)}:D,K=function(e){var t=z[e]=C(M[B]);return t._k=e,t},Y=U&&"symbol"==typeof M.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof M},X=function(e,t,n){return e===H&&X(q,t,n),b(e),t=x(t,!0),b(n),i(z,t)?(n.enumerable?(i(e,I)&&e[I][t]&&(e[I][t]=!1),n=C(n,{enumerable:k(0,!1)})):(i(e,I)||D(e,I,k(1,{})),e[I][t]=!0),G(e,t,n)):D(e,t,n)},Q=function(e,t){b(e);var n,r=g(t=w(t)),i=0,o=r.length;while(o>i)X(e,n=r[i++],t[n]);return e},J=function(e,t){return void 0===t?C(e):Q(C(e),t)},Z=function(e){var t=$.call(this,e=x(e,!0));return!(this===H&&i(z,e)&&!i(q,e))&&(!(t||!i(this,e)||!i(z,e)||i(this,I)&&this[I][e])||t)},ee=function(e,t){if(e=w(e),t=x(t,!0),e!==H||!i(z,t)||i(q,t)){var n=R(e,t);return!n||!i(z,t)||i(e,I)&&e[I][t]||(n.enumerable=!0),n}},te=function(e){var t,n=L(w(e)),r=[],o=0;while(n.length>o)i(z,t=n[o++])||t==I||t==c||r.push(t);return r},ne=function(e){var t,n=e===H,r=L(n?q:w(e)),o=[],a=0;while(r.length>a)!i(z,t=r[a++])||n&&!i(H,t)||o.push(z[t]);return o};U||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(q,n),i(this,I)&&i(this[I],e)&&(this[I][e]=!1),G(this,e,k(1,n))};return o&&V&&G(H,e,{configurable:!0,set:t}),K(e)},s(M[B],"toString",(function(){return this._k})),S.f=ee,T.f=X,n("6438").f=A.f=te,n("1917").f=Z,E.f=ne,o&&!n("e444")&&s(H,"propertyIsEnumerable",Z,!0),h.f=function(e){return K(p(e))}),a(a.G+a.W+a.F*!U,{Symbol:M});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)p(re[ie++]);for(var oe=O(p.store),ae=0;oe.length>ae;)m(oe[ae++]);a(a.S+a.F*!U,"Symbol",{for:function(e){return i(j,e+="")?j[e]:j[e]=M(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in j)if(j[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!U,"Object",{create:J,defineProperty:X,defineProperties:Q,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=l((function(){E.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return E.f(y(e))}}),F&&a(a.S+a.F*(!U||l((function(){var e=M();return"[null]"!=N([e])||"{}"!=N({a:e})||"{}"!=N(Object(e))}))),"JSON",{stringify:function(e){var t,n,r=[e],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=t=r[1],(_(t)||void 0!==e)&&!Y(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,N.apply(F,r)}}),M[B][P]||n("051b")(M[B],P,M[B].valueOf),d(M,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},6964:function(e,t,n){"use strict";var r=n("cb2d");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},"69a0":function(e,t,n){(function(t){e.exports=t()})((function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];n+=(r&i|~r&o)+t[0]-680876936|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&i)+t[1]-389564586|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&r)+t[2]+606105819|0,i=(i<<17|i>>>15)+o|0,r+=(i&o|~i&n)+t[3]-1044525330|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&o)+t[4]-176418897|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&i)+t[5]+1200080426|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&r)+t[6]-1473231341|0,i=(i<<17|i>>>15)+o|0,r+=(i&o|~i&n)+t[7]-45705983|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&o)+t[8]+1770035416|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&i)+t[9]-1958414417|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&r)+t[10]-42063|0,i=(i<<17|i>>>15)+o|0,r+=(i&o|~i&n)+t[11]-1990404162|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&o)+t[12]+1804603682|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&i)+t[13]-40341101|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&r)+t[14]-1502002290|0,i=(i<<17|i>>>15)+o|0,r+=(i&o|~i&n)+t[15]+1236535329|0,r=(r<<22|r>>>10)+i|0,n+=(r&o|i&~o)+t[1]-165796510|0,n=(n<<5|n>>>27)+r|0,o+=(n&i|r&~i)+t[6]-1069501632|0,o=(o<<9|o>>>23)+n|0,i+=(o&r|n&~r)+t[11]+643717713|0,i=(i<<14|i>>>18)+o|0,r+=(i&n|o&~n)+t[0]-373897302|0,r=(r<<20|r>>>12)+i|0,n+=(r&o|i&~o)+t[5]-701558691|0,n=(n<<5|n>>>27)+r|0,o+=(n&i|r&~i)+t[10]+38016083|0,o=(o<<9|o>>>23)+n|0,i+=(o&r|n&~r)+t[15]-660478335|0,i=(i<<14|i>>>18)+o|0,r+=(i&n|o&~n)+t[4]-405537848|0,r=(r<<20|r>>>12)+i|0,n+=(r&o|i&~o)+t[9]+568446438|0,n=(n<<5|n>>>27)+r|0,o+=(n&i|r&~i)+t[14]-1019803690|0,o=(o<<9|o>>>23)+n|0,i+=(o&r|n&~r)+t[3]-187363961|0,i=(i<<14|i>>>18)+o|0,r+=(i&n|o&~n)+t[8]+1163531501|0,r=(r<<20|r>>>12)+i|0,n+=(r&o|i&~o)+t[13]-1444681467|0,n=(n<<5|n>>>27)+r|0,o+=(n&i|r&~i)+t[2]-51403784|0,o=(o<<9|o>>>23)+n|0,i+=(o&r|n&~r)+t[7]+1735328473|0,i=(i<<14|i>>>18)+o|0,r+=(i&n|o&~n)+t[12]-1926607734|0,r=(r<<20|r>>>12)+i|0,n+=(r^i^o)+t[5]-378558|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^i)+t[8]-2022574463|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^r)+t[11]+1839030562|0,i=(i<<16|i>>>16)+o|0,r+=(i^o^n)+t[14]-35309556|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^o)+t[1]-1530992060|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^i)+t[4]+1272893353|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^r)+t[7]-155497632|0,i=(i<<16|i>>>16)+o|0,r+=(i^o^n)+t[10]-1094730640|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^o)+t[13]+681279174|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^i)+t[0]-358537222|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^r)+t[3]-722521979|0,i=(i<<16|i>>>16)+o|0,r+=(i^o^n)+t[6]+76029189|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^o)+t[9]-640364487|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^i)+t[12]-421815835|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^r)+t[15]+530742520|0,i=(i<<16|i>>>16)+o|0,r+=(i^o^n)+t[2]-995338651|0,r=(r<<23|r>>>9)+i|0,n+=(i^(r|~o))+t[0]-198630844|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[7]+1126891415|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[14]-1416354905|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[5]-57434055|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+t[12]+1700485571|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[3]-1894986606|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[1]-2054922799|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+t[8]+1873313359|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[15]-30611744|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[6]-1560198380|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[13]+1309151649|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+t[4]-145523070|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[11]-1120210379|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[2]+718787259|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[9]-343485551|0,r=(r<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,i,o,a,s,c,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,r(e.substring(t-64,t)));for(e=e.substring(t-64),i=e.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return a=8*l,a=a.toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),c=parseInt(a[1],16)||0,o[14]=s,o[15]=c,n(u,o),u}function a(e){var t,r,o,a,s,c,l=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)n(u,i(e.subarray(t-64,t)));for(e=t-64<l?e.subarray(t-64):new Uint8Array(0),r=e.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)o[t>>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return a=8*l,a=a.toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),c=parseInt(a[1],16)||0,o[14]=s,o[15]=c,n(u,o),u}function s(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function c(e){var t;for(t=0;t<e.length;t+=1)e[t]=s(e[t]);return e.join("")}function l(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e,t){var n,r=e.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=e.charCodeAt(n);return t?o:i}function d(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function f(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}function p(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function h(){this.reset()}return"5d41402abc4b2a76b9719d911017c592"!==c(o("hello"))&&function(e,t){var n=(65535&e)+(65535&t),r=(e>>16)+(t>>16)+(n>>16);return r<<16|65535&n},"undefined"===typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return e=0|e||0,e<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i,o,a,s,c=this.byteLength,l=t(n,c),u=c;return r!==e&&(u=t(r,c)),l>u?new ArrayBuffer(0):(i=u-l,o=new ArrayBuffer(i),a=new Uint8Array(o),s=new Uint8Array(this,l,i),a.set(s),o)}}(),h.prototype.append=function(e){return this.appendBinary(l(e)),this},h.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},h.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),n=c(this._hash),e&&(n=p(n)),this.reset(),n},h.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},h.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},h.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},h.prototype._finish=function(e,t){var r,i,o,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,e),a=0;a<16;a+=1)e[a]=0;r=8*this._length,r=r.toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,e[14]=i,e[15]=o,n(this._hash,e)},h.hash=function(e,t){return h.hashBinary(l(e),t)},h.hashBinary=function(e,t){var n=o(e),r=c(n);return t?p(r):r},h.ArrayBuffer=function(){this.reset()},h.ArrayBuffer.prototype.append=function(e){var t,r=f(this._buff.buffer,e,!0),o=r.length;for(this._length+=e.byteLength,t=64;t<=o;t+=64)n(this._hash,i(r.subarray(t-64,t)));return this._buff=t-64<o?new Uint8Array(r.buffer.slice(t-64)):new Uint8Array(0),this},h.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r[t]<<(t%4<<3);return this._finish(o,i),n=c(this._hash),e&&(n=p(n)),this.reset(),n},h.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.ArrayBuffer.prototype.getState=function(){var e=h.prototype.getState.call(this);return e.buff=d(e.buff),e},h.ArrayBuffer.prototype.setState=function(e){return e.buff=u(e.buff,!0),h.prototype.setState.call(this,e)},h.ArrayBuffer.prototype.destroy=h.prototype.destroy,h.ArrayBuffer.prototype._finish=h.prototype._finish,h.ArrayBuffer.hash=function(e,t){var n=a(new Uint8Array(e)),r=c(n);return t?p(r):r},h}))},"69f3":function(e,t,n){"use strict";var r,i,o,a=n("cdce"),s=n("da84"),c=n("861d"),l=n("9112"),u=n("1a2d"),d=n("c6cd"),f=n("f772"),p=n("d012"),h="Object already initialized",m=s.TypeError,g=s.WeakMap,v=function(e){return o(e)?i(e):r(e,{})},b=function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}};if(a||d.state){var _=d.state||(d.state=new g);_.get=_.get,_.has=_.has,_.set=_.set,r=function(e,t){if(_.has(e))throw new m(h);return t.facade=e,_.set(e,t),t},i=function(e){return _.get(e)||{}},o=function(e){return _.has(e)}}else{var y=f("state");p[y]=!0,r=function(e,t){if(u(e,y))throw new m(h);return t.facade=e,l(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},o=function(e){return u(e,y)}}e.exports={set:r,get:i,has:o,enforce:v,getterFor:b}},"6a83":function(e,t,n){var r=n("dc7a")("keys"),i=n("673b");e.exports=function(e){return r[e]||(r[e]=i(e))}},"6b75":function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},"6c59":function(e,t,n){"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},"6ca1":function(e,t,n){var r=n("9fbb"),i=n("c901");e.exports=function(e){return r(i(e))}},"6ce5":function(e,t,n){"use strict";var r=n("df7e"),i=n("ebb5"),o=i.aTypedArray,a=i.exportTypedArrayMethod,s=i.getTypedArrayConstructor;a("toReversed",(function(){return r(o(this),s(this))}))},"6d68":function(e,t){e.exports.id="ace/mode/javascript_worker",e.exports.src='"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.column<point2.column;return point1.row<point2.row||point1.row==point2.row&&bColIsAfter}function $getTransformedPoint(delta,point,moveIfEqual){var deltaIsInsert="insert"==delta.action,deltaRowShift=(deltaIsInsert?1:-1)*(delta.end.row-delta.start.row),deltaColShift=(deltaIsInsert?1:-1)*(delta.end.column-delta.start.column),deltaStart=delta.start,deltaEnd=deltaIsInsert?deltaStart:delta.end;return $pointsInOrder(point,deltaStart,moveIfEqual)?{row:point.row,column:point.column}:$pointsInOrder(deltaEnd,point,!moveIfEqual)?{row:point.row+deltaRowShift,column:point.column+(point.row==deltaEnd.row?deltaColShift:0)}:{row:deltaStart.row,column:deltaStart.column}}oop.implement(this,EventEmitter),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(delta){if(!(delta.start.row==delta.end.row&&delta.start.row!=this.row||delta.start.row>this.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/\'/g,"&#39;").replace(/</g,"&#60;")},exports.getMatchOffsets=function(string,regExp){var matches=[];return string.replace(regExp,function(str){matches.push({offset:arguments[arguments.length-2],length:str.length})}),matches},exports.deferredCall=function(fcn){var timer=null,callback=function(){timer=null,fcn()},deferred=function(timeout){return deferred.cancel(),timer=setTimeout(callback,timeout||0),deferred};return deferred.schedule=deferred,deferred.call=function(){return this.cancel(),fcn(),deferred},deferred.cancel=function(){return clearTimeout(timer),timer=null,deferred},deferred.isPending=function(){return timer},deferred},exports.delayedCall=function(fcn,defaultTimeout){var timer=null,callback=function(){timer=null,fcn()},_self=function(timeout){null==timer&&(timer=setTimeout(callback,timeout||defaultTimeout))};return _self.delay=function(timeout){timer&&clearTimeout(timer),timer=setTimeout(callback,timeout||defaultTimeout)},_self.schedule=_self,_self.call=function(){this.cancel(),fcn()},_self.cancel=function(){timer&&clearTimeout(timer),timer=null},_self.isPending=function(){return timer},_self}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(acequire,exports){"use strict";acequire("../range").Range;var Document=acequire("../document").Document,lang=acequire("../lib/lang"),Mirror=exports.Mirror=function(sender){this.sender=sender;var doc=this.doc=new Document(""),deferredUpdate=this.deferredUpdate=lang.delayedCall(this.onUpdate.bind(this)),_self=this;sender.on("change",function(e){var data=e.data;if(data[0].start)doc.applyDeltas(data);else for(var i=0;data.length>i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/javascript/jshint",["require","exports","module"],function(acequire,exports,module){module.exports=function outer(modules,cache,entry){function newRequire(name,jumped){if(!cache[name]){if(!modules[name]){var currentRequire="function"==typeof acequire&&acequire;if(!jumped&&currentRequire)return currentRequire(name,!0);if(previousRequire)return previousRequire(name,!0);var err=Error("Cannot find module \'"+name+"\'");throw err.code="MODULE_NOT_FOUND",err}var m=cache[name]={exports:{}};modules[name][0].call(m.exports,function(x){var id=modules[name][1][x];return newRequire(id?id:x)},m,m.exports,outer,modules,cache,entry)}return cache[name].exports}for(var previousRequire="function"==typeof acequire&&acequire,i=0;entry.length>i;i++)newRequire(entry[i]);return newRequire(entry[0])}({"/node_modules/browserify/node_modules/events/events.js":[function(_dereq_,module){function EventEmitter(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function isFunction(arg){return"function"==typeof arg}function isNumber(arg){return"number"==typeof arg}function isObject(arg){return"object"==typeof arg&&null!==arg}function isUndefined(arg){return void 0===arg}module.exports=EventEmitter,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||0>n||isNaN(n))throw TypeError("n must be a positive number");return this._maxListeners=n,this},EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(this._events||(this._events={}),"error"===type&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(er=arguments[1],er instanceof Error)throw er;throw TypeError(\'Uncaught, unspecified "error" event.\')}if(handler=this._events[type],isUndefined(handler))return!1;if(isFunction(handler))switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];handler.apply(this,args)}else if(isObject(handler)){for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];for(listeners=handler.slice(),len=listeners.length,i=0;len>i;i++)listeners[i].apply(this,args)}return!0},EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",type,isFunction(listener.listener)?listener.listener:listener),this._events[type]?isObject(this._events[type])?this._events[type].push(listener):this._events[type]=[this._events[type],listener]:this._events[type]=listener,isObject(this._events[type])&&!this._events[type].warned){var m;m=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners,m&&m>0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[type].length),"function"==typeof console.trace&&console.trace())}return this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError("listener must be a function");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit("removeListener",type,listener);else if(isObject(list)){for(i=length;i--\x3e0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(0>position)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit("removeListener",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)"removeListener"!==key&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events={},this\n}if(listeners=this._events[type],isFunction(listeners))this.removeListener(type,listeners);else for(;listeners.length;)this.removeListener(type,listeners[listeners.length-1]);return delete this._events[type],this},EventEmitter.prototype.listeners=function(type){var ret;return ret=this._events&&this._events[type]?isFunction(this._events[type])?[this._events[type]]:this._events[type].slice():[]},EventEmitter.listenerCount=function(emitter,type){var ret;return ret=emitter._events&&emitter._events[type]?isFunction(emitter._events[type])?1:emitter._events[type].length:0}},{}],"/node_modules/jshint/data/ascii-identifier-data.js":[function(_dereq_,module){for(var identifierStartTable=[],i=0;128>i;i++)identifierStartTable[i]=36===i||i>=65&&90>=i||95===i||i>=97&&122>=i;for(var identifierPartTable=[],i=0;128>i;i++)identifierPartTable[i]=identifierStartTable[i]||i>=48&&57>=i;module.exports={asciiIdentifierStartTable:identifierStartTable,asciiIdentifierPartTable:identifierPartTable}},{}],"/node_modules/jshint/lodash.js":[function(_dereq_,module,exports){(function(global){(function(){function baseFindIndex(array,predicate,fromRight){for(var length=array.length,index=fromRight?length:-1;fromRight?index--:length>++index;)if(predicate(array[index],index,array))return index;return-1}function baseIndexOf(array,value,fromIndex){if(value!==value)return indexOfNaN(array,fromIndex);for(var index=fromIndex-1,length=array.length;length>++index;)if(array[index]===value)return index;return-1}function baseIsFunction(value){return"function"==typeof value||!1}function baseToString(value){return"string"==typeof value?value:null==value?"":value+""}function indexOfNaN(array,fromIndex,fromRight){for(var length=array.length,index=fromIndex+(fromRight?0:-1);fromRight?index--:length>++index;){var other=array[index];if(other!==other)return index}return-1}function isObjectLike(value){return!!value&&"object"==typeof value}function lodash(){}function arrayCopy(source,array){var index=-1,length=source.length;for(array||(array=Array(length));length>++index;)array[index]=source[index];return array}function arrayEach(array,iteratee){for(var index=-1,length=array.length;length>++index&&iteratee(array[index],index,array)!==!1;);return array}function arrayFilter(array,predicate){for(var index=-1,length=array.length,resIndex=-1,result=[];length>++index;){var value=array[index];predicate(value,index,array)&&(result[++resIndex]=value)}return result}function arrayMap(array,iteratee){for(var index=-1,length=array.length,result=Array(length);length>++index;)result[index]=iteratee(array[index],index,array);return result}function arrayMax(array){for(var index=-1,length=array.length,result=NEGATIVE_INFINITY;length>++index;){var value=array[index];value>result&&(result=value)}return result}function arraySome(array,predicate){for(var index=-1,length=array.length;length>++index;)if(predicate(array[index],index,array))return!0;return!1}function assignWith(object,source,customizer){var props=keys(source);push.apply(props,getSymbols(source));for(var index=-1,length=props.length;length>++index;){var key=props[index],value=object[key],result=customizer(value,source[key],key,object,source);(result===result?result===value:value!==value)&&(value!==undefined||key in object)||(object[key]=result)}return object}function baseCopy(source,props,object){object||(object={});for(var index=-1,length=props.length;length>++index;){var key=props[index];object[key]=source[key]}return object}function baseCallback(func,thisArg,argCount){var type=typeof func;return"function"==type?thisArg===undefined?func:bindCallback(func,thisArg,argCount):null==func?identity:"object"==type?baseMatches(func):thisArg===undefined?property(func):baseMatchesProperty(func,thisArg)}function baseClone(value,isDeep,customizer,key,object,stackA,stackB){var result;if(customizer&&(result=object?customizer(value,key,object):customizer(value)),result!==undefined)return result;if(!isObject(value))return value;var isArr=isArray(value);if(isArr){if(result=initCloneArray(value),!isDeep)return arrayCopy(value,result)}else{var tag=objToString.call(value),isFunc=tag==funcTag;if(tag!=objectTag&&tag!=argsTag&&(!isFunc||object))return cloneableTags[tag]?initCloneByTag(value,tag,isDeep):object?value:{};if(result=initCloneObject(isFunc?{}:value),!isDeep)return baseAssign(result,value)}stackA||(stackA=[]),stackB||(stackB=[]);for(var length=stackA.length;length--;)if(stackA[length]==value)return stackB[length];return stackA.push(value),stackB.push(result),(isArr?arrayEach:baseForOwn)(value,function(subValue,key){result[key]=baseClone(subValue,isDeep,customizer,key,value,stackA,stackB)}),result}function baseFilter(collection,predicate){var result=[];return baseEach(collection,function(value,index,collection){predicate(value,index,collection)&&result.push(value)}),result}function baseForIn(object,iteratee){return baseFor(object,iteratee,keysIn)}function baseForOwn(object,iteratee){return baseFor(object,iteratee,keys)}function baseGet(object,path,pathKey){if(null!=object){pathKey!==undefined&&pathKey in toObject(object)&&(path=[pathKey]);for(var index=-1,length=path.length;null!=object&&length>++index;)var result=object=object[path[index]];return result}}function baseIsEqual(value,other,customizer,isLoose,stackA,stackB){if(value===other)return 0!==value||1/value==1/other;var valType=typeof value,othType=typeof other;return"function"!=valType&&"object"!=valType&&"function"!=othType&&"object"!=othType||null==value||null==other?value!==value&&other!==other:baseIsEqualDeep(value,other,baseIsEqual,customizer,isLoose,stackA,stackB)}function baseIsEqualDeep(object,other,equalFunc,customizer,isLoose,stackA,stackB){var objIsArr=isArray(object),othIsArr=isArray(other),objTag=arrayTag,othTag=arrayTag;objIsArr||(objTag=objToString.call(object),objTag==argsTag?objTag=objectTag:objTag!=objectTag&&(objIsArr=isTypedArray(object))),othIsArr||(othTag=objToString.call(other),othTag==argsTag?othTag=objectTag:othTag!=objectTag&&(othIsArr=isTypedArray(other)));var objIsObj=objTag==objectTag,othIsObj=othTag==objectTag,isSameTag=objTag==othTag;if(isSameTag&&!objIsArr&&!objIsObj)return equalByTag(object,other,objTag);if(!isLoose){var valWrapped=objIsObj&&hasOwnProperty.call(object,"__wrapped__"),othWrapped=othIsObj&&hasOwnProperty.call(other,"__wrapped__");if(valWrapped||othWrapped)return equalFunc(valWrapped?object.value():object,othWrapped?other.value():other,customizer,isLoose,stackA,stackB)}if(!isSameTag)return!1;stackA||(stackA=[]),stackB||(stackB=[]);for(var length=stackA.length;length--;)if(stackA[length]==object)return stackB[length]==other;stackA.push(object),stackB.push(other);var result=(objIsArr?equalArrays:equalObjects)(object,other,equalFunc,customizer,isLoose,stackA,stackB);return stackA.pop(),stackB.pop(),result}function baseIsMatch(object,props,values,strictCompareFlags,customizer){for(var index=-1,length=props.length,noCustomizer=!customizer;length>++index;)if(noCustomizer&&strictCompareFlags[index]?values[index]!==object[props[index]]:!(props[index]in object))return!1;for(index=-1;length>++index;){var key=props[index],objValue=object[key],srcValue=values[index];if(noCustomizer&&strictCompareFlags[index])var result=objValue!==undefined||key in object;else result=customizer?customizer(objValue,srcValue,key):undefined,result===undefined&&(result=baseIsEqual(srcValue,objValue,customizer,!0));if(!result)return!1}return!0}function baseMatches(source){var props=keys(source),length=props.length;if(!length)return constant(!0);if(1==length){var key=props[0],value=source[key];if(isStrictComparable(value))return function(object){return null==object?!1:object[key]===value&&(value!==undefined||key in toObject(object))}}for(var values=Array(length),strictCompareFlags=Array(length);length--;)value=source[props[length]],values[length]=value,strictCompareFlags[length]=isStrictComparable(value);return function(object){return null!=object&&baseIsMatch(toObject(object),props,values,strictCompareFlags)}}function baseMatchesProperty(path,value){var isArr=isArray(path),isCommon=isKey(path)&&isStrictComparable(value),pathKey=path+"";return path=toPath(path),function(object){if(null==object)return!1;var key=pathKey;if(object=toObject(object),!(!isArr&&isCommon||key in object)){if(object=1==path.length?object:baseGet(object,baseSlice(path,0,-1)),null==object)return!1;key=last(path),object=toObject(object)}return object[key]===value?value!==undefined||key in object:baseIsEqual(value,object[key],null,!0)}}function baseMerge(object,source,customizer,stackA,stackB){if(!isObject(object))return object;var isSrcArr=isLength(source.length)&&(isArray(source)||isTypedArray(source));if(!isSrcArr){var props=keys(source);push.apply(props,getSymbols(source))}return arrayEach(props||source,function(srcValue,key){if(props&&(key=srcValue,srcValue=source[key]),isObjectLike(srcValue))stackA||(stackA=[]),stackB||(stackB=[]),baseMergeDeep(object,source,key,baseMerge,customizer,stackA,stackB);else{var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=result===undefined;isCommon&&(result=srcValue),!isSrcArr&&result===undefined||!isCommon&&(result===result?result===value:value!==value)||(object[key]=result)}}),object}function baseMergeDeep(object,source,key,mergeFunc,customizer,stackA,stackB){for(var length=stackA.length,srcValue=source[key];length--;)if(stackA[length]==srcValue)return object[key]=stackB[length],undefined;var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=result===undefined;isCommon&&(result=srcValue,isLength(srcValue.length)&&(isArray(srcValue)||isTypedArray(srcValue))?result=isArray(value)?value:getLength(value)?arrayCopy(value):[]:isPlainObject(srcValue)||isArguments(srcValue)?result=isArguments(value)?toPlainObject(value):isPlainObject(value)?value:{}:isCommon=!1),stackA.push(srcValue),stackB.push(result),isCommon?object[key]=mergeFunc(result,srcValue,customizer,stackA,stackB):(result===result?result!==value:value===value)&&(object[key]=result)}function baseProperty(key){return function(object){return null==object?undefined:object[key]}}function basePropertyDeep(path){var pathKey=path+"";return path=toPath(path),function(object){return baseGet(object,path,pathKey)}}function baseSlice(array,start,end){var index=-1,length=array.length;start=null==start?0:+start||0,0>start&&(start=-start>length?0:length+start),end=end===undefined||end>length?length:+end||0,0>end&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);length>++index;)result[index]=array[index+start];return result}function baseSome(collection,predicate){var result;return baseEach(collection,function(value,index,collection){return result=predicate(value,index,collection),!result}),!!result}function baseValues(object,props){for(var index=-1,length=props.length,result=Array(length);length>++index;)result[index]=object[props[index]];return result}function binaryIndex(array,value,retHighest){var low=0,high=array?array.length:low;if("number"==typeof value&&value===value&&HALF_MAX_ARRAY_LENGTH>=high){for(;high>low;){var mid=low+high>>>1,computed=array[mid];(retHighest?value>=computed:value>computed)?low=mid+1:high=mid}return high}return binaryIndexBy(array,value,identity,retHighest)}function binaryIndexBy(array,value,iteratee,retHighest){value=iteratee(value);for(var low=0,high=array?array.length:0,valIsNaN=value!==value,valIsUndef=value===undefined;high>low;){var mid=floor((low+high)/2),computed=iteratee(array[mid]),isReflexive=computed===computed;if(valIsNaN)var setLow=isReflexive||retHighest;else setLow=valIsUndef?isReflexive&&(retHighest||computed!==undefined):retHighest?value>=computed:value>computed;setLow?low=mid+1:high=mid}return nativeMin(high,MAX_ARRAY_INDEX)}function bindCallback(func,thisArg,argCount){if("function"!=typeof func)return identity;if(thisArg===undefined)return func;switch(argCount){case 1:return function(value){return func.call(thisArg,value)};case 3:return function(value,index,collection){return func.call(thisArg,value,index,collection)};case 4:return function(accumulator,value,index,collection){return func.call(thisArg,accumulator,value,index,collection)};case 5:return function(value,other,key,object,source){return func.call(thisArg,value,other,key,object,source)}}return function(){return func.apply(thisArg,arguments)}}function bufferClone(buffer){return bufferSlice.call(buffer,0)}function createAssigner(assigner){return restParam(function(object,sources){var index=-1,length=null==object?0:sources.length,customizer=length>2&&sources[length-2],guard=length>2&&sources[2],thisArg=length>1&&sources[length-1];for("function"==typeof customizer?(customizer=bindCallback(customizer,thisArg,5),length-=2):(customizer="function"==typeof thisArg?thisArg:null,length-=customizer?1:0),guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=3>length?null:customizer,length=1);length>++index;){var source=sources[index];source&&assigner(object,source,customizer)}return object})}function createBaseEach(eachFunc,fromRight){return function(collection,iteratee){var length=collection?getLength(collection):0;if(!isLength(length))return eachFunc(collection,iteratee);for(var index=fromRight?length:-1,iterable=toObject(collection);(fromRight?index--:length>++index)&&iteratee(iterable[index],index,iterable)!==!1;);return collection}}function createBaseFor(fromRight){return function(object,iteratee,keysFunc){for(var iterable=toObject(object),props=keysFunc(object),length=props.length,index=fromRight?length:-1;fromRight?index--:length>++index;){var key=props[index];if(iteratee(iterable[key],key,iterable)===!1)break}return object}}function createFindIndex(fromRight){return function(array,predicate,thisArg){return array&&array.length?(predicate=getCallback(predicate,thisArg,3),baseFindIndex(array,predicate,fromRight)):-1}}function createForEach(arrayFunc,eachFunc){return function(collection,iteratee,thisArg){return"function"==typeof iteratee&&thisArg===undefined&&isArray(collection)?arrayFunc(collection,iteratee):eachFunc(collection,bindCallback(iteratee,thisArg,3))}}function equalArrays(array,other,equalFunc,customizer,isLoose,stackA,stackB){var index=-1,arrLength=array.length,othLength=other.length,result=!0;if(arrLength!=othLength&&!(isLoose&&othLength>arrLength))return!1;for(;result&&arrLength>++index;){var arrValue=array[index],othValue=other[index];if(result=undefined,customizer&&(result=isLoose?customizer(othValue,arrValue,index):customizer(arrValue,othValue,index)),result===undefined)if(isLoose)for(var othIndex=othLength;othIndex--&&(othValue=other[othIndex],!(result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isLoose,stackA,stackB))););else result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isLoose,stackA,stackB)}return!!result}function equalByTag(object,other,tag){switch(tag){case boolTag:case dateTag:return+object==+other;case errorTag:return object.name==other.name&&object.message==other.message;case numberTag:return object!=+object?other!=+other:0==object?1/object==1/other:object==+other;case regexpTag:case stringTag:return object==other+""}return!1}function equalObjects(object,other,equalFunc,customizer,isLoose,stackA,stackB){var objProps=keys(object),objLength=objProps.length,othProps=keys(other),othLength=othProps.length;if(objLength!=othLength&&!isLoose)return!1;for(var skipCtor=isLoose,index=-1;objLength>++index;){var key=objProps[index],result=isLoose?key in other:hasOwnProperty.call(other,key);if(result){var objValue=object[key],othValue=other[key];result=undefined,customizer&&(result=isLoose?customizer(othValue,objValue,key):customizer(objValue,othValue,key)),result===undefined&&(result=objValue&&objValue===othValue||equalFunc(objValue,othValue,customizer,isLoose,stackA,stackB))}if(!result)return!1;skipCtor||(skipCtor="constructor"==key)}if(!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&"constructor"in object&&"constructor"in other&&!("function"==typeof objCtor&&objCtor instanceof objCtor&&"function"==typeof othCtor&&othCtor instanceof othCtor))return!1}return!0}function getCallback(func,thisArg,argCount){var result=lodash.callback||callback;return result=result===callback?baseCallback:result,argCount?result(func,thisArg,argCount):result}function getIndexOf(collection,target,fromIndex){var result=lodash.indexOf||indexOf;return result=result===indexOf?baseIndexOf:result,collection?result(collection,target,fromIndex):result}function initCloneArray(array){var length=array.length,result=new array.constructor(length);return length&&"string"==typeof array[0]&&hasOwnProperty.call(array,"index")&&(result.index=array.index,result.input=array.input),result}function initCloneObject(object){var Ctor=object.constructor;return"function"==typeof Ctor&&Ctor instanceof Ctor||(Ctor=Object),new Ctor}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return bufferClone(object);case boolTag:case dateTag:return new Ctor(+object);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:var buffer=object.buffer;return new Ctor(isDeep?bufferClone(buffer):buffer,object.byteOffset,object.length);case numberTag:case stringTag:return new Ctor(object);case regexpTag:var result=new Ctor(object.source,reFlags.exec(object));result.lastIndex=object.lastIndex}return result}function isIndex(value,length){return value=+value,length=null==length?MAX_SAFE_INTEGER:length,value>-1&&0==value%1&&length>value}function isIterateeCall(value,index,object){if(!isObject(object))return!1;var type=typeof index;if("number"==type)var length=getLength(object),prereq=isLength(length)&&isIndex(index,length);else prereq="string"==type&&index in object;if(prereq){var other=object[index];return value===value?value===other:other!==other}return!1}function isKey(value,object){var type=typeof value;if("string"==type&&reIsPlainProp.test(value)||"number"==type)return!0;if(isArray(value))return!1;var result=!reIsDeepProp.test(value);return result||null!=object&&value in toObject(object)}function isLength(value){return"number"==typeof value&&value>-1&&0==value%1&&MAX_SAFE_INTEGER>=value}function isStrictComparable(value){return value===value&&(0===value?1/value>0:!isObject(value))}function shimIsPlainObject(value){var Ctor;if(lodash.support,!isObjectLike(value)||objToString.call(value)!=objectTag||!hasOwnProperty.call(value,"constructor")&&(Ctor=value.constructor,"function"==typeof Ctor&&!(Ctor instanceof Ctor)))return!1;var result;return baseForIn(value,function(subValue,key){result=key}),result===undefined||hasOwnProperty.call(value,result)}function shimKeys(object){for(var props=keysIn(object),propsLength=props.length,length=propsLength&&object.length,support=lodash.support,allowIndexes=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object)),index=-1,result=[];propsLength>++index;){var key=props[index];(allowIndexes&&isIndex(key,length)||hasOwnProperty.call(object,key))&&result.push(key)}return result}function toObject(value){return isObject(value)?value:Object(value)}function toPath(value){if(isArray(value))return value;var result=[];return baseToString(value).replace(rePropName,function(match,number,quote,string){result.push(quote?string.replace(reEscapeChar,"$1"):number||match)}),result}function indexOf(array,value,fromIndex){var length=array?array.length:0;if(!length)return-1;if("number"==typeof fromIndex)fromIndex=0>fromIndex?nativeMax(length+fromIndex,0):fromIndex;else if(fromIndex){var index=binaryIndex(array,value),other=array[index];return(value===value?value===other:other!==other)?index:-1}return baseIndexOf(array,value,fromIndex||0)}function last(array){var length=array?array.length:0;return length?array[length-1]:undefined}function slice(array,start,end){var length=array?array.length:0;return length?(end&&"number"!=typeof end&&isIterateeCall(array,start,end)&&(start=0,end=length),baseSlice(array,start,end)):[]}function unzip(array){for(var index=-1,length=(array&&array.length&&arrayMax(arrayMap(array,getLength)))>>>0,result=Array(length);length>++index;)result[index]=arrayMap(array,baseProperty(index));return result}function includes(collection,target,fromIndex,guard){var length=collection?getLength(collection):0;return isLength(length)||(collection=values(collection),length=collection.length),length?(fromIndex="number"!=typeof fromIndex||guard&&isIterateeCall(target,fromIndex,guard)?0:0>fromIndex?nativeMax(length+fromIndex,0):fromIndex||0,"string"==typeof collection||!isArray(collection)&&isString(collection)?length>fromIndex&&collection.indexOf(target,fromIndex)>-1:getIndexOf(collection,target,fromIndex)>-1):!1}function reject(collection,predicate,thisArg){var func=isArray(collection)?arrayFilter:baseFilter;return predicate=getCallback(predicate,thisArg,3),func(collection,function(value,index,collection){return!predicate(value,index,collection)})}function some(collection,predicate,thisArg){var func=isArray(collection)?arraySome:baseSome;return thisArg&&isIterateeCall(collection,predicate,thisArg)&&(predicate=null),("function"!=typeof predicate||thisArg!==undefined)&&(predicate=getCallback(predicate,thisArg,3)),func(collection,predicate)}function restParam(func,start){if("function"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return start=nativeMax(start===undefined?func.length-1:+start||0,0),function(){for(var args=arguments,index=-1,length=nativeMax(args.length-start,0),rest=Array(length);length>++index;)rest[index]=args[start+index];switch(start){case 0:return func.call(this,rest);case 1:return func.call(this,args[0],rest);case 2:return func.call(this,args[0],args[1],rest)}var otherArgs=Array(start+1);for(index=-1;start>++index;)otherArgs[index]=args[index];return otherArgs[start]=rest,func.apply(this,otherArgs)}}function clone(value,isDeep,customizer,thisArg){return isDeep&&"boolean"!=typeof isDeep&&isIterateeCall(value,isDeep,customizer)?isDeep=!1:"function"==typeof isDeep&&(thisArg=customizer,customizer=isDeep,isDeep=!1),customizer="function"==typeof customizer&&bindCallback(customizer,thisArg,1),baseClone(value,isDeep,customizer)}function isArguments(value){var length=isObjectLike(value)?value.length:undefined;return isLength(length)&&objToString.call(value)==argsTag}function isEmpty(value){if(null==value)return!0;var length=getLength(value);return isLength(length)&&(isArray(value)||isString(value)||isArguments(value)||isObjectLike(value)&&isFunction(value.splice))?!length:!keys(value).length}function isObject(value){var type=typeof value;return"function"==type||!!value&&"object"==type}function isNative(value){return null==value?!1:objToString.call(value)==funcTag?reIsNative.test(fnToString.call(value)):isObjectLike(value)&&reIsHostCtor.test(value)}function isNumber(value){return"number"==typeof value||isObjectLike(value)&&objToString.call(value)==numberTag}function isString(value){return"string"==typeof value||isObjectLike(value)&&objToString.call(value)==stringTag}function isTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[objToString.call(value)]}function toPlainObject(value){return baseCopy(value,keysIn(value))}function has(object,path){if(null==object)return!1;var result=hasOwnProperty.call(object,path);return result||isKey(path)||(path=toPath(path),object=1==path.length?object:baseGet(object,baseSlice(path,0,-1)),path=last(path),result=null!=object&&hasOwnProperty.call(object,path)),result}function keysIn(object){if(null==object)return[];isObject(object)||(object=Object(object));var length=object.length;length=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object))&&length||0;for(var Ctor=object.constructor,index=-1,isProto="function"==typeof Ctor&&Ctor.prototype===object,result=Array(length),skipIndexes=length>0;length>++index;)result[index]=index+"";for(var key in object)skipIndexes&&isIndex(key,length)||"constructor"==key&&(isProto||!hasOwnProperty.call(object,key))||result.push(key);return result}function values(object){return baseValues(object,keys(object))}function escapeRegExp(string){return string=baseToString(string),string&&reHasRegExpChars.test(string)?string.replace(reRegExpChars,"\\\\$&"):string}function callback(func,thisArg,guard){return guard&&isIterateeCall(func,thisArg,guard)&&(thisArg=null),baseCallback(func,thisArg)}function constant(value){return function(){return value}}function identity(value){return value}function property(path){return isKey(path)?baseProperty(path):basePropertyDeep(path)}var undefined,VERSION="3.7.0",FUNC_ERROR_TEXT="Expected a function",argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",reIsDeepProp=/\\.|\\[(?:[^[\\]]+|(["\'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*?)\\1\\]/,reIsPlainProp=/^\\w*$/,rePropName=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|(["\'])((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g,reRegExpChars=/[.*+?^${}()|[\\]\\/\\\\]/g,reHasRegExpChars=RegExp(reRegExpChars.source),reEscapeChar=/\\\\(\\\\)?/g,reFlags=/\\w*$/,reIsHostCtor=/^\\[object .+?Constructor\\]$/,typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[stringTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[mapTag]=cloneableTags[setTag]=cloneableTags[weakMapTag]=!1;var objectTypes={"function":!0,object:!0},freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType&&exports,freeModule=objectTypes[typeof module]&&module&&!module.nodeType&&module,freeGlobal=freeExports&&freeModule&&"object"==typeof global&&global&&global.Object&&global,freeSelf=objectTypes[typeof self]&&self&&self.Object&&self,freeWindow=objectTypes[typeof window]&&window&&window.Object&&window,moduleExports=freeModule&&freeModule.exports===freeExports&&freeExports,root=freeGlobal||freeWindow!==(this&&this.window)&&freeWindow||freeSelf||this,arrayProto=Array.prototype,objectProto=Object.prototype,fnToString=Function.prototype.toString,hasOwnProperty=objectProto.hasOwnProperty,objToString=objectProto.toString,reIsNative=RegExp("^"+escapeRegExp(objToString).replace(/toString|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$"),ArrayBuffer=isNative(ArrayBuffer=root.ArrayBuffer)&&ArrayBuffer,bufferSlice=isNative(bufferSlice=ArrayBuffer&&new ArrayBuffer(0).slice)&&bufferSlice,floor=Math.floor,getOwnPropertySymbols=isNative(getOwnPropertySymbols=Object.getOwnPropertySymbols)&&getOwnPropertySymbols,getPrototypeOf=isNative(getPrototypeOf=Object.getPrototypeOf)&&getPrototypeOf,push=arrayProto.push,preventExtensions=isNative(Object.preventExtensions=Object.preventExtensions)&&preventExtensions,propertyIsEnumerable=objectProto.propertyIsEnumerable,Uint8Array=isNative(Uint8Array=root.Uint8Array)&&Uint8Array,Float64Array=function(){try{var func=isNative(func=root.Float64Array)&&func,result=new func(new ArrayBuffer(10),0,1)&&func}catch(e){}return result}(),nativeAssign=function(){var object={1:0},func=preventExtensions&&isNative(func=Object.assign)&&func;try{func(preventExtensions(object),"xo")}catch(e){}return!object[1]&&func}(),nativeIsArray=isNative(nativeIsArray=Array.isArray)&&nativeIsArray,nativeKeys=isNative(nativeKeys=Object.keys)&&nativeKeys,nativeMax=Math.max,nativeMin=Math.min,NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,MAX_ARRAY_LENGTH=Math.pow(2,32)-1,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH-1,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH>>>1,FLOAT64_BYTES_PER_ELEMENT=Float64Array?Float64Array.BYTES_PER_ELEMENT:0,MAX_SAFE_INTEGER=Math.pow(2,53)-1,support=lodash.support={};(function(x){var Ctor=function(){this.x=x},props=[];Ctor.prototype={valueOf:x,y:x};for(var key in new Ctor)props.push(key);support.funcDecomp=/\\bthis\\b/.test(function(){return this}),support.funcNames="string"==typeof Function.name;try{support.nonEnumArgs=!propertyIsEnumerable.call(arguments,1)}catch(e){support.nonEnumArgs=!0}})(1,0);var baseAssign=nativeAssign||function(object,source){return null==source?object:baseCopy(source,getSymbols(source),baseCopy(source,keys(source),object))},baseEach=createBaseEach(baseForOwn),baseFor=createBaseFor();bufferSlice||(bufferClone=ArrayBuffer&&Uint8Array?function(buffer){var byteLength=buffer.byteLength,floatLength=Float64Array?floor(byteLength/FLOAT64_BYTES_PER_ELEMENT):0,offset=floatLength*FLOAT64_BYTES_PER_ELEMENT,result=new ArrayBuffer(byteLength);if(floatLength){var view=new Float64Array(result,0,floatLength);view.set(new Float64Array(buffer,0,floatLength))}return byteLength!=offset&&(view=new Uint8Array(result,offset),view.set(new Uint8Array(buffer,offset))),result}:constant(null));var getLength=baseProperty("length"),getSymbols=getOwnPropertySymbols?function(object){return getOwnPropertySymbols(toObject(object))}:constant([]),findLastIndex=createFindIndex(!0),zip=restParam(unzip),forEach=createForEach(arrayEach,baseEach),isArray=nativeIsArray||function(value){return isObjectLike(value)&&isLength(value.length)&&objToString.call(value)==arrayTag},isFunction=baseIsFunction(/x/)||Uint8Array&&!baseIsFunction(Uint8Array)?function(value){return objToString.call(value)==funcTag}:baseIsFunction,isPlainObject=getPrototypeOf?function(value){if(!value||objToString.call(value)!=objectTag)return!1;var valueOf=value.valueOf,objProto=isNative(valueOf)&&(objProto=getPrototypeOf(valueOf))&&getPrototypeOf(objProto);return objProto?value==objProto||getPrototypeOf(value)==objProto:shimIsPlainObject(value)}:shimIsPlainObject,assign=createAssigner(function(object,source,customizer){return customizer?assignWith(object,source,customizer):baseAssign(object,source)}),keys=nativeKeys?function(object){if(object)var Ctor=object.constructor,length=object.length;return"function"==typeof Ctor&&Ctor.prototype===object||"function"!=typeof object&&isLength(length)?shimKeys(object):isObject(object)?nativeKeys(object):[]}:shimKeys,merge=createAssigner(baseMerge);lodash.assign=assign,lodash.callback=callback,lodash.constant=constant,lodash.forEach=forEach,lodash.keys=keys,lodash.keysIn=keysIn,lodash.merge=merge,lodash.property=property,lodash.reject=reject,lodash.restParam=restParam,lodash.slice=slice,lodash.toPlainObject=toPlainObject,lodash.unzip=unzip,lodash.values=values,lodash.zip=zip,lodash.each=forEach,lodash.extend=assign,lodash.iteratee=callback,lodash.clone=clone,lodash.escapeRegExp=escapeRegExp,lodash.findLastIndex=findLastIndex,lodash.has=has,lodash.identity=identity,lodash.includes=includes,lodash.indexOf=indexOf,lodash.isArguments=isArguments,lodash.isArray=isArray,lodash.isEmpty=isEmpty,lodash.isFunction=isFunction,lodash.isNative=isNative,lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isPlainObject=isPlainObject,lodash.isString=isString,lodash.isTypedArray=isTypedArray,lodash.last=last,lodash.some=some,lodash.any=some,lodash.contains=includes,lodash.include=includes,lodash.VERSION=VERSION,freeExports&&freeModule?moduleExports?(freeModule.exports=lodash)._=lodash:freeExports._=lodash:root._=lodash\n}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],"/node_modules/jshint/src/jshint.js":[function(_dereq_,module,exports){var _=_dereq_("../lodash"),events=_dereq_("events"),vars=_dereq_("./vars.js"),messages=_dereq_("./messages.js"),Lexer=_dereq_("./lex.js").Lexer,reg=_dereq_("./reg.js"),state=_dereq_("./state.js").state,style=_dereq_("./style.js"),options=_dereq_("./options.js"),scopeManager=_dereq_("./scope-manager.js"),JSHINT=function(){"use strict";function checkOption(name,t){return name=name.trim(),/^[+-]W\\d{3}$/g.test(name)?!0:-1!==options.validNames.indexOf(name)||"jslint"===t.type||_.has(options.removed,name)?!0:(error("E001",t,name),!1)}function isString(obj){return"[object String]"===Object.prototype.toString.call(obj)}function isIdentifier(tkn,value){return tkn?tkn.identifier&&tkn.value===value?!0:!1:!1}function isReserved(token){if(!token.reserved)return!1;var meta=token.meta;if(meta&&meta.isFutureReservedWord&&state.inES5()){if(!meta.es5)return!1;if(meta.strictOnly&&!state.option.strict&&!state.isStrict())return!1;if(token.isProperty)return!1}return!0}function supplant(str,data){return str.replace(/\\{([^{}]*)\\}/g,function(a,b){var r=data[b];return"string"==typeof r||"number"==typeof r?r:a})}function combine(dest,src){Object.keys(src).forEach(function(name){_.has(JSHINT.blacklist,name)||(dest[name]=src[name])})}function processenforceall(){if(state.option.enforceall){for(var enforceopt in options.bool.enforcing)void 0!==state.option[enforceopt]||options.noenforceall[enforceopt]||(state.option[enforceopt]=!0);for(var relaxopt in options.bool.relaxing)void 0===state.option[relaxopt]&&(state.option[relaxopt]=!1)}}function assume(){processenforceall(),state.option.esversion||state.option.moz||(state.option.esversion=state.option.es3?3:state.option.esnext?6:5),state.inES5()&&combine(predefined,vars.ecmaIdentifiers[5]),state.inES6()&&combine(predefined,vars.ecmaIdentifiers[6]),state.option.module&&(state.option.strict===!0&&(state.option.strict="global"),state.inES6()||warning("W134",state.tokens.next,"module",6)),state.option.couch&&combine(predefined,vars.couch),state.option.qunit&&combine(predefined,vars.qunit),state.option.rhino&&combine(predefined,vars.rhino),state.option.shelljs&&(combine(predefined,vars.shelljs),combine(predefined,vars.node)),state.option.typed&&combine(predefined,vars.typed),state.option.phantom&&(combine(predefined,vars.phantom),state.option.strict===!0&&(state.option.strict="global")),state.option.prototypejs&&combine(predefined,vars.prototypejs),state.option.node&&(combine(predefined,vars.node),combine(predefined,vars.typed),state.option.strict===!0&&(state.option.strict="global")),state.option.devel&&combine(predefined,vars.devel),state.option.dojo&&combine(predefined,vars.dojo),state.option.browser&&(combine(predefined,vars.browser),combine(predefined,vars.typed)),state.option.browserify&&(combine(predefined,vars.browser),combine(predefined,vars.typed),combine(predefined,vars.browserify),state.option.strict===!0&&(state.option.strict="global")),state.option.nonstandard&&combine(predefined,vars.nonstandard),state.option.jasmine&&combine(predefined,vars.jasmine),state.option.jquery&&combine(predefined,vars.jquery),state.option.mootools&&combine(predefined,vars.mootools),state.option.worker&&combine(predefined,vars.worker),state.option.wsh&&combine(predefined,vars.wsh),state.option.globalstrict&&state.option.strict!==!1&&(state.option.strict="global"),state.option.yui&&combine(predefined,vars.yui),state.option.mocha&&combine(predefined,vars.mocha)}function quit(code,line,chr){var percentage=Math.floor(100*(line/state.lines.length)),message=messages.errors[code].desc;throw{name:"JSHintError",line:line,character:chr,message:message+" ("+percentage+"% scanned).",raw:message,code:code}}function removeIgnoredMessages(){var ignored=state.ignoredLines;_.isEmpty(ignored)||(JSHINT.errors=_.reject(JSHINT.errors,function(err){return ignored[err.line]}))}function warning(code,t,a,b,c,d){var ch,l,w,msg;if(/^W\\d{3}$/.test(code)){if(state.ignored[code])return;msg=messages.warnings[code]}else/E\\d{3}/.test(code)?msg=messages.errors[code]:/I\\d{3}/.test(code)&&(msg=messages.info[code]);return t=t||state.tokens.next||{},"(end)"===t.id&&(t=state.tokens.curr),l=t.line||0,ch=t.from||0,w={id:"(error)",raw:msg.desc,code:msg.code,evidence:state.lines[l-1]||"",line:l,character:ch,scope:JSHINT.scope,a:a,b:b,c:c,d:d},w.reason=supplant(msg.desc,w),JSHINT.errors.push(w),removeIgnoredMessages(),JSHINT.errors.length>=state.option.maxerr&&quit("E043",l,ch),w}function warningAt(m,l,ch,a,b,c,d){return warning(m,{line:l,from:ch},a,b,c,d)}function error(m,t,a,b,c,d){warning(m,t,a,b,c,d)}function errorAt(m,l,ch,a,b,c,d){return error(m,{line:l,from:ch},a,b,c,d)}function addInternalSrc(elem,src){var i;return i={id:"(internal)",elem:elem,value:src},JSHINT.internals.push(i),i}function doOption(){var nt=state.tokens.next,body=nt.body.match(/(-\\s+)?[^\\s,:]+(?:\\s*:\\s*(-\\s+)?[^\\s,]+)?/g)||[],predef={};if("globals"===nt.type){body.forEach(function(g,idx){g=g.split(":");var key=(g[0]||"").trim(),val=(g[1]||"").trim();if("-"===key||!key.length){if(idx>0&&idx===body.length-1)return;return error("E002",nt),void 0}"-"===key.charAt(0)?(key=key.slice(1),val=!1,JSHINT.blacklist[key]=key,delete predefined[key]):predef[key]="true"===val}),combine(predefined,predef);for(var key in predef)_.has(predef,key)&&(declared[key]=nt)}"exported"===nt.type&&body.forEach(function(e,idx){if(!e.length){if(idx>0&&idx===body.length-1)return;return error("E002",nt),void 0}state.funct["(scope)"].addExported(e)}),"members"===nt.type&&(membersOnly=membersOnly||{},body.forEach(function(m){var ch1=m.charAt(0),ch2=m.charAt(m.length-1);ch1!==ch2||\'"\'!==ch1&&"\'"!==ch1||(m=m.substr(1,m.length-2).replace(\'\\\\"\',\'"\')),membersOnly[m]=!1}));var numvals=["maxstatements","maxparams","maxdepth","maxcomplexity","maxerr","maxlen","indent"];("jshint"===nt.type||"jslint"===nt.type)&&(body.forEach(function(g){g=g.split(":");var key=(g[0]||"").trim(),val=(g[1]||"").trim();if(checkOption(key,nt))if(numvals.indexOf(key)>=0)if("false"!==val){if(val=+val,"number"!=typeof val||!isFinite(val)||0>=val||Math.floor(val)!==val)return error("E032",nt,g[1].trim()),void 0;state.option[key]=val}else state.option[key]="indent"===key?4:!1;else{if("validthis"===key)return state.funct["(global)"]?void error("E009"):"true"!==val&&"false"!==val?void error("E002",nt):(state.option.validthis="true"===val,void 0);if("quotmark"!==key)if("shadow"!==key)if("unused"!==key)if("latedef"!==key)if("ignore"!==key)if("strict"!==key){"module"===key&&(hasParsedCode(state.funct)||error("E055",state.tokens.next,"module"));var esversions={es3:3,es5:5,esnext:6};if(!_.has(esversions,key)){if("esversion"===key){switch(val){case"5":state.inES5(!0)&&warning("I003");case"3":case"6":state.option.moz=!1,state.option.esversion=+val;break;case"2015":state.option.moz=!1,state.option.esversion=6;break;default:error("E002",nt)}return hasParsedCode(state.funct)||error("E055",state.tokens.next,"esversion"),void 0}var match=/^([+-])(W\\d{3})$/g.exec(key);if(match)return state.ignored[match[2]]="-"===match[1],void 0;var tn;return"true"===val||"false"===val?("jslint"===nt.type?(tn=options.renamed[key]||key,state.option[tn]="true"===val,void 0!==options.inverted[tn]&&(state.option[tn]=!state.option[tn])):state.option[key]="true"===val,"newcap"===key&&(state.option["(explicitNewcap)"]=!0),void 0):(error("E002",nt),void 0)}switch(val){case"true":state.option.moz=!1,state.option.esversion=esversions[key];break;case"false":state.option.moz||(state.option.esversion=5);break;default:error("E002",nt)}}else switch(val){case"true":state.option.strict=!0;break;case"false":state.option.strict=!1;break;case"func":case"global":case"implied":state.option.strict=val;break;default:error("E002",nt)}else switch(val){case"line":state.ignoredLines[nt.line]=!0,removeIgnoredMessages();break;default:error("E002",nt)}else switch(val){case"true":state.option.latedef=!0;break;case"false":state.option.latedef=!1;break;case"nofunc":state.option.latedef="nofunc";break;default:error("E002",nt)}else switch(val){case"true":state.option.unused=!0;break;case"false":state.option.unused=!1;break;case"vars":case"strict":state.option.unused=val;break;default:error("E002",nt)}else switch(val){case"true":state.option.shadow=!0;break;case"outer":state.option.shadow="outer";break;case"false":case"inner":state.option.shadow="inner";break;default:error("E002",nt)}else switch(val){case"true":case"false":state.option.quotmark="true"===val;break;case"double":case"single":state.option.quotmark=val;break;default:error("E002",nt)}}}),assume())}function peek(p){var t,i=p||0,j=lookahead.length;if(j>i)return lookahead[i];for(;i>=j;)t=lookahead[j],t||(t=lookahead[j]=lex.token()),j+=1;return t||"(end)"!==state.tokens.next.id?t:state.tokens.next}function peekIgnoreEOL(){var t,i=0;do t=peek(i++);while("(endline)"===t.id);return t}function advance(id,t){switch(state.tokens.curr.id){case"(number)":"."===state.tokens.next.id&&warning("W005",state.tokens.curr);break;case"-":("-"===state.tokens.next.id||"--"===state.tokens.next.id)&&warning("W006");break;case"+":("+"===state.tokens.next.id||"++"===state.tokens.next.id)&&warning("W007")}for(id&&state.tokens.next.id!==id&&(t?"(end)"===state.tokens.next.id?error("E019",t,t.id):error("E020",state.tokens.next,id,t.id,t.line,state.tokens.next.value):("(identifier)"!==state.tokens.next.type||state.tokens.next.value!==id)&&warning("W116",state.tokens.next,id,state.tokens.next.value)),state.tokens.prev=state.tokens.curr,state.tokens.curr=state.tokens.next;;){if(state.tokens.next=lookahead.shift()||lex.token(),state.tokens.next||quit("E041",state.tokens.curr.line),"(end)"===state.tokens.next.id||"(error)"===state.tokens.next.id)return;if(state.tokens.next.check&&state.tokens.next.check(),state.tokens.next.isSpecial)"falls through"===state.tokens.next.type?state.tokens.curr.caseFallsThrough=!0:doOption();else if("(endline)"!==state.tokens.next.id)break}}function isInfix(token){return token.infix||!token.identifier&&!token.template&&!!token.led}function isEndOfExpr(){var curr=state.tokens.curr,next=state.tokens.next;return";"===next.id||"}"===next.id||":"===next.id?!0:isInfix(next)===isInfix(curr)||"yield"===curr.id&&state.inMoz()?curr.line!==startLine(next):!1}function isBeginOfExpr(prev){return!prev.left&&"unary"!==prev.arity}function expression(rbp,initial){var left,isArray=!1,isObject=!1,isLetExpr=!1;state.nameStack.push(),initial||"let"!==state.tokens.next.value||"("!==peek(0).value||(state.inMoz()||warning("W118",state.tokens.next,"let expressions"),isLetExpr=!0,state.funct["(scope)"].stack(),advance("let"),advance("("),state.tokens.prev.fud(),advance(")")),"(end)"===state.tokens.next.id&&error("E006",state.tokens.curr);var isDangerous=state.option.asi&&state.tokens.prev.line!==startLine(state.tokens.curr)&&_.contains(["]",")"],state.tokens.prev.id)&&_.contains(["[","("],state.tokens.curr.id);if(isDangerous&&warning("W014",state.tokens.curr,state.tokens.curr.id),advance(),initial&&(state.funct["(verb)"]=state.tokens.curr.value,state.tokens.curr.beginsStmt=!0),initial===!0&&state.tokens.curr.fud)left=state.tokens.curr.fud();else for(state.tokens.curr.nud?left=state.tokens.curr.nud():error("E030",state.tokens.curr,state.tokens.curr.id);(state.tokens.next.lbp>rbp||"(template)"===state.tokens.next.type)&&!isEndOfExpr();)isArray="Array"===state.tokens.curr.value,isObject="Object"===state.tokens.curr.value,left&&(left.value||left.first&&left.first.value)&&("new"!==left.value||left.first&&left.first.value&&"."===left.first.value)&&(isArray=!1,left.value!==state.tokens.curr.value&&(isObject=!1)),advance(),isArray&&"("===state.tokens.curr.id&&")"===state.tokens.next.id&&warning("W009",state.tokens.curr),isObject&&"("===state.tokens.curr.id&&")"===state.tokens.next.id&&warning("W010",state.tokens.curr),left&&state.tokens.curr.led?left=state.tokens.curr.led(left):error("E033",state.tokens.curr,state.tokens.curr.id);return isLetExpr&&state.funct["(scope)"].unstack(),state.nameStack.pop(),left}function startLine(token){return token.startLine||token.line}function nobreaknonadjacent(left,right){left=left||state.tokens.curr,right=right||state.tokens.next,state.option.laxbreak||left.line===startLine(right)||warning("W014",right,right.value)}function nolinebreak(t){t=t||state.tokens.curr,t.line!==startLine(state.tokens.next)&&warning("E022",t,t.value)}function nobreakcomma(left,right){left.line!==startLine(right)&&(state.option.laxcomma||(comma.first&&(warning("I001"),comma.first=!1),warning("W014",left,right.value)))}function comma(opts){if(opts=opts||{},opts.peek?nobreakcomma(state.tokens.prev,state.tokens.curr):(nobreakcomma(state.tokens.curr,state.tokens.next),advance(",")),state.tokens.next.identifier&&(!opts.property||!state.inES5()))switch(state.tokens.next.value){case"break":case"case":case"catch":case"continue":case"default":case"do":case"else":case"finally":case"for":case"if":case"in":case"instanceof":case"return":case"switch":case"throw":case"try":case"var":case"let":case"while":case"with":return error("E024",state.tokens.next,state.tokens.next.value),!1}if("(punctuator)"===state.tokens.next.type)switch(state.tokens.next.value){case"}":case"]":case",":if(opts.allowTrailing)return!0;case")":return error("E024",state.tokens.next,state.tokens.next.value),!1}return!0}function symbol(s,p){var x=state.syntax[s];return x&&"object"==typeof x||(state.syntax[s]=x={id:s,lbp:p,value:s}),x}function delim(s){var x=symbol(s,0);return x.delim=!0,x}function stmt(s,f){var x=delim(s);return x.identifier=x.reserved=!0,x.fud=f,x}function blockstmt(s,f){var x=stmt(s,f);return x.block=!0,x}function reserveName(x){var c=x.id.charAt(0);return(c>="a"&&"z">=c||c>="A"&&"Z">=c)&&(x.identifier=x.reserved=!0),x}function prefix(s,f){var x=symbol(s,150);return reserveName(x),x.nud="function"==typeof f?f:function(){return this.arity="unary",this.right=expression(150),("++"===this.id||"--"===this.id)&&(state.option.plusplus?warning("W016",this,this.id):!this.right||this.right.identifier&&!isReserved(this.right)||"."===this.right.id||"["===this.right.id||warning("W017",this),this.right&&this.right.isMetaProperty?error("E031",this):this.right&&this.right.identifier&&state.funct["(scope)"].block.modify(this.right.value,this)),this},x}function type(s,f){var x=delim(s);return x.type=s,x.nud=f,x}function reserve(name,func){var x=type(name,func);return x.identifier=!0,x.reserved=!0,x}function FutureReservedWord(name,meta){var x=type(name,meta&&meta.nud||function(){return this});return meta=meta||{},meta.isFutureReservedWord=!0,x.value=name,x.identifier=!0,x.reserved=!0,x.meta=meta,x}function reservevar(s,v){return reserve(s,function(){return"function"==typeof v&&v(this),this})}function infix(s,f,p,w){var x=symbol(s,p);return reserveName(x),x.infix=!0,x.led=function(left){return w||nobreaknonadjacent(state.tokens.prev,state.tokens.curr),"in"!==s&&"instanceof"!==s||"!"!==left.id||warning("W018",left,"!"),"function"==typeof f?f(left,this):(this.left=left,this.right=expression(p),this)},x}function application(s){var x=symbol(s,42);return x.led=function(left){return nobreaknonadjacent(state.tokens.prev,state.tokens.curr),this.left=left,this.right=doFunction({type:"arrow",loneArg:left}),this},x}function relation(s,f){var x=symbol(s,100);return x.led=function(left){nobreaknonadjacent(state.tokens.prev,state.tokens.curr),this.left=left;var right=this.right=expression(100);return isIdentifier(left,"NaN")||isIdentifier(right,"NaN")?warning("W019",this):f&&f.apply(this,[left,right]),left&&right||quit("E041",state.tokens.curr.line),"!"===left.id&&warning("W018",left,"!"),"!"===right.id&&warning("W018",right,"!"),this},x}function isPoorRelation(node){return node&&("(number)"===node.type&&0===+node.value||"(string)"===node.type&&""===node.value||"null"===node.type&&!state.option.eqnull||"true"===node.type||"false"===node.type||"undefined"===node.type)}function isTypoTypeof(left,right,state){var values;return state.option.notypeof?!1:left&&right?(values=state.inES6()?typeofValues.es6:typeofValues.es3,"(identifier)"===right.type&&"typeof"===right.value&&"(string)"===left.type?!_.contains(values,left.value):!1):!1}function isGlobalEval(left,state){var isGlobal=!1;return"this"===left.type&&null===state.funct["(context)"]?isGlobal=!0:"(identifier)"===left.type&&(state.option.node&&"global"===left.value?isGlobal=!0:!state.option.browser||"window"!==left.value&&"document"!==left.value||(isGlobal=!0)),isGlobal}function findNativePrototype(left){function walkPrototype(obj){return"object"==typeof obj?"prototype"===obj.right?obj:walkPrototype(obj.left):void 0}function walkNative(obj){for(;!obj.identifier&&"object"==typeof obj.left;)obj=obj.left;return obj.identifier&&natives.indexOf(obj.value)>=0?obj.value:void 0}var natives=["Array","ArrayBuffer","Boolean","Collator","DataView","Date","DateTimeFormat","Error","EvalError","Float32Array","Float64Array","Function","Infinity","Intl","Int16Array","Int32Array","Int8Array","Iterator","Number","NumberFormat","Object","RangeError","ReferenceError","RegExp","StopIteration","String","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError"],prototype=walkPrototype(left);return prototype?walkNative(prototype):void 0}function checkLeftSideAssign(left,assignToken,options){var allowDestructuring=options&&options.allowDestructuring;if(assignToken=assignToken||left,state.option.freeze){var nativeObject=findNativePrototype(left);nativeObject&&warning("W121",left,nativeObject)}return left.identifier&&!left.isMetaProperty&&state.funct["(scope)"].block.reassign(left.value,left),"."===left.id?((!left.left||"arguments"===left.left.value&&!state.isStrict())&&warning("E031",assignToken),state.nameStack.set(state.tokens.prev),!0):"{"===left.id||"["===left.id?(allowDestructuring&&state.tokens.curr.left.destructAssign?state.tokens.curr.left.destructAssign.forEach(function(t){t.id&&state.funct["(scope)"].block.modify(t.id,t.token)}):"{"!==left.id&&left.left?"arguments"!==left.left.value||state.isStrict()||warning("E031",assignToken):warning("E031",assignToken),"["===left.id&&state.nameStack.set(left.right),!0):left.isMetaProperty?(error("E031",assignToken),!0):left.identifier&&!isReserved(left)?("exception"===state.funct["(scope)"].labeltype(left.value)&&warning("W022",left),state.nameStack.set(left),!0):(left===state.syntax["function"]&&warning("W023",state.tokens.curr),!1)}function assignop(s,f,p){var x=infix(s,"function"==typeof f?f:function(left,that){return that.left=left,left&&checkLeftSideAssign(left,that,{allowDestructuring:!0})?(that.right=expression(10),that):(error("E031",that),void 0)},p);return x.exps=!0,x.assign=!0,x}function bitwise(s,f,p){var x=symbol(s,p);return reserveName(x),x.led="function"==typeof f?f:function(left){return state.option.bitwise&&warning("W016",this,this.id),this.left=left,this.right=expression(p),this},x}function bitwiseassignop(s){return assignop(s,function(left,that){return state.option.bitwise&&warning("W016",that,that.id),left&&checkLeftSideAssign(left,that)?(that.right=expression(10),that):(error("E031",that),void 0)},20)}function suffix(s){var x=symbol(s,150);return x.led=function(left){return state.option.plusplus?warning("W016",this,this.id):left.identifier&&!isReserved(left)||"."===left.id||"["===left.id||warning("W017",this),left.isMetaProperty?error("E031",this):left&&left.identifier&&state.funct["(scope)"].block.modify(left.value,left),this.left=left,this},x}function optionalidentifier(fnparam,prop,preserve){if(state.tokens.next.identifier){preserve||advance();var curr=state.tokens.curr,val=state.tokens.curr.value;return isReserved(curr)?prop&&state.inES5()?val:fnparam&&"undefined"===val?val:(warning("W024",state.tokens.curr,state.tokens.curr.id),val):val}}function identifier(fnparam,prop){var i=optionalidentifier(fnparam,prop,!1);if(i)return i;if("..."===state.tokens.next.value){if(state.inES6(!0)||warning("W119",state.tokens.next,"spread/rest operator","6"),advance(),checkPunctuator(state.tokens.next,"..."))for(warning("E024",state.tokens.next,"...");checkPunctuator(state.tokens.next,"...");)advance();return state.tokens.next.identifier?identifier(fnparam,prop):(warning("E024",state.tokens.curr,"..."),void 0)}error("E030",state.tokens.next,state.tokens.next.value),";"!==state.tokens.next.id&&advance()}function reachable(controlToken){var t,i=0;if(";"===state.tokens.next.id&&!controlToken.inBracelessBlock)for(;;){do t=peek(i),i+=1;while("(end)"!==t.id&&"(comment)"===t.id);if(t.reach)return;if("(endline)"!==t.id){if("function"===t.id){state.option.latedef===!0&&warning("W026",t);break}warning("W027",t,t.value,controlToken.value);break}}}function parseFinalSemicolon(){if(";"!==state.tokens.next.id){if(state.tokens.next.isUnclosed)return advance();var sameLine=startLine(state.tokens.next)===state.tokens.curr.line&&"(end)"!==state.tokens.next.id,blockEnd=checkPunctuator(state.tokens.next,"}");sameLine&&!blockEnd?errorAt("E058",state.tokens.curr.line,state.tokens.curr.character):state.option.asi||(blockEnd&&!state.option.lastsemic||!sameLine)&&warningAt("W033",state.tokens.curr.line,state.tokens.curr.character)}else advance(";")}function statement(){var r,i=indent,t=state.tokens.next,hasOwnScope=!1;if(";"===t.id)return advance(";"),void 0;var res=isReserved(t);if(res&&t.meta&&t.meta.isFutureReservedWord&&":"===peek().id&&(warning("W024",t,t.id),res=!1),t.identifier&&!res&&":"===peek().id&&(advance(),advance(":"),hasOwnScope=!0,state.funct["(scope)"].stack(),state.funct["(scope)"].block.addBreakLabel(t.value,{token:state.tokens.curr}),state.tokens.next.labelled||"{"===state.tokens.next.value||warning("W028",state.tokens.next,t.value,state.tokens.next.value),state.tokens.next.label=t.value,t=state.tokens.next),"{"===t.id){var iscase="case"===state.funct["(verb)"]&&":"===state.tokens.curr.value;return block(!0,!0,!1,!1,iscase),void 0}return r=expression(0,!0),!r||r.identifier&&"function"===r.value||"(punctuator)"===r.type&&r.left&&r.left.identifier&&"function"===r.left.value||state.isStrict()||"global"!==state.option.strict||warning("E007"),t.block||(state.option.expr||r&&r.exps?state.option.nonew&&r&&r.left&&"("===r.id&&"new"===r.left.id&&warning("W031",t):warning("W030",state.tokens.curr),parseFinalSemicolon()),indent=i,hasOwnScope&&state.funct["(scope)"].unstack(),r}function statements(){for(var p,a=[];!state.tokens.next.reach&&"(end)"!==state.tokens.next.id;)";"===state.tokens.next.id?(p=peek(),(!p||"("!==p.id&&"["!==p.id)&&warning("W032"),advance(";")):a.push(statement());return a}function directives(){for(var i,p,pn;"(string)"===state.tokens.next.id;){if(p=peek(0),"(endline)"===p.id){i=1;do pn=peek(i++);while("(endline)"===pn.id);if(";"===pn.id)p=pn;else{if("["===pn.value||"."===pn.value)break;state.option.asi&&"("!==pn.value||warning("W033",state.tokens.next)}}else{if("."===p.id||"["===p.id)break;";"!==p.id&&warning("W033",p)}advance();var directive=state.tokens.curr.value;(state.directive[directive]||"use strict"===directive&&"implied"===state.option.strict)&&warning("W034",state.tokens.curr,directive),state.directive[directive]=!0,";"===p.id&&advance(";")}state.isStrict()&&(state.option["(explicitNewcap)"]||(state.option.newcap=!0),state.option.undef=!0)}function block(ordinary,stmt,isfunc,isfatarrow,iscase){var a,m,t,line,d,b=inblock,old_indent=indent;inblock=ordinary,t=state.tokens.next;var metrics=state.funct["(metrics)"];if(metrics.nestedBlockDepth+=1,metrics.verifyMaxNestedBlockDepthPerFunction(),"{"===state.tokens.next.id){if(advance("{"),state.funct["(scope)"].stack(),line=state.tokens.curr.line,"}"!==state.tokens.next.id){for(indent+=state.option.indent;!ordinary&&state.tokens.next.from>indent;)indent+=state.option.indent;if(isfunc){m={};for(d in state.directive)_.has(state.directive,d)&&(m[d]=state.directive[d]);directives(),state.option.strict&&state.funct["(context)"]["(global)"]&&(m["use strict"]||state.isStrict()||warning("E007"))}a=statements(),metrics.statementCount+=a.length,indent-=state.option.indent}advance("}",t),isfunc&&(state.funct["(scope)"].validateParams(),m&&(state.directive=m)),state.funct["(scope)"].unstack(),indent=old_indent}else if(ordinary)state.funct["(noblockscopedvar)"]="for"!==state.tokens.next.id,state.funct["(scope)"].stack(),(!stmt||state.option.curly)&&warning("W116",state.tokens.next,"{",state.tokens.next.value),state.tokens.next.inBracelessBlock=!0,indent+=state.option.indent,a=[statement()],indent-=state.option.indent,state.funct["(scope)"].unstack(),delete state.funct["(noblockscopedvar)"];else if(isfunc){if(state.funct["(scope)"].stack(),m={},!stmt||isfatarrow||state.inMoz()||error("W118",state.tokens.curr,"function closure expressions"),!stmt)for(d in state.directive)_.has(state.directive,d)&&(m[d]=state.directive[d]);expression(10),state.option.strict&&state.funct["(context)"]["(global)"]&&(m["use strict"]||state.isStrict()||warning("E007")),state.funct["(scope)"].unstack()}else error("E021",state.tokens.next,"{",state.tokens.next.value);switch(state.funct["(verb)"]){case"break":case"continue":case"return":case"throw":if(iscase)break;default:state.funct["(verb)"]=null}return inblock=b,!ordinary||!state.option.noempty||a&&0!==a.length||warning("W035",state.tokens.prev),metrics.nestedBlockDepth-=1,a}function countMember(m){membersOnly&&"boolean"!=typeof membersOnly[m]&&warning("W036",state.tokens.curr,m),"number"==typeof member[m]?member[m]+=1:member[m]=1}function comprehensiveArrayExpression(){var res={};res.exps=!0,state.funct["(comparray)"].stack();var reversed=!1;return"for"!==state.tokens.next.value&&(reversed=!0,state.inMoz()||warning("W116",state.tokens.next,"for",state.tokens.next.value),state.funct["(comparray)"].setState("use"),res.right=expression(10)),advance("for"),"each"===state.tokens.next.value&&(advance("each"),state.inMoz()||warning("W118",state.tokens.curr,"for each")),advance("("),state.funct["(comparray)"].setState("define"),res.left=expression(130),_.contains(["in","of"],state.tokens.next.value)?advance():error("E045",state.tokens.curr),state.funct["(comparray)"].setState("generate"),expression(10),advance(")"),"if"===state.tokens.next.value&&(advance("if"),advance("("),state.funct["(comparray)"].setState("filter"),res.filter=expression(10),advance(")")),reversed||(state.funct["(comparray)"].setState("use"),res.right=expression(10)),advance("]"),state.funct["(comparray)"].unstack(),res}function isMethod(){return state.funct["(statement)"]&&"class"===state.funct["(statement)"].type||state.funct["(context)"]&&"class"===state.funct["(context)"]["(verb)"]}function isPropertyName(token){return token.identifier||"(string)"===token.id||"(number)"===token.id}function propertyName(preserveOrToken){var id,preserve=!0;return"object"==typeof preserveOrToken?id=preserveOrToken:(preserve=preserveOrToken,id=optionalidentifier(!1,!0,preserve)),id?"object"==typeof id&&("(string)"===id.id||"(identifier)"===id.id?id=id.value:"(number)"===id.id&&(id=""+id.value)):"(string)"===state.tokens.next.id?(id=state.tokens.next.value,preserve||advance()):"(number)"===state.tokens.next.id&&(id=""+state.tokens.next.value,preserve||advance()),"hasOwnProperty"===id&&warning("W001"),id}function functionparams(options){function addParam(addParamArgs){state.funct["(scope)"].addParam.apply(state.funct["(scope)"],addParamArgs)}var next,ident,t,paramsIds=[],tokens=[],pastDefault=!1,pastRest=!1,arity=0,loneArg=options&&options.loneArg;if(loneArg&&loneArg.identifier===!0)return state.funct["(scope)"].addParam(loneArg.value,loneArg),{arity:1,params:[loneArg.value]};if(next=state.tokens.next,options&&options.parsedOpening||advance("("),")"===state.tokens.next.id)return advance(")"),void 0;for(;;){arity++;var currentParams=[];if(_.contains(["{","["],state.tokens.next.id)){tokens=destructuringPattern();for(t in tokens)t=tokens[t],t.id&&(paramsIds.push(t.id),currentParams.push([t.id,t.token]))}else if(checkPunctuator(state.tokens.next,"...")&&(pastRest=!0),ident=identifier(!0))paramsIds.push(ident),currentParams.push([ident,state.tokens.curr]);else for(;!checkPunctuators(state.tokens.next,[",",")"]);)advance();if(pastDefault&&"="!==state.tokens.next.id&&error("W138",state.tokens.current),"="===state.tokens.next.id&&(state.inES6()||warning("W119",state.tokens.next,"default parameters","6"),advance("="),pastDefault=!0,expression(10)),currentParams.forEach(addParam),","!==state.tokens.next.id)return advance(")",next),{arity:arity,params:paramsIds};pastRest&&warning("W131",state.tokens.next),comma()}}function functor(name,token,overwrites){var funct={"(name)":name,"(breakage)":0,"(loopage)":0,"(tokens)":{},"(properties)":{},"(catch)":!1,"(global)":!1,"(line)":null,"(character)":null,"(metrics)":null,"(statement)":null,"(context)":null,"(scope)":null,"(comparray)":null,"(generator)":null,"(arrow)":null,"(params)":null};return token&&_.extend(funct,{"(line)":token.line,"(character)":token.character,"(metrics)":createMetrics(token)}),_.extend(funct,overwrites),funct["(context)"]&&(funct["(scope)"]=funct["(context)"]["(scope)"],funct["(comparray)"]=funct["(context)"]["(comparray)"]),funct}function isFunctor(token){return"(scope)"in token}function hasParsedCode(funct){return funct["(global)"]&&!funct["(verb)"]}function doTemplateLiteral(left){function end(){if(state.tokens.curr.template&&state.tokens.curr.tail&&state.tokens.curr.context===ctx)return!0;var complete=state.tokens.next.template&&state.tokens.next.tail&&state.tokens.next.context===ctx;return complete&&advance(),complete||state.tokens.next.isUnclosed}var ctx=this.context,noSubst=this.noSubst,depth=this.depth;if(!noSubst)for(;!end();)!state.tokens.next.template||state.tokens.next.depth>depth?expression(0):advance();return{id:"(template)",type:"(template)",tag:left}}function doFunction(options){var f,token,name,statement,classExprBinding,isGenerator,isArrow,ignoreLoopFunc,oldOption=state.option,oldIgnored=state.ignored;options&&(name=options.name,statement=options.statement,classExprBinding=options.classExprBinding,isGenerator="generator"===options.type,isArrow="arrow"===options.type,ignoreLoopFunc=options.ignoreLoopFunc),state.option=Object.create(state.option),state.ignored=Object.create(state.ignored),state.funct=functor(name||state.nameStack.infer(),state.tokens.next,{"(statement)":statement,"(context)":state.funct,"(arrow)":isArrow,"(generator)":isGenerator}),f=state.funct,token=state.tokens.curr,token.funct=state.funct,functions.push(state.funct),state.funct["(scope)"].stack("functionouter");var internallyAccessibleName=name||classExprBinding;internallyAccessibleName&&state.funct["(scope)"].block.add(internallyAccessibleName,classExprBinding?"class":"function",state.tokens.curr,!1),state.funct["(scope)"].stack("functionparams");var paramsInfo=functionparams(options);return paramsInfo?(state.funct["(params)"]=paramsInfo.params,state.funct["(metrics)"].arity=paramsInfo.arity,state.funct["(metrics)"].verifyMaxParametersPerFunction()):state.funct["(metrics)"].arity=0,isArrow&&(state.inES6(!0)||warning("W119",state.tokens.curr,"arrow function syntax (=>)","6"),options.loneArg||advance("=>")),block(!1,!0,!0,isArrow),!state.option.noyield&&isGenerator&&"yielded"!==state.funct["(generator)"]&&warning("W124",state.tokens.curr),state.funct["(metrics)"].verifyMaxStatementsPerFunction(),state.funct["(metrics)"].verifyMaxComplexityPerFunction(),state.funct["(unusedOption)"]=state.option.unused,state.option=oldOption,state.ignored=oldIgnored,state.funct["(last)"]=state.tokens.curr.line,state.funct["(lastcharacter)"]=state.tokens.curr.character,state.funct["(scope)"].unstack(),state.funct["(scope)"].unstack(),state.funct=state.funct["(context)"],ignoreLoopFunc||state.option.loopfunc||!state.funct["(loopage)"]||f["(isCapturing)"]&&warning("W083",token),f}function createMetrics(functionStartToken){return{statementCount:0,nestedBlockDepth:-1,ComplexityCount:1,arity:0,verifyMaxStatementsPerFunction:function(){state.option.maxstatements&&this.statementCount>state.option.maxstatements&&warning("W071",functionStartToken,this.statementCount)\n},verifyMaxParametersPerFunction:function(){_.isNumber(state.option.maxparams)&&this.arity>state.option.maxparams&&warning("W072",functionStartToken,this.arity)},verifyMaxNestedBlockDepthPerFunction:function(){state.option.maxdepth&&this.nestedBlockDepth>0&&this.nestedBlockDepth===state.option.maxdepth+1&&warning("W073",null,this.nestedBlockDepth)},verifyMaxComplexityPerFunction:function(){var max=state.option.maxcomplexity,cc=this.ComplexityCount;max&&cc>max&&warning("W074",functionStartToken,cc)}}}function increaseComplexityCount(){state.funct["(metrics)"].ComplexityCount+=1}function checkCondAssignment(expr){var id,paren;switch(expr&&(id=expr.id,paren=expr.paren,","===id&&(expr=expr.exprs[expr.exprs.length-1])&&(id=expr.id,paren=paren||expr.paren)),id){case"=":case"+=":case"-=":case"*=":case"%=":case"&=":case"|=":case"^=":case"/=":paren||state.option.boss||warning("W084")}}function checkProperties(props){if(state.inES5())for(var name in props)props[name]&&props[name].setterToken&&!props[name].getterToken&&warning("W078",props[name].setterToken)}function metaProperty(name,c){if(checkPunctuator(state.tokens.next,".")){var left=state.tokens.curr.id;advance(".");var id=identifier();return state.tokens.curr.isMetaProperty=!0,name!==id?error("E057",state.tokens.prev,left,id):c(),state.tokens.curr}}function destructuringPattern(options){var isAssignment=options&&options.assignment;return state.inES6()||warning("W104",state.tokens.curr,isAssignment?"destructuring assignment":"destructuring binding","6"),destructuringPatternRecursive(options)}function destructuringPatternRecursive(options){var ids,identifiers=[],openingParsed=options&&options.openingParsed,isAssignment=options&&options.assignment,recursiveOptions=isAssignment?{assignment:isAssignment}:null,firstToken=openingParsed?state.tokens.curr:state.tokens.next,nextInnerDE=function(){var ident;if(checkPunctuators(state.tokens.next,["[","{"])){ids=destructuringPatternRecursive(recursiveOptions);for(var id in ids)id=ids[id],identifiers.push({id:id.id,token:id.token})}else if(checkPunctuator(state.tokens.next,","))identifiers.push({id:null,token:state.tokens.curr});else{if(!checkPunctuator(state.tokens.next,"(")){var is_rest=checkPunctuator(state.tokens.next,"...");if(isAssignment){var identifierToken=is_rest?peek(0):state.tokens.next;identifierToken.identifier||warning("E030",identifierToken,identifierToken.value);var assignTarget=expression(155);assignTarget&&(checkLeftSideAssign(assignTarget),assignTarget.identifier&&(ident=assignTarget.value))}else ident=identifier();return ident&&identifiers.push({id:ident,token:state.tokens.curr}),is_rest}advance("("),nextInnerDE(),advance(")")}return!1},assignmentProperty=function(){var id;checkPunctuator(state.tokens.next,"[")?(advance("["),expression(10),advance("]"),advance(":"),nextInnerDE()):"(string)"===state.tokens.next.id||"(number)"===state.tokens.next.id?(advance(),advance(":"),nextInnerDE()):(id=identifier(),checkPunctuator(state.tokens.next,":")?(advance(":"),nextInnerDE()):id&&(isAssignment&&checkLeftSideAssign(state.tokens.curr),identifiers.push({id:id,token:state.tokens.curr})))};if(checkPunctuator(firstToken,"[")){openingParsed||advance("["),checkPunctuator(state.tokens.next,"]")&&warning("W137",state.tokens.curr);for(var element_after_rest=!1;!checkPunctuator(state.tokens.next,"]");)nextInnerDE()&&!element_after_rest&&checkPunctuator(state.tokens.next,",")&&(warning("W130",state.tokens.next),element_after_rest=!0),checkPunctuator(state.tokens.next,"=")&&(checkPunctuator(state.tokens.prev,"...")?advance("]"):advance("="),"undefined"===state.tokens.next.id&&warning("W080",state.tokens.prev,state.tokens.prev.value),expression(10)),checkPunctuator(state.tokens.next,"]")||advance(",");advance("]")}else if(checkPunctuator(firstToken,"{")){for(openingParsed||advance("{"),checkPunctuator(state.tokens.next,"}")&&warning("W137",state.tokens.curr);!checkPunctuator(state.tokens.next,"}")&&(assignmentProperty(),checkPunctuator(state.tokens.next,"=")&&(advance("="),"undefined"===state.tokens.next.id&&warning("W080",state.tokens.prev,state.tokens.prev.value),expression(10)),checkPunctuator(state.tokens.next,"}")||(advance(","),!checkPunctuator(state.tokens.next,"}"))););advance("}")}return identifiers}function destructuringPatternMatch(tokens,value){var first=value.first;first&&_.zip(tokens,Array.isArray(first)?first:[first]).forEach(function(val){var token=val[0],value=val[1];token&&value?token.first=value:token&&token.first&&!value&&warning("W080",token.first,token.first.value)})}function blockVariableStatement(type,statement,context){var tokens,lone,value,letblock,prefix=context&&context.prefix,inexport=context&&context.inexport,isLet="let"===type,isConst="const"===type;for(state.inES6()||warning("W104",state.tokens.curr,type,"6"),isLet&&"("===state.tokens.next.value?(state.inMoz()||warning("W118",state.tokens.next,"let block"),advance("("),state.funct["(scope)"].stack(),letblock=!0):state.funct["(noblockscopedvar)"]&&error("E048",state.tokens.curr,isConst?"Const":"Let"),statement.first=[];;){var names=[];_.contains(["{","["],state.tokens.next.value)?(tokens=destructuringPattern(),lone=!1):(tokens=[{id:identifier(),token:state.tokens.curr}],lone=!0),!prefix&&isConst&&"="!==state.tokens.next.id&&warning("E012",state.tokens.curr,state.tokens.curr.value);for(var t in tokens)tokens.hasOwnProperty(t)&&(t=tokens[t],state.funct["(scope)"].block.isGlobal()&&predefined[t.id]===!1&&warning("W079",t.token,t.id),t.id&&!state.funct["(noblockscopedvar)"]&&(state.funct["(scope)"].addlabel(t.id,{type:type,token:t.token}),names.push(t.token),lone&&inexport&&state.funct["(scope)"].setExported(t.token.value,t.token)));if("="===state.tokens.next.id&&(advance("="),prefix||"undefined"!==state.tokens.next.id||warning("W080",state.tokens.prev,state.tokens.prev.value),!prefix&&"="===peek(0).id&&state.tokens.next.identifier&&warning("W120",state.tokens.next,state.tokens.next.value),value=expression(prefix?120:10),lone?tokens[0].first=value:destructuringPatternMatch(names,value)),statement.first=statement.first.concat(names),","!==state.tokens.next.id)break;comma()}return letblock&&(advance(")"),block(!0,!0),statement.block=!0,state.funct["(scope)"].unstack()),statement}function classdef(isStatement){return state.inES6()||warning("W104",state.tokens.curr,"class","6"),isStatement?(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"class",token:state.tokens.curr})):state.tokens.next.identifier&&"extends"!==state.tokens.next.value?(this.name=identifier(),this.namedExpr=!0):this.name=state.nameStack.infer(),classtail(this),this}function classtail(c){var wasInClassBody=state.inClassBody;"extends"===state.tokens.next.value&&(advance("extends"),c.heritage=expression(10)),state.inClassBody=!0,advance("{"),c.body=classbody(c),advance("}"),state.inClassBody=wasInClassBody}function classbody(c){for(var name,isStatic,isGenerator,getset,computed,props=Object.create(null),staticProps=Object.create(null),i=0;"}"!==state.tokens.next.id;++i)if(name=state.tokens.next,isStatic=!1,isGenerator=!1,getset=null,";"!==name.id){if("*"===name.id&&(isGenerator=!0,advance("*"),name=state.tokens.next),"["===name.id)name=computedPropertyName(),computed=!0;else{if(!isPropertyName(name)){warning("W052",state.tokens.next,state.tokens.next.value||state.tokens.next.type),advance();continue}advance(),computed=!1,name.identifier&&"static"===name.value&&(checkPunctuator(state.tokens.next,"*")&&(isGenerator=!0,advance("*")),(isPropertyName(state.tokens.next)||"["===state.tokens.next.id)&&(computed="["===state.tokens.next.id,isStatic=!0,name=state.tokens.next,"["===state.tokens.next.id?name=computedPropertyName():advance())),!name.identifier||"get"!==name.value&&"set"!==name.value||(isPropertyName(state.tokens.next)||"["===state.tokens.next.id)&&(computed="["===state.tokens.next.id,getset=name,name=state.tokens.next,"["===state.tokens.next.id?name=computedPropertyName():advance())}if(!checkPunctuator(state.tokens.next,"(")){for(error("E054",state.tokens.next,state.tokens.next.value);"}"!==state.tokens.next.id&&!checkPunctuator(state.tokens.next,"(");)advance();"("!==state.tokens.next.value&&doFunction({statement:c})}if(computed||(getset?saveAccessor(getset.value,isStatic?staticProps:props,name.value,name,!0,isStatic):("constructor"===name.value?state.nameStack.set(c):state.nameStack.set(name),saveProperty(isStatic?staticProps:props,name.value,name,!0,isStatic))),getset&&"constructor"===name.value){var propDesc="get"===getset.value?"class getter method":"class setter method";error("E049",name,propDesc,"constructor")}else"prototype"===name.value&&error("E049",name,"class method","prototype");propertyName(name),doFunction({statement:c,type:isGenerator?"generator":null,classExprBinding:c.namedExpr?c.name:null})}else warning("W032"),advance(";");checkProperties(props)}function saveProperty(props,name,tkn,isClass,isStatic){var msg=["key","class method","static class method"];msg=msg[(isClass||!1)+(isStatic||!1)],tkn.identifier&&(name=tkn.value),props[name]&&"__proto__"!==name?warning("W075",state.tokens.next,msg,name):props[name]=Object.create(null),props[name].basic=!0,props[name].basictkn=tkn}function saveAccessor(accessorType,props,name,tkn,isClass,isStatic){var flagName="get"===accessorType?"getterToken":"setterToken",msg="";isClass?(isStatic&&(msg+="static "),msg+=accessorType+"ter method"):msg="key",state.tokens.curr.accessorType=accessorType,state.nameStack.set(tkn),props[name]?(props[name].basic||props[name][flagName])&&"__proto__"!==name&&warning("W075",state.tokens.next,msg,name):props[name]=Object.create(null),props[name][flagName]=tkn}function computedPropertyName(){advance("["),state.inES6()||warning("W119",state.tokens.curr,"computed property names","6");var value=expression(10);return advance("]"),value}function checkPunctuators(token,values){return"(punctuator)"===token.type?_.contains(values,token.value):!1}function checkPunctuator(token,value){return"(punctuator)"===token.type&&token.value===value}function destructuringAssignOrJsonValue(){var block=lookupBlockType();block.notJson?(!state.inES6()&&block.isDestAssign&&warning("W104",state.tokens.curr,"destructuring assignment","6"),statements()):(state.option.laxbreak=!0,state.jsonMode=!0,jsonValue())}function jsonValue(){function jsonObject(){var o={},t=state.tokens.next;if(advance("{"),"}"!==state.tokens.next.id)for(;;){if("(end)"===state.tokens.next.id)error("E026",state.tokens.next,t.line);else{if("}"===state.tokens.next.id){warning("W094",state.tokens.curr);break}","===state.tokens.next.id?error("E028",state.tokens.next):"(string)"!==state.tokens.next.id&&warning("W095",state.tokens.next,state.tokens.next.value)}if(o[state.tokens.next.value]===!0?warning("W075",state.tokens.next,"key",state.tokens.next.value):"__proto__"===state.tokens.next.value&&!state.option.proto||"__iterator__"===state.tokens.next.value&&!state.option.iterator?warning("W096",state.tokens.next,state.tokens.next.value):o[state.tokens.next.value]=!0,advance(),advance(":"),jsonValue(),","!==state.tokens.next.id)break;advance(",")}advance("}")}function jsonArray(){var t=state.tokens.next;if(advance("["),"]"!==state.tokens.next.id)for(;;){if("(end)"===state.tokens.next.id)error("E027",state.tokens.next,t.line);else{if("]"===state.tokens.next.id){warning("W094",state.tokens.curr);break}","===state.tokens.next.id&&error("E028",state.tokens.next)}if(jsonValue(),","!==state.tokens.next.id)break;advance(",")}advance("]")}switch(state.tokens.next.id){case"{":jsonObject();break;case"[":jsonArray();break;case"true":case"false":case"null":case"(number)":case"(string)":advance();break;case"-":advance("-"),advance("(number)");break;default:error("E003",state.tokens.next)}}var api,declared,functions,inblock,indent,lookahead,lex,member,membersOnly,predefined,stack,urls,bang={"<":!0,"<=":!0,"==":!0,"===":!0,"!==":!0,"!=":!0,">":!0,">=":!0,"+":!0,"-":!0,"*":!0,"/":!0,"%":!0},functionicity=["closure","exception","global","label","outer","unused","var"],extraModules=[],emitter=new events.EventEmitter,typeofValues={};typeofValues.legacy=["xml","unknown"],typeofValues.es3=["undefined","boolean","number","string","function","object"],typeofValues.es3=typeofValues.es3.concat(typeofValues.legacy),typeofValues.es6=typeofValues.es3.concat("symbol"),type("(number)",function(){return this}),type("(string)",function(){return this}),state.syntax["(identifier)"]={type:"(identifier)",lbp:0,identifier:!0,nud:function(){var v=this.value;return"=>"===state.tokens.next.id?this:(state.funct["(comparray)"].check(v)||state.funct["(scope)"].block.use(v,state.tokens.curr),this)},led:function(){error("E033",state.tokens.next,state.tokens.next.value)}};var baseTemplateSyntax={lbp:0,identifier:!1,template:!0};state.syntax["(template)"]=_.extend({type:"(template)",nud:doTemplateLiteral,led:doTemplateLiteral,noSubst:!1},baseTemplateSyntax),state.syntax["(template middle)"]=_.extend({type:"(template middle)",middle:!0,noSubst:!1},baseTemplateSyntax),state.syntax["(template tail)"]=_.extend({type:"(template tail)",tail:!0,noSubst:!1},baseTemplateSyntax),state.syntax["(no subst template)"]=_.extend({type:"(template)",nud:doTemplateLiteral,led:doTemplateLiteral,noSubst:!0,tail:!0},baseTemplateSyntax),type("(regexp)",function(){return this}),delim("(endline)"),delim("(begin)"),delim("(end)").reach=!0,delim("(error)").reach=!0,delim("}").reach=!0,delim(")"),delim("]"),delim(\'"\').reach=!0,delim("\'").reach=!0,delim(";"),delim(":").reach=!0,delim("#"),reserve("else"),reserve("case").reach=!0,reserve("catch"),reserve("default").reach=!0,reserve("finally"),reservevar("arguments",function(x){state.isStrict()&&state.funct["(global)"]&&warning("E008",x)}),reservevar("eval"),reservevar("false"),reservevar("Infinity"),reservevar("null"),reservevar("this",function(x){state.isStrict()&&!isMethod()&&!state.option.validthis&&(state.funct["(statement)"]&&state.funct["(name)"].charAt(0)>"Z"||state.funct["(global)"])&&warning("W040",x)}),reservevar("true"),reservevar("undefined"),assignop("=","assign",20),assignop("+=","assignadd",20),assignop("-=","assignsub",20),assignop("*=","assignmult",20),assignop("/=","assigndiv",20).nud=function(){error("E014")},assignop("%=","assignmod",20),bitwiseassignop("&="),bitwiseassignop("|="),bitwiseassignop("^="),bitwiseassignop("<<="),bitwiseassignop(">>="),bitwiseassignop(">>>="),infix(",",function(left,that){var expr;if(that.exprs=[left],state.option.nocomma&&warning("W127"),!comma({peek:!0}))return that;for(;;){if(!(expr=expression(10)))break;if(that.exprs.push(expr),","!==state.tokens.next.value||!comma())break}return that},10,!0),infix("?",function(left,that){return increaseComplexityCount(),that.left=left,that.right=expression(10),advance(":"),that["else"]=expression(10),that},30);var orPrecendence=40;infix("||",function(left,that){return increaseComplexityCount(),that.left=left,that.right=expression(orPrecendence),that},orPrecendence),infix("&&","and",50),bitwise("|","bitor",70),bitwise("^","bitxor",80),bitwise("&","bitand",90),relation("==",function(left,right){var eqnull=state.option.eqnull&&("null"===(left&&left.value)||"null"===(right&&right.value));switch(!0){case!eqnull&&state.option.eqeqeq:this.from=this.character,warning("W116",this,"===","==");break;case isPoorRelation(left):warning("W041",this,"===",left.value);break;case isPoorRelation(right):warning("W041",this,"===",right.value);break;case isTypoTypeof(right,left,state):warning("W122",this,right.value);break;case isTypoTypeof(left,right,state):warning("W122",this,left.value)}return this}),relation("===",function(left,right){return isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("!=",function(left,right){var eqnull=state.option.eqnull&&("null"===(left&&left.value)||"null"===(right&&right.value));return!eqnull&&state.option.eqeqeq?(this.from=this.character,warning("W116",this,"!==","!=")):isPoorRelation(left)?warning("W041",this,"!==",left.value):isPoorRelation(right)?warning("W041",this,"!==",right.value):isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("!==",function(left,right){return isTypoTypeof(right,left,state)?warning("W122",this,right.value):isTypoTypeof(left,right,state)&&warning("W122",this,left.value),this}),relation("<"),relation(">"),relation("<="),relation(">="),bitwise("<<","shiftleft",120),bitwise(">>","shiftright",120),bitwise(">>>","shiftrightunsigned",120),infix("in","in",120),infix("instanceof","instanceof",120),infix("+",function(left,that){var right;return that.left=left,that.right=right=expression(130),left&&right&&"(string)"===left.id&&"(string)"===right.id?(left.value+=right.value,left.character=right.character,!state.option.scripturl&&reg.javascriptURL.test(left.value)&&warning("W050",left),left):that},130),prefix("+","num"),prefix("+++",function(){return warning("W007"),this.arity="unary",this.right=expression(150),this}),infix("+++",function(left){return warning("W007"),this.left=left,this.right=expression(130),this},130),infix("-","sub",130),prefix("-","neg"),prefix("---",function(){return warning("W006"),this.arity="unary",this.right=expression(150),this}),infix("---",function(left){return warning("W006"),this.left=left,this.right=expression(130),this},130),infix("*","mult",140),infix("/","div",140),infix("%","mod",140),suffix("++"),prefix("++","preinc"),state.syntax["++"].exps=!0,suffix("--"),prefix("--","predec"),state.syntax["--"].exps=!0,prefix("delete",function(){var p=expression(10);return p?("."!==p.id&&"["!==p.id&&warning("W051"),this.first=p,p.identifier&&!state.isStrict()&&(p.forgiveUndef=!0),this):this}).exps=!0,prefix("~",function(){return state.option.bitwise&&warning("W016",this,"~"),this.arity="unary",this.right=expression(150),this}),prefix("...",function(){return state.inES6(!0)||warning("W119",this,"spread/rest operator","6"),state.tokens.next.identifier||"(string)"===state.tokens.next.type||checkPunctuators(state.tokens.next,["[","("])||error("E030",state.tokens.next,state.tokens.next.value),expression(150),this}),prefix("!",function(){return this.arity="unary",this.right=expression(150),this.right||quit("E041",this.line||0),bang[this.right.id]===!0&&warning("W018",this,"!"),this}),prefix("typeof",function(){var p=expression(150);return this.first=this.right=p,p||quit("E041",this.line||0,this.character||0),p.identifier&&(p.forgiveUndef=!0),this}),prefix("new",function(){var mp=metaProperty("target",function(){state.inES6(!0)||warning("W119",state.tokens.prev,"new.target","6");for(var inFunction,c=state.funct;c&&(inFunction=!c["(global)"],c["(arrow)"]);)c=c["(context)"];inFunction||warning("W136",state.tokens.prev,"new.target")});if(mp)return mp;var i,c=expression(155);if(c&&"function"!==c.id)if(c.identifier)switch(c["new"]=!0,c.value){case"Number":case"String":case"Boolean":case"Math":case"JSON":warning("W053",state.tokens.prev,c.value);break;case"Symbol":state.inES6()&&warning("W053",state.tokens.prev,c.value);break;case"Function":state.option.evil||warning("W054");break;case"Date":case"RegExp":case"this":break;default:"function"!==c.id&&(i=c.value.substr(0,1),state.option.newcap&&("A">i||i>"Z")&&!state.funct["(scope)"].isPredefined(c.value)&&warning("W055",state.tokens.curr))}else"."!==c.id&&"["!==c.id&&"("!==c.id&&warning("W056",state.tokens.curr);else state.option.supernew||warning("W057",this);return"("===state.tokens.next.id||state.option.supernew||warning("W058",state.tokens.curr,state.tokens.curr.value),this.first=this.right=c,this}),state.syntax["new"].exps=!0,prefix("void").exps=!0,infix(".",function(left,that){var m=identifier(!1,!0);return"string"==typeof m&&countMember(m),that.left=left,that.right=m,m&&"hasOwnProperty"===m&&"="===state.tokens.next.value&&warning("W001"),!left||"arguments"!==left.value||"callee"!==m&&"caller"!==m?state.option.evil||!left||"document"!==left.value||"write"!==m&&"writeln"!==m||warning("W060",left):state.option.noarg?warning("W059",left,m):state.isStrict()&&error("E008"),state.option.evil||"eval"!==m&&"execScript"!==m||isGlobalEval(left,state)&&warning("W061"),that},160,!0),infix("(",function(left,that){state.option.immed&&left&&!left.immed&&"function"===left.id&&warning("W062");var n=0,p=[];if(left&&"(identifier)"===left.type&&left.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)&&-1==="Array Number String Boolean Date Object Error Symbol".indexOf(left.value)&&("Math"===left.value?warning("W063",left):state.option.newcap&&warning("W064",left)),")"!==state.tokens.next.id)for(;p[p.length]=expression(10),n+=1,","===state.tokens.next.id;)comma();return advance(")"),"object"==typeof left&&(state.inES5()||"parseInt"!==left.value||1!==n||warning("W065",state.tokens.curr),state.option.evil||("eval"===left.value||"Function"===left.value||"execScript"===left.value?(warning("W061",left),p[0]&&"(string)"===[0].id&&addInternalSrc(left,p[0].value)):!p[0]||"(string)"!==p[0].id||"setTimeout"!==left.value&&"setInterval"!==left.value?!p[0]||"(string)"!==p[0].id||"."!==left.value||"window"!==left.left.value||"setTimeout"!==left.right&&"setInterval"!==left.right||(warning("W066",left),addInternalSrc(left,p[0].value)):(warning("W066",left),addInternalSrc(left,p[0].value))),left.identifier||"."===left.id||"["===left.id||"=>"===left.id||"("===left.id||"&&"===left.id||"||"===left.id||"?"===left.id||state.inES6()&&left["(name)"]||warning("W067",that)),that.left=left,that},155,!0).exps=!0,prefix("(",function(){var pn1,ret,triggerFnExpr,first,last,pn=state.tokens.next,i=-1,parens=1,opening=state.tokens.curr,preceeding=state.tokens.prev,isNecessary=!state.option.singleGroups;do"("===pn.value?parens+=1:")"===pn.value&&(parens-=1),i+=1,pn1=pn,pn=peek(i);while((0!==parens||")"!==pn1.value)&&";"!==pn.value&&"(end)"!==pn.type);if("function"===state.tokens.next.id&&(triggerFnExpr=state.tokens.next.immed=!0),"=>"===pn.value)return doFunction({type:"arrow",parsedOpening:!0});var exprs=[];if(")"!==state.tokens.next.id)for(;exprs.push(expression(10)),","===state.tokens.next.id;)state.option.nocomma&&warning("W127"),comma();return advance(")",this),state.option.immed&&exprs[0]&&"function"===exprs[0].id&&"("!==state.tokens.next.id&&"."!==state.tokens.next.id&&"["!==state.tokens.next.id&&warning("W068",this),exprs.length?(exprs.length>1?(ret=Object.create(state.syntax[","]),ret.exprs=exprs,first=exprs[0],last=exprs[exprs.length-1],isNecessary||(isNecessary=preceeding.assign||preceeding.delim)):(ret=first=last=exprs[0],isNecessary||(isNecessary=opening.beginsStmt&&("{"===ret.id||triggerFnExpr||isFunctor(ret))||triggerFnExpr&&(!isEndOfExpr()||"}"!==state.tokens.prev.id)||isFunctor(ret)&&!isEndOfExpr()||"{"===ret.id&&"=>"===preceeding.id||"(number)"===ret.type&&checkPunctuator(pn,".")&&/^\\d+$/.test(ret.value))),ret&&(!isNecessary&&(first.left||first.right||ret.exprs)&&(isNecessary=!isBeginOfExpr(preceeding)&&first.lbp<=preceeding.lbp||!isEndOfExpr()&&last.lbp<state.tokens.next.lbp),isNecessary||warning("W126",opening),ret.paren=!0),ret):void 0}),application("=>"),infix("[",function(left,that){var s,e=expression(10);return e&&"(string)"===e.type&&(state.option.evil||"eval"!==e.value&&"execScript"!==e.value||isGlobalEval(left,state)&&warning("W061"),countMember(e.value),!state.option.sub&&reg.identifier.test(e.value)&&(s=state.syntax[e.value],s&&isReserved(s)||warning("W069",state.tokens.prev,e.value))),advance("]",that),e&&"hasOwnProperty"===e.value&&"="===state.tokens.next.value&&warning("W001"),that.left=left,that.right=e,that},160,!0),prefix("[",function(){var blocktype=lookupBlockType();if(blocktype.isCompArray)return state.option.esnext||state.inMoz()||warning("W118",state.tokens.curr,"array comprehension"),comprehensiveArrayExpression();if(blocktype.isDestAssign)return this.destructAssign=destructuringPattern({openingParsed:!0,assignment:!0}),this;var b=state.tokens.curr.line!==startLine(state.tokens.next);for(this.first=[],b&&(indent+=state.option.indent,state.tokens.next.from===indent+state.option.indent&&(indent+=state.option.indent));"(end)"!==state.tokens.next.id;){for(;","===state.tokens.next.id;){if(!state.option.elision){if(state.inES5()){warning("W128");do advance(",");while(","===state.tokens.next.id);continue}warning("W070")}advance(",")}if("]"===state.tokens.next.id)break;if(this.first.push(expression(10)),","!==state.tokens.next.id)break;if(comma({allowTrailing:!0}),"]"===state.tokens.next.id&&!state.inES5()){warning("W070",state.tokens.curr);break}}return b&&(indent-=state.option.indent),advance("]",this),this}),function(x){x.nud=function(){var b,f,i,p,t,nextVal,isGeneratorMethod=!1,props=Object.create(null);b=state.tokens.curr.line!==startLine(state.tokens.next),b&&(indent+=state.option.indent,state.tokens.next.from===indent+state.option.indent&&(indent+=state.option.indent));var blocktype=lookupBlockType();if(blocktype.isDestAssign)return this.destructAssign=destructuringPattern({openingParsed:!0,assignment:!0}),this;for(;"}"!==state.tokens.next.id;){if(nextVal=state.tokens.next.value,!state.tokens.next.identifier||","!==peekIgnoreEOL().id&&"}"!==peekIgnoreEOL().id)if(":"===peek().id||"get"!==nextVal&&"set"!==nextVal){if("*"===state.tokens.next.value&&"(punctuator)"===state.tokens.next.type?(state.inES6()||warning("W104",state.tokens.next,"generator functions","6"),advance("*"),isGeneratorMethod=!0):isGeneratorMethod=!1,"["===state.tokens.next.id)i=computedPropertyName(),state.nameStack.set(i);else if(state.nameStack.set(state.tokens.next),i=propertyName(),saveProperty(props,i,state.tokens.next),"string"!=typeof i)break;"("===state.tokens.next.value?(state.inES6()||warning("W104",state.tokens.curr,"concise methods","6"),doFunction({type:isGeneratorMethod?"generator":null})):(advance(":"),expression(10))}else advance(nextVal),state.inES5()||error("E034"),i=propertyName(),i||state.inES6()||error("E035"),i&&saveAccessor(nextVal,props,i,state.tokens.curr),t=state.tokens.next,f=doFunction(),p=f["(params)"],"get"===nextVal&&i&&p?warning("W076",t,p[0],i):"set"!==nextVal||!i||p&&1===p.length||warning("W077",t,i);else state.inES6()||warning("W104",state.tokens.next,"object short notation","6"),i=propertyName(!0),saveProperty(props,i,state.tokens.next),expression(10);if(countMember(i),","!==state.tokens.next.id)break;comma({allowTrailing:!0,property:!0}),","===state.tokens.next.id?warning("W070",state.tokens.curr):"}"!==state.tokens.next.id||state.inES5()||warning("W070",state.tokens.curr)}return b&&(indent-=state.option.indent),advance("}",this),checkProperties(props),this},x.fud=function(){error("E036",state.tokens.curr)}}(delim("{"));var conststatement=stmt("const",function(context){return blockVariableStatement("const",this,context)});conststatement.exps=!0;var letstatement=stmt("let",function(context){return blockVariableStatement("let",this,context)});letstatement.exps=!0;var varstatement=stmt("var",function(context){var tokens,lone,value,prefix=context&&context.prefix,inexport=context&&context.inexport,implied=context&&context.implied,report=!(context&&context.ignore);for(this.first=[];;){var names=[];_.contains(["{","["],state.tokens.next.value)?(tokens=destructuringPattern(),lone=!1):(tokens=[{id:identifier(),token:state.tokens.curr}],lone=!0),prefix&&implied||!report||!state.option.varstmt||warning("W132",this),this.first=this.first.concat(names);for(var t in tokens)tokens.hasOwnProperty(t)&&(t=tokens[t],!implied&&state.funct["(global)"]&&(predefined[t.id]===!1?warning("W079",t.token,t.id):state.option.futurehostile===!1&&(!state.inES5()&&vars.ecmaIdentifiers[5][t.id]===!1||!state.inES6()&&vars.ecmaIdentifiers[6][t.id]===!1)&&warning("W129",t.token,t.id)),t.id&&("for"===implied?(state.funct["(scope)"].has(t.id)||report&&warning("W088",t.token,t.id),state.funct["(scope)"].block.use(t.id,t.token)):(state.funct["(scope)"].addlabel(t.id,{type:"var",token:t.token}),lone&&inexport&&state.funct["(scope)"].setExported(t.id,t.token)),names.push(t.token)));if("="===state.tokens.next.id&&(state.nameStack.set(state.tokens.curr),advance("="),prefix||!report||state.funct["(loopage)"]||"undefined"!==state.tokens.next.id||warning("W080",state.tokens.prev,state.tokens.prev.value),"="===peek(0).id&&state.tokens.next.identifier&&(!prefix&&report&&!state.funct["(params)"]||-1===state.funct["(params)"].indexOf(state.tokens.next.value))&&warning("W120",state.tokens.next,state.tokens.next.value),value=expression(prefix?120:10),lone?tokens[0].first=value:destructuringPatternMatch(names,value)),","!==state.tokens.next.id)break;comma()}return this});varstatement.exps=!0,blockstmt("class",function(){return classdef.call(this,!0)}),blockstmt("function",function(context){var inexport=context&&context.inexport,generator=!1;"*"===state.tokens.next.value&&(advance("*"),state.inES6({strict:!0})?generator=!0:warning("W119",state.tokens.curr,"function*","6")),inblock&&warning("W082",state.tokens.curr);var i=optionalidentifier();return state.funct["(scope)"].addlabel(i,{type:"function",token:state.tokens.curr}),void 0===i?warning("W025"):inexport&&state.funct["(scope)"].setExported(i,state.tokens.prev),doFunction({name:i,statement:this,type:generator?"generator":null,ignoreLoopFunc:inblock}),"("===state.tokens.next.id&&state.tokens.next.line===state.tokens.curr.line&&error("E039"),this}),prefix("function",function(){var generator=!1;"*"===state.tokens.next.value&&(state.inES6()||warning("W119",state.tokens.curr,"function*","6"),advance("*"),generator=!0);var i=optionalidentifier();return doFunction({name:i,type:generator?"generator":null}),this}),blockstmt("if",function(){var t=state.tokens.next;increaseComplexityCount(),state.condition=!0,advance("(");var expr=expression(0);checkCondAssignment(expr);var forinifcheck=null;state.option.forin&&state.forinifcheckneeded&&(state.forinifcheckneeded=!1,forinifcheck=state.forinifchecks[state.forinifchecks.length-1],forinifcheck.type="(punctuator)"===expr.type&&"!"===expr.value?"(negative)":"(positive)"),advance(")",t),state.condition=!1;var s=block(!0,!0);return forinifcheck&&"(negative)"===forinifcheck.type&&s&&s[0]&&"(identifier)"===s[0].type&&"continue"===s[0].value&&(forinifcheck.type="(negative-with-continue)"),"else"===state.tokens.next.id&&(advance("else"),"if"===state.tokens.next.id||"switch"===state.tokens.next.id?statement():block(!0,!0)),this}),blockstmt("try",function(){function doCatch(){if(advance("catch"),advance("("),state.funct["(scope)"].stack("catchparams"),checkPunctuators(state.tokens.next,["[","{"])){var tokens=destructuringPattern();_.each(tokens,function(token){token.id&&state.funct["(scope)"].addParam(token.id,token,"exception")})}else"(identifier)"!==state.tokens.next.type?warning("E030",state.tokens.next,state.tokens.next.value):state.funct["(scope)"].addParam(identifier(),state.tokens.curr,"exception");"if"===state.tokens.next.value&&(state.inMoz()||warning("W118",state.tokens.curr,"catch filter"),advance("if"),expression(0)),advance(")"),block(!1),state.funct["(scope)"].unstack()}var b;for(block(!0);"catch"===state.tokens.next.id;)increaseComplexityCount(),b&&!state.inMoz()&&warning("W118",state.tokens.next,"multiple catch blocks"),doCatch(),b=!0;return"finally"===state.tokens.next.id?(advance("finally"),block(!0),void 0):(b||error("E021",state.tokens.next,"catch",state.tokens.next.value),this)}),blockstmt("while",function(){var t=state.tokens.next;return state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,increaseComplexityCount(),advance("("),checkCondAssignment(expression(0)),advance(")",t),block(!0,!0),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1,this}).labelled=!0,blockstmt("with",function(){var t=state.tokens.next;return state.isStrict()?error("E010",state.tokens.curr):state.option.withstmt||warning("W085",state.tokens.curr),advance("("),expression(0),advance(")",t),block(!0,!0),this}),blockstmt("switch",function(){var t=state.tokens.next,g=!1,noindent=!1;\nfor(state.funct["(breakage)"]+=1,advance("("),checkCondAssignment(expression(0)),advance(")",t),t=state.tokens.next,advance("{"),state.tokens.next.from===indent&&(noindent=!0),noindent||(indent+=state.option.indent),this.cases=[];;)switch(state.tokens.next.id){case"case":switch(state.funct["(verb)"]){case"yield":case"break":case"case":case"continue":case"return":case"switch":case"throw":break;default:state.tokens.curr.caseFallsThrough||warning("W086",state.tokens.curr,"case")}advance("case"),this.cases.push(expression(0)),increaseComplexityCount(),g=!0,advance(":"),state.funct["(verb)"]="case";break;case"default":switch(state.funct["(verb)"]){case"yield":case"break":case"continue":case"return":case"throw":break;default:this.cases.length&&(state.tokens.curr.caseFallsThrough||warning("W086",state.tokens.curr,"default"))}advance("default"),g=!0,advance(":");break;case"}":return noindent||(indent-=state.option.indent),advance("}",t),state.funct["(breakage)"]-=1,state.funct["(verb)"]=void 0,void 0;case"(end)":return error("E023",state.tokens.next,"}"),void 0;default:if(indent+=state.option.indent,g)switch(state.tokens.curr.id){case",":return error("E040"),void 0;case":":g=!1,statements();break;default:return error("E025",state.tokens.curr),void 0}else{if(":"!==state.tokens.curr.id)return error("E021",state.tokens.next,"case",state.tokens.next.value),void 0;advance(":"),error("E024",state.tokens.curr,":"),statements()}indent-=state.option.indent}return this}).labelled=!0,stmt("debugger",function(){return state.option.debug||warning("W087",this),this}).exps=!0,function(){var x=stmt("do",function(){state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,increaseComplexityCount(),this.first=block(!0,!0),advance("while");var t=state.tokens.next;return advance("("),checkCondAssignment(expression(0)),advance(")",t),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1,this});x.labelled=!0,x.exps=!0}(),blockstmt("for",function(){var s,t=state.tokens.next,letscope=!1,foreachtok=null;"each"===t.value&&(foreachtok=t,advance("each"),state.inMoz()||warning("W118",state.tokens.curr,"for each")),increaseComplexityCount(),advance("(");var nextop,comma,initializer,i=0,inof=["in","of"],level=0;checkPunctuators(state.tokens.next,["{","["])&&++level;do{if(nextop=peek(i),++i,checkPunctuators(nextop,["{","["])?++level:checkPunctuators(nextop,["}","]"])&&--level,0>level)break;0===level&&(!comma&&checkPunctuator(nextop,",")?comma=nextop:!initializer&&checkPunctuator(nextop,"=")&&(initializer=nextop))}while(level>0||!_.contains(inof,nextop.value)&&";"!==nextop.value&&"(end)"!==nextop.type);if(_.contains(inof,nextop.value)){state.inES6()||"of"!==nextop.value||warning("W104",nextop,"for of","6");var ok=!(initializer||comma);if(initializer&&error("W133",comma,nextop.value,"initializer is forbidden"),comma&&error("W133",comma,nextop.value,"more than one ForBinding"),"var"===state.tokens.next.id?(advance("var"),state.tokens.curr.fud({prefix:!0})):"let"===state.tokens.next.id||"const"===state.tokens.next.id?(advance(state.tokens.next.id),letscope=!0,state.funct["(scope)"].stack(),state.tokens.curr.fud({prefix:!0})):Object.create(varstatement).fud({prefix:!0,implied:"for",ignore:!ok}),advance(nextop.value),expression(20),advance(")",t),"in"===nextop.value&&state.option.forin&&(state.forinifcheckneeded=!0,void 0===state.forinifchecks&&(state.forinifchecks=[]),state.forinifchecks.push({type:"(none)"})),state.funct["(breakage)"]+=1,state.funct["(loopage)"]+=1,s=block(!0,!0),"in"===nextop.value&&state.option.forin){if(state.forinifchecks&&state.forinifchecks.length>0){var check=state.forinifchecks.pop();(s&&s.length>0&&("object"!=typeof s[0]||"if"!==s[0].value)||"(positive)"===check.type&&s.length>1||"(negative)"===check.type)&&warning("W089",this)}state.forinifcheckneeded=!1}state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1}else{if(foreachtok&&error("E045",foreachtok),";"!==state.tokens.next.id)if("var"===state.tokens.next.id)advance("var"),state.tokens.curr.fud();else if("let"===state.tokens.next.id)advance("let"),letscope=!0,state.funct["(scope)"].stack(),state.tokens.curr.fud();else for(;expression(0,"for"),","===state.tokens.next.id;)comma();if(nolinebreak(state.tokens.curr),advance(";"),state.funct["(loopage)"]+=1,";"!==state.tokens.next.id&&checkCondAssignment(expression(0)),nolinebreak(state.tokens.curr),advance(";"),";"===state.tokens.next.id&&error("E021",state.tokens.next,")",";"),")"!==state.tokens.next.id)for(;expression(0,"for"),","===state.tokens.next.id;)comma();advance(")",t),state.funct["(breakage)"]+=1,block(!0,!0),state.funct["(breakage)"]-=1,state.funct["(loopage)"]-=1}return letscope&&state.funct["(scope)"].unstack(),this}).labelled=!0,stmt("break",function(){var v=state.tokens.next.value;return state.option.asi||nolinebreak(this),";"===state.tokens.next.id||state.tokens.next.reach||state.tokens.curr.line!==startLine(state.tokens.next)?0===state.funct["(breakage)"]&&warning("W052",state.tokens.next,this.value):(state.funct["(scope)"].funct.hasBreakLabel(v)||warning("W090",state.tokens.next,v),this.first=state.tokens.next,advance()),reachable(this),this}).exps=!0,stmt("continue",function(){var v=state.tokens.next.value;return 0===state.funct["(breakage)"]&&warning("W052",state.tokens.next,this.value),state.funct["(loopage)"]||warning("W052",state.tokens.next,this.value),state.option.asi||nolinebreak(this),";"===state.tokens.next.id||state.tokens.next.reach||state.tokens.curr.line===startLine(state.tokens.next)&&(state.funct["(scope)"].funct.hasBreakLabel(v)||warning("W090",state.tokens.next,v),this.first=state.tokens.next,advance()),reachable(this),this}).exps=!0,stmt("return",function(){return this.line===startLine(state.tokens.next)?";"===state.tokens.next.id||state.tokens.next.reach||(this.first=expression(0),!this.first||"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||state.option.boss||warningAt("W093",this.first.line,this.first.character)):"(punctuator)"===state.tokens.next.type&&["[","{","+","-"].indexOf(state.tokens.next.value)>-1&&nolinebreak(this),reachable(this),this}).exps=!0,function(x){x.exps=!0,x.lbp=25}(prefix("yield",function(){var prev=state.tokens.prev;state.inES6(!0)&&!state.funct["(generator)"]?"(catch)"===state.funct["(name)"]&&state.funct["(context)"]["(generator)"]||error("E046",state.tokens.curr,"yield"):state.inES6()||warning("W104",state.tokens.curr,"yield","6"),state.funct["(generator)"]="yielded";var delegatingYield=!1;return"*"===state.tokens.next.value&&(delegatingYield=!0,advance("*")),this.line!==startLine(state.tokens.next)&&state.inMoz()?state.option.asi||nolinebreak(this):((delegatingYield||";"!==state.tokens.next.id&&!state.option.asi&&!state.tokens.next.reach&&state.tokens.next.nud)&&(nobreaknonadjacent(state.tokens.curr,state.tokens.next),this.first=expression(10),"(punctuator)"!==this.first.type||"="!==this.first.value||this.first.paren||state.option.boss||warningAt("W093",this.first.line,this.first.character)),state.inMoz()&&")"!==state.tokens.next.id&&(prev.lbp>30||!prev.assign&&!isEndOfExpr()||"yield"===prev.id)&&error("E050",this)),this})),stmt("throw",function(){return nolinebreak(this),this.first=expression(20),reachable(this),this}).exps=!0,stmt("import",function(){if(state.inES6()||warning("W119",state.tokens.curr,"import","6"),"(string)"===state.tokens.next.type)return advance("(string)"),this;if(state.tokens.next.identifier){if(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"const",token:state.tokens.curr}),","!==state.tokens.next.value)return advance("from"),advance("(string)"),this;advance(",")}if("*"===state.tokens.next.id)advance("*"),advance("as"),state.tokens.next.identifier&&(this.name=identifier(),state.funct["(scope)"].addlabel(this.name,{type:"const",token:state.tokens.curr}));else for(advance("{");;){if("}"===state.tokens.next.value){advance("}");break}var importName;if("default"===state.tokens.next.type?(importName="default",advance("default")):importName=identifier(),"as"===state.tokens.next.value&&(advance("as"),importName=identifier()),state.funct["(scope)"].addlabel(importName,{type:"const",token:state.tokens.curr}),","!==state.tokens.next.value){if("}"===state.tokens.next.value){advance("}");break}error("E024",state.tokens.next,state.tokens.next.value);break}advance(",")}return advance("from"),advance("(string)"),this}).exps=!0,stmt("export",function(){var token,identifier,ok=!0;if(state.inES6()||(warning("W119",state.tokens.curr,"export","6"),ok=!1),state.funct["(scope)"].block.isGlobal()||(error("E053",state.tokens.curr),ok=!1),"*"===state.tokens.next.value)return advance("*"),advance("from"),advance("(string)"),this;if("default"===state.tokens.next.type){state.nameStack.set(state.tokens.next),advance("default");var exportType=state.tokens.next.id;return("function"===exportType||"class"===exportType)&&(this.block=!0),token=peek(),expression(10),identifier=token.value,this.block&&(state.funct["(scope)"].addlabel(identifier,{type:exportType,token:token}),state.funct["(scope)"].setExported(identifier,token)),this}if("{"===state.tokens.next.value){advance("{");for(var exportedTokens=[];;){if(state.tokens.next.identifier||error("E030",state.tokens.next,state.tokens.next.value),advance(),exportedTokens.push(state.tokens.curr),"as"===state.tokens.next.value&&(advance("as"),state.tokens.next.identifier||error("E030",state.tokens.next,state.tokens.next.value),advance()),","!==state.tokens.next.value){if("}"===state.tokens.next.value){advance("}");break}error("E024",state.tokens.next,state.tokens.next.value);break}advance(",")}return"from"===state.tokens.next.value?(advance("from"),advance("(string)")):ok&&exportedTokens.forEach(function(token){state.funct["(scope)"].setExported(token.value,token)}),this}if("var"===state.tokens.next.id)advance("var"),state.tokens.curr.fud({inexport:!0});else if("let"===state.tokens.next.id)advance("let"),state.tokens.curr.fud({inexport:!0});else if("const"===state.tokens.next.id)advance("const"),state.tokens.curr.fud({inexport:!0});else if("function"===state.tokens.next.id)this.block=!0,advance("function"),state.syntax["function"].fud({inexport:!0});else if("class"===state.tokens.next.id){this.block=!0,advance("class");var classNameToken=state.tokens.next;state.syntax["class"].fud(),state.funct["(scope)"].setExported(classNameToken.value,classNameToken)}else error("E024",state.tokens.next,state.tokens.next.value);return this}).exps=!0,FutureReservedWord("abstract"),FutureReservedWord("boolean"),FutureReservedWord("byte"),FutureReservedWord("char"),FutureReservedWord("class",{es5:!0,nud:classdef}),FutureReservedWord("double"),FutureReservedWord("enum",{es5:!0}),FutureReservedWord("export",{es5:!0}),FutureReservedWord("extends",{es5:!0}),FutureReservedWord("final"),FutureReservedWord("float"),FutureReservedWord("goto"),FutureReservedWord("implements",{es5:!0,strictOnly:!0}),FutureReservedWord("import",{es5:!0}),FutureReservedWord("int"),FutureReservedWord("interface",{es5:!0,strictOnly:!0}),FutureReservedWord("long"),FutureReservedWord("native"),FutureReservedWord("package",{es5:!0,strictOnly:!0}),FutureReservedWord("private",{es5:!0,strictOnly:!0}),FutureReservedWord("protected",{es5:!0,strictOnly:!0}),FutureReservedWord("public",{es5:!0,strictOnly:!0}),FutureReservedWord("short"),FutureReservedWord("static",{es5:!0,strictOnly:!0}),FutureReservedWord("super",{es5:!0}),FutureReservedWord("synchronized"),FutureReservedWord("transient"),FutureReservedWord("volatile");var lookupBlockType=function(){var pn,pn1,prev,i=-1,bracketStack=0,ret={};checkPunctuators(state.tokens.curr,["[","{"])&&(bracketStack+=1);do{if(prev=-1===i?state.tokens.curr:pn,pn=-1===i?state.tokens.next:peek(i),pn1=peek(i+1),i+=1,checkPunctuators(pn,["[","{"])?bracketStack+=1:checkPunctuators(pn,["]","}"])&&(bracketStack-=1),1===bracketStack&&pn.identifier&&"for"===pn.value&&!checkPunctuator(prev,".")){ret.isCompArray=!0,ret.notJson=!0;break}if(0===bracketStack&&checkPunctuators(pn,["}","]"])){if("="===pn1.value){ret.isDestAssign=!0,ret.notJson=!0;break}if("."===pn1.value){ret.notJson=!0;break}}checkPunctuator(pn,";")&&(ret.isBlock=!0,ret.notJson=!0)}while(bracketStack>0&&"(end)"!==pn.id);return ret},arrayComprehension=function(){function declare(v){var l=_current.variables.filter(function(elt){return elt.value===v?(elt.undef=!1,v):void 0}).length;return 0!==l}function use(v){var l=_current.variables.filter(function(elt){return elt.value!==v||elt.undef?void 0:(elt.unused===!0&&(elt.unused=!1),v)}).length;return 0===l}var _current,CompArray=function(){this.mode="use",this.variables=[]},_carrays=[];return{stack:function(){_current=new CompArray,_carrays.push(_current)},unstack:function(){_current.variables.filter(function(v){v.unused&&warning("W098",v.token,v.raw_text||v.value),v.undef&&state.funct["(scope)"].block.use(v.value,v.token)}),_carrays.splice(-1,1),_current=_carrays[_carrays.length-1]},setState:function(s){_.contains(["use","define","generate","filter"],s)&&(_current.mode=s)},check:function(v){return _current?_current&&"use"===_current.mode?(use(v)&&_current.variables.push({funct:state.funct,token:state.tokens.curr,value:v,undef:!0,unused:!1}),!0):_current&&"define"===_current.mode?(declare(v)||_current.variables.push({funct:state.funct,token:state.tokens.curr,value:v,undef:!1,unused:!0}),!0):_current&&"generate"===_current.mode?(state.funct["(scope)"].block.use(v,state.tokens.curr),!0):_current&&"filter"===_current.mode?(use(v)&&state.funct["(scope)"].block.use(v,state.tokens.curr),!0):!1:void 0}}},escapeRegex=function(str){return str.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,"\\\\$&")},itself=function(s,o,g){function each(obj,cb){obj&&(Array.isArray(obj)||"object"!=typeof obj||(obj=Object.keys(obj)),obj.forEach(cb))}var i,k,x,reIgnoreStr,reIgnore,optionKeys,newOptionObj={},newIgnoredObj={};o=_.clone(o),state.reset(),o&&o.scope?JSHINT.scope=o.scope:(JSHINT.errors=[],JSHINT.undefs=[],JSHINT.internals=[],JSHINT.blacklist={},JSHINT.scope="(main)"),predefined=Object.create(null),combine(predefined,vars.ecmaIdentifiers[3]),combine(predefined,vars.reservedVars),combine(predefined,g||{}),declared=Object.create(null);var exported=Object.create(null);if(o)for(each(o.predef||null,function(item){var slice,prop;"-"===item[0]?(slice=item.slice(1),JSHINT.blacklist[slice]=slice,delete predefined[slice]):(prop=Object.getOwnPropertyDescriptor(o.predef,item),predefined[item]=prop?prop.value:!1)}),each(o.exported||null,function(item){exported[item]=!0}),delete o.predef,delete o.exported,optionKeys=Object.keys(o),x=0;optionKeys.length>x;x++)if(/^-W\\d{3}$/g.test(optionKeys[x]))newIgnoredObj[optionKeys[x].slice(1)]=!0;else{var optionKey=optionKeys[x];newOptionObj[optionKey]=o[optionKey],("esversion"===optionKey&&5===o[optionKey]||"es5"===optionKey&&o[optionKey])&&warning("I003"),"newcap"===optionKeys[x]&&o[optionKey]===!1&&(newOptionObj["(explicitNewcap)"]=!0)}state.option=newOptionObj,state.ignored=newIgnoredObj,state.option.indent=state.option.indent||4,state.option.maxerr=state.option.maxerr||50,indent=1;var scopeManagerInst=scopeManager(state,predefined,exported,declared);if(scopeManagerInst.on("warning",function(ev){warning.apply(null,[ev.code,ev.token].concat(ev.data))}),scopeManagerInst.on("error",function(ev){error.apply(null,[ev.code,ev.token].concat(ev.data))}),state.funct=functor("(global)",null,{"(global)":!0,"(scope)":scopeManagerInst,"(comparray)":arrayComprehension(),"(metrics)":createMetrics(state.tokens.next)}),functions=[state.funct],urls=[],stack=null,member={},membersOnly=null,inblock=!1,lookahead=[],!isString(s)&&!Array.isArray(s))return errorAt("E004",0),!1;api={get isJSON(){return state.jsonMode},getOption:function(name){return state.option[name]||null},getCache:function(name){return state.cache[name]},setCache:function(name,value){state.cache[name]=value},warn:function(code,data){warningAt.apply(null,[code,data.line,data.char].concat(data.data))},on:function(names,listener){names.split(" ").forEach(function(name){emitter.on(name,listener)}.bind(this))}},emitter.removeAllListeners(),(extraModules||[]).forEach(function(func){func(api)}),state.tokens.prev=state.tokens.curr=state.tokens.next=state.syntax["(begin)"],o&&o.ignoreDelimiters&&(Array.isArray(o.ignoreDelimiters)||(o.ignoreDelimiters=[o.ignoreDelimiters]),o.ignoreDelimiters.forEach(function(delimiterPair){delimiterPair.start&&delimiterPair.end&&(reIgnoreStr=escapeRegex(delimiterPair.start)+"[\\\\s\\\\S]*?"+escapeRegex(delimiterPair.end),reIgnore=RegExp(reIgnoreStr,"ig"),s=s.replace(reIgnore,function(match){return match.replace(/./g," ")}))})),lex=new Lexer(s),lex.on("warning",function(ev){warningAt.apply(null,[ev.code,ev.line,ev.character].concat(ev.data))}),lex.on("error",function(ev){errorAt.apply(null,[ev.code,ev.line,ev.character].concat(ev.data))}),lex.on("fatal",function(ev){quit("E041",ev.line,ev.from)}),lex.on("Identifier",function(ev){emitter.emit("Identifier",ev)}),lex.on("String",function(ev){emitter.emit("String",ev)}),lex.on("Number",function(ev){emitter.emit("Number",ev)}),lex.start();for(var name in o)_.has(o,name)&&checkOption(name,state.tokens.curr);assume(),combine(predefined,g||{}),comma.first=!0;try{switch(advance(),state.tokens.next.id){case"{":case"[":destructuringAssignOrJsonValue();break;default:directives(),state.directive["use strict"]&&"global"!==state.option.strict&&warning("W097",state.tokens.prev),statements()}"(end)"!==state.tokens.next.id&&quit("E041",state.tokens.curr.line),state.funct["(scope)"].unstack()}catch(err){if(!err||"JSHintError"!==err.name)throw err;var nt=state.tokens.next||{};JSHINT.errors.push({scope:"(main)",raw:err.raw,code:err.code,reason:err.message,line:err.line||nt.line,character:err.character||nt.from},null)}if("(main)"===JSHINT.scope)for(o=o||{},i=0;JSHINT.internals.length>i;i+=1)k=JSHINT.internals[i],o.scope=k.elem,itself(k.value,o,g);return 0===JSHINT.errors.length};return itself.addModule=function(func){extraModules.push(func)},itself.addModule(style.register),itself.data=function(){var fu,f,i,j,n,globals,data={functions:[],options:state.option};itself.errors.length&&(data.errors=itself.errors),state.jsonMode&&(data.json=!0);var impliedGlobals=state.funct["(scope)"].getImpliedGlobals();for(impliedGlobals.length>0&&(data.implieds=impliedGlobals),urls.length>0&&(data.urls=urls),globals=state.funct["(scope)"].getUsedOrDefinedGlobals(),globals.length>0&&(data.globals=globals),i=1;functions.length>i;i+=1){for(f=functions[i],fu={},j=0;functionicity.length>j;j+=1)fu[functionicity[j]]=[];for(j=0;functionicity.length>j;j+=1)0===fu[functionicity[j]].length&&delete fu[functionicity[j]];fu.name=f["(name)"],fu.param=f["(params)"],fu.line=f["(line)"],fu.character=f["(character)"],fu.last=f["(last)"],fu.lastcharacter=f["(lastcharacter)"],fu.metrics={complexity:f["(metrics)"].ComplexityCount,parameters:f["(metrics)"].arity,statements:f["(metrics)"].statementCount},data.functions.push(fu)}var unuseds=state.funct["(scope)"].getUnuseds();unuseds.length>0&&(data.unused=unuseds);for(n in member)if("number"==typeof member[n]){data.member=member;break}return data},itself.jshint=itself,itself}();"object"==typeof exports&&exports&&(exports.JSHINT=JSHINT)},{"../lodash":"/node_modules/jshint/lodash.js","./lex.js":"/node_modules/jshint/src/lex.js","./messages.js":"/node_modules/jshint/src/messages.js","./options.js":"/node_modules/jshint/src/options.js","./reg.js":"/node_modules/jshint/src/reg.js","./scope-manager.js":"/node_modules/jshint/src/scope-manager.js","./state.js":"/node_modules/jshint/src/state.js","./style.js":"/node_modules/jshint/src/style.js","./vars.js":"/node_modules/jshint/src/vars.js",events:"/node_modules/browserify/node_modules/events/events.js"}],"/node_modules/jshint/src/lex.js":[function(_dereq_,module,exports){"use strict";function asyncTrigger(){var _checks=[];return{push:function(fn){_checks.push(fn)},check:function(){for(var check=0;_checks.length>check;++check)_checks[check]();_checks.splice(0,_checks.length)}}}function Lexer(source){var lines=source;"string"==typeof lines&&(lines=lines.replace(/\\r\\n/g,"\\n").replace(/\\r/g,"\\n").split("\\n")),lines[0]&&"#!"===lines[0].substr(0,2)&&(-1!==lines[0].indexOf("node")&&(state.option.node=!0),lines[0]=""),this.emitter=new events.EventEmitter,this.source=source,this.setLines(lines),this.prereg=!0,this.line=0,this.char=1,this.from=1,this.input="",this.inComment=!1,this.context=[],this.templateStarts=[];for(var i=0;state.option.indent>i;i+=1)state.tab+=" ";this.ignoreLinterErrors=!1}var _=_dereq_("../lodash"),events=_dereq_("events"),reg=_dereq_("./reg.js"),state=_dereq_("./state.js").state,unicodeData=_dereq_("../data/ascii-identifier-data.js"),asciiIdentifierStartTable=unicodeData.asciiIdentifierStartTable,asciiIdentifierPartTable=unicodeData.asciiIdentifierPartTable,Token={Identifier:1,Punctuator:2,NumericLiteral:3,StringLiteral:4,Comment:5,Keyword:6,NullLiteral:7,BooleanLiteral:8,RegExp:9,TemplateHead:10,TemplateMiddle:11,TemplateTail:12,NoSubstTemplate:13},Context={Block:1,Template:2};Lexer.prototype={_lines:[],inContext:function(ctxType){return this.context.length>0&&this.context[this.context.length-1].type===ctxType},pushContext:function(ctxType){this.context.push({type:ctxType})},popContext:function(){return this.context.pop()},isContext:function(context){return this.context.length>0&&this.context[this.context.length-1]===context},currentContext:function(){return this.context.length>0&&this.context[this.context.length-1]},getLines:function(){return this._lines=state.lines,this._lines},setLines:function(val){this._lines=val,state.lines=this._lines},peek:function(i){return this.input.charAt(i||0)},skip:function(i){i=i||1,this.char+=i,this.input=this.input.slice(i)},on:function(names,listener){names.split(" ").forEach(function(name){this.emitter.on(name,listener)}.bind(this))},trigger:function(){this.emitter.emit.apply(this.emitter,Array.prototype.slice.call(arguments))},triggerAsync:function(type,args,checks,fn){checks.push(function(){fn()&&this.trigger(type,args)}.bind(this))},scanPunctuator:function(){var ch2,ch3,ch4,ch1=this.peek();switch(ch1){case".":if(/^[0-9]$/.test(this.peek(1)))return null;if("."===this.peek(1)&&"."===this.peek(2))return{type:Token.Punctuator,value:"..."};case"(":case")":case";":case",":case"[":case"]":case":":case"~":case"?":return{type:Token.Punctuator,value:ch1};case"{":return this.pushContext(Context.Block),{type:Token.Punctuator,value:ch1};case"}":return this.inContext(Context.Block)&&this.popContext(),{type:Token.Punctuator,value:ch1};case"#":return{type:Token.Punctuator,value:ch1};case"":return null}return ch2=this.peek(1),ch3=this.peek(2),ch4=this.peek(3),">"===ch1&&">"===ch2&&">"===ch3&&"="===ch4?{type:Token.Punctuator,value:">>>="}:"="===ch1&&"="===ch2&&"="===ch3?{type:Token.Punctuator,value:"==="}:"!"===ch1&&"="===ch2&&"="===ch3?{type:Token.Punctuator,value:"!=="}:">"===ch1&&">"===ch2&&">"===ch3?{type:Token.Punctuator,value:">>>"}:"<"===ch1&&"<"===ch2&&"="===ch3?{type:Token.Punctuator,value:"<<="}:">"===ch1&&">"===ch2&&"="===ch3?{type:Token.Punctuator,value:">>="}:"="===ch1&&">"===ch2?{type:Token.Punctuator,value:ch1+ch2}:ch1===ch2&&"+-<>&|".indexOf(ch1)>=0?{type:Token.Punctuator,value:ch1+ch2}:"<>=!+-*%&|^".indexOf(ch1)>=0?"="===ch2?{type:Token.Punctuator,value:ch1+ch2}:{type:Token.Punctuator,value:ch1}:"/"===ch1?"="===ch2?{type:Token.Punctuator,value:"/="}:{type:Token.Punctuator,value:"/"}:null},scanComments:function(){function commentToken(label,body,opt){var special=["jshint","jslint","members","member","globals","global","exported"],isSpecial=!1,value=label+body,commentType="plain";return opt=opt||{},opt.isMultiline&&(value+="*/"),body=body.replace(/\\n/g," "),"/*"===label&&reg.fallsThrough.test(body)&&(isSpecial=!0,commentType="falls through"),special.forEach(function(str){if(!isSpecial&&("//"!==label||"jshint"===str)&&(" "===body.charAt(str.length)&&body.substr(0,str.length)===str&&(isSpecial=!0,label+=str,body=body.substr(str.length)),isSpecial||" "!==body.charAt(0)||" "!==body.charAt(str.length+1)||body.substr(1,str.length)!==str||(isSpecial=!0,label=label+" "+str,body=body.substr(str.length+1)),isSpecial))switch(str){case"member":commentType="members";break;case"global":commentType="globals";break;default:var options=body.split(":").map(function(v){return v.replace(/^\\s+/,"").replace(/\\s+$/,"")});if(2===options.length)switch(options[0]){case"ignore":switch(options[1]){case"start":self.ignoringLinterErrors=!0,isSpecial=!1;break;case"end":self.ignoringLinterErrors=!1,isSpecial=!1}}commentType=str}}),{type:Token.Comment,commentType:commentType,value:value,body:body,isSpecial:isSpecial,isMultiline:opt.isMultiline||!1,isMalformed:opt.isMalformed||!1}}var ch1=this.peek(),ch2=this.peek(1),rest=this.input.substr(2),startLine=this.line,startChar=this.char,self=this;if("*"===ch1&&"/"===ch2)return this.trigger("error",{code:"E018",line:startLine,character:startChar}),this.skip(2),null;if("/"!==ch1||"*"!==ch2&&"/"!==ch2)return null;if("/"===ch2)return this.skip(this.input.length),commentToken("//",rest);var body="";if("*"===ch2){for(this.inComment=!0,this.skip(2);"*"!==this.peek()||"/"!==this.peek(1);)if(""===this.peek()){if(body+="\\n",!this.nextLine())return this.trigger("error",{code:"E017",line:startLine,character:startChar}),this.inComment=!1,commentToken("/*",body,{isMultiline:!0,isMalformed:!0})}else body+=this.peek(),this.skip();return this.skip(2),this.inComment=!1,commentToken("/*",body,{isMultiline:!0})}},scanKeyword:function(){var result=/^[a-zA-Z_$][a-zA-Z0-9_$]*/.exec(this.input),keywords=["if","in","do","var","for","new","try","let","this","else","case","void","with","enum","while","break","catch","throw","const","yield","class","super","return","typeof","delete","switch","export","import","default","finally","extends","function","continue","debugger","instanceof"];return result&&keywords.indexOf(result[0])>=0?{type:Token.Keyword,value:result[0]}:null},scanIdentifier:function(){function isNonAsciiIdentifierStart(code){return code>256}function isNonAsciiIdentifierPart(code){return code>256}function isHexDigit(str){return/^[0-9a-fA-F]$/.test(str)}function removeEscapeSequences(id){return id.replace(/\\\\u([0-9a-fA-F]{4})/g,function(m0,codepoint){return String.fromCharCode(parseInt(codepoint,16))})}var type,char,id="",index=0,readUnicodeEscapeSequence=function(){if(index+=1,"u"!==this.peek(index))return null;var code,ch1=this.peek(index+1),ch2=this.peek(index+2),ch3=this.peek(index+3),ch4=this.peek(index+4);return isHexDigit(ch1)&&isHexDigit(ch2)&&isHexDigit(ch3)&&isHexDigit(ch4)?(code=parseInt(ch1+ch2+ch3+ch4,16),asciiIdentifierPartTable[code]||isNonAsciiIdentifierPart(code)?(index+=5,"\\\\u"+ch1+ch2+ch3+ch4):null):null}.bind(this),getIdentifierStart=function(){var chr=this.peek(index),code=chr.charCodeAt(0);return 92===code?readUnicodeEscapeSequence():128>code?asciiIdentifierStartTable[code]?(index+=1,chr):null:isNonAsciiIdentifierStart(code)?(index+=1,chr):null}.bind(this),getIdentifierPart=function(){var chr=this.peek(index),code=chr.charCodeAt(0);return 92===code?readUnicodeEscapeSequence():128>code?asciiIdentifierPartTable[code]?(index+=1,chr):null:isNonAsciiIdentifierPart(code)?(index+=1,chr):null}.bind(this);if(char=getIdentifierStart(),null===char)return null;for(id=char;char=getIdentifierPart(),null!==char;)id+=char;switch(id){case"true":case"false":type=Token.BooleanLiteral;break;case"null":type=Token.NullLiteral;break;default:type=Token.Identifier}return{type:type,value:removeEscapeSequences(id),text:id,tokenLength:id.length}},scanNumericLiteral:function(){function isDecimalDigit(str){return/^[0-9]$/.test(str)}function isOctalDigit(str){return/^[0-7]$/.test(str)}function isBinaryDigit(str){return/^[01]$/.test(str)}function isHexDigit(str){return/^[0-9a-fA-F]$/.test(str)}function isIdentifierStart(ch){return"$"===ch||"_"===ch||"\\\\"===ch||ch>="a"&&"z">=ch||ch>="A"&&"Z">=ch}var bad,index=0,value="",length=this.input.length,char=this.peek(index),isAllowedDigit=isDecimalDigit,base=10,isLegacy=!1;if("."!==char&&!isDecimalDigit(char))return null;if("."!==char){for(value=this.peek(index),index+=1,char=this.peek(index),"0"===value&&(("x"===char||"X"===char)&&(isAllowedDigit=isHexDigit,base=16,index+=1,value+=char),("o"===char||"O"===char)&&(isAllowedDigit=isOctalDigit,base=8,state.inES6(!0)||this.trigger("warning",{code:"W119",line:this.line,character:this.char,data:["Octal integer literal","6"]}),index+=1,value+=char),("b"===char||"B"===char)&&(isAllowedDigit=isBinaryDigit,base=2,state.inES6(!0)||this.trigger("warning",{code:"W119",line:this.line,character:this.char,data:["Binary integer literal","6"]}),index+=1,value+=char),isOctalDigit(char)&&(isAllowedDigit=isOctalDigit,base=8,isLegacy=!0,bad=!1,index+=1,value+=char),!isOctalDigit(char)&&isDecimalDigit(char)&&(index+=1,value+=char));length>index;){if(char=this.peek(index),isLegacy&&isDecimalDigit(char))bad=!0;else if(!isAllowedDigit(char))break;value+=char,index+=1}if(isAllowedDigit!==isDecimalDigit)return!isLegacy&&2>=value.length?{type:Token.NumericLiteral,value:value,isMalformed:!0}:length>index&&(char=this.peek(index),isIdentifierStart(char))?null:{type:Token.NumericLiteral,value:value,base:base,isLegacy:isLegacy,isMalformed:!1}}if("."===char)for(value+=char,index+=1;length>index&&(char=this.peek(index),isDecimalDigit(char));)value+=char,index+=1;if("e"===char||"E"===char){if(value+=char,index+=1,char=this.peek(index),("+"===char||"-"===char)&&(value+=this.peek(index),index+=1),char=this.peek(index),!isDecimalDigit(char))return null;for(value+=char,index+=1;length>index&&(char=this.peek(index),isDecimalDigit(char));)value+=char,index+=1}return length>index&&(char=this.peek(index),isIdentifierStart(char))?null:{type:Token.NumericLiteral,value:value,base:base,isMalformed:!isFinite(value)}},scanEscapeSequence:function(checks){var allowNewLine=!1,jump=1;this.skip();var char=this.peek();switch(char){case"\'":this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\\'"]},checks,function(){return state.jsonMode});break;case"b":char="\\\\b";break;case"f":char="\\\\f";break;case"n":char="\\\\n";break;case"r":char="\\\\r";break;case"t":char="\\\\t";break;case"0":char="\\\\0";var n=parseInt(this.peek(1),10);this.triggerAsync("warning",{code:"W115",line:this.line,character:this.char},checks,function(){return n>=0&&7>=n&&state.isStrict()});break;case"u":var hexCode=this.input.substr(1,4),code=parseInt(hexCode,16);isNaN(code)&&this.trigger("warning",{code:"W052",line:this.line,character:this.char,data:["u"+hexCode]}),char=String.fromCharCode(code),jump=5;break;case"v":this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\v"]},checks,function(){return state.jsonMode}),char="\v";break;case"x":var x=parseInt(this.input.substr(1,2),16);this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["\\\\x-"]},checks,function(){return state.jsonMode}),char=String.fromCharCode(x),jump=3;break;case"\\\\":char="\\\\\\\\";break;case\'"\':char=\'\\\\"\';break;case"/":break;case"":allowNewLine=!0,char=""}return{"char":char,jump:jump,allowNewLine:allowNewLine}},scanTemplateLiteral:function(checks){var tokenType,ch,value="",startLine=this.line,startChar=this.char,depth=this.templateStarts.length;if(!state.inES6(!0))return null;if("`"===this.peek())tokenType=Token.TemplateHead,this.templateStarts.push({line:this.line,"char":this.char}),depth=this.templateStarts.length,this.skip(1),this.pushContext(Context.Template);else{if(!this.inContext(Context.Template)||"}"!==this.peek())return null;tokenType=Token.TemplateMiddle}for(;"`"!==this.peek();){for(;""===(ch=this.peek());)if(value+="\\n",!this.nextLine()){var startPos=this.templateStarts.pop();return this.trigger("error",{code:"E052",line:startPos.line,character:startPos.char}),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!0,depth:depth,context:this.popContext()}}if("$"===ch&&"{"===this.peek(1))return value+="${",this.skip(2),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,depth:depth,context:this.currentContext()};\nif("\\\\"===ch){var escape=this.scanEscapeSequence(checks);value+=escape.char,this.skip(escape.jump)}else"`"!==ch&&(value+=ch,this.skip(1))}return tokenType=tokenType===Token.TemplateHead?Token.NoSubstTemplate:Token.TemplateTail,this.skip(1),this.templateStarts.pop(),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,depth:depth,context:this.popContext()}},scanStringLiteral:function(checks){var quote=this.peek();if(\'"\'!==quote&&"\'"!==quote)return null;this.triggerAsync("warning",{code:"W108",line:this.line,character:this.char},checks,function(){return state.jsonMode&&\'"\'!==quote});var value="",startLine=this.line,startChar=this.char,allowNewLine=!1;for(this.skip();this.peek()!==quote;)if(""===this.peek()){if(allowNewLine?(allowNewLine=!1,this.triggerAsync("warning",{code:"W043",line:this.line,character:this.char},checks,function(){return!state.option.multistr}),this.triggerAsync("warning",{code:"W042",line:this.line,character:this.char},checks,function(){return state.jsonMode&&state.option.multistr})):this.trigger("warning",{code:"W112",line:this.line,character:this.char}),!this.nextLine())return this.trigger("error",{code:"E029",line:startLine,character:startChar}),{type:Token.StringLiteral,value:value,startLine:startLine,startChar:startChar,isUnclosed:!0,quote:quote}}else{allowNewLine=!1;var char=this.peek(),jump=1;if(" ">char&&this.trigger("warning",{code:"W113",line:this.line,character:this.char,data:["<non-printable>"]}),"\\\\"===char){var parsed=this.scanEscapeSequence(checks);char=parsed.char,jump=parsed.jump,allowNewLine=parsed.allowNewLine}value+=char,this.skip(jump)}return this.skip(),{type:Token.StringLiteral,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,quote:quote}},scanRegExp:function(){var terminated,index=0,length=this.input.length,char=this.peek(),value=char,body="",flags=[],malformed=!1,isCharSet=!1,scanUnexpectedChars=function(){" ">char&&(malformed=!0,this.trigger("warning",{code:"W048",line:this.line,character:this.char})),"<"===char&&(malformed=!0,this.trigger("warning",{code:"W049",line:this.line,character:this.char,data:[char]}))}.bind(this);if(!this.prereg||"/"!==char)return null;for(index+=1,terminated=!1;length>index;)if(char=this.peek(index),value+=char,body+=char,isCharSet)"]"===char&&("\\\\"!==this.peek(index-1)||"\\\\"===this.peek(index-2))&&(isCharSet=!1),"\\\\"===char&&(index+=1,char=this.peek(index),body+=char,value+=char,scanUnexpectedChars()),index+=1;else{if("\\\\"===char){if(index+=1,char=this.peek(index),body+=char,value+=char,scanUnexpectedChars(),"/"===char){index+=1;continue}if("["===char){index+=1;continue}}if("["!==char){if("/"===char){body=body.substr(0,body.length-1),terminated=!0,index+=1;break}index+=1}else isCharSet=!0,index+=1}if(!terminated)return this.trigger("error",{code:"E015",line:this.line,character:this.from}),void this.trigger("fatal",{line:this.line,from:this.from});for(;length>index&&(char=this.peek(index),/[gim]/.test(char));)flags.push(char),value+=char,index+=1;try{RegExp(body,flags.join(""))}catch(err){malformed=!0,this.trigger("error",{code:"E016",line:this.line,character:this.char,data:[err.message]})}return{type:Token.RegExp,value:value,flags:flags,isMalformed:malformed}},scanNonBreakingSpaces:function(){return state.option.nonbsp?this.input.search(/(\\u00A0)/):-1},scanUnsafeChars:function(){return this.input.search(reg.unsafeChars)},next:function(checks){this.from=this.char;var start;if(/\\s/.test(this.peek()))for(start=this.char;/\\s/.test(this.peek());)this.from+=1,this.skip();var match=this.scanComments()||this.scanStringLiteral(checks)||this.scanTemplateLiteral(checks);return match?match:(match=this.scanRegExp()||this.scanPunctuator()||this.scanKeyword()||this.scanIdentifier()||this.scanNumericLiteral(),match?(this.skip(match.tokenLength||match.value.length),match):null)},nextLine:function(){var char;if(this.line>=this.getLines().length)return!1;this.input=this.getLines()[this.line],this.line+=1,this.char=1,this.from=1;var inputTrimmed=this.input.trim(),startsWith=function(){return _.some(arguments,function(prefix){return 0===inputTrimmed.indexOf(prefix)})},endsWith=function(){return _.some(arguments,function(suffix){return-1!==inputTrimmed.indexOf(suffix,inputTrimmed.length-suffix.length)})};if(this.ignoringLinterErrors===!0&&(startsWith("/*","//")||this.inComment&&endsWith("*/")||(this.input="")),char=this.scanNonBreakingSpaces(),char>=0&&this.trigger("warning",{code:"W125",line:this.line,character:char+1}),this.input=this.input.replace(/\\t/g,state.tab),char=this.scanUnsafeChars(),char>=0&&this.trigger("warning",{code:"W100",line:this.line,character:char}),!this.ignoringLinterErrors&&state.option.maxlen&&state.option.maxlen<this.input.length){var inComment=this.inComment||startsWith.call(inputTrimmed,"//")||startsWith.call(inputTrimmed,"/*"),shouldTriggerError=!inComment||!reg.maxlenException.test(inputTrimmed);shouldTriggerError&&this.trigger("warning",{code:"W101",line:this.line,character:this.input.length})}return!0},start:function(){this.nextLine()},token:function(){function isReserved(token,isProperty){if(!token.reserved)return!1;var meta=token.meta;if(meta&&meta.isFutureReservedWord&&state.inES5()){if(!meta.es5)return!1;if(meta.strictOnly&&!state.option.strict&&!state.isStrict())return!1;if(isProperty)return!1}return!0}for(var token,checks=asyncTrigger(),create=function(type,value,isProperty,token){var obj;if("(endline)"!==type&&"(end)"!==type&&(this.prereg=!1),"(punctuator)"===type){switch(value){case".":case")":case"~":case"#":case"]":case"++":case"--":this.prereg=!1;break;default:this.prereg=!0}obj=Object.create(state.syntax[value]||state.syntax["(error)"])}return"(identifier)"===type&&(("return"===value||"case"===value||"typeof"===value)&&(this.prereg=!0),_.has(state.syntax,value)&&(obj=Object.create(state.syntax[value]||state.syntax["(error)"]),isReserved(obj,isProperty&&"(identifier)"===type)||(obj=null))),obj||(obj=Object.create(state.syntax[type])),obj.identifier="(identifier)"===type,obj.type=obj.type||type,obj.value=value,obj.line=this.line,obj.character=this.char,obj.from=this.from,obj.identifier&&token&&(obj.raw_text=token.text||token.value),token&&token.startLine&&token.startLine!==this.line&&(obj.startLine=token.startLine),token&&token.context&&(obj.context=token.context),token&&token.depth&&(obj.depth=token.depth),token&&token.isUnclosed&&(obj.isUnclosed=token.isUnclosed),isProperty&&obj.identifier&&(obj.isProperty=isProperty),obj.check=checks.check,obj}.bind(this);;){if(!this.input.length)return this.nextLine()?create("(endline)",""):this.exhausted?null:(this.exhausted=!0,create("(end)",""));if(token=this.next(checks))switch(token.type){case Token.StringLiteral:return this.triggerAsync("String",{line:this.line,"char":this.char,from:this.from,startLine:token.startLine,startChar:token.startChar,value:token.value,quote:token.quote},checks,function(){return!0}),create("(string)",token.value,null,token);case Token.TemplateHead:return this.trigger("TemplateHead",{line:this.line,"char":this.char,from:this.from,startLine:token.startLine,startChar:token.startChar,value:token.value}),create("(template)",token.value,null,token);case Token.TemplateMiddle:return this.trigger("TemplateMiddle",{line:this.line,"char":this.char,from:this.from,startLine:token.startLine,startChar:token.startChar,value:token.value}),create("(template middle)",token.value,null,token);case Token.TemplateTail:return this.trigger("TemplateTail",{line:this.line,"char":this.char,from:this.from,startLine:token.startLine,startChar:token.startChar,value:token.value}),create("(template tail)",token.value,null,token);case Token.NoSubstTemplate:return this.trigger("NoSubstTemplate",{line:this.line,"char":this.char,from:this.from,startLine:token.startLine,startChar:token.startChar,value:token.value}),create("(no subst template)",token.value,null,token);case Token.Identifier:this.triggerAsync("Identifier",{line:this.line,"char":this.char,from:this.form,name:token.value,raw_name:token.text,isProperty:"."===state.tokens.curr.id},checks,function(){return!0});case Token.Keyword:case Token.NullLiteral:case Token.BooleanLiteral:return create("(identifier)",token.value,"."===state.tokens.curr.id,token);case Token.NumericLiteral:return token.isMalformed&&this.trigger("warning",{code:"W045",line:this.line,character:this.char,data:[token.value]}),this.triggerAsync("warning",{code:"W114",line:this.line,character:this.char,data:["0x-"]},checks,function(){return 16===token.base&&state.jsonMode}),this.triggerAsync("warning",{code:"W115",line:this.line,character:this.char},checks,function(){return state.isStrict()&&8===token.base&&token.isLegacy}),this.trigger("Number",{line:this.line,"char":this.char,from:this.from,value:token.value,base:token.base,isMalformed:token.malformed}),create("(number)",token.value);case Token.RegExp:return create("(regexp)",token.value);case Token.Comment:if(state.tokens.curr.comment=!0,token.isSpecial)return{id:"(comment)",value:token.value,body:token.body,type:token.commentType,isSpecial:token.isSpecial,line:this.line,character:this.char,from:this.from};break;case"":break;default:return create("(punctuator)",token.value)}else this.input.length&&(this.trigger("error",{code:"E024",line:this.line,character:this.char,data:[this.peek()]}),this.input="")}}},exports.Lexer=Lexer,exports.Context=Context},{"../data/ascii-identifier-data.js":"/node_modules/jshint/data/ascii-identifier-data.js","../lodash":"/node_modules/jshint/lodash.js","./reg.js":"/node_modules/jshint/src/reg.js","./state.js":"/node_modules/jshint/src/state.js",events:"/node_modules/browserify/node_modules/events/events.js"}],"/node_modules/jshint/src/messages.js":[function(_dereq_,module,exports){"use strict";var _=_dereq_("../lodash"),errors={E001:"Bad option: \'{a}\'.",E002:"Bad option value.",E003:"Expected a JSON value.",E004:"Input is neither a string nor an array of strings.",E005:"Input is empty.",E006:"Unexpected early end of program.",E007:\'Missing "use strict" statement.\',E008:"Strict violation.",E009:"Option \'validthis\' can\'t be used in a global scope.",E010:"\'with\' is not allowed in strict mode.",E011:"\'{a}\' has already been declared.",E012:"const \'{a}\' is initialized to \'undefined\'.",E013:"Attempting to override \'{a}\' which is a constant.",E014:"A regular expression literal can be confused with \'/=\'.",E015:"Unclosed regular expression.",E016:"Invalid regular expression.",E017:"Unclosed comment.",E018:"Unbegun comment.",E019:"Unmatched \'{a}\'.",E020:"Expected \'{a}\' to match \'{b}\' from line {c} and instead saw \'{d}\'.",E021:"Expected \'{a}\' and instead saw \'{b}\'.",E022:"Line breaking error \'{a}\'.",E023:"Missing \'{a}\'.",E024:"Unexpected \'{a}\'.",E025:"Missing \':\' on a case clause.",E026:"Missing \'}\' to match \'{\' from line {a}.",E027:"Missing \']\' to match \'[\' from line {a}.",E028:"Illegal comma.",E029:"Unclosed string.",E030:"Expected an identifier and instead saw \'{a}\'.",E031:"Bad assignment.",E032:"Expected a small integer or \'false\' and instead saw \'{a}\'.",E033:"Expected an operator and instead saw \'{a}\'.",E034:"get/set are ES5 features.",E035:"Missing property name.",E036:"Expected to see a statement and instead saw a block.",E037:null,E038:null,E039:"Function declarations are not invocable. Wrap the whole function invocation in parens.",E040:"Each value should have its own case label.",E041:"Unrecoverable syntax error.",E042:"Stopping.",E043:"Too many errors.",E044:null,E045:"Invalid for each loop.",E046:"A yield statement shall be within a generator function (with syntax: `function*`)",E047:null,E048:"{a} declaration not directly within block.",E049:"A {a} cannot be named \'{b}\'.",E050:"Mozilla acequires the yield expression to be parenthesized here.",E051:null,E052:"Unclosed template literal.",E053:"Export declaration must be in global scope.",E054:"Class properties must be methods. Expected \'(\' but instead saw \'{a}\'.",E055:"The \'{a}\' option cannot be set after any executable code.",E056:"\'{a}\' was used before it was declared, which is illegal for \'{b}\' variables.",E057:"Invalid meta property: \'{a}.{b}\'.",E058:"Missing semicolon."},warnings={W001:"\'hasOwnProperty\' is a really bad name.",W002:"Value of \'{a}\' may be overwritten in IE 8 and earlier.",W003:"\'{a}\' was used before it was defined.",W004:"\'{a}\' is already defined.",W005:"A dot following a number can be confused with a decimal point.",W006:"Confusing minuses.",W007:"Confusing plusses.",W008:"A leading decimal point can be confused with a dot: \'{a}\'.",W009:"The array literal notation [] is preferable.",W010:"The object literal notation {} is preferable.",W011:null,W012:null,W013:null,W014:"Bad line breaking before \'{a}\'.",W015:null,W016:"Unexpected use of \'{a}\'.",W017:"Bad operand.",W018:"Confusing use of \'{a}\'.",W019:"Use the isNaN function to compare with NaN.",W020:"Read only.",W021:"Reassignment of \'{a}\', which is is a {b}. Use \'var\' or \'let\' to declare bindings that may change.",W022:"Do not assign to the exception parameter.",W023:"Expected an identifier in an assignment and instead saw a function invocation.",W024:"Expected an identifier and instead saw \'{a}\' (a reserved word).",W025:"Missing name in function declaration.",W026:"Inner functions should be listed at the top of the outer function.",W027:"Unreachable \'{a}\' after \'{b}\'.",W028:"Label \'{a}\' on {b} statement.",W030:"Expected an assignment or function call and instead saw an expression.",W031:"Do not use \'new\' for side effects.",W032:"Unnecessary semicolon.",W033:"Missing semicolon.",W034:\'Unnecessary directive "{a}".\',W035:"Empty block.",W036:"Unexpected /*member \'{a}\'.",W037:"\'{a}\' is a statement label.",W038:"\'{a}\' used out of scope.",W039:"\'{a}\' is not allowed.",W040:"Possible strict violation.",W041:"Use \'{a}\' to compare with \'{b}\'.",W042:"Avoid EOL escaping.",W043:"Bad escaping of EOL. Use option multistr if needed.",W044:"Bad or unnecessary escaping.",W045:"Bad number \'{a}\'.",W046:"Don\'t use extra leading zeros \'{a}\'.",W047:"A trailing decimal point can be confused with a dot: \'{a}\'.",W048:"Unexpected control character in regular expression.",W049:"Unexpected escaped character \'{a}\' in regular expression.",W050:"JavaScript URL.",W051:"Variables should not be deleted.",W052:"Unexpected \'{a}\'.",W053:"Do not use {a} as a constructor.",W054:"The Function constructor is a form of eval.",W055:"A constructor name should start with an uppercase letter.",W056:"Bad constructor.",W057:"Weird construction. Is \'new\' necessary?",W058:"Missing \'()\' invoking a constructor.",W059:"Avoid arguments.{a}.",W060:"document.write can be a form of eval.",W061:"eval can be harmful.",W062:"Wrap an immediate function invocation in parens to assist the reader in understanding that the expression is the result of a function, and not the function itself.",W063:"Math is not a function.",W064:"Missing \'new\' prefix when invoking a constructor.",W065:"Missing radix parameter.",W066:"Implied eval. Consider passing a function instead of a string.",W067:"Bad invocation.",W068:"Wrapping non-IIFE function literals in parens is unnecessary.",W069:"[\'{a}\'] is better written in dot notation.",W070:"Extra comma. (it breaks older versions of IE)",W071:"This function has too many statements. ({a})",W072:"This function has too many parameters. ({a})",W073:"Blocks are nested too deeply. ({a})",W074:"This function\'s cyclomatic complexity is too high. ({a})",W075:"Duplicate {a} \'{b}\'.",W076:"Unexpected parameter \'{a}\' in get {b} function.",W077:"Expected a single parameter in set {a} function.",W078:"Setter is defined without getter.",W079:"Redefinition of \'{a}\'.",W080:"It\'s not necessary to initialize \'{a}\' to \'undefined\'.",W081:null,W082:"Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.",W083:"Don\'t make functions within a loop.",W084:"Assignment in conditional expression",W085:"Don\'t use \'with\'.",W086:"Expected a \'break\' statement before \'{a}\'.",W087:"Forgotten \'debugger\' statement?",W088:"Creating global \'for\' variable. Should be \'for (var {a} ...\'.",W089:"The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.",W090:"\'{a}\' is not a statement label.",W091:null,W093:"Did you mean to return a conditional instead of an assignment?",W094:"Unexpected comma.",W095:"Expected a string and instead saw {a}.",W096:"The \'{a}\' key may produce unexpected results.",W097:\'Use the function form of "use strict".\',W098:"\'{a}\' is defined but never used.",W099:null,W100:"This character may get silently deleted by one or more browsers.",W101:"Line is too long.",W102:null,W103:"The \'{a}\' property is deprecated.",W104:"\'{a}\' is available in ES{b} (use \'esversion: {b}\') or Mozilla JS extensions (use moz).",W105:"Unexpected {a} in \'{b}\'.",W106:"Identifier \'{a}\' is not in camel case.",W107:"Script URL.",W108:"Strings must use doublequote.",W109:"Strings must use singlequote.",W110:"Mixed double and single quotes.",W112:"Unclosed string.",W113:"Control character in string: {a}.",W114:"Avoid {a}.",W115:"Octal literals are not allowed in strict mode.",W116:"Expected \'{a}\' and instead saw \'{b}\'.",W117:"\'{a}\' is not defined.",W118:"\'{a}\' is only available in Mozilla JavaScript extensions (use moz option).",W119:"\'{a}\' is only available in ES{b} (use \'esversion: {b}\').",W120:"You might be leaking a variable ({a}) here.",W121:"Extending prototype of native object: \'{a}\'.",W122:"Invalid typeof value \'{a}\'",W123:"\'{a}\' is already defined in outer scope.",W124:"A generator function shall contain a yield statement.",W125:"This line contains non-breaking spaces: http://jshint.com/doc/options/#nonbsp",W126:"Unnecessary grouping operator.",W127:"Unexpected use of a comma operator.",W128:"Empty array elements acequire elision=true.",W129:"\'{a}\' is defined in a future version of JavaScript. Use a different variable name to avoid migration issues.",W130:"Invalid element after rest element.",W131:"Invalid parameter after rest parameter.",W132:"`var` declarations are forbidden. Use `let` or `const` instead.",W133:"Invalid for-{a} loop left-hand-side: {b}.",W134:"The \'{a}\' option is only available when linting ECMAScript {b} code.",W135:"{a} may not be supported by non-browser environments.",W136:"\'{a}\' must be in function scope.",W137:"Empty destructuring.",W138:"Regular parameters should not come after default parameters."},info={I001:"Comma warnings can be turned off with \'laxcomma\'.",I002:null,I003:"ES5 option is now set per default"};exports.errors={},exports.warnings={},exports.info={},_.each(errors,function(desc,code){exports.errors[code]={code:code,desc:desc}}),_.each(warnings,function(desc,code){exports.warnings[code]={code:code,desc:desc}}),_.each(info,function(desc,code){exports.info[code]={code:code,desc:desc}})},{"../lodash":"/node_modules/jshint/lodash.js"}],"/node_modules/jshint/src/name-stack.js":[function(_dereq_,module){"use strict";function NameStack(){this._stack=[]}Object.defineProperty(NameStack.prototype,"length",{get:function(){return this._stack.length}}),NameStack.prototype.push=function(){this._stack.push(null)},NameStack.prototype.pop=function(){this._stack.pop()},NameStack.prototype.set=function(token){this._stack[this.length-1]=token},NameStack.prototype.infer=function(){var type,nameToken=this._stack[this.length-1],prefix="";return nameToken&&"class"!==nameToken.type||(nameToken=this._stack[this.length-2]),nameToken?(type=nameToken.type,"(string)"!==type&&"(number)"!==type&&"(identifier)"!==type&&"default"!==type?"(expression)":(nameToken.accessorType&&(prefix=nameToken.accessorType+" "),prefix+nameToken.value)):"(empty)"},module.exports=NameStack},{}],"/node_modules/jshint/src/options.js":[function(_dereq_,module,exports){"use strict";exports.bool={enforcing:{bitwise:!0,freeze:!0,camelcase:!0,curly:!0,eqeqeq:!0,futurehostile:!0,notypeof:!0,es3:!0,es5:!0,forin:!0,funcscope:!0,immed:!0,iterator:!0,newcap:!0,noarg:!0,nocomma:!0,noempty:!0,nonbsp:!0,nonew:!0,undef:!0,singleGroups:!1,varstmt:!1,enforceall:!1},relaxing:{asi:!0,multistr:!0,debug:!0,boss:!0,evil:!0,globalstrict:!0,plusplus:!0,proto:!0,scripturl:!0,sub:!0,supernew:!0,laxbreak:!0,laxcomma:!0,validthis:!0,withstmt:!0,moz:!0,noyield:!0,eqnull:!0,lastsemic:!0,loopfunc:!0,expr:!0,esnext:!0,elision:!0},environments:{mootools:!0,couch:!0,jasmine:!0,jquery:!0,node:!0,qunit:!0,rhino:!0,shelljs:!0,prototypejs:!0,yui:!0,mocha:!0,module:!0,wsh:!0,worker:!0,nonstandard:!0,browser:!0,browserify:!0,devel:!0,dojo:!0,typed:!0,phantom:!0},obsolete:{onecase:!0,regexp:!0,regexdash:!0}},exports.val={maxlen:!1,indent:!1,maxerr:!1,predef:!1,globals:!1,quotmark:!1,scope:!1,maxstatements:!1,maxdepth:!1,maxparams:!1,maxcomplexity:!1,shadow:!1,strict:!0,unused:!0,latedef:!1,ignore:!1,ignoreDelimiters:!1,esversion:5},exports.inverted={bitwise:!0,forin:!0,newcap:!0,plusplus:!0,regexp:!0,undef:!0,eqeqeq:!0,strict:!0},exports.validNames=Object.keys(exports.val).concat(Object.keys(exports.bool.relaxing)).concat(Object.keys(exports.bool.enforcing)).concat(Object.keys(exports.bool.obsolete)).concat(Object.keys(exports.bool.environments)),exports.renamed={eqeq:"eqeqeq",windows:"wsh",sloppy:"strict"},exports.removed={nomen:!0,onevar:!0,passfail:!0,white:!0,gcl:!0,smarttabs:!0,trailing:!0},exports.noenforceall={varstmt:!0,strict:!0}},{}],"/node_modules/jshint/src/reg.js":[function(_dereq_,module,exports){"use strict";exports.unsafeString=/@cc|<\\/?|script|\\]\\s*\\]|<\\s*!|&lt/i,exports.unsafeChars=/[\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/,exports.needEsc=/[\\u0000-\\u001f&<"\\/\\\\\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/,exports.needEscGlobal=/[\\u0000-\\u001f&<"\\/\\\\\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/g,exports.starSlash=/\\*\\//,exports.identifier=/^([a-zA-Z_$][a-zA-Z0-9_$]*)$/,exports.javascriptURL=/^(?:javascript|jscript|ecmascript|vbscript|livescript)\\s*:/i,exports.fallsThrough=/^\\s*falls?\\sthrough\\s*$/,exports.maxlenException=/^(?:(?:\\/\\/|\\/\\*|\\*) ?)?[^ ]+$/},{}],"/node_modules/jshint/src/scope-manager.js":[function(_dereq_,module){"use strict";var _=_dereq_("../lodash"),events=_dereq_("events"),marker={},scopeManager=function(state,predefined,exported,declared){function _newScope(type){_current={"(labels)":Object.create(null),"(usages)":Object.create(null),"(breakLabels)":Object.create(null),"(parent)":_current,"(type)":type,"(params)":"functionparams"===type||"catchparams"===type?[]:null},_scopeStack.push(_current)}function warning(code,token){emitter.emit("warning",{code:code,token:token,data:_.slice(arguments,2)})}function error(code,token){emitter.emit("warning",{code:code,token:token,data:_.slice(arguments,2)})}function _setupUsages(labelName){_current["(usages)"][labelName]||(_current["(usages)"][labelName]={"(modified)":[],"(reassigned)":[],"(tokens)":[]})}function _checkForUnused(){if("functionparams"===_current["(type)"])return _checkParams(),void 0;var curentLabels=_current["(labels)"];for(var labelName in curentLabels)curentLabels[labelName]&&"exception"!==curentLabels[labelName]["(type)"]&&curentLabels[labelName]["(unused)"]&&_warnUnused(labelName,curentLabels[labelName]["(token)"],"var")}function _checkParams(){var params=_current["(params)"];if(params)for(var unused_opt,param=params.pop();param;){var label=_current["(labels)"][param];if(unused_opt=_getUnusedOption(state.funct["(unusedOption)"]),"undefined"===param)return;if(label["(unused)"])_warnUnused(param,label["(token)"],"param",state.funct["(unusedOption)"]);else if("last-param"===unused_opt)return;param=params.pop()}}function _getLabel(labelName){for(var i=_scopeStack.length-1;i>=0;--i){var scopeLabels=_scopeStack[i]["(labels)"];if(scopeLabels[labelName])return scopeLabels}}function usedSoFarInCurrentFunction(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current["(usages)"][labelName])return current["(usages)"][labelName];if(current===_currentFunctBody)break}return!1}function _checkOuterShadow(labelName,token){if("outer"===state.option.shadow)for(var isGlobal="global"===_currentFunctBody["(type)"],isNewFunction="functionparams"===_current["(type)"],outsideCurrentFunction=!isGlobal,i=0;_scopeStack.length>i;i++){var stackItem=_scopeStack[i];isNewFunction||_scopeStack[i+1]!==_currentFunctBody||(outsideCurrentFunction=!1),outsideCurrentFunction&&stackItem["(labels)"][labelName]&&warning("W123",token,labelName),stackItem["(breakLabels)"][labelName]&&warning("W123",token,labelName)}}function _latedefWarning(type,labelName,token){state.option.latedef&&(state.option.latedef===!0&&"function"===type||"function"!==type)&&warning("W003",token,labelName)}var _current,_scopeStack=[];_newScope("global"),_current["(predefined)"]=predefined;var _currentFunctBody=_current,usedPredefinedAndGlobals=Object.create(null),impliedGlobals=Object.create(null),unuseds=[],emitter=new events.EventEmitter,_getUnusedOption=function(unused_opt){return void 0===unused_opt&&(unused_opt=state.option.unused),unused_opt===!0&&(unused_opt="last-param"),unused_opt},_warnUnused=function(name,tkn,type,unused_opt){var line=tkn.line,chr=tkn.from,raw_name=tkn.raw_text||name;unused_opt=_getUnusedOption(unused_opt);var warnable_types={vars:["var"],"last-param":["var","param"],strict:["var","param","last-param"]};unused_opt&&warnable_types[unused_opt]&&-1!==warnable_types[unused_opt].indexOf(type)&&warning("W098",{line:line,from:chr},raw_name),(unused_opt||"var"===type)&&unuseds.push({name:name,line:line,character:chr})},scopeManagerInst={on:function(names,listener){names.split(" ").forEach(function(name){emitter.on(name,listener)})},isPredefined:function(labelName){return!this.has(labelName)&&_.has(_scopeStack[0]["(predefined)"],labelName)},stack:function(type){var previousScope=_current;_newScope(type),type||"functionparams"!==previousScope["(type)"]||(_current["(isFuncBody)"]=!0,_current["(context)"]=_currentFunctBody,_currentFunctBody=_current)},unstack:function(){var i,j,subScope=_scopeStack.length>1?_scopeStack[_scopeStack.length-2]:null,isUnstackingFunctionBody=_current===_currentFunctBody,isUnstackingFunctionParams="functionparams"===_current["(type)"],isUnstackingFunctionOuter="functionouter"===_current["(type)"],currentUsages=_current["(usages)"],currentLabels=_current["(labels)"],usedLabelNameList=Object.keys(currentUsages);for(currentUsages.__proto__&&-1===usedLabelNameList.indexOf("__proto__")&&usedLabelNameList.push("__proto__"),i=0;usedLabelNameList.length>i;i++){var usedLabelName=usedLabelNameList[i],usage=currentUsages[usedLabelName],usedLabel=currentLabels[usedLabelName];if(usedLabel){var usedLabelType=usedLabel["(type)"];if(usedLabel["(useOutsideOfScope)"]&&!state.option.funcscope){var usedTokens=usage["(tokens)"];if(usedTokens)for(j=0;usedTokens.length>j;j++)usedLabel["(function)"]===usedTokens[j]["(function)"]&&error("W038",usedTokens[j],usedLabelName)}if(_current["(labels)"][usedLabelName]["(unused)"]=!1,"const"===usedLabelType&&usage["(modified)"])for(j=0;usage["(modified)"].length>j;j++)error("E013",usage["(modified)"][j],usedLabelName);if(("function"===usedLabelType||"class"===usedLabelType)&&usage["(reassigned)"])for(j=0;usage["(reassigned)"].length>j;j++)error("W021",usage["(reassigned)"][j],usedLabelName,usedLabelType)}else if(isUnstackingFunctionOuter&&(state.funct["(isCapturing)"]=!0),subScope)if(subScope["(usages)"][usedLabelName]){var subScopeUsage=subScope["(usages)"][usedLabelName];subScopeUsage["(modified)"]=subScopeUsage["(modified)"].concat(usage["(modified)"]),subScopeUsage["(tokens)"]=subScopeUsage["(tokens)"].concat(usage["(tokens)"]),subScopeUsage["(reassigned)"]=subScopeUsage["(reassigned)"].concat(usage["(reassigned)"]),subScopeUsage["(onlyUsedSubFunction)"]=!1}else subScope["(usages)"][usedLabelName]=usage,isUnstackingFunctionBody&&(subScope["(usages)"][usedLabelName]["(onlyUsedSubFunction)"]=!0);else if("boolean"==typeof _current["(predefined)"][usedLabelName]){if(delete declared[usedLabelName],usedPredefinedAndGlobals[usedLabelName]=marker,_current["(predefined)"][usedLabelName]===!1&&usage["(reassigned)"])for(j=0;usage["(reassigned)"].length>j;j++)warning("W020",usage["(reassigned)"][j])}else if(usage["(tokens)"])for(j=0;usage["(tokens)"].length>j;j++){var undefinedToken=usage["(tokens)"][j];undefinedToken.forgiveUndef||(state.option.undef&&!undefinedToken.ignoreUndef&&warning("W117",undefinedToken,usedLabelName),impliedGlobals[usedLabelName]?impliedGlobals[usedLabelName].line.push(undefinedToken.line):impliedGlobals[usedLabelName]={name:usedLabelName,line:[undefinedToken.line]})}}if(subScope||Object.keys(declared).forEach(function(labelNotUsed){_warnUnused(labelNotUsed,declared[labelNotUsed],"var")}),subScope&&!isUnstackingFunctionBody&&!isUnstackingFunctionParams&&!isUnstackingFunctionOuter){var labelNames=Object.keys(currentLabels);for(i=0;labelNames.length>i;i++){var defLabelName=labelNames[i];currentLabels[defLabelName]["(blockscoped)"]||"exception"===currentLabels[defLabelName]["(type)"]||this.funct.has(defLabelName,{excludeCurrent:!0})||(subScope["(labels)"][defLabelName]=currentLabels[defLabelName],"global"!==_currentFunctBody["(type)"]&&(subScope["(labels)"][defLabelName]["(useOutsideOfScope)"]=!0),delete currentLabels[defLabelName])}}_checkForUnused(),_scopeStack.pop(),isUnstackingFunctionBody&&(_currentFunctBody=_scopeStack[_.findLastIndex(_scopeStack,function(scope){return scope["(isFuncBody)"]||"global"===scope["(type)"]})]),_current=subScope},addParam:function(labelName,token,type){if(type=type||"param","exception"===type){var previouslyDefinedLabelType=this.funct.labeltype(labelName);previouslyDefinedLabelType&&"exception"!==previouslyDefinedLabelType&&(state.option.node||warning("W002",state.tokens.next,labelName))}if(_.has(_current["(labels)"],labelName)?_current["(labels)"][labelName].duplicated=!0:(_checkOuterShadow(labelName,token,type),_current["(labels)"][labelName]={"(type)":type,"(token)":token,"(unused)":!0},_current["(params)"].push(labelName)),_.has(_current["(usages)"],labelName)){var usage=_current["(usages)"][labelName];usage["(onlyUsedSubFunction)"]?_latedefWarning(type,labelName,token):warning("E056",token,labelName,type)}},validateParams:function(){if("global"!==_currentFunctBody["(type)"]){var isStrict=state.isStrict(),currentFunctParamScope=_currentFunctBody["(parent)"];currentFunctParamScope["(params)"]&&currentFunctParamScope["(params)"].forEach(function(labelName){var label=currentFunctParamScope["(labels)"][labelName];label&&label.duplicated&&(isStrict?warning("E011",label["(token)"],labelName):state.option.shadow!==!0&&warning("W004",label["(token)"],labelName))})}},getUsedOrDefinedGlobals:function(){var list=Object.keys(usedPredefinedAndGlobals);return usedPredefinedAndGlobals.__proto__===marker&&-1===list.indexOf("__proto__")&&list.push("__proto__"),list},getImpliedGlobals:function(){var values=_.values(impliedGlobals),hasProto=!1;return impliedGlobals.__proto__&&(hasProto=values.some(function(value){return"__proto__"===value.name}),hasProto||values.push(impliedGlobals.__proto__)),values},getUnuseds:function(){return unuseds},has:function(labelName){return Boolean(_getLabel(labelName))},labeltype:function(labelName){var scopeLabels=_getLabel(labelName);return scopeLabels?scopeLabels[labelName]["(type)"]:null},addExported:function(labelName){var globalLabels=_scopeStack[0]["(labels)"];if(_.has(declared,labelName))delete declared[labelName];else if(_.has(globalLabels,labelName))globalLabels[labelName]["(unused)"]=!1;else{for(var i=1;_scopeStack.length>i;i++){var scope=_scopeStack[i];if(scope["(type)"])break;if(_.has(scope["(labels)"],labelName)&&!scope["(labels)"][labelName]["(blockscoped)"])return scope["(labels)"][labelName]["(unused)"]=!1,void 0}exported[labelName]=!0}},setExported:function(labelName,token){this.block.use(labelName,token)\n},addlabel:function(labelName,opts){var type=opts.type,token=opts.token,isblockscoped="let"===type||"const"===type||"class"===type,isexported="global"===(isblockscoped?_current:_currentFunctBody)["(type)"]&&_.has(exported,labelName);if(_checkOuterShadow(labelName,token,type),isblockscoped){var declaredInCurrentScope=_current["(labels)"][labelName];if(declaredInCurrentScope||_current!==_currentFunctBody||"global"===_current["(type)"]||(declaredInCurrentScope=!!_currentFunctBody["(parent)"]["(labels)"][labelName]),!declaredInCurrentScope&&_current["(usages)"][labelName]){var usage=_current["(usages)"][labelName];usage["(onlyUsedSubFunction)"]?_latedefWarning(type,labelName,token):warning("E056",token,labelName,type)}declaredInCurrentScope?warning("E011",token,labelName):"outer"===state.option.shadow&&scopeManagerInst.funct.has(labelName)&&warning("W004",token,labelName),scopeManagerInst.block.add(labelName,type,token,!isexported)}else{var declaredInCurrentFunctionScope=scopeManagerInst.funct.has(labelName);!declaredInCurrentFunctionScope&&usedSoFarInCurrentFunction(labelName)&&_latedefWarning(type,labelName,token),scopeManagerInst.funct.has(labelName,{onlyBlockscoped:!0})?warning("E011",token,labelName):state.option.shadow!==!0&&declaredInCurrentFunctionScope&&"__proto__"!==labelName&&"global"!==_currentFunctBody["(type)"]&&warning("W004",token,labelName),scopeManagerInst.funct.add(labelName,type,token,!isexported),"global"===_currentFunctBody["(type)"]&&(usedPredefinedAndGlobals[labelName]=marker)}},funct:{labeltype:function(labelName,options){for(var onlyBlockscoped=options&&options.onlyBlockscoped,excludeParams=options&&options.excludeParams,currentScopeIndex=_scopeStack.length-(options&&options.excludeCurrent?2:1),i=currentScopeIndex;i>=0;i--){var current=_scopeStack[i];if(current["(labels)"][labelName]&&(!onlyBlockscoped||current["(labels)"][labelName]["(blockscoped)"]))return current["(labels)"][labelName]["(type)"];var scopeCheck=excludeParams?_scopeStack[i-1]:current;if(scopeCheck&&"functionparams"===scopeCheck["(type)"])return null}return null},hasBreakLabel:function(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current["(breakLabels)"][labelName])return!0;if("functionparams"===current["(type)"])return!1}return!1},has:function(labelName,options){return Boolean(this.labeltype(labelName,options))},add:function(labelName,type,tok,unused){_current["(labels)"][labelName]={"(type)":type,"(token)":tok,"(blockscoped)":!1,"(function)":_currentFunctBody,"(unused)":unused}}},block:{isGlobal:function(){return"global"===_current["(type)"]},use:function(labelName,token){var paramScope=_currentFunctBody["(parent)"];paramScope&&paramScope["(labels)"][labelName]&&"param"===paramScope["(labels)"][labelName]["(type)"]&&(scopeManagerInst.funct.has(labelName,{excludeParams:!0,onlyBlockscoped:!0})||(paramScope["(labels)"][labelName]["(unused)"]=!1)),token&&(state.ignored.W117||state.option.undef===!1)&&(token.ignoreUndef=!0),_setupUsages(labelName),token&&(token["(function)"]=_currentFunctBody,_current["(usages)"][labelName]["(tokens)"].push(token))},reassign:function(labelName,token){this.modify(labelName,token),_current["(usages)"][labelName]["(reassigned)"].push(token)},modify:function(labelName,token){_setupUsages(labelName),_current["(usages)"][labelName]["(modified)"].push(token)},add:function(labelName,type,tok,unused){_current["(labels)"][labelName]={"(type)":type,"(token)":tok,"(blockscoped)":!0,"(unused)":unused}},addBreakLabel:function(labelName,opts){var token=opts.token;scopeManagerInst.funct.hasBreakLabel(labelName)?warning("E011",token,labelName):"outer"===state.option.shadow&&(scopeManagerInst.funct.has(labelName)?warning("W004",token,labelName):_checkOuterShadow(labelName,token)),_current["(breakLabels)"][labelName]=token}}};return scopeManagerInst};module.exports=scopeManager},{"../lodash":"/node_modules/jshint/lodash.js",events:"/node_modules/browserify/node_modules/events/events.js"}],"/node_modules/jshint/src/state.js":[function(_dereq_,module,exports){"use strict";var NameStack=_dereq_("./name-stack.js"),state={syntax:{},isStrict:function(){return this.directive["use strict"]||this.inClassBody||this.option.module||"implied"===this.option.strict},inMoz:function(){return this.option.moz},inES6:function(){return this.option.moz||this.option.esversion>=6},inES5:function(strict){return strict?!(this.option.esversion&&5!==this.option.esversion||this.option.moz):!this.option.esversion||this.option.esversion>=5||this.option.moz},reset:function(){this.tokens={prev:null,next:null,curr:null},this.option={},this.funct=null,this.ignored={},this.directive={},this.jsonMode=!1,this.jsonWarnings=[],this.lines=[],this.tab="",this.cache={},this.ignoredLines={},this.forinifcheckneeded=!1,this.nameStack=new NameStack,this.inClassBody=!1}};exports.state=state},{"./name-stack.js":"/node_modules/jshint/src/name-stack.js"}],"/node_modules/jshint/src/style.js":[function(_dereq_,module,exports){"use strict";exports.register=function(linter){linter.on("Identifier",function(data){linter.getOption("proto")||"__proto__"===data.name&&linter.warn("W103",{line:data.line,"char":data.char,data:[data.name,"6"]})}),linter.on("Identifier",function(data){linter.getOption("iterator")||"__iterator__"===data.name&&linter.warn("W103",{line:data.line,"char":data.char,data:[data.name]})}),linter.on("Identifier",function(data){linter.getOption("camelcase")&&data.name.replace(/^_+|_+$/g,"").indexOf("_")>-1&&!data.name.match(/^[A-Z0-9_]*$/)&&linter.warn("W106",{line:data.line,"char":data.from,data:[data.name]})}),linter.on("String",function(data){var code,quotmark=linter.getOption("quotmark");quotmark&&("single"===quotmark&&"\'"!==data.quote&&(code="W109"),"double"===quotmark&&\'"\'!==data.quote&&(code="W108"),quotmark===!0&&(linter.getCache("quotmark")||linter.setCache("quotmark",data.quote),linter.getCache("quotmark")!==data.quote&&(code="W110")),code&&linter.warn(code,{line:data.line,"char":data.char}))}),linter.on("Number",function(data){"."===data.value.charAt(0)&&linter.warn("W008",{line:data.line,"char":data.char,data:[data.value]}),"."===data.value.substr(data.value.length-1)&&linter.warn("W047",{line:data.line,"char":data.char,data:[data.value]}),/^00+/.test(data.value)&&linter.warn("W046",{line:data.line,"char":data.char,data:[data.value]})}),linter.on("String",function(data){var re=/^(?:javascript|jscript|ecmascript|vbscript|livescript)\\s*:/i;linter.getOption("scripturl")||re.test(data.value)&&linter.warn("W107",{line:data.line,"char":data.char})})}},{}],"/node_modules/jshint/src/vars.js":[function(_dereq_,module,exports){"use strict";exports.reservedVars={arguments:!1,NaN:!1},exports.ecmaIdentifiers={3:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,isFinite:!1,isNaN:!1,Math:!1,Number:!1,Object:!1,parseInt:!1,parseFloat:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,URIError:!1},5:{JSON:!1},6:{Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,WeakMap:!1,WeakSet:!1}},exports.browser={Audio:!1,Blob:!1,addEventListener:!1,applicationCache:!1,atob:!1,blur:!1,btoa:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CSS:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,Comment:!1,CustomEvent:!1,DOMParser:!1,defaultStatus:!1,Document:!1,document:!1,DocumentFragment:!1,Element:!1,ElementTimeControl:!1,Event:!1,event:!1,fetch:!1,FileReader:!1,FormData:!1,focus:!1,frames:!1,getComputedStyle:!1,HTMLElement:!1,HTMLAnchorElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPreElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTitleElement:!1,HTMLUListElement:!1,HTMLVideoElement:!1,history:!1,Image:!1,Intl:!1,length:!1,localStorage:!1,location:!1,matchMedia:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationObserver:!1,name:!1,Node:!1,NodeFilter:!1,NodeList:!1,Notification:!1,navigator:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,parent:!1,performance:!1,print:!1,Range:!1,requestAnimationFrame:!1,removeEventListener:!1,resizeBy:!1,resizeTo:!1,screen:!1,scroll:!1,scrollBy:!1,scrollTo:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,SharedWorker:!1,status:!1,SVGAElement:!1,SVGAltGlyphDefElement:!1,SVGAltGlyphElement:!1,SVGAltGlyphItemElement:!1,SVGAngle:!1,SVGAnimateColorElement:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPathData:!1,SVGAnimatedPoints:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimationElement:!1,SVGCSSRule:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGColor:!1,SVGColorProfileElement:!1,SVGColorProfileRule:!1,SVGComponentTransferFunctionElement:!1,SVGCursorElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDocument:!1,SVGElement:!1,SVGElementInstance:!1,SVGElementInstanceList:!1,SVGEllipseElement:!1,SVGExternalResourcesRequired:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGFilterPrimitiveStandardAttributes:!1,SVGFitToViewBox:!1,SVGFontElement:!1,SVGFontFaceElement:!1,SVGFontFaceFormatElement:!1,SVGFontFaceNameElement:!1,SVGFontFaceSrcElement:!1,SVGFontFaceUriElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGlyphElement:!1,SVGGlyphRefElement:!1,SVGGradientElement:!1,SVGHKernElement:!1,SVGICCColor:!1,SVGImageElement:!1,SVGLangSpace:!1,SVGLength:!1,SVGLengthList:!1,SVGLineElement:!1,SVGLinearGradientElement:!1,SVGLocatable:!1,SVGMPathElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMissingGlyphElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPaint:!1,SVGPathElement:!1,SVGPathSeg:!1,SVGPathSegArcAbs:!1,SVGPathSegArcRel:!1,SVGPathSegClosePath:!1,SVGPathSegCurvetoCubicAbs:!1,SVGPathSegCurvetoCubicRel:!1,SVGPathSegCurvetoCubicSmoothAbs:!1,SVGPathSegCurvetoCubicSmoothRel:!1,SVGPathSegCurvetoQuadraticAbs:!1,SVGPathSegCurvetoQuadraticRel:!1,SVGPathSegCurvetoQuadraticSmoothAbs:!1,SVGPathSegCurvetoQuadraticSmoothRel:!1,SVGPathSegLinetoAbs:!1,SVGPathSegLinetoHorizontalAbs:!1,SVGPathSegLinetoHorizontalRel:!1,SVGPathSegLinetoRel:!1,SVGPathSegLinetoVerticalAbs:!1,SVGPathSegLinetoVerticalRel:!1,SVGPathSegList:!1,SVGPathSegMovetoAbs:!1,SVGPathSegMovetoRel:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGRenderingIntent:!1,SVGSVGElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStylable:!1,SVGStyleElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTRefElement:!1,SVGTSpanElement:!1,SVGTests:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTransformable:!1,SVGURIReference:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGVKernElement:!1,SVGViewElement:!1,SVGViewSpec:!1,SVGZoomAndPan:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TimeEvent:!1,top:!1,URL:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLTexture:!1,WebGLUniformLocation:!1,WebSocket:!1,window:!1,Window:!1,Worker:!1,XDomainRequest:!1,XMLHttpRequest:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1},exports.devel={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},exports.worker={importScripts:!0,postMessage:!0,self:!0,FileReaderSync:!0},exports.nonstandard={escape:!1,unescape:!1},exports.couch={require:!1,respond:!1,getRow:!1,emit:!1,send:!1,start:!1,sum:!1,log:!1,exports:!1,module:!1,provides:!1},exports.node={__filename:!1,__dirname:!1,GLOBAL:!1,global:!1,module:!1,acequire:!1,Buffer:!0,console:!0,exports:!0,process:!0,setTimeout:!0,clearTimeout:!0,setInterval:!0,clearInterval:!0,setImmediate:!0,clearImmediate:!0},exports.browserify={__filename:!1,__dirname:!1,global:!1,module:!1,acequire:!1,Buffer:!0,exports:!0,process:!0},exports.phantom={phantom:!0,acequire:!0,WebPage:!0,console:!0,exports:!0},exports.qunit={asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,"throws":!1},exports.rhino={defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},exports.shelljs={target:!1,echo:!1,exit:!1,cd:!1,pwd:!1,ls:!1,find:!1,cp:!1,rm:!1,mv:!1,mkdir:!1,test:!1,cat:!1,sed:!1,grep:!1,which:!1,dirs:!1,pushd:!1,popd:!1,env:!1,exec:!1,chmod:!1,config:!1,error:!1,tempdir:!1},exports.typed={ArrayBuffer:!1,ArrayBufferView:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1},exports.wsh={ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WSH:!0,WScript:!0,XDomainRequest:!0},exports.dojo={dojo:!1,dijit:!1,dojox:!1,define:!1,require:!1},exports.jquery={$:!1,jQuery:!1},exports.mootools={$:!1,$$:!1,Asset:!1,Browser:!1,Chain:!1,Class:!1,Color:!1,Cookie:!1,Core:!1,Document:!1,DomReady:!1,DOMEvent:!1,DOMReady:!1,Drag:!1,Element:!1,Elements:!1,Event:!1,Events:!1,Fx:!1,Group:!1,Hash:!1,HtmlTable:!1,IFrame:!1,IframeShim:!1,InputValidator:!1,instanceOf:!1,Keyboard:!1,Locale:!1,Mask:!1,MooTools:!1,Native:!1,Options:!1,OverText:!1,Request:!1,Scroller:!1,Slick:!1,Slider:!1,Sortables:!1,Spinner:!1,Swiff:!1,Tips:!1,Type:!1,typeOf:!1,URI:!1,Window:!1},exports.prototypejs={$:!1,$$:!1,$A:!1,$F:!1,$H:!1,$R:!1,$break:!1,$continue:!1,$w:!1,Abstract:!1,Ajax:!1,Class:!1,Enumerable:!1,Element:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Selector:!1,Template:!1,Toggle:!1,Try:!1,Autocompleter:!1,Builder:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Scriptaculous:!1},exports.yui={YUI:!1,Y:!1,YUI_config:!1},exports.mocha={mocha:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,context:!1,xcontext:!1,before:!1,after:!1,beforeEach:!1,afterEach:!1,suite:!1,test:!1,setup:!1,teardown:!1,suiteSetup:!1,suiteTeardown:!1},exports.jasmine={jasmine:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,beforeEach:!1,afterEach:!1,setFixtures:!1,loadFixtures:!1,spyOn:!1,expect:!1,runs:!1,waitsFor:!1,waits:!1,beforeAll:!1,afterAll:!1,fail:!1,fdescribe:!1,fit:!1,pending:!1}},{}]},{},["/node_modules/jshint/src/jshint.js"])}),ace.define("ace/mode/javascript_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/javascript/jshint"],function(acequire,exports,module){"use strict";function startRegex(arr){return RegExp("^("+arr.join("|")+")")}var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,lint=acequire("./javascript/jshint").JSHINT,disabledWarningsRe=startRegex(["Bad for in variable \'(.+)\'.",\'Missing "use strict"\']),errorsRe=startRegex(["Unexpected","Expected ","Confusing (plus|minus)","\\\\{a\\\\} unterminated regular expression","Unclosed ","Unmatched ","Unbegun comment","Bad invocation","Missing space after","Missing operator at"]),infoRe=startRegex(["Expected an assignment","Bad escapement of EOL","Unexpected comma","Unexpected space","Missing radix parameter.","A leading decimal point can","\\\\[\'{a}\'\\\\] is better written in dot notation.","\'{a}\' used out of scope"]),JavaScriptWorker=exports.JavaScriptWorker=function(sender){Mirror.call(this,sender),this.setTimeout(500),this.setOptions()};oop.inherits(JavaScriptWorker,Mirror),function(){this.setOptions=function(options){this.options=options||{esnext:!0,moz:!0,devel:!0,browser:!0,node:!0,laxcomma:!0,laxbreak:!0,lastsemic:!0,onevar:!1,passfail:!1,maxerr:100,expr:!0,multistr:!0,globalstrict:!0},this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.changeOptions=function(newOptions){oop.mixin(this.options,newOptions),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.isValidJS=function(str){try{eval("throw 0;"+str)}catch(e){if(0===e)return!0}return!1},this.onUpdate=function(){var value=this.doc.getValue();if(value=value.replace(/^#!.*\\n/,"\\n"),!value)return this.sender.emit("annotate",[]);var errors=[],maxErrorLevel=this.isValidJS(value)?"warning":"error";lint(value,this.options,this.options.globals);for(var results=lint.errors,errorAdded=!1,i=0;results.length>i;i++){var error=results[i];if(error){var raw=error.raw,type="warning";if("Missing semicolon."==raw){var str=error.evidence.substr(error.character);str=str.charAt(str.search(/\\S/)),"error"==maxErrorLevel&&str&&/[\\w\\d{([\'"]/.test(str)?(error.reason=\'Missing ";" before statement\',type="error"):type="info"}else{if(disabledWarningsRe.test(raw))continue;infoRe.test(raw)?type="info":errorsRe.test(raw)?(errorAdded=!0,type=maxErrorLevel):"\'{a}\' is not defined."==raw?type="warning":"\'{a}\' is defined but never used."==raw&&(type="info")}errors.push({row:error.line-1,column:error.character-1,text:error.reason,type:type,raw:raw})}}this.sender.emit("annotate",errors)}}.call(JavaScriptWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != \'object\'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws="\t\\n\v\\f\\r   ᠎              \\u2028\\u2029\ufeff";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can\'t convert "+o+" to object");return Object(o)}});'},"6dd8":function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),a=2;function s(e,t){var n=!1,r=!1,i=0;function s(){n&&(n=!1,e()),r&&l()}function c(){o(s)}function l(){var e=Date.now();if(n){if(e-i<a)return;r=!0}else n=!0,r=!1,setTimeout(c,t);i=e}return l}var c=20,l=["top","right","bottom","left","width","height","size","weight"],u="undefined"!==typeof MutationObserver,d=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),c)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=l.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||i},h=C(0,0,0,0);function m(e){return parseFloat(e)||0}function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var r=e["border-"+n+"-width"];return t+m(r)}),0)}function v(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],a=e["padding-"+o];n[o]=m(a)}return n}function b(e){var t=e.getBBox();return C(0,0,t.width,t.height)}function _(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return h;var r=p(e).getComputedStyle(e),i=v(r),o=i.left+i.right,a=i.top+i.bottom,s=m(r.width),c=m(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=g(r,"left","right")+o),Math.round(c+a)!==n&&(c-=g(r,"top","bottom")+a)),!w(e)){var l=Math.round(s+o)-t,u=Math.round(c+a)-n;1!==Math.abs(l)&&(s-=l),1!==Math.abs(u)&&(c-=u)}return C(i.left,i.top,s,c)}var y=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"===typeof e.getBBox}}();function w(e){return e===p(e).document.documentElement}function x(e){return r?y(e)?b(e):_(e):h}function k(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return f(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function C(e,t,n,r){return{x:e,y:t,width:n,height:r}}var A=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=C(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=x(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),S=function(){function e(e,t){var n=k(t);f(this,{target:e,contentRect:n})}return e}(),E=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new A(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new S(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),T="undefined"!==typeof WeakMap?new WeakMap:new n,O=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=d.getInstance(),r=new E(t,n,this);T.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){O.prototype[e]=function(){var t;return(t=T.get(this))[e].apply(t,arguments)}}));var R=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:O}();t["default"]=R}.call(this,n("c8ba"))},"6f19":function(e,t,n){"use strict";var r=n("9112"),i=n("0d26"),o=n("b980"),a=Error.captureStackTrace;e.exports=function(e,t,n,s){o&&(a?a(e,t):r(e,"stack",i(n,s)))}},"6f4f":function(e,t,n){var r=n("77e9"),i=n("85e7"),o=n("9742"),a=n("5a94")("IE_PROTO"),s=function(){},c="prototype",l=function(){var e,t=n("05f5")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("9141").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),l=e.F;while(r--)delete l[c][o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},7149:function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("c430"),a=n("d256"),s=n("4738").CONSTRUCTOR,c=n("cdf9"),l=i("Promise"),u=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return c(u&&this===l?a:this,e)}})},7156:function(e,t,n){"use strict";var r=n("1626"),i=n("861d"),o=n("d2bb");e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},"71bc":function(e,t,n){var r=n("1e69"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},7234:function(e,t,n){"use strict";e.exports=function(e){return null===e||void 0===e}},7282:function(e,t,n){"use strict";var r=n("e330"),i=n("59ed");e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(o){}}},"72f7":function(e,t,n){"use strict";var r=n("ebb5").exportTypedArrayMethod,i=n("d039"),o=n("da84"),a=n("e330"),s=o.Uint8Array,c=s&&s.prototype||{},l=[].toString,u=a([].join);i((function(){l.call({})}))&&(l=function(){return u(this)});var d=c.toString!==l;r("toString",l,d)},"735e":function(e,t,n){"use strict";var r=n("ebb5"),i=n("81d5"),o=n("f495"),a=n("f5df"),s=n("c65b"),c=n("e330"),l=n("d039"),u=r.aTypedArray,d=r.exportTypedArrayMethod,f=c("".slice),p=l((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}));d("fill",(function(e){var t=arguments.length;u(this);var n="Big"===f(a(this),0,3)?o(e):+e;return s(i,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),p)},"73d6":function(e,t,n){"use strict";function r(e){return e.replace(e[0],e[0].toLowerCase())}n.d(t,"a",(function(){return r}))},7418:function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},"74e8":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("c65b"),a=n("83ab"),s=n("8aa7"),c=n("ebb5"),l=n("621a"),u=n("19aa"),d=n("5c6c"),f=n("9112"),p=n("eac5"),h=n("50c4"),m=n("0b25"),g=n("182d"),v=n("13a6"),b=n("a04b"),_=n("1a2d"),y=n("f5df"),w=n("861d"),x=n("d9b5"),k=n("7c73"),C=n("3a9b"),A=n("d2bb"),S=n("241c").f,E=n("a078"),T=n("b727").forEach,O=n("2626"),R=n("edd0"),D=n("9bf2"),L=n("06cf"),M=n("dfb9"),F=n("69f3"),N=n("7156"),B=F.get,I=F.set,P=F.enforce,$=D.f,j=L.f,z=i.RangeError,q=l.ArrayBuffer,H=q.prototype,U=l.DataView,W=c.NATIVE_ARRAY_BUFFER_VIEWS,V=c.TYPED_ARRAY_TAG,G=c.TypedArray,K=c.TypedArrayPrototype,Y=c.isTypedArray,X="BYTES_PER_ELEMENT",Q="Wrong length",J=function(e,t){R(e,t,{configurable:!0,get:function(){return B(this)[t]}})},Z=function(e){var t;return C(H,e)||"ArrayBuffer"===(t=y(e))||"SharedArrayBuffer"===t},ee=function(e,t){return Y(e)&&!x(t)&&t in e&&p(+t)&&t>=0},te=function(e,t){return t=b(t),ee(e,t)?d(2,e[t]):j(e,t)},ne=function(e,t,n){return t=b(t),!(ee(e,t)&&w(n)&&_(n,"value"))||_(n,"get")||_(n,"set")||n.configurable||_(n,"writable")&&!n.writable||_(n,"enumerable")&&!n.enumerable?$(e,t,n):(e[t]=n.value,e)};a?(W||(L.f=te,D.f=ne,J(K,"buffer"),J(K,"byteOffset"),J(K,"byteLength"),J(K,"length")),r({target:"Object",stat:!0,forced:!W},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var a=e.match(/\d+/)[0]/8,c=e+(n?"Clamped":"")+"Array",l="get"+e,d="set"+e,p=i[c],b=p,_=b&&b.prototype,y={},x=function(e,t){var n=B(e);return n.view[l](t*a+n.byteOffset,!0)},C=function(e,t,r){var i=B(e);i.view[d](t*a+i.byteOffset,n?v(r):r,!0)},R=function(e,t){$(e,t,{get:function(){return x(this,t)},set:function(e){return C(this,t,e)},enumerable:!0})};W?s&&(b=t((function(e,t,n,r){return u(e,_),N(function(){return w(t)?Z(t)?void 0!==r?new p(t,g(n,a),r):void 0!==n?new p(t,g(n,a)):new p(t):Y(t)?M(b,t):o(E,b,t):new p(m(t))}(),e,b)})),A&&A(b,G),T(S(p),(function(e){e in b||f(b,e,p[e])})),b.prototype=_):(b=t((function(e,t,n,r){u(e,_);var i,s,c,l=0,d=0;if(w(t)){if(!Z(t))return Y(t)?M(b,t):o(E,b,t);i=t,d=g(n,a);var f=t.byteLength;if(void 0===r){if(f%a)throw new z(Q);if(s=f-d,s<0)throw new z(Q)}else if(s=h(r)*a,s+d>f)throw new z(Q);c=s/a}else c=m(t),s=c*a,i=new q(s);I(e,{buffer:i,byteOffset:d,byteLength:s,length:c,view:new U(i)});while(l<c)R(e,l++)})),A&&A(b,G),_=b.prototype=k(K)),_.constructor!==b&&f(_,"constructor",b),P(_).TypedArrayConstructor=b,V&&f(_,V,c);var D=b!==p;y[c]=b,r({global:!0,constructor:!0,forced:D,sham:!W},y),X in b||f(b,X,a),X in _||f(_,X,a),O(c)}):e.exports=function(){}},"77a7":function(e,t,n){"use strict";var r=Array,i=Math.abs,o=Math.pow,a=Math.floor,s=Math.log,c=Math.LN2,l=function(e,t,n){var l,u,d,f=r(n),p=8*n-t-1,h=(1<<p)-1,m=h>>1,g=23===t?o(2,-24)-o(2,-77):0,v=e<0||0===e&&1/e<0?1:0,b=0;e=i(e),e!==e||e===1/0?(u=e!==e?1:0,l=h):(l=a(s(e)/c),d=o(2,-l),e*d<1&&(l--,d*=2),e+=l+m>=1?g/d:g*o(2,1-m),e*d>=2&&(l++,d/=2),l+m>=h?(u=0,l=h):l+m>=1?(u=(e*d-1)*o(2,t),l+=m):(u=e*o(2,m-1)*o(2,t),l=0));while(t>=8)f[b++]=255&u,u/=256,t-=8;l=l<<t|u,p+=t;while(p>0)f[b++]=255&l,l/=256,p-=8;return f[--b]|=128*v,f},u=function(e,t){var n,r=e.length,i=8*r-t-1,a=(1<<i)-1,s=a>>1,c=i-7,l=r-1,u=e[l--],d=127&u;u>>=7;while(c>0)d=256*d+e[l--],c-=8;n=d&(1<<-c)-1,d>>=-c,c+=t;while(c>0)n=256*n+e[l--],c-=8;if(0===d)d=1-s;else{if(d===a)return n?NaN:u?-1/0:1/0;n+=o(2,t),d-=s}return(u?-1:1)*n*o(2,d-t)};e.exports={pack:l,unpack:u}},"77e9":function(e,t,n){var r=n("7a41");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},7839:function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(e,t,n){"use strict";var r=n("cc12"),i=r("span").classList,o=i&&i.constructor&&i.constructor.prototype;e.exports=o===Object.prototype?void 0:o},"78f3":function(e,t){e.exports=!1},7992:function(e,t,n){"use strict";var r=n("64b0")(),i=n("00ce"),o=r&&i("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(l){o=!1}var a=i("%SyntaxError%"),s=i("%TypeError%"),c=n("2aa9");e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new s("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!c&&c(e,t);if(o)o(e,t,{configurable:null===l&&d?d.configurable:!l,enumerable:null===r&&d?d.enumerable:!r,value:n,writable:null===i&&d?d.writable:!i});else{if(!u&&(r||i||l))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},"7a41":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"7a77":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"7aac":function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,n){"use strict";var r=n("1d80"),i=Object;e.exports=function(e){return i(r(e))}},"7b22":function(e,t,n){"use strict";var r=n("78f3"),i=n("5ef8"),o=n("8393"),a=n("1690"),s=n("b283"),c=n("bb1d"),l=n("8952"),u=n("2cd4"),d=n("b3ad")("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,b,_,y){c(n,t,v);var w,x,k,C=function(e){if(!f&&e in T)return T[e];switch(e){case h:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},A=t+" Iterator",S=b==m,E=!1,T=e.prototype,O=T[d]||T[p]||b&&T[b],R=O||C(b),D=b?S?C("entries"):R:void 0,L="Array"==t&&T.entries||O;if(L&&(k=u(L.call(new e)),k!==Object.prototype&&k.next&&(l(k,A,!0),r||"function"==typeof k[d]||a(k,d,g))),S&&O&&O.name!==m&&(E=!0,R=function(){return O.call(this)}),r&&!y||!f&&!E&&T[d]||a(T,d,R),s[t]=R,s[A]=g,b)if(w={values:S?R:C(m),keys:_?R:C(h),entries:D},y)for(x in w)x in T||o(T,x,w[x]);else i(i.P+i.F*(f||E),t,w);return w}},"7b3e":function(e,t,n){"use strict";var r,i=n("a3de");
/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/
function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"===typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=o},"7c37":function(e,t,n){"use strict";var r=n("605d");e.exports=function(e){try{if(r)return Function('return require("'+e+'")')()}catch(t){}}},"7c73":function(e,t,n){"use strict";var r,i=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),c=n("1be4"),l=n("cc12"),u=n("f772"),d=">",f="<",p="prototype",h="script",m=u("IE_PROTO"),g=function(){},v=function(e){return f+h+d+e+f+"/"+h+d},b=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){var e,t=l("iframe"),n="java"+h+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}y="undefined"!=typeof document?document.domain&&r?b(r):_():b(r);var e=a.length;while(e--)delete y[p][a[e]];return y()};s[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[p]=i(e),n=new g,g[p]=null,n[m]=e):n=y(),void 0===t?n:o.f(n,t)}},"7c9e":function(e,t,n){var r=n("061c");e.exports={render:function(e){var t=this.height?this.px(this.height):"100%",n=this.width?this.px(this.width):"100%";return e("div",{attrs:{style:"height: "+t+"; width: "+n}})},props:{value:String,lang:!0,theme:String,height:!0,width:!0,options:Object},data:function(){return{editor:null,contentBackup:""}},methods:{px:function(e){return/^\d*$/.test(e)?e+"px":e}},watch:{value:function(e){this.contentBackup!==e&&(this.editor.session.setValue(e,1),this.contentBackup=e)},theme:function(e){this.editor.setTheme("ace/theme/"+e)},lang:function(e){this.editor.getSession().setMode("string"===typeof e?"ace/mode/"+e:e)},options:function(e){this.editor.setOptions(e)},height:function(){this.$nextTick((function(){this.editor.resize()}))},width:function(){this.$nextTick((function(){this.editor.resize()}))}},beforeDestroy:function(){this.editor.destroy(),this.editor.container.remove()},mounted:function(){var e=this,t=this.lang||"text",i=this.theme||"chrome";n("b378");var o=e.editor=r.edit(this.$el);o.$blockScrolling=1/0,this.$emit("init",o),o.getSession().setMode("string"===typeof t?"ace/mode/"+t:t),o.setTheme("ace/theme/"+i),this.value&&o.setValue(this.value,1),this.contentBackup=this.value,o.on("change",(function(){var t=o.getValue();e.$emit("input",t),e.contentBackup=t})),e.options&&o.setOptions(e.options)}}},"7ca9":function(e,t,n){ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},o.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};r.inherits(o,i),o.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},o.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},o.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=o})),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),o=t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|min-height|min-width|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",a=t.supportFunction="rgb|rgba|url|attr|counter|counters",s=t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero",c=t.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",l=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",u=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",d=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",f=t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|acequired|root|target|valid|visited)\\b",p=function(){var e=this.createKeywordMapper({"support.function":a,"support.constant":s,"support.type":o,"support.constant.color":c,"support.constant.fonts":l},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:u},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+u+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)"},{token:"constant.numeric",regex:u},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:d},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:f},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};r.inherits(p,i),t.CssHighlightRules=p})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./doc_comment_highlight_rules").DocCommentHighlightRules,o=e("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",s=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",r="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[i.getStartRule("doc-start"),l("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+a+")(\\.)(prototype)(\\.)("+a+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:"+n+")\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[i.getStartRule("doc-start"),l("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:r},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),e&&0==e.jsx||c.call(this)),this.embedRules(i,"doc-",[i.getEndRule("no_regex")]),this.normalizeRules()};function c(){var e=a.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var r="/"==e.charAt(1)?2:1;return 1==r?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==r&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==r?"":"end-")+"tag-open.xml",value:e.slice(0,r)},{type:"meta.tag.tag-name.xml",value:e.substr(r)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,l("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function l(e){return[{token:"comment",regex:/\/\*/,next:[i.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[i.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.inherits(s,o),t.JavaScriptHighlightRules=s})),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(e){var t="[_:a-zA-ZÀ-￿][-_:.a-zA-Z0-9À-￿]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+t+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:t},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+t+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"--\x3e",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+t+":)?"+t+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:t},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===o&&this.normalizeRules()};(function(){this.embedTagRules=function(e,t,n){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+n+".tag-name.xml"],regex:"(<)("+n+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:t+"start"}]}),this.$rules[n+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(e,t,n){return n.splice(0),this.token}}],this.embedRules(e,t,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+n+".tag-name.xml"],regex:"(</)("+n+"(?=\\s|>|$))",next:n+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(i.prototype),r.inherits(o,i),t.XmlHighlightRules=o})),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/lang"),o=e("./css_highlight_rules").CssHighlightRules,a=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./xml_highlight_rules").XmlHighlightRules,c=i.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),l=function(){s.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(e,t){var n=c[t];return["meta.tag.punctuation."+("<"==e?"":"end-")+"tag-open.xml","meta.tag"+(n?"."+n:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(o,"css-","style"),this.embedTagRules(new a({jsx:!1}).getRules(),"js-","script"),this.constructor===l&&this.normalizeRules()};r.inherits(l,s),t.HtmlHighlightRules=l})),ace.define("ace/mode/php_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/lang"),o=e("./doc_comment_highlight_rules").DocCommentHighlightRules,a=e("./text_highlight_rules").TextHighlightRules,s=e("./html_highlight_rules").HtmlHighlightRules,c=function(){var e=o,t=i.arrayToMap("abs|acos|acosh|addcslashes|addslashes|aggregate|aggregate_info|aggregate_methods|aggregate_methods_by_list|aggregate_methods_by_regexp|aggregate_properties|aggregate_properties_by_list|aggregate_properties_by_regexp|aggregation_info|amqpconnection|amqpexchange|amqpqueue|apache_child_terminate|apache_get_modules|apache_get_version|apache_getenv|apache_lookup_uri|apache_note|apache_request_headers|apache_reset_timeout|apache_response_headers|apache_setenv|apc_add|apc_bin_dump|apc_bin_dumpfile|apc_bin_load|apc_bin_loadfile|apc_cache_info|apc_cas|apc_clear_cache|apc_compile_file|apc_dec|apc_define_constants|apc_delete|apc_delete_file|apc_exists|apc_fetch|apc_inc|apc_load_constants|apc_sma_info|apc_store|apciterator|apd_breakpoint|apd_callstack|apd_clunk|apd_continue|apd_croak|apd_dump_function_table|apd_dump_persistent_resources|apd_dump_regular_resources|apd_echo|apd_get_active_symbols|apd_set_pprof_trace|apd_set_session|apd_set_session_trace|apd_set_session_trace_socket|appenditerator|array|array_change_key_case|array_chunk|array_combine|array_count_values|array_diff|array_diff_assoc|array_diff_key|array_diff_uassoc|array_diff_ukey|array_fill|array_fill_keys|array_filter|array_flip|array_intersect|array_intersect_assoc|array_intersect_key|array_intersect_uassoc|array_intersect_ukey|array_key_exists|array_keys|array_map|array_merge|array_merge_recursive|array_multisort|array_pad|array_pop|array_product|array_push|array_rand|array_reduce|array_replace|array_replace_recursive|array_reverse|array_search|array_shift|array_slice|array_splice|array_sum|array_udiff|array_udiff_assoc|array_udiff_uassoc|array_uintersect|array_uintersect_assoc|array_uintersect_uassoc|array_unique|array_unshift|array_values|array_walk|array_walk_recursive|arrayaccess|arrayiterator|arrayobject|arsort|asin|asinh|asort|assert|assert_options|atan|atan2|atanh|audioproperties|badfunctioncallexception|badmethodcallexception|base64_decode|base64_encode|base_convert|basename|bbcode_add_element|bbcode_add_smiley|bbcode_create|bbcode_destroy|bbcode_parse|bbcode_set_arg_parser|bbcode_set_flags|bcadd|bccomp|bcdiv|bcmod|bcmul|bcompiler_load|bcompiler_load_exe|bcompiler_parse_class|bcompiler_read|bcompiler_write_class|bcompiler_write_constant|bcompiler_write_exe_footer|bcompiler_write_file|bcompiler_write_footer|bcompiler_write_function|bcompiler_write_functions_from_file|bcompiler_write_header|bcompiler_write_included_filename|bcpow|bcpowmod|bcscale|bcsqrt|bcsub|bin2hex|bind_textdomain_codeset|bindec|bindtextdomain|bson_decode|bson_encode|bumpValue|bzclose|bzcompress|bzdecompress|bzerrno|bzerror|bzerrstr|bzflush|bzopen|bzread|bzwrite|cachingiterator|cairo|cairo_create|cairo_font_face_get_type|cairo_font_face_status|cairo_font_options_create|cairo_font_options_equal|cairo_font_options_get_antialias|cairo_font_options_get_hint_metrics|cairo_font_options_get_hint_style|cairo_font_options_get_subpixel_order|cairo_font_options_hash|cairo_font_options_merge|cairo_font_options_set_antialias|cairo_font_options_set_hint_metrics|cairo_font_options_set_hint_style|cairo_font_options_set_subpixel_order|cairo_font_options_status|cairo_format_stride_for_width|cairo_image_surface_create|cairo_image_surface_create_for_data|cairo_image_surface_create_from_png|cairo_image_surface_get_data|cairo_image_surface_get_format|cairo_image_surface_get_height|cairo_image_surface_get_stride|cairo_image_surface_get_width|cairo_matrix_create_scale|cairo_matrix_create_translate|cairo_matrix_invert|cairo_matrix_multiply|cairo_matrix_rotate|cairo_matrix_transform_distance|cairo_matrix_transform_point|cairo_matrix_translate|cairo_pattern_add_color_stop_rgb|cairo_pattern_add_color_stop_rgba|cairo_pattern_create_for_surface|cairo_pattern_create_linear|cairo_pattern_create_radial|cairo_pattern_create_rgb|cairo_pattern_create_rgba|cairo_pattern_get_color_stop_count|cairo_pattern_get_color_stop_rgba|cairo_pattern_get_extend|cairo_pattern_get_filter|cairo_pattern_get_linear_points|cairo_pattern_get_matrix|cairo_pattern_get_radial_circles|cairo_pattern_get_rgba|cairo_pattern_get_surface|cairo_pattern_get_type|cairo_pattern_set_extend|cairo_pattern_set_filter|cairo_pattern_set_matrix|cairo_pattern_status|cairo_pdf_surface_create|cairo_pdf_surface_set_size|cairo_ps_get_levels|cairo_ps_level_to_string|cairo_ps_surface_create|cairo_ps_surface_dsc_begin_page_setup|cairo_ps_surface_dsc_begin_setup|cairo_ps_surface_dsc_comment|cairo_ps_surface_get_eps|cairo_ps_surface_restrict_to_level|cairo_ps_surface_set_eps|cairo_ps_surface_set_size|cairo_scaled_font_create|cairo_scaled_font_extents|cairo_scaled_font_get_ctm|cairo_scaled_font_get_font_face|cairo_scaled_font_get_font_matrix|cairo_scaled_font_get_font_options|cairo_scaled_font_get_scale_matrix|cairo_scaled_font_get_type|cairo_scaled_font_glyph_extents|cairo_scaled_font_status|cairo_scaled_font_text_extents|cairo_surface_copy_page|cairo_surface_create_similar|cairo_surface_finish|cairo_surface_flush|cairo_surface_get_content|cairo_surface_get_device_offset|cairo_surface_get_font_options|cairo_surface_get_type|cairo_surface_mark_dirty|cairo_surface_mark_dirty_rectangle|cairo_surface_set_device_offset|cairo_surface_set_fallback_resolution|cairo_surface_show_page|cairo_surface_status|cairo_surface_write_to_png|cairo_svg_surface_create|cairo_svg_surface_restrict_to_version|cairo_svg_version_to_string|cairoantialias|cairocontent|cairocontext|cairoexception|cairoextend|cairofillrule|cairofilter|cairofontface|cairofontoptions|cairofontslant|cairofonttype|cairofontweight|cairoformat|cairogradientpattern|cairohintmetrics|cairohintstyle|cairoimagesurface|cairolineargradient|cairolinecap|cairolinejoin|cairomatrix|cairooperator|cairopath|cairopattern|cairopatterntype|cairopdfsurface|cairopslevel|cairopssurface|cairoradialgradient|cairoscaledfont|cairosolidpattern|cairostatus|cairosubpixelorder|cairosurface|cairosurfacepattern|cairosurfacetype|cairosvgsurface|cairosvgversion|cairotoyfontface|cal_days_in_month|cal_from_jd|cal_info|cal_to_jd|calcul_hmac|calculhmac|call_user_func|call_user_func_array|call_user_method|call_user_method_array|callbackfilteriterator|ceil|chdb|chdb_create|chdir|checkdate|checkdnsrr|chgrp|chmod|chop|chown|chr|chroot|chunk_split|class_alias|class_exists|class_implements|class_parents|class_uses|classkit_import|classkit_method_add|classkit_method_copy|classkit_method_redefine|classkit_method_remove|classkit_method_rename|clearstatcache|clone|closedir|closelog|collator|com|com_addref|com_create_guid|com_event_sink|com_get|com_get_active_object|com_invoke|com_isenum|com_load|com_load_typelib|com_message_pump|com_print_typeinfo|com_propget|com_propput|com_propset|com_release|com_set|compact|connection_aborted|connection_status|connection_timeout|constant|construct|construct|construct|convert_cyr_string|convert_uudecode|convert_uuencode|copy|cos|cosh|count|count_chars|countable|counter_bump|counter_bump_value|counter_create|counter_get|counter_get_meta|counter_get_named|counter_get_value|counter_reset|counter_reset_value|crack_check|crack_closedict|crack_getlastmessage|crack_opendict|crc32|create_function|crypt|ctype_alnum|ctype_alpha|ctype_cntrl|ctype_digit|ctype_graph|ctype_lower|ctype_print|ctype_punct|ctype_space|ctype_upper|ctype_xdigit|cubrid_affected_rows|cubrid_bind|cubrid_client_encoding|cubrid_close|cubrid_close_prepare|cubrid_close_request|cubrid_col_get|cubrid_col_size|cubrid_column_names|cubrid_column_types|cubrid_commit|cubrid_connect|cubrid_connect_with_url|cubrid_current_oid|cubrid_data_seek|cubrid_db_name|cubrid_disconnect|cubrid_drop|cubrid_errno|cubrid_error|cubrid_error_code|cubrid_error_code_facility|cubrid_error_msg|cubrid_execute|cubrid_fetch|cubrid_fetch_array|cubrid_fetch_assoc|cubrid_fetch_field|cubrid_fetch_lengths|cubrid_fetch_object|cubrid_fetch_row|cubrid_field_flags|cubrid_field_len|cubrid_field_name|cubrid_field_seek|cubrid_field_table|cubrid_field_type|cubrid_free_result|cubrid_get|cubrid_get_autocommit|cubrid_get_charset|cubrid_get_class_name|cubrid_get_client_info|cubrid_get_db_parameter|cubrid_get_server_info|cubrid_insert_id|cubrid_is_instance|cubrid_list_dbs|cubrid_load_from_glo|cubrid_lob_close|cubrid_lob_export|cubrid_lob_get|cubrid_lob_send|cubrid_lob_size|cubrid_lock_read|cubrid_lock_write|cubrid_move_cursor|cubrid_new_glo|cubrid_next_result|cubrid_num_cols|cubrid_num_fields|cubrid_num_rows|cubrid_ping|cubrid_prepare|cubrid_put|cubrid_query|cubrid_real_escape_string|cubrid_result|cubrid_rollback|cubrid_save_to_glo|cubrid_schema|cubrid_send_glo|cubrid_seq_drop|cubrid_seq_insert|cubrid_seq_put|cubrid_set_add|cubrid_set_autocommit|cubrid_set_db_parameter|cubrid_set_drop|cubrid_unbuffered_query|cubrid_version|curl_close|curl_copy_handle|curl_errno|curl_error|curl_exec|curl_getinfo|curl_init|curl_multi_add_handle|curl_multi_close|curl_multi_exec|curl_multi_getcontent|curl_multi_info_read|curl_multi_init|curl_multi_remove_handle|curl_multi_select|curl_setopt|curl_setopt_array|curl_version|current|cyrus_authenticate|cyrus_bind|cyrus_close|cyrus_connect|cyrus_query|cyrus_unbind|date|date_add|date_create|date_create_from_format|date_date_set|date_default_timezone_get|date_default_timezone_set|date_diff|date_format|date_get_last_errors|date_interval_create_from_date_string|date_interval_format|date_isodate_set|date_modify|date_offset_get|date_parse|date_parse_from_format|date_sub|date_sun_info|date_sunrise|date_sunset|date_time_set|date_timestamp_get|date_timestamp_set|date_timezone_get|date_timezone_set|dateinterval|dateperiod|datetime|datetimezone|db2_autocommit|db2_bind_param|db2_client_info|db2_close|db2_column_privileges|db2_columns|db2_commit|db2_conn_error|db2_conn_errormsg|db2_connect|db2_cursor_type|db2_escape_string|db2_exec|db2_execute|db2_fetch_array|db2_fetch_assoc|db2_fetch_both|db2_fetch_object|db2_fetch_row|db2_field_display_size|db2_field_name|db2_field_num|db2_field_precision|db2_field_scale|db2_field_type|db2_field_width|db2_foreign_keys|db2_free_result|db2_free_stmt|db2_get_option|db2_last_insert_id|db2_lob_read|db2_next_result|db2_num_fields|db2_num_rows|db2_pclose|db2_pconnect|db2_prepare|db2_primary_keys|db2_procedure_columns|db2_procedures|db2_result|db2_rollback|db2_server_info|db2_set_option|db2_special_columns|db2_statistics|db2_stmt_error|db2_stmt_errormsg|db2_table_privileges|db2_tables|dba_close|dba_delete|dba_exists|dba_fetch|dba_firstkey|dba_handlers|dba_insert|dba_key_split|dba_list|dba_nextkey|dba_open|dba_optimize|dba_popen|dba_replace|dba_sync|dbase_add_record|dbase_close|dbase_create|dbase_delete_record|dbase_get_header_info|dbase_get_record|dbase_get_record_with_names|dbase_numfields|dbase_numrecords|dbase_open|dbase_pack|dbase_replace_record|dbplus_add|dbplus_aql|dbplus_chdir|dbplus_close|dbplus_curr|dbplus_errcode|dbplus_errno|dbplus_find|dbplus_first|dbplus_flush|dbplus_freealllocks|dbplus_freelock|dbplus_freerlocks|dbplus_getlock|dbplus_getunique|dbplus_info|dbplus_last|dbplus_lockrel|dbplus_next|dbplus_open|dbplus_prev|dbplus_rchperm|dbplus_rcreate|dbplus_rcrtexact|dbplus_rcrtlike|dbplus_resolve|dbplus_restorepos|dbplus_rkeys|dbplus_ropen|dbplus_rquery|dbplus_rrename|dbplus_rsecindex|dbplus_runlink|dbplus_rzap|dbplus_savepos|dbplus_setindex|dbplus_setindexbynumber|dbplus_sql|dbplus_tcl|dbplus_tremove|dbplus_undo|dbplus_undoprepare|dbplus_unlockrel|dbplus_unselect|dbplus_update|dbplus_xlockrel|dbplus_xunlockrel|dbx_close|dbx_compare|dbx_connect|dbx_error|dbx_escape_string|dbx_fetch_row|dbx_query|dbx_sort|dcgettext|dcngettext|deaggregate|debug_backtrace|debug_print_backtrace|debug_zval_dump|decbin|dechex|decoct|define|define_syslog_variables|defined|deg2rad|delete|dgettext|die|dio_close|dio_fcntl|dio_open|dio_read|dio_seek|dio_stat|dio_tcsetattr|dio_truncate|dio_write|dir|directoryiterator|dirname|disk_free_space|disk_total_space|diskfreespace|dl|dngettext|dns_check_record|dns_get_mx|dns_get_record|dom_import_simplexml|domainexception|domattr|domattribute_name|domattribute_set_value|domattribute_specified|domattribute_value|domcharacterdata|domcomment|domdocument|domdocument_add_root|domdocument_create_attribute|domdocument_create_cdata_section|domdocument_create_comment|domdocument_create_element|domdocument_create_element_ns|domdocument_create_entity_reference|domdocument_create_processing_instruction|domdocument_create_text_node|domdocument_doctype|domdocument_document_element|domdocument_dump_file|domdocument_dump_mem|domdocument_get_element_by_id|domdocument_get_elements_by_tagname|domdocument_html_dump_mem|domdocument_xinclude|domdocumentfragment|domdocumenttype|domdocumenttype_entities|domdocumenttype_internal_subset|domdocumenttype_name|domdocumenttype_notations|domdocumenttype_public_id|domdocumenttype_system_id|domelement|domelement_get_attribute|domelement_get_attribute_node|domelement_get_elements_by_tagname|domelement_has_attribute|domelement_remove_attribute|domelement_set_attribute|domelement_set_attribute_node|domelement_tagname|domentity|domentityreference|domexception|domimplementation|domnamednodemap|domnode|domnode_add_namespace|domnode_append_child|domnode_append_sibling|domnode_attributes|domnode_child_nodes|domnode_clone_node|domnode_dump_node|domnode_first_child|domnode_get_content|domnode_has_attributes|domnode_has_child_nodes|domnode_insert_before|domnode_is_blank_node|domnode_last_child|domnode_next_sibling|domnode_node_name|domnode_node_type|domnode_node_value|domnode_owner_document|domnode_parent_node|domnode_prefix|domnode_previous_sibling|domnode_remove_child|domnode_replace_child|domnode_replace_node|domnode_set_content|domnode_set_name|domnode_set_namespace|domnode_unlink_node|domnodelist|domnotation|domprocessinginstruction|domprocessinginstruction_data|domprocessinginstruction_target|domtext|domxml_new_doc|domxml_open_file|domxml_open_mem|domxml_version|domxml_xmltree|domxml_xslt_stylesheet|domxml_xslt_stylesheet_doc|domxml_xslt_stylesheet_file|domxml_xslt_version|domxpath|domxsltstylesheet_process|domxsltstylesheet_result_dump_file|domxsltstylesheet_result_dump_mem|dotnet|dotnet_load|doubleval|each|easter_date|easter_days|echo|empty|emptyiterator|enchant_broker_describe|enchant_broker_dict_exists|enchant_broker_free|enchant_broker_free_dict|enchant_broker_get_error|enchant_broker_init|enchant_broker_list_dicts|enchant_broker_request_dict|enchant_broker_request_pwl_dict|enchant_broker_set_ordering|enchant_dict_add_to_personal|enchant_dict_add_to_session|enchant_dict_check|enchant_dict_describe|enchant_dict_get_error|enchant_dict_is_in_session|enchant_dict_quick_check|enchant_dict_store_replacement|enchant_dict_suggest|end|ereg|ereg_replace|eregi|eregi_replace|error_get_last|error_log|error_reporting|errorexception|escapeshellarg|escapeshellcmd|eval|event_add|event_base_free|event_base_loop|event_base_loopbreak|event_base_loopexit|event_base_new|event_base_priority_init|event_base_set|event_buffer_base_set|event_buffer_disable|event_buffer_enable|event_buffer_fd_set|event_buffer_free|event_buffer_new|event_buffer_priority_set|event_buffer_read|event_buffer_set_callback|event_buffer_timeout_set|event_buffer_watermark_set|event_buffer_write|event_del|event_free|event_new|event_set|exception|exec|exif_imagetype|exif_read_data|exif_tagname|exif_thumbnail|exit|exp|expect_expectl|expect_popen|explode|expm1|export|export|extension_loaded|extract|ezmlm_hash|fam_cancel_monitor|fam_close|fam_monitor_collection|fam_monitor_directory|fam_monitor_file|fam_next_event|fam_open|fam_pending|fam_resume_monitor|fam_suspend_monitor|fbsql_affected_rows|fbsql_autocommit|fbsql_blob_size|fbsql_change_user|fbsql_clob_size|fbsql_close|fbsql_commit|fbsql_connect|fbsql_create_blob|fbsql_create_clob|fbsql_create_db|fbsql_data_seek|fbsql_database|fbsql_database_password|fbsql_db_query|fbsql_db_status|fbsql_drop_db|fbsql_errno|fbsql_error|fbsql_fetch_array|fbsql_fetch_assoc|fbsql_fetch_field|fbsql_fetch_lengths|fbsql_fetch_object|fbsql_fetch_row|fbsql_field_flags|fbsql_field_len|fbsql_field_name|fbsql_field_seek|fbsql_field_table|fbsql_field_type|fbsql_free_result|fbsql_get_autostart_info|fbsql_hostname|fbsql_insert_id|fbsql_list_dbs|fbsql_list_fields|fbsql_list_tables|fbsql_next_result|fbsql_num_fields|fbsql_num_rows|fbsql_password|fbsql_pconnect|fbsql_query|fbsql_read_blob|fbsql_read_clob|fbsql_result|fbsql_rollback|fbsql_rows_fetched|fbsql_select_db|fbsql_set_characterset|fbsql_set_lob_mode|fbsql_set_password|fbsql_set_transaction|fbsql_start_db|fbsql_stop_db|fbsql_table_name|fbsql_tablename|fbsql_username|fbsql_warnings|fclose|fdf_add_doc_javascript|fdf_add_template|fdf_close|fdf_create|fdf_enum_values|fdf_errno|fdf_error|fdf_get_ap|fdf_get_attachment|fdf_get_encoding|fdf_get_file|fdf_get_flags|fdf_get_opt|fdf_get_status|fdf_get_value|fdf_get_version|fdf_header|fdf_next_field_name|fdf_open|fdf_open_string|fdf_remove_item|fdf_save|fdf_save_string|fdf_set_ap|fdf_set_encoding|fdf_set_file|fdf_set_flags|fdf_set_javascript_action|fdf_set_on_import_javascript|fdf_set_opt|fdf_set_status|fdf_set_submit_form_action|fdf_set_target_frame|fdf_set_value|fdf_set_version|feof|fflush|fgetc|fgetcsv|fgets|fgetss|file|file_exists|file_get_contents|file_put_contents|fileatime|filectime|filegroup|fileinode|filemtime|fileowner|fileperms|filepro|filepro_fieldcount|filepro_fieldname|filepro_fieldtype|filepro_fieldwidth|filepro_retrieve|filepro_rowcount|filesize|filesystemiterator|filetype|filter_has_var|filter_id|filter_input|filter_input_array|filter_list|filter_var|filter_var_array|filteriterator|finfo_buffer|finfo_close|finfo_file|finfo_open|finfo_set_flags|floatval|flock|floor|flush|fmod|fnmatch|fopen|forward_static_call|forward_static_call_array|fpassthru|fprintf|fputcsv|fputs|fread|frenchtojd|fribidi_log2vis|fscanf|fseek|fsockopen|fstat|ftell|ftok|ftp_alloc|ftp_cdup|ftp_chdir|ftp_chmod|ftp_close|ftp_connect|ftp_delete|ftp_exec|ftp_fget|ftp_fput|ftp_get|ftp_get_option|ftp_login|ftp_mdtm|ftp_mkdir|ftp_nb_continue|ftp_nb_fget|ftp_nb_fput|ftp_nb_get|ftp_nb_put|ftp_nlist|ftp_pasv|ftp_put|ftp_pwd|ftp_quit|ftp_raw|ftp_rawlist|ftp_rename|ftp_rmdir|ftp_set_option|ftp_site|ftp_size|ftp_ssl_connect|ftp_systype|ftruncate|func_get_arg|func_get_args|func_num_args|function_exists|fwrite|gc_collect_cycles|gc_disable|gc_enable|gc_enabled|gd_info|gearmanclient|gearmanjob|gearmantask|gearmanworker|geoip_continent_code_by_name|geoip_country_code3_by_name|geoip_country_code_by_name|geoip_country_name_by_name|geoip_database_info|geoip_db_avail|geoip_db_filename|geoip_db_get_all_info|geoip_id_by_name|geoip_isp_by_name|geoip_org_by_name|geoip_record_by_name|geoip_region_by_name|geoip_region_name_by_code|geoip_time_zone_by_country_and_region|getMeta|getNamed|getValue|get_browser|get_called_class|get_cfg_var|get_class|get_class_methods|get_class_vars|get_current_user|get_declared_classes|get_declared_interfaces|get_declared_traits|get_defined_constants|get_defined_functions|get_defined_vars|get_extension_funcs|get_headers|get_html_translation_table|get_include_path|get_included_files|get_loaded_extensions|get_magic_quotes_gpc|get_magic_quotes_runtime|get_meta_tags|get_object_vars|get_parent_class|get_acequired_files|get_resource_type|getallheaders|getconstant|getconstants|getconstructor|getcwd|getdate|getdefaultproperties|getdoccomment|getendline|getenv|getextension|getextensionname|getfilename|gethostbyaddr|gethostbyname|gethostbynamel|gethostname|getimagesize|getinterfacenames|getinterfaces|getlastmod|getmethod|getmethods|getmodifiers|getmxrr|getmygid|getmyinode|getmypid|getmyuid|getname|getnamespacename|getopt|getparentclass|getproperties|getproperty|getprotobyname|getprotobynumber|getrandmax|getrusage|getservbyname|getservbyport|getshortname|getstartline|getstaticproperties|getstaticpropertyvalue|gettext|gettimeofday|gettype|glob|globiterator|gmagick|gmagickdraw|gmagickpixel|gmdate|gmmktime|gmp_abs|gmp_add|gmp_and|gmp_clrbit|gmp_cmp|gmp_com|gmp_div|gmp_div_q|gmp_div_qr|gmp_div_r|gmp_divexact|gmp_fact|gmp_gcd|gmp_gcdext|gmp_hamdist|gmp_init|gmp_intval|gmp_invert|gmp_jacobi|gmp_legendre|gmp_mod|gmp_mul|gmp_neg|gmp_nextprime|gmp_or|gmp_perfect_square|gmp_popcount|gmp_pow|gmp_powm|gmp_prob_prime|gmp_random|gmp_scan0|gmp_scan1|gmp_setbit|gmp_sign|gmp_sqrt|gmp_sqrtrem|gmp_strval|gmp_sub|gmp_testbit|gmp_xor|gmstrftime|gnupg_adddecryptkey|gnupg_addencryptkey|gnupg_addsignkey|gnupg_cleardecryptkeys|gnupg_clearencryptkeys|gnupg_clearsignkeys|gnupg_decrypt|gnupg_decryptverify|gnupg_encrypt|gnupg_encryptsign|gnupg_export|gnupg_geterror|gnupg_getprotocol|gnupg_import|gnupg_init|gnupg_keyinfo|gnupg_setarmor|gnupg_seterrormode|gnupg_setsignmode|gnupg_sign|gnupg_verify|gopher_parsedir|grapheme_extract|grapheme_stripos|grapheme_stristr|grapheme_strlen|grapheme_strpos|grapheme_strripos|grapheme_strrpos|grapheme_strstr|grapheme_substr|gregoriantojd|gupnp_context_get_host_ip|gupnp_context_get_port|gupnp_context_get_subscription_timeout|gupnp_context_host_path|gupnp_context_new|gupnp_context_set_subscription_timeout|gupnp_context_timeout_add|gupnp_context_unhost_path|gupnp_control_point_browse_start|gupnp_control_point_browse_stop|gupnp_control_point_callback_set|gupnp_control_point_new|gupnp_device_action_callback_set|gupnp_device_info_get|gupnp_device_info_get_service|gupnp_root_device_get_available|gupnp_root_device_get_relative_location|gupnp_root_device_new|gupnp_root_device_set_available|gupnp_root_device_start|gupnp_root_device_stop|gupnp_service_action_get|gupnp_service_action_return|gupnp_service_action_return_error|gupnp_service_action_set|gupnp_service_freeze_notify|gupnp_service_info_get|gupnp_service_info_get_introspection|gupnp_service_introspection_get_state_variable|gupnp_service_notify|gupnp_service_proxy_action_get|gupnp_service_proxy_action_set|gupnp_service_proxy_add_notify|gupnp_service_proxy_callback_set|gupnp_service_proxy_get_subscribed|gupnp_service_proxy_remove_notify|gupnp_service_proxy_set_subscribed|gupnp_service_thaw_notify|gzclose|gzcompress|gzdecode|gzdeflate|gzencode|gzeof|gzfile|gzgetc|gzgets|gzgetss|gzinflate|gzopen|gzpassthru|gzputs|gzread|gzrewind|gzseek|gztell|gzuncompress|gzwrite|halt_compiler|haruannotation|haruannotation_setborderstyle|haruannotation_sethighlightmode|haruannotation_seticon|haruannotation_setopened|harudestination|harudestination_setfit|harudestination_setfitb|harudestination_setfitbh|harudestination_setfitbv|harudestination_setfith|harudestination_setfitr|harudestination_setfitv|harudestination_setxyz|harudoc|harudoc_addpage|harudoc_addpagelabel|harudoc_construct|harudoc_createoutline|harudoc_getcurrentencoder|harudoc_getcurrentpage|harudoc_getencoder|harudoc_getfont|harudoc_getinfoattr|harudoc_getpagelayout|harudoc_getpagemode|harudoc_getstreamsize|harudoc_insertpage|harudoc_loadjpeg|harudoc_loadpng|harudoc_loadraw|harudoc_loadttc|harudoc_loadttf|harudoc_loadtype1|harudoc_output|harudoc_readfromstream|harudoc_reseterror|harudoc_resetstream|harudoc_save|harudoc_savetostream|harudoc_setcompressionmode|harudoc_setcurrentencoder|harudoc_setencryptionmode|harudoc_setinfoattr|harudoc_setinfodateattr|harudoc_setopenaction|harudoc_setpagelayout|harudoc_setpagemode|harudoc_setpagesconfiguration|harudoc_setpassword|harudoc_setpermission|harudoc_usecnsencodings|harudoc_usecnsfonts|harudoc_usecntencodings|harudoc_usecntfonts|harudoc_usejpencodings|harudoc_usejpfonts|harudoc_usekrencodings|harudoc_usekrfonts|haruencoder|haruencoder_getbytetype|haruencoder_gettype|haruencoder_getunicode|haruencoder_getwritingmode|haruexception|harufont|harufont_getascent|harufont_getcapheight|harufont_getdescent|harufont_getencodingname|harufont_getfontname|harufont_gettextwidth|harufont_getunicodewidth|harufont_getxheight|harufont_measuretext|haruimage|haruimage_getbitspercomponent|haruimage_getcolorspace|haruimage_getheight|haruimage_getsize|haruimage_getwidth|haruimage_setcolormask|haruimage_setmaskimage|haruoutline|haruoutline_setdestination|haruoutline_setopened|harupage|harupage_arc|harupage_begintext|harupage_circle|harupage_closepath|harupage_concat|harupage_createdestination|harupage_createlinkannotation|harupage_createtextannotation|harupage_createurlannotation|harupage_curveto|harupage_curveto2|harupage_curveto3|harupage_drawimage|harupage_ellipse|harupage_endpath|harupage_endtext|harupage_eofill|harupage_eofillstroke|harupage_fill|harupage_fillstroke|harupage_getcharspace|harupage_getcmykfill|harupage_getcmykstroke|harupage_getcurrentfont|harupage_getcurrentfontsize|harupage_getcurrentpos|harupage_getcurrenttextpos|harupage_getdash|harupage_getfillingcolorspace|harupage_getflatness|harupage_getgmode|harupage_getgrayfill|harupage_getgraystroke|harupage_getheight|harupage_gethorizontalscaling|harupage_getlinecap|harupage_getlinejoin|harupage_getlinewidth|harupage_getmiterlimit|harupage_getrgbfill|harupage_getrgbstroke|harupage_getstrokingcolorspace|harupage_gettextleading|harupage_gettextmatrix|harupage_gettextrenderingmode|harupage_gettextrise|harupage_gettextwidth|harupage_gettransmatrix|harupage_getwidth|harupage_getwordspace|harupage_lineto|harupage_measuretext|harupage_movetextpos|harupage_moveto|harupage_movetonextline|harupage_rectangle|harupage_setcharspace|harupage_setcmykfill|harupage_setcmykstroke|harupage_setdash|harupage_setflatness|harupage_setfontandsize|harupage_setgrayfill|harupage_setgraystroke|harupage_setheight|harupage_sethorizontalscaling|harupage_setlinecap|harupage_setlinejoin|harupage_setlinewidth|harupage_setmiterlimit|harupage_setrgbfill|harupage_setrgbstroke|harupage_setrotate|harupage_setsize|harupage_setslideshow|harupage_settextleading|harupage_settextmatrix|harupage_settextrenderingmode|harupage_settextrise|harupage_setwidth|harupage_setwordspace|harupage_showtext|harupage_showtextnextline|harupage_stroke|harupage_textout|harupage_textrect|hasconstant|hash|hash_algos|hash_copy|hash_file|hash_final|hash_hmac|hash_hmac_file|hash_init|hash_update|hash_update_file|hash_update_stream|hasmethod|hasproperty|header|header_register_callback|header_remove|headers_list|headers_sent|hebrev|hebrevc|hex2bin|hexdec|highlight_file|highlight_string|html_entity_decode|htmlentities|htmlspecialchars|htmlspecialchars_decode|http_build_cookie|http_build_query|http_build_str|http_build_url|http_cache_etag|http_cache_last_modified|http_chunked_decode|http_date|http_deflate|http_get|http_get_request_body|http_get_request_body_stream|http_get_request_headers|http_head|http_inflate|http_match_etag|http_match_modified|http_match_request_header|http_negotiate_charset|http_negotiate_content_type|http_negotiate_language|http_parse_cookie|http_parse_headers|http_parse_message|http_parse_params|http_persistent_handles_clean|http_persistent_handles_count|http_persistent_handles_ident|http_post_data|http_post_fields|http_put_data|http_put_file|http_put_stream|http_redirect|http_request|http_request_body_encode|http_request_method_exists|http_request_method_name|http_request_method_register|http_request_method_unregister|http_response_code|http_send_content_disposition|http_send_content_type|http_send_data|http_send_file|http_send_last_modified|http_send_status|http_send_stream|http_support|http_throttle|httpdeflatestream|httpdeflatestream_construct|httpdeflatestream_factory|httpdeflatestream_finish|httpdeflatestream_flush|httpdeflatestream_update|httpinflatestream|httpinflatestream_construct|httpinflatestream_factory|httpinflatestream_finish|httpinflatestream_flush|httpinflatestream_update|httpmessage|httpmessage_addheaders|httpmessage_construct|httpmessage_detach|httpmessage_factory|httpmessage_fromenv|httpmessage_fromstring|httpmessage_getbody|httpmessage_getheader|httpmessage_getheaders|httpmessage_gethttpversion|httpmessage_getparentmessage|httpmessage_getrequestmethod|httpmessage_getrequesturl|httpmessage_getresponsecode|httpmessage_getresponsestatus|httpmessage_gettype|httpmessage_guesscontenttype|httpmessage_prepend|httpmessage_reverse|httpmessage_send|httpmessage_setbody|httpmessage_setheaders|httpmessage_sethttpversion|httpmessage_setrequestmethod|httpmessage_setrequesturl|httpmessage_setresponsecode|httpmessage_setresponsestatus|httpmessage_settype|httpmessage_tomessagetypeobject|httpmessage_tostring|httpquerystring|httpquerystring_construct|httpquerystring_get|httpquerystring_mod|httpquerystring_set|httpquerystring_singleton|httpquerystring_toarray|httpquerystring_tostring|httpquerystring_xlate|httprequest|httprequest_addcookies|httprequest_addheaders|httprequest_addpostfields|httprequest_addpostfile|httprequest_addputdata|httprequest_addquerydata|httprequest_addrawpostdata|httprequest_addssloptions|httprequest_clearhistory|httprequest_construct|httprequest_enablecookies|httprequest_getcontenttype|httprequest_getcookies|httprequest_getheaders|httprequest_gethistory|httprequest_getmethod|httprequest_getoptions|httprequest_getpostfields|httprequest_getpostfiles|httprequest_getputdata|httprequest_getputfile|httprequest_getquerydata|httprequest_getrawpostdata|httprequest_getrawrequestmessage|httprequest_getrawresponsemessage|httprequest_getrequestmessage|httprequest_getresponsebody|httprequest_getresponsecode|httprequest_getresponsecookies|httprequest_getresponsedata|httprequest_getresponseheader|httprequest_getresponseinfo|httprequest_getresponsemessage|httprequest_getresponsestatus|httprequest_getssloptions|httprequest_geturl|httprequest_resetcookies|httprequest_send|httprequest_setcontenttype|httprequest_setcookies|httprequest_setheaders|httprequest_setmethod|httprequest_setoptions|httprequest_setpostfields|httprequest_setpostfiles|httprequest_setputdata|httprequest_setputfile|httprequest_setquerydata|httprequest_setrawpostdata|httprequest_setssloptions|httprequest_seturl|httprequestpool|httprequestpool_attach|httprequestpool_construct|httprequestpool_destruct|httprequestpool_detach|httprequestpool_getattachedrequests|httprequestpool_getfinishedrequests|httprequestpool_reset|httprequestpool_send|httprequestpool_socketperform|httprequestpool_socketselect|httpresponse|httpresponse_capture|httpresponse_getbuffersize|httpresponse_getcache|httpresponse_getcachecontrol|httpresponse_getcontentdisposition|httpresponse_getcontenttype|httpresponse_getdata|httpresponse_getetag|httpresponse_getfile|httpresponse_getgzip|httpresponse_getheader|httpresponse_getlastmodified|httpresponse_getrequestbody|httpresponse_getrequestbodystream|httpresponse_getrequestheaders|httpresponse_getstream|httpresponse_getthrottledelay|httpresponse_guesscontenttype|httpresponse_redirect|httpresponse_send|httpresponse_setbuffersize|httpresponse_setcache|httpresponse_setcachecontrol|httpresponse_setcontentdisposition|httpresponse_setcontenttype|httpresponse_setdata|httpresponse_setetag|httpresponse_setfile|httpresponse_setgzip|httpresponse_setheader|httpresponse_setlastmodified|httpresponse_setstream|httpresponse_setthrottledelay|httpresponse_status|hw_array2objrec|hw_changeobject|hw_children|hw_childrenobj|hw_close|hw_connect|hw_connection_info|hw_cp|hw_deleteobject|hw_docbyanchor|hw_docbyanchorobj|hw_document_attributes|hw_document_bodytag|hw_document_content|hw_document_setcontent|hw_document_size|hw_dummy|hw_edittext|hw_error|hw_errormsg|hw_free_document|hw_getanchors|hw_getanchorsobj|hw_getandlock|hw_getchildcoll|hw_getchildcollobj|hw_getchilddoccoll|hw_getchilddoccollobj|hw_getobject|hw_getobjectbyquery|hw_getobjectbyquerycoll|hw_getobjectbyquerycollobj|hw_getobjectbyqueryobj|hw_getparents|hw_getparentsobj|hw_getrellink|hw_getremote|hw_getremotechildren|hw_getsrcbydestobj|hw_gettext|hw_getusername|hw_identify|hw_incollections|hw_info|hw_inscoll|hw_insdoc|hw_insertanchors|hw_insertdocument|hw_insertobject|hw_mapid|hw_modifyobject|hw_mv|hw_new_document|hw_objrec2array|hw_output_document|hw_pconnect|hw_pipedocument|hw_root|hw_setlinkroot|hw_stat|hw_unlock|hw_who|hwapi_attribute|hwapi_attribute_key|hwapi_attribute_langdepvalue|hwapi_attribute_value|hwapi_attribute_values|hwapi_checkin|hwapi_checkout|hwapi_children|hwapi_content|hwapi_content_mimetype|hwapi_content_read|hwapi_copy|hwapi_dbstat|hwapi_dcstat|hwapi_dstanchors|hwapi_dstofsrcanchor|hwapi_error_count|hwapi_error_reason|hwapi_find|hwapi_ftstat|hwapi_hgcsp|hwapi_hwstat|hwapi_identify|hwapi_info|hwapi_insert|hwapi_insertanchor|hwapi_insertcollection|hwapi_insertdocument|hwapi_link|hwapi_lock|hwapi_move|hwapi_new_content|hwapi_object|hwapi_object_assign|hwapi_object_attreditable|hwapi_object_count|hwapi_object_insert|hwapi_object_new|hwapi_object_remove|hwapi_object_title|hwapi_object_value|hwapi_objectbyanchor|hwapi_parents|hwapi_reason_description|hwapi_reason_type|hwapi_remove|hwapi_replace|hwapi_setcommittedversion|hwapi_srcanchors|hwapi_srcsofdst|hwapi_unlock|hwapi_user|hwapi_userlist|hypot|ibase_add_user|ibase_affected_rows|ibase_backup|ibase_blob_add|ibase_blob_cancel|ibase_blob_close|ibase_blob_create|ibase_blob_echo|ibase_blob_get|ibase_blob_import|ibase_blob_info|ibase_blob_open|ibase_close|ibase_commit|ibase_commit_ret|ibase_connect|ibase_db_info|ibase_delete_user|ibase_drop_db|ibase_errcode|ibase_errmsg|ibase_execute|ibase_fetch_assoc|ibase_fetch_object|ibase_fetch_row|ibase_field_info|ibase_free_event_handler|ibase_free_query|ibase_free_result|ibase_gen_id|ibase_maintain_db|ibase_modify_user|ibase_name_result|ibase_num_fields|ibase_num_params|ibase_param_info|ibase_pconnect|ibase_prepare|ibase_query|ibase_restore|ibase_rollback|ibase_rollback_ret|ibase_server_info|ibase_service_attach|ibase_service_detach|ibase_set_event_handler|ibase_timefmt|ibase_trans|ibase_wait_event|iconv|iconv_get_encoding|iconv_mime_decode|iconv_mime_decode_headers|iconv_mime_encode|iconv_set_encoding|iconv_strlen|iconv_strpos|iconv_strrpos|iconv_substr|id3_get_frame_long_name|id3_get_frame_short_name|id3_get_genre_id|id3_get_genre_list|id3_get_genre_name|id3_get_tag|id3_get_version|id3_remove_tag|id3_set_tag|id3v2attachedpictureframe|id3v2frame|id3v2tag|idate|idn_to_ascii|idn_to_unicode|idn_to_utf8|ifx_affected_rows|ifx_blobinfile_mode|ifx_byteasvarchar|ifx_close|ifx_connect|ifx_copy_blob|ifx_create_blob|ifx_create_char|ifx_do|ifx_error|ifx_errormsg|ifx_fetch_row|ifx_fieldproperties|ifx_fieldtypes|ifx_free_blob|ifx_free_char|ifx_free_result|ifx_get_blob|ifx_get_char|ifx_getsqlca|ifx_htmltbl_result|ifx_nullformat|ifx_num_fields|ifx_num_rows|ifx_pconnect|ifx_prepare|ifx_query|ifx_textasvarchar|ifx_update_blob|ifx_update_char|ifxus_close_slob|ifxus_create_slob|ifxus_free_slob|ifxus_open_slob|ifxus_read_slob|ifxus_seek_slob|ifxus_tell_slob|ifxus_write_slob|ignore_user_abort|iis_add_server|iis_get_dir_security|iis_get_script_map|iis_get_server_by_comment|iis_get_server_by_path|iis_get_server_rights|iis_get_service_state|iis_remove_server|iis_set_app_settings|iis_set_dir_security|iis_set_script_map|iis_set_server_rights|iis_start_server|iis_start_service|iis_stop_server|iis_stop_service|image2wbmp|image_type_to_extension|image_type_to_mime_type|imagealphablending|imageantialias|imagearc|imagechar|imagecharup|imagecolorallocate|imagecolorallocatealpha|imagecolorat|imagecolorclosest|imagecolorclosestalpha|imagecolorclosesthwb|imagecolordeallocate|imagecolorexact|imagecolorexactalpha|imagecolormatch|imagecolorresolve|imagecolorresolvealpha|imagecolorset|imagecolorsforindex|imagecolorstotal|imagecolortransparent|imageconvolution|imagecopy|imagecopymerge|imagecopymergegray|imagecopyresampled|imagecopyresized|imagecreate|imagecreatefromgd|imagecreatefromgd2|imagecreatefromgd2part|imagecreatefromgif|imagecreatefromjpeg|imagecreatefrompng|imagecreatefromstring|imagecreatefromwbmp|imagecreatefromxbm|imagecreatefromxpm|imagecreatetruecolor|imagedashedline|imagedestroy|imageellipse|imagefill|imagefilledarc|imagefilledellipse|imagefilledpolygon|imagefilledrectangle|imagefilltoborder|imagefilter|imagefontheight|imagefontwidth|imageftbbox|imagefttext|imagegammacorrect|imagegd|imagegd2|imagegif|imagegrabscreen|imagegrabwindow|imageinterlace|imageistruecolor|imagejpeg|imagelayereffect|imageline|imageloadfont|imagepalettecopy|imagepng|imagepolygon|imagepsbbox|imagepsencodefont|imagepsextendfont|imagepsfreefont|imagepsloadfont|imagepsslantfont|imagepstext|imagerectangle|imagerotate|imagesavealpha|imagesetbrush|imagesetpixel|imagesetstyle|imagesetthickness|imagesettile|imagestring|imagestringup|imagesx|imagesy|imagetruecolortopalette|imagettfbbox|imagettftext|imagetypes|imagewbmp|imagexbm|imagick|imagick_adaptiveblurimage|imagick_adaptiveresizeimage|imagick_adaptivesharpenimage|imagick_adaptivethresholdimage|imagick_addimage|imagick_addnoiseimage|imagick_affinetransformimage|imagick_animateimages|imagick_annotateimage|imagick_appendimages|imagick_averageimages|imagick_blackthresholdimage|imagick_blurimage|imagick_borderimage|imagick_charcoalimage|imagick_chopimage|imagick_clear|imagick_clipimage|imagick_clippathimage|imagick_clone|imagick_clutimage|imagick_coalesceimages|imagick_colorfloodfillimage|imagick_colorizeimage|imagick_combineimages|imagick_commentimage|imagick_compareimagechannels|imagick_compareimagelayers|imagick_compareimages|imagick_compositeimage|imagick_construct|imagick_contrastimage|imagick_contraststretchimage|imagick_convolveimage|imagick_cropimage|imagick_cropthumbnailimage|imagick_current|imagick_cyclecolormapimage|imagick_decipherimage|imagick_deconstructimages|imagick_deleteimageartifact|imagick_despeckleimage|imagick_destroy|imagick_displayimage|imagick_displayimages|imagick_distortimage|imagick_drawimage|imagick_edgeimage|imagick_embossimage|imagick_encipherimage|imagick_enhanceimage|imagick_equalizeimage|imagick_evaluateimage|imagick_extentimage|imagick_flattenimages|imagick_flipimage|imagick_floodfillpaintimage|imagick_flopimage|imagick_frameimage|imagick_fximage|imagick_gammaimage|imagick_gaussianblurimage|imagick_getcolorspace|imagick_getcompression|imagick_getcompressionquality|imagick_getcopyright|imagick_getfilename|imagick_getfont|imagick_getformat|imagick_getgravity|imagick_gethomeurl|imagick_getimage|imagick_getimagealphachannel|imagick_getimageartifact|imagick_getimagebackgroundcolor|imagick_getimageblob|imagick_getimageblueprimary|imagick_getimagebordercolor|imagick_getimagechanneldepth|imagick_getimagechanneldistortion|imagick_getimagechanneldistortions|imagick_getimagechannelextrema|imagick_getimagechannelmean|imagick_getimagechannelrange|imagick_getimagechannelstatistics|imagick_getimageclipmask|imagick_getimagecolormapcolor|imagick_getimagecolors|imagick_getimagecolorspace|imagick_getimagecompose|imagick_getimagecompression|imagick_getimagecompressionquality|imagick_getimagedelay|imagick_getimagedepth|imagick_getimagedispose|imagick_getimagedistortion|imagick_getimageextrema|imagick_getimagefilename|imagick_getimageformat|imagick_getimagegamma|imagick_getimagegeometry|imagick_getimagegravity|imagick_getimagegreenprimary|imagick_getimageheight|imagick_getimagehistogram|imagick_getimageindex|imagick_getimageinterlacescheme|imagick_getimageinterpolatemethod|imagick_getimageiterations|imagick_getimagelength|imagick_getimagemagicklicense|imagick_getimagematte|imagick_getimagemattecolor|imagick_getimageorientation|imagick_getimagepage|imagick_getimagepixelcolor|imagick_getimageprofile|imagick_getimageprofiles|imagick_getimageproperties|imagick_getimageproperty|imagick_getimageredprimary|imagick_getimageregion|imagick_getimagerenderingintent|imagick_getimageresolution|imagick_getimagesblob|imagick_getimagescene|imagick_getimagesignature|imagick_getimagesize|imagick_getimagetickspersecond|imagick_getimagetotalinkdensity|imagick_getimagetype|imagick_getimageunits|imagick_getimagevirtualpixelmethod|imagick_getimagewhitepoint|imagick_getimagewidth|imagick_getinterlacescheme|imagick_getiteratorindex|imagick_getnumberimages|imagick_getoption|imagick_getpackagename|imagick_getpage|imagick_getpixeliterator|imagick_getpixelregioniterator|imagick_getpointsize|imagick_getquantumdepth|imagick_getquantumrange|imagick_getreleasedate|imagick_getresource|imagick_getresourcelimit|imagick_getsamplingfactors|imagick_getsize|imagick_getsizeoffset|imagick_getversion|imagick_hasnextimage|imagick_haspreviousimage|imagick_identifyimage|imagick_implodeimage|imagick_labelimage|imagick_levelimage|imagick_linearstretchimage|imagick_liquidrescaleimage|imagick_magnifyimage|imagick_mapimage|imagick_mattefloodfillimage|imagick_medianfilterimage|imagick_mergeimagelayers|imagick_minifyimage|imagick_modulateimage|imagick_montageimage|imagick_morphimages|imagick_mosaicimages|imagick_motionblurimage|imagick_negateimage|imagick_newimage|imagick_newpseudoimage|imagick_nextimage|imagick_normalizeimage|imagick_oilpaintimage|imagick_opaquepaintimage|imagick_optimizeimagelayers|imagick_orderedposterizeimage|imagick_paintfloodfillimage|imagick_paintopaqueimage|imagick_painttransparentimage|imagick_pingimage|imagick_pingimageblob|imagick_pingimagefile|imagick_polaroidimage|imagick_posterizeimage|imagick_previewimages|imagick_previousimage|imagick_profileimage|imagick_quantizeimage|imagick_quantizeimages|imagick_queryfontmetrics|imagick_queryfonts|imagick_queryformats|imagick_radialblurimage|imagick_raiseimage|imagick_randomthresholdimage|imagick_readimage|imagick_readimageblob|imagick_readimagefile|imagick_recolorimage|imagick_reducenoiseimage|imagick_removeimage|imagick_removeimageprofile|imagick_render|imagick_resampleimage|imagick_resetimagepage|imagick_resizeimage|imagick_rollimage|imagick_rotateimage|imagick_roundcorners|imagick_sampleimage|imagick_scaleimage|imagick_separateimagechannel|imagick_sepiatoneimage|imagick_setbackgroundcolor|imagick_setcolorspace|imagick_setcompression|imagick_setcompressionquality|imagick_setfilename|imagick_setfirstiterator|imagick_setfont|imagick_setformat|imagick_setgravity|imagick_setimage|imagick_setimagealphachannel|imagick_setimageartifact|imagick_setimagebackgroundcolor|imagick_setimagebias|imagick_setimageblueprimary|imagick_setimagebordercolor|imagick_setimagechanneldepth|imagick_setimageclipmask|imagick_setimagecolormapcolor|imagick_setimagecolorspace|imagick_setimagecompose|imagick_setimagecompression|imagick_setimagecompressionquality|imagick_setimagedelay|imagick_setimagedepth|imagick_setimagedispose|imagick_setimageextent|imagick_setimagefilename|imagick_setimageformat|imagick_setimagegamma|imagick_setimagegravity|imagick_setimagegreenprimary|imagick_setimageindex|imagick_setimageinterlacescheme|imagick_setimageinterpolatemethod|imagick_setimageiterations|imagick_setimagematte|imagick_setimagemattecolor|imagick_setimageopacity|imagick_setimageorientation|imagick_setimagepage|imagick_setimageprofile|imagick_setimageproperty|imagick_setimageredprimary|imagick_setimagerenderingintent|imagick_setimageresolution|imagick_setimagescene|imagick_setimagetickspersecond|imagick_setimagetype|imagick_setimageunits|imagick_setimagevirtualpixelmethod|imagick_setimagewhitepoint|imagick_setinterlacescheme|imagick_setiteratorindex|imagick_setlastiterator|imagick_setoption|imagick_setpage|imagick_setpointsize|imagick_setresolution|imagick_setresourcelimit|imagick_setsamplingfactors|imagick_setsize|imagick_setsizeoffset|imagick_settype|imagick_shadeimage|imagick_shadowimage|imagick_sharpenimage|imagick_shaveimage|imagick_shearimage|imagick_sigmoidalcontrastimage|imagick_sketchimage|imagick_solarizeimage|imagick_spliceimage|imagick_spreadimage|imagick_steganoimage|imagick_stereoimage|imagick_stripimage|imagick_swirlimage|imagick_textureimage|imagick_thresholdimage|imagick_thumbnailimage|imagick_tintimage|imagick_transformimage|imagick_transparentpaintimage|imagick_transposeimage|imagick_transverseimage|imagick_trimimage|imagick_uniqueimagecolors|imagick_unsharpmaskimage|imagick_valid|imagick_vignetteimage|imagick_waveimage|imagick_whitethresholdimage|imagick_writeimage|imagick_writeimagefile|imagick_writeimages|imagick_writeimagesfile|imagickdraw|imagickdraw_affine|imagickdraw_annotation|imagickdraw_arc|imagickdraw_bezier|imagickdraw_circle|imagickdraw_clear|imagickdraw_clone|imagickdraw_color|imagickdraw_comment|imagickdraw_composite|imagickdraw_construct|imagickdraw_destroy|imagickdraw_ellipse|imagickdraw_getclippath|imagickdraw_getcliprule|imagickdraw_getclipunits|imagickdraw_getfillcolor|imagickdraw_getfillopacity|imagickdraw_getfillrule|imagickdraw_getfont|imagickdraw_getfontfamily|imagickdraw_getfontsize|imagickdraw_getfontstyle|imagickdraw_getfontweight|imagickdraw_getgravity|imagickdraw_getstrokeantialias|imagickdraw_getstrokecolor|imagickdraw_getstrokedasharray|imagickdraw_getstrokedashoffset|imagickdraw_getstrokelinecap|imagickdraw_getstrokelinejoin|imagickdraw_getstrokemiterlimit|imagickdraw_getstrokeopacity|imagickdraw_getstrokewidth|imagickdraw_gettextalignment|imagickdraw_gettextantialias|imagickdraw_gettextdecoration|imagickdraw_gettextencoding|imagickdraw_gettextundercolor|imagickdraw_getvectorgraphics|imagickdraw_line|imagickdraw_matte|imagickdraw_pathclose|imagickdraw_pathcurvetoabsolute|imagickdraw_pathcurvetoquadraticbezierabsolute|imagickdraw_pathcurvetoquadraticbezierrelative|imagickdraw_pathcurvetoquadraticbeziersmoothabsolute|imagickdraw_pathcurvetoquadraticbeziersmoothrelative|imagickdraw_pathcurvetorelative|imagickdraw_pathcurvetosmoothabsolute|imagickdraw_pathcurvetosmoothrelative|imagickdraw_pathellipticarcabsolute|imagickdraw_pathellipticarcrelative|imagickdraw_pathfinish|imagickdraw_pathlinetoabsolute|imagickdraw_pathlinetohorizontalabsolute|imagickdraw_pathlinetohorizontalrelative|imagickdraw_pathlinetorelative|imagickdraw_pathlinetoverticalabsolute|imagickdraw_pathlinetoverticalrelative|imagickdraw_pathmovetoabsolute|imagickdraw_pathmovetorelative|imagickdraw_pathstart|imagickdraw_point|imagickdraw_polygon|imagickdraw_polyline|imagickdraw_pop|imagickdraw_popclippath|imagickdraw_popdefs|imagickdraw_poppattern|imagickdraw_push|imagickdraw_pushclippath|imagickdraw_pushdefs|imagickdraw_pushpattern|imagickdraw_rectangle|imagickdraw_render|imagickdraw_rotate|imagickdraw_roundrectangle|imagickdraw_scale|imagickdraw_setclippath|imagickdraw_setcliprule|imagickdraw_setclipunits|imagickdraw_setfillalpha|imagickdraw_setfillcolor|imagickdraw_setfillopacity|imagickdraw_setfillpatternurl|imagickdraw_setfillrule|imagickdraw_setfont|imagickdraw_setfontfamily|imagickdraw_setfontsize|imagickdraw_setfontstretch|imagickdraw_setfontstyle|imagickdraw_setfontweight|imagickdraw_setgravity|imagickdraw_setstrokealpha|imagickdraw_setstrokeantialias|imagickdraw_setstrokecolor|imagickdraw_setstrokedasharray|imagickdraw_setstrokedashoffset|imagickdraw_setstrokelinecap|imagickdraw_setstrokelinejoin|imagickdraw_setstrokemiterlimit|imagickdraw_setstrokeopacity|imagickdraw_setstrokepatternurl|imagickdraw_setstrokewidth|imagickdraw_settextalignment|imagickdraw_settextantialias|imagickdraw_settextdecoration|imagickdraw_settextencoding|imagickdraw_settextundercolor|imagickdraw_setvectorgraphics|imagickdraw_setviewbox|imagickdraw_skewx|imagickdraw_skewy|imagickdraw_translate|imagickpixel|imagickpixel_clear|imagickpixel_construct|imagickpixel_destroy|imagickpixel_getcolor|imagickpixel_getcolorasstring|imagickpixel_getcolorcount|imagickpixel_getcolorvalue|imagickpixel_gethsl|imagickpixel_issimilar|imagickpixel_setcolor|imagickpixel_setcolorvalue|imagickpixel_sethsl|imagickpixeliterator|imagickpixeliterator_clear|imagickpixeliterator_construct|imagickpixeliterator_destroy|imagickpixeliterator_getcurrentiteratorrow|imagickpixeliterator_getiteratorrow|imagickpixeliterator_getnextiteratorrow|imagickpixeliterator_getpreviousiteratorrow|imagickpixeliterator_newpixeliterator|imagickpixeliterator_newpixelregioniterator|imagickpixeliterator_resetiterator|imagickpixeliterator_setiteratorfirstrow|imagickpixeliterator_setiteratorlastrow|imagickpixeliterator_setiteratorrow|imagickpixeliterator_synciterator|imap_8bit|imap_alerts|imap_append|imap_base64|imap_binary|imap_body|imap_bodystruct|imap_check|imap_clearflag_full|imap_close|imap_create|imap_createmailbox|imap_delete|imap_deletemailbox|imap_errors|imap_expunge|imap_fetch_overview|imap_fetchbody|imap_fetchheader|imap_fetchmime|imap_fetchstructure|imap_fetchtext|imap_gc|imap_get_quota|imap_get_quotaroot|imap_getacl|imap_getmailboxes|imap_getsubscribed|imap_header|imap_headerinfo|imap_headers|imap_last_error|imap_list|imap_listmailbox|imap_listscan|imap_listsubscribed|imap_lsub|imap_mail|imap_mail_compose|imap_mail_copy|imap_mail_move|imap_mailboxmsginfo|imap_mime_header_decode|imap_msgno|imap_num_msg|imap_num_recent|imap_open|imap_ping|imap_qprint|imap_rename|imap_renamemailbox|imap_reopen|imap_rfc822_parse_adrlist|imap_rfc822_parse_headers|imap_rfc822_write_address|imap_savebody|imap_scan|imap_scanmailbox|imap_search|imap_set_quota|imap_setacl|imap_setflag_full|imap_sort|imap_status|imap_subscribe|imap_thread|imap_timeout|imap_uid|imap_undelete|imap_unsubscribe|imap_utf7_decode|imap_utf7_encode|imap_utf8|implementsinterface|implode|import_request_variables|in_array|include|include_once|inclued_get_data|inet_ntop|inet_pton|infiniteiterator|ingres_autocommit|ingres_autocommit_state|ingres_charset|ingres_close|ingres_commit|ingres_connect|ingres_cursor|ingres_errno|ingres_error|ingres_errsqlstate|ingres_escape_string|ingres_execute|ingres_fetch_array|ingres_fetch_assoc|ingres_fetch_object|ingres_fetch_proc_return|ingres_fetch_row|ingres_field_length|ingres_field_name|ingres_field_nullable|ingres_field_precision|ingres_field_scale|ingres_field_type|ingres_free_result|ingres_next_error|ingres_num_fields|ingres_num_rows|ingres_pconnect|ingres_prepare|ingres_query|ingres_result_seek|ingres_rollback|ingres_set_environment|ingres_unbuffered_query|ini_alter|ini_get|ini_get_all|ini_restore|ini_set|innamespace|inotify_add_watch|inotify_init|inotify_queue_len|inotify_read|inotify_rm_watch|interface_exists|intl_error_name|intl_get_error_code|intl_get_error_message|intl_is_failure|intldateformatter|intval|invalidargumentexception|invoke|invokeargs|ip2long|iptcembed|iptcparse|is_a|is_array|is_bool|is_callable|is_dir|is_double|is_executable|is_file|is_finite|is_float|is_infinite|is_int|is_integer|is_link|is_long|is_nan|is_null|is_numeric|is_object|is_readable|is_real|is_resource|is_scalar|is_soap_fault|is_string|is_subclass_of|is_uploaded_file|is_writable|is_writeable|isabstract|iscloneable|isdisabled|isfinal|isinstance|isinstantiable|isinterface|isinternal|isiterateable|isset|issubclassof|isuserdefined|iterator|iterator_apply|iterator_count|iterator_to_array|iteratoraggregate|iteratoriterator|java_last_exception_clear|java_last_exception_get|jddayofweek|jdmonthname|jdtofrench|jdtogregorian|jdtojewish|jdtojulian|jdtounix|jewishtojd|join|jpeg2wbmp|json_decode|json_encode|json_last_error|jsonserializable|judy|judy_type|judy_version|juliantojd|kadm5_chpass_principal|kadm5_create_principal|kadm5_delete_principal|kadm5_destroy|kadm5_flush|kadm5_get_policies|kadm5_get_principal|kadm5_get_principals|kadm5_init_with_password|kadm5_modify_principal|key|krsort|ksort|lcfirst|lcg_value|lchgrp|lchown|ldap_8859_to_t61|ldap_add|ldap_bind|ldap_close|ldap_compare|ldap_connect|ldap_count_entries|ldap_delete|ldap_dn2ufn|ldap_err2str|ldap_errno|ldap_error|ldap_explode_dn|ldap_first_attribute|ldap_first_entry|ldap_first_reference|ldap_free_result|ldap_get_attributes|ldap_get_dn|ldap_get_entries|ldap_get_option|ldap_get_values|ldap_get_values_len|ldap_list|ldap_mod_add|ldap_mod_del|ldap_mod_replace|ldap_modify|ldap_next_attribute|ldap_next_entry|ldap_next_reference|ldap_parse_reference|ldap_parse_result|ldap_read|ldap_rename|ldap_sasl_bind|ldap_search|ldap_set_option|ldap_set_rebind_proc|ldap_sort|ldap_start_tls|ldap_t61_to_8859|ldap_unbind|lengthexception|levenshtein|libxml_clear_errors|libxml_disable_entity_loader|libxml_get_errors|libxml_get_last_error|libxml_set_streams_context|libxml_use_internal_errors|libxmlerror|limititerator|link|linkinfo|list|locale|localeconv|localtime|log|log10|log1p|logicexception|long2ip|lstat|ltrim|lzf_compress|lzf_decompress|lzf_optimized_for|m_checkstatus|m_completeauthorizations|m_connect|m_connectionerror|m_deletetrans|m_destroyconn|m_destroyengine|m_getcell|m_getcellbynum|m_getcommadelimited|m_getheader|m_initconn|m_initengine|m_iscommadelimited|m_maxconntimeout|m_monitor|m_numcolumns|m_numrows|m_parsecommadelimited|m_responsekeys|m_responseparam|m_returnstatus|m_setblocking|m_setdropfile|m_setip|m_setssl|m_setssl_cafile|m_setssl_files|m_settimeout|m_sslcert_gen_hash|m_transactionssent|m_transinqueue|m_transkeyval|m_transnew|m_transsend|m_uwait|m_validateidentifier|m_verifyconnection|m_verifysslcert|magic_quotes_runtime|mail|mailparse_determine_best_xfer_encoding|mailparse_msg_create|mailparse_msg_extract_part|mailparse_msg_extract_part_file|mailparse_msg_extract_whole_part_file|mailparse_msg_free|mailparse_msg_get_part|mailparse_msg_get_part_data|mailparse_msg_get_structure|mailparse_msg_parse|mailparse_msg_parse_file|mailparse_rfc822_parse_addresses|mailparse_stream_encode|mailparse_uudecode_all|main|max|maxdb_affected_rows|maxdb_autocommit|maxdb_bind_param|maxdb_bind_result|maxdb_change_user|maxdb_character_set_name|maxdb_client_encoding|maxdb_close|maxdb_close_long_data|maxdb_commit|maxdb_connect|maxdb_connect_errno|maxdb_connect_error|maxdb_data_seek|maxdb_debug|maxdb_disable_reads_from_master|maxdb_disable_rpl_parse|maxdb_dump_debug_info|maxdb_embedded_connect|maxdb_enable_reads_from_master|maxdb_enable_rpl_parse|maxdb_errno|maxdb_error|maxdb_escape_string|maxdb_execute|maxdb_fetch|maxdb_fetch_array|maxdb_fetch_assoc|maxdb_fetch_field|maxdb_fetch_field_direct|maxdb_fetch_fields|maxdb_fetch_lengths|maxdb_fetch_object|maxdb_fetch_row|maxdb_field_count|maxdb_field_seek|maxdb_field_tell|maxdb_free_result|maxdb_get_client_info|maxdb_get_client_version|maxdb_get_host_info|maxdb_get_metadata|maxdb_get_proto_info|maxdb_get_server_info|maxdb_get_server_version|maxdb_info|maxdb_init|maxdb_insert_id|maxdb_kill|maxdb_master_query|maxdb_more_results|maxdb_multi_query|maxdb_next_result|maxdb_num_fields|maxdb_num_rows|maxdb_options|maxdb_param_count|maxdb_ping|maxdb_prepare|maxdb_query|maxdb_real_connect|maxdb_real_escape_string|maxdb_real_query|maxdb_report|maxdb_rollback|maxdb_rpl_parse_enabled|maxdb_rpl_probe|maxdb_rpl_query_type|maxdb_select_db|maxdb_send_long_data|maxdb_send_query|maxdb_server_end|maxdb_server_init|maxdb_set_opt|maxdb_sqlstate|maxdb_ssl_set|maxdb_stat|maxdb_stmt_affected_rows|maxdb_stmt_bind_param|maxdb_stmt_bind_result|maxdb_stmt_close|maxdb_stmt_close_long_data|maxdb_stmt_data_seek|maxdb_stmt_errno|maxdb_stmt_error|maxdb_stmt_execute|maxdb_stmt_fetch|maxdb_stmt_free_result|maxdb_stmt_init|maxdb_stmt_num_rows|maxdb_stmt_param_count|maxdb_stmt_prepare|maxdb_stmt_reset|maxdb_stmt_result_metadata|maxdb_stmt_send_long_data|maxdb_stmt_sqlstate|maxdb_stmt_store_result|maxdb_store_result|maxdb_thread_id|maxdb_thread_safe|maxdb_use_result|maxdb_warning_count|mb_check_encoding|mb_convert_case|mb_convert_encoding|mb_convert_kana|mb_convert_variables|mb_decode_mimeheader|mb_decode_numericentity|mb_detect_encoding|mb_detect_order|mb_encode_mimeheader|mb_encode_numericentity|mb_encoding_aliases|mb_ereg|mb_ereg_match|mb_ereg_replace|mb_ereg_search|mb_ereg_search_getpos|mb_ereg_search_getregs|mb_ereg_search_init|mb_ereg_search_pos|mb_ereg_search_regs|mb_ereg_search_setpos|mb_eregi|mb_eregi_replace|mb_get_info|mb_http_input|mb_http_output|mb_internal_encoding|mb_language|mb_list_encodings|mb_output_handler|mb_parse_str|mb_preferred_mime_name|mb_regex_encoding|mb_regex_set_options|mb_send_mail|mb_split|mb_strcut|mb_strimwidth|mb_stripos|mb_stristr|mb_strlen|mb_strpos|mb_strrchr|mb_strrichr|mb_strripos|mb_strrpos|mb_strstr|mb_strtolower|mb_strtoupper|mb_strwidth|mb_substitute_character|mb_substr|mb_substr_count|mcrypt_cbc|mcrypt_cfb|mcrypt_create_iv|mcrypt_decrypt|mcrypt_ecb|mcrypt_enc_get_algorithms_name|mcrypt_enc_get_block_size|mcrypt_enc_get_iv_size|mcrypt_enc_get_key_size|mcrypt_enc_get_modes_name|mcrypt_enc_get_supported_key_sizes|mcrypt_enc_is_block_algorithm|mcrypt_enc_is_block_algorithm_mode|mcrypt_enc_is_block_mode|mcrypt_enc_self_test|mcrypt_encrypt|mcrypt_generic|mcrypt_generic_deinit|mcrypt_generic_end|mcrypt_generic_init|mcrypt_get_block_size|mcrypt_get_cipher_name|mcrypt_get_iv_size|mcrypt_get_key_size|mcrypt_list_algorithms|mcrypt_list_modes|mcrypt_module_close|mcrypt_module_get_algo_block_size|mcrypt_module_get_algo_key_size|mcrypt_module_get_supported_key_sizes|mcrypt_module_is_block_algorithm|mcrypt_module_is_block_algorithm_mode|mcrypt_module_is_block_mode|mcrypt_module_open|mcrypt_module_self_test|mcrypt_ofb|md5|md5_file|mdecrypt_generic|memcache|memcache_debug|memcached|memory_get_peak_usage|memory_get_usage|messageformatter|metaphone|method_exists|mhash|mhash_count|mhash_get_block_size|mhash_get_hash_name|mhash_keygen_s2k|microtime|mime_content_type|min|ming_keypress|ming_setcubicthreshold|ming_setscale|ming_setswfcompression|ming_useconstants|ming_useswfversion|mkdir|mktime|money_format|mongo|mongobindata|mongocode|mongocollection|mongoconnectionexception|mongocursor|mongocursorexception|mongocursortimeoutexception|mongodate|mongodb|mongodbref|mongoexception|mongogridfs|mongogridfscursor|mongogridfsexception|mongogridfsfile|mongoid|mongoint32|mongoint64|mongomaxkey|mongominkey|mongoregex|mongotimestamp|move_uploaded_file|mpegfile|mqseries_back|mqseries_begin|mqseries_close|mqseries_cmit|mqseries_conn|mqseries_connx|mqseries_disc|mqseries_get|mqseries_inq|mqseries_open|mqseries_put|mqseries_put1|mqseries_set|mqseries_strerror|msession_connect|msession_count|msession_create|msession_destroy|msession_disconnect|msession_find|msession_get|msession_get_array|msession_get_data|msession_inc|msession_list|msession_listvar|msession_lock|msession_plugin|msession_randstr|msession_set|msession_set_array|msession_set_data|msession_timeout|msession_uniq|msession_unlock|msg_get_queue|msg_queue_exists|msg_receive|msg_remove_queue|msg_send|msg_set_queue|msg_stat_queue|msql|msql_affected_rows|msql_close|msql_connect|msql_create_db|msql_createdb|msql_data_seek|msql_db_query|msql_dbname|msql_drop_db|msql_error|msql_fetch_array|msql_fetch_field|msql_fetch_object|msql_fetch_row|msql_field_flags|msql_field_len|msql_field_name|msql_field_seek|msql_field_table|msql_field_type|msql_fieldflags|msql_fieldlen|msql_fieldname|msql_fieldtable|msql_fieldtype|msql_free_result|msql_list_dbs|msql_list_fields|msql_list_tables|msql_num_fields|msql_num_rows|msql_numfields|msql_numrows|msql_pconnect|msql_query|msql_regcase|msql_result|msql_select_db|msql_tablename|mssql_bind|mssql_close|mssql_connect|mssql_data_seek|mssql_execute|mssql_fetch_array|mssql_fetch_assoc|mssql_fetch_batch|mssql_fetch_field|mssql_fetch_object|mssql_fetch_row|mssql_field_length|mssql_field_name|mssql_field_seek|mssql_field_type|mssql_free_result|mssql_free_statement|mssql_get_last_message|mssql_guid_string|mssql_init|mssql_min_error_severity|mssql_min_message_severity|mssql_next_result|mssql_num_fields|mssql_num_rows|mssql_pconnect|mssql_query|mssql_result|mssql_rows_affected|mssql_select_db|mt_getrandmax|mt_rand|mt_srand|multipleiterator|mysql_affected_rows|mysql_client_encoding|mysql_close|mysql_connect|mysql_create_db|mysql_data_seek|mysql_db_name|mysql_db_query|mysql_drop_db|mysql_errno|mysql_error|mysql_escape_string|mysql_fetch_array|mysql_fetch_assoc|mysql_fetch_field|mysql_fetch_lengths|mysql_fetch_object|mysql_fetch_row|mysql_field_flags|mysql_field_len|mysql_field_name|mysql_field_seek|mysql_field_table|mysql_field_type|mysql_free_result|mysql_get_client_info|mysql_get_host_info|mysql_get_proto_info|mysql_get_server_info|mysql_info|mysql_insert_id|mysql_list_dbs|mysql_list_fields|mysql_list_processes|mysql_list_tables|mysql_num_fields|mysql_num_rows|mysql_pconnect|mysql_ping|mysql_query|mysql_real_escape_string|mysql_result|mysql_select_db|mysql_set_charset|mysql_stat|mysql_tablename|mysql_thread_id|mysql_unbuffered_query|mysqli|mysqli_affected_rows|mysqli_autocommit|mysqli_bind_param|mysqli_bind_result|mysqli_cache_stats|mysqli_change_user|mysqli_character_set_name|mysqli_client_encoding|mysqli_close|mysqli_commit|mysqli_connect|mysqli_connect_errno|mysqli_connect_error|mysqli_data_seek|mysqli_debug|mysqli_disable_reads_from_master|mysqli_disable_rpl_parse|mysqli_driver|mysqli_dump_debug_info|mysqli_embedded_server_end|mysqli_embedded_server_start|mysqli_enable_reads_from_master|mysqli_enable_rpl_parse|mysqli_errno|mysqli_error|mysqli_escape_string|mysqli_execute|mysqli_fetch|mysqli_fetch_all|mysqli_fetch_array|mysqli_fetch_assoc|mysqli_fetch_field|mysqli_fetch_field_direct|mysqli_fetch_fields|mysqli_fetch_lengths|mysqli_fetch_object|mysqli_fetch_row|mysqli_field_count|mysqli_field_seek|mysqli_field_tell|mysqli_free_result|mysqli_get_charset|mysqli_get_client_info|mysqli_get_client_stats|mysqli_get_client_version|mysqli_get_connection_stats|mysqli_get_host_info|mysqli_get_metadata|mysqli_get_proto_info|mysqli_get_server_info|mysqli_get_server_version|mysqli_get_warnings|mysqli_info|mysqli_init|mysqli_insert_id|mysqli_kill|mysqli_link_construct|mysqli_master_query|mysqli_more_results|mysqli_multi_query|mysqli_next_result|mysqli_num_fields|mysqli_num_rows|mysqli_options|mysqli_param_count|mysqli_ping|mysqli_poll|mysqli_prepare|mysqli_query|mysqli_real_connect|mysqli_real_escape_string|mysqli_real_query|mysqli_reap_async_query|mysqli_refresh|mysqli_report|mysqli_result|mysqli_rollback|mysqli_rpl_parse_enabled|mysqli_rpl_probe|mysqli_rpl_query_type|mysqli_select_db|mysqli_send_long_data|mysqli_send_query|mysqli_set_charset|mysqli_set_local_infile_default|mysqli_set_local_infile_handler|mysqli_set_opt|mysqli_slave_query|mysqli_sqlstate|mysqli_ssl_set|mysqli_stat|mysqli_stmt|mysqli_stmt_affected_rows|mysqli_stmt_attr_get|mysqli_stmt_attr_set|mysqli_stmt_bind_param|mysqli_stmt_bind_result|mysqli_stmt_close|mysqli_stmt_data_seek|mysqli_stmt_errno|mysqli_stmt_error|mysqli_stmt_execute|mysqli_stmt_fetch|mysqli_stmt_field_count|mysqli_stmt_free_result|mysqli_stmt_get_result|mysqli_stmt_get_warnings|mysqli_stmt_init|mysqli_stmt_insert_id|mysqli_stmt_next_result|mysqli_stmt_num_rows|mysqli_stmt_param_count|mysqli_stmt_prepare|mysqli_stmt_reset|mysqli_stmt_result_metadata|mysqli_stmt_send_long_data|mysqli_stmt_sqlstate|mysqli_stmt_store_result|mysqli_store_result|mysqli_thread_id|mysqli_thread_safe|mysqli_use_result|mysqli_warning|mysqli_warning_count|mysqlnd_ms_get_stats|mysqlnd_ms_query_is_select|mysqlnd_ms_set_user_pick_server|mysqlnd_qc_change_handler|mysqlnd_qc_clear_cache|mysqlnd_qc_get_cache_info|mysqlnd_qc_get_core_stats|mysqlnd_qc_get_handler|mysqlnd_qc_get_query_trace_log|mysqlnd_qc_set_user_handlers|natcasesort|natsort|ncurses_addch|ncurses_addchnstr|ncurses_addchstr|ncurses_addnstr|ncurses_addstr|ncurses_assume_default_colors|ncurses_attroff|ncurses_attron|ncurses_attrset|ncurses_baudrate|ncurses_beep|ncurses_bkgd|ncurses_bkgdset|ncurses_border|ncurses_bottom_panel|ncurses_can_change_color|ncurses_cbreak|ncurses_clear|ncurses_clrtobot|ncurses_clrtoeol|ncurses_color_content|ncurses_color_set|ncurses_curs_set|ncurses_def_prog_mode|ncurses_def_shell_mode|ncurses_define_key|ncurses_del_panel|ncurses_delay_output|ncurses_delch|ncurses_deleteln|ncurses_delwin|ncurses_doupdate|ncurses_echo|ncurses_echochar|ncurses_end|ncurses_erase|ncurses_erasechar|ncurses_filter|ncurses_flash|ncurses_flushinp|ncurses_getch|ncurses_getmaxyx|ncurses_getmouse|ncurses_getyx|ncurses_halfdelay|ncurses_has_colors|ncurses_has_ic|ncurses_has_il|ncurses_has_key|ncurses_hide_panel|ncurses_hline|ncurses_inch|ncurses_init|ncurses_init_color|ncurses_init_pair|ncurses_insch|ncurses_insdelln|ncurses_insertln|ncurses_insstr|ncurses_instr|ncurses_isendwin|ncurses_keyok|ncurses_keypad|ncurses_killchar|ncurses_longname|ncurses_meta|ncurses_mouse_trafo|ncurses_mouseinterval|ncurses_mousemask|ncurses_move|ncurses_move_panel|ncurses_mvaddch|ncurses_mvaddchnstr|ncurses_mvaddchstr|ncurses_mvaddnstr|ncurses_mvaddstr|ncurses_mvcur|ncurses_mvdelch|ncurses_mvgetch|ncurses_mvhline|ncurses_mvinch|ncurses_mvvline|ncurses_mvwaddstr|ncurses_napms|ncurses_new_panel|ncurses_newpad|ncurses_newwin|ncurses_nl|ncurses_nocbreak|ncurses_noecho|ncurses_nonl|ncurses_noqiflush|ncurses_noraw|ncurses_pair_content|ncurses_panel_above|ncurses_panel_below|ncurses_panel_window|ncurses_pnoutrefresh|ncurses_prefresh|ncurses_putp|ncurses_qiflush|ncurses_raw|ncurses_refresh|ncurses_replace_panel|ncurses_reset_prog_mode|ncurses_reset_shell_mode|ncurses_resetty|ncurses_savetty|ncurses_scr_dump|ncurses_scr_init|ncurses_scr_restore|ncurses_scr_set|ncurses_scrl|ncurses_show_panel|ncurses_slk_attr|ncurses_slk_attroff|ncurses_slk_attron|ncurses_slk_attrset|ncurses_slk_clear|ncurses_slk_color|ncurses_slk_init|ncurses_slk_noutrefresh|ncurses_slk_refresh|ncurses_slk_restore|ncurses_slk_set|ncurses_slk_touch|ncurses_standend|ncurses_standout|ncurses_start_color|ncurses_termattrs|ncurses_termname|ncurses_timeout|ncurses_top_panel|ncurses_typeahead|ncurses_ungetch|ncurses_ungetmouse|ncurses_update_panels|ncurses_use_default_colors|ncurses_use_env|ncurses_use_extended_names|ncurses_vidattr|ncurses_vline|ncurses_waddch|ncurses_waddstr|ncurses_wattroff|ncurses_wattron|ncurses_wattrset|ncurses_wborder|ncurses_wclear|ncurses_wcolor_set|ncurses_werase|ncurses_wgetch|ncurses_whline|ncurses_wmouse_trafo|ncurses_wmove|ncurses_wnoutrefresh|ncurses_wrefresh|ncurses_wstandend|ncurses_wstandout|ncurses_wvline|newinstance|newinstanceargs|newt_bell|newt_button|newt_button_bar|newt_centered_window|newt_checkbox|newt_checkbox_get_value|newt_checkbox_set_flags|newt_checkbox_set_value|newt_checkbox_tree|newt_checkbox_tree_add_item|newt_checkbox_tree_find_item|newt_checkbox_tree_get_current|newt_checkbox_tree_get_entry_value|newt_checkbox_tree_get_multi_selection|newt_checkbox_tree_get_selection|newt_checkbox_tree_multi|newt_checkbox_tree_set_current|newt_checkbox_tree_set_entry|newt_checkbox_tree_set_entry_value|newt_checkbox_tree_set_width|newt_clear_key_buffer|newt_cls|newt_compact_button|newt_component_add_callback|newt_component_takes_focus|newt_create_grid|newt_cursor_off|newt_cursor_on|newt_delay|newt_draw_form|newt_draw_root_text|newt_entry|newt_entry_get_value|newt_entry_set|newt_entry_set_filter|newt_entry_set_flags|newt_finished|newt_form|newt_form_add_component|newt_form_add_components|newt_form_add_hot_key|newt_form_destroy|newt_form_get_current|newt_form_run|newt_form_set_background|newt_form_set_height|newt_form_set_size|newt_form_set_timer|newt_form_set_width|newt_form_watch_fd|newt_get_screen_size|newt_grid_add_components_to_form|newt_grid_basic_window|newt_grid_free|newt_grid_get_size|newt_grid_h_close_stacked|newt_grid_h_stacked|newt_grid_place|newt_grid_set_field|newt_grid_simple_window|newt_grid_v_close_stacked|newt_grid_v_stacked|newt_grid_wrapped_window|newt_grid_wrapped_window_at|newt_init|newt_label|newt_label_set_text|newt_listbox|newt_listbox_append_entry|newt_listbox_clear|newt_listbox_clear_selection|newt_listbox_delete_entry|newt_listbox_get_current|newt_listbox_get_selection|newt_listbox_insert_entry|newt_listbox_item_count|newt_listbox_select_item|newt_listbox_set_current|newt_listbox_set_current_by_key|newt_listbox_set_data|newt_listbox_set_entry|newt_listbox_set_width|newt_listitem|newt_listitem_get_data|newt_listitem_set|newt_open_window|newt_pop_help_line|newt_pop_window|newt_push_help_line|newt_radio_get_current|newt_radiobutton|newt_redraw_help_line|newt_reflow_text|newt_refresh|newt_resize_screen|newt_resume|newt_run_form|newt_scale|newt_scale_set|newt_scrollbar_set|newt_set_help_callback|newt_set_suspend_callback|newt_suspend|newt_textbox|newt_textbox_get_num_lines|newt_textbox_reflowed|newt_textbox_set_height|newt_textbox_set_text|newt_vertical_scrollbar|newt_wait_for_key|newt_win_choice|newt_win_entries|newt_win_menu|newt_win_message|newt_win_messagev|newt_win_ternary|next|ngettext|nl2br|nl_langinfo|norewinditerator|normalizer|notes_body|notes_copy_db|notes_create_db|notes_create_note|notes_drop_db|notes_find_note|notes_header_info|notes_list_msgs|notes_mark_read|notes_mark_unread|notes_nav_create|notes_search|notes_unread|notes_version|nsapi_request_headers|nsapi_response_headers|nsapi_virtual|nthmac|number_format|numberformatter|oauth|oauth_get_sbs|oauth_urlencode|oauthexception|oauthprovider|ob_clean|ob_deflatehandler|ob_end_clean|ob_end_flush|ob_etaghandler|ob_flush|ob_get_clean|ob_get_contents|ob_get_flush|ob_get_length|ob_get_level|ob_get_status|ob_gzhandler|ob_iconv_handler|ob_implicit_flush|ob_inflatehandler|ob_list_handlers|ob_start|ob_tidyhandler|oci_bind_array_by_name|oci_bind_by_name|oci_cancel|oci_client_version|oci_close|oci_collection_append|oci_collection_assign|oci_collection_element_assign|oci_collection_element_get|oci_collection_free|oci_collection_max|oci_collection_size|oci_collection_trim|oci_commit|oci_connect|oci_define_by_name|oci_error|oci_execute|oci_fetch|oci_fetch_all|oci_fetch_array|oci_fetch_assoc|oci_fetch_object|oci_fetch_row|oci_field_is_null|oci_field_name|oci_field_precision|oci_field_scale|oci_field_size|oci_field_type|oci_field_type_raw|oci_free_statement|oci_internal_debug|oci_lob_append|oci_lob_close|oci_lob_copy|oci_lob_eof|oci_lob_erase|oci_lob_export|oci_lob_flush|oci_lob_free|oci_lob_getbuffering|oci_lob_import|oci_lob_is_equal|oci_lob_load|oci_lob_read|oci_lob_rewind|oci_lob_save|oci_lob_savefile|oci_lob_seek|oci_lob_setbuffering|oci_lob_size|oci_lob_tell|oci_lob_truncate|oci_lob_write|oci_lob_writetemporary|oci_lob_writetofile|oci_new_collection|oci_new_connect|oci_new_cursor|oci_new_descriptor|oci_num_fields|oci_num_rows|oci_parse|oci_password_change|oci_pconnect|oci_result|oci_rollback|oci_server_version|oci_set_action|oci_set_client_identifier|oci_set_client_info|oci_set_edition|oci_set_module_name|oci_set_prefetch|oci_statement_type|ocibindbyname|ocicancel|ocicloselob|ocicollappend|ocicollassign|ocicollassignelem|ocicollgetelem|ocicollmax|ocicollsize|ocicolltrim|ocicolumnisnull|ocicolumnname|ocicolumnprecision|ocicolumnscale|ocicolumnsize|ocicolumntype|ocicolumntyperaw|ocicommit|ocidefinebyname|ocierror|ociexecute|ocifetch|ocifetchinto|ocifetchstatement|ocifreecollection|ocifreecursor|ocifreedesc|ocifreestatement|ociinternaldebug|ociloadlob|ocilogoff|ocilogon|ocinewcollection|ocinewcursor|ocinewdescriptor|ocinlogon|ocinumcols|ociparse|ociplogon|ociresult|ocirollback|ocirowcount|ocisavelob|ocisavelobfile|ociserverversion|ocisetprefetch|ocistatementtype|ociwritelobtofile|ociwritetemporarylob|octdec|odbc_autocommit|odbc_binmode|odbc_close|odbc_close_all|odbc_columnprivileges|odbc_columns|odbc_commit|odbc_connect|odbc_cursor|odbc_data_source|odbc_do|odbc_error|odbc_errormsg|odbc_exec|odbc_execute|odbc_fetch_array|odbc_fetch_into|odbc_fetch_object|odbc_fetch_row|odbc_field_len|odbc_field_name|odbc_field_num|odbc_field_precision|odbc_field_scale|odbc_field_type|odbc_foreignkeys|odbc_free_result|odbc_gettypeinfo|odbc_longreadlen|odbc_next_result|odbc_num_fields|odbc_num_rows|odbc_pconnect|odbc_prepare|odbc_primarykeys|odbc_procedurecolumns|odbc_procedures|odbc_result|odbc_result_all|odbc_rollback|odbc_setoption|odbc_specialcolumns|odbc_statistics|odbc_tableprivileges|odbc_tables|openal_buffer_create|openal_buffer_data|openal_buffer_destroy|openal_buffer_get|openal_buffer_loadwav|openal_context_create|openal_context_current|openal_context_destroy|openal_context_process|openal_context_suspend|openal_device_close|openal_device_open|openal_listener_get|openal_listener_set|openal_source_create|openal_source_destroy|openal_source_get|openal_source_pause|openal_source_play|openal_source_rewind|openal_source_set|openal_source_stop|openal_stream|opendir|openlog|openssl_cipher_iv_length|openssl_csr_export|openssl_csr_export_to_file|openssl_csr_get_public_key|openssl_csr_get_subject|openssl_csr_new|openssl_csr_sign|openssl_decrypt|openssl_dh_compute_key|openssl_digest|openssl_encrypt|openssl_error_string|openssl_free_key|openssl_get_cipher_methods|openssl_get_md_methods|openssl_get_privatekey|openssl_get_publickey|openssl_open|openssl_pkcs12_export|openssl_pkcs12_export_to_file|openssl_pkcs12_read|openssl_pkcs7_decrypt|openssl_pkcs7_encrypt|openssl_pkcs7_sign|openssl_pkcs7_verify|openssl_pkey_export|openssl_pkey_export_to_file|openssl_pkey_free|openssl_pkey_get_details|openssl_pkey_get_private|openssl_pkey_get_public|openssl_pkey_new|openssl_private_decrypt|openssl_private_encrypt|openssl_public_decrypt|openssl_public_encrypt|openssl_random_pseudo_bytes|openssl_seal|openssl_sign|openssl_verify|openssl_x509_check_private_key|openssl_x509_checkpurpose|openssl_x509_export|openssl_x509_export_to_file|openssl_x509_free|openssl_x509_parse|openssl_x509_read|ord|outeriterator|outofboundsexception|outofrangeexception|output_add_rewrite_var|output_reset_rewrite_vars|overflowexception|overload|override_function|ovrimos_close|ovrimos_commit|ovrimos_connect|ovrimos_cursor|ovrimos_exec|ovrimos_execute|ovrimos_fetch_into|ovrimos_fetch_row|ovrimos_field_len|ovrimos_field_name|ovrimos_field_num|ovrimos_field_type|ovrimos_free_result|ovrimos_longreadlen|ovrimos_num_fields|ovrimos_num_rows|ovrimos_prepare|ovrimos_result|ovrimos_result_all|ovrimos_rollback|pack|parentiterator|parse_ini_file|parse_ini_string|parse_str|parse_url|parsekit_compile_file|parsekit_compile_string|parsekit_func_arginfo|passthru|pathinfo|pclose|pcntl_alarm|pcntl_exec|pcntl_fork|pcntl_getpriority|pcntl_setpriority|pcntl_signal|pcntl_signal_dispatch|pcntl_sigprocmask|pcntl_sigtimedwait|pcntl_sigwaitinfo|pcntl_wait|pcntl_waitpid|pcntl_wexitstatus|pcntl_wifexited|pcntl_wifsignaled|pcntl_wifstopped|pcntl_wstopsig|pcntl_wtermsig|pdf_activate_item|pdf_add_annotation|pdf_add_bookmark|pdf_add_launchlink|pdf_add_locallink|pdf_add_nameddest|pdf_add_note|pdf_add_outline|pdf_add_pdflink|pdf_add_table_cell|pdf_add_textflow|pdf_add_thumbnail|pdf_add_weblink|pdf_arc|pdf_arcn|pdf_attach_file|pdf_begin_document|pdf_begin_font|pdf_begin_glyph|pdf_begin_item|pdf_begin_layer|pdf_begin_page|pdf_begin_page_ext|pdf_begin_pattern|pdf_begin_template|pdf_begin_template_ext|pdf_circle|pdf_clip|pdf_close|pdf_close_image|pdf_close_pdi|pdf_close_pdi_page|pdf_closepath|pdf_closepath_fill_stroke|pdf_closepath_stroke|pdf_concat|pdf_continue_text|pdf_create_3dview|pdf_create_action|pdf_create_annotation|pdf_create_bookmark|pdf_create_field|pdf_create_fieldgroup|pdf_create_gstate|pdf_create_pvf|pdf_create_textflow|pdf_curveto|pdf_define_layer|pdf_delete|pdf_delete_pvf|pdf_delete_table|pdf_delete_textflow|pdf_encoding_set_char|pdf_end_document|pdf_end_font|pdf_end_glyph|pdf_end_item|pdf_end_layer|pdf_end_page|pdf_end_page_ext|pdf_end_pattern|pdf_end_template|pdf_endpath|pdf_fill|pdf_fill_imageblock|pdf_fill_pdfblock|pdf_fill_stroke|pdf_fill_textblock|pdf_findfont|pdf_fit_image|pdf_fit_pdi_page|pdf_fit_table|pdf_fit_textflow|pdf_fit_textline|pdf_get_apiname|pdf_get_buffer|pdf_get_errmsg|pdf_get_errnum|pdf_get_font|pdf_get_fontname|pdf_get_fontsize|pdf_get_image_height|pdf_get_image_width|pdf_get_majorversion|pdf_get_minorversion|pdf_get_parameter|pdf_get_pdi_parameter|pdf_get_pdi_value|pdf_get_value|pdf_info_font|pdf_info_matchbox|pdf_info_table|pdf_info_textflow|pdf_info_textline|pdf_initgraphics|pdf_lineto|pdf_load_3ddata|pdf_load_font|pdf_load_iccprofile|pdf_load_image|pdf_makespotcolor|pdf_moveto|pdf_new|pdf_open_ccitt|pdf_open_file|pdf_open_gif|pdf_open_image|pdf_open_image_file|pdf_open_jpeg|pdf_open_memory_image|pdf_open_pdi|pdf_open_pdi_document|pdf_open_pdi_page|pdf_open_tiff|pdf_pcos_get_number|pdf_pcos_get_stream|pdf_pcos_get_string|pdf_place_image|pdf_place_pdi_page|pdf_process_pdi|pdf_rect|pdf_restore|pdf_resume_page|pdf_rotate|pdf_save|pdf_scale|pdf_set_border_color|pdf_set_border_dash|pdf_set_border_style|pdf_set_char_spacing|pdf_set_duration|pdf_set_gstate|pdf_set_horiz_scaling|pdf_set_info|pdf_set_info_author|pdf_set_info_creator|pdf_set_info_keywords|pdf_set_info_subject|pdf_set_info_title|pdf_set_layer_dependency|pdf_set_leading|pdf_set_parameter|pdf_set_text_matrix|pdf_set_text_pos|pdf_set_text_rendering|pdf_set_text_rise|pdf_set_value|pdf_set_word_spacing|pdf_setcolor|pdf_setdash|pdf_setdashpattern|pdf_setflat|pdf_setfont|pdf_setgray|pdf_setgray_fill|pdf_setgray_stroke|pdf_setlinecap|pdf_setlinejoin|pdf_setlinewidth|pdf_setmatrix|pdf_setmiterlimit|pdf_setpolydash|pdf_setrgbcolor|pdf_setrgbcolor_fill|pdf_setrgbcolor_stroke|pdf_shading|pdf_shading_pattern|pdf_shfill|pdf_show|pdf_show_boxed|pdf_show_xy|pdf_skew|pdf_stringwidth|pdf_stroke|pdf_suspend_page|pdf_translate|pdf_utf16_to_utf8|pdf_utf32_to_utf16|pdf_utf8_to_utf16|pdo|pdo_cubrid_schema|pdo_pgsqllobcreate|pdo_pgsqllobopen|pdo_pgsqllobunlink|pdo_sqlitecreateaggregate|pdo_sqlitecreatefunction|pdoexception|pdostatement|pfsockopen|pg_affected_rows|pg_cancel_query|pg_client_encoding|pg_close|pg_connect|pg_connection_busy|pg_connection_reset|pg_connection_status|pg_convert|pg_copy_from|pg_copy_to|pg_dbname|pg_delete|pg_end_copy|pg_escape_bytea|pg_escape_string|pg_execute|pg_fetch_all|pg_fetch_all_columns|pg_fetch_array|pg_fetch_assoc|pg_fetch_object|pg_fetch_result|pg_fetch_row|pg_field_is_null|pg_field_name|pg_field_num|pg_field_prtlen|pg_field_size|pg_field_table|pg_field_type|pg_field_type_oid|pg_free_result|pg_get_notify|pg_get_pid|pg_get_result|pg_host|pg_insert|pg_last_error|pg_last_notice|pg_last_oid|pg_lo_close|pg_lo_create|pg_lo_export|pg_lo_import|pg_lo_open|pg_lo_read|pg_lo_read_all|pg_lo_seek|pg_lo_tell|pg_lo_unlink|pg_lo_write|pg_meta_data|pg_num_fields|pg_num_rows|pg_options|pg_parameter_status|pg_pconnect|pg_ping|pg_port|pg_prepare|pg_put_line|pg_query|pg_query_params|pg_result_error|pg_result_error_field|pg_result_seek|pg_result_status|pg_select|pg_send_execute|pg_send_prepare|pg_send_query|pg_send_query_params|pg_set_client_encoding|pg_set_error_verbosity|pg_trace|pg_transaction_status|pg_tty|pg_unescape_bytea|pg_untrace|pg_update|pg_version|php_check_syntax|php_ini_loaded_file|php_ini_scanned_files|php_logo_guid|php_sapi_name|php_strip_whitespace|php_uname|phpcredits|phpinfo|phpversion|pi|png2wbmp|popen|pos|posix_access|posix_ctermid|posix_errno|posix_get_last_error|posix_getcwd|posix_getegid|posix_geteuid|posix_getgid|posix_getgrgid|posix_getgrnam|posix_getgroups|posix_getlogin|posix_getpgid|posix_getpgrp|posix_getpid|posix_getppid|posix_getpwnam|posix_getpwuid|posix_getrlimit|posix_getsid|posix_getuid|posix_initgroups|posix_isatty|posix_kill|posix_mkfifo|posix_mknod|posix_setegid|posix_seteuid|posix_setgid|posix_setpgid|posix_setsid|posix_setuid|posix_strerror|posix_times|posix_ttyname|posix_uname|pow|preg_filter|preg_grep|preg_last_error|preg_match|preg_match_all|preg_quote|preg_replace|preg_replace_callback|preg_split|prev|print|print_r|printer_abort|printer_close|printer_create_brush|printer_create_dc|printer_create_font|printer_create_pen|printer_delete_brush|printer_delete_dc|printer_delete_font|printer_delete_pen|printer_draw_bmp|printer_draw_chord|printer_draw_elipse|printer_draw_line|printer_draw_pie|printer_draw_rectangle|printer_draw_roundrect|printer_draw_text|printer_end_doc|printer_end_page|printer_get_option|printer_list|printer_logical_fontheight|printer_open|printer_select_brush|printer_select_font|printer_select_pen|printer_set_option|printer_start_doc|printer_start_page|printer_write|printf|proc_close|proc_get_status|proc_nice|proc_open|proc_terminate|property_exists|ps_add_bookmark|ps_add_launchlink|ps_add_locallink|ps_add_note|ps_add_pdflink|ps_add_weblink|ps_arc|ps_arcn|ps_begin_page|ps_begin_pattern|ps_begin_template|ps_circle|ps_clip|ps_close|ps_close_image|ps_closepath|ps_closepath_stroke|ps_continue_text|ps_curveto|ps_delete|ps_end_page|ps_end_pattern|ps_end_template|ps_fill|ps_fill_stroke|ps_findfont|ps_get_buffer|ps_get_parameter|ps_get_value|ps_hyphenate|ps_include_file|ps_lineto|ps_makespotcolor|ps_moveto|ps_new|ps_open_file|ps_open_image|ps_open_image_file|ps_open_memory_image|ps_place_image|ps_rect|ps_restore|ps_rotate|ps_save|ps_scale|ps_set_border_color|ps_set_border_dash|ps_set_border_style|ps_set_info|ps_set_parameter|ps_set_text_pos|ps_set_value|ps_setcolor|ps_setdash|ps_setflat|ps_setfont|ps_setgray|ps_setlinecap|ps_setlinejoin|ps_setlinewidth|ps_setmiterlimit|ps_setoverprintmode|ps_setpolydash|ps_shading|ps_shading_pattern|ps_shfill|ps_show|ps_show2|ps_show_boxed|ps_show_xy|ps_show_xy2|ps_string_geometry|ps_stringwidth|ps_stroke|ps_symbol|ps_symbol_name|ps_symbol_width|ps_translate|pspell_add_to_personal|pspell_add_to_session|pspell_check|pspell_clear_session|pspell_config_create|pspell_config_data_dir|pspell_config_dict_dir|pspell_config_ignore|pspell_config_mode|pspell_config_personal|pspell_config_repl|pspell_config_runtogether|pspell_config_save_repl|pspell_new|pspell_new_config|pspell_new_personal|pspell_save_wordlist|pspell_store_replacement|pspell_suggest|putenv|px_close|px_create_fp|px_date2string|px_delete|px_delete_record|px_get_field|px_get_info|px_get_parameter|px_get_record|px_get_schema|px_get_value|px_insert_record|px_new|px_numfields|px_numrecords|px_open_fp|px_put_record|px_retrieve_record|px_set_blob_file|px_set_parameter|px_set_tablename|px_set_targetencoding|px_set_value|px_timestamp2string|px_update_record|qdom_error|qdom_tree|quoted_printable_decode|quoted_printable_encode|quotemeta|rad2deg|radius_acct_open|radius_add_server|radius_auth_open|radius_close|radius_config|radius_create_request|radius_cvt_addr|radius_cvt_int|radius_cvt_string|radius_demangle|radius_demangle_mppe_key|radius_get_attr|radius_get_vendor_attr|radius_put_addr|radius_put_attr|radius_put_int|radius_put_string|radius_put_vendor_addr|radius_put_vendor_attr|radius_put_vendor_int|radius_put_vendor_string|radius_request_authenticator|radius_send_request|radius_server_secret|radius_strerror|rand|range|rangeexception|rar_wrapper_cache_stats|rararchive|rarentry|rarexception|rawurldecode|rawurlencode|read_exif_data|readdir|readfile|readgzfile|readline|readline_add_history|readline_callback_handler_install|readline_callback_handler_remove|readline_callback_read_char|readline_clear_history|readline_completion_function|readline_info|readline_list_history|readline_on_new_line|readline_read_history|readline_redisplay|readline_write_history|readlink|realpath|realpath_cache_get|realpath_cache_size|recode|recode_file|recode_string|recursivearrayiterator|recursivecachingiterator|recursivecallbackfilteriterator|recursivedirectoryiterator|recursivefilteriterator|recursiveiterator|recursiveiteratoriterator|recursiveregexiterator|recursivetreeiterator|reflection|reflectionclass|reflectionexception|reflectionextension|reflectionfunction|reflectionfunctionabstract|reflectionmethod|reflectionobject|reflectionparameter|reflectionproperty|reflector|regexiterator|register_shutdown_function|register_tick_function|rename|rename_function|acequire|acequire_once|reset|resetValue|resourcebundle|restore_error_handler|restore_exception_handler|restore_include_path|return|rewind|rewinddir|rmdir|round|rpm_close|rpm_get_tag|rpm_is_valid|rpm_open|rpm_version|rrd_create|rrd_error|rrd_fetch|rrd_first|rrd_graph|rrd_info|rrd_last|rrd_lastupdate|rrd_restore|rrd_tune|rrd_update|rrd_xport|rrdcreator|rrdgraph|rrdupdater|rsort|rtrim|runkit_class_adopt|runkit_class_emancipate|runkit_constant_add|runkit_constant_redefine|runkit_constant_remove|runkit_function_add|runkit_function_copy|runkit_function_redefine|runkit_function_remove|runkit_function_rename|runkit_import|runkit_lint|runkit_lint_file|runkit_method_add|runkit_method_copy|runkit_method_redefine|runkit_method_remove|runkit_method_rename|runkit_return_value_used|runkit_sandbox_output_handler|runkit_superglobals|runtimeexception|samconnection_commit|samconnection_connect|samconnection_constructor|samconnection_disconnect|samconnection_errno|samconnection_error|samconnection_isconnected|samconnection_peek|samconnection_peekall|samconnection_receive|samconnection_remove|samconnection_rollback|samconnection_send|samconnection_setDebug|samconnection_subscribe|samconnection_unsubscribe|sammessage_body|sammessage_constructor|sammessage_header|sca_createdataobject|sca_getservice|sca_localproxy_createdataobject|sca_soapproxy_createdataobject|scandir|sdo_das_changesummary_beginlogging|sdo_das_changesummary_endlogging|sdo_das_changesummary_getchangeddataobjects|sdo_das_changesummary_getchangetype|sdo_das_changesummary_getoldcontainer|sdo_das_changesummary_getoldvalues|sdo_das_changesummary_islogging|sdo_das_datafactory_addpropertytotype|sdo_das_datafactory_addtype|sdo_das_datafactory_getdatafactory|sdo_das_dataobject_getchangesummary|sdo_das_relational_applychanges|sdo_das_relational_construct|sdo_das_relational_createrootdataobject|sdo_das_relational_executepreparedquery|sdo_das_relational_executequery|sdo_das_setting_getlistindex|sdo_das_setting_getpropertyindex|sdo_das_setting_getpropertyname|sdo_das_setting_getvalue|sdo_das_setting_isset|sdo_das_xml_addtypes|sdo_das_xml_create|sdo_das_xml_createdataobject|sdo_das_xml_createdocument|sdo_das_xml_document_getrootdataobject|sdo_das_xml_document_getrootelementname|sdo_das_xml_document_getrootelementuri|sdo_das_xml_document_setencoding|sdo_das_xml_document_setxmldeclaration|sdo_das_xml_document_setxmlversion|sdo_das_xml_loadfile|sdo_das_xml_loadstring|sdo_das_xml_savefile|sdo_das_xml_savestring|sdo_datafactory_create|sdo_dataobject_clear|sdo_dataobject_createdataobject|sdo_dataobject_getcontainer|sdo_dataobject_getsequence|sdo_dataobject_gettypename|sdo_dataobject_gettypenamespaceuri|sdo_exception_getcause|sdo_list_insert|sdo_model_property_getcontainingtype|sdo_model_property_getdefault|sdo_model_property_getname|sdo_model_property_gettype|sdo_model_property_iscontainment|sdo_model_property_ismany|sdo_model_reflectiondataobject_construct|sdo_model_reflectiondataobject_export|sdo_model_reflectiondataobject_getcontainmentproperty|sdo_model_reflectiondataobject_getinstanceproperties|sdo_model_reflectiondataobject_gettype|sdo_model_type_getbasetype|sdo_model_type_getname|sdo_model_type_getnamespaceuri|sdo_model_type_getproperties|sdo_model_type_getproperty|sdo_model_type_isabstracttype|sdo_model_type_isdatatype|sdo_model_type_isinstance|sdo_model_type_isopentype|sdo_model_type_issequencedtype|sdo_sequence_getproperty|sdo_sequence_insert|sdo_sequence_move|seekableiterator|sem_acquire|sem_get|sem_release|sem_remove|serializable|serialize|session_cache_expire|session_cache_limiter|session_commit|session_decode|session_destroy|session_encode|session_get_cookie_params|session_id|session_is_registered|session_module_name|session_name|session_pgsql_add_error|session_pgsql_get_error|session_pgsql_get_field|session_pgsql_reset|session_pgsql_set_field|session_pgsql_status|session_regenerate_id|session_register|session_save_path|session_set_cookie_params|session_set_save_handler|session_start|session_unregister|session_unset|session_write_close|setCounterClass|set_error_handler|set_exception_handler|set_file_buffer|set_include_path|set_magic_quotes_runtime|set_socket_blocking|set_time_limit|setcookie|setlocale|setproctitle|setrawcookie|setstaticpropertyvalue|setthreadtitle|settype|sha1|sha1_file|shell_exec|shm_attach|shm_detach|shm_get_var|shm_has_var|shm_put_var|shm_remove|shm_remove_var|shmop_close|shmop_delete|shmop_open|shmop_read|shmop_size|shmop_write|show_source|shuffle|signeurlpaiement|similar_text|simplexml_import_dom|simplexml_load_file|simplexml_load_string|simplexmlelement|simplexmliterator|sin|sinh|sizeof|sleep|snmp|snmp2_get|snmp2_getnext|snmp2_real_walk|snmp2_set|snmp2_walk|snmp3_get|snmp3_getnext|snmp3_real_walk|snmp3_set|snmp3_walk|snmp_get_quick_print|snmp_get_valueretrieval|snmp_read_mib|snmp_set_enum_print|snmp_set_oid_numeric_print|snmp_set_oid_output_format|snmp_set_quick_print|snmp_set_valueretrieval|snmpget|snmpgetnext|snmprealwalk|snmpset|snmpwalk|snmpwalkoid|soapclient|soapfault|soapheader|soapparam|soapserver|soapvar|socket_accept|socket_bind|socket_clear_error|socket_close|socket_connect|socket_create|socket_create_listen|socket_create_pair|socket_get_option|socket_get_status|socket_getpeername|socket_getsockname|socket_last_error|socket_listen|socket_read|socket_recv|socket_recvfrom|socket_select|socket_send|socket_sendto|socket_set_block|socket_set_blocking|socket_set_nonblock|socket_set_option|socket_set_timeout|socket_shutdown|socket_strerror|socket_write|solr_get_version|solrclient|solrclientexception|solrdocument|solrdocumentfield|solrexception|solrgenericresponse|solrillegalargumentexception|solrillegaloperationexception|solrinputdocument|solrmodifiableparams|solrobject|solrparams|solrpingresponse|solrquery|solrqueryresponse|solrresponse|solrupdateresponse|solrutils|sort|soundex|sphinxclient|spl_autoload|spl_autoload_call|spl_autoload_extensions|spl_autoload_functions|spl_autoload_register|spl_autoload_unregister|spl_classes|spl_object_hash|splbool|spldoublylinkedlist|splenum|splfileinfo|splfileobject|splfixedarray|splfloat|splheap|splint|split|spliti|splmaxheap|splminheap|splobjectstorage|splobserver|splpriorityqueue|splqueue|splstack|splstring|splsubject|spltempfileobject|spoofchecker|sprintf|sql_regcase|sqlite3|sqlite3result|sqlite3stmt|sqlite_array_query|sqlite_busy_timeout|sqlite_changes|sqlite_close|sqlite_column|sqlite_create_aggregate|sqlite_create_function|sqlite_current|sqlite_error_string|sqlite_escape_string|sqlite_exec|sqlite_factory|sqlite_fetch_all|sqlite_fetch_array|sqlite_fetch_column_types|sqlite_fetch_object|sqlite_fetch_single|sqlite_fetch_string|sqlite_field_name|sqlite_has_more|sqlite_has_prev|sqlite_key|sqlite_last_error|sqlite_last_insert_rowid|sqlite_libencoding|sqlite_libversion|sqlite_next|sqlite_num_fields|sqlite_num_rows|sqlite_open|sqlite_popen|sqlite_prev|sqlite_query|sqlite_rewind|sqlite_seek|sqlite_single_query|sqlite_udf_decode_binary|sqlite_udf_encode_binary|sqlite_unbuffered_query|sqlite_valid|sqrt|srand|sscanf|ssdeep_fuzzy_compare|ssdeep_fuzzy_hash|ssdeep_fuzzy_hash_filename|ssh2_auth_hostbased_file|ssh2_auth_none|ssh2_auth_password|ssh2_auth_pubkey_file|ssh2_connect|ssh2_exec|ssh2_fetch_stream|ssh2_fingerprint|ssh2_methods_negotiated|ssh2_publickey_add|ssh2_publickey_init|ssh2_publickey_list|ssh2_publickey_remove|ssh2_scp_recv|ssh2_scp_send|ssh2_sftp|ssh2_sftp_lstat|ssh2_sftp_mkdir|ssh2_sftp_readlink|ssh2_sftp_realpath|ssh2_sftp_rename|ssh2_sftp_rmdir|ssh2_sftp_stat|ssh2_sftp_symlink|ssh2_sftp_unlink|ssh2_shell|ssh2_tunnel|stat|stats_absolute_deviation|stats_cdf_beta|stats_cdf_binomial|stats_cdf_cauchy|stats_cdf_chisquare|stats_cdf_exponential|stats_cdf_f|stats_cdf_gamma|stats_cdf_laplace|stats_cdf_logistic|stats_cdf_negative_binomial|stats_cdf_noncentral_chisquare|stats_cdf_noncentral_f|stats_cdf_poisson|stats_cdf_t|stats_cdf_uniform|stats_cdf_weibull|stats_covariance|stats_den_uniform|stats_dens_beta|stats_dens_cauchy|stats_dens_chisquare|stats_dens_exponential|stats_dens_f|stats_dens_gamma|stats_dens_laplace|stats_dens_logistic|stats_dens_negative_binomial|stats_dens_normal|stats_dens_pmf_binomial|stats_dens_pmf_hypergeometric|stats_dens_pmf_poisson|stats_dens_t|stats_dens_weibull|stats_harmonic_mean|stats_kurtosis|stats_rand_gen_beta|stats_rand_gen_chisquare|stats_rand_gen_exponential|stats_rand_gen_f|stats_rand_gen_funiform|stats_rand_gen_gamma|stats_rand_gen_ibinomial|stats_rand_gen_ibinomial_negative|stats_rand_gen_int|stats_rand_gen_ipoisson|stats_rand_gen_iuniform|stats_rand_gen_noncenral_chisquare|stats_rand_gen_noncentral_f|stats_rand_gen_noncentral_t|stats_rand_gen_normal|stats_rand_gen_t|stats_rand_get_seeds|stats_rand_phrase_to_seeds|stats_rand_ranf|stats_rand_setall|stats_skew|stats_standard_deviation|stats_stat_binomial_coef|stats_stat_correlation|stats_stat_gennch|stats_stat_independent_t|stats_stat_innerproduct|stats_stat_noncentral_t|stats_stat_paired_t|stats_stat_percentile|stats_stat_powersum|stats_variance|stomp|stomp_connect_error|stomp_version|stompexception|stompframe|str_getcsv|str_ireplace|str_pad|str_repeat|str_replace|str_rot13|str_shuffle|str_split|str_word_count|strcasecmp|strchr|strcmp|strcoll|strcspn|stream_bucket_append|stream_bucket_make_writeable|stream_bucket_new|stream_bucket_prepend|stream_context_create|stream_context_get_default|stream_context_get_options|stream_context_get_params|stream_context_set_default|stream_context_set_option|stream_context_set_params|stream_copy_to_stream|stream_encoding|stream_filter_append|stream_filter_prepend|stream_filter_register|stream_filter_remove|stream_get_contents|stream_get_filters|stream_get_line|stream_get_meta_data|stream_get_transports|stream_get_wrappers|stream_is_local|stream_notification_callback|stream_register_wrapper|stream_resolve_include_path|stream_select|stream_set_blocking|stream_set_read_buffer|stream_set_timeout|stream_set_write_buffer|stream_socket_accept|stream_socket_client|stream_socket_enable_crypto|stream_socket_get_name|stream_socket_pair|stream_socket_recvfrom|stream_socket_sendto|stream_socket_server|stream_socket_shutdown|stream_supports_lock|stream_wrapper_register|stream_wrapper_restore|stream_wrapper_unregister|streamwrapper|strftime|strip_tags|stripcslashes|stripos|stripslashes|stristr|strlen|strnatcasecmp|strnatcmp|strncasecmp|strncmp|strpbrk|strpos|strptime|strrchr|strrev|strripos|strrpos|strspn|strstr|strtok|strtolower|strtotime|strtoupper|strtr|strval|substr|substr_compare|substr_count|substr_replace|svm|svmmodel|svn_add|svn_auth_get_parameter|svn_auth_set_parameter|svn_blame|svn_cat|svn_checkout|svn_cleanup|svn_client_version|svn_commit|svn_delete|svn_diff|svn_export|svn_fs_abort_txn|svn_fs_apply_text|svn_fs_begin_txn2|svn_fs_change_node_prop|svn_fs_check_path|svn_fs_contents_changed|svn_fs_copy|svn_fs_delete|svn_fs_dir_entries|svn_fs_file_contents|svn_fs_file_length|svn_fs_is_dir|svn_fs_is_file|svn_fs_make_dir|svn_fs_make_file|svn_fs_node_created_rev|svn_fs_node_prop|svn_fs_props_changed|svn_fs_revision_prop|svn_fs_revision_root|svn_fs_txn_root|svn_fs_youngest_rev|svn_import|svn_log|svn_ls|svn_mkdir|svn_repos_create|svn_repos_fs|svn_repos_fs_begin_txn_for_commit|svn_repos_fs_commit_txn|svn_repos_hotcopy|svn_repos_open|svn_repos_recover|svn_revert|svn_status|svn_update|swf_actiongeturl|swf_actiongotoframe|swf_actiongotolabel|swf_actionnextframe|swf_actionplay|swf_actionprevframe|swf_actionsettarget|swf_actionstop|swf_actiontogglequality|swf_actionwaitforframe|swf_addbuttonrecord|swf_addcolor|swf_closefile|swf_definebitmap|swf_definefont|swf_defineline|swf_definepoly|swf_definerect|swf_definetext|swf_endbutton|swf_enddoaction|swf_endshape|swf_endsymbol|swf_fontsize|swf_fontslant|swf_fonttracking|swf_getbitmapinfo|swf_getfontinfo|swf_getframe|swf_labelframe|swf_lookat|swf_modifyobject|swf_mulcolor|swf_nextid|swf_oncondition|swf_openfile|swf_ortho|swf_ortho2|swf_perspective|swf_placeobject|swf_polarview|swf_popmatrix|swf_posround|swf_pushmatrix|swf_removeobject|swf_rotate|swf_scale|swf_setfont|swf_setframe|swf_shapearc|swf_shapecurveto|swf_shapecurveto3|swf_shapefillbitmapclip|swf_shapefillbitmaptile|swf_shapefilloff|swf_shapefillsolid|swf_shapelinesolid|swf_shapelineto|swf_shapemoveto|swf_showframe|swf_startbutton|swf_startdoaction|swf_startshape|swf_startsymbol|swf_textwidth|swf_translate|swf_viewport|swfaction|swfbitmap|swfbutton|swfdisplayitem|swffill|swffont|swffontchar|swfgradient|swfmorph|swfmovie|swfprebuiltclip|swfshape|swfsound|swfsoundinstance|swfsprite|swftext|swftextfield|swfvideostream|swish_construct|swish_getmetalist|swish_getpropertylist|swish_prepare|swish_query|swishresult_getmetalist|swishresult_stem|swishresults_getparsedwords|swishresults_getremovedstopwords|swishresults_nextresult|swishresults_seekresult|swishsearch_execute|swishsearch_resetlimit|swishsearch_setlimit|swishsearch_setphrasedelimiter|swishsearch_setsort|swishsearch_setstructure|sybase_affected_rows|sybase_close|sybase_connect|sybase_data_seek|sybase_deadlock_retry_count|sybase_fetch_array|sybase_fetch_assoc|sybase_fetch_field|sybase_fetch_object|sybase_fetch_row|sybase_field_seek|sybase_free_result|sybase_get_last_message|sybase_min_client_severity|sybase_min_error_severity|sybase_min_message_severity|sybase_min_server_severity|sybase_num_fields|sybase_num_rows|sybase_pconnect|sybase_query|sybase_result|sybase_select_db|sybase_set_message_handler|sybase_unbuffered_query|symlink|sys_get_temp_dir|sys_getloadavg|syslog|system|tag|tan|tanh|tcpwrap_check|tempnam|textdomain|tidy|tidy_access_count|tidy_config_count|tidy_diagnose|tidy_error_count|tidy_get_error_buffer|tidy_get_output|tidy_load_config|tidy_reset_config|tidy_save_config|tidy_set_encoding|tidy_setopt|tidy_warning_count|tidynode|time|time_nanosleep|time_sleep_until|timezone_abbreviations_list|timezone_identifiers_list|timezone_location_get|timezone_name_from_abbr|timezone_name_get|timezone_offset_get|timezone_open|timezone_transitions_get|timezone_version_get|tmpfile|token_get_all|token_name|tokyotyrant|tokyotyrantquery|tokyotyranttable|tostring|tostring|touch|trait_exists|transliterator|traversable|trigger_error|trim|uasort|ucfirst|ucwords|udm_add_search_limit|udm_alloc_agent|udm_alloc_agent_array|udm_api_version|udm_cat_list|udm_cat_path|udm_check_charset|udm_check_stored|udm_clear_search_limits|udm_close_stored|udm_crc32|udm_errno|udm_error|udm_find|udm_free_agent|udm_free_ispell_data|udm_free_res|udm_get_doc_count|udm_get_res_field|udm_get_res_param|udm_hash32|udm_load_ispell_data|udm_open_stored|udm_set_agent_param|uksort|umask|underflowexception|unexpectedvalueexception|uniqid|unixtojd|unlink|unpack|unregister_tick_function|unserialize|unset|urldecode|urlencode|use_soap_error_handler|user_error|usleep|usort|utf8_decode|utf8_encode|v8js|v8jsexception|var_dump|var_export|variant|variant_abs|variant_add|variant_and|variant_cast|variant_cat|variant_cmp|variant_date_from_timestamp|variant_date_to_timestamp|variant_div|variant_eqv|variant_fix|variant_get_type|variant_idiv|variant_imp|variant_int|variant_mod|variant_mul|variant_neg|variant_not|variant_or|variant_pow|variant_round|variant_set|variant_set_type|variant_sub|variant_xor|version_compare|vfprintf|virtual|vpopmail_add_alias_domain|vpopmail_add_alias_domain_ex|vpopmail_add_domain|vpopmail_add_domain_ex|vpopmail_add_user|vpopmail_alias_add|vpopmail_alias_del|vpopmail_alias_del_domain|vpopmail_alias_get|vpopmail_alias_get_all|vpopmail_auth_user|vpopmail_del_domain|vpopmail_del_domain_ex|vpopmail_del_user|vpopmail_error|vpopmail_passwd|vpopmail_set_user_quota|vprintf|vsprintf|w32api_deftype|w32api_init_dtype|w32api_invoke_function|w32api_register_function|w32api_set_call_method|wddx_add_vars|wddx_deserialize|wddx_packet_end|wddx_packet_start|wddx_serialize_value|wddx_serialize_vars|win32_continue_service|win32_create_service|win32_delete_service|win32_get_last_control_message|win32_pause_service|win32_ps_list_procs|win32_ps_stat_mem|win32_ps_stat_proc|win32_query_service_status|win32_set_service_status|win32_start_service|win32_start_service_ctrl_dispatcher|win32_stop_service|wincache_fcache_fileinfo|wincache_fcache_meminfo|wincache_lock|wincache_ocache_fileinfo|wincache_ocache_meminfo|wincache_refresh_if_changed|wincache_rplist_fileinfo|wincache_rplist_meminfo|wincache_scache_info|wincache_scache_meminfo|wincache_ucache_add|wincache_ucache_cas|wincache_ucache_clear|wincache_ucache_dec|wincache_ucache_delete|wincache_ucache_exists|wincache_ucache_get|wincache_ucache_inc|wincache_ucache_info|wincache_ucache_meminfo|wincache_ucache_set|wincache_unlock|wordwrap|xattr_get|xattr_list|xattr_remove|xattr_set|xattr_supported|xdiff_file_bdiff|xdiff_file_bdiff_size|xdiff_file_bpatch|xdiff_file_diff|xdiff_file_diff_binary|xdiff_file_merge3|xdiff_file_patch|xdiff_file_patch_binary|xdiff_file_rabdiff|xdiff_string_bdiff|xdiff_string_bdiff_size|xdiff_string_bpatch|xdiff_string_diff|xdiff_string_diff_binary|xdiff_string_merge3|xdiff_string_patch|xdiff_string_patch_binary|xdiff_string_rabdiff|xhprof_disable|xhprof_enable|xhprof_sample_disable|xhprof_sample_enable|xml_error_string|xml_get_current_byte_index|xml_get_current_column_number|xml_get_current_line_number|xml_get_error_code|xml_parse|xml_parse_into_struct|xml_parser_create|xml_parser_create_ns|xml_parser_free|xml_parser_get_option|xml_parser_set_option|xml_set_character_data_handler|xml_set_default_handler|xml_set_element_handler|xml_set_end_namespace_decl_handler|xml_set_external_entity_ref_handler|xml_set_notation_decl_handler|xml_set_object|xml_set_processing_instruction_handler|xml_set_start_namespace_decl_handler|xml_set_unparsed_entity_decl_handler|xmlreader|xmlrpc_decode|xmlrpc_decode_request|xmlrpc_encode|xmlrpc_encode_request|xmlrpc_get_type|xmlrpc_is_fault|xmlrpc_parse_method_descriptions|xmlrpc_server_add_introspection_data|xmlrpc_server_call_method|xmlrpc_server_create|xmlrpc_server_destroy|xmlrpc_server_register_introspection_callback|xmlrpc_server_register_method|xmlrpc_set_type|xmlwriter_end_attribute|xmlwriter_end_cdata|xmlwriter_end_comment|xmlwriter_end_document|xmlwriter_end_dtd|xmlwriter_end_dtd_attlist|xmlwriter_end_dtd_element|xmlwriter_end_dtd_entity|xmlwriter_end_element|xmlwriter_end_pi|xmlwriter_flush|xmlwriter_full_end_element|xmlwriter_open_memory|xmlwriter_open_uri|xmlwriter_output_memory|xmlwriter_set_indent|xmlwriter_set_indent_string|xmlwriter_start_attribute|xmlwriter_start_attribute_ns|xmlwriter_start_cdata|xmlwriter_start_comment|xmlwriter_start_document|xmlwriter_start_dtd|xmlwriter_start_dtd_attlist|xmlwriter_start_dtd_element|xmlwriter_start_dtd_entity|xmlwriter_start_element|xmlwriter_start_element_ns|xmlwriter_start_pi|xmlwriter_text|xmlwriter_write_attribute|xmlwriter_write_attribute_ns|xmlwriter_write_cdata|xmlwriter_write_comment|xmlwriter_write_dtd|xmlwriter_write_dtd_attlist|xmlwriter_write_dtd_element|xmlwriter_write_dtd_entity|xmlwriter_write_element|xmlwriter_write_element_ns|xmlwriter_write_pi|xmlwriter_write_raw|xpath_eval|xpath_eval_expression|xpath_new_context|xpath_register_ns|xpath_register_ns_auto|xptr_eval|xptr_new_context|xslt_backend_info|xslt_backend_name|xslt_backend_version|xslt_create|xslt_errno|xslt_error|xslt_free|xslt_getopt|xslt_process|xslt_set_base|xslt_set_encoding|xslt_set_error_handler|xslt_set_log|xslt_set_object|xslt_set_sax_handler|xslt_set_sax_handlers|xslt_set_scheme_handler|xslt_set_scheme_handlers|xslt_setopt|xsltprocessor|yaml_emit|yaml_emit_file|yaml_parse|yaml_parse_file|yaml_parse_url|yaz_addinfo|yaz_ccl_conf|yaz_ccl_parse|yaz_close|yaz_connect|yaz_database|yaz_element|yaz_errno|yaz_error|yaz_es|yaz_es_result|yaz_get_option|yaz_hits|yaz_itemorder|yaz_present|yaz_range|yaz_record|yaz_scan|yaz_scan_result|yaz_schema|yaz_search|yaz_set_option|yaz_sort|yaz_syntax|yaz_wait|yp_all|yp_cat|yp_err_string|yp_errno|yp_first|yp_get_default_domain|yp_master|yp_match|yp_next|yp_order|zend_logo_guid|zend_thread_id|zend_version|zip_close|zip_entry_close|zip_entry_compressedsize|zip_entry_compressionmethod|zip_entry_filesize|zip_entry_name|zip_entry_open|zip_entry_read|zip_open|zip_read|ziparchive|ziparchive_addemptydir|ziparchive_addfile|ziparchive_addfromstring|ziparchive_close|ziparchive_deleteindex|ziparchive_deletename|ziparchive_extractto|ziparchive_getarchivecomment|ziparchive_getcommentindex|ziparchive_getcommentname|ziparchive_getfromindex|ziparchive_getfromname|ziparchive_getnameindex|ziparchive_getstatusstring|ziparchive_getstream|ziparchive_locatename|ziparchive_open|ziparchive_renameindex|ziparchive_renamename|ziparchive_setCommentName|ziparchive_setarchivecomment|ziparchive_setcommentindex|ziparchive_statindex|ziparchive_statname|ziparchive_unchangeall|ziparchive_unchangearchive|ziparchive_unchangeindex|ziparchive_unchangename|zlib_get_coding_type".split("|")),n=i.arrayToMap("abstract|and|array|as|break|case|catch|class|clone|const|continue|declare|default|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|extends|final|for|foreach|function|global|goto|if|implements|interface|instanceof|namespace|new|or|private|protected|public|static|switch|throw|trait|try|use|var|while|xor".split("|")),r=(i.arrayToMap("die|echo|empty|exit|eval|include|include_once|isset|list|acequire|acequire_once|return|print|unset".split("|")),i.arrayToMap("true|TRUE|false|FALSE|null|NULL|__CLASS__|__DIR__|__FILE__|__LINE__|__METHOD__|__FUNCTION__|__NAMESPACE__".split("|"))),a=i.arrayToMap("$GLOBALS|$_SERVER|$_GET|$_POST|$_FILES|$_REQUEST|$_SESSION|$_ENV|$_COOKIE|$php_errormsg|$HTTP_RAW_POST_DATA|$http_response_header|$argc|$argv".split("|")),s=(i.arrayToMap("key_exists|cairo_matrix_create_scale|cairo_matrix_create_translate|call_user_method|call_user_method_array|com_addref|com_get|com_invoke|com_isenum|com_load|com_release|com_set|connection_timeout|cubrid_load_from_glo|cubrid_new_glo|cubrid_save_to_glo|cubrid_send_glo|define_syslog_variables|dl|ereg|ereg_replace|eregi|eregi_replace|hw_documentattributes|hw_documentbodytag|hw_documentsize|hw_outputdocument|imagedashedline|maxdb_bind_param|maxdb_bind_result|maxdb_client_encoding|maxdb_close_long_data|maxdb_execute|maxdb_fetch|maxdb_get_metadata|maxdb_param_count|maxdb_send_long_data|mcrypt_ecb|mcrypt_generic_end|mime_content_type|mysql_createdb|mysql_dbname|mysql_db_query|mysql_drop_db|mysql_dropdb|mysql_escape_string|mysql_fieldflags|mysql_fieldflags|mysql_fieldname|mysql_fieldtable|mysql_fieldtype|mysql_freeresult|mysql_listdbs|mysql_list_fields|mysql_listfields|mysql_list_tables|mysql_listtables|mysql_numfields|mysql_numrows|mysql_selectdb|mysql_tablename|mysqli_bind_param|mysqli_bind_result|mysqli_disable_reads_from_master|mysqli_disable_rpl_parse|mysqli_enable_reads_from_master|mysqli_enable_rpl_parse|mysqli_execute|mysqli_fetch|mysqli_get_metadata|mysqli_master_query|mysqli_param_count|mysqli_rpl_parse_enabled|mysqli_rpl_probe|mysqli_rpl_query_type|mysqli_send_long_data|mysqli_send_query|mysqli_slave_query|ocibindbyname|ocicancel|ocicloselob|ocicollappend|ocicollassign|ocicollassignelem|ocicollgetelem|ocicollmax|ocicollsize|ocicolltrim|ocicolumnisnull|ocicolumnname|ocicolumnprecision|ocicolumnscale|ocicolumnsize|ocicolumntype|ocicolumntyperaw|ocicommit|ocidefinebyname|ocierror|ociexecute|ocifetch|ocifetchinto|ocifetchstatement|ocifreecollection|ocifreecursor|ocifreedesc|ocifreestatement|ociinternaldebug|ociloadlob|ocilogoff|ocilogon|ocinewcollection|ocinewcursor|ocinewdescriptor|ocinlogon|ocinumcols|ociparse|ociplogon|ociresult|ocirollback|ocirowcount|ocisavelob|ocisavelobfile|ociserverversion|ocisetprefetch|ocistatementtype|ociwritelobtofile|ociwritetemporarylob|PDF_add_annotation|PDF_add_bookmark|PDF_add_launchlink|PDF_add_locallink|PDF_add_note|PDF_add_outline|PDF_add_pdflink|PDF_add_weblink|PDF_attach_file|PDF_begin_page|PDF_begin_template|PDF_close_pdi|PDF_close|PDF_findfont|PDF_get_font|PDF_get_fontname|PDF_get_fontsize|PDF_get_image_height|PDF_get_image_width|PDF_get_majorversion|PDF_get_minorversion|PDF_get_pdi_parameter|PDF_get_pdi_value|PDF_open_ccitt|PDF_open_file|PDF_open_gif|PDF_open_image_file|PDF_open_image|PDF_open_jpeg|PDF_open_pdi|PDF_open_tiff|PDF_place_image|PDF_place_pdi_page|PDF_set_border_color|PDF_set_border_dash|PDF_set_border_style|PDF_set_char_spacing|PDF_set_duration|PDF_set_horiz_scaling|PDF_set_info_author|PDF_set_info_creator|PDF_set_info_keywords|PDF_set_info_subject|PDF_set_info_title|PDF_set_leading|PDF_set_text_matrix|PDF_set_text_rendering|PDF_set_text_rise|PDF_set_word_spacing|PDF_setgray_fill|PDF_setgray_stroke|PDF_setgray|PDF_setpolydash|PDF_setrgbcolor_fill|PDF_setrgbcolor_stroke|PDF_setrgbcolor|PDF_show_boxed|php_check_syntax|px_set_tablename|px_set_targetencoding|runkit_sandbox_output_handler|session_is_registered|session_register|session_unregisterset_magic_quotes_runtime|magic_quotes_runtime|set_socket_blocking|socket_set_blocking|set_socket_timeout|socket_set_timeout|split|spliti|sql_regcase".split("|")),i.arrayToMap("cfunction|old_function".split("|")),i.arrayToMap([]));this.$rules={start:[{token:"comment",regex:/(?:#|\/\/)(?:[^?]|\?[^>])*/},e.getStartRule("doc-start"),{token:"comment",regex:"\\/\\*",next:"comment"},{token:"string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/][gimy]*\\s*(?=[).,;]|$)"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"'",next:"qstring"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language",regex:"\\b(?:DEFAULT_INCLUDE_PATH|E_(?:ALL|CO(?:MPILE_(?:ERROR|WARNING)|RE_(?:ERROR|WARNING))|ERROR|NOTICE|PARSE|STRICT|USER_(?:ERROR|NOTICE|WARNING)|WARNING)|P(?:EAR_(?:EXTENSION_DIR|INSTALL_DIR)|HP_(?:BINDIR|CONFIG_FILE_(?:PATH|SCAN_DIR)|DATADIR|E(?:OL|XTENSION_DIR)|INT_(?:MAX|SIZE)|L(?:IBDIR|OCALSTATEDIR)|O(?:S|UTPUT_HANDLER_(?:CONT|END|START))|PREFIX|S(?:API|HLIB_SUFFIX|YSCONFDIR)|VERSION))|__COMPILER_HALT_OFFSET__)\\b"},{token:["keyword","text","support.class"],regex:"\\b(new)(\\s+)(\\w+)"},{token:["support.class","keyword.operator"],regex:"\\b(\\w+)(::)"},{token:"constant.language",regex:"\\b(?:A(?:B(?:DAY_(?:1|2|3|4|5|6|7)|MON_(?:1(?:0|1|2|)|2|3|4|5|6|7|8|9))|LT_DIGITS|M_STR|SSERT_(?:ACTIVE|BAIL|CALLBACK|QUIET_EVAL|WARNING))|C(?:ASE_(?:LOWER|UPPER)|HAR_MAX|O(?:DESET|NNECTION_(?:ABORTED|NORMAL|TIMEOUT)|UNT_(?:NORMAL|RECURSIVE))|R(?:EDITS_(?:ALL|DOCS|FULLPAGE|G(?:ENERAL|ROUP)|MODULES|QA|SAPI)|NCYSTR|YPT_(?:BLOWFISH|EXT_DES|MD5|S(?:ALT_LENGTH|TD_DES)))|URRENCY_SYMBOL)|D(?:AY_(?:1|2|3|4|5|6|7)|ECIMAL_POINT|IRECTORY_SEPARATOR|_(?:FMT|T_FMT))|E(?:NT_(?:COMPAT|NOQUOTES|QUOTES)|RA(?:_(?:D_(?:FMT|T_FMT)|T_FMT|YEAR)|)|XTR_(?:IF_EXISTS|OVERWRITE|PREFIX_(?:ALL|I(?:F_EXISTS|NVALID)|SAME)|SKIP))|FRAC_DIGITS|GROUPING|HTML_(?:ENTITIES|SPECIALCHARS)|IN(?:FO_(?:ALL|C(?:ONFIGURATION|REDITS)|ENVIRONMENT|GENERAL|LICENSE|MODULES|VARIABLES)|I_(?:ALL|PERDIR|SYSTEM|USER)|T_(?:CURR_SYMBOL|FRAC_DIGITS))|L(?:C_(?:ALL|C(?:OLLATE|TYPE)|M(?:ESSAGES|ONETARY)|NUMERIC|TIME)|O(?:CK_(?:EX|NB|SH|UN)|G_(?:A(?:LERT|UTH(?:PRIV|))|C(?:ONS|R(?:IT|ON))|D(?:AEMON|EBUG)|E(?:MERG|RR)|INFO|KERN|L(?:OCAL(?:0|1|2|3|4|5|6|7)|PR)|MAIL|N(?:DELAY|EWS|O(?:TICE|WAIT))|ODELAY|P(?:ERROR|ID)|SYSLOG|U(?:SER|UCP)|WARNING)))|M(?:ON_(?:1(?:0|1|2|)|2|3|4|5|6|7|8|9|DECIMAL_POINT|GROUPING|THOUSANDS_SEP)|_(?:1_PI|2_(?:PI|SQRTPI)|E|L(?:N(?:10|2)|OG(?:10E|2E))|PI(?:_(?:2|4)|)|SQRT(?:1_2|2)))|N(?:EGATIVE_SIGN|O(?:EXPR|STR)|_(?:CS_PRECEDES|S(?:EP_BY_SPACE|IGN_POSN)))|P(?:ATH(?:INFO_(?:BASENAME|DIRNAME|EXTENSION)|_SEPARATOR)|M_STR|OSITIVE_SIGN|_(?:CS_PRECEDES|S(?:EP_BY_SPACE|IGN_POSN)))|RADIXCHAR|S(?:EEK_(?:CUR|END|SET)|ORT_(?:ASC|DESC|NUMERIC|REGULAR|STRING)|TR_PAD_(?:BOTH|LEFT|RIGHT))|T(?:HOUS(?:ANDS_SEP|EP)|_FMT(?:_AMPM|))|YES(?:EXPR|STR)|STD(?:IN|OUT|ERR))\\b"},{token:function(e){return n.hasOwnProperty(e)?"keyword":r.hasOwnProperty(e)?"constant.language":a.hasOwnProperty(e)?"variable.language":s.hasOwnProperty(e)?"invalid.illegal":t.hasOwnProperty(e)?"support.function":"debugger"==e?"invalid.deprecated":e.match(/^(\$[a-zA-Z_\x7f-\uffff][a-zA-Z0-9_\x7f-\uffff]*|self|parent)$/)?"variable":"identifier"},regex:/[a-zA-Z_$\x7f-\uffff][a-zA-Z0-9_\x7f-\uffff]*/},{onMatch:function(e,t,n){return e=e.substr(3),"'"!=e[0]&&'"'!=e[0]||(e=e.slice(1,-1)),n.unshift(this.next,e),"markup.list"},regex:/<<<(?:\w+|'\w+'|"\w+")$/,next:"heredoc"},{token:"keyword.operator",regex:"::|!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|!=|!==|<=|>=|=>|<<=|>>=|>>>=|<>|<|>|=|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|delete|typeof|void)"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],heredoc:[{onMatch:function(e,t,n){return n[1]!=e?"string":(n.shift(),n.shift(),"markup.list")},regex:"^\\w+(?=;?$)",next:"start"},{token:"string",regex:".*"}],comment:[{token:"comment",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}],qqstring:[{token:"constant.language.escape",regex:'\\\\(?:[nrtvef\\\\"$]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2})'},{token:"variable",regex:/\$[\w]+(?:\[[\w\]+]|[=\-]>\w+)?/},{token:"variable",regex:/\$\{[^"\}]+\}?/},{token:"string",regex:'"',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:/\\['\\]/},{token:"string",regex:"'",next:"start"},{defaultToken:"string"}]},this.embedRules(o,"doc-",[o.getEndRule("start")])};r.inherits(c,a);var l=function(){s.call(this);var e=[{token:"support.php_tag",regex:"<\\?(?:php|=)?",push:"php-start"}],t=[{token:"support.php_tag",regex:"\\?>",next:"pop"}];for(var n in this.$rules)this.$rules[n].unshift.apply(this.$rules[n],e);this.embedRules(c,"php-",t,["start"]),this.normalizeRules()};r.inherits(l,s),t.PhpHighlightRules=l,t.PhpLangHighlightRules=c})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var o=i[1].length,a=e.findMatchingBracket({row:t,column:o});if(!a||a.row==t)return 0;var s=this.$getIndent(e.getLine(a.row));e.replace(new r(t,0,t,o-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i})),ace.define("ace/mode/php_completions",["require","exports","module"],(function(e,t,n){"use strict";var r={abs:["int abs(int number)","Return the absolute value of the number"],acos:["float acos(float number)","Return the arc cosine of the number in radians"],acosh:["float acosh(float number)","Returns the inverse hyperbolic cosine of the number, i.e. the value whose hyperbolic cosine is number"],addGlob:["bool addGlob(string pattern[,int flags [, array options]])","Add files matching the glob pattern. See php's glob for the pattern syntax."],addPattern:["bool addPattern(string pattern[, string path [, array options]])","Add files matching the pcre pattern. See php's pcre for the pattern syntax."],addcslashes:["string addcslashes(string str, string charlist)","Escapes all chars mentioned in charlist with backslash. It creates octal representations if asked to backslash characters with 8th bit set or with ASCII<32 (except '\\n', '\\r', '\\t' etc...)"],addslashes:["string addslashes(string str)","Escapes single quote, double quotes and backslash characters in a string with backslashes"],apache_child_terminate:["bool apache_child_terminate(void)","Terminate apache process after this request"],apache_get_modules:["array apache_get_modules(void)","Get a list of loaded Apache modules"],apache_get_version:["string apache_get_version(void)","Fetch Apache version"],apache_getenv:["bool apache_getenv(string variable [, bool walk_to_top])","Get an Apache subprocess_env variable"],apache_lookup_uri:["object apache_lookup_uri(string URI)","Perform a partial request of the given URI to obtain information about it"],apache_note:["string apache_note(string note_name [, string note_value])","Get and set Apache request notes"],apache_request_auth_name:["string apache_request_auth_name()",""],apache_request_auth_type:["string apache_request_auth_type()",""],apache_request_discard_request_body:["long apache_request_discard_request_body()",""],apache_request_err_headers_out:["array apache_request_err_headers_out([{string name|array list} [, string value [, bool replace = false]]])","* fetch all headers that go out in case of an error or a subrequest"],apache_request_headers:["array apache_request_headers(void)","Fetch all HTTP request headers"],apache_request_headers_in:["array apache_request_headers_in()","* fetch all incoming request headers"],apache_request_headers_out:["array apache_request_headers_out([{string name|array list} [, string value [, bool replace = false]]])","* fetch all outgoing request headers"],apache_request_is_initial_req:["bool apache_request_is_initial_req()",""],apache_request_log_error:["boolean apache_request_log_error(string message, [long facility])",""],apache_request_meets_conditions:["long apache_request_meets_conditions()",""],apache_request_remote_host:["int apache_request_remote_host([int type])",""],apache_request_run:["long apache_request_run()","This is a wrapper for ap_sub_run_req and ap_destory_sub_req. It takes sub_request, runs it, destroys it, and returns it's status."],apache_request_satisfies:["long apache_request_satisfies()",""],apache_request_server_port:["int apache_request_server_port()",""],apache_request_set_etag:["void apache_request_set_etag()",""],apache_request_set_last_modified:["void apache_request_set_last_modified()",""],apache_request_some_auth_acequired:["bool apache_request_some_auth_acequired()",""],apache_request_sub_req_lookup_file:["object apache_request_sub_req_lookup_file(string file)","Returns sub-request for the specified file. You would need to run it yourself with run()."],apache_request_sub_req_lookup_uri:["object apache_request_sub_req_lookup_uri(string uri)","Returns sub-request for the specified uri. You would need to run it yourself with run()"],apache_request_sub_req_method_uri:["object apache_request_sub_req_method_uri(string method, string uri)","Returns sub-request for the specified file. You would need to run it yourself with run()."],apache_request_update_mtime:["long apache_request_update_mtime([int dependency_mtime])",""],apache_reset_timeout:["bool apache_reset_timeout(void)","Reset the Apache write timer"],apache_response_headers:["array apache_response_headers(void)","Fetch all HTTP response headers"],apache_setenv:["bool apache_setenv(string variable, string value [, bool walk_to_top])","Set an Apache subprocess_env variable"],array_change_key_case:["array array_change_key_case(array input [, int case=CASE_LOWER])","Retuns an array with all string keys lowercased [or uppercased]"],array_chunk:["array array_chunk(array input, int size [, bool preserve_keys])","Split array into chunks"],array_combine:["array array_combine(array keys, array values)","Creates an array by using the elements of the first parameter as keys and the elements of the second as the corresponding values"],array_count_values:["array array_count_values(array input)","Return the value as key and the frequency of that value in input as value"],array_diff:["array array_diff(array arr1, array arr2 [, array ...])","Returns the entries of arr1 that have values which are not present in any of the others arguments."],array_diff_assoc:["array array_diff_assoc(array arr1, array arr2 [, array ...])","Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal"],array_diff_key:["array array_diff_key(array arr1, array arr2 [, array ...])","Returns the entries of arr1 that have keys which are not present in any of the others arguments. This function is like array_diff() but works on the keys instead of the values. The associativity is preserved."],array_diff_uassoc:["array array_diff_uassoc(array arr1, array arr2 [, array ...], callback data_comp_func)","Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Elements are compared by user supplied function."],array_diff_ukey:["array array_diff_ukey(array arr1, array arr2 [, array ...], callback key_comp_func)","Returns the entries of arr1 that have keys which are not present in any of the others arguments. User supplied function is used for comparing the keys. This function is like array_udiff() but works on the keys instead of the values. The associativity is preserved."],array_fill:["array array_fill(int start_key, int num, mixed val)","Create an array containing num elements starting with index start_key each initialized to val"],array_fill_keys:["array array_fill_keys(array keys, mixed val)","Create an array using the elements of the first parameter as keys each initialized to val"],array_filter:["array array_filter(array input [, mixed callback])","Filters elements from the array via the callback."],array_flip:["array array_flip(array input)","Return array with key <-> value flipped"],array_intersect:["array array_intersect(array arr1, array arr2 [, array ...])","Returns the entries of arr1 that have values which are present in all the other arguments"],array_intersect_assoc:["array array_intersect_assoc(array arr1, array arr2 [, array ...])","Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check"],array_intersect_key:["array array_intersect_key(array arr1, array arr2 [, array ...])","Returns the entries of arr1 that have keys which are present in all the other arguments. Kind of equivalent to array_diff(array_keys($arr1), array_keys($arr2)[,array_keys(...)]). Equivalent of array_intersect_assoc() but does not do compare of the data."],array_intersect_uassoc:["array array_intersect_uassoc(array arr1, array arr2 [, array ...], callback key_compare_func)","Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check and they are compared by using an user-supplied callback."],array_intersect_ukey:["array array_intersect_ukey(array arr1, array arr2 [, array ...], callback key_compare_func)","Returns the entries of arr1 that have keys which are present in all the other arguments. Kind of equivalent to array_diff(array_keys($arr1), array_keys($arr2)[,array_keys(...)]). The comparison of the keys is performed by a user supplied function. Equivalent of array_intersect_uassoc() but does not do compare of the data."],array_key_exists:["bool array_key_exists(mixed key, array search)","Checks if the given key or index exists in the array"],array_keys:["array array_keys(array input [, mixed search_value[, bool strict]])","Return just the keys from the input array, optionally only for the specified search_value"],array_map:["array array_map(mixed callback, array input1 [, array input2 ,...])","Applies the callback to the elements in given arrays."],array_merge:["array array_merge(array arr1, array arr2 [, array ...])","Merges elements from passed arrays into one array"],array_merge_recursive:["array array_merge_recursive(array arr1, array arr2 [, array ...])","Recursively merges elements from passed arrays into one array"],array_multisort:["bool array_multisort(array ar1 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]] [, array ar2 [, SORT_ASC|SORT_DESC [, SORT_REGULAR|SORT_NUMERIC|SORT_STRING]], ...])","Sort multiple arrays at once similar to how ORDER BY clause works in SQL"],array_pad:["array array_pad(array input, int pad_size, mixed pad_value)","Returns a copy of input array padded with pad_value to size pad_size"],array_pop:["mixed array_pop(array stack)","Pops an element off the end of the array"],array_product:["mixed array_product(array input)","Returns the product of the array entries"],array_push:["int array_push(array stack, mixed var [, mixed ...])","Pushes elements onto the end of the array"],array_rand:["mixed array_rand(array input [, int num_req])","Return key/keys for random entry/entries in the array"],array_reduce:["mixed array_reduce(array input, mixed callback [, mixed initial])","Iteratively reduce the array to a single value via the callback."],array_replace:["array array_replace(array arr1, array arr2 [, array ...])","Replaces elements from passed arrays into one array"],array_replace_recursive:["array array_replace_recursive(array arr1, array arr2 [, array ...])","Recursively replaces elements from passed arrays into one array"],array_reverse:["array array_reverse(array input [, bool preserve keys])","Return input as a new array with the order of the entries reversed"],array_search:["mixed array_search(mixed needle, array haystack [, bool strict])","Searches the array for a given value and returns the corresponding key if successful"],array_shift:["mixed array_shift(array stack)","Pops an element off the beginning of the array"],array_slice:["array array_slice(array input, int offset [, int length [, bool preserve_keys]])","Returns elements specified by offset and length"],array_splice:["array array_splice(array input, int offset [, int length [, array replacement]])","Removes the elements designated by offset and length and replace them with supplied array"],array_sum:["mixed array_sum(array input)","Returns the sum of the array entries"],array_udiff:["array array_udiff(array arr1, array arr2 [, array ...], callback data_comp_func)","Returns the entries of arr1 that have values which are not present in any of the others arguments. Elements are compared by user supplied function."],array_udiff_assoc:["array array_udiff_assoc(array arr1, array arr2 [, array ...], callback key_comp_func)","Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys are compared by user supplied function."],array_udiff_uassoc:["array array_udiff_uassoc(array arr1, array arr2 [, array ...], callback data_comp_func, callback key_comp_func)","Returns the entries of arr1 that have values which are not present in any of the others arguments but do additional checks whether the keys are equal. Keys and elements are compared by user supplied functions."],array_uintersect:["array array_uintersect(array arr1, array arr2 [, array ...], callback data_compare_func)","Returns the entries of arr1 that have values which are present in all the other arguments. Data is compared by using an user-supplied callback."],array_uintersect_assoc:["array array_uintersect_assoc(array arr1, array arr2 [, array ...], callback data_compare_func)","Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Data is compared by using an user-supplied callback."],array_uintersect_uassoc:["array array_uintersect_uassoc(array arr1, array arr2 [, array ...], callback data_compare_func, callback key_compare_func)","Returns the entries of arr1 that have values which are present in all the other arguments. Keys are used to do more restrictive check. Both data and keys are compared by using user-supplied callbacks."],array_unique:["array array_unique(array input [, int sort_flags])","Removes duplicate values from array"],array_unshift:["int array_unshift(array stack, mixed var [, mixed ...])","Pushes elements onto the beginning of the array"],array_values:["array array_values(array input)","Return just the values from the input array"],array_walk:["bool array_walk(array input, string funcname [, mixed userdata])","Apply a user function to every member of an array"],array_walk_recursive:["bool array_walk_recursive(array input, string funcname [, mixed userdata])","Apply a user function recursively to every member of an array"],arsort:["bool arsort(array &array_arg [, int sort_flags])","Sort an array in reverse order and maintain index association"],asin:["float asin(float number)","Returns the arc sine of the number in radians"],asinh:["float asinh(float number)","Returns the inverse hyperbolic sine of the number, i.e. the value whose hyperbolic sine is number"],asort:["bool asort(array &array_arg [, int sort_flags])","Sort an array and maintain index association"],assert:["int assert(string|bool assertion)","Checks if assertion is false"],assert_options:["mixed assert_options(int what [, mixed value])","Set/get the various assert flags"],atan:["float atan(float number)","Returns the arc tangent of the number in radians"],atan2:["float atan2(float y, float x)","Returns the arc tangent of y/x, with the resulting quadrant determined by the signs of y and x"],atanh:["float atanh(float number)","Returns the inverse hyperbolic tangent of the number, i.e. the value whose hyperbolic tangent is number"],attachIterator:["void attachIterator(Iterator iterator[, mixed info])","Attach a new iterator"],base64_decode:["string base64_decode(string str[, bool strict])","Decodes string using MIME base64 algorithm"],base64_encode:["string base64_encode(string str)","Encodes string using MIME base64 algorithm"],base_convert:["string base_convert(string number, int frombase, int tobase)","Converts a number in a string from any base <= 36 to any base <= 36"],basename:["string basename(string path [, string suffix])","Returns the filename component of the path"],bcadd:["string bcadd(string left_operand, string right_operand [, int scale])","Returns the sum of two arbitrary precision numbers"],bccomp:["int bccomp(string left_operand, string right_operand [, int scale])","Compares two arbitrary precision numbers"],bcdiv:["string bcdiv(string left_operand, string right_operand [, int scale])","Returns the quotient of two arbitrary precision numbers (division)"],bcmod:["string bcmod(string left_operand, string right_operand)","Returns the modulus of the two arbitrary precision operands"],bcmul:["string bcmul(string left_operand, string right_operand [, int scale])","Returns the multiplication of two arbitrary precision numbers"],bcpow:["string bcpow(string x, string y [, int scale])","Returns the value of an arbitrary precision number raised to the power of another"],bcpowmod:["string bcpowmod(string x, string y, string mod [, int scale])","Returns the value of an arbitrary precision number raised to the power of another reduced by a modulous"],bcscale:["bool bcscale(int scale)","Sets default scale parameter for all bc math functions"],bcsqrt:["string bcsqrt(string operand [, int scale])","Returns the square root of an arbitray precision number"],bcsub:["string bcsub(string left_operand, string right_operand [, int scale])","Returns the difference between two arbitrary precision numbers"],bin2hex:["string bin2hex(string data)","Converts the binary representation of data to hex"],bind_textdomain_codeset:["string bind_textdomain_codeset (string domain, string codeset)","Specify the character encoding in which the messages from the DOMAIN message catalog will be returned."],bindec:["int bindec(string binary_number)","Returns the decimal equivalent of the binary number"],bindtextdomain:["string bindtextdomain(string domain_name, string dir)","Bind to the text domain domain_name, looking for translations in dir. Returns the current domain"],birdstep_autocommit:["bool birdstep_autocommit(int index)",""],birdstep_close:["bool birdstep_close(int id)",""],birdstep_commit:["bool birdstep_commit(int index)",""],birdstep_connect:["int birdstep_connect(string server, string user, string pass)",""],birdstep_exec:["int birdstep_exec(int index, string exec_str)",""],birdstep_fetch:["bool birdstep_fetch(int index)",""],birdstep_fieldname:["string birdstep_fieldname(int index, int col)",""],birdstep_fieldnum:["int birdstep_fieldnum(int index)",""],birdstep_freeresult:["bool birdstep_freeresult(int index)",""],birdstep_off_autocommit:["bool birdstep_off_autocommit(int index)",""],birdstep_result:["mixed birdstep_result(int index, mixed col)",""],birdstep_rollback:["bool birdstep_rollback(int index)",""],bzcompress:["string bzcompress(string source [, int blocksize100k [, int workfactor]])","Compresses a string into BZip2 encoded data"],bzdecompress:["string bzdecompress(string source [, int small])","Decompresses BZip2 compressed data"],bzerrno:["int bzerrno(resource bz)","Returns the error number"],bzerror:["array bzerror(resource bz)","Returns the error number and error string in an associative array"],bzerrstr:["string bzerrstr(resource bz)","Returns the error string"],bzopen:["resource bzopen(string|int file|fp, string mode)","Opens a new BZip2 stream"],bzread:["string bzread(resource bz[, int length])","Reads up to length bytes from a BZip2 stream, or 1024 bytes if length is not specified"],cal_days_in_month:["int cal_days_in_month(int calendar, int month, int year)","Returns the number of days in a month for a given year and calendar"],cal_from_jd:["array cal_from_jd(int jd, int calendar)","Converts from Julian Day Count to a supported calendar and return extended information"],cal_info:["array cal_info([int calendar])","Returns information about a particular calendar"],cal_to_jd:["int cal_to_jd(int calendar, int month, int day, int year)","Converts from a supported calendar to Julian Day Count"],call_user_func:["mixed call_user_func(mixed function_name [, mixed parmeter] [, mixed ...])","Call a user function which is the first parameter"],call_user_func_array:["mixed call_user_func_array(string function_name, array parameters)","Call a user function which is the first parameter with the arguments contained in array"],call_user_method:["mixed call_user_method(string method_name, mixed object [, mixed parameter] [, mixed ...])","Call a user method on a specific object or class"],call_user_method_array:["mixed call_user_method_array(string method_name, mixed object, array params)","Call a user method on a specific object or class using a parameter array"],ceil:["float ceil(float number)","Returns the next highest integer value of the number"],chdir:["bool chdir(string directory)","Change the current directory"],checkdate:["bool checkdate(int month, int day, int year)","Returns true(1) if it is a valid date in gregorian calendar"],chgrp:["bool chgrp(string filename, mixed group)","Change file group"],chmod:["bool chmod(string filename, int mode)","Change file mode"],chown:["bool chown (string filename, mixed user)","Change file owner"],chr:["string chr(int ascii)","Converts ASCII code to a character"],chroot:["bool chroot(string directory)","Change root directory"],chunk_split:["string chunk_split(string str [, int chunklen [, string ending]])","Returns split line"],class_alias:["bool class_alias(string user_class_name , string alias_name [, bool autoload])","Creates an alias for user defined class"],class_exists:["bool class_exists(string classname [, bool autoload])","Checks if the class exists"],class_implements:["array class_implements(mixed what [, bool autoload ])","Return all classes and interfaces implemented by SPL"],class_parents:["array class_parents(object instance [, boolean autoload = true])","Return an array containing the names of all parent classes"],clearstatcache:["void clearstatcache([bool clear_realpath_cache[, string filename]])","Clear file stat cache"],closedir:["void closedir([resource dir_handle])","Close directory connection identified by the dir_handle"],closelog:["bool closelog(void)","Close connection to system logger"],collator_asort:["bool collator_asort( Collator $coll, array(string) $arr )","* Sort array using specified collator, maintaining index association."],collator_compare:["int collator_compare( Collator $coll, string $str1, string $str2 )","* Compare two strings."],collator_create:["Collator collator_create( string $locale )","* Create collator."],collator_get_attribute:["int collator_get_attribute( Collator $coll, int $attr )","* Get collation attribute value."],collator_get_error_code:["int collator_get_error_code( Collator $coll )","* Get collator's last error code."],collator_get_error_message:["string collator_get_error_message( Collator $coll )","* Get text description for collator's last error code."],collator_get_locale:["string collator_get_locale( Collator $coll, int $type )","* Gets the locale name of the collator."],collator_get_sort_key:["bool collator_get_sort_key( Collator $coll, string $str )","* Get a sort key for a string from a Collator. }}}"],collator_get_strength:["int collator_get_strength(Collator coll)","* Returns the current collation strength."],collator_set_attribute:["bool collator_set_attribute( Collator $coll, int $attr, int $val )","* Set collation attribute."],collator_set_strength:["bool collator_set_strength(Collator coll, int strength)","* Set the collation strength."],collator_sort:["bool collator_sort( Collator $coll, array(string) $arr [, int $sort_flags] )","* Sort array using specified collator."],collator_sort_with_sort_keys:["bool collator_sort_with_sort_keys( Collator $coll, array(string) $arr )","* Equivalent to standard PHP sort using Collator. * Uses ICU ucol_getSortKey for performance."],com_create_guid:["string com_create_guid()","Generate a globally unique identifier (GUID)"],com_event_sink:["bool com_event_sink(object comobject, object sinkobject [, mixed sinkinterface])","Connect events from a COM object to a PHP object"],com_get_active_object:["object com_get_active_object(string progid [, int code_page ])","Returns a handle to an already running instance of a COM object"],com_load_typelib:["bool com_load_typelib(string typelib_name [, int case_insensitive])","Loads a Typelibrary and registers its constants"],com_message_pump:["bool com_message_pump([int timeoutms])","Process COM messages, sleeping for up to timeoutms milliseconds"],com_print_typeinfo:["bool com_print_typeinfo(object comobject | string typelib, string dispinterface, bool wantsink)","Print out a PHP class definition for a dispatchable interface"],compact:["array compact(mixed var_names [, mixed ...])","Creates a hash containing variables and their values"],compose_locale:["static string compose_locale($array)","* Creates a locale by combining the parts of locale-ID passed * }}}"],confirm_extname_compiled:["string confirm_extname_compiled(string arg)","Return a string to confirm that the module is compiled in"],connection_aborted:["int connection_aborted(void)","Returns true if client disconnected"],connection_status:["int connection_status(void)","Returns the connection status bitfield"],constant:["mixed constant(string const_name)","Given the name of a constant this function will return the constant's associated value"],convert_cyr_string:["string convert_cyr_string(string str, string from, string to)","Convert from one Cyrillic character set to another"],convert_uudecode:["string convert_uudecode(string data)","decode a uuencoded string"],convert_uuencode:["string convert_uuencode(string data)","uuencode a string"],copy:["bool copy(string source_file, string destination_file [, resource context])","Copy a file"],cos:["float cos(float number)","Returns the cosine of the number in radians"],cosh:["float cosh(float number)","Returns the hyperbolic cosine of the number, defined as (exp(number) + exp(-number))/2"],count:["int count(mixed var [, int mode])","Count the number of elements in a variable (usually an array)"],count_chars:["mixed count_chars(string input [, int mode])","Returns info about what characters are used in input"],crc32:["string crc32(string str)","Calculate the crc32 polynomial of a string"],create_function:["string create_function(string args, string code)","Creates an anonymous function, and returns its name (funny, eh?)"],crypt:["string crypt(string str [, string salt])","Hash a string"],ctype_alnum:["bool ctype_alnum(mixed c)","Checks for alphanumeric character(s)"],ctype_alpha:["bool ctype_alpha(mixed c)","Checks for alphabetic character(s)"],ctype_cntrl:["bool ctype_cntrl(mixed c)","Checks for control character(s)"],ctype_digit:["bool ctype_digit(mixed c)","Checks for numeric character(s)"],ctype_graph:["bool ctype_graph(mixed c)","Checks for any printable character(s) except space"],ctype_lower:["bool ctype_lower(mixed c)","Checks for lowercase character(s)"],ctype_print:["bool ctype_print(mixed c)","Checks for printable character(s)"],ctype_punct:["bool ctype_punct(mixed c)","Checks for any printable character which is not whitespace or an alphanumeric character"],ctype_space:["bool ctype_space(mixed c)","Checks for whitespace character(s)"],ctype_upper:["bool ctype_upper(mixed c)","Checks for uppercase character(s)"],ctype_xdigit:["bool ctype_xdigit(mixed c)","Checks for character(s) representing a hexadecimal digit"],curl_close:["void curl_close(resource ch)","Close a cURL session"],curl_copy_handle:["resource curl_copy_handle(resource ch)","Copy a cURL handle along with all of it's preferences"],curl_errno:["int curl_errno(resource ch)","Return an integer containing the last error number"],curl_error:["string curl_error(resource ch)","Return a string contain the last error for the current session"],curl_exec:["bool curl_exec(resource ch)","Perform a cURL session"],curl_getinfo:["mixed curl_getinfo(resource ch [, int option])","Get information regarding a specific transfer"],curl_init:["resource curl_init([string url])","Initialize a cURL session"],curl_multi_add_handle:["int curl_multi_add_handle(resource mh, resource ch)","Add a normal cURL handle to a cURL multi handle"],curl_multi_close:["void curl_multi_close(resource mh)","Close a set of cURL handles"],curl_multi_exec:["int curl_multi_exec(resource mh, int &still_running)","Run the sub-connections of the current cURL handle"],curl_multi_getcontent:["string curl_multi_getcontent(resource ch)","Return the content of a cURL handle if CURLOPT_RETURNTRANSFER is set"],curl_multi_info_read:["array curl_multi_info_read(resource mh [, long msgs_in_queue])","Get information about the current transfers"],curl_multi_init:["resource curl_multi_init(void)","Returns a new cURL multi handle"],curl_multi_remove_handle:["int curl_multi_remove_handle(resource mh, resource ch)","Remove a multi handle from a set of cURL handles"],curl_multi_select:["int curl_multi_select(resource mh[, double timeout])",'Get all the sockets associated with the cURL extension, which can then be "selected"'],curl_setopt:["bool curl_setopt(resource ch, int option, mixed value)","Set an option for a cURL transfer"],curl_setopt_array:["bool curl_setopt_array(resource ch, array options)","Set an array of option for a cURL transfer"],curl_version:["array curl_version([int version])","Return cURL version information."],current:["mixed current(array array_arg)","Return the element currently pointed to by the internal array pointer"],date:["string date(string format [, long timestamp])","Format a local date/time"],date_add:["DateTime date_add(DateTime object, DateInterval interval)","Adds an interval to the current date in object."],date_create:["DateTime date_create([string time[, DateTimeZone object]])","Returns new DateTime object"],date_create_from_format:["DateTime date_create_from_format(string format, string time[, DateTimeZone object])","Returns new DateTime object formatted according to the specified format"],date_date_set:["DateTime date_date_set(DateTime object, long year, long month, long day)","Sets the date."],date_default_timezone_get:["string date_default_timezone_get()","Gets the default timezone used by all date/time functions in a script"],date_default_timezone_set:["bool date_default_timezone_set(string timezone_identifier)","Sets the default timezone used by all date/time functions in a script"],date_diff:["DateInterval date_diff(DateTime object [, bool absolute])","Returns the difference between two DateTime objects."],date_format:["string date_format(DateTime object, string format)","Returns date formatted according to given format"],date_get_last_errors:["array date_get_last_errors()","Returns the warnings and errors found while parsing a date/time string."],date_interval_create_from_date_string:["DateInterval date_interval_create_from_date_string(string time)","Uses the normal date parsers and sets up a DateInterval from the relative parts of the parsed string"],date_interval_format:["string date_interval_format(DateInterval object, string format)","Formats the interval."],date_isodate_set:["DateTime date_isodate_set(DateTime object, long year, long week[, long day])","Sets the ISO date."],date_modify:["DateTime date_modify(DateTime object, string modify)","Alters the timestamp."],date_offset_get:["long date_offset_get(DateTime object)","Returns the DST offset."],date_parse:["array date_parse(string date)","Returns associative array with detailed info about given date"],date_parse_from_format:["array date_parse_from_format(string format, string date)","Returns associative array with detailed info about given date"],date_sub:["DateTime date_sub(DateTime object, DateInterval interval)","Subtracts an interval to the current date in object."],date_sun_info:["array date_sun_info(long time, float latitude, float longitude)","Returns an array with information about sun set/rise and twilight begin/end"],date_sunrise:["mixed date_sunrise(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]])","Returns time of sunrise for a given day and location"],date_sunset:["mixed date_sunset(mixed time [, int format [, float latitude [, float longitude [, float zenith [, float gmt_offset]]]]])","Returns time of sunset for a given day and location"],date_time_set:["DateTime date_time_set(DateTime object, long hour, long minute[, long second])","Sets the time."],date_timestamp_get:["long date_timestamp_get(DateTime object)","Gets the Unix timestamp."],date_timestamp_set:["DateTime date_timestamp_set(DateTime object, long unixTimestamp)","Sets the date and time based on an Unix timestamp."],date_timezone_get:["DateTimeZone date_timezone_get(DateTime object)","Return new DateTimeZone object relative to give DateTime"],date_timezone_set:["DateTime date_timezone_set(DateTime object, DateTimeZone object)","Sets the timezone for the DateTime object."],datefmt_create:["IntlDateFormatter datefmt_create(string $locale, long date_type, long time_type[, string $timezone_str, long $calendar, string $pattern] )","* Create formatter."],datefmt_format:["string datefmt_format( [mixed]int $args or array $args )","* Format the time value as a string. }}}"],datefmt_get_calendar:["string datefmt_get_calendar( IntlDateFormatter $mf )","* Get formatter calendar."],datefmt_get_datetype:["string datefmt_get_datetype( IntlDateFormatter $mf )","* Get formatter datetype."],datefmt_get_error_code:["int datefmt_get_error_code( IntlDateFormatter $nf )","* Get formatter's last error code."],datefmt_get_error_message:["string datefmt_get_error_message( IntlDateFormatter $coll )","* Get text description for formatter's last error code."],datefmt_get_locale:["string datefmt_get_locale(IntlDateFormatter $mf)","* Get formatter locale."],datefmt_get_pattern:["string datefmt_get_pattern( IntlDateFormatter $mf )","* Get formatter pattern."],datefmt_get_timetype:["string datefmt_get_timetype( IntlDateFormatter $mf )","* Get formatter timetype."],datefmt_get_timezone_id:["string datefmt_get_timezone_id( IntlDateFormatter $mf )","* Get formatter timezone_id."],datefmt_isLenient:["string datefmt_isLenient(IntlDateFormatter $mf)","* Get formatter locale."],datefmt_localtime:["integer datefmt_localtime( IntlDateFormatter $fmt, string $text_to_parse[, int $parse_pos ])","* Parse the string $value to a localtime array }}}"],datefmt_parse:["integer datefmt_parse( IntlDateFormatter $fmt, string $text_to_parse [, int $parse_pos] )","* Parse the string $value starting at parse_pos to a Unix timestamp -int }}}"],datefmt_setLenient:["string datefmt_setLenient(IntlDateFormatter $mf)","* Set formatter lenient."],datefmt_set_calendar:["bool datefmt_set_calendar( IntlDateFormatter $mf, int $calendar )","* Set formatter calendar."],datefmt_set_pattern:["bool datefmt_set_pattern( IntlDateFormatter $mf, string $pattern )","* Set formatter pattern."],datefmt_set_timezone_id:["boolean datefmt_set_timezone_id( IntlDateFormatter $mf,$timezone_id)","* Set formatter timezone_id."],dba_close:["void dba_close(resource handle)","Closes database"],dba_delete:["bool dba_delete(string key, resource handle)","Deletes the entry associated with key If inifile: remove all other key lines"],dba_exists:["bool dba_exists(string key, resource handle)","Checks, if the specified key exists"],dba_fetch:["string dba_fetch(string key, [int skip ,] resource handle)","Fetches the data associated with key"],dba_firstkey:["string dba_firstkey(resource handle)","Resets the internal key pointer and returns the first key"],dba_handlers:["array dba_handlers([bool full_info])","List configured database handlers"],dba_insert:["bool dba_insert(string key, string value, resource handle)","If not inifile: Insert value as key, return false, if key exists already If inifile: Add vakue as key (next instance of key)"],dba_key_split:["array|false dba_key_split(string key)","Splits an inifile key into an array of the form array(0=>group,1=>value_name) but returns false if input is false or null"],dba_list:["array dba_list()","List opened databases"],dba_nextkey:["string dba_nextkey(resource handle)","Returns the next key"],dba_open:["resource dba_open(string path, string mode [, string handlername, string ...])","Opens path using the specified handler in mode"],dba_optimize:["bool dba_optimize(resource handle)","Optimizes (e.g. clean up, vacuum) database"],dba_popen:["resource dba_popen(string path, string mode [, string handlername, string ...])","Opens path using the specified handler in mode persistently"],dba_replace:["bool dba_replace(string key, string value, resource handle)","Inserts value as key, replaces key, if key exists already If inifile: remove all other key lines"],dba_sync:["bool dba_sync(resource handle)","Synchronizes database"],dcgettext:["string dcgettext(string domain_name, string msgid, long category)","Return the translation of msgid for domain_name and category, or msgid unaltered if a translation does not exist"],dcngettext:["string dcngettext (string domain, string msgid1, string msgid2, int n, int category)","Plural version of dcgettext()"],debug_backtrace:["array debug_backtrace([bool provide_object])","Return backtrace as array"],debug_print_backtrace:["void debug_print_backtrace(void) */","ZEND_FUNCTION(debug_print_backtrace) { zend_execute_data *ptr, *skip; int lineno; char *function_name; char *filename; char *class_name = NULL; char *call_type; char *include_filename = NULL; zval *arg_array = NULL; int indent = 0; if (zend_parse_parameters_none() == FAILURE) { return; } ptr = EG(current_execute_data);","PHP_FUNCTION(dom_document_relaxNG_validate_file) { _dom_document_relaxNG_validate(INTERNAL_FUNCTION_PARAM_PASSTHRU, DOM_LOAD_FILE); } /* }}} end dom_document_relaxNG_validate_file"],dom_document_relaxNG_validate_xml:["boolean dom_document_relaxNG_validate_xml(string source); */","PHP_FUNCTION(dom_document_relaxNG_validate_xml) { _dom_document_relaxNG_validate(INTERNAL_FUNCTION_PARAM_PASSTHRU, DOM_LOAD_STRING); } /* }}} end dom_document_relaxNG_validate_xml"],dom_document_rename_node:["DOMNode dom_document_rename_node(node n, string namespaceURI, string qualifiedName);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Document3-renameNode Since: DOM Level 3"],dom_document_save:["int dom_document_save(string file);","Convenience method to save to file"],dom_document_save_html:["string dom_document_save_html();","Convenience method to output as html"],dom_document_save_html_file:["int dom_document_save_html_file(string file);","Convenience method to save to file as html"],dom_document_savexml:["string dom_document_savexml([node n]);","URL: http://www.w3.org/TR/DOM-Level-3-LS/load-save.html#LS-DocumentLS-saveXML Since: DOM Level 3"],dom_document_schema_validate:["boolean dom_document_schema_validate(string source); */","PHP_FUNCTION(dom_document_schema_validate_xml) { _dom_document_schema_validate(INTERNAL_FUNCTION_PARAM_PASSTHRU, DOM_LOAD_STRING); } /* }}} end dom_document_schema_validate"],dom_document_schema_validate_file:["boolean dom_document_schema_validate_file(string filename); */","PHP_FUNCTION(dom_document_schema_validate_file) { _dom_document_schema_validate(INTERNAL_FUNCTION_PARAM_PASSTHRU, DOM_LOAD_FILE); } /* }}} end dom_document_schema_validate_file"],dom_document_validate:["boolean dom_document_validate();","Since: DOM extended"],dom_document_xinclude:["int dom_document_xinclude([int options])","Substitutues xincludes in a DomDocument"],dom_domconfiguration_can_set_parameter:["boolean dom_domconfiguration_can_set_parameter(string name, domuserdata value);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMConfiguration-canSetParameter Since:"],dom_domconfiguration_get_parameter:["domdomuserdata dom_domconfiguration_get_parameter(string name);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMConfiguration-getParameter Since:"],dom_domconfiguration_set_parameter:["dom_void dom_domconfiguration_set_parameter(string name, domuserdata value);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMConfiguration-property Since:"],dom_domerrorhandler_handle_error:["dom_boolean dom_domerrorhandler_handle_error(domerror error);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-ERRORS-DOMErrorHandler-handleError Since:"],dom_domimplementation_create_document:["DOMDocument dom_domimplementation_create_document(string namespaceURI, string qualifiedName, DOMDocumentType doctype);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Level-2-Core-DOM-createDocument Since: DOM Level 2"],dom_domimplementation_create_document_type:["DOMDocumentType dom_domimplementation_create_document_type(string qualifiedName, string publicId, string systemId);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Level-2-Core-DOM-createDocType Since: DOM Level 2"],dom_domimplementation_get_feature:["DOMNode dom_domimplementation_get_feature(string feature, string version);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMImplementation3-getFeature Since: DOM Level 3"],dom_domimplementation_has_feature:["boolean dom_domimplementation_has_feature(string feature, string version);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-5CED94D7 Since:"],dom_domimplementationlist_item:["domdomimplementation dom_domimplementationlist_item(int index);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMImplementationList-item Since:"],dom_domimplementationsource_get_domimplementation:["domdomimplementation dom_domimplementationsource_get_domimplementation(string features);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-getDOMImpl Since:"],dom_domimplementationsource_get_domimplementations:["domimplementationlist dom_domimplementationsource_get_domimplementations(string features);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-getDOMImpls Since:"],dom_domstringlist_item:["domstring dom_domstringlist_item(int index);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#DOMStringList-item Since:"],dom_element_get_attribute:["string dom_element_get_attribute(string name);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-666EE0F9 Since:"],dom_element_get_attribute_node:["DOMAttr dom_element_get_attribute_node(string name);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-217A91B8 Since:"],dom_element_get_attribute_node_ns:["DOMAttr dom_element_get_attribute_node_ns(string namespaceURI, string localName);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElGetAtNodeNS Since: DOM Level 2"],dom_element_get_attribute_ns:["string dom_element_get_attribute_ns(string namespaceURI, string localName);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElGetAttrNS Since: DOM Level 2"],dom_element_get_elements_by_tag_name:["DOMNodeList dom_element_get_elements_by_tag_name(string name);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1938918D Since:"],dom_element_get_elements_by_tag_name_ns:["DOMNodeList dom_element_get_elements_by_tag_name_ns(string namespaceURI, string localName);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-A6C90942 Since: DOM Level 2"],dom_element_has_attribute:["boolean dom_element_has_attribute(string name);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElHasAttr Since: DOM Level 2"],dom_element_has_attribute_ns:["boolean dom_element_has_attribute_ns(string namespaceURI, string localName);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElHasAttrNS Since: DOM Level 2"],dom_element_remove_attribute:["void dom_element_remove_attribute(string name);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-6D6AC0F9 Since:"],dom_element_remove_attribute_node:["DOMAttr dom_element_remove_attribute_node(DOMAttr oldAttr);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-D589198 Since:"],dom_element_remove_attribute_ns:["void dom_element_remove_attribute_ns(string namespaceURI, string localName);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElRemAtNS Since: DOM Level 2"],dom_element_set_attribute:["void dom_element_set_attribute(string name, string value);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-F68F082 Since:"],dom_element_set_attribute_node:["DOMAttr dom_element_set_attribute_node(DOMAttr newAttr);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-887236154 Since:"],dom_element_set_attribute_node_ns:["DOMAttr dom_element_set_attribute_node_ns(DOMAttr newAttr);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElSetAtNodeNS Since: DOM Level 2"],dom_element_set_attribute_ns:["void dom_element_set_attribute_ns(string namespaceURI, string qualifiedName, string value);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElSetAttrNS Since: DOM Level 2"],dom_element_set_id_attribute:["void dom_element_set_id_attribute(string name, boolean isId);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElSetIdAttr Since: DOM Level 3"],dom_element_set_id_attribute_node:["void dom_element_set_id_attribute_node(attr idAttr, boolean isId);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElSetIdAttrNode Since: DOM Level 3"],dom_element_set_id_attribute_ns:["void dom_element_set_id_attribute_ns(string namespaceURI, string localName, boolean isId);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-ElSetIdAttrNS Since: DOM Level 3"],dom_import_simplexml:["somNode dom_import_simplexml(sxeobject node)","Get a simplexml_element object from dom to allow for processing"],dom_namednodemap_get_named_item:["DOMNode dom_namednodemap_get_named_item(string name);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1074577549 Since:"],dom_namednodemap_get_named_item_ns:["DOMNode dom_namednodemap_get_named_item_ns(string namespaceURI, string localName);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-getNamedItemNS Since: DOM Level 2"],dom_namednodemap_item:["DOMNode dom_namednodemap_item(int index);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-349467F9 Since:"],dom_namednodemap_remove_named_item:["DOMNode dom_namednodemap_remove_named_item(string name);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-D58B193 Since:"],dom_namednodemap_remove_named_item_ns:["DOMNode dom_namednodemap_remove_named_item_ns(string namespaceURI, string localName);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-removeNamedItemNS Since: DOM Level 2"],dom_namednodemap_set_named_item:["DOMNode dom_namednodemap_set_named_item(DOMNode arg);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1025163788 Since:"],dom_namednodemap_set_named_item_ns:["DOMNode dom_namednodemap_set_named_item_ns(DOMNode arg);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-setNamedItemNS Since: DOM Level 2"],dom_namelist_get_name:["string dom_namelist_get_name(int index);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#NameList-getName Since:"],dom_namelist_get_namespace_uri:["string dom_namelist_get_namespace_uri(int index);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#NameList-getNamespaceURI Since:"],dom_node_append_child:["DomNode dom_node_append_child(DomNode newChild);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-184E7107 Since:"],dom_node_clone_node:["DomNode dom_node_clone_node(boolean deep);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-3A0ED0A4 Since:"],dom_node_compare_document_position:["short dom_node_compare_document_position(DomNode other);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-compareDocumentPosition Since: DOM Level 3"],dom_node_get_feature:["DomNode dom_node_get_feature(string feature, string version);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-getFeature Since: DOM Level 3"],dom_node_get_user_data:["mixed dom_node_get_user_data(string key);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-getUserData Since: DOM Level 3"],dom_node_has_attributes:["boolean dom_node_has_attributes();","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-NodeHasAttrs Since: DOM Level 2"],dom_node_has_child_nodes:["boolean dom_node_has_child_nodes();","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-810594187 Since:"],dom_node_insert_before:["domnode dom_node_insert_before(DomNode newChild, DomNode refChild);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-952280727 Since:"],dom_node_is_default_namespace:["boolean dom_node_is_default_namespace(string namespaceURI);","URL: http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-isDefaultNamespace Since: DOM Level 3"],dom_node_is_equal_node:["boolean dom_node_is_equal_node(DomNode arg);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-isEqualNode Since: DOM Level 3"],dom_node_is_same_node:["boolean dom_node_is_same_node(DomNode other);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-isSameNode Since: DOM Level 3"],dom_node_is_supported:["boolean dom_node_is_supported(string feature, string version);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Level-2-Core-Node-supports Since: DOM Level 2"],dom_node_lookup_namespace_uri:["string dom_node_lookup_namespace_uri(string prefix);","URL: http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespaceURI Since: DOM Level 3"],dom_node_lookup_prefix:["string dom_node_lookup_prefix(string namespaceURI);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-lookupNamespacePrefix Since: DOM Level 3"],dom_node_normalize:["void dom_node_normalize();","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-normalize Since:"],dom_node_remove_child:["DomNode dom_node_remove_child(DomNode oldChild);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-1734834066 Since:"],dom_node_replace_child:["DomNode dom_node_replace_child(DomNode newChild, DomNode oldChild);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-785887307 Since:"],dom_node_set_user_data:["mixed dom_node_set_user_data(string key, mixed data, userdatahandler handler);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#Node3-setUserData Since: DOM Level 3"],dom_nodelist_item:["DOMNode dom_nodelist_item(int index);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-844377136 Since:"],dom_string_extend_find_offset16:["int dom_string_extend_find_offset16(int offset32);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#i18n-methods-StringExtend-findOffset16 Since:"],dom_string_extend_find_offset32:["int dom_string_extend_find_offset32(int offset16);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#i18n-methods-StringExtend-findOffset32 Since:"],dom_text_is_whitespace_in_element_content:["boolean dom_text_is_whitespace_in_element_content();","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Text3-isWhitespaceInElementContent Since: DOM Level 3"],dom_text_replace_whole_text:["DOMText dom_text_replace_whole_text(string content);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-Text3-replaceWholeText Since: DOM Level 3"],dom_text_split_text:["DOMText dom_text_split_text(int offset);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#core-ID-38853C1D Since:"],dom_userdatahandler_handle:["dom_void dom_userdatahandler_handle(short operation, string key, domobject data, node src, node dst);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html#ID-handleUserDataEvent Since:"],dom_xpath_evaluate:["mixed dom_xpath_evaluate(string expr [,DOMNode context]); */","PHP_FUNCTION(dom_xpath_evaluate) { php_xpath_eval(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_DOM_XPATH_EVALUATE); } /* }}} end dom_xpath_evaluate"],dom_xpath_query:["DOMNodeList dom_xpath_query(string expr [,DOMNode context]); */","PHP_FUNCTION(dom_xpath_query) { php_xpath_eval(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_DOM_XPATH_QUERY); } /* }}} end dom_xpath_query"],dom_xpath_register_ns:["boolean dom_xpath_register_ns(string prefix, string uri); */",'PHP_FUNCTION(dom_xpath_register_ns) { zval *id; xmlXPathContextPtr ctxp; int prefix_len, ns_uri_len; dom_xpath_object *intern; unsigned char *prefix, *ns_uri; if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oss", &id, dom_xpath_class_entry, &prefix, &prefix_len, &ns_uri, &ns_uri_len) == FAILURE) { return; } intern = (dom_xpath_object *)zend_object_store_get_object(id TSRMLS_CC); ctxp = (xmlXPathContextPtr) intern->ptr; if (ctxp == NULL) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid XPath Context"); RETURN_FALSE; } if (xmlXPathRegisterNs(ctxp, prefix, ns_uri) != 0) { RETURN_FALSE } RETURN_TRUE; } /* }}}'],dom_xpath_register_php_functions:["void dom_xpath_register_php_functions() */",'PHP_FUNCTION(dom_xpath_register_php_functions) { zval *id; dom_xpath_object *intern; zval *array_value, **entry, *new_string; int name_len = 0; char *name; DOM_GET_THIS(id); if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "a", &array_value) == SUCCESS) { intern = (dom_xpath_object *)zend_object_store_get_object(id TSRMLS_CC); zend_hash_internal_pointer_reset(Z_ARRVAL_P(array_value)); while (zend_hash_get_current_data(Z_ARRVAL_P(array_value), (void **)&entry) == SUCCESS) { SEPARATE_ZVAL(entry); convert_to_string_ex(entry); MAKE_STD_ZVAL(new_string); ZVAL_LONG(new_string,1); zend_hash_update(intern->registered_phpfunctions, Z_STRVAL_PP(entry), Z_STRLEN_PP(entry) + 1, &new_string, sizeof(zval*), NULL); zend_hash_move_forward(Z_ARRVAL_P(array_value)); } intern->registerPhpFunctions = 2; RETURN_TRUE; } else if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s", &name, &name_len) == SUCCESS) { intern = (dom_xpath_object *)zend_object_store_get_object(id TSRMLS_CC); MAKE_STD_ZVAL(new_string); ZVAL_LONG(new_string,1); zend_hash_update(intern->registered_phpfunctions, name, name_len + 1, &new_string, sizeof(zval*), NULL); intern->registerPhpFunctions = 2; } else { intern = (dom_xpath_object *)zend_object_store_get_object(id TSRMLS_CC); intern->registerPhpFunctions = 1; } } /* }}} end dom_xpath_register_php_functions'],each:["array each(array arr)","Return the currently pointed key..value pair in the passed array, and advance the pointer to the next element"],easter_date:["int easter_date([int year])","Return the timestamp of midnight on Easter of a given year (defaults to current year)"],easter_days:["int easter_days([int year, [int method]])","Return the number of days after March 21 that Easter falls on for a given year (defaults to current year)"],echo:["void echo(string arg1 [, string ...])","Output one or more strings"],empty:["bool empty( mixed var )","Determine whether a variable is empty"],enchant_broker_describe:["array enchant_broker_describe(resource broker)","Enumerates the Enchant providers and tells you some rudimentary information about them. The same info is provided through phpinfo()"],enchant_broker_dict_exists:["bool enchant_broker_dict_exists(resource broker, string tag)","Wether a dictionary exists or not. Using non-empty tag"],enchant_broker_free:["boolean enchant_broker_free(resource broker)","Destroys the broker object and its dictionnaries"],enchant_broker_free_dict:["resource enchant_broker_free_dict(resource dict)","Free the dictionary resource"],enchant_broker_get_dict_path:["string enchant_broker_get_dict_path(resource broker, int dict_type)","Get the directory path for a given backend, works with ispell and myspell"],enchant_broker_get_error:["string enchant_broker_get_error(resource broker)","Returns the last error of the broker"],enchant_broker_init:["resource enchant_broker_init()","create a new broker object capable of requesting"],enchant_broker_list_dicts:["string enchant_broker_list_dicts(resource broker)","Lists the dictionaries available for the given broker"],enchant_broker_request_dict:["resource enchant_broker_request_dict(resource broker, string tag)",'create a new dictionary using tag, the non-empty language tag you wish to request a dictionary for ("en_US", "de_DE", ...)'],enchant_broker_request_pwl_dict:["resource enchant_broker_request_pwl_dict(resource broker, string filename)","creates a dictionary using a PWL file. A PWL file is personal word file one word per line. It must exist before the call."],enchant_broker_set_dict_path:["bool enchant_broker_set_dict_path(resource broker, int dict_type, string value)","Set the directory path for a given backend, works with ispell and myspell"],enchant_broker_set_ordering:["bool enchant_broker_set_ordering(resource broker, string tag, string ordering)","Declares a preference of dictionaries to use for the language described/referred to by 'tag'. The ordering is a comma delimited list of provider names. As a special exception, the \"*\" tag can be used as a language tag to declare a default ordering for any language that does not explictly declare an ordering."],enchant_dict_add_to_personal:["void enchant_dict_add_to_personal(resource dict, string word)","add 'word' to personal word list"],enchant_dict_add_to_session:["void enchant_dict_add_to_session(resource dict, string word)","add 'word' to this spell-checking session"],enchant_dict_check:["bool enchant_dict_check(resource dict, string word)","If the word is correctly spelled return true, otherwise return false"],enchant_dict_describe:["array enchant_dict_describe(resource dict)","Describes an individual dictionary 'dict'"],enchant_dict_get_error:["string enchant_dict_get_error(resource dict)","Returns the last error of the current spelling-session"],enchant_dict_is_in_session:["bool enchant_dict_is_in_session(resource dict, string word)","whether or not 'word' exists in this spelling-session"],enchant_dict_quick_check:["bool enchant_dict_quick_check(resource dict, string word [, array &suggestions])","If the word is correctly spelled return true, otherwise return false, if suggestions variable is provided, fill it with spelling alternatives."],enchant_dict_store_replacement:["void enchant_dict_store_replacement(resource dict, string mis, string cor)","add a correction for 'mis' using 'cor'. Notes that you replaced @mis with @cor, so it's possibly more likely that future occurrences of @mis will be replaced with @cor. So it might bump @cor up in the suggestion list."],enchant_dict_suggest:["array enchant_dict_suggest(resource dict, string word)","Will return a list of values if any of those pre-conditions are not met."],end:["mixed end(array array_arg)","Advances array argument's internal pointer to the last element and return it"],ereg:["int ereg(string pattern, string string [, array registers])","Regular expression match"],ereg_replace:["string ereg_replace(string pattern, string replacement, string string)","Replace regular expression"],eregi:["int eregi(string pattern, string string [, array registers])","Case-insensitive regular expression match"],eregi_replace:["string eregi_replace(string pattern, string replacement, string string)","Case insensitive replace regular expression"],error_get_last:["array error_get_last()","Get the last occurred error as associative array. Returns NULL if there hasn't been an error yet."],error_log:["bool error_log(string message [, int message_type [, string destination [, string extra_headers]]])","Send an error message somewhere"],error_reporting:["int error_reporting([int new_error_level])","Return the current error_reporting level, and if an argument was passed - change to the new level"],escapeshellarg:["string escapeshellarg(string arg)","Quote and escape an argument for use in a shell command"],escapeshellcmd:["string escapeshellcmd(string command)","Escape shell metacharacters"],exec:["string exec(string command [, array &output [, int &return_value]])","Execute an external program"],exif_imagetype:["int exif_imagetype(string imagefile)","Get the type of an image"],exif_read_data:["array exif_read_data(string filename [, sections_needed [, sub_arrays[, read_thumbnail]]])","Reads header data from the JPEG/TIFF image filename and optionally reads the internal thumbnails"],exif_tagname:["string exif_tagname(index)","Get headername for index or false if not defined"],exif_thumbnail:["string exif_thumbnail(string filename [, &width, &height [, &imagetype]])","Reads the embedded thumbnail"],exit:["void exit([mixed status])","Output a message and terminate the current script"],exp:["float exp(float number)","Returns e raised to the power of the number"],explode:["array explode(string separator, string str [, int limit])","Splits a string on string separator and return array of components. If limit is positive only limit number of components is returned. If limit is negative all components except the last abs(limit) are returned."],expm1:["float expm1(float number)","Returns exp(number) - 1, computed in a way that accurate even when the value of number is close to zero"],extension_loaded:["bool extension_loaded(string extension_name)","Returns true if the named extension is loaded"],extract:["int extract(array var_array [, int extract_type [, string prefix]])","Imports variables into symbol table from an array"],ezmlm_hash:["int ezmlm_hash(string addr)","Calculate EZMLM list hash value."],fclose:["bool fclose(resource fp)","Close an open file pointer"],feof:["bool feof(resource fp)","Test for end-of-file on a file pointer"],fflush:["bool fflush(resource fp)","Flushes output"],fgetc:["string fgetc(resource fp)","Get a character from file pointer"],fgetcsv:["array fgetcsv(resource fp [,int length [, string delimiter [, string enclosure [, string escape]]]])","Get line from file pointer and parse for CSV fields"],fgets:["string fgets(resource fp[, int length])","Get a line from file pointer"],fgetss:["string fgetss(resource fp [, int length [, string allowable_tags]])","Get a line from file pointer and strip HTML tags"],file:["array file(string filename [, int flags[, resource context]])","Read entire file into an array"],file_exists:["bool file_exists(string filename)","Returns true if filename exists"],file_get_contents:["string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])","Read the entire file into a string"],file_put_contents:["int file_put_contents(string file, mixed data [, int flags [, resource context]])","Write/Create a file with contents data and return the number of bytes written"],fileatime:["int fileatime(string filename)","Get last access time of file"],filectime:["int filectime(string filename)","Get inode modification time of file"],filegroup:["int filegroup(string filename)","Get file group"],fileinode:["int fileinode(string filename)","Get file inode"],filemtime:["int filemtime(string filename)","Get last modification time of file"],fileowner:["int fileowner(string filename)","Get file owner"],fileperms:["int fileperms(string filename)","Get file permissions"],filesize:["int filesize(string filename)","Get file size"],filetype:["string filetype(string filename)","Get file type"],filter_has_var:["mixed filter_has_var(constant type, string variable_name)","* Returns true if the variable with the name 'name' exists in source."],filter_input:["mixed filter_input(constant type, string variable_name [, long filter [, mixed options]])","* Returns the filtered variable 'name'* from source `type`."],filter_input_array:["mixed filter_input_array(constant type, [, mixed options]])","* Returns an array with all arguments defined in 'definition'."],filter_var:["mixed filter_var(mixed variable [, long filter [, mixed options]])","* Returns the filtered version of the vriable."],filter_var_array:["mixed filter_var_array(array data, [, mixed options]])","* Returns an array with all arguments defined in 'definition'."],finfo_buffer:["string finfo_buffer(resource finfo, char *string [, int options [, resource context]])","Return infromation about a string buffer."],finfo_close:["resource finfo_close(resource finfo)","Close fileinfo resource."],finfo_file:["string finfo_file(resource finfo, char *file_name [, int options [, resource context]])","Return information about a file."],finfo_open:["resource finfo_open([int options [, string arg]])","Create a new fileinfo resource."],finfo_set_flags:["bool finfo_set_flags(resource finfo, int options)","Set libmagic configuration options."],floatval:["float floatval(mixed var)","Get the float value of a variable"],flock:["bool flock(resource fp, int operation [, int &wouldblock])","Portable file locking"],floor:["float floor(float number)","Returns the next lowest integer value from the number"],flush:["void flush(void)","Flush the output buffer"],fmod:["float fmod(float x, float y)","Returns the remainder of dividing x by y as a float"],fnmatch:["bool fnmatch(string pattern, string filename [, int flags])","Match filename against pattern"],fopen:["resource fopen(string filename, string mode [, bool use_include_path [, resource context]])","Open a file or a URL and return a file pointer"],forward_static_call:["mixed forward_static_call(mixed function_name [, mixed parmeter] [, mixed ...])","Call a user function which is the first parameter"],fpassthru:["int fpassthru(resource fp)","Output all remaining data from a file pointer"],fprintf:["int fprintf(resource stream, string format [, mixed arg1 [, mixed ...]])","Output a formatted string into a stream"],fputcsv:["int fputcsv(resource fp, array fields [, string delimiter [, string enclosure]])","Format line as CSV and write to file pointer"],fread:["string fread(resource fp, int length)","Binary-safe file read"],frenchtojd:["int frenchtojd(int month, int day, int year)","Converts a french republic calendar date to julian day count"],fscanf:["mixed fscanf(resource stream, string format [, string ...])","Implements a mostly ANSI compatible fscanf()"],fseek:["int fseek(resource fp, int offset [, int whence])","Seek on a file pointer"],fsockopen:["resource fsockopen(string hostname, int port [, int errno [, string errstr [, float timeout]]])","Open Internet or Unix domain socket connection"],fstat:["array fstat(resource fp)","Stat() on a filehandle"],ftell:["int ftell(resource fp)","Get file pointer's read/write position"],ftok:["int ftok(string pathname, string proj)","Convert a pathname and a project identifier to a System V IPC key"],ftp_alloc:["bool ftp_alloc(resource stream, int size[, &response])","Attempt to allocate space on the remote FTP server"],ftp_cdup:["bool ftp_cdup(resource stream)","Changes to the parent directory"],ftp_chdir:["bool ftp_chdir(resource stream, string directory)","Changes directories"],ftp_chmod:["int ftp_chmod(resource stream, int mode, string filename)","Sets permissions on a file"],ftp_close:["bool ftp_close(resource stream)","Closes the FTP stream"],ftp_connect:["resource ftp_connect(string host [, int port [, int timeout]])","Opens a FTP stream"],ftp_delete:["bool ftp_delete(resource stream, string file)","Deletes a file"],ftp_exec:["bool ftp_exec(resource stream, string command)","Requests execution of a program on the FTP server"],ftp_fget:["bool ftp_fget(resource stream, resource fp, string remote_file, int mode[, int resumepos])","Retrieves a file from the FTP server and writes it to an open file"],ftp_fput:["bool ftp_fput(resource stream, string remote_file, resource fp, int mode[, int startpos])","Stores a file from an open file to the FTP server"],ftp_get:["bool ftp_get(resource stream, string local_file, string remote_file, int mode[, int resume_pos])","Retrieves a file from the FTP server and writes it to a local file"],ftp_get_option:["mixed ftp_get_option(resource stream, int option)","Gets an FTP option"],ftp_login:["bool ftp_login(resource stream, string username, string password)","Logs into the FTP server"],ftp_mdtm:["int ftp_mdtm(resource stream, string filename)","Returns the last modification time of the file, or -1 on error"],ftp_mkdir:["string ftp_mkdir(resource stream, string directory)","Creates a directory and returns the absolute path for the new directory or false on error"],ftp_nb_continue:["int ftp_nb_continue(resource stream)","Continues retrieving/sending a file nbronously"],ftp_nb_fget:["int ftp_nb_fget(resource stream, resource fp, string remote_file, int mode[, int resumepos])","Retrieves a file from the FTP server asynchronly and writes it to an open file"],ftp_nb_fput:["int ftp_nb_fput(resource stream, string remote_file, resource fp, int mode[, int startpos])","Stores a file from an open file to the FTP server nbronly"],ftp_nb_get:["int ftp_nb_get(resource stream, string local_file, string remote_file, int mode[, int resume_pos])","Retrieves a file from the FTP server nbhronly and writes it to a local file"],ftp_nb_put:["int ftp_nb_put(resource stream, string remote_file, string local_file, int mode[, int startpos])","Stores a file on the FTP server"],ftp_nlist:["array ftp_nlist(resource stream, string directory)","Returns an array of filenames in the given directory"],ftp_pasv:["bool ftp_pasv(resource stream, bool pasv)","Turns passive mode on or off"],ftp_put:["bool ftp_put(resource stream, string remote_file, string local_file, int mode[, int startpos])","Stores a file on the FTP server"],ftp_pwd:["string ftp_pwd(resource stream)","Returns the present working directory"],ftp_raw:["array ftp_raw(resource stream, string command)","Sends a literal command to the FTP server"],ftp_rawlist:["array ftp_rawlist(resource stream, string directory [, bool recursive])","Returns a detailed listing of a directory as an array of output lines"],ftp_rename:["bool ftp_rename(resource stream, string src, string dest)","Renames the given file to a new path"],ftp_rmdir:["bool ftp_rmdir(resource stream, string directory)","Removes a directory"],ftp_set_option:["bool ftp_set_option(resource stream, int option, mixed value)","Sets an FTP option"],ftp_site:["bool ftp_site(resource stream, string cmd)","Sends a SITE command to the server"],ftp_size:["int ftp_size(resource stream, string filename)","Returns the size of the file, or -1 on error"],ftp_ssl_connect:["resource ftp_ssl_connect(string host [, int port [, int timeout]])","Opens a FTP-SSL stream"],ftp_systype:["string ftp_systype(resource stream)","Returns the system type identifier"],ftruncate:["bool ftruncate(resource fp, int size)","Truncate file to 'size' length"],func_get_arg:["mixed func_get_arg(int arg_num)","Get the $arg_num'th argument that was passed to the function"],func_get_args:["array func_get_args()","Get an array of the arguments that were passed to the function"],func_num_args:["int func_num_args(void)","Get the number of arguments that were passed to the function"],function_exists:["bool function_exists(string function_name)","Checks if the function exists"],fwrite:["int fwrite(resource fp, string str [, int length])","Binary-safe file write"],gc_collect_cycles:["int gc_collect_cycles(void)","Forces collection of any existing garbage cycles. Returns number of freed zvals"],gc_disable:["void gc_disable(void)","Deactivates the circular reference collector"],gc_enable:["void gc_enable(void)","Activates the circular reference collector"],gc_enabled:["void gc_enabled(void)","Returns status of the circular reference collector"],gd_info:["array gd_info()",""],getKeywords:["static array getKeywords(string $locale) {","* return an associative array containing keyword-value * pairs for this locale. The keys are keys to the array (doh!) * }}}"],get_browser:["mixed get_browser([string browser_name [, bool return_array]])","Get information about the capabilities of a browser. If browser_name is omitted or null, HTTP_USER_AGENT is used. Returns an object by default; if return_array is true, returns an array."],get_called_class:["string get_called_class()",'Retrieves the "Late Static Binding" class name'],get_cfg_var:["mixed get_cfg_var(string option_name)","Get the value of a PHP configuration option"],get_class:["string get_class([object object])","Retrieves the class name"],get_class_methods:["array get_class_methods(mixed class)","Returns an array of method names for class or class instance."],get_class_vars:["array get_class_vars(string class_name)","Returns an array of default properties of the class."],get_current_user:["string get_current_user(void)","Get the name of the owner of the current PHP script"],get_declared_classes:["array get_declared_classes()","Returns an array of all declared classes."],get_declared_interfaces:["array get_declared_interfaces()","Returns an array of all declared interfaces."],get_defined_constants:["array get_defined_constants([bool categorize])","Return an array containing the names and values of all defined constants"],get_defined_functions:["array get_defined_functions(void)","Returns an array of all defined functions"],get_defined_vars:["array get_defined_vars(void)","Returns an associative array of names and values of all currently defined variable names (variables in the current scope)"],get_display_language:["static string get_display_language($locale[, $in_locale = null])","* gets the language for the $locale in $in_locale or default_locale"],get_display_name:["static string get_display_name($locale[, $in_locale = null])","* gets the name for the $locale in $in_locale or default_locale"],get_display_region:["static string get_display_region($locale, $in_locale = null)","* gets the region for the $locale in $in_locale or default_locale"],get_display_script:["static string get_display_script($locale, $in_locale = null)","* gets the script for the $locale in $in_locale or default_locale"],get_extension_funcs:["array get_extension_funcs(string extension_name)","Returns an array with the names of functions belonging to the named extension"],get_headers:["array get_headers(string url[, int format])","fetches all the headers sent by the server in response to a HTTP request"],get_html_translation_table:["array get_html_translation_table([int table [, int quote_style]])","Returns the internal translation table used by htmlspecialchars and htmlentities"],get_include_path:["string get_include_path()","Get the current include_path configuration option"],get_included_files:["array get_included_files(void)","Returns an array with the file names that were include_once()'d"],get_loaded_extensions:["array get_loaded_extensions([bool zend_extensions])","Return an array containing names of loaded extensions"],get_magic_quotes_gpc:["int get_magic_quotes_gpc(void)","Get the current active configuration setting of magic_quotes_gpc"],get_magic_quotes_runtime:["int get_magic_quotes_runtime(void)","Get the current active configuration setting of magic_quotes_runtime"],get_meta_tags:["array get_meta_tags(string filename [, bool use_include_path])","Extracts all meta tag content attributes from a file and returns an array"],get_object_vars:["array get_object_vars(object obj)","Returns an array of object properties"],get_parent_class:["string get_parent_class([mixed object])","Retrieves the parent class name for object or class or current scope."],get_resource_type:["string get_resource_type(resource res)","Get the resource type name for a given resource"],getallheaders:["array getallheaders(void)",""],getcwd:["mixed getcwd(void)","Gets the current directory"],getdate:["array getdate([int timestamp])","Get date/time information"],getenv:["string getenv(string varname)","Get the value of an environment variable"],gethostbyaddr:["string gethostbyaddr(string ip_address)","Get the Internet host name corresponding to a given IP address"],gethostbyname:["string gethostbyname(string hostname)","Get the IP address corresponding to a given Internet host name"],gethostbynamel:["array gethostbynamel(string hostname)","Return a list of IP addresses that a given hostname resolves to."],gethostname:["string gethostname()","Get the host name of the current machine"],getimagesize:["array getimagesize(string imagefile [, array info])","Get the size of an image as 4-element array"],getlastmod:["int getlastmod(void)","Get time of last page modification"],getmygid:["int getmygid(void)","Get PHP script owner's GID"],getmyinode:["int getmyinode(void)","Get the inode of the current script being parsed"],getmypid:["int getmypid(void)","Get current process ID"],getmyuid:["int getmyuid(void)","Get PHP script owner's UID"],getopt:["array getopt(string options [, array longopts])","Get options from the command line argument list"],getprotobyname:["int getprotobyname(string name)","Returns protocol number associated with name as per /etc/protocols"],getprotobynumber:["string getprotobynumber(int proto)","Returns protocol name associated with protocol number proto"],getrandmax:["int getrandmax(void)","Returns the maximum value a random number can have"],getrusage:["array getrusage([int who])","Returns an array of usage statistics"],getservbyname:["int getservbyname(string service, string protocol)",'Returns port associated with service. Protocol must be "tcp" or "udp"'],getservbyport:["string getservbyport(int port, string protocol)",'Returns service name associated with port. Protocol must be "tcp" or "udp"'],gettext:["string gettext(string msgid)","Return the translation of msgid for the current domain, or msgid unaltered if a translation does not exist"],gettimeofday:["array gettimeofday([bool get_as_float])","Returns the current time as array"],gettype:["string gettype(mixed var)","Returns the type of the variable"],glob:["array glob(string pattern [, int flags])","Find pathnames matching a pattern"],gmdate:["string gmdate(string format [, long timestamp])","Format a GMT date/time"],gmmktime:["int gmmktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]])","Get UNIX timestamp for a GMT date"],gmp_abs:["resource gmp_abs(resource a)","Calculates absolute value"],gmp_add:["resource gmp_add(resource a, resource b)","Add a and b"],gmp_and:["resource gmp_and(resource a, resource b)","Calculates logical AND of a and b"],gmp_clrbit:["void gmp_clrbit(resource &a, int index)","Clears bit in a"],gmp_cmp:["int gmp_cmp(resource a, resource b)","Compares two numbers"],gmp_com:["resource gmp_com(resource a)","Calculates one's complement of a"],gmp_div_q:["resource gmp_div_q(resource a, resource b [, int round])","Divide a by b, returns quotient only"],gmp_div_qr:["array gmp_div_qr(resource a, resource b [, int round])","Divide a by b, returns quotient and reminder"],gmp_div_r:["resource gmp_div_r(resource a, resource b [, int round])","Divide a by b, returns reminder only"],gmp_divexact:["resource gmp_divexact(resource a, resource b)","Divide a by b using exact division algorithm"],gmp_fact:["resource gmp_fact(int a)","Calculates factorial function"],gmp_gcd:["resource gmp_gcd(resource a, resource b)","Computes greatest common denominator (gcd) of a and b"],gmp_gcdext:["array gmp_gcdext(resource a, resource b)","Computes G, S, and T, such that AS + BT = G = `gcd' (A, B)"],gmp_hamdist:["int gmp_hamdist(resource a, resource b)","Calculates hamming distance between a and b"],gmp_init:["resource gmp_init(mixed number [, int base])","Initializes GMP number"],gmp_intval:["int gmp_intval(resource gmpnumber)","Gets signed long value of GMP number"],gmp_invert:["resource gmp_invert(resource a, resource b)","Computes the inverse of a modulo b"],gmp_jacobi:["int gmp_jacobi(resource a, resource b)","Computes Jacobi symbol"],gmp_legendre:["int gmp_legendre(resource a, resource b)","Computes Legendre symbol"],gmp_mod:["resource gmp_mod(resource a, resource b)","Computes a modulo b"],gmp_mul:["resource gmp_mul(resource a, resource b)","Multiply a and b"],gmp_neg:["resource gmp_neg(resource a)","Negates a number"],gmp_nextprime:["resource gmp_nextprime(resource a)","Finds next prime of a"],gmp_or:["resource gmp_or(resource a, resource b)","Calculates logical OR of a and b"],gmp_perfect_square:["bool gmp_perfect_square(resource a)","Checks if a is an exact square"],gmp_popcount:["int gmp_popcount(resource a)","Calculates the population count of a"],gmp_pow:["resource gmp_pow(resource base, int exp)","Raise base to power exp"],gmp_powm:["resource gmp_powm(resource base, resource exp, resource mod)","Raise base to power exp and take result modulo mod"],gmp_prob_prime:["int gmp_prob_prime(resource a[, int reps])",'Checks if a is "probably prime"'],gmp_random:["resource gmp_random([int limiter])","Gets random number"],gmp_scan0:["int gmp_scan0(resource a, int start)","Finds first zero bit"],gmp_scan1:["int gmp_scan1(resource a, int start)","Finds first non-zero bit"],gmp_setbit:["void gmp_setbit(resource &a, int index[, bool set_clear])","Sets or clear bit in a"],gmp_sign:["int gmp_sign(resource a)","Gets the sign of the number"],gmp_sqrt:["resource gmp_sqrt(resource a)","Takes integer part of square root of a"],gmp_sqrtrem:["array gmp_sqrtrem(resource a)","Square root with remainder"],gmp_strval:["string gmp_strval(resource gmpnumber [, int base])","Gets string representation of GMP number"],gmp_sub:["resource gmp_sub(resource a, resource b)","Subtract b from a"],gmp_testbit:["bool gmp_testbit(resource a, int index)","Tests if bit is set in a"],gmp_xor:["resource gmp_xor(resource a, resource b)","Calculates logical exclusive OR of a and b"],gmstrftime:["string gmstrftime(string format [, int timestamp])","Format a GMT/UCT time/date according to locale settings"],grapheme_extract:["string grapheme_extract(string str, int size[, int extract_type[, int start[, int next]]])","Function to extract a sequence of default grapheme clusters"],grapheme_stripos:["int grapheme_stripos(string haystack, string needle [, int offset ])","Find position of first occurrence of a string within another, ignoring case differences"],grapheme_stristr:["string grapheme_stristr(string haystack, string needle[, bool part])","Finds first occurrence of a string within another"],grapheme_strlen:["int grapheme_strlen(string str)","Get number of graphemes in a string"],grapheme_strpos:["int grapheme_strpos(string haystack, string needle [, int offset ])","Find position of first occurrence of a string within another"],grapheme_strripos:["int grapheme_strripos(string haystack, string needle [, int offset])","Find position of last occurrence of a string within another, ignoring case"],grapheme_strrpos:["int grapheme_strrpos(string haystack, string needle [, int offset])","Find position of last occurrence of a string within another"],grapheme_strstr:["string grapheme_strstr(string haystack, string needle[, bool part])","Finds first occurrence of a string within another"],grapheme_substr:["string grapheme_substr(string str, int start [, int length])","Returns part of a string"],gregoriantojd:["int gregoriantojd(int month, int day, int year)","Converts a gregorian calendar date to julian day count"],gzcompress:["string gzcompress(string data [, int level])","Gzip-compress a string"],gzdeflate:["string gzdeflate(string data [, int level])","Gzip-compress a string"],gzencode:["string gzencode(string data [, int level [, int encoding_mode]])","GZ encode a string"],gzfile:["array gzfile(string filename [, int use_include_path])","Read und uncompress entire .gz-file into an array"],gzinflate:["string gzinflate(string data [, int length])","Unzip a gzip-compressed string"],gzopen:["resource gzopen(string filename, string mode [, int use_include_path])","Open a .gz-file and return a .gz-file pointer"],gzuncompress:["string gzuncompress(string data [, int length])","Unzip a gzip-compressed string"],hash:["string hash(string algo, string data[, bool raw_output = false])","Generate a hash of a given input string Returns lowercase hexits by default"],hash_algos:["array hash_algos(void)","Return a list of registered hashing algorithms"],hash_copy:["resource hash_copy(resource context)","Copy hash resource"],hash_file:["string hash_file(string algo, string filename[, bool raw_output = false])","Generate a hash of a given file Returns lowercase hexits by default"],hash_final:["string hash_final(resource context[, bool raw_output=false])","Output resulting digest"],hash_hmac:["string hash_hmac(string algo, string data, string key[, bool raw_output = false])","Generate a hash of a given input string with a key using HMAC Returns lowercase hexits by default"],hash_hmac_file:["string hash_hmac_file(string algo, string filename, string key[, bool raw_output = false])","Generate a hash of a given file with a key using HMAC Returns lowercase hexits by default"],hash_init:["resource hash_init(string algo[, int options, string key])","Initialize a hashing context"],hash_update:["bool hash_update(resource context, string data)","Pump data into the hashing algorithm"],hash_update_file:["bool hash_update_file(resource context, string filename[, resource context])","Pump data into the hashing algorithm from a file"],hash_update_stream:["int hash_update_stream(resource context, resource handle[, integer length])","Pump data into the hashing algorithm from an open stream"],header:["void header(string header [, bool replace, [int http_response_code]])","Sends a raw HTTP header"],header_remove:["void header_remove([string name])","Removes an HTTP header previously set using header()"],headers_list:["array headers_list(void)","Return list of headers to be sent / already sent"],headers_sent:["bool headers_sent([string &$file [, int &$line]])","Returns true if headers have already been sent, false otherwise"],hebrev:["string hebrev(string str [, int max_chars_per_line])","Converts logical Hebrew text to visual text"],hebrevc:["string hebrevc(string str [, int max_chars_per_line])","Converts logical Hebrew text to visual text with newline conversion"],hexdec:["int hexdec(string hexadecimal_number)","Returns the decimal equivalent of the hexadecimal number"],highlight_file:["bool highlight_file(string file_name [, bool return] )","Syntax highlight a source file"],highlight_string:["bool highlight_string(string string [, bool return] )","Syntax highlight a string or optionally return it"],html_entity_decode:["string html_entity_decode(string string [, int quote_style][, string charset])","Convert all HTML entities to their applicable characters"],htmlentities:["string htmlentities(string string [, int quote_style[, string charset[, bool double_encode]]])","Convert all applicable characters to HTML entities"],htmlspecialchars:["string htmlspecialchars(string string [, int quote_style[, string charset[, bool double_encode]]])","Convert special characters to HTML entities"],htmlspecialchars_decode:["string htmlspecialchars_decode(string string [, int quote_style])","Convert special HTML entities back to characters"],http_build_query:["string http_build_query(mixed formdata [, string prefix [, string arg_separator]])","Generates a form-encoded query string from an associative array or object."],hypot:["float hypot(float num1, float num2)","Returns sqrt(num1*num1 + num2*num2)"],ibase_add_user:["bool ibase_add_user(resource service_handle, string user_name, string password [, string first_name [, string middle_name [, string last_name]]])","Add a user to security database"],ibase_affected_rows:["int ibase_affected_rows( [ resource link_identifier ] )","Returns the number of rows affected by the previous INSERT, UPDATE or DELETE statement"],ibase_backup:["mixed ibase_backup(resource service_handle, string source_db, string dest_file [, int options [, bool verbose]])","Initiates a backup task in the service manager and returns immediately"],ibase_blob_add:["bool ibase_blob_add(resource blob_handle, string data)","Add data into created blob"],ibase_blob_cancel:["bool ibase_blob_cancel(resource blob_handle)","Cancel creating blob"],ibase_blob_close:["string ibase_blob_close(resource blob_handle)","Close blob"],ibase_blob_create:["resource ibase_blob_create([resource link_identifier])","Create blob for adding data"],ibase_blob_echo:["bool ibase_blob_echo([ resource link_identifier, ] string blob_id)","Output blob contents to browser"],ibase_blob_get:["string ibase_blob_get(resource blob_handle, int len)","Get len bytes data from open blob"],ibase_blob_import:["string ibase_blob_import([ resource link_identifier, ] resource file)","Create blob, copy file in it, and close it"],ibase_blob_info:["array ibase_blob_info([ resource link_identifier, ] string blob_id)","Return blob length and other useful info"],ibase_blob_open:["resource ibase_blob_open([ resource link_identifier, ] string blob_id)","Open blob for retrieving data parts"],ibase_close:["bool ibase_close([resource link_identifier])","Close an InterBase connection"],ibase_commit:["bool ibase_commit( resource link_identifier )","Commit transaction"],ibase_commit_ret:["bool ibase_commit_ret( resource link_identifier )","Commit transaction and retain the transaction context"],ibase_connect:["resource ibase_connect(string database [, string username [, string password [, string charset [, int buffers [, int dialect [, string role]]]]]])","Open a connection to an InterBase database"],ibase_db_info:["string ibase_db_info(resource service_handle, string db, int action [, int argument])","Request statistics about a database"],ibase_delete_user:["bool ibase_delete_user(resource service_handle, string user_name, string password [, string first_name [, string middle_name [, string last_name]]])","Delete a user from security database"],ibase_drop_db:["bool ibase_drop_db([resource link_identifier])","Drop an InterBase database"],ibase_errcode:["int ibase_errcode(void)","Return error code"],ibase_errmsg:["string ibase_errmsg(void)","Return error message"],ibase_execute:["mixed ibase_execute(resource query [, mixed bind_arg [, mixed bind_arg [, ...]]])","Execute a previously prepared query"],ibase_fetch_assoc:["array ibase_fetch_assoc(resource result [, int fetch_flags])","Fetch a row from the results of a query"],ibase_fetch_object:["object ibase_fetch_object(resource result [, int fetch_flags])","Fetch a object from the results of a query"],ibase_fetch_row:["array ibase_fetch_row(resource result [, int fetch_flags])","Fetch a row from the results of a query"],ibase_field_info:["array ibase_field_info(resource query_result, int field_number)","Get information about a field"],ibase_free_event_handler:["bool ibase_free_event_handler(resource event)","Frees the event handler set by ibase_set_event_handler()"],ibase_free_query:["bool ibase_free_query(resource query)","Free memory used by a query"],ibase_free_result:["bool ibase_free_result(resource result)","Free the memory used by a result"],ibase_gen_id:["int ibase_gen_id(string generator [, int increment [, resource link_identifier ]])","Increments the named generator and returns its new value"],ibase_maintain_db:["bool ibase_maintain_db(resource service_handle, string db, int action [, int argument])","Execute a maintenance command on the database server"],ibase_modify_user:["bool ibase_modify_user(resource service_handle, string user_name, string password [, string first_name [, string middle_name [, string last_name]]])","Modify a user in security database"],ibase_name_result:["bool ibase_name_result(resource result, string name)","Assign a name to a result for use with ... WHERE CURRENT OF <name> statements"],ibase_num_fields:["int ibase_num_fields(resource query_result)","Get the number of fields in result"],ibase_num_params:["int ibase_num_params(resource query)","Get the number of params in a prepared query"],ibase_num_rows:["int ibase_num_rows( resource result_identifier )","Return the number of rows that are available in a result"],ibase_param_info:["array ibase_param_info(resource query, int field_number)","Get information about a parameter"],ibase_pconnect:["resource ibase_pconnect(string database [, string username [, string password [, string charset [, int buffers [, int dialect [, string role]]]]]])","Open a persistent connection to an InterBase database"],ibase_prepare:["resource ibase_prepare(resource link_identifier[, string query [, resource trans_identifier ]])","Prepare a query for later execution"],ibase_query:["mixed ibase_query([resource link_identifier, [ resource link_identifier, ]] string query [, mixed bind_arg [, mixed bind_arg [, ...]]])","Execute a query"],ibase_restore:["mixed ibase_restore(resource service_handle, string source_file, string dest_db [, int options [, bool verbose]])","Initiates a restore task in the service manager and returns immediately"],ibase_rollback:["bool ibase_rollback( resource link_identifier )","Rollback transaction"],ibase_rollback_ret:["bool ibase_rollback_ret( resource link_identifier )","Rollback transaction and retain the transaction context"],ibase_server_info:["string ibase_server_info(resource service_handle, int action)","Request information about a database server"],ibase_service_attach:["resource ibase_service_attach(string host, string dba_username, string dba_password)","Connect to the service manager"],ibase_service_detach:["bool ibase_service_detach(resource service_handle)","Disconnect from the service manager"],ibase_set_event_handler:["resource ibase_set_event_handler([resource link_identifier,] callback handler, string event [, string event [, ...]])","Register the callback for handling each of the named events"],ibase_trans:["resource ibase_trans([int trans_args [, resource link_identifier [, ... ], int trans_args [, resource link_identifier [, ... ]] [, ...]]])","Start a transaction over one or several databases"],ibase_wait_event:["string ibase_wait_event([resource link_identifier,] string event [, string event [, ...]])","Waits for any one of the passed Interbase events to be posted by the database, and returns its name"],iconv:["string iconv(string in_charset, string out_charset, string str)","Returns str converted to the out_charset character set"],iconv_get_encoding:["mixed iconv_get_encoding([string type])","Get internal encoding and output encoding for ob_iconv_handler()"],iconv_mime_decode:["string iconv_mime_decode(string encoded_string [, int mode, string charset])","Decodes a mime header field"],iconv_mime_decode_headers:["array iconv_mime_decode_headers(string headers [, int mode, string charset])","Decodes multiple mime header fields"],iconv_mime_encode:["string iconv_mime_encode(string field_name, string field_value [, array preference])","Composes a mime header field with field_name and field_value in a specified scheme"],iconv_set_encoding:["bool iconv_set_encoding(string type, string charset)","Sets internal encoding and output encoding for ob_iconv_handler()"],iconv_strlen:["int iconv_strlen(string str [, string charset])","Returns the character count of str"],iconv_strpos:["int iconv_strpos(string haystack, string needle [, int offset [, string charset]])","Finds position of first occurrence of needle within part of haystack beginning with offset"],iconv_strrpos:["int iconv_strrpos(string haystack, string needle [, string charset])","Finds position of last occurrence of needle within part of haystack beginning with offset"],iconv_substr:["string iconv_substr(string str, int offset, [int length, string charset])","Returns specified part of a string"],idate:["int idate(string format [, int timestamp])","Format a local time/date as integer"],idn_to_ascii:["int idn_to_ascii(string domain[, int options])","Converts an Unicode domain to ASCII representation, as defined in the IDNA RFC"],idn_to_utf8:["int idn_to_utf8(string domain[, int options])","Converts an ASCII representation of the domain to Unicode (UTF-8), as defined in the IDNA RFC"],ignore_user_abort:["int ignore_user_abort([string value])","Set whether we want to ignore a user abort event or not"],image2wbmp:["bool image2wbmp(resource im [, string filename [, int threshold]])","Output WBMP image to browser or file"],image_type_to_extension:["string image_type_to_extension(int imagetype [, bool include_dot])","Get file extension for image-type returned by getimagesize, exif_read_data, exif_thumbnail, exif_imagetype"],image_type_to_mime_type:["string image_type_to_mime_type(int imagetype)","Get Mime-Type for image-type returned by getimagesize, exif_read_data, exif_thumbnail, exif_imagetype"],imagealphablending:["bool imagealphablending(resource im, bool on)","Turn alpha blending mode on or off for the given image"],imageantialias:["bool imageantialias(resource im, bool on)","Should antialiased functions used or not"],imagearc:["bool imagearc(resource im, int cx, int cy, int w, int h, int s, int e, int col)","Draw a partial ellipse"],imagechar:["bool imagechar(resource im, int font, int x, int y, string c, int col)","Draw a character"],imagecharup:["bool imagecharup(resource im, int font, int x, int y, string c, int col)","Draw a character rotated 90 degrees counter-clockwise"],imagecolorallocate:["int imagecolorallocate(resource im, int red, int green, int blue)","Allocate a color for an image"],imagecolorallocatealpha:["int imagecolorallocatealpha(resource im, int red, int green, int blue, int alpha)","Allocate a color with an alpha level. Works for true color and palette based images"],imagecolorat:["int imagecolorat(resource im, int x, int y)","Get the index of the color of a pixel"],imagecolorclosest:["int imagecolorclosest(resource im, int red, int green, int blue)","Get the index of the closest color to the specified color"],imagecolorclosestalpha:["int imagecolorclosestalpha(resource im, int red, int green, int blue, int alpha)","Find the closest matching colour with alpha transparency"],imagecolorclosesthwb:["int imagecolorclosesthwb(resource im, int red, int green, int blue)","Get the index of the color which has the hue, white and blackness nearest to the given color"],imagecolordeallocate:["bool imagecolordeallocate(resource im, int index)","De-allocate a color for an image"],imagecolorexact:["int imagecolorexact(resource im, int red, int green, int blue)","Get the index of the specified color"],imagecolorexactalpha:["int imagecolorexactalpha(resource im, int red, int green, int blue, int alpha)","Find exact match for colour with transparency"],imagecolormatch:["bool imagecolormatch(resource im1, resource im2)","Makes the colors of the palette version of an image more closely match the true color version"],imagecolorresolve:["int imagecolorresolve(resource im, int red, int green, int blue)","Get the index of the specified color or its closest possible alternative"],imagecolorresolvealpha:["int imagecolorresolvealpha(resource im, int red, int green, int blue, int alpha)","Resolve/Allocate a colour with an alpha level. Works for true colour and palette based images"],imagecolorset:["void imagecolorset(resource im, int col, int red, int green, int blue)","Set the color for the specified palette index"],imagecolorsforindex:["array imagecolorsforindex(resource im, int col)","Get the colors for an index"],imagecolorstotal:["int imagecolorstotal(resource im)","Find out the number of colors in an image's palette"],imagecolortransparent:["int imagecolortransparent(resource im [, int col])","Define a color as transparent"],imageconvolution:["resource imageconvolution(resource src_im, array matrix3x3, double div, double offset)","Apply a 3x3 convolution matrix, using coefficient div and offset"],imagecopy:["bool imagecopy(resource dst_im, resource src_im, int dst_x, int dst_y, int src_x, int src_y, int src_w, int src_h)","Copy part of an image"],imagecopymerge:["bool imagecopymerge(resource src_im, resource dst_im, int dst_x, int dst_y, int src_x, int src_y, int src_w, int src_h, int pct)","Merge one part of an image with another"],imagecopymergegray:["bool imagecopymergegray(resource src_im, resource dst_im, int dst_x, int dst_y, int src_x, int src_y, int src_w, int src_h, int pct)","Merge one part of an image with another"],imagecopyresampled:["bool imagecopyresampled(resource dst_im, resource src_im, int dst_x, int dst_y, int src_x, int src_y, int dst_w, int dst_h, int src_w, int src_h)","Copy and resize part of an image using resampling to help ensure clarity"],imagecopyresized:["bool imagecopyresized(resource dst_im, resource src_im, int dst_x, int dst_y, int src_x, int src_y, int dst_w, int dst_h, int src_w, int src_h)","Copy and resize part of an image"],imagecreate:["resource imagecreate(int x_size, int y_size)","Create a new image"],imagecreatefromgd:["resource imagecreatefromgd(string filename)","Create a new image from GD file or URL"],imagecreatefromgd2:["resource imagecreatefromgd2(string filename)","Create a new image from GD2 file or URL"],imagecreatefromgd2part:["resource imagecreatefromgd2part(string filename, int srcX, int srcY, int width, int height)","Create a new image from a given part of GD2 file or URL"],imagecreatefromgif:["resource imagecreatefromgif(string filename)","Create a new image from GIF file or URL"],imagecreatefromjpeg:["resource imagecreatefromjpeg(string filename)","Create a new image from JPEG file or URL"],imagecreatefrompng:["resource imagecreatefrompng(string filename)","Create a new image from PNG file or URL"],imagecreatefromstring:["resource imagecreatefromstring(string image)","Create a new image from the image stream in the string"],imagecreatefromwbmp:["resource imagecreatefromwbmp(string filename)","Create a new image from WBMP file or URL"],imagecreatefromxbm:["resource imagecreatefromxbm(string filename)","Create a new image from XBM file or URL"],imagecreatefromxpm:["resource imagecreatefromxpm(string filename)","Create a new image from XPM file or URL"],imagecreatetruecolor:["resource imagecreatetruecolor(int x_size, int y_size)","Create a new true color image"],imagedashedline:["bool imagedashedline(resource im, int x1, int y1, int x2, int y2, int col)","Draw a dashed line"],imagedestroy:["bool imagedestroy(resource im)","Destroy an image"],imageellipse:["bool imageellipse(resource im, int cx, int cy, int w, int h, int color)","Draw an ellipse"],imagefill:["bool imagefill(resource im, int x, int y, int col)","Flood fill"],imagefilledarc:["bool imagefilledarc(resource im, int cx, int cy, int w, int h, int s, int e, int col, int style)","Draw a filled partial ellipse"],imagefilledellipse:["bool imagefilledellipse(resource im, int cx, int cy, int w, int h, int color)","Draw an ellipse"],imagefilledpolygon:["bool imagefilledpolygon(resource im, array point, int num_points, int col)","Draw a filled polygon"],imagefilledrectangle:["bool imagefilledrectangle(resource im, int x1, int y1, int x2, int y2, int col)","Draw a filled rectangle"],imagefilltoborder:["bool imagefilltoborder(resource im, int x, int y, int border, int col)","Flood fill to specific color"],imagefilter:["bool imagefilter(resource src_im, int filtertype, [args] )","Applies Filter an image using a custom angle"],imagefontheight:["int imagefontheight(int font)","Get font height"],imagefontwidth:["int imagefontwidth(int font)","Get font width"],imageftbbox:["array imageftbbox(float size, float angle, string font_file, string text [, array extrainfo])","Give the bounding box of a text using fonts via freetype2"],imagefttext:["array imagefttext(resource im, float size, float angle, int x, int y, int col, string font_file, string text [, array extrainfo])","Write text to the image using fonts via freetype2"],imagegammacorrect:["bool imagegammacorrect(resource im, float inputgamma, float outputgamma)","Apply a gamma correction to a GD image"],imagegd:["bool imagegd(resource im [, string filename])","Output GD image to browser or file"],imagegd2:["bool imagegd2(resource im [, string filename, [, int chunk_size, [, int type]]])","Output GD2 image to browser or file"],imagegif:["bool imagegif(resource im [, string filename])","Output GIF image to browser or file"],imagegrabscreen:["resource imagegrabscreen()","Grab a screenshot"],imagegrabwindow:["resource imagegrabwindow(int window_handle [, int client_area])","Grab a window or its client area using a windows handle (HWND property in COM instance)"],imageinterlace:["int imageinterlace(resource im [, int interlace])","Enable or disable interlace"],imageistruecolor:["bool imageistruecolor(resource im)","return true if the image uses truecolor"],imagejpeg:["bool imagejpeg(resource im [, string filename [, int quality]])","Output JPEG image to browser or file"],imagelayereffect:["bool imagelayereffect(resource im, int effect)","Set the alpha blending flag to use the bundled libgd layering effects"],imageline:["bool imageline(resource im, int x1, int y1, int x2, int y2, int col)","Draw a line"],imageloadfont:["int imageloadfont(string filename)","Load a new font"],imagepalettecopy:["void imagepalettecopy(resource dst, resource src)","Copy the palette from the src image onto the dst image"],imagepng:["bool imagepng(resource im [, string filename])","Output PNG image to browser or file"],imagepolygon:["bool imagepolygon(resource im, array point, int num_points, int col)","Draw a polygon"],imagepsbbox:["array imagepsbbox(string text, resource font, int size [, int space, int tightness, float angle])","Return the bounding box needed by a string if rasterized"],imagepscopyfont:["int imagepscopyfont(int font_index)","Make a copy of a font for purposes like extending or reenconding"],imagepsencodefont:["bool imagepsencodefont(resource font_index, string filename)","To change a fonts character encoding vector"],imagepsextendfont:["bool imagepsextendfont(resource font_index, float extend)","Extend or or condense (if extend < 1) a font"],imagepsfreefont:["bool imagepsfreefont(resource font_index)","Free memory used by a font"],imagepsloadfont:["resource imagepsloadfont(string pathname)","Load a new font from specified file"],imagepsslantfont:["bool imagepsslantfont(resource font_index, float slant)","Slant a font"],imagepstext:["array imagepstext(resource image, string text, resource font, int size, int foreground, int background, int xcoord, int ycoord [, int space [, int tightness [, float angle [, int antialias])","Rasterize a string over an image"],imagerectangle:["bool imagerectangle(resource im, int x1, int y1, int x2, int y2, int col)","Draw a rectangle"],imagerotate:["resource imagerotate(resource src_im, float angle, int bgdcolor [, int ignoretransparent])","Rotate an image using a custom angle"],imagesavealpha:["bool imagesavealpha(resource im, bool on)","Include alpha channel to a saved image"],imagesetbrush:["bool imagesetbrush(resource image, resource brush)",'Set the brush image to $brush when filling $image with the "IMG_COLOR_BRUSHED" color'],imagesetpixel:["bool imagesetpixel(resource im, int x, int y, int col)","Set a single pixel"],imagesetstyle:["bool imagesetstyle(resource im, array styles)","Set the line drawing styles for use with imageline and IMG_COLOR_STYLED."],imagesetthickness:["bool imagesetthickness(resource im, int thickness)","Set line thickness for drawing lines, ellipses, rectangles, polygons etc."],imagesettile:["bool imagesettile(resource image, resource tile)",'Set the tile image to $tile when filling $image with the "IMG_COLOR_TILED" color'],imagestring:["bool imagestring(resource im, int font, int x, int y, string str, int col)","Draw a string horizontally"],imagestringup:["bool imagestringup(resource im, int font, int x, int y, string str, int col)","Draw a string vertically - rotated 90 degrees counter-clockwise"],imagesx:["int imagesx(resource im)","Get image width"],imagesy:["int imagesy(resource im)","Get image height"],imagetruecolortopalette:["void imagetruecolortopalette(resource im, bool ditherFlag, int colorsWanted)","Convert a true colour image to a palette based image with a number of colours, optionally using dithering."],imagettfbbox:["array imagettfbbox(float size, float angle, string font_file, string text)","Give the bounding box of a text using TrueType fonts"],imagettftext:["array imagettftext(resource im, float size, float angle, int x, int y, int col, string font_file, string text)","Write text to the image using a TrueType font"],imagetypes:["int imagetypes(void)","Return the types of images supported in a bitfield - 1=GIF, 2=JPEG, 4=PNG, 8=WBMP, 16=XPM"],imagewbmp:["bool imagewbmp(resource im [, string filename, [, int foreground]])","Output WBMP image to browser or file"],imagexbm:["int imagexbm(int im, string filename [, int foreground])","Output XBM image to browser or file"],imap_8bit:["string imap_8bit(string text)","Convert an 8-bit string to a quoted-printable string"],imap_alerts:["array imap_alerts(void)","Returns an array of all IMAP alerts that have been generated since the last page load or since the last imap_alerts() call, whichever came last. The alert stack is cleared after imap_alerts() is called."],imap_append:["bool imap_append(resource stream_id, string folder, string message [, string options [, string internal_date]])","Append a new message to a specified mailbox"],imap_base64:["string imap_base64(string text)","Decode BASE64 encoded text"],imap_binary:["string imap_binary(string text)","Convert an 8bit string to a base64 string"],imap_body:["string imap_body(resource stream_id, int msg_no [, int options])","Read the message body"],imap_bodystruct:["object imap_bodystruct(resource stream_id, int msg_no, string section)","Read the structure of a specified body section of a specific message"],imap_check:["object imap_check(resource stream_id)","Get mailbox properties"],imap_clearflag_full:["bool imap_clearflag_full(resource stream_id, string sequence, string flag [, int options])","Clears flags on messages"],imap_close:["bool imap_close(resource stream_id [, int options])","Close an IMAP stream"],imap_createmailbox:["bool imap_createmailbox(resource stream_id, string mailbox)","Create a new mailbox"],imap_delete:["bool imap_delete(resource stream_id, int msg_no [, int options])","Mark a message for deletion"],imap_deletemailbox:["bool imap_deletemailbox(resource stream_id, string mailbox)","Delete a mailbox"],imap_errors:["array imap_errors(void)","Returns an array of all IMAP errors generated since the last page load, or since the last imap_errors() call, whichever came last. The error stack is cleared after imap_errors() is called."],imap_expunge:["bool imap_expunge(resource stream_id)","Permanently delete all messages marked for deletion"],imap_fetch_overview:["array imap_fetch_overview(resource stream_id, string sequence [, int options])","Read an overview of the information in the headers of the given message sequence"],imap_fetchbody:["string imap_fetchbody(resource stream_id, int msg_no, string section [, int options])","Get a specific body section"],imap_fetchheader:["string imap_fetchheader(resource stream_id, int msg_no [, int options])","Get the full unfiltered header for a message"],imap_fetchstructure:["object imap_fetchstructure(resource stream_id, int msg_no [, int options])","Read the full structure of a message"],imap_gc:["bool imap_gc(resource stream_id, int flags)","This function garbage collects (purges) the cache of entries of a specific type."],imap_get_quota:["array imap_get_quota(resource stream_id, string qroot)","Returns the quota set to the mailbox account qroot"],imap_get_quotaroot:["array imap_get_quotaroot(resource stream_id, string mbox)","Returns the quota set to the mailbox account mbox"],imap_getacl:["array imap_getacl(resource stream_id, string mailbox)","Gets the ACL for a given mailbox"],imap_getmailboxes:["array imap_getmailboxes(resource stream_id, string ref, string pattern)","Reads the list of mailboxes and returns a full array of objects containing name, attributes, and delimiter"],imap_getsubscribed:["array imap_getsubscribed(resource stream_id, string ref, string pattern)","Return a list of subscribed mailboxes, in the same format as imap_getmailboxes()"],imap_headerinfo:["object imap_headerinfo(resource stream_id, int msg_no [, int from_length [, int subject_length [, string default_host]]])","Read the headers of the message"],imap_headers:["array imap_headers(resource stream_id)","Returns headers for all messages in a mailbox"],imap_last_error:["string imap_last_error(void)","Returns the last error that was generated by an IMAP function. The error stack is NOT cleared after this call."],imap_list:["array imap_list(resource stream_id, string ref, string pattern)","Read the list of mailboxes"],imap_listscan:["array imap_listscan(resource stream_id, string ref, string pattern, string content)","Read list of mailboxes containing a certain string"],imap_lsub:["array imap_lsub(resource stream_id, string ref, string pattern)","Return a list of subscribed mailboxes"],imap_mail:["bool imap_mail(string to, string subject, string message [, string additional_headers [, string cc [, string bcc [, string rpath]]]])","Send an email message"],imap_mail_compose:["string imap_mail_compose(array envelope, array body)","Create a MIME message based on given envelope and body sections"],imap_mail_copy:["bool imap_mail_copy(resource stream_id, string msglist, string mailbox [, int options])","Copy specified message to a mailbox"],imap_mail_move:["bool imap_mail_move(resource stream_id, string sequence, string mailbox [, int options])","Move specified message to a mailbox"],imap_mailboxmsginfo:["object imap_mailboxmsginfo(resource stream_id)","Returns info about the current mailbox"],imap_mime_header_decode:["array imap_mime_header_decode(string str)","Decode mime header element in accordance with RFC 2047 and return array of objects containing 'charset' encoding and decoded 'text'"],imap_msgno:["int imap_msgno(resource stream_id, int unique_msg_id)","Get the sequence number associated with a UID"],imap_mutf7_to_utf8:["string imap_mutf7_to_utf8(string in)","Decode a modified UTF-7 string to UTF-8"],imap_num_msg:["int imap_num_msg(resource stream_id)","Gives the number of messages in the current mailbox"],imap_num_recent:["int imap_num_recent(resource stream_id)","Gives the number of recent messages in current mailbox"],imap_open:["resource imap_open(string mailbox, string user, string password [, int options [, int n_retries]])","Open an IMAP stream to a mailbox"],imap_ping:["bool imap_ping(resource stream_id)","Check if the IMAP stream is still active"],imap_qprint:["string imap_qprint(string text)","Convert a quoted-printable string to an 8-bit string"],imap_renamemailbox:["bool imap_renamemailbox(resource stream_id, string old_name, string new_name)","Rename a mailbox"],imap_reopen:["bool imap_reopen(resource stream_id, string mailbox [, int options [, int n_retries]])","Reopen an IMAP stream to a new mailbox"],imap_rfc822_parse_adrlist:["array imap_rfc822_parse_adrlist(string address_string, string default_host)","Parses an address string"],imap_rfc822_parse_headers:["object imap_rfc822_parse_headers(string headers [, string default_host])","Parse a set of mail headers contained in a string, and return an object similar to imap_headerinfo()"],imap_rfc822_write_address:["string imap_rfc822_write_address(string mailbox, string host, string personal)","Returns a properly formatted email address given the mailbox, host, and personal info"],imap_savebody:['bool imap_savebody(resource stream_id, string|resource file, int msg_no[, string section = ""[, int options = 0]])',"Save a specific body section to a file"],imap_search:["array imap_search(resource stream_id, string criteria [, int options [, string charset]])","Return a list of messages matching the given criteria"],imap_set_quota:["bool imap_set_quota(resource stream_id, string qroot, int mailbox_size)","Will set the quota for qroot mailbox"],imap_setacl:["bool imap_setacl(resource stream_id, string mailbox, string id, string rights)","Sets the ACL for a given mailbox"],imap_setflag_full:["bool imap_setflag_full(resource stream_id, string sequence, string flag [, int options])","Sets flags on messages"],imap_sort:["array imap_sort(resource stream_id, int criteria, int reverse [, int options [, string search_criteria [, string charset]]])","Sort an array of message headers, optionally including only messages that meet specified criteria."],imap_status:["object imap_status(resource stream_id, string mailbox, int options)","Get status info from a mailbox"],imap_subscribe:["bool imap_subscribe(resource stream_id, string mailbox)","Subscribe to a mailbox"],imap_thread:["array imap_thread(resource stream_id [, int options])","Return threaded by REFERENCES tree"],imap_timeout:["mixed imap_timeout(int timeout_type [, int timeout])","Set or fetch imap timeout"],imap_uid:["int imap_uid(resource stream_id, int msg_no)","Get the unique message id associated with a standard sequential message number"],imap_undelete:["bool imap_undelete(resource stream_id, int msg_no [, int flags])","Remove the delete flag from a message"],imap_unsubscribe:["bool imap_unsubscribe(resource stream_id, string mailbox)","Unsubscribe from a mailbox"],imap_utf7_decode:["string imap_utf7_decode(string buf)","Decode a modified UTF-7 string"],imap_utf7_encode:["string imap_utf7_encode(string buf)","Encode a string in modified UTF-7"],imap_utf8:["string imap_utf8(string mime_encoded_text)","Convert a mime-encoded text to UTF-8"],imap_utf8_to_mutf7:["string imap_utf8_to_mutf7(string in)","Encode a UTF-8 string to modified UTF-7"],implode:["string implode([string glue,] array pieces)","Joins array elements placing glue string between items and return one string"],import_request_variables:["bool import_request_variables(string types [, string prefix])","Import GET/POST/Cookie variables into the global scope"],in_array:["bool in_array(mixed needle, array haystack [, bool strict])","Checks if the given value exists in the array"],include:["bool include(string path)","Includes and evaluates the specified file"],include_once:["bool include_once(string path)","Includes and evaluates the specified file"],inet_ntop:["string inet_ntop(string in_addr)","Converts a packed inet address to a human readable IP address string"],inet_pton:["string inet_pton(string ip_address)","Converts a human readable IP address to a packed binary string"],ini_get:["string ini_get(string varname)","Get a configuration option"],ini_get_all:["array ini_get_all([string extension[, bool details = true]])","Get all configuration options"],ini_restore:["void ini_restore(string varname)","Restore the value of a configuration option specified by varname"],ini_set:["string ini_set(string varname, string newvalue)","Set a configuration option, returns false on error and the old value of the configuration option on success"],interface_exists:["bool interface_exists(string classname [, bool autoload])","Checks if the class exists"],intl_error_name:["string intl_error_name()","* Return a string for a given error code. * The string will be the same as the name of the error code constant."],intl_get_error_code:["int intl_get_error_code()","* Get code of the last occured error."],intl_get_error_message:["string intl_get_error_message()","* Get text description of the last occured error."],intl_is_failure:["bool intl_is_failure()","* Check whether the given error code indicates a failure. * Returns true if it does, and false if the code * indicates success or a warning."],intval:["int intval(mixed var [, int base])","Get the integer value of a variable using the optional base for the conversion"],ip2long:["int ip2long(string ip_address)","Converts a string containing an (IPv4) Internet Protocol dotted address into a proper address"],iptcembed:["array iptcembed(string iptcdata, string jpeg_file_name [, int spool])","Embed binary IPTC data into a JPEG image."],iptcparse:["array iptcparse(string iptcdata)","Parse binary IPTC-data into associative array"],is_a:["bool is_a(object object, string class_name)","Returns true if the object is of this class or has this class as one of its parents"],is_array:["bool is_array(mixed var)","Returns true if variable is an array"],is_bool:["bool is_bool(mixed var)","Returns true if variable is a boolean"],is_callable:["bool is_callable(mixed var [, bool syntax_only [, string callable_name]])","Returns true if var is callable."],is_dir:["bool is_dir(string filename)","Returns true if file is directory"],is_executable:["bool is_executable(string filename)","Returns true if file is executable"],is_file:["bool is_file(string filename)","Returns true if file is a regular file"],is_finite:["bool is_finite(float val)","Returns whether argument is finite"],is_float:["bool is_float(mixed var)","Returns true if variable is float point"],is_infinite:["bool is_infinite(float val)","Returns whether argument is infinite"],is_link:["bool is_link(string filename)","Returns true if file is symbolic link"],is_long:["bool is_long(mixed var)","Returns true if variable is a long (integer)"],is_nan:["bool is_nan(float val)","Returns whether argument is not a number"],is_null:["bool is_null(mixed var)","Returns true if variable is null"],is_numeric:["bool is_numeric(mixed value)","Returns true if value is a number or a numeric string"],is_object:["bool is_object(mixed var)","Returns true if variable is an object"],is_readable:["bool is_readable(string filename)","Returns true if file can be read"],is_resource:["bool is_resource(mixed var)","Returns true if variable is a resource"],is_scalar:["bool is_scalar(mixed value)","Returns true if value is a scalar"],is_string:["bool is_string(mixed var)","Returns true if variable is a string"],is_subclass_of:["bool is_subclass_of(object object, string class_name)","Returns true if the object has this class as one of its parents"],is_uploaded_file:["bool is_uploaded_file(string path)","Check if file was created by rfc1867 upload"],is_writable:["bool is_writable(string filename)","Returns true if file can be written"],isset:["bool isset(mixed var [, mixed var])","Determine whether a variable is set"],iterator_apply:["int iterator_apply(Traversable it, mixed function [, mixed params])","Calls a function for every element in an iterator"],iterator_count:["int iterator_count(Traversable it)","Count the elements in an iterator"],iterator_to_array:["array iterator_to_array(Traversable it [, bool use_keys = true])","Copy the iterator into an array"],jddayofweek:["mixed jddayofweek(int juliandaycount [, int mode])","Returns name or number of day of week from julian day count"],jdmonthname:["string jdmonthname(int juliandaycount, int mode)","Returns name of month for julian day count"],jdtofrench:["string jdtofrench(int juliandaycount)","Converts a julian day count to a french republic calendar date"],jdtogregorian:["string jdtogregorian(int juliandaycount)","Converts a julian day count to a gregorian calendar date"],jdtojewish:["string jdtojewish(int juliandaycount [, bool hebrew [, int fl]])","Converts a julian day count to a jewish calendar date"],jdtojulian:["string jdtojulian(int juliandaycount)","Convert a julian day count to a julian calendar date"],jdtounix:["int jdtounix(int jday)","Convert Julian Day to UNIX timestamp"],jewishtojd:["int jewishtojd(int month, int day, int year)","Converts a jewish calendar date to a julian day count"],join:["string join(array src, string glue)","An alias for implode"],jpeg2wbmp:["bool jpeg2wbmp (string f_org, string f_dest, int d_height, int d_width, int threshold)","Convert JPEG image to WBMP image"],json_decode:["mixed json_decode(string json [, bool assoc [, long depth]])","Decodes the JSON representation into a PHP value"],json_encode:["string json_encode(mixed data [, int options])","Returns the JSON representation of a value"],json_last_error:["int json_last_error()","Returns the error code of the last json_decode()."],juliantojd:["int juliantojd(int month, int day, int year)","Converts a julian calendar date to julian day count"],key:["mixed key(array array_arg)","Return the key of the element currently pointed to by the internal array pointer"],krsort:["bool krsort(array &array_arg [, int sort_flags])","Sort an array by key value in reverse order"],ksort:["bool ksort(array &array_arg [, int sort_flags])","Sort an array by key"],lcfirst:["string lcfirst(string str)","Make a string's first character lowercase"],lcg_value:["float lcg_value()","Returns a value from the combined linear congruential generator"],lchgrp:["bool lchgrp(string filename, mixed group)","Change symlink group"],ldap_8859_to_t61:["string ldap_8859_to_t61(string value)","Translate 8859 characters to t61 characters"],ldap_add:["bool ldap_add(resource link, string dn, array entry)","Add entries to LDAP directory"],ldap_bind:["bool ldap_bind(resource link [, string dn [, string password]])","Bind to LDAP directory"],ldap_compare:["bool ldap_compare(resource link, string dn, string attr, string value)","Determine if an entry has a specific value for one of its attributes"],ldap_connect:["resource ldap_connect([string host [, int port [, string wallet [, string wallet_passwd [, int authmode]]]]])","Connect to an LDAP server"],ldap_count_entries:["int ldap_count_entries(resource link, resource result)","Count the number of entries in a search result"],ldap_delete:["bool ldap_delete(resource link, string dn)","Delete an entry from a directory"],ldap_dn2ufn:["string ldap_dn2ufn(string dn)","Convert DN to User Friendly Naming format"],ldap_err2str:["string ldap_err2str(int errno)","Convert error number to error string"],ldap_errno:["int ldap_errno(resource link)","Get the current ldap error number"],ldap_error:["string ldap_error(resource link)","Get the current ldap error string"],ldap_explode_dn:["array ldap_explode_dn(string dn, int with_attrib)","Splits DN into its component parts"],ldap_first_attribute:["string ldap_first_attribute(resource link, resource result_entry)","Return first attribute"],ldap_first_entry:["resource ldap_first_entry(resource link, resource result)","Return first result id"],ldap_first_reference:["resource ldap_first_reference(resource link, resource result)","Return first reference"],ldap_free_result:["bool ldap_free_result(resource result)","Free result memory"],ldap_get_attributes:["array ldap_get_attributes(resource link, resource result_entry)","Get attributes from a search result entry"],ldap_get_dn:["string ldap_get_dn(resource link, resource result_entry)","Get the DN of a result entry"],ldap_get_entries:["array ldap_get_entries(resource link, resource result)","Get all result entries"],ldap_get_option:["bool ldap_get_option(resource link, int option, mixed retval)","Get the current value of various session-wide parameters"],ldap_get_values_len:["array ldap_get_values_len(resource link, resource result_entry, string attribute)","Get all values with lengths from a result entry"],ldap_list:["resource ldap_list(resource|array link, string base_dn, string filter [, array attrs [, int attrsonly [, int sizelimit [, int timelimit [, int deref]]]]])","Single-level search"],ldap_mod_add:["bool ldap_mod_add(resource link, string dn, array entry)","Add attribute values to current"],ldap_mod_del:["bool ldap_mod_del(resource link, string dn, array entry)","Delete attribute values"],ldap_mod_replace:["bool ldap_mod_replace(resource link, string dn, array entry)","Replace attribute values with new ones"],ldap_next_attribute:["string ldap_next_attribute(resource link, resource result_entry)","Get the next attribute in result"],ldap_next_entry:["resource ldap_next_entry(resource link, resource result_entry)","Get next result entry"],ldap_next_reference:["resource ldap_next_reference(resource link, resource reference_entry)","Get next reference"],ldap_parse_reference:["bool ldap_parse_reference(resource link, resource reference_entry, array referrals)","Extract information from reference entry"],ldap_parse_result:["bool ldap_parse_result(resource link, resource result, int errcode, string matcheddn, string errmsg, array referrals)","Extract information from result"],ldap_read:["resource ldap_read(resource|array link, string base_dn, string filter [, array attrs [, int attrsonly [, int sizelimit [, int timelimit [, int deref]]]]])","Read an entry"],ldap_rename:["bool ldap_rename(resource link, string dn, string newrdn, string newparent, bool deleteoldrdn);","Modify the name of an entry"],ldap_sasl_bind:["bool ldap_sasl_bind(resource link [, string binddn [, string password [, string sasl_mech [, string sasl_realm [, string sasl_authc_id [, string sasl_authz_id [, string props]]]]]]])","Bind to LDAP directory using SASL"],ldap_search:["resource ldap_search(resource|array link, string base_dn, string filter [, array attrs [, int attrsonly [, int sizelimit [, int timelimit [, int deref]]]]])","Search LDAP tree under base_dn"],ldap_set_option:["bool ldap_set_option(resource link, int option, mixed newval)","Set the value of various session-wide parameters"],ldap_set_rebind_proc:["bool ldap_set_rebind_proc(resource link, string callback)","Set a callback function to do re-binds on referral chasing."],ldap_sort:["bool ldap_sort(resource link, resource result, string sortfilter)","Sort LDAP result entries"],ldap_start_tls:["bool ldap_start_tls(resource link)","Start TLS"],ldap_t61_to_8859:["string ldap_t61_to_8859(string value)","Translate t61 characters to 8859 characters"],ldap_unbind:["bool ldap_unbind(resource link)","Unbind from LDAP directory"],leak:["void leak(int num_bytes=3)","Cause an intentional memory leak, for testing/debugging purposes"],levenshtein:["int levenshtein(string str1, string str2[, int cost_ins, int cost_rep, int cost_del])","Calculate Levenshtein distance between two strings"],libxml_clear_errors:["void libxml_clear_errors()","Clear last error from libxml"],libxml_disable_entity_loader:["bool libxml_disable_entity_loader([boolean disable])","Disable/Enable ability to load external entities"],libxml_get_errors:["object libxml_get_errors()","Retrieve array of errors"],libxml_get_last_error:["object libxml_get_last_error()","Retrieve last error from libxml"],libxml_set_streams_context:["void libxml_set_streams_context(resource streams_context)","Set the streams context for the next libxml document load or write"],libxml_use_internal_errors:["bool libxml_use_internal_errors([boolean use_errors])","Disable libxml errors and allow user to fetch error information as needed"],link:["int link(string target, string link)","Create a hard link"],linkinfo:["int linkinfo(string filename)","Returns the st_dev field of the UNIX C stat structure describing the link"],litespeed_request_headers:["array litespeed_request_headers(void)","Fetch all HTTP request headers"],litespeed_response_headers:["array litespeed_response_headers(void)","Fetch all HTTP response headers"],locale_accept_from_http:["string locale_accept_from_http(string $http_accept)",null],locale_canonicalize:["static string locale_canonicalize(Locale $loc, string $locale)","* @param string $locale The locale string to canonicalize"],locale_filter_matches:["boolean locale_filter_matches(string $langtag, string $locale[, bool $canonicalize])","* Checks if a $langtag filter matches with $locale according to RFC 4647's basic filtering algorithm"],locale_get_all_variants:["static array locale_get_all_variants($locale)","* gets an array containing the list of variants, or null"],locale_get_default:["static string locale_get_default( )","Get default locale"],locale_get_keywords:["static array locale_get_keywords(string $locale) {","* return an associative array containing keyword-value * pairs for this locale. The keys are keys to the array (doh!)"],locale_get_primary_language:["static string locale_get_primary_language($locale)","* gets the primary language for the $locale"],locale_get_region:["static string locale_get_region($locale)","* gets the region for the $locale"],locale_get_script:["static string locale_get_script($locale)","* gets the script for the $locale"],locale_lookup:["string locale_lookup(array $langtag, string $locale[, bool $canonicalize[, string $default = null]])","* Searchs the items in $langtag for the best match to the language * range"],locale_set_default:["static string locale_set_default( string $locale )","Set default locale"],localeconv:["array localeconv(void)","Returns numeric formatting information based on the current locale"],localtime:["array localtime([int timestamp [, bool associative_array]])","Returns the results of the C system call localtime as an associative array if the associative_array argument is set to 1 other wise it is a regular array"],log:["float log(float number, [float base])","Returns the natural logarithm of the number, or the base log if base is specified"],log10:["float log10(float number)","Returns the base-10 logarithm of the number"],log1p:["float log1p(float number)","Returns log(1 + number), computed in a way that accurate even when the value of number is close to zero"],long2ip:["string long2ip(int proper_address)","Converts an (IPv4) Internet network address into a string in Internet standard dotted format"],lstat:["array lstat(string filename)","Give information about a file or symbolic link"],ltrim:["string ltrim(string str [, string character_mask])","Strips whitespace from the beginning of a string"],mail:["int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])","Send an email message"],max:["mixed max(mixed arg1 [, mixed arg2 [, mixed ...]])","Return the highest value in an array or a series of arguments"],mb_check_encoding:["bool mb_check_encoding([string var[, string encoding]])","Check if the string is valid for the specified encoding"],mb_convert_case:["string mb_convert_case(string sourcestring, int mode [, string encoding])","Returns a case-folded version of sourcestring"],mb_convert_encoding:["string mb_convert_encoding(string str, string to-encoding [, mixed from-encoding])","Returns converted string in desired encoding"],mb_convert_kana:["string mb_convert_kana(string str [, string option] [, string encoding])","Conversion between full-width character and half-width character (Japanese)"],mb_convert_variables:["string mb_convert_variables(string to-encoding, mixed from-encoding, mixed vars [, ...])","Converts the string resource in variables to desired encoding"],mb_decode_mimeheader:["string mb_decode_mimeheader(string string)",'Decodes the MIME "encoded-word" in the string'],mb_decode_numericentity:["string mb_decode_numericentity(string string, array convmap [, string encoding])","Converts HTML numeric entities to character code"],mb_detect_encoding:["string mb_detect_encoding(string str [, mixed encoding_list [, bool strict]])","Encodings of the given string is returned (as a string)"],mb_detect_order:["bool|array mb_detect_order([mixed encoding-list])","Sets the current detect_order or Return the current detect_order as a array"],mb_encode_mimeheader:["string mb_encode_mimeheader(string str [, string charset [, string transfer-encoding [, string linefeed [, int indent]]]])",'Converts the string to MIME "encoded-word" in the format of =?charset?(B|Q)?encoded_string?='],mb_encode_numericentity:["string mb_encode_numericentity(string string, array convmap [, string encoding])","Converts specified characters to HTML numeric entities"],mb_encoding_aliases:["array mb_encoding_aliases(string encoding)","Returns an array of the aliases of a given encoding name"],mb_ereg:["int mb_ereg(string pattern, string string [, array registers])","Regular expression match for multibyte string"],mb_ereg_match:["bool mb_ereg_match(string pattern, string string [,string option])","Regular expression match for multibyte string"],mb_ereg_replace:["string mb_ereg_replace(string pattern, string replacement, string string [, string option])","Replace regular expression for multibyte string"],mb_ereg_search:["bool mb_ereg_search([string pattern[, string option]])","Regular expression search for multibyte string"],mb_ereg_search_getpos:["int mb_ereg_search_getpos(void)","Get search start position"],mb_ereg_search_getregs:["array mb_ereg_search_getregs(void)","Get matched substring of the last time"],mb_ereg_search_init:["bool mb_ereg_search_init(string string [, string pattern[, string option]])","Initialize string and regular expression for search."],mb_ereg_search_pos:["array mb_ereg_search_pos([string pattern[, string option]])","Regular expression search for multibyte string"],mb_ereg_search_regs:["array mb_ereg_search_regs([string pattern[, string option]])","Regular expression search for multibyte string"],mb_ereg_search_setpos:["bool mb_ereg_search_setpos(int position)","Set search start position"],mb_eregi:["int mb_eregi(string pattern, string string [, array registers])","Case-insensitive regular expression match for multibyte string"],mb_eregi_replace:["string mb_eregi_replace(string pattern, string replacement, string string)","Case insensitive replace regular expression for multibyte string"],mb_get_info:["mixed mb_get_info([string type])","Returns the current settings of mbstring"],mb_http_input:["mixed mb_http_input([string type])","Returns the input encoding"],mb_http_output:["string mb_http_output([string encoding])","Sets the current output_encoding or returns the current output_encoding as a string"],mb_internal_encoding:["string mb_internal_encoding([string encoding])","Sets the current internal encoding or Returns the current internal encoding as a string"],mb_language:["string mb_language([string language])","Sets the current language or Returns the current language as a string"],mb_list_encodings:["mixed mb_list_encodings()","Returns an array of all supported entity encodings"],mb_output_handler:["string mb_output_handler(string contents, int status)","Returns string in output buffer converted to the http_output encoding"],mb_parse_str:["bool mb_parse_str(string encoded_string [, array result])","Parses GET/POST/COOKIE data and sets global variables"],mb_preferred_mime_name:["string mb_preferred_mime_name(string encoding)","Return the preferred MIME name (charset) as a string"],mb_regex_encoding:["string mb_regex_encoding([string encoding])","Returns the current encoding for regex as a string."],mb_regex_set_options:["string mb_regex_set_options([string options])","Set or get the default options for mbregex functions"],mb_send_mail:["int mb_send_mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])","* Sends an email message with MIME scheme"],mb_split:["array mb_split(string pattern, string string [, int limit])","split multibyte string into array by regular expression"],mb_strcut:["string mb_strcut(string str, int start [, int length [, string encoding]])","Returns part of a string"],mb_strimwidth:["string mb_strimwidth(string str, int start, int width [, string trimmarker [, string encoding]])","Trim the string in terminal width"],mb_stripos:["int mb_stripos(string haystack, string needle [, int offset [, string encoding]])","Finds position of first occurrence of a string within another, case insensitive"],mb_stristr:["string mb_stristr(string haystack, string needle[, bool part[, string encoding]])","Finds first occurrence of a string within another, case insensitive"],mb_strlen:["int mb_strlen(string str [, string encoding])","Get character numbers of a string"],mb_strpos:["int mb_strpos(string haystack, string needle [, int offset [, string encoding]])","Find position of first occurrence of a string within another"],mb_strrchr:["string mb_strrchr(string haystack, string needle[, bool part[, string encoding]])","Finds the last occurrence of a character in a string within another"],mb_strrichr:["string mb_strrichr(string haystack, string needle[, bool part[, string encoding]])","Finds the last occurrence of a character in a string within another, case insensitive"],mb_strripos:["int mb_strripos(string haystack, string needle [, int offset [, string encoding]])","Finds position of last occurrence of a string within another, case insensitive"],mb_strrpos:["int mb_strrpos(string haystack, string needle [, int offset [, string encoding]])","Find position of last occurrence of a string within another"],mb_strstr:["string mb_strstr(string haystack, string needle[, bool part[, string encoding]])","Finds first occurrence of a string within another"],mb_strtolower:["string mb_strtolower(string sourcestring [, string encoding])","* Returns a lowercased version of sourcestring"],mb_strtoupper:["string mb_strtoupper(string sourcestring [, string encoding])","* Returns a uppercased version of sourcestring"],mb_strwidth:["int mb_strwidth(string str [, string encoding])","Gets terminal width of a string"],mb_substitute_character:["mixed mb_substitute_character([mixed substchar])","Sets the current substitute_character or returns the current substitute_character"],mb_substr:["string mb_substr(string str, int start [, int length [, string encoding]])","Returns part of a string"],mb_substr_count:["int mb_substr_count(string haystack, string needle [, string encoding])","Count the number of substring occurrences"],mcrypt_cbc:["string mcrypt_cbc(int cipher, string key, string data, int mode, string iv)","CBC crypt/decrypt data using key key with cipher cipher starting with iv"],mcrypt_cfb:["string mcrypt_cfb(int cipher, string key, string data, int mode, string iv)","CFB crypt/decrypt data using key key with cipher cipher starting with iv"],mcrypt_create_iv:["string mcrypt_create_iv(int size, int source)","Create an initialization vector (IV)"],mcrypt_decrypt:["string mcrypt_decrypt(string cipher, string key, string data, string mode, string iv)","OFB crypt/decrypt data using key key with cipher cipher starting with iv"],mcrypt_ecb:["string mcrypt_ecb(int cipher, string key, string data, int mode, string iv)","ECB crypt/decrypt data using key key with cipher cipher starting with iv"],mcrypt_enc_get_algorithms_name:["string mcrypt_enc_get_algorithms_name(resource td)","Returns the name of the algorithm specified by the descriptor td"],mcrypt_enc_get_block_size:["int mcrypt_enc_get_block_size(resource td)","Returns the block size of the cipher specified by the descriptor td"],mcrypt_enc_get_iv_size:["int mcrypt_enc_get_iv_size(resource td)","Returns the size of the IV in bytes of the algorithm specified by the descriptor td"],mcrypt_enc_get_key_size:["int mcrypt_enc_get_key_size(resource td)","Returns the maximum supported key size in bytes of the algorithm specified by the descriptor td"],mcrypt_enc_get_modes_name:["string mcrypt_enc_get_modes_name(resource td)","Returns the name of the mode specified by the descriptor td"],mcrypt_enc_get_supported_key_sizes:["array mcrypt_enc_get_supported_key_sizes(resource td)","This function decrypts the crypttext"],mcrypt_enc_is_block_algorithm:["bool mcrypt_enc_is_block_algorithm(resource td)","Returns TRUE if the alrogithm is a block algorithms"],mcrypt_enc_is_block_algorithm_mode:["bool mcrypt_enc_is_block_algorithm_mode(resource td)","Returns TRUE if the mode is for use with block algorithms"],mcrypt_enc_is_block_mode:["bool mcrypt_enc_is_block_mode(resource td)","Returns TRUE if the mode outputs blocks"],mcrypt_enc_self_test:["int mcrypt_enc_self_test(resource td)","This function runs the self test on the algorithm specified by the descriptor td"],mcrypt_encrypt:["string mcrypt_encrypt(string cipher, string key, string data, string mode, string iv)","OFB crypt/decrypt data using key key with cipher cipher starting with iv"],mcrypt_generic:["string mcrypt_generic(resource td, string data)","This function encrypts the plaintext"],mcrypt_generic_deinit:["bool mcrypt_generic_deinit(resource td)","This function terminates encrypt specified by the descriptor td"],mcrypt_generic_init:["int mcrypt_generic_init(resource td, string key, string iv)","This function initializes all buffers for the specific module"],mcrypt_get_block_size:["int mcrypt_get_block_size(string cipher, string module)","Get the key size of cipher"],mcrypt_get_cipher_name:["string mcrypt_get_cipher_name(string cipher)","Get the key size of cipher"],mcrypt_get_iv_size:["int mcrypt_get_iv_size(string cipher, string module)","Get the IV size of cipher (Usually the same as the blocksize)"],mcrypt_get_key_size:["int mcrypt_get_key_size(string cipher, string module)","Get the key size of cipher"],mcrypt_list_algorithms:["array mcrypt_list_algorithms([string lib_dir])",'List all algorithms in "module_dir"'],mcrypt_list_modes:["array mcrypt_list_modes([string lib_dir])",'List all modes "module_dir"'],mcrypt_module_close:["bool mcrypt_module_close(resource td)","Free the descriptor td"],mcrypt_module_get_algo_block_size:["int mcrypt_module_get_algo_block_size(string algorithm [, string lib_dir])","Returns the block size of the algorithm"],mcrypt_module_get_algo_key_size:["int mcrypt_module_get_algo_key_size(string algorithm [, string lib_dir])","Returns the maximum supported key size of the algorithm"],mcrypt_module_get_supported_key_sizes:["array mcrypt_module_get_supported_key_sizes(string algorithm [, string lib_dir])","This function decrypts the crypttext"],mcrypt_module_is_block_algorithm:["bool mcrypt_module_is_block_algorithm(string algorithm [, string lib_dir])","Returns TRUE if the algorithm is a block algorithm"],mcrypt_module_is_block_algorithm_mode:["bool mcrypt_module_is_block_algorithm_mode(string mode [, string lib_dir])","Returns TRUE if the mode is for use with block algorithms"],mcrypt_module_is_block_mode:["bool mcrypt_module_is_block_mode(string mode [, string lib_dir])","Returns TRUE if the mode outputs blocks of bytes"],mcrypt_module_open:["resource mcrypt_module_open(string cipher, string cipher_directory, string mode, string mode_directory)","Opens the module of the algorithm and the mode to be used"],mcrypt_module_self_test:["bool mcrypt_module_self_test(string algorithm [, string lib_dir])",'Does a self test of the module "module"'],mcrypt_ofb:["string mcrypt_ofb(int cipher, string key, string data, int mode, string iv)","OFB crypt/decrypt data using key key with cipher cipher starting with iv"],md5:["string md5(string str, [ bool raw_output])","Calculate the md5 hash of a string"],md5_file:["string md5_file(string filename [, bool raw_output])","Calculate the md5 hash of given filename"],mdecrypt_generic:["string mdecrypt_generic(resource td, string data)","This function decrypts the plaintext"],memory_get_peak_usage:["int memory_get_peak_usage([real_usage])","Returns the peak allocated by PHP memory"],memory_get_usage:["int memory_get_usage([real_usage])","Returns the allocated by PHP memory"],metaphone:["string metaphone(string text[, int phones])","Break english phrases down into their phonemes"],method_exists:["bool method_exists(object object, string method)","Checks if the class method exists"],mhash:["string mhash(int hash, string data [, string key])","Hash data with hash"],mhash_count:["int mhash_count(void)","Gets the number of available hashes"],mhash_get_block_size:["int mhash_get_block_size(int hash)","Gets the block size of hash"],mhash_get_hash_name:["string mhash_get_hash_name(int hash)","Gets the name of hash"],mhash_keygen_s2k:["string mhash_keygen_s2k(int hash, string input_password, string salt, int bytes)","Generates a key using hash functions"],microtime:["mixed microtime([bool get_as_float])","Returns either a string or a float containing the current time in seconds and microseconds"],mime_content_type:["string mime_content_type(string filename|resource stream)","Return content-type for file"],min:["mixed min(mixed arg1 [, mixed arg2 [, mixed ...]])","Return the lowest value in an array or a series of arguments"],mkdir:["bool mkdir(string pathname [, int mode [, bool recursive [, resource context]]])","Create a directory"],mktime:["int mktime([int hour [, int min [, int sec [, int mon [, int day [, int year]]]]]])","Get UNIX timestamp for a date"],money_format:["string money_format(string format , float value)","Convert monetary value(s) to string"],move_uploaded_file:["bool move_uploaded_file(string path, string new_path)","Move a file if and only if it was created by an upload"],msg_get_queue:["resource msg_get_queue(int key [, int perms])","Attach to a message queue"],msg_queue_exists:["bool msg_queue_exists(int key)","Check wether a message queue exists"],msg_receive:["mixed msg_receive(resource queue, int desiredmsgtype, int &msgtype, int maxsize, mixed message [, bool unserialize=true [, int flags=0 [, int errorcode]]])","Send a message of type msgtype (must be > 0) to a message queue"],msg_remove_queue:["bool msg_remove_queue(resource queue)","Destroy the queue"],msg_send:["bool msg_send(resource queue, int msgtype, mixed message [, bool serialize=true [, bool blocking=true [, int errorcode]]])","Send a message of type msgtype (must be > 0) to a message queue"],msg_set_queue:["bool msg_set_queue(resource queue, array data)","Set information for a message queue"],msg_stat_queue:["array msg_stat_queue(resource queue)","Returns information about a message queue"],msgfmt_create:["MessageFormatter msgfmt_create( string $locale, string $pattern )","* Create formatter."],msgfmt_format:["mixed msgfmt_format( MessageFormatter $nf, array $args )","* Format a message."],msgfmt_format_message:["mixed msgfmt_format_message( string $locale, string $pattern, array $args )","* Format a message."],msgfmt_get_error_code:["int msgfmt_get_error_code( MessageFormatter $nf )","* Get formatter's last error code."],msgfmt_get_error_message:["string msgfmt_get_error_message( MessageFormatter $coll )","* Get text description for formatter's last error code."],msgfmt_get_locale:["string msgfmt_get_locale(MessageFormatter $mf)","* Get formatter locale."],msgfmt_get_pattern:["string msgfmt_get_pattern( MessageFormatter $mf )","* Get formatter pattern."],msgfmt_parse:["array msgfmt_parse( MessageFormatter $nf, string $source )","* Parse a message."],msgfmt_set_pattern:["bool msgfmt_set_pattern( MessageFormatter $mf, string $pattern )","* Set formatter pattern."],mssql_bind:["bool mssql_bind(resource stmt, string param_name, mixed var, int type [, bool is_output [, bool is_null [, int maxlen]]])","Adds a parameter to a stored procedure or a remote stored procedure"],mssql_close:["bool mssql_close([resource conn_id])","Closes a connection to a MS-SQL server"],mssql_connect:["int mssql_connect([string servername [, string username [, string password [, bool new_link]]]])","Establishes a connection to a MS-SQL server"],mssql_data_seek:["bool mssql_data_seek(resource result_id, int offset)","Moves the internal row pointer of the MS-SQL result associated with the specified result identifier to pointer to the specified row number"],mssql_execute:["mixed mssql_execute(resource stmt [, bool skip_results = false])","Executes a stored procedure on a MS-SQL server database"],mssql_fetch_array:["array mssql_fetch_array(resource result_id [, int result_type])","Returns an associative array of the current row in the result set specified by result_id"],mssql_fetch_assoc:["array mssql_fetch_assoc(resource result_id)","Returns an associative array of the current row in the result set specified by result_id"],mssql_fetch_batch:["int mssql_fetch_batch(resource result_index)","Returns the next batch of records"],mssql_fetch_field:["object mssql_fetch_field(resource result_id [, int offset])","Gets information about certain fields in a query result"],mssql_fetch_object:["object mssql_fetch_object(resource result_id)","Returns a pseudo-object of the current row in the result set specified by result_id"],mssql_fetch_row:["array mssql_fetch_row(resource result_id)","Returns an array of the current row in the result set specified by result_id"],mssql_field_length:["int mssql_field_length(resource result_id [, int offset])","Get the length of a MS-SQL field"],mssql_field_name:["string mssql_field_name(resource result_id [, int offset])","Returns the name of the field given by offset in the result set given by result_id"],mssql_field_seek:["bool mssql_field_seek(resource result_id, int offset)","Seeks to the specified field offset"],mssql_field_type:["string mssql_field_type(resource result_id [, int offset])","Returns the type of a field"],mssql_free_result:["bool mssql_free_result(resource result_index)","Free a MS-SQL result index"],mssql_free_statement:["bool mssql_free_statement(resource result_index)","Free a MS-SQL statement index"],mssql_get_last_message:["string mssql_get_last_message(void)","Gets the last message from the MS-SQL server"],mssql_guid_string:["string mssql_guid_string(string binary [,bool short_format])","Converts a 16 byte binary GUID to a string"],mssql_init:["int mssql_init(string sp_name [, resource conn_id])","Initializes a stored procedure or a remote stored procedure"],mssql_min_error_severity:["void mssql_min_error_severity(int severity)","Sets the lower error severity"],mssql_min_message_severity:["void mssql_min_message_severity(int severity)","Sets the lower message severity"],mssql_next_result:["bool mssql_next_result(resource result_id)","Move the internal result pointer to the next result"],mssql_num_fields:["int mssql_num_fields(resource mssql_result_index)","Returns the number of fields fetched in from the result id specified"],mssql_num_rows:["int mssql_num_rows(resource mssql_result_index)","Returns the number of rows fetched in from the result id specified"],mssql_pconnect:["int mssql_pconnect([string servername [, string username [, string password [, bool new_link]]]])","Establishes a persistent connection to a MS-SQL server"],mssql_query:["resource mssql_query(string query [, resource conn_id [, int batch_size]])","Perform an SQL query on a MS-SQL server database"],mssql_result:["string mssql_result(resource result_id, int row, mixed field)","Returns the contents of one cell from a MS-SQL result set"],mssql_rows_affected:["int mssql_rows_affected(resource conn_id)","Returns the number of records affected by the query"],mssql_select_db:["bool mssql_select_db(string database_name [, resource conn_id])","Select a MS-SQL database"],mt_getrandmax:["int mt_getrandmax(void)","Returns the maximum value a random number from Mersenne Twister can have"],mt_rand:["int mt_rand([int min, int max])","Returns a random number from Mersenne Twister"],mt_srand:["void mt_srand([int seed])","Seeds Mersenne Twister random number generator"],mysql_affected_rows:["int mysql_affected_rows([int link_identifier])","Gets number of affected rows in previous MySQL operation"],mysql_client_encoding:["string mysql_client_encoding([int link_identifier])","Returns the default character set for the current connection"],mysql_close:["bool mysql_close([int link_identifier])","Close a MySQL connection"],mysql_connect:["resource mysql_connect([string hostname[:port][:/path/to/socket] [, string username [, string password [, bool new [, int flags]]]]])","Opens a connection to a MySQL Server"],mysql_create_db:["bool mysql_create_db(string database_name [, int link_identifier])","Create a MySQL database"],mysql_data_seek:["bool mysql_data_seek(resource result, int row_number)","Move internal result pointer"],mysql_db_query:["resource mysql_db_query(string database_name, string query [, int link_identifier])","Sends an SQL query to MySQL"],mysql_drop_db:["bool mysql_drop_db(string database_name [, int link_identifier])","Drops (delete) a MySQL database"],mysql_errno:["int mysql_errno([int link_identifier])","Returns the number of the error message from previous MySQL operation"],mysql_error:["string mysql_error([int link_identifier])","Returns the text of the error message from previous MySQL operation"],mysql_escape_string:["string mysql_escape_string(string to_be_escaped)","Escape string for mysql query"],mysql_fetch_array:["array mysql_fetch_array(resource result [, int result_type])","Fetch a result row as an array (associative, numeric or both)"],mysql_fetch_assoc:["array mysql_fetch_assoc(resource result)","Fetch a result row as an associative array"],mysql_fetch_field:["object mysql_fetch_field(resource result [, int field_offset])","Gets column information from a result and return as an object"],mysql_fetch_lengths:["array mysql_fetch_lengths(resource result)","Gets max data size of each column in a result"],mysql_fetch_object:["object mysql_fetch_object(resource result [, string class_name [, NULL|array ctor_params]])","Fetch a result row as an object"],mysql_fetch_row:["array mysql_fetch_row(resource result)","Gets a result row as an enumerated array"],mysql_field_flags:["string mysql_field_flags(resource result, int field_offset)","Gets the flags associated with the specified field in a result"],mysql_field_len:["int mysql_field_len(resource result, int field_offset)","Returns the length of the specified field"],mysql_field_name:["string mysql_field_name(resource result, int field_index)","Gets the name of the specified field in a result"],mysql_field_seek:["bool mysql_field_seek(resource result, int field_offset)","Sets result pointer to a specific field offset"],mysql_field_table:["string mysql_field_table(resource result, int field_offset)","Gets name of the table the specified field is in"],mysql_field_type:["string mysql_field_type(resource result, int field_offset)","Gets the type of the specified field in a result"],mysql_free_result:["bool mysql_free_result(resource result)","Free result memory"],mysql_get_client_info:["string mysql_get_client_info(void)","Returns a string that represents the client library version"],mysql_get_host_info:["string mysql_get_host_info([int link_identifier])","Returns a string describing the type of connection in use, including the server host name"],mysql_get_proto_info:["int mysql_get_proto_info([int link_identifier])","Returns the protocol version used by current connection"],mysql_get_server_info:["string mysql_get_server_info([int link_identifier])","Returns a string that represents the server version number"],mysql_info:["string mysql_info([int link_identifier])","Returns a string containing information about the most recent query"],mysql_insert_id:["int mysql_insert_id([int link_identifier])","Gets the ID generated from the previous INSERT operation"],mysql_list_dbs:["resource mysql_list_dbs([int link_identifier])","List databases available on a MySQL server"],mysql_list_fields:["resource mysql_list_fields(string database_name, string table_name [, int link_identifier])","List MySQL result fields"],mysql_list_processes:["resource mysql_list_processes([int link_identifier])","Returns a result set describing the current server threads"],mysql_list_tables:["resource mysql_list_tables(string database_name [, int link_identifier])","List tables in a MySQL database"],mysql_num_fields:["int mysql_num_fields(resource result)","Gets number of fields in a result"],mysql_num_rows:["int mysql_num_rows(resource result)","Gets number of rows in a result"],mysql_pconnect:["resource mysql_pconnect([string hostname[:port][:/path/to/socket] [, string username [, string password [, int flags]]]])","Opens a persistent connection to a MySQL Server"],mysql_ping:["bool mysql_ping([int link_identifier])","Ping a server connection. If no connection then reconnect."],mysql_query:["resource mysql_query(string query [, int link_identifier])","Sends an SQL query to MySQL"],mysql_real_escape_string:["string mysql_real_escape_string(string to_be_escaped [, int link_identifier])","Escape special characters in a string for use in a SQL statement, taking into account the current charset of the connection"],mysql_result:["mixed mysql_result(resource result, int row [, mixed field])","Gets result data"],mysql_select_db:["bool mysql_select_db(string database_name [, int link_identifier])","Selects a MySQL database"],mysql_set_charset:["bool mysql_set_charset(string csname [, int link_identifier])","sets client character set"],mysql_stat:["string mysql_stat([int link_identifier])","Returns a string containing status information"],mysql_thread_id:["int mysql_thread_id([int link_identifier])","Returns the thread id of current connection"],mysql_unbuffered_query:["resource mysql_unbuffered_query(string query [, int link_identifier])","Sends an SQL query to MySQL, without fetching and buffering the result rows"],mysqli_affected_rows:["mixed mysqli_affected_rows(object link)","Get number of affected rows in previous MySQL operation"],mysqli_autocommit:["bool mysqli_autocommit(object link, bool mode)","Turn auto commit on or of"],mysqli_cache_stats:["array mysqli_cache_stats(void)","Returns statistics about the zval cache"],mysqli_change_user:["bool mysqli_change_user(object link, string user, string password, string database)","Change logged-in user of the active connection"],mysqli_character_set_name:["string mysqli_character_set_name(object link)","Returns the name of the character set used for this connection"],mysqli_close:["bool mysqli_close(object link)","Close connection"],mysqli_commit:["bool mysqli_commit(object link)","Commit outstanding actions and close transaction"],mysqli_connect:["object mysqli_connect([string hostname [,string username [,string passwd [,string dbname [,int port [,string socket]]]]]])","Open a connection to a mysql server"],mysqli_connect_errno:["int mysqli_connect_errno(void)","Returns the numerical value of the error message from last connect command"],mysqli_connect_error:["string mysqli_connect_error(void)","Returns the text of the error message from previous MySQL operation"],mysqli_data_seek:["bool mysqli_data_seek(object result, int offset)","Move internal result pointer"],mysqli_debug:["void mysqli_debug(string debug)",""],mysqli_dump_debug_info:["bool mysqli_dump_debug_info(object link)",""],mysqli_embedded_server_end:["void mysqli_embedded_server_end(void)",""],mysqli_embedded_server_start:["bool mysqli_embedded_server_start(bool start, array arguments, array groups)","initialize and start embedded server"],mysqli_errno:["int mysqli_errno(object link)","Returns the numerical value of the error message from previous MySQL operation"],mysqli_error:["string mysqli_error(object link)","Returns the text of the error message from previous MySQL operation"],mysqli_fetch_all:["mixed mysqli_fetch_all (object result [,int resulttype])","Fetches all result rows as an associative array, a numeric array, or both"],mysqli_fetch_array:["mixed mysqli_fetch_array (object result [,int resulttype])","Fetch a result row as an associative array, a numeric array, or both"],mysqli_fetch_assoc:["mixed mysqli_fetch_assoc (object result)","Fetch a result row as an associative array"],mysqli_fetch_field:["mixed mysqli_fetch_field (object result)","Get column information from a result and return as an object"],mysqli_fetch_field_direct:["mixed mysqli_fetch_field_direct (object result, int offset)","Fetch meta-data for a single field"],mysqli_fetch_fields:["mixed mysqli_fetch_fields (object result)","Return array of objects containing field meta-data"],mysqli_fetch_lengths:["mixed mysqli_fetch_lengths (object result)","Get the length of each output in a result"],mysqli_fetch_object:["mixed mysqli_fetch_object (object result [, string class_name [, NULL|array ctor_params]])","Fetch a result row as an object"],mysqli_fetch_row:["array mysqli_fetch_row (object result)","Get a result row as an enumerated array"],mysqli_field_count:["int mysqli_field_count(object link)","Fetch the number of fields returned by the last query for the given link"],mysqli_field_seek:["int mysqli_field_seek(object result, int fieldnr)","Set result pointer to a specified field offset"],mysqli_field_tell:["int mysqli_field_tell(object result)","Get current field offset of result pointer"],mysqli_free_result:["void mysqli_free_result(object result)","Free query result memory for the given result handle"],mysqli_get_charset:["object mysqli_get_charset(object link)","returns a character set object"],mysqli_get_client_info:["string mysqli_get_client_info(void)","Get MySQL client info"],mysqli_get_client_stats:["array mysqli_get_client_stats(void)","Returns statistics about the zval cache"],mysqli_get_client_version:["int mysqli_get_client_version(void)","Get MySQL client info"],mysqli_get_connection_stats:["array mysqli_get_connection_stats(void)","Returns statistics about the zval cache"],mysqli_get_host_info:["string mysqli_get_host_info (object link)","Get MySQL host info"],mysqli_get_proto_info:["int mysqli_get_proto_info(object link)","Get MySQL protocol information"],mysqli_get_server_info:["string mysqli_get_server_info(object link)","Get MySQL server info"],mysqli_get_server_version:["int mysqli_get_server_version(object link)","Return the MySQL version for the server referenced by the given link"],mysqli_get_warnings:["object mysqli_get_warnings(object link) */",'PHP_FUNCTION(mysqli_get_warnings) { MY_MYSQL *mysql; zval *mysql_link; MYSQLI_RESOURCE *mysqli_resource; MYSQLI_WARNING *w; if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &mysql_link, mysqli_link_class_entry) == FAILURE) { return; } MYSQLI_FETCH_RESOURCE(mysql, MY_MYSQL*, &mysql_link, "mysqli_link", MYSQLI_STATUS_VALID); if (mysql_warning_count(mysql->mysql)) { w = php_get_warnings(mysql->mysql TSRMLS_CC); } else { RETURN_FALSE; } mysqli_resource = (MYSQLI_RESOURCE *)ecalloc (1, sizeof(MYSQLI_RESOURCE)); mysqli_resource->ptr = mysqli_resource->info = (void *)w; mysqli_resource->status = MYSQLI_STATUS_VALID; MYSQLI_RETURN_RESOURCE(mysqli_resource, mysqli_warning_class_entry); } /* }}}'],mysqli_info:["string mysqli_info(object link)","Get information about the most recent query"],mysqli_init:["resource mysqli_init(void)","Initialize mysqli and return a resource for use with mysql_real_connect"],mysqli_insert_id:["mixed mysqli_insert_id(object link)","Get the ID generated from the previous INSERT operation"],mysqli_kill:["bool mysqli_kill(object link, int processid)","Kill a mysql process on the server"],mysqli_link_construct:["object mysqli_link_construct()",""],mysqli_more_results:["bool mysqli_more_results(object link)","check if there any more query results from a multi query"],mysqli_multi_query:["bool mysqli_multi_query(object link, string query)","allows to execute multiple queries"],mysqli_next_result:["bool mysqli_next_result(object link)","read next result from multi_query"],mysqli_num_fields:["int mysqli_num_fields(object result)","Get number of fields in result"],mysqli_num_rows:["mixed mysqli_num_rows(object result)","Get number of rows in result"],mysqli_options:["bool mysqli_options(object link, int flags, mixed values)","Set options"],mysqli_ping:["bool mysqli_ping(object link)","Ping a server connection or reconnect if there is no connection"],mysqli_poll:["int mysqli_poll(array read, array write, array error, long sec [, long usec])","Poll connections"],mysqli_prepare:["mixed mysqli_prepare(object link, string query)","Prepare a SQL statement for execution"],mysqli_query:["mixed mysqli_query(object link, string query [,int resultmode]) */",'PHP_FUNCTION(mysqli_query) { MY_MYSQL *mysql; zval *mysql_link; MYSQLI_RESOURCE *mysqli_resource; MYSQL_RES *result; char *query = NULL; unsigned int query_len; unsigned long resultmode = MYSQLI_STORE_RESULT; if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Os|l", &mysql_link, mysqli_link_class_entry, &query, &query_len, &resultmode) == FAILURE) { return; } if (!query_len) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Empty query"); RETURN_FALSE; } if ((resultmode & ~MYSQLI_ASYNC) != MYSQLI_USE_RESULT && (resultmode & ~MYSQLI_ASYNC) != MYSQLI_STORE_RESULT) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid value for resultmode"); RETURN_FALSE; } MYSQLI_FETCH_RESOURCE(mysql, MY_MYSQL*, &mysql_link, "mysqli_link", MYSQLI_STATUS_VALID); MYSQLI_DISABLE_MQ; #ifdef MYSQLI_USE_MYSQLND if (resultmode & MYSQLI_ASYNC) { if (mysqli_async_query(mysql->mysql, query, query_len)) { MYSQLI_REPORT_MYSQL_ERROR(mysql->mysql); RETURN_FALSE; } mysql->async_result_fetch_type = resultmode & ~MYSQLI_ASYNC; RETURN_TRUE; } #endif if (mysql_real_query(mysql->mysql, query, query_len)) { MYSQLI_REPORT_MYSQL_ERROR(mysql->mysql); RETURN_FALSE; } if (!mysql_field_count(mysql->mysql)) { /* no result set - not a SELECT'],mysqli_real_connect:["bool mysqli_real_connect(object link [,string hostname [,string username [,string passwd [,string dbname [,int port [,string socket [,int flags]]]]]]])","Open a connection to a mysql server"],mysqli_real_escape_string:["string mysqli_real_escape_string(object link, string escapestr)","Escapes special characters in a string for use in a SQL statement, taking into account the current charset of the connection"],mysqli_real_query:["bool mysqli_real_query(object link, string query)","Binary-safe version of mysql_query()"],mysqli_reap_async_query:["int mysqli_reap_async_query(object link)","Poll connections"],mysqli_refresh:["bool mysqli_refresh(object link, long options)","Flush tables or caches, or reset replication server information"],mysqli_report:["bool mysqli_report(int flags)","sets report level"],mysqli_rollback:["bool mysqli_rollback(object link)","Undo actions from current transaction"],mysqli_select_db:["bool mysqli_select_db(object link, string dbname)","Select a MySQL database"],mysqli_set_charset:["bool mysqli_set_charset(object link, string csname)","sets client character set"],mysqli_set_local_infile_default:["void mysqli_set_local_infile_default(object link)","unsets user defined handler for load local infile command"],mysqli_set_local_infile_handler:["bool mysqli_set_local_infile_handler(object link, callback read_func)","Set callback functions for LOAD DATA LOCAL INFILE"],mysqli_sqlstate:["string mysqli_sqlstate(object link)","Returns the SQLSTATE error from previous MySQL operation"],mysqli_ssl_set:["bool mysqli_ssl_set(object link ,string key ,string cert ,string ca ,string capath ,string cipher])",""],mysqli_stat:["mixed mysqli_stat(object link)","Get current system status"],mysqli_stmt_affected_rows:["mixed mysqli_stmt_affected_rows(object stmt)","Return the number of rows affected in the last query for the given link"],mysqli_stmt_attr_get:["int mysqli_stmt_attr_get(object stmt, long attr)",""],mysqli_stmt_attr_set:["int mysqli_stmt_attr_set(object stmt, long attr, long mode)",""],mysqli_stmt_bind_param:["bool mysqli_stmt_bind_param(object stmt, string types, mixed variable [,mixed,....])","Bind variables to a prepared statement as parameters"],mysqli_stmt_bind_result:["bool mysqli_stmt_bind_result(object stmt, mixed var, [,mixed, ...])","Bind variables to a prepared statement for result storage"],mysqli_stmt_close:["bool mysqli_stmt_close(object stmt)","Close statement"],mysqli_stmt_data_seek:["void mysqli_stmt_data_seek(object stmt, int offset)","Move internal result pointer"],mysqli_stmt_errno:["int mysqli_stmt_errno(object stmt)",""],mysqli_stmt_error:["string mysqli_stmt_error(object stmt)",""],mysqli_stmt_execute:["bool mysqli_stmt_execute(object stmt)","Execute a prepared statement"],mysqli_stmt_fetch:["mixed mysqli_stmt_fetch(object stmt)","Fetch results from a prepared statement into the bound variables"],mysqli_stmt_field_count:["int mysqli_stmt_field_count(object stmt) {","Return the number of result columns for the given statement"],mysqli_stmt_free_result:["void mysqli_stmt_free_result(object stmt)","Free stored result memory for the given statement handle"],mysqli_stmt_get_result:["object mysqli_stmt_get_result(object link)","Buffer result set on client"],mysqli_stmt_get_warnings:["object mysqli_stmt_get_warnings(object link) */",'PHP_FUNCTION(mysqli_stmt_get_warnings) { MY_STMT *stmt; zval *stmt_link; MYSQLI_RESOURCE *mysqli_resource; MYSQLI_WARNING *w; if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &stmt_link, mysqli_stmt_class_entry) == FAILURE) { return; } MYSQLI_FETCH_RESOURCE(stmt, MY_STMT*, &stmt_link, "mysqli_stmt", MYSQLI_STATUS_VALID); if (mysqli_stmt_warning_count(stmt->stmt)) { w = php_get_warnings(mysqli_stmt_get_connection(stmt->stmt) TSRMLS_CC); } else { RETURN_FALSE; } mysqli_resource = (MYSQLI_RESOURCE *)ecalloc (1, sizeof(MYSQLI_RESOURCE)); mysqli_resource->ptr = mysqli_resource->info = (void *)w; mysqli_resource->status = MYSQLI_STATUS_VALID; MYSQLI_RETURN_RESOURCE(mysqli_resource, mysqli_warning_class_entry); } /* }}}'],mysqli_stmt_init:["mixed mysqli_stmt_init(object link)","Initialize statement object"],mysqli_stmt_insert_id:["mixed mysqli_stmt_insert_id(object stmt)","Get the ID generated from the previous INSERT operation"],mysqli_stmt_next_result:["bool mysqli_stmt_next_result(object link)","read next result from multi_query"],mysqli_stmt_num_rows:["mixed mysqli_stmt_num_rows(object stmt)","Return the number of rows in statements result set"],mysqli_stmt_param_count:["int mysqli_stmt_param_count(object stmt)","Return the number of parameter for the given statement"],mysqli_stmt_prepare:["bool mysqli_stmt_prepare(object stmt, string query)","prepare server side statement with query"],mysqli_stmt_reset:["bool mysqli_stmt_reset(object stmt)","reset a prepared statement"],mysqli_stmt_result_metadata:["mixed mysqli_stmt_result_metadata(object stmt)","return result set from statement"],mysqli_stmt_send_long_data:["bool mysqli_stmt_send_long_data(object stmt, int param_nr, string data)",""],mysqli_stmt_sqlstate:["string mysqli_stmt_sqlstate(object stmt)",""],mysqli_stmt_store_result:["bool mysqli_stmt_store_result(stmt)",""],mysqli_store_result:["object mysqli_store_result(object link)","Buffer result set on client"],mysqli_thread_id:["int mysqli_thread_id(object link)","Return the current thread ID"],mysqli_thread_safe:["bool mysqli_thread_safe(void)","Return whether thread safety is given or not"],mysqli_use_result:["mixed mysqli_use_result(object link)","Directly retrieve query results - do not buffer results on client side"],mysqli_warning_count:["int mysqli_warning_count (object link)","Return number of warnings from the last query for the given link"],natcasesort:["void natcasesort(array &array_arg)","Sort an array using case-insensitive natural sort"],natsort:["void natsort(array &array_arg)","Sort an array using natural sort"],next:["mixed next(array array_arg)","Move array argument's internal pointer to the next element and return it"],ngettext:["string ngettext(string MSGID1, string MSGID2, int N)","Plural version of gettext()"],nl2br:["string nl2br(string str [, bool is_xhtml])","Converts newlines to HTML line breaks"],nl_langinfo:["string nl_langinfo(int item)","Query language and locale information"],normalizer_is_normalize:["bool normalizer_is_normalize( string $input [, string $form = FORM_C] )","* Test if a string is in a given normalization form."],normalizer_normalize:["string normalizer_normalize( string $input [, string $form = FORM_C] )","* Normalize a string."],nsapi_request_headers:["array nsapi_request_headers(void)","Get all headers from the request"],nsapi_response_headers:["array nsapi_response_headers(void)","Get all headers from the response"],nsapi_virtual:["bool nsapi_virtual(string uri)","Perform an NSAPI sub-request"],number_format:["string number_format(float number [, int num_decimal_places [, string dec_seperator, string thousands_seperator]])","Formats a number with grouped thousands"],numfmt_create:["NumberFormatter numfmt_create( string $locale, int style[, string $pattern ] )","* Create number formatter."],numfmt_format:["mixed numfmt_format( NumberFormatter $nf, mixed $num[, int type] )","* Format a number."],numfmt_format_currency:["mixed numfmt_format_currency( NumberFormatter $nf, double $num, string $currency )","* Format a number as currency."],numfmt_get_attribute:["mixed numfmt_get_attribute( NumberFormatter $nf, int $attr )","* Get formatter attribute value."],numfmt_get_error_code:["int numfmt_get_error_code( NumberFormatter $nf )","* Get formatter's last error code."],numfmt_get_error_message:["string numfmt_get_error_message( NumberFormatter $nf )","* Get text description for formatter's last error code."],numfmt_get_locale:["string numfmt_get_locale( NumberFormatter $nf[, int type] )","* Get formatter locale."],numfmt_get_pattern:["string numfmt_get_pattern( NumberFormatter $nf )","* Get formatter pattern."],numfmt_get_symbol:["string numfmt_get_symbol( NumberFormatter $nf, int $attr )","* Get formatter symbol value."],numfmt_get_text_attribute:["string numfmt_get_text_attribute( NumberFormatter $nf, int $attr )","* Get formatter attribute value."],numfmt_parse:["mixed numfmt_parse( NumberFormatter $nf, string $str[, int $type, int &$position ])","* Parse a number."],numfmt_parse_currency:["double numfmt_parse_currency( NumberFormatter $nf, string $str, string $&currency[, int $&position] )","* Parse a number as currency."],numfmt_parse_message:["array numfmt_parse_message( string $locale, string $pattern, string $source )","* Parse a message."],numfmt_set_attribute:["bool numfmt_set_attribute( NumberFormatter $nf, int $attr, mixed $value )","* Get formatter attribute value."],numfmt_set_pattern:["bool numfmt_set_pattern( NumberFormatter $nf, string $pattern )","* Set formatter pattern."],numfmt_set_symbol:["bool numfmt_set_symbol( NumberFormatter $nf, int $attr, string $symbol )","* Set formatter symbol value."],numfmt_set_text_attribute:["bool numfmt_set_text_attribute( NumberFormatter $nf, int $attr, string $value )","* Get formatter attribute value."],ob_clean:["bool ob_clean(void)","Clean (delete) the current output buffer"],ob_end_clean:["bool ob_end_clean(void)","Clean the output buffer, and delete current output buffer"],ob_end_flush:["bool ob_end_flush(void)","Flush (send) the output buffer, and delete current output buffer"],ob_flush:["bool ob_flush(void)","Flush (send) contents of the output buffer. The last buffer content is sent to next buffer"],ob_get_clean:["bool ob_get_clean(void)","Get current buffer contents and delete current output buffer"],ob_get_contents:["string ob_get_contents(void)","Return the contents of the output buffer"],ob_get_flush:["bool ob_get_flush(void)","Get current buffer contents, flush (send) the output buffer, and delete current output buffer"],ob_get_length:["int ob_get_length(void)","Return the length of the output buffer"],ob_get_level:["int ob_get_level(void)","Return the nesting level of the output buffer"],ob_get_status:["false|array ob_get_status([bool full_status])","Return the status of the active or all output buffers"],ob_gzhandler:["string ob_gzhandler(string str, int mode)","Encode str based on accept-encoding setting - designed to be called from ob_start()"],ob_iconv_handler:["string ob_iconv_handler(string contents, int status)","Returns str in output buffer converted to the iconv.output_encoding character set"],ob_implicit_flush:["void ob_implicit_flush([int flag])","Turn implicit flush on/off and is equivalent to calling flush() after every output call"],ob_list_handlers:["false|array ob_list_handlers()","* List all output_buffers in an array"],ob_start:["bool ob_start([ string|array user_function [, int chunk_size [, bool erase]]])","Turn on Output Buffering (specifying an optional output handler)."],oci_bind_array_by_name:["bool oci_bind_array_by_name(resource stmt, string name, array &var, int max_table_length [, int max_item_length [, int type ]])","Bind a PHP array to an Oracle PL/SQL type by name"],oci_bind_by_name:["bool oci_bind_by_name(resource stmt, string name, mixed &var, [, int maxlength [, int type]])","Bind a PHP variable to an Oracle placeholder by name"],oci_cancel:["bool oci_cancel(resource stmt)","Cancel reading from a cursor"],oci_close:["bool oci_close(resource connection)","Disconnect from database"],oci_collection_append:["bool oci_collection_append(string value)","Append an object to the collection"],oci_collection_assign:["bool oci_collection_assign(object from)","Assign a collection from another existing collection"],oci_collection_element_assign:["bool oci_collection_element_assign(int index, string val)","Assign element val to collection at index ndx"],oci_collection_element_get:["string oci_collection_element_get(int ndx)","Retrieve the value at collection index ndx"],oci_collection_max:["int oci_collection_max()","Return the max value of a collection. For a varray this is the maximum length of the array"],oci_collection_size:["int oci_collection_size()","Return the size of a collection"],oci_collection_trim:["bool oci_collection_trim(int num)","Trim num elements from the end of a collection"],oci_commit:["bool oci_commit(resource connection)","Commit the current context"],oci_connect:["resource oci_connect(string user, string pass [, string db [, string charset [, int session_mode ]])","Connect to an Oracle database and log on. Returns a new session."],oci_define_by_name:["bool oci_define_by_name(resource stmt, string name, mixed &var [, int type])","Define a PHP variable to an Oracle column by name"],oci_error:["array oci_error([resource stmt|connection|global])","Return the last error of stmt|connection|global. If no error happened returns false."],oci_execute:["bool oci_execute(resource stmt [, int mode])","Execute a parsed statement"],oci_fetch:["bool oci_fetch(resource stmt)","Prepare a new row of data for reading"],oci_fetch_all:["int oci_fetch_all(resource stmt, array &output[, int skip[, int maxrows[, int flags]]])","Fetch all rows of result data into an array"],oci_fetch_array:["array oci_fetch_array( resource stmt [, int mode ])","Fetch a result row as an array"],oci_fetch_assoc:["array oci_fetch_assoc( resource stmt )","Fetch a result row as an associative array"],oci_fetch_object:["object oci_fetch_object( resource stmt )","Fetch a result row as an object"],oci_fetch_row:["array oci_fetch_row( resource stmt )","Fetch a result row as an enumerated array"],oci_field_is_null:["bool oci_field_is_null(resource stmt, int col)","Tell whether a column is NULL"],oci_field_name:["string oci_field_name(resource stmt, int col)","Tell the name of a column"],oci_field_precision:["int oci_field_precision(resource stmt, int col)","Tell the precision of a column"],oci_field_scale:["int oci_field_scale(resource stmt, int col)","Tell the scale of a column"],oci_field_size:["int oci_field_size(resource stmt, int col)","Tell the maximum data size of a column"],oci_field_type:["mixed oci_field_type(resource stmt, int col)","Tell the data type of a column"],oci_field_type_raw:["int oci_field_type_raw(resource stmt, int col)","Tell the raw oracle data type of a column"],oci_free_collection:["bool oci_free_collection()","Deletes collection object"],oci_free_descriptor:["bool oci_free_descriptor()","Deletes large object description"],oci_free_statement:["bool oci_free_statement(resource stmt)","Free all resources associated with a statement"],oci_internal_debug:["void oci_internal_debug(int onoff)","Toggle internal debugging output for the OCI extension"],oci_lob_append:["bool oci_lob_append( object lob )","Appends data from a LOB to another LOB"],oci_lob_close:["bool oci_lob_close()","Closes lob descriptor"],oci_lob_copy:["bool oci_lob_copy( object lob_to, object lob_from [, int length ] )","Copies data from a LOB to another LOB"],oci_lob_eof:["bool oci_lob_eof()","Checks if EOF is reached"],oci_lob_erase:["int oci_lob_erase( [ int offset [, int length ] ] )","Erases a specified portion of the internal LOB, starting at a specified offset"],oci_lob_export:["bool oci_lob_export([string filename [, int start [, int length]]])","Writes a large object into a file"],oci_lob_flush:["bool oci_lob_flush( [ int flag ] )","Flushes the LOB buffer"],oci_lob_import:["bool oci_lob_import( string filename )","Loads file into a LOB"],oci_lob_is_equal:["bool oci_lob_is_equal( object lob1, object lob2 )","Tests to see if two LOB/FILE locators are equal"],oci_lob_load:["string oci_lob_load()","Loads a large object"],oci_lob_read:["string oci_lob_read( int length )","Reads particular part of a large object"],oci_lob_rewind:["bool oci_lob_rewind()","Rewind pointer of a LOB"],oci_lob_save:["bool oci_lob_save( string data [, int offset ])","Saves a large object"],oci_lob_seek:["bool oci_lob_seek( int offset [, int whence ])","Moves the pointer of a LOB"],oci_lob_size:["int oci_lob_size()","Returns size of a large object"],oci_lob_tell:["int oci_lob_tell()","Tells LOB pointer position"],oci_lob_truncate:["bool oci_lob_truncate( [ int length ])","Truncates a LOB"],oci_lob_write:["int oci_lob_write( string string [, int length ])","Writes data to current position of a LOB"],oci_lob_write_temporary:["bool oci_lob_write_temporary(string var [, int lob_type])","Writes temporary blob"],oci_new_collection:["object oci_new_collection(resource connection, string tdo [, string schema])","Initialize a new collection"],oci_new_connect:["resource oci_new_connect(string user, string pass [, string db])","Connect to an Oracle database and log on. Returns a new session."],oci_new_cursor:["resource oci_new_cursor(resource connection)","Return a new cursor (Statement-Handle) - use this to bind ref-cursors!"],oci_new_descriptor:["object oci_new_descriptor(resource connection [, int type])","Initialize a new empty descriptor LOB/FILE (LOB is default)"],oci_num_fields:["int oci_num_fields(resource stmt)","Return the number of result columns in a statement"],oci_num_rows:["int oci_num_rows(resource stmt)","Return the row count of an OCI statement"],oci_parse:["resource oci_parse(resource connection, string query)","Parse a query and return a statement"],oci_password_change:["bool oci_password_change(resource connection, string username, string old_password, string new_password)","Changes the password of an account"],oci_pconnect:["resource oci_pconnect(string user, string pass [, string db [, string charset ]])","Connect to an Oracle database using a persistent connection and log on. Returns a new session."],oci_result:["string oci_result(resource stmt, mixed column)","Return a single column of result data"],oci_rollback:["bool oci_rollback(resource connection)","Rollback the current context"],oci_server_version:["string oci_server_version(resource connection)","Return a string containing server version information"],oci_set_action:["bool oci_set_action(resource connection, string value)","Sets the action attribute on the connection"],oci_set_client_identifier:["bool oci_set_client_identifier(resource connection, string value)","Sets the client identifier attribute on the connection"],oci_set_client_info:["bool oci_set_client_info(resource connection, string value)","Sets the client info attribute on the connection"],oci_set_edition:["bool oci_set_edition(string value)","Sets the edition attribute for all subsequent connections created"],oci_set_module_name:["bool oci_set_module_name(resource connection, string value)","Sets the module attribute on the connection"],oci_set_prefetch:["bool oci_set_prefetch(resource stmt, int prefetch_rows)","Sets the number of rows to be prefetched on execute to prefetch_rows for stmt"],oci_statement_type:["string oci_statement_type(resource stmt)","Return the query type of an OCI statement"],ocifetchinto:["int ocifetchinto(resource stmt, array &output [, int mode])","Fetch a row of result data into an array"],ocigetbufferinglob:["bool ocigetbufferinglob()","Returns current state of buffering for a LOB"],ocisetbufferinglob:["bool ocisetbufferinglob( boolean flag )","Enables/disables buffering for a LOB"],octdec:["int octdec(string octal_number)","Returns the decimal equivalent of an octal string"],odbc_autocommit:["mixed odbc_autocommit(resource connection_id [, int OnOff])","Toggle autocommit mode or get status"],odbc_binmode:["bool odbc_binmode(int result_id, int mode)","Handle binary column data"],odbc_close:["void odbc_close(resource connection_id)","Close an ODBC connection"],odbc_close_all:["void odbc_close_all(void)","Close all ODBC connections"],odbc_columnprivileges:["resource odbc_columnprivileges(resource connection_id, string catalog, string schema, string table, string column)","Returns a result identifier that can be used to fetch a list of columns and associated privileges for the specified table"],odbc_columns:["resource odbc_columns(resource connection_id [, string qualifier [, string owner [, string table_name [, string column_name]]]])","Returns a result identifier that can be used to fetch a list of column names in specified tables"],odbc_commit:["bool odbc_commit(resource connection_id)","Commit an ODBC transaction"],odbc_connect:["resource odbc_connect(string DSN, string user, string password [, int cursor_option])","Connect to a datasource"],odbc_cursor:["string odbc_cursor(resource result_id)","Get cursor name"],odbc_data_source:["array odbc_data_source(resource connection_id, int fetch_type)","Return information about the currently connected data source"],odbc_error:["string odbc_error([resource connection_id])","Get the last error code"],odbc_errormsg:["string odbc_errormsg([resource connection_id])","Get the last error message"],odbc_exec:["resource odbc_exec(resource connection_id, string query [, int flags])","Prepare and execute an SQL statement"],odbc_execute:["bool odbc_execute(resource result_id [, array parameters_array])","Execute a prepared statement"],odbc_fetch_array:["array odbc_fetch_array(int result [, int rownumber])","Fetch a result row as an associative array"],odbc_fetch_into:["int odbc_fetch_into(resource result_id, array &result_array, [, int rownumber])","Fetch one result row into an array"],odbc_fetch_object:["object odbc_fetch_object(int result [, int rownumber])","Fetch a result row as an object"],odbc_fetch_row:["bool odbc_fetch_row(resource result_id [, int row_number])","Fetch a row"],odbc_field_len:["int odbc_field_len(resource result_id, int field_number)","Get the length (precision) of a column"],odbc_field_name:["string odbc_field_name(resource result_id, int field_number)","Get a column name"],odbc_field_num:["int odbc_field_num(resource result_id, string field_name)","Return column number"],odbc_field_scale:["int odbc_field_scale(resource result_id, int field_number)","Get the scale of a column"],odbc_field_type:["string odbc_field_type(resource result_id, int field_number)","Get the datatype of a column"],odbc_foreignkeys:["resource odbc_foreignkeys(resource connection_id, string pk_qualifier, string pk_owner, string pk_table, string fk_qualifier, string fk_owner, string fk_table)","Returns a result identifier to either a list of foreign keys in the specified table or a list of foreign keys in other tables that refer to the primary key in the specified table"],odbc_free_result:["bool odbc_free_result(resource result_id)","Free resources associated with a result"],odbc_gettypeinfo:["resource odbc_gettypeinfo(resource connection_id [, int data_type])","Returns a result identifier containing information about data types supported by the data source"],odbc_longreadlen:["bool odbc_longreadlen(int result_id, int length)","Handle LONG columns"],odbc_next_result:["bool odbc_next_result(resource result_id)","Checks if multiple results are avaiable"],odbc_num_fields:["int odbc_num_fields(resource result_id)","Get number of columns in a result"],odbc_num_rows:["int odbc_num_rows(resource result_id)","Get number of rows in a result"],odbc_pconnect:["resource odbc_pconnect(string DSN, string user, string password [, int cursor_option])","Establish a persistent connection to a datasource"],odbc_prepare:["resource odbc_prepare(resource connection_id, string query)","Prepares a statement for execution"],odbc_primarykeys:["resource odbc_primarykeys(resource connection_id, string qualifier, string owner, string table)","Returns a result identifier listing the column names that comprise the primary key for a table"],odbc_procedurecolumns:["resource odbc_procedurecolumns(resource connection_id [, string qualifier, string owner, string proc, string column])","Returns a result identifier containing the list of input and output parameters, as well as the columns that make up the result set for the specified procedures"],odbc_procedures:["resource odbc_procedures(resource connection_id [, string qualifier, string owner, string name])","Returns a result identifier containg the list of procedure names in a datasource"],odbc_result:["mixed odbc_result(resource result_id, mixed field)","Get result data"],odbc_result_all:["int odbc_result_all(resource result_id [, string format])","Print result as HTML table"],odbc_rollback:["bool odbc_rollback(resource connection_id)","Rollback a transaction"],odbc_setoption:["bool odbc_setoption(resource conn_id|result_id, int which, int option, int value)","Sets connection or statement options"],odbc_specialcolumns:["resource odbc_specialcolumns(resource connection_id, int type, string qualifier, string owner, string table, int scope, int nullable)","Returns a result identifier containing either the optimal set of columns that uniquely identifies a row in the table or columns that are automatically updated when any value in the row is updated by a transaction"],odbc_statistics:["resource odbc_statistics(resource connection_id, string qualifier, string owner, string name, int unique, int accuracy)","Returns a result identifier that contains statistics about a single table and the indexes associated with the table"],odbc_tableprivileges:["resource odbc_tableprivileges(resource connection_id, string qualifier, string owner, string name)","Returns a result identifier containing a list of tables and the privileges associated with each table"],odbc_tables:["resource odbc_tables(resource connection_id [, string qualifier [, string owner [, string name [, string table_types]]]])","Call the SQLTables function"],opendir:["mixed opendir(string path[, resource context])","Open a directory and return a dir_handle"],openlog:["bool openlog(string ident, int option, int facility)","Open connection to system logger"],openssl_csr_export:["bool openssl_csr_export(resource csr, string &out [, bool notext=true])","Exports a CSR to file or a var"],openssl_csr_export_to_file:["bool openssl_csr_export_to_file(resource csr, string outfilename [, bool notext=true])","Exports a CSR to file"],openssl_csr_get_public_key:["mixed openssl_csr_get_public_key(mixed csr)","Returns the subject of a CERT or FALSE on error"],openssl_csr_get_subject:["mixed openssl_csr_get_subject(mixed csr)","Returns the subject of a CERT or FALSE on error"],openssl_csr_new:["bool openssl_csr_new(array dn, resource &privkey [, array configargs [, array extraattribs]])","Generates a privkey and CSR"],openssl_csr_sign:["resource openssl_csr_sign(mixed csr, mixed x509, mixed priv_key, long days [, array config_args [, long serial]])","Signs a cert with another CERT"],openssl_decrypt:["string openssl_decrypt(string data, string method, string password [, bool raw_input=false])","Takes raw or base64 encoded string and dectupt it using given method and key"],openssl_dh_compute_key:["string openssl_dh_compute_key(string pub_key, resource dh_key)","Computes shared sicret for public value of remote DH key and local DH key"],openssl_digest:["string openssl_digest(string data, string method [, bool raw_output=false])","Computes digest hash value for given data using given method, returns raw or binhex encoded string"],openssl_encrypt:["string openssl_encrypt(string data, string method, string password [, bool raw_output=false])","Encrypts given data with given method and key, returns raw or base64 encoded string"],openssl_error_string:["mixed openssl_error_string(void)","Returns a description of the last error, and alters the index of the error messages. Returns false when the are no more messages"],openssl_get_cipher_methods:["array openssl_get_cipher_methods([bool aliases = false])","Return array of available cipher methods"],openssl_get_md_methods:["array openssl_get_md_methods([bool aliases = false])","Return array of available digest methods"],openssl_open:["bool openssl_open(string data, &string opendata, string ekey, mixed privkey)","Opens data"],openssl_pkcs12_export:["bool openssl_pkcs12_export(mixed x509, string &out, mixed priv_key, string pass[, array args])","Creates and exports a PKCS12 to a var"],openssl_pkcs12_export_to_file:["bool openssl_pkcs12_export_to_file(mixed x509, string filename, mixed priv_key, string pass[, array args])","Creates and exports a PKCS to file"],openssl_pkcs12_read:["bool openssl_pkcs12_read(string PKCS12, array &certs, string pass)","Parses a PKCS12 to an array"],openssl_pkcs7_decrypt:["bool openssl_pkcs7_decrypt(string infilename, string outfilename, mixed recipcert [, mixed recipkey])","Decrypts the S/MIME message in the file name infilename and output the results to the file name outfilename. recipcert is a CERT for one of the recipients. recipkey specifies the private key matching recipcert, if recipcert does not include the key"],openssl_pkcs7_encrypt:["bool openssl_pkcs7_encrypt(string infile, string outfile, mixed recipcerts, array headers [, long flags [, long cipher]])","Encrypts the message in the file named infile with the certificates in recipcerts and output the result to the file named outfile"],openssl_pkcs7_sign:["bool openssl_pkcs7_sign(string infile, string outfile, mixed signcert, mixed signkey, array headers [, long flags [, string extracertsfilename]])","Signs the MIME message in the file named infile with signcert/signkey and output the result to file name outfile. headers lists plain text headers to exclude from the signed portion of the message, and should include to, from and subject as a minimum"],openssl_pkcs7_verify:["bool openssl_pkcs7_verify(string filename, long flags [, string signerscerts [, array cainfo [, string extracerts [, string content]]]])","Verifys that the data block is intact, the signer is who they say they are, and returns the CERTs of the signers"],openssl_pkey_export:["bool openssl_pkey_export(mixed key, &mixed out [, string passphrase [, array config_args]])","Gets an exportable representation of a key into a string or file"],openssl_pkey_export_to_file:["bool openssl_pkey_export_to_file(mixed key, string outfilename [, string passphrase, array config_args)","Gets an exportable representation of a key into a file"],openssl_pkey_free:["void openssl_pkey_free(int key)","Frees a key"],openssl_pkey_get_details:["resource openssl_pkey_get_details(resource key)","returns an array with the key details (bits, pkey, type)"],openssl_pkey_get_private:["int openssl_pkey_get_private(string key [, string passphrase])","Gets private keys"],openssl_pkey_get_public:["int openssl_pkey_get_public(mixed cert)","Gets public key from X.509 certificate"],openssl_pkey_new:["resource openssl_pkey_new([array configargs])","Generates a new private key"],openssl_private_decrypt:["bool openssl_private_decrypt(string data, string &decrypted, mixed key [, int padding])","Decrypts data with private key"],openssl_private_encrypt:["bool openssl_private_encrypt(string data, string &crypted, mixed key [, int padding])","Encrypts data with private key"],openssl_public_decrypt:["bool openssl_public_decrypt(string data, string &crypted, resource key [, int padding])","Decrypts data with public key"],openssl_public_encrypt:["bool openssl_public_encrypt(string data, string &crypted, mixed key [, int padding])","Encrypts data with public key"],openssl_random_pseudo_bytes:["string openssl_random_pseudo_bytes(integer length [, &bool returned_strong_result])","Returns a string of the length specified filled with random pseudo bytes"],openssl_seal:["int openssl_seal(string data, &string sealdata, &array ekeys, array pubkeys)","Seals data"],openssl_sign:["bool openssl_sign(string data, &string signature, mixed key[, mixed method])","Signs data"],openssl_verify:["int openssl_verify(string data, string signature, mixed key[, mixed method])","Verifys data"],openssl_x509_check_private_key:["bool openssl_x509_check_private_key(mixed cert, mixed key)","Checks if a private key corresponds to a CERT"],openssl_x509_checkpurpose:["int openssl_x509_checkpurpose(mixed x509cert, int purpose, array cainfo [, string untrustedfile])","Checks the CERT to see if it can be used for the purpose in purpose. cainfo holds information about trusted CAs"],openssl_x509_export:["bool openssl_x509_export(mixed x509, string &out [, bool notext = true])","Exports a CERT to file or a var"],openssl_x509_export_to_file:["bool openssl_x509_export_to_file(mixed x509, string outfilename [, bool notext = true])","Exports a CERT to file or a var"],openssl_x509_free:["void openssl_x509_free(resource x509)","Frees X.509 certificates"],openssl_x509_parse:["array openssl_x509_parse(mixed x509 [, bool shortnames=true])","Returns an array of the fields/values of the CERT"],openssl_x509_read:["resource openssl_x509_read(mixed cert)","Reads X.509 certificates"],ord:["int ord(string character)","Returns ASCII value of character"],output_add_rewrite_var:["bool output_add_rewrite_var(string name, string value)","Add URL rewriter values"],output_reset_rewrite_vars:["bool output_reset_rewrite_vars(void)","Reset(clear) URL rewriter values"],pack:["string pack(string format, mixed arg1 [, mixed arg2 [, mixed ...]])","Takes one or more arguments and packs them into a binary string according to the format argument"],parse_ini_file:["array parse_ini_file(string filename [, bool process_sections [, int scanner_mode]])","Parse configuration file"],parse_ini_string:["array parse_ini_string(string ini_string [, bool process_sections [, int scanner_mode]])","Parse configuration string"],parse_locale:["static array parse_locale($locale)","* parses a locale-id into an array the different parts of it"],parse_str:["void parse_str(string encoded_string [, array result])","Parses GET/POST/COOKIE data and sets global variables"],parse_url:["mixed parse_url(string url, [int url_component])","Parse a URL and return its components"],passthru:["void passthru(string command [, int &return_value])","Execute an external program and display raw output"],pathinfo:["array pathinfo(string path[, int options])","Returns information about a certain string"],pclose:["int pclose(resource fp)","Close a file pointer opened by popen()"],pcnlt_sigwaitinfo:["int pcnlt_sigwaitinfo(array set[, array &siginfo])","Synchronously wait for queued signals"],pcntl_alarm:["int pcntl_alarm(int seconds)","Set an alarm clock for delivery of a signal"],pcntl_exec:["bool pcntl_exec(string path [, array args [, array envs]])","Executes specified program in current process space as defined by exec(2)"],pcntl_fork:["int pcntl_fork(void)","Forks the currently running process following the same behavior as the UNIX fork() system call"],pcntl_getpriority:["int pcntl_getpriority([int pid [, int process_identifier]])","Get the priority of any process"],pcntl_setpriority:["bool pcntl_setpriority(int priority [, int pid [, int process_identifier]])","Change the priority of any process"],pcntl_signal:["bool pcntl_signal(int signo, callback handle [, bool restart_syscalls])","Assigns a system signal handler to a PHP function"],pcntl_signal_dispatch:["bool pcntl_signal_dispatch()","Dispatch signals to signal handlers"],pcntl_sigprocmask:["bool pcntl_sigprocmask(int how, array set[, array &oldset])","Examine and change blocked signals"],pcntl_sigtimedwait:["int pcntl_sigtimedwait(array set[, array &siginfo[, int seconds[, int nanoseconds]]])","Wait for queued signals"],pcntl_wait:["int pcntl_wait(int &status)","Waits on or returns the status of a forked child as defined by the waitpid() system call"],pcntl_waitpid:["int pcntl_waitpid(int pid, int &status, int options)","Waits on or returns the status of a forked child as defined by the waitpid() system call"],pcntl_wexitstatus:["int pcntl_wexitstatus(int status)","Returns the status code of a child's exit"],pcntl_wifexited:["bool pcntl_wifexited(int status)","Returns true if the child status code represents a successful exit"],pcntl_wifsignaled:["bool pcntl_wifsignaled(int status)","Returns true if the child status code represents a process that was terminated due to a signal"],pcntl_wifstopped:["bool pcntl_wifstopped(int status)","Returns true if the child status code represents a stopped process (WUNTRACED must have been used with waitpid)"],pcntl_wstopsig:["int pcntl_wstopsig(int status)","Returns the number of the signal that caused the process to stop who's status code is passed"],pcntl_wtermsig:["int pcntl_wtermsig(int status)","Returns the number of the signal that terminated the process who's status code is passed"],pdo_drivers:["array pdo_drivers()","Return array of available PDO drivers"],pfsockopen:["resource pfsockopen(string hostname, int port [, int errno [, string errstr [, float timeout]]])","Open persistent Internet or Unix domain socket connection"],pg_affected_rows:["int pg_affected_rows(resource result)","Returns the number of affected tuples"],pg_cancel_query:["bool pg_cancel_query(resource connection)","Cancel request"],pg_client_encoding:["string pg_client_encoding([resource connection])","Get the current client encoding"],pg_close:["bool pg_close([resource connection])","Close a PostgreSQL connection"],pg_connect:["resource pg_connect(string connection_string[, int connect_type] | [string host, string port [, string options [, string tty,]]] string database)","Open a PostgreSQL connection"],pg_connection_busy:["bool pg_connection_busy(resource connection)","Get connection is busy or not"],pg_connection_reset:["bool pg_connection_reset(resource connection)","Reset connection (reconnect)"],pg_connection_status:["int pg_connection_status(resource connnection)","Get connection status"],pg_convert:["array pg_convert(resource db, string table, array values[, int options])","Check and convert values for PostgreSQL SQL statement"],pg_copy_from:["bool pg_copy_from(resource connection, string table_name , array rows [, string delimiter [, string null_as]])","Copy table from array"],pg_copy_to:["array pg_copy_to(resource connection, string table_name [, string delimiter [, string null_as]])","Copy table to array"],pg_dbname:["string pg_dbname([resource connection])","Get the database name"],pg_delete:["mixed pg_delete(resource db, string table, array ids[, int options])","Delete records has ids (id=>value)"],pg_end_copy:["bool pg_end_copy([resource connection])","Sync with backend. Completes the Copy command"],pg_escape_bytea:["string pg_escape_bytea([resource connection,] string data)","Escape binary for bytea type"],pg_escape_string:["string pg_escape_string([resource connection,] string data)","Escape string for text/char type"],pg_execute:["resource pg_execute([resource connection,] string stmtname, array params)","Execute a prepared query"],pg_fetch_all:["array pg_fetch_all(resource result)","Fetch all rows into array"],pg_fetch_all_columns:["array pg_fetch_all_columns(resource result [, int column_number])","Fetch all rows into array"],pg_fetch_array:["array pg_fetch_array(resource result [, int row [, int result_type]])","Fetch a row as an array"],pg_fetch_assoc:["array pg_fetch_assoc(resource result [, int row])","Fetch a row as an assoc array"],pg_fetch_object:["object pg_fetch_object(resource result [, int row [, string class_name [, NULL|array ctor_params]]])","Fetch a row as an object"],pg_fetch_result:["mixed pg_fetch_result(resource result, [int row_number,] mixed field_name)","Returns values from a result identifier"],pg_fetch_row:["array pg_fetch_row(resource result [, int row [, int result_type]])","Get a row as an enumerated array"],pg_field_is_null:["int pg_field_is_null(resource result, [int row,] mixed field_name_or_number)","Test if a field is NULL"],pg_field_name:["string pg_field_name(resource result, int field_number)","Returns the name of the field"],pg_field_num:["int pg_field_num(resource result, string field_name)","Returns the field number of the named field"],pg_field_prtlen:["int pg_field_prtlen(resource result, [int row,] mixed field_name_or_number)","Returns the printed length"],pg_field_size:["int pg_field_size(resource result, int field_number)","Returns the internal size of the field"],pg_field_table:["mixed pg_field_table(resource result, int field_number[, bool oid_only])","Returns the name of the table field belongs to, or table's oid if oid_only is true"],pg_field_type:["string pg_field_type(resource result, int field_number)","Returns the type name for the given field"],pg_field_type_oid:["string pg_field_type_oid(resource result, int field_number)","Returns the type oid for the given field"],pg_free_result:["bool pg_free_result(resource result)","Free result memory"],pg_get_notify:["array pg_get_notify([resource connection[, result_type]])","Get asynchronous notification"],pg_get_pid:["int pg_get_pid([resource connection)","Get backend(server) pid"],pg_get_result:["resource pg_get_result(resource connection)","Get asynchronous query result"],pg_host:["string pg_host([resource connection])","Returns the host name associated with the connection"],pg_insert:["mixed pg_insert(resource db, string table, array values[, int options])","Insert values (filed=>value) to table"],pg_last_error:["string pg_last_error([resource connection])","Get the error message string"],pg_last_notice:["string pg_last_notice(resource connection)","Returns the last notice set by the backend"],pg_last_oid:["string pg_last_oid(resource result)","Returns the last object identifier"],pg_lo_close:["bool pg_lo_close(resource large_object)","Close a large object"],pg_lo_create:["mixed pg_lo_create([resource connection],[mixed large_object_oid])","Create a large object"],pg_lo_export:["bool pg_lo_export([resource connection, ] int objoid, string filename)","Export large object direct to filesystem"],pg_lo_import:["int pg_lo_import([resource connection, ] string filename [, mixed oid])","Import large object direct from filesystem"],pg_lo_open:["resource pg_lo_open([resource connection,] int large_object_oid, string mode)","Open a large object and return fd"],pg_lo_read:["string pg_lo_read(resource large_object [, int len])","Read a large object"],pg_lo_read_all:["int pg_lo_read_all(resource large_object)","Read a large object and send straight to browser"],pg_lo_seek:["bool pg_lo_seek(resource large_object, int offset [, int whence])","Seeks position of large object"],pg_lo_tell:["int pg_lo_tell(resource large_object)","Returns current position of large object"],pg_lo_unlink:["bool pg_lo_unlink([resource connection,] string large_object_oid)","Delete a large object"],pg_lo_write:["int pg_lo_write(resource large_object, string buf [, int len])","Write a large object"],pg_meta_data:["array pg_meta_data(resource db, string table)","Get meta_data"],pg_num_fields:["int pg_num_fields(resource result)","Return the number of fields in the result"],pg_num_rows:["int pg_num_rows(resource result)","Return the number of rows in the result"],pg_options:["string pg_options([resource connection])","Get the options associated with the connection"],pg_parameter_status:["string|false pg_parameter_status([resource connection,] string param_name)","Returns the value of a server parameter"],pg_pconnect:["resource pg_pconnect(string connection_string | [string host, string port [, string options [, string tty,]]] string database)","Open a persistent PostgreSQL connection"],pg_ping:["bool pg_ping([resource connection])","Ping database. If connection is bad, try to reconnect."],pg_port:["int pg_port([resource connection])","Return the port number associated with the connection"],pg_prepare:["resource pg_prepare([resource connection,] string stmtname, string query)","Prepare a query for future execution"],pg_put_line:["bool pg_put_line([resource connection,] string query)","Send null-terminated string to backend server"],pg_query:["resource pg_query([resource connection,] string query)","Execute a query"],pg_query_params:["resource pg_query_params([resource connection,] string query, array params)","Execute a query"],pg_result_error:["string pg_result_error(resource result)","Get error message associated with result"],pg_result_error_field:["string pg_result_error_field(resource result, int fieldcode)","Get error message field associated with result"],pg_result_seek:["bool pg_result_seek(resource result, int offset)","Set internal row offset"],pg_result_status:["mixed pg_result_status(resource result[, long result_type])","Get status of query result"],pg_select:["mixed pg_select(resource db, string table, array ids[, int options])","Select records that has ids (id=>value)"],pg_send_execute:["bool pg_send_execute(resource connection, string stmtname, array params)","Executes prevriously prepared stmtname asynchronously"],pg_send_prepare:["bool pg_send_prepare(resource connection, string stmtname, string query)","Asynchronously prepare a query for future execution"],pg_send_query:["bool pg_send_query(resource connection, string query)","Send asynchronous query"],pg_send_query_params:["bool pg_send_query_params(resource connection, string query, array params)","Send asynchronous parameterized query"],pg_set_client_encoding:["int pg_set_client_encoding([resource connection,] string encoding)","Set client encoding"],pg_set_error_verbosity:["int pg_set_error_verbosity([resource connection,] int verbosity)","Set error verbosity"],pg_trace:["bool pg_trace(string filename [, string mode [, resource connection]])","Enable tracing a PostgreSQL connection"],pg_transaction_status:["int pg_transaction_status(resource connnection)","Get transaction status"],pg_tty:["string pg_tty([resource connection])","Return the tty name associated with the connection"],pg_unescape_bytea:["string pg_unescape_bytea(string data)","Unescape binary for bytea type"],pg_untrace:["bool pg_untrace([resource connection])","Disable tracing of a PostgreSQL connection"],pg_update:["mixed pg_update(resource db, string table, array fields, array ids[, int options])","Update table using values (field=>value) and ids (id=>value)"],pg_version:["array pg_version([resource connection])","Returns an array with client, protocol and server version (when available)"],php_egg_logo_guid:["string php_egg_logo_guid(void)","Return the special ID used to request the PHP logo in phpinfo screens"],php_ini_loaded_file:["string php_ini_loaded_file(void)","Return the actual loaded ini filename"],php_ini_scanned_files:["string php_ini_scanned_files(void)","Return comma-separated string of .ini files parsed from the additional ini dir"],php_logo_guid:["string php_logo_guid(void)","Return the special ID used to request the PHP logo in phpinfo screens"],php_real_logo_guid:["string php_real_logo_guid(void)","Return the special ID used to request the PHP logo in phpinfo screens"],php_sapi_name:["string php_sapi_name(void)","Return the current SAPI module name"],php_snmpv3:["void php_snmpv3(INTERNAL_FUNCTION_PARAMETERS, int st)","* * Generic SNMPv3 object fetcher * From here is passed on the the common internal object fetcher. * * st=SNMP_CMD_GET snmp3_get() - query an agent and return a single value. * st=SNMP_CMD_GETNEXT snmp3_getnext() - query an agent and return the next single value. * st=SNMP_CMD_WALK snmp3_walk() - walk the mib and return a single dimensional array * containing the values. * st=SNMP_CMD_REALWALK snmp3_real_walk() - walk the mib and return an * array of oid,value pairs. * st=SNMP_CMD_SET snmp3_set() - query an agent and set a single value *"],php_strip_whitespace:["string php_strip_whitespace(string file_name)","Return source with stripped comments and whitespace"],php_uname:["string php_uname(void)","Return information about the system PHP was built on"],phpcredits:["void phpcredits([int flag])","Prints the list of people who've contributed to the PHP project"],phpinfo:["void phpinfo([int what])","Output a page of useful information about PHP and the current request"],phpversion:["string phpversion([string extension])","Return the current PHP version"],pi:["float pi(void)","Returns an approximation of pi"],png2wbmp:["bool png2wbmp (string f_org, string f_dest, int d_height, int d_width, int threshold)","Convert PNG image to WBMP image"],popen:["resource popen(string command, string mode)","Execute a command and open either a read or a write pipe to it"],posix_access:["bool posix_access(string file [, int mode])","Determine accessibility of a file (POSIX.1 5.6.3)"],posix_ctermid:["string posix_ctermid(void)","Generate terminal path name (POSIX.1, 4.7.1)"],posix_get_last_error:["int posix_get_last_error(void)","Retrieve the error number set by the last posix function which failed."],posix_getcwd:["string posix_getcwd(void)","Get working directory pathname (POSIX.1, 5.2.2)"],posix_getegid:["int posix_getegid(void)","Get the current effective group id (POSIX.1, 4.2.1)"],posix_geteuid:["int posix_geteuid(void)","Get the current effective user id (POSIX.1, 4.2.1)"],posix_getgid:["int posix_getgid(void)","Get the current group id (POSIX.1, 4.2.1)"],posix_getgrgid:["array posix_getgrgid(long gid)","Group database access (POSIX.1, 9.2.1)"],posix_getgrnam:["array posix_getgrnam(string groupname)","Group database access (POSIX.1, 9.2.1)"],posix_getgroups:["array posix_getgroups(void)","Get supplementary group id's (POSIX.1, 4.2.3)"],posix_getlogin:["string posix_getlogin(void)","Get user name (POSIX.1, 4.2.4)"],posix_getpgid:["int posix_getpgid(void)","Get the process group id of the specified process (This is not a POSIX function, but a SVR4ism, so we compile conditionally)"],posix_getpgrp:["int posix_getpgrp(void)","Get current process group id (POSIX.1, 4.3.1)"],posix_getpid:["int posix_getpid(void)","Get the current process id (POSIX.1, 4.1.1)"],posix_getppid:["int posix_getppid(void)","Get the parent process id (POSIX.1, 4.1.1)"],posix_getpwnam:["array posix_getpwnam(string groupname)","User database access (POSIX.1, 9.2.2)"],posix_getpwuid:["array posix_getpwuid(long uid)","User database access (POSIX.1, 9.2.2)"],posix_getrlimit:["array posix_getrlimit(void)","Get system resource consumption limits (This is not a POSIX function, but a BSDism and a SVR4ism. We compile conditionally)"],posix_getsid:["int posix_getsid(void)","Get process group id of session leader (This is not a POSIX function, but a SVR4ism, so be compile conditionally)"],posix_getuid:["int posix_getuid(void)","Get the current user id (POSIX.1, 4.2.1)"],posix_initgroups:["bool posix_initgroups(string name, int base_group_id)","Calculate the group access list for the user specified in name."],posix_isatty:["bool posix_isatty(int fd)","Determine if filedesc is a tty (POSIX.1, 4.7.1)"],posix_kill:["bool posix_kill(int pid, int sig)","Send a signal to a process (POSIX.1, 3.3.2)"],posix_mkfifo:["bool posix_mkfifo(string pathname, int mode)","Make a FIFO special file (POSIX.1, 5.4.2)"],posix_mknod:["bool posix_mknod(string pathname, int mode [, int major [, int minor]])","Make a special or ordinary file (POSIX.1)"],posix_setegid:["bool posix_setegid(long uid)","Set effective group id"],posix_seteuid:["bool posix_seteuid(long uid)","Set effective user id"],posix_setgid:["bool posix_setgid(int uid)","Set group id (POSIX.1, 4.2.2)"],posix_setpgid:["bool posix_setpgid(int pid, int pgid)","Set process group id for job control (POSIX.1, 4.3.3)"],posix_setsid:["int posix_setsid(void)","Create session and set process group id (POSIX.1, 4.3.2)"],posix_setuid:["bool posix_setuid(long uid)","Set user id (POSIX.1, 4.2.2)"],posix_strerror:["string posix_strerror(int errno)","Retrieve the system error message associated with the given errno."],posix_times:["array posix_times(void)","Get process times (POSIX.1, 4.5.2)"],posix_ttyname:["string posix_ttyname(int fd)","Determine terminal device name (POSIX.1, 4.7.2)"],posix_uname:["array posix_uname(void)","Get system name (POSIX.1, 4.4.1)"],pow:["number pow(number base, number exponent)","Returns base raised to the power of exponent. Returns integer result when possible"],preg_filter:["mixed preg_filter(mixed regex, mixed replace, mixed subject [, int limit [, int &count]])","Perform Perl-style regular expression replacement and only return matches."],preg_grep:["array preg_grep(string regex, array input [, int flags])","Searches array and returns entries which match regex"],preg_last_error:["int preg_last_error()","Returns the error code of the last regexp execution."],preg_match:["int preg_match(string pattern, string subject [, array &subpatterns [, int flags [, int offset]]])","Perform a Perl-style regular expression match"],preg_match_all:["int preg_match_all(string pattern, string subject, array &subpatterns [, int flags [, int offset]])","Perform a Perl-style global regular expression match"],preg_quote:["string preg_quote(string str [, string delim_char])","Quote regular expression characters plus an optional character"],preg_replace:["mixed preg_replace(mixed regex, mixed replace, mixed subject [, int limit [, int &count]])","Perform Perl-style regular expression replacement."],preg_replace_callback:["mixed preg_replace_callback(mixed regex, mixed callback, mixed subject [, int limit [, int &count]])","Perform Perl-style regular expression replacement using replacement callback."],preg_split:["array preg_split(string pattern, string subject [, int limit [, int flags]])","Split string into an array using a perl-style regular expression as a delimiter"],prev:["mixed prev(array array_arg)","Move array argument's internal pointer to the previous element and return it"],print:["int print(string arg)","Output a string"],print_r:["mixed print_r(mixed var [, bool return])","Prints out or returns information about the specified variable"],printf:["int printf(string format [, mixed arg1 [, mixed ...]])","Output a formatted string"],proc_close:["int proc_close(resource process)","close a process opened by proc_open"],proc_get_status:["array proc_get_status(resource process)","get information about a process opened by proc_open"],proc_nice:["bool proc_nice(int priority)","Change the priority of the current process"],proc_open:["resource proc_open(string command, array descriptorspec, array &pipes [, string cwd [, array env [, array other_options]]])","Run a process with more control over it's file descriptors"],proc_terminate:["bool proc_terminate(resource process [, long signal])","kill a process opened by proc_open"],property_exists:["bool property_exists(mixed object_or_class, string property_name)","Checks if the object or class has a property"],pspell_add_to_personal:["bool pspell_add_to_personal(int pspell, string word)","Adds a word to a personal list"],pspell_add_to_session:["bool pspell_add_to_session(int pspell, string word)","Adds a word to the current session"],pspell_check:["bool pspell_check(int pspell, string word)","Returns true if word is valid"],pspell_clear_session:["bool pspell_clear_session(int pspell)","Clears the current session"],pspell_config_create:["int pspell_config_create(string language [, string spelling [, string jargon [, string encoding]]])","Create a new config to be used later to create a manager"],pspell_config_data_dir:["bool pspell_config_data_dir(int conf, string directory)","location of language data files"],pspell_config_dict_dir:["bool pspell_config_dict_dir(int conf, string directory)","location of the main word list"],pspell_config_ignore:["bool pspell_config_ignore(int conf, int ignore)","Ignore words <= n chars"],pspell_config_mode:["bool pspell_config_mode(int conf, long mode)","Select mode for config (PSPELL_FAST, PSPELL_NORMAL or PSPELL_BAD_SPELLERS)"],pspell_config_personal:["bool pspell_config_personal(int conf, string personal)","Use a personal dictionary for this config"],pspell_config_repl:["bool pspell_config_repl(int conf, string repl)","Use a personal dictionary with replacement pairs for this config"],pspell_config_runtogether:["bool pspell_config_runtogether(int conf, bool runtogether)","Consider run-together words as valid components"],pspell_config_save_repl:["bool pspell_config_save_repl(int conf, bool save)","Save replacement pairs when personal list is saved for this config"],pspell_new:["int pspell_new(string language [, string spelling [, string jargon [, string encoding [, int mode]]]])","Load a dictionary"],pspell_new_config:["int pspell_new_config(int config)","Load a dictionary based on the given config"],pspell_new_personal:["int pspell_new_personal(string personal, string language [, string spelling [, string jargon [, string encoding [, int mode]]]])","Load a dictionary with a personal wordlist"],pspell_save_wordlist:["bool pspell_save_wordlist(int pspell)","Saves the current (personal) wordlist"],pspell_store_replacement:["bool pspell_store_replacement(int pspell, string misspell, string correct)","Notify the dictionary of a user-selected replacement"],pspell_suggest:["array pspell_suggest(int pspell, string word)","Returns array of suggestions"],putenv:["bool putenv(string setting)","Set the value of an environment variable"],quoted_printable_decode:["string quoted_printable_decode(string str)","Convert a quoted-printable string to an 8 bit string"],quoted_printable_encode:["string quoted_printable_encode(string str) */",'PHP_FUNCTION(quoted_printable_encode) { char *str, *new_str; int str_len; size_t new_str_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) != SUCCESS) { return; } if (!str_len) { RETURN_EMPTY_STRING(); } new_str = (char *)php_quot_print_encode((unsigned char *)str, (size_t)str_len, &new_str_len); RETURN_STRINGL(new_str, new_str_len, 0); } /* }}}'],quotemeta:["string quotemeta(string str)","Quotes meta characters"],rad2deg:["float rad2deg(float number)","Converts the radian number to the equivalent number in degrees"],rand:["int rand([int min, int max])","Returns a random number"],range:["array range(mixed low, mixed high[, int step])","Create an array containing the range of integers or characters from low to high (inclusive)"],rawurldecode:["string rawurldecode(string str)","Decodes URL-encodes string"],rawurlencode:["string rawurlencode(string str)","URL-encodes string"],readdir:["string readdir([resource dir_handle])","Read directory entry from dir_handle"],readfile:["int readfile(string filename [, bool use_include_path[, resource context]])","Output a file or a URL"],readgzfile:["int readgzfile(string filename [, int use_include_path])","Output a .gz-file"],readline:["string readline([string prompt])","Reads a line"],readline_add_history:["bool readline_add_history(string prompt)","Adds a line to the history"],readline_callback_handler_install:["void readline_callback_handler_install(string prompt, mixed callback)","Initializes the readline callback interface and terminal, prints the prompt and returns immediately"],readline_callback_handler_remove:["bool readline_callback_handler_remove()","Removes a previously installed callback handler and restores terminal settings"],readline_callback_read_char:["void readline_callback_read_char()","Informs the readline callback interface that a character is ready for input"],readline_clear_history:["bool readline_clear_history(void)","Clears the history"],readline_completion_function:["bool readline_completion_function(string funcname)","Readline completion function?"],readline_info:["mixed readline_info([string varname [, string newvalue]])","Gets/sets various internal readline variables."],readline_list_history:["array readline_list_history(void)","Lists the history"],readline_on_new_line:["void readline_on_new_line(void)","Inform readline that the cursor has moved to a new line"],readline_read_history:["bool readline_read_history([string filename])","Reads the history"],readline_redisplay:["void readline_redisplay(void)","Ask readline to redraw the display"],readline_write_history:["bool readline_write_history([string filename])","Writes the history"],readlink:["string readlink(string filename)","Return the target of a symbolic link"],realpath:["string realpath(string path)","Return the resolved path"],realpath_cache_get:["bool realpath_cache_get()","Get current size of realpath cache"],realpath_cache_size:["bool realpath_cache_size()","Get current size of realpath cache"],recode_file:["bool recode_file(string request, resource input, resource output)","Recode file input into file output according to request"],recode_string:["string recode_string(string request, string str)","Recode string str according to request string"],register_shutdown_function:["void register_shutdown_function(string function_name)","Register a user-level function to be called on request termination"],register_tick_function:["bool register_tick_function(string function_name [, mixed arg [, mixed ... ]])","Registers a tick callback function"],rename:["bool rename(string old_name, string new_name[, resource context])","Rename a file"],require:["bool acequire(string path)","Includes and evaluates the specified file, erroring if the file cannot be included"],acequire_once:["bool acequire_once(string path)","Includes and evaluates the specified file, erroring if the file cannot be included"],reset:["mixed reset(array array_arg)","Set array argument's internal pointer to the first element and return it"],restore_error_handler:["void restore_error_handler(void)","Restores the previously defined error handler function"],restore_exception_handler:["void restore_exception_handler(void)","Restores the previously defined exception handler function"],restore_include_path:["void restore_include_path()","Restore the value of the include_path configuration option"],rewind:["bool rewind(resource fp)","Rewind the position of a file pointer"],rewinddir:["void rewinddir([resource dir_handle])","Rewind dir_handle back to the start"],rmdir:["bool rmdir(string dirname[, resource context])","Remove a directory"],round:["float round(float number [, int precision [, int mode]])","Returns the number rounded to specified precision"],rsort:["bool rsort(array &array_arg [, int sort_flags])","Sort an array in reverse order"],rtrim:["string rtrim(string str [, string character_mask])","Removes trailing whitespace"],scandir:["array scandir(string dir [, int sorting_order [, resource context]])","List files & directories inside the specified path"],sem_acquire:["bool sem_acquire(resource id)","Acquires the semaphore with the given id, blocking if necessary"],sem_get:["resource sem_get(int key [, int max_acquire [, int perm [, int auto_release]])","Return an id for the semaphore with the given key, and allow max_acquire (default 1) processes to acquire it simultaneously"],sem_release:["bool sem_release(resource id)","Releases the semaphore with the given id"],sem_remove:["bool sem_remove(resource id)","Removes semaphore from Unix systems"],serialize:["string serialize(mixed variable)","Returns a string representation of variable (which can later be unserialized)"],session_cache_expire:["int session_cache_expire([int new_cache_expire])","Return the current cache expire. If new_cache_expire is given, the current cache_expire is replaced with new_cache_expire"],session_cache_limiter:["string session_cache_limiter([string new_cache_limiter])","Return the current cache limiter. If new_cache_limited is given, the current cache_limiter is replaced with new_cache_limiter"],session_decode:["bool session_decode(string data)","Deserializes data and reinitializes the variables"],session_destroy:["bool session_destroy(void)","Destroy the current session and all data associated with it"],session_encode:["string session_encode(void)","Serializes the current setup and returns the serialized representation"],session_get_cookie_params:["array session_get_cookie_params(void)","Return the session cookie parameters"],session_id:["string session_id([string newid])","Return the current session id. If newid is given, the session id is replaced with newid"],session_is_registered:["bool session_is_registered(string varname)","Checks if a variable is registered in session"],session_module_name:["string session_module_name([string newname])","Return the current module name used for accessing session data. If newname is given, the module name is replaced with newname"],session_name:["string session_name([string newname])","Return the current session name. If newname is given, the session name is replaced with newname"],session_regenerate_id:["bool session_regenerate_id([bool delete_old_session])","Update the current session id with a newly generated one. If delete_old_session is set to true, remove the old session."],session_register:["bool session_register(mixed var_names [, mixed ...])","Adds varname(s) to the list of variables which are freezed at the session end"],session_save_path:["string session_save_path([string newname])","Return the current save path passed to module_name. If newname is given, the save path is replaced with newname"],session_set_cookie_params:["void session_set_cookie_params(int lifetime [, string path [, string domain [, bool secure[, bool httponly]]]])","Set session cookie parameters"],session_set_save_handler:["void session_set_save_handler(string open, string close, string read, string write, string destroy, string gc)","Sets user-level functions"],session_start:["bool session_start(void)","Begin session - reinitializes freezed variables, registers browsers etc"],session_unregister:["bool session_unregister(string varname)","Removes varname from the list of variables which are freezed at the session end"],session_unset:["void session_unset(void)","Unset all registered variables"],session_write_close:["void session_write_close(void)","Write session data and end session"],set_error_handler:["string set_error_handler(string error_handler [, int error_types])","Sets a user-defined error handler function. Returns the previously defined error handler, or false on error"],set_exception_handler:["string set_exception_handler(callable exception_handler)","Sets a user-defined exception handler function. Returns the previously defined exception handler, or false on error"],set_include_path:["string set_include_path(string new_include_path)","Sets the include_path configuration option"],set_magic_quotes_runtime:["bool set_magic_quotes_runtime(int new_setting)","Set the current active configuration setting of magic_quotes_runtime and return previous"],set_time_limit:["bool set_time_limit(int seconds)","Sets the maximum time a script can run"],setcookie:["bool setcookie(string name [, string value [, int expires [, string path [, string domain [, bool secure[, bool httponly]]]]]])","Send a cookie"],setlocale:["string setlocale(mixed category, string locale [, string ...])","Set locale information"],setrawcookie:["bool setrawcookie(string name [, string value [, int expires [, string path [, string domain [, bool secure[, bool httponly]]]]]])","Send a cookie with no url encoding of the value"],settype:["bool settype(mixed var, string type)","Set the type of the variable"],sha1:["string sha1(string str [, bool raw_output])","Calculate the sha1 hash of a string"],sha1_file:["string sha1_file(string filename [, bool raw_output])","Calculate the sha1 hash of given filename"],shell_exec:["string shell_exec(string cmd)","Execute command via shell and return complete output as string"],shm_attach:["int shm_attach(int key [, int memsize [, int perm]])","Creates or open a shared memory segment"],shm_detach:["bool shm_detach(resource shm_identifier)","Disconnects from shared memory segment"],shm_get_var:["mixed shm_get_var(resource id, int variable_key)","Returns a variable from shared memory"],shm_has_var:["bool shm_has_var(resource id, int variable_key)","Checks whether a specific entry exists"],shm_put_var:["bool shm_put_var(resource shm_identifier, int variable_key, mixed variable)","Inserts or updates a variable in shared memory"],shm_remove:["bool shm_remove(resource shm_identifier)","Removes shared memory from Unix systems"],shm_remove_var:["bool shm_remove_var(resource id, int variable_key)","Removes variable from shared memory"],shmop_close:["void shmop_close (int shmid)","closes a shared memory segment"],shmop_delete:["bool shmop_delete (int shmid)","mark segment for deletion"],shmop_open:["int shmop_open (int key, string flags, int mode, int size)","gets and attaches a shared memory segment"],shmop_read:["string shmop_read (int shmid, int start, int count)","reads from a shm segment"],shmop_size:["int shmop_size (int shmid)","returns the shm size"],shmop_write:["int shmop_write (int shmid, string data, int offset)","writes to a shared memory segment"],shuffle:["bool shuffle(array array_arg)","Randomly shuffle the contents of an array"],similar_text:["int similar_text(string str1, string str2 [, float percent])","Calculates the similarity between two strings"],simplexml_import_dom:["simplemxml_element simplexml_import_dom(domNode node [, string class_name])","Get a simplexml_element object from dom to allow for processing"],simplexml_load_file:["simplemxml_element simplexml_load_file(string filename [, string class_name [, int options [, string ns [, bool is_prefix]]]])","Load a filename and return a simplexml_element object to allow for processing"],simplexml_load_string:["simplemxml_element simplexml_load_string(string data [, string class_name [, int options [, string ns [, bool is_prefix]]]])","Load a string and return a simplexml_element object to allow for processing"],sin:["float sin(float number)","Returns the sine of the number in radians"],sinh:["float sinh(float number)","Returns the hyperbolic sine of the number, defined as (exp(number) - exp(-number))/2"],sleep:["void sleep(int seconds)","Delay for a given number of seconds"],smfi_addheader:["bool smfi_addheader(string headerf, string headerv)","Adds a header to the current message."],smfi_addrcpt:["bool smfi_addrcpt(string rcpt)","Add a recipient to the message envelope."],smfi_chgheader:["bool smfi_chgheader(string headerf, string headerv)","Changes a header's value for the current message."],smfi_delrcpt:["bool smfi_delrcpt(string rcpt)","Removes the named recipient from the current message's envelope."],smfi_getsymval:["string smfi_getsymval(string macro)","Returns the value of the given macro or NULL if the macro is not defined."],smfi_replacebody:["bool smfi_replacebody(string body)","Replaces the body of the current message. If called more than once, subsequent calls result in data being appended to the new body."],smfi_setflags:["void smfi_setflags(long flags)","Sets the flags describing the actions the filter may take."],smfi_setreply:["bool smfi_setreply(string rcode, string xcode, string message)","Directly set the SMTP error reply code for this connection. This code will be used on subsequent error replies resulting from actions taken by this filter."],smfi_settimeout:["void smfi_settimeout(long timeout)","Sets the number of seconds libmilter will wait for an MTA connection before timing out a socket."],snmp2_get:["string snmp2_get(string host, string community, string object_id [, int timeout [, int retries]])","Fetch a SNMP object"],snmp2_getnext:["string snmp2_getnext(string host, string community, string object_id [, int timeout [, int retries]])","Fetch a SNMP object"],snmp2_real_walk:["array snmp2_real_walk(string host, string community, string object_id [, int timeout [, int retries]])","Return all objects including their respective object id withing the specified one"],snmp2_set:["int snmp2_set(string host, string community, string object_id, string type, mixed value [, int timeout [, int retries]])","Set the value of a SNMP object"],snmp2_walk:["array snmp2_walk(string host, string community, string object_id [, int timeout [, int retries]])","Return all objects under the specified object id"],snmp3_get:["int snmp3_get(string host, string sec_name, string sec_level, string auth_protocol, string auth_passphrase, string priv_protocol, string priv_passphrase, string object_id [, int timeout [, int retries]])","Fetch the value of a SNMP object"],snmp3_getnext:["int snmp3_getnext(string host, string sec_name, string sec_level, string auth_protocol, string auth_passphrase, string priv_protocol, string priv_passphrase, string object_id [, int timeout [, int retries]])","Fetch the value of a SNMP object"],snmp3_real_walk:["int snmp3_real_walk(string host, string sec_name, string sec_level, string auth_protocol, string auth_passphrase, string priv_protocol, string priv_passphrase, string object_id [, int timeout [, int retries]])","Fetch the value of a SNMP object"],snmp3_set:["int snmp3_set(string host, string sec_name, string sec_level, string auth_protocol, string auth_passphrase, string priv_protocol, string priv_passphrase, string object_id, string type, mixed value [, int timeout [, int retries]])","Fetch the value of a SNMP object"],snmp3_walk:["int snmp3_walk(string host, string sec_name, string sec_level, string auth_protocol, string auth_passphrase, string priv_protocol, string priv_passphrase, string object_id [, int timeout [, int retries]])","Fetch the value of a SNMP object"],snmp_get_quick_print:["bool snmp_get_quick_print(void)","Return the current status of quick_print"],snmp_get_valueretrieval:["int snmp_get_valueretrieval()","Return the method how the SNMP values will be returned"],snmp_read_mib:["int snmp_read_mib(string filename)","Reads and parses a MIB file into the active MIB tree."],snmp_set_enum_print:["void snmp_set_enum_print(int enum_print)","Return all values that are enums with their enum value instead of the raw integer"],snmp_set_oid_output_format:["void snmp_set_oid_output_format(int oid_format)","Set the OID output format."],snmp_set_quick_print:["void snmp_set_quick_print(int quick_print)","Return all objects including their respective object id withing the specified one"],snmp_set_valueretrieval:["void snmp_set_valueretrieval(int method)","Specify the method how the SNMP values will be returned"],snmpget:["string snmpget(string host, string community, string object_id [, int timeout [, int retries]])","Fetch a SNMP object"],snmpgetnext:["string snmpgetnext(string host, string community, string object_id [, int timeout [, int retries]])","Fetch a SNMP object"],snmprealwalk:["array snmprealwalk(string host, string community, string object_id [, int timeout [, int retries]])","Return all objects including their respective object id withing the specified one"],snmpset:["int snmpset(string host, string community, string object_id, string type, mixed value [, int timeout [, int retries]])","Set the value of a SNMP object"],snmpwalk:["array snmpwalk(string host, string community, string object_id [, int timeout [, int retries]])","Return all objects under the specified object id"],socket_accept:["resource socket_accept(resource socket)","Accepts a connection on the listening socket fd"],socket_bind:["bool socket_bind(resource socket, string addr [, int port])","Binds an open socket to a listening port, port is only specified in AF_INET family."],socket_clear_error:["void socket_clear_error([resource socket])","Clears the error on the socket or the last error code."],socket_close:["void socket_close(resource socket)","Closes a file descriptor"],socket_connect:["bool socket_connect(resource socket, string addr [, int port])","Opens a connection to addr:port on the socket specified by socket"],socket_create:["resource socket_create(int domain, int type, int protocol)","Creates an endpoint for communication in the domain specified by domain, of type specified by type"],socket_create_listen:["resource socket_create_listen(int port[, int backlog])","Opens a socket on port to accept connections"],socket_create_pair:["bool socket_create_pair(int domain, int type, int protocol, array &fd)","Creates a pair of indistinguishable sockets and stores them in fds."],socket_get_option:["mixed socket_get_option(resource socket, int level, int optname)","Gets socket options for the socket"],socket_getpeername:["bool socket_getpeername(resource socket, string &addr[, int &port])","Queries the remote side of the given socket which may either result in host/port or in a UNIX filesystem path, dependent on its type."],socket_getsockname:["bool socket_getsockname(resource socket, string &addr[, int &port])","Queries the remote side of the given socket which may either result in host/port or in a UNIX filesystem path, dependent on its type."],socket_last_error:["int socket_last_error([resource socket])","Returns the last socket error (either the last used or the provided socket resource)"],socket_listen:["bool socket_listen(resource socket[, int backlog])","Sets the maximum number of connections allowed to be waited for on the socket specified by fd"],socket_read:["string socket_read(resource socket, int length [, int type])","Reads a maximum of length bytes from socket"],socket_recv:["int socket_recv(resource socket, string &buf, int len, int flags)","Receives data from a connected socket"],socket_recvfrom:["int socket_recvfrom(resource socket, string &buf, int len, int flags, string &name [, int &port])","Receives data from a socket, connected or not"],socket_select:["int socket_select(array &read_fds, array &write_fds, array &except_fds, int tv_sec[, int tv_usec])","Runs the select() system call on the sets mentioned with a timeout specified by tv_sec and tv_usec"],socket_send:["int socket_send(resource socket, string buf, int len, int flags)","Sends data to a connected socket"],socket_sendto:["int socket_sendto(resource socket, string buf, int len, int flags, string addr [, int port])","Sends a message to a socket, whether it is connected or not"],socket_set_block:["bool socket_set_block(resource socket)","Sets blocking mode on a socket resource"],socket_set_nonblock:["bool socket_set_nonblock(resource socket)","Sets nonblocking mode on a socket resource"],socket_set_option:["bool socket_set_option(resource socket, int level, int optname, int|array optval)","Sets socket options for the socket"],socket_shutdown:["bool socket_shutdown(resource socket[, int how])","Shuts down a socket for receiving, sending, or both."],socket_strerror:["string socket_strerror(int errno)","Returns a string describing an error"],socket_write:["int socket_write(resource socket, string buf[, int length])","Writes the buffer to the socket resource, length is optional"],solid_fetch_prev:["bool solid_fetch_prev(resource result_id)",""],sort:["bool sort(array &array_arg [, int sort_flags])","Sort an array"],soundex:["string soundex(string str)","Calculate the soundex key of a string"],spl_autoload:["void spl_autoload(string class_name [, string file_extensions])","Default implementation for __autoload()"],spl_autoload_call:["void spl_autoload_call(string class_name)","Try all registerd autoload function to load the requested class"],spl_autoload_extensions:["string spl_autoload_extensions([string file_extensions])","Register and return default file extensions for spl_autoload"],spl_autoload_functions:["false|array spl_autoload_functions()","Return all registered __autoload() functionns"],spl_autoload_register:['bool spl_autoload_register([mixed autoload_function = "spl_autoload" [, throw = true [, prepend]]])',"Register given function as __autoload() implementation"],spl_autoload_unregister:["bool spl_autoload_unregister(mixed autoload_function)","Unregister given function as __autoload() implementation"],spl_classes:["array spl_classes()","Return an array containing the names of all clsses and interfaces defined in SPL"],spl_object_hash:["string spl_object_hash(object obj)","Return hash id for given object"],split:["array split(string pattern, string string [, int limit])","Split string into array by regular expression"],spliti:["array spliti(string pattern, string string [, int limit])","Split string into array by regular expression case-insensitive"],sprintf:["string sprintf(string format [, mixed arg1 [, mixed ...]])","Return a formatted string"],sql_regcase:["string sql_regcase(string string)","Make regular expression for case insensitive match"],sqlite_array_query:["array sqlite_array_query(resource db, string query [ , int result_type [, bool decode_binary]])","Executes a query against a given database and returns an array of arrays."],sqlite_busy_timeout:["void sqlite_busy_timeout(resource db, int ms)","Set busy timeout duration. If ms <= 0, all busy handlers are disabled."],sqlite_changes:["int sqlite_changes(resource db)","Returns the number of rows that were changed by the most recent SQL statement."],sqlite_close:["void sqlite_close(resource db)","Closes an open sqlite database."],sqlite_column:["mixed sqlite_column(resource result, mixed index_or_name [, bool decode_binary])","Fetches a column from the current row of a result set."],sqlite_create_aggregate:["bool sqlite_create_aggregate(resource db, string funcname, mixed step_func, mixed finalize_func[, long num_args])","Registers an aggregate function for queries."],sqlite_create_function:["bool sqlite_create_function(resource db, string funcname, mixed callback[, long num_args])",'Registers a "regular" function for queries.'],sqlite_current:["array sqlite_current(resource result [, int result_type [, bool decode_binary]])","Fetches the current row from a result set as an array."],sqlite_error_string:["string sqlite_error_string(int error_code)","Returns the textual description of an error code."],sqlite_escape_string:["string sqlite_escape_string(string item)","Escapes a string for use as a query parameter."],sqlite_exec:["boolean sqlite_exec(string query, resource db[, string &error_message])","Executes a result-less query against a given database"],sqlite_factory:["object sqlite_factory(string filename [, int mode [, string &error_message]])","Opens a SQLite database and creates an object for it. Will create the database if it does not exist."],sqlite_fetch_all:["array sqlite_fetch_all(resource result [, int result_type [, bool decode_binary]])","Fetches all rows from a result set as an array of arrays."],sqlite_fetch_array:["array sqlite_fetch_array(resource result [, int result_type [, bool decode_binary]])","Fetches the next row from a result set as an array."],sqlite_fetch_column_types:["resource sqlite_fetch_column_types(string table_name, resource db [, int result_type])","Return an array of column types from a particular table."],sqlite_fetch_object:["object sqlite_fetch_object(resource result [, string class_name [, NULL|array ctor_params [, bool decode_binary]]])","Fetches the next row from a result set as an object."],sqlite_fetch_single:["string sqlite_fetch_single(resource result [, bool decode_binary])","Fetches the first column of a result set as a string."],sqlite_field_name:["string sqlite_field_name(resource result, int field_index)","Returns the name of a particular field of a result set."],sqlite_has_prev:["bool sqlite_has_prev(resource result)","* Returns whether a previous row is available."],sqlite_key:["int sqlite_key(resource result)","Return the current row index of a buffered result."],sqlite_last_error:["int sqlite_last_error(resource db)","Returns the error code of the last error for a database."],sqlite_last_insert_rowid:["int sqlite_last_insert_rowid(resource db)","Returns the rowid of the most recently inserted row."],sqlite_libencoding:["string sqlite_libencoding()","Returns the encoding (iso8859 or UTF-8) of the linked SQLite library."],sqlite_libversion:["string sqlite_libversion()","Returns the version of the linked SQLite library."],sqlite_next:["bool sqlite_next(resource result)","Seek to the next row number of a result set."],sqlite_num_fields:["int sqlite_num_fields(resource result)","Returns the number of fields in a result set."],sqlite_num_rows:["int sqlite_num_rows(resource result)","Returns the number of rows in a buffered result set."],sqlite_open:["resource sqlite_open(string filename [, int mode [, string &error_message]])","Opens a SQLite database. Will create the database if it does not exist."],sqlite_popen:["resource sqlite_popen(string filename [, int mode [, string &error_message]])","Opens a persistent handle to a SQLite database. Will create the database if it does not exist."],sqlite_prev:["bool sqlite_prev(resource result)","* Seek to the previous row number of a result set."],sqlite_query:["resource sqlite_query(string query, resource db [, int result_type [, string &error_message]])","Executes a query against a given database and returns a result handle."],sqlite_rewind:["bool sqlite_rewind(resource result)","Seek to the first row number of a buffered result set."],sqlite_seek:["bool sqlite_seek(resource result, int row)","Seek to a particular row number of a buffered result set."],sqlite_single_query:["array sqlite_single_query(resource db, string query [, bool first_row_only [, bool decode_binary]])","Executes a query and returns either an array for one single column or the value of the first row."],sqlite_udf_decode_binary:["string sqlite_udf_decode_binary(string data)","Decode binary encoding on a string parameter passed to an UDF."],sqlite_udf_encode_binary:["string sqlite_udf_encode_binary(string data)","Apply binary encoding (if acequired) to a string to return from an UDF."],sqlite_unbuffered_query:["resource sqlite_unbuffered_query(string query, resource db [ , int result_type [, string &error_message]])","Executes a query that does not prefetch and buffer all data."],sqlite_valid:["bool sqlite_valid(resource result)","Returns whether more rows are available."],sqrt:["float sqrt(float number)","Returns the square root of the number"],srand:["void srand([int seed])","Seeds random number generator"],sscanf:["mixed sscanf(string str, string format [, string ...])","Implements an ANSI C compatible sscanf"],stat:["array stat(string filename)","Give information about a file"],str_getcsv:["array str_getcsv(string input[, string delimiter[, string enclosure[, string escape]]])","Parse a CSV string into an array"],str_ireplace:["mixed str_ireplace(mixed search, mixed replace, mixed subject [, int &replace_count])","Replaces all occurrences of search in haystack with replace / case-insensitive"],str_pad:["string str_pad(string input, int pad_length [, string pad_string [, int pad_type]])","Returns input string padded on the left or right to specified length with pad_string"],str_repeat:["string str_repeat(string input, int mult)","Returns the input string repeat mult times"],str_replace:["mixed str_replace(mixed search, mixed replace, mixed subject [, int &replace_count])","Replaces all occurrences of search in haystack with replace"],str_rot13:["string str_rot13(string str)","Perform the rot13 transform on a string"],str_shuffle:["void str_shuffle(string str)","Shuffles string. One permutation of all possible is created"],str_split:["array str_split(string str [, int split_length])","Convert a string to an array. If split_length is specified, break the string down into chunks each split_length characters long."],str_word_count:["mixed str_word_count(string str, [int format [, string charlist]])",'Counts the number of words inside a string. If format of 1 is specified, then the function will return an array containing all the words found inside the string. If format of 2 is specified, then the function will return an associated array where the position of the word is the key and the word itself is the value. For the purpose of this function, \'word\' is defined as a locale dependent string containing alphabetic characters, which also may contain, but not start with "\'" and "-" characters.'],strcasecmp:["int strcasecmp(string str1, string str2)","Binary safe case-insensitive string comparison"],strchr:["string strchr(string haystack, string needle)","An alias for strstr"],strcmp:["int strcmp(string str1, string str2)","Binary safe string comparison"],strcoll:["int strcoll(string str1, string str2)","Compares two strings using the current locale"],strcspn:["int strcspn(string str, string mask [, start [, len]])","Finds length of initial segment consisting entirely of characters not found in mask. If start or/and length is provide works like strcspn(substr($s,$start,$len),$bad_chars)"],stream_bucket_append:["void stream_bucket_append(resource brigade, resource bucket)","Append bucket to brigade"],stream_bucket_make_writeable:["object stream_bucket_make_writeable(resource brigade)","Return a bucket object from the brigade for operating on"],stream_bucket_new:["resource stream_bucket_new(resource stream, string buffer)","Create a new bucket for use on the current stream"],stream_bucket_prepend:["void stream_bucket_prepend(resource brigade, resource bucket)","Prepend bucket to brigade"],stream_context_create:["resource stream_context_create([array options[, array params]])","Create a file context and optionally set parameters"],stream_context_get_default:["resource stream_context_get_default([array options])","Get a handle on the default file/stream context and optionally set parameters"],stream_context_get_options:["array stream_context_get_options(resource context|resource stream)","Retrieve options for a stream/wrapper/context"],stream_context_get_params:["array stream_context_get_params(resource context|resource stream)","Get parameters of a file context"],stream_context_set_default:["resource stream_context_set_default(array options)","Set default file/stream context, returns the context as a resource"],stream_context_set_option:["bool stream_context_set_option(resource context|resource stream, string wrappername, string optionname, mixed value)","Set an option for a wrapper"],stream_context_set_params:["bool stream_context_set_params(resource context|resource stream, array options)","Set parameters for a file context"],stream_copy_to_stream:["long stream_copy_to_stream(resource source, resource dest [, long maxlen [, long pos]])","Reads up to maxlen bytes from source stream and writes them to dest stream."],stream_filter_append:["resource stream_filter_append(resource stream, string filtername[, int read_write[, string filterparams]])","Append a filter to a stream"],stream_filter_prepend:["resource stream_filter_prepend(resource stream, string filtername[, int read_write[, string filterparams]])","Prepend a filter to a stream"],stream_filter_register:["bool stream_filter_register(string filtername, string classname)","Registers a custom filter handler class"],stream_filter_remove:["bool stream_filter_remove(resource stream_filter)","Flushes any data in the filter's internal buffer, removes it from the chain, and frees the resource"],stream_get_contents:["string stream_get_contents(resource source [, long maxlen [, long offset]])","Reads all remaining bytes (or up to maxlen bytes) from a stream and returns them as a string."],stream_get_filters:["array stream_get_filters(void)","Returns a list of registered filters"],stream_get_line:["string stream_get_line(resource stream, int maxlen [, string ending])","Read up to maxlen bytes from a stream or until the ending string is found"],stream_get_meta_data:["array stream_get_meta_data(resource fp)","Retrieves header/meta data from streams/file pointers"],stream_get_transports:["array stream_get_transports()","Retrieves list of registered socket transports"],stream_get_wrappers:["array stream_get_wrappers()","Retrieves list of registered stream wrappers"],stream_is_local:["bool stream_is_local(resource stream|string url)",""],stream_resolve_include_path:["string stream_resolve_include_path(string filename)","Determine what file will be opened by calls to fopen() with a relative path"],stream_select:["int stream_select(array &read_streams, array &write_streams, array &except_streams, int tv_sec[, int tv_usec])","Runs the select() system call on the sets of streams with a timeout specified by tv_sec and tv_usec"],stream_set_blocking:["bool stream_set_blocking(resource socket, int mode)","Set blocking/non-blocking mode on a socket or stream"],stream_set_timeout:["bool stream_set_timeout(resource stream, int seconds [, int microseconds])","Set timeout on stream read to seconds + microseonds"],stream_set_write_buffer:["int stream_set_write_buffer(resource fp, int buffer)","Set file write buffer"],stream_socket_accept:["resource stream_socket_accept(resource serverstream, [ double timeout [, string &peername ]])","Accept a client connection from a server socket"],stream_socket_client:["resource stream_socket_client(string remoteaddress [, long &errcode [, string &errstring [, double timeout [, long flags [, resource context]]]]])","Open a client connection to a remote address"],stream_socket_enable_crypto:["int stream_socket_enable_crypto(resource stream, bool enable [, int cryptokind [, resource sessionstream]])","Enable or disable a specific kind of crypto on the stream"],stream_socket_get_name:["string stream_socket_get_name(resource stream, bool want_peer)","Returns either the locally bound or remote name for a socket stream"],stream_socket_pair:["array stream_socket_pair(int domain, int type, int protocol)","Creates a pair of connected, indistinguishable socket streams"],stream_socket_recvfrom:["string stream_socket_recvfrom(resource stream, long amount [, long flags [, string &remote_addr]])","Receives data from a socket stream"],stream_socket_sendto:["long stream_socket_sendto(resouce stream, string data [, long flags [, string target_addr]])","Send data to a socket stream. If target_addr is specified it must be in dotted quad (or [ipv6]) format"],stream_socket_server:["resource stream_socket_server(string localaddress [, long &errcode [, string &errstring [, long flags [, resource context]]]])","Create a server socket bound to localaddress"],stream_socket_shutdown:["int stream_socket_shutdown(resource stream, int how)","causes all or part of a full-duplex connection on the socket associated with stream to be shut down. If how is SHUT_RD, further receptions will be disallowed. If how is SHUT_WR, further transmissions will be disallowed. If how is SHUT_RDWR, further receptions and transmissions will be disallowed."],stream_supports_lock:["bool stream_supports_lock(resource stream)","Tells wether the stream supports locking through flock()."],stream_wrapper_register:["bool stream_wrapper_register(string protocol, string classname[, integer flags])","Registers a custom URL protocol handler class"],stream_wrapper_restore:["bool stream_wrapper_restore(string protocol)","Restore the original protocol handler, overriding if necessary"],stream_wrapper_unregister:["bool stream_wrapper_unregister(string protocol)","Unregister a wrapper for the life of the current request."],strftime:["string strftime(string format [, int timestamp])","Format a local time/date according to locale settings"],strip_tags:["string strip_tags(string str [, string allowable_tags])","Strips HTML and PHP tags from a string"],stripcslashes:["string stripcslashes(string str)","Strips backslashes from a string. Uses C-style conventions"],stripos:["int stripos(string haystack, string needle [, int offset])","Finds position of first occurrence of a string within another, case insensitive"],stripslashes:["string stripslashes(string str)","Strips backslashes from a string"],stristr:["string stristr(string haystack, string needle[, bool part])","Finds first occurrence of a string within another, case insensitive"],strlen:["int strlen(string str)","Get string length"],strnatcasecmp:["int strnatcasecmp(string s1, string s2)","Returns the result of case-insensitive string comparison using 'natural' algorithm"],strnatcmp:["int strnatcmp(string s1, string s2)","Returns the result of string comparison using 'natural' algorithm"],strncasecmp:["int strncasecmp(string str1, string str2, int len)","Binary safe string comparison"],strncmp:["int strncmp(string str1, string str2, int len)","Binary safe string comparison"],strpbrk:["array strpbrk(string haystack, string char_list)","Search a string for any of a set of characters"],strpos:["int strpos(string haystack, string needle [, int offset])","Finds position of first occurrence of a string within another"],strptime:["string strptime(string timestamp, string format)","Parse a time/date generated with strftime()"],strrchr:["string strrchr(string haystack, string needle)","Finds the last occurrence of a character in a string within another"],strrev:["string strrev(string str)","Reverse a string"],strripos:["int strripos(string haystack, string needle [, int offset])","Finds position of last occurrence of a string within another string"],strrpos:["int strrpos(string haystack, string needle [, int offset])","Finds position of last occurrence of a string within another string"],strspn:["int strspn(string str, string mask [, start [, len]])","Finds length of initial segment consisting entirely of characters found in mask. If start or/and length is provided works like strspn(substr($s,$start,$len),$good_chars)"],strstr:["string strstr(string haystack, string needle[, bool part])","Finds first occurrence of a string within another"],strtok:["string strtok([string str,] string token)","Tokenize a string"],strtolower:["string strtolower(string str)","Makes a string lowercase"],strtotime:["int strtotime(string time [, int now ])","Convert string representation of date and time to a timestamp"],strtoupper:["string strtoupper(string str)","Makes a string uppercase"],strtr:["string strtr(string str, string from[, string to])","Translates characters in str using given translation tables"],strval:["string strval(mixed var)","Get the string value of a variable"],substr:["string substr(string str, int start [, int length])","Returns part of a string"],substr_compare:["int substr_compare(string main_str, string str, int offset [, int length [, bool case_sensitivity]])","Binary safe optionally case insensitive comparison of 2 strings from an offset, up to length characters"],substr_count:["int substr_count(string haystack, string needle [, int offset [, int length]])","Returns the number of times a substring occurs in the string"],substr_replace:["mixed substr_replace(mixed str, mixed repl, mixed start [, mixed length])","Replaces part of a string with another string"],sybase_affected_rows:["int sybase_affected_rows([resource link_id])","Get number of affected rows in last query"],sybase_close:["bool sybase_close([resource link_id])","Close Sybase connection"],sybase_connect:["int sybase_connect([string host [, string user [, string password [, string charset [, string appname [, bool new]]]]]])","Open Sybase server connection"],sybase_data_seek:["bool sybase_data_seek(resource result, int offset)","Move internal row pointer"],sybase_deadlock_retry_count:["void sybase_deadlock_retry_count(int retry_count)","Sets deadlock retry count"],sybase_fetch_array:["array sybase_fetch_array(resource result)","Fetch row as array"],sybase_fetch_assoc:["array sybase_fetch_assoc(resource result)","Fetch row as array without numberic indices"],sybase_fetch_field:["object sybase_fetch_field(resource result [, int offset])","Get field information"],sybase_fetch_object:["object sybase_fetch_object(resource result [, mixed object])","Fetch row as object"],sybase_fetch_row:["array sybase_fetch_row(resource result)","Get row as enumerated array"],sybase_field_seek:["bool sybase_field_seek(resource result, int offset)","Set field offset"],sybase_free_result:["bool sybase_free_result(resource result)","Free result memory"],sybase_get_last_message:["string sybase_get_last_message(void)","Returns the last message from server (over min_message_severity)"],sybase_min_client_severity:["void sybase_min_client_severity(int severity)","Sets minimum client severity"],sybase_min_server_severity:["void sybase_min_server_severity(int severity)","Sets minimum server severity"],sybase_num_fields:["int sybase_num_fields(resource result)","Get number of fields in result"],sybase_num_rows:["int sybase_num_rows(resource result)","Get number of rows in result"],sybase_pconnect:["int sybase_pconnect([string host [, string user [, string password [, string charset [, string appname]]]]])","Open persistent Sybase connection"],sybase_query:["int sybase_query(string query [, resource link_id])","Send Sybase query"],sybase_result:["string sybase_result(resource result, int row, mixed field)","Get result data"],sybase_select_db:["bool sybase_select_db(string database [, resource link_id])","Select Sybase database"],sybase_set_message_handler:["bool sybase_set_message_handler(mixed error_func [, resource connection])","Set the error handler, to be called when a server message is raised. If error_func is NULL the handler will be deleted"],sybase_unbuffered_query:["int sybase_unbuffered_query(string query [, resource link_id])","Send Sybase query"],symlink:["int symlink(string target, string link)","Create a symbolic link"],sys_get_temp_dir:["string sys_get_temp_dir()","Returns directory path used for temporary files"],sys_getloadavg:["array sys_getloadavg()",""],syslog:["bool syslog(int priority, string message)","Generate a system log message"],system:["int system(string command [, int &return_value])","Execute an external program and display output"],tan:["float tan(float number)","Returns the tangent of the number in radians"],tanh:["float tanh(float number)","Returns the hyperbolic tangent of the number, defined as sinh(number)/cosh(number)"],tempnam:["string tempnam(string dir, string prefix)","Create a unique filename in a directory"],textdomain:["string textdomain(string domain)",'Set the textdomain to "domain". Returns the current domain'],tidy_access_count:["int tidy_access_count()","Returns the Number of Tidy accessibility warnings encountered for specified document."],tidy_clean_repair:["boolean tidy_clean_repair()","Execute configured cleanup and repair operations on parsed markup"],tidy_config_count:["int tidy_config_count()","Returns the Number of Tidy configuration errors encountered for specified document."],tidy_diagnose:["boolean tidy_diagnose()","Run configured diagnostics on parsed and repaired markup."],tidy_error_count:["int tidy_error_count()","Returns the Number of Tidy errors encountered for specified document."],tidy_get_body:["TidyNode tidy_get_body(resource tidy)","Returns a TidyNode Object starting from the <BODY> tag of the tidy parse tree"],tidy_get_config:["array tidy_get_config()","Get current Tidy configuarion"],tidy_get_error_buffer:["string tidy_get_error_buffer([boolean detailed])","Return warnings and errors which occured parsing the specified document"],tidy_get_head:["TidyNode tidy_get_head()","Returns a TidyNode Object starting from the <HEAD> tag of the tidy parse tree"],tidy_get_html:["TidyNode tidy_get_html()","Returns a TidyNode Object starting from the <HTML> tag of the tidy parse tree"],tidy_get_html_ver:["int tidy_get_html_ver()","Get the Detected HTML version for the specified document."],tidy_get_opt_doc:["string tidy_get_opt_doc(tidy resource, string optname)","Returns the documentation for the given option name"],tidy_get_output:["string tidy_get_output()","Return a string representing the parsed tidy markup"],tidy_get_release:["string tidy_get_release()","Get release date (version) for Tidy library"],tidy_get_root:["TidyNode tidy_get_root()","Returns a TidyNode Object representing the root of the tidy parse tree"],tidy_get_status:["int tidy_get_status()","Get status of specfied document."],tidy_getopt:["mixed tidy_getopt(string option)","Returns the value of the specified configuration option for the tidy document."],tidy_is_xhtml:["boolean tidy_is_xhtml()","Indicates if the document is a XHTML document."],tidy_is_xml:["boolean tidy_is_xml()","Indicates if the document is a generic (non HTML/XHTML) XML document."],tidy_parse_file:["boolean tidy_parse_file(string file [, mixed config_options [, string encoding [, bool use_include_path]]])","Parse markup in file or URI"],tidy_parse_string:["bool tidy_parse_string(string input [, mixed config_options [, string encoding]])","Parse a document stored in a string"],tidy_repair_file:["boolean tidy_repair_file(string filename [, mixed config_file [, string encoding [, bool use_include_path]]])","Repair a file using an optionally provided configuration file"],tidy_repair_string:["boolean tidy_repair_string(string data [, mixed config_file [, string encoding]])","Repair a string using an optionally provided configuration file"],tidy_warning_count:["int tidy_warning_count()","Returns the Number of Tidy warnings encountered for specified document."],time:["int time(void)","Return current UNIX timestamp"],time_nanosleep:["mixed time_nanosleep(long seconds, long nanoseconds)","Delay for a number of seconds and nano seconds"],time_sleep_until:["mixed time_sleep_until(float timestamp)","Make the script sleep until the specified time"],timezone_abbreviations_list:["array timezone_abbreviations_list()","Returns associative array containing dst, offset and the timezone name"],timezone_identifiers_list:["array timezone_identifiers_list([long what[, string country]])","Returns numerically index array with all timezone identifiers."],timezone_location_get:["array timezone_location_get()","Returns location information for a timezone, including country code, latitude/longitude and comments"],timezone_name_from_abbr:["string timezone_name_from_abbr(string abbr[, long gmtOffset[, long isdst]])","Returns the timezone name from abbrevation"],timezone_name_get:["string timezone_name_get(DateTimeZone object)","Returns the name of the timezone."],timezone_offset_get:["long timezone_offset_get(DateTimeZone object, DateTime object)","Returns the timezone offset."],timezone_open:["DateTimeZone timezone_open(string timezone)","Returns new DateTimeZone object"],timezone_transitions_get:["array timezone_transitions_get(DateTimeZone object [, long timestamp_begin [, long timestamp_end ]])","Returns numerically indexed array containing associative array for all transitions in the specified range for the timezone."],timezone_version_get:["array timezone_version_get()","Returns the Olson database version number."],tmpfile:["resource tmpfile(void)","Create a temporary file that will be deleted automatically after use"],token_get_all:["array token_get_all(string source)",""],token_name:["string token_name(int type)",""],touch:["bool touch(string filename [, int time [, int atime]])","Set modification time of file"],trigger_error:["void trigger_error(string messsage [, int error_type])","Generates a user-level error/warning/notice message"],trim:["string trim(string str [, string character_mask])","Strips whitespace from the beginning and end of a string"],uasort:["bool uasort(array array_arg, string cmp_function)","Sort an array with a user-defined comparison function and maintain index association"],ucfirst:["string ucfirst(string str)","Make a string's first character lowercase"],ucwords:["string ucwords(string str)","Uppercase the first character of every word in a string"],uksort:["bool uksort(array array_arg, string cmp_function)","Sort an array by keys using a user-defined comparison function"],umask:["int umask([int mask])","Return or change the umask"],uniqid:["string uniqid([string prefix [, bool more_entropy]])","Generates a unique ID"],unixtojd:["int unixtojd([int timestamp])","Convert UNIX timestamp to Julian Day"],unlink:["bool unlink(string filename[, context context])","Delete a file"],unpack:["array unpack(string format, string input)","Unpack binary string into named array elements according to format argument"],unregister_tick_function:["void unregister_tick_function(string function_name)","Unregisters a tick callback function"],unserialize:["mixed unserialize(string variable_representation)","Takes a string representation of variable and recreates it"],unset:["void unset (mixed var [, mixed var])","Unset a given variable"],urldecode:["string urldecode(string str)","Decodes URL-encoded string"],urlencode:["string urlencode(string str)","URL-encodes string"],usleep:["void usleep(int micro_seconds)","Delay for a given number of micro seconds"],usort:["bool usort(array array_arg, string cmp_function)","Sort an array by values using a user-defined comparison function"],utf8_decode:["string utf8_decode(string data)","Converts a UTF-8 encoded string to ISO-8859-1"],utf8_encode:["string utf8_encode(string data)","Encodes an ISO-8859-1 string to UTF-8"],var_dump:["void var_dump(mixed var)","Dumps a string representation of variable to output"],var_export:["mixed var_export(mixed var [, bool return])","Outputs or returns a string representation of a variable"],variant_abs:["mixed variant_abs(mixed left)","Returns the absolute value of a variant"],variant_add:["mixed variant_add(mixed left, mixed right)",'"Adds" two variant values together and returns the result'],variant_and:["mixed variant_and(mixed left, mixed right)","performs a bitwise AND operation between two variants and returns the result"],variant_cast:["object variant_cast(object variant, int type)","Convert a variant into a new variant object of another type"],variant_cat:["mixed variant_cat(mixed left, mixed right)","concatenates two variant values together and returns the result"],variant_cmp:["int variant_cmp(mixed left, mixed right [, int lcid [, int flags]])","Compares two variants"],variant_date_from_timestamp:["object variant_date_from_timestamp(int timestamp)","Returns a variant date representation of a unix timestamp"],variant_date_to_timestamp:["int variant_date_to_timestamp(object variant)","Converts a variant date/time value to unix timestamp"],variant_div:["mixed variant_div(mixed left, mixed right)","Returns the result from dividing two variants"],variant_eqv:["mixed variant_eqv(mixed left, mixed right)","Performs a bitwise equivalence on two variants"],variant_fix:["mixed variant_fix(mixed left)","Returns the integer part ? of a variant"],variant_get_type:["int variant_get_type(object variant)","Returns the VT_XXX type code for a variant"],variant_idiv:["mixed variant_idiv(mixed left, mixed right)","Converts variants to integers and then returns the result from dividing them"],variant_imp:["mixed variant_imp(mixed left, mixed right)","Performs a bitwise implication on two variants"],variant_int:["mixed variant_int(mixed left)","Returns the integer portion of a variant"],variant_mod:["mixed variant_mod(mixed left, mixed right)","Divides two variants and returns only the remainder"],variant_mul:["mixed variant_mul(mixed left, mixed right)","multiplies the values of the two variants and returns the result"],variant_neg:["mixed variant_neg(mixed left)","Performs logical negation on a variant"],variant_not:["mixed variant_not(mixed left)","Performs bitwise not negation on a variant"],variant_or:["mixed variant_or(mixed left, mixed right)","Performs a logical disjunction on two variants"],variant_pow:["mixed variant_pow(mixed left, mixed right)","Returns the result of performing the power function with two variants"],variant_round:["mixed variant_round(mixed left, int decimals)","Rounds a variant to the specified number of decimal places"],variant_set:["void variant_set(object variant, mixed value)","Assigns a new value for a variant object"],variant_set_type:["void variant_set_type(object variant, int type)",'Convert a variant into another type. Variant is modified "in-place"'],variant_sub:["mixed variant_sub(mixed left, mixed right)","subtracts the value of the right variant from the left variant value and returns the result"],variant_xor:["mixed variant_xor(mixed left, mixed right)","Performs a logical exclusion on two variants"],version_compare:["int version_compare(string ver1, string ver2 [, string oper])",'Compares two "PHP-standardized" version number strings'],vfprintf:["int vfprintf(resource stream, string format, array args)","Output a formatted string into a stream"],virtual:["bool virtual(string filename)","Perform an Apache sub-request"],vprintf:["int vprintf(string format, array args)","Output a formatted string"],vsprintf:["string vsprintf(string format, array args)","Return a formatted string"],wddx_add_vars:["int wddx_add_vars(resource packet_id, mixed var_names [, mixed ...])","Serializes given variables and adds them to packet given by packet_id"],wddx_deserialize:["mixed wddx_deserialize(mixed packet)","Deserializes given packet and returns a PHP value"],wddx_packet_end:["string wddx_packet_end(resource packet_id)","Ends specified WDDX packet and returns the string containing the packet"],wddx_packet_start:["resource wddx_packet_start([string comment])","Starts a WDDX packet with optional comment and returns the packet id"],wddx_serialize_value:["string wddx_serialize_value(mixed var [, string comment])","Creates a new packet and serializes the given value"],wddx_serialize_vars:["string wddx_serialize_vars(mixed var_name [, mixed ...])","Creates a new packet and serializes given variables into a struct"],wordwrap:["string wordwrap(string str [, int width [, string break [, boolean cut]]])","Wraps buffer to selected number of characters using string break char"],xml_error_string:["string xml_error_string(int code)","Get XML parser error string"],xml_get_current_byte_index:["int xml_get_current_byte_index(resource parser)","Get current byte index for an XML parser"],xml_get_current_column_number:["int xml_get_current_column_number(resource parser)","Get current column number for an XML parser"],xml_get_current_line_number:["int xml_get_current_line_number(resource parser)","Get current line number for an XML parser"],xml_get_error_code:["int xml_get_error_code(resource parser)","Get XML parser error code"],xml_parse:["int xml_parse(resource parser, string data [, int isFinal])","Start parsing an XML document"],xml_parse_into_struct:["int xml_parse_into_struct(resource parser, string data, array &values [, array &index ])","Parsing a XML document"],xml_parser_create:["resource xml_parser_create([string encoding])","Create an XML parser"],xml_parser_create_ns:["resource xml_parser_create_ns([string encoding [, string sep]])","Create an XML parser"],xml_parser_free:["int xml_parser_free(resource parser)","Free an XML parser"],xml_parser_get_option:["int xml_parser_get_option(resource parser, int option)","Get options from an XML parser"],xml_parser_set_option:["int xml_parser_set_option(resource parser, int option, mixed value)","Set options in an XML parser"],xml_set_character_data_handler:["int xml_set_character_data_handler(resource parser, string hdl)","Set up character data handler"],xml_set_default_handler:["int xml_set_default_handler(resource parser, string hdl)","Set up default handler"],xml_set_element_handler:["int xml_set_element_handler(resource parser, string shdl, string ehdl)","Set up start and end element handlers"],xml_set_end_namespace_decl_handler:["int xml_set_end_namespace_decl_handler(resource parser, string hdl)","Set up character data handler"],xml_set_external_entity_ref_handler:["int xml_set_external_entity_ref_handler(resource parser, string hdl)","Set up external entity reference handler"],xml_set_notation_decl_handler:["int xml_set_notation_decl_handler(resource parser, string hdl)","Set up notation declaration handler"],xml_set_object:["int xml_set_object(resource parser, object &obj)","Set up object which should be used for callbacks"],xml_set_processing_instruction_handler:["int xml_set_processing_instruction_handler(resource parser, string hdl)","Set up processing instruction (PI) handler"],xml_set_start_namespace_decl_handler:["int xml_set_start_namespace_decl_handler(resource parser, string hdl)","Set up character data handler"],xml_set_unparsed_entity_decl_handler:["int xml_set_unparsed_entity_decl_handler(resource parser, string hdl)","Set up unparsed entity declaration handler"],xmlrpc_decode:["array xmlrpc_decode(string xml [, string encoding])","Decodes XML into native PHP types"],xmlrpc_decode_request:["array xmlrpc_decode_request(string xml, string& method [, string encoding])","Decodes XML into native PHP types"],xmlrpc_encode:["string xmlrpc_encode(mixed value)","Generates XML for a PHP value"],xmlrpc_encode_request:["string xmlrpc_encode_request(string method, mixed params [, array output_options])","Generates XML for a method request"],xmlrpc_get_type:["string xmlrpc_get_type(mixed value)","Gets xmlrpc type for a PHP value. Especially useful for base64 and datetime strings"],xmlrpc_is_fault:["bool xmlrpc_is_fault(array)","Determines if an array value represents an XMLRPC fault."],xmlrpc_parse_method_descriptions:["array xmlrpc_parse_method_descriptions(string xml)","Decodes XML into a list of method descriptions"],xmlrpc_server_add_introspection_data:["int xmlrpc_server_add_introspection_data(resource server, array desc)","Adds introspection documentation"],xmlrpc_server_call_method:["mixed xmlrpc_server_call_method(resource server, string xml, mixed user_data [, array output_options])","Parses XML requests and call methods"],xmlrpc_server_create:["resource xmlrpc_server_create(void)","Creates an xmlrpc server"],xmlrpc_server_destroy:["int xmlrpc_server_destroy(resource server)","Destroys server resources"],xmlrpc_server_register_introspection_callback:["bool xmlrpc_server_register_introspection_callback(resource server, string function)","Register a PHP function to generate documentation"],xmlrpc_server_register_method:["bool xmlrpc_server_register_method(resource server, string method_name, string function)","Register a PHP function to handle method matching method_name"],xmlrpc_set_type:["bool xmlrpc_set_type(string value, string type)","Sets xmlrpc type, base64 or datetime, for a PHP string value"],xmlwriter_end_attribute:["bool xmlwriter_end_attribute(resource xmlwriter)","End attribute - returns FALSE on error"],xmlwriter_end_cdata:["bool xmlwriter_end_cdata(resource xmlwriter)","End current CDATA - returns FALSE on error"],xmlwriter_end_comment:["bool xmlwriter_end_comment(resource xmlwriter)","Create end comment - returns FALSE on error"],xmlwriter_end_document:["bool xmlwriter_end_document(resource xmlwriter)","End current document - returns FALSE on error"],xmlwriter_end_dtd:["bool xmlwriter_end_dtd(resource xmlwriter)","End current DTD - returns FALSE on error"],xmlwriter_end_dtd_attlist:["bool xmlwriter_end_dtd_attlist(resource xmlwriter)","End current DTD AttList - returns FALSE on error"],xmlwriter_end_dtd_element:["bool xmlwriter_end_dtd_element(resource xmlwriter)","End current DTD element - returns FALSE on error"],xmlwriter_end_dtd_entity:["bool xmlwriter_end_dtd_entity(resource xmlwriter)","End current DTD Entity - returns FALSE on error"],xmlwriter_end_element:["bool xmlwriter_end_element(resource xmlwriter)","End current element - returns FALSE on error"],xmlwriter_end_pi:["bool xmlwriter_end_pi(resource xmlwriter)","End current PI - returns FALSE on error"],xmlwriter_flush:["mixed xmlwriter_flush(resource xmlwriter [,bool empty])","Output current buffer"],xmlwriter_full_end_element:["bool xmlwriter_full_end_element(resource xmlwriter)","End current element - returns FALSE on error"],xmlwriter_open_memory:["resource xmlwriter_open_memory()","Create new xmlwriter using memory for string output"],xmlwriter_open_uri:["resource xmlwriter_open_uri(resource xmlwriter, string source)","Create new xmlwriter using source uri for output"],xmlwriter_output_memory:["string xmlwriter_output_memory(resource xmlwriter [,bool flush])","Output current buffer as string"],xmlwriter_set_indent:["bool xmlwriter_set_indent(resource xmlwriter, bool indent)","Toggle indentation on/off - returns FALSE on error"],xmlwriter_set_indent_string:["bool xmlwriter_set_indent_string(resource xmlwriter, string indentString)","Set string used for indenting - returns FALSE on error"],xmlwriter_start_attribute:["bool xmlwriter_start_attribute(resource xmlwriter, string name)","Create start attribute - returns FALSE on error"],xmlwriter_start_attribute_ns:["bool xmlwriter_start_attribute_ns(resource xmlwriter, string prefix, string name, string uri)","Create start namespaced attribute - returns FALSE on error"],xmlwriter_start_cdata:["bool xmlwriter_start_cdata(resource xmlwriter)","Create start CDATA tag - returns FALSE on error"],xmlwriter_start_comment:["bool xmlwriter_start_comment(resource xmlwriter)","Create start comment - returns FALSE on error"],xmlwriter_start_document:["bool xmlwriter_start_document(resource xmlwriter, string version, string encoding, string standalone)","Create document tag - returns FALSE on error"],xmlwriter_start_dtd:["bool xmlwriter_start_dtd(resource xmlwriter, string name, string pubid, string sysid)","Create start DTD tag - returns FALSE on error"],xmlwriter_start_dtd_attlist:["bool xmlwriter_start_dtd_attlist(resource xmlwriter, string name)","Create start DTD AttList - returns FALSE on error"],xmlwriter_start_dtd_element:["bool xmlwriter_start_dtd_element(resource xmlwriter, string name)","Create start DTD element - returns FALSE on error"],xmlwriter_start_dtd_entity:["bool xmlwriter_start_dtd_entity(resource xmlwriter, string name, bool isparam)","Create start DTD Entity - returns FALSE on error"],xmlwriter_start_element:["bool xmlwriter_start_element(resource xmlwriter, string name)","Create start element tag - returns FALSE on error"],xmlwriter_start_element_ns:["bool xmlwriter_start_element_ns(resource xmlwriter, string prefix, string name, string uri)","Create start namespaced element tag - returns FALSE on error"],xmlwriter_start_pi:["bool xmlwriter_start_pi(resource xmlwriter, string target)","Create start PI tag - returns FALSE on error"],xmlwriter_text:["bool xmlwriter_text(resource xmlwriter, string content)","Write text - returns FALSE on error"],xmlwriter_write_attribute:["bool xmlwriter_write_attribute(resource xmlwriter, string name, string content)","Write full attribute - returns FALSE on error"],xmlwriter_write_attribute_ns:["bool xmlwriter_write_attribute_ns(resource xmlwriter, string prefix, string name, string uri, string content)","Write full namespaced attribute - returns FALSE on error"],xmlwriter_write_cdata:["bool xmlwriter_write_cdata(resource xmlwriter, string content)","Write full CDATA tag - returns FALSE on error"],xmlwriter_write_comment:["bool xmlwriter_write_comment(resource xmlwriter, string content)","Write full comment tag - returns FALSE on error"],xmlwriter_write_dtd:["bool xmlwriter_write_dtd(resource xmlwriter, string name, string pubid, string sysid, string subset)","Write full DTD tag - returns FALSE on error"],xmlwriter_write_dtd_attlist:["bool xmlwriter_write_dtd_attlist(resource xmlwriter, string name, string content)","Write full DTD AttList tag - returns FALSE on error"],xmlwriter_write_dtd_element:["bool xmlwriter_write_dtd_element(resource xmlwriter, string name, string content)","Write full DTD element tag - returns FALSE on error"],xmlwriter_write_dtd_entity:["bool xmlwriter_write_dtd_entity(resource xmlwriter, string name, string content [, int pe [, string pubid [, string sysid [, string ndataid]]]])","Write full DTD Entity tag - returns FALSE on error"],xmlwriter_write_element:["bool xmlwriter_write_element(resource xmlwriter, string name[, string content])","Write full element tag - returns FALSE on error"],xmlwriter_write_element_ns:["bool xmlwriter_write_element_ns(resource xmlwriter, string prefix, string name, string uri[, string content])","Write full namesapced element tag - returns FALSE on error"],xmlwriter_write_pi:["bool xmlwriter_write_pi(resource xmlwriter, string target, string content)","Write full PI tag - returns FALSE on error"],xmlwriter_write_raw:["bool xmlwriter_write_raw(resource xmlwriter, string content)","Write text - returns FALSE on error"],xsl_xsltprocessor_get_parameter:["string xsl_xsltprocessor_get_parameter(string namespace, string name);",""],xsl_xsltprocessor_has_exslt_support:["bool xsl_xsltprocessor_has_exslt_support();",""],xsl_xsltprocessor_import_stylesheet:["void xsl_xsltprocessor_import_stylesheet(domdocument doc);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html# Since:"],xsl_xsltprocessor_register_php_functions:["void xsl_xsltprocessor_register_php_functions([mixed $restrict]);",""],xsl_xsltprocessor_remove_parameter:["bool xsl_xsltprocessor_remove_parameter(string namespace, string name);",""],xsl_xsltprocessor_set_parameter:["bool xsl_xsltprocessor_set_parameter(string namespace, mixed name [, string value]);",""],xsl_xsltprocessor_set_profiling:["bool xsl_xsltprocessor_set_profiling(string filename) */",'PHP_FUNCTION(xsl_xsltprocessor_set_profiling) { zval *id; xsl_object *intern; char *filename = NULL; int filename_len; DOM_GET_THIS(id); if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s!", &filename, &filename_len) == SUCCESS) { intern = (xsl_object *)zend_object_store_get_object(id TSRMLS_CC); if (intern->profiling) { efree(intern->profiling); } if (filename != NULL) { intern->profiling = estrndup(filename,filename_len); } else { intern->profiling = NULL; } RETURN_TRUE; } else { WRONG_PARAM_COUNT; } } /* }}} end xsl_xsltprocessor_set_profiling'],xsl_xsltprocessor_transform_to_doc:["domdocument xsl_xsltprocessor_transform_to_doc(domnode doc);","URL: http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/DOM3-Core.html# Since:"],xsl_xsltprocessor_transform_to_uri:["int xsl_xsltprocessor_transform_to_uri(domdocument doc, string uri);",""],xsl_xsltprocessor_transform_to_xml:["string xsl_xsltprocessor_transform_to_xml(domdocument doc);",""],zend_logo_guid:["string zend_logo_guid(void)","Return the special ID used to request the Zend logo in phpinfo screens"],zend_version:["string zend_version(void)","Get the version of the Zend Engine"],zip_close:["void zip_close(resource zip)","Close a Zip archive"],zip_entry_close:["void zip_entry_close(resource zip_ent)","Close a zip entry"],zip_entry_compressedsize:["int zip_entry_compressedsize(resource zip_entry)","Return the compressed size of a ZZip entry"],zip_entry_compressionmethod:["string zip_entry_compressionmethod(resource zip_entry)","Return a string containing the compression method used on a particular entry"],zip_entry_filesize:["int zip_entry_filesize(resource zip_entry)","Return the actual filesize of a ZZip entry"],zip_entry_name:["string zip_entry_name(resource zip_entry)","Return the name given a ZZip entry"],zip_entry_open:["bool zip_entry_open(resource zip_dp, resource zip_entry [, string mode])","Open a Zip File, pointed by the resource entry"],zip_entry_read:["mixed zip_entry_read(resource zip_entry [, int len])","Read from an open directory entry"],zip_open:["resource zip_open(string filename)","Create new zip using source uri for output"],zip_read:["resource zip_read(resource zip)","Returns the next file in the archive"],zlib_get_coding_type:["string zlib_get_coding_type(void)","Returns the coding type used for output compression"]},i={$_COOKIE:{type:"array"},$_ENV:{type:"array"},$_FILES:{type:"array"},$_GET:{type:"array"},$_POST:{type:"array"},$_REQUEST:{type:"array"},$_SERVER:{type:"array",value:{DOCUMENT_ROOT:1,GATEWAY_INTERFACE:1,HTTP_ACCEPT:1,HTTP_ACCEPT_CHARSET:1,HTTP_ACCEPT_ENCODING:1,HTTP_ACCEPT_LANGUAGE:1,HTTP_CONNECTION:1,HTTP_HOST:1,HTTP_REFERER:1,HTTP_USER_AGENT:1,PATH_TRANSLATED:1,PHP_SELF:1,QUERY_STRING:1,REMOTE_ADDR:1,REMOTE_PORT:1,REQUEST_METHOD:1,REQUEST_URI:1,SCRIPT_FILENAME:1,SCRIPT_NAME:1,SERVER_ADMIN:1,SERVER_NAME:1,SERVER_PORT:1,SERVER_PROTOCOL:1,SERVER_SIGNATURE:1,SERVER_SOFTWARE:1}},$_SESSION:{type:"array"},$GLOBALS:{type:"array"}};function o(e,t){return e.type.lastIndexOf(t)>-1}var a=function(){};(function(){this.getCompletions=function(e,t,n,r){var i=t.getTokenAt(n.row,n.column);if(!i)return[];if("identifier"===i.type)return this.getFunctionCompletions(e,t,n,r);if(o(i,"variable"))return this.getVariableCompletions(e,t,n,r);var a=t.getLine(n.row).substr(0,n.column);return"string"===i.type&&/(\$[\w]*)\[["']([^'"]*)$/i.test(a)?this.getArrayKeyCompletions(e,t,n,r):[]},this.getFunctionCompletions=function(e,t,n,i){var o=Object.keys(r);return o.map((function(e){return{caption:e,snippet:e+"($0)",meta:"php function",score:Number.MAX_VALUE,docHTML:r[e][1]}}))},this.getVariableCompletions=function(e,t,n,r){var o=Object.keys(i);return o.map((function(e){return{caption:e,value:e,meta:"php variable",score:Number.MAX_VALUE}}))},this.getArrayKeyCompletions=function(e,t,n,r){var o=t.getLine(n.row).substr(0,n.column),a=o.match(/(\$[\w]*)\[["']([^'"]*)$/i)[1];if(!i[a])return[];var s=[];return"array"===i[a].type&&i[a].value&&(s=Object.keys(i[a].value)),s.map((function(e){return{caption:e,value:e,meta:"php array key",score:Number.MAX_VALUE}}))}}).call(a.prototype),t.PhpCompletions=a})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,a);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}if("markbegin"!==t){o=i.match(this.foldingStopMarker);if(o){a=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,a):e.getCommentFoldRange(n,a,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length;t+=1;var s=t,c=e.getLength();while(++t<c){n=e.getLine(t);var l=n.search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;while(++n<o){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?c--:c++,!c))break}var u=n;if(u>a)return new i(a,r,u,t.length)}}.call(a.prototype)})),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(e,t,r){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,a=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,c=e("../worker/worker_client").WorkerClient,l=e("./behaviour/cstyle").CstyleBehaviour,u=e("./folding/cstyle").FoldMode,d=function(){this.HighlightRules=a,this.$outdent=new s,this.$behaviour=new l,this.foldingRules=new u};i.inherits(d,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e),o=i.tokens,a=i.state;if(o.length&&"comment"==o[o.length-1].type)return r;if("start"==e||"no_regex"==e){var s=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);s&&(r+=n)}else if("doc-start"==e){if("start"==a||"no_regex"==a)return"";s=t.match(/^\s*(\/?)\*/);s&&(s[1]&&(r+=" "),r+="* ")}return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new c(["ace"],n("6d68"),"JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/javascript"}.call(d.prototype),t.Mode=d})),ace.define("ace/mode/css_completions",["require","exports","module"],(function(e,t,n){"use strict";var r={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},i=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"===typeof e[t]){var n=t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));r.hasOwnProperty(n)||(r[n]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,r){this.completionsDefined||this.defineCompletions();var i=t.getTokenAt(n.row,n.column);if(!i)return[];if("ruleset"===e){var o=t.getLine(n.row).substr(0,n.column);return/:[^;]+$/.test(o)?(/([\w\-]+):[^:]*$/.test(o),this.getPropertyValueCompletions(e,t,n,r)):this.getPropertyCompletions(e,t,n,r)}return[]},this.getPropertyCompletions=function(e,t,n,i){var o=Object.keys(r);return o.map((function(e){return{caption:e,snippet:e+": $0;",meta:"property",score:Number.MAX_VALUE}}))},this.getPropertyValueCompletions=function(e,t,n,i){var o=t.getLine(n.row).substr(0,n.column),a=(/([\w\-]+):[^:]*$/.exec(o)||{})[1];if(!a)return[];var s=[];return a in r&&"object"===typeof r[a]&&(s=Object.keys(r[a])),s.map((function(e){return{caption:e,snippet:e,meta:"property value",score:Number.MAX_VALUE}}))}}).call(i.prototype),t.CssCompletions=i})),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),o=e("../../token_iterator").TokenIterator,a=function(){this.inherit(i),this.add("colon","insertion",(function(e,t,n,r,i){if(":"===i){var a=n.getCursorPosition(),s=new o(r,a.row,a.column),c=s.getCurrentToken();if(c&&c.value.match(/\s+/)&&(c=s.stepBackward()),c&&"support.type"===c.type){var l=r.doc.getLine(a.row),u=l.substring(a.column,a.column+1);if(":"===u)return{text:"",selection:[1,1]};if(!l.substring(a.column).match(/^\s*;/))return{text:":;",selection:[1,1]}}}})),this.add("colon","deletion",(function(e,t,n,r,i){var a=r.doc.getTextRange(i);if(!i.isMultiLine()&&":"===a){var s=n.getCursorPosition(),c=new o(r,s.row,s.column),l=c.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=c.stepBackward()),l&&"support.type"===l.type){var u=r.doc.getLine(i.start.row),d=u.substring(i.end.column,i.end.column+1);if(";"===d)return i.end.column++,i}}})),this.add("semicolon","insertion",(function(e,t,n,r,i){if(";"===i){var o=n.getCursorPosition(),a=r.doc.getLine(o.row),s=a.substring(o.column,o.column+1);if(";"===s)return{text:"",selection:[1,1]}}}))};r.inherits(a,i),t.CssBehaviour=a})),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],(function(e,t,r){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,a=e("./css_highlight_rules").CssHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,c=e("../worker/worker_client").WorkerClient,l=e("./css_completions").CssCompletions,u=e("./behaviour/css").CssBehaviour,d=e("./folding/cstyle").FoldMode,f=function(){this.HighlightRules=a,this.$outdent=new s,this.$behaviour=new u,this.$completer=new l,this.foldingRules=new d};i.inherits(f,o),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e).tokens;if(i.length&&"comment"==i[i.length-1].type)return r;var o=t.match(/^.*\{\s*$/);return o&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,r){return this.$completer.getCompletions(e,t,n,r)},this.createWorker=function(e){var t=new c(["ace"],n("e070"),"Worker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/css"}.call(f.prototype),t.Mode=f})),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../behaviour").Behaviour,o=e("../../token_iterator").TokenIterator;e("../../lib/lang");function a(e,t){return e.type.lastIndexOf(t+".xml")>-1}var s=function(){this.add("string_dquotes","insertion",(function(e,t,n,r,i){if('"'==i||"'"==i){var s=i,c=r.doc.getTextRange(n.getSelectionRange());if(""!==c&&"'"!==c&&'"'!=c&&n.getWrapBehavioursEnabled())return{text:s+c+s,selection:!1};var l=n.getCursorPosition(),u=r.doc.getLine(l.row),d=u.substring(l.column,l.column+1),f=new o(r,l.row,l.column),p=f.getCurrentToken();if(d==s&&(a(p,"attribute-value")||a(p,"string")))return{text:"",selection:[1,1]};if(p||(p=f.stepBackward()),!p)return;while(a(p,"tag-whitespace")||a(p,"whitespace"))p=f.stepBackward();var h=!d||d.match(/\s/);if(a(p,"attribute-equals")&&(h||">"==d)||a(p,"decl-attribute-equals")&&(h||"?"==d))return{text:s+s,selection:[1,1]}}})),this.add("string_dquotes","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&('"'==o||"'"==o)){var a=r.doc.getLine(i.start.row),s=a.substring(i.start.column+1,i.start.column+2);if(s==o)return i.end.column++,i}})),this.add("autoclosing","insertion",(function(e,t,n,r,i){if(">"==i){var s=n.getSelectionRange().start,c=new o(r,s.row,s.column),l=c.getCurrentToken()||c.stepBackward();if(!l||!(a(l,"tag-name")||a(l,"tag-whitespace")||a(l,"attribute-name")||a(l,"attribute-equals")||a(l,"attribute-value")))return;if(a(l,"reference.attribute-value"))return;if(a(l,"attribute-value")){var u=l.value.charAt(0);if('"'==u||"'"==u){var d=l.value.charAt(l.value.length-1),f=c.getCurrentTokenColumn()+l.value.length;if(f>s.column||f==s.column&&u!=d)return}}while(!a(l,"tag-name"))if(l=c.stepBackward(),"<"==l.value){l=c.stepForward();break}var p=c.getCurrentTokenRow(),h=c.getCurrentTokenColumn();if(a(c.stepBackward(),"end-tag-open"))return;var m=l.value;if(p==s.row&&(m=m.substring(0,s.column-h)),this.voidElements.hasOwnProperty(m.toLowerCase()))return;return{text:"></"+m+">",selection:[1,1]}}})),this.add("autoindent","insertion",(function(e,t,n,r,i){if("\n"==i){var a=n.getCursorPosition(),s=r.getLine(a.row),c=new o(r,a.row,a.column),l=c.getCurrentToken();if(l&&-1!==l.type.indexOf("tag-close")){if("/>"==l.value)return;while(l&&-1===l.type.indexOf("tag-name"))l=c.stepBackward();if(!l)return;var u=l.value,d=c.getCurrentTokenRow();if(l=c.stepBackward(),!l||-1!==l.type.indexOf("end-tag"))return;if(this.voidElements&&!this.voidElements[u]){var f=r.getTokenAt(a.row,a.column+1),p=(s=r.getLine(d),this.$getIndent(s)),h=p+r.getTabString();return f&&"</"===f.value?{text:"\n"+h+"\n"+p,selection:[1,h.length,1,h.length]}:{text:"\n"+h}}}}}))};r.inherits(s,i),t.XmlBehaviour=s})),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,o=t.FoldMode=function(e,t){this.defaultMode=e,this.subModes=t};r.inherits(o,i),function(){this.$getMode=function(e){for(var t in"string"!=typeof e&&(e=e[0]),this.subModes)if(0===e.indexOf(t))return this.subModes[t];return null},this.$tryMode=function(e,t,n,r){var i=this.$getMode(e);return i?i.getFoldWidget(t,n,r):""},this.getFoldWidget=function(e,t,n){return this.$tryMode(e.getState(n-1),e,t,n)||this.$tryMode(e.getState(n),e,t,n)||this.defaultMode.getFoldWidget(e,t,n)},this.getFoldWidgetRange=function(e,t,n){var r=this.$getMode(e.getState(n-1));return r&&r.getFoldWidget(e,t,n)||(r=this.$getMode(e.getState(n))),r&&r.getFoldWidget(e,t,n)||(r=this.defaultMode),r.getFoldWidgetRange(e,t,n)}}.call(o.prototype)})),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=(e("../../lib/lang"),e("../../range").Range),o=e("./fold_mode").FoldMode,a=e("../../token_iterator").TokenIterator,s=t.FoldMode=function(e,t){o.call(this),this.voidElements=e||{},this.optionalEndTags=r.mixin({},this.voidElements),t&&r.mixin(this.optionalEndTags,t)};r.inherits(s,o);var c=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function l(e,t){return e.type.lastIndexOf(t+".xml")>-1}(function(){this.getFoldWidget=function(e,t,n){var r=this._getFirstTagInLine(e,n);return r?r.closing||!r.tagName&&r.selfClosing?"markbeginend"==t?"end":"":!r.tagName||r.selfClosing||this.voidElements.hasOwnProperty(r.tagName.toLowerCase())||this._findEndTagInLine(e,n,r.tagName,r.end.column)?"":"start":this.getCommentFoldWidget(e,n)},this.getCommentFoldWidget=function(e,t){return/comment/.test(e.getState(t))&&/<!-/.test(e.getLine(t))?"start":""},this._getFirstTagInLine=function(e,t){for(var n=e.getTokens(t),r=new c,i=0;i<n.length;i++){var o=n[i];if(l(o,"tag-open")){if(r.end.column=r.start.column+o.value.length,r.closing=l(o,"end-tag-open"),o=n[++i],!o)return null;for(r.tagName=o.value,r.end.column+=o.value.length,i++;i<n.length;i++)if(o=n[i],r.end.column+=o.value.length,l(o,"tag-close")){r.selfClosing="/>"==o.value;break}return r}if(l(o,"tag-close"))return r.selfClosing="/>"==o.value,r;r.start.column+=o.value.length}return null},this._findEndTagInLine=function(e,t,n,r){for(var i=e.getTokens(t),o=0,a=0;a<i.length;a++){var s=i[a];if(o+=s.value.length,!(o<r)&&l(s,"end-tag-open")&&(s=i[a+1],s&&s.value==n))return!0}return!1},this._readTagForward=function(e){var t=e.getCurrentToken();if(!t)return null;var n=new c;do{if(l(t,"tag-open"))n.closing=l(t,"end-tag-open"),n.start.row=e.getCurrentTokenRow(),n.start.column=e.getCurrentTokenColumn();else if(l(t,"tag-name"))n.tagName=t.value;else if(l(t,"tag-close"))return n.selfClosing="/>"==t.value,n.end.row=e.getCurrentTokenRow(),n.end.column=e.getCurrentTokenColumn()+t.value.length,e.stepForward(),n}while(t=e.stepForward());return null},this._readTagBackward=function(e){var t=e.getCurrentToken();if(!t)return null;var n=new c;do{if(l(t,"tag-open"))return n.closing=l(t,"end-tag-open"),n.start.row=e.getCurrentTokenRow(),n.start.column=e.getCurrentTokenColumn(),e.stepBackward(),n;l(t,"tag-name")?n.tagName=t.value:l(t,"tag-close")&&(n.selfClosing="/>"==t.value,n.end.row=e.getCurrentTokenRow(),n.end.column=e.getCurrentTokenColumn()+t.value.length)}while(t=e.stepBackward());return null},this._pop=function(e,t){while(e.length){var n=e[e.length-1];if(t&&n.tagName!=t.tagName){if(this.optionalEndTags.hasOwnProperty(n.tagName)){e.pop();continue}return null}return e.pop()}},this.getFoldWidgetRange=function(e,t,n){var r=this._getFirstTagInLine(e,n);if(!r)return this.getCommentFoldWidget(e,n)&&e.getCommentFoldRange(n,e.getLine(n).length);var o,s=r.closing||r.selfClosing,c=[];if(s){u=new a(e,n,r.end.column);var l={row:n,column:r.start.column};while(o=this._readTagBackward(u)){if(o.selfClosing){if(c.length)continue;return o.start.column+=o.tagName.length+2,o.end.column-=2,i.fromPoints(o.start,o.end)}if(o.closing)c.push(o);else if(this._pop(c,o),0==c.length)return o.start.column+=o.tagName.length+2,o.start.row==o.end.row&&o.start.column<o.end.column&&(o.start.column=o.end.column),i.fromPoints(o.start,l)}}else{var u=new a(e,n,r.start.column),d={row:n,column:r.start.column+r.tagName.length+2};r.start.row==r.end.row&&(d.column=r.end.column);while(o=this._readTagForward(u)){if(o.selfClosing){if(c.length)continue;return o.start.column+=o.tagName.length+2,o.end.column-=2,i.fromPoints(o.start,o.end)}if(o.closing){if(this._pop(c,o),0==c.length)return i.fromPoints(d,o.start)}else c.push(o)}}}}).call(s.prototype)})),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("./mixed").FoldMode,o=e("./xml").FoldMode,a=e("./cstyle").FoldMode,s=t.FoldMode=function(e,t){i.call(this,new o(e,t),{"js-":new a,"css-":new a})};r.inherits(s,i)})),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],(function(e,t,n){"use strict";var r=e("../token_iterator").TokenIterator,i=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],o=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],a=i.concat(o),s={html:{manifest:1},head:{},title:{},base:{href:1,target:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},noscript:{href:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},section:{},nav:{},article:{pubdate:1},aside:{},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},header:{},footer:{},address:{},main:{},p:{},hr:{},pre:{},blockquote:{cite:1},ol:{start:1,reversed:1},ul:{},li:{value:1},dl:{},dt:{},dd:{},figure:{},figcaption:{},div:{},a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},em:{},strong:{},small:{},s:{},cite:{},q:{cite:1},dfn:{},abbr:{},data:{},time:{datetime:1},code:{},var:{},samp:{},kbd:{},sub:{},sup:{},i:{},b:{},u:{},mark:{},ruby:{},rt:{},rp:{},bdi:{},bdo:{},span:{},br:{},wbr:{},ins:{cite:1,datetime:1},del:{cite:1,datetime:1},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},embed:{src:1,height:1,width:1,type:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},param:{name:1,value:1},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},source:{src:1,type:1,media:1},track:{kind:1,src:1,srclang:1,label:1,default:1},canvas:{width:1,height:1},map:{name:1},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},svg:{},math:{},table:{summary:1},caption:{},colgroup:{span:1},col:{span:1},tbody:{},thead:{},tfoot:{},tr:{},td:{headers:1,rowspan:1,colspan:1},th:{headers:1,rowspan:1,colspan:1,scope:1},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},fieldset:{disabled:1,form:1,name:1},legend:{},label:{form:1,for:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},acequired:{acequired:1},size:1,src:1,step:1,width:1,files:1,value:1},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},datalist:{},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},acequired:{acequired:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},output:{for:1,form:1,name:1},progress:{value:1,max:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},details:{open:1},summary:{},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},menu:{type:1,label:1},dialog:{open:1}},c=Object.keys(s);function l(e,t){return e.type.lastIndexOf(t+".xml")>-1}function u(e,t){var n=new r(e,t.row,t.column),i=n.getCurrentToken();while(i&&!l(i,"tag-name"))i=n.stepBackward();if(i)return i.value}function d(e,t){var n=new r(e,t.row,t.column),i=n.getCurrentToken();while(i&&!l(i,"attribute-name"))i=n.stepBackward();if(i)return i.value}var f=function(){};(function(){this.getCompletions=function(e,t,n,r){var i=t.getTokenAt(n.row,n.column);if(!i)return[];if(l(i,"tag-name")||l(i,"tag-open")||l(i,"end-tag-open"))return this.getTagCompletions(e,t,n,r);if(l(i,"tag-whitespace")||l(i,"attribute-name"))return this.getAttributeCompletions(e,t,n,r);if(l(i,"attribute-value"))return this.getAttributeValueCompletions(e,t,n,r);var o=t.getLine(n.row).substr(0,n.column);return/&[a-z]*$/i.test(o)?this.getHTMLEntityCompletions(e,t,n,r):[]},this.getTagCompletions=function(e,t,n,r){return c.map((function(e){return{value:e,meta:"tag",score:Number.MAX_VALUE}}))},this.getAttributeCompletions=function(e,t,n,r){var i=u(t,n);if(!i)return[];var o=a;return i in s&&(o=o.concat(Object.keys(s[i]))),o.map((function(e){return{caption:e,snippet:e+'="$0"',meta:"attribute",score:Number.MAX_VALUE}}))},this.getAttributeValueCompletions=function(e,t,n,r){var i=u(t,n),o=d(t,n);if(!i)return[];var a=[];return i in s&&o in s[i]&&"object"===typeof s[i][o]&&(a=Object.keys(s[i][o])),a.map((function(e){return{caption:e,snippet:e,meta:"attribute value",score:Number.MAX_VALUE}}))},this.getHTMLEntityCompletions=function(e,t,n,r){var i=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return i.map((function(e){return{caption:e,snippet:e,meta:"html entity",score:Number.MAX_VALUE}}))}}).call(f.prototype),t.HtmlCompletions=f})),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],(function(e,t,r){"use strict";var i=e("../lib/oop"),o=e("../lib/lang"),a=e("./text").Mode,s=e("./javascript").Mode,c=e("./css").Mode,l=e("./html_highlight_rules").HtmlHighlightRules,u=e("./behaviour/xml").XmlBehaviour,d=e("./folding/html").FoldMode,f=e("./html_completions").HtmlCompletions,p=e("../worker/worker_client").WorkerClient,h=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],m=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],g=function(e){this.fragmentContext=e&&e.fragmentContext,this.HighlightRules=l,this.$behaviour=new u,this.$completer=new f,this.createModeDelegates({"js-":s,"css-":c}),this.foldingRules=new d(this.voidElements,o.arrayToMap(m))};i.inherits(g,a),function(){this.blockComment={start:"\x3c!--",end:"--\x3e"},this.voidElements=o.arrayToMap(h),this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.getCompletions=function(e,t,n,r){return this.$completer.getCompletions(e,t,n,r)},this.createWorker=function(e){if(this.constructor==g){var t=new p(["ace"],n("d57c"),"Worker");return t.attachToDocument(e.getDocument()),this.fragmentContext&&t.call("setOptions",[{context:this.fragmentContext}]),t.on("error",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t}},this.$id="ace/mode/html"}.call(g.prototype),t.Mode=g})),ace.define("ace/mode/php",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/php_highlight_rules","ace/mode/php_highlight_rules","ace/mode/matching_brace_outdent","ace/range","ace/worker/worker_client","ace/mode/php_completions","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/unicode","ace/mode/html","ace/mode/javascript","ace/mode/css"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./php_highlight_rules").PhpHighlightRules,a=e("./php_highlight_rules").PhpLangHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,c=(e("../range").Range,e("../worker/worker_client").WorkerClient),l=e("./php_completions").PhpCompletions,u=e("./behaviour/cstyle").CstyleBehaviour,d=e("./folding/cstyle").FoldMode,f=e("../unicode"),p=e("./html").Mode,h=e("./javascript").Mode,m=e("./css").Mode,g=function(e){this.HighlightRules=a,this.$outdent=new s,this.$behaviour=new u,this.$completer=new l,this.foldingRules=new d};r.inherits(g,i),function(){this.tokenRe=new RegExp("^["+f.packages.L+f.packages.Mn+f.packages.Mc+f.packages.Nd+f.packages.Pc+"_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+f.packages.L+f.packages.Mn+f.packages.Mc+f.packages.Nd+f.packages.Pc+"_]|\\s])+","g"),this.lineCommentStart=["//","#"],this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e),o=i.tokens,a=i.state;if(o.length&&"comment"==o[o.length-1].type)return r;if("start"==e){var s=t.match(/^.*[\{\(\[:]\s*$/);s&&(r+=n)}else if("doc-start"==e){if("doc-start"!=a)return"";s=t.match(/^\s*(\/?)\*/);s&&(s[1]&&(r+=" "),r+="* ")}return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,r){return this.$completer.getCompletions(e,t,n,r)},this.$id="ace/mode/php-inline"}.call(g.prototype);var v=function(e){if(e&&e.inline){var t=new g;return t.createWorker=this.createWorker,t.inlinePhp=!0,t}p.call(this),this.HighlightRules=o,this.createModeDelegates({"js-":h,"css-":m,"php-":g}),this.foldingRules.subModes["php-"]=new d};r.inherits(v,p),function(){this.createWorker=function(e){var t=new c(["ace"],"ace/mode/php_worker","PhpWorker");return t.attachToDocument(e.getDocument()),this.inlinePhp&&t.call("setOptions",[{inline:!0}]),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/php"}.call(v.prototype),t.Mode=v}))},"7db0":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").find,o=n("44d2"),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},"80d3":function(module,exports,__webpack_require__){
/*!
* Avue.js v2.11.0
* (c) 2017-2023 Smallwei
* Released under the MIT License.
*
*/
!function(e,t){module.exports=t(__webpack_require__("2b0e"),__webpack_require__("bc3a"))}(0,(function(__WEBPACK_EXTERNAL_MODULE__4__,__WEBPACK_EXTERNAL_MODULE__6__){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"s",(function(){return isMediaType})),__webpack_require__.d(__webpack_exports__,"x",(function(){return uuid})),__webpack_require__.d(__webpack_exports__,"p",(function(){return getFixed})),__webpack_require__.d(__webpack_exports__,"m",(function(){return getAsVal})),__webpack_require__.d(__webpack_exports__,"v",(function(){return setAsVal})),__webpack_require__.d(__webpack_exports__,"t",(function(){return loadScript})),__webpack_require__.d(__webpack_exports__,"h",(function(){return downFile})),__webpack_require__.d(__webpack_exports__,"d",(function(){return createObj})),__webpack_require__.d(__webpack_exports__,"e",(function(){return dataURLtoFile})),__webpack_require__.d(__webpack_exports__,"l",(function(){return findObject})),__webpack_require__.d(__webpack_exports__,"u",(function(){return randomId})),__webpack_require__.d(__webpack_exports__,"r",(function(){return isJson})),__webpack_require__.d(__webpack_exports__,"f",(function(){return deepClone})),__webpack_require__.d(__webpack_exports__,"n",(function(){return getColumn})),__webpack_require__.d(__webpack_exports__,"w",(function(){return setPx})),__webpack_require__.d(__webpack_exports__,"g",(function(){return detailDataType})),__webpack_require__.d(__webpack_exports__,"o",(function(){return getDicValue})),__webpack_require__.d(__webpack_exports__,"i",(function(){return filterParams})),__webpack_require__.d(__webpack_exports__,"j",(function(){return findArray})),__webpack_require__.d(__webpack_exports__,"k",(function(){return findNode})),__webpack_require__.d(__webpack_exports__,"q",(function(){return getPasswordChar})),__webpack_require__.d(__webpack_exports__,"a",(function(){return arraySort})),__webpack_require__.d(__webpack_exports__,"b",(function(){return blankVal})),__webpack_require__.d(__webpack_exports__,"c",(function(){return clearVal})),__webpack_require__.d(__webpack_exports__,"y",(function(){return vaildData}));var _validate__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),global_variable__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var isMediaType=function(e,t){if(!Object(_validate__WEBPACK_IMPORTED_MODULE_0__.a)(e))return global_variable__WEBPACK_IMPORTED_MODULE_1__.n.audio.test(e)||"audio"==t?"audio":global_variable__WEBPACK_IMPORTED_MODULE_1__.n.video.test(e)||"video"==t?"video":global_variable__WEBPACK_IMPORTED_MODULE_1__.n.img.test(e)||"img"==t?"img":void 0},uuid=function(){for(var e=[],t=0;t<36;t++)e[t]="0123456789abcdef".substr(Math.floor(16*Math.random()),1);e[14]="4",e[19]="0123456789abcdef".substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-";var n=e.join("");return n};function getFixed(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number(e.toFixed(t))}function getAsVal(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=deepClone(e);return Object(_validate__WEBPACK_IMPORTED_MODULE_0__.a)(t)||t.split(".").forEach((function(e){n=Object(_validate__WEBPACK_IMPORTED_MODULE_0__.a)(n[e])?"":n[e]})),n}function setAsVal(obj){var bind=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",value=arguments.length>2?arguments[2]:void 0,result,type=getObjType(value);return result=Object(_validate__WEBPACK_IMPORTED_MODULE_0__.a)(value)?"array"===type?"obj.".concat(bind,"=[]"):"object"===type?"obj.".concat(bind,"={}"):["number","boolean"].includes(type)?"obj.".concat(bind,"=undefined"):"obj.".concat(bind,"=''"):"string"==type?"obj.".concat(bind,"='").concat(value,"'"):"obj.".concat(bind,"=").concat(value),eval(result),obj}var loadScript=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"js",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body",r=!1;return new Promise((function(i){for(var o,a="head"==n?document.getElementsByTagName("head")[0]:document.body,s=0;s<a.children.length;s++)-1!==(a.children[s].src||"").indexOf(t)&&(r=!0,i());r||("js"===e?((o=document.createElement("script")).type="text/javascript",o.src=t):"css"===e&&((o=document.createElement("link")).rel="stylesheet",o.type="text/css",o.href=t),a.appendChild(o),o.onload=function(){i()})}))};function downFile(e,t){"object"==_typeof(e)&&e instanceof Blob&&(e=URL.createObjectURL(e));var n,r=document.createElement("a");r.href=e,r.download=t||"",window.MouseEvent?n=new MouseEvent("click"):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),r.dispatchEvent(n)}function extend(){var e,t,n,r,i=arguments[0]||{},o=!1,a=Array.prototype.slice.call(arguments),s=1,c=!1;for("boolean"==typeof i&&(o=i,s++,i=arguments[1]);s<a.length;s++)if(null!=(e=a[s]))for(n in e)r=e[n],t=i[n],o&&("[object Object]"===toString.call(r)||(c="[object Array]"==toString.call(r)))?(t=c?"[object Array]"===toString.call(t)?t:[]:"[object Object]"===toString.call(t)?t:{},i[n]=extend(o,t,r)):void 0!==r&&r!==t&&(i[n]=r);return i}function createObj(e,t){var n=t.split("."),r=n.splice(0,1)[0],i={};if(i[r]={},n.length>=2){var o="";n.forEach((function(e){o="".concat(o).concat("{",'"').concat(e,'":')})),o="".concat(o,'""');for(var a=0;a<n.length;a++)o="".concat(o).concat("}");o=JSON.parse(o),i[r]=o}return extend(!0,e,i)}function dataURLtoFile(e,t){for(var n=e.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),o=i.length,a=new Uint8Array(o);o--;)a[o]=i.charCodeAt(o);return new File([a],t,{type:r})}function findObject(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"prop";return(e=findNode(t,{value:r},n))||t.forEach((function(t){t.column?e||(e=findNode(t.column,{value:r},n)):t.children&&global_variable__WEBPACK_IMPORTED_MODULE_1__.c.includes(t.type)&&(e||(e=findNode(t.children.column,{value:r},n)))})),e}function randomId(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",t=e.length,n="",r=0;r<16;r++)n+=e.charAt(Math.floor(Math.random()*t));return n}var getObjType=function(e){var t=Object.prototype.toString;return e instanceof Element?"element":{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[t.call(e)]},isJson=function(e){return Array.isArray(e)?e[0]instanceof Object:e instanceof Object},deepClone=function e(t){var n,r=getObjType(t);if("array"===r)n=[];else{if("object"!==r)return t;n={}}if("array"===r)for(var i=0,o=t.length;i<o;i++)t[i]=(t[i],t[i]),t[i]&&delete t[i].$parent,n.push(e(t[i]));else if("object"===r)for(var a in t)t&&delete t.$parent,n[a]=e(t[a]);return n},getColumn=function(e){var t=[];if(Array.isArray(e))t=e;else for(var n in e){var r=_objectSpread(_objectSpread({},e[n]),{prop:n});t.push(r)}return t},setPx=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(_validate__WEBPACK_IMPORTED_MODULE_0__.a)(e)&&(e=t),Object(_validate__WEBPACK_IMPORTED_MODULE_0__.a)(e)?"":(-1===(e+="").indexOf("%")&&(e+="px"),e)},detailDataType=function(e,t){return Object(_validate__WEBPACK_IMPORTED_MODULE_0__.a)(e)?e:"number"===t?Number(e):"string"===t?e+"":e},getDicValue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Object(_validate__WEBPACK_IMPORTED_MODULE_0__.a)(e))return t;var r=Array.isArray(t);t=r?t:[t];var i=[],o=n[global_variable__WEBPACK_IMPORTED_MODULE_1__.f.label]||global_variable__WEBPACK_IMPORTED_MODULE_1__.f.label,a=n[global_variable__WEBPACK_IMPORTED_MODULE_1__.f.groups]||global_variable__WEBPACK_IMPORTED_MODULE_1__.f.groups,s=deepClone(e);return s.forEach((function(e){e[a]&&(s=s.concat(e[a]),delete e[a])})),t.forEach((function(e){if(Array.isArray(e)){var t=[];e.forEach((function(e){var r=findNode(s,n,e)||{};t.push(r[o]||e)})),i.push(t)}else{var r=findNode(s,n,e)||{};i.push(r[o]||e)}})),r?i:i.join("")},filterParams=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["","$"],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=n?deepClone(e):e;for(var i in r)t.includes("")&&Object(_validate__WEBPACK_IMPORTED_MODULE_0__.a)(r[i])&&delete r[i],t.includes("$")&&-1!==i.indexOf("$")&&delete r[i];return r},findArray=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:global_variable__WEBPACK_IMPORTED_MODULE_1__.f.value,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return r?e.findIndex((function(e){return e[n]==t})):e.find((function(e){return e[n]==t}))},findNode=function e(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=n.value||global_variable__WEBPACK_IMPORTED_MODULE_1__.f.value,o=n.children||global_variable__WEBPACK_IMPORTED_MODULE_1__.f.children,a=0;a<t.length;a++){var s=t[a];if(s[i]==r){if(0!==r&&0!==s[i])return s;if(s[i]===r)return s}else if(s[o]&&Array.isArray(s[o])){var c=e(s[o],n,r);if(c)return c}}},getPasswordChar=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=e.toString().length;e="";for(var r=0;r<n;r++)e+=t;return e},arraySort=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return e.filter((function(e){return!Object(_validate__WEBPACK_IMPORTED_MODULE_0__.a)(e[t])})).sort((function(e,t){return n(e,t)})).concat(e.filter((function(e){return Object(_validate__WEBPACK_IMPORTED_MODULE_0__.a)(e[t])})))},blankVal=function(e){if(Object(_validate__WEBPACK_IMPORTED_MODULE_0__.a)(e))return e;var t=getObjType(e);return"array"===t?[]:"object"===t?{}:["number","boolean"].includes(t)?void 0:""},clearVal=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return e?(t.forEach((function(t){n.includes(t)||(t.includes("$")?delete e[t]:Object(_validate__WEBPACK_IMPORTED_MODULE_0__.a)(e[t])||(e[t]=blankVal(e[t])))})),e):{}},vaildData=function(e,t){return"boolean"==typeof e?e:Object(_validate__WEBPACK_IMPORTED_MODULE_0__.a)(e)?t:e}},function(e,t,n){"use strict";n.d(t,"j",(function(){return r})),n.d(t,"f",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"i",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"k",(function(){return u})),n.d(t,"l",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"m",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return m})),n.d(t,"n",(function(){return g}));var r="avue-",i={rowKey:"id",rowParentKey:"parentId",nodeKey:"id",label:"label",value:"value",desc:"desc",groups:"groups",title:"title",leaf:"leaf",children:"children",hasChildren:"hasChildren",labelText:"名称",disabled:"disabled"},o={name:"name",url:"url",fileName:"file",res:""},a=["dates","date","datetime","datetimerange","daterange","time","timerange","week","month","monthrange","year"],s=["table","dynamic"],c=["tree","number","icon","color","table","map"],l=["img","array","url"],u=["cascader","tree","select","table"],d=["slider"],f=l.concat(["upload","dynamic","map","checkbox","cascader","timerange","monthrange","daterange","datetimerange","dates"]),p=a.concat(["select","checkbox","radio","cascader","tree","color","icon","map"]),h=" | ",m=",",g={img:/\.(gif|jpg|jpeg|png|webp|svg|GIF|JPG|JPEG|PNG|WEBP|SVG)/,video:/\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|ogg|mp4)/,audio:/\.(mp3|wav|MP3|WAV)/}},function(e,t,n){"use strict";function r(e){if(e instanceof Date||"boolean"==typeof e||"number"==typeof e)return!1;if(!(e instanceof Array)){if(e instanceof Object){for(var t in e)return!1;return!0}return"null"===e||null==e||"undefined"===e||void 0===e||""===e}return 0===e.length}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",i="minute",o="hour",a="day",s="week",c="month",l="quarter",u="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),o=n-i<0,a=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:u,w:s,d:a,D:d,h:o,m:i,s:r,ms:n,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",_={};_[b]=m;var y=function(e){return e instanceof C},w=function e(t,n,r){var i;if(!t)return b;if("string"==typeof t){var o=t.toLowerCase();_[o]&&(i=o),n&&(_[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;_[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},x=function(e,t){if(y(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},k=v;k.l=w,k.i=y,k.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=w(e.locale,null,!0),this.parse(e)}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return k},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return x(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<x(e)},g.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,l=!!k.u(t)||t,f=k.p(e),p=function(e,t){var r=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return l?r:r.endOf(a)},h=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(f){case u:return l?p(1,0):p(31,11);case c:return l?p(1,g):p(0,g+1);case s:var _=this.$locale().weekStart||0,y=(m<_?m+7:m)-_;return p(l?v-y:v+(6-y),g);case a:case d:return h(b+"Hours",0);case o:return h(b+"Minutes",1);case i:return h(b+"Seconds",2);case r:return h(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,l=k.p(e),f="set"+(this.$u?"UTC":""),p=(s={},s[a]=f+"Date",s[d]=f+"Date",s[c]=f+"Month",s[u]=f+"FullYear",s[o]=f+"Hours",s[i]=f+"Minutes",s[r]=f+"Seconds",s[n]=f+"Milliseconds",s)[l],h=l===a?this.$D+(t-this.$W):t;if(l===c||l===u){var m=this.clone().set(d,1);m.$d[p](h),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[k.p(e)]()},g.add=function(n,l){var d,f=this;n=Number(n);var p=k.p(l),h=function(e){var t=x(f);return k.w(t.date(t.date()+Math.round(e*n)),f)};if(p===c)return this.set(c,this.$M+n);if(p===u)return this.set(u,this.$y+n);if(p===a)return h(1);if(p===s)return h(7);var m=(d={},d[i]=e,d[o]=t,d[r]=1e3,d)[p]||1,g=this.$d.getTime()+n*m;return k.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=k.z(this),o=this.$H,a=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},d=function(e){return k.s(o%12||12,e,"0")},p=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:k.s(s+1,2,"0"),MMM:u(n.monthsShort,s,l,3),MMMM:u(l,s),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:u(n.weekdaysMin,this.$W,c,2),ddd:u(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(o),HH:k.s(o,2,"0"),h:d(1),hh:d(2),a:p(o,a,!0),A:p(o,a,!1),m:String(a),mm:k.s(a,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:i};return r.replace(h,(function(e,t){return t||m[e]||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,d,f){var p,h=k.p(d),m=x(n),g=(m.utcOffset()-this.utcOffset())*e,v=this-m,b=k.m(this,m);return b=(p={},p[u]=b/12,p[c]=b,p[l]=b/3,p[s]=(v-g)/6048e5,p[a]=(v-g)/864e5,p[o]=v/t,p[i]=v/e,p[r]=v/1e3,p)[h]||v,f?b:k.a(b)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return _[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=w(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return k.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),A=C.prototype;return x.prototype=A,[["$ms",n],["$s",r],["$m",i],["$H",o],["$W",a],["$M",c],["$y",u],["$D",d]].forEach((function(e){A[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),x.extend=function(e,t){return e.$i||(e(t,C,x),e.$i=!0),x},x.locale=w,x.isDayjs=y,x.unix=function(e){return x(1e3*e)},x.en=_[b],x.Ls=_,x.p={},x}()},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__4__},function(e,t,n){var r,i;void 0===(i="function"==typeof(r=function(e,t,n){return function(e,t,n,r,i,o){function a(e){return"number"==typeof e&&!isNaN(e)}var s=this;if(s.version=function(){return"1.9.3"},s.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:function(e,t,n,r){return n*(1-Math.pow(2,-10*e/r))*1024/1023+t},formattingFn:function(e){var t,n,r,i,o,a,c=e<0;if(e=Math.abs(e).toFixed(s.decimals),n=(t=(e+="").split("."))[0],r=t.length>1?s.options.decimal+t[1]:"",s.options.useGrouping){for(i="",o=0,a=n.length;o<a;++o)0!==o&&o%3==0&&(i=s.options.separator+i),i=n[a-o-1]+i;n=i}return s.options.numerals.length&&(n=n.replace(/[0-9]/g,(function(e){return s.options.numerals[+e]})),r=r.replace(/[0-9]/g,(function(e){return s.options.numerals[+e]}))),(c?"-":"")+s.options.prefix+n+r+s.options.suffix},prefix:"",suffix:"",numerals:[]},o&&"object"==typeof o)for(var c in s.options)o.hasOwnProperty(c)&&null!==o[c]&&(s.options[c]=o[c]);""===s.options.separator?s.options.useGrouping=!1:s.options.separator=""+s.options.separator;for(var l=0,u=["webkit","moz","ms","o"],d=0;d<u.length&&!window.requestAnimationFrame;++d)window.requestAnimationFrame=window[u[d]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[u[d]+"CancelAnimationFrame"]||window[u[d]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var n=(new Date).getTime(),r=Math.max(0,16-(n-l)),i=window.setTimeout((function(){e(n+r)}),r);return l=n+r,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)}),s.initialize=function(){return!(!s.initialized&&(s.error="",s.d="string"==typeof e?document.getElementById(e):e,s.d?(s.startVal=Number(t),s.endVal=Number(n),a(s.startVal)&&a(s.endVal)?(s.decimals=Math.max(0,r||0),s.dec=Math.pow(10,s.decimals),s.duration=1e3*Number(i)||2e3,s.countDown=s.startVal>s.endVal,s.frameVal=s.startVal,s.initialized=!0,0):(s.error="[CountUp] startVal ("+t+") or endVal ("+n+") is not a number",1)):(s.error="[CountUp] target is null or undefined",1)))},s.printValue=function(e){var t=s.options.formattingFn(e);"INPUT"===s.d.tagName?this.d.value=t:"text"===s.d.tagName||"tspan"===s.d.tagName?this.d.textContent=t:this.d.innerHTML=t},s.count=function(e){s.startTime||(s.startTime=e),s.timestamp=e;var t=e-s.startTime;s.remaining=s.duration-t,s.options.useEasing?s.countDown?s.frameVal=s.startVal-s.options.easingFn(t,0,s.startVal-s.endVal,s.duration):s.frameVal=s.options.easingFn(t,s.startVal,s.endVal-s.startVal,s.duration):s.countDown?s.frameVal=s.startVal-(s.startVal-s.endVal)*(t/s.duration):s.frameVal=s.startVal+(s.endVal-s.startVal)*(t/s.duration),s.countDown?s.frameVal=s.frameVal<s.endVal?s.endVal:s.frameVal:s.frameVal=s.frameVal>s.endVal?s.endVal:s.frameVal,s.frameVal=Math.round(s.frameVal*s.dec)/s.dec,s.printValue(s.frameVal),t<s.duration?s.rAF=requestAnimationFrame(s.count):s.callback&&s.callback()},s.start=function(e){s.initialize()&&(s.callback=e,s.rAF=requestAnimationFrame(s.count))},s.pauseResume=function(){s.paused?(s.paused=!1,delete s.startTime,s.duration=s.remaining,s.startVal=s.frameVal,requestAnimationFrame(s.count)):(s.paused=!0,cancelAnimationFrame(s.rAF))},s.reset=function(){s.paused=!1,delete s.startTime,s.initialized=!1,s.initialize()&&(cancelAnimationFrame(s.rAF),s.printValue(s.startVal))},s.update=function(e){if(s.initialize()){if(!a(e=Number(e)))return void(s.error="[CountUp] update() - new endVal is not a number: "+e);s.error="",e!==s.frameVal&&(cancelAnimationFrame(s.rAF),s.paused=!1,delete s.startTime,s.startVal=s.frameVal,s.endVal=e,s.countDown=s.startVal>s.endVal,s.rAF=requestAnimationFrame(s.count))}},s.initialize()&&s.printValue(s.startVal)}})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__6__},function(e,t,n){var r,i;
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT */void 0===(i="function"==typeof(r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function i(e,t,n){return e<t?t:e>n?n:e}function o(e){return 100*(-1+e)}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=i(e,r.minimum,1),n.status=1===e?null:e;var c=n.render(!t),l=c.querySelector(r.barSelector),u=r.speed,d=r.easing;return c.offsetWidth,a((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),s(l,function(e,t,n){var i;return(i="translate3d"===r.positionUsing?{transform:"translate3d("+o(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+o(e)+"%,0)"}:{"margin-left":o(e)+"%"}).transition="all "+t+"ms "+n,i}(e,u,d)),1===e?(s(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout((function(){s(c,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*i(Math.random()*t,.1,.95)),t=i(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var i,a=t.querySelector(r.barSelector),c=e?"-100":o(n.status||0),u=document.querySelector(r.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),r.showSpinner||(i=t.querySelector(r.spinnerSelector))&&f(i),u!=document.body&&l(u,"nprogress-custom-parent"),u.appendChild(t),t},n.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var a=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),s=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n){return n=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()})),t[n]||(t[n]=function(t){var n=document.body.style;if(t in n)return t;for(var r,i=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((r=e[i]+o)in n)return r;return t}(n))}function r(e,t,r){t=n(t),e.style[t]=r}return function(e,t){var n,i,o=arguments;if(2==o.length)for(n in t)void 0!==(i=t[n])&&t.hasOwnProperty(n)&&r(e,n,i);else r(e,o[1],o[2])}}();function c(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function l(e,t){var n=d(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function u(e,t){var n,r=d(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,n){var r=n(2);"string"==typeof r&&(r=[[e.i,r,""]]),n(4)(r,{hmr:!0,transform:void 0,insertInto:void 0}),r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";var r=n(0);n.n(r).a},function(e,t,n){(e.exports=n(3)(!1)).push([e.i,'\n.vue-cropper[data-v-6dae58fd] {\n position: relative;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n direction: ltr;\n touch-action: none;\n text-align: left;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");\n}\n.cropper-box[data-v-6dae58fd],\n.cropper-box-canvas[data-v-6dae58fd],\n.cropper-drag-box[data-v-6dae58fd],\n.cropper-crop-box[data-v-6dae58fd],\n.cropper-face[data-v-6dae58fd] {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n user-select: none;\n}\n.cropper-box-canvas img[data-v-6dae58fd] {\n position: relative;\n text-align: left;\n user-select: none;\n transform: none;\n max-width: none;\n max-height: none;\n}\n.cropper-box[data-v-6dae58fd] {\n overflow: hidden;\n}\n.cropper-move[data-v-6dae58fd] {\n cursor: move;\n}\n.cropper-crop[data-v-6dae58fd] {\n cursor: crosshair;\n}\n.cropper-modal[data-v-6dae58fd] {\n background: rgba(0, 0, 0, 0.5);\n}\n.cropper-crop-box[data-v-6dae58fd] {\n /*border: 2px solid #39f;*/\n}\n.cropper-view-box[data-v-6dae58fd] {\n display: block;\n overflow: hidden;\n width: 100%;\n height: 100%;\n outline: 1px solid #39f;\n outline-color: rgba(51, 153, 255, 0.75);\n user-select: none;\n}\n.cropper-view-box img[data-v-6dae58fd] {\n user-select: none;\n text-align: left;\n max-width: none;\n max-height: none;\n}\n.cropper-face[data-v-6dae58fd] {\n top: 0;\n left: 0;\n background-color: #fff;\n opacity: 0.1;\n}\n.crop-info[data-v-6dae58fd] {\n position: absolute;\n left: 0px;\n min-width: 65px;\n text-align: center;\n color: white;\n line-height: 20px;\n background-color: rgba(0, 0, 0, 0.8);\n font-size: 12px;\n}\n.crop-line[data-v-6dae58fd] {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n opacity: 0.1;\n}\n.line-w[data-v-6dae58fd] {\n top: -3px;\n left: 0;\n height: 5px;\n cursor: n-resize;\n}\n.line-a[data-v-6dae58fd] {\n top: 0;\n left: -3px;\n width: 5px;\n cursor: w-resize;\n}\n.line-s[data-v-6dae58fd] {\n bottom: -3px;\n left: 0;\n height: 5px;\n cursor: s-resize;\n}\n.line-d[data-v-6dae58fd] {\n top: 0;\n right: -3px;\n width: 5px;\n cursor: e-resize;\n}\n.crop-point[data-v-6dae58fd] {\n position: absolute;\n width: 8px;\n height: 8px;\n opacity: 0.75;\n background-color: #39f;\n border-radius: 100%;\n}\n.point1[data-v-6dae58fd] {\n top: -4px;\n left: -4px;\n cursor: nw-resize;\n}\n.point2[data-v-6dae58fd] {\n top: -5px;\n left: 50%;\n margin-left: -3px;\n cursor: n-resize;\n}\n.point3[data-v-6dae58fd] {\n top: -4px;\n right: -4px;\n cursor: ne-resize;\n}\n.point4[data-v-6dae58fd] {\n top: 50%;\n left: -4px;\n margin-top: -3px;\n cursor: w-resize;\n}\n.point5[data-v-6dae58fd] {\n top: 50%;\n right: -4px;\n margin-top: -3px;\n cursor: e-resize;\n}\n.point6[data-v-6dae58fd] {\n bottom: -5px;\n left: -4px;\n cursor: sw-resize;\n}\n.point7[data-v-6dae58fd] {\n bottom: -5px;\n left: 50%;\n margin-left: -3px;\n cursor: s-resize;\n}\n.point8[data-v-6dae58fd] {\n bottom: -5px;\n right: -4px;\n cursor: se-resize;\n}\n@media screen and (max-width: 500px) {\n.crop-point[data-v-6dae58fd] {\n position: absolute;\n width: 20px;\n height: 20px;\n opacity: 0.45;\n background-color: #39f;\n border-radius: 100%;\n}\n.point1[data-v-6dae58fd] {\n top: -10px;\n left: -10px;\n}\n.point2[data-v-6dae58fd],\n .point4[data-v-6dae58fd],\n .point5[data-v-6dae58fd],\n .point7[data-v-6dae58fd] {\n display: none;\n}\n.point3[data-v-6dae58fd] {\n top: -10px;\n right: -10px;\n}\n.point4[data-v-6dae58fd] {\n top: 0;\n left: 0;\n}\n.point6[data-v-6dae58fd] {\n bottom: -10px;\n left: -10px;\n}\n.point8[data-v-6dae58fd] {\n bottom: -10px;\n right: -10px;\n}\n}\n',""])},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),o=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(o).concat([i]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var r={},i=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}((function(){return window&&document&&document.all&&!window.atob})),o=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=function(e,t){return t?t.querySelector(e):document.querySelector(e)}.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),a=null,s=0,c=[],l=n(5);function u(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=r[i.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](i.parts[a]);for(;a<i.parts.length;a++)o.parts.push(g(i.parts[a],t))}else{var s=[];for(a=0;a<i.parts.length;a++)s.push(g(i.parts[a],t));r[i.id]={id:i.id,refs:1,parts:s}}}}function d(e,t){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=t.base?o[0]+t.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function f(e,t){var n=o(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=c[c.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),c.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=o(e.insertAt.before,n);n.insertBefore(t,i)}}function p(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=c.indexOf(e);t>=0&&c.splice(t,1)}function h(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=n.nc;r&&(e.attrs.nonce=r)}return m(t,e.attrs),f(e,t),t}function m(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function g(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=o}if(t.singleton){var c=s++;n=a||(a=h(t)),r=b.bind(null,n,c,!1),i=b.bind(null,n,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",m(t,e.attrs),f(e,t),t}(t),r=function(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=l(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),i=function(){p(n),n.href&&URL.revokeObjectURL(n.href)}):(n=h(t),r=function(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){p(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=i()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=d(e,t);return u(n,t),function(e){for(var i=[],o=0;o<n.length;o++){var a=n[o];(s=r[a.id]).refs--,i.push(s)}for(e&&u(d(e,t),t),o=0;o<i.length;o++){var s;if(0===(s=i[o]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete r[s.id]}}}};var v=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function b(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=v(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}},function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"cropper",staticClass:"vue-cropper",on:{mouseover:e.scaleImg,mouseout:e.cancelScale}},[e.imgs?n("div",{staticClass:"cropper-box"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticClass:"cropper-box-canvas",style:{width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}},[n("img",{ref:"cropperImg",attrs:{src:e.imgs,alt:"cropper-img"}})])]):e._e(),e._v(" "),n("div",{staticClass:"cropper-drag-box",class:{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping},on:{mousedown:e.startMove,touchstart:e.startMove}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.cropping,expression:"cropping"}],staticClass:"cropper-crop-box",style:{width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"}},[n("span",{staticClass:"cropper-view-box"},[n("img",{style:{width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"},attrs:{src:e.imgs,alt:"cropper-img"}})]),e._v(" "),n("span",{staticClass:"cropper-face cropper-move",on:{mousedown:e.cropMove,touchstart:e.cropMove}}),e._v(" "),e.info?n("span",{staticClass:"crop-info",style:{top:e.cropInfo.top}},[e._v(e._s(e.cropInfo.width)+" × "+e._s(e.cropInfo.height))]):e._e(),e._v(" "),e.fixedBox?e._e():n("span",[n("span",{staticClass:"crop-line line-w",on:{mousedown:function(t){e.changeCropSize(t,!1,!0,0,1)},touchstart:function(t){e.changeCropSize(t,!1,!0,0,1)}}}),e._v(" "),n("span",{staticClass:"crop-line line-a",on:{mousedown:function(t){e.changeCropSize(t,!0,!1,1,0)},touchstart:function(t){e.changeCropSize(t,!0,!1,1,0)}}}),e._v(" "),n("span",{staticClass:"crop-line line-s",on:{mousedown:function(t){e.changeCropSize(t,!1,!0,0,2)},touchstart:function(t){e.changeCropSize(t,!1,!0,0,2)}}}),e._v(" "),n("span",{staticClass:"crop-line line-d",on:{mousedown:function(t){e.changeCropSize(t,!0,!1,2,0)},touchstart:function(t){e.changeCropSize(t,!0,!1,2,0)}}}),e._v(" "),n("span",{staticClass:"crop-point point1",on:{mousedown:function(t){e.changeCropSize(t,!0,!0,1,1)},touchstart:function(t){e.changeCropSize(t,!0,!0,1,1)}}}),e._v(" "),n("span",{staticClass:"crop-point point2",on:{mousedown:function(t){e.changeCropSize(t,!1,!0,0,1)},touchstart:function(t){e.changeCropSize(t,!1,!0,0,1)}}}),e._v(" "),n("span",{staticClass:"crop-point point3",on:{mousedown:function(t){e.changeCropSize(t,!0,!0,2,1)},touchstart:function(t){e.changeCropSize(t,!0,!0,2,1)}}}),e._v(" "),n("span",{staticClass:"crop-point point4",on:{mousedown:function(t){e.changeCropSize(t,!0,!1,1,0)},touchstart:function(t){e.changeCropSize(t,!0,!1,1,0)}}}),e._v(" "),n("span",{staticClass:"crop-point point5",on:{mousedown:function(t){e.changeCropSize(t,!0,!1,2,0)},touchstart:function(t){e.changeCropSize(t,!0,!1,2,0)}}}),e._v(" "),n("span",{staticClass:"crop-point point6",on:{mousedown:function(t){e.changeCropSize(t,!0,!0,1,2)},touchstart:function(t){e.changeCropSize(t,!0,!0,1,2)}}}),e._v(" "),n("span",{staticClass:"crop-point point7",on:{mousedown:function(t){e.changeCropSize(t,!1,!0,0,2)},touchstart:function(t){e.changeCropSize(t,!1,!0,0,2)}}}),e._v(" "),n("span",{staticClass:"crop-point point8",on:{mousedown:function(t){e.changeCropSize(t,!0,!0,2,2)},touchstart:function(t){e.changeCropSize(t,!0,!0,2,2)}}})])])])};r._withStripped=!0;var i={getData:function(e){return new Promise((function(t,n){var r={};(function(e){var t=null;return new Promise((function(n,r){if(e.src)if(/^data\:/i.test(e.src))t=function(e){e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var t=atob(e),n=t.length,r=new ArrayBuffer(n),i=new Uint8Array(r),o=0;o<n;o++)i[o]=t.charCodeAt(o);return r}(e.src),n(t);else if(/^blob\:/i.test(e.src)){var i=new FileReader;i.onload=function(e){t=e.target.result,n(t)},function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(e){200!=this.status&&0!==this.status||function(e){i.readAsArrayBuffer(e)}(this.response)},n.send()}(e.src)}else{var o=new XMLHttpRequest;o.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";t=o.response,n(t),o=null},o.open("GET",e.src,!0),o.responseType="arraybuffer",o.send(null)}else r("img error")}))})(e).then((function(e){r.arrayBuffer=e,r.orientation=function(e){var t,n,r,i,o,a,s,c,l,u=new DataView(e),d=u.byteLength;if(255===u.getUint8(0)&&216===u.getUint8(1))for(c=2;c<d;){if(255===u.getUint8(c)&&225===u.getUint8(c+1)){a=c;break}c++}if(a&&(n=a+10,"Exif"===function(e,t,n){var r,i="";for(r=t,n+=t;r<n;r++)i+=String.fromCharCode(e.getUint8(r));return i}(u,a+4,4)&&((i=18761===(o=u.getUint16(n)))||19789===o)&&42===u.getUint16(n+2,i)&&(r=u.getUint32(n+4,i))>=8&&(s=n+r)),s)for(d=u.getUint16(s,i),l=0;l<d;l++)if(c=s+12*l+2,274===u.getUint16(c,i)){c+=8,t=u.getUint16(c,i);break}return t}(e),t(r)})).catch((function(e){n(e)}))}))}},o=i,a={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:function(){return[1,1]}},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:function(){return 10}}},computed:{cropInfo:function(){var e={};if(e.top=this.cropOffsertY>21?"-21px":"0px",e.width=this.cropW>0?this.cropW:0,e.height=this.cropH>0?this.cropH:0,this.infoTrue){var t=1;this.high&&!this.full&&(t=window.devicePixelRatio),1!==this.enlarge&!this.full&&(t=Math.abs(Number(this.enlarge))),e.width=e.width*t,e.height=e.height*t,this.full&&(e.width=e.width/this.scale,e.height=e.height/this.scale)}return e.width=e.width.toFixed(0),e.height=e.height.toFixed(0),e},isIE:function(){return navigator.userAgent,!!window.ActiveXObject||"ActiveXObject"in window},passive:function(){return this.isIE?null:{passive:!1}}},watch:{img:function(){this.checkedImg()},imgs:function(e){""!==e&&this.reload()},cropW:function(){this.showPreview()},cropH:function(){this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(e,t){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},autoCrop:function(e){e&&this.goAutoCrop()},autoCropWidth:function(){this.autoCrop&&this.goAutoCrop()},autoCropHeight:function(){this.autoCrop&&this.goAutoCrop()},mode:function(){this.checkedImg()},rotate:function(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion:function(e){for(var t=navigator.userAgent.split(" "),n="",r=new RegExp(e,"i"),i=0;i<t.length;i++)r.test(t[i])&&(n=t[i]);return n?n.split("/")[1].split("."):["0","0","0"]},checkOrientationImage:function(e,t,n,r){var i=this;if(this.getVersion("chrome")[0]>=81)t=-1;else if(this.getVersion("safari")[0]>=605){var o=this.getVersion("version");o[0]>13&&o[1]>1&&(t=-1)}else{var a=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(a){var s=a[1];((s=s.split("_"))[0]>13||s[0]>=13&&s[1]>=4)&&(t=-1)}}var c=document.createElement("canvas"),l=c.getContext("2d");switch(l.save(),t){case 2:c.width=n,c.height=r,l.translate(n,0),l.scale(-1,1);break;case 3:c.width=n,c.height=r,l.translate(n/2,r/2),l.rotate(180*Math.PI/180),l.translate(-n/2,-r/2);break;case 4:c.width=n,c.height=r,l.translate(0,r),l.scale(1,-1);break;case 5:c.height=n,c.width=r,l.rotate(.5*Math.PI),l.scale(1,-1);break;case 6:c.width=r,c.height=n,l.translate(r/2,n/2),l.rotate(90*Math.PI/180),l.translate(-n/2,-r/2);break;case 7:c.height=n,c.width=r,l.rotate(.5*Math.PI),l.translate(n,-r),l.scale(-1,1);break;case 8:c.height=n,c.width=r,l.translate(r/2,n/2),l.rotate(-90*Math.PI/180),l.translate(-n/2,-r/2);break;default:c.width=n,c.height=r}l.drawImage(e,0,0,n,r),l.restore(),c.toBlob((function(e){var t=URL.createObjectURL(e);URL.revokeObjectURL(i.imgs),i.imgs=t}),"image/"+this.outputType,1)},checkedImg:function(){var e=this;if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();var t=new Image;if(t.onload=function(){if(""===e.img)return e.$emit("imgLoad","error"),e.$emit("img-load","error"),!1;var n=t.width,r=t.height;o.getData(t).then((function(i){e.orientation=i.orientation||1;var o=Number(e.maxImgSize);!e.orientation&&n<o&r<o?e.imgs=e.img:(n>o&&(r=r/n*o,n=o),r>o&&(n=n/r*o,r=o),e.checkOrientationImage(t,e.orientation,n,r))}))},t.onerror=function(){e.$emit("imgLoad","error"),e.$emit("img-load","error")},"data"!==this.img.substr(0,4)&&(t.crossOrigin=""),this.isIE){var n=new XMLHttpRequest;n.onload=function(){var e=URL.createObjectURL(this.response);t.src=e},n.open("GET",this.img,!0),n.responseType="blob",n.send()}else t.src=this.img},startMove:function(e){if(e.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in e?e.clientX:e.touches[0].clientX)-this.x,this.moveY=("clientY"in e?e.clientY:e.touches[0].clientY)-this.y,e.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==e.touches.length&&(this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=e.offsetX?e.offsetX:e.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=e.offsetY?e.offsetY:e.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale:function(e){var t=this;e.preventDefault();var n=this.scale,r=this.touches[0].clientX,i=this.touches[0].clientY,o=e.touches[0].clientX,a=e.touches[0].clientY,s=this.touches[1].clientX,c=this.touches[1].clientY,l=e.touches[1].clientX,u=e.touches[1].clientY,d=Math.sqrt(Math.pow(r-s,2)+Math.pow(i-c,2)),f=Math.sqrt(Math.pow(o-l,2)+Math.pow(a-u,2))-d,p=1,h=(p=(p=p/this.trueWidth>p/this.trueHeight?p/this.trueHeight:p/this.trueWidth)>.1?.1:p)*f;if(!this.touchNow){if(this.touchNow=!0,f>0?n+=Math.abs(h):f<0&&n>Math.abs(h)&&(n-=Math.abs(h)),this.touches=e.touches,setTimeout((function(){t.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,n))return!1;this.scale=n}},cancelTouchScale:function(e){window.removeEventListener("touchmove",this.touchScale)},moveImg:function(e){var t=this;if(e.preventDefault(),e.touches&&2===e.touches.length)return this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;var n,r,i="clientX"in e?e.clientX:e.touches[0].clientX,o="clientY"in e?e.clientY:e.touches[0].clientY;n=i-this.moveX,r=o-this.moveY,this.$nextTick((function(){if(t.centerBox){var e,i,o,a,s=t.getImgAxis(n,r,t.scale),c=t.getCropAxis(),l=t.trueHeight*t.scale,u=t.trueWidth*t.scale;switch(t.rotate){case 1:case-1:case 3:case-3:e=t.cropOffsertX-t.trueWidth*(1-t.scale)/2+(l-u)/2,i=t.cropOffsertY-t.trueHeight*(1-t.scale)/2+(u-l)/2,o=e-l+t.cropW,a=i-u+t.cropH;break;default:e=t.cropOffsertX-t.trueWidth*(1-t.scale)/2,i=t.cropOffsertY-t.trueHeight*(1-t.scale)/2,o=e-u+t.cropW,a=i-l+t.cropH}s.x1>=c.x1&&(n=e),s.y1>=c.y1&&(r=i),s.x2<=c.x2&&(n=o),s.y2<=c.y2&&(r=a)}t.x=n,t.y=r,t.$emit("imgMoving",{moving:!0,axis:t.getImgAxis()}),t.$emit("img-moving",{moving:!0,axis:t.getImgAxis()})}))},leaveImg:function(e){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg:function(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale:function(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize:function(e){var t=this;e.preventDefault();var n=this.scale,r=e.deltaY||e.wheelDelta;r=navigator.userAgent.indexOf("Firefox")>0?30*r:r,this.isIE&&(r=-r);var i=this.coe,o=(i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)*r;o<0?n+=Math.abs(o):n>Math.abs(o)&&(n-=Math.abs(o));var a=o<0?"add":"reduce";if(a!==this.coeStatus&&(this.coeStatus=a,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((function(){t.scaling=!1,t.coe=t.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,n))return!1;this.scale=n},changeScale:function(e){var t=this.scale;e=e||1;var n=20;if((e*=n=n/this.trueWidth>n/this.trueHeight?n/this.trueHeight:n/this.trueWidth)>0?t+=Math.abs(e):t>Math.abs(e)&&(t-=Math.abs(e)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop:function(e){var t=this;e.preventDefault();var n="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,r="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;this.$nextTick((function(){var e=n-t.cropX,i=r-t.cropY;if(e>0?(t.cropW=e+t.cropChangeX>t.w?t.w-t.cropChangeX:e,t.cropOffsertX=t.cropChangeX):(t.cropW=t.w-t.cropChangeX+Math.abs(e)>t.w?t.cropChangeX:Math.abs(e),t.cropOffsertX=t.cropChangeX+e>0?t.cropChangeX+e:0),t.fixed){var o=t.cropW/t.fixedNumber[0]*t.fixedNumber[1];o+t.cropOffsertY>t.h?(t.cropH=t.h-t.cropOffsertY,t.cropW=t.cropH/t.fixedNumber[1]*t.fixedNumber[0],t.cropOffsertX=e>0?t.cropChangeX:t.cropChangeX-t.cropW):t.cropH=o,t.cropOffsertY=t.cropOffsertY}else i>0?(t.cropH=i+t.cropChangeY>t.h?t.h-t.cropChangeY:i,t.cropOffsertY=t.cropChangeY):(t.cropH=t.h-t.cropChangeY+Math.abs(i)>t.h?t.cropChangeY:Math.abs(i),t.cropOffsertY=t.cropChangeY+i>0?t.cropChangeY+i:0)}))},changeCropSize:function(e,t,n,r,i){e.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=n,this.changeCropTypeX=r,this.changeCropTypeY=i,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow:function(e){var t=this;e.preventDefault();var n="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,r="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0,i=this.w,o=this.h,a=0,s=0;if(this.centerBox){var c=this.getImgAxis(),l=c.x2,u=c.y2;a=c.x1>0?c.x1:0,s=c.y1>0?c.y1:0,i>l&&(i=l),o>u&&(o=u)}this.$nextTick((function(){var e=n-t.cropX,c=r-t.cropY;if(t.canChangeX&&(1===t.changeCropTypeX?t.cropOldW-e>0?(t.cropW=i-t.cropChangeX-e<=i-a?t.cropOldW-e:t.cropOldW+t.cropChangeX-a,t.cropOffsertX=i-t.cropChangeX-e<=i-a?t.cropChangeX+e:a):(t.cropW=Math.abs(e)+t.cropChangeX<=i?Math.abs(e)-t.cropOldW:i-t.cropOldW-t.cropChangeX,t.cropOffsertX=t.cropChangeX+t.cropOldW):2===t.changeCropTypeX&&(t.cropOldW+e>0?(t.cropW=t.cropOldW+e+t.cropOffsertX<=i?t.cropOldW+e:i-t.cropOffsertX,t.cropOffsertX=t.cropChangeX):(t.cropW=i-t.cropChangeX+Math.abs(e+t.cropOldW)<=i-a?Math.abs(e+t.cropOldW):t.cropChangeX-a,t.cropOffsertX=i-t.cropChangeX+Math.abs(e+t.cropOldW)<=i-a?t.cropChangeX-Math.abs(e+t.cropOldW):a))),t.canChangeY&&(1===t.changeCropTypeY?t.cropOldH-c>0?(t.cropH=o-t.cropChangeY-c<=o-s?t.cropOldH-c:t.cropOldH+t.cropChangeY-s,t.cropOffsertY=o-t.cropChangeY-c<=o-s?t.cropChangeY+c:s):(t.cropH=Math.abs(c)+t.cropChangeY<=o?Math.abs(c)-t.cropOldH:o-t.cropOldH-t.cropChangeY,t.cropOffsertY=t.cropChangeY+t.cropOldH):2===t.changeCropTypeY&&(t.cropOldH+c>0?(t.cropH=t.cropOldH+c+t.cropOffsertY<=o?t.cropOldH+c:o-t.cropOffsertY,t.cropOffsertY=t.cropChangeY):(t.cropH=o-t.cropChangeY+Math.abs(c+t.cropOldH)<=o-s?Math.abs(c+t.cropOldH):t.cropChangeY-s,t.cropOffsertY=o-t.cropChangeY+Math.abs(c+t.cropOldH)<=o-s?t.cropChangeY-Math.abs(c+t.cropOldH):s))),t.canChangeX&&t.fixed){var l=t.cropW/t.fixedNumber[0]*t.fixedNumber[1];l+t.cropOffsertY>o?(t.cropH=o-t.cropOffsertY,t.cropW=t.cropH/t.fixedNumber[1]*t.fixedNumber[0]):t.cropH=l}if(t.canChangeY&&t.fixed){var u=t.cropH/t.fixedNumber[1]*t.fixedNumber[0];u+t.cropOffsertX>i?(t.cropW=i-t.cropOffsertX,t.cropH=t.cropW/t.fixedNumber[0]*t.fixedNumber[1]):t.cropW=u}t.$emit("crop-sizing",{cropW:t.cropW,cropH:t.cropH})}))},checkCropLimitSize:function(){this.cropW,this.cropH;var e=this.limitMinSize,t=new Array;return t=Array.isArray[e]?e:[e,e],[parseFloat(t[0]),parseFloat(t[1])]},changeCropEnd:function(e){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop:function(){0===this.cropW&&0===this.cropH&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop:function(){this.crop=!0},stopCrop:function(){this.crop=!1},clearCrop:function(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove:function(e){if(e.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(e),!1;if(e.touches&&2===e.touches.length)return this.crop=!1,this.startMove(e),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);var t,n,r="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY;t=r-this.cropOffsertX,n=i-this.cropOffsertY,this.cropX=t,this.cropY=n,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop:function(e,t){var n=this,r=0,i=0;e&&(e.preventDefault(),r="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY),this.$nextTick((function(){var e,o,a=r-n.cropX,s=i-n.cropY;if(t&&(a=n.cropOffsertX,s=n.cropOffsertY),e=a<=0?0:a+n.cropW>n.w?n.w-n.cropW:a,o=s<=0?0:s+n.cropH>n.h?n.h-n.cropH:s,n.centerBox){var c=n.getImgAxis();e<=c.x1&&(e=c.x1),e+n.cropW>c.x2&&(e=c.x2-n.cropW),o<=c.y1&&(o=c.y1),o+n.cropH>c.y2&&(o=c.y2-n.cropH)}n.cropOffsertX=e,n.cropOffsertY=o,n.$emit("cropMoving",{moving:!0,axis:n.getCropAxis()}),n.$emit("crop-moving",{moving:!0,axis:n.getCropAxis()})}))},getImgAxis:function(e,t,n){e=e||this.x,t=t||this.y,n=n||this.scale;var r={x1:0,x2:0,y1:0,y2:0},i=this.trueWidth*n,o=this.trueHeight*n;switch(this.rotate){case 0:r.x1=e+this.trueWidth*(1-n)/2,r.x2=r.x1+this.trueWidth*n,r.y1=t+this.trueHeight*(1-n)/2,r.y2=r.y1+this.trueHeight*n;break;case 1:case-1:case 3:case-3:r.x1=e+this.trueWidth*(1-n)/2+(i-o)/2,r.x2=r.x1+this.trueHeight*n,r.y1=t+this.trueHeight*(1-n)/2+(o-i)/2,r.y2=r.y1+this.trueWidth*n;break;default:r.x1=e+this.trueWidth*(1-n)/2,r.x2=r.x1+this.trueWidth*n,r.y1=t+this.trueHeight*(1-n)/2,r.y2=r.y1+this.trueHeight*n}return r},getCropAxis:function(){var e={x1:0,x2:0,y1:0,y2:0};return e.x1=this.cropOffsertX,e.x2=e.x1+this.cropW,e.y1=this.cropOffsertY,e.y2=e.y1+this.cropH,e},leaveCrop:function(e){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked:function(e){var t=this,n=document.createElement("canvas"),r=new Image,i=this.rotate,o=this.trueWidth,a=this.trueHeight,s=this.cropOffsertX,c=this.cropOffsertY;function l(e,t){n.width=Math.round(e),n.height=Math.round(t)}r.onload=function(){if(0!==t.cropW){var u=n.getContext("2d"),d=1;t.high&!t.full&&(d=window.devicePixelRatio),1!==t.enlarge&!t.full&&(d=Math.abs(Number(t.enlarge)));var f=t.cropW*d,p=t.cropH*d,h=o*t.scale*d,m=a*t.scale*d,g=(t.x-s+t.trueWidth*(1-t.scale)/2)*d,v=(t.y-c+t.trueHeight*(1-t.scale)/2)*d;switch(l(f,p),u.save(),i){case 0:t.full?(l(f/t.scale,p/t.scale),u.drawImage(r,g/t.scale,v/t.scale,h/t.scale,m/t.scale)):u.drawImage(r,g,v,h,m);break;case 1:case-3:t.full?(l(f/t.scale,p/t.scale),g=g/t.scale+(h/t.scale-m/t.scale)/2,v=v/t.scale+(m/t.scale-h/t.scale)/2,u.rotate(90*i*Math.PI/180),u.drawImage(r,v,-g-m/t.scale,h/t.scale,m/t.scale)):(g+=(h-m)/2,v+=(m-h)/2,u.rotate(90*i*Math.PI/180),u.drawImage(r,v,-g-m,h,m));break;case 2:case-2:t.full?(l(f/t.scale,p/t.scale),u.rotate(90*i*Math.PI/180),g/=t.scale,v/=t.scale,u.drawImage(r,-g-h/t.scale,-v-m/t.scale,h/t.scale,m/t.scale)):(u.rotate(90*i*Math.PI/180),u.drawImage(r,-g-h,-v-m,h,m));break;case 3:case-1:t.full?(l(f/t.scale,p/t.scale),g=g/t.scale+(h/t.scale-m/t.scale)/2,v=v/t.scale+(m/t.scale-h/t.scale)/2,u.rotate(90*i*Math.PI/180),u.drawImage(r,-v-h/t.scale,g,h/t.scale,m/t.scale)):(g+=(h-m)/2,v+=(m-h)/2,u.rotate(90*i*Math.PI/180),u.drawImage(r,-v-h,g,h,m));break;default:t.full?(l(f/t.scale,p/t.scale),u.drawImage(r,g/t.scale,v/t.scale,h/t.scale,m/t.scale)):u.drawImage(r,g,v,h,m)}u.restore()}else{var b=o*t.scale,_=a*t.scale,y=n.getContext("2d");switch(y.save(),i){case 0:l(b,_),y.drawImage(r,0,0,b,_);break;case 1:case-3:l(_,b),y.rotate(90*i*Math.PI/180),y.drawImage(r,0,-_,b,_);break;case 2:case-2:l(b,_),y.rotate(90*i*Math.PI/180),y.drawImage(r,-b,-_,b,_);break;case 3:case-1:l(_,b),y.rotate(90*i*Math.PI/180),y.drawImage(r,-b,0,b,_);break;default:l(b,_),y.drawImage(r,0,0,b,_)}y.restore()}e(n)},"data"!==this.img.substr(0,4)&&(r.crossOrigin="Anonymous"),r.src=this.imgs},getCropData:function(e){var t=this;this.getCropChecked((function(n){e(n.toDataURL("image/"+t.outputType,t.outputSize))}))},getCropBlob:function(e){var t=this;this.getCropChecked((function(n){n.toBlob((function(t){return e(t)}),"image/"+t.outputType,t.outputSize)}))},showPreview:function(){var e=this;if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((function(){e.isCanShow=!0}),16);var t=this.cropW,n=this.cropH,r=this.scale,i={};i.div={width:"".concat(t,"px"),height:"".concat(n,"px")};var o=(this.x-this.cropOffsertX)/r,a=(this.y-this.cropOffsertY)/r;i.w=t,i.h=n,i.url=this.imgs,i.img={width:"".concat(this.trueWidth,"px"),height:"".concat(this.trueHeight,"px"),transform:"scale(".concat(r,")translate3d(").concat(o,"px, ").concat(a,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,"deg)")},i.html='\n <div class="show-preview" style="width: '.concat(i.w,"px; height: ").concat(i.h,'px,; overflow: hidden">\n <div style="width: ').concat(t,"px; height: ").concat(n,'px">\n <img src=').concat(i.url,' style="width: ').concat(this.trueWidth,"px; height: ").concat(this.trueHeight,"px; transform:\n scale(").concat(r,")translate3d(").concat(o,"px, ").concat(a,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,'deg)">\n </div>\n </div>'),this.$emit("realTime",i),this.$emit("real-time",i)},reload:function(){var e=this,t=new Image;t.onload=function(){e.w=parseFloat(window.getComputedStyle(e.$refs.cropper).width),e.h=parseFloat(window.getComputedStyle(e.$refs.cropper).height),e.trueWidth=t.width,e.trueHeight=t.height,e.original?e.scale=1:e.scale=e.checkedMode(),e.$nextTick((function(){e.x=-(e.trueWidth-e.trueWidth*e.scale)/2+(e.w-e.trueWidth*e.scale)/2,e.y=-(e.trueHeight-e.trueHeight*e.scale)/2+(e.h-e.trueHeight*e.scale)/2,e.loading=!1,e.autoCrop&&e.goAutoCrop(),e.$emit("img-load","success"),e.$emit("imgLoad","success"),setTimeout((function(){e.showPreview()}),20)}))},t.onerror=function(){e.$emit("imgLoad","error"),e.$emit("img-load","error")},t.src=this.imgs},checkedMode:function(){var e=1,t=(this.trueWidth,this.trueHeight),n=this.mode.split(" ");switch(n[0]){case"contain":this.trueWidth>this.w&&(e=this.w/this.trueWidth),this.trueHeight*e>this.h&&(e=this.h/this.trueHeight);break;case"cover":(t*=e=this.w/this.trueWidth)<this.h&&(e=(t=this.h)/this.trueHeight);break;default:try{var r=n[0];if(-1!==r.search("px")){r=r.replace("px","");var i=parseFloat(r)/this.trueWidth,o=1,a=n[1];-1!==a.search("px")&&(a=a.replace("px",""),o=(t=parseFloat(a))/this.trueHeight),e=Math.min(i,o)}if(-1!==r.search("%")&&(r=r.replace("%",""),e=parseFloat(r)/100*this.w/this.trueWidth),2===n.length&&"auto"===r){var s=n[1];-1!==s.search("px")&&(s=s.replace("px",""),e=(t=parseFloat(s))/this.trueHeight),-1!==s.search("%")&&(s=s.replace("%",""),e=(t=parseFloat(s)/100*this.h)/this.trueHeight)}}catch(t){e=1}}return e},goAutoCrop:function(e,t){if(""!==this.imgs&&null!==this.imgs){this.clearCrop(),this.cropping=!0;var n=this.w,r=this.h;if(this.centerBox){var i=Math.abs(this.rotate)%2>0,o=(i?this.trueHeight:this.trueWidth)*this.scale,a=(i?this.trueWidth:this.trueHeight)*this.scale;n=o<n?o:n,r=a<r?a:r}var s=e||parseFloat(this.autoCropWidth),c=t||parseFloat(this.autoCropHeight);0!==s&&0!==c||(s=.8*n,c=.8*r),s=s>n?n:s,c=c>r?r:c,this.fixed&&(c=s/this.fixedNumber[0]*this.fixedNumber[1]),c>this.h&&(s=(c=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(s,c)}},changeCrop:function(e,t){var n=this;if(this.centerBox){var r=this.getImgAxis();e>r.x2-r.x1&&(t=(e=r.x2-r.x1)/this.fixedNumber[0]*this.fixedNumber[1]),t>r.y2-r.y1&&(e=(t=r.y2-r.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=e,this.cropH=t,this.checkCropLimitSize(),this.$nextTick((function(){n.cropOffsertX=(n.w-n.cropW)/2,n.cropOffsertY=(n.h-n.cropH)/2,n.centerBox&&n.moveCrop(null,!0)}))},refresh:function(){var e=this;this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((function(){e.checkedImg()}))},rotateLeft:function(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight:function(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear:function(){this.rotate=0},checkoutImgAxis:function(e,t,n){e=e||this.x,t=t||this.y,n=n||this.scale;var r=!0;if(this.centerBox){var i=this.getImgAxis(e,t,n),o=this.getCropAxis();i.x1>=o.x1&&(r=!1),i.x2<=o.x2&&(r=!1),i.y1>=o.y1&&(r=!1),i.y2<=o.y2&&(r=!1)}return r}},mounted:function(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";var e=this,t=navigator.userAgent;this.isIOS=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(t,n,r){for(var i=atob(this.toDataURL(n,r).split(",")[1]),o=i.length,a=new Uint8Array(o),s=0;s<o;s++)a[s]=i.charCodeAt(s);t(new Blob([a],{type:e.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed:function(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}};n(1);var s=function(e,t,n,r,i,o,a,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=[],l._compiled=!0),l._scopeId="data-v-"+o,c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}(a,r,0,0,0,"6dae58fd");s.options.__file="src/vue-cropper.vue";var c=s.exports;n.d(t,"VueCropper",(function(){return c}));var l=function(e){e.component("VueCropper",c)};"undefined"!=typeof window&&window.Vue&&l(window.Vue),t.default={version:"0.5.8",install:l,VueCropper:c,vueCropper:c}}])},function(e,t,n){e.exports=n(10)},function(e,t,n){"use strict";n.r(t);var r=function(e,t,n){return t?e+n+t:e},i=function e(t,n){if("string"==typeof n)return r(t,n,"--");if(Array.isArray(n))return n.map((function(n){return e(t,n)}));var i={};return Object.keys(n||{}).forEach((function(e){i[t+"--"+e]=n[e]})),i},o={methods:{b:function(e,t){var n=this.$options.name;return e&&"string"!=typeof e&&(t=e,e=""),e=r(n,e,"__"),t?[e,i(e,t)]:e}}},a=n(1),s=function(e){return e.name=a.j+(e.name||""),e.mixins=e.mixins||[],e.mixins.push(o),e};function c(e,t,n,r,i,o,a,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}var l,u=c(s({name:"affix",props:{target:String,offsetTop:{type:Number,default:0},offsetBottom:{type:Number}},data:function(){return{container:null,affix:!1,styles:{},slot:!1,slotStyle:{}}},computed:{offsetType:function(){var e="top";return this.offsetBottom>=0&&(e="bottom"),e}},mounted:function(){this.target?this.container=document.querySelector(this.target):this.container=document,this.container.addEventListener("scroll",this.handleScroll,!1),this.container.addEventListener("resize",this.handleScroll,!1)},methods:{getScroll:function(e,t){var n=t?"scrollTop":"scrollLeft",r=e[t?"pageYOffset":"pageXOffset"];return"number"!=typeof r&&(r=document.documentElement[n]),r},getOffset:function(e){var t=e.getBoundingClientRect(),n=this.getScroll(this.container,!0),r=this.getScroll(this.container),i=document.body,o=i.clientTop||0,a=i.clientLeft||0;return{top:t.top+n-o,left:t.left+r-a}},handleScroll:function(){var e=this.affix,t=this.getScroll(this.container,!0),n=this.getOffset(this.$el),r=this.container.innerHeight,i=this.$el.getElementsByTagName("div")[0].offsetHeight;n.top-this.offsetTop<t&&"top"==this.offsetType&&!e?(this.affix=!0,this.slotStyle={width:this.$refs.point.clientWidth+"px",height:this.$refs.point.clientHeight+"px"},this.slot=!0,this.styles={top:"".concat(this.offsetTop,"px"),left:"".concat(n.left,"px"),width:"".concat(this.$el.offsetWidth,"px")},this.$emit("on-change",!0)):n.top-this.offsetTop>t&&"top"==this.offsetType&&e&&(this.slot=!1,this.slotStyle={},this.affix=!1,this.styles=null,this.$emit("on-change",!1)),n.top+this.offsetBottom+i>t+r&&"bottom"==this.offsetType&&!e?(this.affix=!0,this.styles={bottom:"".concat(this.offsetBottom,"px"),left:"".concat(n.left,"px"),width:"".concat(this.$el.offsetWidth,"px")},this.$emit("on-change",!0)):n.top+this.offsetBottom+i<t+r&&"bottom"==this.offsetType&&e&&(this.affix=!1,this.styles=null,this.$emit("on-change",!1))}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.handleScroll,!1),this.container.removeEventListener("resize",this.handleScroll,!1)}}),(function(){var e=this._self._c;return this._self._setupProxy,e("div",[e("div",{ref:"point",class:{"avue-affix":this.affix},style:this.styles},[this._t("default")],2),this._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:this.slot,expression:"slot"}],style:this.slotStyle})])}),[],!1,null,null,null).exports,d=n(5),f=n.n(d),p=c(s({name:"count-up",props:{animation:{type:Boolean,default:!0},start:{type:Number,required:!1,default:0},end:{required:!0},decimals:{type:Number,required:!1,default:0},duration:{type:Number,required:!1,default:2},options:{type:Object,required:!1,default:function(){return{}}},callback:{type:Function,required:!1,default:function(){}}},data:function(){return{c:null}},watch:{decimals:function(){this.c&&this.c.update&&this.c.update(this.end)},end:function(e){this.c&&this.c.update&&this.c.update(e)}},mounted:function(){this.animation&&this.init()},methods:{init:function(){var e=this;this.c||(this.c=new f.a(this.$el,this.start,this.end,this.decimals,this.duration,this.options),this.c.start((function(){e.callback(e.c)})))},destroy:function(){this.c=null}},beforeDestroy:function(){this.destroy()},start:function(e){var t=this;this.c&&this.c.start&&this.c.start((function(){e&&e(t.c)}))},pauseResume:function(){this.c&&this.c.pauseResume&&this.c.pauseResume()},reset:function(){this.c&&this.c.reset&&this.c.reset()},update:function(e){this.c&&this.c.update&&this.c.update(e)}}),(function(){var e=this._self._c;return this._self._setupProxy,e("span",[this._v(this._s(this.end))])}),[],!1,null,null,null).exports;function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=c(s({name:"avatar",props:(l={src:String,shape:{validator:function(e){return["circle","square"].includes(e)},default:"circle"}},h(l,"shape",String),h(l,"size",{validator:function(e){return"number"==typeof e||["small","large","default"].includes(e)},default:"default"}),h(l,"icon",String),l),data:function(){return{scale:1}},updated:function(){var e=this;this.$nextTick((function(){e.setScale()}))},computed:{sizeChildrenStyle:function(){var e={},t=(this.$refs.avatarChildren,"scale(".concat(this.scale,") translateX(-50%)"));return e={msTransform:t,WebkitTransform:t,transform:t},"number"==typeof size&&(e.lineHeight="".concat(this.size,"px")),e},sizeCls:function(){var e;return h(e={},"".concat("avue-avatar","--").concat(this.shape),this.shape),h(e,"".concat("avue-avatar","--lg"),"large"===this.size),h(e,"".concat("avue-avatar","--sm"),"small"===this.size),e},sizeStyle:function(){return"number"==typeof this.size?{width:"".concat(this.size,"px"),height:"".concat(this.size,"px"),lineHeight:"".concat(this.size,"px"),fontSize:this.icon?"".concat(this.size/2,"px"):"18px"}:{}}},mounted:function(){var e=this;this.$nextTick((function(){e.setScale()}))},methods:{setScale:function(){var e=this.$refs.avatarChildren;if(e){var t=e.offsetWidth,n=this.$el.getBoundingClientRect().width;this.scale=n-8<t?(n-8)/t:1}}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("span",{class:[e.b(),e.sizeCls,e.b("icon")],style:e.sizeStyle},[e.src?t("img",{class:e.b("images"),attrs:{src:e.src,alt:""}}):e.icon?t("i",{class:e.icon}):t("span",{ref:"avatarChildren",class:e.b("string"),style:e.sizeChildrenStyle},[e._t("default")],2)])}),[],!1,null,null,null).exports,g={title:"title",meta:"meta",lead:"lead",body:"body"},v=c(s({name:"article",props:{data:{type:Object,default:function(){return{}}},props:{type:Object,default:function(){return g}}},computed:{titleKey:function(){return this.props.title||g.title},metaKey:function(){return this.props.meta||g.meta},leadKey:function(){return this.props.lead||g.lead},bodyKey:function(){return this.props.body||g.body},title:function(){return this.data[this.titleKey]},meta:function(){return this.data[this.metaKey]},lead:function(){return this.data[this.leadKey]},body:function(){return this.data[this.bodyKey]}},mounted:function(){}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b()},[t("div",{class:e.b("header")},[e.title?t("div",{class:e.b("title"),domProps:{textContent:e._s(e.title)}}):e._e(),e._v(" "),e.meta?t("small",{class:e.b("meta"),domProps:{textContent:e._s(e.meta)}}):e._e()]),e._v(" "),e.lead?t("div",{class:e.b("lead"),domProps:{textContent:e._s(e.lead)}}):e._e(),e._v(" "),e.body?t("div",{class:e.b("body"),domProps:{innerHTML:e._s(e.body)}}):e._e()])}),[],!1,null,null,null).exports;function b(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var y={};function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t="";switch(e){case"default":t="#35495E";break;case"primary":t="#3488ff";break;case"success":t="#43B883";break;case"warning":t="#e6a23c";break;case"danger":t="#f56c6c"}return t}y.capsule=function(e,t){},y.colorful=function(e){var t;(t=console).log.apply(t,["%c".concat(e.map((function(e){return e.text||""})).join("%c"))].concat(b(e.map((function(e){return"color: ".concat(w(e.type),";")})))))},y.default=function(e){y.colorful([{text:e}])},y.primary=function(e){y.colorful([{text:e,type:"primary"}])},y.success=function(e){y.colorful([{text:e,type:"success"}])},y.warning=function(e){y.colorful([{text:e,type:"warning"}])},y.danger=function(e){y.colorful([{text:e,type:"danger"}])};var x=y,k={AliOSS:{url:"https://cdn.staticfile.org/ali-oss/6.17.1/aliyun-oss-sdk.min.js",title:"阿里云云图片上传,需引入OSS的sdk",github:"https://github.com/ali-sdk/ali-oss/"},Map:{url:"https://webapi.amap.com/maps?v=1.4.11&key=xxxxx&plugin=AMap.PlaceSearch,https://webapi.amap.com/ui/1.0/main.js?v=1.0.11",title:"地图组件,需引入高德SDK"},MapUi:{url:"https://webapi.amap.com/ui/1.0/main.js?v=1.0.11",title:"地图组件,需引入高德UISDK"},Sortable:{url:"https://cdn.staticfile.org/Sortable/1.10.0-rc2/Sortable.min.js",title:"拖拽,需引入sortableJs",github:"https://github.com/SortableJS/Sortable"},Screenshot:{url:"https://cdn.staticfile.org/html2canvas/0.5.0-beta4/html2canvas.min.js",title:"需引入html2canvas依赖包",github:"https://github.com/niklasvh/html2canvas/"},COS:{url:"https://avuejs.com/cdn/cos-js-sdk-v5.min.js",title:"腾讯云云图片上传,需引入COS"},CryptoJS:{url:"https://avuejs.com/cdn/CryptoJS.js",title:"七牛云图片上传,需引入CryptoJS"},hljs:{url:"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js",title:"需引入hljs框架包",github:"https://github.com/highlightjs/highlight.js"},"file-saver":{url:"https://cdn.staticfile.org/FileSaver.js/2014-11-29/FileSaver.min.js",title:"需引入文件操作包",github:"https://github.com/eligrey/FileSaver.js"},xlsx:{url:"https://cdn.staticfile.org/xlsx/0.18.2/xlsx.full.min.js",title:"需引入excel操作包",github:"https://github.com/protobi/js-xlsx"},mock:{url:"https://cdn.staticfile.org/Mock.js/1.0.1-beta3/mock-min.js",title:"需要引入mock模拟数据包",github:"https://github.com/Colingo/mock"}},C={logs:function(e){var t=k[e];x.capsule(e,t.title,"warning"),x.warning("CDN:"+(t.url||"-")),x.warning("GITHUB:"+(t.github||"-"))}},A=function(){function e(e,t){var n=t.value;e.style.display=!1===n?"none":""}return{bind:function(t,n){e(t,n)},update:function(t,n){e(t,n)}}}(),S=n(0),E=n(2);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.value||a.f.value,i=t.children||a.f.children;return e.forEach((function(e){e[r]=Object(S.g)(e[r],n),e[i]&&D(e[i],t,n)})),e}var L=function(e){var t=e.url,n=e.query,r=e.method,i=e.props,o=e.formatter,a=e.headers,s=e.value,c=e.column,l=void 0===c?{}:c,u=e.form,d=void 0===u?{}:u,f=e.dataType;t=l.dicUrl||t,r=(l.dicMethod||r||"get").toLowerCase(),a=l.dicHeaders||a||{},n=l.dicQuery||n||{},o=l.dicFormatter||o,i=l.props||i||{},(t.match(/[^\{\}]+(?=\})/g)||[]).forEach((function(e){var n="key"===e?s:d[e];Object(E.a)(n)&&(n=""),t=t.replace("{{".concat(e,"}}"),n)}));var p=function(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];if("string"==typeof r&&r.match(/\{{|}}/g)){var i=r.replace(/\{{|}}/g,"");t[n]="key"==i?s:d[i]}else t[n]=r})),t};return new Promise((function(e,s){t||e([]);var c,l=function(t){var n=[];t=t.data||{},n="function"==typeof o?o(t,d):function(e,t,n){var r=t.res,i=e,o=e.data;return r?i=Object(S.m)(i,r):o&&(i=Array.isArray(o)?o:[o]),n&&(i=D(i,t,n)),i}(t,i,f),e(n)};window.axios(Object.assign({url:t,method:r,headers:p(a)},(c=p(n),"get"==r?{params:c}:{data:c}))).then((function(e){l(e)})).catch((function(e){return[s(e)]}))}))},M={methods:{getSlotName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"D",n=arguments.length>2?arguments[2]:void 0,r={F:"Form",H:"Header",E:"Error",L:"Label",S:"Search",T:"Type",D:""},i=e.prop+r[t];return n?n[i]:i},getSlotList:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return n=n.map((function(e){return e.prop})),Object.keys(t).filter((function(t){var r=!1;return n.includes(t)||e.forEach((function(e){t.includes(e)&&(r=!0)})),r}))}}};function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){B(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I=function(){return{mixins:[M],props:{defaults:{type:Object,default:function(){return{}}},option:{type:Object,required:!0,default:function(){return{}}}},watch:{defaults:{handler:function(e){this.objectOption=e},deep:!0},objectOption:{handler:function(e){this.$emit("update:defaults",e)},deep:!0},propOption:{handler:function(e){var t={};e.forEach((function(e){t[e.prop]=e})),this.$set(this,"objectOption",t)},deep:!0},option:{handler:function(){this.init(!1)},deep:!0}},data:function(){return{DIC:{},cascaderDIC:{},tableOption:{},isMobile:"",objectOption:{}}},created:function(){this.init()},computed:{resultOption:function(){return N(N({},this.tableOption),{column:this.propOption})},rowKey:function(){return this.tableOption.rowKey||a.f.rowKey},formRules:function(){var e={};return this.propOption.forEach((function(t){t.rules&&!1!==t.display&&(e[t.prop]=t.rules)})),e},isMediumSize:function(){return this.controlSize},controlSize:function(){return this.tableOption.size||this.$AVUE.size}},methods:{init:function(e){this.tableOption=this.option,this.getIsMobile(),this.handleLocalDic(),!1!==e&&this.handleLoadDic()},dicInit:function(e){"cascader"===e?this.handleLoadCascaderDic():this.handleLoadDic()},getIsMobile:function(){this.isMobile=document.body.clientWidth<=768},updateDic:function(e,t){var n=this,r=this.findObject(this.propOption,e);this.validatenull(t)&&this.validatenull(e)?this.handleLoadDic():this.validatenull(t)&&!this.validatenull(r.dicUrl)?L({column:r}).then((function(t){n.$set(n.DIC,e,t)})):this.$set(this.DIC,e,t)},handleLocalDic:function(){!function(e,t){var n={},r=e.dicData||{};e.column.forEach((function(e){e.dicData&&(n[e.prop]=D(e.dicData,e.props,e.dataType))}));var i=O(O({},r),n);Object.keys(i).forEach((function(e){t.$set(t.DIC,e,i[e])}))}(this.resultOption,this)},handleLoadDic:function(){var e,t;e=this.resultOption,t=this,new Promise((function(n){var r=[],i={},o=[],a=[];(e.column||[]).forEach((function(e){var n=e.dicUrl,i=e.prop,a=e.parentProp;o=o.concat(e.cascader||[]);var s=!1===e.dicFlag||!0===e.lazy||o.includes(i);!n||a||s||r.push(new Promise((function(r){L({url:n,name:i,method:e.dicMethod,headers:e.dicHeaders,formatter:e.dicFormatter,props:e.props,dataType:e.dataType,query:e.dicQuery}).then((function(e){t.$set(t.DIC,i,e),r(e)}))})))})),Promise.all(r).then((function(e){a.forEach((function(t,n){i[t]=e[n]})),n(i)}))}))},handleLoadCascaderDic:function(){var e,t;e=this.propOption,t=this,new Promise((function(n){var r=[],i={},o=e.filter((function(e){return e.parentProp}));t.data.forEach((function(e,n){t.cascaderDIC[n]||t.$set(t.cascaderDIC,n,{}),o.forEach((function(i){!0!==i.hide&&!1!==i.dicFlag&&r.push(new Promise((function(r){if(e[i.parentProp])L({url:i.dicUrl,props:i.props,method:i.dicMethod,headers:i.dicHeaders,formatter:i.dicFormatter,query:i.dicQuery,dataType:i.dataType,form:e,value:e[i.parentProp]}).then((function(e){var o={prop:i.prop,data:e,index:n};t.$set(t.cascaderDIC[n],o.prop,o.data),r(o)}));else{var o={prop:i.prop,data:[],index:n};t.$set(t.cascaderDIC[n],o.prop,o.data),r(o)}})))}))})),Promise.all(r).then((function(e){e.forEach((function(e){i[e.index]||(i[e.index]={}),i[e.index][e.prop]=e.data})),n(i)}))}))}}}},P={menuWidth:220,menuFixed:"right",menuXsWidth:100,menuAlign:"center",menuHeaderAlign:"center",headerAlign:"left",cancelBtnIcon:"el-icon-circle-close",viewBtnIcon:"el-icon-view",editBtnIcon:"el-icon-edit",copyBtnIcon:"el-icon-document-add",addBtnIcon:"el-icon-plus",printBtnIcon:"el-icon-printer",excelBtnIcon:"el-icon-download",delBtnIcon:"el-icon-delete",searchBtnIcon:"el-icon-search",emptyBtnIcon:"el-icon-delete",saveBtnIcon:"el-icon-circle-plus-outline",updateBtnIcon:"el-icon-circle-check",columnBtnIcon:"el-icon-s-operation",filterBtnIcon:"el-icon-tickets",refreshBtnIcon:"el-icon-refresh",viewBtn:!1,editBtn:!0,copyBtn:!1,cancelBtn:!0,addBtn:!0,addRowBtn:!1,printBtn:!1,excelBtn:!1,delBtn:!0,cellBtn:!1,dateBtn:!1,updateBtn:!0,saveBtn:!0,refreshBtn:!0,columnBtn:!0,filterBtn:!1,queryBtn:!0,menuBtn:!1,searchBtn:!0,clearBtn:!0,selectClearBtn:!0,searchShow:!0,tip:!0,dialogWidth:"60%",dialogDrag:!1,formFullscreen:!1,pageBackground:!0,page:!0,menu:!0,indexLabel:"#",indexWidth:50,indexFixed:"left",selectionWidth:50,selectionFixed:"left",expandWidth:60,expandFixed:"left",filterMultiple:!0,calcHeight:300,width:"100%",searchLabelWidth:80,searchSpan:6,dropRowClass:".el-table__body-wrapper > table > tbody",dropColClass:".el-table__header-wrapper tr",ghostClass:"avue-crud__ghost"},$=c(s({name:"crud",inject:["crud"],data:function(){return{config:P,defaultPage:{single:!1,total:0,pagerCount:7,currentPage:1,pageSize:10,pageSizes:[10,20,30,40,50,100],layout:"total, sizes, prev, pager, next, jumper",background:!0}}},created:function(){this.crud.isMobile&&(this.defaultPage.layout="total, sizes, prev, pager, next"),this.pageInit(),this.crud.$emit("on-load",this.defaultPage)},watch:{"crud.page":{handler:function(){this.pageInit()},deep:!0},pageFlag:function(){this.crud.getTableHeight()},"defaultPage.total":function(e){this.defaultPage.total===(this.defaultPage.currentPage-1)*this.defaultPage.pageSize&&0!=this.defaultPage.total&&(this.defaultPage.currentPage=this.defaultPage.currentPage-1,this.currentChange(this.defaultPage.currentPage))}},computed:{pageFlag:function(){return 0!=this.defaultPage.total}},methods:{pageInit:function(){this.defaultPage=Object.assign(this.defaultPage,this.crud.page),this.updateValue()},updateValue:function(){this.crud.$emit("update:page",this.defaultPage)},nextClick:function(e){this.crud.$emit("next-click",e)},prevClick:function(e){this.crud.$emit("prev-click",e)},sizeChange:function(e){this.defaultPage.currentPage=1,this.defaultPage.pageSize=e,this.updateValue(),this.crud.$emit("on-load",this.defaultPage),this.crud.$emit("size-change",e)},currentChange:function(e){this.updateValue(),this.crud.$emit("on-load",this.defaultPage),this.crud.$emit("current-change",e)}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,e.pageFlag&&e.vaildData(e.crud.tableOption.page,!0)?t("el-card",{class:e.b("pagination"),attrs:{shadow:e.crud.isCard}},[e._t("page"),e._v(" "),t("el-pagination",{attrs:{small:"mini"==e.crud.size,disabled:e.defaultPage.disabled,"hide-on-single-page":e.defaultPage.single,"pager-count":e.defaultPage.pagerCount,"current-page":e.defaultPage.currentPage,background:e.defaultPage.background,"page-size":e.defaultPage.pageSize,"page-sizes":e.defaultPage.pageSizes,layout:e.defaultPage.layout,total:e.defaultPage.total},on:{"update:currentPage":function(t){return e.$set(e.defaultPage,"currentPage",t)},"update:current-page":function(t){return e.$set(e.defaultPage,"currentPage",t)},"size-change":e.sizeChange,"prev-click":e.prevClick,"next-click":e.nextClick,"current-change":e.currentChange}})],2):e._e()}),[],!1,null,null,null).exports,j=n(4),z=n.n(j);function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var H=Object.prototype.hasOwnProperty;function U(e,t){return H.call(e,t)}var W=/(%|)\{([0-9a-zA-Z_]+)\}/g,V=(z.a,function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return 1===n.length&&"object"===q(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(W,(function(t,r,i,o){var a;return"{"===e[o-1]&&"}"===e[o+t.length]?i:null==(a=U(n,i)?n[i]:null)?"":a}))}),G={common:{submitBtn:"确 定",cancelBtn:"取 消",condition:"条件",display:"显示",hide:"隐藏"},tip:{select:"请选择",input:"请输入"},check:{checkAll:"全选"},upload:{upload:"点击上传",tip:"将文件拖到此处,或"},time:{start:"开始",end:"结束"},date:{start:"开始",end:"结束",t:"今日",y:"昨日",n:"近7天",a:"全部"},form:{printBtn:"打 印",mockBtn:"模 拟",submitBtn:"提 交",emptyBtn:"清 空"},crud:{excel:{name:"文件名",type:"数据",typeDic:{true:"当前数据(当前页全部的数据)",false:"选中的数据(当前页选中的数据)"},prop:"字段",params:"参数",paramsDic:{header:"表头",data:"数据源",headers:"复杂表头",sum:"合计统计"}},filter:{addBtn:"新增条件",clearBtn:"清空数据",resetBtn:"清空条件",cancelBtn:"取 消",submitBtn:"确 定"},column:{name:"列名",hide:"隐藏",fixed:"冻结",filters:"过滤",sortable:"排序",index:"顺序",width:"宽度"},emptyText:"暂无数据",tipStartTitle:"当前表格已选择",tipEndTitle:"项",editTitle:"编 辑",copyTitle:"复 制",addTitle:"新 增",viewTitle:"查 看",filterTitle:"过滤条件",showTitle:"列显隐",menu:"操作",addBtn:"新 增",show:"显 示",hide:"隐 藏",open:"展 开",shrink:"收 缩",printBtn:"打 印",excelBtn:"导 出",updateBtn:"修 改",cancelBtn:"取 消",searchBtn:"搜 索",emptyBtn:"清 空",menuBtn:"功 能",saveBtn:"保 存",viewBtn:"查 看",editBtn:"编 辑",copyBtn:"复 制",delBtn:"删 除"}},K=!1,Y=function(){var e=Object.getPrototypeOf(this||z.a||{}).$t;if("function"==typeof e&&z.a.locale)return K||(K=!0,z.a.locale(z.a.config.lang,Object.assign(G,z.a.locale(z.a.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},X=function(e,t){var n=Y.apply(this,arguments);if(null!=n)return n;for(var r=e.split("."),i=G,o=0,a=r.length;o<a;o++){var s=r[o];if(n=i[s],o===a-1)return V(n,t);if(!n)return"";i=n}return""},Q={use:function(e){G=e||G},t:X,i18n:function(e){Y=e||Y}},J={methods:{t:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return X.apply(this,t)}}},Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.forEach((function(t){var n=t.cascader;if(!Object(E.a)(n)){var r=t.prop;n.forEach((function(t){var n=Object(S.l)(e,t);n&&(n.parentProp=r)}))}})),e},ee=0,te=function(e){var t=e.type,n=e.searchRange,r=t;return e.searchType?e.searchType:(["radio","checkbox","switch"].includes(t)?r="select":a.d.includes(t)?r=n?t.includes("range")?t:t+"range":t.replace("range",""):["textarea"].includes(t)&&(r="input"),r)},ne=function(e,t){var n=e||"input";return Object(E.a)(t)?(a.a.includes(e)?n="array":["time","timerange"].includes(e)?n="time":a.d.includes(e)?n="date":["password","textarea","search"].includes(e)?n="input":a.i.includes(e)&&(n="input-"+e),a.j+n):t},re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={};return e.forEach((function(e){a.b.includes(e.type)&&!1!==e.emitPath||a.k.includes(e.type)&&e.multiple||"array"===e.dataType?t[e.prop]=[]:a.l.includes(e.type)&&1==e.range?t[e.prop]=[0,0]:["rate","slider","number"].includes(e.type)||"number"===e.dataType?t[e.prop]=void 0:t[e.prop]="",e.bind&&(t=Object(S.d)(t,e.bind)),Object(E.a)(e.value)||(t[e.prop]=e.value)})),{tableForm:t}},ie=function(e){var t=e.placeholder,n=e.label;return Object(E.a)(t)?a.m.includes(e.type)?"".concat(X("tip.select")," ").concat(n):"".concat(X("tip.input")," ").concat(n):t},oe=c(s({name:"crud__search",inject:["crud"],mixins:[J,M],data:function(){return{show:!1,searchIndex:2,searchShow:!0}},props:{search:Object},watch:{"crud.propOption":{handler:function(){this.dataFormat()},deep:!0},show:function(){this.crud.getTableHeight()},searchShow:function(){this.crud.getTableHeight()}},created:function(){this.initFun(),this.dataFormat()},computed:{searchForm:{get:function(){return this.crud.search},set:function(e){this.crud.$emit("update:search",e)}},option:function(){var e,t,n,r=this,i=this.crud.option;return this.searchIndex=i.searchIndex||2,e=i,t=r.deepClone(e),n={},Object.keys(t).forEach((function(e){if(e.includes("search")){var r=e.replace("search","");if(0==r.length)return;r=r.replace(r[0],r[0].toLowerCase()),n[r]=t[e]}})),t.column=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e=r.deepClone(e);var t=[],n=0;return(e=e.sort((function(e,t){return(t.searchOrder||0)-(e.searchOrder||0)}))).forEach((function(e){if(e.search){var o=n<r.searchIndex,a={};Object.keys(e).forEach((function(t){if("searchProp"!=t&&t.includes("search")){var n=t.replace("search","");if(0==n.length)return;n=n.replace(n[0],n[0].toLowerCase()),a[n]=e[t]}})),e=Object.assign(e,a,{type:te(e),detail:!1,dicFlag:!!e.cascader||r.vaildData(e.dicFlag,!1),span:e.searchSpan||i.searchSpan||P.searchSpan,control:e.searchControl,labelWidth:e.searchLabelWidth||i.searchLabelWidth||P.searchLabelWidth,labelPosition:e.searchLabelPosition||i.searchLabelPosition,size:e.searchSize||i.searchSize,value:e.searchValue,rules:e.searchRules,row:e.searchRow,bind:e.searchBin,disabled:e.searchDisabled,readonly:e.searchReadonly,display:!r.isSearchIcon||!!r.show||o}),t.push(e),n+=1}})),t}(r.crud.propOption),t=Object.assign(t,n,{rowKey:i.searchRowKey||"null",tabs:!1,group:!1,printBtn:!1,mockBtn:!1,submitText:i.searchBtnText||r.t("crud.searchBtn"),submitBtn:r.vaildData(i.searchBtn,P.searchSubBtn),submitIcon:r.crud.getBtnIcon("searchBtn"),emptyText:i.emptyBtnText||r.t("crud.emptyBtn"),emptyBtn:r.vaildData(i.emptyBtn,P.emptyBtn),emptyIcon:r.crud.getBtnIcon("emptyBtn"),menuSpan:r.show||!r.isSearchIcon||i.searchMenuSpan<6?i.searchMenuSpan:6,menuPosition:i.searchMenuPosition||"center",dicFlag:!1,dicData:r.crud.DIC})},isSearchIcon:function(){return this.vaildData(this.crud.option.searchIcon,this.$AVUE.searchIcon)&&this.searchLen>this.searchIndex},searchLen:function(){var e=0;return this.crud.propOption.forEach((function(t){t.search&&e++})),e},searchFlag:function(){return!!this.crud.$scopedSlots.search||0!==this.searchLen}},methods:{initFun:function(){var e=this;["searchReset","searchChange"].forEach((function(t){return e.crud[t]=e[t]}))},getSlotName:function(e){return e.replace("Search","")},searchChange:function(e,t){e=Object(S.i)(e),this.crud.propOption.forEach((function(t){t.searchProp&&(e[t.searchProp]=e[t.prop],delete e[t.prop])})),this.crud.$emit("search-change",e,t)},resetChange:function(){this.crud.$emit("search-reset",this.searchForm)},searchReset:function(){this.$refs.form.resetForm()},handleSearchShow:function(){this.searchShow=!this.searchShow},dataFormat:function(){var e=this.crud.option;this.searchShow=this.vaildData(e.searchShow,P.searchShow)}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,e.searchFlag?t("el-card",{directives:[{name:"show",rawName:"v-show",value:e.searchShow&&e.searchFlag,expression:"searchShow && searchFlag"}],class:e.b(),attrs:{shadow:e.crud.isCard}},[e._t("search",null,{row:e.searchForm,search:e.searchForm,size:e.crud.controlSize}),e._v(" "),t("avue-form",{ref:"form",attrs:{option:e.option},on:{submit:e.searchChange,"reset-change":e.resetChange},scopedSlots:e._u([{key:"menuForm",fn:function(n){return[e._t("searchMenu",null,null,Object.assign(n,{search:e.searchForm,row:e.searchForm})),e._v(" "),e.isSearchIcon?[!1===e.show?t("el-button",{attrs:{type:"text",icon:"el-icon-arrow-down"},on:{click:function(t){e.show=!0}}},[e._v(e._s(e.t("crud.open")))]):e._e(),e._v(" "),!0===e.show?t("el-button",{attrs:{type:"text",icon:"el-icon-arrow-up"},on:{click:function(t){e.show=!1}}},[e._v(e._s(e.t("crud.shrink")))]):e._e()]:e._e()]}},e._l(e.crud.searchSlot,(function(t){return{key:e.getSlotName(t),fn:function(n){return[e._t(t,null,null,Object.assign(n,{search:e.searchForm,row:e.searchForm}))]}}}))],null,!0),model:{value:e.searchForm,callback:function(t){e.searchForm=t},expression:"searchForm"}})],2):e._e()}),[],!1,null,null,null).exports,ae=n(3),se=n.n(ae),ce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=e[t.prop],o=t.type,s=t.separator;if(t.bind&&(i=Object(S.m)(e,t.bind)),!Object(E.a)(i)){var c=a.k.includes(t.type)&&t.multiple,l=a.b.includes(t.type);if(!c&&!l||Array.isArray(i)||t.dataType||(t.dataType="string"),t.dataType&&(c||l?(Array.isArray(i)||(i=i.split(s||a.h)),i.forEach((function(e){e=Object(S.g)(e,t.dataType)}))):i=Object(S.g)(i,t.dataType)),"password"===o)i=Object(S.q)(i,"*");else if(a.d.includes(o)&&t.format){var u=t.format.replace("dd","DD").replace("yyyy","YYYY"),d=se()().format("YYYY-MM-DD");if(-1!==o.indexOf("range")){var f=i[0]||"",p=i[1]||"";"timerange"===o&&f.length<=8&&p.length<8&&(f="".concat(d," ").concat(f),p="".concat(d," ").concat(p)),i=[se()(f).format(u),se()(p).format(u)].join(t.separator||"~")}else"time"===o&&i.length<=8&&(i="".concat(d," ").concat(i)),i=se()(i).format(u)}}return Object(E.a)(r)||(i=Object(S.o)(r,i,t.props||n.props)),"function"==typeof t.formatter?i=t.formatter(e,e[t.prop],i,t):Array.isArray(i)&&!Object(E.a)(r)&&(i=i.join(s||a.g)),i},le=c({name:"form-temp",mixins:[M],props:{value:{},uploadBefore:Function,uploadDelete:Function,uploadAfter:Function,uploadPreview:Function,uploadError:Function,uploadExceed:Function,boxType:String,columnSlot:{type:Array,default:function(){return[]}},tableData:{type:Object,default:function(){return{}}},clearable:{type:Boolean},enter:{type:Boolean,default:!1},type:{type:String},propsHttp:{type:Object,default:function(){return{}}},props:{type:Object},dic:{type:Array},placeholder:{type:String},size:{type:String},disabled:{type:Boolean},readonly:{type:Boolean},column:{type:Object,default:function(){return{}}}},computed:{params:function(){return this.column.params||{}},event:function(){return this.column.event||{}},text:{get:function(){return this.value},set:function(e){this.$emit("input",e),this.$emit("change",e)}}},methods:{getComponent:ne,getPlaceholder:ie,enterChange:function(){"function"==typeof this.column.enter?this.column.enter({value:this.text,column:this.column}):this.enter&&this.$emit("enter")}}},(function(){var e=this,t=e._self._c;return t(e.getComponent(e.column.type,e.column.component),e._g(e._b({ref:"temp",tag:"component",attrs:{column:Object.assign(e.column,e.params),dic:e.dic,"box-type":e.boxType,disabled:e.column.disabled||e.disabled,readonly:e.column.readonly||e.readonly,placeholder:e.getPlaceholder(e.column),props:e.column.props||e.props,propsHttp:e.column.propsHttp||e.propsHttp,size:e.column.size||e.size,"table-data":e.tableData,type:e.type||e.column.type,"column-slot":e.columnSlot},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.enterChange.apply(null,arguments)}},scopedSlots:e._u([e._l(e.getSlotName(e.column,"T",e.$scopedSlots)?[e.column]:[],(function(t){return{key:"default",fn:function(n){return[e._t(e.getSlotName(t,"T"),null,null,n)]}}})),e._l(e.columnSlot,(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0),model:{value:e.text,callback:function(t){e.text=t},expression:"text"}},"component",Object.assign(e.column,e.$uploadFun(e.column)),!1),e.event),[e.params.html?t("span",{domProps:{innerHTML:e._s(e.params.html)}}):e._e()])}),[],!1,null,null,null).exports,ue=c({name:"icon-temp",props:{small:Boolean,text:{type:String,default:""}}},(function(){var e=this._self._c;return e("span",{staticClass:"avue-icon",class:{"avue-icon--small":this.small}},[this.text.includes("#")?e("svg",{attrs:{"aria-hidden":"true"}},[e("use",{attrs:{"xlink:href":this.text}})]):e("i",{class:this.text})])}),[],!1,null,null,null).exports;function de(e){return function(e){if(Array.isArray(e))return fe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var pe={},he=c({name:"column-slot",inject:["dynamic","crud"],components:{formTemp:le,iconTemp:ue},props:{column:Object,columnOption:Array},created:function(){var e=this,t=["getColumnProp","handleFilterMethod","handleFilters"];Object.keys(this.dynamic).forEach((function(n){t.includes(n)&&(e[n]=e.dynamic[n])}))},methods:{isMediaType:function(e,t){return Object(S.s)(e,t)},vaildLabel:function(e,t,n){if(e.rules&&t.$cellEdit)return n},columnChange:function(e,t,n){var r="".concat(n,"-").concat(t.prop);pe[r]||(this.handleChange(t,e),"function"==typeof t.change&&1==t.cell&&t.change({row:e,column:t,index:n,value:e[t.prop]})),pe[r]=!0,this.$nextTick((function(){return pe[r]=!1}))},handleChange:function(e,t){var n=this;e.cascader&&this.$nextTick((function(){de(n.crud.propOption);var r=e.cascader;r.join(","),r.forEach((function(i){var o=i,s=t[e.prop],c=t.$index,l=n.findObject(n.columnOption,o);n.validatenull(l)||(n.validatenull(n.crud.cascaderDIC[c])&&n.$set(n.crud.cascaderDIC,c,{}),n.crud.cascaderIndexList.includes(c)&&r.forEach((function(e){n.$set(n.crud.cascaderDIC[c],e,[]),r.forEach((function(e){t[e]=Object(S.b)(t[e])}))})),n.validatenull(r)||n.validatenull(s)||n.validatenull(l)||L({column:l,value:s,form:t}).then((function(e){var r=e||[];n.crud.cascaderIndexList.includes(c)||n.crud.cascaderIndexList.push(c),n.crud.cascaderDicList[c]||n.$set(n.crud.cascaderDicList,c,{}),n.crud.cascaderDicList[c][o]||n.$set(n.crud.cascaderDicList[c],o,r),n.$set(n.crud.cascaderDIC[c],o,r),n.validatenull(r[l.cascaderIndex])||n.validatenull(r)||n.validatenull(l.cascaderIndex)||(t[o]=r[l.cascaderIndex][(l.props||{}).value||a.f.value])})))}))}))},handleDetail:function(e,t){var n,r=t.parentProp?(this.crud.cascaderDIC[e.$index]||{})[t.prop]:this.crud.DIC[t.prop];return n=ce(e,t,this.crud.tableOption,r),this.validatenull(r)||!0===this.crud.tableOption.filterDic||(e["$"+t.prop]=n),n},corArray:function(e,t){var n=this.handleDetail(e,t);return Array.isArray(n)||(n=this.validatenull(n)?[]:n.split(a.g)),this.deepClone(n)},openImg:function(e,t,n){var r=this.getImgList(e,t);r=r.map((function(e){return{thumbUrl:e,url:e,type:t.fileType}})),this.$ImagePreview(r,n)},getImgList:function(e,t){var n,r,i=(null===(n=t.propsHttp)||void 0===n?void 0:n.home)||"",o=(null===(r=t.props)||void 0===r?void 0:r.value)||a.f.value,s=this.corArray(e,t);return s.forEach((function(e,t){s[t]=i+(e[o]?e[o]:e)})),s}}},(function(){var e=this,t=e._self._c;return e.getColumnProp(e.column,"hide")?t("el-table-column",{key:e.column.prop,attrs:{prop:e.column.prop,label:e.column.label,"class-name":e.column.className,"label-class-name":e.column.labelClassName,"column-key":e.column.prop,"filter-placement":"bottom-end",filters:e.getColumnProp(e.column,"filters"),"filter-method":e.getColumnProp(e.column,"filterMethod")?e.handleFilterMethod:void 0,"filter-multiple":e.vaildData(e.column.filterMultiple,!0),"show-overflow-tooltip":e.column.showOverflowTooltip||e.column.overHidden,"tooltip-effect":e.column.tooltipEffect,"min-width":e.column.minWidth,sortable:e.getColumnProp(e.column,"sortable"),"sort-method":e.column.sortMethod,"sort-orders":e.column.sortOrders,"sort-by":e.column.sortBy,resizable:e.column.resizable,"render-header":e.column.renderHeader,align:e.column.align||e.crud.tableOption.align,"header-align":e.column.headerAlign||e.crud.tableOption.headerAlign,width:e.getColumnProp(e.column,"width"),fixed:e.getColumnProp(e.column,"fixed")},scopedSlots:e._u([{key:"header",fn:function({$index:n}){return[e.crud.getSlotName(e.column,"H",e.crud.$scopedSlots)?e._t(e.crud.getSlotName(e.column,"H"),null,null,{column:e.column,$index:n}):t("span",[e._v(e._s(e.column.label))])]}},{key:"default",fn:function({row:n,$index:r}){return[n.$cellEdit&&e.column.cell?t("el-form-item",{attrs:{prop:e.crud.isTree?"":`list.${r}.${e.column.prop}`,label:e.vaildLabel(e.column,n," "),"label-width":e.vaildLabel(e.column,n,"1px"),rules:e.column.rules}},[t("el-tooltip",{attrs:{content:(e.crud.listError[`list.${r}.${e.column.prop}`]||{}).msg,disabled:!(e.crud.listError[`list.${r}.${e.column.prop}`]||{}).valid,placement:"top"}},[e.crud.getSlotName(e.column,"F",e.crud.$scopedSlots)?e._t(e.crud.getSlotName(e.column,"F"),null,null,{row:n,dic:e.crud.DIC[e.column.prop],size:e.crud.isMediumSize,index:r,disabled:e.crud.btnDisabledList[r],label:e.handleDetail(n,e.column),$cell:n.$cellEdit}):t("form-temp",e._b({attrs:{column:e.column,size:e.crud.isMediumSize,"table-data":{index:r,row:n,label:e.handleDetail(n,e.column)},dic:(e.crud.cascaderDIC[r]||{})[e.column.prop]||e.crud.DIC[e.column.prop],props:e.column.props||e.crud.tableOption.props,readonly:e.column.readonly,disabled:e.crud.disabled||e.crud.tableOption.disabled||e.column.disabled||e.crud.btnDisabledList[r],clearable:e.vaildData(e.column.clearable,!1),"column-slot":e.crud.mainSlot},on:{change:function(t){return e.columnChange(n,e.column,r)}},scopedSlots:e._u([e._l(e.crud.mainSlot,(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0),model:{value:n[e.column.prop],callback:function(t){e.$set(n,e.column.prop,t)},expression:"row[column.prop]"}},"form-temp",e.$uploadFun(e.column,e.crud),!1))],2)],1):e.crud.$scopedSlots[e.column.prop]?e._t(e.column.prop,null,{row:n,index:r,dic:e.crud.DIC[e.column.prop],size:e.crud.isMediumSize,label:e.handleDetail(n,e.column)}):[["img","upload"].includes(e.column.type)?t("span",{staticClass:"avue-crud__img"},[e._l(e.getImgList(n,e.column),(function(r,i){return[e.isMediaType(r,e.column.fileType)?t(e.isMediaType(r,e.column.fileType),{key:i,tag:"component",attrs:{src:r},on:{click:function(t){return t.stopPropagation(),e.openImg(n,e.column,i)}}}):t("i",{key:i,staticClass:"el-icon-document",attrs:{src:r},on:{click:function(t){return t.stopPropagation(),e.openImg(n,e.column,i)}}})]}))],2):"url"===e.column.type?t("span",e._l(e.corArray(n,e.column),(function(n,r){return t("el-link",{key:r,attrs:{type:"primary",href:n,target:e.column.target||"_blank"}},[e._v(e._s(n))])})),1):"rate"===e.column.type?t("span",[t("avue-rate",{attrs:{disabled:""},model:{value:n[e.column.prop],callback:function(t){e.$set(n,e.column.prop,t)},expression:"row[column.prop]"}})],1):"color"===e.column.type?t("i",{staticClass:"avue-crud__color",style:{backgroundColor:n[e.column.prop]}}):"icon"===e.column.type?t("icon-temp",{attrs:{text:n[e.column.prop]}}):e.column.html?t("span",{domProps:{innerHTML:e._s(e.handleDetail(n,e.column))}}):t("span",{domProps:{textContent:e._s(e.handleDetail(n,e.column))}})]]}}],null,!0)}):e._e()}),[],!1,null,null,null).exports,me=c({name:"column-dynamic",components:{columnSlot:he},inject:["dynamic","crud"],props:{columnOption:Object},created:function(){var e=this,t=["getColumnProp","handleFilterMethod","handleFilters"];Object.keys(this.dynamic).forEach((function(n){t.includes(n)&&(e[n]=e.dynamic[n])}))}},(function(){var e=this,t=e._self._c;return e.getColumnProp(e.columnOption,"hide")?t("el-table-column",{key:e.columnOption.prop,attrs:{prop:e.columnOption.prop,label:e.columnOption.label,"class-name":e.columnOption.className,"label-class-name":e.columnOption.labelClassName,"filter-placement":"bottom-end",filters:e.getColumnProp(e.columnOption,"filters"),"filter-method":e.getColumnProp(e.columnOption,"filterMethod")?e.handleFilterMethod:void 0,"filter-multiple":e.vaildData(e.columnOption.filterMultiple,!0),"show-overflow-tooltip":e.columnOption.overHidden,"min-width":e.columnOption.minWidth,sortable:e.getColumnProp(e.columnOption,"sortable"),"render-header":e.columnOption.renderHeader,align:e.columnOption.align||e.crud.tableOption.align,"header-align":e.columnOption.headerAlign||e.crud.tableOption.headerAlign,width:e.getColumnProp(e.columnOption,"width"),fixed:e.getColumnProp(e.columnOption,"fixed")}},[e._l(e.columnOption.children,(function(n){return[n.children&&n.children.length>0?t("column-dynamic",{key:n.label,attrs:{columnOption:n},scopedSlots:e._u([e._l(e.crud.mainSlot,(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)}):t("column-slot",{attrs:{column:n,"column-option":e.columnOption.children},scopedSlots:e._u([e._l(e.crud.mainSlot,(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]}))],2):e._e()}),[],!1,null,null,null);function ge(e){return function(e){if(Array.isArray(e))return ve(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ve(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var be=c(s({name:"crud",data:function(){return{}},components:{columnSlot:he,columnDynamic:me.exports},inject:["crud"],provide:function(){return{crud:this.crud,dynamic:this}},props:{columnOption:Array},computed:{list:function(){var e=this,t=ge(this.columnOption);return Object(S.a)(t,"index",(function(t,n){var r,i;return(null===(r=e.crud.objectOption[t.prop])||void 0===r?void 0:r.index)-(null===(i=e.crud.objectOption[n.prop])||void 0===i?void 0:i.index)}))}},methods:{handleFilterMethod:function(e,t,n){var r=this.columnOption.filter((function(e){return e.prop===n.property}))[0];return"function"==typeof r.filterMethod?r.filterMethod(e,t,r):t[r.prop]===e},handleFilters:function(e,t){var n=this;if(!0===t){var r=this.crud.DIC[e.prop]||[],i=[];return this.validatenull(r)?this.crud.cellForm.list.forEach((function(t){i.map((function(e){return e.text})).includes(t[e.prop])||i.push({text:t[e.prop],value:t[e.prop]})})):r.forEach((function(t){var r=e.props||n.crud.tableOption.props||{};i.push({text:t[r.label||a.f.label],value:t[r.value||a.f.value]})})),i}},getColumnProp:function(e,t){var n=this.crud.objectOption[e.prop]||{};if("filterMethod"===t)return null==n?void 0:n.filters;if(this.crud.isMobile&&["fixed"].includes(t))return!1;var r=null==n?void 0:n[t];return"width"!=t||0!=r?"filters"==t?this.handleFilters(e,r):"hide"==t?!0!==(null==n?void 0:n.hide):r:void 0}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e._t("header"),e._v(" "),e._l(e.list,(function(n,r){return[n.children&&n.children.length>0?t("column-dynamic",{key:n.label,attrs:{columnOption:n},scopedSlots:e._u([e._l(e.crud.mainSlot,(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)}):t("column-slot",{attrs:{column:n,"column-option":e.columnOption},scopedSlots:e._u([e._l(e.crud.mainSlot,(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)})]})),e._v(" "),e._t("footer")],2)}),[],!1,null,null,null).exports,_e=c(s({name:"crud",mixins:[J],directives:{permission:A},inject:["crud"],data:function(){return{dateCreate:!1,pickerOptions:{shortcuts:[{text:"今日",onClick:function(e){var t=new Date,n=new Date;n.setTime(n.getTime()),e.$emit("pick",[n,t])}},{text:"昨日",onClick:function(e){var t=new Date,n=new Date;n.setTime(n.getTime()-864e5),e.$emit("pick",[n,t])}},{text:"最近一周",onClick:function(e){var t=new Date,n=new Date;n.setTime(n.getTime()-6048e5),e.$emit("pick",[n,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,n=new Date;n.setTime(n.getTime()-2592e6),e.$emit("pick",[n,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,n=new Date;n.setTime(n.getTime()-7776e6),e.$emit("pick",[n,t])}}]},config:P}},created:function(){this.initFun()},methods:{dateChange:function(e){this.dateCreate?this.crud.$emit("date-change",e):this.dateCreate=!0},initFun:function(){this.vaildData=S.y,this.crud.rowExcel=this.rowExcel,this.crud.rowPrint=this.rowPrint},rowExcel:function(){this.crud.$refs.dialogExcel.handleShow()},rowPrint:function(){this.$Print(this.crud.$refs.table)}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b("header")},[e.vaildData(e.crud.tableOption.menuLeft,!0)?t("div",{class:e.b("left")},[e.vaildData(e.crud.tableOption.addBtn,e.config.addBtn)?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("addBtn"),expression:"crud.getPermission('addBtn')"}],class:e.b("addBtn"),attrs:{type:"primary",icon:e.crud.getBtnIcon("addBtn"),size:e.crud.isMediumSize},on:{click:e.crud.rowAdd}},[e.crud.isIconMenu?e._e():[e._v("\n "+e._s(e.crud.menuIcon("addBtn"))+"\n ")]],2):e._e(),e._v(" "),e.vaildData(e.crud.tableOption.addRowBtn,e.config.addRowBtn)?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("addRowBtn"),expression:"crud.getPermission('addRowBtn')"}],class:e.b("addBtn"),attrs:{type:"primary",icon:e.crud.getBtnIcon("addBtn"),size:e.crud.isMediumSize},on:{click:e.crud.rowCellAdd}},[e.crud.isIconMenu?e._e():[e._v("\n "+e._s(e.crud.menuIcon("addBtn"))+"\n ")]],2):e._e(),e._v(" "),e._t("menuLeft",null,{size:e.crud.isMediumSize})],2):e._e(),e._v(" "),e.vaildData(e.crud.tableOption.menuRight,!0)?t("div",{class:e.b("right")},[e.vaildData(e.crud.tableOption.dateBtn,e.config.dateBtn)?t("avue-date",{staticStyle:{display:"inline-block","margin-right":"20px"},attrs:{type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss",format:"yyyy-MM-dd HH:mm:ss",pickerOptions:e.pickerOptions,size:e.crud.isMediumSize},on:{change:e.dateChange}}):e._e(),e._v(" "),e._t("menuRight",null,{size:e.crud.isMediumSize}),e._v(" "),e.vaildData(e.crud.tableOption.excelBtn,e.config.excelBtn)?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("excelBtn"),expression:"crud.getPermission('excelBtn')"}],class:e.b("excelBtn"),attrs:{icon:e.crud.getBtnIcon("excelBtn"),circle:"",size:e.crud.isMediumSize},on:{click:e.rowExcel}}):e._e(),e._v(" "),e.vaildData(e.crud.tableOption.printBtn,e.config.printBtn)?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("printBtn"),expression:"crud.getPermission('printBtn')"}],class:e.b("printBtn"),attrs:{icon:e.crud.getBtnIcon("printBtn"),circle:"",size:e.crud.isMediumSize},on:{click:e.rowPrint}}):e._e(),e._v(" "),e.vaildData(e.crud.tableOption.refreshBtn,e.config.refreshBtn)?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("refreshBtn"),expression:"crud.getPermission('refreshBtn')"}],class:e.b("refreshBtn"),attrs:{icon:e.crud.getBtnIcon("refreshBtn"),circle:"",size:e.crud.isMediumSize},on:{click:e.crud.refreshChange}}):e._e(),e._v(" "),e.vaildData(e.crud.tableOption.columnBtn,e.config.columnBtn)?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("columnBtn"),expression:"crud.getPermission('columnBtn')"}],class:e.b("columnBtn"),attrs:{icon:e.crud.getBtnIcon("columnBtn"),circle:"",size:e.crud.isMediumSize},on:{click:function(t){return e.crud.$refs.dialogColumn.handleShow()}}}):e._e(),e._v(" "),(e.crud.$refs.headerSearch||{}).searchFlag&&e.vaildData(e.crud.tableOption.searchShowBtn,!0)?t("el-button",{class:e.b("searchShowBtn"),attrs:{icon:e.crud.getBtnIcon("searchBtn"),circle:"",size:e.crud.isMediumSize},on:{click:function(t){return e.crud.$refs.headerSearch.handleSearchShow()}}}):e._e(),e._v(" "),e.vaildData(e.crud.tableOption.filterBtn,e.config.filterBtn)?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("filterBtn"),expression:"crud.getPermission('filterBtn')"}],class:e.b("filterBtn"),attrs:{icon:e.crud.getBtnIcon("filterBtn"),circle:"",size:e.crud.isMediumSize},on:{click:function(t){return e.crud.$refs.dialogFilter.handleShow()}}}):e._e()],2):e._e()])}),[],!1,null,null,null).exports,ye=c(s({name:"crud",mixins:[J],inject:["crud"],data:function(){return{data:[],columnBox:!1}},computed:{defaultColumn:function(){return[{label:this.t("crud.column.hide"),prop:"hide"},{label:this.t("crud.column.fixed"),prop:"fixed"},{label:this.t("crud.column.filters"),prop:"filters"},{label:this.t("crud.column.sortable"),prop:"sortable"},{label:this.t("crud.column.index"),prop:"index",hide:!0},{label:this.t("crud.column.width"),prop:"width",hide:!0}]}},methods:{handleShow:function(){var e=this;this.data=[],this.crud.propOption.forEach((function(t){0!=t.showColumn&&e.data.push(t)})),this.columnBox=!0,this.$nextTick((function(){return e.rowDrop()}))},handleChange:function(e){["hide","filters"].includes(e)&&this.crud.refreshTable()},rowDrop:function(){var e=this,t=this.$refs.table.$el.querySelectorAll(P.dropRowClass)[0];this.crud.tableDrop("column",t,(function(t){var n=t.oldIndex,r=t.newIndex;e.crud.headerSort(n,r),e.crud.refreshTable((function(){return e.rowDrop()}))}))}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,e.columnBox?t("div",[t("el-drawer",{staticClass:"avue-dialog",class:[e.b("dialog"),e.b("column")],attrs:{"lock-scroll":"","modal-append-to-body":e.$AVUE.modalAppendToBody,"append-to-body":e.$AVUE.appendToBody,title:e.t("crud.showTitle"),size:e.crud.isMobile?"100%":"40%",visible:e.columnBox},on:{"update:visible":function(t){e.columnBox=t}}},[t("el-table",{ref:"table",attrs:{data:e.data,height:"100%",size:"small",border:""}},[t("el-table-column",{key:"label",attrs:{align:"center",width:"100","header-align":"center",prop:"label",label:e.t("crud.column.name")}}),e._v(" "),e._l(e.defaultColumn,(function(n,r){return[!0!==n.hide?t("el-table-column",{key:r,attrs:{label:n.label,prop:n.prop,align:"center","header-align":"center"},scopedSlots:e._u([{key:"default",fn:function({row:r}){return[t("el-checkbox",{on:{change:function(t){return e.handleChange(n.prop)}},model:{value:e.crud.objectOption[r.prop][n.prop],callback:function(t){e.$set(e.crud.objectOption[r.prop],n.prop,t)},expression:"crud.objectOption[row.prop][item.prop]"}})]}}],null,!0)}):e._e()]}))],2)],1)],1):e._e()}),[],!1,null,null,null).exports,we=c(s({name:"crud",mixins:[J],inject:["crud"],data:function(){return{box:!1,columnObj:{},symbolDic:[{label:"=",value:"="},{label:"≠",value:"≠"},{label:"like",value:"like"},{label:">",value:">"},{label:"≥",value:"≥"},{label:"<",value:"<"},{label:"≤",value:"≤"},{label:"∈",value:"∈"}],list:[],columnOption:{}}},methods:{handleShow:function(){this.getColumnOption(),this.box=!0},getColumnOption:function(){var e=[];this.deepClone(this.crud.propOption).forEach((function(t){!1!==t.showColumn&&e.push(Object.assign(t,{value:t.prop}))})),this.columnOption=e,this.columnObj=this.columnOption[0]},handleDelete:function(e){this.list.splice(e,1)},handleClear:function(){this.list=[]},handleValueClear:function(){this.list.forEach((function(e,t){return e.value=""}))},handleSubmit:function(){var e=[];this.list.forEach((function(t){e.push([t.text,t.symbol,t.value])})),this.crud.$emit("filter",e),this.box=!1},handleChange:function(e){this.list[e].value=""},handleAdd:function(){var e=this.columnObj.prop;this.list.push({text:e,value:"",symbol:this.symbolDic[0].value})}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,e.box?t("div",[t("el-drawer",{staticClass:"avue-dialog",class:[e.b("dialog"),e.b("filter")],attrs:{"lock-scroll":"","modal-append-to-body":e.$AVUE.modalAppendToBody,"append-to-body":e.$AVUE.appendToBody,title:e.t("crud.filterTitle"),size:e.crud.isMobile?"100%":"60%",visible:e.box},on:{"update:visible":function(t){e.box=t}}},[t("el-row",{attrs:{span:24}},[t("div",{class:e.b("filter-menu")},[t("el-button-group",[t("el-button",{attrs:{type:"primary",size:e.crud.isMediumSize},on:{click:e.handleAdd}},[e._v(e._s(e.t("crud.filter.addBtn")))]),e._v(" "),t("el-button",{attrs:{type:"primary",size:e.crud.isMediumSize},on:{click:e.handleClear}},[e._v(e._s(e.t("crud.filter.resetBtn")))]),e._v(" "),t("el-button",{attrs:{type:"primary",size:e.crud.isMediumSize},on:{click:e.handleValueClear}},[e._v(e._s(e.t("crud.filter.clearBtn")))])],1)],1),e._v(" "),e._l(e.list,(function(n,r){return t("el-col",{key:r,class:e.b("filter-item"),attrs:{md:12,xs:24,sm:12}},[t("avue-select",{class:e.b("filter-label"),attrs:{dic:e.columnOption,clearable:!1,size:e.crud.isMediumSize},on:{change:function(t){return e.handleChange(r)}},model:{value:n.text,callback:function(t){e.$set(n,"text",t)},expression:"column.text"}}),e._v(" "),t("avue-select",{class:e.b("filter-symbol"),attrs:{dic:e.symbolDic,clearable:!1,size:e.crud.isMediumSize},model:{value:n.symbol,callback:function(t){e.$set(n,"symbol",t)},expression:"column.symbol"}}),e._v(" "),t("avue-input",{class:e.b("filter-value"),attrs:{size:e.crud.isMediumSize},model:{value:n.value,callback:function(t){e.$set(n,"value",t)},expression:"column.value"}}),e._v(" "),t("el-button",{class:e.b("filter-icon"),attrs:{type:"danger",size:"mini",circle:"",icon:"el-icon-minus"},on:{click:function(t){return e.handleDelete(r)}}})],1)})),e._v(" "),t("el-col",{staticClass:"avue-form__menu avue-form__menu--right",attrs:{span:24}},[t("el-button",{attrs:{type:"primary",size:e.crud.isMediumSize},on:{click:e.handleSubmit}},[e._v(e._s(e.t("crud.filter.submitBtn")))]),e._v(" "),t("el-button",{attrs:{size:e.crud.isMediumSize},on:{click:function(t){e.box=!1}}},[e._v(e._s(e.t("crud.filter.cancelBtn")))])],1)],2)],1)],1):e._e()}),[],!1,null,null,null).exports,xe=c(s({name:"crud",mixins:[J],inject:["crud"],data:function(){return{disabled:!1,config:P,boxType:"",fullscreen:!1,size:null,boxVisible:!1}},props:{value:{type:Object,default:function(){return{}}}},computed:{option:function(){var e=this,t=this.deepClone(this.crud.tableOption);return t.boxType=this.boxType,t.column=this.deepClone(this.crud.propOption),t.menuBtn=!1,this.isAdd?(t.submitBtn=t.saveBtn,t.submitText=this.crud.menuIcon("saveBtn"),t.submitIcon=this.crud.getBtnIcon("saveBtn")):this.isEdit?(t.submitBtn=t.updateBtn,t.submitText=this.crud.menuIcon("updateBtn"),t.submitIcon=this.crud.getBtnIcon("updateBtn")):this.isView&&(t.detail=!0),t.emptyBtn=t.cancelBtn,t.emptyText=this.crud.menuIcon("cancelBtn"),t.emptyIcon=this.crud.getBtnIcon("cancelBtn"),this.crud.isGroup||(t.dicFlag=!1,t.dicData=this.crud.DIC),this.validatenull(t.dicFlag)||t.column.forEach((function(n){n.boxType=e.boxType,n.dicFlag=n.dicFlag||t.dicFlag})),t},isView:function(){return"view"===this.boxType},isAdd:function(){return"add"===this.boxType},isEdit:function(){return"edit"===this.boxType},direction:function(){return this.crud.tableOption.dialogDirection},width:function(){return this.vaildData(this.crud.tableOption.dialogWidth+"",this.crud.isMobile?"100%":P.dialogWidth+"")},dialogType:function(){return this.isDrawer?"elDrawer":"elDialog"},dialogTop:function(){return this.isDrawer||this.fullscreen?"0":this.crud.tableOption.dialogTop},isDrawer:function(){return"drawer"===this.crud.tableOption.dialogType},params:function(){return this.isDrawer?{size:this.fullscreen?"100%":this.setPx(this.width),direction:this.crud.tableOption.dialogDirection}:{width:this.setPx(this.width),fullscreen:this.fullscreen}},dialogTitle:function(){var e="".concat(this.boxType);if(!this.validatenull(this.boxType))return this.crud.tableOption[e+"Title"]||this.t("crud.".concat(e,"Title"))},dialogMenuPosition:function(){return this.crud.option.dialogMenuPosition||"right"}},methods:{submit:function(){this.$refs.tableForm.submit()},reset:function(){this.$refs.tableForm.resetForm(!1)},getSlotName:function(e){return e.replace("Form","")},initFun:function(){var e=this;["clearValidate","validate","resetForm","validateField"].forEach((function(t){e.crud[t]=e.$refs.tableForm[t]}))},handleChange:function(){this.crud.setVal()},handleTabClick:function(e,t){this.crud.$emit("tab-click",e,t)},handleFullScreen:function(){this.isDrawer&&(this.validatenull(this.size)?this.size="100%":this.size=""),this.fullscreen?this.fullscreen=!1:this.fullscreen=!0},handleError:function(e){this.crud.$emit("error",e)},handleSubmit:function(e,t){this.isAdd?this.rowSave(t):this.isEdit&&this.rowUpdate(t)},rowSave:function(e){this.crud.$emit("row-save",Object(S.i)(this.crud.tableForm,["$"]),this.closeDialog,e)},rowUpdate:function(e){this.crud.$emit("row-update",Object(S.i)(this.crud.tableForm,["$"]),this.crud.tableIndex,this.closeDialog,e)},closeDialog:function(e){var t=this;(e=this.deepClone(e))&&function(){if(t.isEdit){var n=t.crud.findData(e[t.crud.rowKey]),r=n.parentList,i=n.index;if(r){var o=r.splice(i,1)[0];e[t.crud.childrenKey]=o[t.crud.childrenKey],r.splice(i,0,e)}}else if(t.isAdd){var a=t.crud.findData(e[t.crud.rowParentKey]).item;a?(a[t.crud.childrenKey]||t.$set(a,t.crud.childrenKey,[]),t.crud.tableOption.lazy&&t.$set(a,t.crud.hasChildrenKey,!0),a[t.crud.childrenKey].push(e)):t.crud.list.push(e)}}(),this.hide()},hide:function(e){var t=this,n=function(){e&&e(),t.crud.tableIndex=-1,t.crud.tableForm={},t.crud.setVal(),t.boxVisible=!1};"function"==typeof this.crud.beforeClose?this.crud.beforeClose(n,this.boxType):n()},show:function(e){var t=this;this.boxType=e;var n=function(){t.fullscreen=t.crud.tableOption.dialogFullscreen,t.boxVisible=!0,t.$nextTick((function(){t.initFun()}))};"function"==typeof this.crud.beforeOpen?this.crud.beforeOpen(n,this.boxType):n()}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,e.boxVisible?t("div",[t(e.dialogType,e._b({directives:[{name:"dialogDrag",rawName:"v-dialogDrag",value:e.vaildData(e.crud.tableOption.dialogDrag,e.config.dialogDrag),expression:"vaildData(crud.tableOption.dialogDrag,config.dialogDrag)"}],tag:"component",class:["avue-dialog",e.b("dialog"),{"avue-dialog--fullscreen":e.fullscreen}],attrs:{"lock-scroll":"","destroy-on-close":e.crud.tableOption.dialogDestroy,wrapperClosable:e.crud.tableOption.dialogClickModal,direction:e.direction,"custom-class":e.crud.tableOption.dialogCustomClass,"modal-append-to-body":e.vaildData(e.crud.tableOption.dialogModalAppendToBody,e.$AVUE.modalAppendToBody),"append-to-body":e.vaildData(e.crud.tableOption.appendToBody,e.$AVUE.appendToBody),top:e.dialogTop,title:e.dialogTitle,"close-on-press-escape":e.crud.tableOption.dialogEscape,"close-on-click-modal":e.vaildData(e.crud.tableOption.dialogClickModal,!1),modal:e.crud.tableOption.dialogModal,"show-close":e.crud.tableOption.dialogCloseBtn,visible:e.boxVisible,"before-close":e.hide},on:{"update:visible":function(t){e.boxVisible=t}}},"component",e.params,!1),[t("div",{class:e.b("dialog__header"),attrs:{slot:"title"},slot:"title"},[t("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.dialogTitle))]),e._v(" "),t("div",{class:e.b("dialog__menu")},[t("i",{staticClass:"el-dialog__close",class:e.fullscreen?"el-icon-news":"el-icon-full-screen",on:{click:e.handleFullScreen}})])]),e._v(" "),t("avue-form",e._b({ref:"tableForm",attrs:{status:e.disabled,option:e.option},on:{"update:status":function(t){e.disabled=t},change:e.handleChange,submit:e.handleSubmit,"reset-change":e.hide,"tab-click":e.handleTabClick,error:e.handleError},scopedSlots:e._u([e._l(e.crud.formSlot,(function(t){return{key:e.getSlotName(t),fn:function(n){return[e._t(t,null,null,Object.assign(n,{type:e.boxType}))]}}}))],null,!0),model:{value:e.crud.tableForm,callback:function(t){e.$set(e.crud,"tableForm",t)},expression:"crud.tableForm"}},"avue-form",e.$uploadFun({},e.crud),!1)),e._v(" "),t("span",{staticClass:"avue-dialog__footer",class:"avue-dialog__footer--"+e.dialogMenuPosition},[e.vaildData(e.option.submitBtn,!0)&&!e.isView?t("el-button",{attrs:{loading:e.disabled,size:e.crud.controlSize,icon:e.option.submitIcon,type:"primary"},on:{click:e.submit}},[e._v(e._s(e.option.submitText))]):e._e(),e._v(" "),e.vaildData(e.option.emptyBtn,!0)&&!e.isView?t("el-button",{attrs:{disabled:e.disabled,size:e.crud.controlSize,icon:e.option.emptyIcon},on:{click:e.reset}},[e._v(e._s(e.option.emptyText))]):e._e(),e._v(" "),e._t("menuForm",null,{disabled:e.disabled,size:e.crud.controlSize,type:e.boxType})],2)],1)],1):e._e()}),[],!1,null,null,null).exports,ke=c({name:"crud",mixins:[J],inject:["crud"],data:function(){return{option:{},columnOption:{},box:!1,form:{name:this.crud.tableOption.title}}},methods:{handleShow:function(){this.getColumnOption(),this.getOption(),this.box=!0},handleSubmit:function(){this.$Export.excel({title:this.form.name,columns:this.getColumn(),data:this.handleSum()}),this.box=!1},handleSum:function(){var e=this,t=this.crud.tableOption,n=this.crud.propOption,r=this.form.type?this.crud.list:this.crud.tableSelect,i=[];return this.form.params.includes("data")&&r.forEach((function(r){var o=e.deepClone(r);n.forEach((function(n){var r=n.parentProp?(e.crud.cascaderDIC[o.$index]||{})[n.prop]:e.crud.DIC[n.prop];o[n.prop]=ce(o,n,t,r)})),i.push(o)})),this.form.params.includes("sum")&&t.showSummary&&i.push(this.crud.sumsList),i},getOption:function(){var e,t=this;this.option={submitBtn:!1,emptyBtn:!1,column:[{label:this.t("crud.excel.name"),prop:"name",span:24},{label:this.t("crud.excel.type"),prop:"type",span:24,type:"select",dicData:[{label:this.t("crud.excel.typeDic.true"),value:!0},{label:this.t("crud.excel.typeDic.false"),disabled:1!=this.crud.tableOption.selection,value:!1}]},{label:this.t("crud.excel.prop"),prop:"prop",type:"tree",multiple:!0,checkStrictly:!0,span:24,props:{value:"prop"},dicData:this.columnOption},{label:this.t("crud.excel.params"),prop:"params",type:"checkbox",span:24,value:["header","data"].concat((e=[],t.crud.isHeader&&e.push("headers"),t.crud.isShowSummary&&e.push("sum"),e)),dicData:[{label:this.t("crud.excel.paramsDic.header"),disabled:!0,value:"header"},{label:this.t("crud.excel.paramsDic.data"),value:"data"}].concat(function(){var e=[];return e.push({label:t.t("crud.excel.paramsDic.headers"),value:"headers",disabled:!t.crud.isHeader}),e.push({label:t.t("crud.excel.paramsDic.sum"),value:"sum",disabled:!t.crud.isShowSummary}),e}())}]},this.form.type=0==this.crud.selectLen},getColumnOption:function(){var e=this.deepClone(this.crud.columnOption),t=[];!function e(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=0;r<n.length;r++){var i=n[r],o=i.children;o&&!Array.isArray(o)?delete i.children:!1===i.showColumn?(n.splice(r,1),r--):(i.prop=i.prop||Object(S.x)(),t.push(i.prop),i.children&&e(o))}}(e),this.columnOption=e,this.form.prop=t},getColumn:function(){var e=this.deepClone(this.columnOption),t=this.$refs.form.getPropRef("prop").$refs.temp.getHalfList();if(!this.form.params)return[];if(this.form.params.includes("headers"))return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];n.forEach((function(r,i){t.includes(r.prop)?r.children&&e(r.children):n.splice(i,1)}))}(e),e;var n=[];return function e(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];r.forEach((function(r,i){r.children?e(r.children):t.includes(r.prop)&&n.push(r)}))}(e),n}}},(function(){var e=this,t=e._self._c;return e.box?t("div",[t("el-dialog",{staticClass:"avue-dialog",attrs:{title:e.t("crud.excelBtn"),"lock-scroll":"","modal-append-to-body":e.$AVUE.modalAppendToBody,"append-to-body":e.$AVUE.appendToBody,visible:e.box,width:e.crud.isMobile?"100%":"30%"},on:{"update:visible":function(t){e.box=t}}},[t("avue-form",{ref:"form",attrs:{option:e.option},model:{value:e.form,callback:function(t){e.form=t},expression:"form"}}),e._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary",size:e.crud.isMediumSize},on:{click:e.handleSubmit}},[e._v(e._s(e.t("crud.filter.submitBtn")))]),e._v(" "),t("el-button",{attrs:{size:e.crud.isMediumSize},on:{click:function(t){e.box=!1}}},[e._v(e._s(e.t("crud.filter.cancelBtn")))])],1)],1)],1):e._e()}),[],!1,null,null,null).exports,Ce=c(s({name:"crud",data:function(){return{config:P}},mixins:[J],inject:["crud"],directives:{permission:A},computed:{menuType:function(){return this.crud.tableOption.menuType||this.$AVUE.menuType||"button"},isIconMenu:function(){return"icon"===this.menuType},isTextMenu:function(){return"text"===this.menuType},isMenu:function(){return"menu"===this.menuType}},methods:{menuText:function(e){return["text","menu"].includes(this.menuType)?"text":e}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,e.vaildData(e.crud.tableOption.menu,e.config.menu)&&e.crud.getPermission("menu")?t("el-table-column",{key:"menu",attrs:{prop:"menu","class-name":e.crud.tableOption.menuClassName,"label-class-name":e.crud.tableOption.menuLabelClassName,fixed:e.vaildData(e.crud.tableOption.menuFixed,e.config.menuFixed),label:e.crud.tableOption.menuTitle||e.t("crud.menu"),align:e.crud.tableOption.menuAlign||e.config.menuAlign,"header-align":e.crud.tableOption.menuHeaderAlign||e.config.menuHeaderAlign,width:e.crud.isMobile?e.crud.tableOption.menuXsWidth||e.config.menuXsWidth:e.crud.tableOption.menuWidth||e.config.menuWidth},scopedSlots:e._u([{key:"header",fn:function(n){return[e.crud.getSlotName({prop:"menu"},"H",e.crud.$scopedSlots)?e._t("menuHeader",null,{size:e.crud.isMediumSize},n):t("span",[e._v(e._s(e.crud.tableOption.menuTitle||e.t("crud.menu")))])]}},{key:"default",fn:function({row:n,$index:r}){return[t("div",{class:e.b("menu")},[e.isMenu?t("el-dropdown",{attrs:{size:e.crud.isMediumSize}},[t("el-button",{attrs:{type:"text",size:e.crud.isMediumSize}},[e._v("\n "+e._s(e.crud.tableOption.menuBtnTitle||e.t("crud.menuBtn"))+"\n "),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e.vaildData(e.crud.tableOption.viewBtn,e.config.viewBtn)?t("el-dropdown-item",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("viewBtn",n,r),expression:"crud.getPermission('viewBtn',row,$index)"}],class:e.b("viewBtn"),attrs:{icon:e.crud.getBtnIcon("viewBtn")},nativeOn:{click:function(t){return e.crud.rowView(n,r)}}},[e._v(e._s(e.crud.menuIcon("viewBtn")))]):e._e(),e._v(" "),e.vaildData(e.crud.tableOption.copyBtn,e.config.copyBtn)?t("el-dropdown-item",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("copyBtn",n,r),expression:"crud.getPermission('copyBtn',row,$index)"}],class:e.b("copyBtn"),attrs:{icon:e.crud.getBtnIcon("copyBtn")},nativeOn:{click:function(t){return e.crud.rowCopy(n)}}},[e._v(e._s(e.crud.menuIcon("copyBtn")))]):e._e(),e._v(" "),e.vaildData(e.crud.tableOption.editBtn,e.config.editBtn)?t("el-dropdown-item",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("editBtn",n,r),expression:"crud.getPermission('editBtn',row,$index)"}],class:e.b("editBtn"),attrs:{icon:e.crud.getBtnIcon("editBtn")},nativeOn:{click:function(t){return e.crud.rowEdit(n,r)}}},[e._v(e._s(e.crud.menuIcon("editBtn")))]):e._e(),e._v(" "),e.vaildData(e.crud.tableOption.delBtn,e.config.delBtn)?t("el-dropdown-item",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("delBtn",n,r),expression:"crud.getPermission('delBtn',row,$index)"}],class:e.b("delBtn"),attrs:{icon:e.crud.getBtnIcon("delBtn")},nativeOn:{click:function(t){return e.crud.rowDel(n,r)}}},[e._v(e._s(e.crud.menuIcon("delBtn")))]):e._e(),e._v(" "),e._t("menuBtn",null,{row:n,type:e.menuText("primary"),disabled:e.crud.btnDisabled,size:e.crud.isMediumSize,index:r})],2)],1):["button","text","icon"].includes(e.menuType)?[e.vaildData(e.crud.tableOption.cellBtn,e.config.cellBtn)?[e.vaildData(e.crud.tableOption.editBtn,e.config.editBtn)&&!n.$cellEdit?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("editBtn",n,r),expression:"crud.getPermission('editBtn',row,$index)"}],class:e.b("editBtn"),attrs:{type:e.menuText("primary"),icon:e.crud.getBtnIcon("editBtn"),size:e.crud.isMediumSize,disabled:e.crud.btnDisabledList[r]},on:{click:function(t){return t.stopPropagation(),e.crud.rowCell(n,r)}}},[e.isIconMenu?e._e():[e._v("\n "+e._s(e.crud.menuIcon("editBtn"))+"\n ")]],2):e.vaildData(e.crud.tableOption.saveBtn,e.config.saveBtn)&&n.$cellEdit?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("saveBtn",n,r),expression:"crud.getPermission('saveBtn',row,$index)"}],class:e.b("saveBtn"),attrs:{type:e.menuText("primary"),icon:e.crud.getBtnIcon("saveBtn"),size:e.crud.isMediumSize,disabled:e.crud.btnDisabledList[r]},on:{click:function(t){return t.stopPropagation(),e.crud.rowCell(n,r)}}},[e.isIconMenu?e._e():[e._v("\n "+e._s(e.crud.menuIcon("saveBtn"))+"\n ")]],2):e._e(),e._v(" "),n.$cellEdit&&e.vaildData(e.crud.tableOption.cancelBtn,e.config.cancelBtn)?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("cancelBtn",n,r),expression:"crud.getPermission('cancelBtn',row,$index)"}],class:e.b("cancelBtn"),attrs:{type:e.menuText("danger"),icon:e.crud.getBtnIcon("cancelBtn"),size:e.crud.isMediumSize,disabled:e.crud.btnDisabledList[r]},on:{click:function(t){return t.stopPropagation(),e.crud.rowCancel(n,r)}}},[e.isIconMenu?e._e():[e._v("\n "+e._s(e.crud.menuIcon("cancelBtn"))+"\n ")]],2):e._e()]:e._e(),e._v(" "),e.vaildData(e.crud.tableOption.viewBtn,e.config.viewBtn)?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("viewBtn",n,r),expression:"crud.getPermission('viewBtn',row,$index)"}],class:e.b("viewBtn"),attrs:{type:e.menuText("success"),icon:e.crud.getBtnIcon("viewBtn"),size:e.crud.isMediumSize,disabled:e.btnDisabled},on:{click:function(t){return t.stopPropagation(),e.crud.rowView(n,r)}}},[e.isIconMenu?e._e():[e._v("\n "+e._s(e.crud.menuIcon("viewBtn"))+"\n ")]],2):e._e(),e._v(" "),e.vaildData(e.crud.tableOption.copyBtn,e.config.copyBtn)?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("copyBtn",n,r),expression:"crud.getPermission('copyBtn',row,$index)"}],class:e.b("copyBtn"),attrs:{type:e.menuText("info"),icon:e.crud.getBtnIcon("copyBtn"),size:e.crud.isMediumSize,disabled:e.btnDisabled},on:{click:function(t){return t.stopPropagation(),e.crud.rowCopy(n)}}},[e.isIconMenu?e._e():[e._v("\n "+e._s(e.crud.menuIcon("copyBtn"))+"\n ")]],2):e._e(),e._v(" "),e.vaildData(e.crud.tableOption.editBtn,e.config.editBtn)&&!e.crud.tableOption.cellBtn?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("editBtn",n,r),expression:"crud.getPermission('editBtn',row,$index)"}],class:e.b("editBtn"),attrs:{type:e.menuText("primary"),icon:e.crud.getBtnIcon("editBtn"),size:e.crud.isMediumSize,disabled:e.btnDisabled},on:{click:function(t){return t.stopPropagation(),e.crud.rowEdit(n,r)}}},[e.isIconMenu?e._e():[e._v("\n "+e._s(e.crud.menuIcon("editBtn"))+"\n ")]],2):e._e(),e._v(" "),e.vaildData(e.crud.tableOption.delBtn,e.config.delBtn)&&!n.$cellEdit?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("delBtn",n,r),expression:"crud.getPermission('delBtn',row,$index)"}],class:e.b("delBtn"),attrs:{type:e.menuText("danger"),icon:e.crud.getBtnIcon("delBtn"),size:e.crud.isMediumSize,disabled:e.btnDisabled},on:{click:function(t){return t.stopPropagation(),e.crud.rowDel(n,r)}}},[e.isIconMenu?e._e():[e._v("\n "+e._s(e.crud.menuIcon("delBtn"))+"\n ")]],2):e._e()]:e._e(),e._v(" "),e._t("menu",null,{row:n,type:e.menuText("primary"),disabled:e.crud.btnDisabled,size:e.crud.isMediumSize,index:r})],2)]}}],null,!0)}):e._e()}),[],!1,null,null,null).exports,Ae=c(s({name:"crud",data:function(){return{config:P}},mixins:[J],inject:["crud"],mounted:function(){this.setSort()},methods:{indexMethod:function(e){return e+1+((this.crud.page.currentPage||1)-1)*(this.crud.page.pageSize||10)},setSort:function(){this.rowDrop(),this.columnDrop()},rowDrop:function(){var e=this,t=this.crud.$refs.table.$el.querySelectorAll(this.config.dropRowClass)[0];this.crud.tableDrop("row",t,(function(t){var n=t.oldIndex,r=t.newIndex,i=e.crud.list.splice(n,1)[0];e.crud.list.splice(r,0,i),e.crud.$emit("sortable-change",n,r),e.crud.refreshTable((function(){return e.rowDrop()}))}))},columnDrop:function(){var e=this,t=this.crud.$refs.table.$el.querySelector(this.config.dropColClass),n=0;["selection","index","expand"].forEach((function(t){e.crud.tableOption[t]&&(n+=1)})),this.crud.tableDrop("column",t,(function(t){e.crud.headerSort(t.oldIndex-n,t.newIndex-n),e.columnDrop()}))}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t("el-table-column",{attrs:{width:"1px"}}),e._v(" "),e.crud.tableOption.expand?t("el-table-column",{key:"expand",attrs:{type:"expand","class-name":e.crud.tableOption.expandClassName,"label-class-name":e.crud.tableOption.expandLabelClassName,width:e.crud.tableOption.expandWidth||e.config.expandWidth,fixed:e.vaildData(e.crud.tableOption.expandFixed,e.config.expandFixed),align:"center"},scopedSlots:e._u([{key:"default",fn:function({row:t}){return[e._t("expand",null,{row:t,index:t.$index})]}}],null,!0)}):e._e(),e._v(" "),e.crud.tableOption.selection?t("el-table-column",{key:"selection",attrs:{fixed:e.vaildData(e.crud.tableOption.selectionFixed,e.config.selectionFixed),type:"selection","class-name":e.crud.tableOption.selectionClassName,"label-class-name":e.crud.tableOption.selectionLabelClassName,selectable:e.crud.tableOption.selectable,"reserve-selection":e.vaildData(e.crud.tableOption.reserveSelection),width:e.crud.tableOption.selectionWidth||e.config.selectionWidth,align:"center"}}):e._e(),e._v(" "),e.vaildData(e.crud.tableOption.index)?t("el-table-column",{key:"index",attrs:{fixed:e.vaildData(e.crud.tableOption.indexFixed,e.config.indexFixed),label:e.crud.tableOption.indexLabel||e.config.indexLabel,type:"index","class-name":e.crud.tableOption.indexClassName,"label-class-name":e.crud.tableOption.indexLabelClassName,width:e.crud.tableOption.indexWidth||e.config.indexWidth,index:e.indexMethod,align:"center"}}):e._e()],1)}),[],!1,null,null,null).exports;function Se(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ee(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Te=c(s({name:"crud",mixins:[I(),J],directives:{permission:A},provide:function(){return{crud:this}},components:{column:be,columnDefault:Ae,columnMenu:Ce,tablePage:$,headerSearch:oe,headerMenu:_e,dialogColumn:ye,dialogFilter:we,dialogExcel:ke,dialogForm:xe},data:function(){return{reload:Math.random(),cellForm:{list:[]},config:P,list:[],listError:{},tableForm:{},tableHeight:void 0,tableIndex:-1,tableSelect:[],sumsList:{},cascaderIndexList:[],cascaderDicList:{},cascaderFormList:{},btnDisabledList:{},btnDisabled:!1,default:{}}},mounted:function(){this.dataInit(),this.getTableHeight(),this.refreshTable()},computed:{isSortable:function(){return this.tableOption.sortable},isRowSort:function(){return this.tableOption.rowSort},isColumnSort:function(){return this.tableOption.columnSort},rowParentKey:function(){return this.option.rowParentKey||a.f.rowParentKey},childrenKey:function(){return this.treeProps.children||a.f.children},hasChildrenKey:function(){return this.treeProps.hasChildren||a.f.hasChildren},treeProps:function(){return this.tableOption.treeProps||{}},isAutoHeight:function(){return"auto"===this.tableOption.height},formSlot:function(){return this.getSlotList(["Error","Label","Type","Form","Header"],this.$scopedSlots,this.propOption)},searchSlot:function(){return this.getSlotList(["Search"],this.$scopedSlots,this.propOption)},mainSlot:function(){var e=this,t=[];return this.propOption.forEach((function(n){e.$scopedSlots[n.prop]&&t.push(n.prop)})),this.getSlotList(["Header","Form"],this.$scopedSlots,this.propOption).concat(t)},calcHeight:function(){return(this.tableOption.calcHeight||0)+this.$AVUE.calcHeight},propOption:function(){var e=[];return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Array.isArray(n)&&n.forEach((function(n){Array.isArray(n.children)?t(n.children):e.push(n)}))}(this.columnOption),e=Z(e)},isShowSummary:function(){return this.option.showSummary},isHeader:function(){var e=!1;return this.columnOption.forEach((function(t){t.children&&(e=!0)})),e},isTree:function(){var e=!1;return this.data.forEach((function(t){t.children&&(e=!0)})),e},isCard:function(){return this.option.card?"always":"never"},expandLevel:function(){return this.parentOption.expandLevel||0},expandAll:function(){return this.parentOption.expandAll||!1},parentOption:function(){return this.tableOption||{}},columnOption:function(){var e=this.deepClone(this.tableOption);return Object(S.n)(e.column)},sumColumnList:function(){return this.tableOption.sumColumnList||[]},selectLen:function(){return this.tableSelect?this.tableSelect.length:0}},watch:{value:{handler:function(){this.tableForm=this.value},immediate:!0,deep:!0},list:{handler:function(){this.cellForm.list=this.list},deep:!0},data:{handler:function(){this.dataInit()},deep:!0}},props:{spanMethod:Function,summaryMethod:Function,rowStyle:Function,cellStyle:Function,beforeClose:Function,beforeOpen:Function,rowClassName:Function,cellClassName:Function,headerCellClassName:Function,uploadBefore:Function,uploadAfter:Function,uploadDelete:Function,uploadPreview:Function,uploadError:Function,uploadExceed:Function,permission:{type:[Function,Object],default:function(){return{}}},value:{type:Object,default:function(){return{}}},search:{type:Object,default:function(){return{}}},page:{type:Object,default:function(){return{}}},tableLoading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},data:{type:Array,required:!0,default:function(){return[]}}},methods:{handleValidate:function(e,t,n){this.listError[e]||this.$set(this.listError,e,{valid:!1,msg:""}),this.listError[e].valid=!t,this.listError[e].msg=n},getPermission:function(e,t,n){return"function"==typeof this.permission?this.permission(e,t,n):!!this.validatenull(this.permission[e])||this.permission[e]},getTableHeight:function(){var e=this;this.isAutoHeight?this.$nextTick((function(){var t=e.$refs.table,n=e.$refs.tablePage;if(t){var r=t.$el,i=n.$el.offsetHeight||20;e.tableHeight=document.documentElement.clientHeight-r.offsetTop-i-e.calcHeight}})):this.tableHeight=this.tableOption.height},doLayout:function(){this.$refs.table.doLayout()},refreshTable:function(e){this.reload=Math.random(),this.$nextTick((function(){e&&e()}))},treeLoad:function(e,t,n){this.$emit("tree-load",e,t,(function(t){e.children=t,n(t)}))},menuIcon:function(e){return this.vaildData(this.tableOption[e+"Text"],this.t("crud."+e))},getBtnIcon:function(e){var t=e+"Icon";return this.tableOption[t]||P[t]},validateField:function(e){return this.$refs.dialogForm.$refs.tableForm.validateField(e)},clearSelection:function(){this.$emit("selection-clear",this.deepClone(this.tableSelect)),this.$refs.table.clearSelection()},toggleAllSelection:function(){this.$refs.table.toggleAllSelection()},toggleRowSelection:function(e,t){this.$refs.table.toggleRowSelection(e,t)},toggleRowExpansion:function(e,t){this.$refs.table.toggleRowExpansion(e,t)},setCurrentRow:function(e){this.$refs.table.setCurrentRow(e)},dataInit:function(){var e=this;this.list=this.data,this.list.forEach((function(t,n){t.$cellEdit&&!e.cascaderFormList[n]&&(e.cascaderFormList[n]=e.deepClone(t)),e.$set(t,"$cellEdit",t.$cellEdit||!1),e.$set(t,"$index",n)}))},headerDragend:function(e,t,n,r){this.objectOption[n.property]&&this.$set(this.objectOption[n.property],"width",e),this.$emit("header-dragend",e,t,n,r)},headerSort:function(e,t){var n=this.columnOption,r=n.splice(e,1)[0];n.splice(t,0,r),this.refreshTable()},clearFilter:function(e){this.$refs.table.clearFilter(e)},expandChange:function(e,t){this.$emit("expand-change",e,t)},currentRowChange:function(e,t){this.$emit("current-row-change",e,t)},refreshChange:function(){this.$emit("refresh-change")},toggleSelection:function(e){var t=this;e?e.forEach((function(e){t.$refs.table.toggleRowSelection(e)})):this.$refs.table.clearSelection()},selectionChange:function(e){this.tableSelect=e,this.$emit("selection-change",this.tableSelect)},select:function(e,t){this.$emit("select",e,t)},selectAll:function(e){this.$emit("select-all",e)},filterChange:function(e){this.$emit("filter-change",e)},sortChange:function(e){this.$emit("sort-change",e)},rowDblclick:function(e,t){this.$emit("row-dblclick",e,t)},rowClick:function(e,t,n){this.$emit("row-click",e,t,n)},clearSort:function(){this.$refs.table.clearSort()},cellMouseEnter:function(e,t,n,r){this.$emit("cell-mouse-enter",e,t,n,r)},cellMouseLeave:function(e,t,n,r){this.$emit("cell-mouse-leave",e,t,n,r)},cellClick:function(e,t,n,r){this.$emit("cell-click",e,t,n,r)},headerClick:function(e,t){this.$emit("header-click",e,t)},rowContextmenu:function(e,t,n){this.$emit("row-contextmenu",e,t,n)},headerContextmenu:function(e,t){this.$emit("header-contextmenu",e,t)},cellDblclick:function(e,t,n,r){this.$emit("cell-dblclick",e,t,n,r)},rowCellAdd:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.list.length,n=re(this.propOption).tableForm;e=this.deepClone(Object.assign({$cellEdit:!0,$index:t},n,e)),this.list.push(e)},rowCancel:function(e,t){this.validatenull(e[this.rowKey])?(this.list.splice(t,1),delete this.cascaderDIC[t]):(this.cascaderFormList[t].$cellEdit=!1,this.$set(this.cascaderDIC,t,this.cascaderDicList[t]),this.$set(this.list,t,this.cascaderFormList[t])),delete this.cascaderDicList[t],delete this.cascaderFormList[t],this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(t),1)},rowCell:function(e,t){e.$cellEdit?this.rowCellUpdate(e,t):this.rowCellEdit(e,t)},rowCellUpdate:function(e,t){var n=this;e=this.deepClone(e);var r=function(){n.btnDisabledList[t]=!1,n.btnDisabled=!1,n.list[t].$cellEdit=!1,n.cascaderIndexList.splice(n.cascaderIndexList.indexOf(t),1),delete n.cascaderFormList[t]},i=function(){n.btnDisabledList[t]=!1,n.btnDisabled=!1};this.validateCellField(t)&&(this.btnDisabledList[t]=!0,this.btnDisabled=!0,this.validatenull(e[this.rowKey])?this.$emit("row-save",e,r,i):this.$emit("row-update",e,t,r,i))},rowCellEdit:function(e,t){e.$cellEdit=!0,this.cascaderFormList[t]=this.deepClone(e),this.cascaderDicList[t]=this.deepClone(this.cascaderDIC[t])},validateCellForm:function(e){var t=this;return new Promise((function(e){t.$refs.cellForm.validate((function(t,n){e(n)}))}))},validateCellField:function(e){var t,n=!0,r=Se(this.$refs.cellForm.fields);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i.prop.split(".")[1]==e&&this.$refs.cellForm.validateField(i.prop,(function(e){e&&(n=!1)})),!n)break}}catch(e){r.e(e)}finally{r.f()}return n},rowAdd:function(){this.$refs.dialogForm.show("add")},rowSave:function(){return this.$refs.dialogForm.$refs.tableForm.submit()},rowUpdate:function(){return this.$refs.dialogForm.$refs.tableForm.submit()},closeDialog:function(){return this.$refs.dialogForm.closeDialog()},getPropRef:function(e){return this.$refs.dialogForm.$refs.tableForm.getPropRef(e)},setVal:function(){this.$emit("input",this.tableForm),this.$emit("change",this.tableForm)},rowEdit:function(e,t){this.tableForm=this.deepClone(e),this.tableIndex=t,this.setVal(),this.$refs.dialogForm.show("edit")},rowCopy:function(e){this.tableForm=this.deepClone(e),delete this.tableForm[this.rowKey],this.tableIndex=-1,this.setVal(),this.$refs.dialogForm.show("add")},rowView:function(e,t){this.tableForm=this.deepClone(e),this.tableIndex=t,this.setVal(),this.$refs.dialogForm.show("view")},rowDel:function(e,t){var n=this;this.$emit("row-del",e,t,(function(){var t=n.findData(e[n.rowKey]),r=t.parentList,i=t.index;r&&r.splice(i,1)}))},tableSpanMethod:function(e){if("function"==typeof this.spanMethod)return this.spanMethod(e)},tableSummaryMethod:function(e){var t=this,n={},r=[],i=e.columns,o=e.data;return"function"==typeof this.summaryMethod?(r=this.summaryMethod(e),i.forEach((function(e,t){n[e.property]=r[t]})),this.sumsList=n):i.forEach((function(e,i){var a=t.sumColumnList.find((function(t){return t.name===e.property}));if(a){var s=a.decimals||2,c=a.label||"";switch(a.type){case"count":r[i]=c+o.length;break;case"avg":var l=o.map((function(t){return Number(t[e.property])})),u=1;r[i]=l.reduce((function(e,t){var n=Number(t);return isNaN(n)?e:(e*(u-1)+t)/u++}),0),r[i]=c+r[i].toFixed(s);break;case"sum":var d=o.map((function(t){return Number(t[e.property])}));r[i]=d.reduce((function(e,t){var n=Number(t);return isNaN(n)?e:e+t}),0),r[i]=c+r[i].toFixed(s)}n[e.property]=r[i]}else r[i]=""})),this.sumsList=n,r},tableDrop:function(e,t,n){if(!0!==this.isSortable){if("row"==e&&!this.isRowSort)return;if("column"==e&&!this.isColumnSort)return}window.Sortable?window.Sortable.create(t,{ghostClass:P.ghostClass,chosenClass:P.ghostClass,animation:500,delay:0,onEnd:function(e){return n(e)}}):C.logs("Sortable")},findData:function(e){var t=this,n={};return function r(i,o){i.forEach((function(a,s){a[t.rowKey]==e&&(n={item:a,index:s,parentList:i,parent:o}),a[t.childrenKey]&&r(a[t.childrenKey],a)}))}(this.list),n}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b({card:!e.option.card})},[e.tableOption.title?t(e.tableOption.titleSize||"h2",{tag:"component",style:e.tableOption.titleStyle},[e._v(e._s(e.tableOption.title))]):e._e(),e._v(" "),t("header-search",{ref:"headerSearch",scopedSlots:e._u([{key:"search",fn:function(t){return[e._t("search",null,null,t)]}},{key:"searchMenu",fn:function(t){return[e._t("searchMenu",null,null,t)]}},e._l(e.searchSlot,(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)}),e._v(" "),t("el-card",{class:e.b("body"),attrs:{shadow:e.isCard}},[e.vaildData(e.tableOption.header,!0)?t("header-menu",{ref:"headerMenu",scopedSlots:e._u([{key:"menuLeft",fn:function(t){return[e._t("menuLeft",null,null,t)]}},{key:"menuRight",fn:function(t){return[e._t("menuRight",null,null,t)]}}],null,!0)}):e._e(),e._v(" "),e.vaildData(e.tableOption.tip,e.config.tip)&&e.tableOption.selection?t("el-tag",{staticClass:"avue-crud__tip"},[t("span",{staticClass:"avue-crud__tip-name"},[e._v("\n "+e._s(e.t("crud.tipStartTitle"))+"\n "),t("span",{staticClass:"avue-crud__tip-count"},[e._v(e._s(e.selectLen))]),e._v("\n "+e._s(e.t("crud.tipEndTitle"))+"\n ")]),e._v(" "),e.vaildData(e.tableOption.selectClearBtn,e.config.selectClearBtn)&&e.tableOption.selection?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("selectClearBtn"),expression:"getPermission('selectClearBtn')"}],attrs:{type:"text",size:"small"},on:{click:e.clearSelection}},[e._v(e._s(e.t("crud.emptyBtn")))]):e._e(),e._v(" "),e._t("tip")],2):e._e(),e._v(" "),e._t("header"),e._v(" "),t("el-form",{ref:"cellForm",attrs:{model:e.cellForm,"show-message":!1},on:{validate:e.handleValidate}},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableLoading,expression:"tableLoading"}],key:e.reload,ref:"table",class:{"avue-crud--indeterminate":e.vaildData(e.tableOption.indeterminate,!1)},attrs:{data:e.cellForm.list,"row-key":e.rowKey,size:e.$AVUE.tableSize||e.controlSize,lazy:e.vaildData(e.tableOption.lazy,!1),load:e.treeLoad,"tree-props":e.treeProps,"expand-row-keys":e.tableOption.expandRowKeys,"default-expand-all":e.tableOption.defaultExpandAll,"highlight-current-row":e.tableOption.highlightCurrentRow,"show-summary":e.tableOption.showSummary,"summary-method":e.tableSummaryMethod,"span-method":e.tableSpanMethod,stripe:e.tableOption.stripe,"show-header":e.tableOption.showHeader,"default-sort":e.tableOption.defaultSort,"row-class-name":e.rowClassName,"cell-class-name":e.cellClassName,"row-style":e.rowStyle,"cell-style":e.cellStyle,fit:e.tableOption.fit,"header-cell-class-name":e.headerCellClassName,"max-height":e.isAutoHeight?e.tableHeight:e.tableOption.maxHeight,height:e.tableHeight,width:e.setPx(e.tableOption.width,e.config.width),border:e.tableOption.border},on:{"current-change":e.currentRowChange,"expand-change":e.expandChange,"header-dragend":e.headerDragend,"row-click":e.rowClick,"row-dblclick":e.rowDblclick,"cell-mouse-enter":e.cellMouseEnter,"cell-mouse-leave":e.cellMouseLeave,"cell-click":e.cellClick,"header-click":e.headerClick,"row-contextmenu":e.rowContextmenu,"header-contextmenu":e.headerContextmenu,"cell-dblclick":e.cellDblclick,"filter-change":e.filterChange,"selection-change":e.selectionChange,select:e.select,"select-all":e.selectAll,"sort-change":e.sortChange}},[t("template",{slot:"empty"},[t("div",{class:e.b("empty")},[e.$slots.empty?e._t("empty"):t("el-empty",{attrs:{"image-size":100,description:e.tableOption.emptyText||e.t("crud.emptyText")}})],2)]),e._v(" "),t("column",{attrs:{columnOption:e.columnOption},scopedSlots:e._u([e._l(e.mainSlot,(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)},[t("column-default",{ref:"columnDefault",attrs:{slot:"header"},slot:"header",scopedSlots:e._u([{key:"expand",fn:function({row:t,index:n}){return[e._t("expand",null,{row:t,index:n})]}}],null,!0)}),e._v(" "),e._v(" "),t("column-menu",{attrs:{slot:"footer"},slot:"footer",scopedSlots:e._u([{key:"menuHeader",fn:function(t){return[e._t("menuHeader",null,null,t)]}},{key:"menu",fn:function(t){return[e._t("menu",null,null,t)]}},{key:"menuBtn",fn:function(t){return[e._t("menuBtn",null,null,t)]}}],null,!0)})],1)],2)],1),e._v(" "),e._t("footer")],2),e._v(" "),t("table-page",{ref:"tablePage"},[t("template",{slot:"page"},[e._t("page")],2)],2),e._v(" "),t("dialog-form",{ref:"dialogForm",scopedSlots:e._u([e._l(e.formSlot,(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}})),{key:"menuForm",fn:function(t){return[e._t("menuForm",null,null,t)]}}],null,!0)}),e._v(" "),t("dialog-column",{ref:"dialogColumn"}),e._v(" "),t("dialog-excel",{ref:"dialogExcel"}),e._v(" "),t("dialog-filter",{ref:"dialogFilter"})],1)}),[],!1,null,null,null).exports,Oe={img:"img",title:"title",info:"info"},Re=c(s({name:"card",props:{props:{type:Object,default:function(){return Oe}},option:{type:Object,default:function(){return{}}},data:{type:Array,default:function(){return[]}}},data:function(){return{propsDefault:Oe}},computed:{imgKey:function(){return this.option.props.img||this.propsDefault.img},titleKey:function(){return this.option.props.title||this.propsDefault.title},infoKey:function(){return this.option.props.info||this.propsDefault.info},span:function(){return this.option.span||8},gutter:function(){return this.option.gutter||20}},methods:{rowAdd:function(){this.$emit("row-add")},rowClick:function(e,t){this.$emit("row-click",e,t)}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b()},[t("el-row",{attrs:{span:24,gutter:e.gutter}},[e.vaildData(e.option.addBtn,!0)?t("el-col",{attrs:{span:e.span}},[t("div",{class:e.b("item",{add:!0}),on:{click:function(t){return e.rowAdd()}}},[t("i",{staticClass:"el-icon-plus"}),e._v(" "),t("span",[e._v("添加")])])]):e._e(),e._v(" "),e._l(e.data,(function(n,r){return t("el-col",{key:r,attrs:{span:e.span}},[t("div",{class:e.b("item"),on:{click:function(t){return e.rowClick(n,r)}}},[t("div",{class:e.b("body")},[t("div",{class:e.b("avatar")},[t("img",{attrs:{src:n[e.imgKey],alt:""}})]),e._v(" "),t("div",{class:e.b("detail")},[t("div",{class:e.b("title")},[e._v(e._s(n[e.titleKey]))]),e._v(" "),t("div",{class:e.b("info")},[e._v(e._s(n[e.infoKey]))])])]),e._v(" "),t("div",{class:e.b("menu")},[e._t("menu",null,{index:r,row:n})],2)])])}))],2)],1)}),[],!1,null,null,null).exports,De=c(s({name:"code",props:{height:{type:Number,default:200},syntax:{type:String,default:"javascript"}},computed:{styleName:function(){return{height:this.setPx(this.height)}}},mounted:function(){window.hljs?window.hljs&&"function"==typeof window.hljs.highlightBlock&&window.hljs.highlightBlock(this.$refs.container):C.logs("hljs")}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b()},[t("el-scrollbar",{style:e.styleName},[t("pre",[e._v(" "),t("code",{ref:"container",class:e.syntax},[e._v("\n "),e._t("default"),e._v("\n ")],2),e._v("\n ")])])],1)}),[],!1,null,null,null).exports;function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Me=c(s({name:"chat",mixins:[J],data:function(){return{upload:{box:!1,src:"",type:"",title:""},visible:!1,imgSrc:"",videoSrc:"",audioSrc:"",keys:"",show:!1}},props:{beforeOpen:Function,tools:{type:Object,default:function(){return{img:!0,video:!0,file:!0}}},placeholder:{type:String,default:"请输入..."},width:{type:[String,Number],default:320},height:{type:[String,Number],default:520},value:{type:String},notice:{type:Boolean,default:!0},audio:{type:Array,default:function(){return["https://www.helloweba.net/demo/notifysound/notify.ogg","https://www.helloweba.net/demo/notifysound/notify.mp3","https://www.helloweba.net/demo/notifysound/notify.wav"]}},config:{type:Object,default:function(){return{}}},keylist:{type:Array,default:function(){return[]}},list:{type:Array,default:function(){return[]}}},computed:{msg:{get:function(){return this.value},set:function(e){this.$emit("input",e),this.$emit("change",e)}},heightStyleName:function(){return{height:this.setPx(this.height)}},widthStyleName:function(){return{width:this.setPx(this.width)}},msgActive:function(){return!this.validatenull(this.msg.replace(/[\r\n]/g,""))}},methods:{uploadSubmit:function(){var e=this;this.$refs.form.validate((function(t){t&&(e.upload.box=!1,e.$emit("submit",e.getDetail(e.upload)))}))},handleUpload:function(e){this.upload.type=e,this.upload.src="","img"===e?this.upload.title="图片上传":"video"===e?this.upload.title="视频上传":"file"===e&&(this.upload.title="文件上传"),this.upload.box=!0},handleClose:function(e){this.imgSrc=void 0,this.videoSrc=void 0,this.audioSrc=void 0,e()},addKey:function(){""!==this.keys&&(this.$emit("keyadd",this.keys),this.keys=""),this.visible=!1},sendKey:function(e){this.$emit("keysend",e)},getAudio:function(){this.$refs.chatAudio.play()},getNotification:function(e){var t=this,n=Notification||window.Notification;if(n){var r=function(){var n=new Notification(t.config.name,{body:e,icon:t.config.img});n.onshow=function(){t.getAudio(),setTimeout((function(){n.close()}),2500)},n.onclick=function(e){n.close()}},i=n.permission;"granted"===i?r():"denied"===i||n.requestPermission((function(e){"granted"===e&&r()}))}},pushMsg:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!0===t.mine,r=t.text||{},i=t.date,o={date:i||se()().format("YYYY-MM-DD HH:mm:ss"),text:"object"!=Le(r)?{text:r}:r,mine:n,img:n?this.config.myImg:this.config.img,name:n?this.config.myName:this.config.name};this.list.push(o),setTimeout((function(){e.setScroll()}),50)},setScroll:function(e){var t=this;this.$nextTick((function(){t.$refs.main.scrollTop=e||t.$refs.main.scrollHeight}))},handleSend:function(){this.msgActive&&this.$emit("submit")},handleItemMsg:function(e){this.$emit("submit",e.ask)},handleDetail:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=t;return setTimeout((function(){(e.$refs.content||[]).forEach((function(t){for(var n=function(n){var r=t.children[n];0!=r.getAttribute("data-flag")&&(r.setAttribute("data-flag",0),r.onclick=function(){e.handleEvent(r.dataset)},"IMG"===r.tagName?(r.className="web__msg--img",r.src=r.getAttribute("data-src")):"VIDEO"===r.tagName?(r.className="web__msg--video",r.src=r.getAttribute("data-src")):"AUDIO"===r.tagName?(r.className="web__msg--audio",r.controls="controls",r.src=r.getAttribute("data-src")):"FILE"===r.tagName?(r.className="web__msg--file",r.innerHTML="<h2>File</h2><span>".concat(r.getAttribute("data-name"),"</span>")):"MAP"===r.tagName&&(r.className="web__msg--file web__msg--map",r.innerHTML="<h2>Map</h2><span>".concat(r.getAttribute("data-longitude")," , ").concat(r.getAttribute("data-latitude"),"<br />").concat(r.getAttribute("data-address"),"</span>")),e.setScroll())},r=0;r<t.children.length;r++)n(r)}))}),0),n},getDetail:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.src,r=e.name,i=e.longitude,o=e.latitude,a=e.address;return"img"===t?'<img data-type="IMG" data-src="'.concat(n,'" />'):"video"===t?'<video data-type="VIDEO" data-src="'.concat(n,'"></video>'):"audio"===t?'<audio data-type="AUDIO" data-src="'.concat(n,'"></audio>'):"file"===t?'<file data-type="FILE" data-name="'.concat(r,'" data-src="').concat(n,'"></file>'):"map"===t?'<map data-type="MAP" data-src="'.concat(n,'" data-address="').concat(a,' "data-latitude="').concat(o,'" data-longitude="').concat(i,'"></map>'):void 0},handleEvent:function(e){var t=this,n=function(){"IMG"===e.type?(t.imgSrc=e.src,t.show=!0):"VIDEO"===e.type?(t.videoSrc=e.src,t.show=!0):"AUDIO"===e.type?(t.audioSrc=e.src,t.show=!0):"FILE"===e.type&&window.open(e.src)};"function"==typeof this.beforeOpen?this.beforeOpen(e,n):n()},rootSendMsg:function(e){this.pushMsg({text:e}),this.notice&&this.getNotification(e.text||e)}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b(),style:e.heightStyleName,on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSend.apply(null,arguments)}}},[t("audio",{ref:"chatAudio"},[t("source",{attrs:{src:e.audio[0],type:"audio/ogg"}}),e._v(" "),t("source",{attrs:{src:e.audio[1],type:"audio/mpeg"}}),e._v(" "),t("source",{attrs:{src:e.audio[2],type:"audio/wav"}})]),e._v(" "),t("div",{staticClass:"web__logo"},[t("img",{staticClass:"web__logo-img",attrs:{src:e.config.img,alt:""}}),e._v(" "),t("div",{staticClass:"web__logo-info"},[t("p",{staticClass:"web__logo-name"},[e._v(e._s(e.config.name))]),e._v(" "),t("p",{staticClass:"web__logo-dept"},[e._v(e._s(e.config.dept))])]),e._v(" "),e._t("header")],2),e._v(" "),t("div",{staticClass:"web__content"},[t("div",{style:e.widthStyleName},[t("div",{ref:"main",staticClass:"web__main"},e._l(e.list,(function(n,r){return t("div",{key:r,staticClass:"web__main-item",class:{"web__main-item--mine":n.mine}},[t("div",{staticClass:"web__main-user"},[t("img",{attrs:{src:n.img}}),e._v(" "),t("cite",[e._v("\n "+e._s(n.name)+"\n "),t("i",[e._v(e._s(n.date))])])]),e._v(" "),t("div",{staticClass:"web__main-text"},[t("div",{staticClass:"web__main-arrow"}),e._v(" "),t("span",{ref:"content",refInFor:!0,domProps:{innerHTML:e._s(e.handleDetail(n.text.text))}}),e._v(" "),e.validatenull(n.text.list)?e._e():t("ul",{staticClass:"web__main-list"},e._l(n.text.list,(function(n,r){return t("li",{key:r,on:{click:function(t){return e.handleItemMsg(n)}}},[e._v(e._s(n.text))])})),0)])])})),0),e._v(" "),t("div",{staticClass:"web__footer",style:e.widthStyleName},[t("div",{staticClass:"web__tools"},[e.tools.img?t("i",{staticClass:"el-icon-picture-outline",on:{click:function(t){return e.handleUpload("img")}}}):e._e(),e._v(" "),e.tools.video?t("i",{staticClass:"el-icon-video-camera",on:{click:function(t){return e.handleUpload("video")}}}):e._e(),e._v(" "),e.tools.file?t("i",{staticClass:"el-icon-folder-opened",on:{click:function(t){return e.handleUpload("file")}}}):e._e(),e._v(" "),e._t("menu")],2),e._v(" "),t("div",{staticClass:"web__msg"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.msg,expression:"msg"}],staticClass:"web__msg-input",attrs:{rows:"2",placeholder:e.placeholder},domProps:{value:e.msg},on:{input:function(t){t.target.composing||(e.msg=t.target.value)}}}),e._v(" "),t("div",{staticClass:"web__msg-menu"},[t("el-dropdown",{staticClass:"web__msg-submit",attrs:{"split-button":"",type:"primary",size:"mini",trigger:"click"},on:{click:e.handleSend}},[e._v("\n 发送\n "),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",[t("el-popover",{attrs:{placement:"top",width:"160"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[t("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini",rows:3,"show-word-limit":"",maxlength:"100",placeholder:"请输入快捷回复语",type:"textarea"},model:{value:e.keys,callback:function(t){e.keys=t},expression:"keys"}}),e._v(" "),t("div",{staticStyle:{"text-align":"right",margin:"0"}},[t("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e.visible=!1}}},[e._v(e._s(e.t("common.cancelBtn")))]),e._v(" "),t("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.addKey}},[e._v(e._s(e.t("common.submitBtn")))])],1),e._v(" "),t("el-button",{attrs:{slot:"reference",type:"text",icon:"el-icon-plus"},slot:"reference"})],1)],1),e._v(" "),t("el-scrollbar",{staticStyle:{height:"100px"}},e._l(e.keylist,(function(n,r){return t("el-dropdown-item",{key:r,nativeOn:{click:function(t){return e.sendKey(n)}}},[t("el-tooltip",{attrs:{effect:"dark",content:n,placement:"top"}},[t("span",[e._v(" "+e._s(n.substr(0,10))+e._s(n.length>10?"...":""))])])],1)})),1)],1)],1)],1)])])]),e._v(" "),e._t("default")],2),e._v(" "),e.upload.box?t("div",[t("el-dialog",{attrs:{title:e.upload.title,"modal-append-to-body":e.$AVUE.modalAppendToBody,"append-to-body":e.$AVUE.appendToBody,visible:e.upload.box,width:"30%"},on:{"update:visible":function(t){return e.$set(e.upload,"box",t)}}},[t("el-form",{ref:"form",attrs:{model:e.upload}},[t("el-form-item",{attrs:{prop:"src",rules:[{required:!0,message:"地址不能为空"}]}},[t("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini",rows:4,"show-word-limit":"",maxlength:"100",placeholder:"请输入地址",type:"textarea"},model:{value:e.upload.src,callback:function(t){e.$set(e.upload,"src",t)},expression:"upload.src"}})],1)],1),e._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small"},on:{click:function(t){e.upload.box=!1}}},[e._v(e._s(e.t("common.cancelBtn")))]),e._v(" "),t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.uploadSubmit}},[e._v(e._s(e.t("common.submitBtn")))])],1)],1)],1):e._e(),e._v(" "),e.show?t("div",[t("el-dialog",{staticClass:"web__dialog",attrs:{visible:e.show,width:"40%","modal-append-to-body":e.$AVUE.modalAppendToBody,"append-to-body":e.$AVUE.appendToBody,"before-close":e.handleClose},on:{"update:visible":function(t){e.show=t}}},[e.imgSrc?t("img",{staticStyle:{width:"100%","object-fit":"cover"},attrs:{src:e.imgSrc}}):e._e(),e._v(" "),e.videoSrc?t("video",{staticStyle:{width:"100%","object-fit":"cover"},attrs:{src:e.videoSrc,controls:"controls"}}):e._e(),e._v(" "),e.audioSrc?t("audio",{staticStyle:{width:"100%","object-fit":"cover"},attrs:{src:e.audioSrc,controls:"controls"}}):e._e()])],1):e._e()])}),[],!1,null,null,null).exports,Fe={avatar:"avatar",author:"author",body:"body"},Ne=c(s({name:"comment",props:{reverse:{type:Boolean,default:!1},data:{type:Object,default:function(){return{}}},props:{type:Object,default:function(){return Fe}},option:{type:Object,default:function(){return{}}}},computed:{avatarKey:function(){return this.props.avatar||Fe.avatar},authorKey:function(){return this.props.author||Fe.author},bodyKey:function(){return this.props.body||Fe.body},avatar:function(){return this.data[this.avatarKey]},author:function(){return this.data[this.authorKey]},body:function(){return this.data[this.bodyKey]}},mounted:function(){}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b({reverse:e.reverse})},[t("img",{class:e.b("avatar"),attrs:{src:e.avatar,alt:""}}),e._v(" "),t("div",{class:e.b("main")},[t("div",{class:e.b("header")},[e.author?t("div",{class:e.b("author"),domProps:{textContent:e._s(e.author)}}):e._e(),e._v(" "),e._t("default")],2),e._v(" "),e.body?t("div",{class:e.b("body"),domProps:{innerHTML:e._s(e.body)}}):e._e()])])}),[],!1,null,null,null).exports;function Be(e){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Ie,Pe=function(e,t,n,r){if(r){if(window.Mock){var i=(window.Mock||{}).Random,o={};return Object.keys(e).forEach((function(r){var s,c,l,u,d,f=e[r];if(f.mock&&"object"===Be(f.mock)){var p=f.mock;switch(p.dic="string"==typeof f.dicData?t[f.dicData]:f.dicData||[],p.props=f.props||{},p.columnType=f.type,p.multiple=f.multiple,p.type){case"name":o[f.prop]=p.en?i.name(!0):i.cname();break;case"number":o[f.prop]=a(p);break;case"datetime":o[f.prop]=(d=(u=p).format,u.now?i.now(d):i.datetime(d));break;case"word":o[f.prop]=(c=(s=p).min,l=s.max,i.csentence(c,l));break;case"url":o[f.prop]=function(e){var t=e.header,n=(e.footer,i.url()),r=n.indexOf("://");return!1===t?n.substring(r+3):"http://"+n.substring(r+3)}(p);break;case"county":o[f.prop]=i.county(!0);break;case"dic":o[f.prop]=function(e){var t=e.dic,n=e.props,r=e.columnType,i=e.multiple,o=n.value||"value",s=t.length;if(["checkbox"].includes(r)||i){for(var c=a({min:1,max:s}),l=[],u=0;u<c;u++)for(var d=!0;d;){var f=t[a({min:0,max:s-1})][o];l.includes(f)||(l.push(f),d=!1)}return l}return t[a({min:0,max:s-1})][o]}(p)}}else f.mock instanceof Function&&(o[f.prop]=f.mock(n))})),o}C.logs("mock")}function a(e){var t=e.max,n=e.min,r=e.precision;if(r){var o=i.float(n,t,r)+"",a=o.indexOf(".")+1;return Number(o.substring(0,a+r))}return i.integer(n,t)}},$e=c({inject:["formSafe"],mixins:[J],computed:{menuSpan:function(){return this.formSafe.parentOption.menuSpan||24},styleName:function(){return 24!==this.menuSpan?{padding:0}:{}}}},(function(){var e=this,t=e._self._c;return e.vaildData(e.formSafe.parentOption.menuBtn,!0)?t("el-col",{class:[e.formSafe.b("menu",[e.formSafe.menuPosition]),"no-print"],style:e.styleName,attrs:{span:e.menuSpan,md:e.menuSpan}},[t("el-form-item",{attrs:{"label-width":"0px"}},[e.formSafe.isMock?t("el-button",{attrs:{type:"primary",size:e.formSafe.controlSize,icon:"el-icon-edit-outline",disabled:e.formSafe.allDisabled},on:{click:e.formSafe.handleMock}},[e._v(e._s(e.vaildData(e.formSafe.parentOption.mockText,e.t("form.mockBtn"))))]):e._e(),e._v(" "),e.formSafe.isPrint?t("el-button",{attrs:{type:"primary",size:e.formSafe.controlSize,icon:"el-icon-printer",disabled:e.formSafe.allDisabled},on:{click:e.formSafe.handlePrint}},[e._v(e._s(e.vaildData(e.formSafe.parentOption.printText,e.t("form.printBtn"))))]):e._e(),e._v(" "),e.vaildData(e.formSafe.parentOption.submitBtn,!0)?t("el-button",{attrs:{type:"primary",size:e.formSafe.controlSize,icon:e.formSafe.parentOption.submitIcon||"el-icon-check",loading:e.formSafe.allDisabled},on:{click:e.formSafe.submit}},[e._v(e._s(e.vaildData(e.formSafe.parentOption.submitText,e.t("form.submitBtn"))))]):e._e(),e._v(" "),e.vaildData(e.formSafe.parentOption.emptyBtn,!0)?t("el-button",{attrs:{icon:e.formSafe.parentOption.emptyIcon||"el-icon-delete",size:e.formSafe.controlSize,disabled:e.formSafe.allDisabled},on:{click:e.formSafe.resetForm}},[e._v(e._s(e.vaildData(e.formSafe.parentOption.emptyText,e.t("form.emptyBtn"))))]):e._e(),e._v(" "),e._t("menuForm",null,{disabled:e.formSafe.allDisabled,size:e.formSafe.controlSize})],2)],1):e._e()}),[],!1,null,null,null).exports,je={labelWidth:90,span:12,xsSpan:24},ze={},qe=c(s({name:"form",mixins:[I()],components:{formTemp:le,formMenu:$e},props:{uploadBefore:Function,uploadAfter:Function,uploadDelete:Function,uploadPreview:Function,uploadError:Function,uploadExceed:Function,status:{type:Boolean,default:!1},isCrud:{type:Boolean,default:!1},value:{type:Object,required:!0,default:function(){return{}}}},data:function(){return{config:je,activeName:"",allDisabled:!1,tableOption:{},form:{},formCreate:!1,formList:[],formBind:{}}},provide:function(){return{formSafe:this}},watch:{value:{handler:function(e){this.formCreate&&this.setForm()},deep:!0},form:{handler:function(e){this.formCreate&&(this.setLabel(),this.setVal())},deep:!0},tabsActive:{handler:function(e){this.activeName=this.tabsActive},immediate:!0},DIC:{handler:function(){this.setLabel()},deep:!0,immediate:!0},allDisabled:{handler:function(e){this.$emit("update:status",e)},deep:!0,immediate:!0}},computed:{columnSlot:function(){var e=this;return Object.keys(this.$scopedSlots).filter((function(t){return!e.propOption.map((function(e){return e.prop})).includes(t)}))},labelSuffix:function(){return this.parentOption.labelSuffix||":"},isMenu:function(){return 1!=this.columnOption.length},isDetail:function(){return!0===this.detail},isTabs:function(){return!0===this.parentOption.tabs},isAdd:function(){return"add"===this.boxType},isEdit:function(){return"edit"===this.boxType},isView:function(){return"view"===this.boxType},detail:function(){return this.parentOption.detail},disabled:function(){return this.parentOption.disabled},readonly:function(){return this.parentOption.readonly},tabsType:function(){return this.parentOption.tabsType},columnLen:function(){return this.columnOption.length},dynamicOption:function(){var e=this,t=[];return this.propOption.forEach((function(n){"dynamic"==n.type&&e.vaildDisplay(n)&&t.push(n)})),t},propOption:function(){var e=[];return this.columnOption.forEach((function(t){!1!==t.display&&t.column.forEach((function(t){e.push(t)}))})),e},parentOption:function(){return this.tableOption||{}},columnOption:function(){var e=this,t=this.deepClone(this.tableOption),n=Object(S.n)(t.column),r=t.group||[],i=t.footer||[];return r.unshift({header:!1,column:n}),0!==i.length&&r.push({header:!1,column:i}),r.forEach((function(t,n){t.column=Object(S.n)(t.column),t.column.forEach((function(t,n){!1===t.display||e.isMobile||(t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n&&(ee=0);var r=24;return(ee=ee+(e.span||t)+(e.offset||0))===r?ee=0:ee>r?ee=0+(e.span||t)+(e.offset||0):e.row&&ee!==r&&(e.count=r-ee,ee=0),e}(t,e.config.span,0===n))})),t.column=Z(t.column),t.column=t.column.sort((function(e,t){return(t.order||0)-(e.order||0)}))})),r},menuPosition:function(){return this.parentOption.menuPosition?this.parentOption.menuPosition:"center"},boxType:function(){return this.parentOption.boxType},isPrint:function(){return this.vaildData(this.parentOption.printBtn,!1)},tabsActive:function(){return this.vaildData(this.tableOption.tabsActive+"","1")},isMock:function(){return this.vaildData(this.parentOption.mockBtn,!1)}},mounted:function(){var e=this;setTimeout((function(){e.dataFormat()}))},methods:{getComponent:ne,getPlaceholder:ie,getDisabled:function(e){return this.vaildDetail(e)||this.isDetail||this.vaildDisabled(e)||this.allDisabled},isGroupShow:function(e,t){return!this.isTabs||t==this.activeName||0==t},dataFormat:function(){var e=this,t=re(this.propOption).tableForm,n=this.value,r={};Object.entries(Object.assign(t,n)).forEach((function(t){var i=t[0],o=t[1];e.validatenull(n[i])?r[i]=o:r[i]=n[i]})),this.$set(this,"form",r),this.setLabel(),this.setControl(),this.setVal(),setTimeout((function(){e.formCreate=!0,e.clearValidate()}))},setControl:function(){var e=this;this.propOption.forEach((function(t){var n=t.prop,r=t.bind,i=t.control;if(e.form,!e.formBind[n]){var o=[];if(r){var a=e.$watch("form."+n,(function(t,n){t!=n&&Object(S.v)(e.form,r,t)})),s=e.$watch("form."+r,(function(t,r){t!=r&&e.$set(e.form,n,t)}));o.push(a),o.push(s),e.$set(e.form,n,Object(S.m)(e.form,r))}if(i){var c=function(){var n=i(e.form[t.prop],e.form)||{};Object.keys(n).forEach((function(t){var r=Object.assign(e.objectOption[t]||{},n[t]);e.$set(e.objectOption,t,r),n[t].dicData&&(e.DIC[t]=n[t].dicData)}))},l=e.$watch("form."+n,(function(e,t){c()}));o.push(l),c()}e.formBind[n]=o}}))},setForm:function(){var e=this;Object.keys(this.value).forEach((function(t){e.$set(e.form,t,e.value[t])}))},setVal:function(){this.$emit("input",this.form),this.$emit("change",this.form)},setLabel:function(){var e=this;!0===this.tableOption.filterNull&&(this.form=Object(S.i)(this.form,[""],!1)),1==this.tableOption.filterDic?this.form=Object(S.i)(this.form,["$"],!1):this.propOption.forEach((function(t){var n,r=e.DIC[t.prop];e.validatenull(r)||((n=ce(e.form,t,e.tableOption,r))?e.$set(e.form,"$".concat(t.prop),n):e.$delete(e.form,"$".concat(t.prop)))}))},handleGroupClick:function(e){this.$emit("tab-click",e)},handleTabClick:function(e,t){this.$emit("tab-click",e,t)},getItemParams:function(e,t,n,r){var i;return i=this.validatenull(e[n])?this.validatenull(t[n])?this.parentOption[n]:t[n]:e[n],i=this.vaildData(i,this.config[n]),r?this.setPx(i):i},validateField:function(e){return this.$refs.form.validateField(e)},validTip:function(e){return!e.tip||"upload"===e.type},getPropRef:function(e){return this.$refs[e][0]},handleChange:function(e,t){var n=this;this.$nextTick((function(){var r=t.cascader,i=r.join(",");r.forEach((function(o){var s=o,c=n.form[t.prop],l=n.findObject(e,s);n.validatenull(l)||(n.formList.includes(i)&&r.forEach((function(e){n.form[e]=Object(S.b)(n.form[e]),n.$set(n.DIC,e,[])})),n.validatenull(r)||n.validatenull(c)||n.validatenull(l)||L({column:l,value:c,form:n.form}).then((function(e){n.formList.includes(i)||n.formList.push(i);var t=e||[];n.$set(n.DIC,s,t),n.validatenull(t)||n.validatenull(t)||n.validatenull(l.cascaderIndex)||!n.validatenull(n.form[s])||(n.form[s]=t[l.cascaderIndex][(l.props||{}).value||a.f.value])})))}))}))},handlePrint:function(){this.$Print(this.$el)},propChange:function(e,t){var n=t.prop;ze[n]||t.cascader&&this.handleChange(e,t),ze[n]=!0,this.$nextTick((function(){return ze[n]=!1}))},handleMock:function(){var e=this;this.isMock&&(this.columnOption.forEach((function(t){var n=Pe(t.column,e.DIC,e.form,e.isMock);e.validatenull(n)||Object.keys(n).forEach((function(t){e.form[t]=n[t]}))})),this.$nextTick((function(){e.clearValidate(),e.$emit("mock-change",e.form)})))},vaildDetail:function(e){var t;if(this.detail)return!1;if(this.validatenull(e.detail)){if(this.isAdd)t="addDetail";else if(this.isEdit)t="editDetail";else if(this.isView)return!1}else t="detail";return this.vaildData(e[t],!1)},vaildDisabled:function(e){var t;if(this.disabled)return!0;if(this.validatenull(e.disabled)){if(this.isAdd)t="addDisabled";else if(this.isEdit)t="editDisabled";else if(this.isView)return!0}else t="disabled";return this.vaildData(e[t],!1)},vaildDisplay:function(e){var t;return this.validatenull(e.display)?this.isAdd?t="addDisplay":this.isEdit?t="editDisplay":this.isView&&(t="viewDisplay"):t="display",this.vaildData(e[t],!0)},clearValidate:function(e){this.$refs.form&&this.$refs.form.clearValidate(e)},validateCellForm:function(){var e=this;return new Promise((function(t){e.$refs.form.validate((function(e,n){t(n)}))}))},validate:function(e){var t=this;this.$refs.form.validate((function(n,r){var i=[],o=[],a={};t.dynamicOption.forEach((function(e){var n="form"===e.children.type;o.push(e.prop),n?t.validatenull(t.$refs[e.prop][0].$refs.temp.$refs.main)||t.$refs[e.prop][0].$refs.temp.$refs.main.forEach((function(e){i.push(e.validateCellForm())})):i.push(t.$refs[e.prop][0].$refs.temp.$refs.main.validateCellForm())})),Promise.all(i).then((function(n){n.forEach((function(e,n){t.validatenull(e)||(a[o[n]]=e)}));var i=Object.assign(a,r);t.validatenull(i)?(t.show(),e&&e(!0,t.hide,i)):e&&e(!1,t.hide,i)}))}))},resetForm:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(t){var n=this.propOption.map((function(e){return e.prop}));this.form=Object(S.c)(this.form,n,(this.tableOption.filterParams||[]).concat([this.rowKey]))}this.$nextTick((function(){e.clearValidate(),e.$emit("reset-change")}))},resetFields:function(){this.$refs.form.resetFields()},show:function(){this.allDisabled=!0},hide:function(){this.allDisabled=!1},submit:function(){var e=this;this.validate((function(t,n,r){t?e.$emit("submit",Object(S.i)(e.form,["$"]),e.hide):e.$emit("error",r)}))}},beforeDestroy:function(){var e=this;Object.keys(this.formBind).forEach((function(t){e.formBind[t].forEach((function(e){e()}))}))}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:[e.b(),{"avue--detail":e.isDetail}],style:{width:e.setPx(e.parentOption.formWidth,"100%")}},[t("el-form",{ref:"form",attrs:{"status-icon":e.parentOption.statusIcon,model:e.form,"label-suffix":e.labelSuffix,"hide-required-asterisk":e.parentOption.hideRequiredAsterisk,size:e.$AVUE.formSize||e.controlSize,"label-position":e.parentOption.labelPosition,"label-width":e.setPx(e.parentOption.labelWidth,e.config.labelWidth)},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-row",{class:{"avue-form__tabs":e.isTabs},attrs:{span:24,gutter:e.parentOption.gutter}},[e._l(e.columnOption,(function(n,r){return t("avue-group",{key:n.prop,attrs:{tabs:e.isTabs,arrow:n.arrow,collapse:n.collapse,display:e.vaildDisplay(n),icon:n.icon,index:r,header:!e.isTabs,active:e.activeName,label:n.label},on:{change:e.handleGroupClick}},[e.isTabs&&1==r?t("el-tabs",{class:e.b("tabs"),attrs:{slot:"tabs",type:e.tabsType},on:{"tab-click":e.handleTabClick},slot:"tabs",model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e._l(e.columnOption,(function(n,r){return[e.vaildDisplay(n)&&0!=r?t("el-tab-pane",{key:r,attrs:{name:r+""}},[t("span",{attrs:{slot:"label"},slot:"label"},[e.getSlotName(n,"H",e.$scopedSlots)?e._t(e.getSlotName(n,"H"),null,{column:e.column}):[t("i",{class:n.icon},[e._v(" ")]),e._v("\n "+e._s(n.label)+"\n ")]],2)]):e._e()]}))],2):e._e(),e._v(" "),e.getSlotName(n,"H",e.$scopedSlots)?t("template",{slot:"header"},[e._t(e.getSlotName(n,"H"),null,{column:n})],2):e._e(),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isGroupShow(n,r),expression:"isGroupShow(item,index)"}],class:e.b("group",{flex:e.vaildData(n.flex,!0)})},[e._l(n.column,(function(r,i){return[e.vaildDisplay(r)?t("el-col",{key:i,class:[e.b("row"),{"avue--detail avue--detail__column":e.vaildDetail(r)},r.className],attrs:{span:e.getItemParams(r,n,"span"),md:e.getItemParams(r,n,"span"),sm:e.getItemParams(r,n,"span"),xs:e.getItemParams(r,n,"xsSpan"),offset:e.getItemParams(r,n,"offset"),push:e.getItemParams(r,n,"push"),pull:e.getItemParams(r,n,"pull")}},[t("el-form-item",{class:e.b("item--"+(r.labelPosition||n.labelPosition||"")),attrs:{prop:r.prop,label:r.label,rules:r.rules,"label-position":r.labelPosition||n.labelPosition||e.parentOption.labelPosition,"label-width":e.getItemParams(r,n,"labelWidth",!0)},scopedSlots:e._u([{key:"error",fn:function(t){return e.getSlotName(r,"E",e.$scopedSlots)?[e._t(e.getSlotName(r,"E"),null,null,Object.assign(t,{column:r,value:e.form[r.prop],readonly:e.readonly||r.readonly,disabled:e.getDisabled(r),size:r.size||e.controlSize,dic:e.DIC[r.prop]}))]:void 0}}],null,!0)},[e.getSlotName(r,"L",e.$scopedSlots)?t("template",{slot:"label"},[e._t(e.getSlotName(r,"L"),null,{column:r,value:e.form[r.prop],readonly:r.readonly||e.readonly,disabled:e.getDisabled(r),size:r.size||e.controlSize,dic:e.DIC[r.prop]})],2):r.labelTip?t("template",{slot:"label"},[t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:r.labelTipPlacement||"top-start"}},[t("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(r.labelTip)},slot:"content"}),e._v(" "),t("i",{staticClass:"el-icon-info"})]),e._v(" "),t("span",[e._v(" "+e._s(r.label)+e._s(e.labelSuffix))])],1):e._e(),e._v(" "),e._v(" "),t(e.validTip(r)?"div":"elTooltip",{tag:"component",attrs:{disabled:e.validTip(r),content:e.vaildData(r.tip,e.getPlaceholder(r)),placement:r.tipPlacement}},[e.$scopedSlots[r.prop]?e._t(r.prop,null,{value:e.form[r.prop],column:r,label:e.form["$"+r.prop],size:r.size||e.controlSize,readonly:e.readonly||r.readonly,disabled:e.getDisabled(r),dic:e.DIC[r.prop]}):t("form-temp",e._b({ref:r.prop,refInFor:!0,attrs:{column:r,"box-type":e.boxType,dic:e.DIC[r.prop],props:e.parentOption.props,propsHttp:e.parentOption.propsHttp,disabled:e.getDisabled(r),readonly:r.readonly||e.readonly,enter:e.parentOption.enter,size:e.size,"column-slot":e.columnSlot},on:{enter:e.submit,change:function(t){return e.propChange(n.column,r)}},scopedSlots:e._u([e._l(e.getSlotName(r,"T",e.$scopedSlots)?[r]:[],(function(t){return{key:e.getSlotName(r,"T"),fn:function(n){return[e._t(e.getSlotName(t,"T"),null,null,n)]}}})),e._l(e.columnSlot,(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0),model:{value:e.form[r.prop],callback:function(t){e.$set(e.form,r.prop,t)},expression:"form[column.prop]"}},"form-temp",e.$uploadFun(r),!1))],2)],2)],1):e._e(),e._v(" "),e.vaildDisplay(r)&&r.row&&24!==r.span&&r.count?t("div",{key:"line"+i,class:e.b("line"),style:{width:r.count/24*100+"%"}}):e._e()]})),e._v(" "),e.isDetail||e.isMenu?e._e():t("form-menu",{scopedSlots:e._u([{key:"menuForm",fn:function(t){return[e._t("menuForm",null,null,t)]}}],null,!0)})],2)],2)})),e._v(" "),!e.isDetail&&e.isMenu?t("form-menu",{scopedSlots:e._u([{key:"menuForm",fn:function(t){return[e._t("menuForm",null,null,t)]}}],null,!0)}):e._e()],2)],1)],1)}),[],!1,null,null,null).exports,He=function(){return{mixins:[M],data:function(){return{stringMode:!1,name:"",text:void 0,propsHttpDefault:a.e,propsDefault:a.f}},props:{blur:Function,focus:Function,change:Function,click:Function,typeformat:Function,control:Function,separator:{type:String,default:a.h},params:{type:Object,default:function(){return{}}},listType:{type:String},tableData:{type:Object},value:{},column:{type:Object,default:function(){return{}}},label:{type:String,default:""},readonly:{type:Boolean,default:!1},size:{type:String,default:""},tip:{type:String,default:""},disabled:{type:Boolean,default:!1},dataType:{type:String},clearable:{type:Boolean,default:!0},type:{type:String,default:""},dicUrl:{type:String,default:""},dicMethod:{type:String,default:""},dicFormatter:Function,dicQuery:{type:Object,default:function(){return{}}},dic:{type:Array,default:function(){return[]}},placeholder:{type:String,default:""},rules:{type:Array},min:{type:Number},max:{type:Number},multiple:{type:Boolean,default:!1},button:{type:Boolean,default:!1},group:{type:Boolean,default:!1},row:{type:Boolean,default:!1},prop:{type:String,default:""},border:{type:Boolean,default:!1},popperClass:{type:String},propsHttp:{type:Object,default:function(){return a.e}},props:{type:Object,default:function(){return a.f}}},watch:{text:{handler:function(e){this.handleChange(e)}},value:{handler:function(){this.initVal()}}},computed:{clearableVal:function(){return!this.disabled&&this.clearable},componentName:function(){return"".concat("el","-").concat(this.name).concat(this.button?"-button":"")},required:function(){return!this.validatenull(this.rules)},isArray:function(){return"array"===this.dataType},isString:function(){return"string"===this.dataType},isNumber:function(){return"number"===this.dataType},nameKey:function(){return this.propsHttp.name||this.propsHttpDefault.name},urlKey:function(){return this.propsHttp.url||this.propsHttpDefault.url},resKey:function(){return this.propsHttp.res||this.propsHttpDefault.res},groupsKey:function(){return this.props.groups||this.propsDefault.groups},valueKey:function(){return this.props.value||this.propsDefault.value},descKey:function(){return this.props.desc||this.propsDefault.desc},leafKey:function(){return this.props.leaf||this.propsDefault.leaf},labelKey:function(){return this.props.label||this.propsDefault.label},childrenKey:function(){return this.props.children||this.propsDefault.children},disabledKey:function(){return this.props.disabled||this.propsDefault.disabled},idKey:function(){return this.props.id||this.propsDefault.id}},created:function(){this.initVal()}}},Ue=function(){return{methods:{bindEvent:function(e,t){var n=Object(S.k)(this.dic,this.props,this.text);t=Object.assign(t,{column:this.column,dic:this.dic,item:n},this.tableData),"function"==typeof this[e]&&("change"==e?1!=this.column.cell&&this[e](t):this[e](t)),this.$emit(e,t)},initVal:function(){var e,t,n,r,i,o,s,c,l,u,d;this.stringMode="string"==typeof this.value,this.text=(e=this.value,n=(t=this).type,r=t.multiple,i=t.dataType,o=t.separator,s=void 0===o?a.h:o,c=t.alone,l=t.emitPath,u=t.range,d=e,a.k.includes(n)&&1==r||a.b.includes(n)&&!1!==l||a.l.includes(n)&&1==u?(Array.isArray(d)||(d=Object(E.a)(d)?[]:(d+"").split(s)||[]),d.forEach((function(e,t){d[t]=Object(S.g)(e,i)})),a.a.includes(n)&&Object(E.a)(d)&&c&&(d=[""])):d=Object(S.g)(d,i),d)},getLabelText:function(e){return this.validatenull(e)?"":"function"==typeof this.typeformat?this.typeformat(e,this.labelKey,this.valueKey):e[this.labelKey]},handleFocus:function(e){this.bindEvent("focus",{value:this.value,event:e})},handleBlur:function(e){this.bindEvent("blur",{value:this.value,event:e})},handleClick:function(e){this.bindEvent("click",{value:this.value,event:e})},handleChange:function(e){var t=e;(this.isString||this.isNumber||this.stringMode||"picture-img"===this.listType)&&Array.isArray(e)&&(t=e.join(this.separator)),this.bindEvent("change",{value:t}),this.$emit("input",t)}}}},We=c(s({name:"checkbox",props:{all:{type:Boolean,default:!1}},mixins:[He(),Ue(),J],data:function(){return{checkAll:!1,isIndeterminate:!1,name:"checkbox"}},watch:{dic:function(){this.handleCheckChange()},text:{handler:function(e){this.handleCheckChange()}}},created:function(){},mounted:function(){},methods:{handleCheckAll:function(e){var t=this;this.all&&(this.text=e?this.dic.map((function(e){return e[t.valueKey]})):[],this.isIndeterminate=!1)},handleCheckChange:function(){var e=this.text;if(this.all){var t=e.length,n=this.dic.length;this.checkAll=t===n,this.isIndeterminate=t>0&&t<n}}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b()},[e.all?t("el-checkbox",{class:e.b("all"),attrs:{disabled:e.disabled,indeterminate:e.isIndeterminate},on:{change:e.handleCheckAll},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v(e._s(e.t("check.checkAll")))]):e._e(),e._v(" "),t("el-checkbox-group",{attrs:{disabled:e.disabled,size:e.size,min:e.min,max:e.max},on:{change:e.handleCheckChange},nativeOn:{click:function(t){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}},e._l(e.dic,(function(n,r){return t(e.componentName,{key:r,tag:"component",attrs:{label:n[e.valueKey],border:e.border,size:e.size,readonly:e.readonly,disabled:n[e.disabledKey]}},[e._v(e._s(n[e.labelKey])+"\n ")])})),1)],1)}),[],!1,null,null,null).exports,Ve=c(s({name:"date",mixins:[He(),Ue(),J],props:{editable:Boolean,unlinkPanels:Boolean,startPlaceholder:String,endPlaceholder:String,rangeSeparator:String,defaultValue:[String,Array],defaultTime:[String,Array],pickerOptions:Object,type:{type:String,default:"date"},valueFormat:String,format:String}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b()},[t("el-date-picker",{attrs:{type:e.type,"popper-class":e.popperClass,size:e.size,editable:e.editable,"unlink-panels":e.unlinkPanels,readonly:e.readonly,"default-value":e.defaultValue,"default-time":e.defaultTime,"range-separator":e.rangeSeparator,"start-placeholder":e.startPlaceholder||e.t("date.start"),"end-placeholder":e.endPlaceholder||e.t("date.end"),format:e.format,clearable:e.clearableVal,"picker-options":e.pickerOptions,"value-format":e.valueFormat,placeholder:e.placeholder,disabled:e.disabled},on:{blur:e.handleBlur,focus:e.handleFocus},nativeOn:{click:function(t){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}})],1)}),[],!1,null,null,null).exports,Ge=c(s({name:"draggable",props:{index:{type:[String,Number]},mask:{type:Boolean,default:!0},scale:{type:Number,default:1},readonly:{type:Boolean,default:!1},resize:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},lock:{type:Boolean,default:!1},step:{type:Number,default:1},zIndex:{type:[Number,String],default:1},left:{type:Number,default:0},top:{type:Number,default:0},width:{type:Number},height:{type:Number}},data:function(){return{first:!0,value:"",baseWidth:0,baseHeight:0,baseLeft:0,baseTop:0,children:{},moveActive:!1,overActive:!1,rangeActive:!1,active:!1,keyDown:null,rangeList:[{classname:"left"},{classname:"right"},{classname:"top"},{classname:"bottom"},{classname:"top-left"},{classname:"top-right"},{classname:"bottom-left"},{classname:"bottom-right"}]}},computed:{scaleVal:function(){return this.scale},styleMenuName:function(){return{transformOrigin:"0 0",transform:"scale(".concat(this.scaleVal,")")}},styleLineName:function(){return{borderWidth:this.setPx(this.scaleVal)}},styleRangeName:function(){var e=10*this.scaleVal;return{width:this.setPx(e),height:this.setPx(e)}},styleLabelName:function(){return{fontSize:this.setPx(18*this.scaleVal)}},styleName:function(){var e=this;return Object.assign(e.active?Object.assign({zIndex:9999},e.styleLineName):{zIndex:e.zIndex},{top:this.setPx(this.baseTop),left:this.setPx(this.baseLeft),width:this.setPx(this.baseWidth),height:this.setPx(this.baseHeight)})}},watch:{active:function(e){e?this.handleKeydown():document.onkeydown=this.keyDown},width:function(e){this.baseWidth=Object(S.p)(e)||this.children.offsetWidth},height:function(e){this.baseHeight=Object(S.p)(e)||this.children.offsetHeight},left:function(e){this.baseLeft=Object(S.p)(e)},top:function(e){this.baseTop=Object(S.p)(e)},baseWidth:function(e){this.$refs.wrapper.style.width=this.setPx(e),this.resize&&this.children.style&&(this.children.style.width=this.setPx(e))},baseHeight:function(e){this.$refs.wrapper.style.height=this.setPx(e),this.resize&&this.children.style&&(this.children.style.height=this.setPx(e))},baseLeft:function(e,t){this.first||this.setMove(e-t,0)},baseTop:function(e,t){this.first||this.setMove(0,e-t)}},mounted:function(){this.init()},methods:{init:function(){var e=this;this.children=this.$refs.item.firstChild,this.baseWidth=Object(S.p)(this.width)||this.children.offsetWidth,this.baseHeight=Object(S.p)(this.height)||this.children.offsetHeight,this.baseLeft=Object(S.p)(this.left),this.baseTop=Object(S.p)(this.top),this.keyDown=document.onkeydown,this.$nextTick((function(){e.first=!1}))},setMove:function(e,t){this.$emit("move",{index:this.index,left:e,top:t})},setLeft:function(e){this.baseLeft=e},setTop:function(e){this.baseTop=e},getRangeStyle:function(e){var t=this,n=10*this.scaleVal/2,r={};return e.split("-").forEach((function(e){r[e]=t.setPx(-n)})),r},setOverActive:function(e){this.overActive=e},setActive:function(e){this.active=e},rangeMove:function(e,t){var n=this;if(!this.disabled&&!this.lock){var r,i,o,a,s,c;this.rangeActive=!0,this.handleMouseDown();var l=e.clientX,u=e.clientY;document.onmousemove=function(e){n.moveActive=!0,"right"===t?(r=!0,i=!1):"left"===t?(r=!0,o=!0,s=!0,i=!1):"top"===t?(r=!1,i=!0,a=!0,c=!0):"bottom"===t?(r=!1,i=!0):"bottom-right"===t?(r=!0,i=!0):"bottom-left"===t?(r=!0,i=!0,o=!0,s=!0):"top-right"===t?(r=!0,i=!0,a=!0,c=!0):"top-left"===t&&(r=!0,i=!0,o=!0,s=!0,a=!0,c=!0);var d=e.clientX-l,f=e.clientY-u;if(l=e.clientX,u=e.clientY,r){var p=d*n.step;s&&(p=-p),o&&(n.baseLeft=Object(S.p)(n.baseLeft-p)),n.baseWidth=Object(S.p)(n.baseWidth+p)}if(i){var h=f*n.step;c&&(h=-h),a&&(n.baseTop=Object(S.p)(n.baseTop-h)),n.baseHeight=Object(S.p)(n.baseHeight+h)}},this.handleClear()}},handleOut:function(){this.overActive=!1,this.$emit("out",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop})},handleOver:function(){this.disabled||(this.overActive=!0,this.$emit("over",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop}))},handleMove:function(e){var t=this;if(!this.disabled&&!this.lock){setTimeout((function(){t.$refs.input.focus()})),this.active=!0,this.handleMouseDown();var n=e.clientX,r=e.clientY;document.onmousemove=function(e){var i=e.clientX-n,o=e.clientY-r;n=e.clientX,r=e.clientY,t.baseLeft=Object(S.p)(t.baseLeft+i*t.step),t.baseTop=Object(S.p)(t.baseTop+o*t.step)},this.handleClear()}},handleClear:function(){var e=this;document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null,e.handleMouseUp()}},handleKeydown:function(){var e=arguments,t=this;document.onkeydown=function(n){var r=n||window.event||e.callee.caller.arguments[0],i=1*t.step;t.$refs.input.focused&&(r&&38==r.keyCode?t.baseTop=Object(S.p)(t.baseTop-i):r&&37==r.keyCode?t.baseLeft=Object(S.p)(t.baseLeft-i):r&&40==r.keyCode?t.baseTop=Object(S.p)(t.baseTop+i):r&&39==r.keyCode&&(t.baseLeft=Object(S.p)(t.baseLeft+i)),n.stopPropagation(),n.preventDefault(),t.$emit("blur",{index:t.index,width:t.baseWidth,height:t.baseHeight,left:t.baseLeft,top:t.baseTop}),t.keyDown&&t.keyDown(n))}},handleMouseDown:function(e){this.moveActive=!0,this.$emit("focus",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop})},handleMouseUp:function(){this.moveActive=!1,this.rangeActive=!1,this.$emit("blur",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop})}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b({active:(e.active||e.overActive)&&!e.readonly,move:e.moveActive,click:e.disabled}),style:e.styleName,on:{mousedown:function(t){return t.stopPropagation(),e.handleMove.apply(null,arguments)},mouseover:function(t){return t.stopPropagation(),e.handleOver.apply(null,arguments)},mouseout:function(t){return t.stopPropagation(),e.handleOut.apply(null,arguments)}}},[t("el-input",{ref:"input",class:e.b("focus"),model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}),e._v(" "),t("div",{ref:"wrapper",class:e.b("wrapper")},[(e.active||e.overActive||e.moveActive)&&!e.readonly?[t("div",{class:e.b("line",["left"]),style:e.styleLineName}),e._v(" "),t("div",{class:e.b("line",["top"]),style:e.styleLineName}),e._v(" "),t("div",{class:e.b("line",["label"]),style:e.styleLabelName},[e._v(e._s(e.baseLeft)+","+e._s(e.baseTop))])]:e._e(),e._v(" "),e._l(e.rangeList,(function(n,r){return e.readonly?e._e():[e.active?t("div",{key:r,class:e.b("range",[n.classname]),style:[e.styleRangeName,e.getRangeStyle(n.classname)],on:{mousedown:function(t){return t.stopPropagation(),e.rangeMove(t,n.classname)}}}):e._e()]})),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.active||e.overActive,expression:"active || overActive"}],class:e.b("menu"),style:e.styleMenuName},[e._t("menu",null,{zIndex:e.zIndex,index:e.index})],2),e._v(" "),t("div",{ref:"item",class:e.b("item")},[e._t("default")],2),e._v(" "),!e.disabled&&e.mask?t("div",{class:e.b("mask")}):e._e()],2)],1)}),[],!1,null,null,null).exports,Ke=c(s({name:"flow",props:{active:[String,Number],index:[String,Number],node:Object},data:function(){return{mouseEnter:!1}},computed:{flowNodeContainer:{get:function(){return{position:"absolute",width:"200px",top:this.setPx(this.node.top),left:this.setPx(this.node.left),boxShadow:this.mouseEnter?"#66a6e0 0px 0px 12px 0px":"",backgroundColor:"transparent"}}}},methods:{showDelete:function(){this.mouseEnter=!0},hideDelete:function(){this.mouseEnter=!1},changeNodeSite:function(){this.node.left==this.$refs.node.style.left&&this.node.top==this.$refs.node.style.top||this.$emit("changeNodeSite",{index:this.index,left:Number(this.$refs.node.style.left.replace("px","")),top:Number(this.$refs.node.style.top.replace("px",""))})}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{ref:"node",style:e.flowNodeContainer,attrs:{left:e.node.left,top:e.node.top,disabled:"",mask:!1},on:{mouseenter:e.showDelete,mouseleave:e.hideDelete,mouseup:e.changeNodeSite}},[t("div",{class:e.b("node",{active:e.active===e.node.id})},[t("div",{class:e.b("node-header")},[t("i",{staticClass:"el-icon-rank",class:e.b("node-drag")}),e._v(" "),e._t("header",null,{node:e.node})],2),e._v(" "),t("div",{class:e.b("node-body")},[e._t("default",null,{node:e.node})],2)])])}),[],!1,null,null,null),Ye=c(s({name:"flow",components:{flowNode:Ke.exports},data:function(){return{jsPlumb:{},id:"",jsplumbSetting:{Anchors:["Top","TopCenter","TopRight","TopLeft","Right","RightMiddle","Bottom","BottomCenter","BottomRight","BottomLeft","Left","LeftMiddle"],Container:"",Connector:"Flowchart",ConnectionsDetachable:!1,DeleteEndpointsOnDetach:!1,Endpoint:["Rectangle",{height:10,width:10}],EndpointStyle:{fill:"rgba(255,255,255,0)",outlineWidth:1},LogEnabled:!0,PaintStyle:{stroke:"black",strokeWidth:3},Overlays:[["Arrow",{width:12,length:12,location:1}]],RenderMode:"svg"},jsplumbConnectOptions:{isSource:!0,isTarget:!0,anchor:"Continuous"},jsplumbSourceOptions:{filter:".avue-flow__node-drag",filterExclude:!1,anchor:"Continuous",allowLoopback:!1},jsplumbTargetOptions:{filter:".avue-flow__node-drag",filterExclude:!1,anchor:"Continuous",allowLoopback:!1},loadEasyFlowFinish:!1}},props:{value:{type:String},option:{type:Object},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"}},created:function(){this.id=Object(S.u)(),this.jsplumbSetting.Container=this.id},mounted:function(){this.init()},computed:{active:{get:function(){return this.value},set:function(e){this.$emit("input",e),this.$emit("change",e)}},styleName:function(){return{position:"relative",width:this.setPx(this.width),height:this.setPx(this.height)}}},methods:{init:function(){var e=this;this.jsPlumb=jsPlumb.getInstance(),this.$nextTick((function(){e.jsPlumbInit()}))},handleClick:function(e){this.$emit("click",e)},hasLine:function(e,t){for(var n=0;n<this.data.lineList.length;n++){var r=this.data.lineList[n];if(r.from===e&&r.to===t)return!0}return!1},hashOppositeLine:function(e,t){return this.hasLine(t,e)},deleteLine:function(e,t){this.option.lineList=this.option.lineList.filter((function(n){return n.from!==e&&n.to!==t}))},changeLine:function(e,t){this.deleteLine(e,t)},changeNodeSite:function(e){for(var t=e.index,n=e.left,r=e.top,i=0;i<this.option.nodeList.length;i++)this.option.nodeList[i],i===t&&(this.$set(this.option.nodeList[i],"left",n),this.$set(this.option.nodeList[i],"top",r))},deleteNode:function(e){var t=this;return this.$confirm("确定要删除节点"+e+"?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",closeOnClickModal:!1}).then((function(){t.option.nodeList.forEach((function(t){t.id===e&&(t.display=!0)})),t.$nextTick((function(){this.jsPlumb.removeAllEndpoints(e)}))})).catch((function(){})),!0},addNode:function(e){var t=this.option.nodeList.length,n="node"+t;this.option.nodeList.push({id:"node"+t,name:e,left:0,top:0}),this.$nextTick((function(){this.jsPlumb.makeSource(n,this.jsplumbSourceOptions),this.jsPlumb.makeTarget(n,this.jsplumbTargetOptions),this.jsPlumb.draggable(n,{containment:"parent"})}))},loadEasyFlow:function(){for(var e=0;e<this.option.nodeList.length;e++){var t=this.option.nodeList[e];this.jsPlumb.makeSource(t.id,this.jsplumbSourceOptions),this.jsPlumb.makeTarget(t.id,this.jsplumbTargetOptions),this.jsPlumb.draggable(t.id)}for(e=0;e<this.option.lineList.length;e++){var n=this.option.lineList[e];this.jsPlumb.connect({source:n.from,target:n.to},this.jsplumbConnectOptions)}this.$nextTick((function(){this.loadEasyFlowFinish=!0}))},jsPlumbInit:function(){var e=this;this.jsPlumb.ready((function(){e.jsPlumb.importDefaults(e.jsplumbSetting),e.jsPlumb.setSuspendDrawing(!1,!0),e.loadEasyFlow(),e.jsPlumb.bind("click",(function(t,n){e.$confirm("确定删除所点击的线吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.jsPlumb.deleteConnection(t)})).catch((function(){}))})),e.jsPlumb.bind("connection",(function(t){var n=t.source.id,r=t.target.id;e.loadEasyFlowFinish&&e.option.lineList.push({from:n,to:r})})),e.jsPlumb.bind("connectionDetached",(function(t){e.deleteLine(t.sourceId,t.targetId)})),e.jsPlumb.bind("connectionMoved",(function(t){e.changeLine(t.originalSourceId,t.originalTargetId)})),e.jsPlumb.bind("contextmenu",(function(e){})),e.jsPlumb.bind("beforeDrop",(function(t){var n=t.sourceId,r=t.targetId;return n===r?(e.$message.error("不能连接自己"),!1):e.hasLine(n,r)?(e.$message.error("不能重复连线"),!1):!e.hashOppositeLine(n,r)||(e.$message.error("不能回环哦"),!1)})),e.jsPlumb.bind("beforeDetach",(function(e){}))}))}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b(),style:e.styleName},[t("div",{style:e.styleName,attrs:{id:e.id}},[t("div",{staticClass:"avue-grid"}),e._v(" "),e._l(e.option.nodeList,(function(n,r){return n.display?e._e():t("flow-node",{key:r,attrs:{node:n,id:n.id,index:r,active:e.active},on:{changeNodeSite:e.changeNodeSite},nativeOn:{click:function(t){return e.handleClick(n)}},scopedSlots:e._u([{key:"header",fn:function({node:t}){return[e._t("header",null,{node:t})]}}],null,!0)},[e._v(" "),e._t("default",null,{node:n})],2)}))],2)])}),[],!1,null,null,null).exports,Xe=c(s({name:"group",data:function(){return{activeName:""}},props:{arrow:{type:Boolean,default:!0},collapse:{type:Boolean,default:!0},header:{type:Boolean,default:!0},icon:{type:String},display:{type:Boolean,default:!0},card:{type:Boolean,default:!1},label:{type:String}},watch:{text:function(e){this.activeName=[e]}},computed:{text:function(){return this.collapse?1:0},isHeader:function(){return this.$slots.header&&this.header||(this.label||this.icon)&&this.header}},created:function(){this.activeName=[this.text]},methods:{handleChange:function(e){this.$emit("change",e)}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,e.display?t("div",{class:[e.b({header:!e.isHeader,arrow:!e.arrow})]},[e._t("tabs"),e._v(" "),t("el-collapse",{attrs:{value:e.text},on:{change:e.handleChange},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-collapse-item",{attrs:{name:1,disabled:!e.arrow}},[e.$slots.header&&e.header?t("div",{class:[e.b("header")],attrs:{slot:"title"},slot:"title"},[e._t("header")],2):(e.label||e.icon)&&e.header?t("div",{class:[e.b("header")],attrs:{slot:"title"},slot:"title"},[e.icon?t("i",{class:[e.icon,e.b("icon")]}):e._e(),e._v(" "),e.label?t("h1",{class:e.b("title")},[e._v(e._s(e.label))]):e._e()]):e._e(),e._v(" "),e._t("default")],2)],1)],2):e._e()}),[],!1,null,null,null).exports,Qe={img:"img",title:"title",subtile:"title",tag:"tag",status:"status"},Je=c(s({name:"notice",props:{finish:{type:Boolean,default:!1},option:{type:Object,default:function(){return{}}},data:{type:Array,default:function(){return[]}}},data:function(){return{page:1,loading:!1}},computed:{props:function(){return this.option.props||Qe},imgKey:function(){return this.props.img||Qe.img},titleKey:function(){return this.props.title||Qe.title},subtitleKey:function(){return this.props.subtitle||Qe.subtitle},tagKey:function(){return this.props.tag||Qe.tag},statusKey:function(){return this.props.status||Qe.status}},methods:{click:function(e){this.$emit("click",e)},handleClick:function(){var e=this;this.loading=!0,this.page++,this.$emit("page-change",this.page,(function(){e.loading=!1}))},getType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return 0==e?"info":1==e?"":2==e?"warning":3==e?"danger":4==e?"success":void 0}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b()},[e._l(e.data,(function(n,r){return t("div",{key:r,class:e.b("item"),on:{click:function(t){return e.click(n)}}},[n[e.imgKey]?t("div",{class:e.b("img")},[t("img",{attrs:{src:n[e.imgKey],alt:""}})]):e._e(),e._v(" "),t("div",{class:e.b("content")},[t("div",{class:e.b("title")},[t("span",{class:e.b("name")},[e._v(e._s(n[e.titleKey]))]),e._v(" "),n[e.tagKey]?t("span",{class:e.b("tag")},[t("el-tag",{attrs:{size:"small",type:e.getType(n[e.statusKey])}},[e._v(e._s(n[e.tagKey]))])],1):e._e()]),e._v(" "),t("div",{class:e.b("subtitle")},[e._v(e._s(n[e.subtitleKey]))])])])})),e._v(" "),e.finish?e._e():t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],class:e.b("more"),on:{click:e.handleClick}},[e._v("\n 加载更多\n ")])],2)}),[],!1,null,null,null).exports,Ze=c(s({name:"license",props:{id:{type:String,default:""},option:{type:Object,default:function(){return{}}}},watch:{option:{handler:function(){this.init()},deep:!0}},data:function(){return{base64:"",draw:!1,canvas:"",context:""}},computed:{img:function(){return this.option.img},list:function(){return this.option.list||[]}},mounted:function(){this.canvas=document.getElementById("canvas"+this.id),this.context=this.canvas.getContext("2d"),this.init()},methods:{init:function(){var e=this;this.draw=!1;var t=new Image;t.src=this.img,t.onload=function(){var n=e.option.width||t.width,r=e.option.width?t.height/t.width*e.option.width:t.height;e.$refs.canvas.width=n,e.$refs.canvas.height=r,e.context.clearRect(0,0,n,r),e.context.drawImage(t,0,0,n,r),e.list.forEach((function(t,n){var r=function(){n==e.list.length-1&&setTimeout((function(){e.draw=!0}),0)};if(t.img){var i=new Image;i.src=t.img,i.onload=function(){var n=t.width||i.width,o=t.width?i.height/i.width*t.width:i.height;e.context.drawImage(i,t.left,t.top,n,o),r()}}else t.bold?e.context.font="bold ".concat(t.size,"px ").concat(t.style):e.context.font="".concat(t.size,"px ").concat(t.style),e.context.fillStyle=t.color,e.context.fillText(t.text,t.left,t.top),e.context.stroke(),r()}))}},getFile:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(new Date).getTime();return new Promise((function(n){var r=setInterval((function(){if(e.draw){var i=e.canvas.toDataURL("image/jpeg",1),o=e.dataURLtoFile(i,t);clearInterval(r),n(o)}}),1e3)}))},downFile:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(new Date).getTime();Object(S.h)(this.base64,e)},getBase64:function(){var e=this;return new Promise((function(t){var n=setInterval((function(){if(e.draw){var r=e.canvas.toDataURL("image/jpeg",1);e.base64=r,clearInterval(n),t(r)}}),100)}))},getPdf:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(new Date).getTime(),t=this.canvas.width,n=this.canvas.height,r=t/592.28*841.89,i=n,o=0,a=595.28,s=592.28/t*n,c=this.canvas.toDataURL("image/jpeg",1),l=new window.jsPDF("","pt","a4");if(i<r)l.addImage(c,"JPEG",0,0,a,s);else for(;i>0;)l.addImage(c,"JPEG",0,o,a,s),o-=841.89,(i-=r)>0&&l.addPage();l.save("".concat(e,".pdf"))}}}),(function(){var e=this._self._c;return this._self._setupProxy,e("div",{class:this.b(),staticStyle:{position:"relative"}},[e("canvas",{ref:"canvas",attrs:{id:"canvas"+this.id}}),this._v(" "),this._t("default")],2)}),[],!1,null,null,null).exports,et=c(s({name:"progress",props:{showText:{type:Boolean},width:{type:[Number,String]},strokeWidth:{type:[Number,String]},type:{type:String},color:{type:String},percentage:{type:[Number]}}}),(function(){var e=this._self._c;return this._self._setupProxy,e("div",{class:this.b()},[e("el-progress",{attrs:{type:this.type,color:this.color,width:this.width,"text-inside":"","show-text":this.showText,"stroke-width":this.strokeWidth,percentage:this.percentage}})],1)}),[],!1,null,null,null).exports,tt=c(s({name:"time",mixins:[He(),Ue(),J],props:{editable:Boolean,startPlaceholder:String,endPlaceholder:String,rangeSeparator:String,defaultValue:[String,Array],pickerOptions:Object,valueFormat:String,arrowControl:Boolean,type:String,format:String},watch:{text:function(){this.validatenull(this.text)&&(this.text=null)}},computed:{componentName:function(){var e=this.pickerOptions||{};return e.start||e.end||e.step?"elTimeSelect":"elTimePicker"},isRange:function(){return"timerange"===this.type}},methods:{}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b()},[t(e.componentName,{tag:"component",attrs:{"popper-class":e.popperClass,"is-range":e.isRange,size:e.size,editable:e.editable,"default-value":e.defaultValue,"range-separator":e.rangeSeparator,"arrow-control":e.arrowControl,"start-placeholder":e.startPlaceholder||e.t("time.start"),"end-placeholder":e.endPlaceholder||e.t("time.end"),format:e.format,readonly:e.readonly,clearable:e.clearableVal,"picker-options":e.pickerOptions,"value-format":e.valueFormat,placeholder:e.placeholder,disabled:e.disabled},nativeOn:{click:function(t){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}})],1)}),[],!1,null,null,null).exports;function nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rt=c(s({name:"input",mixins:[He(),Ue()],props:(Ie={maxlength:"",minlength:"",showPassword:{type:Boolean,default:!0},showWordLimit:{type:Boolean,default:!1},target:{type:String,default:" _blank"},prefixIcon:{type:String},suffixIcon:{type:String},prependClick:{type:Function,default:function(){}},prepend:{type:String},appendClick:{type:Function,default:function(){}},append:{type:String}},nt(Ie,"minlength",{type:Number}),nt(Ie,"maxlength",{type:Number}),nt(Ie,"rows",Number),nt(Ie,"minRows",{type:Number,default:5}),nt(Ie,"maxRows",{type:Number,default:10}),nt(Ie,"autocomplete",{type:String}),Ie),computed:{isSearch:function(){return"search"==this.type},typeParam:function(){return"textarea"===this.type?"textarea":"password"===this.type?"password":"text"}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("el-input",{class:e.b(),attrs:{size:e.size,clearable:e.clearableVal,type:e.typeParam,maxlength:e.maxlength,minlength:e.minlength,"show-password":"password"==e.typeParam&&e.showPassword,rows:e.rows,autosize:{minRows:e.minRows,maxRows:e.maxRows},"prefix-icon":e.prefixIcon,"suffix-icon":e.suffixIcon,readonly:e.readonly,placeholder:e.placeholder,"show-word-limit":e.showWordLimit,disabled:e.disabled,autocomplete:e.autocomplete},on:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.isSearch&&e.appendClick()},focus:e.handleFocus,blur:e.handleBlur},nativeOn:{click:function(t){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}},[e.prepend?t("template",{slot:"prepend"},[t("span",{on:{click:function(t){return e.prependClick()}}},[e._v(e._s(e.prepend))])]):e._e(),e._v(" "),e.append?t("template",{slot:"append"},[t("span",{on:{click:function(t){return e.appendClick()}}},[e._v(e._s(e.append))])]):e.isSearch?t("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){return e.appendClick()}},slot:"append"}):e._e()],2)}),[],!1,null,null,null).exports,it=c(s({name:"radio",mixins:[He(),Ue()],data:function(){return{name:"radio"}},props:{value:{}},watch:{},created:function(){},mounted:function(){},methods:{}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b()},[t("el-radio-group",{attrs:{size:e.size,disabled:e.disabled},nativeOn:{click:function(t){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}},e._l(e.dic,(function(n,r){return t(e.componentName,{key:r,tag:"component",attrs:{label:n[e.valueKey],border:e.border,readonly:e.readonly,disabled:n[e.disabledKey]}},[e._v(e._s(n[e.labelKey]))])})),1)],1)}),[],!1,null,null,null).exports,ot=c(s({name:"select",mixins:[He(),Ue()],data:function(){return{checked:!1,indeterminate:!1,created:!1,netDic:[],loading:!1}},props:{loadingText:{type:String},noMatchText:{type:String},noDataText:{type:String},drag:{type:Boolean,default:!1},remote:{type:Boolean,default:!1},tags:{type:Boolean,default:!1},limit:{type:Number,default:0},filterable:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1},defaultFirstOption:{type:Boolean,default:!1},all:{type:Boolean,default:!1},popperAppendToBody:{type:Boolean,default:!0}},computed:{classNameKey:function(){return this.props.className||"className"}},watch:{text:function(e){this.validatenull(e)||this.remote&&!this.created&&(this.created=!0,this.handleRemoteMethod(this.multiple?this.text.join(a.h):this.text)),this.multiple&&(0==this.text.length?(this.checked=!1,this.indeterminate=!1):this.text.length==this.netDic.length?(this.checked=!0,this.indeterminate=!1):(this.checked=!1,this.indeterminate=!0))},dic:{handler:function(e){this.netDic=e},immediate:!0}},mounted:function(){this.drag&&this.setSort()},methods:{setSort:function(){var e=this;if(window.Sortable){var t=this.$refs.main.$el.querySelectorAll(".el-select__tags > span")[0];window.Sortable.create(t,{animation:100,onEnd:function(t){var n=e.value.splice(t.oldIndex,1)[0];e.value.splice(t.newIndex,0,n)}})}else C.logs("Sortable")},handleRemoteMethod:function(e){var t=this;this.loading=!0,L({column:this.column,value:e}).then((function(e){t.loading=!1,t.netDic=e}))},checkChange:function(e){var t=this;this.text=[],this.checked=e,this.indeterminate=!1,e&&(this.text=this.netDic.map((function(e){return e[t.valueKey]})))}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("el-select",{ref:"main",class:e.b(),attrs:{size:e.size,loading:e.loading,"loading-text":e.loadingText,multiple:e.multiple,filterable:!!e.remote||e.filterable,remote:e.remote,readonly:e.readonly,"no-match-text":e.noMatchText,"no-data-text":e.noDataText,"remote-method":e.remote?e.handleRemoteMethod:void 0,"popper-class":e.popperClass,"popper-append-to-body":e.popperAppendToBody,"collapse-tags":e.tags,clearable:e.clearableVal,placeholder:e.placeholder,"multiple-limit":e.limit,"allow-create":e.allowCreate,"default-first-option":e.defaultFirstOption,disabled:e.disabled},on:{focus:e.handleFocus,blur:e.handleBlur},nativeOn:{click:function(t){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}},[e.group?e._l(e.netDic,(function(n,r){return t("el-option-group",{key:r,attrs:{label:e.getLabelText(n)}},e._l(n[e.groupsKey],(function(n,r){return t("el-option",{key:r,class:n[e.classNameKey],attrs:{disabled:n[e.disabledKey],label:e.getLabelText(n),value:n[e.valueKey]}},[e.$scopedSlots.default?e._t("default",null,{label:e.labelKey,value:e.valueKey,item:n}):[t("span",[e._v(e._s(e.getLabelText(n)))]),e._v(" "),n[e.descKey]?t("span",{class:e.b("desc")},[e._v(e._s(n[e.descKey]))]):e._e()]],2)})),1)})):[e.all&&e.multiple?t("el-checkbox",{class:e.b("check"),attrs:{value:e.checked,checked:e.checked,disabled:e.disabled,indeterminate:e.indeterminate},on:{change:e.checkChange}},[e._v("全选")]):e._e(),e._v(" "),e._l(e.netDic,(function(n,r){return t("el-option",{key:r,class:n[e.classNameKey],attrs:{disabled:n[e.disabledKey],label:e.getLabelText(n),value:n[e.valueKey]}},[e.$scopedSlots.default?e._t("default",null,{label:e.labelKey,value:e.valueKey,item:n}):[t("span",[e._v(e._s(e.getLabelText(n)))]),e._v(" "),n[e.descKey]?t("span",{class:e.b("desc")},[e._v(e._s(n[e.descKey]))]):e._e()]],2)}))]],2)}),[],!1,null,null,null).exports,at=c(s({name:"cascader",mixins:[He(),Ue()],props:{checkStrictly:{type:Boolean,default:!1},emitPath:{type:Boolean,default:!0},tags:{type:Boolean,default:!1},expandTrigger:{type:String,default:"hover"},showAllLevels:{type:Boolean,default:!0},lazy:{type:Boolean,default:!1},lazyLoad:Function,filterable:{type:Boolean,default:!1},separator:{type:String}},data:function(){return{}},computed:{allProps:function(){var e=this;return{label:this.labelKey,value:this.valueKey,children:this.childrenKey,checkStrictly:this.checkStrictly,multiple:this.multiple,emitPath:this.emitPath,lazy:this.lazy,lazyLoad:function(t,n){e.lazyLoad&&e.lazyLoad(t,(function(r){!function t(n,r,i){n.forEach((function(n){n[e.valueKey]==r?n[e.childrenKey]=i:n[e.childrenKey]&&t(n[e.childrenKey])}))}(e.dic,t[e.valueKey],r),n(r)}))},expandTrigger:this.expandTrigger}}},created:function(){},mounted:function(){},methods:{}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("el-cascader",{attrs:{options:e.dic,placeholder:e.placeholder,props:e.allProps,size:e.size,clearable:e.clearableVal,"show-all-levels":e.showAllLevels,filterable:e.filterable,"popper-class":e.popperClass,separator:e.separator,disabled:e.disabled,"collapse-tags":e.tags},on:{focus:e.handleFocus,blur:e.handleBlur},nativeOn:{click:function(t){return e.handleClick.apply(null,arguments)}},scopedSlots:e._u([{key:"default",fn:function({data:n,node:r}){return[e.$scopedSlots.default?e._t("default",null,{data:n,node:r}):t("span",[e._v(e._s(n[e.labelKey]))])]}}],null,!0),model:{value:e.text,callback:function(t){e.text=t},expression:"text"}})}),[],!1,null,null,null).exports,st=c(s({name:"input-color",mixins:[He(),Ue()],props:{prefixIcon:{type:String},suffixIcon:{type:String},colorFormat:String,predefine:{type:Array,default:function(){return["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsv(51, 100, 98)","hsva(120, 40, 94, 0.5)","hsl(181, 100%, 37%)","hsla(209, 100%, 56%, 0.73)"]}},showAlpha:{type:Boolean,default:!0}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b()},[t("el-input",{ref:"main",attrs:{"prefix-icon":e.prefixIcon,"suffix-icon":e.suffixIcon,placeholder:e.placeholder,size:e.size,readonly:e.readonly,clearable:e.clearableVal,disabled:e.disabled},nativeOn:{click:function(t){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}},[t("template",{slot:"append"},[t("el-color-picker",{attrs:{size:"mini","popper-class":e.popperClass,"color-format":e.colorFormat,disabled:e.disabled,"show-alpha":e.showAlpha,predefine:e.predefine},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}})],1)],2)],1)}),[],!1,null,null,null).exports,ct=c(s({name:"input-number",mixins:[He(),Ue()],data:function(){return{}},props:{stepStrictly:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},step:{type:Number,default:1},controlsPosition:{type:String,default:"right"},precision:{type:Number},min:{type:Number,default:-1/0},max:{type:Number,default:1/0}},created:function(){},mounted:function(){},methods:{}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("el-input-number",{class:e.b(),attrs:{precision:e.precision,placeholder:e.placeholder,"step-strictly":e.stepStrictly,size:e.size,min:e.min,max:e.max,step:e.step,clearable:e.clearableVal,readonly:e.readonly,"controls-position":e.controlsPosition,controls:e.controls,label:e.placeholder,disabled:e.disabled},on:{focus:e.handleFocus,blur:e.handleBlur},nativeOn:{click:function(t){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(t){e.text=e._n(t)},expression:"text"}})}),[],!1,null,null,null).exports,lt=c(s({name:"input-tree",mixins:[He(),Ue()],data:function(){return{node:[],filterValue:"",box:!1,dicList:[]}},props:{indent:Number,filterNodeMethod:Function,nodeClick:Function,treeLoad:Function,checked:Function,lazy:{type:Boolean,default:!1},leafOnly:{type:Boolean,default:!0},tags:{type:Boolean,default:!1},limit:{type:Number,default:0},filter:{type:Boolean,default:!0},filterText:{type:String,default:""},checkStrictly:{type:Boolean,default:!1},accordion:{type:Boolean,default:!1},parent:{type:Boolean,default:!0},iconClass:String,defaultExpandedKeys:Array,checkOnClickNode:Boolean,expandOnClickNode:Boolean,defaultExpandAll:Boolean,popperAppendToBody:{type:Boolean,default:!0}},watch:{text:function(e){this.init()},dic:{handler:function(e){this.dicList=e},immediate:!0},dicList:{handler:function(){this.init()},immediate:!0},filterValue:function(e){this.$refs.tree.filter(e)}},computed:{treeProps:function(){return Object.assign(this.props,{isLeaf:this.leafKey})},currentNodeKey:function(){return this.multiple?"":this.text},keysList:function(){return this.multiple?this.text:[this.text||""]},labelShow:function(){var e=this,t=[];return this.keysList.forEach((function(n){var r=e.node.find((function(t){return t[e.valueKey]==n}));r||((r={})[e.labelKey]=n,r[e.valueKey]=n),t.push(e.getLabelText(r))})),t}},methods:{removeTag:function(e){var t=this,n=this.node.findIndex((function(n){return n[t.labelKey]==e}));-1!=n&&(this.$refs.tree.setChecked(this.node[n][this.valueKey]),this.text.splice(n,1))},handleClear:function(){this.text=this.multiple?[]:"",this.node=[],this.filterValue="",this.$refs.tree.setCurrentKey(null),this.$refs.tree.setCheckedKeys([])},handleTreeLoad:function(e,t){var n=this;this.treeLoad&&this.treeLoad(e,(function(r){!function e(t,r,i){t.forEach((function(t){t[n.valueKey]==r?t[n.childrenKey]=i:t[n.childrenKey]&&e(t[n.childrenKey])}))}(n.dicList,e.key,r),t(r)}))},filterNode:function(e,t){return"function"==typeof this.filterNodeMethod?this.filterNodeMethod(e,t):!e||-1!==t[this.labelKey].toLowerCase().indexOf(e.toLowerCase())},checkChange:function(e,t,n,r){var i=this;this.text.splice(0,this.text.length);var o=!this.checkStrictly&&this.leafOnly;this.$refs.tree.getCheckedNodes(o,!1).forEach((function(e){return i.text.push(e[i.valueKey])})),"function"==typeof this.checked&&this.checked(e,t,n,r)},getHalfList:function(){var e=this,t=this.$refs.tree.getCheckedNodes(!1,!0);return t.map((function(t){return t[e.valueKey]}))},init:function(){var e=this;this.$nextTick((function(){if(e.node=[],e.multiple)if(e.validatenull(e.text))e.$refs.tree.setCheckedKeys([]);else{var t=!e.checkStrictly&&e.leafOnly;e.$refs.tree.getCheckedNodes(t,!1).forEach((function(t){e.node.push(t)}))}else{var n=e.$refs.tree.getNode(e.text);if(n){var r=n.data;e.$refs.tree.setCurrentKey(r[e.valueKey]),e.node.push(r)}}})),this.disabledParentNode(this.dic,this.parent)},disabledParentNode:function(e,t){var n=this;e.forEach((function(e){var r=e[n.childrenKey];n.validatenull(r)||(t||(e.disabled=!0),n.disabledParentNode(r,t))}))},handleNodeClick:function(e,t,n){e.disabled||("function"==typeof this.nodeClick&&this.nodeClick(e,t,n),this.multiple||(this.validatenull(e[this.childrenKey])&&!this.multiple||this.parent)&&(this.text=e[this.valueKey],this.$refs.main.blur()))}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("el-select",{ref:"main",class:e.b(),attrs:{size:e.size,multiple:e.multiple,"multiple-limit":e.limit,"collapse-tags":e.tags,value:e.labelShow,clearable:e.clearableVal,placeholder:e.placeholder,"popper-class":e.popperClass,"popper-append-to-body":e.popperAppendToBody,disabled:e.disabled},on:{click:e.handleClick,"remove-tag":e.removeTag,focus:e.handleFocus,blur:e.handleBlur,clear:e.handleClear}},[e.filter?t("div",{class:e.b("filter")},[t("el-input",{attrs:{size:"mini",placeholder:e.filterText},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}})],1):e._e(),e._v(" "),t("el-option",{attrs:{value:e.text}},[t("el-tree",{ref:"tree",class:e.b("select"),attrs:{data:e.dicList,lazy:e.lazy,load:e.handleTreeLoad,"node-key":e.valueKey,accordion:e.accordion,"icon-class":e.iconClass,indent:e.indent,"show-checkbox":e.multiple,props:e.treeProps,"check-strictly":e.checkStrictly,"highlight-current":1!=e.multiple,"current-node-key":e.currentNodeKey,"filter-node-method":e.filterNode,"default-checked-keys":e.keysList,"default-expanded-keys":e.defaultExpandedKeys?e.defaultExpandedKeys:e.keysList,"default-expand-all":e.defaultExpandAll,"check-on-click-node":e.checkOnClickNode,"expand-on-click-node":e.expandOnClickNode},on:{check:e.checkChange,"node-click":function(t){return t.target!==t.currentTarget?null:e.handleNodeClick.apply(null,arguments)}},scopedSlots:e._u([{key:"default",fn:function({data:n}){return t("div",{class:e.b("item")},[e.$scopedSlots.default?e._t("default",null,{label:e.labelKey,value:e.valueKey,item:n}):[t("span",{class:{"avue--disabled":n[e.disabledKey]}},[e._v(e._s(n[e.labelKey]))]),e._v(" "),n[e.descKey]?t("span",{class:e.b("desc")},[e._v(e._s(n[e.descKey]))]):e._e()]],2)}}],null,!0)})],1)],1)}),[],!1,null,null,null).exports,ut=c(s({name:"input-map",mixins:[He(),Ue(),J],props:{prefixIcon:{type:String},suffixIcon:{type:String},dialogWidth:{type:String,default:"80%"},rows:Number,minRows:{type:Number,default:1},maxRows:{type:Number}},data:function(){return{formattedAddress:"",address:"",poi:{},marker:null,map:null,box:!1}},watch:{poi:function(e){this.formattedAddress=e.formattedAddress},value:function(e){this.validatenull(e)&&(this.poi={},this.address="")},text:function(e){this.validatenull(e)||(this.poi={longitude:e[0],latitude:e[1],formattedAddress:e[2]},this.address=e[2])},box:{handler:function(){var e=this;this.box&&this.$nextTick((function(){return e.init((function(){e.longitude&&e.latitude&&(e.addMarker(e.longitude,e.latitude),e.getAddress(e.longitude,e.latitude))}))}))},immediate:!0}},computed:{longitude:function(){return this.text[0]},latitude:function(){return this.text[1]},title:function(){return this.disabled||this.readonly?"查看":"选择"}},methods:{clear:function(){this.poi={},this.clearMarker()},handleSubmit:function(){this.setVal(),this.box=!1},handleClear:function(){this.text=[],this.poi={},this.handleChange(this.text)},setVal:function(){this.text=[this.poi.longitude,this.poi.latitude,this.poi.formattedAddress],this.handleChange(this.text)},handleShow:function(){this.$refs.main.blur(),this.box=!0},addMarker:function(e,t){this.clearMarker(),this.marker=new window.AMap.Marker({position:[e,t]}),this.marker.setMap(this.map)},clearMarker:function(){this.marker&&(this.marker.setMap(null),this.marker=null)},getAddress:function(e,t){var n=this;new window.AMap.service("AMap.Geocoder",(function(){new window.AMap.Geocoder({}).getAddress([e,t],(function(r,i){if("complete"===r&&"OK"===i.info){var o=i.regeocode;n.poi=Object.assign(o,{longitude:e,latitude:t});var a=document.createElement("div"),s=document.createElement("img");s.src="//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",a.appendChild(s);var c=document.createElement("span");c.className="avue-input-map__marker",c.innerHTML=n.poi.formattedAddress,a.appendChild(c),n.marker.setContent(a)}}))}))},handleClose:function(){window.poiPicker.clearSearchResults()},addClick:function(){var e=this;this.map.on("click",(function(t){if(!e.disabled&&!e.readonly){var n=t.lnglat,r=n.lat,i=n.lng;e.addMarker(i,r),e.getAddress(i,r)}}))},init:function(e){var t=this;window.AMap?(this.map=new window.AMap.Map("map__container",Object.assign({zoom:13,center:function(){if(t.longitude&&t.latitude)return[t.longitude,t.latitude]}()},this.params)),this.initPoip(),this.addClick(),e()):C.logs("Map")},initPoip:function(){var e=this;window.AMapUI?window.AMapUI.loadUI(["misc/PoiPicker"],(function(t){var n=new t({input:"map__input",placeSearchOptions:{map:e.map,pageSize:10},searchResultsContainer:"map__result"});e.poiPickerReady(n)})):C.logs("MapUi")},poiPickerReady:function(e){var t=this;window.poiPicker=e,e.on("poiPicked",(function(n){t.clearMarker();var r=n.source,i=n.item;t.poi=Object.assign(i,{formattedAddress:i.name,longitude:i.location.lng,latitude:i.location.lat}),"search"!==r&&e.searchByKeyword(i.name)}))}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b()},[t("el-input",{ref:"main",attrs:{"prefix-icon":e.prefixIcon,"suffix-icon":e.suffixIcon,size:e.size,clearable:e.clearableVal,rows:e.rows,autosize:{minRows:e.minRows,maxRows:e.maxRows},disabled:e.disabled,type:"textarea",placeholder:e.placeholder},on:{clear:e.handleClear,focus:e.handleShow},nativeOn:{click:function(t){return e.handleClick.apply(null,arguments)}},model:{value:e.address,callback:function(t){e.address=t},expression:"address"}}),e._v(" "),e.box?t("div",[t("el-dialog",{staticClass:"avue-dialog avue-dialog--none",attrs:{width:e.setPx(e.dialogWidth),"modal-append-to-body":e.$AVUE.modalAppendToBody,"append-to-body":e.$AVUE.appendToBody,title:e.placeholder,visible:e.box},on:{close:e.handleClose,"update:visible":function(t){e.box=t}}},[e.box?t("div",{class:e.b("content")},[t("el-input",{class:e.b("content-input"),attrs:{id:"map__input",size:e.size,readonly:e.disabled,clearable:"",placeholder:"输入关键字选取地点"},on:{clear:e.clear},model:{value:e.formattedAddress,callback:function(t){e.formattedAddress=t},expression:"formattedAddress"}}),e._v(" "),t("div",{class:e.b("content-box")},[t("div",{class:e.b("content-container"),attrs:{id:"map__container",tabindex:"0"}}),e._v(" "),t("div",{class:e.b("content-result"),attrs:{id:"map__result"}})])],1):e._e(),e._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.disabled||e.readonly?e._e():t("el-button",{attrs:{type:"primary",size:e.size,icon:"el-icon-check"},on:{click:e.handleSubmit}},[e._v(e._s(e.t("common.submitBtn")))])],1)])],1):e._e()],1)}),[],!1,null,null,null).exports,dt=c(s({name:"input-icon",components:{iconTemp:ue},mixins:[He(),Ue(),J],props:{prefixIcon:{type:String},suffixIcon:{type:String},dialogWidth:{type:String,default:"80%"},iconList:{type:Array,default:function(){return[]}}},data:function(){return{filterText:"",box:!1,tabs:{}}},computed:{list:function(){var e=this,t=this.tabs.list.map((function(e){return e.value||e.label?e:{label:e,value:e}}));return this.filterText&&(t=t.filter((function(t){return-1!==t.label.indexOf(e.filterText)}))),t},option:function(){return{column:this.iconList}}},created:function(){this.tabs=this.iconList[0]},methods:{handleTabs:function(e){this.tabs=e},handleSubmit:function(e){this.box=!1,this.text=e,this.handleChange(e)},handleShow:function(){this.$refs.main.blur(),this.disabled||this.readonly||(this.tabs=this.iconList[0],this.box=!0)}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b()},[t("el-input",{ref:"main",attrs:{"prefix-icon":e.prefixIcon,"suffix-icon":e.suffixIcon,placeholder:e.placeholder,size:e.size,clearable:e.clearableVal,disabled:e.disabled},on:{focus:e.handleShow},nativeOn:{click:function(t){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}},[t("icon-temp",{attrs:{slot:"append",text:e.text,size:28,small:"mini"==e.size},on:{click:e.handleShow},slot:"append"})],1),e._v(" "),e.box?t("div",[t("el-dialog",{staticClass:"avue-dialog avue-dialog--none",attrs:{title:e.placeholder,"modal-append-to-body":e.$AVUE.modalAppendToBody,"append-to-body":e.$AVUE.appendToBody,visible:e.box,width:e.setPx(e.dialogWidth)},on:{"update:visible":function(t){e.box=t}}},[t("div",{class:e.b("filter")},[t("el-input",{attrs:{placeholder:e.vaildData(e.option.filterText,e.t("tip.input")),size:e.size},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}})],1),e._v(" "),t("avue-tabs",{attrs:{option:e.option},on:{change:e.handleTabs}}),e._v(" "),t("div",{class:e.b("list")},e._l(e.list,(function(n,r){return t("div",{key:r,class:e.b("item",{active:e.text===n}),on:{click:function(t){return e.handleSubmit(n.value)}}},[t("icon-temp",{attrs:{text:n.value,small:"mini"==e.size}}),e._v(" "),t("p",[e._v(e._s(n.label||n.value))])],1)})),0)],1)],1):e._e()],1)}),[],!1,null,null,null).exports,ft=c(s({name:"input-table",mixins:[He(),Ue(),J],data:function(){return{object:[],active:[],search:{},page:{},loading:!1,box:!1,created:!1,data:[]}},props:{prefixIcon:{type:String},suffixIcon:{type:String},formatter:Function,onLoad:Function,children:{type:Object,default:function(){return{}}},dialogWidth:{type:String,default:"80%"}},watch:{value:function(e){this.validatenull(e)&&(this.active=[],this.object=[])},text:function(e){var t=this;this.created||this.validatenull(e)||"function"==typeof this.onLoad&&this.onLoad({value:this.text},(function(e){var n=Array.isArray(e)?e:[e];t.active=n,t.object=n,t.created=!0}))}},computed:{isMultiple:function(){return this.multiple},title:function(){return this.disabled||this.readonly?"查看":"选择"},labelShow:function(){var e=this;return"function"==typeof this.formatter?this.formatter(this.isMultiple?this.object:this.object[0]||{}):this.object.map((function(t){return t[e.labelKey]})).join(",")},option:function(){return Object.assign({menu:!1,header:!1,size:this.size,headerAlign:"center",align:"center",highlightCurrentRow:!this.isMultiple,reserveSelection:this.isMultiple,selection:this.isMultiple,selectable:function(e,t){return!e.disabled}},this.children)}},methods:{handleSelectionChange:function(e){this.active=e},handleClear:function(){this.active=[],this.setVal()},handleShow:function(){this.$refs.main.blur(),this.disabled||this.readonly||(this.search={},this.page={currentPage:1,total:0},this.data=[],this.box=!0)},setVal:function(){var e=this;this.object=this.active,this.text=this.active.map((function(t){return t[e.valueKey]})),this.box=!1},handleRowClassName:function(e){var t=e.row;if(e.rowIndex,t[this.disabledKey])return"disabled"},handleCurrentRowChange:function(e){this.isMultiple?this.$refs.crud.setCurrentRow(null):e[this.disabledKey]?this.$refs.crud.setCurrentRow(this.active[0]):this.active=[e]},handleSearchChange:function(e,t){this.page.page=1,this.onList(),t&&t()},onList:function(){var e=this;this.loading=!0,"function"==typeof this.onLoad&&this.onLoad({page:this.page,data:this.search},(function(t){if(e.page.total=t.total,e.data=t.data,e.loading=!1,e.isMultiple){var n=e.object.map((function(t){return t[e.valueKey]})),r=e.data.filter((function(t){return n.includes(t[e.valueKey])}));e.$nextTick((function(){e.$refs.crud.toggleSelection(r)}))}else{var i=e.data.find((function(t){return t[e.valueKey]==e.text}));setTimeout((function(){return e.$refs.crud.setCurrentRow(i)}))}}))}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b()},[t("el-input",{ref:"main",attrs:{"prefix-icon":e.prefixIcon,"suffix-icon":e.suffixIcon,size:e.size,value:e.labelShow,clearable:e.clearableVal,placeholder:e.placeholder,disabled:e.disabled},on:{clear:e.handleClear,focus:e.handleShow},nativeOn:{click:function(t){return e.handleClick.apply(null,arguments)}}}),e._v(" "),e.box?t("div",[t("el-dialog",{staticClass:"avue-dialog avue-dialog--none",class:e.b(),attrs:{width:e.setPx(e.dialogWidth),"modal-append-to-body":e.$AVUE.modalAppendToBody,"append-to-body":e.$AVUE.appendToBody,title:e.placeholder,visible:e.box},on:{"update:visible":function(t){e.box=t}}},[e.box?t("avue-crud",{ref:"crud",class:e.b("crud"),attrs:{option:e.option,data:e.data,"table-loading":e.loading,rowClassName:e.handleRowClassName,search:e.search,page:e.page},on:{"on-load":e.onList,"search-change":e.handleSearchChange,"selection-change":e.handleSelectionChange,"search-reset":e.handleSearchChange,"current-row-change":e.handleCurrentRowChange,"update:search":function(t){e.search=t},"update:page":function(t){e.page=t}}}):e._e(),e._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{type:"primary",size:e.size,icon:"el-icon-check"},on:{click:e.setVal}},[e._v(e._s(e.t("common.submitBtn")))])],1)],1)],1):e._e()],1)}),[],!1,null,null,null).exports,pt=c(s({name:"verify",props:{size:{type:[Number,String],default:50},value:[Number,String],len:{type:[Number,String],default:6}},computed:{data:{get:function(){return this.value||""},set:function(e){var t=e+"";this.$emit("input",t),this.$emit("change",t)}},styleName:function(){return{padding:"".concat(this.setPx(this.size/7)," ").concat(this.setPx(this.size/4)),fontSize:this.setPx(this.size)}},list:function(){return this.data.split("")}},created:function(){this.randomn()},methods:{randomn:function(){var e=this.len;if(e>21)return null;var t=new RegExp("(\\d{"+e+"})(\\.|$)"),n=(Array(e-1).join(0)+Math.pow(10,e)*Math.random()).match(t)[1];this.data=n}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b()},e._l(e.list,(function(n,r){return t("span",{key:r,class:e.b("item"),style:e.styleName},[e._v("\n "+e._s(n)+"\n ")])})),0)}),[],!1,null,null,null).exports,ht=c(s({name:"switch",mixins:[He(),Ue()],props:{value:{},activeIconClass:String,inactiveIconClass:String,activeColor:String,inactiveColor:String,len:Number},data:function(){return{}},watch:{},created:function(){},mounted:function(){},computed:{active:function(){return this.dic[1]||{}},inactive:function(){return this.dic[0]||{}}},methods:{}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("el-switch",{attrs:{"active-text":e.active[e.labelKey],"active-value":e.active[e.valueKey],"inactive-value":e.inactive[e.valueKey],"inactive-text":e.inactive[e.labelKey],"active-icon-class":e.activeIconClass,"inactive-icon-class":e.inactiveIconClass,"active-color":e.activeColor,"inactive-color":e.inactiveColor,width:e.len,disabled:e.disabled,readonly:e.readonly,size:e.size},nativeOn:{click:function(t){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}})}),[],!1,null,null,null).exports,mt=c(s({name:"rate",mixins:[He(),Ue()],props:{allowHalf:Boolean,lowThreshold:Number,highThreshold:Number,disabledVoidColor:String,disabledVoidIconClass:String,value:{type:Number,default:0},colors:{type:Array},max:{type:Number,default:5},iconClasses:{type:Array},texts:{type:Array},scoreTemplate:String,showScore:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},voidIconClass:{type:String}},data:function(){return{}},watch:{},created:function(){},mounted:function(){},methods:{}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("el-rate",{attrs:{max:e.max,"low-threshold":e.lowThreshold,"high-threshold":e.highThreshold,"disabled-void-color":e.disabledVoidColor,"disabled-void-icon-class":e.disabledVoidIconClass,"allow-half":e.allowHalf,readonly:e.readonly,texts:e.texts,"show-score":e.showScore,"score-template":e.scoreTemplate,"show-text":e.showText,"icon-classes":e.iconClasses,"void-icon-class":e.voidIconClass,disabled:e.disabled,colors:e.colors},nativeOn:{click:function(t){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}})}),[],!1,null,null,null).exports;function gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var bt,_t,yt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};gt(this,e),this.CONTAINERID=Object(S.u)(),this.drawCanvas=this.drawCanvas.bind(this),this.parentObserver=this.parentObserver.bind(this),this.Repaint=this.Repaint.bind(this),this.isOberserve=!1,this.init(t),this.drawCanvas(),this.parentObserver()}var t,n,r;return t=e,(n=[{key:"init",value:function(e){this.option=Object.assign({width:400,height:200,text:"avueJS",fontSize:"30px",fontStyle:"黑体",textAlign:"center",color:"rgba(100,100,100,0.15)",degree:-20},e)}},{key:"drawCanvas",value:function(){this.isOberserve=!0;var e=document.createElement("div"),t=document.createElement("canvas"),n=t.getContext("2d");e.id=this.CONTAINERID,t.width=this.option.width,t.height=this.option.height,n.font="".concat(this.option.fontSize," ").concat(this.option.fontStyle),n.textAlign=this.option.textAlign,n.fillStyle=this.option.color,n.translate(t.width/2,t.height/2),n.rotate(this.option.degree*Math.PI/180),n.fillText(this.option.text,0,0);var r,i=t.toDataURL("image/png"),o=this.option.id;o&&(r=document.getElementById(o)),this.styleStr="\n position:".concat(o?"absolute":"fixed",";\n top:0;\n left:0;\n width:").concat(o?r.offsetWidth+"px":"100%",";\n height:").concat(o?r.offsetHeight+"px":"100%",";\n z-index:9999;\n pointer-events:none;\n background-repeat:repeat;\n background-image:url('").concat(i,"')"),e.setAttribute("style",this.styleStr),o?document.getElementById(o).appendChild(e):document.body.appendChild(e),this.wmObserver(e),this.isOberserve=!1}},{key:"wmObserver",value:function(e){var t=this,n=new MutationObserver((function(e){if(!t.isOberserve){var r=e[0].target;r.setAttribute("style",t.styleStr),r.setAttribute("id",t.CONTAINERID),n.takeRecords()}}));n.observe(e,{attributes:!0,childList:!0,characterData:!0})}},{key:"parentObserver",value:function(){var e=this;new MutationObserver((function(){if(!e.isOberserve){var t=document.querySelector("#".concat(e.CONTAINERID));t?t.getAttribute("style")!==e.styleStr&&t.setAttribute("style",e.styleStr):e.drawCanvas()}})).observe(document.querySelector("#".concat(this.CONTAINERID)).parentNode,{childList:!0})}},{key:"Repaint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.remove(),this.init(e),this.drawCanvas()}},{key:"remove",value:function(){this.isOberserve=!0;var e=document.querySelector("#".concat(this.CONTAINERID));e.parentNode.removeChild(e)}}])&&vt(t.prototype,n),r&&vt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),wt=200,xt=200,kt={text:"avueJS",fontFamily:"microsoft yahei",color:"#999",fontSize:16,opacity:100,bottom:10,right:10,ratio:1};function Ct(e,t){var n=new FileReader;n.readAsDataURL(e),n.onload=function(e){t(e.target.result)}}var At=function(e,t,n){var r=function(e){var t,n,r,i,o,a;for(r=e.length,n=0,t="";n<r;){if(i=255&e.charCodeAt(n++),n==r){t+=St.charAt(i>>2),t+=St.charAt((3&i)<<4),t+="==";break}if(o=e.charCodeAt(n++),n==r){t+=St.charAt(i>>2),t+=St.charAt((3&i)<<4|(240&o)>>4),t+=St.charAt((15&o)<<2),t+="=";break}a=e.charCodeAt(n++),t+=St.charAt(i>>2),t+=St.charAt((3&i)<<4|(240&o)>>4),t+=St.charAt((15&o)<<2|(192&a)>>6),t+=St.charAt(63&a)}return t}(function(e){var t,n,r,i;for(t="",r=e.length,n=0;n<r;n++)(i=e.charCodeAt(n))>=1&&i<=127?t+=e.charAt(n):i>2047?(t+=String.fromCharCode(224|i>>12&15),t+=String.fromCharCode(128|i>>6&63),t+=String.fromCharCode(128|i>>0&63)):(t+=String.fromCharCode(192|i>>6&31),t+=String.fromCharCode(128|i>>0&63));return t}(JSON.stringify(n))),i=CryptoJS.HmacSHA1(r,t).toString(CryptoJS.enc.Base64);return e+":"+Et(i)+":"+r},St="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);var Et=function(e){return(e=e.replace(/\+/g,"-")).replace(/\//g,"_")};function Tt(e){return(Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.match(/(^http:\/\/|^https:\/\/|^\/\/|data:image\/)/)?t:e+t}var Rt=c(s({name:"upload",mixins:[He(),Ue(),J],data:function(){return{res:"",loading:!1,menu:!1,reload:Math.random()}},props:{qiniu:Object,ali:Object,data:{type:Object,default:function(){return{}}},showFileList:{type:Boolean,default:!0},fileText:String,fileType:{type:String},oss:{type:String},limit:{type:Number},headers:{type:Object,default:function(){return{}}},accept:{type:[String,Array],default:""},canvasOption:{type:Object,default:function(){return{}}},cropperOption:{type:Object,default:function(){return{}}},fileSize:{type:Number},dragFile:{type:Boolean,default:!1},drag:{type:Boolean,default:!1},loadText:{type:String,default:"Loading..."},action:{type:String,default:""},uploadBefore:Function,uploadAfter:Function,uploadDelete:Function,uploadPreview:Function,uploadError:Function,uploadExceed:Function,httpRequest:Function},computed:{isObject:function(){return"object"===Tt(this.text[0])||"object"==this.dataType},acceptList:function(){return Array.isArray(this.accept)?this.accept.join(","):this.accept},homeUrl:function(){return this.propsHttp.home||""},fileName:function(){return this.propsHttp.fileName||"file"},isCosOss:function(){return"cos"===this.oss},isAliOss:function(){return"ali"===this.oss},isQiniuOss:function(){return"qiniu"===this.oss},isPictureImg:function(){return"picture-img"===this.listType},imgUrl:function(){if(!this.validatenull(this.text))return Ot(this.homeUrl,this.text[0])},fileList:function(){var e=this,t=[];return(this.text||[]).forEach((function(n,r){if(n){var i=e.isObject?n[e.labelKey]:n.substring(n.lastIndexOf("/")+1),o=e.isObject?n[e.valueKey]:n;o=Ot(e.homeUrl,o),t.push({uid:r+"",status:"done",type:e.isMediaType(o),name:i,url:o})}})),t}},mounted:function(){this.drag&&this.setSort()},methods:{isMediaType:function(e){return Object(S.s)(e,this.fileType)},setSort:function(){var e=this;if(window.Sortable){var t=this.$el.querySelectorAll(".avue-upload > ul")[0];window.Sortable.create(t,{animation:100,onEnd:function(t){var n=e.text.splice(t.oldIndex,1)[0];e.text.splice(t.newIndex,0,n),e.reload=Math.random(),e.$nextTick((function(){return e.setSort()}))}})}else C.logs("Sortable")},handleSuccess:function(e){if(this.isPictureImg)this.text.splice(0,1,e[this.urlKey]);else if(this.isObject){var t={};t[this.labelKey]=e[this.nameKey],t[this.valueKey]=e[this.urlKey],this.text.push(t)}else this.text.push(e[this.urlKey])},handleRemove:function(e,t){var n=this;this.beforeRemove(e).then((function(){n.delete(e)}))},handleError:function(e){this.uploadError&&this.uploadError(e,this.column)},delete:function(e){var t=this;(this.text||[]).forEach((function(n,r){var i=t.isObject?n[t.valueKey]:n;Ot(t.homeUrl,i)===e.url&&t.text.splice(r,1)}))},show:function(e){this.loading=!1,this.res=e||this.res,this.handleSuccess(this.res)},hide:function(e){this.loading=!1,e&&this.handleError(e)},handleFileChange:function(e,t){t.splice(t.length-1,1)},httpUpload:function(e){var t=this;if("function"!=typeof this.httpRequest){this.loading=!0;var n=e.file,r=n.size/1024;if(!this.validatenull(r)&&r>this.fileSize)this.hide("文件太大不符合");else{var i,o=Object.assign(this.headers,{"Content-Type":"multipart/form-data"}),a={},s={},c=new FormData,l=function(){var e=function(e){var r=t.action;for(var l in t.data)c.append(l,t.data[l]);var u=e||n;if(c.append(t.fileName,u),t.isCosOss){if(!window.COS)return C.logs("COS"),void t.hide();a=t.cos||t.$AVUE.cos,i=new COS({SecretId:a.SecretId,SecretKey:a.SecretKey})}else if(t.isQiniuOss){if(!window.CryptoJS)return C.logs("CryptoJS"),void t.hide();a=t.qiniu||t.$AVUE.qiniu;var d=At(a.AK,a.SK,{scope:a.scope,deadline:(new Date).getTime()+3600*a.deadline});c.append("token",d),r=a.bucket}else if(t.isAliOss){if(!window.OSS)return C.logs("AliOSS"),void t.hide();a=t.ali||t.$AVUE.ali,s=new OSS(a)}(t.isCosOss?new Promise((function(e,t){i.uploadFile({Bucket:"avue-1253807724",Region:"ap-beijing",Key:u.name,Body:u},(function(t,n){e({data:{name:n.ETag,url:location.protocol+"//"+n.Location}})}))})):t.isAliOss?s.put(u.name,u,{headers:t.headers}):t.$axios.post(r,c,{headers:o})).then((function(e){if(t.res={},t.isQiniuOss){var n=e.data.key;e.data.url=a.url+n,e.data.name=n}t.res=Object(S.m)(t.isAliOss?e:e.data,t.resKey),"function"==typeof t.uploadAfter?t.uploadAfter(t.res,t.show,t.hide,t.column):t.show()})).catch((function(e){t.hide(e)}))};"function"==typeof t.uploadBefore?t.uploadBefore(n,e,t.hide,t.column):e()};if("img"==Object(S.s)(n.name)){var u=function(){t.validatenull(t.canvasOption)?l():function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.text,i=t.fontFamily,o=t.color,a=t.fontSize,s=t.opacity,c=t.bottom,l=t.right,u=t.ratio;function d(){kt.text=r||kt.text,kt.fontFamily=i||kt.fontFamily,kt.color=o||kt.color,kt.fontSize=a||kt.fontSize,kt.opacity=s||kt.opacity,kt.bottom=c||kt.bottom,kt.right=l||kt.right,kt.ratio=u||kt.ratio}function f(t){var r=new Image;r.src=t,r.onload=function(){var t=r.width,i=r.height;p(t,i),_t.drawImage(r,0,0,t,i),h(t,i);var o=document.getElementById("canvas").toDataURL(e.type,kt.ratio),a=Object(S.e)(o,e.name);n&&n(a)}}function p(e,t){null===(bt=document.getElementById("canvas"))&&((bt=document.createElement("canvas")).id="canvas",bt.className="avue-canvas",document.body.appendChild(bt)),_t=bt.getContext("2d"),bt.width=e,bt.height=t}function h(e,t){var n=kt.text,r=m(n,e,t);_t.font=r.fontSize+"px "+kt.fontFamily,_t.fillStyle=kt.color,_t.globalAlpha=kt.opacity/100,_t.fillText(n,r.x,r.y)}function m(e,t,n){var r,i,o=kt.fontSize/wt*t;return i=kt.bottom?xt-kt.bottom:kt.top,r=kt.right?wt-kt.right:kt.left,_t.font=kt.fontSize+"px "+kt.fontFamily,{x:r=(r-=Number(_t.measureText(e).width))/wt*t,y:i=i/xt*n,fontSize:o}}d(),Ct(e,f)}(n,t.canvasOption,(function(e){n=e,l()}))};this.validatenull(this.cropperOption)?u():Ct(n,(function(e){var r=Object.assign(t.cropperOption,{img:e,type:"file",callback:function(e){n=e,u()},cancel:function(){t.loading=!1}});t.$ImageCropper(r)}))}else l()}}else this.httpRequest(e)},handleExceed:function(e,t){this.uploadExceed&&this.uploadExceed(this.limit,e,t,this.column)},handlePreview:function(e){var t=this,n=function(){var n=t.fileList.findIndex((function(t){return t.url===e.url}));t.$ImagePreview(t.fileList,n)};"function"==typeof this.uploadPreview?this.uploadPreview(e,this.column,n):n()},handleDelete:function(e){var t=this;this.beforeRemove(e).then((function(){t.text=[],t.menu=!1}))},beforeRemove:function(e){return"function"==typeof this.uploadDelete?this.uploadDelete(e,this.column):Promise.resolve()}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{directives:[{name:"loading",rawName:"v-loading.lock",value:e.loading,expression:"loading",modifiers:{lock:!0}}],class:e.b(),attrs:{"element-loading-text":e.loadText}},[t("el-upload",{key:e.reload,ref:"main",class:[e.b({list:"picture-img"==e.listType,disabled:e.disabled}),"avue-upload--"+e.listType],attrs:{action:e.action,"on-remove":e.handleRemove,accept:e.acceptList,"before-remove":e.beforeRemove,multiple:e.multiple,"on-preview":e.handlePreview,limit:e.limit,"http-request":e.httpUpload,readonly:e.readonly,drag:e.dragFile,"show-file-list":!e.isPictureImg&&e.showFileList,"list-type":e.listType,"on-change":e.handleFileChange,"on-exceed":e.handleExceed,disabled:e.disabled,"file-list":e.fileList},nativeOn:{click:function(t){return e.handleClick.apply(null,arguments)}},scopedSlots:e._u([{key:"file",fn:function({file:n}){return[e.$scopedSlots.default?e._t("default",null,{file:n}):"picture-card"===e.listType?t("span",[e.isMediaType(n.url)?t(n.type,{tag:"component",staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url}}):t("i",{staticClass:"el-icon-document",class:e.b("avatar"),attrs:{src:n.url}}),e._v(" "),t("span",{staticClass:"el-upload-list__item-actions"},[t("span",{staticClass:"el-upload-list__item-preview"},[t("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){return t.stopPropagation(),e.handlePreview(n)}}})]),e._v(" "),t("span",{staticClass:"el-upload-list__item-delete"},[e.disabled?e._e():t("i",{staticClass:"el-icon-delete",on:{click:function(t){return t.stopPropagation(),e.handleRemove(n)}}})])])],1):"picture"===e.listType?t("span",{on:{click:function(t){return t.stopPropagation(),e.handlePreview(n)}}},[t(n.type,{tag:"component",staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url}}),e._v(" "),t("a",{staticClass:"el-upload-list__item-name"},[t("i",{staticClass:"el-icon-document"}),e._v("\n "+e._s(n.name)+"\n ")]),e._v(" "),t("i",{staticClass:"el-icon-close",on:{click:function(t){return t.stopPropagation(),e.handleRemove(n)}}})],1):t("span",{on:{click:function(t){return t.stopPropagation(),e.handlePreview(n)}}},[t("a",{staticClass:"el-upload-list__item-name"},[t("i",{staticClass:"el-icon-document"}),e._v("\n "+e._s(n.name)+"\n ")]),e._v(" "),e.disabled?e._e():t("i",{staticClass:"el-icon-close",on:{click:function(t){return t.stopPropagation(),e.handleRemove(n)}}})])]}}],null,!0)},["picture-card"==e.listType?[t("i",{staticClass:"el-icon-plus"})]:"picture-img"==e.listType?[e.$scopedSlots.default?e._t("default",null,{file:{url:e.imgUrl}}):[e.isMediaType(e.imgUrl)?t(e.isMediaType(e.imgUrl),{tag:"component",class:e.b("avatar"),attrs:{src:e.imgUrl},on:{mouseover:function(t){e.menu=!0}}}):e.imgUrl?t("i",{staticClass:"el-icon-document",class:e.b("avatar"),attrs:{src:e.imgUrl},on:{mouseover:function(t){e.menu=!0}}}):t("i",{staticClass:"el-icon-plus",class:e.b("avatar")}),e._v(" "),e.menu?t("div",{staticClass:"el-upload-list__item-actions",class:e.b("menu"),on:{mouseover:function(t){e.menu=!0},mouseout:function(t){e.menu=!1},click:function(e){return e.stopPropagation(),(()=>!1).apply(null,arguments)}}},[t("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){return t.stopPropagation(),e.handlePreview({url:e.imgUrl})}}}),e._v(" "),e.disabled?e._e():t("i",{staticClass:"el-icon-delete",on:{click:function(t){return t.stopPropagation(),e.handleDelete(e.imgUrl)}}})]):e._e()]]:e.dragFile?[t("i",{staticClass:"el-icon-upload"}),e._v(" "),t("div",{staticClass:"el-upload__text"},[t("em",[e._v(e._s(e.fileText||e.t("upload.upload")))])])]:[t("el-button",{attrs:{icon:"el-icon-upload",disabled:e.disabled,size:e.size,type:"primary"}},[e._v(e._s(e.fileText||e.t("upload.upload")))])],e._v(" "),t("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},domProps:{innerHTML:e._s(e.tip)},slot:"tip"})],2)],1)}),[],!1,null,null,null).exports,Dt=c(s({name:"sign",props:{width:{type:Number,default:600},height:{type:Number,default:400}},data:function(){return{disabled:!1,linex:[],liney:[],linen:[],canvas:{},context:{}}},computed:{styleName:function(){return{width:this.setPx(this.width),height:this.setPx(this.height)}}},mounted:function(){this.init()},methods:{getStar:function(e,t,n){var r=this.canvas,i=this.context,o=r.width/2,a=r.height/2;i.lineWidth=7,i.strokeStyle="#f00",i.beginPath(),i.arc(o,a,110,0,2*Math.PI),i.stroke(),function(e,t,n,r,i,o){e.save(),e.fillStyle=i,e.translate(t,n),e.rotate(Math.PI+o),e.beginPath();for(var a=Math.sin(0),s=Math.cos(0),c=Math.PI/5*4,l=0;l<5;l++)a=Math.sin(l*c),s=Math.cos(l*c),e.lineTo(a*r,s*r);e.closePath(),e.stroke(),e.fill(),e.restore()}(i,o,a,20,"#f00",0),i.font="18px 黑体",i.textBaseline="middle",i.textAlign="center",i.lineWidth=1,i.strokeStyle="#f00",i.strokeText(e,o,a+50),i.font="14px 黑体",i.textBaseline="middle",i.textAlign="center",i.lineWidth=1,i.strokeStyle="#f00",i.strokeText(n,o,a+80),i.translate(o,a),i.font="22px 黑体";for(var s,c=t.length,l=4*Math.PI/(3*(c-1)),u=t.split(""),d=0;d<c;d++)s=u[d],0==d?i.rotate(5*Math.PI/6):i.rotate(l),i.save(),i.translate(90,0),i.rotate(Math.PI/2),i.strokeText(s,0,0),i.restore(),i.save();this.disabled=!0},submit:function(e,t){return e||(e=this.width),t||(t=this.height),this.canvas.toDataURL("i/png")},clear:function(){this.linex=new Array,this.liney=new Array,this.linen=new Array,this.disabled=!1,this.canvas.width=this.canvas.width},init:function(){this.canvas=this.$refs.canvas;var e=this.canvas,t=this;void 0!==document.ontouchstart?(e.addEventListener("touchmove",s,!1),e.addEventListener("touchstart",c,!1),e.addEventListener("touchend",l,!1)):(e.addEventListener("mousemove",s,!1),e.addEventListener("mousedown",c,!1),e.addEventListener("mouseup",l,!1),e.addEventListener("mouseleave",l,!1)),this.context=e.getContext("2d");var n=this.context;this.linex=new Array,this.liney=new Array,this.linen=new Array;var r=1,i=30,o=0;function a(e,t){var n,r,i=e.getBoundingClientRect();return t.targetTouches?(n=t.targetTouches[0].clientX,r=t.targetTouches[0].clientY):(n=t.clientX,r=t.clientY),{x:(n-i.left)*(e.width/i.width),y:(r-i.top)*(e.height/i.height)}}function s(s){if(!t.disabled){var c=a(e,s).x,l=a(e,s).y;if(1==o){t.linex.push(c),t.liney.push(l),t.linen.push(1),n.save(),n.translate(n.canvas.width/2,n.canvas.height/2),n.translate(-n.canvas.width/2,-n.canvas.height/2),n.beginPath(),n.lineWidth=2;for(var u=1;u<t.linex.length;u++)r=t.linex[u],i=t.liney[u],0==t.linen[u]?n.moveTo(r,i):n.lineTo(r,i);n.shadowBlur=10,n.stroke(),n.restore()}s.preventDefault()}}function c(n){if(!t.disabled){var r=a(e,n).x,i=a(e,n).y;o=1,t.linex.push(r),t.liney.push(i),t.linen.push(0)}}function l(){t.disabled||(o=0)}}}}),(function(){var e=this._self._c;return this._self._setupProxy,e("div",{class:this.b()},[e("canvas",{ref:"canvas",class:this.b("canvas"),attrs:{width:this.width,height:this.height}})])}),[],!1,null,null,null).exports,Lt=c(s({name:"slider",mixins:[He(),Ue()],props:{step:Number,min:Number,max:Number,marks:Number,range:Boolean,showTooltip:Boolean,showInput:Boolean,showStops:Boolean,vertical:Boolean,formatTooltip:Function,height:String,showInputControls:Boolean,tooltipClass:String}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("el-slider",{attrs:{disabled:e.disabled,vertical:e.vertical,height:e.setPx(e.height),step:e.step,min:e.min,max:e.max,range:e.range,"show-stops":e.showStops,"show-tooltip":e.showTooltip,"show-input":e.showInput,"show-input-controls":e.showInputControls,"input-size":e.size,"tooltip-class":e.tooltipClass,marks:e.marks,"format-tooltip":e.formatTooltip},nativeOn:{click:function(t){return e.handleClick.apply(null,arguments)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}})}),[],!1,null,null,null).exports;function Mt(e){return(Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ft(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Nt=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"object"===Mt(t)){this.obj=t;var n=document.querySelector(t.el),r="";if("object"===Mt(t.style))for(var i in t.style)r+=i+": "+t.style[i]+";";for(var o='<div class="akeyboard-keyboard'+(t.fixedBottomCenter?" akeyboard-keyboard-fixedBottomCenter":"")+'" style="'+r+'">',a=[],s=1;s<10;s++)a.push(s.toString());a.push("0");for(var c,l=t.keys||[["`"].concat(a).concat(["-","=","Delete"]),["Tab","q","w","e","r","t","y","u","i","o","p","[","]","\\"],["Caps","a","s","d","f","g","h","j","k","l",";","'","Enter"],["Shift","z","x","c","v","b","n","m",",",".","/","Shift"],["Space"]],u=[],d=[],f=0;f<l.length;f++){u.push([]),d.push([]),c=l[f];for(var p=0;p<c.length;p++)if(1!==c[p].length)u[f].push(c[p]),d[f].push(c[p]);else{switch(d[f].push(c[p].toUpperCase()),c[p]){case"`":u[f].push("~");continue;case"1":u[f].push("!");continue;case"2":u[f].push("@");continue;case"3":u[f].push("#");continue;case"4":u[f].push("$");continue;case"5":u[f].push("%");continue;case"6":u[f].push("^");continue;case"7":u[f].push("&");continue;case"8":u[f].push("*");continue;case"9":u[f].push("(");continue;case"0":u[f].push(")");continue;case"-":u[f].push("_");continue;case"=":u[f].push("+");continue;case"[":u[f].push("{");continue;case"]":u[f].push("}");continue;case"\\":u[f].push("|");continue;case";":u[f].push(":");continue;case"'":u[f].push('"');continue;case",":u[f].push("<");continue;case".":u[f].push(">");continue;case"/":u[f].push("?");continue}u[f].push(c[p].toUpperCase())}}for(var h=0;h<l.length;h++){c=l[h],o+='<div class="akeyboard-keyboard-innerKeys">';for(var m=0;m<c.length;m++)o+='<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-'+c[m]+'">'+c[m]+"</div>";o+="</div>"}o+="</div>",n.innerHTML=o;var g=!1;l.forEach((function(e){e.includes("Shift")&&(g=!0)})),g&&document.querySelectorAll(t.el+" .akeyboard-keyboard-keys-Shift").forEach((function(e){e.onclick=function(){if(this.isShift){e.isShift=!1,e.innerHTML="Shift",this.classList.remove("keyboard-keyboard-keys-focus");for(var n,r=document.querySelectorAll(t.el+" .akeyboard-keyboard-innerKeys"),i=0;i<r.length;i++){n=r[i];for(var o=0;o<n.childNodes.length;o++)n.childNodes[o].innerHTML=l[i][o]}}else{var a=document.querySelector(t.el+" .akeyboard-keyboard-keys-Caps");if(a&&a.isCaps)return;e.isShift=!0,e.innerHTML="SHIFT",this.classList.add("keyboard-keyboard-keys-focus");for(var s,c=document.querySelectorAll(t.el+" .akeyboard-keyboard-innerKeys"),d=0;d<c.length;d++){s=c[d];for(var f=0;f<s.childNodes.length;f++)"Shift"!==u[d][f]&&(s.childNodes[f].innerHTML=u[d][f])}}}}));var v=!1;l.forEach((function(e){e.includes("Caps")&&(v=!0)})),v&&document.querySelectorAll(t.el+" .akeyboard-keyboard-keys-Caps").forEach((function(e){e.onclick=function(){if(this.isCaps){this.isCaps=!1,this.classList.remove("keyboard-keyboard-keys-focus");for(var e,n=document.querySelectorAll(t.el+" .akeyboard-keyboard-innerKeys"),r=0;r<n.length;r++){e=n[r];for(var i=0;i<e.childNodes.length;i++)e.childNodes[i].innerHTML=l[r][i]}}else{var o=document.querySelector(t.el+" .akeyboard-keyboard-keys-Shift");if(o&&o.isShift)return;this.isCaps=!0,this.classList.add("keyboard-keyboard-keys-focus");for(var a,s=document.querySelectorAll(t.el+" .akeyboard-keyboard-innerKeys"),c=0;c<s.length;c++){a=s[c];for(var u=0;u<a.childNodes.length;u++)a.childNodes[u].innerHTML=d[c][u]}}}}))}}var t,n,r;return t=e,(n=[{key:"inputOn",value:function(e,t,n,r){if("string"==typeof e&&"string"==typeof t)for(var i=document.querySelector(e),o=document.querySelectorAll(this.obj.el+" .akeyboard-keyboard-keys"),a=0;a<o.length;a++)["Shift","Caps"].includes(o[a].innerHTML)||("Delete"!==o[a].innerHTML?"Tab"!==o[a].innerHTML?"Enter"!==o[a].innerHTML?"Space"!==o[a].innerHTML?r&&"object"===Mt(r)&&Object.keys(r).length>0&&r[o[a].innerHTML]?o[a].onclick=r[o[a].innerHTML]:o[a].onclick=function(){i[t]+=this.innerText,n(this.innerText,i[t])}:o[a].onclick=function(){i[t]+=" ",n("Space",i[t])}:o[a].onclick=function(){i[t]+="\n",n("Enter",i[t])}:o[a].onclick=function(){i[t]+=" ",n("Tab",i[t])}:o[a].onclick=function(){i[t]=i[t].substr(0,i[t].length-1),n("Delete",i[t])})}},{key:"onclick",value:function(e,t){if("string"==typeof e&&"function"==typeof t){var n=document.querySelector(this.obj.el+" .akeyboard-keyboard-keys-"+e);n&&(n.onclick=t)}}}])&&Ft(t.prototype,n),r&&Ft(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Bt(e){return(Bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function It(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Pt=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"object"===Bt(t)){this.obj=t;var n=document.querySelector(t.el),r="";if("object"===Bt(t.style))for(var i in t.style)r+=i+": "+t.style[i]+";";var o='<div class="akeyboard-numberKeyboard'+(t.fixedBottomCenter?" akeyboard-keyboard-fixedBottomCenter":"")+'" style="'+r+'">';o+='<div class="akeyboard-keyboard-innerKeys">';for(var a=1;a<10;a++)o+='<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-'+a+'">'+a+"</div>",a%3==0&&(o+='</div><div class="akeyboard-keyboard-innerKeys">');o+='<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-0">0</div><div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-Delete">Delete</div></div><div class="akeyboard-keyboard-innerKeys"><div class="akeyboard-keyboard-keys akeyboard-numberKeyboard-keys-Enter">Enter</div></div>',o+="</div>",n.innerHTML=o}}var t,n,r;return t=e,(n=[{key:"inputOn",value:function(e,t,n,r){if("string"==typeof e&&"string"==typeof t)for(var i=document.querySelector(e),o=document.querySelectorAll(this.obj.el+" .akeyboard-keyboard-keys"),a=0;a<o.length;a++)"Delete"!==o[a].innerHTML?"Enter"!==o[a].innerHTML?r&&"object"===Bt(r)&&Object.keys(r).length>0&&r[o[a].innerHTML]?o[a].onclick=r[o[a].innerHTML]:o[a].onclick=function(){i[t]+=this.innerText,n(this.innerText,i[t])}:o[a].onclick=function(){i[t]+="\n",n("Enter",i[t])}:o[a].onclick=function(){i[t]=i[t].substr(0,i[t].length-1),n("Delete",i[t])}}},{key:"onclick",value:function(e,t){if("string"==typeof e&&"function"==typeof t){var n=document.querySelector(this.obj.el+" .akeyboard-keyboard-keys-"+e);n&&(n.onclick=t)}}}])&&It(t.prototype,n),r&&It(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),$t=c(s({name:"keyboard",props:{ele:{type:String,required:!0},keys:Array,theme:{type:String,default:"default",validator:function(e){return["default","dark","green","classic"].includes(e)}},type:{type:String,default:"default",validator:function(e){return["default","number","mobile"].includes(e)}},fixedBottomCenter:{type:Boolean,default:!1},rebind:{type:Boolean,default:!0}},watch:{ele:function(){this.init()}},data:function(){return{customClick:{}}},computed:{className:function(){return"avue-keyboard--".concat(this.theme)}},mounted:function(){this.init()},methods:{init:function(){var e=this;if(this.ele){var t,n={el:"#keyboard",style:{},keys:this.keys,fixedBottomCenter:this.fixedBottomCenter};"default"==this.type?t=new Nt(n):"number"==this.type?t=new Pt(n):"mobile"==this.type&&(t=new MobileKeyBoard(n));var r=0==this.ele.indexOf("#")?this.ele.substring(1):this.ele;t.inputOn("#".concat(r),"value",(function(t,n){e.$emit("click",t,n)}),this.rebind?this.customClick:null),this.keyboard=t}},bindClick:function(e,t){this.keyboard.onclick(e,t),this.customClick[e]=t}}}),(function(){var e=this._self._c;return this._self._setupProxy,e("div",{class:[this.b(),this.className]},[e("div",{attrs:{id:"keyboard"}})])}),[],!1,null,null,null).exports,jt=c(s({name:"tree",mixins:[J],directives:{permission:A},props:{indent:Number,filterNodeMethod:Function,checkOnClickNode:Boolean,beforeClose:Function,beforeOpen:Function,permission:{type:[Function,Object],default:function(){return{}}},iconClass:{type:String},loading:{type:Boolean,default:!1},expandOnClickNode:{type:Boolean,default:!1},option:{type:Object,default:function(){return{}}},data:{type:Array,default:function(){return[]}},value:{type:Object,default:function(){return{}}}},data:function(){return{filterValue:"",client:{x:0,y:0,show:!1},box:!1,type:"",node:{},form:{}}},computed:{draggable:function(){return this.option.draggable},styleName:function(){return{top:this.setPx(this.client.y-10),left:this.setPx(this.client.x-10)}},treeProps:function(){return Object.assign(this.props,{isLeaf:this.leafKey})},menu:function(){return this.vaildData(this.option.menu,!0)},title:function(){return this.option.title||this.t("crud.addTitle")},treeLoad:function(){return this.option.treeLoad},checkStrictly:function(){return this.option.checkStrictly},accordion:function(){return this.option.accordion},multiple:function(){return this.option.multiple},lazy:function(){return this.option.lazy},addText:function(){return this.addFlag?this.menuIcon("addBtn"):this.menuIcon("updateBtn")},addFlag:function(){return["add","parentAdd"].includes(this.type)},size:function(){return this.option.size||"small"},props:function(){return this.option.props||{}},leafKey:function(){return this.props.leaf||a.f.leaf},valueKey:function(){return this.props.value||a.f.value},labelKey:function(){return this.props.label||a.f.label},childrenKey:function(){return this.props.children||a.f.children},nodeKey:function(){return this.option.nodeKey||a.f.nodeKey},defaultExpandAll:function(){return this.option.defaultExpandAll},defaultExpandedKeys:function(){return this.option.defaultExpandedKeys},formOption:function(){return Object.assign(this.option.formOption||{},{submitText:this.addText})}},mounted:function(){var e=this;document.addEventListener("click",(function(t){e.$el.contains(t.target)||(e.client.show=!1)})),this.initFun()},watch:{filterValue:function(e){this.$refs.tree.filter(e)},value:function(e){this.form=e},form:function(e){this.$emit("input",e),this.$emit("change",e)}},methods:{handleDragStart:function(e,t){this.$emit("node-drag-start",e,t)},handleDragEnter:function(e,t,n){this.$emit("node-drag-enter",e,t,n)},handleDragLeave:function(e,t,n){this.$emit("node-drag-leave",e,t,n)},handleDragOver:function(e,t,n){this.$emit("node-drag-over",e,t,n)},handleDragEnd:function(e,t,n,r){this.$emit("node-drag-end",e,t,n,r)},handleDrop:function(e,t,n,r){this.$emit("node-drop",e,t,n,r)},menuIcon:function(e){return this.vaildData(this.option[e+"Text"],this.t("crud."+e))},getPermission:function(e){return"function"==typeof this.permission?this.permission(e,this.node.data||{}):!!this.validatenull(this.permission[e])||this.permission[e]},initFun:function(){var e=this;["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"].forEach((function(t){e[t]=e.$refs.tree[t]}))},nodeContextmenu:function(e,t,n,r){this.node=n,this.client.x=e.clientX,this.client.y=e.clientY,this.client.show=!0,this.$emit("node-contextmenu",t,n,r)},handleCheckChange:function(e,t,n){this.$emit("check-change",e,t,n)},handleSubmit:function(e,t){this.addFlag?this.save(e,t):this.update(e,t)},nodeClick:function(e,t,n){this.client.show=!1,this.$emit("node-click",e,t,n)},filterNode:function(e,t){return"function"==typeof this.filterNodeMethod?this.filterNodeMethod(e,t):!e||-1!==t[this.labelKey].indexOf(e)},hide:function(e){var t=this,n=function(){e&&e(),t.node={},t.form={},t.box=!1};"function"==typeof this.beforeClose?this.beforeClose(n,this.type):n()},save:function(e,t){var n=this;this.$emit("save",this.node,e,(function(e){e=e||n.form,"add"===n.type?n.$refs.tree.append(e,n.node.data[n.valueKey]):"parentAdd"===n.type&&n.$refs.tree.append(e),n.hide(),t()}),t)},update:function(e,t){var n=this;this.$emit("update",this.node,e,(function(e){var r=(e=e||n.form)[n.valueKey];n.node.data=n.form;var i=n.findData(r),o=i.parentList,a=i.index;if(o){var s=o.splice(a,1)[0];e[n.childrenKey]=s[n.childrenKey],o.splice(a,0,e)}n.hide(),t()}),t)},rowEdit:function(e){this.type="edit",this.form=this.node.data,this.show()},parentAdd:function(){this.type="parentAdd",this.show()},rowAdd:function(){this.type="add",this.show()},show:function(){var e=this,t=function(){e.client.show=!1,e.box=!0};"function"==typeof this.beforeOpen?this.beforeOpen(t,this.type):t()},rowRemove:function(){var e=this;this.client.show=!1,this.$emit("del",this.node,(function(){e.$refs.tree.remove(e.node.data[e.valueKey])}))},findData:function(e){var t=this,n={};return function r(i,o){i.forEach((function(a,s){a[t.valueKey]==e&&(n={item:a,index:s,parentList:i,parent:o}),a[t.childrenKey]&&r(a[t.childrenKey],a)}))}(this.data),n}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b()},[e.vaildData(e.option.filter,!0)?t("div",{class:e.b("filter")},[t("el-input",{attrs:{placeholder:e.vaildData(e.option.filterText,e.t("tip.input")),size:e.size},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}}),e._v(" "),e.vaildData(e.option.addBtn,!0)?t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("addBtn"),expression:"getPermission('addBtn')"}],attrs:{size:e.size,icon:"el-icon-plus"},on:{click:e.parentAdd}}):e._t("addBtn")],2):e._e(),e._v(" "),t("el-scrollbar",{class:e.b("content")},[t("el-tree",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tree",attrs:{data:e.data,lazy:e.lazy,load:e.treeLoad,draggable:e.draggable,props:e.treeProps,"icon-class":e.iconClass,indent:e.indent,"highlight-current":!e.multiple,"show-checkbox":e.multiple,accordion:e.accordion,"node-key":e.valueKey,"check-strictly":e.checkStrictly,"check-on-click-node":e.checkOnClickNode,"filter-node-method":e.filterNode,"expand-on-click-node":e.expandOnClickNode,"allow-drop":e.option.allowDrop,"allow-drag":e.option.allowDrag,"default-expand-all":e.defaultExpandAll,"default-expanded-keys":e.defaultExpandedKeys},on:{"check-change":e.handleCheckChange,"node-click":e.nodeClick,"node-contextmenu":e.nodeContextmenu,"node-drag-start":e.handleDragStart,"node-drag-enter":e.handleDragEnter,"node-drag-leave":e.handleDragLeave,"node-drag-over":e.handleDragOver,"node-drag-end":e.handleDragEnd,"node-drop":e.handleDrop},scopedSlots:e._u([{key:"default",fn:function({node:n,data:r}){return e.$scopedSlots.default?e._t("default",null,{node:n,data:r}):t("span",{staticClass:"el-tree-node__label"},[t("span",[e._v(e._s(n.label))])])}}],null,!0)})],1),e._v(" "),e.client.show&&e.menu?t("div",{staticClass:"el-cascader-panel is-bordered",class:e.b("menu"),style:e.styleName,on:{click:function(t){e.client.show=!1}}},[e.vaildData(e.option.addBtn,!0)?t("div",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("addBtn"),expression:"getPermission('addBtn')"}],class:e.b("item"),on:{click:e.rowAdd}},[e._v(e._s(e.menuIcon("addBtn")))]):e._e(),e._v(" "),e.vaildData(e.option.editBtn,!0)?t("div",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("editBtn"),expression:"getPermission('editBtn')"}],class:e.b("item"),on:{click:e.rowEdit}},[e._v(e._s(e.menuIcon("editBtn")))]):e._e(),e._v(" "),e.vaildData(e.option.delBtn,!0)?t("div",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("delBtn"),expression:"getPermission('delBtn')"}],class:e.b("item"),on:{click:e.rowRemove}},[e._v(e._s(e.menuIcon("delBtn")))]):e._e(),e._v(" "),e._t("menu",null,{node:e.node})],2):e._e(),e._v(" "),e.box?t("div",[t("el-dialog",{staticClass:"avue-dialog avue-dialog--none",class:e.b("dialog"),attrs:{title:e.node[e.labelKey]||e.title,visible:e.box,"modal-append-to-body":e.$AVUE.modalAppendToBody,"append-to-body":e.$AVUE.appendToBody,"before-close":e.hide,width:e.setPx(e.vaildData(e.option.dialogWidth,"50%"))},on:{"update:visible":function(t){e.box=t}}},[t("avue-form",{ref:"form",attrs:{option:e.formOption},on:{submit:e.handleSubmit},model:{value:e.form,callback:function(t){e.form=t},expression:"form"}})],1)],1):e._e()],1)}),[],!1,null,null,null).exports,zt=c(s({name:"title",mixins:[He(),Ue()],props:{styles:{type:Object,default:function(){return{}}}},mounted:function(){},methods:{}}),(function(){var e=this._self._c;return this._self._setupProxy,e("div",{class:this.b()},[e("p",{style:this.styles},[this._v(this._s(this.text))])])}),[],!1,null,null,null).exports,qt=c(s({name:"search",mixins:[I()],props:{value:{}},watch:{value:{handler:function(e){this.setVal(e)},deep:!0}},computed:{form:{get:function(){return this.value},set:function(e){this.setVal(e)}},props:function(){return this.parentOption.props||{}},labelKey:function(){return a.f.label},valueKey:function(){return a.f.value},mainSlot:function(){var e=this,t=[];return this.propOption.forEach((function(n){e.$scopedSlots[n.prop]&&t.push(n.prop)})),t},isCard:function(){return this.parentOption.card},parentOption:function(){return this.tableOption},propOption:function(){return this.columnOption},columnOption:function(){return this.parentOption.column}},created:function(){this.dataFormat()},methods:{setVal:function(e){this.$emit("input",e),this.$emit("change",e)},getKey:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return e[t[n]||this.props[n]||n]},dataFormat:function(){var e=this;this.propOption.forEach((function(t){var n=t.prop;e.validatenull(e.form[n])&&e.$set(e.form,n,!1===t.multiple?"":[])}))},getActive:function(e,t){var n=this.getKey(e,t.props,this.valueKey);return!1===t.multiple?this.form[t.prop]===n:this.form[t.prop].includes(n)},handleClick:function(e,t){var n=this.getKey(t,e.props,this.valueKey);if(!1===e.multiple)this.form[e.prop]=n;else{var r=this.form[e.prop].indexOf(n);-1===r?this.form[e.prop].push(n):this.form[e.prop].splice(r,1)}}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("el-row",{class:[e.b(),{"avue--card":e.isCard}],attrs:{span:24}},e._l(e.columnOption,(function(n,r){return t("el-col",{key:n.prop,class:e.b("item"),attrs:{span:n.span||24}},[t("p",{class:e.b("title")},[e._v(e._s(n.label)+":")]),e._v(" "),t("div",{class:e.b("content")},[e.mainSlot.includes(n.prop)?e._t(n.prop,null,{dic:e.DIC[n.prop]}):e._l(e.DIC[n.prop],(function(r){return t("span",{key:e.getKey(r,n.props,e.valueKey),class:[e.b("tags"),{"avue-search__tags--active":e.getActive(r,n)}],on:{click:function(t){return e.handleClick(n,r)}}},[e._v(e._s(e.getKey(r,n.props,e.labelKey)))])}))],2)])})),1)}),[],!1,null,null,null).exports,Ht=c(s({name:"skeleton",props:{loading:{type:Boolean,default:!0},avatar:Boolean,active:{type:Boolean,default:!0},block:Boolean,number:{type:Number,default:1},rows:{type:Number,default:3}},computed:{styleName:function(){return this.block?{width:"100%"}:{}},className:function(){var e,t,n,r=this.active;return e={},t="".concat("avue-skeleton","__loading"),n=r,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b()},e._l(e.number,(function(n,r){return e.loading?t("div",{key:r,class:e.b("item")},[t("div",{class:e.b("header")},[e.avatar?t("span",{class:[e.b("avatar"),e.className]}):e._e()]),e._v(" "),t("div",{class:e.b("content")},[t("h3",{class:[e.b("title"),e.className]}),e._v(" "),t("div",{class:e.b("list")},e._l(e.rows,(function(n,r){return t("li",{key:r,class:[e.b("li"),e.className],style:e.styleName})})),0)])]):t("div",[e._t("default")],2)})),0)}),[],!1,null,null,null).exports,Ut=c(s({name:"tabs",props:{option:{type:Object,required:!0,default:function(){return{}}}},data:function(){return{active:"0"}},watch:{active:function(){this.$emit("change",this.tabsObj)}},computed:{tabsObj:function(){return this.columnOption[this.active]},parentOption:function(){return this.option},columnOption:function(){return this.parentOption.column||[]}},methods:{changeTabs:function(e){this.active=e+""}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b()},[t("el-tabs",{attrs:{"before-leave":e.parentOption.beforeLeave,stretch:e.parentOption.stretch,"tab-position":e.parentOption.position,type:e.parentOption.type},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},e._l(e.columnOption,(function(n,r){return t("el-tab-pane",{key:r,attrs:{name:r+"",disabled:n.disabled}},[t("span",{attrs:{slot:"label"},slot:"label"},[t("i",{class:n.icon}),e._v(" \n "+e._s(n.label)+"\n ")])])})),1)],1)}),[],!1,null,null,null).exports;function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(n),!0).forEach((function(t){Gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kt=c(s({name:"dynamic",mixins:[He(),Ue()],data:function(){return{reload:Math.random(),hoverList:[]}},props:{uploadBefore:Function,uploadAfter:Function,uploadDelete:Function,uploadPreview:Function,uploadError:Function,uploadExceed:Function,max:Number,boxType:String,columnSlot:{type:Array,default:function(){return[]}},children:{type:Object,default:function(){return{}}}},computed:{isAdd:function(){return"add"===this.boxType},isEdit:function(){return"edit"===this.boxType},isView:function(){return"view"===this.boxType},textLen:function(){return this.text.length},maxFlag:function(){return!this.max||!(this.text.length==this.max)},showIndex:function(){return this.vaildData(this.children.index,!0)},showType:function(){return this.children.type||"crud"},isForm:function(){return"form"===this.showType},isCrud:function(){return"crud"===this.showType},selectionChange:function(){return this.children.selectionChange},sortableChange:function(){return this.children.sortableChange},rowAdd:function(){return this.children.rowAdd},rowDel:function(){return this.children.rowDel},viewBtn:function(){return!1===this.children.viewBtn},addBtn:function(){return!1===this.children.addBtn},delBtn:function(){return!1===this.children.delBtn},valueOption:function(){var e={};return this.columnOption.forEach((function(t){t.value&&(e[t.prop]=t.value)})),e},rulesOption:function(){var e={};return this.columnOption.forEach((function(t){t.rules&&(e[t.prop]=t.rules)})),e},columnOption:function(){return Object(S.n)(this.children.column)},option:function(){var e,t=this;return Object.assign({boxType:this.boxType,border:!0,header:!1,menu:!1,size:this.size,disabled:this.disabled,readonly:this.readonly,emptyBtn:!1,submitBtn:!1},function(){var e=t.deepClone(t.children);return delete e.column,e}(),(e=[{label:t.children.indexLabel||"#",prop:"_index",display:t.showIndex,hide:!t.showIndex,fixed:!0,align:"center",headerAlign:"center",span:24,width:50}],t.columnOption.forEach((function(n){e.push(Object.assign(n,{hide:t.vaildData(n.hide,!t.vaildParams(n,"display",!0)),disabled:t.vaildParams(n,"disabled",!1),detail:t.vaildParams(n,"detail",!1),cell:t.vaildData(n.cell,t.isCrud)}))})),{column:e}))}},mounted:function(){this.initData()},watch:{text:function(){this.initData()}},methods:{vaildParams:function(e,t,n){var r,i=t.toLowerCase().replace(/\b(\w)|\s(\w)/g,(function(e){return e.toUpperCase()}));return this.validatenull(e[t])?this.isAdd?r="add"+i:this.isEdit?r="edit"+i:this.isView&&(r="view"+i):r=t,this.vaildData(e[r],n)},handleSelectionChange:function(e){this.selectionChange&&this.selectionChange(e)},handleSortableChange:function(e,t,n,r){this.sortableChange&&this.sortableChange(e,t,n,r)},cellMouseenter:function(e){var t=e.$index;this.mouseoverRow(t)},cellMouseLeave:function(e,t,n,r){var i=e.$index;this.mouseoutRow(i)},initData:function(){this.text.forEach((function(e,t){e=Object.assign(e,{$cellEdit:!0,$index:t})}))},mouseoverRow:function(e){this.delBtn||(this.flagList(),this.$set(this.hoverList,e,!0))},mouseoutRow:function(e){this.delBtn||(this.flagList(),this.$set(this.hoverList,e,!1))},flagList:function(){this.hoverList.forEach((function(e,t){}))},delRow:function(e){var t=this,n=function(){var n=t.deepClone(t.text);n.splice(e,1),t.text=n,t.reload=Math.random()};"function"==typeof this.rowDel?this.rowDel(this.text[e],n):n()},addRow:function(){var e=this,t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.deepClone(Vt(Vt(Vt({},e.valueOption),t),{$index:e.textLen}));e.isCrud?e.$refs.main.rowCellAdd(n):e.isForm&&e.text.push(n)};"function"==typeof this.rowAdd?this.rowAdd(t):t()}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{key:e.reload,class:e.b()},[e.isForm?[t("div",{class:e.b("header")},[e.readonly||e.disabled||e.addBtn?e._e():t("el-button",{attrs:{size:"mini",circle:"",disabled:e.disabled,type:"primary",icon:"el-icon-plus"},on:{click:e.addRow}})],1),e._v(" "),t("div",e._l(e.text,(function(n,r){return t("div",{key:r,class:e.b("row"),on:{mouseenter:function(t){return e.cellMouseenter({$index:r})},mouseleave:function(t){return e.cellMouseLeave({$index:r})}}},[e.readonly||e.disabled||e.delBtn||!e.hoverList[r]?e._e():t("el-button",{class:e.b("menu"),attrs:{type:"danger",size:"mini",disabled:e.disabled,icon:"el-icon-delete",circle:""},on:{click:function(t){return e.delRow(n.$index)}}}),e._v(" "),t("avue-form",e._b({key:r,ref:"main",refInFor:!0,attrs:{option:e.option},scopedSlots:e._u([{key:"_index",fn:function({}){return t("div",{},[t("span",[e._v(e._s(n.$index+1))])])}},e._l(e.columnSlot,(function(t){return{key:t,fn:function(n){return[e._t(t,null,null,Object.assign(n,{row:e.text[r]}))]}}}))],null,!0),model:{value:e.text[r],callback:function(t){e.$set(e.text,r,t)},expression:"text[index]"}},"avue-form",e.$uploadFun({},this),!1))],1)})),0)]:e.isCrud?t("avue-crud",e._b({ref:"main",attrs:{option:e.option,disabled:e.disabled,data:e.text},on:{"cell-mouse-enter":e.cellMouseenter,"cell-mouse-leave":e.cellMouseLeave,"selection-change":e.handleSelectionChange,"sortable-change":e.handleSortableChange},scopedSlots:e._u([{key:"_indexHeader",fn:function(n){return[e.addBtn||e.readonly||!e.maxFlag?e._e():t("el-button",{attrs:{type:"primary",size:"mini",disabled:e.disabled,icon:"el-icon-plus",circle:""},on:{click:function(t){return e.addRow()}}})]}},{key:"_index",fn:function(n){return[e.readonly||e.disabled||e.delBtn||!e.hoverList[n.row.$index]?t("div",[e._v(e._s(n.row.$index+1))]):t("el-button",{attrs:{type:"danger",size:"mini",disabled:e.disabled,icon:"el-icon-delete",circle:""},on:{click:function(t){return e.delRow(n.row.$index)}}})]}},e._l(e.columnSlot,(function(t){return{key:e.getSlotName({prop:t},"F"),fn:function(n){return[e._t(t,null,null,n)]}}}))],null,!0)},"avue-crud",e.$uploadFun({},this),!1)):e._e()],2)}),[],!1,null,null,null).exports;function Yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Xt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.video=t,this.mediaRecorder=null,this.chunks=[]}var t,n,r;return t=e,(n=[{key:"init",value:function(){var e=this;return new Promise((function(t,n){navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then((function(n){"srcObject"in e.video?e.video.srcObject=n:e.video.src=window.URL.createObjectURL(n),e.video.addEventListener("loadmetadata",(function(){e.video.play()})),e.mediaRecorder=new MediaRecorder(n),e.mediaRecorder.addEventListener("dataavailable",(function(t){e.chunks.push(t.data)})),t()})).catch((function(e){n(e)}))}))}},{key:"startRecord",value:function(){"inactive"===this.mediaRecorder.state&&this.mediaRecorder.start()}},{key:"stopRecord",value:function(){"recording"===this.mediaRecorder.state&&this.mediaRecorder.stop()}},{key:"isSupport",value:function(){if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)return!0}}])&&Yt(t.prototype,n),r&&Yt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Qt=c(s({name:"video",props:{background:{type:String},width:{type:[String,Number],default:500}},computed:{styleName:function(){return{width:this.setPx(this.width)}},imgStyleName:function(){return{width:this.setPx(this.width/2)}},borderStyleName:function(){return{width:this.setPx(this.width/15),height:this.setPx(this.width/15),borderWidth:this.setPx(5)}}},data:function(){return{videoObj:null}},mounted:function(){this.init()},methods:{init:function(){var e=this;this.videoObj=new Xt(this.$refs.main),this.videoObj.init().then((function(){e.videoObj.mediaRecorder.addEventListener("stop",e.getData,!1)}))},startRecord:function(){this.videoObj.startRecord()},stopRecord:function(){this.videoObj.stopRecord()},getData:function(){var e=this,t=new Blob(this.videoObj.chunks,{type:"video/mp4"}),n=new FileReader;n.readAsDataURL(t),n.addEventListener("loadend",(function(){var t=n.result;e.$emit("data-change",t)}))}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b(),style:e.styleName},[t("div",{class:e.b("border")},[t("span",{style:e.borderStyleName}),e._v(" "),t("span",{style:e.borderStyleName}),e._v(" "),t("span",{style:e.borderStyleName}),e._v(" "),t("span",{style:e.borderStyleName})]),e._v(" "),t("img",{class:e.b("img"),style:e.imgStyleName,attrs:{src:e.background}}),e._v(" "),t("video",{ref:"main",class:e.b("main"),attrs:{autoplay:"",muted:""},domProps:{muted:!0}})])}),[],!1,null,null,null).exports,Jt=c(s({name:"login",props:{value:{type:Object,default:function(){return{}}},codesrc:{type:String},option:{type:Object,default:function(){return{}}}},computed:{form:{get:function(){return this.value},set:function(e){this.$emit("input",e),this.$emit("change",e)}},labelWidth:function(){return this.option.labelWidth||80},time:function(){return this.option.time||60},isImg:function(){return"img"===this.codeType},isPhone:function(){return"phone"===this.codeType},codeType:function(){return this.option.codeType||"img"},width:function(){return this.option.width||"100%"},username:function(){return this.column.username||{}},password:function(){return this.column.password||{}},code:function(){return this.column.code||{}},column:function(){return this.option.column||{}},sendDisabled:function(){return!this.validatenull(this.check)}},data:function(){return{text:"发送验证码",nowtime:"",check:{},flag:!1}},methods:{onSend:function(){var e=this;this.sendDisabled||this.$emit("send",(function(){e.nowtime=e.time,e.text="{{time}}s后重获取".replace("{{time}}",e.nowtime),e.check=setInterval((function(){e.nowtime--,0===e.nowtime?(e.text="发送验证码",clearInterval(e.check),e.check=null):e.text="{{time}}s后重获取".replace("{{time}}",e.nowtime)}),1e3)}))},onRefresh:function(){this.$emit("refresh")},onSubmit:function(){var e=this;this.$refs.form.validate((function(t){t&&e.$emit("submit",function(){var t={};for(var n in e.form){var r=n;e[n].prop&&(r=e[n].prop),t[r]=e.form[n]}return t}())}))}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b(),style:{width:e.setPx(e.width)}},[t("el-form",{ref:"form",attrs:{model:e.form,"label-suffix":":","label-width":e.setPx(e.labelWidth)}},[e.username.hide?e._e():t("el-form-item",{attrs:{label:e.username.label||"用户名",rules:e.username.rules,"label-width":e.setPx(e.username.labelWidth),prop:"username"}},[t("el-tooltip",{attrs:{content:e.username.tip,disabled:void 0===e.username.tip,placement:"top-start"}},[t("el-input",{attrs:{size:"small","prefix-icon":e.username.prefixIcon||"el-icon-user",placeholder:e.username.placeholder||"请输入用户名",autocomplete:e.username.autocomplete},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}})],1)],1),e._v(" "),e.password.hide?e._e():t("el-form-item",{attrs:{label:e.password.label||"密码",rules:e.password.rules,"label-width":e.setPx(e.password.labelWidth),prop:"password"}},[t("el-tooltip",{attrs:{content:e.password.tip,disabled:void 0===e.password.tip,placement:"top-start"}},[t("el-input",{attrs:{type:"password",size:"small","prefix-icon":e.password.prefixIcon||"el-icon-unlock",placeholder:e.password.placeholder||"请输入密码","show-password":"",autocomplete:e.password.autocomplete},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1)],1),e._v(" "),e.code.hide?e._e():t("el-form-item",{attrs:{label:e.code.label||"验证码",rules:e.code.rules,"label-width":e.setPx(e.code.labelWidth),prop:"code"}},[t("el-tooltip",{attrs:{content:e.code.tip,disabled:void 0===e.code.tip,placement:"top-start"}},[t("el-input",{attrs:{size:"small","prefix-icon":e.code.prefixIcon||"el-icon-c-scale-to-original",placeholder:e.code.placeholder||"请输入验证码",autocomplete:e.code.autocomplete},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}},[t("template",{slot:"append"},[e.isPhone?t("el-button",{class:e.b("send"),attrs:{type:"primary",disabled:e.sendDisabled},on:{click:e.onSend}},[e._v(e._s(e.text))]):e._e(),e._v(" "),e.isImg?t("span",[t("img",{attrs:{src:e.codesrc,alt:"",width:"80",height:"25"},on:{click:e.onRefresh}})]):e._e()],1)],2)],1)],1),e._v(" "),t("el-form-item",[t("el-button",{class:e.b("submit"),attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("登录")])],1)],1)],1)}),[],!1,null,null,null).exports,Zt={Arrays:c(s({name:"array",mixins:[He(),Ue()],computed:{isLimit:function(){return!this.validatenull(this.limit)&&this.textLen>=this.limit},textLen:function(){return this.text.length},isImg:function(){return"img"===this.type},isUrl:function(){return"url"===this.type}},props:{fileType:String,alone:Boolean,type:String,limit:Number},methods:{isMediaType:function(e){return Object(S.s)(e,this.fileType)},add:function(e){this.text.splice(e+1,0,"")},remove:function(e){this.text.splice(e,1)},openImg:function(e){var t=this,n=this.text.map((function(e){return{thumbUrl:e,url:e,type:t.fileType}}));this.$ImagePreview(n,e)}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b()},[e.validatenull(e.text)?t("el-button",{attrs:{type:"primary",icon:"el-icon-plus",circle:"",size:e.size,disabled:e.disabled},on:{click:function(t){return e.add()}}}):e._e(),e._v(" "),e._l(e.text,(function(n,r){return t("div",{key:r,class:e.b("item")},[t("div",{class:e.b("input")},[t("el-tooltip",{attrs:{placement:"bottom",disabled:!e.isImg&&!e.isUrl||e.validatenull(n)}},[t("div",{attrs:{slot:"content"},slot:"content"},[e.isImg?t(e.isMediaType(n),{tag:"component",staticStyle:{width:"200px"},attrs:{src:n,controls:"controls"},on:{click:function(t){return e.openImg(r)}}}):e.isUrl?t("el-link",{attrs:{type:"primary",href:n,target:e.target}},[e._v(e._s(n))]):e._e()],1),e._v(" "),t("el-input",{attrs:{size:e.size,placeholder:e.placeholder,disabled:e.disabled},model:{value:e.text[r],callback:function(t){e.$set(e.text,r,t)},expression:"text[index]"}})],1),e._v(" "),e.disabled||e.readonly||e.alone?e._e():[e.isLimit?e._e():t("el-button",{attrs:{type:"primary",icon:"el-icon-plus",circle:"",size:e.size,disabled:e.disabled},on:{click:function(t){return e.add(r)}}}),e._v(" "),t("el-button",{attrs:{type:"danger",icon:"el-icon-minus",circle:"",size:e.size,disabled:e.disabled},on:{click:function(t){return e.remove(r)}}})]],2)])}))],2)}),[],!1,null,null,null).exports,Affix:u,Avatar:m,Article:v,Crud:Te,Code:De,Card:Re,Chat:Me,Comment:Ne,Form:qe,Checkbox:We,Date:Ve,CountUp:p,Draggable:Ge,Flow:Ye,Group:Xe,Notice:Je,License:Ze,Progress:et,Time:tt,Input:rt,Radio:it,Select:ot,Cascader:at,InputColor:st,InputNumber:ct,InputTree:lt,InputIcon:dt,InputMap:ut,InputTable:ft,Switchs:ht,Rate:mt,Upload:Rt,Slider:Lt,Keyboard:$t,Tree:jt,Title:zt,Search:qt,Tabs:Ut,Dynamic:Kt,Video:Qt,Verifys:pt,textEllipsis:c(s({name:"text-ellipsis",props:{text:String,height:Number,width:Number,isLimitHeight:{type:Boolean,default:!0},useTooltip:{type:Boolean,default:!1},placement:String},data:function(){return{keyIndex:0,isHide:!1}},watch:{isLimitHeight:function(){this.init()},text:function(){this.init()},height:function(){this.init()}},mounted:function(){this.init()},methods:{init:function(){this.keyIndex+=1,this.$refs.more.style.display="none",this.isLimitHeight&&this.limitShow()},limitShow:function(){var e=this;this.$nextTick((function(){var t=e.$refs.text,n=e.$el,r=e.$refs.more,i=1e3;if(t)if(n.offsetHeight>e.height){r.style.display="inline-block";for(var o=e.text;n.offsetHeight>e.height&&i>0;)n.offsetHeight>3*e.height?t.innerText=o=o.substring(0,Math.floor(o.length/2)):t.innerText=o=o.substring(0,o.length-1),i--;e.$emit("hide"),e.isHide=!0}else e.$emit("show"),e.isHide=!1}))}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b(),style:{width:e.setPx(e.width,"100%")}},[e._t("before"),e._v(" "),t("el-tooltip",{attrs:{content:e.text,disabled:!(e.useTooltip&&e.isHide),placement:e.placement}},[t("span",[t("span",{key:e.keyIndex,ref:"text",class:e.b("text")},[e._v(e._s(e.text))])])]),e._v(" "),t("span",{ref:"more",class:e.b("more")},[e._t("more")],2),e._v(" "),e._t("after")],2)}),[],!1,null,null,null).exports,Skeleton:Ht,Sign:Dt,Login:Jt},en={DataTabs:c(s({name:"data-tabs",data:function(){return{}},computed:{animation:function(){return this.option.animation},decimals:function(){return this.option.decimals||0},span:function(){return this.option.span||8},data:function(){return this.option.data||[]}},props:{option:{type:Object,default:function(){}}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"avue-data-tabs"},[t("el-row",{attrs:{span:24}},e._l(e.data,(function(n,r){return t("el-col",{key:r,attrs:{md:e.span,xs:24,sm:12}},[t("div",{staticClass:"item",style:{background:n.color}},[t("a",{attrs:{href:n.href,target:n.target},on:{click:function(e){n.click&&n.click(n)}}},[t("div",{staticClass:"item-header"},[t("p",[e._v(e._s(n.title))]),e._v(" "),t("span",[e._v(e._s(n.subtitle))])]),e._v(" "),t("div",{staticClass:"item-body"},[t("avue-count-up",{staticClass:"h2",attrs:{decimals:n.decimals||e.decimals,animation:n.animation||e.animation,end:n.count}})],1),e._v(" "),t("div",{staticClass:"item-footer"},[t("span",[e._v(e._s(n.allcount))]),e._v(" "),t("p",[e._v(e._s(n.text))])]),e._v(" "),t("p",{staticClass:"item-tip"},[e._v(e._s(n.key))])])])])})),1)],1)}),[],!1,null,null,null).exports,DataCardText:c(s({name:"data-cardtext",data:function(){return{}},computed:{icon:function(){return this.option.icon},color:function(){return this.option.color||"#333"},span:function(){return this.option.span||8},data:function(){return this.option.data||[]}},props:{option:{type:Object,default:function(){}}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"avue-data-cardText"},[t("el-row",{attrs:{span:24}},e._l(e.data,(function(n,r){return t("el-col",{key:r,attrs:{md:e.span,xs:24,sm:12}},[t("div",{staticClass:"item"},[t("a",{attrs:{href:n.href,target:n.target},on:{click:function(e){n.click&&n.click(n)}}},[t("div",{staticClass:"item-header"},[e._v("\n "+e._s(n.title)+"\n ")]),e._v(" "),t("div",{staticClass:"item-content"},[e._v(e._s(n.content))]),e._v(" "),t("div",{staticClass:"item-footer"},[t("span",[e._v(e._s(n.name))]),e._v(" "),t("span",[e._v(e._s(n.date))])])])])])})),1)],1)}),[],!1,null,null,null).exports,DataBox:c(s({name:"data-box",data:function(){return{}},props:{option:{type:Object,default:function(){}}},computed:{animation:function(){return this.option.animation},decimals:function(){return this.option.decimals||0},span:function(){return this.option.span||8},data:function(){return this.option.data||[]}},created:function(){},mounted:function(){},watch:{},methods:{}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"data-box"},[t("el-row",{attrs:{span:24}},e._l(e.data,(function(n,r){return t("el-col",{key:r,attrs:{md:e.span,xs:24,sm:12}},[t("div",{staticClass:"item"},[t("a",{attrs:{href:n.href,target:n.target},on:{click:function(e){n.click&&n.click(n)}}},[t("div",{staticClass:"item-icon",style:{backgroundColor:n.color}},[t("i",{class:n.icon})]),e._v(" "),t("div",{staticClass:"item-info"},[t("avue-count-up",{staticClass:"title",style:{color:n.color},attrs:{animation:n.animation||e.animation,decimals:n.decimals||e.decimals,end:n.count}}),e._v(" "),t("div",{staticClass:"info"},[e._v(e._s(n.title))])],1)])])])})),1)],1)}),[],!1,null,null,null).exports,DataProgress:c(s({name:"data-progress",data:function(){return{}},props:{option:{type:Object,default:function(){}}},computed:{animation:function(){return this.option.animation},decimals:function(){return this.option.decimals||0},span:function(){return this.option.span||8},data:function(){return this.option.data||[]}},created:function(){},mounted:function(){},watch:{},methods:{}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"data-progress"},[t("el-row",{attrs:{span:24}},e._l(e.data,(function(n,r){return t("el-col",{key:r,attrs:{md:e.span,xs:24,sm:12}},[t("div",{staticClass:"item"},[t("a",{attrs:{href:n.href,target:n.target},on:{click:function(e){n.click&&n.click(n)}}},[t("div",{staticClass:"item-header"},[t("avue-count-up",{staticClass:"item-count",attrs:{animation:n.animation||e.animation,decimals:n.decimals||e.decimals,end:n.count}}),e._v(" "),t("div",{staticClass:"item-title",domProps:{textContent:e._s(n.title)}})],1),e._v(" "),t("el-progress",{attrs:{"stroke-width":15,percentage:n.count,color:n.color,"show-text":!1}})],1)])])})),1)],1)}),[],!1,null,null,null).exports,DataIcons:c(s({name:"data-icons",data:function(){return{}},computed:{animation:function(){return this.option.animation},decimals:function(){return this.option.decimals||0},span:function(){return this.option.span||4},data:function(){return this.option.data},color:function(){return this.option.color||"rgb(63, 161, 255)"},discount:function(){return this.option.discount||!1}},props:{option:{type:Object,default:function(){}}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"data-icons"},[t("el-row",{attrs:{span:24}},[e._l(e.data,(function(n,r){return[t("el-col",{key:r,attrs:{xs:12,sm:6,md:e.span}},[t("div",{staticClass:"item",class:[{"item--easy":e.discount}]},[t("a",{attrs:{href:n.href,target:n.target},on:{click:function(e){n.click&&n.click(n)}}},[t("div",{staticClass:"item-icon",style:{color:e.color}},[t("i",{class:n.icon})]),e._v(" "),t("div",{staticClass:"item-info"},[t("span",[e._v(e._s(n.title))]),e._v(" "),t("avue-count-up",{staticClass:"count",style:{color:e.color},attrs:{animation:n.animation||e.animation,decimals:n.decimals||e.decimals,end:n.count}})],1)])])])]}))],2)],1)}),[],!1,null,null,null).exports,DataCard:c(s({name:"data-card",data:function(){return{}},props:{option:{type:Object,default:function(){}}},computed:{span:function(){return this.option.span||6},data:function(){return this.option.data||[]},colorText:function(){return this.option.colorText||"#fff"},bgText:function(){return this.option.bgText||"#2e323f"},borderColor:function(){return this.option.borderColor||"#2e323f"}},created:function(){},mounted:function(){},watch:{},methods:{}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"data-card"},[t("el-row",{attrs:{span:24}},e._l(e.data,(function(n,r){return t("el-col",{key:r,attrs:{md:e.span,xs:24,sm:12}},[t("div",{staticClass:"item"},[t("a",{attrs:{href:n.href,target:n.target},on:{click:function(e){n.click&&n.click(n)}}},[t("img",{staticClass:"item-img",attrs:{src:n.src}}),e._v(" "),t("div",{staticClass:"item-text",style:{backgroundColor:e.bgText}},[t("h3",{style:{color:e.colorText}},[e._v(e._s(n.name))]),e._v(" "),t("p",{style:{color:e.colorText}},[e._v(e._s(n.text))])])])])])})),1)],1)}),[],!1,null,null,null).exports,DataDisplay:c(s({name:"data-display",data:function(){return{}},computed:{animation:function(){return this.option.animation},decimals:function(){return this.option.decimals||0},span:function(){return this.option.span||6},data:function(){return this.option.data||[]},color:function(){return this.option.color||"rgb(63, 161, 255)"}},props:{option:{type:Object,default:function(){}}},created:function(){},methods:{}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"avue-data-display"},[t("el-row",{attrs:{span:24}},e._l(e.data,(function(n,r){return t("el-col",{key:r,attrs:{md:e.span,xs:12,sm:12}},[t("div",{staticClass:"item",style:{color:e.color}},[t("a",{attrs:{href:n.href,target:n.target},on:{click:function(e){n.click&&n.click(n)}}},[t("avue-count-up",{staticClass:"count",attrs:{animation:n.animation||e.animation,decimals:n.decimals||e.decimals,end:n.count}}),e._v(" "),t("span",{staticClass:"splitLine"}),e._v(" "),t("div",{staticClass:"title"},[e._v(e._s(n.title))])],1)])])})),1)],1)}),[],!1,null,null,null).exports,DataImgText:c(s({name:"data-imgtext",data:function(){return{}},computed:{span:function(){return this.option.span||6},data:function(){return this.option.data||[]},color:function(){return this.option.color||"rgb(63, 161, 255)"}},props:{option:{type:Object,default:function(){}}},created:function(){},methods:{}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"avue-data-imgtext"},[t("el-row",{attrs:{span:24}},e._l(e.data,(function(n,r){return t("el-col",{key:r,attrs:{md:e.span,xs:24,sm:12}},[t("div",{staticClass:"item",style:{color:e.color}},[t("a",{attrs:{href:n.href,target:n.target},on:{click:function(e){n.click&&n.click(n)}}},[t("div",{staticClass:"item-header"},[t("img",{attrs:{src:n.imgsrc,alt:""}})]),e._v(" "),t("div",{staticClass:"item-content"},[t("span",[e._v(e._s(n.title))]),e._v(" "),t("p",[e._v(e._s(n.content))])]),e._v(" "),t("div",{staticClass:"item-footer"},[t("div",{staticClass:"time"},[t("span",[e._v(e._s(n.time))])]),e._v(" "),t("div",{staticClass:"imgs"},[t("ul",e._l(n.headimg,(function(e,n){return t("li",{key:n},[t("el-tooltip",{attrs:{effect:"dark",content:e.name,placement:"top-start"}},[t("img",{attrs:{src:e.src,alt:""}})])],1)})),0)])])])])])})),1)],1)}),[],!1,null,null,null).exports,DataOperaText:c(s({name:"data-operatext",data:function(){return{}},computed:{span:function(){return this.option.span||6},data:function(){return this.option.data||[]}},props:{option:{type:Object,default:function(){}}},created:function(){},methods:{}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"avue-data-operatext"},[t("el-row",{attrs:{span:24}},e._l(e.data,(function(n,r){return t("el-col",{key:r,attrs:{md:e.span,xs:24,sm:12}},[t("div",{staticClass:"item"},[t("a",{attrs:{href:n.href},on:{click:function(e){n.click&&n.click(n)}}},[t("div",{staticClass:"item-header",style:{backgroundColor:n.color,backgroundImage:`url(${n.colorImg})`}},[t("span",{staticClass:"item-title"},[e._v(e._s(n.title))]),e._v(" "),t("span",{staticClass:"item-subtitle"},[e._v(e._s(n.subtitle))])]),e._v(" "),t("div",{staticClass:"item-content"},[t("div",{staticClass:"item-img"},[t("img",{attrs:{src:n.img,alt:""}})]),e._v(" "),t("div",{staticClass:"item-list"},e._l(n.list,(function(n,r){return t("div",{key:r,staticClass:"item-row"},[t("span",{staticClass:"item-label"},[e._v(e._s(n.label))]),e._v(" "),t("span",{staticClass:"item-value"},[e._v(e._s(n.value))])])})),0)])])])])})),1)],1)}),[],!1,null,null,null).exports,DataRotate:c(s({name:"data-rotate",data:function(){return{}},props:{option:{type:Object,default:function(){}}},computed:{animation:function(){return this.option.animation},decimals:function(){return this.option.decimals||0},span:function(){return this.option.span||8},data:function(){return this.option.data||[]}},created:function(){},mounted:function(){},watch:{},methods:{}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"avue-data-rotate"},[t("el-row",{attrs:{span:24}},e._l(e.data,(function(n,r){return t("el-col",{key:r,attrs:{md:e.span,xs:24,sm:12}},[t("div",{staticClass:"item",style:{backgroundColor:n.color}},[t("div",{staticClass:"item-box"},[t("avue-count-up",{staticClass:"item-count",attrs:{decimals:n.decimals||e.decimals,animation:n.animation||e.animation,end:n.count}}),e._v(" "),t("span",{staticClass:"item-title"},[e._v(e._s(n.title))]),e._v(" "),t("i",{staticClass:"item-icon",class:n.icon})],1),e._v(" "),t("a",{attrs:{href:n.href},on:{click:function(e){n.click&&n.click(n)}}},[t("p",{staticClass:"item-more"},[e._v("更多"),t("i",{staticClass:"el-icon-arrow-right"})])])])])})),1)],1)}),[],!1,null,null,null).exports,DataPay:c(s({name:"data-pay",props:{option:{type:Object,default:function(){}}},computed:{animation:function(){return this.option.animation},decimals:function(){return this.option.decimals||0},span:function(){return this.option.span||6},data:function(){return this.option.data||[]}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{class:e.b()},[t("el-row",{attrs:{span:24}},e._l(e.data,(function(n,r){return t("el-col",{key:r,attrs:{md:e.span,xs:24,sm:12}},[t("div",{staticClass:"item"},[t("div",{staticClass:"top",style:{backgroundColor:n.color}}),e._v(" "),t("div",{staticClass:"header"},[t("p",{staticClass:"title"},[e._v(e._s(n.title))]),e._v(" "),t("img",{staticClass:"img",attrs:{src:n.src,alt:""}}),e._v(" "),n.subtitle?[t("p",{staticClass:"subtitle",style:{color:n.color}},[e._v(e._s(n.subtitle))])]:e._e(),e._v(" "),n.money||n.dismoney?[t("p",{staticClass:"money",style:{color:n.color}},[t("span",[e._v("¥")]),e._v(" "),t("avue-count-up",{staticClass:"b",attrs:{decimals:n.decimals||e.decimals,animation:n.animation||e.animation,end:n.dismoney}}),e._v(" "),t("s",[e._v(e._s(n.money))]),e._v(" "),t("em",[e._v(e._s(n.tip))])],1)]:e._e(),e._v(" "),t("div",{staticClass:"line"}),e._v(" "),t("a",{staticClass:"btn",style:{backgroundColor:n.color},attrs:{href:n.href},on:{click:function(e){n.click&&n.click(n)}}},[e._v(e._s(n.subtext))])],2),e._v(" "),t("div",{staticClass:"list"},e._l(n.list,(function(r,i){return t("div",{staticClass:"list-item"},[r.check?t("i",{staticClass:"list-item-icon list-item--check",style:{color:n.color}},[e._v("√")]):t("i",{staticClass:"list-item-icon list-item--no"},[e._v("x")]),e._v(" "),t("a",{attrs:{href:r.href?r.href:"javascript:void(0);"}},[t("el-tooltip",{attrs:{effect:"dark",disabled:!r.tip,placement:"top"}},[t("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(r.tip)},slot:"content"}),e._v(" "),t("span",{class:{"list-item--link":r.href}},[e._v(e._s(r.title))])])],1)])})),0)])])})),1)],1)}),[],!1,null,null,null).exports,DataPrice:c(s({name:"data-price",data:function(){return{}},computed:{span:function(){return this.option.span||6},data:function(){return this.option.data}},props:{option:{type:Object,default:function(){}}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"data-price"},[t("el-row",{attrs:{span:24}},[e._l(e.data,(function(n,r){return[t("el-col",{key:r,attrs:{xs:12,sm:6,md:e.span}},[t("div",{staticClass:"item item--active"},[t("a",{attrs:{href:n.href,target:n.target},on:{click:function(e){n.click&&n.click(n)}}},[t("div",{staticClass:"title"},[e._v("\n "+e._s(n.title)+"\n ")]),e._v(" "),t("div",{staticClass:"body"},[t("span",{staticClass:"price"},[e._v(e._s(n.price))]),e._v(" "),t("span",{staticClass:"append"},[e._v(e._s(n.append))])]),e._v(" "),t("div",{staticClass:"list"},e._l(n.list,(function(n,r){return t("p",{key:r},[e._v("\n "+e._s(n)+"\n ")])})),0)])])])]}))],2)],1)}),[],!1,null,null,null).exports,DataPanel:c(s({name:"data-panel",data:function(){return{}},computed:{decimals:function(){return this.option.decimals||0},animation:function(){return this.option.animation},span:function(){return this.option.span||6},data:function(){return this.option.data||[]}},props:{option:{type:Object,default:function(){}}},created:function(){},methods:{}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"avue-data-panel"},[t("el-row",{attrs:{span:24}},e._l(e.data,(function(n,r){return t("el-col",{key:r,attrs:{md:e.span,xs:24,sm:12}},[t("a",{attrs:{href:n.href},on:{click:function(e){n.click&&n.click(n)}}},[t("div",{staticClass:"item"},[t("div",{staticClass:"item-icon"},[t("i",{class:n.icon,style:{color:n.color}})]),e._v(" "),t("div",{staticClass:"item-info"},[t("div",{staticClass:"item-title"},[e._v(e._s(n.title))]),e._v(" "),t("avue-count-up",{staticClass:"item-count",attrs:{animation:n.animation||e.animation,decimals:n.decimals||e.decimals,end:n.count}})],1)])])])})),1)],1)}),[],!1,null,null,null).exports};function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach((function(t){rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=nn(nn({},Zt),en),an=n(6),sn=n.n(an),cn={bind:function(e,t,n,r){if(0!=t.value){var i=e.querySelector(".el-dialog__header"),o=e.querySelector(".el-dialog");if(!(!o&!i)){i.style.cursor="move";var a=o.currentStyle||window.getComputedStyle(o,null),s=o.style.width;s=s.includes("%")?+document.body.clientWidth*(+s.replace(/\%/g,"")/100):+s.replace(/\px/g,""),i.onmousedown=function(e){var t,n,r=e.clientX-i.offsetLeft,s=e.clientY-i.offsetTop;a.left.includes("%")?(t=+document.body.clientWidth*(+a.left.replace(/\%/g,"")/100),n=+document.body.clientHeight*(+a.top.replace(/\%/g,"")/100)):(t=+a.left.replace(/\px/g,""),n=+a.top.replace(/\px/g,"")),document.onmousemove=function(e){var i=e.clientX-r,a=e.clientY-s,c=i+t,l=a+n;o.style.left="".concat(c,"px"),o.style.top="".concat(l,"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}}}},ln=function(){var e;function t(t,n,r,i){var o=n,a=r;i&&(t.oncontextmenu=function(t){var n=t.clientX,r=t.clientY,i=document.documentElement.clientWidth,s=document.documentElement.clientHeight,c=e.offsetWidth,l=e.offsetHeight;s-r-l<0&&(r-=l),i-n-c<0&&(n-=c);var u=function t(){e.style.display="none",document.removeEventListener("click",t)},d=function(){e.style.display="block",e.style.position="fixed",e.style.zIndex=1024,e.style.top=r+"px",e.style.left=n+"px",document.addEventListener("click",u)};return a?a(o,d):d(),!1})}return{inserted:function(n,r){var i=r.value.id,o=r.value.event,a=r.value.value;(e=document.getElementById(i))&&(e.style.display="none",t(n,a,o,!0))},update:function(e,n){var r=n.value.event;t(e,n.value.value,r,!1)}}}();function un(e){return function(e){if(Array.isArray(e))return dn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return dn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var fn={buildHeader:function(e){var t=this,n=[];this.getHeader(e,n,0,0);var r=Math.max.apply(Math,un(n.map((function(e){return e.length}))));return n.filter((function(e){return e.length<r})).forEach((function(e){return t.pushRowSpanPlaceHolder(e,r-e.length)})),n},getHeader:function(e,t,n,r){var i=0,o=t[n];o||(o=t[n]=[]),this.pushRowSpanPlaceHolder(o,r-o.length);for(var a=0;a<e.length;a++){var s=e[a];if(o.push(s.label),s.hasOwnProperty("children")&&Array.isArray(s.children)&&s.children.length>0){var c=this.getHeader(s.children,t,n+1,o.length-1);this.pushColSpanPlaceHolder(o,c-1),i+=c}else i++}return i},pushRowSpanPlaceHolder:function(e,t){for(var n=0;n<t;n++)e.push("!$ROW_SPAN_PLACEHOLDER")},pushColSpanPlaceHolder:function(e,t){for(var n=0;n<t;n++)e.push("!$COL_SPAN_PLACEHOLDER")},doMerges:function(e){for(var t=e.length,n=[],r=0;r<t;r++)for(var i=e[r],o=0,a=0;a<i.length;a++)"!$COL_SPAN_PLACEHOLDER"===i[a]?(i[a]=void 0,a+1===i.length&&n.push({s:{r:r,c:a-o-1},e:{r:r,c:a}}),o++):o>0&&a>o?(n.push({s:{r:r,c:a-o-1},e:{r:r,c:a-1}}),o=0):o=0;for(var s=e[0].length,c=0;c<s;c++)for(var l=0,u=0;u<t;u++)"!$ROW_SPAN_PLACEHOLDER"===e[u][c]?(e[u][c]=void 0,u+1===t&&n.push({s:{r:u-l,c:c},e:{r:u,c:c}}),l++):l>0&&u>l?(n.push({s:{r:u-l-1,c:c},e:{r:u-1,c:c}}),l=0):l=0;return n},aoa_to_sheet:function(e,t){for(var n={},r={s:{c:1e7,r:1e7},e:{c:0,r:0}},i=0;i!==e.length;++i)for(var o=0;o!==e[i].length;++o){r.s.r>i&&(r.s.r=i),r.s.c>o&&(r.s.c=o),r.e.r<i&&(r.e.r=i),r.e.c<o&&(r.e.c=o);var a={v:Object(S.y)(e[i][o],""),s:{font:{name:"宋体",sz:11,color:{auto:1,rgb:"000000"},bold:!0},alignment:{wrapText:1,horizontal:"center",vertical:"center",indent:0}}};i<t&&(a.s.border={top:{style:"thin",color:{rgb:"EBEEF5"}},left:{style:"thin",color:{rgb:"EBEEF5"}},bottom:{style:"thin",color:{rgb:"EBEEF5"}},right:{style:"thin",color:{rgb:"EBEEF5"}}},a.s.fill={patternType:"solid",fgColor:{theme:3,tint:.3999755851924192,rgb:"F5F7FA"},bgColor:{theme:7,tint:.3999755851924192,rgb:"F5F7FA"}});var s=XLSX.utils.encode_cell({c:o,r:i});"number"==typeof a.v?a.t="n":"boolean"==typeof a.v?a.t="b":a.t="s",n[s]=a}return r.s.c<1e7&&(n["!ref"]=XLSX.utils.encode_range(r)),n},s2ab:function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r!==e.length;++r)n[r]=255&e.charCodeAt(r);return t},excel:function(e){var t=this;if(window.XLSX)return new Promise((function(n,r){var i,o={prop:[]};o.header=t.buildHeader(e.columns),o.title=e.title||se()().format("YYYY-MM-DD HH:mm:ss"),function e(t){t.forEach((function(t){t.children&&t.children instanceof Array?e(t.children):o.prop.push(t.prop)}))}(e.columns),o.data=e.data.map((function(e){return o.prop.map((function(t){var n=e[t];return Object(S.r)(n)&&(n=JSON.stringify(n)),n}))}));var a=o.header.length;(i=o.header).push.apply(i,un(o.data).concat([[]]));var s=t.doMerges(o.header),c=t.aoa_to_sheet(o.header,a);c["!merges"]=s,c["!freeze"]={xSplit:"1",ySplit:""+a,topLeftCell:"B"+(a+1),activePane:"bottomRight",state:"frozen"},c["!cols"]=[{wpx:165}];var l={SheetNames:["Sheet1"],Sheets:{}};l.Sheets.Sheet1=c;var u=XLSX.write(l,{bookType:"xlsx",bookSST:!1,type:"binary",cellStyles:!0}),d=new Blob([t.s2ab(u)],{type:"application/octet-stream"});Object(S.h)(d,o.title+".xlsx"),n()}));C.logs("xlsx")},xlsx:function(e){if(!window.saveAs||!window.XLSX)return C.logs("file-saver"),void C.logs("xlsx");var t=window.XLSX;return new Promise((function(n,r){var i=new FileReader;i.onload=function(e){var r=function(e){for(var t="",n=0,r=10240;n<e.byteLength/r;++n)t+=String.fromCharCode.apply(null,new Uint8Array(e.slice(n*r,n*r+r)));return t+String.fromCharCode.apply(null,new Uint8Array(e.slice(n*r)))}(e.target.result),i=t.read(btoa(r),{type:"base64"}),o=i.SheetNames[0],a=i.Sheets[o],s=function(e){var n,r=[],i=t.utils.decode_range(e["!ref"]),o=i.s.r;for(n=i.s.c;n<=i.e.c;++n){var a=e[t.utils.encode_cell({c:n,r:o})],s="UNKNOWN "+n;a&&a.t&&(s=t.utils.format_cell(a)),r.push(s)}return r}(a),c=t.utils.sheet_to_json(a);n({header:s,results:c})},i.readAsArrayBuffer(e)}))}};function pn(e){return(pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var hn=function e(t,n){if(!(this instanceof e))return new e(t,n);this.options=this.extend({noPrint:".no-print"},n),"string"==typeof t?this.dom=document.querySelector(t):(this.isDOM(t),this.dom=this.isDOM(t)?t:t.$el),this.init()};hn.prototype={init:function(){var e=this.getStyle()+this.getHtml();this.writeIframe(e)},extend:function(e,t){for(var n in t)e[n]=t[n];return e},getStyle:function(){for(var e="",t=document.querySelectorAll("style,link"),n=0;n<t.length;n++)e+=t[n].outerHTML;return e+"<style>"+(this.options.noPrint?this.options.noPrint:".no-print")+"{display:none;}</style>"},getHtml:function(){for(var e=document.querySelectorAll("input"),t=document.querySelectorAll("textarea"),n=document.querySelectorAll("select"),r=0;r<e.length;r++)"checkbox"==e[r].type||"radio"==e[r].type?1==e[r].checked?e[r].setAttribute("checked","checked"):e[r].removeAttribute("checked"):(e[r].type,e[r].setAttribute("value",e[r].value));for(var i=0;i<t.length;i++)"textarea"==t[i].type&&(t[i].innerHTML=t[i].value);for(var o=0;o<n.length;o++)if("select-one"==n[o].type){var a=n[o].children;for(var s in a)"OPTION"==a[s].tagName&&(1==a[s].selected?a[s].setAttribute("selected","selected"):a[s].removeAttribute("selected"))}return this.wrapperRefDom(this.dom).outerHTML},wrapperRefDom:function(e){var t=null,n=e;if(!this.isInBody(n))return n;for(;n;){if(t){var r=n.cloneNode(!1);r.appendChild(t),t=r}else t=n.cloneNode(!0);n=n.parentElement}return t},writeIframe:function(e){var t,n,r=document.createElement("iframe"),i=document.body.appendChild(r);r.id="myIframe",r.setAttribute("style","position:absolute;width:0;height:0;top:-10px;left:-10px;"),t=i.contentWindow||i.contentDocument,(n=i.contentDocument||i.contentWindow.document).open(),n.write(e),n.close();var o=this;r.onload=function(){o.toPrint(t),setTimeout((function(){document.body.removeChild(r)}),100)}},toPrint:function(e){try{setTimeout((function(){e.focus();try{e.document.execCommand("print",!1,null)||e.print()}catch(t){e.print()}e.close()}),10)}catch(e){}},isInBody:function(e){return e!==document.body&&document.body.contains(e)},isDOM:"object"===("undefined"==typeof HTMLElement?"undefined":pn(HTMLElement))?function(e){return e instanceof HTMLElement}:function(e){return e&&"object"===pn(e)&&1===e.nodeType&&"string"==typeof e.nodeName}};var mn=hn,gn=n(7),vn=n.n(gn).a,bn=c(s({name:"image-preview",data:function(){return{left:0,top:0,scale:1,datas:[],rotate:0,isShow:!1,index:0,isFile:!1}},computed:{styleBoxName:function(){return{marginLeft:this.setPx(this.left),marginTop:this.setPx(this.top)}},styleName:function(){return{transform:"scale(".concat(this.scale,") rotate(").concat(this.rotate,"deg)"),maxWidth:"100%",maxHeight:"100%"}},isRrrow:function(){return this.datas.length>1}},methods:{getName:function(e){return e.substring(e.lastIndexOf("/")+1)},handlePrint:function(){this.$Print("#avue-image-preview__".concat(this.index))},handlePrev:function(){this.$refs.carousel.prev(),this.index=this.$refs.carousel.activeIndex,this.stopItem()},handleNext:function(){this.$refs.carousel.next(),this.index=this.$refs.carousel.activeIndex,this.stopItem()},stopItem:function(){this.left=0,this.top=0,this.$refs.item.forEach((function(e){e.pause&&e.pause()}))},isMediaType:function(e){return e.url,e.type,Object(S.s)(e.url,e.type)},subScale:function(){.2!=this.scale&&(this.scale=parseFloat((this.scale-.2).toFixed(2)))},addScale:function(){this.scale=parseFloat((this.scale+.2).toFixed(2))},handleChange:function(){this.scale=1,this.rotate=0},move:function(e){var t=this,n=e.clientX,r=e.clientY;document.onmousemove=function(e){var i=e.clientX-n,o=e.clientY-r;n=e.clientX,r=e.clientY,t.left=t.left+2*i,t.top=t.top+2*o},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}},handleClick:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];"function"==typeof this.ops.click?this.ops.click(e,t):n&&window.open(e.url)},close:function(){this.isShow=!1,"function"==typeof this.ops.beforeClose&&this.ops.beforeClose(this.datas,this.index),this.$destroy(),this.$el.remove()}}}),(function(){var e=this,t=e._self._c;return e._self._setupProxy,e.isShow?t("div",{class:e.b()},[e.ops.modal?t("div",{class:e.b("mask"),on:{click:e.close}}):e._e(),e._v(" "),t("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:e.close}},[t("i",{staticClass:"el-icon-circle-close"})]),e._v(" "),e.isRrrow?t("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",on:{click:function(t){return e.handlePrev()}}},[t("i",{staticClass:"el-icon-arrow-left"})]):e._e(),e._v(" "),e.isRrrow?t("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",on:{click:function(t){return e.handleNext()}}},[t("i",{staticClass:"el-icon-arrow-right"})]):e._e(),e._v(" "),t("div",{ref:"box",class:e.b("box")},[t("el-carousel",{ref:"carousel",attrs:{"show-indicators":!1,"initial-index":e.index,"initial-swipe":e.index,interval:e.ops.interval||0,arrow:"never","indicator-position":"none"},on:{change:e.handleChange}},e._l(e.datas,(function(n,r){return t("el-carousel-item",{key:r,nativeOn:{click:function(t){if(t.target!==t.currentTarget)return null;e.ops.closeOnClickModal&&e.close()}}},[e.isMediaType(n)?t(e.isMediaType(n),{ref:"item",refInFor:!0,tag:"component",style:[e.styleName,e.styleBoxName],attrs:{id:"avue-image-preview__"+r,src:n.url,controls:"controls",ondragstart:"return false"},on:{click:function(t){return e.handleClick(n,r)},mousedown:e.move}}):t("div",{class:e.b("file"),attrs:{id:"avue-image-preview__"+r},on:{click:function(t){return e.handleClick(n,r,!0)}}},[t("span",[t("i",{staticClass:"el-icon-document"}),e._v(" "),t("p",[e._v(e._s(n.name||e.getName(n.url)))])])])],1)})),1)],1),e._v(" "),t("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[t("div",{staticClass:"el-image-viewer__actions__inner"},[t("i",{staticClass:"el-icon-zoom-out",on:{click:e.subScale}}),e._v(" "),t("i",{staticClass:"el-icon-zoom-in",on:{click:e.addScale}}),e._v(" "),t("i",{staticClass:"el-image-viewer__actions__divider"}),e._v(" "),t("i",{staticClass:"el-icon-printer",on:{click:e.handlePrint}}),e._v(" "),t("i",{staticClass:"el-image-viewer__actions__divider"}),e._v(" "),t("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){e.rotate=e.rotate-90}}}),e._v(" "),t("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){e.rotate=e.rotate+90}}})])])]):e._e()}),[],!1,null,null,null).exports,_n=c({name:"CropperImage",mixins:[J],components:{VueCropper:n(8).VueCropper},data:function(){return{visible:!1,previews:{},option:{}}},methods:{show:function(){this.visible=!0},changeScale:function(e){e=e||1,this.$refs.cropper.changeScale(e)},rotateLeft:function(){this.$refs.cropper.rotateLeft()},rotateRight:function(){this.$refs.cropper.rotateRight()},realTime:function(e){this.previews=e},submit:function(){var e=this;this.visible=!1,this.$refs.cropper.getCropData((function(t){var n=t;"file"===e.option.type&&(n=Object(S.e)(t,"".concat((new Date).getTime(),".").concat(e.option.outputType))),e.option.callback&&e.option.callback(n)}))},cancel:function(e){e&&e(),this.visible=!1,this.option.cancel&&this.option.cancel(),"function"==typeof this.option.beforeClose&&this.option.beforeClose(),this.$destroy(),this.$el.remove()}}},(function(){var e=this,t=e._self._c;return t("el-dialog",{staticClass:"avue-dialog avue-cropper",attrs:{visible:e.visible,"before-close":e.cancel,"close-on-press-escape":!1,"close-on-click-modal":!1,"modal-append-to-body":e.$AVUE.modalAppendToBody,"append-to-body":e.$AVUE.appendToBody,width:"1000px"},on:{"update:visible":function(t){e.visible=t}}},[t("div",{staticClass:"cropper-content"},[t("div",{staticClass:"cropper-box"},[t("div",{staticClass:"cropper"},[t("vue-cropper",{ref:"cropper",attrs:{img:e.option.img,outputSize:e.option.outputSize,outputType:e.option.outputType,info:e.option.info,canScale:e.option.canScale,autoCrop:e.option.autoCrop,autoCropWidth:e.option.autoCropWidth,autoCropHeight:e.option.autoCropHeight,fixed:e.option.fixed,fixedNumber:e.option.fixedNumber,full:e.option.full,fixedBox:e.option.fixedBox,canMove:e.option.canMove,canMoveBox:e.option.canMoveBox,original:e.option.original,centerBox:e.option.centerBox,height:e.option.height,infoTrue:e.option.infoTrue,maxImgSize:e.option.maxImgSize,enlarge:e.option.enlarge,mode:e.option.mode},on:{realTime:e.realTime}})],1),e._v(" "),t("div",{staticClass:"footer-btn"},[t("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-zoom-in"},on:{click:function(t){return e.changeScale(1)}}}),e._v(" "),t("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-zoom-out"},on:{click:function(t){return e.changeScale(-1)}}}),e._v(" "),t("el-button",{attrs:{size:"mini",icon:"el-icon-back",type:"danger"},on:{click:e.rotateLeft}}),e._v(" "),t("el-button",{attrs:{size:"mini",type:"danger",icon:"el-icon-right"},on:{click:e.rotateRight}})],1)]),e._v(" "),t("div",{staticClass:"show-preview"},[t("div",{staticClass:"preview",style:e.previews.div},[t("img",{style:e.previews.img,attrs:{src:e.previews.url}})])])]),e._v(" "),t("span",{staticClass:"avue-dialog__footer"},[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.submit}},[e._v(e._s(e.t("common.submitBtn")))]),e._v(" "),t("el-button",{attrs:{size:"small"},on:{click:function(t){return e.cancel()}}},[e._v(e._s(e.t("common.cancelBtn")))])],1)])}),[],!1,null,null,null).exports,yn=c({data:function(){return{opt:{},disabled:!1,callback:null,visible:!1,dialog:{closeOnClickModal:!1},isDrawer:!1,option:{submitText:"提交",emptyText:"关闭",submitIcon:"el-icon-check",emptyIcon:"el-icon-close",column:[]},data:{}}},computed:{dialogType:function(){return this.isDrawer?"elDrawer":"elDialog"},menuPosition:function(){return this.opt.menuPosition||"center"}},methods:{submit:function(){this.$refs.form.submit()},reset:function(){this.$refs.form.resetForm()},beforeClose:function(e){e(),this.close()},show:function(e){this.opt=e,this.callback=e.callback;var t=this.deepClone(e);["callback","option","data"].forEach((function(e){return delete t[e]})),this.dialog=Object.assign(this.dialog,t),this.dialog.size=this.dialog.width,this.isDrawer="drawer"===this.dialog.type,this.option=Object.assign(this.option,e.option),this.data=e.data,this.visible=!0},close:function(){var e=this,t=function(){e.visible=!1,e.$destroy(),e.$el.remove()};"function"==typeof this.dialog.beforeClose?this.dialog.beforeClose(t):t()},handleSubmit:function(e,t){this.callback&&this.callback({data:e,close:this.close,done:t})}}},(function(){var e=this,t=e._self._c;return t(e.dialogType,e._b({tag:"component",staticClass:"avue-dialog",attrs:{visible:e.visible,"destroy-on-close":"",beforeClose:e.beforeClose},on:{"update:visible":function(t){e.visible=t}}},"component",e.dialog,!1),[t("avue-form",{ref:"form",attrs:{option:{...e.deepClone(e.option),menuBtn:!1},status:e.disabled},on:{"update:status":function(t){e.disabled=t},submit:e.handleSubmit,"reset-change":e.close},model:{value:e.data,callback:function(t){e.data=t},expression:"data"}}),e._v(" "),e.vaildData(e.option.menuBtn,!0)?t("span",{staticClass:"avue-dialog__footer",class:"avue-dialog__footer--"+e.menuPosition},[e.vaildData(e.option.submitBtn,!0)?t("el-button",{attrs:{size:e.$AVUE.size,icon:e.option.submitIcon,loading:e.disabled,type:"primary"},on:{click:e.submit}},[e._v(e._s(e.option.submitText))]):e._e(),e._v(" "),e.vaildData(e.option.emptyBtn,!0)?t("el-button",{attrs:{disabled:e.disabled,size:e.$AVUE.size,icon:e.option.emptyIcon},on:{click:e.reset}},[e._v(e._s(e.option.emptyText))]):e._e()],1):e._e()],1)}),[],!1,null,null,null).exports,wn=function(){this.$root={}};function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xn(Object(n),!0).forEach((function(t){Cn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wn.prototype.initMounted=function(){var e;this.$root=((e=new(window.Vue.extend(yn))).vm=e.$mount(),document.body.appendChild(e.vm.$el),e.dom=e.vm.$el,e.vm)},wn.prototype.show=function(e){this.initMounted(),this.$root.show(e)};var An={$ImagePreview:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=window.Vue.extend(bn),i={datas:e,index:t,ops:Object.assign({closeOnClickModal:!1,beforeClose:null,click:null,modal:!0},n)},o=new r({data:i});return o.vm=o.$mount(),document.body.appendChild(o.vm.$el),o.vm.isShow=!0,o.dom=o.vm.$el,o.vm},$ImageCropper:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=window.Vue.extend(_n),n=Object.assign({outputSize:1,outputType:"jpeg",info:!0,canScale:!0,autoCrop:!0,fixed:!1,full:!1,fixedBox:!1,canMove:!0,canMoveBox:!0,original:!1,centerBox:!1,height:!0,infoTrue:!1,enlarge:1},e),r=new t({data:{option:n}});return r.vm=r.$mount(),document.body.appendChild(r.vm.$el),r.vm.show(),r.dom=r.vm.$el,r.vm},$DialogForm:new wn,$Export:fn,$Print:mn,$Clipboard:function(e){var t=e.text;return new Promise((function(e,n){var r=document.body,i="rtl"==document.documentElement.getAttribute("dir"),o=document.createElement("textarea");o.style.fontSize="12pt",o.style.border="0",o.style.padding="0",o.style.margin="0",o.style.position="absolute",o.style[i?"right":"left"]="-9999px";var a=window.pageYOffset||document.documentElement.scrollTop;o.style.top="".concat(a,"px"),o.setAttribute("readonly",""),o.value=t,r.appendChild(o),function(e){if("SELECT"===e.nodeName)e.focus(),e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var t=e.hasAttribute("readonly");t||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),t||e.removeAttribute("readonly"),e.value}else{e.hasAttribute("contenteditable")&&e.focus();var n=window.getSelection(),r=document.createRange();r.selectNodeContents(e),n.removeAllRanges(),n.addRange(r),n.toString()}}(o);try{document.execCommand("copy"),e()}catch(e){n()}}))},$Log:x,$NProgress:vn,$Screenshot:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(window.html2canvas)return window.html2canvas(e,t);C.logs("Screenshot")},deepClone:S.f,dataURLtoFile:S.e,isJson:S.r,setPx:S.w,vaildData:S.y,findArray:S.j,findNode:S.k,validatenull:E.a,downFile:S.h,loadScript:S.t,watermark:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new yt(e)},findObject:S.l,randomId:S.u},Sn={dialogDrag:cn,contextmenu:ln},En=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"dark"===t.theme&&(document.documentElement.className="avue-theme--dark");var n={size:t.size||"small",calcHeight:t.calcHeight||0,menuType:t.menuType||"text",modalAppendToBody:Object(S.y)(t.modalAppendToBody,!0),appendToBody:Object(S.y)(t.appendToBody,!0),canvas:Object.assign({text:"avuejs.com",fontFamily:"microsoft yahei",color:"#999",fontSize:16,opacity:100,bottom:10,right:10,ratio:1},t.canvas),qiniu:Object.assign({AK:"",SK:"",scope:"",url:"",bucket:"https://upload.qiniup.com",deadline:1},t.qiniu||{}),ali:Object.assign({region:"",endpoint:"",stsToken:"",accessKeyId:"",accessKeySecret:"",bucket:""},t.ali||{})};e.prototype.$AVUE=Object.assign(t,n),Object.keys(on).forEach((function(t){var n=on[t];e.component(n.name,n)})),Object.keys(An).forEach((function(t){e.prototype[t]=An[t]})),Object.keys(Sn).forEach((function(t){e.directive(t,Sn[t])})),Q.use(t.locale),Q.i18n(t.i18n),e.prototype.$axios=t.axios||window.axios||sn.a,window.axios=e.prototype.$axios,window.Vue=e,e.prototype.$uploadFun=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;t=t||this;var n=["uploadPreview","uploadBefore","uploadAfter","uploadDelete","uploadError","uploadExceed"],r={};return"upload"===e.type?n.forEach((function(n){e[n]||(r[n]=t[n])})):n.forEach((function(e){r[e]=t[e]})),r}};"undefined"!=typeof window&&window.Vue&&En(window.Vue),t.default=kn(kn({},{version:"2.11.0",locale:Q,install:En}),on)}]).default}))},8119:function(e,t,n){n("693d"),n("dfe5"),n("301c"),n("4e71"),e.exports=n("5524").Symbol},8172:function(e,t,n){"use strict";var r=n("e065"),i=n("57b9");r("toPrimitive"),i()},"818b":function(e,t,n){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(o,i),t.JsonHighlightRules=o})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var o=i[1].length,a=e.findMatchingBracket({row:t,column:o});if(!a||a.row==t)return 0;var s=this.$getIndent(e.getLine(a.row));e.replace(new r(t,0,t,o-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,a);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}if("markbegin"!==t){o=i.match(this.foldingStopMarker);if(o){a=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,a):e.getCommentFoldRange(n,a,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length;t+=1;var s=t,c=e.getLength();while(++t<c){n=e.getLine(t);var l=n.search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;while(++n<o){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?c--:c++,!c))break}var u=n;if(u>a)return new i(a,r,u,t.length)}}.call(a.prototype)})),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],(function(e,t,r){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,a=e("./json_highlight_rules").JsonHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,c=e("./behaviour/cstyle").CstyleBehaviour,l=e("./folding/cstyle").FoldMode,u=e("../worker/worker_client").WorkerClient,d=function(){this.HighlightRules=a,this.$outdent=new s,this.$behaviour=new c,this.foldingRules=new l};i.inherits(d,o),function(){this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t);if("start"==e){var i=t.match(/^.*[\{\(\[]\s*$/);i&&(r+=n)}return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new u(["ace"],n("e8ff"),"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/json"}.call(d.prototype),t.Mode=d}))},"81b2":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("e330"),s=n("c65b"),c=n("d039"),l=n("577e"),u=n("d6d6"),d=n("b917").c2i,f=/[^\d+/a-z]/i,p=/[\t\n\f\r ]+/g,h=/[=]{1,2}$/,m=o("atob"),g=String.fromCharCode,v=a("".charAt),b=a("".replace),_=a(f.exec),y=!!m&&!c((function(){return"hi"!==m("aGk=")})),w=y&&c((function(){return""!==m(" ")})),x=y&&!c((function(){m("a")})),k=y&&!c((function(){m()})),C=y&&1!==m.length,A=!y||w||x||k||C;r({global:!0,bind:!0,enumerable:!0,forced:A},{atob:function(e){if(u(arguments.length,1),y&&!w&&!x)return s(m,i,e);var t,n,r,a=b(l(e),p,""),c="",k=0,C=0;if(a.length%4===0&&(a=b(a,h,"")),t=a.length,t%4===1||_(f,a))throw new(o("DOMException"))("The string is not correctly encoded","InvalidCharacterError");while(k<t)n=v(a,k++),r=C%4?64*r+d[n]:d[n],C++%4&&(c+=g(255&r>>(-2*C&6)));return c}})},"81d5":function(e,t,n){"use strict";var r=n("7b0b"),i=n("23cb"),o=n("07fa");e.exports=function(e){var t=r(this),n=o(t),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,l=void 0===c?n:i(c,n);while(l>s)t[s++]=e;return t}},"825a":function(e,t,n){"use strict";var r=n("861d"),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},"82f8":function(e,t,n){"use strict";var r=n("ebb5"),i=n("4d64").includes,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("includes",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},8393:function(e,t,n){var r=n("1935"),i=n("1690"),o=n("8973"),a=n("673b")("src"),s=n("2e13"),c="toString",l=(""+s).split(c);n("ff91").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,a)||i(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,c,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"83ab":function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){"use strict";var r=n("a04b"),i=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},"84ec":function(e,t,n){n("2401")},"85d0":function(e,t,n){var r=n("d37d");e.exports=function(e){return Object(r(e))}},"85e7":function(e,t,n){var r=n("1a14"),i=n("77e9"),o=n("9876");e.exports=n("0bad")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,c=0;while(s>c)r.f(e,n=a[c++],t[n]);return e}},"861d":function(e,t,n){"use strict";var r=n("1626");e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},8720:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));n("333c");function r(e,t){}var i=n("e866");const o="[[FORM-CREATE-PREFIX-",a="-FORM-CREATE-SUFFIX]]",s="$FN:",c="$FNX:",l="function";function u(e){return new Function("return "+e)()}function d(e,t){if(e&&i["a"].String(e)&&e.length>4){let i=e.trim(),d=!1;try{if(i.indexOf(a)>0&&0===i.indexOf(o))i=i.replace(a,"").replace(o,""),d=!0;else if(0===i.indexOf(s))i=i.replace(s,""),d=!0;else{if(0===i.indexOf(c))return i=u("function($inject){"+i.replace(c,"")+"}"),i.__json=e,i.__inject=!0,i;t||0!==i.indexOf(l)||i===l||(d=!0)}if(!d)return e;const n=u(-1===i.indexOf(l)&&0!==i.indexOf("(")?l+" "+i:i);return n.__json=e,n}catch(n){return void r(`解析失败:${i}\n\nerr: ${n}`)}}return e}},8733:function(e,t,n){var r=n("1328");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"88a7":function(e,t,n){"use strict";var r=n("cb2d"),i=n("e330"),o=n("577e"),a=n("d6d6"),s=URLSearchParams,c=s.prototype,l=i(c.append),u=i(c["delete"]),d=i(c.forEach),f=i([].push),p=new s("a=1&a=2&b=3");p["delete"]("a",1),p["delete"]("b",void 0),p+""!=="a=2"&&r(c,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return u(this,e);var r=[];d(this,(function(e,t){f(r,{key:t,value:e})})),a(t,1);var i,s=o(e),c=o(n),p=0,h=0,m=!1,g=r.length;while(p<g)i=r[p++],m||i.key===s?(m=!0,u(this,i.key)):h++;while(h<g)i=r[h++],i.key===s&&i.value===c||l(this,i.key,i.value)}),{enumerable:!0,unsafe:!0})},8925:function(e,t,n){"use strict";var r=n("e330"),i=n("1626"),o=n("c6cd"),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},8952:function(e,t,n){var r=n("0ffc").f,i=n("8973"),o=n("b3ad")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},8973:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},8997:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"8a0d":function(e,t){e.exports={}},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8aa7":function(e,t,n){"use strict";var r=n("da84"),i=n("d039"),o=n("1c7e"),a=n("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,c=r.Int8Array;e.exports=!a||!i((function(){c(1)}))||!i((function(){new c(-1)}))||!o((function(e){new c,new c(null),new c(1.5),new c(e)}),!0)||i((function(){return 1!==new c(new s(2),1,void 0).length}))},"8b1a":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"8bd4":function(e,t,n){"use strict";var r=n("d066"),i=n("d44e"),o="DOMException";i(r(o),o)},"8c18":function(e,t){ace.define("ace/snippets/css",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText="snippet .\n\t${1} {\n\t\t${2}\n\t}\nsnippet !\n\t !important\nsnippet bdi:m+\n\t-moz-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\nsnippet bdi:m\n\t-moz-border-image: ${1};\nsnippet bdrz:m\n\t-moz-border-radius: ${1};\nsnippet bxsh:m+\n\t-moz-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet bxsh:m\n\t-moz-box-shadow: ${1};\nsnippet bdi:w+\n\t-webkit-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\nsnippet bdi:w\n\t-webkit-border-image: ${1};\nsnippet bdrz:w\n\t-webkit-border-radius: ${1};\nsnippet bxsh:w+\n\t-webkit-box-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet bxsh:w\n\t-webkit-box-shadow: ${1};\nsnippet @f\n\t@font-face {\n\t\tfont-family: ${1};\n\t\tsrc: url(${2});\n\t}\nsnippet @i\n\t@import url(${1});\nsnippet @m\n\t@media ${1:print} {\n\t\t${2}\n\t}\nsnippet bg+\n\tbackground: #${1:FFF} url(${2}) ${3:0} ${4:0} ${5:no-repeat};\nsnippet bga\n\tbackground-attachment: ${1};\nsnippet bga:f\n\tbackground-attachment: fixed;\nsnippet bga:s\n\tbackground-attachment: scroll;\nsnippet bgbk\n\tbackground-break: ${1};\nsnippet bgbk:bb\n\tbackground-break: bounding-box;\nsnippet bgbk:c\n\tbackground-break: continuous;\nsnippet bgbk:eb\n\tbackground-break: each-box;\nsnippet bgcp\n\tbackground-clip: ${1};\nsnippet bgcp:bb\n\tbackground-clip: border-box;\nsnippet bgcp:cb\n\tbackground-clip: content-box;\nsnippet bgcp:nc\n\tbackground-clip: no-clip;\nsnippet bgcp:pb\n\tbackground-clip: padding-box;\nsnippet bgc\n\tbackground-color: #${1:FFF};\nsnippet bgc:t\n\tbackground-color: transparent;\nsnippet bgi\n\tbackground-image: url(${1});\nsnippet bgi:n\n\tbackground-image: none;\nsnippet bgo\n\tbackground-origin: ${1};\nsnippet bgo:bb\n\tbackground-origin: border-box;\nsnippet bgo:cb\n\tbackground-origin: content-box;\nsnippet bgo:pb\n\tbackground-origin: padding-box;\nsnippet bgpx\n\tbackground-position-x: ${1};\nsnippet bgpy\n\tbackground-position-y: ${1};\nsnippet bgp\n\tbackground-position: ${1:0} ${2:0};\nsnippet bgr\n\tbackground-repeat: ${1};\nsnippet bgr:n\n\tbackground-repeat: no-repeat;\nsnippet bgr:x\n\tbackground-repeat: repeat-x;\nsnippet bgr:y\n\tbackground-repeat: repeat-y;\nsnippet bgr:r\n\tbackground-repeat: repeat;\nsnippet bgz\n\tbackground-size: ${1};\nsnippet bgz:a\n\tbackground-size: auto;\nsnippet bgz:ct\n\tbackground-size: contain;\nsnippet bgz:cv\n\tbackground-size: cover;\nsnippet bg\n\tbackground: ${1};\nsnippet bg:ie\n\tfilter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${1}',sizingMethod='${2:crop}');\nsnippet bg:n\n\tbackground: none;\nsnippet bd+\n\tborder: ${1:1px} ${2:solid} #${3:000};\nsnippet bdb+\n\tborder-bottom: ${1:1px} ${2:solid} #${3:000};\nsnippet bdbc\n\tborder-bottom-color: #${1:000};\nsnippet bdbi\n\tborder-bottom-image: url(${1});\nsnippet bdbi:n\n\tborder-bottom-image: none;\nsnippet bdbli\n\tborder-bottom-left-image: url(${1});\nsnippet bdbli:c\n\tborder-bottom-left-image: continue;\nsnippet bdbli:n\n\tborder-bottom-left-image: none;\nsnippet bdblrz\n\tborder-bottom-left-radius: ${1};\nsnippet bdbri\n\tborder-bottom-right-image: url(${1});\nsnippet bdbri:c\n\tborder-bottom-right-image: continue;\nsnippet bdbri:n\n\tborder-bottom-right-image: none;\nsnippet bdbrrz\n\tborder-bottom-right-radius: ${1};\nsnippet bdbs\n\tborder-bottom-style: ${1};\nsnippet bdbs:n\n\tborder-bottom-style: none;\nsnippet bdbw\n\tborder-bottom-width: ${1};\nsnippet bdb\n\tborder-bottom: ${1};\nsnippet bdb:n\n\tborder-bottom: none;\nsnippet bdbk\n\tborder-break: ${1};\nsnippet bdbk:c\n\tborder-break: close;\nsnippet bdcl\n\tborder-collapse: ${1};\nsnippet bdcl:c\n\tborder-collapse: collapse;\nsnippet bdcl:s\n\tborder-collapse: separate;\nsnippet bdc\n\tborder-color: #${1:000};\nsnippet bdci\n\tborder-corner-image: url(${1});\nsnippet bdci:c\n\tborder-corner-image: continue;\nsnippet bdci:n\n\tborder-corner-image: none;\nsnippet bdf\n\tborder-fit: ${1};\nsnippet bdf:c\n\tborder-fit: clip;\nsnippet bdf:of\n\tborder-fit: overwrite;\nsnippet bdf:ow\n\tborder-fit: overwrite;\nsnippet bdf:r\n\tborder-fit: repeat;\nsnippet bdf:sc\n\tborder-fit: scale;\nsnippet bdf:sp\n\tborder-fit: space;\nsnippet bdf:st\n\tborder-fit: stretch;\nsnippet bdi\n\tborder-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\nsnippet bdi:n\n\tborder-image: none;\nsnippet bdl+\n\tborder-left: ${1:1px} ${2:solid} #${3:000};\nsnippet bdlc\n\tborder-left-color: #${1:000};\nsnippet bdli\n\tborder-left-image: url(${1});\nsnippet bdli:n\n\tborder-left-image: none;\nsnippet bdls\n\tborder-left-style: ${1};\nsnippet bdls:n\n\tborder-left-style: none;\nsnippet bdlw\n\tborder-left-width: ${1};\nsnippet bdl\n\tborder-left: ${1};\nsnippet bdl:n\n\tborder-left: none;\nsnippet bdlt\n\tborder-length: ${1};\nsnippet bdlt:a\n\tborder-length: auto;\nsnippet bdrz\n\tborder-radius: ${1};\nsnippet bdr+\n\tborder-right: ${1:1px} ${2:solid} #${3:000};\nsnippet bdrc\n\tborder-right-color: #${1:000};\nsnippet bdri\n\tborder-right-image: url(${1});\nsnippet bdri:n\n\tborder-right-image: none;\nsnippet bdrs\n\tborder-right-style: ${1};\nsnippet bdrs:n\n\tborder-right-style: none;\nsnippet bdrw\n\tborder-right-width: ${1};\nsnippet bdr\n\tborder-right: ${1};\nsnippet bdr:n\n\tborder-right: none;\nsnippet bdsp\n\tborder-spacing: ${1};\nsnippet bds\n\tborder-style: ${1};\nsnippet bds:ds\n\tborder-style: dashed;\nsnippet bds:dtds\n\tborder-style: dot-dash;\nsnippet bds:dtdtds\n\tborder-style: dot-dot-dash;\nsnippet bds:dt\n\tborder-style: dotted;\nsnippet bds:db\n\tborder-style: double;\nsnippet bds:g\n\tborder-style: groove;\nsnippet bds:h\n\tborder-style: hidden;\nsnippet bds:i\n\tborder-style: inset;\nsnippet bds:n\n\tborder-style: none;\nsnippet bds:o\n\tborder-style: outset;\nsnippet bds:r\n\tborder-style: ridge;\nsnippet bds:s\n\tborder-style: solid;\nsnippet bds:w\n\tborder-style: wave;\nsnippet bdt+\n\tborder-top: ${1:1px} ${2:solid} #${3:000};\nsnippet bdtc\n\tborder-top-color: #${1:000};\nsnippet bdti\n\tborder-top-image: url(${1});\nsnippet bdti:n\n\tborder-top-image: none;\nsnippet bdtli\n\tborder-top-left-image: url(${1});\nsnippet bdtli:c\n\tborder-corner-image: continue;\nsnippet bdtli:n\n\tborder-corner-image: none;\nsnippet bdtlrz\n\tborder-top-left-radius: ${1};\nsnippet bdtri\n\tborder-top-right-image: url(${1});\nsnippet bdtri:c\n\tborder-top-right-image: continue;\nsnippet bdtri:n\n\tborder-top-right-image: none;\nsnippet bdtrrz\n\tborder-top-right-radius: ${1};\nsnippet bdts\n\tborder-top-style: ${1};\nsnippet bdts:n\n\tborder-top-style: none;\nsnippet bdtw\n\tborder-top-width: ${1};\nsnippet bdt\n\tborder-top: ${1};\nsnippet bdt:n\n\tborder-top: none;\nsnippet bdw\n\tborder-width: ${1};\nsnippet bd\n\tborder: ${1};\nsnippet bd:n\n\tborder: none;\nsnippet b\n\tbottom: ${1};\nsnippet b:a\n\tbottom: auto;\nsnippet bxsh+\n\tbox-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet bxsh\n\tbox-shadow: ${1};\nsnippet bxsh:n\n\tbox-shadow: none;\nsnippet bxz\n\tbox-sizing: ${1};\nsnippet bxz:bb\n\tbox-sizing: border-box;\nsnippet bxz:cb\n\tbox-sizing: content-box;\nsnippet cps\n\tcaption-side: ${1};\nsnippet cps:b\n\tcaption-side: bottom;\nsnippet cps:t\n\tcaption-side: top;\nsnippet cl\n\tclear: ${1};\nsnippet cl:b\n\tclear: both;\nsnippet cl:l\n\tclear: left;\nsnippet cl:n\n\tclear: none;\nsnippet cl:r\n\tclear: right;\nsnippet cp\n\tclip: ${1};\nsnippet cp:a\n\tclip: auto;\nsnippet cp:r\n\tclip: rect(${1:0} ${2:0} ${3:0} ${4:0});\nsnippet c\n\tcolor: #${1:000};\nsnippet ct\n\tcontent: ${1};\nsnippet ct:a\n\tcontent: attr(${1});\nsnippet ct:cq\n\tcontent: close-quote;\nsnippet ct:c\n\tcontent: counter(${1});\nsnippet ct:cs\n\tcontent: counters(${1});\nsnippet ct:ncq\n\tcontent: no-close-quote;\nsnippet ct:noq\n\tcontent: no-open-quote;\nsnippet ct:n\n\tcontent: normal;\nsnippet ct:oq\n\tcontent: open-quote;\nsnippet coi\n\tcounter-increment: ${1};\nsnippet cor\n\tcounter-reset: ${1};\nsnippet cur\n\tcursor: ${1};\nsnippet cur:a\n\tcursor: auto;\nsnippet cur:c\n\tcursor: crosshair;\nsnippet cur:d\n\tcursor: default;\nsnippet cur:ha\n\tcursor: hand;\nsnippet cur:he\n\tcursor: help;\nsnippet cur:m\n\tcursor: move;\nsnippet cur:p\n\tcursor: pointer;\nsnippet cur:t\n\tcursor: text;\nsnippet d\n\tdisplay: ${1};\nsnippet d:mib\n\tdisplay: -moz-inline-box;\nsnippet d:mis\n\tdisplay: -moz-inline-stack;\nsnippet d:b\n\tdisplay: block;\nsnippet d:cp\n\tdisplay: compact;\nsnippet d:ib\n\tdisplay: inline-block;\nsnippet d:itb\n\tdisplay: inline-table;\nsnippet d:i\n\tdisplay: inline;\nsnippet d:li\n\tdisplay: list-item;\nsnippet d:n\n\tdisplay: none;\nsnippet d:ri\n\tdisplay: run-in;\nsnippet d:tbcp\n\tdisplay: table-caption;\nsnippet d:tbc\n\tdisplay: table-cell;\nsnippet d:tbclg\n\tdisplay: table-column-group;\nsnippet d:tbcl\n\tdisplay: table-column;\nsnippet d:tbfg\n\tdisplay: table-footer-group;\nsnippet d:tbhg\n\tdisplay: table-header-group;\nsnippet d:tbrg\n\tdisplay: table-row-group;\nsnippet d:tbr\n\tdisplay: table-row;\nsnippet d:tb\n\tdisplay: table;\nsnippet ec\n\tempty-cells: ${1};\nsnippet ec:h\n\tempty-cells: hide;\nsnippet ec:s\n\tempty-cells: show;\nsnippet exp\n\texpression()\nsnippet fl\n\tfloat: ${1};\nsnippet fl:l\n\tfloat: left;\nsnippet fl:n\n\tfloat: none;\nsnippet fl:r\n\tfloat: right;\nsnippet f+\n\tfont: ${1:1em} ${2:Arial},${3:sans-serif};\nsnippet fef\n\tfont-effect: ${1};\nsnippet fef:eb\n\tfont-effect: emboss;\nsnippet fef:eg\n\tfont-effect: engrave;\nsnippet fef:n\n\tfont-effect: none;\nsnippet fef:o\n\tfont-effect: outline;\nsnippet femp\n\tfont-emphasize-position: ${1};\nsnippet femp:a\n\tfont-emphasize-position: after;\nsnippet femp:b\n\tfont-emphasize-position: before;\nsnippet fems\n\tfont-emphasize-style: ${1};\nsnippet fems:ac\n\tfont-emphasize-style: accent;\nsnippet fems:c\n\tfont-emphasize-style: circle;\nsnippet fems:ds\n\tfont-emphasize-style: disc;\nsnippet fems:dt\n\tfont-emphasize-style: dot;\nsnippet fems:n\n\tfont-emphasize-style: none;\nsnippet fem\n\tfont-emphasize: ${1};\nsnippet ff\n\tfont-family: ${1};\nsnippet ff:c\n\tfont-family: ${1:'Monotype Corsiva','Comic Sans MS'},cursive;\nsnippet ff:f\n\tfont-family: ${1:Capitals,Impact},fantasy;\nsnippet ff:m\n\tfont-family: ${1:Monaco,'Courier New'},monospace;\nsnippet ff:ss\n\tfont-family: ${1:Helvetica,Arial},sans-serif;\nsnippet ff:s\n\tfont-family: ${1:Georgia,'Times New Roman'},serif;\nsnippet fza\n\tfont-size-adjust: ${1};\nsnippet fza:n\n\tfont-size-adjust: none;\nsnippet fz\n\tfont-size: ${1};\nsnippet fsm\n\tfont-smooth: ${1};\nsnippet fsm:aw\n\tfont-smooth: always;\nsnippet fsm:a\n\tfont-smooth: auto;\nsnippet fsm:n\n\tfont-smooth: never;\nsnippet fst\n\tfont-stretch: ${1};\nsnippet fst:c\n\tfont-stretch: condensed;\nsnippet fst:e\n\tfont-stretch: expanded;\nsnippet fst:ec\n\tfont-stretch: extra-condensed;\nsnippet fst:ee\n\tfont-stretch: extra-expanded;\nsnippet fst:n\n\tfont-stretch: normal;\nsnippet fst:sc\n\tfont-stretch: semi-condensed;\nsnippet fst:se\n\tfont-stretch: semi-expanded;\nsnippet fst:uc\n\tfont-stretch: ultra-condensed;\nsnippet fst:ue\n\tfont-stretch: ultra-expanded;\nsnippet fs\n\tfont-style: ${1};\nsnippet fs:i\n\tfont-style: italic;\nsnippet fs:n\n\tfont-style: normal;\nsnippet fs:o\n\tfont-style: oblique;\nsnippet fv\n\tfont-variant: ${1};\nsnippet fv:n\n\tfont-variant: normal;\nsnippet fv:sc\n\tfont-variant: small-caps;\nsnippet fw\n\tfont-weight: ${1};\nsnippet fw:b\n\tfont-weight: bold;\nsnippet fw:br\n\tfont-weight: bolder;\nsnippet fw:lr\n\tfont-weight: lighter;\nsnippet fw:n\n\tfont-weight: normal;\nsnippet f\n\tfont: ${1};\nsnippet h\n\theight: ${1};\nsnippet h:a\n\theight: auto;\nsnippet l\n\tleft: ${1};\nsnippet l:a\n\tleft: auto;\nsnippet lts\n\tletter-spacing: ${1};\nsnippet lh\n\tline-height: ${1};\nsnippet lisi\n\tlist-style-image: url(${1});\nsnippet lisi:n\n\tlist-style-image: none;\nsnippet lisp\n\tlist-style-position: ${1};\nsnippet lisp:i\n\tlist-style-position: inside;\nsnippet lisp:o\n\tlist-style-position: outside;\nsnippet list\n\tlist-style-type: ${1};\nsnippet list:c\n\tlist-style-type: circle;\nsnippet list:dclz\n\tlist-style-type: decimal-leading-zero;\nsnippet list:dc\n\tlist-style-type: decimal;\nsnippet list:d\n\tlist-style-type: disc;\nsnippet list:lr\n\tlist-style-type: lower-roman;\nsnippet list:n\n\tlist-style-type: none;\nsnippet list:s\n\tlist-style-type: square;\nsnippet list:ur\n\tlist-style-type: upper-roman;\nsnippet lis\n\tlist-style: ${1};\nsnippet lis:n\n\tlist-style: none;\nsnippet mb\n\tmargin-bottom: ${1};\nsnippet mb:a\n\tmargin-bottom: auto;\nsnippet ml\n\tmargin-left: ${1};\nsnippet ml:a\n\tmargin-left: auto;\nsnippet mr\n\tmargin-right: ${1};\nsnippet mr:a\n\tmargin-right: auto;\nsnippet mt\n\tmargin-top: ${1};\nsnippet mt:a\n\tmargin-top: auto;\nsnippet m\n\tmargin: ${1};\nsnippet m:4\n\tmargin: ${1:0} ${2:0} ${3:0} ${4:0};\nsnippet m:3\n\tmargin: ${1:0} ${2:0} ${3:0};\nsnippet m:2\n\tmargin: ${1:0} ${2:0};\nsnippet m:0\n\tmargin: 0;\nsnippet m:a\n\tmargin: auto;\nsnippet mah\n\tmax-height: ${1};\nsnippet mah:n\n\tmax-height: none;\nsnippet maw\n\tmax-width: ${1};\nsnippet maw:n\n\tmax-width: none;\nsnippet mih\n\tmin-height: ${1};\nsnippet miw\n\tmin-width: ${1};\nsnippet op\n\topacity: ${1};\nsnippet op:ie\n\tfilter: progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100});\nsnippet op:ms\n\t-ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=${1:100})';\nsnippet orp\n\torphans: ${1};\nsnippet o+\n\toutline: ${1:1px} ${2:solid} #${3:000};\nsnippet oc\n\toutline-color: ${1:#000};\nsnippet oc:i\n\toutline-color: invert;\nsnippet oo\n\toutline-offset: ${1};\nsnippet os\n\toutline-style: ${1};\nsnippet ow\n\toutline-width: ${1};\nsnippet o\n\toutline: ${1};\nsnippet o:n\n\toutline: none;\nsnippet ovs\n\toverflow-style: ${1};\nsnippet ovs:a\n\toverflow-style: auto;\nsnippet ovs:mq\n\toverflow-style: marquee;\nsnippet ovs:mv\n\toverflow-style: move;\nsnippet ovs:p\n\toverflow-style: panner;\nsnippet ovs:s\n\toverflow-style: scrollbar;\nsnippet ovx\n\toverflow-x: ${1};\nsnippet ovx:a\n\toverflow-x: auto;\nsnippet ovx:h\n\toverflow-x: hidden;\nsnippet ovx:s\n\toverflow-x: scroll;\nsnippet ovx:v\n\toverflow-x: visible;\nsnippet ovy\n\toverflow-y: ${1};\nsnippet ovy:a\n\toverflow-y: auto;\nsnippet ovy:h\n\toverflow-y: hidden;\nsnippet ovy:s\n\toverflow-y: scroll;\nsnippet ovy:v\n\toverflow-y: visible;\nsnippet ov\n\toverflow: ${1};\nsnippet ov:a\n\toverflow: auto;\nsnippet ov:h\n\toverflow: hidden;\nsnippet ov:s\n\toverflow: scroll;\nsnippet ov:v\n\toverflow: visible;\nsnippet pb\n\tpadding-bottom: ${1};\nsnippet pl\n\tpadding-left: ${1};\nsnippet pr\n\tpadding-right: ${1};\nsnippet pt\n\tpadding-top: ${1};\nsnippet p\n\tpadding: ${1};\nsnippet p:4\n\tpadding: ${1:0} ${2:0} ${3:0} ${4:0};\nsnippet p:3\n\tpadding: ${1:0} ${2:0} ${3:0};\nsnippet p:2\n\tpadding: ${1:0} ${2:0};\nsnippet p:0\n\tpadding: 0;\nsnippet pgba\n\tpage-break-after: ${1};\nsnippet pgba:aw\n\tpage-break-after: always;\nsnippet pgba:a\n\tpage-break-after: auto;\nsnippet pgba:l\n\tpage-break-after: left;\nsnippet pgba:r\n\tpage-break-after: right;\nsnippet pgbb\n\tpage-break-before: ${1};\nsnippet pgbb:aw\n\tpage-break-before: always;\nsnippet pgbb:a\n\tpage-break-before: auto;\nsnippet pgbb:l\n\tpage-break-before: left;\nsnippet pgbb:r\n\tpage-break-before: right;\nsnippet pgbi\n\tpage-break-inside: ${1};\nsnippet pgbi:a\n\tpage-break-inside: auto;\nsnippet pgbi:av\n\tpage-break-inside: avoid;\nsnippet pos\n\tposition: ${1};\nsnippet pos:a\n\tposition: absolute;\nsnippet pos:f\n\tposition: fixed;\nsnippet pos:r\n\tposition: relative;\nsnippet pos:s\n\tposition: static;\nsnippet q\n\tquotes: ${1};\nsnippet q:en\n\tquotes: '\\201C' '\\201D' '\\2018' '\\2019';\nsnippet q:n\n\tquotes: none;\nsnippet q:ru\n\tquotes: '\\00AB' '\\00BB' '\\201E' '\\201C';\nsnippet rz\n\tresize: ${1};\nsnippet rz:b\n\tresize: both;\nsnippet rz:h\n\tresize: horizontal;\nsnippet rz:n\n\tresize: none;\nsnippet rz:v\n\tresize: vertical;\nsnippet r\n\tright: ${1};\nsnippet r:a\n\tright: auto;\nsnippet tbl\n\ttable-layout: ${1};\nsnippet tbl:a\n\ttable-layout: auto;\nsnippet tbl:f\n\ttable-layout: fixed;\nsnippet tal\n\ttext-align-last: ${1};\nsnippet tal:a\n\ttext-align-last: auto;\nsnippet tal:c\n\ttext-align-last: center;\nsnippet tal:l\n\ttext-align-last: left;\nsnippet tal:r\n\ttext-align-last: right;\nsnippet ta\n\ttext-align: ${1};\nsnippet ta:c\n\ttext-align: center;\nsnippet ta:l\n\ttext-align: left;\nsnippet ta:r\n\ttext-align: right;\nsnippet td\n\ttext-decoration: ${1};\nsnippet td:l\n\ttext-decoration: line-through;\nsnippet td:n\n\ttext-decoration: none;\nsnippet td:o\n\ttext-decoration: overline;\nsnippet td:u\n\ttext-decoration: underline;\nsnippet te\n\ttext-emphasis: ${1};\nsnippet te:ac\n\ttext-emphasis: accent;\nsnippet te:a\n\ttext-emphasis: after;\nsnippet te:b\n\ttext-emphasis: before;\nsnippet te:c\n\ttext-emphasis: circle;\nsnippet te:ds\n\ttext-emphasis: disc;\nsnippet te:dt\n\ttext-emphasis: dot;\nsnippet te:n\n\ttext-emphasis: none;\nsnippet th\n\ttext-height: ${1};\nsnippet th:a\n\ttext-height: auto;\nsnippet th:f\n\ttext-height: font-size;\nsnippet th:m\n\ttext-height: max-size;\nsnippet th:t\n\ttext-height: text-size;\nsnippet ti\n\ttext-indent: ${1};\nsnippet ti:-\n\ttext-indent: -9999px;\nsnippet tj\n\ttext-justify: ${1};\nsnippet tj:a\n\ttext-justify: auto;\nsnippet tj:d\n\ttext-justify: distribute;\nsnippet tj:ic\n\ttext-justify: inter-cluster;\nsnippet tj:ii\n\ttext-justify: inter-ideograph;\nsnippet tj:iw\n\ttext-justify: inter-word;\nsnippet tj:k\n\ttext-justify: kashida;\nsnippet tj:t\n\ttext-justify: tibetan;\nsnippet to+\n\ttext-outline: ${1:0} ${2:0} #${3:000};\nsnippet to\n\ttext-outline: ${1};\nsnippet to:n\n\ttext-outline: none;\nsnippet tr\n\ttext-replace: ${1};\nsnippet tr:n\n\ttext-replace: none;\nsnippet tsh+\n\ttext-shadow: ${1:0} ${2:0} ${3:0} #${4:000};\nsnippet tsh\n\ttext-shadow: ${1};\nsnippet tsh:n\n\ttext-shadow: none;\nsnippet tt\n\ttext-transform: ${1};\nsnippet tt:c\n\ttext-transform: capitalize;\nsnippet tt:l\n\ttext-transform: lowercase;\nsnippet tt:n\n\ttext-transform: none;\nsnippet tt:u\n\ttext-transform: uppercase;\nsnippet tw\n\ttext-wrap: ${1};\nsnippet tw:no\n\ttext-wrap: none;\nsnippet tw:n\n\ttext-wrap: normal;\nsnippet tw:s\n\ttext-wrap: suppress;\nsnippet tw:u\n\ttext-wrap: unrestricted;\nsnippet t\n\ttop: ${1};\nsnippet t:a\n\ttop: auto;\nsnippet va\n\tvertical-align: ${1};\nsnippet va:bl\n\tvertical-align: baseline;\nsnippet va:b\n\tvertical-align: bottom;\nsnippet va:m\n\tvertical-align: middle;\nsnippet va:sub\n\tvertical-align: sub;\nsnippet va:sup\n\tvertical-align: super;\nsnippet va:tb\n\tvertical-align: text-bottom;\nsnippet va:tt\n\tvertical-align: text-top;\nsnippet va:t\n\tvertical-align: top;\nsnippet v\n\tvisibility: ${1};\nsnippet v:c\n\tvisibility: collapse;\nsnippet v:h\n\tvisibility: hidden;\nsnippet v:v\n\tvisibility: visible;\nsnippet whsc\n\twhite-space-collapse: ${1};\nsnippet whsc:ba\n\twhite-space-collapse: break-all;\nsnippet whsc:bs\n\twhite-space-collapse: break-strict;\nsnippet whsc:k\n\twhite-space-collapse: keep-all;\nsnippet whsc:l\n\twhite-space-collapse: loose;\nsnippet whsc:n\n\twhite-space-collapse: normal;\nsnippet whs\n\twhite-space: ${1};\nsnippet whs:n\n\twhite-space: normal;\nsnippet whs:nw\n\twhite-space: nowrap;\nsnippet whs:pl\n\twhite-space: pre-line;\nsnippet whs:pw\n\twhite-space: pre-wrap;\nsnippet whs:p\n\twhite-space: pre;\nsnippet wid\n\twidows: ${1};\nsnippet w\n\twidth: ${1};\nsnippet w:a\n\twidth: auto;\nsnippet wob\n\tword-break: ${1};\nsnippet wob:ba\n\tword-break: break-all;\nsnippet wob:bs\n\tword-break: break-strict;\nsnippet wob:k\n\tword-break: keep-all;\nsnippet wob:l\n\tword-break: loose;\nsnippet wob:n\n\tword-break: normal;\nsnippet wos\n\tword-spacing: ${1};\nsnippet wow\n\tword-wrap: ${1};\nsnippet wow:no\n\tword-wrap: none;\nsnippet wow:n\n\tword-wrap: normal;\nsnippet wow:s\n\tword-wrap: suppress;\nsnippet wow:u\n\tword-wrap: unrestricted;\nsnippet z\n\tz-index: ${1};\nsnippet z:a\n\tz-index: auto;\nsnippet zoo\n\tzoom: 1;\n",t.scope="css"}))},"8c4f":function(e,t,n){"use strict";
/*!
* vue-router v3.5.2
* (c) 2021 Evan You
* @license MIT
*/function r(e,t){0}function i(e,t){for(var n in t)e[n]=t[n];return e}var o=/[!'()*]/g,a=function(e){return"%"+e.charCodeAt(0).toString(16)},s=/%2C/g,c=function(e){return encodeURIComponent(e).replace(o,a).replace(s,",")};function l(e){try{return decodeURIComponent(e)}catch(t){0}return e}function u(e,t,n){void 0===t&&(t={});var r,i=n||f;try{r=i(e||"")}catch(s){r={}}for(var o in t){var a=t[o];r[o]=Array.isArray(a)?a.map(d):d(a)}return r}var d=function(e){return null==e||"object"===typeof e?e:String(e)};function f(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=l(n.shift()),i=n.length>0?l(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]})),t):t}function p(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return c(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(c(t)):r.push(c(t)+"="+c(e)))})),r.join("&")}return c(t)+"="+c(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var h=/\/?$/;function m(e,t,n,r){var i=r&&r.options.stringifyQuery,o=t.query||{};try{o=g(o)}catch(s){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:_(t,i),matched:e?b(e):[]};return n&&(a.redirectedFrom=_(n,i)),Object.freeze(a)}function g(e){if(Array.isArray(e))return e.map(g);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=g(e[n]);return t}return e}var v=m(null,{path:"/"});function b(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function _(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var i=e.hash;void 0===i&&(i="");var o=t||p;return(n||"/")+o(r)+i}function y(e,t,n){return t===v?e===t:!!t&&(e.path&&t.path?e.path.replace(h,"")===t.path.replace(h,"")&&(n||e.hash===t.hash&&w(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(n||e.hash===t.hash&&w(e.query,t.query)&&w(e.params,t.params))))}function w(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.length===r.length&&n.every((function(n,i){var o=e[n],a=r[i];if(a!==n)return!1;var s=t[n];return null==o||null==s?o===s:"object"===typeof o&&"object"===typeof s?w(o,s):String(o)===String(s)}))}function x(e,t){return 0===e.path.replace(h,"/").indexOf(t.path.replace(h,"/"))&&(!t.hash||e.hash===t.hash)&&k(e.query,t.query)}function k(e,t){for(var n in t)if(!(n in e))return!1;return!0}function C(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var r in n.instances){var i=n.instances[r],o=n.enteredCbs[r];if(i&&o){delete n.enteredCbs[r];for(var a=0;a<o.length;a++)i._isBeingDestroyed||o[a](i)}}}}var A={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,o=t.parent,a=t.data;a.routerView=!0;var s=o.$createElement,c=n.name,l=o.$route,u=o._routerViewCache||(o._routerViewCache={}),d=0,f=!1;while(o&&o._routerRoot!==o){var p=o.$vnode?o.$vnode.data:{};p.routerView&&d++,p.keepAlive&&o._directInactive&&o._inactive&&(f=!0),o=o.$parent}if(a.routerViewDepth=d,f){var h=u[c],m=h&&h.component;return m?(h.configProps&&S(m,a,h.route,h.configProps),s(m,a,r)):s()}var g=l.matched[d],v=g&&g.components[c];if(!g||!v)return u[c]=null,s();u[c]={component:v},a.registerRouteInstance=function(e,t){var n=g.instances[c];(t&&n!==e||!t&&n===e)&&(g.instances[c]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){g.instances[c]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==g.instances[c]&&(g.instances[c]=e.componentInstance),C(l)};var b=g.props&&g.props[c];return b&&(i(u[c],{route:l,configProps:b}),S(v,a,l,b)),s(v,a,r)}};function S(e,t,n,r){var o=t.props=E(n,r);if(o){o=t.props=i({},o);var a=t.attrs=t.attrs||{};for(var s in o)e.props&&s in e.props||(a[s]=o[s],delete o[s])}}function E(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}function T(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var i=t.split("/");n&&i[i.length-1]||i.pop();for(var o=e.replace(/^\//,"").split("/"),a=0;a<o.length;a++){var s=o[a];".."===s?i.pop():"."!==s&&i.push(s)}return""!==i[0]&&i.unshift(""),i.join("/")}function O(e){var t="",n="",r=e.indexOf("#");r>=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function R(e){return e.replace(/\/\//g,"/")}var D=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},L=Q,M=P,F=$,N=q,B=X,I=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function P(e,t){var n,r=[],i=0,o=0,a="",s=t&&t.delimiter||"/";while(null!=(n=I.exec(e))){var c=n[0],l=n[1],u=n.index;if(a+=e.slice(o,u),o=u+c.length,l)a+=l[1];else{var d=e[o],f=n[2],p=n[3],h=n[4],m=n[5],g=n[6],v=n[7];a&&(r.push(a),a="");var b=null!=f&&null!=d&&d!==f,_="+"===g||"*"===g,y="?"===g||"*"===g,w=n[2]||s,x=h||m;r.push({name:p||i++,prefix:f||"",delimiter:w,optional:y,repeat:_,partial:b,asterisk:!!v,pattern:x?U(x):v?".*":"[^"+H(w)+"]+?"})}}return o<e.length&&(a+=e.substr(o)),a&&r.push(a),r}function $(e,t){return q(P(e,t),t)}function j(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function z(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function q(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"===typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",V(t)));return function(t,r){for(var i="",o=t||{},a=r||{},s=a.pretty?j:encodeURIComponent,c=0;c<e.length;c++){var l=e[c];if("string"!==typeof l){var u,d=o[l.name];if(null==d){if(l.optional){l.partial&&(i+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(D(d)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var f=0;f<d.length;f++){if(u=s(d[f]),!n[c].test(u))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(u)+"`");i+=(0===f?l.prefix:l.delimiter)+u}}else{if(u=l.asterisk?z(d):s(d),!n[c].test(u))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+u+'"');i+=l.prefix+u}}else i+=l}return i}}function H(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function U(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function W(e,t){return e.keys=t,e}function V(e){return e&&e.sensitive?"":"i"}function G(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return W(e,t)}function K(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(Q(e[i],t,n).source);var o=new RegExp("(?:"+r.join("|")+")",V(n));return W(o,t)}function Y(e,t,n){return X(P(e,n),t,n)}function X(e,t,n){D(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,i=!1!==n.end,o="",a=0;a<e.length;a++){var s=e[a];if("string"===typeof s)o+=H(s);else{var c=H(s.prefix),l="(?:"+s.pattern+")";t.push(s),s.repeat&&(l+="(?:"+c+l+")*"),l=s.optional?s.partial?c+"("+l+")?":"(?:"+c+"("+l+"))?":c+"("+l+")",o+=l}}var u=H(n.delimiter||"/"),d=o.slice(-u.length)===u;return r||(o=(d?o.slice(0,-u.length):o)+"(?:"+u+"(?=$))?"),o+=i?"$":r&&d?"":"(?="+u+"|$)",W(new RegExp("^"+o,V(n)),t)}function Q(e,t,n){return D(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?G(e,t):D(e)?K(e,t,n):Y(e,t,n)}L.parse=M,L.compile=F,L.tokensToFunction=N,L.tokensToRegExp=B;var J=Object.create(null);function Z(e,t,n){t=t||{};try{var r=J[e]||(J[e]=L.compile(e));return"string"===typeof t.pathMatch&&(t[0]=t.pathMatch),r(t,{pretty:!0})}catch(i){return""}finally{delete t[0]}}function ee(e,t,n,r){var o="string"===typeof e?{path:e}:e;if(o._normalized)return o;if(o.name){o=i({},e);var a=o.params;return a&&"object"===typeof a&&(o.params=i({},a)),o}if(!o.path&&o.params&&t){o=i({},o),o._normalized=!0;var s=i(i({},t.params),o.params);if(t.name)o.name=t.name,o.params=s;else if(t.matched.length){var c=t.matched[t.matched.length-1].path;o.path=Z(c,s,"path "+t.path)}else 0;return o}var l=O(o.path||""),d=t&&t.path||"/",f=l.path?T(l.path,d,n||o.append):d,p=u(l.query,o.query,r&&r.options.parseQuery),h=o.hash||l.hash;return h&&"#"!==h.charAt(0)&&(h="#"+h),{_normalized:!0,path:f,query:p,hash:h}}var te,ne=[String,Object],re=[String,Array],ie=function(){},oe={name:"RouterLink",props:{to:{type:ne,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:re,default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),a=o.location,s=o.route,c=o.href,l={},u=n.options.linkActiveClass,d=n.options.linkExactActiveClass,f=null==u?"router-link-active":u,p=null==d?"router-link-exact-active":d,h=null==this.activeClass?f:this.activeClass,g=null==this.exactActiveClass?p:this.exactActiveClass,v=s.redirectedFrom?m(null,ee(s.redirectedFrom),null,n):s;l[g]=y(r,v,this.exactPath),l[h]=this.exact||this.exactPath?l[g]:x(r,v);var b=l[g]?this.ariaCurrentValue:null,_=function(e){ae(e)&&(t.replace?n.replace(a,ie):n.push(a,ie))},w={click:ae};Array.isArray(this.event)?this.event.forEach((function(e){w[e]=_})):w[this.event]=_;var k={class:l},C=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:c,route:s,navigate:_,isActive:l[h],isExactActive:l[g]});if(C){if(1===C.length)return C[0];if(C.length>1||!C.length)return 0===C.length?e():e("span",{},C)}if("a"===this.tag)k.on=w,k.attrs={href:c,"aria-current":b};else{var A=se(this.$slots.default);if(A){A.isStatic=!1;var S=A.data=i({},A.data);for(var E in S.on=S.on||{},S.on){var T=S.on[E];E in w&&(S.on[E]=Array.isArray(T)?T:[T])}for(var O in w)O in S.on?S.on[O].push(w[O]):S.on[O]=_;var R=A.data.attrs=i({},A.data.attrs);R.href=c,R["aria-current"]=b}else k.on=w}return e(this.tag,k,this.$slots.default)}};function ae(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function se(e){if(e)for(var t,n=0;n<e.length;n++){if(t=e[n],"a"===t.tag)return t;if(t.children&&(t=se(t.children)))return t}}function ce(e){if(!ce.installed||te!==e){ce.installed=!0,te=e;var t=function(e){return void 0!==e},n=function(e,n){var r=e.$options._parentVnode;t(r)&&t(r=r.data)&&t(r=r.registerRouteInstance)&&r(e,n)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",A),e.component("RouterLink",oe);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var le="undefined"!==typeof window;function ue(e,t,n,r,i){var o=t||[],a=n||Object.create(null),s=r||Object.create(null);e.forEach((function(e){de(o,a,s,e,i)}));for(var c=0,l=o.length;c<l;c++)"*"===o[c]&&(o.push(o.splice(c,1)[0]),l--,c--);return{pathList:o,pathMap:a,nameMap:s}}function de(e,t,n,r,i,o){var a=r.path,s=r.name;var c=r.pathToRegexpOptions||{},l=pe(a,i,c.strict);"boolean"===typeof r.caseSensitive&&(c.sensitive=r.caseSensitive);var u={path:l,regex:fe(l,c),components:r.components||{default:r.component},alias:r.alias?"string"===typeof r.alias?[r.alias]:r.alias:[],instances:{},enteredCbs:{},name:s,parent:i,matchAs:o,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach((function(r){var i=o?R(o+"/"+r.path):void 0;de(e,t,n,r,u,i)})),t[u.path]||(e.push(u.path),t[u.path]=u),void 0!==r.alias)for(var d=Array.isArray(r.alias)?r.alias:[r.alias],f=0;f<d.length;++f){var p=d[f];0;var h={path:p,children:r.children};de(e,t,n,h,i,u.path||"/")}s&&(n[s]||(n[s]=u))}function fe(e,t){var n=L(e,[],t);return n}function pe(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:R(t.path+"/"+e)}function he(e,t){var n=ue(e),r=n.pathList,i=n.pathMap,o=n.nameMap;function a(e){ue(e,r,i,o)}function s(e,t){var n="object"!==typeof e?o[e]:void 0;ue([t||e],r,i,o,n),n&&n.alias.length&&ue(n.alias.map((function(e){return{path:e,children:[t]}})),r,i,o,n)}function c(){return r.map((function(e){return i[e]}))}function l(e,n,a){var s=ee(e,n,!1,t),c=s.name;if(c){var l=o[c];if(!l)return f(null,s);var u=l.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!==typeof s.params&&(s.params={}),n&&"object"===typeof n.params)for(var d in n.params)!(d in s.params)&&u.indexOf(d)>-1&&(s.params[d]=n.params[d]);return s.path=Z(l.path,s.params,'named route "'+c+'"'),f(l,s,a)}if(s.path){s.params={};for(var p=0;p<r.length;p++){var h=r[p],m=i[h];if(me(m.regex,s.path,s.params))return f(m,s,a)}}return f(null,s)}function u(e,n){var r=e.redirect,i="function"===typeof r?r(m(e,n,null,t)):r;if("string"===typeof i&&(i={path:i}),!i||"object"!==typeof i)return f(null,n);var a=i,s=a.name,c=a.path,u=n.query,d=n.hash,p=n.params;if(u=a.hasOwnProperty("query")?a.query:u,d=a.hasOwnProperty("hash")?a.hash:d,p=a.hasOwnProperty("params")?a.params:p,s){o[s];return l({_normalized:!0,name:s,query:u,hash:d,params:p},void 0,n)}if(c){var h=ge(c,e),g=Z(h,p,'redirect route with path "'+h+'"');return l({_normalized:!0,path:g,query:u,hash:d},void 0,n)}return f(null,n)}function d(e,t,n){var r=Z(n,t.params,'aliased route with path "'+n+'"'),i=l({_normalized:!0,path:r});if(i){var o=i.matched,a=o[o.length-1];return t.params=i.params,f(a,t)}return f(null,t)}function f(e,n,r){return e&&e.redirect?u(e,r||n):e&&e.matchAs?d(e,n,e.matchAs):m(e,n,r,t)}return{match:l,addRoute:s,getRoutes:c,addRoutes:a}}function me(e,t,n){var r=t.match(e);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var a=e.keys[i-1];a&&(n[a.name||"pathMatch"]="string"===typeof r[i]?l(r[i]):r[i])}return!0}function ge(e,t){return T(e,t.parent?t.parent.path:"/",!0)}var ve=le&&window.performance&&window.performance.now?window.performance:Date;function be(){return ve.now().toFixed(3)}var _e=be();function ye(){return _e}function we(e){return _e=e}var xe=Object.create(null);function ke(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),n=i({},window.history.state);return n.key=ye(),window.history.replaceState(n,"",t),window.addEventListener("popstate",Se),function(){window.removeEventListener("popstate",Se)}}function Ce(e,t,n,r){if(e.app){var i=e.options.scrollBehavior;i&&e.app.$nextTick((function(){var o=Ee(),a=i.call(e,t,n,r?o:null);a&&("function"===typeof a.then?a.then((function(e){Fe(e,o)})).catch((function(e){0})):Fe(a,o))}))}}function Ae(){var e=ye();e&&(xe[e]={x:window.pageXOffset,y:window.pageYOffset})}function Se(e){Ae(),e.state&&e.state.key&&we(e.state.key)}function Ee(){var e=ye();if(e)return xe[e]}function Te(e,t){var n=document.documentElement,r=n.getBoundingClientRect(),i=e.getBoundingClientRect();return{x:i.left-r.left-t.x,y:i.top-r.top-t.y}}function Oe(e){return Le(e.x)||Le(e.y)}function Re(e){return{x:Le(e.x)?e.x:window.pageXOffset,y:Le(e.y)?e.y:window.pageYOffset}}function De(e){return{x:Le(e.x)?e.x:0,y:Le(e.y)?e.y:0}}function Le(e){return"number"===typeof e}var Me=/^#\d/;function Fe(e,t){var n="object"===typeof e;if(n&&"string"===typeof e.selector){var r=Me.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(r){var i=e.offset&&"object"===typeof e.offset?e.offset:{};i=De(i),t=Te(r,i)}else Oe(e)&&(t=Re(e))}else n&&Oe(e)&&(t=Re(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var Ne=le&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"function"===typeof window.history.pushState)}();function Be(e,t){Ae();var n=window.history;try{if(t){var r=i({},n.state);r.key=ye(),n.replaceState(r,"",e)}else n.pushState({key:we(be())},"",e)}catch(o){window.location[t?"replace":"assign"](e)}}function Ie(e){Be(e,!0)}function Pe(e,t,n){var r=function(i){i>=e.length?n():e[i]?t(e[i],(function(){r(i+1)})):r(i+1)};r(0)}var $e={redirected:2,aborted:4,cancelled:8,duplicated:16};function je(e,t){return Ue(e,t,$e.redirected,'Redirected when going from "'+e.fullPath+'" to "'+Ve(t)+'" via a navigation guard.')}function ze(e,t){var n=Ue(e,t,$e.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function qe(e,t){return Ue(e,t,$e.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function He(e,t){return Ue(e,t,$e.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function Ue(e,t,n,r){var i=new Error(r);return i._isRouter=!0,i.from=e,i.to=t,i.type=n,i}var We=["params","query","hash"];function Ve(e){if("string"===typeof e)return e;if("path"in e)return e.path;var t={};return We.forEach((function(n){n in e&&(t[n]=e[n])})),JSON.stringify(t,null,2)}function Ge(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function Ke(e,t){return Ge(e)&&e._isRouter&&(null==t||e.type===t)}function Ye(e){return function(t,n,r){var i=!1,o=0,a=null;Xe(e,(function(e,t,n,s){if("function"===typeof e&&void 0===e.cid){i=!0,o++;var c,l=et((function(t){Ze(t)&&(t=t.default),e.resolved="function"===typeof t?t:te.extend(t),n.components[s]=t,o--,o<=0&&r()})),u=et((function(e){var t="Failed to resolve async component "+s+": "+e;a||(a=Ge(e)?e:new Error(t),r(a))}));try{c=e(l,u)}catch(f){u(f)}if(c)if("function"===typeof c.then)c.then(l,u);else{var d=c.component;d&&"function"===typeof d.then&&d.then(l,u)}}})),i||r()}}function Xe(e,t){return Qe(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Qe(e){return Array.prototype.concat.apply([],e)}var Je="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Ze(e){return e.__esModule||Je&&"Module"===e[Symbol.toStringTag]}function et(e){var t=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var tt=function(e,t){this.router=e,this.base=nt(t),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function nt(e){if(!e)if(le){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function rt(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n<r;n++)if(e[n]!==t[n])break;return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}function it(e,t,n,r){var i=Xe(e,(function(e,r,i,o){var a=ot(e,t);if(a)return Array.isArray(a)?a.map((function(e){return n(e,r,i,o)})):n(a,r,i,o)}));return Qe(r?i.reverse():i)}function ot(e,t){return"function"!==typeof e&&(e=te.extend(e)),e.options[t]}function at(e){return it(e,"beforeRouteLeave",ct,!0)}function st(e){return it(e,"beforeRouteUpdate",ct)}function ct(e,t){if(t)return function(){return e.apply(t,arguments)}}function lt(e){return it(e,"beforeRouteEnter",(function(e,t,n,r){return ut(e,n,r)}))}function ut(e,t,n){return function(r,i,o){return e(r,i,(function(e){"function"===typeof e&&(t.enteredCbs[n]||(t.enteredCbs[n]=[]),t.enteredCbs[n].push(e)),o(e)}))}}tt.prototype.listen=function(e){this.cb=e},tt.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},tt.prototype.onError=function(e){this.errorCbs.push(e)},tt.prototype.transitionTo=function(e,t,n){var r,i=this;try{r=this.router.match(e,this.current)}catch(a){throw this.errorCbs.forEach((function(e){e(a)})),a}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),t&&t(r),i.ensureURL(),i.router.afterHooks.forEach((function(e){e&&e(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(e){e(r)})))}),(function(e){n&&n(e),e&&!i.ready&&(Ke(e,$e.redirected)&&o===v||(i.ready=!0,i.readyErrorCbs.forEach((function(t){t(e)}))))}))},tt.prototype.confirmTransition=function(e,t,n){var i=this,o=this.current;this.pending=e;var a=function(e){!Ke(e)&&Ge(e)&&(i.errorCbs.length?i.errorCbs.forEach((function(t){t(e)})):r(!1,"uncaught error during route navigation:")),n&&n(e)},s=e.matched.length-1,c=o.matched.length-1;if(y(e,o)&&s===c&&e.matched[s]===o.matched[c])return this.ensureURL(),a(ze(o,e));var l=rt(this.current.matched,e.matched),u=l.updated,d=l.deactivated,f=l.activated,p=[].concat(at(d),this.router.beforeHooks,st(u),f.map((function(e){return e.beforeEnter})),Ye(f)),h=function(t,n){if(i.pending!==e)return a(qe(o,e));try{t(e,o,(function(t){!1===t?(i.ensureURL(!0),a(He(o,e))):Ge(t)?(i.ensureURL(!0),a(t)):"string"===typeof t||"object"===typeof t&&("string"===typeof t.path||"string"===typeof t.name)?(a(je(o,e)),"object"===typeof t&&t.replace?i.replace(t):i.push(t)):n(t)}))}catch(r){a(r)}};Pe(p,h,(function(){var n=lt(f),r=n.concat(i.router.resolveHooks);Pe(r,h,(function(){if(i.pending!==e)return a(qe(o,e));i.pending=null,t(e),i.router.app&&i.router.app.$nextTick((function(){C(e)}))}))}))},tt.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},tt.prototype.setupListeners=function(){},tt.prototype.teardown=function(){this.listeners.forEach((function(e){e()})),this.listeners=[],this.current=v,this.pending=null};var dt=function(e){function t(t,n){e.call(this,t,n),this._startLocation=ft(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=Ne&&n;r&&this.listeners.push(ke());var i=function(){var n=e.current,i=ft(e.base);e.current===v&&i===e._startLocation||e.transitionTo(i,(function(e){r&&Ce(t,e,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){Be(R(r.base+e.fullPath)),Ce(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){Ie(R(r.base+e.fullPath)),Ce(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(ft(this.base)!==this.current.fullPath){var t=R(this.base+this.current.fullPath);e?Be(t):Ie(t)}},t.prototype.getCurrentLocation=function(){return ft(this.base)},t}(tt);function ft(e){var t=window.location.pathname,n=t.toLowerCase(),r=e.toLowerCase();return!e||n!==r&&0!==n.indexOf(R(r+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var pt=function(e){function t(t,n,r){e.call(this,t,n),r&&ht(this.base)||mt()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=Ne&&n;r&&this.listeners.push(ke());var i=function(){var t=e.current;mt()&&e.transitionTo(gt(),(function(n){r&&Ce(e.router,n,t,!0),Ne||_t(n.fullPath)}))},o=Ne?"popstate":"hashchange";window.addEventListener(o,i),this.listeners.push((function(){window.removeEventListener(o,i)}))}},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){bt(e.fullPath),Ce(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){_t(e.fullPath),Ce(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;gt()!==t&&(e?bt(t):_t(t))},t.prototype.getCurrentLocation=function(){return gt()},t}(tt);function ht(e){var t=ft(e);if(!/^\/#/.test(t))return window.location.replace(R(e+"/#"+t)),!0}function mt(){var e=gt();return"/"===e.charAt(0)||(_t("/"+e),!1)}function gt(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function vt(e){var t=window.location.href,n=t.indexOf("#"),r=n>=0?t.slice(0,n):t;return r+"#"+e}function bt(e){Ne?Be(vt(e)):window.location.hash=e}function _t(e){Ne?Ie(vt(e)):window.location.replace(vt(e))}var yt=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var e=t.current;t.index=n,t.updateRoute(r),t.router.afterHooks.forEach((function(t){t&&t(r,e)}))}),(function(e){Ke(e,$e.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(tt),wt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=he(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Ne&&!1!==e.fallback,this.fallback&&(t="hash"),le||(t="abstract"),this.mode=t,t){case"history":this.history=new dt(this,e.base);break;case"hash":this.history=new pt(this,e.base,this.fallback);break;case"abstract":this.history=new yt(this,e.base);break;default:0}},xt={currentRoute:{configurable:!0}};function kt(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function Ct(e,t,n){var r="hash"===n?"#"+t:t;return e?R(e+"/"+r):r}wt.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},xt.currentRoute.get=function(){return this.history&&this.history.current},wt.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof dt||n instanceof pt){var r=function(e){var r=n.current,i=t.options.scrollBehavior,o=Ne&&i;o&&"fullPath"in e&&Ce(t,e,r,!1)},i=function(e){n.setupListeners(),r(e)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},wt.prototype.beforeEach=function(e){return kt(this.beforeHooks,e)},wt.prototype.beforeResolve=function(e){return kt(this.resolveHooks,e)},wt.prototype.afterEach=function(e){return kt(this.afterHooks,e)},wt.prototype.onReady=function(e,t){this.history.onReady(e,t)},wt.prototype.onError=function(e){this.history.onError(e)},wt.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.push(e,t,n)}));this.history.push(e,t,n)},wt.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.replace(e,t,n)}));this.history.replace(e,t,n)},wt.prototype.go=function(e){this.history.go(e)},wt.prototype.back=function(){this.go(-1)},wt.prototype.forward=function(){this.go(1)},wt.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},wt.prototype.resolve=function(e,t,n){t=t||this.history.current;var r=ee(e,t,n,this),i=this.match(r,t),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=Ct(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},wt.prototype.getRoutes=function(){return this.matcher.getRoutes()},wt.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},wt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(wt.prototype,xt),wt.install=ce,wt.version="3.5.2",wt.isNavigationFailure=Ke,wt.NavigationFailureType=$e,wt.START_LOCATION=v,le&&window.Vue&&window.Vue.use(wt),t["a"]=wt},"8df4":function(e,t,n){"use strict";var r=n("7a77");function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e,t=new i((function(t){e=t}));return{token:t,cancel:e}},e.exports=i},"8eb7":function(e,t){var n,r,i,o,a,s,c,l,u,d,f,p,h,m,g,v=!1;function b(){if(!v){v=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),b=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(p=/\b(iPhone|iP[ao]d)/.exec(e),h=/\b(iP[ao]d)/.exec(e),d=/Android/i.exec(e),m=/FBAN\/\w+;/i.exec(e),g=/Mobile/i.exec(e),f=!!/Win64/.exec(e),t){n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var _=/(?:Trident\/(\d+.\d+))/.exec(e);s=_?parseFloat(_[1])+4:n,r=t[2]?parseFloat(t[2]):NaN,i=t[3]?parseFloat(t[3]):NaN,o=t[4]?parseFloat(t[4]):NaN,o?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=t&&t[1]?parseFloat(t[1]):NaN):a=NaN}else n=r=i=a=o=NaN;if(b){if(b[1]){var y=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);c=!y||parseFloat(y[1].replace("_","."))}else c=!1;l=!!b[2],u=!!b[3]}else c=l=u=!1}}var _={ie:function(){return b()||n},ieCompatibilityMode:function(){return b()||s>n},ie64:function(){return _.ie()&&f},firefox:function(){return b()||r},opera:function(){return b()||i},webkit:function(){return b()||o},safari:function(){return _.webkit()},chrome:function(){return b()||a},windows:function(){return b()||l},osx:function(){return b()||c},linux:function(){return b()||u},iphone:function(){return b()||p},mobile:function(){return b()||p||h||d||g},nativeApp:function(){return b()||m},android:function(){return b()||d},ipad:function(){return b()||h}};e.exports=_},"907a":function(e,t,n){"use strict";var r=n("ebb5"),i=n("07fa"),o=n("5926"),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("at",(function(e){var t=a(this),n=i(t),r=o(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}))},"90d8":function(e,t,n){"use strict";var r=n("c65b"),i=n("1a2d"),o=n("3a9b"),a=n("ad6d"),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:r(a,e)}},"90e3":function(e,t,n){"use strict";var r=n("e330"),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},9112:function(e,t,n){"use strict";var r=n("83ab"),i=n("9bf2"),o=n("5c6c");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9141:function(e,t,n){var r=n("ef08").document;e.exports=r&&r.documentElement},9263:function(e,t,n){"use strict";var r=n("c65b"),i=n("e330"),o=n("577e"),a=n("ad6d"),s=n("9f7f"),c=n("5692"),l=n("7c73"),u=n("69f3").get,d=n("fce3"),f=n("107c"),p=c("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,m=h,g=i("".charAt),v=i("".indexOf),b=i("".replace),_=i("".slice),y=function(){var e=/a/,t=/b*/g;return r(h,e,"a"),r(h,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),w=s.BROKEN_CARET,x=void 0!==/()??/.exec("")[1],k=y||x||w||d||f;k&&(m=function(e){var t,n,i,s,c,d,f,k=this,C=u(k),A=o(e),S=C.raw;if(S)return S.lastIndex=k.lastIndex,t=r(m,S,A),k.lastIndex=S.lastIndex,t;var E=C.groups,T=w&&k.sticky,O=r(a,k),R=k.source,D=0,L=A;if(T&&(O=b(O,"y",""),-1===v(O,"g")&&(O+="g"),L=_(A,k.lastIndex),k.lastIndex>0&&(!k.multiline||k.multiline&&"\n"!==g(A,k.lastIndex-1))&&(R="(?: "+R+")",L=" "+L,D++),n=new RegExp("^(?:"+R+")",O)),x&&(n=new RegExp("^"+R+"$(?!\\s)",O)),y&&(i=k.lastIndex),s=r(h,T?n:k,L),T?s?(s.input=_(s.input,D),s[0]=_(s[0],D),s.index=k.lastIndex,k.lastIndex+=s[0].length):k.lastIndex=0:y&&s&&(k.lastIndex=k.global?s.index+s[0].length:i),x&&s&&s.length>1&&r(p,s[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(s[c]=void 0)})),s&&E)for(s.groups=d=l(null),c=0;c<E.length;c++)f=E[c],d[f[0]]=s[f[1]];return s}),e.exports=m},"92f0":function(e,t,n){var r=n("1a14").f,i=n("9c0e"),o=n("cc15")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},"92fa":function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,t){var i,o,a,s,c;for(a in t)if(i=e[a],o=t[a],i&&n.test(a))if("class"===a&&("string"===typeof i&&(c=i,e[a]=i={},i[c]=!0),"string"===typeof o&&(c=o,t[a]=o={},o[c]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)i[s]=r(i[s],o[s]);else if(Array.isArray(i))e[a]=i.concat(o);else if(Array.isArray(o))e[a]=[i].concat(o);else for(s in o)i[s]=o[s];else e[a]=t[a];return e}),{})}},"944a":function(e,t,n){"use strict";var r=n("d066"),i=n("e065"),o=n("d44e");i("toStringTag"),o(r("Symbol"),"Symbol")},"949b":function(e,t,n){var r=n("6137"),i=n("3491"),o=n("71bc");e.exports=function(e){return function(t,n,a){var s,c=r(t),l=i(c.length),u=o(a,l);if(e&&n!=n){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},"94ca":function(e,t,n){"use strict";var r=n("d039"),i=n("1626"),o=/#|\.prototype\./,a=function(e,t){var n=c[s(e)];return n===u||n!==l&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},"94ce":function(e,t){(function(){"use strict";var e=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},t=function(t){return function(n){return e(n)===t}},n=function(e){return function(t){return typeof t===e}},r=function(e){return function(t){return e===t}},i=t("string"),o=t("object"),a=t("array"),s=r(null),c=n("boolean"),l=r(void 0),u=function(e){return null===e||void 0===e},d=function(e){return!u(e)},f=n("function"),p=n("number"),h=function(){},m=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},g=function(e,t){return function(n){return e(t(n))}},v=function(e){return function(){return e}},b=function(e){return e},_=function(e,t){return e===t};function y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var w=function(e){return function(t){return!e(t)}},x=function(e){return function(){throw new Error(e)}},k=v(!1),C=v(!0),A=function(){return S},S=function(){var e=function(e){return e()},t=b,n={fold:function(e,t){return e()},isSome:k,isNone:C,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:v(null),getOrUndefined:v(void 0),or:t,orThunk:e,map:A,each:h,bind:A,exists:k,forall:C,filter:function(){return A()},toArray:function(){return[]},toString:v("none()")};return n}(),E=function(e){var t=v(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:C,isNone:k,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return E(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:S},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},T=function(e){return null===e||void 0===e?S:E(e)},O={some:E,none:A,from:T},R=Array.prototype.slice,D=Array.prototype.indexOf,L=Array.prototype.push,M=function(e,t){return D.call(e,t)},F=function(e,t){return M(e,t)>-1},N=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},B=function(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n},I=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},P=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},$=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},j=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=t(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},z=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},q=function(e,t,n){return $(e,(function(e,r){n=t(n,e,r)})),n},H=function(e,t,n){return P(e,(function(e,r){n=t(n,e,r)})),n},U=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return O.some(o);if(n(o,r))break}return O.none()},W=function(e,t){return U(e,t,k)},V=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return O.some(n)}return O.none()},G=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!a(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);L.apply(t,e[n])}return t},K=function(e,t){return G(I(e,t))},Y=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},X=function(e){var t=R.call(e,0);return t.reverse(),t},Q=function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n},J=function(e){return[e]},Z=function(e,t){var n=R.call(e,0);return n.sort(t),n},ee=function(e,t){return t>=0&&t<e.length?O.some(e[t]):O.none()},te=function(e){return ee(e,0)},ne=function(e){return ee(e,e.length-1)},re=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return O.none()},ie=function(){return ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ie.apply(this,arguments)};function oe(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var ae=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},se=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),c=i||!o&&a&&r("(min-device-width:768px)"),l=o||a&&!c,u=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!l&&!c&&!u;return{isiPad:v(i),isiPhone:v(o),isTablet:v(c),isPhone:v(l),isTouch:v(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:v(u),isDesktop:v(d)}},ce=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},le=function(e,t){var n=ce(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return fe(r(1),r(2))},ue=function(e,t){var n=String(t).toLowerCase();return 0===e.length?de():le(e,n)},de=function(){return fe(0,0)},fe=function(e,t){return{major:e,minor:t}},pe={nu:fe,detect:ue,unknown:de},he=function(e,t){return re(t.brands,(function(t){var n=t.brand.toLowerCase();return W(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:pe.nu(parseInt(t.version,10),0)}}))}))},me=function(e,t){var n=String(t).toLowerCase();return W(e,(function(e){return e.search(n)}))},ge=function(e,t){return me(e,t).map((function(e){var n=pe.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ve=function(e,t){return me(e,t).map((function(e){var n=pe.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},be=function(e,t){return e.substring(t)},_e=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},ye=function(e,t){return xe(e,t)?be(e,t.length):e},we=function(e,t){return-1!==e.indexOf(t)},xe=function(e,t){return _e(e,t,0)},ke=function(e,t){return _e(e,t,e.length-t.length)},Ce=function(e){return function(t){return t.replace(e,"")}},Ae=Ce(/^\s+|\s+$/g),Se=function(e){return e.length>0},Ee=function(e){return!Se(e)},Te=function(e){var t=parseFloat(e);return isNaN(t)?O.none():O.some(t)},Oe=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Re=function(e){return function(t){return we(t,e)}},De=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return we(e,"edge/")&&we(e,"chrome")&&we(e,"safari")&&we(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Oe],search:function(e){return we(e,"chrome")&&!we(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return we(e,"msie")||we(e,"trident")}},{name:"Opera",versionRegexes:[Oe,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Re("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Re("firefox")},{name:"Safari",versionRegexes:[Oe,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(we(e,"safari")||we(e,"mobile/"))&&we(e,"applewebkit")}}],Le=[{name:"Windows",search:Re("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return we(e,"iphone")||we(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Re("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Re("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Re("linux"),versionRegexes:[]},{name:"Solaris",search:Re("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Re("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Re("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Me={browsers:v(De),oses:v(Le)},Fe="Edge",Ne="Chrome",Be="IE",Ie="Opera",Pe="Firefox",$e="Safari",je=function(){return ze({current:void 0,version:pe.unknown()})},ze=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Fe),isChrome:r(Ne),isIE:r(Be),isOpera:r(Ie),isFirefox:r(Pe),isSafari:r($e)}},qe={unknown:je,nu:ze,edge:v(Fe),chrome:v(Ne),ie:v(Be),opera:v(Ie),firefox:v(Pe),safari:v($e)},He="Windows",Ue="iOS",We="Android",Ve="Linux",Ge="OSX",Ke="Solaris",Ye="FreeBSD",Xe="ChromeOS",Qe=function(){return Je({current:void 0,version:pe.unknown()})},Je=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(He),isiOS:r(Ue),isAndroid:r(We),isOSX:r(Ge),isLinux:r(Ve),isSolaris:r(Ke),isFreeBSD:r(Ye),isChromeOS:r(Xe)}},Ze={unknown:Qe,nu:Je,windows:v(He),ios:v(Ue),android:v(We),linux:v(Ve),osx:v(Ge),solaris:v(Ke),freebsd:v(Ye),chromeos:v(Xe)},et=function(e,t,n){var r=Me.browsers(),i=Me.oses(),o=t.bind((function(e){return he(r,e)})).orThunk((function(){return ge(r,e)})).fold(qe.unknown,qe.nu),a=ve(i,e).fold(Ze.unknown,Ze.nu),s=se(a,o,e,n);return{browser:o,os:a,deviceType:s}},tt={detect:et},nt=function(e){return window.matchMedia(e).matches},rt=ae((function(){return tt.detect(navigator.userAgent,O.from(navigator.userAgentData),nt)})),it=function(){return rt()},ot=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},at=function(e,t){return ot(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},st=8,ct=9,lt=11,ut=1,dt=3,ft=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw new Error("HTML must have a single root node");return mt(r.childNodes[0])},pt=function(e,t){var n=t||document,r=n.createElement(e);return mt(r)},ht=function(e,t){var n=t||document,r=n.createTextNode(e);return mt(r)},mt=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},gt=function(e,t,n){return O.from(e.dom.elementFromPoint(t,n)).map(mt)},vt={fromHtml:ft,fromTag:pt,fromText:ht,fromDom:mt,fromPoint:gt},bt=function(e,t){var n=e.dom;if(n.nodeType!==ut)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},_t=function(e){return e.nodeType!==ut&&e.nodeType!==ct&&e.nodeType!==lt||0===e.childElementCount},yt=function(e,t){var n=void 0===t?document:t.dom;return _t(n)?[]:I(n.querySelectorAll(e),vt.fromDom)},wt=function(e,t){var n=void 0===t?document:t.dom;return _t(n)?O.none():O.from(n.querySelector(e)).map(vt.fromDom)},xt=function(e,t){return e.dom===t.dom},kt=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},Ct=function(e,t){return at(e.dom,t.dom)},At=function(e,t){return it().browser.isIE()?Ct(e,t):kt(e,t)},St=bt,Et=Object.keys,Tt=Object.hasOwnProperty,Ot=function(e,t){for(var n=Et(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},Rt=function(e,t){return Dt(e,(function(e,n){return{k:n,v:t(e,n)}}))},Dt=function(e,t){var n={};return Ot(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},Lt=function(e){return function(t,n){e[n]=t}},Mt=function(e,t,n,r){var i={};return Ot(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},Ft=function(e,t){var n={};return Mt(e,t,Lt(n),h),n},Nt=function(e,t){var n=[];return Ot(e,(function(e,r){n.push(t(e,r))})),n},Bt=function(e){return Nt(e,b)},It=function(e){return Et(e).length},Pt=function(e,t){return $t(e,t)?O.from(e[t]):O.none()},$t=function(e,t){return Tt.call(e,t)},jt=function(e,t){return $t(e,t)&&void 0!==e[t]&&null!==e[t]},zt=function(e){for(var t in e)if(Tt.call(e,t))return!1;return!0},qt=["tfoot","thead","tbody","colgroup"],Ht=function(e){return F(qt,e)},Ut=function(e,t){return{rows:e,columns:t}},Wt=function(e,t){return{row:e,column:t}},Vt=function(e,t,n){return{element:e,rowspan:t,colspan:n}},Gt=function(e,t,n,r){return{element:e,rowspan:t,colspan:n,isNew:r}},Kt=function(e,t,n,r,i,o){return{element:e,rowspan:t,colspan:n,row:r,column:i,isLocked:o}},Yt=function(e,t,n){return{element:e,cells:t,section:n}},Xt=function(e,t,n,r){return{element:e,cells:t,section:n,isNew:r}},Qt=function(e,t,n){return{element:e,isNew:t,isLocked:n}},Jt=function(e,t,n,r){return{element:e,cells:t,section:n,isNew:r}},Zt=function(e,t,n,r){return{startRow:e,startCol:t,finishRow:n,finishCol:r}},en=function(e,t,n){return{element:e,colspan:t,column:n}},tn=function(e,t){return{element:e,columns:t}};"undefined"!==typeof window?window:Function("return this;")();var nn=function(e){var t=e.dom.nodeName;return t.toLowerCase()},rn=function(e){return e.dom.nodeType},on=function(e){return function(t){return rn(t)===e}},an=function(e){return rn(e)===st||"#comment"===nn(e)},sn=on(ut),cn=on(dt),ln=on(ct),un=on(lt),dn=function(e){return function(t){return sn(t)&&nn(t)===e}},fn=function(e){return vt.fromDom(e.dom.ownerDocument)},pn=function(e){return ln(e)?e:fn(e)},hn=function(e){return vt.fromDom(pn(e).dom.defaultView)},mn=function(e){return O.from(e.dom.parentNode).map(vt.fromDom)},gn=function(e){return O.from(e.dom.parentElement).map(vt.fromDom)},vn=function(e,t){var n=f(t)?t:k,r=e.dom,i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=vt.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},bn=function(e){return O.from(e.dom.previousSibling).map(vt.fromDom)},_n=function(e){return O.from(e.dom.nextSibling).map(vt.fromDom)},yn=function(e){return I(e.dom.childNodes,vt.fromDom)},wn=function(e,t){var n=e.dom.childNodes;return O.from(n[t]).map(vt.fromDom)},xn=function(e){return wn(e,0)},kn=function(e){return un(e)&&d(e.dom.host)},Cn=f(Element.prototype.attachShadow)&&f(Node.prototype.getRootNode),An=v(Cn),Sn=Cn?function(e){return vt.fromDom(e.dom.getRootNode())}:pn,En=function(e){var t=Sn(e);return kn(t)?O.some(t):O.none()},Tn=function(e){return vt.fromDom(e.dom.host)},On=function(e){if(An()&&d(e.target)){var t=vt.fromDom(e.target);if(sn(t)&&Rn(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return te(n)}}return O.from(e.target)},Rn=function(e){return d(e.dom.shadowRoot)},Dn=function(e){var t=cn(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return En(vt.fromDom(t)).fold((function(){return n.body.contains(t)}),g(Dn,Tn))},Ln=function(){return Mn(vt.fromDom(document))},Mn=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return vt.fromDom(t)},Fn=function(e,t,n){return z(vn(e,n),t)},Nn=function(e,t){return z(yn(e),t)},Bn=function(e,t){var n=[];return P(yn(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(Bn(e,t))})),n},In=function(e,t,n){return Fn(e,(function(e){return bt(e,t)}),n)},Pn=function(e,t){return Nn(e,(function(e){return bt(e,t)}))},$n=function(e,t){return yt(t,e)};function jn(e,t,n,r,i){return e(n,r)?O.some(n):f(i)&&i(n)?O.none():t(n,r,i)}var zn=function(e,t,n){var r=e.dom,i=f(n)?n:k;while(r.parentNode){r=r.parentNode;var o=vt.fromDom(r);if(t(o))return O.some(o);if(i(o))break}return O.none()},qn=function(e,t,n){var r=function(e,t){return t(e)};return jn(r,zn,e,t,n)},Hn=function(e,t){var n=function(e){return t(vt.fromDom(e))},r=W(e.dom.childNodes,n);return r.map(vt.fromDom)},Un=function(e,t){var n=function(e){for(var r=0;r<e.childNodes.length;r++){var i=vt.fromDom(e.childNodes[r]);if(t(i))return O.some(i);var o=n(e.childNodes[r]);if(o.isSome())return o}return O.none()};return n(e.dom)},Wn=function(e,t,n){return zn(e,(function(e){return bt(e,t)}),n)},Vn=function(e,t){return Hn(e,(function(e){return bt(e,t)}))},Gn=function(e,t){return wt(t,e)},Kn=function(e,t,n){var r=function(e,t){return bt(e,t)};return jn(r,Wn,e,t,n)},Yn=function(e,t,n){if(!(i(n)||c(n)||p(n)))throw new Error("Attribute value was not simple");e.setAttribute(t,n+"")},Xn=function(e,t,n){Yn(e.dom,t,n)},Qn=function(e,t){var n=e.dom;Ot(t,(function(e,t){Yn(n,t,e)}))},Jn=function(e,t){Ot(t,(function(t,n){t.fold((function(){tr(e,n)}),(function(t){Yn(e.dom,n,t)}))}))},Zn=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},er=function(e,t){return O.from(Zn(e,t))},tr=function(e,t){e.dom.removeAttribute(t)},nr=function(e){return H(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},rr=function(e,t,n){return void 0===n&&(n=_),e.exists((function(e){return n(e,t)}))},ir=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},or=function(e,t,n){return e.isSome()&&t.isSome()?O.some(n(e.getOrDie(),t.getOrDie())):O.none()},ar=function(e,t){return void 0!==e&&null!==e?t(e):O.none()},sr=function(e){return e.bind(b)},cr=function(e,t){return e?O.some(t):O.none()},lr=function(e){return void 0!==e.style&&f(e.style.getPropertyValue)},ur=function(e,t,n){if(!i(n))throw new Error("CSS value must be a string: "+n);lr(e)&&e.style.setProperty(t,n)},dr=function(e,t){lr(e)&&e.style.removeProperty(t)},fr=function(e,t,n){var r=e.dom;ur(r,t,n)},pr=function(e,t){var n=e.dom;Ot(t,(function(e,t){ur(n,t,e)}))},hr=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||Dn(e)?i:mr(n,t)},mr=function(e,t){return lr(e)?e.style.getPropertyValue(t):""},gr=function(e,t){var n=e.dom,r=mr(n,t);return O.from(r).filter((function(e){return e.length>0}))},vr=function(e,t){var n=e.dom;dr(n,t),rr(er(e,"style").map(Ae),"")&&tr(e,"style")},br=function(e,t){var n=e.dom,r=t.dom;lr(n)&&lr(r)&&(r.style.cssText=n.style.cssText)},_r=function(e,t,n){return void 0===n&&(n=0),er(e,t).map((function(e){return parseInt(e,10)})).getOr(n)},yr=function(e,t){return _r(e,t,1)},wr=function(e){return dn("col")(e)?_r(e,"span",1)>1:yr(e,"colspan")>1},xr=function(e){return yr(e,"rowspan")>1},kr=function(e,t){return parseInt(hr(e,t),10)},Cr=v(10),Ar=v(10),Sr=function(e,t){return Er(e,t,C)},Er=function(e,t,n){return K(yn(e),(function(e){return bt(e,t)?n(e)?[e]:[]:Er(e,t,n)}))},Tr=function(e,t,n){if(void 0===n&&(n=k),n(t))return O.none();if(F(e,nn(t)))return O.some(t);var r=function(e){return bt(e,"table")||n(e)};return Wn(t,e.join(","),r)},Or=function(e,t){return Tr(["td","th"],e,t)},Rr=function(e){return Sr(e,"th,td")},Dr=function(e){return bt(e,"colgroup")?Pn(e,"col"):K(Fr(e),(function(e){return Pn(e,"col")}))},Lr=function(e,t){return Kn(e,"table",t)},Mr=function(e){return Sr(e,"tr")},Fr=function(e){return Lr(e).fold(v([]),(function(e){return Pn(e,"colgroup")}))},Nr=function(e,t){return I(e,(function(e){if("colgroup"===nn(e)){var n=I(Dr(e),(function(e){var t=_r(e,"span",1);return Vt(e,1,t)}));return Yt(e,n,"colgroup")}n=I(Rr(e),(function(e){var t=_r(e,"rowspan",1),n=_r(e,"colspan",1);return Vt(e,t,n)}));return Yt(e,n,t(e))}))},Br=function(e){return mn(e).map((function(e){var t=nn(e);return Ht(t)?t:"tbody"})).getOr("tbody")},Ir=function(e){var t=Mr(e),n=Fr(e),r=oe(oe([],n,!0),t,!0);return Nr(r,Br)},Pr=function(e,t){return Nr(e,(function(){return t}))},$r=function(e,t,n){var r=e.cells,i=r.slice(0,t),o=r.slice(t),a=i.concat(n).concat(o);return qr(e,a)},jr=function(e,t,n){return $r(e,t,[n])},zr=function(e,t,n){var r=e.cells;r[t]=n},qr=function(e,t){return Jt(e.element,t,e.section,e.isNew)},Hr=function(e,t){var n=e.cells,r=I(n,t);return Jt(e.element,r,e.section,e.isNew)},Ur=function(e,t){return e.cells[t]},Wr=function(e,t){return Ur(e,t).element},Vr=function(e){return e.cells.length},Gr=function(e){var t=j(e,(function(e){return"colgroup"===e.section}));return{rows:t.fail,cols:t.pass}},Kr=function(e,t,n){var r=I(e.cells,n);return Jt(t(e.element),r,e.section,!0)},Yr="data-snooker-locked-cols",Xr=function(e){return er(e,Yr).bind((function(e){return O.from(e.match(/\d+/g))})).map((function(e){return Q(e,C)}))},Qr=function(e){var t=H(Gr(e).rows,(function(e,t){return P(t.cells,(function(t,n){t.isLocked&&(e[n]=!0)})),e}),{}),n=Nt(t,(function(e,t){return parseInt(t,10)}));return Z(n)},Jr=function(e,t){return e+","+t},Zr=function(e,t,n){return O.from(e.access[Jr(t,n)])},ei=function(e,t,n){var r=ti(e,(function(e){return n(t,e.element)}));return r.length>0?O.some(r[0]):O.none()},ti=function(e,t){var n=K(e.all,(function(e){return e.cells}));return z(n,t)},ni=function(e){var t={},n=0;return P(e.cells,(function(e){var r=e.colspan;B(r,(function(i){var o=n+i;t[o]=en(e.element,r,o)})),n+=r})),t},ri=function(e){var t={},n=[],r=te(e).map((function(e){return e.element})).bind(Lr),i=r.bind(Xr).getOr({}),o=0,a=0,s=0,c=j(e,(function(e){return"colgroup"===e.section})),l=c.pass,u=c.fail;P(u,(function(e){var r=[];P(e.cells,(function(e){var n=0;while(void 0!==t[Jr(s,n)])n++;for(var o=jt(i,n.toString()),c=Kt(e.element,e.rowspan,e.colspan,s,n,o),l=0;l<e.colspan;l++)for(var u=0;u<e.rowspan;u++){var d=s+u,f=n+l,p=Jr(d,f);t[p]=c,a=Math.max(a,f+1)}r.push(c)})),o++,n.push(Yt(e.element,r,e.section)),s++}));var d=ne(l).map((function(e){var t=ni(e),n=tn(e.element,Bt(t));return{colgroups:[n],columns:t}})).getOrThunk((function(){return{colgroups:[],columns:{}}})),f=d.columns,p=d.colgroups,h=Ut(o,a);return{grid:h,access:t,all:n,columns:f,colgroups:p}},ii=function(e){var t=Ir(e);return ri(t)},oi=function(e){return K(e.all,(function(e){return e.cells}))},ai=function(e){return Bt(e.columns)},si=function(e){return Et(e.columns).length>0},ci=function(e,t){return O.from(e.columns[t])},li={fromTable:ii,generate:ri,getAt:Zr,findItem:ei,filterItems:ti,justCells:oi,justColumns:ai,hasColumns:si,getColumnAt:ci},ui=function(e,t){var n=t.column,r=t.column+t.colspan-1,i=t.row,o=t.row+t.rowspan-1;return n<=e.finishCol&&r>=e.startCol&&i<=e.finishRow&&o>=e.startRow},di=function(e,t){return t.column>=e.startCol&&t.column+t.colspan-1<=e.finishCol&&t.row>=e.startRow&&t.row+t.rowspan-1<=e.finishRow},fi=function(e,t){for(var n=!0,r=y(di,t),i=t.startRow;i<=t.finishRow;i++)for(var o=t.startCol;o<=t.finishCol;o++)n=n&&li.getAt(e,i,o).exists(r);return n?O.some(t):O.none()},pi=function(e,t){return Zt(Math.min(e.row,t.row),Math.min(e.column,t.column),Math.max(e.row+e.rowspan-1,t.row+t.rowspan-1),Math.max(e.column+e.colspan-1,t.column+t.colspan-1))},hi=function(e,t,n){var r=li.findItem(e,t,xt),i=li.findItem(e,n,xt);return r.bind((function(e){return i.map((function(t){return pi(e,t)}))}))},mi=function(e,t,n){return hi(e,t,n).bind((function(t){return fi(e,t)}))},gi=function(e,t,n,r){return li.findItem(e,t,xt).bind((function(t){var i=n>0?t.row+t.rowspan-1:t.row,o=r>0?t.column+t.colspan-1:t.column,a=li.getAt(e,i+n,o+r);return a.map((function(e){return e.element}))}))},vi=function(e,t,n){return hi(e,t,n).map((function(t){var n=li.filterItems(e,y(ui,t));return I(n,(function(e){return e.element}))}))},bi=function(e,t){var n=function(e,t){return At(t,e)};return li.findItem(e,t,n).map((function(e){return e.element}))},_i=function(e,t,n){return Lr(e).bind((function(r){var i=ki(r);return gi(i,e,t,n)}))},yi=function(e,t,n){var r=ki(e);return vi(r,t,n)},wi=function(e,t,n,r,i){var o=ki(e),a=xt(e,n)?O.some(t):bi(o,t),s=xt(e,i)?O.some(r):bi(o,r);return a.bind((function(e){return s.bind((function(t){return vi(o,e,t)}))}))},xi=function(e,t,n){var r=ki(e);return mi(r,t,n)},ki=li.fromTable,Ci=function(e,t){var n=mn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},Ai=function(e,t){var n=_n(e);n.fold((function(){var n=mn(e);n.each((function(e){Ei(e,t)}))}),(function(e){Ci(e,t)}))},Si=function(e,t){var n=xn(e);n.fold((function(){Ei(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},Ei=function(e,t){e.dom.appendChild(t.dom)},Ti=function(e,t,n){wn(e,n).fold((function(){Ei(e,t)}),(function(e){Ci(e,t)}))},Oi=function(e,t){Ci(e,t),Ei(t,e)},Ri=function(e,t){P(t,(function(t){Ci(e,t)}))},Di=function(e,t){P(t,(function(n,r){var i=0===r?e:t[r-1];Ai(i,n)}))},Li=function(e,t){P(t,(function(t){Ei(e,t)}))},Mi=function(e){e.dom.textContent="",P(yn(e),(function(e){Fi(e)}))},Fi=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Ni=function(e){var t=yn(e);t.length>0&&Ri(e,t),Fi(e)},Bi=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?O.from(t.dom.nodeValue):O.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}},Ii=Bi(cn,"text"),Pi=function(e){return Ii.get(e)},$i=function(e){return Ii.getOption(e)},ji=function(e,t){return Ii.set(e,t)},zi=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"];function qi(){var e=function(e){return vt.fromDom(e.dom.cloneNode(!1))},t=function(e){return pn(e).dom},n=function(e){return!!sn(e)&&("body"===nn(e)||F(zi,nn(e)))},r=function(e){return!!sn(e)&&F(["br","img","hr","input"],nn(e))},i=function(e){return sn(e)&&"false"===Zn(e,"contenteditable")},o=function(e,t){return e.dom.compareDocumentPosition(t.dom)},a=function(e,t){var n=nr(e);Qn(t,n)},s=function(e){var t=nn(e);return F(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],t)},c=function(e){return sn(e)?er(e,"lang"):O.none()};return{up:v({selector:Wn,closest:Kn,predicate:zn,all:vn}),down:v({selector:$n,predicate:Bn}),styles:v({get:hr,getRaw:gr,set:fr,remove:vr}),attrs:v({get:Zn,set:Xn,remove:tr,copyTo:a}),insert:v({before:Ci,after:Ai,afterAll:Di,append:Ei,appendAll:Li,prepend:Si,wrap:Oi}),remove:v({unwrap:Ni,remove:Fi}),create:v({nu:vt.fromTag,clone:e,text:vt.fromText}),query:v({comparePosition:o,prevSibling:bn,nextSibling:_n}),property:v({children:yn,name:nn,parent:mn,document:t,isText:cn,isComment:an,isElement:sn,isSpecial:s,getLanguage:c,getText:Pi,setText:ji,isBoundary:n,isEmptyTag:r,isNonEditable:i}),eq:xt,is:St}}var Hi=function(e,t,n,r){var i=n[0],o=n.slice(1);return r(e,t,i,o)},Ui=function(e,t,n){return n.length>0?Hi(e,t,n,Wi):O.none()},Wi=function(e,t,n,r){var i=t(e,n);return q(r,(function(n,r){var i=t(e,r);return Vi(e,n,i)}),i)},Vi=function(e,t,n){return t.bind((function(t){return n.filter(y(e.eq,t))}))},Gi=function(e,t){return y(e.eq,t)},Ki=function(e,t,n,r){void 0===r&&(r=k);var i=[t].concat(e.up().all(t)),o=[n].concat(e.up().all(n)),a=function(e){var t=V(e,r);return t.fold((function(){return e}),(function(t){return e.slice(0,t+1)}))},s=a(i),c=a(o),l=W(s,(function(t){return N(c,Gi(e,t))}));return{firstpath:s,secondpath:c,shared:l}},Yi=Ui,Xi=Ki,Qi=qi(),Ji=function(e,t){return Yi(Qi,(function(t,n){return e(n)}),t)},Zi=function(e,t,n){return Xi(Qi,e,t,n)},eo=function(e){return Wn(e,"table")},to=function(e,t,n){var r=function(e){return function(t){return void 0!==n&&n(t)||xt(t,e)}};return xt(e,t)?O.some({boxes:O.some([e]),start:e,finish:t}):eo(e).bind((function(i){return eo(t).bind((function(o){if(xt(i,o))return O.some({boxes:yi(i,e,t),start:e,finish:t});if(At(i,o)){var a=In(t,"td,th",r(i)),s=a.length>0?a[a.length-1]:t;return O.some({boxes:wi(i,e,i,t,o),start:e,finish:s})}if(At(o,i)){a=In(e,"td,th",r(o));var c=a.length>0?a[a.length-1]:e;return O.some({boxes:wi(o,e,i,t,o),start:e,finish:c})}return Zi(e,t).shared.bind((function(a){return Kn(a,"table",n).bind((function(n){var a=In(t,"td,th",r(n)),s=a.length>0?a[a.length-1]:t,c=In(e,"td,th",r(n)),l=c.length>0?c[c.length-1]:e;return O.some({boxes:wi(n,e,i,t,o),start:l,finish:s})}))}))}))}))},no=function(e,t){var n=$n(e,t);return n.length>0?O.some(n):O.none()},ro=function(e,t){return W(e,(function(e){return bt(e,t)}))},io=function(e,t,n){return Gn(e,t).bind((function(t){return Gn(e,n).bind((function(e){return Ji(eo,[t,e]).map((function(n){return{first:t,last:e,table:n}}))}))}))},oo=function(e,t){return Wn(e,"table").bind((function(n){return Gn(n,t).bind((function(t){return to(t,e).bind((function(e){return e.boxes.map((function(t){return{boxes:t,start:e.start,finish:e.finish}}))}))}))}))},ao=function(e,t,n,r,i){return ro(e,i).bind((function(e){return _i(e,t,n).bind((function(e){return oo(e,r)}))}))},so=function(e,t){return no(e,t)},co=function(e,t,n){return io(e,t,n).bind((function(t){var n=function(t){return xt(e,t)},r="thead,tfoot,tbody,table",i=Wn(t.first,r,n),o=Wn(t.last,r,n);return i.bind((function(e){return o.bind((function(n){return xt(e,n)?xi(t.table,t.first,t.last):O.none()}))}))}))},lo=function(e){if(!a(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return P(e,(function(r,i){var o=Et(r);if(1!==o.length)throw new Error("one and only one name per case");var s=o[0],c=r[s];if(void 0!==n[s])throw new Error("duplicate key detected:"+s);if("cata"===s)throw new Error("cannot have a case named cata (sorry)");if(!a(c))throw new Error("case arguments must be an array");t.push(s),n[s]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==c.length)throw new Error("Wrong number of arguments to case "+s+". Expected "+c.length+" ("+c+"), got "+o);var a=function(e){var r=Et(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var i=Y(t,(function(e){return F(r,e)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[s].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var o=t[i];return o.apply(null,n)},match:a,log:function(e){}}}})),n},uo={generate:lo},fo=uo.generate([{none:[]},{multiple:["elements"]},{single:["element"]}]),po=function(e,t,n,r){return e.fold(t,n,r)},ho=fo.none,mo=fo.multiple,go=fo.single,vo=function(e,t,n){var r=function(){return so(e(),n).fold((function(){return t().fold(ho,go)}),(function(e){return mo(e)}))};return{get:r}},bo=tinymce.util.Tools.resolve("tinymce.PluginManager"),_o=function(e,t){return vt.fromDom(e.dom.cloneNode(t))},yo=function(e){return _o(e,!1)},wo=function(e){return _o(e,!0)},xo=function(e,t){var n=vt.fromTag(t),r=nr(e);return Qn(n,r),n},ko=function(e,t){var n=xo(e,t),r=yn(wo(e));return Li(n,r),n},Co=function(e,t){var n=xo(e,t);Ci(e,n);var r=yn(e);return Li(n,r),Fi(e),n},Ao=function(e,t){var n=function(t,n){if(!p(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;lr(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=hr(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return H(t,(function(t,n){var r=hr(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}},So=function(){var e=it().browser;return e.isIE()||e.isEdge()},Eo=function(e,t){return Te(e).getOr(t)},To=function(e,t,n){return Eo(hr(e,t),n)},Oo=function(e){return hr(e,"box-sizing")},Ro=function(e,t,n,r){var i=To(e,"padding-"+n,0),o=To(e,"padding-"+r,0),a=To(e,"border-"+n+"-width",0),s=To(e,"border-"+r+"-width",0);return t-i-o-a-s},Do=function(e,t){var n=e.dom,r=n.getBoundingClientRect().height||n.offsetHeight;return"border-box"===t?r:Ro(e,r,"top","bottom")},Lo=function(e,t){var n=e.dom,r=n.getBoundingClientRect().width||n.offsetWidth;return"border-box"===t?r:Ro(e,r,"left","right")},Mo=function(e){return So()?Do(e,Oo(e)):To(e,"height",e.dom.offsetHeight)},Fo=function(e){return So()?Lo(e,Oo(e)):To(e,"width",e.dom.offsetWidth)},No=function(e){return Lo(e,"content-box")},Bo=Ao("width",(function(e){return e.dom.offsetWidth})),Io=function(e){return Bo.get(e)},Po=function(e){return Bo.getOuter(e)},$o=No,jo=Fo,zo=function(e,t){void 0===t&&(t=C);var n=e.grid,r=B(n.columns,b),i=B(n.rows,b);return I(r,(function(n){var r=function(){return K(i,(function(t){return li.getAt(e,t,n).filter((function(e){return e.column===n})).toArray()}))},o=function(e){return 1===e.colspan&&t(e.element)},a=function(){return li.getAt(e,0,n)};return qo(r,o,a)}))},qo=function(e,t,n){var r=e(),i=W(r,t),o=i.orThunk((function(){return O.from(r[0]).orThunk(n)}));return o.map((function(e){return e.element}))},Ho=function(e){var t=e.grid,n=B(t.rows,b),r=B(t.columns,b);return I(n,(function(t){var n=function(){return K(r,(function(n){return li.getAt(e,t,n).filter((function(e){return e.row===t})).fold(v([]),(function(e){return[e]}))}))},i=function(e){return 1===e.rowspan},o=function(){return li.getAt(e,t,0)};return qo(n,i,o)}))},Uo=function(e,t){if(t<0||t>=e.length-1)return O.none();var n=e[t].fold((function(){var n=X(e.slice(0,t));return re(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return O.some({value:e,delta:0})})),r=e[t+1].fold((function(){var n=e.slice(t+1);return re(n,(function(e,t){return e.map((function(e){return{value:e,delta:t+1}}))}))}),(function(e){return O.some({value:e,delta:1})}));return n.bind((function(e){return r.map((function(t){var n=t.delta+e.delta;return Math.abs(t.value-e.value)/n}))}))},Wo=function(e,t){return function(n){return"rtl"===Vo(n)?t:e}},Vo=function(e){return"rtl"===hr(e,"direction")?"rtl":"ltr"},Go=Ao("height",(function(e){var t=e.dom;return Dn(e)?t.getBoundingClientRect().height:t.offsetHeight})),Ko=function(e){return Go.get(e)},Yo=function(e){return Go.getOuter(e)},Xo=Mo,Qo=function(e,t){var n=function(n,r){return Qo(e+n,t+r)};return{left:e,top:t,translate:n}},Jo=Qo,Zo=function(e){var t=e.getBoundingClientRect();return Jo(t.left,t.top)},ea=function(e,t){return void 0!==e?e:void 0!==t?t:0},ta=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom)return Jo(n.offsetLeft,n.offsetTop);var o=ea(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=ea(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=ea(i.clientTop,n.clientTop),c=ea(i.clientLeft,n.clientLeft);return na(e).translate(a-c,o-s)},na=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Jo(r.offsetLeft,r.offsetTop):Dn(e)?Zo(t):Jo(0,0)},ra=function(e,t){return{row:e,y:t}},ia=function(e,t){return{col:e,x:t}},oa=function(e){var t=ta(e);return t.left+Po(e)},aa=function(e){return ta(e).left},sa=function(e,t){return ia(e,aa(t))},ca=function(e,t){return ia(e,oa(t))},la=function(e){return ta(e).top},ua=function(e,t){return ra(e,la(t))},da=function(e,t){return ra(e,la(t)+Yo(t))},fa=function(e,t,n){if(0===n.length)return[];var r=I(n.slice(1),(function(t,n){return t.map((function(t){return e(n,t)}))})),i=n[n.length-1].map((function(e){return t(n.length-1,e)}));return r.concat([i])},pa=function(e){return-e},ha={delta:b,positions:function(e){return fa(ua,da,e)},edge:la},ma={delta:b,edge:aa,positions:function(e){return fa(sa,ca,e)}},ga={delta:pa,edge:oa,positions:function(e){return fa(ca,sa,e)}},va=Wo(ma,ga),ba={delta:function(e,t){return va(t).delta(e,t)},positions:function(e,t){return va(t).positions(e,t)},edge:function(e){return va(e).edge(e)}},_a={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:[""]},ya=function(){var e="[0-9]+",t="[+-]?"+e,n="[eE]"+t,r="\\.",i=function(e){return"(?:"+e+")?"},o=["Infinity",e+r+i(e)+i(n),r+e+i(n),e+i(n)].join("|"),a="[+-]?(?:"+o+")";return new RegExp("^("+a+")(.*)$")}(),wa=function(e,t){return N(t,(function(t){return N(_a[t],(function(t){return e===t}))}))},xa=function(e,t){var n=O.from(ya.exec(e));return n.bind((function(e){var n=Number(e[1]),r=e[2];return wa(r,t)?O.some({value:n,unit:r}):O.none()}))},ka=/(\d+(\.\d+)?)%/,Ca=/(\d+(\.\d+)?)px|em/,Aa=dn("col"),Sa=function(e,t,n){var r=gn(e).getOrThunk((function(){return Mn(fn(e))}));return t(e)/n(r)*100},Ea=function(e,t){fr(e,"width",t+"px")},Ta=function(e,t){fr(e,"width",t+"%")},Oa=function(e,t){fr(e,"height",t+"px")},Ra=function(e){return Xo(e)+"px"},Da=function(e,t,n,r){var i=Lr(e).map((function(e){var r=n(e);return Math.floor(t/100*r)})).getOr(t);return r(e,i),i},La=function(e,t,n,r){var i=parseFloat(e);return ke(e,"%")&&"table"!==nn(t)?Da(t,i,n,r):i},Ma=function(e){var t=Ra(e);return t?La(t,e,Ko,Oa):Ko(e)},Fa=function(e,t,n){var r=n(e),i=yr(e,t);return r/i},Na=function(e,t){return gr(e,t).orThunk((function(){return er(e,t).map((function(e){return e+"px"}))}))},Ba=function(e){return Na(e,"width")},Ia=function(e){return Na(e,"height")},Pa=function(e){return Sa(e,Io,$o)},$a=function(e){return Aa(e)?Io(e):jo(e)},ja=function(e){return Fa(e,"rowspan",Ma)},za=function(e){var t=Ba(e);return t.bind((function(e){return xa(e,["fixed","relative","empty"])}))},qa=function(e,t,n){fr(e,"width",t+n)},Ha=function(e){return Io(e)+"px"},Ua=function(e){return Sa(e,Io,$o)+"%"},Wa=function(e){return Ba(e).exists((function(e){return ka.test(e)}))},Va=function(e){return Ba(e).exists((function(e){return Ca.test(e)}))},Ga=function(e){return Ba(e).isNone()},Ka=v(ka),Ya=dn("col"),Xa=function(e){return Ba(e).getOrThunk((function(){return $a(e)+"px"}))},Qa=function(e){return Ia(e).getOrThunk((function(){return ja(e)+"px"}))},Ja=function(e){return I(li.justColumns(e),(function(e){return O.from(e.element)}))},Za=function(e){var t=it().browser,n=t.isChrome()||t.isFirefox();return!Ya(e)||n},es=function(e,t,n,r,i,o){return e.filter(r).fold((function(){return o(Uo(n,t))}),(function(e){return i(e)}))},ts=function(e,t,n,r){var i=zo(e),o=li.hasColumns(e)?Ja(e):i,a=[O.some(ba.edge(t))].concat(I(ba.positions(i,t),(function(e){return e.map((function(e){return e.x}))}))),s=w(wr);return I(o,(function(e,t){return es(e,t,a,s,(function(e){if(Za(e))return n(e);var o=ar(i[t],b);return es(o,t,a,s,(function(e){return r(O.some(Io(e)))}),r)}),r)}))},ns=function(e){return e.map((function(e){return e+"px"})).getOr("")},rs=function(e,t){return ts(e,t,Xa,ns)},is=function(e,t,n){return ts(e,t,Pa,(function(e){return e.fold((function(){return n.minCellWidth()}),(function(e){return e/n.pixelWidth()*100}))}))},os=function(e,t,n){return ts(e,t,$a,(function(e){return e.getOrThunk(n.minCellWidth)}))},as=function(e,t,n,r,i){var o=Ho(e),a=[O.some(n.edge(t))].concat(I(n.positions(o,t),(function(e){return e.map((function(e){return e.y}))})));return I(o,(function(e,t){return es(e,t,a,w(xr),r,i)}))},ss=function(e,t,n){return as(e,t,n,ja,(function(e){return e.getOrThunk(Ar)}))},cs=function(e,t,n){return as(e,t,n,Qa,ns)},ls=function(e,t){return function(){return Dn(e)?t(e):parseFloat(gr(e,"width").getOr("0"))}},us=function(e){var t=ls(e,Io),n=v(0),r=function(t,n){return os(t,e,n)};return{width:t,pixelWidth:t,getWidths:r,getCellDelta:n,singleColumnWidth:v([0]),minCellWidth:n,setElementWidth:h,adjustTableWidth:h,isRelative:!0,label:"none"}},ds=function(e){var t=ls(e,(function(e){return parseFloat(Ua(e))})),n=ls(e,Io),r=function(e){return e/n()*100},i=function(e,t){return[100-e]},o=function(){return Cr()/n()*100},a=function(n){var r=t(),i=n/100*r,o=r+i;Ta(e,o)},s=function(t,n){return is(t,e,n)};return{width:t,pixelWidth:n,getWidths:s,getCellDelta:r,singleColumnWidth:i,minCellWidth:o,setElementWidth:Ta,adjustTableWidth:a,isRelative:!0,label:"percent"}},fs=function(e){var t=ls(e,Io),n=b,r=function(e,t){var n=Math.max(Cr(),e+t);return[n-e]},i=function(n){var r=t()+n;Ea(e,r)},o=function(t,n){return os(t,e,n)};return{width:t,pixelWidth:t,getWidths:o,getCellDelta:n,singleColumnWidth:r,minCellWidth:Cr,setElementWidth:Ea,adjustTableWidth:i,isRelative:!1,label:"pixel"}},ps=function(e,t){var n=Ka().exec(t);return null!==n?ds(e):fs(e)},hs=function(e){var t=Ba(e);return t.fold((function(){return us(e)}),(function(t){return ps(e,t)}))},ms={getTableSize:hs,pixelSize:fs,percentageSize:ds,noneSize:us},gs=function(e,t,n,r,i,o){return{minRow:e,minCol:t,maxRow:n,maxCol:r,allCells:i,selectedCells:o}},vs=function(e,t){var n=e.grid.columns,r=e.grid.rows,i=r,o=n,a=0,s=0,c=[],l=[];return Ot(e.access,(function(e){if(c.push(e),t(e)){l.push(e);var n=e.row,r=n+e.rowspan-1,u=e.column,d=u+e.colspan-1;n<i?i=n:r>a&&(a=r),u<o?o=u:d>s&&(s=d)}})),gs(i,o,a,s,c,l)},bs=function(e,t,n){var r=e[n].element,i=vt.fromTag("td");Ei(i,vt.fromTag("br"));var o=t?Ei:Si;o(r,i)},_s=function(e,t,n,r){for(var i=t.grid.columns,o=t.grid.rows,a=0;a<o;a++)for(var s=!1,c=0;c<i;c++)if(!(a<n.minRow||a>n.maxRow||c<n.minCol||c>n.maxCol)){var l=li.getAt(t,a,c).filter(r).isNone();l?bs(e,s,a):s=!0}},ys=function(e,t,n,r){Ot(n.columns,(function(e){(e.column<t.minCol||e.column>t.maxCol)&&Fi(e.element)}));var i=z(Sr(e,"tr"),(function(e){return 0===e.dom.childElementCount}));P(i,Fi),t.minCol!==t.maxCol&&t.minRow!==t.maxRow||P(Sr(e,"th,td"),(function(e){tr(e,"rowspan"),tr(e,"colspan")})),tr(e,Yr),tr(e,"data-snooker-col-series");var o=ms.getTableSize(e);o.adjustTableWidth(r)},ws=function(e,t,n,r){if(0===r.minCol&&t.grid.columns===r.maxCol+1)return 0;var i=os(t,e,n),o=H(i,(function(e,t){return e+t}),0),a=H(i.slice(r.minCol,r.maxCol+1),(function(e,t){return e+t}),0),s=a/o*n.pixelWidth(),c=s-n.pixelWidth();return n.getCellDelta(c)},xs=function(e,t){var n=function(e){return bt(e.element,t)},r=wo(e),i=Ir(r),o=ms.getTableSize(e),a=li.generate(i),s=vs(a,n),c="th:not("+t+"),td:not("+t+")",l=Er(r,"th,td",(function(e){return bt(e,c)}));P(l,Fi),_s(i,a,s,n);var u=li.fromTable(e),d=ws(e,u,o,s);return ys(r,s,a,d),r},ks=" ",Cs=function(e){return"img"===nn(e)?1:$i(e).fold((function(){return yn(e).length}),(function(e){return e.length}))},As=function(e){return $i(e).filter((function(e){return 0!==e.trim().length||e.indexOf(ks)>-1})).isSome()},Ss=["img","br"],Es=function(e){var t=As(e);return t||F(Ss,nn(e))},Ts=function(e){return Un(e,Es)},Os=function(e){return Rs(e,Es)},Rs=function(e,t){var n=function(e){for(var r=yn(e),i=r.length-1;i>=0;i--){var o=r[i];if(t(o))return O.some(o);var a=n(o);if(a.isSome())return a}return O.none()};return n(e)},Ds={scope:["row","col"]},Ls=function(e){return function(){var t=vt.fromTag("td",e.dom);return Ei(t,vt.fromTag("br",e.dom)),t}},Ms=function(e){return function(){return vt.fromTag("col",e.dom)}},Fs=function(e){return function(){return vt.fromTag("colgroup",e.dom)}},Ns=function(e){return function(){return vt.fromTag("tr",e.dom)}},Bs=function(e,t,n){var r=ko(e,t);return Ot(n,(function(e,t){null===e?tr(r,t):Xn(r,t,e)})),r},Is=function(e){return e},Ps=function(e,t,n){var r=Ts(e);return r.map((function(r){var i=n.join(","),o=In(r,i,(function(t){return xt(t,e)}));return q(o,(function(e,t){var n=yo(t);return tr(n,"contenteditable"),Ei(e,n),n}),t)})).getOr(t)},$s=function(e,t){Ot(Ds,(function(n,r){return er(e,r).filter((function(e){return F(n,e)})).each((function(e){return Xn(t,r,e)}))}))},js=function(e,t,n){var r=function(e,t){br(e.element,t),vr(t,"height"),1!==e.colspan&&vr(t,"width")},i=function(i){var o=vt.fromTag(nn(i.element),t.dom),a=n.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),s=a.length>0?Ps(i.element,o,a):o;return Ei(s,vt.fromTag("br")),r(i,o),$s(i.element,o),e(i.element,o),o},o=function(n){var i=vt.fromTag(nn(n.element),t.dom);return r(n,i),e(n.element,i),i};return{col:o,colgroup:Fs(t),row:Ns(t),cell:i,replace:Bs,colGap:Ms(t),gap:Ls(t)}},zs=function(e){return{col:Ms(e),colgroup:Fs(e),row:Ns(e),cell:Ls(e),replace:Is,colGap:Ms(e),gap:Ls(e)}},qs=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,yn(vt.fromDom(r))},Hs=function(e){return I(e,vt.fromDom)},Us=function(e){return e.nodeName.toLowerCase()},Ws=function(e){return vt.fromDom(e.getBody())},Vs=function(e){return e.getBoundingClientRect().width},Gs=function(e){return e.getBoundingClientRect().height},Ks=function(e){return function(t){return xt(t,Ws(e))}},Ys=function(e){return e?e.replace(/px$/,""):""},Xs=function(e){return/^\d+(\.\d+)?$/.test(e)?e+"px":e},Qs=function(e){tr(e,"data-mce-style");var t=function(e){return tr(e,"data-mce-style")};P(Rr(e),t),P(Dr(e),t),P(Mr(e),t)},Js=function(e,t){var n=e.dom.getStyle(t,"width")||e.dom.getAttrib(t,"width");return O.from(n).filter(Se)},Zs=function(e){return/^(\d+(\.\d+)?)%$/.test(e)},ec=function(e){return/^(\d+(\.\d+)?)px$/.test(e)},tc=function(e){return vt.fromDom(e.selection.getStart())},nc=function(e){return vt.fromDom(e.selection.getEnd())},rc=function(e){return po(e.get(),v([]),b,J)},ic=function(e){var t=function(e,t){return er(e,t).exists((function(e){return parseInt(e,10)>1}))},n=function(e){return t(e,"rowspan")||t(e,"colspan")},r=rc(e);return r.length>0&&Y(r,n)?O.some(r):O.none()},oc=function(e,t,n){return po(t.get(),O.none,(function(t){return t.length<=1?O.none():co(e,n.firstSelectedSelector,n.lastSelectedSelector).map((function(e){return{bounds:e,cells:t}}))}),O.none)},ac="data-mce-selected",sc="td["+ac+"],th["+ac+"]",cc="["+ac+"]",lc="data-mce-first-selected",uc="td["+lc+"],th["+lc+"]",dc="data-mce-last-selected",fc="td["+dc+"],th["+dc+"]",pc=cc,hc={selected:ac,selectedSelector:sc,firstSelected:lc,firstSelectedSelector:uc,lastSelected:dc,lastSelectedSelector:fc},mc=function(e){return{element:e,mergable:O.none(),unmergable:O.none(),selection:[e]}},gc=function(e,t,n){return{element:n,mergable:oc(t,e,hc),unmergable:ic(e),selection:rc(e)}},vc=function(e,t,n){return{element:e,clipboard:t,generators:n}},bc=function(e,t,n,r){return{selection:rc(e),clipboard:n,generators:r}},_c=function(e){return Lr(e).bind((function(e){return so(e,hc.firstSelectedSelector)})).fold(v(e),(function(e){return e[0]}))},yc=function(e){return function(t,n){var r=nn(t),i="col"===r||"colgroup"===r?_c(t):t;return Kn(i,e,n)}},wc=yc("th,td,caption"),xc=yc("th,td"),kc=function(e){return rc(e)},Cc=function(e,t){var n=xc(e),r=n.bind((function(e){return Lr(e)})).map((function(e){return Mr(e)}));return or(n,r,(function(e,n){return z(n,(function(n){return N(Hs(n.dom.cells),(function(n){return"1"===Zn(n,t)||xt(n,e)}))}))})).getOr([])},Ac=function(e){return Lr(e[0]).map((function(e){var t=xs(e,pc);return Qs(t),[t]}))},Sc=function(e,t){return I(t,(function(t){return e.selection.serializer.serialize(t.dom,{})})).join("")},Ec=function(e){return I(e,(function(e){return e.dom.innerText})).join("")},Tc=function(e,t,n){e.on("BeforeGetContent",(function(n){var r=function(t){n.preventDefault(),Ac(t).each((function(t){n.content="text"===n.format?Ec(t):Sc(e,t)}))};!0===n.selection&&po(t.get(),h,r,h)})),e.on("BeforeSetContent",(function(r){if(!0===r.selection&&!0===r.paste){var i=kc(t);te(i).each((function(t){Lr(t).each((function(i){var o=z(qs(r.content),(function(e){return"meta"!==nn(e)})),a=dn("table");if(1===o.length&&a(o[0])){r.preventDefault();var s=vt.fromDom(e.getDoc()),c=zs(s),l=vc(t,o[0],c);n.pasteCells(i,l).each((function(){e.focus()}))}}))}))}}))},Oc=uo.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),Rc=ie({},Oc),Dc=function(e,t){return 0===e.length?Rc.none():1===e.length?Rc.only(0):0===t?Rc.left(0,1):t===e.length-1?Rc.right(t-1,t):t>0&&t<e.length-1?Rc.middle(t-1,t,t+1):Rc.none()},Lc=function(e,t,n,r,i){var o=e.slice(0),a=Dc(e,t),s=v(I(o,v(0))),c=function(e){return r.singleColumnWidth(o[e],n)},l=function(e,t){return i.calcLeftEdgeDeltas(o,e,t,n,r.minCellWidth(),r.isRelative)},u=function(e,t,a){return i.calcMiddleDeltas(o,e,t,a,n,r.minCellWidth(),r.isRelative)},d=function(e,t){return i.calcRightEdgeDeltas(o,e,t,n,r.minCellWidth(),r.isRelative)};return a.fold(s,c,l,u,d)},Mc=function(e,t,n){for(var r=0,i=e;i<t;i++)r+=void 0!==n[i]?n[i]:0;return r},Fc=function(e,t){var n=li.justCells(e);return I(n,(function(e){var n=Mc(e.column,e.column+e.colspan,t);return{element:e.element,width:n,colspan:e.colspan}}))},Nc=function(e,t){var n=li.justColumns(e);return I(n,(function(e,n){return{element:e.element,width:t[n],colspan:e.colspan}}))},Bc=function(e,t){var n=li.justCells(e);return I(n,(function(e){var n=Mc(e.row,e.row+e.rowspan,t);return{element:e.element,height:n,rowspan:e.rowspan}}))},Ic=function(e,t){return I(e.all,(function(e,n){return{element:e.element,height:t[n]}}))},Pc=function(e){return q(e,(function(e,t){return e+t}),0)},$c=function(e,t){return li.hasColumns(e)?Nc(e,t):Fc(e,t)},jc=function(e,t,n){var r=$c(e,t);P(r,(function(e){n.setElementWidth(e.element,e.width)}))},zc=function(e,t,n,r,i){var o=li.fromTable(e),a=i.getCellDelta(t),s=i.getWidths(o,i),c=n===o.grid.columns-1,l=r.clampTableDelta(s,n,a,i.minCellWidth(),c),u=Lc(s,n,l,i,r),d=I(u,(function(e,t){return e+s[t]}));jc(o,d,i),r.resizeTable(i.adjustTableWidth,l,c)},qc=function(e,t,n,r){var i=li.fromTable(e),o=ss(i,e,r),a=I(o,(function(e,r){return n===r?Math.max(t+e,Ar()):e})),s=Bc(i,a),c=Ic(i,a);P(c,(function(e){Oa(e.element,e.height)})),P(s,(function(e){Oa(e.element,e.height)}));var l=Pc(a);Oa(e,l)},Hc=function(e,t,n,r,i){var o=li.generate(t),a=r.getWidths(o,r),s=r.pixelWidth(),c=i.calcRedestributedWidths(a,s,n.pixelDelta,r.isRelative),l=c.newSizes,u=c.delta;jc(o,l,r),r.adjustTableWidth(u)},Uc=function(e,t,n,r){var i=li.generate(t),o=r.getWidths(i,r);jc(i,o,r)},Wc=function(e){return I(e,v(0))},Vc=function(e,t,n,r,i){return i(e.slice(0,t)).concat(r).concat(i(e.slice(n)))},Gc=function(e){return function(t,n,r,i){if(e(r)){var o=Math.max(i,t[n]-Math.abs(r)),a=Math.abs(o-t[n]);return r>=0?a:-a}return r}},Kc=Gc((function(e){return e<0})),Yc=Gc(C),Xc=function(){var e=function(e,t,n,r,i){var o=Kc(e,t,r,i);return Vc(e,t,n+1,[o,0],Wc)},t=function(e,t,n,r){var i=(100+n)/100,o=Math.max(r,(e[t]+n)/i);return I(e,(function(e,n){var r=n===t?o:e/i;return r-e}))},n=function(n,r,i,o,a,s){return s?t(n,r,o,a):e(n,r,i,o,a)},r=function(e,t,r,i,o,a,s){return n(e,r,i,o,a,s)},i=function(e,t){return e(t)},o=function(e,n,r,i,o,a){if(a)return t(e,r,i,o);var s=Kc(e,r,i,o);return Wc(e.slice(0,r)).concat([s])},a=function(e,t,n,r){if(r){var i=t+n,o=i/t,a=I(e,(function(e){return e/o}));return{delta:100*o-100,newSizes:a}}return{delta:n,newSizes:e}};return{resizeTable:i,clampTableDelta:Kc,calcLeftEdgeDeltas:n,calcMiddleDeltas:r,calcRightEdgeDeltas:o,calcRedestributedWidths:a}},Qc=function(){var e=function(e,t,n,r,i){var o=r>=0?n:t,a=Yc(e,o,r,i);return Vc(e,t,n+1,[a,-a],Wc)},t=function(t,n,r,i,o,a){return e(t,r,i,o,a)},n=function(e,t,n){n&&e(t)},r=function(e,t,n,r,i,o){if(o)return Wc(e);var a=r/e.length;return I(e,v(a))},i=function(e,t,n,r,i){if(i){if(n>=0)return n;var o=H(e,(function(e,t){return e+t-r}),0);return Math.max(-o,n)}return Kc(e,t,n,r)},o=function(e,t,n,r){return{delta:0,newSizes:e}};return{resizeTable:n,clampTableDelta:i,calcLeftEdgeDeltas:e,calcMiddleDeltas:t,calcRightEdgeDeltas:r,calcRedestributedWidths:o}},Jc=function(e,t){var n=O.from(e.dom.documentElement).map(vt.fromDom).getOr(e);return{parent:v(n),view:v(e),origin:v(Jo(0,0)),isResizable:t}},Zc=function(e,t,n){var r=function(){return ta(t)};return{parent:v(t),view:v(e),origin:r,isResizable:n}},el=function(e,t,n){return{parent:v(t),view:v(e),origin:v(Jo(0,0)),isResizable:n}},tl={only:Jc,detached:Zc,body:el},nl=uo.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),rl=function(e,t,n){var r=n.substring(0,n.length-e.length),i=parseFloat(r);return r===i.toString()?t(i):nl.invalid(n)},il=function(e){return ke(e,"%")?rl("%",nl.percent,e):ke(e,"px")?rl("px",nl.pixels,e):nl.invalid(e)},ol=ie(ie({},nl),{from:il}),al=function(e,t){return I(e,(function(e){var n=ol.from(e);return n.fold((function(){return e}),(function(e){var n=e/t*100;return n+"%"}),(function(e){return e+"%"}))}))},sl=function(e,t,n){var r=n/t;return I(e,(function(e){var t=ol.from(e);return t.fold((function(){return e}),(function(e){return e*r+"px"}),(function(e){return e/100*n+"px"}))}))},cl=function(e,t){var n=e.fold((function(){return v("")}),(function(e){var n=e/t;return v(n+"px")}),(function(){var e=100/t;return v(e+"%")}));return B(t,n)},ll=function(e,t,n){return e.fold((function(){return t}),(function(e){return sl(t,n,e)}),(function(e){return al(t,n)}))},ul=function(e,t,n){var r=ol.from(n),i=Y(e,(function(e){return"0px"===e}))?cl(r,e.length):ll(r,e,t);return hl(i)},dl=function(e,t){return 0===e.length?t:q(e,(function(e,t){return ol.from(t).fold(v(0),b,b)+e}),0)},fl=function(e,t){var n=Math.floor(e);return{value:n+t,remainder:e-n}},pl=function(e,t){return ol.from(e).fold(v(e),(function(e){return e+t+"px"}),(function(e){return e+t+"%"}))},hl=function(e){if(0===e.length)return e;var t=q(e,(function(e,t){var n=ol.from(t).fold((function(){return{value:t,remainder:0}}),(function(e){return fl(e,"px")}),(function(e){return{value:e+"%",remainder:0}}));return{output:[n.value].concat(e.output),remainder:e.remainder+n.remainder}}),{output:[],remainder:0}),n=t.output;return n.slice(0,n.length-1).concat([pl(n[n.length-1],Math.round(t.remainder))])},ml=ol.from,gl=function(e,t,n){P(t,(function(t){var r=e.slice(t.column,t.colspan+t.column),i=dl(r,Cr());fr(t.element,"width",i+n)}))},vl=function(e,t,n){P(t,(function(t,r){var i=dl([e[r]],Cr());fr(t.element,"width",i+n)}))},bl=function(e,t,n,r){P(n,(function(t){var n=e.slice(t.row,t.rowspan+t.row),i=dl(n,Ar());fr(t.element,"height",i+r)})),P(t,(function(t,n){fr(t.element,"height",e[n])}))},_l=function(e){return ml(e).fold(v("px"),v("px"),v("%"))},yl=function(e,t,n){var r=li.fromTable(e),i=r.all,o=li.justCells(r),a=li.justColumns(r);t.each((function(t){var n=_l(t),i=Io(e),s=rs(r,e),c=ul(s,i,t);li.hasColumns(r)?vl(c,a,n):gl(c,o,n),fr(e,"width",t)})),n.each((function(t){var n=_l(t),a=Ko(e),s=cs(r,e,ha),c=ul(s,a,t);bl(c,i,o,n),fr(e,"height",t)}))},wl=Wa,xl=Va,kl=Ga,Cl=function(e){var t=li.fromTable(e);return t.grid},Al=function(e){var t=[],n=function(e){if(void 0===e)throw new Error("Event bind error: undefined handler");t.push(e)},r=function(e){t=z(t,(function(t){return t!==e}))},i=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};P(e,(function(e,t){i[e]=n[t]})),P(t,(function(e){e(i)}))};return{bind:n,unbind:r,trigger:i}},Sl=function(e){var t=Rt(e,(function(e){return{bind:e.bind,unbind:e.unbind}})),n=Rt(e,(function(e){return e.trigger}));return{registry:t,trigger:n}},El=function(e,t){var n=null,r=function(){s(n)||(clearTimeout(n),n=null)},i=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r(),n=setTimeout((function(){n=null,e.apply(null,i)}),t)};return{cancel:r,throttle:i}},Tl=function(e){return e.slice(0).sort()},Ol=function(e,t){throw new Error("All required keys ("+Tl(e).join(", ")+") were not specified. Specified keys were: "+Tl(t).join(", ")+".")},Rl=function(e){throw new Error("Unsupported keys for object: "+Tl(e).join(", "))},Dl=function(e,t){if(!a(t))throw new Error("The "+e+" fields must be an array. Was: "+t+".");P(t,(function(t){if(!i(t))throw new Error("The value "+t+" in the "+e+" fields was not a string.")}))},Ll=function(e,t){throw new Error("All values need to be of type: "+t+". Keys ("+Tl(e).join(", ")+") were not.")},Ml=function(e){var t=Tl(e),n=W(t,(function(e,n){return n<t.length-1&&e===t[n+1]}));n.each((function(e){throw new Error("The field: "+e+" occurs more than once in the combined fields: ["+t.join(", ")+"].")}))},Fl=function(e,t){return Nl(e,t,{validate:f,label:"function"})},Nl=function(e,t,n){if(0===t.length)throw new Error("You must specify at least one required field.");return Dl("required",t),Ml(t),function(r){var i=Et(r),o=Y(t,(function(e){return F(i,e)}));o||Ol(t,i),e(t,i);var a=z(t,(function(e){return!n.validate(r[e],e)}));return a.length>0&&Ll(a,n.label),r}},Bl=function(e,t){var n=z(t,(function(t){return!F(e,t)}));n.length>0&&Rl(n)},Il=function(e){return Fl(Bl,e)},Pl=Il(["compare","extract","mutate","sink"]),$l=Il(["element","start","stop","destroy"]),jl=Il(["forceDrop","drop","move","delayDrop"]),zl=function(){var e=O.none(),t=function(){e=O.none()},n=function(t,n){var r=e.map((function(e){return t.compare(e,n)}));return e=O.some(n),r},r=function(e,t){var r=t.extract(e);r.each((function(e){var r=n(t,e);r.each((function(e){i.trigger.move(e)}))}))},i=Sl({move:Al(["info"])});return{onEvent:r,reset:t,events:i.registry}},ql=function(){var e=Sl({move:Al(["info"])});return{onEvent:h,reset:h,events:e.registry}},Hl=function(){var e=ql(),t=zl(),n=e,r=function(){n.reset(),n=t},i=function(){n.reset(),n=e},o=function(e,t){n.onEvent(e,t)},a=function(){return n===t};return{on:r,off:i,isOn:a,onEvent:o,events:t.events}},Ul=function(e,t,n){var r=!1,i=Sl({start:Al([]),stop:Al([])}),o=Hl(),a=function(){p.stop(),o.isOn()&&(o.off(),i.trigger.stop())},s=El(a,200),c=function(e){p.start(e),o.on(),i.trigger.start()},l=function(e){s.cancel(),o.onEvent(e,t)};o.events.move.bind((function(n){t.mutate(e,n.info)}));var u=function(){r=!0},d=function(){r=!1},f=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r&&e.apply(null,t)}},p=t.sink(jl({forceDrop:a,drop:f(a),move:f(l),delayDrop:f(s.throttle)}),n),h=function(){p.destroy()};return{element:p.element,go:c,on:u,off:d,destroy:h,events:i.registry}},Wl=function(e,t,n,r,i,o,a){return{target:e,x:t,y:n,stop:r,prevent:i,kill:o,raw:a}},Vl=function(e){var t=vt.fromDom(On(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},i=m(r,n);return Wl(t,e.clientX,e.clientY,n,r,i,e)},Gl=function(e,t){return function(n){e(n)&&t(Vl(n))}},Kl=function(e,t,n,r,i){var o=Gl(n,r);return e.dom.addEventListener(t,o,i),{unbind:y(Xl,e,t,o,i)}},Yl=function(e,t,n,r){return Kl(e,t,n,r,!1)},Xl=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Ql=C,Jl=function(e,t,n){return Yl(e,t,Ql,n)},Zl=Vl,eu=function(e,t){var n=Zn(e,t);return void 0===n||""===n?[]:n.split(" ")},tu=function(e,t,n){var r=eu(e,t),i=r.concat([n]);return Xn(e,t,i.join(" ")),!0},nu=function(e,t,n){var r=z(eu(e,t),(function(e){return e!==n}));return r.length>0?Xn(e,t,r.join(" ")):tr(e,t),!1},ru=function(e){return void 0!==e.dom.classList},iu=function(e){return eu(e,"class")},ou=function(e,t){return tu(e,"class",t)},au=function(e,t){return nu(e,"class",t)},su=function(e,t){ru(e)?e.dom.classList.add(t):ou(e,t)},cu=function(e){var t=ru(e)?e.dom.classList:iu(e);0===t.length&&tr(e,"class")},lu=function(e,t){if(ru(e)){var n=e.dom.classList;n.remove(t)}else au(e,t);cu(e)},uu=function(e,t){return ru(e)&&e.dom.classList.contains(t)},du=function(e){var t=e.replace(/\./g,"-"),n=function(e){return t+"-"+e};return{resolve:n}},fu=du("ephox-dragster"),pu=fu.resolve,hu=function(e){var t=ie({layerClass:pu("blocker")},e),n=vt.fromTag("div");Xn(n,"role","presentation"),pr(n,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),su(n,pu("blocker")),su(n,t.layerClass);var r=v(n),i=function(){Fi(n)};return{element:r,destroy:i}},mu=function(e,t){return Jo(t.left-e.left,t.top-e.top)},gu=function(e){return O.some(Jo(e.x,e.y))},vu=function(e,t){e.mutate(t.left,t.top)},bu=function(e,t){var n=hu(t),r=Jl(n.element(),"mousedown",e.forceDrop),i=Jl(n.element(),"mouseup",e.drop),o=Jl(n.element(),"mousemove",e.move),a=Jl(n.element(),"mouseout",e.delayDrop),s=function(){n.destroy(),i.unbind(),o.unbind(),a.unbind(),r.unbind()},c=function(e){Ei(e,n.element())},l=function(){Fi(n.element())};return $l({element:n.element,start:c,stop:l,destroy:s})},_u=Pl({compare:mu,extract:gu,sink:bu,mutate:vu}),yu=function(e,t){void 0===t&&(t={});var n=void 0!==t.mode?t.mode:_u;return Ul(e,n,t)},wu=function(e){return Kn(e,"[contenteditable]")},xu=function(e,t){return void 0===t&&(t=!1),!it().browser.isIE()&&Dn(e)?e.dom.isContentEditable:wu(e).fold(v(t),(function(e){return"true"===ku(e)}))},ku=function(e){return e.dom.contentEditable},Cu=du("ephox-snooker"),Au=Cu.resolve,Su=function(){var e=Sl({drag:Al(["xDelta","yDelta"])}),t=function(t,n){e.trigger.drag(t,n)};return{mutate:t,events:e.registry}},Eu=function(){var e=Sl({drag:Al(["xDelta","yDelta","target"])}),t=O.none(),n=Su();n.events.drag.bind((function(n){t.each((function(t){e.trigger.drag(n.xDelta,n.yDelta,t)}))}));var r=function(e){t=O.some(e)},i=function(){return t};return{assign:r,get:i,mutate:n.mutate,events:e.registry}},Tu=function(e,t,n,r,i){var o=vt.fromTag("div");return pr(o,{position:"absolute",left:t-r/2+"px",top:n+"px",height:i+"px",width:r+"px"}),Qn(o,{"data-column":e,role:"presentation"}),o},Ou=function(e,t,n,r,i){var o=vt.fromTag("div");return pr(o,{position:"absolute",left:t+"px",top:n-i/2+"px",height:i+"px",width:r+"px"}),Qn(o,{"data-row":e,role:"presentation"}),o},Ru=Au("resizer-bar"),Du=Au("resizer-rows"),Lu=Au("resizer-cols"),Mu=7,Fu=function(e,t){return K(e.all,(function(e,n){return t(e.element)?[n]:[]}))},Nu=function(e,t){var n=[];return B(e.grid.columns,(function(r){var i=li.getColumnAt(e,r).map((function(e){return e.element}));i.forall(t)&&n.push(r)})),z(n,(function(n){var r=li.filterItems(e,(function(e){return e.column===n}));return Y(r,(function(e){return t(e.element)}))}))},Bu=function(e){var t=$n(e.parent(),"."+Ru);P(t,Fi)},Iu=function(e,t,n){var r=e.origin();P(t,(function(t){t.each((function(t){var i=n(r,t);su(i,Ru),Ei(e.parent(),i)}))}))},Pu=function(e,t,n,r){Iu(e,t,(function(e,t){var i=Tu(t.col,t.x-e.left,n.top-e.top,Mu,r);return su(i,Lu),i}))},$u=function(e,t,n,r){Iu(e,t,(function(e,t){var i=Ou(t.row,n.left-e.left,t.y-e.top,r,Mu);return su(i,Du),i}))},ju=function(e,t,n,r,i){var o=ta(n),a=t.isResizable,s=r.length>0?ha.positions(r,n):[],c=s.length>0?Fu(e,a):[],l=z(s,(function(e,t){return N(c,(function(e){return t===e}))}));$u(t,l,o,Po(n));var u=i.length>0?ba.positions(i,n):[],d=u.length>0?Nu(e,a):[],f=z(u,(function(e,t){return N(d,(function(e){return t===e}))}));Pu(t,f,o,Yo(n))},zu=function(e,t){if(Bu(e),e.isResizable(t)){var n=li.fromTable(t),r=Ho(n),i=zo(n);ju(n,e,t,r,i)}},qu=function(e,t){var n=$n(e.parent(),"."+Ru);P(n,t)},Hu=function(e){qu(e,(function(e){fr(e,"display","none")}))},Uu=function(e){qu(e,(function(e){fr(e,"display","block")}))},Wu=function(e){return uu(e,Du)},Vu=function(e){return uu(e,Lu)},Gu=Au("resizer-bar-dragging"),Ku=function(e){var t=Eu(),n=yu(t,{}),r=O.none(),i=function(e,t){return O.from(Zn(e,t))};t.events.drag.bind((function(e){i(e.target,"data-row").each((function(t){var n=kr(e.target,"top");fr(e.target,"top",n+e.yDelta+"px")})),i(e.target,"data-column").each((function(t){var n=kr(e.target,"left");fr(e.target,"left",n+e.xDelta+"px")}))}));var o=function(e,t){var n=kr(e,t),r=_r(e,"data-initial-"+t,0);return n-r};n.events.stop.bind((function(){t.get().each((function(t){r.each((function(n){i(t,"data-row").each((function(e){var r=o(t,"top");tr(t,"data-initial-top"),p.trigger.adjustHeight(n,r,parseInt(e,10))})),i(t,"data-column").each((function(e){var r=o(t,"left");tr(t,"data-initial-left"),p.trigger.adjustWidth(n,r,parseInt(e,10))})),zu(e,n)}))}))}));var a=function(r,i){p.trigger.startAdjust(),t.assign(r),Xn(r,"data-initial-"+i,kr(r,i)),su(r,Gu),fr(r,"opacity","0.2"),n.go(e.parent())},s=Jl(e.parent(),"mousedown",(function(e){Wu(e.target)&&a(e.target,"top"),Vu(e.target)&&a(e.target,"left")})),c=function(t){return xt(t,e.view())},l=function(e){return Kn(e,"table",c).filter(xu)},u=Jl(e.view(),"mouseover",(function(t){l(t.target).fold((function(){Dn(t.target)&&Bu(e)}),(function(t){r=O.some(t),zu(e,t)}))})),d=function(){s.unbind(),u.unbind(),n.destroy(),Bu(e)},f=function(t){zu(e,t)},p=Sl({adjustHeight:Al(["table","delta","row"]),adjustWidth:Al(["table","delta","column"]),startAdjust:Al([])});return{destroy:d,refresh:f,on:n.on,off:n.off,hideBars:y(Hu,e),showBars:y(Uu,e),events:p.registry}},Yu=function(e,t,n){var r=ha,i=ba,o=Ku(e),a=Sl({beforeResize:Al(["table","type"]),afterResize:Al(["table","type"]),startDrag:Al([])});return o.events.adjustHeight.bind((function(e){var t=e.table;a.trigger.beforeResize(t,"row");var n=r.delta(e.delta,t);qc(t,n,e.row,r),a.trigger.afterResize(t,"row")})),o.events.startAdjust.bind((function(e){a.trigger.startDrag()})),o.events.adjustWidth.bind((function(e){var r=e.table;a.trigger.beforeResize(r,"col");var o=i.delta(e.delta,r),s=n(r);zc(r,o,e.column,t,s),a.trigger.afterResize(r,"col")})),{on:o.on,off:o.off,hideBars:o.hideBars,showBars:o.showBars,destroy:o.destroy,events:a.registry}},Xu={create:Yu},Qu=function(e,t){return e.fire("newrow",{node:t})},Ju=function(e,t){return e.fire("newcell",{node:t})},Zu=function(e,t,n,r,i){e.fire("ObjectResizeStart",{target:t,width:n,height:r,origin:i})},ed=function(e,t,n,r,i){e.fire("ObjectResized",{target:t,width:n,height:r,origin:i})},td=function(e,t,n,r,i){e.fire("TableSelectionChange",{cells:t,start:n,finish:r,otherCells:i})},nd=function(e){e.fire("TableSelectionClear")},rd=function(e,t,n){e.fire("TableModified",ie(ie({},n),{table:t}))},id={structure:!1,style:!0},od={structure:!0,style:!1},ad={structure:!0,style:!0},sd="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",cd={"border-collapse":"collapse",width:"100%"},ld=B(5,(function(e){var t=e+1+"px";return{title:t,value:t}})),ud=I(["Solid","Dotted","Dashed","Double","Groove","Ridge","Inset","Outset","None","Hidden"],(function(e){return{title:e,value:e.toLowerCase()}})),dd=function(e){var t;if(Ld(e)){var n=e.dom,r=null!==(t=n.getParent(e.selection.getStart(),n.isBlock))&&void 0!==t?t:e.getBody(),i=$o(vt.fromDom(r));return ie(ie({},cd),{width:i+"px"})}return Md(e)?Ft(cd,(function(e,t){return"width"!==t})):cd},fd={border:"1"},pd="preservetable",hd=function(e){return e.getParam("table_sizing_mode","auto")},md=function(e){return e.getParam("table_responsive_width")},gd=function(e){return e.getParam("table_border_widths",ld,"array")},vd=function(e){return e.getParam("table_border_styles",ud,"array")},bd=function(e){return e.getParam("table_default_attributes",fd,"object")},_d=function(e){return e.getParam("table_default_styles",dd(e),"object")},yd=function(e){return e.getParam("table_resize_bars",!0,"boolean")},wd=function(e){return e.getParam("table_tab_navigation",!0,"boolean")},xd=function(e){return e.getParam("table_cell_advtab",!0,"boolean")},kd=function(e){return e.getParam("table_row_advtab",!0,"boolean")},Cd=function(e){return e.getParam("table_advtab",!0,"boolean")},Ad=function(e){return e.getParam("table_appearance_options",!0,"boolean")},Sd=function(e){return e.getParam("table_grid",!0,"boolean")},Ed=function(e){return e.getParam("table_style_by_css",!1,"boolean")},Td=function(e){return e.getParam("table_cell_class_list",[],"array")},Od=function(e){return e.getParam("table_row_class_list",[],"array")},Rd=function(e){return e.getParam("table_class_list",[],"array")},Dd=function(e){return"relative"===hd(e)||!0===md(e)},Ld=function(e){return"fixed"===hd(e)||!1===md(e)},Md=function(e){return"responsive"===hd(e)},Fd=function(e){return e.getParam("table_toolbar",sd)},Nd=function(e){return e.getParam("table_use_colgroups",!1,"boolean")},Bd=function(e){var t="section",n=e.getParam("table_header_type",t,"string"),r=["section","cells","sectionCells","auto"];return F(r,n)?n:t},Id=function(e){var t=["preservetable","resizetable"],n=e.getParam("table_column_resizing",pd,"string");return W(t,(function(e){return e===n})).getOr(pd)},Pd=function(e){return"preservetable"===Id(e)},$d=function(e){return"resizetable"===Id(e)},jd=function(e){var t=e.getParam("table_clone_elements");return i(t)?O.some(t.split(/[ ,]/)):Array.isArray(t)?O.some(t):O.none()},zd=function(e){var t=e.getParam("object_resizing",!0);return i(t)?"table"===t:t},qd=function(e){return e.getParam("table_background_color_map",[],"array")},Hd=function(e){return e.getParam("table_border_color_map",[],"array")},Ud=function(e,t){return Dd(e)?ms.percentageSize(t):Ld(e)?ms.pixelSize(t):ms.getTableSize(t)},Wd=function(e){tr(e,"width")},Vd=function(e){var t=Ua(e);yl(e,O.some(t),O.none()),Wd(e)},Gd=function(e){var t=Ha(e);yl(e,O.some(t),O.none()),Wd(e)},Kd=function(e){vr(e,"width");var t=Dr(e),n=t.length>0?t:Rr(e);P(n,(function(e){vr(e,"width"),Wd(e)})),Wd(e)},Yd=Vd,Xd=Gd,Qd=Kd,Jd=function(e){var t=li.fromTable(e);li.hasColumns(t)||P(Rr(e),(function(e){var t=hr(e,"width");fr(e,"width",t),tr(e,"width")}))},Zd=function(){var e=vt.fromTag("div");return pr(e,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),Ei(Ln(),e),e},ef=function(e,t){return e.inline?tl.body(Ws(e),Zd(),t):tl.only(vt.fromDom(e.getDoc()),t)},tf=function(e,t){e.inline&&Fi(t.parent())},nf="bar-",rf=function(e){return"false"!==Zn(e,"data-mce-resize")},of=function(e){var t,n,r=O.none(),i=O.none(),o=O.none(),a=function(e){return"TABLE"===e.nodeName},s=function(){return i},c=function(){return o.getOr(tl.only(vt.fromDom(e.getBody()),rf))},l=function(t){return Ud(e,t)},u=function(){return Pd(e)?Qc():Xc()},d=function(e){return Cl(e).columns},f=function(r,i,o){var a=ke(i,"e");if(""===n&&Yd(r),o!==t&&""!==n){fr(r,"width",n);var s=u(),c=l(r),f=Pd(e)||a?d(r)-1:0;zc(r,o-t,f,s,c)}else if(Zs(n)){var p=parseFloat(n.replace("%","")),h=o*p/t;fr(r,"width",h+"%")}ec(n)&&Jd(r)},p=function(){i.each((function(e){e.destroy()})),o.each((function(t){tf(e,t)}))};return e.on("init",(function(){var t=ef(e,rf);if(o=O.some(t),zd(e)&&yd(e)){var n=u(),a=Xu.create(t,n,l);a.on(),a.events.startDrag.bind((function(t){r=O.some(e.selection.getRng())})),a.events.beforeResize.bind((function(t){var n=t.table.dom;Zu(e,n,Vs(n),Gs(n),nf+t.type)})),a.events.afterResize.bind((function(t){var n=t.table,i=n.dom;Qs(n),r.each((function(t){e.selection.setRng(t),e.focus()})),ed(e,i,Vs(i),Gs(i),nf+t.type),e.undoManager.add()})),i=O.some(a)}})),e.on("ObjectResizeStart",(function(r){var i=r.target;if(a(i)){var o=vt.fromDom(i);P(e.dom.select(".mce-clonedresizable"),(function(t){e.dom.addClass(t,"mce-"+Id(e)+"-columns")})),!xl(o)&&Ld(e)?Xd(o):!wl(o)&&Dd(e)&&Yd(o),kl(o)&&xe(r.origin,nf)&&Yd(o),t=r.width,n=Md(e)?"":Js(e,i).getOr("")}})),e.on("ObjectResized",(function(t){var n=t.target;if(a(n)){var r=vt.fromDom(n),i=t.origin;xe(i,"corner-")&&f(r,i,t.width),Qs(r),rd(e,r.dom,id)}})),e.on("SwitchMode",(function(){s().each((function(t){e.mode.isReadOnly()?t.hideBars():t.showBars()}))})),{lazyResize:s,lazyWire:c,destroy:p}},af=function(e,t){return{element:e,offset:t}},sf=function(e,t,n){return e.property().isText(t)&&0===e.property().getText(t).trim().length||e.property().isComment(t)?n(t).bind((function(t){return sf(e,t,n).orThunk((function(){return O.some(t)}))})):O.none()},cf=function(e,t){if(e.property().isText(t))return e.property().getText(t).length;var n=e.property().children(t);return n.length},lf=function(e,t){var n=sf(e,t,e.query().prevSibling).getOr(t);if(e.property().isText(n))return af(n,cf(e,n));var r=e.property().children(n);return r.length>0?lf(e,r[r.length-1]):af(n,cf(e,n))},uf=lf,df=qi(),ff=function(e){return uf(df,e)},pf=function(e,t){var n=yr(e,"colspan");if(1===n){var r=za(e);r.each((function(n){var r=n.value/2;qa(e,r,n.unit),qa(t,r,n.unit)}))}},hf=dn("th"),mf=function(e){return Y(e,(function(e){return hf(e.element)}))},gf=function(e,t){return e&&t?"sectionCells":e?"section":"cells"},vf=function(e){var t="thead"===e.section,n=rr(bf(e.cells),"th");return t||n?{type:"header",subType:gf(t,n)}:"tfoot"===e.section?{type:"footer"}:{type:"body"}},bf=function(e){var t=z(e,(function(e){return hf(e.element)}));return 0===t.length?O.some("td"):t.length===e.length?O.some("th"):O.none()},_f=function(e){var t=I(e,(function(e){return vf(e).type})),n=F(t,"header"),r=F(t,"footer");if(n||r){var i=F(t,"body");return!n||i||r?n||i||!r?O.none():O.some("footer"):O.some("header")}return O.some("body")},yf=function(e){return re(e.all,(function(e){var t=vf(e);return"header"===t.type?O.from(t.subType):O.none()}))},wf=function(e,t,n){return Qt(n(e.element,t),!0,e.isLocked)},xf=function(e,t){return e.section!==t?Jt(e.element,e.cells,t,e.isNew):e},kf=function(){return{transformRow:xf,transformCell:function(e,t,n){var r=n(e.element,t),i="td"!==nn(r)?Co(r,"td"):r;return Qt(i,e.isNew,e.isLocked)}}},Cf=function(){return{transformRow:xf,transformCell:wf}},Af=function(){return{transformRow:function(e,t){var n="thead"===t?"tbody":t;return xf(e,n)},transformCell:wf}},Sf=function(){return{transformRow:b,transformCell:wf}},Ef=function(e,t){var n=li.fromTable(e),r=yf(n).getOr(t);switch(r){case"section":return kf();case"sectionCells":return Cf();case"cells":return Af()}},Tf={getTableSectionType:Ef,section:kf,sectionCells:Cf,cells:Af,fallback:Sf},Of=function(e,t,n,r){n===r?tr(e,t):Xn(e,t,n)},Rf=function(e,t,n){ne(Pn(e,t)).fold((function(){return Si(e,n)}),(function(e){return Ai(e,n)}))},Df=function(e,t){var n=Vn(e,t).getOrThunk((function(){var n=vt.fromTag(t,fn(e).dom);return"thead"===t?Rf(e,"caption,colgroup",n):"colgroup"===t?Rf(e,"caption",n):Ei(e,n),n}));return Mi(n),n},Lf=function(e,t){var n=[],r=[],i=function(e){return I(e,(function(e){e.isNew&&n.push(e.element);var t=e.element;return Mi(t),P(e.cells,(function(e){e.isNew&&r.push(e.element),Of(e.element,"colspan",e.colspan,1),Of(e.element,"rowspan",e.rowspan,1),Ei(t,e.element)})),t}))},o=function(e){return K(e,(function(e){return I(e.cells,(function(e){return Of(e.element,"span",e.colspan,1),e.element}))}))},a=function(t,n){var r=Df(e,n),a="colgroup"===n?o:i,s=a(t);Li(r,s)},s=function(t){Vn(e,t).each(Fi)},c=function(e,t){e.length>0?a(e,t):s(t)},l=[],u=[],d=[],f=[];return P(t,(function(e){switch(e.section){case"thead":l.push(e);break;case"tbody":u.push(e);break;case"tfoot":d.push(e);break;case"colgroup":f.push(e);break}})),c(f,"colgroup"),c(l,"thead"),c(u,"tbody"),c(d,"tfoot"),{newRows:n,newCells:r}},Mf=function(e){return I(e,(function(e){var t=yo(e.element);return P(e.cells,(function(e){var n=wo(e.element);Of(n,"colspan",e.colspan,1),Of(n,"rowspan",e.rowspan,1),Ei(t,n)})),t}))},Ff=function(e,t){return I(e,(function(e){return Ur(e,t)}))},Nf=function(e,t){return e[t]},Bf=function(e,t){if(0===e.length)return 0;var n=e[0],r=V(e,(function(e){return!t(n.element,e.element)}));return r.getOr(e.length)},If=function(e,t,n,r){var i=Nf(e,t),o="colgroup"===i.section,a=Bf(i.cells.slice(n),r),s=o?1:Bf(Ff(e.slice(t),n),r);return{colspan:a,rowspan:s}},Pf=function(e,t){var n=I(e,(function(e){return I(e.cells,k)})),r=function(e,t,r,i){for(var o=e;o<e+r;o++)for(var a=t;a<t+i;a++)n[o][a]=!0};return I(e,(function(i,o){var a=K(i.cells,(function(i,a){if(!1===n[o][a]){var s=If(e,o,a,t);return r(o,a,s.rowspan,s.colspan),[Gt(i.element,s.rowspan,s.colspan,i.isNew)]}return[]}));return Xt(i.element,a,i.section,i.isNew)}))},$f=function(e,t,n){var r=[];P(e.colgroups,(function(i){for(var o=[],a=0;a<e.grid.columns;a++){var s=li.getColumnAt(e,a).map((function(e){return Qt(e.element,n,!1)})).getOrThunk((function(){return Qt(t.colGap(),!0,!1)}));o.push(s)}r.push(Jt(i.element,o,"colgroup",n))}));for(var i=0;i<e.grid.rows;i++){for(var o=[],a=0;a<e.grid.columns;a++){var s=li.getAt(e,i,a).map((function(e){return Qt(e.element,n,e.isLocked)})).getOrThunk((function(){return Qt(t.gap(),!0,!1)}));o.push(s)}var c=e.all[i],l=Jt(c.element,o,c.section,n);r.push(l)}return r},jf=function(e,t){return $f(e,t,!1)},zf=function(e){return Pf(e,xt)},qf=function(e,t){return re(e.all,(function(e){return W(e.cells,(function(e){return xt(t,e.element)}))}))},Hf=function(e,t,n){var r=I(t.selection,(function(t){return Or(t).bind((function(t){return qf(e,t)})).filter(n)})),i=ir(r);return cr(i.length>0,i)},Uf=function(e,t,n,r,i){return function(o,a,s,c,l){var u=li.fromTable(a),d=O.from(null===l||void 0===l?void 0:l.section).getOrThunk(Tf.fallback),f=t(u,s).map((function(t){var n=jf(u,c),r=e(n,t,xt,i(c),d),o=Qr(r.grid),a=zf(r.grid);return{info:t,grid:a,cursor:r.cursor,lockedColumns:o}}));return f.bind((function(e){var t=Lf(a,e.grid),i=O.from(null===l||void 0===l?void 0:l.sizing).getOrThunk((function(){return ms.getTableSize(a)})),s=O.from(null===l||void 0===l?void 0:l.resize).getOrThunk(Qc);return n(a,e.grid,e.info,{sizing:i,resize:s,section:d}),r(a),zu(o,a),tr(a,Yr),e.lockedColumns.length>0&&Xn(a,Yr,e.lockedColumns.join(",")),O.some({cursor:e.cursor,newRows:t.newRows,newCells:t.newCells})}))}},Wf=function(e,t){return Or(t.element).bind((function(n){return qf(e,n).map((function(e){var n=ie(ie({},e),{generators:t.generators,clipboard:t.clipboard});return n}))}))},Vf=function(e,t){return Hf(e,t,C).map((function(e){return{cells:e,generators:t.generators,clipboard:t.clipboard}}))},Gf=function(e,t){return t.mergable},Kf=function(e,t){return t.unmergable},Yf=function(e,t){return Hf(e,t,C)},Xf=function(e,t){return Hf(e,t,(function(e){return!e.isLocked}))},Qf=function(e,t){return qf(e,t).exists((function(e){return!e.isLocked}))},Jf=function(e,t){return Y(t,(function(t){return Qf(e,t)}))},Zf=function(e,t){return Gf(e,t).filter((function(t){return Jf(e,t.cells)}))},ep=function(e,t){return Kf(e,t).filter((function(t){return Jf(e,t)}))},tp=function(e,t,n,r){var i=Gr(e).rows;if(0===i.length)return e;for(var o=t.startRow;o<=t.finishRow;o++)for(var a=t.startCol;a<=t.finishCol;a++){var s=i[o],c=Ur(s,a).isLocked;zr(s,a,Qt(r(),!1,c))}return e},np=function(e,t,n,r){for(var i=Gr(e).rows,o=!0,a=0;a<i.length;a++)for(var s=0;s<Vr(i[0]);s++){var c=i[a],l=Ur(c,s),u=l.element,d=n(u,t);!0===d&&!1===o?zr(c,s,Qt(r(),!0,l.isLocked)):!0===d&&(o=!1)}return e},rp=function(e,t){return H(e,(function(e,n){return N(e,(function(e){return t(e.element,n.element)}))?e:e.concat([n])}),[])},ip=function(e,t,n,r){return t>0&&t<e[0].cells.length&&P(e,(function(e){var i=e.cells[t-1],o=e.cells[t],a=n(o.element,i.element);a&&zr(e,t,Qt(r(),!0,o.isLocked))})),e},op=function(e,t,n,r){var i=Gr(e).rows;if(t>0&&t<i.length){var o=i[t-1].cells,a=rp(o,n);P(a,(function(e){for(var o=O.none(),a=t;a<i.length;a++)for(var s=function(t){var s=i[a],c=Ur(s,t),l=n(c.element,e.element);l&&(o.isNone()&&(o=O.some(r())),o.each((function(e){zr(s,t,Qt(e,!0,c.isLocked))})))},c=0;c<Vr(i[0]);c++)s(c)}))}return e},ap=function(e){var t=function(t){return ap(e)},n=function(t){return ap(e)},r=function(t){return ap(t(e))},i=function(t){return ap(e)},o=function(t){t(e)},a=function(t){return t(e)},s=function(t,n){return n(e)},c=function(t){return t(e)},l=function(t){return t(e)},u=function(){return O.some(e)};return{isValue:C,isError:k,getOr:v(e),getOrThunk:v(e),getOrDie:v(e),or:t,orThunk:n,fold:s,map:r,mapError:i,each:o,bind:a,exists:c,forall:l,toOptional:u}},sp=function(e){var t=function(e){return e()},n=function(){return x(String(e))()},r=b,i=function(e){return e()},o=function(t){return sp(e)},a=function(t){return sp(t(e))},s=function(t){return sp(e)},c=function(t,n){return t(e)};return{isValue:k,isError:C,getOr:b,getOrThunk:t,getOrDie:n,or:r,orThunk:i,fold:c,map:o,mapError:a,each:h,bind:s,exists:k,forall:C,toOptional:O.none}},cp=function(e,t){return e.fold((function(){return sp(t)}),ap)},lp={value:ap,error:sp,fromOption:cp},up=function(e,t,n){if(e.row>=t.length||e.column>Vr(t[0]))return lp.error("invalid start address out of table bounds, row: "+e.row+", column: "+e.column);var r=t.slice(e.row),i=r[0].cells.slice(e.column),o=Vr(n[0]),a=n.length;return lp.value({rowDelta:r.length-a,colDelta:i.length-o})},dp=function(e,t){var n=Vr(e[0]),r=Vr(t[0]);return{rowDelta:0,colDelta:n-r}},fp=function(e,t){var n=e.length,r=t.length;return{rowDelta:n-r,colDelta:0}},pp=function(e,t,n,r){var i="colgroup"===t.section?n.col:n.cell;return B(e,(function(e){return Qt(i(),!0,r(e))}))},hp=function(e,t,n,r){var i=e[e.length-1];return e.concat(B(t,(function(){var e="colgroup"===i.section?n.colgroup:n.row,t=Kr(i,e,b),o=pp(t.cells.length,t,n,(function(e){return $t(r,e.toString())}));return qr(t,o)})))},mp=function(e,t,n,r){return I(e,(function(e){var i=pp(t,e,n,k);return $r(e,r,i)}))},gp=function(e,t,n){return I(e,(function(e){return H(n,(function(n,r){var i=pp(1,e,t,C)[0];return jr(n,r,i)}),e)}))},vp=function(e,t,n){var r=t.colDelta<0?mp:b,i=t.rowDelta<0?hp:b,o=Qr(e),a=Vr(e[0]),s=N(o,(function(e){return e===a-1})),c=r(e,Math.abs(t.colDelta),n,s?a-1:a),l=Qr(c);return i(c,Math.abs(t.rowDelta),n,Q(l,C))},bp=function(e,t,n,r){var i=Ur(e[t],n),o=y(r,i.element),a=e[t];return e.length>1&&Vr(a)>1&&(n>0&&o(Wr(a,n-1))||n<a.cells.length-1&&o(Wr(a,n+1))||t>0&&o(Wr(e[t-1],n))||t<e.length-1&&o(Wr(e[t+1],n)))},_p=function(e,t,n,r,i,o){for(var a=e.row,s=e.column,c=n.length,l=Vr(n[0]),u=a+c,d=s+l+o.length,f=Q(o,C),p=a;p<u;p++)for(var h=0,m=s;m<d;m++)if(f[m])h++;else{bp(t,p,m,i)&&np(t,Wr(t[p],m),i,r.cell);var g=m-s-h,v=Ur(n[p-a],g),b=v.element,_=r.replace(b);zr(t[p],m,Qt(_,!0,v.isLocked))}return t},yp=function(e,t,n){var r=Vr(t[0]),i=Gr(t).cols.length+e.row,o=B(r-e.column,(function(t){return t+e.column})),a=W(o,(function(e){return Y(n,(function(t){return t!==e}))})).getOr(r-1);return{row:i,column:a}},wp=function(e,t,n){return z(n,(function(n){return n>=e.column&&n<=Vr(t[0])+e.column}))},xp=function(e,t,n,r,i){var o=Qr(t),a=yp(e,t,o),s=Gr(n).rows,c=wp(a,s,o),l=up(a,t,s);return l.map((function(e){var n=ie(ie({},e),{colDelta:e.colDelta-c.length}),o=vp(t,n,r),l=Qr(o),u=wp(a,s,l);return _p(a,o,s,r,i,u)}))},kp=function(e,t,n,r,i){ip(t,e,i,r.cell);var o=fp(n,t),a=vp(n,o,r),s=fp(t,a),c=vp(t,s,r);return I(c,(function(t,n){return $r(t,e,a[n].cells)}))},Cp=function(e,t,n,r,i){op(t,e,i,r.cell);var o=Qr(t),a=dp(t,n),s=ie(ie({},a),{colDelta:a.colDelta-o.length}),c=vp(t,s,r),l=Gr(c),u=l.cols,d=l.rows,f=Qr(c),p=dp(n,t),h=ie(ie({},p),{colDelta:p.colDelta+f.length}),m=gp(n,r,f),g=vp(m,h,r);return u.concat(d.slice(0,e)).concat(g).concat(d.slice(e,d.length))},Ap=function(e,t,n,r){return Kr(e,(function(e){return r(e,n)}),t)},Sp=function(e,t,n,r,i){var o=Gr(e),a=o.rows,s=o.cols,c=a.slice(0,t),l=a.slice(t),u=Ap(a[n],(function(e,n){var o=t>0&&t<a.length&&r(Wr(a[t-1],n),Wr(a[t],n)),s=o?Ur(a[t],n):Qt(i(e.element,r),!0,e.isLocked);return s}),r,i);return s.concat(c).concat([u]).concat(l)},Ep=function(e,t,n,r,i,o,a){if("colgroup"!==n&&r)return Ur(e,t);var s=Ur(e,i);return Qt(a(s.element,o),!0,!1)},Tp=function(e,t,n,r,i){return I(e,(function(e){var o=t>0&&t<Vr(e)&&r(Wr(e,t-1),Wr(e,t)),a=Ep(e,t,e.section,o,n,r,i);return jr(e,t,a)}))},Op=function(e,t){return K(e,(function(e){var n=e.cells,r=q(t,(function(e,t){return t>=0&&t<e.length?e.slice(0,t).concat(e.slice(t+1)):e}),n);return r.length>0?[Jt(e.element,r,e.section,e.isNew)]:[]}))},Rp=function(e,t,n){var r=Gr(e),i=r.rows,o=r.cols;return o.concat(i.slice(0,t)).concat(i.slice(n+1))},Dp=function(e,t,n,r){return void 0!==Wr(e[t],n)&&t>0&&r(Wr(e[t-1],n),Wr(e[t],n))},Lp=function(e,t,n){return t>0&&n(Wr(e,t-1),Wr(e,t))},Mp=function(e,t,n,r){return Dp(e,t,n,r)||Lp(e[t],n,r)},Fp=function(e,t){var n=Y(t,b)&&mf(e.cells);return n?C:function(e,n,r){var i=nn(e.element);return!("th"===i&&t[r])}},Np=function(e,t){var n=Y(t,b)&&mf(e);return n?C:function(e,n,r){var i=nn(e.element);return!("th"===i&&t[n])}},Bp=function(e,t,n,r){var i=function(e){return"row"===e?xr(t):wr(t)},o=function(e){return i(e)?e+"group":e};if(e)return hf(t)?o(n):null;if(r&&hf(t)){var a="row"===n?"col":"row";return o(a)}return null},Ip=function(e,t){return function(n,r,i){return O.some(Bp(e,n.element,"col",t[i]))}},Pp=function(e,t){return function(n,r){return O.some(Bp(e,n.element,"row",t[r]))}},$p=function(e,t,n){return Qt(n(e.element,t),!0,e.isLocked)},jp=function(e,t,n,r,i,o,a){var s=function(e){return N(t,(function(t){return n(e.element,t.element)}))};return I(e,(function(e,t){return Hr(e,(function(e,c){if(s(e)){var l=a(e,t,c)?i(e,n,r):e;return o(l,t,c).each((function(e){Jn(l.element,{scope:O.from(e)})})),l}return e}))}))},zp=function(e,t,n){return K(e,(function(r,i){return Mp(e,i,t,n)?[]:[Ur(r,t)]}))},qp=function(e,t,n){var r=e[t];return K(r.cells,(function(r,i){return Mp(e,t,i,n)?[]:[r]}))},Hp=function(e,t,n,r,i){var o=Gr(e).rows,a=K(t,(function(e){return zp(o,e,r)})),s=I(e,(function(e){return mf(e.cells)})),c=Np(a,s),l=Pp(n,s);return jp(e,a,r,i,$p,l,c)},Up=function(e,t,n,r,i,o,a){var s=Gr(e),c=s.cols,l=s.rows,u=l[t[0]],d=K(t,(function(e){return qp(l,e,i)})),f=I(u.cells,(function(e,t){return mf(zp(l,t,i))})),p=oe([],l,!0);P(t,(function(e){p[e]=a.transformRow(l[e],n)}));var h=c.concat(p),m=Fp(u,f),g=Ip(r,f);return jp(h,d,i,o,a.transformCell,g,m)},Wp=function(e,t,n,r){var i=Gr(e).rows,o=I(t,(function(e){return Ur(i[e.row],e.column)}));return jp(e,o,n,r,$p,O.none,C)},Vp=function(e){var t=function(e,t){var n=N(e,(function(e){return e.column===t.column}));return n?e:e.concat([t])};return H(e,t,[]).sort((function(e,t){return e.column-t.column}))},Gp=dn("col"),Kp=dn("colgroup"),Yp=function(e){return"tr"===nn(e)||Kp(e)},Xp=function(e){var t=_r(e,"colspan",1),n=_r(e,"rowspan",1);return{element:e,colspan:t,rowspan:n}},Qp=function(e,t){void 0===t&&(t=Xp);var n=function(t){return Gp(t.element)?e.col(t):e.cell(t)},r=function(t){return Kp(t.element)?e.colgroup(t):e.row(t)},i=function(e){if(Yp(e))return r({element:e});var i=n(t(e));return o=O.some({item:e,replacement:i}),i},o=O.none(),a=function(e,t){return o.fold((function(){return i(e)}),(function(n){return t(e,n.item)?n.replacement:i(e)}))};return{getOrInit:a}},Jp=function(e){return function(t){var n=[],r=function(e,t){return W(n,(function(n){return t(n.item,e)}))},i=function(r){var i="td"===e?{scope:null}:{},o=t.replace(r,e,i);return n.push({item:r,sub:o}),o},o=function(e,t){return Yp(e)||Gp(e)?e:r(e,t).fold((function(){return i(e)}),(function(n){return t(e,n.item)?n.sub:i(e)}))};return{replaceOrInit:o}}},Zp=function(e){return er(e,"scope").map((function(e){return e.substr(0,3)}))},eh=function(e){var t=function(t){var n=Zp(t);return n.each((function(e){return Xn(t,"scope",e)})),function(){var r=e.cell({element:t,colspan:1,rowspan:1});return vr(r,"width"),vr(t,"width"),n.each((function(e){return Xn(r,"scope",e)})),r}},n=function(e){var t=function(){var t=ir(I(e,Zp));if(0===t.length)return O.none();var n=t[0],r=["row","col"],i=N(t,(function(e){return e!==n&&F(r,e)}));return i?O.none():O.from(n)};return vr(e[0],"width"),t().fold((function(){return tr(e[0],"scope")}),(function(t){return Xn(e[0],"scope",t+"group")})),v(e[0])};return{unmerge:t,merge:n}},th={modification:Qp,transform:Jp,merging:eh},nh=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],rh=function(e,t){var n=e.property().name(t);return F(["ol","ul"],n)},ih=function(e,t){var n=e.property().name(t);return F(nh,n)},oh=function(e,t){return F(["br","img","hr","input"],e.property().name(t))},ah=qi(),sh=function(e){return ih(ah,e)},ch=function(e){return rh(ah,e)},lh=function(e){return oh(ah,e)},uh=function(e){var t=function(e){return"br"===nn(e)},n=function(e){return Y(e,(function(e){return t(e)||cn(e)&&0===Pi(e).trim().length}))},r=function(e){return"li"===nn(e)||zn(e,ch).isSome()},i=function(e){return _n(e).map((function(e){return!!sh(e)||!!lh(e)&&"img"!==nn(e)})).getOr(!1)},o=function(e){return Os(e).bind((function(n){var o=i(n);return mn(n).map((function(i){return!0===o||r(i)||t(n)||sh(i)&&!xt(e,i)?[]:[vt.fromTag("br")]}))})).getOr([])},a=function(){var t=K(e,(function(e){var t=yn(e);return n(t)?[]:t.concat(o(e))}));return 0===t.length?[vt.fromTag("br")]:t},s=a();Mi(e[0]),Li(e[0],s)},dh=function(e){return xu(e,!0)},fh=function(e){var t=Rr(e);0===t.length&&Fi(e)},ph=function(e,t){return{grid:e,cursor:t}},hh=function(e){return re(e,(function(e){return re(e.cells,(function(e){var t=e.element;return cr(dh(t),t)}))}))},mh=function(e,t,n){var r,i,o=Gr(e).rows;return O.from(null===(i=null===(r=o[t])||void 0===r?void 0:r.cells[n])||void 0===i?void 0:i.element).filter(dh).orThunk((function(){return hh(o)}))},gh=function(e,t,n){var r=mh(e,t,n);return ph(e,r)},vh=function(e){var t=function(e,t){var n=N(e,(function(e){return e.row===t.row}));return n?e:e.concat([t])};return H(e,t,[]).sort((function(e,t){return e.row-t.row}))},bh=function(e,t,n,r){var i=t[0].row,o=vh(t),a=q(o,(function(e,t){var o=Sp(e.grid,i,t.row+e.delta,n,r.getOrInit);return{grid:o,delta:e.delta+1}}),{grid:e,delta:0}).grid;return gh(a,i,t[0].column)},_h=function(e,t,n,r){var i=vh(t),o=i[i.length-1],a=o.row+o.rowspan,s=q(i,(function(e,t){return Sp(e,a,t.row,n,r.getOrInit)}),e);return gh(s,a,t[0].column)},yh=function(e,t,n,r){var i=t.details,o=Vp(i),a=o[0].column,s=q(o,(function(e,t){var i=Tp(e.grid,a,t.column+e.delta,n,r.getOrInit);return{grid:i,delta:e.delta+1}}),{grid:e,delta:0}).grid;return gh(s,i[0].row,a)},wh=function(e,t,n,r){var i=t.details,o=i[i.length-1],a=o.column+o.colspan,s=Vp(i),c=q(s,(function(e,t){return Tp(e,a,t.column,n,r.getOrInit)}),e);return gh(c,i[0].row,a)},xh=function(e,t,n,r){var i=Vp(t),o=I(i,(function(e){return e.column})),a=Hp(e,o,!0,n,r.replaceOrInit);return gh(a,t[0].row,t[0].column)},kh=function(e,t,n,r){var i=Wp(e,t,n,r.replaceOrInit);return gh(i,t[0].row,t[0].column)},Ch=function(e,t,n,r){var i=Vp(t),o=I(i,(function(e){return e.column})),a=Hp(e,o,!1,n,r.replaceOrInit);return gh(a,t[0].row,t[0].column)},Ah=function(e,t,n,r){var i=Wp(e,t,n,r.replaceOrInit);return gh(i,t[0].row,t[0].column)},Sh=function(e,t){return function(n,r,i,o,a){var s=vh(r),c=I(s,(function(e){return e.row})),l=Up(n,c,e,t,i,o.replaceOrInit,a);return gh(l,r[0].row,r[0].column)}},Eh=Sh("thead",!0),Th=Sh("tbody",!1),Oh=Sh("tfoot",!1),Rh=function(e,t,n,r){var i=Vp(t.details),o=Op(e,I(i,(function(e){return e.column}))),a=o.length>0?o[0].cells.length-1:0;return gh(o,i[0].row,Math.min(i[0].column,a))},Dh=function(e,t,n,r){var i=vh(t),o=Rp(e,i[0].row,i[i.length-1].row),a=o.length>0?o.length-1:0;return gh(o,Math.min(t[0].row,a),t[0].column)},Lh=function(e,t,n,r){var i=t.cells;uh(i);var o=tp(e,t.bounds,n,r.merge(i));return ph(o,O.from(i[0]))},Mh=function(e,t,n,r){var i=function(e,t){return np(e,t,n,r.unmerge(t))},o=q(t,i,e);return ph(o,O.from(t[0]))},Fh=function(e,t,n,r){var i=function(e,t){var n=li.fromTable(e);return $f(n,t,!0)},o=i(t.clipboard,t.generators),a=Wt(t.row,t.column),s=xp(a,e,o,t.generators,n);return s.fold((function(){return ph(e,O.some(t.element))}),(function(e){return gh(e,t.row,t.column)}))},Nh=function(e,t,n){var r=Pr(e,n.section),i=li.generate(r);return $f(i,t,!0)},Bh=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[0].column,a=i[t.cells[0].row],s=Nh(t.clipboard,t.generators,a),c=kp(o,e,s,t.generators,n);return gh(c,t.cells[0].row,t.cells[0].column)},Ih=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[t.cells.length-1].column+t.cells[t.cells.length-1].colspan,a=i[t.cells[0].row],s=Nh(t.clipboard,t.generators,a),c=kp(o,e,s,t.generators,n);return gh(c,t.cells[0].row,t.cells[0].column)},Ph=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[0].row,a=i[o],s=Nh(t.clipboard,t.generators,a),c=Cp(o,e,s,t.generators,n);return gh(c,t.cells[0].row,t.cells[0].column)},$h=function(e,t,n,r){var i=Gr(e).rows,o=t.cells[t.cells.length-1].row+t.cells[t.cells.length-1].rowspan,a=i[t.cells[0].row],s=Nh(t.clipboard,t.generators,a),c=Cp(o,e,s,t.generators,n);return gh(c,t.cells[0].row,t.cells[0].column)},jh=function(e,t){var n=li.fromTable(e),r=Yf(n,t);return r.bind((function(e){var t=e[e.length-1],r=e[0].column,i=t.column+t.colspan,o=G(I(n.all,(function(e){return z(e.cells,(function(e){return e.column>=r&&e.column<i}))})));return bf(o)})).getOr("")},zh=function(e,t){var n=li.fromTable(e),r=Yf(n,t);return r.bind(bf).getOr("")},qh=function(e,t){var n=li.fromTable(e),r=Yf(n,t);return r.bind((function(e){var t=e[e.length-1],r=e[0].row,i=t.row+t.rowspan,o=n.all.slice(r,i);return _f(o)})).getOr("")},Hh=function(e,t,n,r){return Uc(e,t,n,r.sizing)},Uh=function(e,t,n,r){return Hc(e,t,n,r.sizing,r.resize)},Wh=function(e,t){return N(t,(function(e){return 0===e.column&&e.isLocked}))},Vh=function(e,t){return N(t,(function(t){return t.column+t.colspan>=e.grid.columns&&t.isLocked}))},Gh=function(e,t){var n=zo(e),r=Vp(t);return H(r,(function(e,t){var r=n[t.column],i=r.map(Po).getOr(0);return e+i}),0)},Kh=function(e){return function(t,n){return Yf(t,n).filter((function(n){var r=e?Wh:Vh;return!r(t,n)})).map((function(e){return{details:e,pixelDelta:Gh(t,e)}}))}},Yh=function(e,t){return Xf(e,t).map((function(t){return{details:t,pixelDelta:-Gh(e,t)}}))},Xh=function(e){return function(t,n){return Vf(t,n).filter((function(n){var r=e?Wh:Vh;return!r(t,n.cells)}))}},Qh=th.transform("th"),Jh=th.transform("td"),Zh=Uf(bh,Yf,h,h,th.modification),em=Uf(_h,Yf,h,h,th.modification),tm=Uf(yh,Kh(!0),Uh,h,th.modification),nm=Uf(wh,Kh(!1),Uh,h,th.modification),rm=Uf(Rh,Yh,Uh,fh,th.modification),im=Uf(Dh,Yf,h,fh,th.modification),om=Uf(xh,Xf,h,h,Qh),am=Uf(Ch,Xf,h,h,Jh),sm=Uf(Eh,Xf,h,h,Qh),cm=Uf(Th,Xf,h,h,Jh),lm=Uf(Oh,Xf,h,h,Jh),um=Uf(kh,Xf,h,h,Qh),dm=Uf(Ah,Xf,h,h,Jh),fm=Uf(Lh,Zf,Hh,h,th.merging),pm=Uf(Mh,ep,Hh,h,th.merging),hm=Uf(Fh,Wf,Hh,h,th.modification),mm=Uf(Bh,Xh(!0),h,h,th.modification),gm=Uf(Ih,Xh(!1),h,h,th.modification),vm=Uf(Ph,Vf,h,h,th.modification),bm=Uf($h,Vf,h,h,th.modification),_m=jh,ym=zh,wm=qh,xm=function(e,t,n){var r=function(e){return"table"===nn(Ws(e))},i=function(t){return!1===r(e)||Cl(t).rows>1},o=function(t){return!1===r(e)||Cl(t).columns>1},a=jd(e),s=$d(e)?h:pf,c=function(t){switch(Bd(e)){case"section":return Tf.section();case"sectionCells":return Tf.sectionCells();case"cells":return Tf.cells();default:return Tf.getTableSectionType(t,"section")}},l=function(n,r){return r.cursor.fold((function(){var r=Rr(n);return te(r).filter(Dn).map((function(r){t.clear(n);var i=e.dom.createRng();return i.selectNode(r.dom),e.selection.setRng(i),Xn(r,"data-mce-selected","1"),i}))}),(function(r){var i=ff(r),o=e.dom.createRng();return o.setStart(i.element.dom,i.offset),o.setEnd(i.element.dom,i.offset),e.selection.setRng(o),t.clear(n),O.some(o)}))},u=function(t,n,r,i,o){return function(s,u,d){void 0===d&&(d=!1),Qs(s);var f=i(),p=vt.fromDom(e.getDoc()),h=js(r,p,a),m={sizing:Ud(e,s),resize:$d(e)?Xc():Qc(),section:c(s)};return n(s)?t(f,s,u,h,m).bind((function(t){P(t.newRows,(function(t){Qu(e,t.dom)})),P(t.newCells,(function(t){Ju(e,t.dom)}));var n=l(s,t);return Dn(s)&&(Qs(s),d||rd(e,s.dom,o)),n.map((function(e){return{rng:e,effect:o}}))})):O.none()}},d=u(im,i,h,n,od),f=u(rm,o,h,n,od),p=u(Zh,C,h,n,od),m=u(em,C,h,n,od),g=u(tm,C,s,n,od),v=u(nm,C,s,n,od),b=u(fm,C,h,n,od),_=u(pm,C,h,n,od),y=u(mm,C,h,n,od),w=u(gm,C,h,n,od),x=u(vm,C,h,n,od),k=u(bm,C,h,n,od),A=u(hm,C,h,n,ad),S=u(um,C,h,n,od),E=u(dm,C,h,n,od),T=u(om,C,h,n,od),R=u(am,C,h,n,od),D=u(sm,C,h,n,od),L=u(cm,C,h,n,od),M=u(lm,C,h,n,od),F=ym,N=_m,B=wm;return{deleteRow:d,deleteColumn:f,insertRowsBefore:p,insertRowsAfter:m,insertColumnsBefore:g,insertColumnsAfter:v,mergeCells:b,unmergeCells:_,pasteColsBefore:y,pasteColsAfter:w,pasteRowsBefore:x,pasteRowsAfter:k,pasteCells:A,makeCellsHeader:S,unmakeCellsHeader:E,makeColumnsHeader:T,unmakeColumnsHeader:R,makeRowsHeader:D,makeRowsBody:L,makeRowsFooter:M,getTableRowType:B,getTableCellType:F,getTableColType:N}},km={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},Cm=function(){return vt.fromTag("th")},Am=function(){return vt.fromTag("td")},Sm=function(){return vt.fromTag("col")},Em=function(e,t,n,r){for(var i=vt.fromTag("tr"),o=0;o<e;o++){var a=r<t||o<n?Cm():Am();o<n&&Xn(a,"scope","row"),r<t&&Xn(a,"scope","col"),Ei(a,vt.fromTag("br")),Ei(i,a)}return i},Tm=function(e){var t=vt.fromTag("colgroup");return B(e,(function(){return Ei(t,Sm())})),t},Om=function(e,t,n,r){return B(e,(function(e){return Em(t,n,r,e)}))},Rm=function(e,t,n,r,i,o){void 0===o&&(o=km);var a=vt.fromTag("table"),s="cells"!==i;pr(a,o.styles),Qn(a,o.attributes),o.colGroups&&Ei(a,Tm(t));var c=Math.min(e,n);if(s&&n>0){var l=vt.fromTag("thead");Ei(a,l);var u="sectionCells"===i?c:0,d=Om(n,t,u,r);Li(l,d)}var f=vt.fromTag("tbody");Ei(a,f);var p=s?e-c:e,h=s?0:n,m=Om(p,t,h,r);return Li(f,m),a},Dm=function(e){return e.dom.innerHTML},Lm=function(e){var t=vt.fromTag("div"),n=vt.fromDom(e.dom.cloneNode(!0));return Ei(t,n),Dm(t)},Mm=function(e,t){e.selection.select(t.dom,!0),e.selection.collapse(!0)},Fm=function(e,t){Gn(t,"td,th").each(y(Mm,e))},Nm=function(e,t){P($n(t,"tr"),(function(t){Qu(e,t.dom),P($n(t,"th,td"),(function(t){Ju(e,t.dom)}))}))},Bm=function(e){return i(e)&&-1!==e.indexOf("%")},Im=function(e,t,n,r,i){var o=_d(e),a={styles:o,attributes:bd(e),colGroups:Nd(e)};return e.undoManager.ignore((function(){var o=Rm(n,t,i,r,Bd(e),a);Xn(o,"data-mce-id","__mce");var s=Lm(o);e.insertContent(s),e.addVisual()})),Gn(Ws(e),'table[data-mce-id="__mce"]').map((function(t){return Ld(e)?Xd(t):Md(e)?Qd(t):(Dd(e)||Bm(o.width))&&Yd(t),Qs(t),tr(t,"data-mce-id"),Nm(e,t),Fm(e,t),t.dom})).getOr(null)},Pm=function(e,t,n,r,i){void 0===r&&(r={});var o=function(e){return p(e)&&e>0};if(o(t)&&o(n)){var a=r.headerRows||0,s=r.headerColumns||0;return Im(e,n,t,s,a)}return null},$m=function(e){return function(){return e().fold((function(){return[]}),(function(e){return I(e,(function(e){return e.dom}))}))}},jm=function(e){return function(t){var n=t.length>0?O.some(Hs(t)):O.none();e(n)}},zm=function(e){return function(t,n,r){void 0===r&&(r={});var i=Pm(e,n,t,r,"Invalid values for insertTable - rows and columns values are required to insert a table.");return e.undoManager.add(),i}},qm=function(e,t,n,r){return{insertTable:zm(e),setClipboardRows:jm(t.setRows),getClipboardRows:$m(t.getRows),setClipboardCols:jm(t.setColumns),getClipboardCols:$m(t.getColumns),resizeHandler:n,selectionTargets:r}},Hm=function(e,t,n){var r=_r(e,t,1);1===n||r<=1?tr(e,t):Xn(e,t,Math.min(n,r))},Um=function(e,t,n){if(li.hasColumns(e)){var r=z(li.justColumns(e),(function(e){return e.column>=t&&e.column<n})),i=I(r,(function(e){var r=wo(e.element);return Hm(r,"span",n-t),r})),o=vt.fromTag("colgroup");return Li(o,i),[o]}return[]},Wm=function(e,t,n){return I(e.all,(function(e){var r=z(e.cells,(function(e){return e.column>=t&&e.column<n})),i=I(r,(function(e){var r=wo(e.element);return Hm(r,"colspan",n-t),r})),o=vt.fromTag("tr");return Li(o,i),o}))},Vm=function(e,t){var n=li.fromTable(e),r=Xf(n,t);return r.map((function(e){var t=e[e.length-1],r=e[0].column,i=t.column+t.colspan,o=Um(n,r,i),a=Wm(n,r,i);return oe(oe([],o,!0),a,!0)}))},Gm=function(e,t,n){var r=li.fromTable(e),i=Yf(r,t);return i.bind((function(e){var t=$f(r,n,!1),i=Gr(t).rows,o=i.slice(e[0].row,e[e.length-1].row+e[e.length-1].rowspan),a=K(o,(function(e){var t=z(e.cells,(function(e){return!e.isLocked}));return t.length>0?[ie(ie({},e),{cells:t})]:[]})),s=zf(a);return cr(s.length>0,s)})).map((function(e){return Mf(e)}))},Km=tinymce.util.Tools.resolve("tinymce.util.Tools"),Ym=function(e,t,n){var r,i=e.select("td,th",t),o=function(t,r){for(var i=0;i<r.length;i++){var o=e.getStyle(r[i],n);if("undefined"===typeof t&&(t=o),t!==o)return""}return t};return o(r,i)},Xm=function(e,t,n){n&&e.formatter.apply("align"+n,{},t)},Qm=function(e,t,n){n&&e.formatter.apply("valign"+n,{},t)},Jm=function(e,t){Km.each("left center right".split(" "),(function(n){e.formatter.remove("align"+n,{},t)}))},Zm=function(e,t){Km.each("top middle bottom".split(" "),(function(n){e.formatter.remove("valign"+n,{},t)}))},eg=[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}],tg=function(e){return{value:e}},ng=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,rg=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,ig=function(e){return ng.test(e)||rg.test(e)},og=function(e){return ye(e,"#").toUpperCase()},ag=function(e){return ig(e)?O.some({value:og(e)}):O.none()},sg=function(e){var t=e.toString(16);return(1===t.length?"0"+t:t).toUpperCase()},cg=function(e){var t=sg(e.red)+sg(e.green)+sg(e.blue);return tg(t)},lg=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,ug=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,dg=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},fg=function(e,t,n,r){var i=parseInt(e,10),o=parseInt(t,10),a=parseInt(n,10),s=parseFloat(r);return dg(i,o,a,s)},pg=function(e){if("transparent"===e)return O.some(dg(0,0,0,0));var t=lg.exec(e);if(null!==t)return O.some(fg(t[1],t[2],t[3],"1"));var n=ug.exec(e);return null!==n?O.some(fg(n[1],n[2],n[3],n[4])):O.none()},hg=function(e){return ag(e).orThunk((function(){return pg(e).map(cg)})).getOrThunk((function(){var t=document.createElement("canvas");t.height=1,t.width=1;var n=t.getContext("2d");n.clearRect(0,0,t.width,t.height),n.fillStyle="#FFFFFF",n.fillStyle=e,n.fillRect(0,0,1,1);var r=n.getImageData(0,0,1,1).data,i=r[0],o=r[1],a=r[2],s=r[3];return cg(dg(i,o,a,s))}))},mg=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},gg=function(e){var t=mg(O.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(O.none())},i=function(){return t.get().isSome()},o=function(){return t.get()},a=function(e){n(),t.set(O.some(e))};return{clear:r,isSet:i,get:o,set:a}},vg=function(){return gg((function(e){return e.unbind()}))},bg=function(){var e=gg(h),t=function(t){return e.get().each(t)};return ie(ie({},e),{on:t})},_g=function(e,t,n,r){return function(i){var o=vg(),a=Ee(r),s=function(){var s=kc(t),c=function(t){return e.formatter.match(n,{value:r},t.dom,a)};a?(i.setActive(!N(s,c)),o.set(e.formatter.formatChanged(n,(function(e){return i.setActive(!e)}),!0))):(i.setActive(Y(s,c)),o.set(e.formatter.formatChanged(n,i.setActive,!1,{value:r})))};return e.initialized?s():e.on("init",s),o.clear}},yg=function(e){return jt(e,"menu")},wg=function(e){return I(e,(function(e){var t=e.text||e.title;return yg(e)?{text:t,items:wg(e.menu)}:{text:t,value:e.value}}))},xg=function(e,t,n,r,i){return I(n,(function(n){var o=n.text||n.title;return yg(n)?{type:"nestedmenuitem",text:o,getSubmenuItems:function(){return xg(e,t,n.menu,r,i)}}:{text:o,type:"togglemenuitem",onAction:function(){return i(n.value)},onSetup:_g(e,t,r,n.value)}}))},kg=function(e,t){return function(n){var r;e.execCommand("mceTableApplyCellStyle",!1,(r={},r[t]=n,r))}},Cg=function(e){return K(e,(function(e){return yg(e)?[ie(ie({},e),{menu:Cg(e.menu)})]:Se(e.value)?[e]:[]}))},Ag=function(e,t,n,r,i){return function(o){return o(xg(e,t,n,r,i))}},Sg=function(e,t,n){var r=I(t,(function(e){return{text:e.title,value:"#"+hg(e.value).value,type:"choiceitem"}}));return[{type:"fancymenuitem",fancytype:"colorswatch",initData:{colors:r.length>0?r:void 0,allowCustomColors:!1},onAction:function(t){var r,i="remove"===t.value?"":t.value;e.execCommand("mceTableApplyCellStyle",!1,(r={},r[n]=i,r))}}]},Eg=function(e){return function(){var t=e.queryCommandValue("mceTableRowType"),n="header"===t?"body":"header";e.execCommand("mceTableRowType",!1,{type:n})}},Tg=function(e){return function(){var t=e.queryCommandValue("mceTableColType"),n="th"===t?"td":"th";e.execCommand("mceTableColType",!1,{type:n})}},Og=function(e){var t=wg(Td(e));return t.length>0?O.some({name:"class",type:"listbox",label:"Class",items:t}):O.none()},Rg=[{name:"width",type:"input",label:"Width"},{name:"height",type:"input",label:"Height"},{name:"celltype",type:"listbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"listbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"listbox",label:"Horizontal align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"listbox",label:"Vertical align",items:eg}],Dg=function(e){return Rg.concat(Og(e).toArray())},Lg=function(e,t){var n=[{text:"Select...",value:""}],r=[{name:"borderstyle",type:"listbox",label:"Border style",items:n.concat(wg(vd(e)))},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}],i={name:"borderwidth",type:"input",label:"Border width"},o="cell"===t?[i].concat(r):r;return{title:"Advanced",name:"advanced",items:o}},Mg=function(e){return function(t,n){var r=t.dom,i=function(t,i){e&&!i||r.setAttrib(n,t,i)},o=function(t,i){e&&!i||r.setStyle(n,t,i)},a=function(r,i){e&&!i||(""===i?t.formatter.remove(r,{value:null},n,!0):t.formatter.apply(r,{value:i},n))};return{setAttrib:i,setStyle:o,setFormat:a}}},Fg={normal:Mg(!1),ifTruthy:Mg(!0)},Ng=function(e){return function(t){return xe(t,"rgb")?e.toHex(t):t}},Bg=function(e,t){var n=vt.fromDom(t);return{borderwidth:gr(n,"border-width").getOr(""),borderstyle:gr(n,"border-style").getOr(""),bordercolor:gr(n,"border-color").map(Ng(e)).getOr(""),backgroundcolor:gr(n,"background-color").map(Ng(e)).getOr("")}},Ig=function(e){var t=e[0],n=e.slice(1);return P(n,(function(e){P(Et(t),(function(n){Ot(e,(function(e,r){var i=t[n];""!==i&&n===r&&i!==e&&(t[n]="")}))}))})),t},Pg=function(e,t,n,r){return W(e,(function(e){return!l(n.formatter.matchNode(r,t+e))})).getOr("")},$g=y(Pg,["left","center","right"],"align"),jg=y(Pg,["top","middle","bottom"],"valign"),zg=function(e,t){var n=_d(e),r=bd(e),i=function(e){return{borderstyle:Pt(n,"border-style").getOr(""),bordercolor:Ng(e)(Pt(n,"border-color").getOr("")),backgroundcolor:Ng(e)(Pt(n,"background-color").getOr(""))}},o={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""},a=function(){var t=n["border-width"];return Ed(e)&&t?{border:t}:Pt(r,"border").fold((function(){return{}}),(function(e){return{border:e}}))},s=t?i(e.dom):{},c=function(){var e=Pt(n,"border-spacing").or(Pt(r,"cellspacing")).fold((function(){return{}}),(function(e){return{cellspacing:e}})),t=Pt(n,"border-padding").or(Pt(r,"cellpadding")).fold((function(){return{}}),(function(e){return{cellpadding:e}}));return ie(ie({},e),t)},l=ie(ie(ie(ie(ie(ie({},o),n),r),s),a()),c());return l},qg=function(e){return Lr(vt.fromDom(e)).map((function(t){var n={selection:Hs(e.cells)};return wm(t,n)})).getOr("")},Hg=function(e,t,n){var r=function(t,n){var r=gr(vt.fromDom(n),"border-width");return Ed(e)&&r.isSome()?r.getOr(""):t.getAttrib(n,"border")||Ym(e.dom,n,"border-width")||Ym(e.dom,n,"border")},i=e.dom,o=Ed(e)?i.getStyle(t,"border-spacing")||i.getAttrib(t,"cellspacing"):i.getAttrib(t,"cellspacing")||i.getStyle(t,"border-spacing"),a=Ed(e)?Ym(i,t,"padding")||i.getAttrib(t,"cellpadding"):i.getAttrib(t,"cellpadding")||Ym(i,t,"padding");return ie({width:i.getStyle(t,"width")||i.getAttrib(t,"width"),height:i.getStyle(t,"height")||i.getAttrib(t,"height"),cellspacing:o,cellpadding:a,border:r(i,t),caption:!!i.select("caption",t)[0],class:i.getAttrib(t,"class",""),align:$g(e,t)},n?Bg(i,t):{})},Ug=function(e,t,n){var r=e.dom;return ie({height:r.getStyle(t,"height")||r.getAttrib(t,"height"),class:r.getAttrib(t,"class",""),type:qg(t),align:$g(e,t)},n?Bg(r,t):{})},Wg=function(e,t,n,r){var i=e.dom,o=r.getOr(t),a=function(e,t){return i.getStyle(e,t)||i.getAttrib(e,t)};return ie({width:a(o,"width"),height:a(t,"height"),scope:i.getAttrib(t,"scope"),celltype:Us(t),class:i.getAttrib(t,"class",""),halign:$g(e,t),valign:jg(e,t)},n?Bg(i,t):{})},Vg=function(e,t){var n=li.fromTable(e),r=li.justCells(n),i=z(r,(function(e){return N(t,(function(t){return xt(e.element,t)}))}));return I(i,(function(e){return{element:e.element.dom,column:li.getColumnAt(n,e.column).map((function(e){return e.element.dom}))}}))},Gg=function(e,t,n){e.setAttrib("scope",n.scope),e.setAttrib("class",n.class),e.setStyle("height",Xs(n.height)),t.setStyle("width",Xs(n.width))},Kg=function(e,t){e.setFormat("tablecellbackgroundcolor",t.backgroundcolor),e.setFormat("tablecellbordercolor",t.bordercolor),e.setFormat("tablecellborderstyle",t.borderstyle),e.setFormat("tablecellborderwidth",Xs(t.borderwidth))},Yg=function(e,t,n){var r=1===t.length;P(t,(function(t){var i=t.element,o=r?Fg.normal(e,i):Fg.ifTruthy(e,i),a=t.column.map((function(t){return r?Fg.normal(e,t):Fg.ifTruthy(e,t)})).getOr(o);Gg(o,a,n),xd(e)&&Kg(o,n),r&&(Jm(e,i),Zm(e,i)),n.halign&&Xm(e,i,n.halign),n.valign&&Qm(e,i,n.valign)}))},Xg=function(e,t){e.execCommand("mceTableCellType",!1,{type:t.celltype,no_events:!0})},Qg=function(e,t,n,r){var i=Ft(r,(function(e,t){return n[t]!==e}));It(i)>0&&t.length>=1&&Lr(t[0]).each((function(n){var o=Vg(n,t),a=It(Ft(i,(function(e,t){return"scope"!==t&&"celltype"!==t})))>0,s=$t(i,"celltype");(a||$t(i,"scope"))&&Yg(e,o,r),s&&Xg(e,r),rd(e,n.dom,{structure:s,style:a})}))},Jg=function(e,t,n,r){var i=r.getData();r.close(),e.undoManager.transact((function(){Qg(e,t,n,i),e.focus()}))},Zg=function(e,t){var n=Lr(t[0]).map((function(n){return I(Vg(n,t),(function(t){return Wg(e,t.element,xd(e),t.column)}))}));return Ig(n.getOrDie())},ev=function(e,t){var n=kc(t);if(0!==n.length){var r=Zg(e,n),i={type:"tabpanel",tabs:[{title:"General",name:"general",items:Dg(e)},Lg(e,"cell")]},o={type:"panel",items:[{type:"grid",columns:2,items:Dg(e)}]};e.windowManager.open({title:"Cell Properties",size:"normal",body:xd(e)?i:o,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:y(Jg,e,n,r)})}},tv=function(e){var t=wg(Od(e));return t.length>0?O.some({name:"class",type:"listbox",label:"Class",items:t}):O.none()},nv=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],rv=function(e){return nv.concat(tv(e).toArray())},iv=function(e,t){e.setAttrib("class",t.class),e.setStyle("height",Xs(t.height))},ov=function(e,t){e.setStyle("background-color",t.backgroundcolor),e.setStyle("border-color",t.bordercolor),e.setStyle("border-style",t.borderstyle)},av=function(e,t,n,r){var i=1===t.length;P(t,(function(t){var o=i?Fg.normal(e,t):Fg.ifTruthy(e,t);iv(o,n),kd(e)&&ov(o,n),n.align!==r.align&&(Jm(e,t),Xm(e,t,n.align))}))},sv=function(e,t){e.execCommand("mceTableRowType",!1,{type:t.type,no_events:!0})},cv=function(e,t,n,r){var i=Ft(r,(function(e,t){return n[t]!==e}));if(It(i)>0){var o=$t(i,"type"),a=!o||It(i)>1;a&&av(e,t,r,n),o&&sv(e,r),Lr(vt.fromDom(t[0])).each((function(t){return rd(e,t.dom,{structure:o,style:a})}))}},lv=function(e,t,n,r){var i=r.getData();r.close(),e.undoManager.transact((function(){cv(e,t,n,i),e.focus()}))},uv=function(e){var t=Cc(tc(e),hc.selected);if(0!==t.length){var n=I(t,(function(t){return Ug(e,t.dom,kd(e))})),r=Ig(n),i={type:"tabpanel",tabs:[{title:"General",name:"general",items:rv(e)},Lg(e,"row")]},o={type:"panel",items:[{type:"grid",columns:2,items:rv(e)}]};e.windowManager.open({title:"Row Properties",size:"normal",body:kd(e)?i:o,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:r,onSubmit:y(lv,e,I(t,(function(e){return e.dom})),r)})}},dv=function(e,t,n){var r=n?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],i=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],o=Ad(e)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],a=[{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],s=t.length>0?[{type:"listbox",name:"class",label:"Class",items:t}]:[];return r.concat(i).concat(o).concat(a).concat(s)},fv=function(e,t,n,r){if("TD"===t.tagName||"TH"===t.tagName)i(n)?e.setStyle(t,n,r):e.setStyle(t,n);else if(t.children)for(var o=0;o<t.children.length;o++)fv(e,t.children[o],n,r)},pv=function(e,t,n){var r=e.dom,i={},o={};if(i.class=n.class,o.height=Xs(n.height),r.getAttrib(t,"width")&&!Ed(e)?i.width=Ys(n.width):o.width=Xs(n.width),Ed(e)?(o["border-width"]=Xs(n.border),o["border-spacing"]=Xs(n.cellspacing)):(i.border=n.border,i.cellpadding=n.cellpadding,i.cellspacing=n.cellspacing),Ed(e)&&t.children)for(var a=0;a<t.children.length;a++)fv(r,t.children[a],{"border-width":Xs(n.border),padding:Xs(n.cellpadding)}),Cd(e)&&fv(r,t.children[a],{"border-color":n.bordercolor});Cd(e)&&(o["background-color"]=n.backgroundcolor,o["border-color"]=n.bordercolor,o["border-style"]=n.borderstyle),i.style=r.serializeStyle(ie(ie({},_d(e)),o)),r.setAttribs(t,ie(ie({},bd(e)),i))},hv=function(e,t,n,r){var i=e.dom,o=r.getData(),a=Ft(o,(function(e,t){return n[t]!==e}));r.close(),""===o.class&&delete o.class,e.undoManager.transact((function(){if(!t){var n=parseInt(o.cols,10)||1,r=parseInt(o.rows,10)||1;t=Im(e,n,r,0,0)}if(It(a)>0){pv(e,t,o);var s=i.select("caption",t)[0];(s&&!o.caption||!s&&o.caption)&&e.execCommand("mceTableToggleCaption"),""===o.align?Jm(e,t):Xm(e,t,o.align)}if(e.focus(),e.addVisual(),It(a)>0){var c=$t(a,"caption"),l=!c||It(a)>1;rd(e,t,{structure:c,style:l})}}))},mv=function(e,t){var n,r=e.dom,i=zg(e,Cd(e));!1===t?(n=r.getParent(e.selection.getStart(),"table",e.getBody()),n?i=Hg(e,n,Cd(e)):Cd(e)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor="")):(i.cols="1",i.rows="1",Cd(e)&&(i.borderstyle="",i.bordercolor="",i.backgroundcolor=""));var o=wg(Rd(e));o.length>0&&i.class&&(i.class=i.class.replace(/\s*mce\-item\-table\s*/g,""));var a={type:"grid",columns:2,items:dv(e,o,t)},s=function(){return{type:"panel",items:[a]}},c=function(){return{type:"tabpanel",tabs:[{title:"General",name:"general",items:[a]},Lg(e,"table")]}},l=Cd(e)?c():s();e.windowManager.open({title:"Table Properties",size:"normal",body:l,onSubmit:y(hv,e,n,i),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:i})},gv=function(e){return wc(tc(e),Ks(e))},vv=function(e){return xc(tc(e),Ks(e))},bv=function(e,t,n,r,a){var s=Ks(e),c=function(){return gv(e).each((function(t){Lr(t,s).filter(w(s)).each((function(t){var n=vt.fromText("");if(Ai(t,n),Fi(t),e.dom.isEmpty(e.getBody()))e.setContent(""),e.selection.setCursorLocation();else{var r=e.dom.createRng();r.setStart(n.dom,0),r.setEnd(n.dom,0),e.selection.setRng(r),e.nodeChanged()}}))}))},l=function(t){return gv(e).each((function(n){var r=Md(e)||Ld(e)||Dd(e);r||Lr(n,s).each((function(n){"relative"!==t||wl(n)?"fixed"!==t||xl(n)?"responsive"!==t||kl(n)||Qd(n):Xd(n):Yd(n),Qs(n),rd(e,n.dom,od)}))}))},u=function(e){return Lr(e,s)},d=function(t){return vv(e).bind((function(e){return u(e).map((function(n){return t(n,e)}))}))},f=function(t,n){d((function(t){e.formatter.toggle("tableclass",{value:n},t.dom),rd(e,t.dom,id)}))},p=function(t,n){d((function(t){var i=kc(r),o=Y(i,(function(t){return e.formatter.match("tablecellclass",{value:n},t.dom)})),a=o?e.formatter.remove:e.formatter.apply;P(i,(function(e){return a("tablecellclass",{value:n},e.dom)})),rd(e,t.dom,id)}))},m=function(){gv(e).each((function(t){Lr(t,s).each((function(n){Vn(n,"caption").fold((function(){var t=vt.fromTag("caption");Ei(t,vt.fromText("Caption")),Ti(n,t,0),e.selection.setCursorLocation(t.dom,0)}),(function(r){dn("caption")(t)&&wt("td",n).each((function(t){return e.selection.setCursorLocation(t.dom,0)})),Fi(r)})),rd(e,n.dom,od)}))}))},g=function(t){e.focus()},v=function(e,t){return void 0===t&&(t=!1),d((function(n,i){var o=gc(r,n,i);e(n,o,t).each(g)}))},b=function(){return d((function(t,n){var i=gc(r,t,n),o=js(h,vt.fromDom(e.getDoc()),O.none());return Gm(t,i,o)}))},_=function(){return d((function(e,t){var n=gc(r,e,t);return Vm(e,n)}))},x=function(t,n){return n().each((function(n){var i=I(n,(function(e){return wo(e)}));d((function(n,o){var a=zs(vt.fromDom(e.getDoc())),s=bc(r,o,i,a);t(n,s).each(g)}))}))},k=function(e){return function(t,n){return Pt(n,"type").each((function(t){v(e(t),n.no_events)}))}};Ot({mceTableSplitCells:function(){return v(t.unmergeCells)},mceTableMergeCells:function(){return v(t.mergeCells)},mceTableInsertRowBefore:function(){return v(t.insertRowsBefore)},mceTableInsertRowAfter:function(){return v(t.insertRowsAfter)},mceTableInsertColBefore:function(){return v(t.insertColumnsBefore)},mceTableInsertColAfter:function(){return v(t.insertColumnsAfter)},mceTableDeleteCol:function(){return v(t.deleteColumn)},mceTableDeleteRow:function(){return v(t.deleteRow)},mceTableCutCol:function(){return _().each((function(e){a.setColumns(e),v(t.deleteColumn)}))},mceTableCutRow:function(){return b().each((function(e){a.setRows(e),v(t.deleteRow)}))},mceTableCopyCol:function(){return _().each((function(e){return a.setColumns(e)}))},mceTableCopyRow:function(){return b().each((function(e){return a.setRows(e)}))},mceTablePasteColBefore:function(){return x(t.pasteColsBefore,a.getColumns)},mceTablePasteColAfter:function(){return x(t.pasteColsAfter,a.getColumns)},mceTablePasteRowBefore:function(){return x(t.pasteRowsBefore,a.getRows)},mceTablePasteRowAfter:function(){return x(t.pasteRowsAfter,a.getRows)},mceTableDelete:c,mceTableCellToggleClass:p,mceTableToggleClass:f,mceTableToggleCaption:m,mceTableSizingMode:function(e,t){return l(t)},mceTableCellType:k((function(e){return"th"===e?t.makeCellsHeader:t.unmakeCellsHeader})),mceTableColType:k((function(e){return"th"===e?t.makeColumnsHeader:t.unmakeColumnsHeader})),mceTableRowType:k((function(e){switch(e){case"header":return t.makeRowsHeader;case"footer":return t.makeRowsFooter;default:return t.makeRowsBody}}))},(function(t,n){return e.addCommand(n,t)})),Ot({mceTableProps:y(mv,e,!1),mceTableRowProps:y(uv,e),mceTableCellProps:y(ev,e,r)},(function(t,n){return e.addCommand(n,(function(){return t()}))})),e.addCommand("mceInsertTable",(function(t,n){o(n)&&Et(n).length>0?Pm(e,n.rows,n.columns,n.options,"Invalid values for mceInsertTable - rows and columns values are required to insert a table."):mv(e,!0)})),e.addCommand("mceTableApplyCellStyle",(function(t,n){var a=function(e){return"tablecell"+e.toLowerCase().replace("-","")};if(o(n)){var s=kc(r);if(0!==s.length){var c=Ft(n,(function(t,n){return e.formatter.has(a(n))&&i(t)}));zt(c)||(Ot(c,(function(t,n){P(s,(function(r){Fg.normal(e,r.dom).setFormat(a(n),t)}))})),u(s[0]).each((function(t){return rd(e,t.dom,id)})))}}}))},_v=function(e,t,n){var r=Ks(e),i=function(t){return xc(tc(e)).bind((function(e){return Lr(e,r).map((function(r){var i=gc(n,r,e);return t(r,i)}))})).getOr("")};Ot({mceTableRowType:function(){return i(t.getTableRowType)},mceTableCellType:function(){return i(t.getTableCellType)},mceTableColType:function(){return i(t.getTableColType)}},(function(t,n){return e.addQueryValueHandler(n,t)}))},yv=function(){var e=bg(),t=bg();return{getRows:e.get,setRows:function(n){n.fold(e.clear,e.set),t.clear()},clearRows:e.clear,getColumns:t.get,setColumns:function(n){n.fold(t.clear,t.set),e.clear()},clearColumns:t.clear}},wv={remove_similar:!0,inherit:!1},xv=ie({selector:"td,th"},wv),kv={tablecellbackgroundcolor:ie({styles:{backgroundColor:"%value"}},xv),tablecellverticalalign:ie({styles:{"vertical-align":"%value"}},xv),tablecellbordercolor:ie({styles:{borderColor:"%value"}},xv),tablecellclass:ie({classes:["%value"]},xv),tableclass:ie({selector:"table",classes:["%value"]},wv),tablecellborderstyle:ie({styles:{borderStyle:"%value"}},xv),tablecellborderwidth:ie({styles:{borderWidth:"%value"}},xv)},Cv=function(e){e.formatter.register(kv)},Av=uo.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),Sv=function(e){return void 0===e&&(e=void 0),Av.none(e)},Ev=ie(ie({},Av),{none:Sv}),Tv=function(e,t,n,r,i){void 0===i&&(i=C);var o=1===r;if(!o&&n<=0)return Ev.first(e[0]);if(o&&n>=e.length-1)return Ev.last(e[e.length-1]);var a=n+r,s=e[a];return i(s)?Ev.middle(t,s):Tv(e,t,a,r,i)},Ov=function(e,t){return Lr(e,t).bind((function(t){var n=Rr(t),r=V(n,(function(t){return xt(e,t)}));return r.map((function(e){return{index:e,all:n}}))}))},Rv=function(e,t,n){var r=Ov(e,n);return r.fold((function(){return Ev.none(e)}),(function(n){return Tv(n.all,e,n.index,1,t)}))},Dv=function(e,t,n){var r=Ov(e,n);return r.fold((function(){return Ev.none()}),(function(n){return Tv(n.all,e,n.index,-1,t)}))},Lv=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},Mv={create:Lv},Fv=uo.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Nv=function(e,t,n,r){return e.fold(t,n,r)},Bv=function(e){return e.fold(b,b,b)},Iv=Fv.before,Pv=Fv.on,$v=Fv.after,jv={before:Iv,on:Pv,after:$v,cata:Nv,getStart:Bv},zv=uo.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),qv=function(e){return zv.exact(e.start,e.soffset,e.finish,e.foffset)},Hv=function(e){return e.match({domRange:function(e){return vt.fromDom(e.startContainer)},relative:function(e,t){return jv.getStart(e)},exact:function(e,t,n,r){return e}})},Uv=zv.domRange,Wv=zv.relative,Vv=zv.exact,Gv=function(e){var t=Hv(e);return hn(t)},Kv=Mv.create,Yv={domRange:Uv,relative:Wv,exact:Vv,exactFromRange:qv,getWin:Gv,range:Kv},Xv=function(e,t){var n=e.document.createRange();return n.selectNode(t.dom),n},Qv=function(e,t){var n=e.document.createRange();return Jv(n,t),n},Jv=function(e,t){return e.selectNodeContents(t.dom)},Zv=function(e,t){t.fold((function(t){e.setStartBefore(t.dom)}),(function(t,n){e.setStart(t.dom,n)}),(function(t){e.setStartAfter(t.dom)}))},eb=function(e,t){t.fold((function(t){e.setEndBefore(t.dom)}),(function(t,n){e.setEnd(t.dom,n)}),(function(t){e.setEndAfter(t.dom)}))},tb=function(e,t,n){var r=e.document.createRange();return Zv(r,t),eb(r,n),r},nb=function(e,t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},rb=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},ib=function(e){var t=e.getClientRects(),n=t.length>0?t[0]:e.getBoundingClientRect();return n.width>0||n.height>0?O.some(n).map(rb):O.none()},ob=uo.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),ab=function(e,t,n){return t(vt.fromDom(n.startContainer),n.startOffset,vt.fromDom(n.endContainer),n.endOffset)},sb=function(e,t){return t.match({domRange:function(e){return{ltr:v(e),rtl:O.none}},relative:function(t,n){return{ltr:ae((function(){return tb(e,t,n)})),rtl:ae((function(){return O.some(tb(e,n,t))}))}},exact:function(t,n,r,i){return{ltr:ae((function(){return nb(e,t,n,r,i)})),rtl:ae((function(){return O.some(nb(e,r,i,t,n))}))}}})},cb=function(e,t){var n=t.ltr();if(n.collapsed){var r=t.rtl().filter((function(e){return!1===e.collapsed}));return r.map((function(e){return ob.rtl(vt.fromDom(e.endContainer),e.endOffset,vt.fromDom(e.startContainer),e.startOffset)})).getOrThunk((function(){return ab(e,ob.ltr,n)}))}return ab(e,ob.ltr,n)},lb=function(e,t){var n=sb(e,t);return cb(e,n)},ub=function(e,t){var n=lb(e,t);return n.match({ltr:function(t,n,r,i){var o=e.document.createRange();return o.setStart(t.dom,n),o.setEnd(r.dom,i),o},rtl:function(t,n,r,i){var o=e.document.createRange();return o.setStart(r.dom,i),o.setEnd(t.dom,n),o}})};ob.ltr,ob.rtl;var db=function(e,t,n,r,i){if(0===i)return 0;if(t===r)return i-1;for(var o=r,a=1;a<i;a++){var s=e(a),c=Math.abs(t-s.left);if(n<=s.bottom){if(n<s.top||c>o)return a-1;o=c}}return 0},fb=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},pb=function(e,t,n,r,i){var o=function(n){var r=e.dom.createRange();return r.setStart(t.dom,n),r.collapse(!0),r},a=function(e){var t=o(e);return t.getBoundingClientRect()},s=Pi(t).length,c=db(a,n,r,i.right,s);return o(c)},hb=function(e,t,n,r){var i=e.dom.createRange();i.selectNode(t.dom);var o=i.getClientRects(),a=re(o,(function(e){return fb(e,n,r)?O.some(e):O.none()}));return a.map((function(i){return pb(e,t,n,r,i)}))},mb=function(e,t,n,r){var i=e.dom.createRange(),o=yn(t);return re(o,(function(t){return i.selectNode(t.dom),fb(i.getBoundingClientRect(),n,r)?gb(e,t,n,r):O.none()}))},gb=function(e,t,n,r){return cn(t)?hb(e,t,n,r):mb(e,t,n,r)},vb=function(e,t,n,r){var i=e.dom.createRange();i.selectNode(t.dom);var o=i.getBoundingClientRect(),a=Math.max(o.left,Math.min(o.right,n)),s=Math.max(o.top,Math.min(o.bottom,r));return gb(e,t,a,s)},bb=!0,_b=!1,yb=function(e,t){return t-e.left<e.right-t?bb:_b},wb=function(e,t,n){var r=e.dom.createRange();return r.selectNode(t.dom),r.collapse(n),r},xb=function(e,t,n){var r=e.dom.createRange();r.selectNode(t.dom);var i=r.getBoundingClientRect(),o=yb(i,n),a=o===bb?Ts:Os;return a(t).map((function(t){return wb(e,t,o)}))},kb=function(e,t,n){var r=t.dom.getBoundingClientRect(),i=yb(r,n);return O.some(wb(e,t,i))},Cb=function(e,t,n){var r=0===yn(t).length?kb:xb;return r(e,t,n)},Ab=function(e,t,n){var r,i;return O.from(null===(i=(r=e.dom).caretPositionFromPoint)||void 0===i?void 0:i.call(r,t,n)).bind((function(t){if(null===t.offsetNode)return O.none();var n=e.dom.createRange();return n.setStart(t.offsetNode,t.offset),n.collapse(),O.some(n)}))},Sb=function(e,t,n){var r,i;return O.from(null===(i=(r=e.dom).caretRangeFromPoint)||void 0===i?void 0:i.call(r,t,n))},Eb=function(e,t,n,r){var i=e.dom.createRange();i.selectNode(t.dom);var o=i.getBoundingClientRect(),a=Math.max(o.left,Math.min(o.right,n)),s=Math.max(o.top,Math.min(o.bottom,r));return vb(e,t,a,s)},Tb=function(e,t,n){return vt.fromPoint(e,t,n).bind((function(r){var i=function(){return Cb(e,r,t)};return 0===yn(r).length?i():Eb(e,r,t,n).orThunk(i)}))},Ob=function(){return document.caretPositionFromPoint?Ab:document.caretRangeFromPoint?Sb:Tb}(),Rb=function(e,t,n){var r=vt.fromDom(e.document);return Ob(r,t,n).map((function(e){return Mv.create(vt.fromDom(e.startContainer),e.startOffset,vt.fromDom(e.endContainer),e.endOffset)}))},Db=function(e,t){var n=nn(e);return"input"===n?jv.after(e):F(["br","img"],n)?0===t?jv.before(e):jv.after(e):jv.on(e,t)},Lb=function(e,t){var n=e.fold(jv.before,Db,jv.after),r=t.fold(jv.before,Db,jv.after);return Yv.relative(n,r)},Mb=function(e,t,n,r){var i=Db(e,t),o=Db(n,r);return Yv.relative(i,o)},Fb=function(e){return e.match({domRange:function(e){var t=vt.fromDom(e.startContainer),n=vt.fromDom(e.endContainer);return Mb(t,e.startOffset,n,e.endOffset)},relative:Lb,exact:Mb})},Nb=function(e,t,n,r){var i=fn(e),o=i.dom.createRange();return o.setStart(e.dom,t),o.setEnd(n.dom,r),o},Bb=function(e,t,n,r){var i=Nb(e,t,n,r),o=xt(e,n)&&t===r;return i.collapsed&&!o},Ib=function(e){return O.from(e.getSelection())},Pb=function(e,t){Ib(e).each((function(e){e.removeAllRanges(),e.addRange(t)}))},$b=function(e,t,n,r,i){var o=nb(e,t,n,r,i);Pb(e,o)},jb=function(e,t,n,r,i,o){t.collapse(n.dom,r),t.extend(i.dom,o)},zb=function(e,t){return lb(e,t).match({ltr:function(t,n,r,i){$b(e,t,n,r,i)},rtl:function(t,n,r,i){Ib(e).each((function(o){if(o.setBaseAndExtent)o.setBaseAndExtent(t.dom,n,r.dom,i);else if(o.extend)try{jb(e,o,t,n,r,i)}catch(a){$b(e,r,i,t,n)}else $b(e,r,i,t,n)}))}})},qb=function(e,t,n,r,i){var o=Mb(t,n,r,i);zb(e,o)},Hb=function(e,t,n){var r=Lb(t,n);zb(e,r)},Ub=function(e){var t=Yv.getWin(e).dom,n=function(e,n,r,i){return nb(t,e,n,r,i)},r=Fb(e);return lb(t,r).match({ltr:n,rtl:n})},Wb=function(e){if(e.rangeCount>0){var t=e.getRangeAt(0),n=e.getRangeAt(e.rangeCount-1);return O.some(Mv.create(vt.fromDom(t.startContainer),t.startOffset,vt.fromDom(n.endContainer),n.endOffset))}return O.none()},Vb=function(e){if(null===e.anchorNode||null===e.focusNode)return Wb(e);var t=vt.fromDom(e.anchorNode),n=vt.fromDom(e.focusNode);return Bb(t,e.anchorOffset,n,e.focusOffset)?O.some(Mv.create(t,e.anchorOffset,n,e.focusOffset)):Wb(e)},Gb=function(e,t,n){void 0===n&&(n=!0);var r=n?Qv:Xv,i=r(e,t);Pb(e,i)},Kb=function(e){return Ib(e).filter((function(e){return e.rangeCount>0})).bind(Vb)},Yb=function(e){return Kb(e).map((function(e){return Yv.exact(e.start,e.soffset,e.finish,e.foffset)}))},Xb=function(e,t){var n=ub(e,t);return ib(n)},Qb=function(e,t,n){return Rb(e,t,n)},Jb=function(e){Ib(e).each((function(e){return e.removeAllRanges()}))},Zb=tinymce.util.Tools.resolve("tinymce.util.VK"),e_=function(e,t,n){return r_(e,t,Rv(n,xu))},t_=function(e,t,n){return r_(e,t,Dv(n,xu))},n_=function(e,t){var n=Yv.exact(t,0,t,0);return Ub(n)},r_=function(e,t,n){return n.fold(O.none,O.none,(function(t,n){return Ts(n).map((function(t){return n_(e,t)}))}),(function(n){return e.execCommand("mceTableInsertRowAfter"),e_(e,t,n)}))},i_=["table","li","dl"],o_=function(e,t,n){if(e.keyCode===Zb.TAB){var r=Ws(t),i=function(e){var t=nn(e);return xt(e,r)||F(i_,t)},o=t.selection.getRng(),a=vt.fromDom(e.shiftKey?o.startContainer:o.endContainer);Or(a,i).each((function(r){e.preventDefault(),Lr(r,i).each(n.clear),t.selection.collapse(e.shiftKey);var o=e.shiftKey?t_:e_,a=o(t,i,r);a.each((function(e){t.selection.setRng(e)}))}))}},a_=function(e,t){return{selection:e,kill:t}},s_={create:a_},c_=function(e,t,n,r){return{start:jv.on(e,t),finish:jv.on(n,r)}},l_={create:c_},u_=function(e,t){var n=ub(e,t);return Mv.create(vt.fromDom(n.startContainer),n.startOffset,vt.fromDom(n.endContainer),n.endOffset)},d_=l_.create,f_=function(e,t,n,r,i,o,a){return xt(n,i)&&r===o?O.none():Kn(n,"td,th",t).bind((function(n){return Kn(i,"td,th",t).bind((function(r){return p_(e,t,n,r,a)}))}))},p_=function(e,t,n,r,i){return xt(n,r)?O.none():to(n,r,t).bind((function(t){var r=t.boxes.getOr([]);return r.length>1?(i(e,r,t.start,t.finish),O.some(s_.create(O.some(d_(n,0,n,Cs(n))),!0))):O.none()}))},h_=function(e,t,n,r,i){var o=function(e){return i.clearBeforeUpdate(n),i.selectRange(n,e.boxes,e.start,e.finish),e.boxes};return ao(r,e,t,i.firstSelectedSelector,i.lastSelectedSelector).map(o)},m_=function(e,t){return{item:e,mode:t}},g_=function(e,t,n,r){return void 0===r&&(r=v_),e.property().parent(t).map((function(e){return m_(e,r)}))},v_=function(e,t,n,r){return void 0===r&&(r=b_),n.sibling(e,t).map((function(e){return m_(e,r)}))},b_=function(e,t,n,r){void 0===r&&(r=b_);var i=e.property().children(t),o=n.first(i);return o.map((function(e){return m_(e,r)}))},__=[{current:g_,next:v_,fallback:O.none()},{current:v_,next:b_,fallback:O.some(g_)},{current:b_,next:b_,fallback:O.some(v_)}],y_=function(e,t,n,r,i){void 0===i&&(i=__);var o=W(i,(function(e){return e.current===n}));return o.bind((function(n){return n.current(e,t,r,n.next).orThunk((function(){return n.fallback.bind((function(n){return y_(e,t,n,r)}))}))}))},w_=function(){var e=function(e,t){return e.query().prevSibling(t)},t=function(e){return e.length>0?O.some(e[e.length-1]):O.none()};return{sibling:e,first:t}},x_=function(){var e=function(e,t){return e.query().nextSibling(t)},t=function(e){return e.length>0?O.some(e[0]):O.none()};return{sibling:e,first:t}},k_={left:w_,right:x_},C_=function(e,t,n,r,i,o){var a=y_(e,t,r,i);return a.bind((function(t){return o(t.item)?O.none():n(t.item)?O.some(t.item):C_(e,t.item,n,t.mode,i,o)}))},A_=function(e,t,n,r){return C_(e,t,n,v_,k_.left(),r)},S_=function(e,t,n,r){return C_(e,t,n,v_,k_.right(),r)},E_=function(e){return function(t){return 0===e.property().children(t).length}},T_=function(e,t,n){return R_(e,t,E_(e),n)},O_=function(e,t,n){return D_(e,t,E_(e),n)},R_=A_,D_=S_,L_=qi(),M_=function(e,t){return T_(L_,e,t)},F_=function(e,t){return O_(L_,e,t)},N_=function(e,t,n){return R_(L_,e,t,n)},B_=function(e,t,n){return D_(L_,e,t,n)},I_=function(e,t,n){return zn(e,t,n).isSome()},P_=uo.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),$_=function(e,t,n){var r=e.getRect(t),i=e.getRect(n);return i.right>r.left&&i.left<r.right},j_=function(e){return Kn(e,"tr")},z_=function(e,t,n,r,i,o,a){return Kn(r,"td,th",a).bind((function(n){return Kn(t,"td,th",a).map((function(t){return xt(n,t)?xt(r,n)&&Cs(n)===i?o(t):P_.none("in same cell"):Ji(j_,[n,t]).fold((function(){return $_(e,t,n)?P_.success():o(t)}),(function(e){return o(t)}))}))})).getOr(P_.none("default"))},q_=function(e,t,n,r,i){return e.fold(t,n,r,i)},H_=ie(ie({},P_),{verify:z_,cata:q_}),U_=function(e,t,n,r){return{parent:e,children:t,element:n,index:r}},W_=function(e){return mn(e).bind((function(t){var n=yn(t);return V_(n,e).map((function(r){return U_(t,n,e,r)}))}))},V_=function(e,t){return V(e,y(xt,t))},G_=function(e){return"br"===nn(e)},K_=function(e,t,n){return t(e,n).bind((function(e){return cn(e)&&0===Pi(e).trim().length?K_(e,t,n):O.some(e)}))},Y_=function(e,t,n){return n.traverse(t).orThunk((function(){return K_(t,n.gather,e)})).map(n.relative)},X_=function(e,t){return wn(e,t).filter(G_).orThunk((function(){return wn(e,t-1).filter(G_)}))},Q_=function(e,t,n,r){return X_(t,n).bind((function(t){return r.traverse(t).fold((function(){return K_(t,r.gather,e).map(r.relative)}),(function(e){return W_(e).map((function(e){return jv.on(e.parent,e.index)}))}))}))},J_=function(e,t,n,r){var i=G_(t)?Y_(e,t,r):Q_(e,t,n,r);return i.map((function(e){return{start:e,finish:e}}))},Z_=function(e){return H_.cata(e,(function(e){return O.none()}),(function(){return O.none()}),(function(e){return O.some(af(e,0))}),(function(e){return O.some(af(e,Cs(e)))}))},ey=function(e,t){return{left:e.left,top:e.top+t,right:e.right,bottom:e.bottom+t}},ty=function(e,t){return{left:e.left,top:e.top-t,right:e.right,bottom:e.bottom-t}},ny=function(e,t,n){return{left:e.left+t,top:e.top+n,right:e.right+t,bottom:e.bottom+n}},ry=function(e){return e.top},iy=function(e){return e.bottom},oy=function(e,t,n){return n>=0&&n<Cs(t)?e.getRangedRect(t,n,t,n+1):n>0?e.getRangedRect(t,n-1,t,n):O.none()},ay=function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}},sy=function(e,t){return O.some(e.getRect(t))},cy=function(e,t,n){return sn(t)?sy(e,t).map(ay):cn(t)?oy(e,t,n).map(ay):O.none()},ly=function(e,t){return sn(t)?sy(e,t).map(ay):cn(t)?e.getRangedRect(t,0,t,Cs(t)).map(ay):O.none()},uy=5,dy=100,fy=uo.generate([{none:[]},{retry:["caret"]}]),py=function(e,t){return e.left<t.left||Math.abs(t.right-e.left)<1||e.left>t.right},hy=function(e,t,n){return qn(t,sh).fold(k,(function(t){return ly(e,t).exists((function(e){return py(n,e)}))}))},my=function(e,t,n,r,i){var o=ey(i,uy);return Math.abs(n.bottom-r.bottom)<1||n.top>i.bottom?fy.retry(o):n.top===i.bottom?fy.retry(ey(i,1)):hy(e,t,i)?fy.retry(ny(o,uy,0)):fy.none()},gy=function(e,t,n,r,i){var o=ty(i,uy);return Math.abs(n.top-r.top)<1||n.bottom<i.top?fy.retry(o):n.bottom===i.top?fy.retry(ty(i,1)):hy(e,t,i)?fy.retry(ny(o,uy,0)):fy.none()},vy={point:ry,adjuster:gy,move:ty,gather:M_},by={point:iy,adjuster:my,move:ey,gather:F_},_y=function(e,t,n){return e.elementFromPoint(t,n).filter((function(e){return"table"===nn(e)})).isSome()},yy=function(e,t,n,r,i){return wy(e,t,n,t.move(r,uy),i)},wy=function(e,t,n,r,i){return 0===i?O.some(r):_y(e,r.left,t.point(r))?yy(e,t,n,r,i-1):e.situsFromPoint(r.left,t.point(r)).bind((function(o){return o.start.fold(O.none,(function(o){return ly(e,o).bind((function(a){return t.adjuster(e,o,a,n,r).fold(O.none,(function(r){return wy(e,t,n,r,i-1)}))})).orThunk((function(){return O.some(r)}))}),O.none)}))},xy=function(e,t){return e.situsFromPoint(t.left,t.bottom+uy)},ky=function(e,t){return e.situsFromPoint(t.left,t.top-uy)},Cy=function(e,t,n){return e.point(t)>n.getInnerHeight()?O.some(e.point(t)-n.getInnerHeight()):e.point(t)<0?O.some(-e.point(t)):O.none()},Ay=function(e,t,n){var r=e.move(n,uy),i=wy(t,e,n,r,dy).getOr(r);return Cy(e,i,t).fold((function(){return t.situsFromPoint(i.left,e.point(i))}),(function(n){return t.scrollBy(0,n),t.situsFromPoint(i.left,e.point(i)-n)}))},Sy={tryUp:y(Ay,vy),tryDown:y(Ay,by),ieTryUp:ky,ieTryDown:xy,getJumpSize:v(uy)},Ey=20,Ty=function(e,t,n){return e.getSelection().bind((function(r){return J_(t,r.finish,r.foffset,n).fold((function(){return O.some(af(r.finish,r.foffset))}),(function(i){var o=e.fromSitus(i),a=H_.verify(e,r.finish,r.foffset,o.finish,o.foffset,n.failure,t);return Z_(a)}))}))},Oy=function(e,t,n,r,i,o){return 0===o?O.none():Ly(e,t,n,r,i).bind((function(a){var s=e.fromSitus(a),c=H_.verify(e,n,r,s.finish,s.foffset,i.failure,t);return H_.cata(c,(function(){return O.none()}),(function(){return O.some(a)}),(function(a){return xt(n,a)&&0===r?Ry(e,n,r,ty,i):Oy(e,t,a,0,i,o-1)}),(function(a){return xt(n,a)&&r===Cs(a)?Ry(e,n,r,ey,i):Oy(e,t,a,Cs(a),i,o-1)}))}))},Ry=function(e,t,n,r,i){return cy(e,t,n).bind((function(t){return Dy(e,i,r(t,Sy.getJumpSize()))}))},Dy=function(e,t,n){var r=it().browser;return r.isChrome()||r.isSafari()||r.isFirefox()||r.isEdge()?t.otherRetry(e,n):r.isIE()?t.ieRetry(e,n):O.none()},Ly=function(e,t,n,r,i){return cy(e,n,r).bind((function(t){return Dy(e,i,t)}))},My=function(e,t,n){return Ty(e,t,n).bind((function(r){return Oy(e,t,r.element,r.offset,n,Ey).map(e.fromSitus)}))},Fy=function(e,t){return I_(e,(function(e){return mn(e).exists((function(e){return xt(e,t)}))}))},Ny=function(e,t,n,r,i){return Kn(r,"td,th",t).bind((function(r){return Kn(r,"table",t).bind((function(o){return Fy(i,o)?My(e,t,n).bind((function(e){return Kn(e.finish,"td,th",t).map((function(t){return{start:r,finish:t,range:e}}))})):O.none()}))}))},By=function(e,t,n,r,i,o){return it().browser.isIE()?O.none():o(r,t).orThunk((function(){return Ny(e,t,n,r,i).map((function(e){var t=e.range;return s_.create(O.some(d_(t.start,t.soffset,t.finish,t.foffset)),!0)}))}))},Iy=function(e,t){return Kn(e,"tr",t).bind((function(e){return Kn(e,"table",t).bind((function(n){var r=$n(n,"tr");return xt(e,r[0])?N_(n,(function(e){return Os(e).isSome()}),t).map((function(e){var t=Cs(e);return s_.create(O.some(d_(e,t,e,t)),!0)})):O.none()}))}))},Py=function(e,t){return Kn(e,"tr",t).bind((function(e){return Kn(e,"table",t).bind((function(n){var r=$n(n,"tr");return xt(e,r[r.length-1])?B_(n,(function(e){return Ts(e).isSome()}),t).map((function(e){return s_.create(O.some(d_(e,0,e,0)),!0)})):O.none()}))}))},$y=function(e,t,n,r,i,o,a){return Ny(e,n,r,i,o).bind((function(e){return p_(t,n,e.start,e.finish,a)}))},jy=function(e,t){return Kn(e,"td,th",t)},zy=function(e,t,n,r){var i=bg(),o=i.clear,a=function(o){i.on((function(i){r.clearBeforeUpdate(t),jy(o.target,n).each((function(a){to(i,a,n).each((function(n){var i=n.boxes.getOr([]);if(1===i.length){var s=i[0],c="false"===ku(s),l=rr(wu(o.target),s,xt);c&&l&&(r.selectRange(t,i,s,s),e.selectContents(s))}else i.length>1&&(r.selectRange(t,i,n.start,n.finish),e.selectContents(a))}))}))}))},s=function(e){r.clear(t),jy(e.target,n).each(i.set)},c=function(e){a(e)},l=function(e){a(e),o()};return{clearstate:o,mousedown:s,mouseover:c,mouseup:l}},qy={traverse:_n,gather:F_,relative:jv.before,otherRetry:Sy.tryDown,ieRetry:Sy.ieTryDown,failure:H_.failedDown},Hy={traverse:bn,gather:M_,relative:jv.before,otherRetry:Sy.tryUp,ieRetry:Sy.ieTryUp,failure:H_.failedUp},Uy=function(e){return function(t){return t===e}},Wy=Uy(38),Vy=Uy(40),Gy=function(e){return e>=37&&e<=40},Ky={isBackward:Uy(37),isForward:Uy(39)},Yy={isBackward:Uy(39),isForward:Uy(37)},Xy=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Jo(n,r)},Qy=function(e,t,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollBy(e,t)},Jy=function(e){var t=function(t,n){return vt.fromPoint(vt.fromDom(e.document),t,n)},n=function(e){return e.dom.getBoundingClientRect()},r=function(t,n,r,i){var o=Yv.exact(t,n,r,i);return Xb(e,o)},i=function(){return Yb(e).map((function(t){return u_(e,t)}))},o=function(t){var n=Yv.relative(t.start,t.finish);return u_(e,n)},a=function(t,n){return Qb(e,t,n).map((function(e){return l_.create(e.start,e.soffset,e.finish,e.foffset)}))},s=function(){Jb(e)},c=function(t){void 0===t&&(t=!1),Yb(e).each((function(n){return n.fold((function(e){return e.collapse(t)}),(function(n,r){var i=t?n:r;Hb(e,i,i)}),(function(n,r,i,o){var a=t?n:i,s=t?r:o;qb(e,a,s,a,s)}))}))},l=function(t){Gb(e,t,!1)},u=function(t){Gb(e,t)},d=function(t){qb(e,t.start,t.soffset,t.finish,t.foffset)},f=function(t,n){Hb(e,t,n)},p=function(){return e.innerHeight},h=function(){var t=Xy(vt.fromDom(e.document));return t.top},m=function(t,n){Qy(t,n,vt.fromDom(e.document))};return{elementFromPoint:t,getRect:n,getRangedRect:r,getSelection:i,fromSitus:o,situsFromPoint:a,clearSelection:s,collapseSelection:c,setSelection:d,setRelativeSelection:f,selectNode:l,selectContents:u,getInnerHeight:p,getScrollY:h,scrollBy:m}},Zy=function(e,t){return{rows:e,cols:t}},ew=function(e,t,n,r){var i=Jy(e),o=zy(i,t,n,r);return{clearstate:o.clearstate,mousedown:o.mousedown,mouseover:o.mouseover,mouseup:o.mouseup}},tw=function(e,t,n,r){var i=Jy(e),o=function(){return r.clear(t),O.none()},a=function(e,a,s,c,l,u){var d=e.raw,f=d.which,p=!0===d.shiftKey,h=no(t,r.selectedSelector).fold((function(){return Gy(f)&&!p&&r.clearBeforeUpdate(t),Vy(f)&&p?y($y,i,t,n,qy,c,a,r.selectRange):Wy(f)&&p?y($y,i,t,n,Hy,c,a,r.selectRange):Vy(f)?y(By,i,n,qy,c,a,Py):Wy(f)?y(By,i,n,Hy,c,a,Iy):O.none}),(function(e){var n=function(n){return function(){var o=re(n,(function(n){return h_(n.rows,n.cols,t,e,r)}));return o.fold((function(){return io(t,r.firstSelectedSelector,r.lastSelectedSelector).map((function(e){var n=Vy(f)||u.isForward(f)?jv.after:jv.before;return i.setRelativeSelection(jv.on(e.first,0),n(e.table)),r.clear(t),s_.create(O.none(),!0)}))}),(function(e){return O.some(s_.create(O.none(),!0))}))}};return Vy(f)&&p?n([Zy(1,0)]):Wy(f)&&p?n([Zy(-1,0)]):u.isBackward(f)&&p?n([Zy(0,-1),Zy(-1,0)]):u.isForward(f)&&p?n([Zy(0,1),Zy(1,0)]):Gy(f)&&!p?o:O.none}));return h()},s=function(e,i,o,a,s){return no(t,r.selectedSelector).fold((function(){var c=e.raw,l=c.which,u=!0===c.shiftKey;return u&&Gy(l)?f_(t,n,i,o,a,s,r.selectRange):O.none()}),O.none)};return{keydown:a,keyup:s}},nw=function(e,t,n,r){var i=Jy(e);return function(e,o){r.clearBeforeUpdate(t),to(e,o,n).each((function(e){var n=e.boxes.getOr([]);r.selectRange(t,n,e.start,e.finish),i.selectContents(o),i.collapseSelection()}))}},rw=function(e,t){P(t,(function(t){lu(e,t)}))},iw=function(e){return function(t){su(t,e)}},ow=function(e){return function(t){rw(t,e)}},aw=function(e){var t=iw(e.selected),n=ow([e.selected,e.lastSelected,e.firstSelected]),r=function(t){var r=$n(t,e.selectedSelector);P(r,n)},i=function(n,i,o,a){r(n),P(i,t),su(o,e.firstSelected),su(a,e.lastSelected)};return{clearBeforeUpdate:r,clear:r,selectRange:i,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},sw=function(e,t,n){var r=function(t){tr(t,e.selected),tr(t,e.firstSelected),tr(t,e.lastSelected)},i=function(t){Xn(t,e.selected,"1")},o=function(e){a(e),n()},a=function(t){var n=$n(t,e.selectedSelector+","+e.firstSelectedSelector+","+e.lastSelectedSelector);P(n,r)},s=function(n,r,a,s){o(n),P(r,i),Xn(a,e.firstSelected,"1"),Xn(s,e.lastSelected,"1"),t(r,a,s)};return{clearBeforeUpdate:a,clear:o,selectRange:s,selectedSelector:e.selectedSelector,firstSelectedSelector:e.firstSelectedSelector,lastSelectedSelector:e.lastSelectedSelector}},cw={byClass:aw,byAttr:sw},lw=function(e,t){var n=e.slice(0,t[t.length-1].row+1),r=zf(n);return K(r,(function(e){var n=e.cells.slice(0,t[t.length-1].column+1);return I(n,(function(e){return e.element}))}))},uw=function(e,t){var n=e.slice(t[0].row+t[0].rowspan-1,e.length),r=zf(n);return K(r,(function(e){var n=e.cells.slice(t[0].column+t[0].colspan-1,e.cells.length);return I(n,(function(e){return e.element}))}))},dw=function(e,t,n){var r=li.fromTable(e),i=Yf(r,t);return i.map((function(e){var t=$f(r,n,!1),i=lw(t,e),o=uw(t,e);return{upOrLeftCells:i,downOrRightCells:o}}))},fw=tinymce.util.Tools.resolve("tinymce.Env"),pw=function(e){return!1===uu(vt.fromDom(e.target),"ephox-snooker-resizer-bar")};function hw(e,t,n){var r=function(t,r,i){n.targets().each((function(n){var o=Lr(r);o.each((function(o){var a=jd(e),s=js(h,vt.fromDom(e.getDoc()),a),c=dw(o,n,s);td(e,t,r,i,c)}))}))},i=function(){return nd(e)},o=cw.byAttr(hc,r,i);return e.on("init",(function(n){var r=e.getWin(),i=Ws(e),a=Ks(e),s=function(){var t=e.selection,n=vt.fromDom(t.getStart()),r=vt.fromDom(t.getEnd()),a=Ji(Lr,[n,r]);a.fold((function(){return o.clear(i)}),h)},c=ew(r,i,a,o),l=tw(r,i,a,o),u=nw(r,i,a,o),d=function(e){return!0===e.raw.shiftKey};e.on("TableSelectorChange",(function(e){return u(e.start,e.finish)}));var f=function(t,n){d(t)&&(n.kill&&t.kill(),n.selection.each((function(t){var n=Yv.relative(t.start,t.finish),i=ub(r,n);e.selection.setRng(i)})))},p=function(t){var n=Zl(t);if(n.raw.shiftKey&&Gy(n.raw.which)){var r=e.selection.getRng(),i=vt.fromDom(r.startContainer),o=vt.fromDom(r.endContainer);l.keyup(n,i,r.startOffset,o,r.endOffset).each((function(e){f(n,e)}))}},m=function(n){var r=Zl(n);t().each((function(e){return e.hideBars()}));var i=e.selection.getRng(),o=vt.fromDom(i.startContainer),a=vt.fromDom(i.endContainer),s=Wo(Ky,Yy)(vt.fromDom(e.selection.getStart()));l.keydown(r,o,i.startOffset,a,i.endOffset,s).each((function(e){f(r,e)})),t().each((function(e){return e.showBars()}))},g=function(e){return 0===e.button},v=function(e){return void 0===e.buttons||(!(!fw.browser.isEdge()||0!==e.buttons)||0!==(1&e.buttons))},b=function(e){c.clearstate()},_=function(e){g(e)&&pw(e)&&c.mousedown(Zl(e))},y=function(e){v(e)&&pw(e)&&c.mouseover(Zl(e))},w=function(e){g(e)&&pw(e)&&c.mouseup(Zl(e))},x=function(){var e=mg(vt.fromDom(i)),t=mg(0),n=function(n){var r=vt.fromDom(n.target);if("td"===nn(r)||"th"===nn(r)){var i=e.get(),o=t.get();xt(i,r)&&n.timeStamp-o<300&&(n.preventDefault(),u(r,r))}e.set(r),t.set(n.timeStamp)};return{touchEnd:n}},k=x();e.on("dragstart",b),e.on("mousedown",_),e.on("mouseover",y),e.on("mouseup",w),e.on("touchend",k.touchEnd),e.on("keyup",p),e.on("keydown",m),e.on("NodeChange",s)})),{clear:o.clear}}var mw=function(e,t){return Vn(e,t).isSome()},gw=function(e,t){var n=mg(O.none()),r=mg([]),i=O.none(),o=dn("caption"),a=function(e){return i.forall((function(t){return!t[e]}))},s=function(){return wc(tc(e),Ks(e))},c=function(){return wc(nc(e),Ks(e))},l=function(){return s().bind((function(e){return sr(or(Lr(e),c().bind(Lr),(function(n,r){return xt(n,r)?o(e)?O.some(mc(e)):O.some(gc(t,n,e)):O.none()})))}))},u=function(e){var t=Lr(e.element);return t.map((function(t){var n=li.fromTable(t),r=Yf(n,e).getOr([]),i=H(r,(function(e,t){return t.isLocked&&(e.onAny=!0,0===t.column?e.onFirst=!0:t.column+t.colspan>=n.grid.columns&&(e.onLast=!0)),e}),{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:Zf(n,e).isSome(),unmergeable:ep(n,e).isSome(),locked:i}}))},d=function(){n.set(ae(l)()),i=n.get().bind(u),P(r.get(),(function(e){return e()}))},f=function(e){return e(),r.set(r.get().concat([e])),function(){r.set(z(r.get(),(function(t){return t!==e})))}},p=function(e,t){return f((function(){return n.get().fold((function(){e.setDisabled(!0)}),(function(n){e.setDisabled(t(n))}))}))},h=function(e,t,r){return f((function(){return n.get().fold((function(){e.setDisabled(!0),e.setActive(!1)}),(function(n){e.setDisabled(t(n)),e.setActive(r(n))}))}))},m=function(e){return i.exists((function(t){return t.locked[e]}))},g=function(e){return p(e,(function(e){return!1}))},v=function(e){return p(e,(function(e){return o(e.element)}))},b=function(e){return function(t){return p(t,(function(t){return o(t.element)||m(e)}))}},_=function(e){return function(t){return p(t,(function(t){return o(t.element)||e().isNone()}))}},y=function(e,t){return function(n){return p(n,(function(n){return o(n.element)||e().isNone()||m(t)}))}},w=function(e){return p(e,(function(e){return a("mergeable")}))},x=function(e){return p(e,(function(e){return a("unmergeable")}))},C=function(t){return h(t,k,(function(t){var n=Lr(t.element,Ks(e));return n.exists((function(e){return mw(e,"caption")}))}))},A=function(t,n){return function(r){return h(r,(function(e){return o(e.element)}),(function(){return e.queryCommandValue(t)===n}))}},S=A("mceTableRowType","header"),E=A("mceTableColType","th");return e.on("NodeChange ExecCommand TableSelectorChange",d),{onSetupTable:g,onSetupCellOrRow:v,onSetupColumn:b,onSetupPasteable:_,onSetupPasteableColumn:y,onSetupMergeable:w,onSetupUnmergeable:x,resetTargets:d,onSetupTableWithCaption:C,onSetupTableRowHeaders:S,onSetupTableColumnHeaders:E,targets:n.get}},vw=function(e,t,n,r){e.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function(e){return e("inserttable | cell row column | advtablesort | tableprops deletetable")}});var i=function(t){return function(){return e.execCommand(t)}};e.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:i("mceTableProps"),icon:"table",onSetup:n.onSetupTable}),e.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:i("mceTableDelete"),icon:"table-delete-table",onSetup:n.onSetupTable}),e.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:i("mceTableCellProps"),icon:"table-cell-properties",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:i("mceTableMergeCells"),icon:"table-merge-cells",onSetup:n.onSetupMergeable}),e.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:i("mceTableSplitCells"),icon:"table-split-cells",onSetup:n.onSetupUnmergeable}),e.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:i("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:i("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:i("mceTableDeleteRow"),icon:"table-delete-row",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:i("mceTableRowProps"),icon:"table-row-properties",onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:i("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:n.onSetupColumn("onFirst")}),e.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:i("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:n.onSetupColumn("onLast")}),e.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:i("mceTableDeleteCol"),icon:"table-delete-column",onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",icon:"cut-row",onAction:i("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",icon:"duplicate-row",onAction:i("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",icon:"paste-row-before",onAction:i("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",icon:"paste-row-after",onAction:i("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addButton("tablecutcol",{tooltip:"Cut column",icon:"cut-column",onAction:i("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablecopycol",{tooltip:"Copy column",icon:"duplicate-column",onAction:i("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addButton("tablepastecolbefore",{tooltip:"Paste column before",icon:"paste-column-before",onAction:i("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onFirst")}),e.ui.registry.addButton("tablepastecolafter",{tooltip:"Paste column after",icon:"paste-column-after",onAction:i("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onLast")}),e.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:i("mceInsertTable"),icon:"table"});var o=Cg(Rd(e));0!==o.length&&e.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:Ag(e,t,o,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)})),onSetup:n.onSetupTable});var a=Cg(Td(e));0!==a.length&&e.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:Ag(e,t,a,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)})),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:Ag(e,t,eg,"tablecellverticalalign",kg(e,"vertical-align")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:Ag(e,t,gd(e),"tablecellborderwidth",kg(e,"border-width")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:Ag(e,t,vd(e),"tablecellborderstyle",kg(e,"border-style")),onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleButton("tablecaption",{tooltip:"Table caption",onAction:i("mceTableToggleCaption"),icon:"table-caption",onSetup:n.onSetupTableWithCaption}),e.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Background color",fetch:function(t){return t(Sg(e,qd(e),"background-color"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:function(t){return t(Sg(e,Hd(e),"border-color"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleButton("tablerowheader",{tooltip:"Row header",icon:"table-top-header",onAction:Eg(e),onSetup:n.onSetupTableRowHeaders}),e.ui.registry.addToggleButton("tablecolheader",{tooltip:"Column header",icon:"table-left-header",onAction:Tg(e),onSetup:n.onSetupTableColumnHeaders})},bw=function(e){var t=function(t){return e.dom.is(t,"table")&&e.getBody().contains(t)},n=Fd(e);n.length>0&&e.ui.registry.addContextToolbar("table",{predicate:t,items:n,scope:"node",position:"node"})},_w=function(e,t,n,r){var i=function(t){return function(){return e.execCommand(t)}},o=function(t){e.execCommand("mceInsertTable",!1,{rows:t.numRows,columns:t.numColumns})},a={text:"Table properties",onSetup:n.onSetupTable,onAction:i("mceTableProps")},s={text:"Delete table",icon:"table-delete-table",onSetup:n.onSetupTable,onAction:i("mceTableDelete")};e.ui.registry.addMenuItem("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",onAction:i("mceTableInsertRowBefore"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",onAction:i("mceTableInsertRowAfter"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tabledeleterow",{text:"Delete row",icon:"table-delete-row",onAction:i("mceTableDeleteRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablerowprops",{text:"Row properties",icon:"table-row-properties",onAction:i("mceTableRowProps"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecutrow",{text:"Cut row",icon:"cut-row",onAction:i("mceTableCutRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablecopyrow",{text:"Copy row",icon:"duplicate-row",onAction:i("mceTableCopyRow"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",onAction:i("mceTablePasteRowBefore"),onSetup:n.onSetupPasteable(r.getRows)}),e.ui.registry.addMenuItem("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",onAction:i("mceTablePasteRowAfter"),onSetup:n.onSetupPasteable(r.getRows)});var c={type:"nestedmenuitem",text:"Row",getSubmenuItems:v("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")};e.ui.registry.addMenuItem("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",onAction:i("mceTableInsertColBefore"),onSetup:n.onSetupColumn("onFirst")}),e.ui.registry.addMenuItem("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",onAction:i("mceTableInsertColAfter"),onSetup:n.onSetupColumn("onLast")}),e.ui.registry.addMenuItem("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",onAction:i("mceTableDeleteCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecutcolumn",{text:"Cut column",icon:"cut-column",onAction:i("mceTableCutCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",onAction:i("mceTableCopyCol"),onSetup:n.onSetupColumn("onAny")}),e.ui.registry.addMenuItem("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",onAction:i("mceTablePasteColBefore"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onFirst")}),e.ui.registry.addMenuItem("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",onAction:i("mceTablePasteColAfter"),onSetup:n.onSetupPasteableColumn(r.getColumns,"onLast")});var l={type:"nestedmenuitem",text:"Column",getSubmenuItems:v("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")};e.ui.registry.addMenuItem("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",onAction:i("mceTableCellProps"),onSetup:n.onSetupCellOrRow}),e.ui.registry.addMenuItem("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",onAction:i("mceTableMergeCells"),onSetup:n.onSetupMergeable}),e.ui.registry.addMenuItem("tablesplitcells",{text:"Split cell",icon:"table-split-cells",onAction:i("mceTableSplitCells"),onSetup:n.onSetupUnmergeable});var u={type:"nestedmenuitem",text:"Cell",getSubmenuItems:v("tablecellprops tablemergecells tablesplitcells")};!1===Sd(e)?e.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:i("mceInsertTable")}):e.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:o}]}}),e.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:i("mceInsertTable")}),e.ui.registry.addMenuItem("tableprops",a),e.ui.registry.addMenuItem("deletetable",s),e.ui.registry.addNestedMenuItem("row",c),e.ui.registry.addNestedMenuItem("column",l),e.ui.registry.addNestedMenuItem("cell",u),e.ui.registry.addContextMenu("table",{update:function(){return n.resetTargets(),n.targets().fold(v(""),(function(e){return"caption"===nn(e.element)?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"}))}});var d=Cg(Rd(e));0!==d.length&&e.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:function(){return xg(e,t,d,"tableclass",(function(t){return e.execCommand("mceTableToggleClass",!1,t)}))},onSetup:n.onSetupTable});var f=Cg(Td(e));0!==f.length&&e.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:function(){return xg(e,t,f,"tablecellclass",(function(t){return e.execCommand("mceTableCellToggleClass",!1,t)}))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:function(){return xg(e,t,eg,"tablecellverticalalign",kg(e,"vertical-align"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:function(){return xg(e,t,gd(e),"tablecellborderwidth",kg(e,"border-width"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:function(){return xg(e,t,vd(e),"tablecellborderstyle",kg(e,"border-style"))},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleMenuItem("tablecaption",{icon:"table-caption",text:"Table caption",onAction:i("mceTableToggleCaption"),onSetup:n.onSetupTableWithCaption}),e.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:function(){return Sg(e,qd(e),"background-color")},onSetup:n.onSetupCellOrRow}),e.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:function(){return Sg(e,Hd(e),"border-color")},onSetup:n.onSetupCellOrRow}),e.ui.registry.addToggleMenuItem("tablerowheader",{text:"Row header",icon:"table-top-header",onAction:Eg(e),onSetup:n.onSetupTableRowHeaders}),e.ui.registry.addToggleMenuItem("tablecolheader",{text:"Column header",icon:"table-left-header",onAction:Tg(e),onSetup:n.onSetupTableColumnHeaders})},yw=function(e){var t=vo((function(){return Ws(e)}),(function(){return xc(tc(e),Ks(e))}),hc.selectedSelector),n=gw(e,t),r=of(e),i=hw(e,r.lazyResize,n),o=xm(e,i,r.lazyWire),a=yv();return bv(e,o,i,t,a),_v(e,o,t),Tc(e,t,o),_w(e,t,n,a),vw(e,t,n,a),bw(e),e.on("PreInit",(function(){e.serializer.addTempAttr(hc.firstSelected),e.serializer.addTempAttr(hc.lastSelected),Cv(e)})),wd(e)&&e.on("keydown",(function(t){o_(t,e,i)})),e.on("remove",(function(){r.destroy()})),qm(e,a,r,n)};function ww(){bo.add("table",yw)}ww()})()},9619:function(e,t,n){var r=n("597f"),i=n("0e15");e.exports={throttle:r,debounce:i}},"961e":function(e,t,n){e.exports=!n("8997")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},9671:function(e,t,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n("0f7c");e.exports=o.call(r,i)},9742:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},9861:function(e,t,n){"use strict";n("5352")},"986a":function(e,t,n){"use strict";var r=n("ebb5"),i=n("a258").findLast,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("findLast",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},9876:function(e,t,n){var r=n("03d6"),i=n("9742");e.exports=Object.keys||function(e){return r(e,i)}},"99af":function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("e8b5"),a=n("861d"),s=n("7b0b"),c=n("07fa"),l=n("3511"),u=n("8418"),d=n("65f0"),f=n("1dde"),p=n("b622"),h=n("2d00"),m=p("isConcatSpreadable"),g=h>=51||!i((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),v=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:o(e)},b=!g||!f("concat");r({target:"Array",proto:!0,arity:1,forced:b},{concat:function(e){var t,n,r,i,o,a=s(this),f=d(a,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],v(o))for(i=c(o),l(p+i),n=0;n<i;n++,p++)n in o&&u(f,p,o[n]);else l(p+1),u(f,p++,o);return f.length=p,f}})},"9a1f":function(e,t,n){"use strict";var r=n("c65b"),i=n("59ed"),o=n("825a"),a=n("0d51"),s=n("35a1"),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return o(r(n,e));throw new c(a(e)+" is not iterable")}},"9a63":function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},"9a8c":function(e,t,n){"use strict";var r=n("e330"),i=n("ebb5"),o=n("145e"),a=r(o),s=i.aTypedArray,c=i.exportTypedArrayMethod;c("copyWithin",(function(e,t){return a(s(this),e,t,arguments.length>2?arguments[2]:void 0)}))},"9bdd":function(e,t,n){"use strict";var r=n("825a"),i=n("2a62");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){i(e,"throw",a)}}},"9bf2":function(e,t,n){"use strict";var r=n("83ab"),i=n("0cfb"),o=n("aed9"),a=n("825a"),s=n("a04b"),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=u(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return l(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9c0c":function(e,t,n){var r=n("1609");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c0e":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"9d11":function(e,t,n){var r=n("fc5e"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"9e27":function(e,t,n){var r=n("53c6");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"9e6a":function(e,t,n){"use strict";var r=n("d233"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",d=function(e,t){var n,d={},f=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,h=f.split(t.delimiter,p),m=-1,g=t.charset;if(t.charsetSentinel)for(n=0;n<h.length;++n)0===h[n].indexOf("utf8=")&&(h[n]===u?g="utf-8":h[n]===l&&(g="iso-8859-1"),m=n,n=h.length);for(n=0;n<h.length;++n)if(n!==m){var v,b,_=h[n],y=_.indexOf("]="),w=-1===y?_.indexOf("="):y+1;-1===w?(v=t.decoder(_,a.decoder,g,"key"),b=t.strictNullHandling?null:""):(v=t.decoder(_.slice(0,w),a.decoder,g,"key"),b=r.maybeMap(c(_.slice(w+1),t),(function(e){return t.decoder(e,a.decoder,g,"value")}))),b&&t.interpretNumericEntities&&"iso-8859-1"===g&&(b=s(b)),_.indexOf("[]=")>-1&&(b=o(b)?[b]:b),i.call(d,v)?d[v]=r.combine(d[v],b):d[v]=b}return d},f=function(e,t,n,r){for(var i=r?t:c(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);n.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[],a[u]=i):"__proto__"!==l&&(a[l]=i):a={0:i}}i=a}return i},p=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&a.exec(o),l=c?o.slice(0,c.index):o,u=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}var d=0;while(n.depth>0&&null!==(c=s.exec(o))&&d<n.depth){if(d+=1,!n.plainObjects&&i.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+o.slice(c.index)+"]"),f(u,t,n,r)}},h=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var n=h(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var i="string"===typeof e?d(e,n):e,o=n.plainObjects?Object.create(null):{},a=Object.keys(i),s=0;s<a.length;++s){var c=a[s],l=p(c,i[c],n,"string"===typeof e);o=r.merge(o,l,n)}return!0===n.allowSparse?o:r.compact(o)}},"9f7f":function(e,t,n){"use strict";var r=n("d039"),i=n("da84"),o=i.RegExp,a=r((function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),s=a||r((function(){return!o("a","y").sticky})),c=a||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:c,MISSED_STICKY:s,UNSUPPORTED_Y:a}},"9fbb":function(e,t,n){var r=n("4d88");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},a04b:function(e,t,n){"use strict";var r=n("c04e"),i=n("d9b5");e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},a078:function(e,t,n){"use strict";var r=n("0366"),i=n("c65b"),o=n("5087"),a=n("7b0b"),s=n("07fa"),c=n("9a1f"),l=n("35a1"),u=n("e95a"),d=n("bcbf"),f=n("ebb5").aTypedArrayConstructor,p=n("f495");e.exports=function(e){var t,n,h,m,g,v,b,_,y=o(this),w=a(e),x=arguments.length,k=x>1?arguments[1]:void 0,C=void 0!==k,A=l(w);if(A&&!u(A)){b=c(w,A),_=b.next,w=[];while(!(v=i(_,b)).done)w.push(v.value)}for(C&&x>2&&(k=r(k,arguments[2])),n=s(w),h=new(f(y))(n),m=d(h),t=0;n>t;t++)g=C?k(w[t],t):w[t],h[t]=m?p(g):+g;return h}},a15b:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("44ad"),a=n("fc6a"),s=n("a640"),c=i([].join),l=o!==Object,u=l||!s("join",",");r({target:"Array",proto:!0,forced:u},{join:function(e){return c(a(this),void 0===e?",":e)}})},a15e:function(e,t,n){"use strict";n.r(t);var r=n("41b2"),i=n.n(r),o=n("1098"),a=n.n(o),s=/%[sdj%]/g,c=function(){};function l(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,i=t[0],o=t.length;if("function"===typeof i)return i.apply(null,t.slice(1));if("string"===typeof i){for(var a=String(i).replace(s,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}})),c=t[r];r<o;c=t[++r])a+=" "+c;return a}return i}function u(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function d(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!u(t)||"string"!==typeof e||e))}function f(e,t,n){var r=[],i=0,o=e.length;function a(e){r.push.apply(r,e),i++,i===o&&n(r)}e.forEach((function(e){t(e,a)}))}function p(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?t(e[s],o):n([])}}o([])}function h(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function m(e,t,n,r){if(t.first){var i=h(e);return p(i,n,r)}var o=t.firstFields||[];!0===o&&(o=Object.keys(e));var a=Object.keys(e),s=a.length,c=0,l=[],u=function(e){l.push.apply(l,e),c++,c===s&&r(l)};a.forEach((function(t){var r=e[t];-1!==o.indexOf(t)?p(r,n,u):f(r,n,u)}))}function g(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function v(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===("undefined"===typeof r?"undefined":a()(r))&&"object"===a()(e[n])?e[n]=i()({},e[n],r):e[n]=r}return e}function b(e,t,n,r,i,o){!e.required||n.hasOwnProperty(e.field)&&!d(t,o||e.type)||r.push(l(i.messages.required,e.fullField))}var _=b;function y(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(l(i.messages.whitespace,e.fullField))}var w=y,x={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},k={integer:function(e){return k.number(e)&&parseInt(e,10)===e},float:function(e){return k.number(e)&&!k.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===("undefined"===typeof e?"undefined":a()(e))&&!k.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(x.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(x.url)},hex:function(e){return"string"===typeof e&&!!e.match(x.hex)}};function C(e,t,n,r,i){if(e.required&&void 0===t)_(e,t,n,r,i);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;o.indexOf(s)>-1?k[s](t)||r.push(l(i.messages.types[s],e.fullField,e.type)):s&&("undefined"===typeof t?"undefined":a()(t))!==e.type&&r.push(l(i.messages.types[s],e.fullField,e.type))}}var A=C;function S(e,t,n,r,i){var o="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=t,d=null,f="number"===typeof t,p="string"===typeof t,h=Array.isArray(t);if(f?d="number":p?d="string":h&&(d="array"),!d)return!1;h&&(u=t.length),p&&(u=t.replace(c,"_").length),o?u!==e.len&&r.push(l(i.messages[d].len,e.fullField,e.len)):a&&!s&&u<e.min?r.push(l(i.messages[d].min,e.fullField,e.min)):s&&!a&&u>e.max?r.push(l(i.messages[d].max,e.fullField,e.max)):a&&s&&(u<e.min||u>e.max)&&r.push(l(i.messages[d].range,e.fullField,e.min,e.max))}var E=S,T="enum";function O(e,t,n,r,i){e[T]=Array.isArray(e[T])?e[T]:[],-1===e[T].indexOf(t)&&r.push(l(i.messages[T],e.fullField,e[T].join(", ")))}var R=O;function D(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(l(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var o=new RegExp(e.pattern);o.test(t)||r.push(l(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var L=D,M={required:_,whitespace:w,type:A,range:E,enum:R,pattern:L};function F(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t,"string")&&!e.required)return n();M.required(e,t,r,o,i,"string"),d(t,"string")||(M.type(e,t,r,o,i),M.range(e,t,r,o,i),M.pattern(e,t,r,o,i),!0===e.whitespace&&M.whitespace(e,t,r,o,i))}n(o)}var N=F;function B(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();M.required(e,t,r,o,i),void 0!==t&&M.type(e,t,r,o,i)}n(o)}var I=B;function P(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();M.required(e,t,r,o,i),void 0!==t&&(M.type(e,t,r,o,i),M.range(e,t,r,o,i))}n(o)}var $=P;function j(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();M.required(e,t,r,o,i),void 0!==t&&M.type(e,t,r,o,i)}n(o)}var z=j;function q(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();M.required(e,t,r,o,i),d(t)||M.type(e,t,r,o,i)}n(o)}var H=q;function U(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();M.required(e,t,r,o,i),void 0!==t&&(M.type(e,t,r,o,i),M.range(e,t,r,o,i))}n(o)}var W=U;function V(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();M.required(e,t,r,o,i),void 0!==t&&(M.type(e,t,r,o,i),M.range(e,t,r,o,i))}n(o)}var G=V;function K(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t,"array")&&!e.required)return n();M.required(e,t,r,o,i,"array"),d(t,"array")||(M.type(e,t,r,o,i),M.range(e,t,r,o,i))}n(o)}var Y=K;function X(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();M.required(e,t,r,o,i),void 0!==t&&M.type(e,t,r,o,i)}n(o)}var Q=X,J="enum";function Z(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();M.required(e,t,r,o,i),t&&M[J](e,t,r,o,i)}n(o)}var ee=Z;function te(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t,"string")&&!e.required)return n();M.required(e,t,r,o,i),d(t,"string")||M.pattern(e,t,r,o,i)}n(o)}var ne=te;function re(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();if(M.required(e,t,r,o,i),!d(t)){var s=void 0;s="number"===typeof t?new Date(t):t,M.type(e,s,r,o,i),s&&M.range(e,s.getTime(),r,o,i)}}n(o)}var ie=re;function oe(e,t,n,r,i){var o=[],s=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":a()(t);M.required(e,t,r,o,i,s),n(o)}var ae=oe;function se(e,t,n,r,i){var o=e.type,a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(d(t,o)&&!e.required)return n();M.required(e,t,r,a,i,o),d(t,o)||M.type(e,t,r,a,i)}n(a)}var ce=se,le={string:N,method:I,number:$,boolean:z,regexp:H,integer:W,float:G,array:Y,object:Q,enum:ee,pattern:ne,date:ie,url:ce,hex:ce,email:ce,required:ae};function ue(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var de=ue();function fe(e){this.rules=null,this._messages=de,this.define(e)}fe.prototype={messages:function(e){return e&&(this._messages=v(ue(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof e?"undefined":a()(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],o=e,s=n,u=r;if("function"===typeof s&&(u=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var d=this.messages();d===de&&(d=ue()),v(d,s.messages),s.messages=d}else s.messages=this.messages();var f=void 0,p=void 0,h={},b=s.keys||Object.keys(this.rules);b.forEach((function(n){f=t.rules[n],p=o[n],f.forEach((function(r){var a=r;"function"===typeof a.transform&&(o===e&&(o=i()({},o)),p=o[n]=a.transform(p)),a="function"===typeof a?{validator:a}:i()({},a),a.validator=t.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=t.getType(a),a.validator&&(h[n]=h[n]||[],h[n].push({rule:a,value:p,source:o,field:n}))}))}));var _={};m(h,s,(function(e,t){var n=e.rule,r=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function o(e,t){return i()({},t,{fullField:n.fullField+"."+e})}function u(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=a;if(Array.isArray(u)||(u=[u]),u.length&&c("async-validator:",u),u.length&&n.message&&(u=[].concat(n.message)),u=u.map(g(n)),s.first&&u.length)return _[n.field]=1,t(u);if(r){if(n.required&&!e.value)return u=n.message?[].concat(n.message).map(g(n)):s.error?[s.error(n,l(s.messages.required,n.field))]:[],t(u);var d={};if(n.defaultField)for(var f in e.value)e.value.hasOwnProperty(f)&&(d[f]=n.defaultField);for(var p in d=i()({},d,e.rule.fields),d)if(d.hasOwnProperty(p)){var h=Array.isArray(d[p])?d[p]:[d[p]];d[p]=h.map(o.bind(null,p))}var m=new fe(d);m.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),m.validate(e.value,e.rule.options||s,(function(e){t(e&&e.length?u.concat(e):e)}))}else t(u)}r=r&&(n.required||!n.required&&e.value),n.field=e.field;var d=n.validator(n,e.value,u,e.source,s);d&&d.then&&d.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){y(e)}))}else u&&u();function y(e){var t=void 0,n=void 0,r=[],i={};function o(e){Array.isArray(e)?r=r.concat.apply(r,e):r.push(e)}for(t=0;t<e.length;t++)o(e[t]);if(r.length)for(t=0;t<r.length;t++)n=r[t].field,i[n]=i[n]||[],i[n].push(r[t]);else r=null,i=null;u(r,i)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!le.hasOwnProperty(e.type))throw new Error(l("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?le.required:le[this.getType(e)]||!1}},fe.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");le[e]=t},fe.messages=de;t["default"]=fe},a258:function(e,t,n){"use strict";var r=n("0366"),i=n("44ad"),o=n("7b0b"),a=n("07fa"),s=function(e){var t=1===e;return function(n,s,c){var l,u,d=o(n),f=i(d),p=a(f),h=r(s,c);while(p-- >0)if(l=f[p],u=h(l,p,d),u)switch(e){case 0:return l;case 1:return p}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},a3de:function(e,t,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=i},a434:function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("23cb"),a=n("5926"),s=n("07fa"),c=n("3a34"),l=n("3511"),u=n("65f0"),d=n("8418"),f=n("083a"),p=n("1dde"),h=p("splice"),m=Math.max,g=Math.min;r({target:"Array",proto:!0,forced:!h},{splice:function(e,t){var n,r,p,h,v,b,_=i(this),y=s(_),w=o(e,y),x=arguments.length;for(0===x?n=r=0:1===x?(n=0,r=y-w):(n=x-2,r=g(m(a(t),0),y-w)),l(y+n-r),p=u(_,r),h=0;h<r;h++)v=w+h,v in _&&d(p,h,_[v]);if(p.length=r,n<r){for(h=w;h<y-r;h++)v=h+r,b=h+n,v in _?_[b]=_[v]:f(_,b);for(h=y;h>y-r+n;h--)f(_,h-1)}else if(n>r)for(h=y-r;h>w;h--)v=h+r-1,b=h+n-1,v in _?_[b]=_[v]:f(_,b);for(h=0;h<n;h++)_[h+w]=arguments[h+2];return c(_,y-r+n),p}})},a4b4:function(e,t,n){"use strict";var r=n("342f");e.exports=/web0s(?!.*chrome)/i.test(r)},a4d3:function(e,t,n){"use strict";n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a630:function(e,t,n){"use strict";var r=n("23e7"),i=n("4df4"),o=n("1c7e"),a=!o((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:a},{from:i})},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},a78e:function(e,t,n){var r,i;
/*!
* JavaScript Cookie v2.2.0
* https://github.com/js-cookie/js-cookie
*
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
* Released under the MIT license
*/(function(o){var a=!1;if(r=o,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i),a=!0,e.exports=o(),a=!0,!a){var s=window.Cookies,c=window.Cookies=o();c.noConflict=function(){return window.Cookies=s,c}}})((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(n){function r(t,i,o){var a;if("undefined"!==typeof document){if(arguments.length>1){if(o=e({path:"/"},r.defaults,o),"number"===typeof o.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*o.expires),o.expires=s}o.expires=o.expires?o.expires.toUTCString():"";try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(g){}i=n.write?n.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape);var c="";for(var l in o)o[l]&&(c+="; "+l,!0!==o[l]&&(c+="="+o[l]));return document.cookie=t+"="+i+c}t||(a={});for(var u=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,f=0;f<u.length;f++){var p=u[f].split("="),h=p.slice(1).join("=");this.json||'"'!==h.charAt(0)||(h=h.slice(1,-1));try{var m=p[0].replace(d,decodeURIComponent);if(h=n.read?n.read(h,m):n(h,m)||h.replace(d,decodeURIComponent),this.json)try{h=JSON.parse(h)}catch(g){}if(t===m){a=h;break}t||(a[m]=h)}catch(g){}}return a}}return r.set=r,r.get=function(e){return r.call(r,e)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,n){r(t,"",e(n,{expires:-1}))},r.withConverter=t,r}return t((function(){}))}))},a79d:function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("d256"),a=n("d039"),s=n("d066"),c=n("1626"),l=n("4840"),u=n("cdf9"),d=n("cb2d"),f=o&&o.prototype,p=!!o&&a((function(){f["finally"].call({then:function(){}},(function(){}))}));if(r({target:"Promise",proto:!0,real:!0,forced:p},{finally:function(e){var t=l(this,s("Promise")),n=c(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!i&&c(o)){var h=s("Promise").prototype["finally"];f["finally"]!==h&&d(f,"finally",h,{unsafe:!0})}},a7be:function(e,t,n){},a925:function(e,t,n){"use strict";
/*!
* vue-i18n v7.3.2
* (c) 2017 kazuya kawaguchi
* Released under the MIT License.
*/function r(e,t){}function i(e){return null!==e&&"object"===typeof e}var o=Object.prototype.toString,a="[object Object]";function s(e){return o.call(e)===a}function c(e){return null===e||void 0===e}function l(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var n=null,r=null;return 1===e.length?i(e[0])||Array.isArray(e[0])?r=e[0]:"string"===typeof e[0]&&(n=e[0]):2===e.length&&("string"===typeof e[0]&&(n=e[0]),(i(e[1])||Array.isArray(e[1]))&&(r=e[1])),{locale:n,params:r}}function u(e){return e?e>1?1:0:1}function d(e,t){return e=Math.abs(e),2===t?u(e):e?Math.min(e,2):0}function f(e,t){if(!e&&"string"!==typeof e)return null;var n=e.split("|");return t=d(t,n.length),n[t]?n[t].trim():e}function p(e){return JSON.parse(JSON.stringify(e))}function h(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var m=Object.prototype.hasOwnProperty;function g(e,t){return m.call(e,t)}function v(e){for(var t=arguments,n=Object(e),r=1;r<arguments.length;r++){var o=t[r];if(void 0!==o&&null!==o){var a=void 0;for(a in o)g(o,a)&&(i(o[a])?n[a]=v(n[a],o[a]):n[a]=o[a])}}return n}function b(e,t){if(e===t)return!0;var n=i(e),r=i(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var o=Array.isArray(e),a=Array.isArray(t);if(o&&a)return e.length===t.length&&e.every((function(e,n){return b(e,t[n])}));if(o||a)return!1;var s=Object.keys(e),c=Object.keys(t);return s.length===c.length&&s.every((function(n){return b(e[n],t[n])}))}catch(l){return!1}}var _="undefined"!==typeof Intl&&"undefined"!==typeof Intl.DateTimeFormat,y="undefined"!==typeof Intl&&"undefined"!==typeof Intl.NumberFormat;function w(e){e.prototype.$t=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[e,r.locale,r._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){var n=[],r=arguments.length-2;while(r-- >0)n[r]=arguments[r+2];var i=this.$i18n;return i._tc.apply(i,[e,i.locale,i._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}}var x,k={beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18n?{}:null),e.i18n)if(e.i18n instanceof ae){if(e.__i18n)try{var t={};e.__i18n.forEach((function(e){t=v(t,JSON.parse(e))})),Object.keys(t).forEach((function(n){e.i18n.mergeLocaleMessage(n,t[n])}))}catch(r){0}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData(),this._i18n.subscribeDataChanging(this),this._subscribing=!0}else if(s(e.i18n)){if(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ae&&(e.i18n.root=this.$root.$i18n,e.i18n.fallbackLocale=this.$root.$i18n.fallbackLocale,e.i18n.silentTranslationWarn=this.$root.$i18n.silentTranslationWarn),e.__i18n)try{var n={};e.__i18n.forEach((function(e){n=v(n,JSON.parse(e))})),e.i18n.messages=n}catch(r){0}this._i18n=new ae(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),this._i18n.subscribeDataChanging(this),this._subscribing=!0,(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale())}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ae?(this._i18n=this.$root.$i18n,this._i18n.subscribeDataChanging(this),this._subscribing=!0):e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof ae&&(this._i18n=e.parent.$i18n,this._i18n.subscribeDataChanging(this),this._subscribing=!0)},beforeDestroy:function(){this._i18n&&(this._subscribing&&(this._i18n.unsubscribeDataChanging(this),delete this._subscribing),this._i18nWatcher&&(this._i18nWatcher(),delete this._i18nWatcher),this._localeWatcher&&(this._localeWatcher(),delete this._localeWatcher),this._i18n=null)}},C={name:"i18n",functional:!0,props:{tag:{type:String,default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var n=t.props,i=t.data,o=t.children,a=t.parent,s=a.$i18n;if(o=(o||[]).filter((function(e){return e.tag||(e.text=e.text.trim())})),!s)return o;var c=n.path,l=n.locale,u={},d=n.places||{},f=Array.isArray(d)?d.length>0:Object.keys(d).length>0,p=o.every((function(e){if(e.data&&e.data.attrs){var t=e.data.attrs.place;return"undefined"!==typeof t&&""!==t}}));return f&&o.length>0&&!p&&r("If places prop is set, all child elements must have place prop set."),Array.isArray(d)?d.forEach((function(e,t){u[t]=e})):Object.keys(d).forEach((function(e){u[e]=d[e]})),o.forEach((function(e,t){var n=p?""+e.data.attrs.place:""+t;u[n]=e})),e(n.tag,i,s.i(c,l,u))}};function A(e,t,n){E(e,n)&&O(e,t,n)}function S(e,t,n,r){E(e,n)&&(T(e,n)&&b(t.value,t.oldValue)||O(e,t,n))}function E(e,t){var n=t.context;return n?!!n.$i18n||(r("not exist VueI18n instance in Vue instance"),!1):(r("not exist Vue instance in VNode context"),!1)}function T(e,t){var n=t.context;return e._locale===n.$i18n.locale}function O(e,t,n){var i=t.value,o=R(i),a=o.path,s=o.locale,c=o.args;if(a||s||c)if(a){var l,u=n.context;e._vt=e.textContent=(l=u.$i18n).t.apply(l,[a].concat(D(s,c))),e._locale=u.$i18n.locale}else r("required `path` in v-t directive");else r("not support value type")}function R(e){var t,n,r;return"string"===typeof e?t=e:s(e)&&(t=e.path,n=e.locale,r=e.args),{path:t,locale:n,args:r}}function D(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||s(t))&&n.push(t),n}function L(e){x=e;x.version&&Number(x.version.split(".")[0]);L.installed=!0,Object.defineProperty(x.prototype,"$i18n",{get:function(){return this._i18n}}),w(x),x.mixin(k),x.directive("t",{bind:A,update:S}),x.component(C.name,C);var t=x.config.optionMergeStrategies;t.i18n=t.methods}var M=function(){this._caches=Object.create(null)};M.prototype.interpolate=function(e,t){var n=this._caches[e];return n||(n=B(e),this._caches[e]=n),I(n,t)};var F=/^(\d)+/,N=/^(\w)+/;function B(e){var t=[],n=0,r="";while(n<e.length){var i=e[n++];if("{"===i){r&&t.push({type:"text",value:r}),r="";var o="";i=e[n++];while("}"!==i)o+=i,i=e[n++];var a=F.test(o)?"list":N.test(o)?"named":"unknown";t.push({value:o,type:a})}else"%"===i?"{"!==e[n]&&(r+=i):r+=i}return r&&t.push({type:"text",value:r}),t}function I(e,t){var n=[],r=0,o=Array.isArray(t)?"list":i(t)?"named":"unknown";if("unknown"===o)return n;while(r<e.length){var a=e[r];switch(a.type){case"text":n.push(a.value);break;case"list":n.push(t[parseInt(a.value,10)]);break;case"named":"named"===o&&n.push(t[a.value]);break;case"unknown":0;break}r++}return n}var P=0,$=1,j=2,z=3,q=0,H=1,U=2,W=3,V=4,G=5,K=6,Y=7,X=8,Q=[];Q[q]={ws:[q],ident:[W,P],"[":[V],eof:[Y]},Q[H]={ws:[H],".":[U],"[":[V],eof:[Y]},Q[U]={ws:[U],ident:[W,P],0:[W,P],number:[W,P]},Q[W]={ident:[W,P],0:[W,P],number:[W,P],ws:[H,$],".":[U,$],"[":[V,$],eof:[Y,$]},Q[V]={"'":[G,P],'"':[K,P],"[":[V,j],"]":[H,z],eof:X,else:[V,P]},Q[G]={"'":[V,P],eof:X,else:[G,P]},Q[K]={'"':[V,P],eof:X,else:[K,P]};var J=/^\s?(true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Z(e){return J.test(e)}function ee(e){var t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}function te(e){if(void 0===e||null===e)return"eof";var t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:case 48:return e;case 95:case 36:case 45:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return t>=97&&t<=122||t>=65&&t<=90?"ident":t>=49&&t<=57?"number":"else"}function ne(e){var t=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(Z(t)?ee(t):"*"+t)}function re(e){var t,n,r,i,o,a,s,c=[],l=-1,u=q,d=0,f=[];function p(){var t=e[l+1];if(u===G&&"'"===t||u===K&&'"'===t)return l++,r="\\"+t,f[P](),!0}f[$]=function(){void 0!==n&&(c.push(n),n=void 0)},f[P]=function(){void 0===n?n=r:n+=r},f[j]=function(){f[P](),d++},f[z]=function(){if(d>0)d--,u=V,f[P]();else{if(d=0,n=ne(n),!1===n)return!1;f[$]()}};while(null!==u)if(l++,t=e[l],"\\"!==t||!p()){if(i=te(t),s=Q[u],o=s[i]||s["else"]||X,o===X)return;if(u=o[0],a=f[o[1]],a&&(r=o[2],r=void 0===r?t:r,!1===a()))return;if(u===Y)return c}}function ie(e){return!!Array.isArray(e)&&0===e.length}var oe=function(){this._cache=Object.create(null)};oe.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=re(e),t&&(this._cache[e]=t)),t||[]},oe.prototype.getPathValue=function(e,t){if(!i(e))return null;var n=this.parsePath(t);if(ie(n))return null;var r=n.length,o=null,a=e,s=0;while(s<r){var c=a[n[s]];if(void 0===c){a=null;break}a=c,s++}return o=a,o};var ae=function(e){var t=this;void 0===e&&(e={});var n=e.locale||"en-US",r=e.fallbackLocale||"en-US",i=e.messages||{},o=e.dateTimeFormats||{},a=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||new M,this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&!!e.silentTranslationWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new oe,this._dataListeners=[],this._exist=function(e,n){return!(!e||!n)&&!c(t._path.getPathValue(e,n))},this._initVM({locale:n,fallbackLocale:r,messages:i,dateTimeFormats:o,numberFormats:a})},se={vm:{},messages:{},dateTimeFormats:{},numberFormats:{},locale:{},fallbackLocale:{},missing:{},formatter:{},silentTranslationWarn:{}};ae.prototype._initVM=function(e){var t=x.config.silent;x.config.silent=!0,this._vm=new x({data:e}),x.config.silent=t},ae.prototype.subscribeDataChanging=function(e){this._dataListeners.push(e)},ae.prototype.unsubscribeDataChanging=function(e){h(this._dataListeners,e)},ae.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){var t=e._dataListeners.length;while(t--)x.nextTick((function(){e._dataListeners[t]&&e._dataListeners[t].$forceUpdate()}))}),{deep:!0})},ae.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var e=this._vm;return this._root.vm.$watch("locale",(function(t){e.$set(e,"locale",t),e.$forceUpdate()}),{immediate:!0})},se.vm.get=function(){return this._vm},se.messages.get=function(){return p(this._getMessages())},se.dateTimeFormats.get=function(){return p(this._getDateTimeFormats())},se.numberFormats.get=function(){return p(this._getNumberFormats())},se.locale.get=function(){return this._vm.locale},se.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},se.fallbackLocale.get=function(){return this._vm.fallbackLocale},se.fallbackLocale.set=function(e){this._vm.$set(this._vm,"fallbackLocale",e)},se.missing.get=function(){return this._missing},se.missing.set=function(e){this._missing=e},se.formatter.get=function(){return this._formatter},se.formatter.set=function(e){this._formatter=e},se.silentTranslationWarn.get=function(){return this._silentTranslationWarn},se.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},ae.prototype._getMessages=function(){return this._vm.messages},ae.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},ae.prototype._getNumberFormats=function(){return this._vm.numberFormats},ae.prototype._warnDefault=function(e,t,n,r){return c(n)?(this.missing&&this.missing.apply(null,[e,t,r]),t):n},ae.prototype._isFallbackRoot=function(e){return!e&&!c(this._root)&&this._fallbackRoot},ae.prototype._interpolate=function(e,t,n,r,i,o){if(!t)return null;var a,l=this._path.getPathValue(t,n);if(Array.isArray(l))return l;if(c(l)){if(!s(t))return null;if(a=t[n],"string"!==typeof a)return null}else{if("string"!==typeof l)return null;a=l}return a.indexOf("@:")>=0&&(a=this._link(e,t,a,r,i,o)),o?this._render(a,i,o):a},ae.prototype._link=function(e,t,n,r,i,o){var a=this,s=n,c=s.match(/(@:[\w\-_|.]+)/g);for(var l in c)if(c.hasOwnProperty(l)){var u=c[l],d=u.substr(2),f=a._interpolate(e,t,d,r,"raw"===i?"string":i,"raw"===i?void 0:o);if(a._isFallbackRoot(f)){if(!a._root)throw Error("unexpected error");var p=a._root;f=p._translate(p._getMessages(),p.locale,p.fallbackLocale,d,r,i,o)}f=a._warnDefault(e,d,f,r),s=f?s.replace(u,f):s}return s},ae.prototype._render=function(e,t,n){var r=this._formatter.interpolate(e,n);return"string"===t?r.join(""):r},ae.prototype._translate=function(e,t,n,r,i,o,a){var s=this._interpolate(t,e[t],r,i,o,a);return c(s)?(s=this._interpolate(n,e[n],r,i,o,a),c(s)?null:s):s},ae.prototype._t=function(e,t,n,r){var i=[],o=arguments.length-4;while(o-- >0)i[o]=arguments[o+4];if(!e)return"";var a,s=l.apply(void 0,i),c=s.locale||t,u=this._translate(n,c,this.fallbackLocale,e,r,"string",s.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(a=this._root).t.apply(a,[e].concat(i))}return this._warnDefault(c,e,u,r)},ae.prototype.t=function(e){var t,n=[],r=arguments.length-1;while(r-- >0)n[r]=arguments[r+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},ae.prototype._i=function(e,t,n,r,i){var o=this._translate(n,t,this.fallbackLocale,e,r,"raw",i);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.i(e,t,i)}return this._warnDefault(t,e,o,r)},ae.prototype.i=function(e,t,n){return e?("string"!==typeof t&&(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},ae.prototype._tc=function(e,t,n,r,i){var o,a=[],s=arguments.length-5;while(s-- >0)a[s]=arguments[s+5];return e?(void 0===i&&(i=1),f((o=this)._t.apply(o,[e,t,n,r].concat(a)),i)):""},ae.prototype.tc=function(e,t){var n,r=[],i=arguments.length-2;while(i-- >0)r[i]=arguments[i+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(r))},ae.prototype._te=function(e,t,n){var r=[],i=arguments.length-3;while(i-- >0)r[i]=arguments[i+3];var o=l.apply(void 0,r).locale||t;return this._exist(n[o],e)},ae.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},ae.prototype.getLocaleMessage=function(e){return p(this._vm.messages[e]||{})},ae.prototype.setLocaleMessage=function(e,t){this._vm.messages[e]=t},ae.prototype.mergeLocaleMessage=function(e,t){this._vm.messages[e]=x.util.extend(this._vm.messages[e]||{},t)},ae.prototype.getDateTimeFormat=function(e){return p(this._vm.dateTimeFormats[e]||{})},ae.prototype.setDateTimeFormat=function(e,t){this._vm.dateTimeFormats[e]=t},ae.prototype.mergeDateTimeFormat=function(e,t){this._vm.dateTimeFormats[e]=x.util.extend(this._vm.dateTimeFormats[e]||{},t)},ae.prototype._localizeDateTime=function(e,t,n,r,i){var o=t,a=r[o];if((c(a)||c(a[i]))&&(o=n,a=r[o]),c(a)||c(a[i]))return null;var s=a[i],l=o+"__"+i,u=this._dateTimeFormatters[l];return u||(u=this._dateTimeFormatters[l]=new Intl.DateTimeFormat(o,s)),u.format(e)},ae.prototype._d=function(e,t,n){if(!n)return new Intl.DateTimeFormat(t).format(e);var r=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(r)){if(!this._root)throw Error("unexpected error");return this._root.d(e,n,t)}return r||""},ae.prototype.d=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var r=this.locale,o=null;return 1===t.length?"string"===typeof t[0]?o=t[0]:i(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(o=t[0].key)):2===t.length&&("string"===typeof t[0]&&(o=t[0]),"string"===typeof t[1]&&(r=t[1])),this._d(e,r,o)},ae.prototype.getNumberFormat=function(e){return p(this._vm.numberFormats[e]||{})},ae.prototype.setNumberFormat=function(e,t){this._vm.numberFormats[e]=t},ae.prototype.mergeNumberFormat=function(e,t){this._vm.numberFormats[e]=x.util.extend(this._vm.numberFormats[e]||{},t)},ae.prototype._localizeNumber=function(e,t,n,r,i){var o=t,a=r[o];if((c(a)||c(a[i]))&&(o=n,a=r[o]),c(a)||c(a[i]))return null;var s=a[i],l=o+"__"+i,u=this._numberFormatters[l];return u||(u=this._numberFormatters[l]=new Intl.NumberFormat(o,s)),u.format(e)},ae.prototype._n=function(e,t,n){if(!n)return new Intl.NumberFormat(t).format(e);var r=this._localizeNumber(e,t,this.fallbackLocale,this._getNumberFormats(),n);if(this._isFallbackRoot(r)){if(!this._root)throw Error("unexpected error");return this._root.n(e,n,t)}return r||""},ae.prototype.n=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var r=this.locale,o=null;return 1===t.length?"string"===typeof t[0]?o=t[0]:i(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(o=t[0].key)):2===t.length&&("string"===typeof t[0]&&(o=t[0]),"string"===typeof t[1]&&(r=t[1])),this._n(e,r,o)},Object.defineProperties(ae.prototype,se),ae.availabilities={dateTimeFormat:_,numberFormat:y},ae.install=L,ae.version="7.3.2","undefined"!==typeof window&&window.Vue&&window.Vue.use(ae),t["a"]=ae},a975:function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").every,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("every",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},a9e3:function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("83ab"),a=n("da84"),s=n("428f"),c=n("e330"),l=n("94ca"),u=n("1a2d"),d=n("7156"),f=n("3a9b"),p=n("d9b5"),h=n("c04e"),m=n("d039"),g=n("241c").f,v=n("06cf").f,b=n("9bf2").f,_=n("408a"),y=n("58a8").trim,w="Number",x=a[w],k=s[w],C=x.prototype,A=a.TypeError,S=c("".slice),E=c("".charCodeAt),T=function(e){var t=h(e,"number");return"bigint"==typeof t?t:O(t)},O=function(e){var t,n,r,i,o,a,s,c,l=h(e,"number");if(p(l))throw new A("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=y(l),t=E(l,0),43===t||45===t){if(n=E(l,2),88===n||120===n)return NaN}else if(48===t){switch(E(l,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+l}for(o=S(l,2),a=o.length,s=0;s<a;s++)if(c=E(o,s),c<48||c>i)return NaN;return parseInt(o,r)}return+l},R=l(w,!x(" 0o1")||!x("0b1")||x("+0x1")),D=function(e){return f(C,e)&&m((function(){_(e)}))},L=function(e){var t=arguments.length<1?0:x(T(e));return D(this)?d(Object(t),this,L):t};L.prototype=C,R&&!i&&(C.constructor=L),r({global:!0,constructor:!0,wrap:!0,forced:R},{Number:L});var M=function(e,t){for(var n,r=o?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)u(t,n=r[i])&&!u(e,n)&&b(e,n,v(t,n))};i&&k&&M(s[w],k),(R||i)&&M(s[w],x)},aa1f:function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("825a"),a=n("e391"),s=Error.prototype.toString,c=i((function(){if(r){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==s.call(e))return!0}return"2: 1"!==s.call({message:1,name:2})||"Error"!==s.call({})}));e.exports=c?function(){var e=o(this),t=a(e.name,"Error"),n=a(e.message);return t?n?t+": "+n:t:n}:s},ab13:function(e,t,n){"use strict";var r=n("b622"),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},ab36:function(e,t,n){"use strict";var r=n("861d"),i=n("9112");e.exports=function(e,t){r(t)&&"cause"in t&&i(e,"cause",t.cause)}},ac1f:function(e,t,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},ace4:function(e,t,n){"use strict";var r=n("23e7"),i=n("4625"),o=n("d039"),a=n("621a"),s=n("825a"),c=n("23cb"),l=n("50c4"),u=n("4840"),d=a.ArrayBuffer,f=a.DataView,p=f.prototype,h=i(d.prototype.slice),m=i(p.getUint8),g=i(p.setUint8),v=o((function(){return!new d(2).slice(1,void 0).byteLength}));r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:v},{slice:function(e,t){if(h&&void 0===t)return h(s(this),e);var n=s(this).byteLength,r=c(e,n),i=c(void 0===t?n:t,n),o=new(u(this,d))(l(i-r)),a=new f(this),p=new f(o),v=0;while(r<i)g(p,v++,m(a,r++));return o}})},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},addb:function(e,t,n){"use strict";var r=n("f36a"),i=Math.floor,o=function(e,t){var n=e.length;if(n<8){var a,s,c=1;while(c<n){s=c,a=e[c];while(s&&t(e[s-1],a)>0)e[s]=e[--s];s!==c++&&(e[s]=a)}}else{var l=i(n/2),u=o(r(e,0,l),t),d=o(r(e,l),t),f=u.length,p=d.length,h=0,m=0;while(h<f||m<p)e[h+m]=h<f&&m<p?t(u[h],d[m])<=0?u[h++]:d[m++]:h<f?u[h++]:d[m++]}return e};e.exports=o},ade3:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("53ca");n("8172"),n("efec"),n("a4d3"),n("e01a"),n("d3b7"),n("d9e2"),n("a9e3");function i(e,t){if("object"!=Object(r["a"])(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=Object(r["a"])(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=i(e,"string");return"symbol"==Object(r["a"])(t)?t:String(t)}function a(e,t,n){return t=o(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},ae93:function(e,t,n){"use strict";var r,i,o,a=n("d039"),s=n("1626"),c=n("861d"),l=n("7c73"),u=n("e163"),d=n("cb2d"),f=n("b622"),p=n("c430"),h=f("iterator"),m=!1;[].keys&&(o=[].keys(),"next"in o?(i=u(u(o)),i!==Object.prototype&&(r=i)):m=!0);var g=!c(r)||a((function(){var e={};return r[h].call(e)!==e}));g?r={}:p&&(r=l(r)),s(r[h])||d(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},aeb0:function(e,t,n){"use strict";var r=n("9bf2").f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},aed9:function(e,t,n){"use strict";var r=n("83ab"),i=n("d039");e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},af7e:function(e,t,n){var r=n("9e27"),i=n("3796"),o=n("f520"),a=n("6a83")("IE_PROTO"),s=function(){},c="prototype",l=function(){var e,t=n("3524")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("1bf2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),l=e.F;while(r--)delete l[c][o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},b039:function(e,t){ace.define("ace/snippets/json",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText=void 0,t.scope="json"}))},b041:function(e,t,n){"use strict";var r=n("00ee"),i=n("f5df");e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b0c0:function(e,t,n){"use strict";var r=n("83ab"),i=n("5e77").EXISTS,o=n("e330"),a=n("edd0"),s=Function.prototype,c=o(s.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=o(l.exec),d="name";r&&!i&&a(s,d,{configurable:!0,get:function(){try{return u(l,c(this))[1]}catch(e){return""}}})},b283:function(e,t){e.exports={}},b313:function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:o.RFC3986,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:o.RFC1738,RFC3986:o.RFC3986}},b367:function(e,t,n){var r=n("5524"),i=n("ef08"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("e444")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},b378:function(e,t){ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/anchor","ace/keyboard/hash_handler","ace/tokenizer","ace/lib/dom","ace/editor"],(function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=e("./lib/lang"),a=e("./range").Range,s=e("./anchor").Anchor,c=e("./keyboard/hash_handler").HashHandler,l=e("./tokenizer").Tokenizer,u=a.comparePoints,d=function(){this.snippetMap={},this.snippetNameMap={}};(function(){r.implement(this,i),this.getTokenizer=function(){function e(e,t,n){return e=e.substr(1),/^\d+$/.test(e)&&!n.inFormatString?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}return d.$tokenizer=new l({start:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectIf?(n[0].expectIf=!1,n[0].elseBranch=n[0],[n[0]]):":"}},{regex:/\\./,onMatch:function(e,t,n){var r=e[1];return"}"==r&&n.length||-1!="`$\\".indexOf(r)?e=r:n.inFormatString&&("n"==r||"t"==r?e="\n":-1!="ulULE".indexOf(r)&&(e={changeCase:r,local:r>"a"})),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,n,r){var i=e(t.substr(1),n,r);return r.unshift(i[0]),i},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,n){n[0].choices=e.slice(1,-1).split(",")},next:"start"},{regex:"/("+t("/")+"+)/(?:("+t("/")+"*)/)(\\w*):?",onMatch:function(e,t,n){var r=n[0];return r.fmtString=e,e=this.splitRegex.exec(e),r.guard=e[1],r.fmt=e[2],r.flag=e[3],""},next:"start"},{regex:"`"+t("`")+"*`",onMatch:function(e,t,n){return n[0].code=e.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(e,t,n){n[0]&&(n[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+t("/")+"+)/",token:"regex"},{regex:"",onMatch:function(e,t,n){n.inFormatString=!0},next:"start"}]}),d.prototype.getTokenizer=function(){return d.$tokenizer},d.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},this.$getDefaultValue=function(e,t){if(/^[A-Z]\d+$/.test(t)){var n=t.substr(1);return(this.variables[t[0]+"__"]||{})[n]}if(/^\d+$/.test(t))return(this.variables.__||{})[t];if(t=t.replace(/^TM_/,""),e){var r=e.session;switch(t){case"CURRENT_WORD":var i=r.getWordRange();case"SELECTION":case"SELECTED_TEXT":return r.getTextRange(i);case"CURRENT_LINE":return r.getLine(e.getCursorPosition().row);case"PREV_LINE":return r.getLine(e.getCursorPosition().row-1);case"LINE_INDEX":return e.getCursorPosition().column;case"LINE_NUMBER":return e.getCursorPosition().row+1;case"SOFT_TABS":return r.getUseSoftTabs()?"YES":"NO";case"TAB_SIZE":return r.getTabSize();case"FILENAME":case"FILEPATH":return"";case"FULLNAME":return"Ace"}}},this.variables={},this.getVariableValue=function(e,t){return this.variables.hasOwnProperty(t)?this.variables[t](e,t)||"":this.$getDefaultValue(e,t)||""},this.tmStrFormat=function(e,t,n){var r=t.flag||"",i=t.guard;i=new RegExp(i,r.replace(/[^gi]/,""));var o=this.tokenizeTmSnippet(t.fmt,"formatString"),a=this,s=e.replace(i,(function(){a.variables.__=arguments;for(var e=a.resolveVariables(o,n),t="E",r=0;r<e.length;r++){var i=e[r];if("object"==typeof i)if(e[r]="",i.changeCase&&i.local){var s=e[r+1];s&&"string"==typeof s&&("u"==i.changeCase?e[r]=s[0].toUpperCase():e[r]=s[0].toLowerCase(),e[r+1]=s.substr(1))}else i.changeCase&&(t=i.changeCase);else"U"==t?e[r]=i.toUpperCase():"L"==t&&(e[r]=i.toLowerCase())}return e.join("")}));return this.variables.__=null,s},this.resolveVariables=function(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];if("string"==typeof i)n.push(i);else{if("object"!=typeof i)continue;if(i.skip)a(i);else{if(i.processed<r)continue;if(i.text){var o=this.getVariableValue(t,i.text);o&&i.fmtString&&(o=this.tmStrFormat(o,i)),i.processed=r,null==i.expectIf?o&&(n.push(o),a(i)):o?i.skip=i.elseBranch:a(i)}else(null!=i.tabstopId||null!=i.changeCase)&&n.push(i)}}}function a(t){var n=e.indexOf(t,r+1);-1!=n&&(r=n)}return n},this.insertSnippetForSelection=function(e,t){var n=e.getCursorPosition(),r=e.session.getLine(n.row),i=e.session.getTabString(),o=r.match(/^\s*/)[0];n.column<o.length&&(o=o.slice(0,n.column)),t=t.replace(/\r/g,"");var a=this.tokenizeTmSnippet(t);a=this.resolveVariables(a,e),a=a.map((function(e){return"\n"==e?e+o:"string"==typeof e?e.replace(/\t/g,i):e}));var s=[];a.forEach((function(e,t){if("object"==typeof e){var n=e.tabstopId,r=s[n];if(r||(r=s[n]=[],r.index=n,r.value=""),-1===r.indexOf(e)){r.push(e);var i=a.indexOf(e,t+1);if(-1!==i){var o=a.slice(t+1,i),c=o.some((function(e){return"object"===typeof e}));c&&!r.value?r.value=o:!o.length||r.value&&"string"===typeof r.value||(r.value=o.join(""))}}}})),s.forEach((function(e){e.length=0}));var c={};function l(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if("object"==typeof r){if(c[r.tabstopId])continue;var i=e.lastIndexOf(r,n-1);r=t[i]||{tabstopId:r.tabstopId}}t[n]=r}return t}for(var u=0;u<a.length;u++){var d=a[u];if("object"==typeof d){var p=d.tabstopId,h=a.indexOf(d,u+1);if(c[p])c[p]===d&&(c[p]=null);else{var m=s[p],g="string"==typeof m.value?[m.value]:l(m.value);g.unshift(u+1,Math.max(0,h-u)),g.push(d),c[p]=d,a.splice.apply(a,g),-1===m.indexOf(d)&&m.push(d)}}}var v=0,b=0,_="";a.forEach((function(e){if("string"===typeof e){var t=e.split("\n");t.length>1?(b=t[t.length-1].length,v+=t.length-1):b+=e.length,_+=e}else e.start?e.end={row:v,column:b}:e.start={row:v,column:b}}));var y=e.getSelectionRange(),w=e.session.replace(y,_),x=new f(e),k=e.inVirtualSelectionMode&&e.selection.index;x.addTabstops(s,y.start,w,k)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection((function(){n.insertSnippetForSelection(e,t)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if(t=t.split("/").pop(),"html"===t||"php"===t){"php"!==t||e.session.$mode.inlinePhp||(t="html");var n=e.getCursorPosition(),r=e.session.getState(n.row);"object"===typeof r&&(r=r[0]),r.substring&&("js-"==r.substring(0,3)?t="javascript":"css-"==r.substring(0,4)?t="css":"php-"==r.substring(0,4)&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],r=this.snippetMap;return r[t]&&r[t].includeScopes&&n.push.apply(n,r[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,r=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return r&&e.tabstopManager&&e.tabstopManager.tabNext(),r},this.expandSnippetForSelection=function(e,t){var n,r=e.getCursorPosition(),i=e.session.getLine(r.row),o=i.substring(0,r.column),a=i.substr(r.column),s=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=s[e];return t&&(n=this.findMatchingSnippet(t,o,a)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(r.row,r.column-n.replaceBefore.length,r.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},this.findMatchingSnippet=function(e,t,n){for(var r=e.length;r--;){var i=e[r];if((!i.startRe||i.startRe.test(t))&&((!i.endRe||i.endRe.test(n))&&(i.startRe||i.endRe)))return i.matchBefore=i.startRe?i.startRe.exec(t):[""],i.matchAfter=i.endRe?i.endRe.exec(n):[""],i.replaceBefore=i.triggerRe?i.triggerRe.exec(t)[0]:"",i.replaceAfter=i.endTriggerRe?i.endTriggerRe.exec(n)[0]:"",i}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){var n=this.snippetMap,r=this.snippetNameMap,i=this;function a(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function s(e,t,n){return e=a(e),t=a(t),n?(e=t+e,e&&"$"!=e[e.length-1]&&(e+="$")):(e+=t,e&&"^"!=e[0]&&(e="^"+e)),new RegExp(e)}function c(e){e.scope||(e.scope=t||"_"),t=e.scope,n[t]||(n[t]=[],r[t]={});var a=r[t];if(e.name){var c=a[e.name];c&&i.unregister(c),a[e.name]=e}n[t].push(e),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=o.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=s(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger,"",!0),e.endRe=s(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger,"",!0))}e||(e=[]),e&&e.content?c(e):Array.isArray(e)&&e.forEach(c),this._signal("registerSnippets",{scope:t})},this.unregister=function(e,t){var n=this.snippetMap,r=this.snippetNameMap;function i(e){var i=r[e.scope||t];if(i&&i[e.name]){delete i[e.name];var o=n[e.scope||t],a=o&&o.indexOf(e);a>=0&&o.splice(a,1)}}e.content?i(e):Array.isArray(e)&&e.forEach(i)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");var t,n=[],r={},i=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;while(t=i.exec(e)){if(t[1])try{r=JSON.parse(t[1]),n.push(r)}catch(c){}if(t[4])r.content=t[4].replace(/^\t/gm,""),n.push(r),r={};else{var o=t[2],a=t[3];if("regex"==o){var s=/\/((?:[^\/\\]|\\.)*)|$/g;r.guard=s.exec(a)[1],r.trigger=s.exec(a)[1],r.endTrigger=s.exec(a)[1],r.endGuard=s.exec(a)[1]}else"snippet"==o?(r.tabTrigger=a.match(/^\S*/)[0],r.name||(r.name=a)):r[o]=a}}return n},this.getSnippetByName=function(e,t){var n,r=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var i=r[t];return i&&(n=i[e]),!!n}),this),n}}).call(d.prototype);var f=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=o.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){var t="r"==e.action[0],n=e.start,r=e.end,i=n.row,o=r.row,a=o-i,s=r.column-n.column;if(t&&(a=-a,s=-s),!this.$inChange&&t){var c=this.selectedTabstop,l=c&&!c.some((function(e){return u(e.start,n)<=0&&u(e.end,r)>=0}));if(l)return this.detach()}for(var d=this.ranges,f=0;f<d.length;f++){var p=d[f];p.end.row<n.row||(t&&u(n,p.start)<0&&u(r,p.end)>0?(this.removeRange(p),f--):(p.start.row==i&&p.start.column>n.column&&(p.start.column+=s),p.end.row==i&&p.end.column>=n.column&&(p.end.column+=s),p.start.row>=i&&(p.start.row+=a),p.end.row>=i&&(p.end.row+=a),u(p.start,p.end)>0&&this.removeRange(p)))}d.length||this.detach()},this.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges){this.$inChange=!0;for(var n=this.editor.session,r=n.getTextRange(e.firstNonLinked),i=e.length;i--;){var o=e[i];if(o.linked){var a=t.snippetManager.tmStrFormat(r,o.original);n.replace(o,a)}}this.$inChange=!1}},this.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),r=this.ranges.length;r--;)if(!this.ranges[r].linked){var i=this.ranges[r].contains(e.row,e.column),o=n||this.ranges[r].contains(t.row,t.column);if(i&&o)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);n=Math.min(Math.max(n,1),t),n==t&&(n=0),this.selectTabstop(n),0===n&&this.detach()},this.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,t=this.tabstops[this.index],t&&t.length){if(this.selectedTabstop=t,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(t.firstNonLinked);else{var n=this.editor.multiSelect;n.toSingleRange(t.firstNonLinked.clone());for(var r=t.length;r--;)t.hasLinkedRanges&&t[r].linked||n.addRange(t[r].clone(),!0);n.ranges[0]&&n.addRange(n.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(e,t,n){if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var r=a.fromPoints(n,n);m(r.start,t),m(r.end,t),e[0]=[r],e[0].index=0}var i=this.index,o=[i+1,0],s=this.ranges;e.forEach((function(e,n){for(var r=this.$openTabstops[n]||e,i=e.length;i--;){var c=e[i],l=a.fromPoints(c.start,c.end||c.start);h(l.start,t),h(l.end,t),l.original=c,l.tabstop=r,s.push(l),r!=e?r.unshift(l):r[i]=l,c.fmtString?(l.linked=!0,r.hasLinkedRanges=!0):r.firstNonLinked||(r.firstNonLinked=l)}r.firstNonLinked||(r.hasLinkedRanges=!1),r===e&&(o.push(r),this.$openTabstops[n]=r),this.addTabstopMarkers(r)}),this),o.length>2&&(this.tabstops.length&&o.push(o.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,o))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))}))},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},this.removeRange=function(e){var t=e.tabstop.indexOf(e);e.tabstop.splice(t,1),t=this.ranges.indexOf(e),this.ranges.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(t=this.tabstops.indexOf(e.tabstop),-1!=t&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new c,this.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||e.tabstopManager.tabNext(1)},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1)},Esc:function(e){e.tabstopManager.detach()},Return:function(e){return!1}})}).call(f.prototype);var p={};p.onChange=s.prototype.onChange,p.setPosition=function(e,t){this.pos.row=e,this.pos.column=t},p.update=function(e,t,n){this.$insertRight=n,this.pos=e,this.onChange(t)};var h=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},m=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),t.snippetManager=new d;var g=e("./editor").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(g.prototype)})),ace.define("ace/ext/emmet",["require","exports","module","ace/keyboard/hash_handler","ace/editor","ace/snippets","ace/range","resources","resources","tabStops","resources","utils","actions","ace/config","ace/config"],(function(e,t,n){"use strict";var r,i,o=e("ace/keyboard/hash_handler").HashHandler,a=e("ace/editor").Editor,s=e("ace/snippets").snippetManager,c=e("ace/range").Range;function l(){}l.prototype={setupContext:function(e){this.ace=e,this.indentation=e.session.getTabString(),r||(r=window.emmet);var t=r.resources||r.require("resources");t.setVariable("indentation",this.indentation),this.$syntax=null,this.$syntax=this.getSyntax()},getSelectionRange:function(){var e=this.ace.getSelectionRange(),t=this.ace.session.doc;return{start:t.positionToIndex(e.start),end:t.positionToIndex(e.end)}},createSelection:function(e,t){var n=this.ace.session.doc;this.ace.selection.setRange({start:n.indexToPosition(e),end:n.indexToPosition(t)})},getCurrentLineRange:function(){var e=this.ace,t=e.getCursorPosition().row,n=e.session.getLine(t).length,r=e.session.doc.positionToIndex({row:t,column:0});return{start:r,end:r+n}},getCaretPos:function(){var e=this.ace.getCursorPosition();return this.ace.session.doc.positionToIndex(e)},setCaretPos:function(e){var t=this.ace.session.doc.indexToPosition(e);this.ace.selection.moveToPosition(t)},getCurrentLine:function(){var e=this.ace.getCursorPosition().row;return this.ace.session.getLine(e)},replaceContent:function(e,t,n,r){null==n&&(n=null==t?this.getContent().length:t),null==t&&(t=0);var i=this.ace,o=i.session.doc,a=c.fromPoints(o.indexToPosition(t),o.indexToPosition(n));i.session.remove(a),a.end=a.start,e=this.$updateTabstops(e),s.insertSnippet(i,e)},getContent:function(){return this.ace.getValue()},getSyntax:function(){if(this.$syntax)return this.$syntax;var e=this.ace.session.$modeId.split("/").pop();if("html"==e||"php"==e){var t=this.ace.getCursorPosition(),n=this.ace.session.getState(t.row);"string"!=typeof n&&(n=n[0]),n&&(n=n.split("-"),n.length>1?e=n[0]:"php"==e&&(e="html"))}return e},getProfileName:function(){var e=r.resources||r.require("resources");switch(this.getSyntax()){case"css":return"css";case"xml":case"xsl":return"xml";case"html":var t=e.getVariable("profile");return t||(t=-1!=this.ace.session.getLines(0,2).join("").search(/<!DOCTYPE[^>]+XHTML/i)?"xhtml":"html"),t;default:var n=this.ace.session.$mode;return n.emmetConfig&&n.emmetConfig.profile||"xhtml"}},prompt:function(e){return prompt(e)},getSelection:function(){return this.ace.session.getTextRange()},getFilePath:function(){return""},$updateTabstops:function(e){var t=1e3,n=0,i=null,o=r.tabStops||r.require("tabStops"),a=r.resources||r.require("resources"),s=a.getVocabulary("user"),c={tabstop:function(e){var r=parseInt(e.group,10),a=0===r;a?r=++n:r+=t;var s=e.placeholder;s&&(s=o.processText(s,c));var l="${"+r+(s?":"+s:"")+"}";return a&&(i=[e.start,l]),l},escape:function(e){return"$"==e?"\\$":"\\"==e?"\\\\":e}};if(e=o.processText(e,c),s.variables["insert_final_tabstop"]&&!/\$\{0\}$/.test(e))e+="${0}";else if(i){var l=r.utils?r.utils.common:r.require("utils");e=l.replaceSubstring(e,"${0}",i[0],i[1])}return e}};var u={expand_abbreviation:{mac:"ctrl+alt+e",win:"alt+e"},match_pair_outward:{mac:"ctrl+d",win:"ctrl+,"},match_pair_inward:{mac:"ctrl+j",win:"ctrl+shift+0"},matching_pair:{mac:"ctrl+alt+j",win:"alt+j"},next_edit_point:"alt+right",prev_edit_point:"alt+left",toggle_comment:{mac:"command+/",win:"ctrl+/"},split_join_tag:{mac:"shift+command+'",win:"shift+ctrl+`"},remove_tag:{mac:"command+'",win:"shift+ctrl+;"},evaluate_math_expression:{mac:"shift+command+y",win:"shift+ctrl+y"},increment_number_by_1:"ctrl+up",decrement_number_by_1:"ctrl+down",increment_number_by_01:"alt+up",decrement_number_by_01:"alt+down",increment_number_by_10:{mac:"alt+command+up",win:"shift+alt+up"},decrement_number_by_10:{mac:"alt+command+down",win:"shift+alt+down"},select_next_item:{mac:"shift+command+.",win:"shift+ctrl+."},select_previous_item:{mac:"shift+command+,",win:"shift+ctrl+,"},reflect_css_value:{mac:"shift+command+r",win:"shift+ctrl+r"},encode_decode_data_url:{mac:"shift+ctrl+d",win:"ctrl+'"},expand_abbreviation_with_tab:"Tab",wrap_with_abbreviation:{mac:"shift+ctrl+a",win:"shift+ctrl+a"}},d=new l;for(var f in t.commands=new o,t.runEmmetCommand=function e(t){try{d.setupContext(t);var n=r.actions||r.require("actions");if("expand_abbreviation_with_tab"==this.action){if(!t.selection.isEmpty())return!1;var i=t.selection.lead,o=t.session.getTokenAt(i.row,i.column);if(o&&/\btag\b/.test(o.type))return!1}if("wrap_with_abbreviation"==this.action)return setTimeout((function(){n.run("wrap_with_abbreviation",d)}),0);var a=n.run(this.action,d)}catch(s){if(!r)return h(e.bind(this,t)),!0;t._signal("changeStatus","string"==typeof s?s:s.message),a=!1}return a},u)t.commands.addCommand({name:"emmet:"+f,action:f,bindKey:u[f],exec:t.runEmmetCommand,multiSelectAction:"forEach"});t.updateCommands=function(e,n){n?e.keyBinding.addKeyboardHandler(t.commands):e.keyBinding.removeKeyboardHandler(t.commands)},t.isSupportedMode=function(e){if(!e)return!1;if(e.emmetConfig)return!0;var t=e.$id||e;return/css|less|scss|sass|stylus|html|php|twig|ejs|handlebars/.test(t)},t.isAvailable=function(e,n){if(/(evaluate_math_expression|expand_abbreviation)$/.test(n))return!0;var r=e.session.$mode,i=t.isSupportedMode(r);if(i&&r.$modes)try{d.setupContext(e),/js|php/.test(d.getSyntax())&&(i=!1)}catch(o){}return i};var p=function(e,n){var r=n;if(r){var i=t.isSupportedMode(r.session.$mode);!1===e.enableEmmet&&(i=!1),i&&h(),t.updateCommands(r,i)}},h=function(t){"string"==typeof i&&e("ace/config").loadModule(i,(function(){i=null,t&&t()}))};t.AceEmmetEditor=l,e("ace/config").defineOptions(a.prototype,"editor",{enableEmmet:{set:function(e){this[e?"on":"removeListener"]("changeMode",p),p({enableEmmet:!!e},this)},value:!0}}),t.setCore=function(e){"string"==typeof e?i=e:r=e}})),function(){ace.acequire(["ace/ext/emmet"],(function(){}))}()},b39a:function(e,t,n){"use strict";var r=n("da84"),i=n("2ba4"),o=n("ebb5"),a=n("d039"),s=n("f36a"),c=r.Int8Array,l=o.aTypedArray,u=o.exportTypedArrayMethod,d=[].toLocaleString,f=!!c&&a((function(){d.call(new c(1))})),p=a((function(){return[1,2].toLocaleString()!==new c([1,2]).toLocaleString()}))||!a((function(){c.prototype.toLocaleString.call([1,2])}));u("toLocaleString",(function(){return i(d,f?s(l(this)):l(this),s(arguments))}),p)},b3ad:function(e,t,n){var r=n("dc7a")("wks"),i=n("673b"),o=n("1935").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},b42e:function(e,t,n){"use strict";var r=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},b4f8:function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("1a2d"),a=n("577e"),s=n("5692"),c=n("0b43"),l=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=a(e);if(o(l,t))return l[t];var n=i("Symbol")(t);return l[t]=n,u[n]=t,n}})},b50d:function(e,t,n){"use strict";var r=n("c532"),i=n("467f"),o=n("30b5"),a=n("c345"),s=n("3934"),c=n("2d83");e.exports=function(e){return new Promise((function(t,l){var u=e.data,d=e.headers;r.isFormData(u)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",h=e.auth.password||"";d.Authorization="Basic "+btoa(p+":"+h)}if(f.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?a(f.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?f.response:f.responseText,o={data:r,status:f.status,statusText:f.statusText,headers:n,config:e,request:f};i(t,l,o),f=null}},f.onerror=function(){l(c("Network Error",e,null,f)),f=null},f.ontimeout=function(){l(c("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var m=n("7aac"),g=(e.withCredentials||s(e.url))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;g&&(d[e.xsrfHeaderName]=g)}if("setRequestHeader"in f&&r.forEach(d,(function(e,t){"undefined"===typeof u&&"content-type"===t.toLowerCase()?delete d[t]:f.setRequestHeader(t,e)})),e.withCredentials&&(f.withCredentials=!0),e.responseType)try{f.responseType=e.responseType}catch(v){if("json"!==e.responseType)throw v}"function"===typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),l(e),f=null)})),void 0===u&&(u=null),f.send(u)}))}},b575:function(e,t,n){"use strict";var r,i,o,a,s,c=n("da84"),l=n("157a"),u=n("0366"),d=n("2cf4").set,f=n("01b4"),p=n("1cdc"),h=n("d4c3"),m=n("a4b4"),g=n("605d"),v=c.MutationObserver||c.WebKitMutationObserver,b=c.document,_=c.process,y=c.Promise,w=l("queueMicrotask");if(!w){var x=new f,k=function(){var e,t;g&&(e=_.domain)&&e.exit();while(t=x.get())try{t()}catch(n){throw x.head&&r(),n}e&&e.enter()};p||g||m||!v||!b?!h&&y&&y.resolve?(a=y.resolve(void 0),a.constructor=y,s=u(a.then,a),r=function(){s(k)}):g?r=function(){_.nextTick(k)}:(d=u(d,c),r=function(){d(k)}):(i=!0,o=b.createTextNode(""),new v(k).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),w=function(e){x.head||r(),x.add(e)}}e.exports=w},b622:function(e,t,n){"use strict";var r=n("da84"),i=n("5692"),o=n("1a2d"),a=n("90e3"),s=n("04f8"),c=n("fdbf"),l=r.Symbol,u=i("wks"),d=c?l["for"]||l:l&&l.withoutSetter||a;e.exports=function(e){return o(u,e)||(u[e]=s&&o(l,e)?l[e]:d("Symbol."+e)),u[e]}},b636:function(e,t,n){"use strict";var r=n("e065");r("asyncIterator")},b64b:function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("df75"),a=n("d039"),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(e){return o(i(e))}})},b680:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("5926"),a=n("408a"),s=n("1148"),c=n("d039"),l=RangeError,u=String,d=Math.floor,f=i(s),p=i("".slice),h=i(1..toFixed),m=function(e,t,n){return 0===t?n:t%2===1?m(e,t-1,n*e):m(e*e,t/2,n)},g=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},v=function(e,t,n){var r=-1,i=n;while(++r<6)i+=t*e[r],e[r]=i%1e7,i=d(i/1e7)},b=function(e,t){var n=6,r=0;while(--n>=0)r+=e[n],e[n]=d(r/t),r=r%t*1e7},_=function(e){var t=6,n="";while(--t>=0)if(""!==n||0===t||0!==e[t]){var r=u(e[t]);n=""===n?r:n+f("0",7-r.length)+r}return n},y=c((function(){return"0.000"!==h(8e-5,3)||"1"!==h(.9,0)||"1.25"!==h(1.255,2)||"1000000000000000128"!==h(0xde0b6b3a7640080,0)}))||!c((function(){h({})}));r({target:"Number",proto:!0,forced:y},{toFixed:function(e){var t,n,r,i,s=a(this),c=o(e),d=[0,0,0,0,0,0],h="",y="0";if(c<0||c>20)throw new l("Incorrect fraction digits");if(s!==s)return"NaN";if(s<=-1e21||s>=1e21)return u(s);if(s<0&&(h="-",s=-s),s>1e-21)if(t=g(s*m(2,69,1))-69,n=t<0?s*m(2,-t,1):s/m(2,t,1),n*=4503599627370496,t=52-t,t>0){v(d,0,n),r=c;while(r>=7)v(d,1e7,0),r-=7;v(d,m(10,r,1),0),r=t-1;while(r>=23)b(d,1<<23),r-=23;b(d,1<<r),v(d,1,1),b(d,2),y=_(d)}else v(d,0,n),v(d,1<<-t,0),y=_(d)+f("0",c);return c>0?(i=y.length,y=h+(i<=c?"0."+f("0",c-i)+y:p(y,0,i-c)+"."+p(y,i-c))):y=h+y,y}})},b6b7:function(e,t,n){"use strict";var r=n("ebb5"),i=n("4840"),o=r.aTypedArrayConstructor,a=r.getTypedArrayConstructor;e.exports=function(e){return o(i(e,a(e)))}},b6d1:function(e,t,n){var r=n("53c6");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},b727:function(e,t,n){"use strict";var r=n("0366"),i=n("e330"),o=n("44ad"),a=n("7b0b"),s=n("07fa"),c=n("65f0"),l=i([].push),u=function(e){var t=1===e,n=2===e,i=3===e,u=4===e,d=6===e,f=7===e,p=5===e||d;return function(h,m,g,v){for(var b,_,y=a(h),w=o(y),x=s(w),k=r(m,g),C=0,A=v||c,S=t?A(h,x):n||f?A(h,0):void 0;x>C;C++)if((p||C in w)&&(b=w[C],_=k(b,C,y),e))if(t)S[C]=_;else if(_)switch(e){case 3:return!0;case 5:return b;case 6:return C;case 2:l(S,b)}else switch(e){case 4:return!1;case 7:l(S,b)}return d?-1:i||u?u:S}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},b7ef:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("5c6c"),s=n("9bf2").f,c=n("1a2d"),l=n("19aa"),u=n("7156"),d=n("e391"),f=n("cf98"),p=n("0d26"),h=n("83ab"),m=n("c430"),g="DOMException",v=o("Error"),b=o(g),_=function(){l(this,y);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=d(e<2?void 0:arguments[1],"Error"),r=new b(t,n),i=new v(t);return i.name=g,s(r,"stack",a(1,p(i.stack,1))),u(r,this,_),r},y=_.prototype=b.prototype,w="stack"in new v(g),x="stack"in new b(1,2),k=b&&h&&Object.getOwnPropertyDescriptor(i,g),C=!!k&&!(k.writable&&k.configurable),A=w&&!C&&!x;r({global:!0,constructor:!0,forced:m||A},{DOMException:A?_:b});var S=o(g),E=S.prototype;if(E.constructor!==S)for(var T in m||s(E,"constructor",a(1,S)),f)if(c(f,T)){var O=f[T],R=O.s;c(S,R)||s(S,R,a(6,O.c))}},b85c:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("d9e2");var r=n("06c5");function i(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Object(r["a"])(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(c)throw a}}}}},b917:function(e,t,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=r+"+/",o=r+"-_",a=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};e.exports={i2c:i,c2i:a(i),i2cUrl:o,c2iUrl:a(o)}},b980:function(e,t,n){"use strict";var r=n("d039"),i=n("5c6c");e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},b9c7:function(e,t,n){n("e507"),e.exports=n("5524").Object.assign},ba01:function(e,t,n){e.exports=n("051b")},bb1d:function(e,t,n){"use strict";var r=n("af7e"),i=n("170a"),o=n("8952"),a={};n("1690")(a,n("b3ad")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},bc3a:function(e,t,n){e.exports=n("cee4")},bcbf:function(e,t,n){"use strict";var r=n("f5df");e.exports=function(e){var t=r(e);return"BigInt64Array"===t||"BigUint64Array"===t}},bd11:function(e,t){e.exports=m,e.exports.parse=o,e.exports.compile=a,e.exports.tokensToFunction=s,e.exports.tokensToRegExp=h;var n="/",r="./",i=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function o(e,t){var o,a=[],s=0,u=0,d="",f=t&&t.delimiter||n,p=t&&t.delimiters||r,h=!1;while(null!==(o=i.exec(e))){var m=o[0],g=o[1],v=o.index;if(d+=e.slice(u,v),u=v+m.length,g)d+=g[1],h=!0;else{var b="",_=e[u],y=o[2],w=o[3],x=o[4],k=o[5];if(!h&&d.length){var C=d.length-1;p.indexOf(d[C])>-1&&(b=d[C],d=d.slice(0,C))}d&&(a.push(d),d="",h=!1);var A=""!==b&&void 0!==_&&_!==b,S="+"===k||"*"===k,E="?"===k||"*"===k,T=b||f,O=w||x;a.push({name:y||s++,prefix:b,delimiter:T,optional:E,repeat:S,partial:A,pattern:O?l(O):"[^"+c(T)+"]+?"})}}return(d||u<e.length)&&a.push(d+e.substr(u)),a}function a(e,t){return s(o(e,t))}function s(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"===typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,r){for(var i="",o=r&&r.encode||encodeURIComponent,a=0;a<e.length;a++){var s=e[a];if("string"!==typeof s){var c,l=n?n[s.name]:void 0;if(Array.isArray(l)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but got array');if(0===l.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var u=0;u<l.length;u++){if(c=o(l[u],s),!t[a].test(c))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'"');i+=(0===u?s.prefix:s.delimiter)+c}}else if("string"!==typeof l&&"number"!==typeof l&&"boolean"!==typeof l){if(!s.optional)throw new TypeError('Expected "'+s.name+'" to be '+(s.repeat?"an array":"a string"));s.partial&&(i+=s.prefix)}else{if(c=o(String(l),s),!t[a].test(c))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but got "'+c+'"');i+=s.prefix+c}}else i+=s}return i}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$/()])/g,"\\$1")}function u(e){return e&&e.sensitive?"":"i"}function d(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return e}function f(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(m(e[i],t,n).source);return new RegExp("(?:"+r.join("|")+")",u(n))}function p(e,t,n){return h(o(e,n),t,n)}function h(e,t,i){i=i||{};for(var o=i.strict,a=!1!==i.start,s=!1!==i.end,l=c(i.delimiter||n),d=i.delimiters||r,f=[].concat(i.endsWith||[]).map(c).concat("$").join("|"),p=a?"^":"",h=0===e.length,m=0;m<e.length;m++){var g=e[m];if("string"===typeof g)p+=c(g),h=m===e.length-1&&d.indexOf(g[g.length-1])>-1;else{var v=g.repeat?"(?:"+g.pattern+")(?:"+c(g.delimiter)+"(?:"+g.pattern+"))*":g.pattern;t&&t.push(g),g.optional?g.partial?p+=c(g.prefix)+"("+v+")?":p+="(?:"+c(g.prefix)+"("+v+"))?":p+=c(g.prefix)+"("+v+")"}}return s?(o||(p+="(?:"+l+")?"),p+="$"===f?"$":"(?="+f+")"):(o||(p+="(?:"+l+"(?="+f+"))?"),h||(p+="(?="+l+"|"+f+")")),new RegExp(p,u(i))}function m(e,t,n){return e instanceof RegExp?d(e,t):Array.isArray(e)?f(e,t,n):p(e,t,n)}},be7f:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.util.VK"),n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},i=function(e){return function(t){return typeof t===e}},o=function(e){return function(t){return e===t}},a=r("string"),s=r("array"),c=o(null),l=i("boolean"),u=i("function"),d=function(){},f=function(e){return function(){return e}},p=function(e){return e},h=function(e,t){return e===t},m=f(!1),g=f(!0),v=function(){return b},b=function(){var e=function(e){return e()},t=p,n={fold:function(e,t){return e()},isSome:m,isNone:g,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:t,orThunk:e,map:v,each:d,bind:v,exists:m,forall:g,filter:function(){return v()},toArray:function(){return[]},toString:f("none()")};return n}(),_=function(e){var t=f(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:g,isNone:m,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return _(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:b},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},y=function(e){return null===e||void 0===e?b:_(e)},w={some:_,none:v,from:y},x=Array.prototype.indexOf,k=Array.prototype.push,C=function(e,t){return x.call(e,t)},A=function(e,t){return C(e,t)>-1},S=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},E=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},T=function(e,t,n){return E(e,(function(e,r){n=t(n,e,r)})),n},O=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);k.apply(t,e[n])}return t},R=function(e,t){return O(S(e,t))},D=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return w.none()},L=function(e,t,n){return void 0===n&&(n=h),e.exists((function(e){return n(e,t)}))},M=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},F=function(e,t){return e?w.some(t):w.none()},N=function(e){var t=e.getParam("link_assume_external_targets",!1);return l(t)&&t?1:!a(t)||"http"!==t&&"https"!==t?0:t},B=function(e){return e.getParam("link_context_toolbar",!1,"boolean")},I=function(e){return e.getParam("link_list")},P=function(e){return e.getParam("default_link_target")},$=function(e){return e.getParam("target_list",!0)},j=function(e){return e.getParam("rel_list",[],"array")},z=function(e){return e.getParam("link_class_list",[],"array")},q=function(e){return e.getParam("link_title",!0,"boolean")},H=function(e){return e.getParam("allow_unsafe_link_target",!1,"boolean")},U=function(e){return e.getParam("link_quicklink",!1,"boolean")},W=function(e){return e.getParam("link_default_protocol","http","string")},V=tinymce.util.Tools.resolve("tinymce.util.Tools"),G=function(e){return a(e.value)?e.value:""},K=function(e){return a(e.text)?e.text:a(e.title)?e.title:""},Y=function(e,t){var n=[];return V.each(e,(function(e){var r=K(e);if(void 0!==e.menu){var i=Y(e.menu,t);n.push({text:r,items:i})}else{var o=t(e);n.push({text:r,value:o})}})),n},X=function(e){return void 0===e&&(e=G),function(t){return w.from(t).map((function(t){return Y(t,e)}))}},Q=function(e){return X(G)(e)},J=function(e,t){return function(n){return{name:e,type:"listbox",label:t,items:n}}},Z={sanitize:Q,sanitizeWith:X,createUi:J,getValue:G},ee=function(){return ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ee.apply(this,arguments)},te=Object.keys,ne=Object.hasOwnProperty,re=function(e,t){for(var n=te(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},ie=function(e){return function(t,n){e[n]=t}},oe=function(e,t,n,r){var i={};return re(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},ae=function(e,t){var n={};return oe(e,t,ie(n),d),n},se=function(e,t){return ne.call(e,t)},ce=function(e,t){return se(e,t)&&void 0!==e[t]&&null!==e[t]},le=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),ue=tinymce.util.Tools.resolve("tinymce.util.URI"),de=function(e){return e&&"a"===e.nodeName.toLowerCase()},fe=function(e){return de(e)&&!!me(e)},pe=function(e,t){if(e.collapsed)return[];var n=e.cloneContents(),r=new le(n.firstChild,n),i=[],o=n.firstChild;do{t(o)&&i.push(o)}while(o=r.next());return i},he=function(e){return/^\w+:/i.test(e)},me=function(e){var t=e.getAttribute("data-mce-href");return t||e.getAttribute("href")},ge=function(e,t){var n=["noopener"],r=e?e.split(/\s+/):[],i=function(e){return V.trim(e.sort().join(" "))},o=function(e){return e=a(e),e.length>0?e.concat(n):n},a=function(e){return e.filter((function(e){return-1===V.inArray(n,e)}))},s=t?o(r):a(r);return s.length>0?i(s):""},ve=function(e){return e.replace(/\uFEFF/g,"")},be=function(e,t){return t=t||e.selection.getNode(),ke(t)?e.dom.select("a[href]",t)[0]:e.dom.getParent(t,"a[href]")},_e=function(e,t){var n=t?t.innerText||t.textContent:e.getContent({format:"text"});return ve(n)},ye=function(e){return V.grep(e,fe).length>0},we=function(e){return pe(e,fe).length>0},xe=function(e){var t=e.schema.getTextInlineElements(),n=function(e){return 1===e.nodeType&&!de(e)&&!se(t,e.nodeName.toLowerCase())},r=pe(e.selection.getRng(),n);return 0===r.length},ke=function(e){return e&&"FIGURE"===e.nodeName&&/\bimage\b/i.test(e.className)},Ce=function(e){var t=["title","rel","class","target"];return T(t,(function(t,n){return e[n].each((function(e){t[n]=e.length>0?e:null})),t}),{href:e.href})},Ae=function(e,t){return"http"!==t&&"https"!==t||he(e)?e:t+"://"+e},Se=function(e,t){var n=ee({},t);if(!(j(e).length>0)&&!1===H(e)){var r=ge(n.rel,"_blank"===n.target);n.rel=r||null}return w.from(n.target).isNone()&&!1===$(e)&&(n.target=P(e)),n.href=Ae(n.href,N(e)),n},Ee=function(e,t,n,r){n.each((function(e){se(t,"innerText")?t.innerText=e:t.textContent=e})),e.dom.setAttribs(t,r),e.selection.select(t)},Te=function(e,t,n,r){ke(t)?Ie(e,t,r):n.fold((function(){e.execCommand("mceInsertLink",!1,r)}),(function(t){e.insertContent(e.dom.createHTML("a",r,e.dom.encode(t)))}))},Oe=function(e,t,n){var r=e.selection.getNode(),i=be(e,r),o=Se(e,Ce(n));e.undoManager.transact((function(){n.href===t.href&&t.attach(),i?(e.focus(),Ee(e,i,n.text,o)):Te(e,r,n.text,o)}))},Re=function(e){var t=e.dom,n=e.selection,r=n.getBookmark(),i=n.getRng().cloneRange(),o=t.getParent(i.startContainer,"a[href]",e.getBody()),a=t.getParent(i.endContainer,"a[href]",e.getBody());o&&i.setStartBefore(o),a&&i.setEndAfter(a),n.setRng(i),e.execCommand("unlink"),n.moveToBookmark(r)},De=function(e){e.undoManager.transact((function(){var t=e.selection.getNode();ke(t)?Be(e,t):Re(e),e.focus()}))},Le=function(e){var t=e.class,n=e.href,r=e.rel,i=e.target,o=e.text,a=e.title;return ae({class:t.getOrNull(),href:n,rel:r.getOrNull(),target:i.getOrNull(),text:o.getOrNull(),title:a.getOrNull()},(function(e,t){return!1===c(e)}))},Me=function(e,t){var n=t.href;return ee(ee({},t),{href:ue.isDomSafe(n,"a",e.settings)?n:""})},Fe=function(e,t,n){var r=Me(e,n);e.hasPlugin("rtc",!0)?e.execCommand("createlink",!1,Le(r)):Oe(e,t,r)},Ne=function(e){e.hasPlugin("rtc",!0)?e.execCommand("unlink"):De(e)},Be=function(e,t){var n=e.dom.select("img",t)[0];if(n){var r=e.dom.getParents(n,"a[href]",t)[0];r&&(r.parentNode.insertBefore(n,r),e.dom.remove(r))}},Ie=function(e,t,n){var r=e.dom.select("img",t)[0];if(r){var i=e.dom.create("a",n);r.parentNode.insertBefore(i,r),i.appendChild(r)}},Pe=function(e){return ce(e,"items")},$e=function(e,t){return D(t,(function(t){return Pe(t)?$e(e,t.items):F(t.value===e,t)}))},je=function(e,t,n,r){var i=r[t],o=e.length>0;return void 0!==i?$e(i,n).map((function(t){return{url:{value:t.value,meta:{text:o?e:t.text,attach:d}},text:o?e:t.text}})):w.none()},ze=function(e,t){return"link"===t?e.link:"anchor"===t?e.anchor:w.none()},qe=function(e,t){var n={text:e.text,title:e.title},r=function(e){return F(n.title.length<=0,w.from(e.meta.title).getOr(""))},i=function(e){return F(n.text.length<=0,w.from(e.meta.text).getOr(e.value))},o=function(e){var t=i(e.url),n=r(e.url);return t.isSome()||n.isSome()?w.some(ee(ee({},t.map((function(e){return{text:e}})).getOr({})),n.map((function(e){return{title:e}})).getOr({}))):w.none()},a=function(e,r){var i=ze(t,r.name).getOr([]);return je(n.text,r.name,i,e)},s=function(e,t){var r=t.name;return"url"===r?o(e()):A(["anchor","link"],r)?a(e(),t):"text"===r||"title"===r?(n[r]=e()[r],w.none()):w.none()};return{onChange:s}},He={init:qe,getDelta:je},Ue=tinymce.util.Tools.resolve("tinymce.util.Delay"),We=tinymce.util.Tools.resolve("tinymce.util.Promise"),Ve=function(e,t,n){var r=e.selection.getRng();Ue.setEditorTimeout(e,(function(){e.windowManager.confirm(t,(function(t){e.selection.setRng(r),n(t)}))}))},Ge=function(e){var t=e.href,n=t.indexOf("@")>0&&-1===t.indexOf("/")&&-1===t.indexOf("mailto:");return n?w.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(e){return ee(ee({},e),{href:"mailto:"+t})}}):w.none()},Ke=function(e,t){return function(n){var r=n.href,i=1===e&&!he(r)||0===e&&/^\s*www(\.|\d\.)/i.test(r);return i?w.some({message:"The URL you entered seems to be an external link. Do you want to add the required "+t+":// prefix?",preprocess:function(e){return ee(ee({},e),{href:t+"://"+r})}}):w.none()}},Ye=function(e,t){return D([Ge,Ke(N(e),W(e))],(function(e){return e(t)})).fold((function(){return We.resolve(t)}),(function(n){return new We((function(r){Ve(e,n.message,(function(e){r(e?n.preprocess(t):t)}))}))}))},Xe={preprocess:Ye},Qe=function(e){var t=e.dom.select("a:not([href])"),n=R(t,(function(e){var t=e.name||e.id;return t?[{text:t,value:"#"+t}]:[]}));return n.length>0?w.some([{text:"None",value:""}].concat(n)):w.none()},Je={getAnchors:Qe},Ze=function(e){var t=z(e);return t.length>0?Z.sanitize(t):w.none()},et={getClasses:Ze},tt=tinymce.util.Tools.resolve("tinymce.util.XHR"),nt=function(e){try{return w.some(JSON.parse(e))}catch(t){return w.none()}},rt=function(e){var t=function(t){return e.convertURL(t.value||t.url,"href")},n=I(e);return new We((function(e){a(n)?tt.send({url:n,success:function(t){return e(nt(t))},error:function(t){return e(w.none())}}):u(n)?n((function(t){return e(w.some(t))})):e(w.from(n))})).then((function(e){return e.bind(Z.sanitizeWith(t)).map((function(e){if(e.length>0){var t=[{text:"None",value:""}];return t.concat(e)}return e}))}))},it={getLinks:rt},ot=function(e,t){var n=j(e);if(n.length>0){var r=L(t,"_blank"),i=!1===H(e),o=function(e){return ge(Z.getValue(e),r)},a=i?Z.sanitizeWith(o):Z.sanitize;return a(n)}return w.none()},at={getRels:ot},st=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],ct=function(e){var t=$(e);return s(t)?Z.sanitize(t).orThunk((function(){return w.some(st)})):!1===t?w.none():w.some(st)},lt={getTargets:ct},ut=function(e,t,n){var r=e.getAttrib(t,n);return null!==r&&r.length>0?w.some(r):w.none()},dt=function(e,t){var n=e.dom,r=xe(e),i=r?w.some(_e(e.selection,t)):w.none(),o=t?w.some(n.getAttrib(t,"href")):w.none(),a=t?w.from(n.getAttrib(t,"target")):w.none(),s=ut(n,t,"rel"),c=ut(n,t,"class"),l=ut(n,t,"title");return{url:o,text:i,title:l,target:a,rel:s,linkClass:c}},ft=function(e,t){return it.getLinks(e).then((function(n){var r=dt(e,t);return{anchor:r,catalogs:{targets:lt.getTargets(e),rels:at.getRels(e,r.target),classes:et.getClasses(e),anchor:Je.getAnchors(e),link:n},optNode:w.from(t),flags:{titleEnabled:q(e)}}}))},pt={collect:ft},ht=function(e,t){return function(n){var r=n.getData();if(!r.url.value)return Ne(e),void n.close();var i=function(e){return w.from(r[e]).filter((function(n){return!L(t.anchor[e],n)}))},o={href:r.url.value,text:i("text"),target:i("target"),rel:i("rel"),class:i("linkClass"),title:i("title")},a={href:r.url.value,attach:void 0!==r.url.meta&&r.url.meta.attach?r.url.meta.attach:d};Xe.preprocess(e,o).then((function(t){Fe(e,a,t)})),n.close()}},mt=function(e){var t=be(e);return pt.collect(e,t)},gt=function(e,t){var n=e.anchor,r=n.url.getOr("");return{url:{value:r,meta:{original:{value:r}}},text:n.text.getOr(""),title:n.title.getOr(""),anchor:r,link:r,rel:n.rel.getOr(""),target:n.target.or(t).getOr(""),linkClass:n.linkClass.getOr("")}},vt=function(e,t,n){var r=[{name:"url",type:"urlinput",filetype:"file",label:"URL"}],i=e.anchor.text.map((function(){return{name:"text",type:"input",label:"Text to display"}})).toArray(),o=e.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],a=w.from(P(n)),s=gt(e,a),c=e.catalogs,l=He.init(s,c),u={type:"panel",items:O([r,i,o,M([c.anchor.map(Z.createUi("anchor","Anchors")),c.rels.map(Z.createUi("rel","Rel")),c.targets.map(Z.createUi("target","Open link in...")),c.link.map(Z.createUi("link","Link list")),c.classes.map(Z.createUi("linkClass","Class"))])])};return{title:"Insert/Edit Link",size:"normal",body:u,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:s,onChange:function(e,t){var n=t.name;l.onChange(e.getData,{name:n}).each((function(t){e.setData(t)}))},onSubmit:t}},bt=function(e){var t=mt(e);t.then((function(t){var n=ht(e,t);return vt(t,n,e)})).then((function(t){e.windowManager.open(t)}))},_t=function(e,t){document.body.appendChild(e),e.dispatchEvent(t),document.body.removeChild(e)},yt=function(e){var t=document.createElement("a");t.target="_blank",t.href=e,t.rel="noreferrer noopener";var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),_t(t,n)},wt=function(e,t){return e.dom.getParent(t,"a[href]")},xt=function(e){return wt(e,e.selection.getStart())},kt=function(e){return!0===e.altKey&&!1===e.shiftKey&&!1===e.ctrlKey&&!1===e.metaKey},Ct=function(e,t){if(t){var n=me(t);if(/^#/.test(n)){var r=e.$(n);r.length&&e.selection.scrollIntoView(r[0],!0)}else yt(t.href)}},At=function(e){return function(){bt(e)}},St=function(e){return function(){Ct(e,xt(e))}},Et=function(e){e.on("click",(function(n){var r=wt(e,n.target);r&&t.metaKeyPressed(n)&&(n.preventDefault(),Ct(e,r))})),e.on("keydown",(function(t){var n=xt(e);n&&13===t.keyCode&&kt(t)&&(t.preventDefault(),Ct(e,n))}))},Tt=function(e,t){return e.on("NodeChange",t),function(){return e.off("NodeChange",t)}},Ot=function(e){return function(t){var n=function(){return t.setActive(!e.mode.isReadOnly()&&null!==be(e,e.selection.getNode()))};return n(),Tt(e,n)}},Rt=function(e){return function(t){var n=function(){return t.setDisabled(null===be(e,e.selection.getNode()))};return n(),Tt(e,n)}},Dt=function(e){return function(t){var n=function(t){return ye(t)||we(e.selection.getRng())},r=e.dom.getParents(e.selection.getStart());return t.setDisabled(!n(r)),Tt(e,(function(e){return t.setDisabled(!n(e.parents))}))}},Lt=function(e){e.addCommand("mceLink",(function(){U(e)?e.fire("contexttoolbar-show",{toolbarKey:"quicklink"}):At(e)()}))},Mt=function(e){e.addShortcut("Meta+K","",(function(){e.execCommand("mceLink")}))},Ft=function(e){e.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:At(e),onSetup:Ot(e)}),e.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:St(e),onSetup:Rt(e)}),e.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:function(){return Ne(e)},onSetup:Dt(e)})},Nt=function(e){e.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:St(e),onSetup:Rt(e)}),e.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:At(e)}),e.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:function(){return Ne(e)},onSetup:Dt(e)})},Bt=function(e){var t="link unlink openlink",n="link";e.ui.registry.addContextMenu("link",{update:function(r){return ye(e.dom.getParents(r,"a"))?t:n}})},It=function(e){var t=function(e){e.selection.collapse(!1)},n=function(t){var n=e.selection.getNode();return t.setDisabled(!be(e,n)),d},r=function(t){var n=be(e),r=xe(e);if(!n&&r){var i=_e(e.selection,n);return w.some(i.length>0?i:t)}return w.none()};e.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:Ot(e)},label:"Link",predicate:function(t){return!!be(e,t)&&B(e)},initValue:function(){var t=be(e);return t?me(t):""},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:function(t){var n=e.selection.getNode();return t.setActive(!!be(e,n)),Ot(e)(t)},onAction:function(n){var i=n.getValue(),o=r(i),a={href:i,attach:d};Fe(e,a,{href:i,text:o,title:w.none(),rel:w.none(),target:w.none(),class:w.none()}),t(e),n.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:n,onAction:function(t){Ne(e),t.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:n,onAction:function(t){St(e)(),t.hide()}}]})};function Pt(){e.add("link",(function(e){Ft(e),Nt(e),Bt(e),It(e),Et(e),Lt(e),Mt(e)}))}Pt()})()},be8e:function(e,t,n){"use strict";var r=n("fc1b"),i=1.1920928955078125e-7,o=34028234663852886e22,a=11754943508222875e-54;e.exports=Math.fround||function(e){return r(e,i,o,a)}},be9d:function(e,t,n){ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},o.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}]}};r.inherits(o,i),o.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},o.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},o.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.DocCommentHighlightRules=o})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/doc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./doc_comment_highlight_rules").DocCommentHighlightRules,o=e("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",s=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",r="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[i.getStartRule("doc-start"),l("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+a+")(\\.)(prototype)(\\.)("+a+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function)(\\s+)("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:"+n+")\\b",next:"start"},{token:["support.constant"],regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[i.getStartRule("doc-start"),l("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],function_arguments:[{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:"[, ]+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:r},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:r},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]}),e&&0==e.jsx||c.call(this)),this.embedRules(i,"doc-",[i.getEndRule("no_regex")]),this.normalizeRules()};function c(){var e=a.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var r="/"==e.charAt(1)?2:1;return 1==r?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==r&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==r?"":"end-")+"tag-open.xml",value:e.slice(0,r)},{type:"meta.tag.tag-name.xml",value:e.substr(r)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,l("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function l(e){return[{token:"comment",regex:/\/\*/,next:[i.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[i.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.inherits(s,o),t.JavaScriptHighlightRules=s})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var o=i[1].length,a=e.findMatchingBracket({row:t,column:o});if(!a||a.row==t)return 0;var s=this.$getIndent(e.getLine(a.row));e.replace(new r(t,0,t,o-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,a);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}if("markbegin"!==t){o=i.match(this.foldingStopMarker);if(o){a=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,a):e.getCommentFoldRange(n,a,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length;t+=1;var s=t,c=e.getLength();while(++t<c){n=e.getLine(t);var l=n.search(/\S/);if(-1!==l){if(r>l)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==l)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,c=1;while(++n<o){t=e.getLine(n);var l=s.exec(t);if(l&&(l[1]?c--:c++,!c))break}var u=n;if(u>a)return new i(a,r,u,t.length)}}.call(a.prototype)})),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(e,t,r){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,a=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,c=e("../worker/worker_client").WorkerClient,l=e("./behaviour/cstyle").CstyleBehaviour,u=e("./folding/cstyle").FoldMode,d=function(){this.HighlightRules=a,this.$outdent=new s,this.$behaviour=new l,this.foldingRules=new u};i.inherits(d,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e),o=i.tokens,a=i.state;if(o.length&&"comment"==o[o.length-1].type)return r;if("start"==e||"no_regex"==e){var s=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);s&&(r+=n)}else if("doc-start"==e){if("start"==a||"no_regex"==a)return"";s=t.match(/^\s*(\/?)\*/);s&&(s[1]&&(r+=" "),r+="* ")}return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new c(["ace"],n("6d68"),"JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/javascript"}.call(d.prototype),t.Mode=d})),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),o=t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|min-height|min-width|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",a=t.supportFunction="rgb|rgba|url|attr|counter|counters",s=t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero",c=t.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",l=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",u=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",d=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",f=t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|acequired|root|target|valid|visited)\\b",p=function(){var e=this.createKeywordMapper({"support.function":a,"support.constant":s,"support.type":o,"support.constant.color":c,"support.constant.fonts":l},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:u},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+u+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vm|vw|%)"},{token:"constant.numeric",regex:u},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:d},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:f},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};r.inherits(p,i),t.CssHighlightRules=p})),ace.define("ace/mode/css_completions",["require","exports","module"],(function(e,t,n){"use strict";var r={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},i=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"===typeof e[t]){var n=t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));r.hasOwnProperty(n)||(r[n]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,r){this.completionsDefined||this.defineCompletions();var i=t.getTokenAt(n.row,n.column);if(!i)return[];if("ruleset"===e){var o=t.getLine(n.row).substr(0,n.column);return/:[^;]+$/.test(o)?(/([\w\-]+):[^:]*$/.test(o),this.getPropertyValueCompletions(e,t,n,r)):this.getPropertyCompletions(e,t,n,r)}return[]},this.getPropertyCompletions=function(e,t,n,i){var o=Object.keys(r);return o.map((function(e){return{caption:e,snippet:e+": $0;",meta:"property",score:Number.MAX_VALUE}}))},this.getPropertyValueCompletions=function(e,t,n,i){var o=t.getLine(n.row).substr(0,n.column),a=(/([\w\-]+):[^:]*$/.exec(o)||{})[1];if(!a)return[];var s=[];return a in r&&"object"===typeof r[a]&&(s=Object.keys(r[a])),s.map((function(e){return{caption:e,snippet:e,meta:"property value",score:Number.MAX_VALUE}}))}}).call(i.prototype),t.CssCompletions=i})),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),o=e("../../token_iterator").TokenIterator,a=function(){this.inherit(i),this.add("colon","insertion",(function(e,t,n,r,i){if(":"===i){var a=n.getCursorPosition(),s=new o(r,a.row,a.column),c=s.getCurrentToken();if(c&&c.value.match(/\s+/)&&(c=s.stepBackward()),c&&"support.type"===c.type){var l=r.doc.getLine(a.row),u=l.substring(a.column,a.column+1);if(":"===u)return{text:"",selection:[1,1]};if(!l.substring(a.column).match(/^\s*;/))return{text:":;",selection:[1,1]}}}})),this.add("colon","deletion",(function(e,t,n,r,i){var a=r.doc.getTextRange(i);if(!i.isMultiLine()&&":"===a){var s=n.getCursorPosition(),c=new o(r,s.row,s.column),l=c.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=c.stepBackward()),l&&"support.type"===l.type){var u=r.doc.getLine(i.start.row),d=u.substring(i.end.column,i.end.column+1);if(";"===d)return i.end.column++,i}}})),this.add("semicolon","insertion",(function(e,t,n,r,i){if(";"===i){var o=n.getCursorPosition(),a=r.doc.getLine(o.row),s=a.substring(o.column,o.column+1);if(";"===s)return{text:"",selection:[1,1]}}}))};r.inherits(a,i),t.CssBehaviour=a})),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],(function(e,t,r){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,a=e("./css_highlight_rules").CssHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,c=e("../worker/worker_client").WorkerClient,l=e("./css_completions").CssCompletions,u=e("./behaviour/css").CssBehaviour,d=e("./folding/cstyle").FoldMode,f=function(){this.HighlightRules=a,this.$outdent=new s,this.$behaviour=new u,this.$completer=new l,this.foldingRules=new d};i.inherits(f,o),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),i=this.getTokenizer().getLineTokens(t,e).tokens;if(i.length&&"comment"==i[i.length-1].type)return r;var o=t.match(/^.*\{\s*$/);return o&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,r){return this.$completer.getCompletions(e,t,n,r)},this.createWorker=function(e){var t=new c(["ace"],n("e070"),"Worker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/css"}.call(f.prototype),t.Mode=f})),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(e){var t="[_:a-zA-ZÀ-￿][-_:.a-zA-Z0-9À-￿]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+t+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"</"},{token:"text.tag-open.xml",regex:"<"},{include:"reference"},{defaultToken:"text.xml"}],processing_instruction:[{token:"entity.other.attribute-name.decl-attribute-name.xml",regex:t},{token:"keyword.operator.decl-attribute-equals.xml",regex:"="},{include:"whitespace"},{include:"string"},{token:"punctuation.xml-decl.xml",regex:"\\?>",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+t+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"--\x3e",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(</))((?:"+t+":)?"+t+")",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:t},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===o&&this.normalizeRules()};(function(){this.embedTagRules=function(e,t,n){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+n+".tag-name.xml"],regex:"(<)("+n+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:t+"start"}]}),this.$rules[n+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(e,t,n){return n.splice(0),this.token}}],this.embedRules(e,t,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+n+".tag-name.xml"],regex:"(</)("+n+"(?=\\s|>|$))",next:n+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(i.prototype),r.inherits(o,i),t.XmlHighlightRules=o})),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/lang"),o=e("./css_highlight_rules").CssHighlightRules,a=e("./javascript_highlight_rules").JavaScriptHighlightRules,s=e("./xml_highlight_rules").XmlHighlightRules,c=i.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),l=function(){s.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(e,t){var n=c[t];return["meta.tag.punctuation."+("<"==e?"":"end-")+"tag-open.xml","meta.tag"+(n?"."+n:"")+".tag-name.xml"]},regex:"(</?)([-_a-zA-Z0-9:.]+)",next:"tag_stuff"}],tag_stuff:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start"}]}),this.embedTagRules(o,"css-","style"),this.embedTagRules(new a({jsx:!1}).getRules(),"js-","script"),this.constructor===l&&this.normalizeRules()};r.inherits(l,s),t.HtmlHighlightRules=l})),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../behaviour").Behaviour,o=e("../../token_iterator").TokenIterator;e("../../lib/lang");function a(e,t){return e.type.lastIndexOf(t+".xml")>-1}var s=function(){this.add("string_dquotes","insertion",(function(e,t,n,r,i){if('"'==i||"'"==i){var s=i,c=r.doc.getTextRange(n.getSelectionRange());if(""!==c&&"'"!==c&&'"'!=c&&n.getWrapBehavioursEnabled())return{text:s+c+s,selection:!1};var l=n.getCursorPosition(),u=r.doc.getLine(l.row),d=u.substring(l.column,l.column+1),f=new o(r,l.row,l.column),p=f.getCurrentToken();if(d==s&&(a(p,"attribute-value")||a(p,"string")))return{text:"",selection:[1,1]};if(p||(p=f.stepBackward()),!p)return;while(a(p,"tag-whitespace")||a(p,"whitespace"))p=f.stepBackward();var h=!d||d.match(/\s/);if(a(p,"attribute-equals")&&(h||">"==d)||a(p,"decl-attribute-equals")&&(h||"?"==d))return{text:s+s,selection:[1,1]}}})),this.add("string_dquotes","deletion",(function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&('"'==o||"'"==o)){var a=r.doc.getLine(i.start.row),s=a.substring(i.start.column+1,i.start.column+2);if(s==o)return i.end.column++,i}})),this.add("autoclosing","insertion",(function(e,t,n,r,i){if(">"==i){var s=n.getSelectionRange().start,c=new o(r,s.row,s.column),l=c.getCurrentToken()||c.stepBackward();if(!l||!(a(l,"tag-name")||a(l,"tag-whitespace")||a(l,"attribute-name")||a(l,"attribute-equals")||a(l,"attribute-value")))return;if(a(l,"reference.attribute-value"))return;if(a(l,"attribute-value")){var u=l.value.charAt(0);if('"'==u||"'"==u){var d=l.value.charAt(l.value.length-1),f=c.getCurrentTokenColumn()+l.value.length;if(f>s.column||f==s.column&&u!=d)return}}while(!a(l,"tag-name"))if(l=c.stepBackward(),"<"==l.value){l=c.stepForward();break}var p=c.getCurrentTokenRow(),h=c.getCurrentTokenColumn();if(a(c.stepBackward(),"end-tag-open"))return;var m=l.value;if(p==s.row&&(m=m.substring(0,s.column-h)),this.voidElements.hasOwnProperty(m.toLowerCase()))return;return{text:"></"+m+">",selection:[1,1]}}})),this.add("autoindent","insertion",(function(e,t,n,r,i){if("\n"==i){var a=n.getCursorPosition(),s=r.getLine(a.row),c=new o(r,a.row,a.column),l=c.getCurrentToken();if(l&&-1!==l.type.indexOf("tag-close")){if("/>"==l.value)return;while(l&&-1===l.type.indexOf("tag-name"))l=c.stepBackward();if(!l)return;var u=l.value,d=c.getCurrentTokenRow();if(l=c.stepBackward(),!l||-1!==l.type.indexOf("end-tag"))return;if(this.voidElements&&!this.voidElements[u]){var f=r.getTokenAt(a.row,a.column+1),p=(s=r.getLine(d),this.$getIndent(s)),h=p+r.getTabString();return f&&"</"===f.value?{text:"\n"+h+"\n"+p,selection:[1,h.length,1,h.length]}:{text:"\n"+h}}}}}))};r.inherits(s,i),t.XmlBehaviour=s})),ace.define("ace/mode/folding/mixed",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("./fold_mode").FoldMode,o=t.FoldMode=function(e,t){this.defaultMode=e,this.subModes=t};r.inherits(o,i),function(){this.$getMode=function(e){for(var t in"string"!=typeof e&&(e=e[0]),this.subModes)if(0===e.indexOf(t))return this.subModes[t];return null},this.$tryMode=function(e,t,n,r){var i=this.$getMode(e);return i?i.getFoldWidget(t,n,r):""},this.getFoldWidget=function(e,t,n){return this.$tryMode(e.getState(n-1),e,t,n)||this.$tryMode(e.getState(n),e,t,n)||this.defaultMode.getFoldWidget(e,t,n)},this.getFoldWidgetRange=function(e,t,n){var r=this.$getMode(e.getState(n-1));return r&&r.getFoldWidget(e,t,n)||(r=this.$getMode(e.getState(n))),r&&r.getFoldWidget(e,t,n)||(r=this.defaultMode),r.getFoldWidgetRange(e,t,n)}}.call(o.prototype)})),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/range","ace/mode/folding/fold_mode","ace/token_iterator"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=(e("../../lib/lang"),e("../../range").Range),o=e("./fold_mode").FoldMode,a=e("../../token_iterator").TokenIterator,s=t.FoldMode=function(e,t){o.call(this),this.voidElements=e||{},this.optionalEndTags=r.mixin({},this.voidElements),t&&r.mixin(this.optionalEndTags,t)};r.inherits(s,o);var c=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function l(e,t){return e.type.lastIndexOf(t+".xml")>-1}(function(){this.getFoldWidget=function(e,t,n){var r=this._getFirstTagInLine(e,n);return r?r.closing||!r.tagName&&r.selfClosing?"markbeginend"==t?"end":"":!r.tagName||r.selfClosing||this.voidElements.hasOwnProperty(r.tagName.toLowerCase())||this._findEndTagInLine(e,n,r.tagName,r.end.column)?"":"start":this.getCommentFoldWidget(e,n)},this.getCommentFoldWidget=function(e,t){return/comment/.test(e.getState(t))&&/<!-/.test(e.getLine(t))?"start":""},this._getFirstTagInLine=function(e,t){for(var n=e.getTokens(t),r=new c,i=0;i<n.length;i++){var o=n[i];if(l(o,"tag-open")){if(r.end.column=r.start.column+o.value.length,r.closing=l(o,"end-tag-open"),o=n[++i],!o)return null;for(r.tagName=o.value,r.end.column+=o.value.length,i++;i<n.length;i++)if(o=n[i],r.end.column+=o.value.length,l(o,"tag-close")){r.selfClosing="/>"==o.value;break}return r}if(l(o,"tag-close"))return r.selfClosing="/>"==o.value,r;r.start.column+=o.value.length}return null},this._findEndTagInLine=function(e,t,n,r){for(var i=e.getTokens(t),o=0,a=0;a<i.length;a++){var s=i[a];if(o+=s.value.length,!(o<r)&&l(s,"end-tag-open")&&(s=i[a+1],s&&s.value==n))return!0}return!1},this._readTagForward=function(e){var t=e.getCurrentToken();if(!t)return null;var n=new c;do{if(l(t,"tag-open"))n.closing=l(t,"end-tag-open"),n.start.row=e.getCurrentTokenRow(),n.start.column=e.getCurrentTokenColumn();else if(l(t,"tag-name"))n.tagName=t.value;else if(l(t,"tag-close"))return n.selfClosing="/>"==t.value,n.end.row=e.getCurrentTokenRow(),n.end.column=e.getCurrentTokenColumn()+t.value.length,e.stepForward(),n}while(t=e.stepForward());return null},this._readTagBackward=function(e){var t=e.getCurrentToken();if(!t)return null;var n=new c;do{if(l(t,"tag-open"))return n.closing=l(t,"end-tag-open"),n.start.row=e.getCurrentTokenRow(),n.start.column=e.getCurrentTokenColumn(),e.stepBackward(),n;l(t,"tag-name")?n.tagName=t.value:l(t,"tag-close")&&(n.selfClosing="/>"==t.value,n.end.row=e.getCurrentTokenRow(),n.end.column=e.getCurrentTokenColumn()+t.value.length)}while(t=e.stepBackward());return null},this._pop=function(e,t){while(e.length){var n=e[e.length-1];if(t&&n.tagName!=t.tagName){if(this.optionalEndTags.hasOwnProperty(n.tagName)){e.pop();continue}return null}return e.pop()}},this.getFoldWidgetRange=function(e,t,n){var r=this._getFirstTagInLine(e,n);if(!r)return this.getCommentFoldWidget(e,n)&&e.getCommentFoldRange(n,e.getLine(n).length);var o,s=r.closing||r.selfClosing,c=[];if(s){u=new a(e,n,r.end.column);var l={row:n,column:r.start.column};while(o=this._readTagBackward(u)){if(o.selfClosing){if(c.length)continue;return o.start.column+=o.tagName.length+2,o.end.column-=2,i.fromPoints(o.start,o.end)}if(o.closing)c.push(o);else if(this._pop(c,o),0==c.length)return o.start.column+=o.tagName.length+2,o.start.row==o.end.row&&o.start.column<o.end.column&&(o.start.column=o.end.column),i.fromPoints(o.start,l)}}else{var u=new a(e,n,r.start.column),d={row:n,column:r.start.column+r.tagName.length+2};r.start.row==r.end.row&&(d.column=r.end.column);while(o=this._readTagForward(u)){if(o.selfClosing){if(c.length)continue;return o.start.column+=o.tagName.length+2,o.end.column-=2,i.fromPoints(o.start,o.end)}if(o.closing){if(this._pop(c,o),0==c.length)return i.fromPoints(d,o.start)}else c.push(o)}}}}).call(s.prototype)})),ace.define("ace/mode/folding/html",["require","exports","module","ace/lib/oop","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("./mixed").FoldMode,o=e("./xml").FoldMode,a=e("./cstyle").FoldMode,s=t.FoldMode=function(e,t){i.call(this,new o(e,t),{"js-":new a,"css-":new a})};r.inherits(s,i)})),ace.define("ace/mode/html_completions",["require","exports","module","ace/token_iterator"],(function(e,t,n){"use strict";var r=e("../token_iterator").TokenIterator,i=["accesskey","class","contenteditable","contextmenu","dir","draggable","dropzone","hidden","id","inert","itemid","itemprop","itemref","itemscope","itemtype","lang","spellcheck","style","tabindex","title","translate"],o=["onabort","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onpause","onplay","onplaying","onprogress","onratechange","onreset","onscroll","onseeked","onseeking","onselect","onshow","onstalled","onsubmit","onsuspend","ontimeupdate","onvolumechange","onwaiting"],a=i.concat(o),s={html:{manifest:1},head:{},title:{},base:{href:1,target:1},link:{href:1,hreflang:1,rel:{stylesheet:1,icon:1},media:{all:1,screen:1,print:1},type:{"text/css":1,"image/png":1,"image/jpeg":1,"image/gif":1},sizes:1},meta:{"http-equiv":{"content-type":1},name:{description:1,keywords:1},content:{"text/html; charset=UTF-8":1},charset:1},style:{type:1,media:{all:1,screen:1,print:1},scoped:1},script:{charset:1,type:{"text/javascript":1},src:1,defer:1,async:1},noscript:{href:1},body:{onafterprint:1,onbeforeprint:1,onbeforeunload:1,onhashchange:1,onmessage:1,onoffline:1,onpopstate:1,onredo:1,onresize:1,onstorage:1,onundo:1,onunload:1},section:{},nav:{},article:{pubdate:1},aside:{},h1:{},h2:{},h3:{},h4:{},h5:{},h6:{},header:{},footer:{},address:{},main:{},p:{},hr:{},pre:{},blockquote:{cite:1},ol:{start:1,reversed:1},ul:{},li:{value:1},dl:{},dt:{},dd:{},figure:{},figcaption:{},div:{},a:{href:1,target:{_blank:1,top:1},ping:1,rel:{nofollow:1,alternate:1,author:1,bookmark:1,help:1,license:1,next:1,noreferrer:1,prefetch:1,prev:1,search:1,tag:1},media:1,hreflang:1,type:1},em:{},strong:{},small:{},s:{},cite:{},q:{cite:1},dfn:{},abbr:{},data:{},time:{datetime:1},code:{},var:{},samp:{},kbd:{},sub:{},sup:{},i:{},b:{},u:{},mark:{},ruby:{},rt:{},rp:{},bdi:{},bdo:{},span:{},br:{},wbr:{},ins:{cite:1,datetime:1},del:{cite:1,datetime:1},img:{alt:1,src:1,height:1,width:1,usemap:1,ismap:1},iframe:{name:1,src:1,height:1,width:1,sandbox:{"allow-same-origin":1,"allow-top-navigation":1,"allow-forms":1,"allow-scripts":1},seamless:{seamless:1}},embed:{src:1,height:1,width:1,type:1},object:{param:1,data:1,type:1,height:1,width:1,usemap:1,name:1,form:1,classid:1},param:{name:1,value:1},video:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},width:1,height:1,poster:1,muted:{muted:1},preload:{auto:1,metadata:1,none:1}},audio:{src:1,autobuffer:1,autoplay:{autoplay:1},loop:{loop:1},controls:{controls:1},muted:{muted:1},preload:{auto:1,metadata:1,none:1}},source:{src:1,type:1,media:1},track:{kind:1,src:1,srclang:1,label:1,default:1},canvas:{width:1,height:1},map:{name:1},area:{shape:1,coords:1,href:1,hreflang:1,alt:1,target:1,media:1,rel:1,ping:1,type:1},svg:{},math:{},table:{summary:1},caption:{},colgroup:{span:1},col:{span:1},tbody:{},thead:{},tfoot:{},tr:{},td:{headers:1,rowspan:1,colspan:1},th:{headers:1,rowspan:1,colspan:1,scope:1},form:{"accept-charset":1,action:1,autocomplete:1,enctype:{"multipart/form-data":1,"application/x-www-form-urlencoded":1},method:{get:1,post:1},name:1,novalidate:1,target:{_blank:1,top:1}},fieldset:{disabled:1,form:1,name:1},legend:{},label:{form:1,for:1},input:{type:{text:1,password:1,hidden:1,checkbox:1,submit:1,radio:1,file:1,button:1,reset:1,image:31,color:1,date:1,datetime:1,"datetime-local":1,email:1,month:1,number:1,range:1,search:1,tel:1,time:1,url:1,week:1},accept:1,alt:1,autocomplete:{on:1,off:1},autofocus:{autofocus:1},checked:{checked:1},disabled:{disabled:1},form:1,formaction:1,formenctype:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},formmethod:{get:1,post:1},formnovalidate:{formnovalidate:1},formtarget:{_blank:1,_self:1,_parent:1,_top:1},height:1,list:1,max:1,maxlength:1,min:1,multiple:{multiple:1},name:1,pattern:1,placeholder:1,readonly:{readonly:1},acequired:{acequired:1},size:1,src:1,step:1,width:1,files:1,value:1},button:{autofocus:1,disabled:{disabled:1},form:1,formaction:1,formenctype:1,formmethod:1,formnovalidate:1,formtarget:1,name:1,value:1,type:{button:1,submit:1}},select:{autofocus:1,disabled:1,form:1,multiple:{multiple:1},name:1,size:1,readonly:{readonly:1}},datalist:{},optgroup:{disabled:1,label:1},option:{disabled:1,selected:1,label:1,value:1},textarea:{autofocus:{autofocus:1},disabled:{disabled:1},form:1,maxlength:1,name:1,placeholder:1,readonly:{readonly:1},acequired:{acequired:1},rows:1,cols:1,wrap:{on:1,off:1,hard:1,soft:1}},keygen:{autofocus:1,challenge:{challenge:1},disabled:{disabled:1},form:1,keytype:{rsa:1,dsa:1,ec:1},name:1},output:{for:1,form:1,name:1},progress:{value:1,max:1},meter:{value:1,min:1,max:1,low:1,high:1,optimum:1},details:{open:1},summary:{},command:{type:1,label:1,icon:1,disabled:1,checked:1,radiogroup:1,command:1},menu:{type:1,label:1},dialog:{open:1}},c=Object.keys(s);function l(e,t){return e.type.lastIndexOf(t+".xml")>-1}function u(e,t){var n=new r(e,t.row,t.column),i=n.getCurrentToken();while(i&&!l(i,"tag-name"))i=n.stepBackward();if(i)return i.value}function d(e,t){var n=new r(e,t.row,t.column),i=n.getCurrentToken();while(i&&!l(i,"attribute-name"))i=n.stepBackward();if(i)return i.value}var f=function(){};(function(){this.getCompletions=function(e,t,n,r){var i=t.getTokenAt(n.row,n.column);if(!i)return[];if(l(i,"tag-name")||l(i,"tag-open")||l(i,"end-tag-open"))return this.getTagCompletions(e,t,n,r);if(l(i,"tag-whitespace")||l(i,"attribute-name"))return this.getAttributeCompletions(e,t,n,r);if(l(i,"attribute-value"))return this.getAttributeValueCompletions(e,t,n,r);var o=t.getLine(n.row).substr(0,n.column);return/&[a-z]*$/i.test(o)?this.getHTMLEntityCompletions(e,t,n,r):[]},this.getTagCompletions=function(e,t,n,r){return c.map((function(e){return{value:e,meta:"tag",score:Number.MAX_VALUE}}))},this.getAttributeCompletions=function(e,t,n,r){var i=u(t,n);if(!i)return[];var o=a;return i in s&&(o=o.concat(Object.keys(s[i]))),o.map((function(e){return{caption:e,snippet:e+'="$0"',meta:"attribute",score:Number.MAX_VALUE}}))},this.getAttributeValueCompletions=function(e,t,n,r){var i=u(t,n),o=d(t,n);if(!i)return[];var a=[];return i in s&&o in s[i]&&"object"===typeof s[i][o]&&(a=Object.keys(s[i][o])),a.map((function(e){return{caption:e,snippet:e,meta:"attribute value",score:Number.MAX_VALUE}}))},this.getHTMLEntityCompletions=function(e,t,n,r){var i=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return i.map((function(e){return{caption:e,snippet:e,meta:"html entity",score:Number.MAX_VALUE}}))}}).call(f.prototype),t.HtmlCompletions=f})),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],(function(e,t,r){"use strict";var i=e("../lib/oop"),o=e("../lib/lang"),a=e("./text").Mode,s=e("./javascript").Mode,c=e("./css").Mode,l=e("./html_highlight_rules").HtmlHighlightRules,u=e("./behaviour/xml").XmlBehaviour,d=e("./folding/html").FoldMode,f=e("./html_completions").HtmlCompletions,p=e("../worker/worker_client").WorkerClient,h=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],m=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],g=function(e){this.fragmentContext=e&&e.fragmentContext,this.HighlightRules=l,this.$behaviour=new u,this.$completer=new f,this.createModeDelegates({"js-":s,"css-":c}),this.foldingRules=new d(this.voidElements,o.arrayToMap(m))};i.inherits(g,a),function(){this.blockComment={start:"\x3c!--",end:"--\x3e"},this.voidElements=o.arrayToMap(h),this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.getCompletions=function(e,t,n,r){return this.$completer.getCompletions(e,t,n,r)},this.createWorker=function(e){if(this.constructor==g){var t=new p(["ace"],n("d57c"),"Worker");return t.attachToDocument(e.getDocument()),this.fragmentContext&&t.call("setOptions",[{context:this.fragmentContext}]),t.on("error",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t}},this.$id="ace/mode/html"}.call(g.prototype),t.Mode=g}))},c04e:function(e,t,n){"use strict";var r=n("c65b"),i=n("861d"),o=n("d9b5"),a=n("dc4a"),s=n("485a"),c=n("b622"),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,c=a(e,u);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!i(n)||o(n))return n;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},c098:function(e,t,n){e.exports=n("d4af")},c19f:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("621a"),a=n("2626"),s="ArrayBuffer",c=o[s],l=i[s];r({global:!0,constructor:!0,forced:l!==c},{ArrayBuffer:c}),a(s)},c1ac:function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").filter,o=n("1448"),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("filter",(function(e){var t=i(a(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},c345:function(e,t,n){"use strict";var r=n("c532"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},c401:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},c430:function(e,t,n){"use strict";e.exports=!1},c4a9:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=function(){return"undefined"!==typeof window?window:e},i=function(){var e=r();return e&&e.tinymce?e.tinymce:null}}).call(this,n("c8ba"))},c513:function(e,t,n){"use strict";var r=n("23e7"),i=n("1a2d"),o=n("d9b5"),a=n("0d51"),s=n("5692"),c=n("0b43"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!o(e))throw new TypeError(a(e)+" is not a symbol");if(i(l,e))return l[e]}})},c532:function(e,t,n){"use strict";var r=n("1d2b"),i=n("c7ce"),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function s(e){return"[object ArrayBuffer]"===o.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function l(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function u(e){return"string"===typeof e}function d(e){return"number"===typeof e}function f(e){return"undefined"===typeof e}function p(e){return null!==e&&"object"===typeof e}function h(e){return"[object Date]"===o.call(e)}function m(e){return"[object File]"===o.call(e)}function g(e){return"[object Blob]"===o.call(e)}function v(e){return"[object Function]"===o.call(e)}function b(e){return p(e)&&v(e.pipe)}function _(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function y(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function w(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function x(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function k(){var e={};function t(t,n){"object"===typeof e[n]&&"object"===typeof t?e[n]=k(e[n],t):e[n]=t}for(var n=0,r=arguments.length;n<r;n++)x(arguments[n],t);return e}function C(e,t,n){return x(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e}e.exports={isArray:a,isArrayBuffer:s,isBuffer:i,isFormData:c,isArrayBufferView:l,isString:u,isNumber:d,isObject:p,isUndefined:f,isDate:h,isFile:m,isBlob:g,isFunction:v,isStream:b,isURLSearchParams:_,isStandardBrowserEnv:w,forEach:x,merge:k,extend:C,trim:y}},c56e:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c65b:function(e,t,n){"use strict";var r=n("40d5"),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},c6b6:function(e,t,n){"use strict";var r=n("e330"),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},c6cd:function(e,t,n){"use strict";var r=n("da84"),i=n("6374"),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},c6d2:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("c430"),a=n("5e77"),s=n("1626"),c=n("dcc3"),l=n("e163"),u=n("d2bb"),d=n("d44e"),f=n("9112"),p=n("cb2d"),h=n("b622"),m=n("3f8c"),g=n("ae93"),v=a.PROPER,b=a.CONFIGURABLE,_=g.IteratorPrototype,y=g.BUGGY_SAFARI_ITERATORS,w=h("iterator"),x="keys",k="values",C="entries",A=function(){return this};e.exports=function(e,t,n,a,h,g,S){c(n,t,a);var E,T,O,R=function(e){if(e===h&&N)return N;if(!y&&e&&e in M)return M[e];switch(e){case x:return function(){return new n(this,e)};case k:return function(){return new n(this,e)};case C:return function(){return new n(this,e)}}return function(){return new n(this)}},D=t+" Iterator",L=!1,M=e.prototype,F=M[w]||M["@@iterator"]||h&&M[h],N=!y&&F||R(h),B="Array"===t&&M.entries||F;if(B&&(E=l(B.call(new e)),E!==Object.prototype&&E.next&&(o||l(E)===_||(u?u(E,_):s(E[w])||p(E,w,A)),d(E,D,!0,!0),o&&(m[D]=A))),v&&h===k&&F&&F.name!==k&&(!o&&b?f(M,"name",k):(L=!0,N=function(){return i(F,this)})),h)if(T={values:R(k),keys:g?N:R(x),entries:R(C)},S)for(O in T)(y||L||!(O in M))&&p(M,O,T[O]);else r({target:t,proto:!0,forced:y||L},T);return o&&!S||M[w]===N||p(M,w,N,{name:h}),m[t]=N,T}},c734:function(e,t,n){
/*!
* @form-create/component-wangeditor v2.5.15
* (c) 2018-2021 xaboy
* Github https://github.com/xaboy/form-create with @form-create/component-wangeditor
* Released under the MIT License.
*/
!function(t,n){e.exports=n()}(0,(function(){"use strict";var e,t,n=(function(e,t){var n;window,n=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=135)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){e.exports=n(136)},function(e,t,n){n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return o})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return c})),n.d(t,"__metadata",(function(){return l})),n.d(t,"__awaiter",(function(){return u})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return f})),n.d(t,"__exportStar",(function(){return p})),n.d(t,"__values",(function(){return h})),n.d(t,"__read",(function(){return m})),n.d(t,"__spread",(function(){return g})),n.d(t,"__spreadArrays",(function(){return v})),n.d(t,"__spreadArray",(function(){return b})),n.d(t,"__await",(function(){return _})),n.d(t,"__asyncGenerator",(function(){return y})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return x})),n.d(t,"__makeTemplateObject",(function(){return k})),n.d(t,"__importStar",(function(){return A})),n.d(t,"__importDefault",(function(){return S})),n.d(t,"__classPrivateFieldGet",(function(){return E})),n.d(t,"__classPrivateFieldSet",(function(){return T}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var f=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function p(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||f(t,e,n)}function h(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function b(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function _(e){return this instanceof _?(this.v=e,this):new _(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof _?Promise.resolve(n.value.v).then(c,l):u(o[0][2],n)}catch(e){u(o[0][3],e)}var n}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:_(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&f(t,e,n);return C(t,e),t}function S(e){return e&&e.__esModule?e:{default:e}}function E(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function T(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(90)),a=r(n(4)),s=r(n(25)),c=r(n(19)),l=r(n(116)),u=r(n(26)),d=r(n(92)),f=r(n(72)),p=r(n(73)),h=r(n(53));(0,i.default)(t,"__esModule",{value:!0}),t.DomElement=void 0;var m=n(2),g=n(6),v=[];function b(e){var t=[],n=[];return t=(0,o.default)(e)?e:e.split(";"),(0,a.default)(t).call(t,(function(e){var t,r=(0,s.default)(t=e.split(":")).call(t,(function(e){return(0,c.default)(e).call(e)}));2===r.length&&n.push(r[0]+":"+r[1])})),n}var _=function(){function e(t){if(this.elems=[],this.length=this.elems.length,this.dataSource=new l.default,t){if(t instanceof e)return t;var n=[],r=t instanceof Node?t.nodeType:-1;if(this.selector=t,1===r||9===r)n=[t];else if(function(e){return!!e&&(e instanceof HTMLCollection||e instanceof NodeList)}(t))n=g.toArray(t);else if(t instanceof Array)n=t;else if("string"==typeof t){var i,o=(0,c.default)(i=t.replace("/\n/mg","")).call(i);n=0===(0,u.default)(o).call(o,"<")?function(e){var t=document.createElement("div");t.innerHTML=e;var n=t.children;return g.toArray(n)}(o):function(e){var t=document.querySelectorAll(e);return g.toArray(t)}(o)}var a=n.length;if(!a)return this;for(var s=0;s<a;s++)this.elems.push(n[s]);this.length=a}}return(0,i.default)(e.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),e.prototype.forEach=function(e){for(var t=0;t<this.length;t++){var n=this.elems[t];if(!1===e.call(n,n,t))break}return this},e.prototype.clone=function(e){var t;void 0===e&&(e=!1);var n=[];return(0,a.default)(t=this.elems).call(t,(function(t){n.push(t.cloneNode(!!e))})),y(n)},e.prototype.get=function(e){void 0===e&&(e=0);var t=this.length;return e>=t&&(e%=t),y(this.elems[e])},e.prototype.first=function(){return this.get(0)},e.prototype.last=function(){var e=this.length;return this.get(e-1)},e.prototype.on=function(e,t,n){var r;return e?("function"==typeof t&&(n=t,t=""),(0,a.default)(r=this).call(r,(function(r){if(t){var i=function(e){var r=e.target;r.matches(t)&&n.call(r,e)};r.addEventListener(e,i),v.push({elem:r,selector:t,fn:n,agentFn:i})}else r.addEventListener(e,n)}))):this},e.prototype.off=function(e,t,n){var r;return e?("function"==typeof t&&(n=t,t=""),(0,a.default)(r=this).call(r,(function(r){if(t){for(var i=-1,o=0;o<v.length;o++){var a=v[o];if(a.selector===t&&a.fn===n&&a.elem===r){i=o;break}}if(-1!==i){var s=(0,d.default)(v).call(v,i,1)[0].agentFn;r.removeEventListener(e,s)}}else r.removeEventListener(e,n)}))):this},e.prototype.attr=function(e,t){var n;return null==t?this.elems[0].getAttribute(e)||"":(0,a.default)(n=this).call(n,(function(n){n.setAttribute(e,t)}))},e.prototype.removeAttr=function(e){var t;(0,a.default)(t=this).call(t,(function(t){t.removeAttribute(e)}))},e.prototype.addClass=function(e){var t;return e?(0,a.default)(t=this).call(t,(function(t){if(t.className){var n=t.className.split(/\s/);n=(0,f.default)(n).call(n,(function(e){return!!(0,c.default)(e).call(e)})),(0,u.default)(n).call(n,e)<0&&n.push(e),t.className=n.join(" ")}else t.className=e})):this},e.prototype.removeClass=function(e){var t;return e?(0,a.default)(t=this).call(t,(function(t){if(t.className){var n=t.className.split(/\s/);n=(0,f.default)(n).call(n,(function(t){return!(!(t=(0,c.default)(t).call(t))||t===e)})),t.className=n.join(" ")}})):this},e.prototype.hasClass=function(e){if(!e)return!1;var t=this.elems[0];if(!t.className)return!1;var n=t.className.split(/\s/);return(0,p.default)(n).call(n,e)},e.prototype.css=function(e,t){var n,r;return r=""==t?"":e+":"+t+";",(0,a.default)(n=this).call(n,(function(t){var n,i=(0,c.default)(n=t.getAttribute("style")||"").call(n);if(i){var o=b(i);o=(0,s.default)(o).call(o,(function(t){return 0===(0,u.default)(t).call(t,e)?r:t})),""!=r&&(0,u.default)(o).call(o,r)<0&&o.push(r),""==r&&(o=b(o)),t.setAttribute("style",o.join("; "))}else t.setAttribute("style",r)}))},e.prototype.getBoundingClientRect=function(){return this.elems[0].getBoundingClientRect()},e.prototype.show=function(){return this.css("display","block")},e.prototype.hide=function(){return this.css("display","none")},e.prototype.children=function(){var e=this.elems[0];return e?y(e.children):null},e.prototype.childNodes=function(){var e=this.elems[0];return e?y(e.childNodes):null},e.prototype.replaceChildAll=function(e){for(var t=this.getNode(),n=this.elems[0];n.hasChildNodes();)t.firstChild&&n.removeChild(t.firstChild);this.append(e)},e.prototype.append=function(e){var t;return(0,a.default)(t=this).call(t,(function(t){(0,a.default)(e).call(e,(function(e){t.appendChild(e)}))}))},e.prototype.remove=function(){var e;return(0,a.default)(e=this).call(e,(function(e){if(e.remove)e.remove();else{var t=e.parentElement;t&&t.removeChild(e)}}))},e.prototype.isContain=function(e){var t=this.elems[0],n=e.elems[0];return t.contains(n)},e.prototype.getNodeName=function(){return this.elems[0].nodeName},e.prototype.getNode=function(e){return void 0===e&&(e=0),this.elems[e]},e.prototype.find=function(e){return y(this.elems[0].querySelectorAll(e))},e.prototype.text=function(e){var t;return e?(0,a.default)(t=this).call(t,(function(t){t.innerHTML=e})):this.elems[0].innerHTML.replace(/<[^>]+>/g,(function(){return""}))},e.prototype.html=function(e){var t=this.elems[0];return e?(t.innerHTML=e,this):t.innerHTML},e.prototype.val=function(){var e,t=this.elems[0];return(0,c.default)(e=t.value).call(e)},e.prototype.focus=function(){var e;return(0,a.default)(e=this).call(e,(function(e){e.focus()}))},e.prototype.prev=function(){return y(this.elems[0].previousElementSibling)},e.prototype.next=function(){return y(this.elems[0].nextElementSibling)},e.prototype.getNextSibling=function(){return y(this.elems[0].nextSibling)},e.prototype.parent=function(){return y(this.elems[0].parentElement)},e.prototype.parentUntil=function(e,t){var n=t||this.elems[0];if("BODY"===n.nodeName)return null;var r=n.parentElement;return null===r?null:r.matches(e)?y(r):this.parentUntil(e,r)},e.prototype.parentUntilEditor=function(e,t,n){var r=n||this.elems[0];if(y(r).equal(t.$textContainerElem)||y(r).equal(t.$toolbarElem))return null;var i=r.parentElement;return null===i?null:i.matches(e)?y(i):this.parentUntilEditor(e,t,i)},e.prototype.equal=function(t){return t instanceof e?this.elems[0]===t.elems[0]:t instanceof HTMLElement&&this.elems[0]===t},e.prototype.insertBefore=function(e){var t,n=y(e).elems[0];return n?(0,a.default)(t=this).call(t,(function(e){n.parentNode.insertBefore(e,n)})):this},e.prototype.insertAfter=function(e){var t,n=y(e).elems[0],r=n&&n.nextSibling;return n?(0,a.default)(t=this).call(t,(function(e){var t=n.parentNode;r?t.insertBefore(e,r):t.appendChild(e)})):this},e.prototype.data=function(e,t){if(null==t)return this.dataSource.get(e);this.dataSource.set(e,t)},e.prototype.getNodeTop=function(e){if(this.length<1)return this;var t=this.parent();return e.$textElem.equal(this)||e.$textElem.equal(t)?this:(t.prior=this,t.getNodeTop(e))},e.prototype.getOffsetData=function(){var e=this.elems[0];return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight,parent:e.offsetParent}},e.prototype.scrollTop=function(e){this.elems[0].scrollTo({top:e})},e}();function y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new((0,h.default)(_).apply(_,m.__spreadArray([void 0],e)))}t.DomElement=_,t.default=y},function(e,t,n){e.exports=n(180)},function(e,t,n){var r=n(8),i=n(74).f,o=n(101),a=n(12),s=n(47),c=n(17),l=n(16),u=function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,d,f,p,h,m,g,v,b=e.target,_=e.global,y=e.stat,w=e.proto,x=_?r:y?r[b]:(r[b]||{}).prototype,k=_?a:a[b]||(a[b]={}),C=k.prototype;for(f in t)n=!o(_?f:b+(y?".":"#")+f,e.forced)&&x&&l(x,f),h=k[f],n&&(m=e.noTargetGet?(v=i(x,f))&&v.value:x[f]),p=n&&m?m:t[f],n&&typeof h==typeof p||(g=e.bind&&n?s(p,r):e.wrap&&n?u(p):w&&"function"==typeof p?s(Function.call,p):p,(e.sham||p&&p.sham||h&&h.sham)&&c(g,"sham",!0),k[f]=g,w&&(l(a,d=b+"Prototype")||c(a,d,{}),a[d][f]=p,e.real&&C&&!C[f]&&c(C,f,p)))}},function(e,t,n){var r=n(0),i=r(n(94)),o=r(n(1)),a=r(n(257)),s=r(n(43)),c=r(n(54)),l=r(n(90)),u=r(n(25));(0,o.default)(t,"__esModule",{value:!0}),t.hexToRgb=t.getRandomCode=t.toArray=t.deepClone=t.isFunction=t.debounce=t.throttle=t.arrForEach=t.forEach=t.replaceSpecialSymbol=t.replaceHtmlSymbol=t.getRandom=t.UA=void 0;var d=n(2),f=function(){function e(){this._ua=navigator.userAgent;var e=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(e&&"Edge"==e[1]&&(0,a.default)(e[2])<19),this.isFirefox=!(!/Firefox\/\d+/.test(this._ua)||/Seamonkey\/\d+/.test(this._ua))}return e.prototype.isIE=function(){return"ActiveXObject"in window},e.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},e}();t.UA=new f,t.getRandom=function(e){var t;return void 0===e&&(e=""),e+(0,s.default)(t=Math.random().toString()).call(t,2)},t.replaceHtmlSymbol=function(e){return e.replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/(\r\n|\r|\n)/g,"<br/>")},t.replaceSpecialSymbol=function(e){return e.replace(/&lt;/gm,"<").replace(/&gt;/gm,">").replace(/&quot;/gm,'"')},t.forEach=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!1===t(n,e[n]))break},t.arrForEach=function(e,t){var n,r,i=e.length||0;for(n=0;n<i&&(r=e[n],!1!==t.call(e,r,n));n++);},t.throttle=function(e,t){void 0===t&&(t=200);var n=!1;return function(){for(var r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n||(n=!0,(0,c.default)((function(){n=!1,e.call.apply(e,d.__spreadArray([r],i))}),t))}},t.debounce=function(e,t){void 0===t&&(t=200);var n=0;return function(){for(var r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n&&window.clearTimeout(n),n=(0,c.default)((function(){n=0,e.call.apply(e,d.__spreadArray([r],i))}),t)}},t.isFunction=function(e){return"function"==typeof e},t.deepClone=function e(t){if("object"!==(0,i.default)(t)||"function"==typeof t||null===t)return t;var n;for(var r in(0,l.default)(t)&&(n=[]),(0,l.default)(t)||(n={}),t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=e(t[r]));return n},t.toArray=function(e){return(0,s.default)(Array.prototype).call(e)},t.getRandomCode=function(){var e;return(0,s.default)(e=Math.random().toString(36)).call(e,-5)},t.hexToRgb=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(null==t)return null;var n=(0,u.default)(t).call(t,(function(e){return(0,a.default)(e,16)}));return"rgb("+n[1]+", "+n[2]+", "+n[3]+")"}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.EMPTY_P_REGEX=t.EMPTY_P_LAST_REGEX=t.EMPTY_P=t.urlRegex=t.EMPTY_FN=void 0,t.EMPTY_FN=function(){},t.urlRegex=/^(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&amp;:/~+#]*[\w\-@?^=%&amp;/~+#])?/,t.EMPTY_P='<p data-we-empty-p=""><br></p>',t.EMPTY_P_LAST_REGEX=/<p data-we-empty-p=""><br\/?><\/p>$/gim,t.EMPTY_P_REGEX=/<p data-we-empty-p="">/gim},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(139))},function(e,t,n){var r=n(8),i=n(78),o=n(16),a=n(59),s=n(83),c=n(105),l=i("wks"),u=r.Symbol,d=c?u:u&&u.withoutSetter||a;e.exports=function(e){return o(l,e)&&(s||"string"==typeof l[e])||(s&&o(u,e)?l[e]=u[e]:l[e]=d("Symbol."+e)),l[e]}},function(e,t,n){var r=n(12),i=n(16),o=n(95),a=n(18).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports={}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(12);e.exports=function(e){return r[e+"Prototype"]}},function(e,t,n){var r=n(11);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(15),i=n(18),o=n(35);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(15),i=n(100),o=n(24),a=n(57),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=n(192)},function(e,t,n){var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],c=t.base?o[0]+t.base:o[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var d=s(u),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:u,updater:m(f,t),references:1}),r.push(u)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function f(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}var p=null,h=0;function m(e,t){var n,r,i;if(t.singleton){var o=h++;n=p||(p=l(t)),r=f.bind(null,n,o,!1),i=f.bind(null,n,o,!0)}else n=l(t),r=function(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=c(e,t),l=0;l<n.length;l++){var u=s(n[l]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=o}}}},function(e,t,n){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,i,o=e[1]||"",a=e[3];if(!a)return o;if(t&&"function"==typeof btoa){var s=(n=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),c=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(c).concat([s]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=function(e){function t(t,n){return e.call(this,t,n)||this}return r.__extends(t,e),t}(r.__importDefault(n(96)).default);t.default=i},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4)),a=r(n(54));(0,i.default)(t,"__esModule",{value:!0});var s=n(2),c=s.__importDefault(n(3)),l=s.__importDefault(n(96)),u=s.__importDefault(n(128)),d=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;r.title=n.i18next.t("menus.dropListMenu."+r.title);var s,l="zh-CN"===n.config.lang?"":"w-e-drop-list-tl";""!==l&&"list"===r.type&&(0,o.default)(s=r.list).call(s,(function(e){var t=e.$elem,n=c.default(t.children());if(n.length>0){var r=null==n?void 0:n.getNodeName();r&&"I"===r&&t.addClass(l)}}));var d=new u.default(i,r);return i.dropList=d,t.on("click",(function(){var e;null!=n.selection.getRange()&&(t.css("z-index",n.zIndex.get("menu")),(0,o.default)(e=n.txt.eventHooks.dropListMenuHoverEvents).call(e,(function(e){return e()})),d.show())})).on("mouseleave",(function(){t.css("z-index","auto"),d.hideTimeoutId=(0,a.default)((function(){d.hide()}))})),i}return s.__extends(t,e),t}(l.default);t.default=d},function(e,t,n){var r=n(13);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){e.exports=n(188)},function(e,t,n){e.exports=n(201)},function(e,t,n){var r=n(75),i=n(46);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(12),i=n(8),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r=n(47),i=n(75),o=n(36),a=n(38),s=n(89),c=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,u=4==e,d=6==e,f=7==e,p=5==e||d;return function(h,m,g,v){for(var b,_,y=o(h),w=i(y),x=r(m,g,3),k=a(w.length),C=0,A=v||s,S=t?A(h,k):n||f?A(h,0):void 0;k>C;C++)if((p||C in w)&&(_=x(b=w[C],C,y),e))if(t)S[C]=_;else if(_)switch(e){case 3:return!0;case 5:return b;case 6:return C;case 2:c.call(S,b)}else switch(e){case 4:return!1;case 7:c.call(S,b)}return d?-1:l||u?u:S}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterOut:l(7)}},function(e,t,n){e.exports=n(286)},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4)),a=r(n(30)),s=r(n(125));(0,i.default)(t,"__esModule",{value:!0});var c=n(2),l=c.__importDefault(n(3)),u=n(7),d=function(){function e(t,n){this.menu=t,this.conf=n,this.$container=l.default('<div class="w-e-panel-container"></div>');var r=t.editor;r.txt.eventHooks.clickEvents.push(e.hideCurAllPanels),r.txt.eventHooks.toolbarClickEvents.push(e.hideCurAllPanels),r.txt.eventHooks.dropListMenuHoverEvents.push(e.hideCurAllPanels)}return e.prototype.create=function(){var t=this,n=this.menu;if(!e.createdMenus.has(n)){var r=this.conf,i=this.$container,s=r.width||300,d=n.editor.$toolbarElem.getBoundingClientRect(),f=n.$elem.getBoundingClientRect(),p=d.height+d.top-f.top,h=(d.width-s)/2+d.left-f.left;i.css("width",s+"px").css("margin-top",p+"px").css("margin-left",h+"px").css("z-index",n.editor.zIndex.get("panel"));var m=l.default('<i class="w-e-icon-close w-e-panel-close"></i>');i.append(m),m.on("click",(function(){t.remove()}));var g=l.default('<ul class="w-e-panel-tab-title"></ul>'),v=l.default('<div class="w-e-panel-tab-content"></div>');i.append(g).append(v);var b=r.height;b&&v.css("height",b+"px").css("overflow-y","auto");var _=r.tabs||[],y=[],w=[];(0,o.default)(_).call(_,(function(e,t){if(e){var n=e.title||"",r=e.tpl||"",i=l.default('<li class="w-e-item">'+n+"</li>");g.append(i);var a=l.default(r);v.append(a),y.push(i),w.push(a),0===t?(i.data("active",!0),i.addClass("w-e-active")):a.hide(),i.on("click",(function(){i.data("active")||((0,o.default)(y).call(y,(function(e){e.data("active",!1),e.removeClass("w-e-active")})),(0,o.default)(w).call(w,(function(e){e.hide()})),i.data("active",!0),i.addClass("w-e-active"),a.show())}))}})),i.on("click",(function(e){e.stopPropagation()})),n.$elem.append(i),(0,o.default)(_).call(_,(function(e,n){if(e){var r=e.events||[];(0,o.default)(r).call(r,(function(e){var r=e.selector,i=e.type,o=e.fn||u.EMPTY_FN,s=w[n];(0,a.default)(s).call(s,r).on(i,(function(e){return c.__awaiter(t,void 0,void 0,(function(){return c.__generator(this,(function(t){switch(t.label){case 0:return e.stopPropagation(),[4,o(e)];case 1:return t.sent()&&this.remove(),[2]}}))}))}))}))}}));var x=(0,a.default)(i).call(i,"input[type=text],textarea");x.length&&x.get(0).focus(),e.hideCurAllPanels(),n.setPanel(this),e.createdMenus.add(n)}},e.prototype.remove=function(){var t=this.menu,n=this.$container;n&&n.remove(),e.createdMenus.delete(t)},e.hideCurAllPanels=function(){var t;0!==e.createdMenus.size&&(0,o.default)(t=e.createdMenus).call(t,(function(e){var t=e.panel;t&&t.remove()}))},e.createdMenus=new s.default,e}();t.default=d},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=function(e){function t(t,n){return e.call(this,t,n)||this}return r.__extends(t,e),t.prototype.setPanel=function(e){this.panel=e},t}(r.__importDefault(n(96)).default);t.default=i},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4)),a=r(n(53));(0,i.default)(t,"__esModule",{value:!0});var s=n(2).__importDefault(n(3)),c=function(){function e(e,t,n){this.editor=e,this.$targetElem=t,this.conf=n,this._show=!1,this._isInsertTextContainer=!1;var r=s.default("<div></div>");r.addClass("w-e-tooltip"),this.$container=r}return e.prototype.getPositionData=function(){var e=this.$container,t=0,n=0,r=document.documentElement.scrollTop,i=this.$targetElem.getBoundingClientRect(),o=this.editor.$textElem.getBoundingClientRect(),a=this.$targetElem.getOffsetData(),c=s.default(a.parent),l=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=c.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var u=c.getBoundingClientRect().height,d=a.top,f=a.left,p=a.height,h=d-l;h>25?(t=h-20-15,e.addClass("w-e-tooltip-up")):h+p+20<u?(t=h+p+10,e.addClass("w-e-tooltip-down")):(t=(h>0?h:0)+20+10,e.addClass("w-e-tooltip-down")),n=f<0?0:f}else i.top<20||i.top-o.top<20?(t=i.bottom+r+5,e.addClass("w-e-tooltip-down")):(t=i.top+r-20-15,e.addClass("w-e-tooltip-up")),n=i.left<0?0:i.left;return{top:t,left:n}},e.prototype.appendMenus=function(){var e=this,t=this.conf,n=this.editor,r=this.$targetElem,i=this.$container;(0,o.default)(t).call(t,(function(t,o){var a=t.$elem,c=s.default("<div></div>");c.addClass("w-e-tooltip-item-wrapper "),c.append(a),i.append(c),a.on("click",(function(i){i.preventDefault(),t.onClick(n,r)&&e.remove()}))}))},e.prototype.create=function(){var e,t,n=this.editor,r=this.$container;this.appendMenus();var i=this.getPositionData(),o=i.top,c=i.left;r.css("top",o+"px"),r.css("left",c+"px"),r.css("z-index",n.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(r):s.default("body").append(r),this._show=!0,n.beforeDestroy((0,a.default)(e=this.remove).call(e,this)),n.txt.eventHooks.onBlurEvents.push((0,a.default)(t=this.remove).call(t,this))},e.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,i.default)(e.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),e}();t.default=c},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(46);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=!0},function(e,t,n){var r=n(62),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(24),i=n(163),o=n(38),a=n(47),s=n(164),c=n(165),l=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var u,d,f,p,h,m,g,v=n&&n.that,b=!(!n||!n.AS_ENTRIES),_=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),w=a(t,v,1+b+y),x=function(e){return u&&c(u),new l(!0,e)},k=function(e){return b?(r(e),y?w(e[0],e[1],x):w(e[0],e[1])):y?w(e,x):w(e)};if(_)u=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(i(d)){for(f=0,p=o(e.length);p>f;f++)if((h=k(e[f]))&&h instanceof l)return h;return new l(!1)}u=d.call(e)}for(m=u.next;!(g=m.call(u)).done;){try{h=k(g.value)}catch(e){throw c(u),e}if("object"==typeof h&&h&&h instanceof l)return h}return new l(!1)}},function(e,t){e.exports={}},function(e,t,n){var r=n(84),i=n(18).f,o=n(17),a=n(16),s=n(167),c=n(9)("toStringTag");e.exports=function(e,t,n,l){if(e){var u=n?e:e.prototype;a(u,c)||i(u,c,{configurable:!0,value:t}),l&&!r&&o(u,"toString",s)}}},function(e,t,n){var r,i,o,a=n(172),s=n(8),c=n(13),l=n(17),u=n(16),d=n(79),f=n(58),p=n(48),h=s.WeakMap;if(a){var m=d.state||(d.state=new h),g=m.get,v=m.has,b=m.set;r=function(e,t){return t.facade=e,b.call(m,e,t),t},i=function(e){return g.call(m,e)||{}},o=function(e){return v.call(m,e)}}else{var _=f("state");p[_]=!0,r=function(e,t){return t.facade=e,l(e,_,t),t},i=function(e){return u(e,_)?e[_]:{}},o=function(e){return u(e,_)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){e.exports=n(262)},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0}),t.createElementFragment=t.createDocumentFragment=t.createElement=t.insertBefore=t.getEndPoint=t.getStartPoint=t.updateRange=t.filterSelectionNodes=void 0;var a=n(2),s=n(132),c=a.__importDefault(n(3));function l(e){return document.createElement(e)}t.filterSelectionNodes=function(e){var t=[];return(0,o.default)(e).call(e,(function(e){var n=e.getNodeName();if(n!==s.ListType.OrderedList&&n!==s.ListType.UnorderedList)t.push(e);else if(e.prior)t.push(e.prior);else{var r=e.children();null==r||(0,o.default)(r).call(r,(function(e){t.push(c.default(e))}))}})),t},t.updateRange=function(e,t,n){var r=e.selection,i=document.createRange();t.length>1?(i.setStart(t.elems[0],0),i.setEnd(t.elems[t.length-1],t.elems[t.length-1].childNodes.length)):i.selectNodeContents(t.elems[0]),n&&i.collapse(!1),r.saveRange(i),r.restoreSelection()},t.getStartPoint=function(e){var t;return e.prior?e.prior:c.default(null===(t=e.children())||void 0===t?void 0:t.elems[0])},t.getEndPoint=function(e){var t;return e.prior?e.prior:c.default(null===(t=e.children())||void 0===t?void 0:t.last().elems[0])},t.insertBefore=function(e,t,n){void 0===n&&(n=null),e.parent().elems[0].insertBefore(t,n)},t.createElement=l,t.createDocumentFragment=function(){return document.createDocumentFragment()},t.createElementFragment=function(e,t,n){return void 0===n&&(n="li"),(0,o.default)(e).call(e,(function(e){var r=l(n);r.innerHTML=e.html(),t.append(r),e.remove()})),t}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(32);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports={}},function(e,t,n){var r=n(17);e.exports=function(e,t,n,i){i&&i.enumerable?e[t]=n:r(e,t,n)}},function(e,t,n){n(178);var r=n(179),i=n(8),o=n(66),a=n(17),s=n(40),c=n(9)("toStringTag");for(var l in r){var u=i[l],d=u&&u.prototype;d&&o(d)!==c&&a(d,c,l),s[l]=s.Array}},function(e,t,n){var r=n(45);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(11),i=n(9),o=n(64),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){e.exports=n(222)},function(e,t,n){e.exports=n(266)},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListHandle=void 0;var r=n(2).__importDefault(n(370)),i=function(){return function(e){this.options=e,this.selectionRangeElem=new r.default}}();t.ListHandle=i},function(e,t,n){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(13);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(78),i=n(59),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r,i=n(24),o=n(162),a=n(82),s=n(48),c=n(104),l=n(76),u=n(58),d=u("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=r?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=l("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=i(e),n=new f,f.prototype=null,n[d]=e):n=h(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(103),i=n(82);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(45),i=n(8);e.exports="process"==r(i.process)},function(e,t,n){var r,i,o=n(8),a=n(65),s=o.process,c=s&&s.versions,l=c&&c.v8;l?i=(r=l.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},function(e,t,n){var r=n(28);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(84),i=n(45),o=n(9)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t){},function(e,t,n){var r=n(32),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},function(e,t,n){var r=n(176).charAt,i=n(42),o=n(87),a=i.set,s=i.getterFor("String Iterator");o(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=s(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(11);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(e,t,n){e.exports=n(209)},function(e,t,n){e.exports=n(213)},function(e,t,n){var r=n(15),i=n(56),o=n(35),a=n(27),s=n(57),c=n(16),l=n(100),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),l)try{return u(e,t)}catch(e){}if(c(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){var r=n(11),i=n(45),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(8),i=n(13),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(16),i=n(36),o=n(58),a=n(160),s=o("IE_PROTO"),c=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,n){var r=n(37),i=n(79);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.9.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(8),i=n(159),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t,n){var r=n(27),i=n(38),o=n(81),a=function(e){return function(t,n,a){var s,c=r(t),l=i(c.length),u=o(a,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(62),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(63),i=n(64),o=n(11);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!Symbol.sham&&(r?38===i:i>37&&i<41)}))},function(e,t,n){var r={};r[n(9)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){var r=n(5),i=n(177),o=n(77),a=n(102),s=n(41),c=n(17),l=n(49),u=n(9),d=n(37),f=n(40),p=n(114),h=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,g=u("iterator"),v=function(){return this};e.exports=function(e,t,n,u,p,b,_){i(n,t,u);var y,w,x,k=function(e){if(e===p&&T)return T;if(!m&&e in S)return S[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},C=t+" Iterator",A=!1,S=e.prototype,E=S[g]||S["@@iterator"]||p&&S[p],T=!m&&E||k(p),O="Array"==t&&S.entries||E;if(O&&(y=o(O.call(new e)),h!==Object.prototype&&y.next&&(d||o(y)===h||(a?a(y,h):"function"!=typeof y[g]&&c(y,g,v)),s(y,C,!0,!0),d&&(f[C]=v))),"values"==p&&E&&"values"!==E.name&&(A=!0,T=function(){return E.call(this)}),d&&!_||S[g]===T||c(S,g,T),f[t]=T,p)if(w={values:k("values"),keys:b?T:k("keys"),entries:k("entries")},_)for(x in w)!m&&!A&&x in S||l(S,x,w[x]);else r({target:t,proto:!0,forced:m||A},w);return w}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(13),i=n(51),o=n(9)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){e.exports=n(185)},function(e,t,n){var r=n(46),i="["+n(71)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t,n){e.exports=n(205)},function(e,t,n){var r=n(57),i=n(18),o=n(35);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},function(e,t,n){var r=n(227),i=n(254);function o(t){return"function"==typeof r&&"symbol"==typeof i?(e.exports=o=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=o=function(e){return e&&"function"==typeof r&&e.constructor===r&&e!==r.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),o(t)}e.exports=o,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(9);t.f=r},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(31)),s=function(){function e(e,t){var n=this;this.$elem=e,this.editor=t,this._active=!1,e.on("click",(function(e){var r;a.default.hideCurAllPanels(),(0,o.default)(r=t.txt.eventHooks.menuClickEvents).call(r,(function(e){return e()})),e.stopPropagation(),null!=t.selection.getRange()&&n.clickHandler(e)}))}return e.prototype.clickHandler=function(e){},e.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},e.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,i.default)(e.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),e}();t.default=s},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(53)),a=r(n(4)),s=r(n(26));(0,i.default)(t,"__esModule",{value:!0});var c=n(2),l=n(6),u=c.__importDefault(n(130)),d=c.__importDefault(n(131)),f=function(){function e(e){this.editor=e}return e.prototype.insertImg=function(e,t,n){var r=this.editor,i=r.config,o=function(e,t){return void 0===t&&(t="validate."),r.i18next.t(t+e)},a=t?'alt="'+t+'" ':"",s=n?'data-href="'+encodeURIComponent(n)+'" ':"";r.cmd.do("insertHTML",'<img src="'+e+'" '+a+s+'style="max-width:100%;"/>'),i.linkImgCallback(e,t,n);var c=document.createElement("img");c.onload=function(){c=null},c.onerror=function(){i.customAlert(o("插入图片错误"),"error","wangEditor: "+o("插入图片错误")+","+o("图片链接")+' "'+e+'",'+o("下载链接失败")),c=null},c.onabort=function(){return c=null},c.src=e},e.prototype.uploadImg=function(e){var t=this;if(e.length){var n=this.editor,r=n.config,i=function(e){return n.i18next.t("validate."+e)},c=r.uploadImgServer,f=r.uploadImgShowBase64,p=r.uploadImgMaxSize,h=p/1024/1024,m=r.uploadImgMaxLength,g=r.uploadFileName,v=r.uploadImgParams,b=r.uploadImgParamsWithUrl,_=r.uploadImgHeaders,y=r.uploadImgHooks,w=r.uploadImgTimeout,x=r.withCredentials,k=r.customUploadImg;if(k||c||f){var C=[],A=[];if(l.arrForEach(e,(function(e){var t=e.name,r=e.size;if(t&&r){var o=n.config.uploadImgAccept.join("|");!1!==new RegExp(".("+o+")$","i").test(t)?p<r?A.push("【"+t+"】"+i("大于")+" "+h+"M"):C.push(e):A.push("【"+t+"】"+i("不是图片"))}})),A.length)r.customAlert(i("图片验证未通过")+": \n"+A.join("\n"),"warning");else if(0!==C.length)if(C.length>m)r.customAlert(i("一次最多上传")+m+i("张图片"),"warning");else if(k&&"function"==typeof k){var S;k(C,(0,o.default)(S=this.insertImg).call(S,this))}else{var E=new FormData;if((0,a.default)(C).call(C,(function(e,t){var n=g||e.name;C.length>1&&(n+=t+1),E.append(n,e)})),c){var T=c.split("#");c=T[0];var O=T[1]||"";(0,a.default)(l).call(l,v,(function(e,t){b&&((0,s.default)(c).call(c,"?")>0?c+="&":c+="?",c=c+e+"="+t),E.append(e,t)})),O&&(c+="#"+O);var R=u.default(c,{timeout:w,formData:E,headers:_,withCredentials:!!x,beforeSend:function(e){if(y.before)return y.before(e,n,C)},onTimeout:function(e){r.customAlert(i("上传图片超时"),"error"),y.timeout&&y.timeout(e,n)},onProgress:function(e,t){var r=new d.default(n);t.lengthComputable&&(e=t.loaded/t.total,r.show(e))},onError:function(e){r.customAlert(i("上传图片错误"),"error",i("上传图片错误")+","+i("服务器返回状态")+": "+e.status),y.error&&y.error(e,n)},onFail:function(e,t){r.customAlert(i("上传图片失败"),"error",i("上传图片返回结果错误")+","+i("返回结果")+": "+t),y.fail&&y.fail(e,n,t)},onSuccess:function(e,s){if(y.customInsert){var c;y.customInsert((0,o.default)(c=t.insertImg).call(c,t),s,n)}else{if("0"!=s.errno)return r.customAlert(i("上传图片失败"),"error",i("上传图片返回结果错误")+","+i("返回结果")+" errno="+s.errno),void(y.fail&&y.fail(e,n,s));var l=s.data;(0,a.default)(l).call(l,(function(e){"string"==typeof e?t.insertImg(e):t.insertImg(e.url,e.alt,e.href)})),y.success&&y.success(e,n,s)}}});"string"==typeof R&&r.customAlert(R,"error")}else f&&l.arrForEach(e,(function(e){var n=t,r=new FileReader;r.readAsDataURL(e),r.onload=function(){if(this.result){var e=this.result.toString();n.insertImg(e,e)}}}))}else r.customAlert(i("传入的文件不合法"),"warning")}}},e}();t.default=f},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(403)),a=r(n(4)),s=r(n(43));function c(e){return!!e.length&&"w-e-todo"===e.attr("class")}function l(e,t){return 3===e.nodeType?e.nodeValue===t.nodeValue:e.contains(t)}function u(e,t,n){void 0===n&&(n=!0);var r=e.nodeValue,i=null==r?void 0:(0,s.default)(r).call(r,0,t);if(r=null==r?void 0:(0,s.default)(r).call(r,t),!n){var o=r;r=i,i=o}return e.nodeValue=i,r}(0,i.default)(t,"__esModule",{value:!0}),t.dealTextNode=t.isAllTodo=t.isTodo=t.getCursorNextNode=void 0,t.isTodo=c,t.isAllTodo=function(e){var t=e.selection.getSelectionRangeTopNodes();if(0!==t.length)return(0,o.default)(t).call(t,(function(e){return c(e)}))},t.getCursorNextNode=function e(t,n,r){var i;if(t.hasChildNodes()){var o=t.cloneNode(),s=!1;""===n.nodeValue&&(s=!0);var c=[];return(0,a.default)(i=t.childNodes).call(i,(function(t){if(!l(t,n)&&s&&(o.appendChild(t.cloneNode(!0)),"BR"!==t.nodeName&&c.push(t)),l(t,n)){if(1===t.nodeType){var i=e(t,n,r);i&&""!==i.textContent&&(null==o||o.appendChild(i))}if(3===t.nodeType&&n.isEqualNode(t)){var a=u(t,r);o.textContent=a}s=!0}})),(0,a.default)(c).call(c,(function(e){e.remove()})),o}},t.dealTextNode=u},function(e,t,n){var r=n(0)(n(1));(0,r.default)(t,"__esModule",{value:!0});var i=n(423),o=function(){function e(e){this.maxSize=e,this.isRe=!1,this.data=new i.CeilStack(e),this.revokeData=new i.CeilStack(e)}return(0,r.default)(e.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),e.prototype.resetMaxSize=function(e){this.data.resetMax(e),this.revokeData.resetMax(e)},e.prototype.save=function(e){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(e),this},e.prototype.revoke=function(e){!this.isRe&&(this.isRe=!0);var t=this.data.outstack();return!!t&&(this.revokeData.instack(t),e(t),!0)},e.prototype.restore=function(e){!this.isRe&&(this.isRe=!0);var t=this.revokeData.outstack();return!!t&&(this.data.instack(t),e(t),!0)},e}();t.default=o},function(e,t,n){var r=n(15),i=n(11),o=n(76);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(11),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==l||n!=c&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},function(e,t,n){var r=n(24),i=n(161);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t,n){var r=n(16),i=n(27),o=n(80).indexOf,a=n(48);e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)!r(a,n)&&r(s,n)&&l.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){var r=n(28);e.exports=r("document","documentElement")},function(e,t,n){var r=n(83);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(8);e.exports=r.Promise},function(e,t,n){var r=n(49);e.exports=function(e,t,n){for(var i in t)n&&n.unsafe&&e[i]?e[i]=t[i]:r(e,i,t[i],n);return e}},function(e,t,n){var r=n(28),i=n(18),o=n(9),a=n(15),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(79),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(24),i=n(32),o=n(9)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},function(e,t,n){var r,i,o,a=n(8),s=n(11),c=n(47),l=n(104),u=n(76),d=n(112),f=n(63),p=a.location,h=a.setImmediate,m=a.clearImmediate,g=a.process,v=a.MessageChannel,b=a.Dispatch,_=0,y={},w=function(e){if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},x=function(e){return function(){w(e)}},k=function(e){w(e.data)},C=function(e){a.postMessage(e+"",p.protocol+"//"+p.host)};h&&m||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return y[++_]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(_),_},m=function(e){delete y[e]},f?r=function(e){g.nextTick(x(e))}:b&&b.now?r=function(e){b.now(x(e))}:v&&!d?(o=(i=new v).port2,i.port1.onmessage=k,r=c(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&p&&"file:"!==p.protocol&&!s(C)?(r=C,a.addEventListener("message",k,!1)):r="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),w(e)}}:function(e){setTimeout(x(e),0)}),e.exports={set:h,clear:m}},function(e,t,n){var r=n(65);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r=n(24),i=n(13),o=n(68);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var r,i,o,a=n(11),s=n(77),c=n(17),l=n(16),u=n(9),d=n(37),f=u("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(r=i):p=!0);var h=null==r||a((function(){var e={};return r[f].call(e)!==e}));h&&(r={}),d&&!h||l(r,f)||c(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),c=n(6),l=a.__importDefault(n(268)),u=a.__importDefault(n(283)),d=a.__importDefault(n(284)),f=a.__importDefault(n(285)),p=a.__importDefault(n(304)),h=a.__importDefault(n(409)),m=a.__importDefault(n(410)),g=a.__importDefault(n(411)),v=a.__importDefault(n(412)),b=a.__importStar(n(413)),_=a.__importDefault(n(416)),y=a.__importDefault(n(417)),w=a.__importDefault(n(418)),x=a.__importDefault(n(420)),k=a.__importDefault(n(430)),C=a.__importDefault(n(22)),A=a.__importDefault(n(128)),S=a.__importDefault(n(23)),E=a.__importDefault(n(31)),T=a.__importDefault(n(33)),O=a.__importDefault(n(34)),R=1,D=function(){function e(e,t){if(this.beforeDestroyHooks=[],this.id="wangEditor-"+R++,this.toolbarSelector=e,this.textSelector=t,null==e)throw new Error("错误:初始化编辑器时候未传入任何参数,请查阅文档");this.config=c.deepClone(l.default),this.$toolbarElem=s.default("<div></div>"),this.$textContainerElem=s.default("<div></div>"),this.$textElem=s.default("<div></div>"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new u.default(this),this.cmd=new d.default(this),this.txt=new f.default(this),this.menus=new p.default(this),this.zIndex=new y.default,this.change=new w.default(this),this.history=new x.default(this);var n=k.default(this),r=n.disable,i=n.enable;this.disable=r,this.enable=i}return e.prototype.initSelection=function(e){m.default(this,e)},e.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),v.default(this),h.default(this),this.txt.init(),this.menus.init(),b.default(this),this.initSelection(!0),g.default(this),this.change.observe(),this.history.observe()},e.prototype.beforeDestroy=function(e){return this.beforeDestroyHooks.push(e),this},e.prototype.destroy=function(){var e,t=this;(0,o.default)(e=this.beforeDestroyHooks).call(e,(function(e){return e.call(t)})),this.$toolbarElem.remove(),this.$textContainerElem.remove()},e.prototype.fullScreen=function(){b.setFullScreen(this)},e.prototype.unFullScreen=function(){b.setUnFullScreen(this)},e.prototype.scrollToHead=function(e){_.default(this,e)},e.registerMenu=function(t,n){n&&"function"==typeof n&&(e.globalCustomMenuConstructorList[t]=n)},e.$=s.default,e.BtnMenu=C.default,e.DropList=A.default,e.DropListMenu=S.default,e.Panel=E.default,e.PanelMenu=T.default,e.Tooltip=O.default,e.globalCustomMenuConstructorList={},e}();t.default=D},function(e,t,n){e.exports=n(197)},function(e,t,n){var r=n(5),i=n(8),o=n(118),a=n(11),s=n(17),c=n(39),l=n(85),u=n(13),d=n(41),f=n(18).f,p=n(29).forEach,h=n(15),m=n(42),g=m.set,v=m.getterFor;e.exports=function(e,t,n){var m,b=-1!==e.indexOf("Map"),_=-1!==e.indexOf("Weak"),y=b?"set":"add",w=i[e],x=w&&w.prototype,k={};if(h&&"function"==typeof w&&(_||x.forEach&&!a((function(){(new w).entries().next()})))){m=t((function(t,n){g(l(t,m,e),{type:e,collection:new w}),null!=n&&c(n,t[y],{that:t,AS_ENTRIES:b})}));var C=v(e);p(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;e in x&&(!_||"clear"!=e)&&s(m.prototype,e,(function(n,r){var i=C(this).collection;if(!t&&_&&!u(n))return"get"==e&&void 0;var o=i[e](0===n?0:n,r);return t?this:o}))})),_||f(m.prototype,"size",{configurable:!0,get:function(){return C(this).collection.size}})}else m=n.getConstructor(t,e,b,y),o.REQUIRED=!0;return d(m,e,!1,!0),k[e]=m,r({global:!0,forced:!0},k),_||n.setStrong(m,e,b),m}},function(e,t,n){var r=n(48),i=n(13),o=n(16),a=n(18).f,s=n(59),c=n(200),l=s("meta"),u=0,d=Object.isExtensible||function(){return!0},f=function(e){a(e,l,{value:{objectID:"O"+ ++u,weakData:{}}})},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,l)){if(!d(e))return"F";if(!t)return"E";f(e)}return e[l].objectID},getWeakData:function(e,t){if(!o(e,l)){if(!d(e))return!0;if(!t)return!1;f(e)}return e[l].weakData},onFreeze:function(e){return c&&p.REQUIRED&&d(e)&&!o(e,l)&&f(e),e}};r[l]=!0},function(e,t,n){var r=n(18).f,i=n(60),o=n(107),a=n(47),s=n(85),c=n(39),l=n(87),u=n(108),d=n(15),f=n(118).fastKey,p=n(42),h=p.set,m=p.getterFor;e.exports={getConstructor:function(e,t,n,l){var u=e((function(e,r){s(e,u,t),h(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=r&&c(r,e[l],{that:e,AS_ENTRIES:n})})),p=m(t),g=function(e,t,n){var r,i,o=p(e),a=v(e,t);return a?a.value=n:(o.last=a={index:i=f(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),d?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},v=function(e,t){var n,r=p(e),i=f(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(u.prototype,{clear:function(){for(var e=p(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=p(this),n=v(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),d?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=p(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),o(u.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),d&&r(u.prototype,"size",{get:function(){return p(this).size}}),u},setStrong:function(e,t,n){var r=t+" Iterator",i=m(t),o=m(r);l(e,t,(function(e,t){h(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(t)}}},function(e,t,n){var r=n(103),i=n(82).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){n(10)("iterator")},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={zIndex:1e4}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0}),t.getPasteImgs=t.getPasteHtml=t.getPasteText=void 0;var a=n(2),s=n(6),c=a.__importDefault(n(295));function l(e){var t=e.clipboardData,n="";return n=null==t?window.clipboardData&&window.clipboardData.getData("text"):t.getData("text/plain"),s.replaceHtmlSymbol(n)}t.getPasteText=l,t.getPasteHtml=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var r=e.clipboardData,i="";if(r&&(i=r.getData("text/html")),!i){var o=l(e);if(!o)return"";i="<p>"+o+"</p>"}return c.default(i,t,n)},t.getPasteImgs=function(e){var t,n=[];if(l(e))return n;var r=null===(t=e.clipboardData)||void 0===t?void 0:t.items;return r?((0,o.default)(s).call(s,r,(function(e,t){var r=t.type;/image/i.test(r)&&n.push(t.getAsFile())})),n):n}},function(e,t,n){e.exports=n(297)},function(e,t,n){e.exports=n(305)},function(e,t,n){e.exports=n(309)},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4)),a=r(n(54));(0,i.default)(t,"__esModule",{value:!0});var s=n(2).__importDefault(n(3)),c=n(7),l=function(){function e(e,t){var n=this;this.hideTimeoutId=0,this.menu=e,this.conf=t;var r=s.default('<div class="w-e-droplist"></div>'),i=s.default("<p>"+t.title+"</p>");i.addClass("w-e-dp-title"),r.append(i);var l=t.list||[],u=t.type||"list",d=t.clickHandler||c.EMPTY_FN,f=s.default('<ul class="'+("list"===u?"w-e-list":"w-e-block")+'"></ul>');(0,o.default)(l).call(l,(function(e){var t=e.$elem,r=e.value,i=s.default('<li class="w-e-item"></li>');t&&(i.append(t),f.append(i),i.on("click",(function(e){d(r),e.stopPropagation(),n.hideTimeoutId=(0,a.default)((function(){n.hide()}))})))})),r.append(f),r.on("mouseleave",(function(){n.hideTimeoutId=(0,a.default)((function(){n.hide()}))})),this.$container=r,this.rendered=!1,this._show=!1}return e.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var e=this.menu.$elem,t=this.$container;if(!this._show){if(this.rendered)t.show();else{var n=e.getBoundingClientRect().height||0,r=this.conf.width||100;t.css("margin-top",n+"px").css("width",r+"px"),e.append(t),this.rendered=!0}this._show=!0}},e.prototype.hide=function(){var e=this.$container;this._show&&(e.hide(),this._show=!1)},(0,i.default)(e.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),e}();t.default=l},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.selection.getSelectionContainerElem();return!(null==t||!t.length)&&"A"===t.getNodeName()}},function(e,t,n){var r=n(0),i=r(n(94)),o=r(n(1)),a=r(n(4));(0,o.default)(t,"__esModule",{value:!0});var s=n(6);t.default=function(e,t){var n=new XMLHttpRequest;if(n.open("POST",e),n.timeout=t.timeout||1e4,n.ontimeout=function(){t.onTimeout&&t.onTimeout(n)},n.upload&&(n.upload.onprogress=function(e){var n=e.loaded/e.total;t.onProgress&&t.onProgress(n,e)}),t.headers&&(0,a.default)(s).call(s,t.headers,(function(e,t){n.setRequestHeader(e,t)})),n.withCredentials=!!t.withCredentials,t.beforeSend){var r=t.beforeSend(n);if(r&&"object"===(0,i.default)(r)&&r.prevent)return r.msg}return n.onreadystatechange=function(){if(4===n.readyState){var e=n.status;if(!(e<200||e>=300&&e<400)){if(e>=400)return void(t.onError&&t.onError(n));var r,o=n.responseText;if("object"!==(0,i.default)(o))try{r=JSON.parse(o)}catch(e){return void(t.onFail&&t.onFail(n,o))}else r=o;t.onSuccess(n,r)}}},n.send(t.formData||null),n}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(341)),a=r(n(54));(0,i.default)(t,"__esModule",{value:!0});var s=n(2).__importDefault(n(3)),c=function(){function e(e){this.editor=e,this.$textContainer=e.$textContainerElem,this.$bar=s.default('<div class="w-e-progress"></div>'),this.isShow=!1,this.time=0,this.timeoutId=0}return e.prototype.show=function(e){var t=this;if(!this.isShow){this.isShow=!0;var n=this.$bar;this.$textContainer.append(n),(0,o.default)()-this.time>100&&e<=1&&(n.css("width",100*e+"%"),this.time=(0,o.default)());var r=this.timeoutId;r&&clearTimeout(r),this.timeoutId=(0,a.default)((function(){t.hide()}),500)}},e.prototype.hide=function(){this.$bar.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},e}();t.default=c},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListType=void 0;var r,i=n(2),o=i.__importDefault(n(3)),a=i.__importDefault(n(23)),s=n(44),c=i.__importStar(n(368));!function(e){e.OrderedList="OL",e.UnorderedList="UL"}(r=t.ListType||(t.ListType={}));var l=function(e){function t(t){var n=this,i=o.default('<div class="w-e-menu" data-title="序列">\n <i class="w-e-icon-list2"></i>\n </div>'),a={width:130,title:"序列",type:"list",list:[{$elem:o.default('\n <p>\n <i class="w-e-icon-list2 w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.list.无序列表")+"\n <p>"),value:r.UnorderedList},{$elem:o.default('<p>\n <i class="w-e-icon-list-numbered w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.list.有序列表")+"\n <p>"),value:r.OrderedList}],clickHandler:function(e){n.command(e)}};return n=e.call(this,i,t,a)||this}return i.__extends(t,e),t.prototype.command=function(e){void 0!==this.editor.selection.getSelectionContainerElem()&&(this.handleSelectionRangeNodes(e),this.tryChangeActive())},t.prototype.validator=function(e,t,n){return!(!e.length||!t.length||n.equal(e)||n.equal(t))},t.prototype.handleSelectionRangeNodes=function(e){var t=this.editor,n=t.selection,r=e.toLowerCase(),i=n.getSelectionContainerElem(),o=n.getSelectionStartElem().getNodeTop(t),a=n.getSelectionEndElem().getNodeTop(t);if(this.validator(o,a,t.$textElem)){var l=n.getRange(),u=null==l?void 0:l.collapsed;t.$textElem.equal(i)||(i=i.getNodeTop(t));var d,f={editor:t,listType:e,listTarget:r,$selectionElem:i,$startElem:o,$endElem:a};d=this.isOrderElem(i)?c.ClassType.Wrap:this.isOrderElem(o)&&this.isOrderElem(a)?c.ClassType.Join:this.isOrderElem(o)?c.ClassType.StartJoin:this.isOrderElem(a)?c.ClassType.EndJoin:c.ClassType.Other;var p=new c.default(c.createListHandle(d,f,l));s.updateRange(t,p.getSelectionRangeElem(),!!u)}},t.prototype.isOrderElem=function(e){var t=e.getNodeName();return t===r.OrderedList||t===r.UnorderedList},t.prototype.tryChangeActive=function(){},t}(a.default);t.default=l},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.selection.getSelectionContainerElem();return!(null==t||!t.length||"CODE"!=t.getNodeName()&&"PRE"!=t.getNodeName()&&"CODE"!=t.parent().getNodeName()&&"PRE"!=t.parent().getNodeName()&&!/hljs/.test(t.parent().attr("class")))}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(30));(0,i.default)(t,"__esModule",{value:!0}),t.todo=void 0;var a=n(2).__importDefault(n(3)),s=function(){function e(e){var t;this.template='<ul class="w-e-todo"><li><span contenteditable="false"><input type="checkbox"></span></li></ul>',this.checked=!1,this.$todo=a.default(this.template),this.$child=null===(t=null==e?void 0:e.childNodes())||void 0===t?void 0:t.clone(!0)}return e.prototype.init=function(){var e=this,t=this.getInput(),n=this.$child,r=this.getInputContainer();n&&n.insertAfter(r),t.on("click",(function(){e.checked?null==t||t.removeAttr("checked"):null==t||t.attr("checked",""),e.checked=!e.checked}))},e.prototype.getInput=function(){var e=this.$todo;return(0,o.default)(e).call(e,"input")},e.prototype.getInputContainer=function(){return this.getInput().parent()},e.prototype.getTodo=function(){return this.$todo},e}();t.todo=s,t.default=function(e){var t=new s(e);return t.init(),t}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2);n(140),n(142),n(146),n(148),n(150),n(152),n(154);var i=r.__importDefault(n(115));r.__exportStar(n(433),t),t.default=i.default},function(e,t,n){var r=n(137);e.exports=r},function(e,t,n){n(138);var r=n(12).Object,i=e.exports=function(e,t,n){return r.defineProperty(e,t,n)};r.defineProperty.sham&&(i.sham=!0)},function(e,t,n){var r=n(5),i=n(15);r({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:n(18).f})},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(20),i=n(141);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o),e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-toolbar,\n.w-e-text-container,\n.w-e-menu-panel {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n background-color: #fff;\n /*表情菜单样式*/\n /*分割线样式*/\n}\n.w-e-toolbar h1,\n.w-e-text-container h1,\n.w-e-menu-panel h1 {\n font-size: 2em !important;\n}\n.w-e-toolbar h2,\n.w-e-text-container h2,\n.w-e-menu-panel h2 {\n font-size: 1.5em !important;\n}\n.w-e-toolbar h3,\n.w-e-text-container h3,\n.w-e-menu-panel h3 {\n font-size: 1.17em !important;\n}\n.w-e-toolbar h4,\n.w-e-text-container h4,\n.w-e-menu-panel h4 {\n font-size: 1em !important;\n}\n.w-e-toolbar h5,\n.w-e-text-container h5,\n.w-e-menu-panel h5 {\n font-size: 0.83em !important;\n}\n.w-e-toolbar p,\n.w-e-text-container p,\n.w-e-menu-panel p {\n font-size: 1em !important;\n}\n.w-e-toolbar .eleImg,\n.w-e-text-container .eleImg,\n.w-e-menu-panel .eleImg {\n cursor: pointer;\n display: inline-block;\n font-size: 18px;\n padding: 0 3px;\n}\n.w-e-toolbar *,\n.w-e-text-container *,\n.w-e-menu-panel * {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n.w-e-toolbar hr,\n.w-e-text-container hr,\n.w-e-menu-panel hr {\n cursor: pointer;\n display: block;\n height: 0px;\n border: 0;\n border-top: 3px solid #ccc;\n margin: 20px 0;\n}\n.w-e-clear-fix:after {\n content: "";\n display: table;\n clear: both;\n}\n.w-e-drop-list-item {\n position: relative;\n top: 1px;\n padding-right: 7px;\n color: #333 !important;\n}\n.w-e-drop-list-tl {\n padding-left: 10px;\n text-align: left;\n}\n',""]),e.exports=t},function(e,t,n){var r=n(20),i=n(143);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o),e.exports=i.locals||{}},function(e,t,n){var r=n(21),i=n(144),o=n(145);t=r(!1);var a=i(o);t.push([e.i,"@font-face {\n font-family: 'w-e-icon';\n src: url("+a+') format(\'truetype\');\n font-weight: normal;\n font-style: normal;\n}\n[class^="w-e-icon-"],\n[class*=" w-e-icon-"] {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'w-e-icon\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.w-e-icon-close:before {\n content: "\\f00d";\n}\n.w-e-icon-upload2:before {\n content: "\\e9c6";\n}\n.w-e-icon-trash-o:before {\n content: "\\f014";\n}\n.w-e-icon-header:before {\n content: "\\f1dc";\n}\n.w-e-icon-pencil2:before {\n content: "\\e906";\n}\n.w-e-icon-paint-brush:before {\n content: "\\f1fc";\n}\n.w-e-icon-image:before {\n content: "\\e90d";\n}\n.w-e-icon-play:before {\n content: "\\e912";\n}\n.w-e-icon-location:before {\n content: "\\e947";\n}\n.w-e-icon-undo:before {\n content: "\\e965";\n}\n.w-e-icon-redo:before {\n content: "\\e966";\n}\n.w-e-icon-quotes-left:before {\n content: "\\e977";\n}\n.w-e-icon-list-numbered:before {\n content: "\\e9b9";\n}\n.w-e-icon-list2:before {\n content: "\\e9bb";\n}\n.w-e-icon-link:before {\n content: "\\e9cb";\n}\n.w-e-icon-happy:before {\n content: "\\e9df";\n}\n.w-e-icon-bold:before {\n content: "\\ea62";\n}\n.w-e-icon-underline:before {\n content: "\\ea63";\n}\n.w-e-icon-italic:before {\n content: "\\ea64";\n}\n.w-e-icon-strikethrough:before {\n content: "\\ea65";\n}\n.w-e-icon-table2:before {\n content: "\\ea71";\n}\n.w-e-icon-paragraph-left:before {\n content: "\\ea77";\n}\n.w-e-icon-paragraph-center:before {\n content: "\\ea78";\n}\n.w-e-icon-paragraph-right:before {\n content: "\\ea79";\n}\n.w-e-icon-paragraph-justify:before {\n content: "\\ea7a";\n}\n.w-e-icon-terminal:before {\n content: "\\f120";\n}\n.w-e-icon-page-break:before {\n content: "\\ea68";\n}\n.w-e-icon-cancel-circle:before {\n content: "\\ea0d";\n}\n.w-e-icon-font:before {\n content: "\\ea5c";\n}\n.w-e-icon-text-heigh:before {\n content: "\\ea5f";\n}\n.w-e-icon-paint-format:before {\n content: "\\e90c";\n}\n.w-e-icon-indent-increase:before {\n content: "\\ea7b";\n}\n.w-e-icon-indent-decrease:before {\n content: "\\ea7c";\n}\n.w-e-icon-row-height:before {\n content: "\\e9be";\n}\n.w-e-icon-fullscreen_exit:before {\n content: "\\e900";\n}\n.w-e-icon-fullscreen:before {\n content: "\\e901";\n}\n.w-e-icon-split-line:before {\n content: "\\ea0b";\n}\n.w-e-icon-checkbox-checked:before {\n content: "\\ea52";\n}\n',""]),e.exports=t},function(e,t,n){e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t,n){n.r(t),t.default="data:font/woff;base64,d09GRgABAAAAABskAAsAAAAAGtgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPFWNtYXAAAAFoAAABHAAAARz2mfAgZ2FzcAAAAoQAAAAIAAAACAAAABBnbHlmAAACjAAAFXwAABV8IH7+mGhlYWQAABgIAAAANgAAADYb6gumaGhlYQAAGEAAAAAkAAAAJAkjBWlobXR4AAAYZAAAAKQAAACkmYcEbmxvY2EAABkIAAAAVAAAAFReAmKYbWF4cAAAGVwAAAAgAAAAIAA0ALZuYW1lAAAZfAAAAYYAAAGGmUoJ+3Bvc3QAABsEAAAAIAAAACAAAwAAAAMD7wGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAQAAAAA8ACAABAAcAAEAIOkB6QbpDekS6UfpZul36bnpu+m+6cbpy+nf6gvqDepS6lzqX+pl6nHqfPAN8BTxIPHc8fz//f//AAAAAAAg6QDpBukM6RLpR+ll6Xfpuem76b7pxunL6d/qC+oN6lLqXOpf6mLqcep38A3wFPEg8dzx/P/9//8AAf/jFwQXABb7FvcWwxamFpYWVRZUFlIWSxZHFjQWCRYIFcQVuxW5FbcVrBWnEBcQEQ8GDksOLAADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAAEAEEAAQO/A38ABQALABEAFwAAATMVIREzAxEhFSMVATUzESE1ETUhESM1Av/A/sJ+fgE+wP4Cfv7CAT5+Ar9+AT78ggE+fsACvsD+wn7+An7+wsAAAAAABABBAAEDvwN/AAUACwARABcAAAEhESM1IxM1MxEhNQERIRUjFREVMxUhEQKBAT5+wMB+/sL9wAE+wMD+wgN//sLA/X7A/sJ+AcIBPn7A/v7AfgE+AAAAAAIAAP/ABAADwAAEABMAAAE3AScBAy4BJxM3ASMBAyUBNQEHAYCAAcBA/kCfFzsyY4ABgMD+gMACgAGA/oBOAUBAAcBA/kD+nTI7FwERTgGA/oD9gMABgMD+gIAAAgAA/8AEAAOAACkALQAAAREjNTQmIyEiBh0BFBYzITI2PQEzESEVIyIGFREUFjsBMjY1ETQmKwE1ASE1IQQAwCYa/UAaJiYaAsAaJoD9wCANExMNgA0TEw0gAUD9QALAAYABgEAaJiYawBomJhpA/wCAEw3+wA0TEw0BQA0TQAGAQAAABAAAAAAEAAOAABAAIQAtADQAAAE4ATEROAExITgBMRE4ATEhNSEiBhURFBYzITI2NRE0JiMHFAYjIiY1NDYzMhYTITUTATM3A8D8gAOA/IAaJiYaA4AaJiYagDgoKDg4KCg4QP0A4AEAQOADQP0AAwBAJhr9ABomJhoDABom4Cg4OCgoODj9uIABgP7AwAAAAgAAAEAEAANAADgAPAAAASYnLgEnJiMiBw4BBwYHBgcOAQcGFRQXHgEXFhcWFx4BFxYzMjc+ATc2NzY3PgE3NjU0Jy4BJyYnARENAQPVNjg5djw9Pz89PHY5ODYLBwgLAwMDAwsIBws2ODl2PD0/Pz08djk4NgsHCAsDAwMDCwgHC/2rAUD+wAMgCAYGCAICAgIIBgYIKSoqWS0uLy8uLVkqKikIBgYIAgICAggGBggpKipZLS4vLy4tWSoqKf3gAYDAwAAAAAACAMD/wANAA8AAGwAnAAABIgcOAQcGFRQXHgEXFjEwNz4BNzY1NCcuAScmAyImNTQ2MzIWFRQGAgBCOzpXGRkyMngyMjIyeDIyGRlXOjtCUHBwUFBwcAPAGRlXOjtCeH19zEFBQUHMfX14Qjs6VxkZ/gBwUFBwcFBQcAAAAQAAAAAEAAOAACsAAAEiBw4BBwYHJxEhJz4BMzIXHgEXFhUUBw4BBwYHFzY3PgE3NjU0Jy4BJyYjAgA1MjJcKSkjlgGAkDWLUFBFRmkeHgkJIhgYHlUoICAtDAwoKIteXWoDgAoLJxscI5b+gJA0PB4eaUZFUCsoKUkgIRpgIysrYjY2OWpdXosoKAABAAAAAAQAA4AAKgAAExQXHgEXFhc3JicuAScmNTQ3PgE3NjMyFhcHIREHJicuAScmIyIHDgEHBgAMDC0gIChVHhgYIgkJHh5pRkVQUIs1kAGAliMpKVwyMjVqXV6LKCgBgDk2NmIrKyNgGiEgSSkoK1BFRmkeHjw0kAGAliMcGycLCigoi15dAAAAAAIAAABABAEDAAAmAE0AABMyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+ASEyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+AeEuKSk9ERISET0pKS4uKSk9ERIBIyN6UlFdQHUtCRAHCBICSS4pKT0REhIRPSkpLi4pKT0REgEjI3pSUV1AdS0JEAcIEgIAEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBAAAGAED/wAQAA8AAAwAHAAsAEQAdACkAACUhFSERIRUhESEVIScRIzUjNRMVMxUjNTc1IzUzFRURIzUzNSM1MzUjNQGAAoD9gAKA/YACgP2AwEBAQIDAgIDAwICAgICAgAIAgAIAgMD/AMBA/fIyQJI8MkCS7v7AQEBAQEAABgAA/8AEAAPAAAMABwALABcAIwAvAAABIRUhESEVIREhFSEBNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYBgAKA/YACgP2AAoD9gP6ASzU1S0s1NUtLNTVLSzU1S0s1NUtLNTVLA4CA/wCA/wCAA0A1S0s1NUtL/rU1S0s1NUtL/rU1S0s1NUtLAAUAAABABWADAAADAAcACwAOABEAABMhFSEVIRUhFSEVIQEXNzUnBwADgPyAA4D8gAOA/IAD4MDAwMADAMBAwEDAAUDAwEDAwAAAAAADAAAAAAQAA6AAAwANABQAADchFSElFSE1EyEVITUhJQkBIxEjEQAEAPwABAD8AIABAAEAAQD9YAEgASDggEBAwEBAAQCAgMABIP7g/wABAAAAAAACAB7/zAPiA7QAMwBkAAABIiYnJicmNDc2PwE+ATMyFhcWFxYUBwYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJyYnJjQ3Nj8BNjIXFhQPAQYUFx4BMzI2PwE2NCcmNDc2MhcWFxYUBwYPAQ4BIwG4ChMIIxISEhIjwCNZMTFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PCBMKuDFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PDysQIxISEhIjwCNZMQFECAckLS1eLS0kwCIlJSIkLS1eLS0kVxAQDysPWCl0KRQVFRTAKXQpDysQBwj+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJC0tXi0tJMAiJQAAAAAFAAD/wAQAA8AAGwA3AFMAXwBrAAAFMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NhMyNz4BNzY3BgcOAQcGIyInLgEnJicWFx4BFxYnNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYCAGpdXosoKCgoi15dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMVisrKlEmJiMFHBtWODc/Pzc4VhscBSMmJlEqK9UlGxslJRsbJQGAJRsbJSUbGyVAKCiLXl1qal1eiygoKCiLXl1qal1eiygoA6AhIHFMTFZWTExxICEhIHFMTFZWTExxICH+CQYGFRAQFEM6OlYYGRkYVjo6QxQQEBUGBvcoODgoKDg4KCg4OCgoODgAAAEAAAFABAACQAAPAAATFRQWMyEyNj0BNCYjISIGABMNA8ANExMN/EANEwIgwA0TEw3ADRMTAAAAAwAA/8AEAAPAABsANwBDAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmAyInLgEnJjU0Nz4BNzYzMhceARcWFRQHDgEHBhMHJwcXBxc3FzcnNwIAal1eiygoKCiLXl1qal1eiygoKCiLXl1qVkxMcSAhISBxTExWVkxMcSAhISBxTExKoKBgoKBgoKBgoKADwCgoi15dampdXosoKCgoi15dampdXosoKPxgISBxTExWVkxMcSAhISBxTExWVkxMcSAhAqCgoGCgoGCgoGCgoAACAAD/wAQAA8AADwAVAAABISIGFREUFjMhMjY1ETQmASc3FwEXA4D9ADVLSzUDADVLS/4L7VqTATNaA8BLNf0ANUtLNQMANUv85e5akgEyWgAAAAABAGX/wAObA8AAKQAAASImIyIHDgEHBhUUFjMuATU0NjcwBwYCBwYHFSETMzcjNx4BMzI2Nw4BAyBEaEZxU1RtGhtJSAYNZUoQEEs8PFkBPWzGLNc0LVUmLlAYHT0DsBAeHWE+P0FNOwsmN5lvA31+/sWPkCMZAgCA9gkPN2sJBwAAAAACAAAAAAQAA4AACQAXAAAlMwcnMxEjNxcjJREnIxEzFSE1MxEjBxEDgICgoICAoKCA/wBAwID+gIDAQMDAwAIAwMDA/wCA/UBAQALAgAEAAAMAwAAAA0ADgAAWAB8AKAAAAT4BNTQnLgEnJiMhESEyNz4BNzY1NCYBMzIWFRQGKwETIxEzMhYVFAYCxBwgFBRGLi81/sABgDUvLkYUFET+hGUqPDwpZp+fnyw+PgHbIlQvNS8uRhQU/IAUFEYuLzVGdAFGSzU1S/6AAQBLNTVLAAAAAAIAwAAAA0ADgAAfACMAAAEzERQHDgEHBiMiJy4BJyY1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgBkZVzo7QkI7OlcZGYAbGBxJKChJHBgb/gACgP2AA4D+YDw0NU4WFxcWTjU0PAGg/mAeOBcYGxsYFzge/qCAAAAAAAEAgAAAA4ADgAALAAABFSMBMxUhNTMBIzUDgID+wID+QIABQIADgED9AEBAAwBAAAEAAAAABAADgAA9AAABFSMeARUUBgcOASMiJicuATUzFBYzMjY1NCYjITUhLgEnLgE1NDY3PgEzMhYXHgEVIzQmIyIGFRQWMzIWFwQA6xUWNTAscT4+cSwwNYByTk5yck7+AAEsAgQBMDU1MCxxPj5xLDA1gHJOTnJyTjtuKwHAQB1BIjViJCEkJCEkYjU0TEw0NExAAQMBJGI1NWIkISQkISRiNTRMTDQ0TCEfAAAACgAAAAAEAAOAAAMABwALAA8AEwAXABsAHwAjACcAABMRIREBNSEVHQEhNQEVITUjFSE1ESEVISUhFSERNSEVASEVISE1IRUABAD9gAEA/wABAP8AQP8AAQD/AAKAAQD/AAEA/IABAP8AAoABAAOA/IADgP3AwMBAwMACAMDAwMD/AMDAwAEAwMD+wMDAwAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIRUhFSERIRUhESEVIREhFSEABAD8AAKA/YACgP2ABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFyEVIREhFSEDIRUhESEVIQAEAPwAwAKA/YACgP2AwAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEFIRUhESEVIQEhFSERIRUhAAQA/AABgAKA/YACgP2A/oAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEVIRUhFSEVIRUhFSEVIRUhAAQA/AAEAPwABAD8AAQA/AAEAPwAA4CAQIBAgECAQIAAAAAGAAAAAAQAA4AAAwAHAAsADwATABYAABMhFSEFIRUhFSEVIRUhFSEFIRUhGQEFAAQA/AABgAKA/YACgP2AAoD9gP6ABAD8AAEAA4CAQIBAgECAQIABAAGAwAAAAAYAAAAABAADgAADAAcACwAPABMAFgAAEyEVIQUhFSEVIRUhFSEVIQUhFSEBESUABAD8AAGAAoD9gAKA/YACgP2A/oAEAPwAAQD/AAOAgECAQIBAgECAAoD+gMAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAAIWwaoFfDzz1AAsEAAAAAADbteOZAAAAANu145kAAP+3BWADwAAAAAgAAgAAAAAAAAABAAADwP/AAAAFgAAA//8FYAABAAAAAAAAAAAAAAAAAAAAKQQAAAAAAAAAAAAAAAIAAAAEAABBBAAAQQQAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAFgAAABAAAAAQAAB4EAAAABAAAAAQAAAAEAAAABAAAZQQAAAAEAADABAAAwAQAAIAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBKAHYApADmAS4BkgHQAhYCXALQAw4DWAN+A6gEPgTeBPoFZAWOBdAF+AY6BnYGjgbmBy4HVgd+B6gHzgf8CCoIbgkmCXAKYgq+AAEAAAApALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(e,t,n){var r=n(20),i=n(147);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o),e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-toolbar {\n display: flex;\n padding: 0 6px;\n flex-wrap: wrap;\n position: relative;\n /* 单个菜单 */\n}\n.w-e-toolbar .w-e-menu {\n position: relative;\n display: flex;\n width: 40px;\n height: 40px;\n align-items: center;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n}\n.w-e-toolbar .w-e-menu i {\n color: #999;\n}\n.w-e-toolbar .w-e-menu:hover {\n background-color: #F6F6F6;\n}\n.w-e-toolbar .w-e-menu:hover i {\n color: #333;\n}\n.w-e-toolbar .w-e-active i {\n color: #1e88e5;\n}\n.w-e-toolbar .w-e-active:hover i {\n color: #1e88e5;\n}\n.w-e-menu-tooltip {\n position: absolute;\n display: flex;\n color: #f1f1f1;\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n padding: 4px 5px 6px;\n justify-content: center;\n align-items: center;\n}\n.w-e-menu-tooltip-up::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-down::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-item-wrapper {\n font-size: 14px;\n margin: 0 5px;\n}\n',""]),e.exports=t},function(e,t,n){var r=n(20),i=n(149);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o),e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-text-container {\n position: relative;\n height: 100%;\n}\n.w-e-text-container .w-e-progress {\n position: absolute;\n background-color: #1e88e5;\n top: 0;\n left: 0;\n height: 1px;\n}\n.w-e-text-container .placeholder {\n color: #D4D4D4;\n position: absolute;\n font-size: 11pt;\n line-height: 22px;\n left: 10px;\n top: 10px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n z-index: -1;\n}\n.w-e-text {\n padding: 0 10px;\n overflow-y: auto;\n}\n.w-e-text p,\n.w-e-text h1,\n.w-e-text h2,\n.w-e-text h3,\n.w-e-text h4,\n.w-e-text h5,\n.w-e-text table,\n.w-e-text pre {\n margin: 10px 0;\n line-height: 1.5;\n}\n.w-e-text ul,\n.w-e-text ol {\n margin: 10px 0 10px 20px;\n}\n.w-e-text blockquote {\n display: block;\n border-left: 8px solid #d0e5f2;\n padding: 5px 10px;\n margin: 10px 0;\n line-height: 1.4;\n font-size: 100%;\n background-color: #f1f1f1;\n}\n.w-e-text code {\n display: inline-block;\n background-color: #f1f1f1;\n border-radius: 3px;\n padding: 3px 5px;\n margin: 0 3px;\n}\n.w-e-text pre code {\n display: block;\n}\n.w-e-text table {\n border-top: 1px solid #ccc;\n border-left: 1px solid #ccc;\n}\n.w-e-text table td,\n.w-e-text table th {\n border-bottom: 1px solid #ccc;\n border-right: 1px solid #ccc;\n padding: 3px 5px;\n min-height: 30px;\n}\n.w-e-text table th {\n border-bottom: 2px solid #ccc;\n text-align: center;\n background-color: #f1f1f1;\n}\n.w-e-text:focus {\n outline: none;\n}\n.w-e-text img {\n cursor: pointer;\n}\n.w-e-text img:hover {\n box-shadow: 0 0 5px #333;\n}\n.w-e-text .w-e-todo {\n margin: 0 0 0 20px;\n}\n.w-e-text .w-e-todo li {\n list-style: none;\n font-size: 1em;\n}\n.w-e-text .w-e-todo li span:nth-child(1) {\n position: relative;\n left: -18px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input {\n position: absolute;\n margin-right: 3px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {\n top: 50%;\n margin-top: -6px;\n}\n.w-e-tooltip {\n position: absolute;\n display: flex;\n color: #f1f1f1;\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n padding: 4px 5px 6px;\n justify-content: center;\n align-items: center;\n}\n.w-e-tooltip-up::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-down::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-item-wrapper {\n cursor: pointer;\n font-size: 14px;\n margin: 0 5px;\n}\n.w-e-tooltip-item-wrapper:hover {\n color: #ccc;\n text-decoration: underline;\n}\n',""]),e.exports=t},function(e,t,n){var r=n(20),i=n(151);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o),e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-menu .w-e-panel-container {\n position: absolute;\n top: 0;\n left: 50%;\n border: 1px solid #ccc;\n border-top: 0;\n box-shadow: 1px 1px 2px #ccc;\n color: #333;\n background-color: #fff;\n text-align: left;\n /* 为 emotion panel 定制的样式 */\n /* 上传图片、上传视频的 panel 定制样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close {\n position: absolute;\n right: 0;\n top: 0;\n padding: 5px;\n margin: 2px 5px 0 0;\n cursor: pointer;\n color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close:hover {\n color: #333;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title {\n list-style: none;\n display: flex;\n font-size: 14px;\n margin: 2px 10px 0 10px;\n border-bottom: 1px solid #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {\n padding: 3px 5px;\n color: #999;\n cursor: pointer;\n margin: 0 3px;\n position: relative;\n top: 1px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {\n color: #333;\n border-bottom: 1px solid #333;\n cursor: default;\n font-weight: 700;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content {\n padding: 10px 15px 10px 15px;\n font-size: 16px;\n /* 输入框的样式 */\n /* 按钮的样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {\n outline: none;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {\n width: 100%;\n border: 1px solid #ccc;\n padding: 5px;\n margin-top: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {\n border-color: #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {\n border: none;\n border-bottom: 1px solid #ccc;\n font-size: 14px;\n height: 20px;\n color: #333;\n text-align: left;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {\n width: 30px;\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {\n display: block;\n width: 100%;\n margin: 10px 0;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {\n border-bottom: 2px solid #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {\n font-size: 14px;\n color: #1e88e5;\n border: none;\n padding: 5px 10px;\n background-color: #fff;\n cursor: pointer;\n border-radius: 3px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {\n float: left;\n margin-right: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {\n float: right;\n margin-left: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {\n color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {\n color: #c24f4a;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {\n background-color: #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {\n content: "";\n display: table;\n clear: both;\n}\n.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {\n cursor: pointer;\n font-size: 18px;\n padding: 0 3px;\n display: inline-block;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container,\n.w-e-menu .w-e-panel-container .w-e-up-video-container {\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {\n display: inline-block;\n color: #999;\n cursor: pointer;\n font-size: 60px;\n line-height: 1;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {\n color: #333;\n}\n',""]),e.exports=t},function(e,t,n){var r=n(20),i=n(153);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o),e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-toolbar .w-e-droplist {\n position: absolute;\n left: 0;\n top: 0;\n background-color: #fff;\n border: 1px solid #f1f1f1;\n border-right-color: #ccc;\n border-bottom-color: #ccc;\n}\n.w-e-toolbar .w-e-droplist .w-e-dp-title {\n text-align: center;\n color: #999;\n line-height: 2;\n border-bottom: 1px solid #f1f1f1;\n font-size: 13px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list {\n list-style: none;\n line-height: 1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {\n color: #333;\n padding: 5px 0;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {\n background-color: #f1f1f1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block {\n list-style: none;\n text-align: left;\n padding: 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {\n display: inline-block;\n padding: 3px 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {\n background-color: #f1f1f1;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(0)(n(155));Element.prototype.matches||(Element.prototype.matches=function(e){for(var t=this.ownerDocument.querySelectorAll(e),n=t.length;n>=0&&t.item(n)!==this;n--);return n>-1}),r.default||(window.Promise=r.default)},function(e,t,n){e.exports=n(156)},function(e,t,n){var r=n(157);e.exports=r},function(e,t,n){n(158),n(67),n(166),n(173),n(174),n(175),n(69),n(50);var r=n(12);e.exports=r.Promise},function(e,t,n){var r=n(5),i=n(77),o=n(102),a=n(60),s=n(17),c=n(35),l=n(39),u=function(e,t){var n=this;if(!(n instanceof u))return new u(e,t);o&&(n=o(new Error(void 0),i(n))),void 0!==t&&s(n,"message",String(t));var r=[];return l(e,r.push,{that:r}),s(n,"errors",r),n};u.prototype=a(Error.prototype,{constructor:c(5,u),message:c(5,""),name:c(5,"AggregateError")}),r({global:!0},{AggregateError:u})},function(e,t,n){var r=n(8),i=n(17);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(11);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(13);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var r=n(15),i=n(18),o=n(24),a=n(61);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,c=0;s>c;)i.f(e,n=r[c++],t[n]);return e}},function(e,t,n){var r=n(9),i=n(40),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,n){var r=n(66),i=n(40),o=n(9)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(24);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},function(e,t,n){var r,i,o,a,s=n(5),c=n(37),l=n(8),u=n(28),d=n(106),f=n(49),p=n(107),h=n(41),m=n(108),g=n(13),v=n(32),b=n(85),_=n(109),y=n(39),w=n(168),x=n(110),k=n(111).set,C=n(169),A=n(113),S=n(171),E=n(68),T=n(86),O=n(42),R=n(101),D=n(9),L=n(63),M=n(64),F=D("species"),N="Promise",B=O.get,I=O.set,P=O.getterFor(N),$=d,j=l.TypeError,z=l.document,q=l.process,H=u("fetch"),U=E.f,W=U,V=!!(z&&z.createEvent&&l.dispatchEvent),G="function"==typeof PromiseRejectionEvent,K=R(N,(function(){if(_($)===String($)){if(66===M)return!0;if(!L&&!G)return!0}if(c&&!$.prototype.finally)return!0;if(M>=51&&/native code/.test($))return!1;var e=$.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[F]=t,!(e.then((function(){}))instanceof t)})),Y=K||!w((function(e){$.all(e).catch((function(){}))})),X=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},Q=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;C((function(){for(var r=e.value,i=1==e.state,o=0;n.length>o;){var a,s,c,l=n[o++],u=i?l.ok:l.fail,d=l.resolve,f=l.reject,p=l.domain;try{u?(i||(2===e.rejection&&te(e),e.rejection=1),!0===u?a=r:(p&&p.enter(),a=u(r),p&&(p.exit(),c=!0)),a===l.promise?f(j("Promise-chain cycle")):(s=X(a))?s.call(a,d,f):d(a)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Z(e)}))}},J=function(e,t,n){var r,i;V?((r=z.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},!G&&(i=l["on"+e])?i(r):"unhandledrejection"===e&&S("Unhandled promise rejection",n)},Z=function(e){k.call(l,(function(){var t,n=e.facade,r=e.value;if(ee(e)&&(t=T((function(){L?q.emit("unhandledRejection",r,n):J("unhandledrejection",n,r)})),e.rejection=L||ee(e)?2:1,t.error))throw t.value}))},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e){k.call(l,(function(){var t=e.facade;L?q.emit("rejectionHandled",t):J("rejectionhandled",t,e.value)}))},ne=function(e,t,n){return function(r){e(t,r,n)}},re=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Q(e,!0))},ie=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw j("Promise can't be resolved itself");var r=X(t);r?C((function(){var n={done:!1};try{r.call(t,ne(ie,n,e),ne(re,n,e))}catch(t){re(n,t,e)}})):(e.value=t,e.state=1,Q(e,!1))}catch(t){re({done:!1},t,e)}}};K&&($=function(e){b(this,$,N),v(e),r.call(this);var t=B(this);try{e(ne(ie,t),ne(re,t))}catch(e){re(t,e)}},(r=function(e){I(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p($.prototype,{then:function(e,t){var n=P(this),r=U(x(this,$));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=L?q.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Q(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=B(e);this.promise=e,this.resolve=ne(ie,t),this.reject=ne(re,t)},E.f=U=function(e){return e===$||e===o?new i(e):W(e)},c||"function"!=typeof d||(a=d.prototype.then,f(d.prototype,"then",(function(e,t){var n=this;return new $((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof H&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return A($,H.apply(l,arguments))}}))),s({global:!0,wrap:!0,forced:K},{Promise:$}),h($,N,!1,!0),m(N),o=u(N),s({target:N,stat:!0,forced:K},{reject:function(e){var t=U(this);return t.reject.call(void 0,e),t.promise}}),s({target:N,stat:!0,forced:c||K},{resolve:function(e){return A(c&&this===o?$:this,e)}}),s({target:N,stat:!0,forced:Y},{all:function(e){var t=this,n=U(t),r=n.resolve,i=n.reject,o=T((function(){var n=v(t.resolve),o=[],a=0,s=1;y(e,(function(e){var c=a++,l=!1;o.push(void 0),s++,n.call(t,e).then((function(e){l||(l=!0,o[c]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=U(t),r=n.reject,i=T((function(){var i=v(t.resolve);y(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},function(e,t,n){var r=n(84),i=n(66);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){var r=n(9)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){var r,i,o,a,s,c,l,u,d=n(8),f=n(74).f,p=n(111).set,h=n(112),m=n(170),g=n(63),v=d.MutationObserver||d.WebKitMutationObserver,b=d.document,_=d.process,y=d.Promise,w=f(d,"queueMicrotask"),x=w&&w.value;x||(r=function(){var e,t;for(g&&(e=_.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},h||g||m||!v||!b?y&&y.resolve?(l=y.resolve(void 0),u=l.then,a=function(){u.call(l,r)}):a=g?function(){_.nextTick(r)}:function(){p.call(d,r)}:(s=!0,c=b.createTextNode(""),new v(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),e.exports=x||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},function(e,t,n){var r=n(65);e.exports=/web0s(?!.*chrome)/i.test(r)},function(e,t,n){var r=n(8);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){var r=n(8),i=n(109),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){var r=n(5),i=n(32),o=n(68),a=n(86),s=n(39);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=o.f(t),r=n.resolve,c=n.reject,l=a((function(){var n=i(t.resolve),o=[],a=0,c=1;s(e,(function(e){var i=a++,s=!1;o.push(void 0),c++,n.call(t,e).then((function(e){s||(s=!0,o[i]={status:"fulfilled",value:e},--c||r(o))}),(function(e){s||(s=!0,o[i]={status:"rejected",reason:e},--c||r(o))}))})),--c||r(o)}));return l.error&&c(l.value),n.promise}})},function(e,t,n){var r=n(5),i=n(32),o=n(28),a=n(68),s=n(86),c=n(39);r({target:"Promise",stat:!0},{any:function(e){var t=this,n=a.f(t),r=n.resolve,l=n.reject,u=s((function(){var n=i(t.resolve),a=[],s=0,u=1,d=!1;c(e,(function(e){var i=s++,c=!1;a.push(void 0),u++,n.call(t,e).then((function(e){c||d||(d=!0,r(e))}),(function(e){c||d||(c=!0,a[i]=e,--u||l(new(o("AggregateError"))(a,"No one promise resolved")))}))})),--u||l(new(o("AggregateError"))(a,"No one promise resolved"))}));return u.error&&l(u.value),n.promise}})},function(e,t,n){var r=n(5),i=n(37),o=n(106),a=n(11),s=n(28),c=n(110),l=n(113),u=n(49);r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),i||"function"!=typeof o||o.prototype.finally||u(o.prototype,"finally",s("Promise").prototype.finally)},function(e,t,n){var r=n(62),i=n(46),o=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){var r=n(114).IteratorPrototype,i=n(60),o=n(35),a=n(41),s=n(40),c=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,l,!1,!0),s[l]=c,e}},function(e,t,n){var r=n(27),i=n(88),o=n(40),a=n(42),s=n(87),c=a.set,l=a.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){c(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){n(50);var r=n(181),i=n(66),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===o||e instanceof Array&&t===o.forEach||a.hasOwnProperty(i(e))?r:t}},function(e,t,n){var r=n(182);e.exports=r},function(e,t,n){n(183);var r=n(14);e.exports=r("Array").forEach},function(e,t,n){var r=n(5),i=n(184);r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(e,t,n){var r=n(29).forEach,i=n(70)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(186);e.exports=r},function(e,t,n){n(187);var r=n(12);e.exports=r.Array.isArray},function(e,t,n){n(5)({target:"Array",stat:!0},{isArray:n(51)})},function(e,t,n){var r=n(189);e.exports=r},function(e,t,n){var r=n(190),i=Array.prototype;e.exports=function(e){var t=e.map;return e===i||e instanceof Array&&t===i.map?r:t}},function(e,t,n){n(191);var r=n(14);e.exports=r("Array").map},function(e,t,n){var r=n(5),i=n(29).map;r({target:"Array",proto:!0,forced:!n(52)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(193);e.exports=r},function(e,t,n){var r=n(194),i=String.prototype;e.exports=function(e){var t=e.trim;return"string"==typeof e||e===i||e instanceof String&&t===i.trim?r:t}},function(e,t,n){n(195);var r=n(14);e.exports=r("String").trim},function(e,t,n){var r=n(5),i=n(91).trim;r({target:"String",proto:!0,forced:n(196)("trim")},{trim:function(){return i(this)}})},function(e,t,n){var r=n(11),i=n(71);e.exports=function(e){return r((function(){return!!i[e]()||"​…᠎"!="​…᠎"[e]()||i[e].name!==e}))}},function(e,t,n){var r=n(198);e.exports=r},function(e,t,n){n(199),n(67),n(69),n(50);var r=n(12);e.exports=r.Map},function(e,t,n){var r=n(117),i=n(119);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},function(e,t,n){var r=n(11);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var r=n(202);e.exports=r},function(e,t,n){var r=n(203),i=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===i||e instanceof Array&&t===i.indexOf?r:t}},function(e,t,n){n(204);var r=n(14);e.exports=r("Array").indexOf},function(e,t,n){var r=n(5),i=n(80).indexOf,o=n(70),a=[].indexOf,s=!!a&&1/[1].indexOf(1,-0)<0,c=o("indexOf");r({target:"Array",proto:!0,forced:s||!c},{indexOf:function(e){return s?a.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(206);e.exports=r},function(e,t,n){var r=n(207),i=Array.prototype;e.exports=function(e){var t=e.splice;return e===i||e instanceof Array&&t===i.splice?r:t}},function(e,t,n){n(208);var r=n(14);e.exports=r("Array").splice},function(e,t,n){var r=n(5),i=n(81),o=n(62),a=n(38),s=n(36),c=n(89),l=n(93),u=n(52)("splice"),d=Math.max,f=Math.min;r({target:"Array",proto:!0,forced:!u},{splice:function(e,t){var n,r,u,p,h,m,g=s(this),v=a(g.length),b=i(e,v),_=arguments.length;if(0===_?n=r=0:1===_?(n=0,r=v-b):(n=_-2,r=f(d(o(t),0),v-b)),v+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(u=c(g,r),p=0;p<r;p++)(h=b+p)in g&&l(u,p,g[h]);if(u.length=r,n<r){for(p=b;p<v-r;p++)m=p+n,(h=p+r)in g?g[m]=g[h]:delete g[m];for(p=v;p>v-r+n;p--)delete g[p-1]}else if(n>r)for(p=v-r;p>b;p--)m=p+n-1,(h=p+r-1)in g?g[m]=g[h]:delete g[m];for(p=0;p<n;p++)g[p+b]=arguments[p+2];return g.length=v-r+n,u}})},function(e,t,n){var r=n(210);e.exports=r},function(e,t,n){var r=n(211),i=Array.prototype;e.exports=function(e){var t=e.filter;return e===i||e instanceof Array&&t===i.filter?r:t}},function(e,t,n){n(212);var r=n(14);e.exports=r("Array").filter},function(e,t,n){var r=n(5),i=n(29).filter;r({target:"Array",proto:!0,forced:!n(52)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(214);e.exports=r},function(e,t,n){var r=n(215),i=n(217),o=Array.prototype,a=String.prototype;e.exports=function(e){var t=e.includes;return e===o||e instanceof Array&&t===o.includes?r:"string"==typeof e||e===a||e instanceof String&&t===a.includes?i:t}},function(e,t,n){n(216);var r=n(14);e.exports=r("Array").includes},function(e,t,n){var r=n(5),i=n(80).includes,o=n(88);r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,n){n(218);var r=n(14);e.exports=r("String").includes},function(e,t,n){var r=n(5),i=n(219),o=n(46);r({target:"String",proto:!0,forced:!n(221)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(220);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(13),i=n(45),o=n(9)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(9)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){var r=n(223);e.exports=r},function(e,t,n){var r=n(224),i=Function.prototype;e.exports=function(e){var t=e.bind;return e===i||e instanceof Function&&t===i.bind?r:t}},function(e,t,n){n(225);var r=n(14);e.exports=r("Function").bind},function(e,t,n){n(5)({target:"Function",proto:!0},{bind:n(226)})},function(e,t,n){var r=n(32),i=n(13),o=[].slice,a={};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),s=function(){var r=n.concat(o.call(arguments));return this instanceof s?function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)}(t,r.length,r):t.apply(e,r)};return i(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){e.exports=n(228)},function(e,t,n){var r=n(229);n(249),n(250),n(251),n(252),n(253),e.exports=r},function(e,t,n){n(230),n(67),n(231),n(233),n(234),n(235),n(236),n(122),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248);var r=n(12);e.exports=r.Symbol},function(e,t,n){var r=n(5),i=n(11),o=n(51),a=n(13),s=n(36),c=n(38),l=n(93),u=n(89),d=n(52),f=n(9),p=n(64),h=f("isConcatSpreadable"),m=p>=51||!i((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),g=d("concat"),v=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,forced:!m||!g},{concat:function(e){var t,n,r,i,o,a=s(this),d=u(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],v(o)){if(f+(i=c(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,f++)n in o&&l(d,f,o[n])}else{if(f>=9007199254740991)throw TypeError("Maximum allowed index exceeded");l(d,f++,o)}return d.length=f,d}})},function(e,t,n){var r=n(5),i=n(8),o=n(28),a=n(37),s=n(15),c=n(83),l=n(105),u=n(11),d=n(16),f=n(51),p=n(13),h=n(24),m=n(36),g=n(27),v=n(57),b=n(35),_=n(60),y=n(61),w=n(120),x=n(232),k=n(121),C=n(74),A=n(18),S=n(56),E=n(17),T=n(49),O=n(78),R=n(58),D=n(48),L=n(59),M=n(9),F=n(95),N=n(10),B=n(41),I=n(42),P=n(29).forEach,$=R("hidden"),j=M("toPrimitive"),z=I.set,q=I.getterFor("Symbol"),H=Object.prototype,U=i.Symbol,W=o("JSON","stringify"),V=C.f,G=A.f,K=x.f,Y=S.f,X=O("symbols"),Q=O("op-symbols"),J=O("string-to-symbol-registry"),Z=O("symbol-to-string-registry"),ee=O("wks"),te=i.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&u((function(){return 7!=_(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=V(H,t);r&&delete H[t],G(e,t,n),r&&e!==H&&G(H,t,r)}:G,ie=function(e,t){var n=X[e]=_(U.prototype);return z(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},oe=l?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof U},ae=function(e,t,n){e===H&&ae(Q,t,n),h(e);var r=v(t,!0);return h(n),d(X,r)?(n.enumerable?(d(e,$)&&e[$][r]&&(e[$][r]=!1),n=_(n,{enumerable:b(0,!1)})):(d(e,$)||G(e,$,b(1,{})),e[$][r]=!0),re(e,r,n)):G(e,r,n)},se=function(e,t){h(e);var n=g(t),r=y(n).concat(de(n));return P(r,(function(t){s&&!ce.call(n,t)||ae(e,t,n[t])})),e},ce=function(e){var t=v(e,!0),n=Y.call(this,t);return!(this===H&&d(X,t)&&!d(Q,t))&&(!(n||!d(this,t)||!d(X,t)||d(this,$)&&this[$][t])||n)},le=function(e,t){var n=g(e),r=v(t,!0);if(n!==H||!d(X,r)||d(Q,r)){var i=V(n,r);return!i||!d(X,r)||d(n,$)&&n[$][r]||(i.enumerable=!0),i}},ue=function(e){var t=K(g(e)),n=[];return P(t,(function(e){d(X,e)||d(D,e)||n.push(e)})),n},de=function(e){var t=e===H,n=K(t?Q:g(e)),r=[];return P(n,(function(e){!d(X,e)||t&&!d(H,e)||r.push(X[e])})),r};c||(T((U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=L(e),n=function(e){this===H&&n.call(Q,e),d(this,$)&&d(this[$],t)&&(this[$][t]=!1),re(this,t,b(1,e))};return s&&ne&&re(H,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",(function(){return q(this).tag})),T(U,"withoutSetter",(function(e){return ie(L(e),e)})),S.f=ce,A.f=ae,C.f=le,w.f=x.f=ue,k.f=de,F.f=function(e){return ie(M(e),e)},s&&(G(U.prototype,"description",{configurable:!0,get:function(){return q(this).description}}),a||T(H,"propertyIsEnumerable",ce,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:U}),P(y(ee),(function(e){N(e)})),r({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=String(e);if(d(J,t))return J[t];var n=U(t);return J[t]=n,Z[n]=t,n},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(d(Z,e))return Z[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(e,t){return void 0===t?_(e):se(_(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:le}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ue,getOwnPropertySymbols:de}),r({target:"Object",stat:!0,forced:u((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(m(e))}}),W&&r({target:"JSON",stat:!0,forced:!c||u((function(){var e=U();return"[null]"!=W([e])||"{}"!=W({a:e})||"{}"!=W(Object(e))}))},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(p(t)||void 0!==e)&&!oe(e))return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!oe(t))return t}),i[1]=t,W.apply(null,i)}}),U.prototype[j]||E(U.prototype,j,U.prototype.valueOf),B(U,"Symbol"),D[$]=!0},function(e,t,n){var r=n(27),i=n(120).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(e,t,n){n(10)("asyncIterator")},function(e,t){},function(e,t,n){n(10)("hasInstance")},function(e,t,n){n(10)("isConcatSpreadable")},function(e,t,n){n(10)("match")},function(e,t,n){n(10)("matchAll")},function(e,t,n){n(10)("replace")},function(e,t,n){n(10)("search")},function(e,t,n){n(10)("species")},function(e,t,n){n(10)("split")},function(e,t,n){n(10)("toPrimitive")},function(e,t,n){n(10)("toStringTag")},function(e,t,n){n(10)("unscopables")},function(e,t,n){var r=n(8);n(41)(r.JSON,"JSON",!0)},function(e,t){},function(e,t){},function(e,t,n){n(10)("asyncDispose")},function(e,t,n){n(10)("dispose")},function(e,t,n){n(10)("observable")},function(e,t,n){n(10)("patternMatch")},function(e,t,n){n(10)("replaceAll")},function(e,t,n){e.exports=n(255)},function(e,t,n){var r=n(256);e.exports=r},function(e,t,n){n(122),n(69),n(50);var r=n(95);e.exports=r.f("iterator")},function(e,t,n){e.exports=n(258)},function(e,t,n){var r=n(259);e.exports=r},function(e,t,n){n(260);var r=n(12);e.exports=r.parseInt},function(e,t,n){var r=n(5),i=n(261);r({global:!0,forced:parseInt!=i},{parseInt:i})},function(e,t,n){var r=n(8),i=n(91).trim,o=n(71),a=r.parseInt,s=/^[+-]?0[Xx]/,c=8!==a(o+"08")||22!==a(o+"0x16");e.exports=c?function(e,t){var n=i(String(e));return a(n,t>>>0||(s.test(n)?16:10))}:a},function(e,t,n){var r=n(263);e.exports=r},function(e,t,n){var r=n(264),i=Array.prototype;e.exports=function(e){var t=e.slice;return e===i||e instanceof Array&&t===i.slice?r:t}},function(e,t,n){n(265);var r=n(14);e.exports=r("Array").slice},function(e,t,n){var r=n(5),i=n(13),o=n(51),a=n(81),s=n(38),c=n(27),l=n(93),u=n(9),d=n(52)("slice"),f=u("species"),p=[].slice,h=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var n,r,u,d=c(this),m=s(d.length),g=a(e,m),v=a(void 0===t?m:t,m);if(o(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!o(n.prototype)?i(n)&&null===(n=n[f])&&(n=void 0):n=void 0,n===Array||void 0===n))return p.call(d,g,v);for(r=new(void 0===n?Array:n)(h(v-g,0)),u=0;g<v;g++,u++)g in d&&l(r,u,d[g]);return r.length=u,r}})},function(e,t,n){n(267);var r=n(12);e.exports=r.setTimeout},function(e,t,n){var r=n(5),i=n(8),o=n(65),a=[].slice,s=function(e){return function(t,n){var r=arguments.length>2,i=r?a.call(arguments,2):void 0;return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(o)},{setTimeout:s(i.setTimeout),setInterval:s(i.setInterval)})},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(269));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(274)),c=a.__importDefault(n(275)),l=a.__importDefault(n(123)),u=a.__importDefault(n(276)),d=a.__importDefault(n(277)),f=a.__importDefault(n(278)),p=a.__importDefault(n(279)),h=a.__importDefault(n(280)),m=a.__importDefault(n(281)),g=a.__importDefault(n(282)),v=(0,o.default)({},s.default,c.default,l.default,d.default,u.default,f.default,p.default,h.default,m.default,g.default,{linkCheck:function(e,t){return!0}});t.default=v},function(e,t,n){e.exports=n(270)},function(e,t,n){var r=n(271);e.exports=r},function(e,t,n){n(272);var r=n(12);e.exports=r.Object.assign},function(e,t,n){var r=n(5),i=n(273);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){var r=n(15),i=n(11),o=n(61),a=n(121),s=n(56),c=n(36),l=n(75),u=Object.assign,d=Object.defineProperty;e.exports=!u||i((function(){if(r&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||"abcdefghijklmnopqrst"!=o(u({},t)).join("")}))?function(e,t){for(var n=c(e),i=arguments.length,u=1,d=a.f,f=s.f;i>u;)for(var p,h=l(arguments[u++]),m=d?o(h).concat(d(h)):o(h),g=m.length,v=0;g>v;)p=m[v++],r&&!f.call(h,p)||(n[p]=h[p]);return n}:u},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={menus:["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","todo","justify","quote","emoticon","image","video","table","code","splitLine","undo","redo"],fontNames:["黑体","仿宋","楷体","标楷体","华文仿宋","华文楷体","宋体","微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"],fontSizes:{"x-small":{name:"10px",value:"1"},small:{name:"13px",value:"2"},normal:{name:"16px",value:"3"},large:{name:"18px",value:"4"},"x-large":{name:"24px",value:"5"},"xx-large":{name:"32px",value:"6"},"xxx-large":{name:"48px",value:"7"}},colors:["#000000","#ffffff","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b"],languageType:["Bash","C","C#","C++","CSS","Java","JavaScript","JSON","TypeScript","Plain text","Html","XML","SQL","Go","Kotlin","Lua","Markdown","PHP","Python","Shell Session","Ruby"],languageTab:"    ",emotions:[{title:"表情",type:"emoji",content:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣".split(/\s/)},{title:"手势",type:"emoji",content:"👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(/\s/)}],lineHeights:["1","1.15","1.6","2","2.5","3"],undoLimit:20,indentation:"2em",showMenuTooltips:!0,menuTooltipPosition:"up"}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(7);t.default={onchangeTimeout:200,onchange:null,onfocus:r.EMPTY_FN,onblur:r.EMPTY_FN,onCatalogChange:null,customAlert:function(e,t,n){window.alert(e)}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(e){return e}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={styleWithCSS:!1}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(7);t.default={linkImgCheck:function(e,t,n){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:r.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5242880,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:1e4,withCredentials:!1,customUploadImg:null}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={focus:!0,height:300,placeholder:"请输入正文",zIndexFullScreen:10002,showFullScreen:!0}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default={lang:"zh-CN",languages:{"zh-CN":{wangEditor:{"重置":"重置","插入":"插入","默认":"默认","创建":"创建","修改":"修改","如":"如","请输入正文":"请输入正文",menus:{title:{"标题":"标题","加粗":"加粗","字号":"字号","字体":"字体","斜体":"斜体","下划线":"下划线","删除线":"删除线","缩进":"缩进","行高":"行高","文字颜色":"文字颜色","背景色":"背景色","链接":"链接","序列":"序列","对齐":"对齐","引用":"引用","表情":"表情","图片":"图片","视频":"视频","表格":"表格","代码":"代码","分割线":"分割线","恢复":"恢复","撤销":"撤销","全屏":"全屏","取消全屏":"取消全屏","待办事项":"待办事项"},dropListMenu:{"设置标题":"设置标题","背景颜色":"背景颜色","文字颜色":"文字颜色","设置字号":"设置字号","设置字体":"设置字体","设置缩进":"设置缩进","对齐方式":"对齐方式","设置行高":"设置行高","序列":"序列",head:{"正文":"正文"},indent:{"增加缩进":"增加缩进","减少缩进":"减少缩进"},justify:{"靠左":"靠左","居中":"居中","靠右":"靠右","两端":"两端"},list:{"无序列表":"无序列表","有序列表":"有序列表"}},panelMenus:{emoticon:{"默认":"默认","新浪":"新浪",emoji:"emoji","手势":"手势"},image:{"上传图片":"上传图片","网络图片":"网络图片","图片地址":"图片地址","图片文字说明":"图片文字说明","跳转链接":"跳转链接"},link:{"链接":"链接","链接文字":"链接文字","取消链接":"取消链接","查看链接":"查看链接"},video:{"插入视频":"插入视频","上传视频":"上传视频"},table:{"行":"行","列":"列","的":"的","表格":"表格","添加行":"添加行","删除行":"删除行","添加列":"添加列","删除列":"删除列","设置表头":"设置表头","取消表头":"取消表头","插入表格":"插入表格","删除表格":"删除表格"},code:{"删除代码":"删除代码","修改代码":"修改代码","插入代码":"插入代码"}}},validate:{"张图片":"张图片","大于":"大于","图片链接":"图片链接","不是图片":"不是图片","返回结果":"返回结果","上传图片超时":"上传图片超时","上传图片错误":"上传图片错误","上传图片失败":"上传图片失败","插入图片错误":"插入图片错误","一次最多上传":"一次最多上传","下载链接失败":"下载链接失败","图片验证未通过":"图片验证未通过","服务器返回状态":"服务器返回状态","上传图片返回结果错误":"上传图片返回结果错误","请替换为支持的图片类型":"请替换为支持的图片类型","您插入的网络图片无法识别":"您插入的网络图片无法识别","您刚才插入的图片链接未通过编辑器校验":"您刚才插入的图片链接未通过编辑器校验","插入视频错误":"插入视频错误","视频链接":"视频链接","不是视频":"不是视频","视频验证未通过":"视频验证未通过","个视频":"个视频","上传视频超时":"上传视频超时","上传视频错误":"上传视频错误","上传视频失败":"上传视频失败","上传视频返回结果错误":"上传视频返回结果错误"}}},en:{wangEditor:{"重置":"reset","插入":"insert","默认":"default","创建":"create","修改":"edit","如":"like","请输入正文":"please enter the text",menus:{title:{"标题":"head","加粗":"bold","字号":"font size","字体":"font family","斜体":"italic","下划线":"underline","删除线":"strikethrough","缩进":"indent","行高":"line heihgt","文字颜色":"font color","背景色":"background","链接":"link","序列":"numbered list","对齐":"align","引用":"quote","表情":"emoticons","图片":"image","视频":"media","表格":"table","代码":"code","分割线":"split line","恢复":"undo","撤销":"redo","全屏":"fullscreen","取消全屏":"cancel fullscreen","待办事项":"todo"},dropListMenu:{"设置标题":"title","背景颜色":"background","文字颜色":"font color","设置字号":"font size","设置字体":"font family","设置缩进":"indent","对齐方式":"align","设置行高":"line heihgt","序列":"list",head:{"正文":"text"},indent:{"增加缩进":"indent","减少缩进":"outdent"},justify:{"靠左":"left","居中":"center","靠右":"right","两端":"justify"},list:{"无序列表":"unordered","有序列表":"ordered"}},panelMenus:{emoticon:{"表情":"emoji","手势":"gesture"},image:{"上传图片":"upload image","网络图片":"network image","图片地址":"image link","图片文字说明":"image alt","跳转链接":"hyperlink"},link:{"链接":"link","链接文字":"link text","取消链接":"unlink","查看链接":"view links"},video:{"插入视频":"insert video","上传视频":"upload local video"},table:{"行":"rows","列":"columns","的":" ","表格":"table","添加行":"insert row","删除行":"delete row","添加列":"insert column","删除列":"delete column","设置表头":"set header","取消表头":"cancel header","插入表格":"insert table","删除表格":"delete table"},code:{"删除代码":"delete code","修改代码":"edit code","插入代码":"insert code"}}},validate:{"张图片":"images","大于":"greater than","图片链接":"image link","不是图片":"is not image","返回结果":"return results","上传图片超时":"upload image timeout","上传图片错误":"upload image error","上传图片失败":"upload image failed","插入图片错误":"insert image error","一次最多上传":"once most at upload","下载链接失败":"download link failed","图片验证未通过":"image validate failed","服务器返回状态":"server return status","上传图片返回结果错误":"upload image return results error","请替换为支持的图片类型":"please replace with a supported image type","您插入的网络图片无法识别":"the network picture you inserted is not recognized","您刚才插入的图片链接未通过编辑器校验":"the image link you just inserted did not pass the editor verification","插入视频错误":"insert video error","视频链接":"video link","不是视频":"is not video","视频验证未通过":"video validate failed","个视频":"videos","上传视频超时":"upload video timeout","上传视频错误":"upload video error","上传视频失败":"upload video failed","上传视频返回结果错误":"upload video return results error"}}}}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(6);t.default={compatibleMode:function(){return!(!r.UA.isIE()&&!r.UA.isOldEdge)},historyMaxSize:30}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(7);t.default={onlineVideoCheck:function(e){return!0},onlineVideoCallback:r.EMPTY_FN,showLinkVideo:!0,uploadVideoAccept:["mp4"],uploadVideoServer:"",uploadVideoMaxSize:1073741824,uploadVideoName:"",uploadVideoParams:{},uploadVideoParamsWithUrl:!1,uploadVideoHeaders:{},uploadVideoHooks:{},uploadVideoTimeout:72e5,withVideoCredentials:!1,customUploadVideo:null,customInsertVideo:null}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(19));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3)),s=n(6),c=n(7),l=function(){function e(e){this._currentRange=null,this.editor=e}return e.prototype.getRange=function(){return this._currentRange},e.prototype.saveRange=function(e){if(e)this._currentRange=e;else{var t=window.getSelection();if(0!==t.rangeCount){var n=t.getRangeAt(0),r=this.getSelectionContainerElem(n);if((null==r?void 0:r.length)&&"false"!==r.attr("contenteditable")&&!r.parentUntil("[contenteditable=false]")){var i=this.editor,a=i.$textElem;if(a.isContain(r)){var s;if(a.elems[0]===r.elems[0]&&(0,o.default)(s=a.html()).call(s)===c.EMPTY_P){var l=a.children(),u=null==l?void 0:l.last();i.selection.createRangeByElem(u,!0,!0),i.selection.restoreSelection()}this._currentRange=n}}}}},e.prototype.collapseRange=function(e){void 0===e&&(e=!1);var t=this._currentRange;t&&t.collapse(e)},e.prototype.getSelectionText=function(){var e=this._currentRange;return e?e.toString():""},e.prototype.getSelectionContainerElem=function(e){var t,n;if(t=e||this._currentRange)return n=t.commonAncestorContainer,a.default(1===n.nodeType?n:n.parentNode)},e.prototype.getSelectionStartElem=function(e){var t,n;if(t=e||this._currentRange)return n=t.startContainer,a.default(1===n.nodeType?n:n.parentNode)},e.prototype.getSelectionEndElem=function(e){var t,n;if(t=e||this._currentRange)return n=t.endContainer,a.default(1===n.nodeType?n:n.parentNode)},e.prototype.isSelectionEmpty=function(){var e=this._currentRange;return!(!e||!e.startContainer||e.startContainer!==e.endContainer||e.startOffset!==e.endOffset)},e.prototype.restoreSelection=function(){var e=window.getSelection(),t=this._currentRange;e&&t&&(e.removeAllRanges(),e.addRange(t))},e.prototype.createEmptyRange=function(){var e,t=this.editor,n=this.getRange();if(n&&this.isSelectionEmpty())try{s.UA.isWebkit()?(t.cmd.do("insertHTML","&#8203;"),n.setEnd(n.endContainer,n.endOffset+1),this.saveRange(n)):(e=a.default("<strong>&#8203;</strong>"),t.cmd.do("insertElem",e),this.createRangeByElem(e,!0))}catch(e){}},e.prototype.createRangeByElems=function(e,t){var n=window.getSelection?window.getSelection():document.getSelection();null==n||n.removeAllRanges();var r=document.createRange();r.setStart(e,0),r.setEnd(t,t.childNodes.length||1),this.saveRange(r),this.restoreSelection()},e.prototype.createRangeByElem=function(e,t,n){if(e.length){var r=e.elems[0],i=document.createRange();n?i.selectNodeContents(r):i.selectNode(r),null!=t&&(i.collapse(t),t||(this.saveRange(i),this.editor.selection.moveCursor(r))),this.saveRange(i)}},e.prototype.getSelectionRangeTopNodes=function(){var e,t,n=null===(e=this.getSelectionStartElem())||void 0===e?void 0:e.getNodeTop(this.editor),r=null===(t=this.getSelectionEndElem())||void 0===t?void 0:t.getNodeTop(this.editor);return this.recordSelectionNodes(a.default(n),a.default(r))},e.prototype.moveCursor=function(e,t){var n,r=this.getRange(),i=3===e.nodeType?null===(n=e.nodeValue)||void 0===n?void 0:n.length:e.childNodes.length;(s.UA.isFirefox||s.UA.isIE())&&0!==i&&(3!==e.nodeType&&"BR"!==e.childNodes[i-1].nodeName||(i-=1));var o=null!=t?t:i;r&&e&&(r.setStart(e,o),r.setEnd(e,o),this.restoreSelection())},e.prototype.getCursorPos=function(){var e=window.getSelection();return null==e?void 0:e.anchorOffset},e.prototype.clearWindowSelectionRange=function(){var e=window.getSelection();e&&e.removeAllRanges()},e.prototype.recordSelectionNodes=function(e,t){for(var n=[],r=e,i=this.editor.$textElem,o=!0;o;){var s=null==r?void 0:r.getNodeTop(this.editor);"BODY"===s.getNodeName()&&(o=!1),s.length>0&&(n.push(a.default(r)),(null==t?void 0:t.equal(s))||i.equal(s)?o=!1:r=s.getNextSibling())}return n},e.prototype.setRangeToContainerElem=function(e){var t=this.getRange();null==t||t.setStart(e,0),null==t||t.setEnd(e,0)},e}();t.default=l},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(3)),i=function(){function e(e){this.editor=e}return e.prototype.do=function(e,t){var n=this.editor;n.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var r=n.selection;if(r.getRange()){switch(r.restoreSelection(),e){case"insertHTML":this.insertHTML(t);break;case"insertElem":this.insertElem(t);break;default:this.execCommand(e,t)}n.menus.changeActive(),r.saveRange(),r.restoreSelection()}},e.prototype.insertHTML=function(e){var t=this.editor,n=t.selection.getRange();if(null!=n)if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",e);else if(n.insertNode){if(n.deleteContents(),r.default(e).elems.length>0)n.insertNode(r.default(e).elems[0]);else{var i=document.createElement("p");i.appendChild(document.createTextNode(e)),n.insertNode(i)}t.selection.collapseRange()}},e.prototype.insertElem=function(e){var t=this.editor.selection.getRange();null!=t&&t.insertNode&&(t.deleteContents(),t.insertNode(e.elems[0]))},e.prototype.execCommand=function(e,t){document.execCommand(e,!1,t)},e.prototype.queryCommandValue=function(e){return document.queryCommandValue(e)},e.prototype.queryCommandState=function(e){return document.queryCommandState(e)},e.prototype.queryCommandSupported=function(e){return document.queryCommandSupported(e)},e}();t.default=i},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(30)),a=r(n(4)),s=r(n(19)),c=r(n(26));(0,i.default)(t,"__esModule",{value:!0});var l=n(2),u=l.__importDefault(n(3)),d=l.__importDefault(n(290)),f=n(6),p=l.__importDefault(n(302)),h=l.__importDefault(n(303)),m=n(7),g=function(){function e(e){this.editor=e,this.eventHooks={onBlurEvents:[],changeEvents:[],dropEvents:[],clickEvents:[],keydownEvents:[],keyupEvents:[],tabUpEvents:[],tabDownEvents:[],enterUpEvents:[],enterDownEvents:[],deleteUpEvents:[],deleteDownEvents:[],pasteEvents:[],linkClickEvents:[],codeClickEvents:[],textScrollEvents:[],toolbarClickEvents:[],imgClickEvents:[],imgDragBarMouseDownEvents:[],tableClickEvents:[],menuClickEvents:[],dropListMenuHoverEvents:[],splitLineEvents:[],videoClickEvents:[]}}return e.prototype.init=function(){this._saveRange(),this._bindEventHooks(),d.default(this)},e.prototype.togglePlaceholder=function(){var e,t=this.html(),n=(0,o.default)(e=this.editor.$textContainerElem).call(e,".placeholder");n.hide(),t&&" "!==t||n.show()},e.prototype.clear=function(){this.html(m.EMPTY_P)},e.prototype.html=function(e){var t=this.editor,n=t.$textElem;if(null==e){var r=n.html(),i=(r=(r=(r=(r=r.replace(/\u200b/gm,"")).replace(/<p><\/p>/gim,"")).replace(m.EMPTY_P_LAST_REGEX,"")).replace(m.EMPTY_P_REGEX,"<p>")).match(/<(img|br|hr|input)[^>]*>/gi);return null!==i&&(0,a.default)(i).call(i,(function(e){e.match(/\/>/)||(r=r.replace(e,e.substring(0,e.length-1)+"/>"))})),r}""===(e=(0,s.default)(e).call(e))&&(e=m.EMPTY_P),0!==(0,c.default)(e).call(e,"<")&&(e="<p>"+e+"</p>"),e=e.replace(/\s+</g,"<"),n.html(e),t.initSelection()},e.prototype.setJSON=function(e){var t=h.default(e).children(),n=this.editor.$textElem;t&&n.replaceChildAll(t)},e.prototype.getJSON=function(){var e=this.editor.$textElem;return p.default(e)},e.prototype.text=function(e){var t=this.editor,n=t.$textElem;if(null==e){var r=n.text();return r.replace(/\u200b/gm,"")}n.text("<p>"+e+"</p>"),t.initSelection()},e.prototype.append=function(e){var t=this.editor;0!==(0,c.default)(e).call(e,"<")&&(e="<p>"+e+"</p>"),this.html(this.html()+e),t.initSelection()},e.prototype._saveRange=function(){var e=this.editor,t=e.$textElem,n=u.default(document);function r(){e.selection.saveRange(),e.menus.changeActive()}function i(){r(),n.off("mouseup",i)}function o(){n.on("mouseup",i),t.off("mouseleave",o)}t.on("keyup",r),t.on("click",(function e(){r(),t.off("click",e)})),t.on("mousedown",(function(){t.on("mouseleave",o)})),t.on("mouseup",(function(n){t.off("mouseleave",o),null!==e.selection.getRange()&&r()}))},e.prototype._bindEventHooks=function(){var e=this.editor,t=e.$textElem,n=this.eventHooks;function r(e){e.preventDefault()}t.on("click",(function(e){var t=n.clickEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),t.on("keyup",(function(e){if(13===e.keyCode){var t=n.enterUpEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}})),t.on("keyup",(function(e){var t=n.keyupEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),t.on("keydown",(function(e){var t=n.keydownEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),t.on("keyup",(function(e){if(8===e.keyCode){var t=n.deleteUpEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}})),t.on("keydown",(function(e){if(8===e.keyCode){var t=n.deleteDownEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}})),t.on("paste",(function(e){if(!f.UA.isIE()){e.preventDefault();var t=n.pasteEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}})),t.on("keydown",(function(t){(e.isFocus||e.isCompatibleMode)&&(t.ctrlKey||t.metaKey)&&90===t.keyCode&&(t.preventDefault(),t.shiftKey?e.history.restore():e.history.revoke())})),t.on("keyup",(function(e){if(9===e.keyCode){e.preventDefault();var t=n.tabUpEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}})),t.on("keydown",(function(e){if(9===e.keyCode){e.preventDefault();var t=n.tabDownEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}})),t.on("scroll",f.throttle((function(e){var t=n.textScrollEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}),100)),u.default(document).on("dragleave",r).on("drop",r).on("dragenter",r).on("dragover",r),e.beforeDestroy((function(){u.default(document).off("dragleave",r).off("drop",r).off("dragenter",r).off("dragover",r)})),t.on("drop",(function(e){e.preventDefault();var t=n.dropEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),t.on("click",(function(e){var t=null,r=e.target,i=u.default(r);if("A"===i.getNodeName())t=i;else{var o=i.parentUntil("a");null!=o&&(t=o)}if(t){var s=n.linkClickEvents;(0,a.default)(s).call(s,(function(e){return e(t)}))}})),t.on("click",(function(e){var t=null,r=e.target,i=u.default(r);if("IMG"!==i.getNodeName()||i.elems[0].getAttribute("data-emoji")||(e.stopPropagation(),t=i),t){var o=n.imgClickEvents;(0,a.default)(o).call(o,(function(e){return e(t)}))}})),t.on("click",(function(e){var t=null,r=e.target,i=u.default(r);if("PRE"===i.getNodeName())t=i;else{var o=i.parentUntil("pre");null!==o&&(t=o)}if(t){var s=n.codeClickEvents;(0,a.default)(s).call(s,(function(e){return e(t)}))}})),t.on("click",(function(t){var r=null,i=t.target,o=u.default(i);if("HR"===o.getNodeName()&&(r=o),r){e.selection.createRangeByElem(r),e.selection.restoreSelection();var s=n.splitLineEvents;(0,a.default)(s).call(s,(function(e){return e(r)}))}})),e.$toolbarElem.on("click",(function(e){var t=n.toolbarClickEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),e.$textContainerElem.on("mousedown",(function(e){var t=e.target;if(u.default(t).hasClass("w-e-img-drag-rb")){var r=n.imgDragBarMouseDownEvents;(0,a.default)(r).call(r,(function(e){return e()}))}})),t.on("click",(function(t){var r,i=t.target;if(r=u.default(i).parentUntilEditor("TABLE",e,i)){var o=n.tableClickEvents;(0,a.default)(o).call(o,(function(e){return e(r)}))}})),t.on("keydown",(function(e){if(13===e.keyCode){var t=n.enterDownEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}})),t.on("click",(function(e){var t=null,r=e.target,i=u.default(r);if("VIDEO"===i.getNodeName()&&(e.stopPropagation(),t=i),t){var o=n.videoClickEvents;(0,a.default)(o).call(o,(function(e){return e(t)}))}}))},e}();t.default=g},function(e,t,n){var r=n(287);e.exports=r},function(e,t,n){var r=n(288),i=Array.prototype;e.exports=function(e){var t=e.find;return e===i||e instanceof Array&&t===i.find?r:t}},function(e,t,n){n(289);var r=n(14);e.exports=r("Array").find},function(e,t,n){var r=n(5),i=n(29).find,o=n(88),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(291)),o=r.__importDefault(n(292)),a=r.__importDefault(n(293)),s=r.__importDefault(n(294)),c=r.__importDefault(n(301));t.default=function(e){var t=e.editor,n=e.eventHooks;i.default(t,n.enterUpEvents,n.enterDownEvents),o.default(t,n.deleteUpEvents,n.deleteDownEvents),a.default(t,n.tabDownEvents),s.default(t,n.pasteEvents),c.default(t,n.imgClickEvents)}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(26));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));t.default=function(e,t,n){function r(t){var n,r=a.default("<p><br></p>");r.insertBefore(t),(0,o.default)(n=t.html()).call(n,"<img")>=0?r.remove():(e.selection.createRangeByElem(r,!0,!0),e.selection.restoreSelection(),t.remove())}t.push((function(){var t=e.$textElem,n=e.selection.getSelectionContainerElem(),i=n.parent();"<code><br></code>"!==i.html()?i.equal(t)&&("P"===n.getNodeName()&&null===n.attr("data-we-empty-p")||n.text()||r(n)):r(n)})),n.push((function(t){var n;e.selection.saveRange(null===(n=getSelection())||void 0===n?void 0:n.getRangeAt(0)),e.selection.getSelectionContainerElem().id===e.textElemId&&(t.preventDefault(),e.cmd.do("insertHTML","<p><br></p>"))}))}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(19));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=n(7),c=a.__importDefault(n(3));t.default=function(e,t,n){t.push((function(){var t,n=e.$textElem,r=(0,o.default)(t=n.html().toLowerCase()).call(t);if(!r||"<br>"===r){var i=c.default(s.EMPTY_P);n.html(" "),n.append(i),e.selection.createRangeByElem(i,!1,!0),e.selection.restoreSelection(),e.selection.moveCursor(i.getNode(),0)}})),n.push((function(t){var n,r=e.$textElem;(0,o.default)(n=r.html().toLowerCase()).call(n)!==s.EMPTY_P||t.preventDefault()}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e,t){t.push((function(){if(e.cmd.queryCommandSupported("insertHTML")){var t=e.selection.getSelectionContainerElem();if(t){var n=t.parent(),r=t.getNodeName(),i=n.getNodeName();"CODE"==r||"CODE"===i||"PRE"===i||/hljs/.test(i)?e.cmd.do("insertHTML",e.config.languageTab):e.cmd.do("insertHTML","&nbsp;&nbsp;&nbsp;&nbsp;")}}}))}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(19));(0,i.default)(t,"__esModule",{value:!0});var a=n(124),s=n(6),c=n(7);function l(e){var t=e;return t=(t=t.replace(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).replace(/<p><\/p>/gim,"<p><br></p>"),(0,o.default)(t).call(t)}t.default=function(e,t){t.push((function(t){var n=e.config,r=n.pasteFilterStyle,i=n.pasteIgnoreImg,o=n.pasteTextHandle,u=a.getPasteHtml(t,r,i),d=a.getPasteText(t);d=d.replace(/\n/gm,"<br>");var f=e.selection.getSelectionContainerElem();if(f){var p,h=null==f?void 0:f.getNodeName(),m=null==f?void 0:f.getNodeTop(e),g="";if(m.elems[0]&&(g=null==m?void 0:m.getNodeName()),"CODE"===h||"PRE"===g)return o&&s.isFunction(o)&&(d=""+(o(d)||"")),void e.cmd.do("insertHTML",(p=d,p.replace(/<br>|<br\/>/gm,"\n").replace(/<[^>]+>/gm,"")));if(c.urlRegex.test(d)&&r)return e.cmd.do("insertHTML",'<a href="'+d+'" target="_blank">'+d+"</a>");if(u)try{if(o&&s.isFunction(o)&&(u=""+(o(u)||"")),/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(u)&&r)e.cmd.do("insertHTML",""+l(d));else{var v=l(u);if(function(e){var t;if(""===e)return!1;var n=document.createElement("div");return n.innerHTML=e,"P"===(null===(t=n.firstChild)||void 0===t?void 0:t.nodeName)}(v)){var b=e.$textElem;if(e.cmd.do("insertHTML",v),b.equal(f))return void e.selection.createEmptyRange();(function(e){if(!(null==e?void 0:e.length))return!1;var t=e.elems[0];return"P"===t.nodeName&&"<br>"===t.innerHTML})(m)&&m.remove()}else e.cmd.do("insertHTML",v)}}catch(t){o&&s.isFunction(o)&&(d=""+(o(d)||"")),e.cmd.do("insertHTML",""+l(d))}}}))}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(19)),a=r(n(4)),s=r(n(73));(0,i.default)(t,"__esModule",{value:!0});var c=n(2),l=n(296),u=c.__importDefault(n(300));function d(e,t){var n;return e=(0,o.default)(n=e.toLowerCase()).call(n),!!l.IGNORE_TAGS.has(e)||!(!t||"img"!==e)}t.default=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var r=[],i="";(new u.default).parse(e,{startElement:function(e,c){if(function(e){(e=(0,o.default)(e).call(e))&&(l.EMPTY_TAGS.has(e)||(i=e))}(e),!d(e,n)){var u=l.NECESSARY_ATTRS.get(e)||[],f=[];(0,a.default)(c).call(c,(function(e){var n=e.name;"style"!==n?!1!==(0,s.default)(u).call(u,n)&&f.push(e):t||f.push(e)}));var p=function(e,t){var n="";n="<"+e;var r=[];return(0,a.default)(t).call(t,(function(e){r.push(e.name+'="'+e.value+'"')})),r.length>0&&(n=n+" "+r.join(" ")),n+(l.EMPTY_TAGS.has(e)?"/":"")+">"}(e,f);r.push(p)}},characters:function(e){e&&(d(i,n)||r.push(e))},endElement:function(e){if(!d(e,n)){var t=function(e){return"</"+e+">"}(e);r.push(t),i=""}},comment:function(e){}});var c=r.join("");return function(e){var t=/<span>(.*?)<\/span>/;return e.replace(/<span>.*?<\/span>/gi,(function(e){var n=e.match(t);return null==n?"":n[1]}))}(c)}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(125)),a=r(n(116));(0,i.default)(t,"__esModule",{value:!0}),t.TOP_LEVEL_TAGS=t.EMPTY_TAGS=t.NECESSARY_ATTRS=t.IGNORE_TAGS=void 0,t.IGNORE_TAGS=new o.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),t.NECESSARY_ATTRS=new a.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),t.EMPTY_TAGS=new o.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),t.TOP_LEVEL_TAGS=new o.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(e,t,n){var r=n(298);e.exports=r},function(e,t,n){n(299),n(67),n(69),n(50);var r=n(12);e.exports=r.Set},function(e,t,n){var r=n(117),i=n(119);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},function(e,t){function n(){}n.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(e,t){var n,r,i;t&&(this.contentHandler=t);for(var o=!1,a=this;e.length>0;)"\x3c!--"==e.substring(0,4)?-1!=(i=e.indexOf("--\x3e"))?(this.contentHandler.comment(e.substring(4,i)),e=e.substring(i+3),o=!1):o=!0:"</"==e.substring(0,2)?this.endTagRe.test(e)?(n=RegExp.lastMatch,r=RegExp.rightContext,n.replace(this.endTagRe,(function(){return a.parseEndTag.apply(a,arguments)})),e=r,o=!1):o=!0:"<"==e.charAt(0)&&(this.startTagRe.test(e)?(n=RegExp.lastMatch,r=RegExp.rightContext,n.replace(this.startTagRe,(function(){return a.parseStartTag.apply(a,arguments)})),e=r,o=!1):o=!0),o&&(-1==(i=e.indexOf("<"))?(this.contentHandler.characters(e),e=""):(this.contentHandler.characters(e.substring(0,i)),e=e.substring(i))),o=!0},parseStartTag:function(e,t,n){var r=this.parseAttributes(t,n);this.contentHandler.startElement(t,r)},parseEndTag:function(e,t){this.contentHandler.endElement(t)},parseAttributes:function(e,t){var n=this,r=[];return t.replace(this.attrRe,(function(t,i,o,a,s,c,l,u){r.push(n.parseAttribute(e,t,i,o,a,s,c,l,u))})),r},parseAttribute:function(e,t,n){var r="";return arguments[7]?r=arguments[8]:arguments[5]?r=arguments[6]:arguments[3]&&(r=arguments[4]),{name:n,value:r||arguments[3]?r:null}}},e.exports=n},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e,t){t.push((function(t){e.selection.createRangeByElem(t),e.selection.restoreSelection()}))}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=n(6),c=a.__importDefault(n(3));t.default=function e(t){var n=[],r=t.childNodes()||[];return(0,o.default)(r).call(r,(function(t){var r,i=t.nodeType;if(3===i&&(r=t.textContent||"",r=s.replaceHtmlSymbol(r)),1===i){(r=r={}).tag=t.nodeName.toLowerCase();for(var o=[],a=t.attributes,l=a.length||0,u=0;u<l;u++){var d=a[u];o.push({name:d.name,value:d.value})}r.attrs=o,r.children=e(c.default(t))}r&&n.push(r)})),n}},function(e,t,n){var r=n(0),i=r(n(94)),o=r(n(1)),a=r(n(4));(0,o.default)(t,"__esModule",{value:!0});var s=n(2).__importDefault(n(3));t.default=function e(t,n){void 0===n&&(n=document.createElement("div"));var r=n;return(0,a.default)(t).call(t,(function(t){var n,o;"string"==typeof t&&(n=document.createTextNode(t)),"object"===(0,i.default)(t)&&(n=document.createElement(t.tag),(0,a.default)(o=t.attrs).call(o,(function(e){s.default(n).attr(e.name,e.value)})),t.children&&t.children.length>0&&e(t.children,n.getRootNode())),n&&r.appendChild(n)})),s.default(r)}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(90)),a=r(n(72)),s=r(n(73)),c=r(n(4)),l=r(n(126)),u=r(n(127)),d=r(n(54)),f=r(n(53));(0,i.default)(t,"__esModule",{value:!0});var p=n(2),h=p.__importDefault(n(115)),m=p.__importDefault(n(313)),g=p.__importDefault(n(3)),v=function(){function e(e){this.editor=e,this.menuList=[],this.constructorList=m.default}return e.prototype.extend=function(e,t){t&&"function"==typeof t&&(this.constructorList[e]=t)},e.prototype.init=function(){var e,t,n=this,r=this.editor.config,i=r.excludeMenus;!1===(0,o.default)(i)&&(i=[]),r.menus=(0,a.default)(e=r.menus).call(e,(function(e){return!1===(0,s.default)(i).call(i,e)})),(0,c.default)(t=r.menus).call(t,(function(e){var t=n.constructorList[e];n._initMenuList(e,t)}));for(var u=0,d=(0,l.default)(h.default.globalCustomMenuConstructorList);u<d.length;u++){var f=d[u],p=f[0],m=f[1];this._initMenuList(p,m)}this._addToToolbar(),r.showMenuTooltips&&this._bindMenuTooltips()},e.prototype._initMenuList=function(e,t){var n;if(null!=t&&"function"==typeof t)if((0,u.default)(n=this.menuList).call(n,(function(t){return t.key===e})));else{var r=new t(this.editor);r.key=e,this.menuList.push(r)}},e.prototype._bindMenuTooltips=function(){var e=this.editor,t=e.$toolbarElem,n=e.config.menuTooltipPosition,r=g.default('<div class="w-e-menu-tooltip w-e-menu-tooltip-'+n+'">\n <div class="w-e-menu-tooltip-item-wrapper">\n <div></div>\n </div>\n </div>');r.css("visibility","hidden"),t.append(r),r.css("z-index",e.zIndex.get("tooltip"));var i=0;function o(){i&&clearTimeout(i)}function a(){o(),r.css("visibility","hidden")}t.on("mouseover",(function(s){var c,l,u=s.target,f=g.default(u);if(f.isContain(t))a();else{if(null!=f.parentUntil(".w-e-droplist"))a();else if(f.attr("data-title"))c=f.attr("data-title"),l=f;else{var p=f.parentUntil(".w-e-menu");null!=p&&(c=p.attr("data-title"),l=p)}if(c&&l){o();var h=l.getOffsetData();r.text(e.i18next.t("menus.title."+c));var m=r.getOffsetData(),v=h.left+h.width/2-m.width/2;r.css("left",v+"px"),"up"===n?r.css("top",h.top-m.height-8+"px"):"down"===n&&r.css("top",h.top+h.height+8+"px"),i=(0,d.default)((function(){r.css("visibility","visible")}),200)}else a()}})).on("mouseleave",(function(){a()}))},e.prototype._addToToolbar=function(){var e,t=this.editor.$toolbarElem;(0,c.default)(e=this.menuList).call(e,(function(e){var n=e.$elem;n&&t.append(n)}))},e.prototype.menuFind=function(e){for(var t=this.menuList,n=0,r=t.length;n<r;n++)if(t[n].key===e)return t[n];return t[0]},e.prototype.changeActive=function(){var e;(0,c.default)(e=this.menuList).call(e,(function(e){var t;(0,d.default)((0,f.default)(t=e.tryChangeActive).call(t,e),100)}))},e}();t.default=v},function(e,t,n){var r=n(306);e.exports=r},function(e,t,n){n(307);var r=n(12);e.exports=r.Object.entries},function(e,t,n){var r=n(5),i=n(308).entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},function(e,t,n){var r=n(15),i=n(61),o=n(27),a=n(56).f,s=function(e){return function(t){for(var n,s=o(t),c=i(s),l=c.length,u=0,d=[];l>u;)n=c[u++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,n){var r=n(310);e.exports=r},function(e,t,n){var r=n(311),i=Array.prototype;e.exports=function(e){var t=e.some;return e===i||e instanceof Array&&t===i.some?r:t}},function(e,t,n){n(312);var r=n(14);e.exports=r("Array").some},function(e,t,n){var r=n(5),i=n(29).some;r({target:"Array",proto:!0,forced:!n(70)("some")},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(314)),o=r.__importDefault(n(315)),a=r.__importDefault(n(320)),s=r.__importDefault(n(325)),c=r.__importDefault(n(326)),l=r.__importDefault(n(327)),u=r.__importDefault(n(328)),d=r.__importDefault(n(330)),f=r.__importDefault(n(332)),p=r.__importDefault(n(333)),h=r.__importDefault(n(336)),m=r.__importDefault(n(337)),g=r.__importDefault(n(338)),v=r.__importDefault(n(348)),b=r.__importDefault(n(362)),_=r.__importDefault(n(366)),y=r.__importDefault(n(132)),w=r.__importDefault(n(375)),x=r.__importDefault(n(377)),k=r.__importDefault(n(378)),C=r.__importDefault(n(379)),A=r.__importDefault(n(394)),S=r.__importDefault(n(399)),E=r.__importDefault(n(402));t.default={bold:i.default,head:o.default,italic:s.default,link:a.default,underline:c.default,strikeThrough:l.default,fontName:u.default,fontSize:d.default,justify:f.default,quote:p.default,backColor:h.default,foreColor:m.default,video:g.default,image:v.default,indent:b.default,emoticon:_.default,list:y.default,lineHeight:w.default,undo:x.default,redo:k.default,table:C.default,code:A.default,splitLine:S.default,todo:E.default}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(22)),o=r.__importDefault(n(3)),a=function(e){function t(t){var n=o.default('<div class="w-e-menu" data-title="加粗">\n <i class="w-e-icon-bold"></i>\n </div>');return e.call(this,n,t)||this}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("bold"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("bold")?this.active():this.unActive()},t}(i.default);t.default=a},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(26)),a=r(n(30)),s=r(n(4)),c=r(n(316)),l=r(n(73));(0,i.default)(t,"__esModule",{value:!0});var u=n(2),d=u.__importDefault(n(23)),f=u.__importDefault(n(3)),p=n(6),h=n(7),m=function(e){function t(t){var n=this,r=f.default('<div class="w-e-menu" data-title="标题"><i class="w-e-icon-header"></i></div>'),i={width:100,title:"设置标题",type:"list",list:[{$elem:f.default("<h1>H1</h1>"),value:"<h1>"},{$elem:f.default("<h2>H2</h2>"),value:"<h2>"},{$elem:f.default("<h3>H3</h3>"),value:"<h3>"},{$elem:f.default("<h4>H4</h4>"),value:"<h4>"},{$elem:f.default("<h5>H5</h5>"),value:"<h5>"},{$elem:f.default("<p>"+t.i18next.t("menus.dropListMenu.head.正文")+"</p>"),value:"<p>"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,r,t,i)||this,t.config.onCatalogChange&&(n.oldCatalogs=[],n.addListenerCatalog(),n.getCatalogs()),n}return u.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();if(n&&t.$textElem.equal(n))this.setMultilineHead(e);else{var r;if((0,o.default)(r=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(r,f.default(n).getNodeName())>-1)return;t.cmd.do("formatBlock",e)}"<p>"!==e&&this.addUidForSelectionElem()},t.prototype.addUidForSelectionElem=function(){var e=this.editor.selection.getSelectionContainerElem(),t=p.getRandomCode();f.default(e).attr("id",t)},t.prototype.addListenerCatalog=function(){var e=this;this.editor.txt.eventHooks.changeEvents.push((function(){e.getCatalogs()}))},t.prototype.getCatalogs=function(){var e=this.editor,t=this.editor.$textElem,n=e.config.onCatalogChange,r=(0,a.default)(t).call(t,"h1,h2,h3,h4,h5"),i=[];(0,s.default)(r).call(r,(function(e,t){var n=f.default(e),r=n.attr("id"),o=n.getNodeName(),a=n.text();r||(r=p.getRandomCode(),n.attr("id",r)),a&&i.push({tag:o,id:r,text:a})})),(0,c.default)(this.oldCatalogs)!==(0,c.default)(i)&&(this.oldCatalogs=i,n&&n(i))},t.prototype.setMultilineHead=function(e){var t,n,r=this,i=this.editor,o=i.selection,a=null===(t=o.getSelectionContainerElem())||void 0===t?void 0:t.elems[0],c=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],l=f.default(o.getSelectionStartElem()),u=f.default(o.getSelectionEndElem());u.elems[0].outerHTML!==f.default(h.EMPTY_P).elems[0].outerHTML||u.elems[0].nextSibling||(u=u.prev());var d=[];d.push(l.getNodeTop(i));var p=[],m=null===(n=o.getRange())||void 0===n?void 0:n.commonAncestorContainer.childNodes;null==m||(0,s.default)(m).call(m,(function(e,t){e===d[0].getNode()&&p.push(t),e===u.getNodeTop(i).getNode()&&p.push(t)}));for(var g=0;d[g].getNode()!==u.getNodeTop(i).getNode();){if(!d[g].elems[0])return;var v=f.default(d[g].next().getNode());d.push(v),g++}null==d||(0,s.default)(d).call(d,(function(t,n){if(!r.hasTag(t,c)){var i=f.default(e),o=t.parent().getNode();i.html(""+t.html()),o.insertBefore(i.getNode(),t.getNode()),t.remove()}})),o.createRangeByElems(a.children[p[0]],a.children[p[1]])},t.prototype.hasTag=function(e,t){var n,r=this;if(!e)return!1;if((0,l.default)(t).call(t,null==e?void 0:e.getNodeName()))return!0;var i=!1;return null===(n=e.children())||void 0===n||(0,s.default)(n).call(n,(function(e){i=r.hasTag(f.default(e),t)})),i},t.prototype.tryChangeActive=function(){var e=this.editor.cmd.queryCommandValue("formatBlock");/^h/i.test(e)?this.active():this.unActive()},t}(d.default);t.default=m},function(e,t,n){e.exports=n(317)},function(e,t,n){var r=n(318);e.exports=r},function(e,t,n){n(319);var r=n(12);r.JSON||(r.JSON={stringify:JSON.stringify}),e.exports=function(e,t,n){return r.JSON.stringify.apply(null,arguments)}},function(e,t,n){var r=n(5),i=n(28),o=n(11),a=i("JSON","stringify"),s=/[\uD800-\uDFFF]/g,c=/^[\uD800-\uDBFF]$/,l=/^[\uDC00-\uDFFF]$/,u=function(e,t,n){var r=n.charAt(t-1),i=n.charAt(t+1);return c.test(e)&&!l.test(i)||l.test(e)&&!c.test(r)?"\\u"+e.charCodeAt(0).toString(16):e},d=o((function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")}));a&&r({target:"JSON",stat:!0,forced:d},{stringify:function(e,t,n){var r=a.apply(null,arguments);return"string"==typeof r?r.replace(s,u):r}})},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(33)),o=r.__importDefault(n(3)),a=r.__importDefault(n(321)),s=r.__importDefault(n(129)),c=r.__importDefault(n(31)),l=r.__importDefault(n(323)),u=function(e){function t(t){var n,r=o.default('<div class="w-e-menu" data-title="链接"><i class="w-e-icon-link"></i></div>');return n=e.call(this,r,t)||this,l.default(t),n}return r.__extends(t,e),t.prototype.clickHandler=function(){var e,t=this.editor;if(this.isActive){if(!(e=t.selection.getSelectionContainerElem()))return;this.createPanel(e.text(),e.attr("href"))}else t.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(t.selection.getSelectionText(),"")},t.prototype.createPanel=function(e,t){var n=a.default(this.editor,e,t);new c.default(this,n).create()},t.prototype.tryChangeActive=function(){var e=this.editor;s.default(e)?this.active():this.unActive()},t}(i.default);t.default=u},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(19));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=n(6),c=a.__importDefault(n(3)),l=a.__importDefault(n(129)),u=n(322);t.default=function(e,t,n){var r,i=s.getRandom("input-link"),a=s.getRandom("input-text"),d=s.getRandom("btn-ok"),f=s.getRandom("btn-del"),p=l.default(e)?"inline-block":"none";function h(){if(l.default(e)){var t=e.selection.getSelectionContainerElem();t&&(e.selection.createRangeByElem(t),e.selection.restoreSelection(),r=t)}}return{width:300,height:0,tabs:[{title:e.i18next.t("menus.panelMenus.link.链接"),tpl:'<div>\n <input\n id="'+a+'"\n type="text"\n class="block"\n value="'+t+'"\n placeholder="'+e.i18next.t("menus.panelMenus.link.链接文字")+'"/>\n </td>\n <input\n id="'+i+'"\n type="text"\n class="block"\n value="'+n+'"\n placeholder="'+e.i18next.t("如")+' https://..."/>\n </td>\n <div class="w-e-button-container">\n <button type="button" id="'+d+'" class="right">\n '+e.i18next.t("插入")+'\n </button>\n <button type="button" id="'+f+'" class="gray right" style="display:'+p+'">\n '+e.i18next.t("menus.panelMenus.link.取消链接")+"\n </button>\n </div>\n </div>",events:[{selector:"#"+d,type:"click",fn:function(){var t,n,r,s;e.selection.restoreSelection();var d=e.selection.getSelectionRangeTopNodes()[0].getNode(),f=window.getSelection(),p=c.default("#"+i),m=c.default("#"+a),g=(0,o.default)(t=p.val()).call(t),v=(0,o.default)(n=m.val()).call(n),b="";f&&!(null==f?void 0:f.isCollapsed)&&(b=null===(r=u.insertHtml(f,d))||void 0===r?void 0:(0,o.default)(r).call(r));var _=null==b?void 0:b.replace(/<.*?>/g,""),y=null!==(s=null==_?void 0:_.length)&&void 0!==s?s:0;if(y<=v.length){var w=v.substring(0,y),x=v.substring(y);_===w&&(v=b+x)}if(g&&(v||(v=g),function(t,n){var r=e.config.linkCheck(t,n);if(void 0===r);else{if(!0===r)return!0;e.config.customAlert(r,"warning")}return!1}(v,g)))return function(t,n){l.default(e)?(h(),e.cmd.do("insertHTML",'<a href="'+n+'" target="_blank">'+t+"</a>")):e.cmd.do("insertHTML",'<a href="'+n+'" target="_blank">'+t+"</a>")}(v,g),!0}},{selector:"#"+f,type:"click",fn:function(){return function(){if(l.default(e)){h();var t=r.text();e.cmd.do("insertHTML","<span>"+t+"</span>")}}(),!0}}]}]}}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));function a(e,t){var n=e,r=e;do{if(n.textContent===t)break;r=n,n.parentNode&&(n=null==n?void 0:n.parentNode)}while("P"!==(null==n?void 0:n.nodeName));return r}function s(e,t){var n=e.nodeName,r="";if(3===e.nodeType)return t;if(1===e.nodeType){var i=e.getAttribute("style"),o=e.getAttribute("face"),a=e.getAttribute("color");i&&(r=r+' style="'+i+'"'),o&&(r=r+' face="'+o+'"'),a&&(r=r+' color="'+a+'"')}return"<"+(n=n.toLowerCase())+r+">"+t+"</"+n+">"}function c(e,t,n,r){var i,o=null===(i=t.textContent)||void 0===i?void 0:i.substring(n,r),a=t,c="";do{o=c=s(a,null!=o?o:""),a.parentElement&&(a=null==a?void 0:a.parentElement)}while(a.textContent!==e);return c}function l(e,t){return(0,o.default)(e).call(e,(function(e){t=s(e,t)})),t}(0,i.default)(t,"__esModule",{value:!0}),t.insertHtml=t.createPartHtml=t.makeHtmlString=t.getTopNode=void 0,t.getTopNode=a,t.makeHtmlString=s,t.createPartHtml=c,t.insertHtml=function(e,t){var n,r,i,o,u,d=e.anchorNode,f=e.focusNode,p=e.anchorOffset,h=e.focusOffset,m=null!==(n=t.textContent)&&void 0!==n?n:"",g=function(e){for(var t,n=null!==(t=e.textContent)&&void 0!==t?t:"",r=[];(null==e?void 0:e.textContent)===n;)"P"!==e.nodeName&&r.push(e),e=e.childNodes[0];return r}(t),v="",b="",_="",y=d,w=f,x=d;if(null==d?void 0:d.isEqualNode(null!=f?f:null)){var k=c(m,d,p,h);return l(g,k)}for(d&&(v=c(m,d,null!=p?p:0)),f&&(_=c(m,f,0,h)),d&&(y=a(d,m)),f&&(w=a(f,m)),x=null!==(r=null==y?void 0:y.nextSibling)&&void 0!==r?r:d;!(null==x?void 0:x.isEqualNode(null!=w?w:null));){if("#text"===(null==x?void 0:x.nodeName))b+=null==x?void 0:x.textContent;else{var C=null===(o=null===(i=null==x?void 0:x.firstChild)||void 0===i?void 0:i.parentElement)||void 0===o?void 0:o.innerHTML;x&&(b+=s(x,null!=C?C:""))}x=null!==(u=null==x?void 0:x.nextSibling)&&void 0!==u?u:x}return l(g,""+v+b+_)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(324));t.default=function(e){r.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(3)),o=r.__importDefault(n(34));t.default=function(e){var t=function(e){var t;return{showLinkTooltip:function(n){var r=[{$elem:i.default("<span>"+e.i18next.t("menus.panelMenus.link.查看链接")+"</span>"),onClick:function(e,t){var n=t.attr("href");return window.open(n,"_target"),!0}},{$elem:i.default("<span>"+e.i18next.t("menus.panelMenus.link.取消链接")+"</span>"),onClick:function(e,t){e.selection.createRangeByElem(t),e.selection.restoreSelection();var n=t.text();return e.cmd.do("insertHTML","<span>"+n+"</span>"),!0}}];(t=new o.default(e,n,r)).create()},hideLinkTooltip:function(){t&&(t.remove(),t=null)}}}(e),n=t.showLinkTooltip,r=t.hideLinkTooltip;e.txt.eventHooks.linkClickEvents.push(n),e.txt.eventHooks.clickEvents.push(r),e.txt.eventHooks.keyupEvents.push(r),e.txt.eventHooks.toolbarClickEvents.push(r),e.txt.eventHooks.menuClickEvents.push(r),e.txt.eventHooks.textScrollEvents.push(r)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(22)),o=r.__importDefault(n(3)),a=function(e){function t(t){var n=o.default('<div class="w-e-menu" data-title="斜体">\n <i class="w-e-icon-italic"></i>\n </div>');return e.call(this,n,t)||this}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("italic"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("italic")?this.active():this.unActive()},t}(i.default);t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(22)),o=r.__importDefault(n(3)),a=function(e){function t(t){var n=o.default('<div class="w-e-menu" data-title="下划线">\n <i class="w-e-icon-underline"></i>\n </div>');return e.call(this,n,t)||this}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("underline"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("underline")?this.active():this.unActive()},t}(i.default);t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(22)),o=r.__importDefault(n(3)),a=function(e){function t(t){var n=o.default('<div class="w-e-menu" data-title="删除线">\n <i class="w-e-icon-strikethrough"></i>\n </div>');return e.call(this,n,t)||this}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("strikeThrough"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},t.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},t}(i.default);t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(23)),o=r.__importDefault(n(3)),a=r.__importDefault(n(329)),s=function(e){function t(t){var n=this,r=o.default('<div class="w-e-menu" data-title="字体">\n <i class="w-e-icon-font"></i>\n </div>'),i={width:100,title:"设置字体",type:"list",list:new a.default(t.config.fontNames).getItemList(),clickHandler:function(e){n.command(e)}};return n=e.call(this,r,t,i)||this}return r.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,r=n.selection.isSelectionEmpty(),i=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=i){var o="p"!==(null==i?void 0:i.nodeName.toLowerCase()),a=(null==i?void 0:i.getAttribute("face"))===e;if(r){if(o&&!a){var s=n.selection.getSelectionRangeTopNodes();n.selection.createRangeByElem(s[0]),n.selection.moveCursor(s[0].elems[0])}n.selection.setRangeToContainerElem(i),n.selection.createEmptyRange()}n.cmd.do("fontName",e),r&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(i.default);t.default=s},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3)),s=function(){function e(e){var t=this;this.itemList=[],(0,o.default)(e).call(e,(function(e){t.itemList.push({$elem:a.default("<p style=\"font-family:'"+e+"'\">"+e+"</p>"),value:e})}))}return e.prototype.getItemList=function(){return this.itemList},e}();t.default=s},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(23)),o=r.__importDefault(n(3)),a=r.__importDefault(n(331)),s=function(e){function t(t){var n=this,r=o.default('<div class="w-e-menu" data-title="字号">\n <i class="w-e-icon-text-heigh"></i>\n </div>'),i={width:160,title:"设置字号",type:"list",list:new a.default(t.config.fontSizes).getItemList(),clickHandler:function(e){n.command(e)}};return n=e.call(this,r,t,i)||this}return r.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,r=n.selection.isSelectionEmpty(),i=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=i){var o="p"!==(null==i?void 0:i.nodeName.toLowerCase()),a=(null==i?void 0:i.getAttribute("size"))===e;if(r){if(o&&!a){var s=n.selection.getSelectionRangeTopNodes();n.selection.createRangeByElem(s[0]),n.selection.moveCursor(s[0].elems[0])}n.selection.setRangeToContainerElem(i),n.selection.createEmptyRange()}n.cmd.do("fontSize",e),r&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(i.default);t.default=s},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(3)),i=function(){function e(e){for(var t in this.itemList=[],e){var n=e[t];this.itemList.push({$elem:r.default('<p style="font-size:'+t+'">'+n.name+"</p>"),value:n.value})}}return e.prototype.getItemList=function(){return this.itemList},e}();t.default=i},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4)),a=r(n(26));(0,i.default)(t,"__esModule",{value:!0});var s=n(2),c=s.__importDefault(n(23)),l=s.__importDefault(n(3)),u=["LI"],d=["UL","BLOCKQUOTE"],f=function(e){function t(t){var n=this,r=l.default('<div class="w-e-menu" data-title="对齐"><i class="w-e-icon-paragraph-left"></i></div>'),i={width:100,title:"对齐方式",type:"list",list:[{$elem:l.default('<p>\n <i class="w-e-icon-paragraph-left w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.靠左")+"\n </p>"),value:"left"},{$elem:l.default('<p>\n <i class="w-e-icon-paragraph-center w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.居中")+"\n </p>"),value:"center"},{$elem:l.default('<p>\n <i class="w-e-icon-paragraph-right w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.靠右")+"\n </p>"),value:"right"},{$elem:l.default('<p>\n <i class="w-e-icon-paragraph-justify w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.justify.两端")+"\n </p>"),value:"justify"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,r,t,i)||this}return s.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection,r=n.getSelectionContainerElem();n.saveRange();var i=t.selection.getSelectionRangeTopNodes();if(null==r?void 0:r.length)if(this.isSpecialNode(r,i[0])||this.isSpecialTopNode(i[0])){var a=this.getSpecialNodeUntilTop(r,i[0]);if(null==a)return;l.default(a).css("text-align",e)}else(0,o.default)(i).call(i,(function(t){t.css("text-align",e)}));n.restoreSelection()},t.prototype.getSpecialNodeUntilTop=function(e,t){for(var n=e.elems[0],r=t.elems[0];null!=n;){if(-1!==(0,a.default)(u).call(u,null==n?void 0:n.nodeName))return n;if(n.parentNode===r)return n;n=n.parentNode}return n},t.prototype.isSpecialNode=function(e,t){var n=this.getSpecialNodeUntilTop(e,t);return null!=n&&-1!==(0,a.default)(u).call(u,n.nodeName)},t.prototype.isSpecialTopNode=function(e){var t;return null!=e&&-1!==(0,a.default)(d).call(d,null===(t=e.elems[0])||void 0===t?void 0:t.nodeName)},t.prototype.tryChangeActive=function(){},t}(c.default);t.default=f},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),c=a.__importDefault(n(22)),l=a.__importDefault(n(334)),u=a.__importDefault(n(335)),d=n(7),f=function(e){function t(t){var n,r=s.default('<div class="w-e-menu" data-title="引用">\n <i class="w-e-icon-quotes-left"></i>\n </div>');return n=e.call(this,r,t)||this,l.default(t),n}return a.__extends(t,e),t.prototype.clickHandler=function(){var e,t=this.editor,n=t.selection.isSelectionEmpty(),r=t.selection.getSelectionRangeTopNodes(),i=r[r.length-1];if("BLOCKQUOTE"!==this.getTopNodeName()){var a=u.default(r);a.insertAfter(i),this.delSelectNode(r);var c=null===(e=a.childNodes())||void 0===e?void 0:e.last().getNode();if(null==c)return;return c.textContent?t.selection.moveCursor(c):t.selection.moveCursor(c,0),this.tryChangeActive(),void s.default(d.EMPTY_P).insertAfter(a)}var l=s.default(i.childNodes()),f=l.length,p=i;(0,o.default)(l).call(l,(function(e){var t=s.default(e);t.insertAfter(p),p=t})),i.remove(),t.selection.moveCursor(l.elems[f-1]),this.tryChangeActive(),n&&(t.selection.collapseRange(),t.selection.restoreSelection())},t.prototype.tryChangeActive=function(){var e;"BLOCKQUOTE"===(null===(e=this.editor.selection.getSelectionRangeTopNodes()[0])||void 0===e?void 0:e.getNodeName())?this.active():this.unActive()},t.prototype.getTopNodeName=function(){var e=this.editor.selection.getSelectionRangeTopNodes()[0];return null==e?void 0:e.getNodeName()},t.prototype.delSelectNode=function(e){(0,o.default)(e).call(e,(function(e){e.remove()}))},t}(c.default);t.default=f},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=n(7),o=r.__importDefault(n(3));t.default=function(e){e.txt.eventHooks.enterDownEvents.push((function(t){var n,r=e.selection.getSelectionContainerElem(),a=e.selection.getSelectionRangeTopNodes()[0];if("BLOCKQUOTE"===(null==a?void 0:a.getNodeName())){if("BLOCKQUOTE"===r.getNodeName()){var s=null===(n=r.childNodes())||void 0===n?void 0:n.getNode();e.selection.moveCursor(s)}if(""===r.text()){t.preventDefault(),r.remove();var c=o.default(i.EMPTY_P);c.insertAfter(a),e.selection.moveCursor(c.getNode(),0)}""===a.text()&&a.remove()}}))}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));t.default=function(e){var t=a.default("<blockquote></blockquote>");return(0,o.default)(e).call(e,(function(e){t.append(e.clone(!0))})),t}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(25));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(23)),c=a.__importDefault(n(3)),l=n(6),u=function(e){function t(t){var n,r=this,i=c.default('<div class="w-e-menu" data-title="背景色">\n <i class="w-e-icon-paint-brush"></i>\n </div>'),a={width:120,title:"背景颜色",type:"inline-block",list:(0,o.default)(n=t.config.colors).call(n,(function(e){return{$elem:c.default('<i style="color:'+e+';" class="w-e-icon-paint-brush"></i>'),value:e}})),clickHandler:function(e){r.command(e)}};return r=e.call(this,i,t,a)||this}return a.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,r=n.selection.isSelectionEmpty(),i=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=i){var o="p"!==(null==i?void 0:i.nodeName.toLowerCase()),a=null==i?void 0:i.style.backgroundColor,s=l.hexToRgb(e)===a;if(r){if(o&&!s){var c=n.selection.getSelectionRangeTopNodes();n.selection.createRangeByElem(c[0]),n.selection.moveCursor(c[0].elems[0])}n.selection.createEmptyRange()}n.cmd.do("backColor",e),r&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(s.default);t.default=u},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(25));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(23)),c=a.__importDefault(n(3)),l=function(e){function t(t){var n,r=this,i=c.default('<div class="w-e-menu" data-title="文字颜色">\n <i class="w-e-icon-pencil2"></i>\n </div>'),a={width:120,title:"文字颜色",type:"inline-block",list:(0,o.default)(n=t.config.colors).call(n,(function(e){return{$elem:c.default('<i style="color:'+e+';" class="w-e-icon-pencil2"></i>'),value:e}})),clickHandler:function(e){r.command(e)}};return r=e.call(this,i,t,a)||this}return a.__extends(t,e),t.prototype.command=function(e){var t,n=this.editor,r=n.selection.isSelectionEmpty(),i=null===(t=n.selection.getSelectionContainerElem())||void 0===t?void 0:t.elems[0];if(null!=i){var o="p"!==(null==i?void 0:i.nodeName.toLowerCase()),a=(null==i?void 0:i.getAttribute("color"))===e;if(r){if(o&&!a){var s=n.selection.getSelectionRangeTopNodes();n.selection.createRangeByElem(s[0]),n.selection.moveCursor(s[0].elems[0])}n.selection.setRangeToContainerElem(i),n.selection.createEmptyRange()}var l=n.selection.getSelectionText();if("A"===i.nodeName&&i.textContent===l){var u=c.default("<span>&#8203;</span>").getNode();i.appendChild(u)}n.cmd.do("foreColor",e),r&&(n.selection.collapseRange(),n.selection.restoreSelection())}},t.prototype.tryChangeActive=function(){},t}(s.default);t.default=l},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(3)),o=r.__importDefault(n(31)),a=r.__importDefault(n(33)),s=r.__importDefault(n(339)),c=r.__importDefault(n(345)),l=function(e){function t(t){var n,r=i.default('<div class="w-e-menu" data-title="视频">\n <i class="w-e-icon-play"></i>\n </div>');return n=e.call(this,r,t)||this,c.default(t),n}return r.__extends(t,e),t.prototype.clickHandler=function(){this.createPanel("")},t.prototype.createPanel=function(e){var t=s.default(this.editor,e);new o.default(this,t).create()},t.prototype.tryChangeActive=function(){},t}(a.default);t.default=l},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(19));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=n(6),c=a.__importDefault(n(3)),l=a.__importDefault(n(340)),u=n(7);t.default=function(e,t){var n=e.config,r=new l.default(e),i=s.getRandom("input-iframe"),a=s.getRandom("btn-ok"),d=s.getRandom("input-upload"),f=s.getRandom("btn-local-ok"),p=[{title:e.i18next.t("menus.panelMenus.video.上传视频"),tpl:'<div class="w-e-up-video-container">\n <div id="'+f+'" class="w-e-up-btn">\n <i class="w-e-icon-upload2"></i>\n </div>\n <div style="display:none;">\n <input id="'+d+'" type="file" accept="video/*"/>\n </div>\n </div>',events:[{selector:"#"+f,type:"click",fn:function(){var e=c.default("#"+d).elems[0];if(!e)return!0;e.click()}},{selector:"#"+d,type:"change",fn:function(){var e=c.default("#"+d).elems[0];if(!e)return!0;var t=e.files;return t.length&&r.uploadVideo(t),!0}}]},{title:e.i18next.t("menus.panelMenus.video.插入视频"),tpl:'<div>\n <input \n id="'+i+'" \n type="text" \n class="block" \n placeholder="'+e.i18next.t("如")+':<iframe src=... ></iframe>"/>\n </td>\n <div class="w-e-button-container">\n <button type="button" id="'+a+'" class="right">\n '+e.i18next.t("插入")+"\n </button>\n </div>\n </div>",events:[{selector:"#"+a,type:"click",fn:function(){var t,n=c.default("#"+i),r=(0,o.default)(t=n.val()).call(t);if(r&&function(t){var n=e.config.onlineVideoCheck(t);return!0===n||("string"==typeof n&&e.config.customAlert(n,"error"),!1)}(r))return function(t){e.cmd.do("insertHTML",t+u.EMPTY_P),e.config.onlineVideoCallback(t)}(r),!0}}]}],h={width:300,height:0,tabs:[]};return window.FileReader&&(n.uploadVideoServer||n.customUploadVideo)&&h.tabs.push(p[0]),n.showLinkVideo&&h.tabs.push(p[1]),h}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(127)),a=r(n(53)),s=r(n(4)),c=r(n(26));(0,i.default)(t,"__esModule",{value:!0});var l=n(2),u=n(6),d=l.__importDefault(n(130)),f=l.__importDefault(n(131)),p=n(7),h=n(6),m=function(){function e(e){this.editor=e}return e.prototype.uploadVideo=function(e){var t=this;if(e.length){var n=this.editor,r=n.config,i=function(e){return n.i18next.t("validate."+e)},l=r.uploadVideoServer,p=r.uploadVideoMaxSize/1024,h=r.uploadVideoName,m=r.uploadVideoParams,g=r.uploadVideoParamsWithUrl,v=r.uploadVideoHeaders,b=r.uploadVideoHooks,_=r.uploadVideoTimeout,y=r.withVideoCredentials,w=r.customUploadVideo,x=r.uploadVideoAccept,k=[],C=[];if(u.arrForEach(e,(function(e){var t=e.name,n=e.size/1024/1024;t&&n&&(x instanceof Array?(0,o.default)(x).call(x,(function(e){return e===t.split(".")[t.split(".").length-1]}))?p<n?C.push("【"+t+"】"+i("大于")+" "+p+"M"):k.push(e):C.push("【"+t+"】"+i("不是视频")):C.push("【"+x+"】"+i("uploadVideoAccept 不是Array")))})),C.length)r.customAlert(i("视频验证未通过")+": \n"+C.join("\n"),"warning");else if(0!==k.length)if(w&&"function"==typeof w){var A;w(k,(0,a.default)(A=this.insertVideo).call(A,this))}else{var S=new FormData;if((0,s.default)(k).call(k,(function(e,t){var n=h||e.name;k.length>1&&(n+=t+1),S.append(n,e)})),l){var E=l.split("#");l=E[0];var T=E[1]||"";(0,s.default)(u).call(u,m,(function(e,t){g&&((0,c.default)(l).call(l,"?")>0?l+="&":l+="?",l=l+e+"="+t),S.append(e,t)})),T&&(l+="#"+T);var O=d.default(l,{timeout:_,formData:S,headers:v,withCredentials:!!y,beforeSend:function(e){if(b.before)return b.before(e,n,k)},onTimeout:function(e){r.customAlert(i("上传视频超时"),"error"),b.timeout&&b.timeout(e,n)},onProgress:function(e,t){var r=new f.default(n);t.lengthComputable&&(e=t.loaded/t.total,r.show(e))},onError:function(e){r.customAlert(i("上传视频错误"),"error",i("上传视频错误")+","+i("服务器返回状态")+": "+e.status),b.error&&b.error(e,n)},onFail:function(e,t){r.customAlert(i("上传视频失败"),"error",i("上传视频返回结果错误")+","+i("返回结果")+": "+t),b.fail&&b.fail(e,n,t)},onSuccess:function(e,o){if(b.customInsert){var s;b.customInsert((0,a.default)(s=t.insertVideo).call(s,t),o,n)}else{if("0"!=o.errno)return r.customAlert(i("上传视频失败"),"error",i("上传视频返回结果错误")+","+i("返回结果")+" errno="+o.errno),void(b.fail&&b.fail(e,n,o));var c=o.data;t.insertVideo(c.url),b.success&&b.success(e,n,o)}}});"string"==typeof O&&r.customAlert(O,"error")}}else r.customAlert(i("传入的文件不合法"),"warning")}},e.prototype.insertVideo=function(e){var t=this.editor,n=t.config,r=function(e,n){return void 0===n&&(n="validate."),t.i18next.t(n+e)};if(n.customInsertVideo)n.customInsertVideo(e);else{h.UA.isFirefox?t.cmd.do("insertHTML",'<p data-we-video-p="true"><video src="'+e+'" controls="controls" style="max-width:100%"></video></p><p>&#8203</p>'):t.cmd.do("insertHTML",'<video src="'+e+'" controls="controls" style="max-width:100%"></video>'+p.EMPTY_P);var i=document.createElement("video");i.onload=function(){i=null},i.onerror=function(){n.customAlert(r("插入视频错误"),"error","wangEditor: "+r("插入视频错误")+","+r("视频链接")+' "'+e+'",'+r("下载链接失败")),i=null},i.onabort=function(){return i=null},i.src=e}},e}();t.default=m},function(e,t,n){e.exports=n(342)},function(e,t,n){var r=n(343);e.exports=r},function(e,t,n){n(344);var r=n(12);e.exports=r.Date.now},function(e,t,n){n(5)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(346)),o=r.__importDefault(n(347));t.default=function(e){i.default(e),o.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var r=n(2),i=r.__importDefault(n(3)),o=r.__importDefault(n(34));function a(e){var t,n=function(t,n){return void 0===n&&(n=""),e.i18next.t(n+t)};return{showVideoTooltip:function(r){var a=[{$elem:i.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(e,t){return t.remove(),!0}},{$elem:i.default("<span>100%</span>"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}},{$elem:i.default("<span>50%</span>"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:i.default("<span>30%</span>"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:i.default("<span>"+n("重置")+"</span>"),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}}];(t=new o.default(e,r,a)).create()},hideVideoTooltip:function(){t&&(t.remove(),t=null)}}}t.createShowHideFn=a,t.default=function(e){var t=a(e),n=t.showVideoTooltip,r=t.hideVideoTooltip;e.txt.eventHooks.videoClickEvents.push(n),e.txt.eventHooks.clickEvents.push(r),e.txt.eventHooks.keyupEvents.push(r),e.txt.eventHooks.toolbarClickEvents.push(r),e.txt.eventHooks.menuClickEvents.push(r),e.txt.eventHooks.textScrollEvents.push(r),e.txt.eventHooks.changeEvents.push(r)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(6);t.default=function(e){if(r.UA.isFirefox){var t=e.txt,n=e.selection;t.eventHooks.keydownEvents.push((function(t){var r=n.getSelectionContainerElem();if(r){var i=r.getNodeTop(e),o=i.length&&i.prev().length?i.prev():null;o&&o.attr("data-we-video-p")&&0===n.getCursorPos()&&8===t.keyCode&&o.remove()}}))}}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(25));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=n(7),c=a.__importDefault(n(3)),l=a.__importDefault(n(31)),u=a.__importDefault(n(33)),d=a.__importDefault(n(349)),f=a.__importDefault(n(361)),p=function(e){function t(t){var n,r=this,i=c.default('<div class="w-e-menu" data-title="图片"><i class="w-e-icon-image"></i></div>'),a=f.default(t);return a.onlyUploadConf&&(i=a.onlyUploadConf.$elem,(0,o.default)(n=a.onlyUploadConf.events).call(n,(function(e){var t=e.type,n=e.fn||s.EMPTY_FN;i.on(t,(function(e){e.stopPropagation(),n(e)}))}))),(r=e.call(this,i,t)||this).imgPanelConfig=a,d.default(t),r}return a.__extends(t,e),t.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},t.prototype.createPanel=function(){var e=this.imgPanelConfig,t=new l.default(this,e);this.setPanel(t),t.create()},t.prototype.tryChangeActive=function(){},t}(u.default);t.default=p},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(350)),o=r.__importDefault(n(351)),a=r.__importDefault(n(352)),s=r.__importDefault(n(360));t.default=function(e){i.default(e),o.default(e),a.default(e),s.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=n(124),o=r.__importDefault(n(97));function a(e,t){if(function(e,t){for(var n,r=(null===(n=t.clipboardData)||void 0===n?void 0:n.types)||[],i=0;i<r.length;i++)if("Files"===r[i])return!0;return!1}(0,e)||!function(e,t){var n=e.config,r=n.pasteFilterStyle,o=n.pasteIgnoreImg;return!!i.getPasteHtml(t,r,o)||!!i.getPasteText(t)}(t,e)){var n=i.getPasteImgs(e);n.length&&new o.default(t).uploadImg(n)}}t.default=function(e){e.txt.eventHooks.pasteEvents.unshift((function(t){a(t,e)}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(97));t.default=function(e){e.txt.eventHooks.dropEvents.push((function(t){var n=t.dataTransfer&&t.dataTransfer.files;n&&n.length&&new r.default(e).uploadImg(n)}))}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(30)),a=r(n(353));(0,i.default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var s=n(2).__importDefault(n(3));n(358);var c=n(6);function l(e,t,n,r,i){e.attr("style","width:"+t+"px; height:"+n+"px; left:"+r+"px; top:"+i+"px;")}function u(e){var t,n=e.$textContainerElem,r=function(e,t){var n=s.default('<div class="w-e-img-drag-mask">\n <div class="w-e-img-drag-show-size"></div>\n <div class="w-e-img-drag-rb"></div>\n </div>');return n.hide(),t.append(n),n}(0,n);function i(){(0,o.default)(n).call(n,".w-e-img-drag-mask").hide()}return function(e,n){e.on("click",(function(e){e.stopPropagation()})),e.on("mousedown",".w-e-img-drag-rb",(function(r){if(r.preventDefault(),t){var i=r.clientX,c=r.clientY,u=n.getBoundingClientRect(),d=t.getBoundingClientRect(),f=d.width,p=d.height,h=d.left-u.left,m=d.top-u.top,g=f/p,v=f,b=p,_=s.default(document);_.on("mousemove",w),_.on("mouseup",x),_.on("mouseleave",y)}function y(){_.off("mousemove",w),_.off("mouseup",x)}function w(t){t.stopPropagation(),t.preventDefault(),v=f+(t.clientX-i),b=p+(t.clientY-c),v/b!=g&&(b=v/g),v=(0,a.default)(v.toFixed(2)),b=(0,a.default)(b.toFixed(2)),(0,o.default)(e).call(e,".w-e-img-drag-show-size").text(v.toFixed(2).replace(".00","")+"px * "+b.toFixed(2).replace(".00","")+"px"),l(e,v,b,h,m)}function x(){t.attr("width",v+""),t.attr("height",b+"");var n=t.getBoundingClientRect();l(e,v,b,n.left-u.left,n.top-u.top),y()}}))}(r,n),s.default(document).on("click",i),e.beforeDestroy((function(){s.default(document).off("click",i)})),{showDrag:function(e){if(c.UA.isIE())return!1;e&&function(e,t,n){var r=e.getBoundingClientRect(),i=n.getBoundingClientRect(),s=i.width.toFixed(2),c=i.height.toFixed(2);(0,o.default)(t).call(t,".w-e-img-drag-show-size").text(s+"px * "+c+"px"),l(t,(0,a.default)(s),(0,a.default)(c),i.left-r.left,i.top-r.top),t.show()}(n,r,t=e)},hideDrag:i}}t.createShowHideFn=u,t.default=function(e){var t=u(e),n=t.showDrag,r=t.hideDrag;e.txt.eventHooks.imgClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(r),e.txt.eventHooks.keyupEvents.push(r),e.txt.eventHooks.toolbarClickEvents.push(r),e.txt.eventHooks.menuClickEvents.push(r),e.txt.eventHooks.changeEvents.push(r)}},function(e,t,n){e.exports=n(354)},function(e,t,n){var r=n(355);e.exports=r},function(e,t,n){n(356);var r=n(12);e.exports=r.parseFloat},function(e,t,n){var r=n(5),i=n(357);r({global:!0,forced:parseFloat!=i},{parseFloat:i})},function(e,t,n){var r=n(8),i=n(91).trim,o=n(71),a=r.parseFloat,s=1/a(o+"-0")!=-1/0;e.exports=s?function(e){var t=i(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},function(e,t,n){var r=n(20),i=n(359);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o),e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-text-container {\n overflow: hidden;\n}\n.w-e-img-drag-mask {\n position: absolute;\n z-index: 1;\n border: 1px dashed #ccc;\n box-sizing: border-box;\n}\n.w-e-img-drag-mask .w-e-img-drag-rb {\n position: absolute;\n right: -5px;\n bottom: -5px;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: #ccc;\n cursor: se-resize;\n}\n.w-e-img-drag-mask .w-e-img-drag-show-size {\n min-width: 110px;\n height: 22px;\n line-height: 22px;\n font-size: 14px;\n color: #999;\n position: absolute;\n left: 0;\n top: 0;\n background-color: #999;\n color: #fff;\n border-radius: 2px;\n padding: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var r=n(2),i=r.__importDefault(n(3)),o=r.__importDefault(n(34));function a(e){var t,n=function(t,n){return void 0===n&&(n=""),e.i18next.t(n+t)};return{showImgTooltip:function(r){var a=[{$elem:i.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0}},{$elem:i.default("<span>30%</span>"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:i.default("<span>50%</span>"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:i.default("<span>100%</span>"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}}];a.push({$elem:i.default("<span>"+n("重置")+"</span>"),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}}),r.attr("data-href")&&a.push({$elem:i.default("<span>"+n("查看链接")+"</span>"),onClick:function(e,t){var n=t.attr("data-href");return n&&(n=decodeURIComponent(n),window.open(n,"_target")),!0}}),(t=new o.default(e,r,a)).create()},hideImgTooltip:function(){t&&(t.remove(),t=null)}}}t.createShowHideFn=a,t.default=function(e){var t=a(e),n=t.showImgTooltip,r=t.hideImgTooltip;e.txt.eventHooks.imgClickEvents.push(n),e.txt.eventHooks.clickEvents.push(r),e.txt.eventHooks.keyupEvents.push(r),e.txt.eventHooks.toolbarClickEvents.push(r),e.txt.eventHooks.menuClickEvents.push(r),e.txt.eventHooks.textScrollEvents.push(r),e.txt.eventHooks.imgDragBarMouseDownEvents.push(r),e.txt.eventHooks.changeEvents.push(r)}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(25)),a=r(n(19));(0,i.default)(t,"__esModule",{value:!0});var s=n(2),c=s.__importDefault(n(3)),l=n(6),u=s.__importDefault(n(97));t.default=function(e){var t,n=e.config,r=new u.default(e),i=l.getRandom("up-trigger-id"),s=l.getRandom("up-file-id"),d=l.getRandom("input-link-url"),f=l.getRandom("input-link-url-alt"),p=l.getRandom("input-link-url-href"),h=l.getRandom("btn-link"),m=function(t,n){return void 0===n&&(n="menus.panelMenus.image."),e.i18next.t(n+t)},g=1===n.uploadImgMaxLength?"":'multiple="multiple"',v=(0,o.default)(t=n.uploadImgAccept).call(t,(function(e){return"image/"+e})).join(","),b=function(e,t,n){return'<div class="'+e+'" data-title="'+n+'">\n <div id="'+i+'" class="w-e-up-btn">\n <i class="'+t+'"></i>\n </div>\n <div style="display:none;">\n <input id="'+s+'" type="file" '+g+' accept="'+v+'"/>\n </div>\n </div>'},_=[{selector:"#"+i,type:"click",fn:function(){var e=c.default("#"+s).elems[0];if(!e)return!0;e.click()}},{selector:"#"+s,type:"change",fn:function(){var e=c.default("#"+s).elems[0];if(!e)return!0;var t=e.files;return(null==t?void 0:t.length)&&r.uploadImg(t),!0}}],y=['<input\n id="'+d+'"\n type="text"\n class="block"\n placeholder="'+m("图片地址")+'"/>'];n.showLinkImgAlt&&y.push('\n <input\n id="'+f+'"\n type="text"\n class="block"\n placeholder="'+m("图片文字说明")+'"/>'),n.showLinkImgHref&&y.push('\n <input\n id="'+p+'"\n type="text"\n class="block"\n placeholder="'+m("跳转链接")+'"/>');var w=[{title:m("上传图片"),tpl:b("w-e-up-img-container","w-e-icon-upload2",""),events:_},{title:m("网络图片"),tpl:"<div>\n "+y.join("")+'\n <div class="w-e-button-container">\n <button type="button" id="'+h+'" class="right">'+m("插入","")+"</button>\n </div>\n </div>",events:[{selector:"#"+h,type:"click",fn:function(){var e,t,i,o,s,l,u,h=c.default("#"+d),m=(0,a.default)(e=h.val()).call(e);if(m&&(n.showLinkImgAlt&&(t=(0,a.default)(i=c.default("#"+f).val()).call(i)),n.showLinkImgHref&&(o=(0,a.default)(s=c.default("#"+p).val()).call(s)),l=m,!0===(u=n.linkImgCheck(l))||("string"==typeof u&&n.customAlert(u,"error"),0)))return r.insertImg(m,t,o),!0}}]}],x={width:300,height:0,tabs:[],onlyUploadConf:{$elem:c.default(b("w-e-menu","w-e-icon-image","图片")),events:_}};return window.FileReader&&(n.uploadImgShowBase64||n.uploadImgServer||n.customUploadImg)&&x.tabs.push(w[0]),n.showLinkImg&&(x.tabs.push(w[1]),x.onlyUploadConf=void 0),x}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),c=a.__importDefault(n(23)),l=a.__importDefault(n(363)),u=function(e){function t(t){var n=this,r=s.default('<div class="w-e-menu" data-title="缩进">\n <i class="w-e-icon-indent-increase"></i>\n </div>'),i={width:130,title:"设置缩进",type:"list",list:[{$elem:s.default('<p>\n <i class="w-e-icon-indent-increase w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.indent.增加缩进")+"\n <p>"),value:"increase"},{$elem:s.default('<p>\n <i class="w-e-icon-indent-decrease w-e-drop-list-item"></i>\n '+t.i18next.t("menus.dropListMenu.indent.减少缩进")+"\n <p>"),value:"decrease"}],clickHandler:function(e){n.command(e)}};return n=e.call(this,r,t,i)||this}return a.__extends(t,e),t.prototype.command=function(e){var t=this.editor,n=t.selection.getSelectionContainerElem();if(n&&t.$textElem.equal(n)){var r=t.selection.getSelectionRangeTopNodes();r.length>0&&(0,o.default)(r).call(r,(function(n){l.default(s.default(n),e,t)}))}else n&&n.length>0&&(0,o.default)(n).call(n,(function(n){l.default(s.default(n),e,t)}));t.selection.restoreSelection(),this.tryChangeActive()},t.prototype.tryChangeActive=function(){var e=this.editor,t=e.selection.getSelectionStartElem(),n=s.default(t).getNodeTop(e);n.length<=0||(""!=n.elems[0].style.paddingLeft?this.active():this.unActive())},t}(c.default);t.default=u},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(43)),a=r(n(19));(0,i.default)(t,"__esModule",{value:!0});var s=n(2),c=s.__importDefault(n(364)),l=s.__importDefault(n(365)),u=/^(\d+)(\w+)$/,d=/^(\d+)%$/;function f(e){var t=e.config.indentation;if("string"==typeof t){if(u.test(t)){var n,r=(0,o.default)(n=(0,a.default)(t).call(t).match(u)).call(n,1,3),i=r[0],s=r[1];return{value:Number(i),unit:s}}if(d.test(t))return{value:Number((0,a.default)(t).call(t).match(d)[1]),unit:"%"}}else if(void 0!==t.value&&t.unit)return t;return{value:2,unit:"em"}}t.default=function(e,t,n){var r=e.getNodeTop(n);/^P$/i.test(r.getNodeName())&&("increase"===t?c.default(r,f(n)):"decrease"===t&&l.default(r,f(n)))}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(43));(0,i.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.elems[0];if(""===n.style.paddingLeft)e.css("padding-left",t.value+t.unit);else{var r=n.style.paddingLeft,i=(0,o.default)(r).call(r,0,r.length-t.unit.length),a=Number(i)+t.value;e.css("padding-left",""+a+t.unit)}}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(43));(0,i.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.elems[0];if(""!==n.style.paddingLeft){var r=n.style.paddingLeft,i=(0,o.default)(r).call(r,0,r.length-t.unit.length),a=Number(i)-t.value;a>0?e.css("padding-left",""+a+t.unit):e.css("padding-left","")}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(3)),o=r.__importDefault(n(33)),a=r.__importDefault(n(31)),s=r.__importDefault(n(367)),c=function(e){function t(t){var n=i.default('<div class="w-e-menu" data-title="表情">\n <i class="w-e-icon-happy"></i>\n </div>');return e.call(this,n,t)||this}return r.__extends(t,e),t.prototype.createPanel=function(){var e=s.default(this.editor);new a.default(this,e).create()},t.prototype.clickHandler=function(){this.createPanel()},t.prototype.tryChangeActive=function(){},t}(o.default);t.default=c},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(25)),a=r(n(72)),s=r(n(19));(0,i.default)(t,"__esModule",{value:!0});var c=n(2).__importDefault(n(3));t.default=function(e){var t=e.config.emotions;function n(e){var t,n,r=[];return"image"==e.type?(r=(0,o.default)(t=e.content).call(t,(function(e){return"string"==typeof e?"":'<span title="'+e.alt+'">\n <img class="eleImg" data-emoji="'+e.alt+'" style src="'+e.src+'" alt="['+e.alt+']">\n </span>'})),r=(0,a.default)(r).call(r,(function(e){return""!==e}))):r=(0,o.default)(n=e.content).call(n,(function(e){return'<span class="eleImg" title="'+e+'">'+e+"</span>"})),r.join("").replace(/&nbsp;/g,"")}return{width:300,height:230,tabs:(0,o.default)(t).call(t,(function(t){return{title:e.i18next.t("menus.panelMenus.emoticon."+t.title),tpl:"<div>"+n(t)+"</div>",events:[{selector:".eleImg",type:"click",fn:function(t){var n,r,i=c.default(t.target);return n="IMG"===i.getNodeName()?(0,s.default)(r=i.parent().html()).call(r):"<span>"+i.html()+"</span>",e.cmd.do("insertHTML",n),!0}}]}}))}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createListHandle=t.ClassType=void 0;var r,i=n(2),o=i.__importDefault(n(3)),a=i.__importDefault(n(369)),s=i.__importDefault(n(371)),c=i.__importDefault(n(372)),l=i.__importDefault(n(373)),u=i.__importDefault(n(374));!function(e){e.Wrap="WrapListHandle",e.Join="JoinListHandle",e.StartJoin="StartJoinListHandle",e.EndJoin="EndJoinListHandle",e.Other="OtherListHandle"}(r=t.ClassType||(t.ClassType={}));var d={WrapListHandle:a.default,JoinListHandle:s.default,StartJoinListHandle:c.default,EndJoinListHandle:l.default,OtherListHandle:u.default};t.createListHandle=function(e,t,n){if(e===r.Other&&void 0===n)throw new Error("other 类需要传入 range");return e!==r.Other?new d[e](t):new d[e](t,n)};var f=function(){function e(e){this.handle=e,this.handle.exec()}return e.prototype.getSelectionRangeElem=function(){return o.default(this.handle.selectionRangeElem.get())},e}();t.default=f},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),c=n(55),l=n(44),u=function(e){function t(t){return e.call(this,t)||this}return a.__extends(t,e),t.prototype.exec=function(){var e,t=this.options,n=t.listType,r=t.listTarget,i=t.$selectionElem,a=t.$startElem,c=t.$endElem,u=[],d=null==i?void 0:i.getNodeName(),f=a.prior,p=c.prior;if(!a.prior&&!c.prior||!(null==f?void 0:f.prev().length)&&!(null==p?void 0:p.next().length)){var h;(0,o.default)(h=null==i?void 0:i.children()).call(h,(function(e){u.push(s.default(e))})),d===n?e=l.createElementFragment(u,l.createDocumentFragment(),"p"):(e=l.createElement(r),(0,o.default)(u).call(u,(function(t){e.append(t.elems[0])}))),this.selectionRangeElem.set(e),l.insertBefore(i,e,i.elems[0]),i.remove()}else{for(var m=f;m.length;)u.push(m),m=(null==p?void 0:p.equal(m))?s.default(void 0):m.next();var g=f.prev(),v=p.next();if(d===n?e=l.createElementFragment(u,l.createDocumentFragment(),"p"):(e=l.createElement(r),(0,o.default)(u).call(u,(function(t){e.append(t.elems[0])}))),g.length&&v.length){for(var b=[];v.length;)b.push(v),v=v.next();var _=l.createElement(d);(0,o.default)(b).call(b,(function(e){_.append(e.elems[0])})),s.default(_).insertAfter(i),this.selectionRangeElem.set(e),(y=i.next()).length?l.insertBefore(i,e,y.elems[0]):i.parent().elems[0].append(e)}else if(g.length){var y;this.selectionRangeElem.set(e),(y=i.next()).length?l.insertBefore(i,e,y.elems[0]):i.parent().elems[0].append(e)}else this.selectionRangeElem.set(e),l.insertBefore(i,e,i.elems[0])}},t}(c.ListHandle);t.default=u},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=function(){function e(){this._element=null}return e.prototype.set=function(e){if(e instanceof DocumentFragment){var t,n=[];(0,o.default)(t=e.childNodes).call(t,(function(e){n.push(e)})),e=n}this._element=e},e.prototype.get=function(){return this._element},e.prototype.clear=function(){this._element=null},e}();t.default=a},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),c=n(55),l=n(44),u=function(e){function t(t){return e.call(this,t)||this}return a.__extends(t,e),t.prototype.exec=function(){var e,t,n,r,i,a,c,u,d=this.options,f=d.editor,p=d.listType,h=d.listTarget,m=d.$startElem,g=d.$endElem,v=f.selection.getSelectionRangeTopNodes(),b=null==m?void 0:m.getNodeName();if(b===(null==g?void 0:g.getNodeName()))if(v.length>2)if(v.shift(),v.pop(),u=l.createElementFragment(l.filterSelectionNodes(v),l.createDocumentFragment()),b===p)null===(e=g.children())||void 0===e||(0,o.default)(e).call(e,(function(e){u.append(e)})),g.remove(),this.selectionRangeElem.set(u),m.elems[0].append(u);else{for(var _=document.createDocumentFragment(),y=document.createDocumentFragment(),w=l.getStartPoint(m);w.length;){var x=w.elems[0];w=w.next(),_.append(x)}for(var k=l.getEndPoint(g),C=[];k.length;)C.unshift(k.elems[0]),k=k.prev();(0,o.default)(C).call(C,(function(e){y.append(e)}));var A=l.createElement(h);A.append(_),A.append(u),A.append(y),u=A,this.selectionRangeElem.set(u),s.default(A).insertAfter(m),!(null===(t=m.children())||void 0===t?void 0:t.length)&&m.remove(),!(null===(n=g.children())||void 0===n?void 0:n.length)&&g.remove()}else{for(v.length=0,w=l.getStartPoint(m);w.length;)v.push(w),w=w.next();for(k=l.getEndPoint(g),C=[];k.length;)C.unshift(k),k=k.prev();v.push.apply(v,C),b===p?(u=l.createElementFragment(v,l.createDocumentFragment(),"p"),this.selectionRangeElem.set(u),l.insertBefore(m,u,g.elems[0])):(u=l.createElement(h),(0,o.default)(v).call(v,(function(e){u.append(e.elems[0])})),this.selectionRangeElem.set(u),s.default(u).insertAfter(m)),!(null===(r=m.children())||void 0===r?void 0:r.length)&&g.remove(),!(null===(i=g.children())||void 0===i?void 0:i.length)&&g.remove()}else{var S=[];for(k=l.getEndPoint(g);k.length;)S.unshift(k),k=k.prev();var E=[];for(w=l.getStartPoint(m);w.length;)E.push(w),w=w.next();if(u=l.createDocumentFragment(),v.shift(),v.pop(),(0,o.default)(E).call(E,(function(e){return u.append(e.elems[0])})),u=l.createElementFragment(l.filterSelectionNodes(v),u),(0,o.default)(S).call(S,(function(e){return u.append(e.elems[0])})),this.selectionRangeElem.set(u),b===p)m.elems[0].append(u),!(null===(a=g.children())||void 0===a?void 0:a.length)&&g.remove();else if(null===(c=g.children())||void 0===c?void 0:c.length){var T=g.children();l.insertBefore(T,u,T.elems[0])}else g.elems[0].append(u)}},t}(c.ListHandle);t.default=u},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),c=n(55),l=n(44),u=function(e){function t(t){return e.call(this,t)||this}return a.__extends(t,e),t.prototype.exec=function(){var e,t,n=this.options,r=n.editor,i=n.listType,a=n.listTarget,c=n.$startElem,u=r.selection.getSelectionRangeTopNodes(),d=null==c?void 0:c.getNodeName();u.shift();for(var f=[],p=l.getStartPoint(c);p.length;)f.push(p),p=p.next();d===i?(t=l.createDocumentFragment(),(0,o.default)(f).call(f,(function(e){return t.append(e.elems[0])})),t=l.createElementFragment(l.filterSelectionNodes(u),t),this.selectionRangeElem.set(t),c.elems[0].append(t)):(t=l.createElement(a),(0,o.default)(f).call(f,(function(e){return t.append(e.elems[0])})),t=l.createElementFragment(l.filterSelectionNodes(u),t),this.selectionRangeElem.set(t),s.default(t).insertAfter(c),!(null===(e=c.children())||void 0===e?void 0:e.length)&&c.remove())},t}(c.ListHandle);t.default=u},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),c=n(55),l=n(44),u=function(e){function t(t){return e.call(this,t)||this}return a.__extends(t,e),t.prototype.exec=function(){var e,t,n,r=this.options,i=r.editor,a=r.listType,c=r.listTarget,u=r.$endElem,d=i.selection.getSelectionRangeTopNodes(),f=null==u?void 0:u.getNodeName();d.pop();for(var p=[],h=l.getEndPoint(u);h.length;)p.unshift(h),h=h.prev();if(f===a)if(n=l.createElementFragment(l.filterSelectionNodes(d),l.createDocumentFragment()),(0,o.default)(p).call(p,(function(e){return n.append(e.elems[0])})),this.selectionRangeElem.set(n),null===(e=u.children())||void 0===e?void 0:e.length){var m=u.children();l.insertBefore(m,n,m.elems[0])}else u.elems[0].append(n);else{var g=l.filterSelectionNodes(d);g.push.apply(g,p),n=l.createElementFragment(g,l.createElement(c)),this.selectionRangeElem.set(n),s.default(n).insertBefore(u),!(null===(t=u.children())||void 0===t?void 0:t.length)&&u.remove()}},t}(c.ListHandle);t.default=u},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=n(55),o=n(44),a=function(e){function t(t,n){var r=e.call(this,t)||this;return r.range=n,r}return r.__extends(t,e),t.prototype.exec=function(){var e=this.options,t=e.editor,n=e.listTarget,r=t.selection.getSelectionRangeTopNodes(),i=o.createElementFragment(o.filterSelectionNodes(r),o.createElement(n));this.selectionRangeElem.set(i),this.range.insertNode(i)},t}(i.ListHandle);t.default=a},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4)),a=r(n(26));(0,i.default)(t,"__esModule",{value:!0});var s=n(2),c=s.__importDefault(n(23)),l=s.__importDefault(n(3)),u=s.__importDefault(n(376)),d=n(6),f=function(e){function t(t){var n=this,r=l.default('<div class="w-e-menu" data-title="行高">\n <i class="w-e-icon-row-height"></i>\n </div>'),i={width:100,title:"设置行高",type:"list",list:new u.default(t,t.config.lineHeights).getItemList(),clickHandler:function(e){t.selection.saveRange(),n.command(e)}};return n=e.call(this,r,t,i)||this}return s.__extends(t,e),t.prototype.command=function(e){var t,n=this,r=window.getSelection?window.getSelection():document.getSelection(),i=["P"],s=this.editor,c="";s.selection.restoreSelection();var u=l.default(s.selection.getSelectionContainerElem());if(null==u?void 0:u.length){var f=l.default(s.selection.getSelectionContainerElem()),p=l.default(s.selection.getSelectionStartElem()).elems[0],h="",m=[],g="";if(u&&s.$textElem.equal(u)){if(d.UA.isIE())return;var v=[],b=[],_=[],y=l.default(s.selection.getSelectionStartElem()),w=l.default(s.selection.getSelectionEndElem()),x=null===(t=s.selection.getRange())||void 0===t?void 0:t.commonAncestorContainer.childNodes;b.push(this.getDom(y.elems[0])),null==x||(0,o.default)(x).call(x,(function(e,t){e===n.getDom(y.elems[0])&&v.push(t),e===n.getDom(w.elems[0])&&v.push(t)}));var k=0,C=void 0;for(_.push(this.getDom(y.elems[0]));b[k]!==this.getDom(w.elems[0]);)C=l.default(b[k].nextElementSibling).elems[0],-1!==(0,a.default)(i).call(i,l.default(C).getNodeName())?(_.push(C),b.push(C)):b.push(C),k++;if("P"!==l.default(b[0]).getNodeName()){k=0;for(var A=0;A<b.length;A++)if("P"===l.default(b[A]).getNodeName()){k=A;break}if(0===k)return;for(var S=0;S!==k;)b.shift(),S++}return this.setRange(b[0],b[b.length-1]),(0,o.default)(b).call(b,(function(t){h=t.getAttribute("style"),m=h?h.split(";"):[],g="","P"===l.default(t).getNodeName()?(g=e?n.styleProcessing(m)+"line-height:"+e+";":n.styleProcessing(m),c=c+"<"+l.default(t).getNodeName().toLowerCase()+' style="'+g+'">'+t.innerHTML+"</"+l.default(t).getNodeName().toLowerCase()+">"):(g=n.styleProcessing(m),c=c+"<"+l.default(t).getNodeName().toLowerCase()+' style="'+g+'">'+t.innerHTML+"</"+l.default(t).getNodeName().toLowerCase()+">")})),this.action(c,s),p=f.elems[0],void this.setRange(p.children[v[0]],p.children[v[1]])}p=this.getDom(p),-1!==(0,a.default)(i).call(i,l.default(p).getNodeName())&&(h=p.getAttribute("style"),m=h?h.split(";"):[],null==r||r.selectAllChildren(p),s.selection.saveRange(),e?(g=h?this.styleProcessing(m)+"line-height:"+e+";":"line-height:"+e+";",c="<"+l.default(p).getNodeName().toLowerCase()+' style="'+g+'">'+p.innerHTML+"</"+l.default(p).getNodeName().toLowerCase()+">","BLOCKQUOTE"===l.default(p).getNodeName()?l.default(p).css("line-height",e):this.action(c,s)):h&&(g=this.styleProcessing(m),c=""===g?"<"+l.default(p).getNodeName().toLowerCase()+">"+p.innerHTML+"</"+l.default(p).getNodeName().toLowerCase()+">":"<"+l.default(p).getNodeName().toLowerCase()+' style="'+g+'">'+p.innerHTML+"</"+l.default(p).getNodeName().toLowerCase()+">",this.action(c,s)))}},t.prototype.getDom=function(e){var t=l.default(e).elems[0];return t.parentNode?function e(t,n){var r=l.default(t.parentNode);return n.$textElem.equal(r)?t:e(r.elems[0],n)}(t,this.editor):t},t.prototype.action=function(e,t){t.cmd.do("insertHTML",e)},t.prototype.styleProcessing=function(e){var t="";return(0,o.default)(e).call(e,(function(e){""!==e&&-1===(0,a.default)(e).call(e,"line-height")&&(t=t+e+";")})),t},t.prototype.setRange=function(e,t){var n=this.editor,r=window.getSelection?window.getSelection():document.getSelection();null==r||r.removeAllRanges();var i=document.createRange(),o=e,a=t;i.setStart(o,0),i.setEnd(a,1),null==r||r.addRange(i),n.selection.saveRange(),null==r||r.removeAllRanges(),n.selection.restoreSelection()},t.prototype.tryChangeActive=function(){var e=this.editor,t=e.selection.getSelectionContainerElem();if(!t||!e.$textElem.equal(t)){var n=l.default(e.selection.getSelectionStartElem());if(0!==n.length){var r=(n=this.getDom(n.elems[0])).getAttribute("style")?n.getAttribute("style"):"";r&&-1!==(0,a.default)(r).call(r,"line-height")?this.active():this.unActive()}}},t}(c.default);t.default=f},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3)),s=function(){function e(e,t){var n=this;this.itemList=[{$elem:a.default("<span>"+e.i18next.t("默认")+"</span>"),value:""}],(0,o.default)(t).call(t,(function(e){n.itemList.push({$elem:a.default("<span>"+e+"</span>"),value:e})}))}return e.prototype.getItemList=function(){return this.itemList},e}();t.default=s},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(3)),o=function(e){function t(t){var n=i.default('<div class="w-e-menu" data-title="撤销">\n <i class="w-e-icon-undo"></i>\n </div>');return e.call(this,n,t)||this}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;e.history.revoke();var t=e.$textElem.children();if(null==t?void 0:t.length){var n=t.last();e.selection.createRangeByElem(n,!1,!0),e.selection.restoreSelection()}},t.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},t}(r.__importDefault(n(22)).default);t.default=o},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(3)),o=function(e){function t(t){var n=i.default('<div class="w-e-menu" data-title="恢复">\n <i class="w-e-icon-redo"></i>\n </div>');return e.call(this,n,t)||this}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;e.history.restore();var t=e.$textElem.children();if(null==t?void 0:t.length){var n=t.last();e.selection.createRangeByElem(n,!1,!0),e.selection.restoreSelection()}},t.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},t}(r.__importDefault(n(22)).default);t.default=o},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(33)),o=r.__importDefault(n(3)),a=r.__importDefault(n(380)),s=r.__importDefault(n(31)),c=r.__importDefault(n(389)),l=function(e){function t(t){var n,r=o.default('<div class="w-e-menu" data-title="表格"><i class="w-e-icon-table2"></i></div>');return n=e.call(this,r,t)||this,c.default(t),n}return r.__extends(t,e),t.prototype.clickHandler=function(){this.createPanel()},t.prototype.createPanel=function(){var e=a.default(this.editor);new s.default(this,e).create()},t.prototype.tryChangeActive=function(){},t}(i.default);t.default=l},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(381));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=n(6),c=a.__importDefault(n(3));n(386);var l=a.__importDefault(n(388));function u(e){return e>0&&(0,o.default)(e)}t.default=function(e){var t=new l.default(e),n=s.getRandom("w-col-id"),r=s.getRandom("w-row-id"),i=s.getRandom("btn-link"),o="menus.panelMenus.table.",a=function(t){return e.i18next.t(t)},d=[{title:a(o+"插入表格"),tpl:'<div>\n <div class="w-e-table">\n <span>'+a("创建")+'</span>\n <input id="'+r+'" type="text" class="w-e-table-input" value="5"/></td>\n <span>'+a(o+"行")+'</span>\n <input id="'+n+'" type="text" class="w-e-table-input" value="5"/></td>\n <span>'+(a(o+"列")+a(o+"的")+a(o+"表格"))+'</span>\n </div>\n <div class="w-e-button-container">\n <button type="button" id="'+i+'" class="right">'+a("插入")+"</button>\n </div>\n </div>",events:[{selector:"#"+i,type:"click",fn:function(){var i=Number(c.default("#"+n).val()),o=Number(c.default("#"+r).val());return u(o)&&u(i)?(t.createAction(o,i),!0):(e.config.customAlert("表格行列请输入正整数","warning"),!1)}}]}],f={width:330,height:0,tabs:[]};return f.tabs.push(d[0]),f}},function(e,t,n){e.exports=n(382)},function(e,t,n){var r=n(383);e.exports=r},function(e,t,n){n(384);var r=n(12);e.exports=r.Number.isInteger},function(e,t,n){n(5)({target:"Number",stat:!0},{isInteger:n(385)})},function(e,t,n){var r=n(13),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var r=n(20),i=n(387);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o),e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-table {\n display: flex;\n}\n.w-e-table .w-e-table-input {\n width: 40px;\n text-align: center!important;\n margin: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=n(7),o=r.__importDefault(n(3)),a=function(){function e(e){this.editor=e}return e.prototype.createAction=function(e,t){var n=this.editor,r=o.default(n.selection.getSelectionContainerElem()),i=o.default(r.elems[0]).parentUntilEditor("UL",n),a=o.default(r.elems[0]).parentUntilEditor("OL",n);if(!i&&!a){var s=this.createTableHtml(e,t);n.cmd.do("insertHTML",s)}},e.prototype.createTableHtml=function(e,t){for(var n="",r="",o=0;o<e;o++){r="";for(var a=0;a<t;a++)r+=0===o?"<th></th>":"<td></td>";n=n+"<tr>"+r+"</tr>"}return'<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+n+"</tbody></table>"+i.EMPTY_P},e}();t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(390)),o=r.__importDefault(n(393));t.default=function(e){i.default(e),o.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(3)),o=r.__importDefault(n(34)),a=r.__importDefault(n(391)),s=r.__importDefault(n(392)),c=n(7);function l(e){var t=e.selection.getSelectionStartElem(),n=e.selection.getSelectionEndElem();return(null==t?void 0:t.elems[0])!==(null==n?void 0:n.elems[0])}function u(e,t){return"<br>"===e.elems[0].nextSibling.innerHTML&&(t+=""+c.EMPTY_P),t}t.default=function(e){var t=function(e){var t;return{showTableTooltip:function(n){var r=new s.default(e),d=function(t,n){return void 0===n&&(n="menus.panelMenus.table."),e.i18next.t(n+t)},f=[{$elem:i.default("<span>"+d("删除表格")+"</span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",c.EMPTY_P),!0}},{$elem:i.default("<span>"+d("添加行")+"</span>"),onClick:function(e,t){if(l(e))return!0;var n=i.default(e.selection.getSelectionStartElem()),o=r.getRowNode(n.elems[0]);if(!o)return!0;var s=Number(r.getCurrentRowIndex(t.elems[0],o)),c=r.getTableHtml(t.elems[0]),d=r.getTableHtml(a.default.ProcessingRow(i.default(c),s).elems[0]);return d=u(t,d),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",d),!0}},{$elem:i.default("<span>"+d("删除行")+"</span>"),onClick:function(e,t){if(l(e))return!0;var n=i.default(e.selection.getSelectionStartElem()),o=r.getRowNode(n.elems[0]);if(!o)return!0;var s=Number(r.getCurrentRowIndex(t.elems[0],o)),d=r.getTableHtml(t.elems[0]),f=a.default.DeleteRow(i.default(d),s).elems[0].childNodes[0].childNodes.length,p="";return e.selection.createRangeByElem(t),e.selection.restoreSelection(),p=u(t,p=0===f?c.EMPTY_P:r.getTableHtml(a.default.DeleteRow(i.default(d),s).elems[0])),e.cmd.do("insertHTML",p),!0}},{$elem:i.default("<span>"+d("添加列")+"</span>"),onClick:function(e,t){if(l(e))return!0;var n=i.default(e.selection.getSelectionStartElem()),o=r.getCurrentColIndex(n.elems[0]),s=r.getTableHtml(t.elems[0]),c=r.getTableHtml(a.default.ProcessingCol(i.default(s),o).elems[0]);return c=u(t,c),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",c),!0}},{$elem:i.default("<span>"+d("删除列")+"</span>"),onClick:function(e,t){if(l(e))return!0;var n=i.default(e.selection.getSelectionStartElem()),o=r.getCurrentColIndex(n.elems[0]),s=r.getTableHtml(t.elems[0]),d=a.default.DeleteCol(i.default(s),o).elems[0].childNodes[0].childNodes[0].childNodes.length,f="";return e.selection.createRangeByElem(t),e.selection.restoreSelection(),f=u(t,f=1===d?c.EMPTY_P:r.getTableHtml(a.default.DeleteCol(i.default(s),o).elems[0])),e.cmd.do("insertHTML",f),!0}},{$elem:i.default("<span>"+d("设置表头")+"</span>"),onClick:function(e,t){if(l(e))return!0;var n=i.default(e.selection.getSelectionStartElem()),o=r.getRowNode(n.elems[0]);if(!o)return!0;var s=Number(r.getCurrentRowIndex(t.elems[0],o));0!==s&&(s=0);var c=r.getTableHtml(t.elems[0]),d=r.getTableHtml(a.default.setTheHeader(i.default(c),s,"th").elems[0]);return d=u(t,d),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",d),!0}},{$elem:i.default("<span>"+d("取消表头")+"</span>"),onClick:function(e,t){var n=i.default(e.selection.getSelectionStartElem()),o=r.getRowNode(n.elems[0]);if(!o)return!0;var s=Number(r.getCurrentRowIndex(t.elems[0],o));0!==s&&(s=0);var c=r.getTableHtml(t.elems[0]),l=r.getTableHtml(a.default.setTheHeader(i.default(c),s,"td").elems[0]);return l=u(t,l),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",l),!0}}];(t=new o.default(e,n,f)).create()},hideTableTooltip:function(){t&&(t.remove(),t=null)}}}(e),n=t.showTableTooltip,r=t.hideTableTooltip;e.txt.eventHooks.tableClickEvents.push(n),e.txt.eventHooks.clickEvents.push(r),e.txt.eventHooks.keyupEvents.push(r),e.txt.eventHooks.toolbarClickEvents.push(r),e.txt.eventHooks.menuClickEvents.push(r),e.txt.eventHooks.textScrollEvents.push(r)}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(43)),a=r(n(92)),s=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var c=n(2).__importDefault(n(3));function l(e,t){for(;0!==e.childNodes.length;)e.removeChild(e.childNodes[0]);for(var n=0;n<t.length;n++)e.appendChild(t[n])}function u(e){var t=e.elems[0].childNodes[0];return"COLGROUP"===t.nodeName&&(t=e.elems[0].childNodes[e.elems[0].childNodes.length-1]),t}t.default={ProcessingRow:function(e,t){for(var n=u(e),r=(0,o.default)(Array.prototype).apply(n.childNodes),i=r[0].childNodes.length,s=document.createElement("tr"),d=0;d<i;d++){var f=document.createElement("td");s.appendChild(f)}return(0,a.default)(r).call(r,t+1,0,s),l(n,r),c.default(n.parentNode)},ProcessingCol:function(e,t){for(var n=u(e),r=(0,o.default)(Array.prototype).apply(n.childNodes),i=function(e){var n,i=[];for((0,s.default)(n=r[e].childNodes).call(n,(function(e){i.push(e)}));0!==r[e].childNodes.length;)r[e].removeChild(r[e].childNodes[0]);var o="TH"!==c.default(i[0]).getNodeName()?document.createElement("td"):document.createElement("th");(0,a.default)(i).call(i,t+1,0,o);for(var l=0;l<i.length;l++)r[e].appendChild(i[l])},d=0;d<r.length;d++)i(d);return l(n,r),c.default(n.parentNode)},DeleteRow:function(e,t){var n=u(e),r=(0,o.default)(Array.prototype).apply(n.childNodes);return(0,a.default)(r).call(r,t,1),l(n,r),c.default(n.parentNode)},DeleteCol:function(e,t){for(var n=u(e),r=(0,o.default)(Array.prototype).apply(n.childNodes),i=function(e){var n,i=[];for((0,s.default)(n=r[e].childNodes).call(n,(function(e){i.push(e)}));0!==r[e].childNodes.length;)r[e].removeChild(r[e].childNodes[0]);(0,a.default)(i).call(i,t,1);for(var o=0;o<i.length;o++)r[e].appendChild(i[o])},d=0;d<r.length;d++)i(d);return l(n,r),c.default(n.parentNode)},setTheHeader:function(e,t,n){for(var r=u(e),i=(0,o.default)(Array.prototype).apply(r.childNodes),d=i[t].childNodes,f=document.createElement("tr"),p=function(e){var t,r=document.createElement(n);(0,s.default)(t=d[e].childNodes).call(t,(function(e){r.appendChild(e)})),f.appendChild(r)},h=0;h<d.length;h++)p(h);return(0,a.default)(i).call(i,t,1,f),l(r,i),c.default(r.parentNode)}}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3)),s=function(){function e(e){this.editor=e}return e.prototype.getRowNode=function(e){var t,n=a.default(e).elems[0];return n.parentNode?n=null===(t=a.default(n).parentUntil("TR",n))||void 0===t?void 0:t.elems[0]:n},e.prototype.getCurrentRowIndex=function(e,t){var n,r=0,i=e.childNodes[0];return"COLGROUP"===i.nodeName&&(i=e.childNodes[e.childNodes.length-1]),(0,o.default)(n=i.childNodes).call(n,(function(e,n){e===t&&(r=n)})),r},e.prototype.getCurrentColIndex=function(e){var t,n,r=0,i="TD"===a.default(e).getNodeName()||"TH"===a.default(e).getNodeName()?e:null===(n=a.default(e).parentUntil("TD",e))||void 0===n?void 0:n.elems[0],s=a.default(i).parent();return(0,o.default)(t=s.elems[0].childNodes).call(t,(function(e,t){e===i&&(r=t)})),r},e.prototype.getTableHtml=function(e){return'<table border="0" width="100%" cellpadding="0" cellspacing="0">'+a.default(e).html()+"</table>"},e}();t.default=s},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.txt,n=e.selection;t.eventHooks.keydownEvents.push((function(t){e.selection.saveRange();var r=n.getSelectionContainerElem();if(r){var i=r.getNodeTop(e),o=i.length&&i.prev().length?i.prev():null;o&&"TABLE"===o.getNodeName()&&0===n.getCursorPos()&&8===t.keyCode&&t.preventDefault()}}))}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(25));(0,i.default)(t,"__esModule",{value:!0}),t.formatCodeHtml=void 0;var a=n(2),s=a.__importDefault(n(33)),c=a.__importDefault(n(3)),l=n(6),u=a.__importDefault(n(395)),d=a.__importDefault(n(133)),f=a.__importDefault(n(31)),p=a.__importDefault(n(396));t.formatCodeHtml=function(e,t){return t?(t=function(e){var t=e.match(/<pre[\s|\S]+?\/pre>/g);return null===t||(0,o.default)(t).call(t,(function(t){e=e.replace(t,t.replace(/<\/code><code>/g,"\n").replace(/<br>/g,""))})),e}(t=function e(t){var n,r=t.match(/<span\sclass="hljs[\s|\S]+?\/span>/gm);if(!r||!r.length)return t;for(var i=(0,o.default)(n=l.deepClone(r)).call(n,(function(e){return(e=e.replace(/<span\sclass="hljs[^>]+>/,"")).replace(/<\/span>/,"")})),a=0;a<r.length;a++)t=t.replace(r[a],i[a]);return e(t)}(t)),t=l.replaceSpecialSymbol(t)):t};var h=function(e){function t(t){var n,r=c.default('<div class="w-e-menu" data-title="代码"><i class="w-e-icon-terminal"></i></div>');return n=e.call(this,r,t)||this,p.default(t),n}return a.__extends(t,e),t.prototype.insertLineCode=function(e){var t=this.editor,n=c.default("<code>"+e+"</code>");t.cmd.do("insertElem",n),t.selection.createRangeByElem(n,!1),t.selection.restoreSelection()},t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getSelectionText();this.isActive||(e.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(t))},t.prototype.createPanel=function(e,t){var n=u.default(this.editor,e,t);new f.default(this,n).create()},t.prototype.tryChangeActive=function(){var e=this.editor;d.default(e)?this.active():this.unActive()},t}(s.default);t.default=h},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(25));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=n(6),c=a.__importDefault(n(3)),l=a.__importDefault(n(133)),u=n(7);t.default=function(e,t,n){var r,i=s.getRandom("input-iframe"),a=s.getRandom("select"),d=s.getRandom("btn-ok");function f(t){l.default(e)&&function(){if(l.default(e)){var t=e.selection.getSelectionStartElem(),n=null==t?void 0:t.getNodeTop(e);n&&(e.selection.createRangeByElem(n),e.selection.restoreSelection())}}(),e.cmd.do("insertHTML",t);var n=e.selection.getSelectionStartElem(),r=null==n?void 0:n.getNodeTop(e);c.default(u.EMPTY_P).insertAfter(r)}var p=function(t){return e.i18next.t(t)};return{width:500,height:0,tabs:[{title:p("menus.panelMenus.code.插入代码"),tpl:'<div>\n <select name="" id="'+a+'">\n '+(0,o.default)(r=e.config.languageType).call(r,(function(e){return"<option "+(n==e?"selected":"")+' value ="'+e+'">'+e+"</option>"}))+'\n </select>\n <textarea id="'+i+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+t.replace(/&quot;/g,'"')+'</textarea>\n <div class="w-e-button-container">\n <button type="button" id="'+d+'" class="right">'+(l.default(e)?p("修改"):p("插入"))+"</button>\n </div>\n </div>",events:[{selector:"#"+d,type:"click",fn:function(){var t,n=document.getElementById(i),r=c.default("#"+a).val(),o=n.value;if(t=e.highlight?e.highlight.highlightAuto(o).value:"<xmp>"+o+"</xmp>",o)return!l.default(e)&&(f('<pre><code class="'+r+'">'+t+"</code></pre>"),!0)}}]}]}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(397)),o=r.__importDefault(n(398));t.default=function(e){i.default(e),o.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var r=n(2),i=r.__importDefault(n(3)),o=r.__importDefault(n(34));function a(e){var t;return{showCodeTooltip:function(n){var r,a,s=[{$elem:i.default("<span>"+(r="删除代码",void 0===a&&(a="menus.panelMenus.code."),e.i18next.t(a+r)+"</span>")),onClick:function(e,t){return t.remove(),!0}}];(t=new o.default(e,n,s)).create()},hideCodeTooltip:function(){t&&(t.remove(),t=null)}}}t.createShowHideFn=a,t.default=function(e){var t=a(e),n=t.showCodeTooltip,r=t.hideCodeTooltip;e.txt.eventHooks.codeClickEvents.push(n),e.txt.eventHooks.clickEvents.push(r),e.txt.eventHooks.toolbarClickEvents.push(r),e.txt.eventHooks.menuClickEvents.push(r),e.txt.eventHooks.textScrollEvents.push(r)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=n(7),o=r.__importDefault(n(3));t.default=function(e){var t=e.$textElem,n=e.selection,r=e.txt.eventHooks.keydownEvents;r.push((function(e){var r;if(40===e.keyCode){var a=n.getSelectionContainerElem(),s=null===(r=t.children())||void 0===r?void 0:r.last();if("XMP"===(null==a?void 0:a.elems[0].tagName)&&"PRE"===(null==s?void 0:s.elems[0].tagName)){var c=o.default(i.EMPTY_P);t.append(c)}}})),r.push((function(t){e.selection.saveRange();var r=n.getSelectionContainerElem();if(r){var i=r.getNodeTop(e),o=null==i?void 0:i.prev(),a=null==i?void 0:i.getNextSibling();o.length&&"PRE"===(null==o?void 0:o.getNodeName())&&0===a.length&&0===n.getCursorPos()&&8===t.keyCode&&t.preventDefault()}}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(22)),o=r.__importDefault(n(3)),a=r.__importDefault(n(400)),s=n(6),c=n(7),l=function(e){function t(t){var n,r=o.default('<div class="w-e-menu" data-title="分割线"><i class="w-e-icon-split-line"></i></div>');return n=e.call(this,r,t)||this,a.default(t),n}return r.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getRange(),n=e.selection.getSelectionContainerElem();if(null==n?void 0:n.length){var r=o.default(n.elems[0]),i=r.parentUntil("TABLE",n.elems[0]),a=r.children();"CODE"!==r.getNodeName()&&(i&&"TABLE"===o.default(i.elems[0]).getNodeName()||(!a||0===a.length||"IMG"!==o.default(a.elems[0]).getNodeName()||(null==t?void 0:t.collapsed))&&this.createSplitLine())}},t.prototype.createSplitLine=function(){var e="<hr/>"+c.EMPTY_P;s.UA.isFirefox&&(e="<hr/><p></p>"),this.editor.cmd.do("insertHTML",e)},t.prototype.tryChangeActive=function(){},t}(i.default);t.default=l},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(401));t.default=function(e){r.default(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(3)),o=r.__importDefault(n(34));t.default=function(e){var t=function(e){var t;return{showSplitLineTooltip:function(n){var r=[{$elem:i.default("<span>"+e.i18next.t("menus.panelMenus.删除")+"</span>"),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0}}];(t=new o.default(e,n,r)).create()},hideSplitLineTooltip:function(){t&&(t.remove(),t=null)}}}(e),n=t.showSplitLineTooltip,r=t.hideSplitLineTooltip;e.txt.eventHooks.splitLineEvents.push(n),e.txt.eventHooks.clickEvents.push(r),e.txt.eventHooks.keyupEvents.push(r),e.txt.eventHooks.toolbarClickEvents.push(r),e.txt.eventHooks.menuClickEvents.push(r),e.txt.eventHooks.textScrollEvents.push(r)}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),c=a.__importDefault(n(22)),l=n(98),u=a.__importDefault(n(408)),d=a.__importDefault(n(134)),f=function(e){function t(t){var n,r=s.default('<div class="w-e-menu" data-title="待办事项">\n <i class="w-e-icon-checkbox-checked"></i>\n </div>');return n=e.call(this,r,t)||this,u.default(t),n}return a.__extends(t,e),t.prototype.clickHandler=function(){var e=this.editor;l.isAllTodo(e)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},t.prototype.tryChangeActive=function(){l.isAllTodo(this.editor)?this.active():this.unActive()},t.prototype.setTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,o.default)(t).call(t,(function(t){var n;if("P"===(null==t?void 0:t.getNodeName())){var r=d.default(t).getTodo(),i=null===(n=r.children())||void 0===n?void 0:n.getNode();r.insertAfter(t),e.selection.moveCursor(i),t.remove()}})),this.tryChangeActive()},t.prototype.cancelTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,o.default)(t).call(t,(function(t){var n,r,i,o=null===(r=null===(n=t.childNodes())||void 0===n?void 0:n.childNodes())||void 0===r?void 0:r.clone(!0),a=s.default("<p></p>");a.append(o),a.insertAfter(t),null===(i=a.childNodes())||void 0===i||i.get(0).remove(),e.selection.moveCursor(a.getNode()),t.remove()}))},t}(c.default);t.default=f},function(e,t,n){e.exports=n(404)},function(e,t,n){var r=n(405);e.exports=r},function(e,t,n){var r=n(406),i=Array.prototype;e.exports=function(e){var t=e.every;return e===i||e instanceof Array&&t===i.every?r:t}},function(e,t,n){n(407);var r=n(14);e.exports=r("Array").every},function(e,t,n){var r=n(5),i=n(29).every;r({target:"Array",proto:!0,forced:!n(70)("every")},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2),s=a.__importDefault(n(3)),c=n(98),l=a.__importDefault(n(134)),u=n(98),d=n(7);t.default=function(e){e.txt.eventHooks.enterDownEvents.push((function(t){var n,r;if(c.isAllTodo(e)){t.preventDefault();var i=e.selection,a=i.getSelectionRangeTopNodes()[0],f=null===(n=a.childNodes())||void 0===n?void 0:n.get(0),p=null===(r=window.getSelection())||void 0===r?void 0:r.anchorNode,h=i.getRange();if(!(null==h?void 0:h.collapsed)){var m=null==h?void 0:h.commonAncestorContainer.childNodes,g=null==h?void 0:h.startContainer,v=null==h?void 0:h.endContainer,b=null==h?void 0:h.startOffset,_=null==h?void 0:h.endOffset,y=0,w=0,x=[];null==m||(0,o.default)(m).call(m,(function(e,t){e.contains(g)&&(y=t),e.contains(v)&&(w=t)})),w-y>1&&(null==m||(0,o.default)(m).call(m,(function(e,t){t<=y||t>=w||x.push(e)})),(0,o.default)(x).call(x,(function(e){e.remove()}))),u.dealTextNode(g,b),u.dealTextNode(v,_,!1),e.selection.moveCursor(v,0)}if(""===a.text()){var k=s.default(d.EMPTY_P);return k.insertAfter(a),i.moveCursor(k.getNode()),void a.remove()}var C=i.getCursorPos(),A=c.getCursorNextNode(null==f?void 0:f.getNode(),p,C),S=l.default(s.default(A)),E=S.getInputContainer(),T=E.parent().getNode(),O=S.getTodo(),R=E.getNode().nextSibling;""===(null==f?void 0:f.text())&&(null==f||f.append(s.default("<br>"))),O.insertAfter(a),R&&""!==(null==R?void 0:R.textContent)?i.moveCursor(T):("BR"!==(null==R?void 0:R.nodeName)&&s.default("<br>").insertAfter(E),i.moveCursor(T,1))}})),e.txt.eventHooks.deleteUpEvents.push((function(){var t=e.selection.getSelectionRangeTopNodes()[0];t&&u.isTodo(t)&&""===t.text()&&(s.default(d.EMPTY_P).insertAfter(t),t.remove())})),e.txt.eventHooks.deleteDownEvents.push((function(t){var n,r;if(c.isAllTodo(e)){var i,a=e.selection,l=a.getSelectionRangeTopNodes()[0],u=null===(n=l.childNodes())||void 0===n?void 0:n.getNode(),f=s.default("<p></p>"),p=f.getNode(),h=null===(r=window.getSelection())||void 0===r?void 0:r.anchorNode,m=a.getCursorPos(),g=h.previousSibling;if(""===l.text()){t.preventDefault();var v=s.default(d.EMPTY_P);return v.insertAfter(l),l.remove(),void a.moveCursor(v.getNode(),0)}"SPAN"===(null==g?void 0:g.nodeName)&&"INPUT"===g.childNodes[0].nodeName&&0===m&&(t.preventDefault(),null==u||(0,o.default)(i=u.childNodes).call(i,(function(e,t){0!==t&&p.appendChild(e.cloneNode(!0))})),f.insertAfter(l),l.remove())}}))}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(3)),i=n(6),o=n(7),a={border:"1px solid #c9d8db",toolbarBgColor:"#FFF",toolbarBottomBorder:"1px solid #EEE"};t.default=function(e){var t,n,s=e.toolbarSelector,c=r.default(s),l=e.textSelector,u=e.config.height,d=e.i18next,f=r.default("<div></div>"),p=r.default("<div></div>"),h=null;null==l?(n=c.children(),c.append(f).append(p),f.css("background-color",a.toolbarBgColor).css("border",a.border).css("border-bottom",a.toolbarBottomBorder),p.css("border",a.border).css("border-top","none").css("height",u+"px")):(c.append(f),h=r.default(l).children(),r.default(l).append(p),n=p.children()),(t=r.default("<div></div>")).attr("contenteditable","true").css("width","100%").css("height","100%");var m=r.default("<div>"+d.t(e.config.placeholder)+"</div>");m.addClass("placeholder"),n&&n.length?(t.append(n),m.hide()):t.append(r.default(o.EMPTY_P)),h&&h.length&&(t.append(h),m.hide()),p.append(t),p.append(m),f.addClass("w-e-toolbar").css("z-index",e.zIndex.get("toolbar")),p.addClass("w-e-text-container"),p.css("z-index",e.zIndex.get()),t.addClass("w-e-text");var g=i.getRandom("toolbar-elem");f.attr("id",g);var v=i.getRandom("text-elem");t.attr("id",v);var b=p.getBoundingClientRect().height;b!==t.getBoundingClientRect().height&&t.css("min-height",b+"px"),e.$toolbarElem=f,e.$textContainerElem=p,e.$textElem=t,e.toolbarElemId=g,e.textElemId=v}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(3)),i=n(7);t.default=function e(t,n){var o=t.$textElem,a=o.children();if(!a||!a.length)return o.append(r.default(i.EMPTY_P)),void e(t);var s=a.last();if(n){var c=s.html().toLowerCase(),l=s.getNodeName();if("<br>"!==c&&"<br/>"!==c||"P"!==l)return o.append(r.default(i.EMPTY_P)),void e(t)}t.selection.createRangeByElem(s,!1,!0),t.config.focus?t.selection.restoreSelection():t.selection.clearWindowSelectionRange()}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));function s(e){(0,e.config.onfocus)(e.txt.html()||"")}t.default=function(e){!function(e){e.txt.eventHooks.changeEvents.push((function(){var t=e.config.onchange;if(t){var n=e.txt.html()||"";t(n)}e.txt.togglePlaceholder()}))}(e),function(e){function t(t){var n=t.target,r=a.default(n),i=e.$textElem,c=e.$toolbarElem,l=i.isContain(r),u=c.isContain(r),d=c.elems[0]==t.target;if(l)e.isFocus||s(e),e.isFocus=!0;else{if(u&&!d||!e.isFocus)return;!function(e){var t,n=e.config.onblur,r=e.txt.html()||"";(0,o.default)(t=e.txt.eventHooks.onBlurEvents).call(t,(function(e){return e()})),n(r)}(e),e.isFocus=!1}}e.isFocus=!1,document.activeElement===e.$textElem.elems[0]&&e.config.focus&&(s(e),e.isFocus=!0),a.default(document).on("click",t),e.beforeDestroy((function(){a.default(document).off("click",t)}))}(e),function(e){e.$textElem.on("compositionstart",(function(){e.isComposing=!0})).on("compositionend",(function(){e.isComposing=!1}))}(e)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.config,n=t.lang,r=t.languages;if(null==e.i18next)e.i18next={t:function(e){var t=e.split(".");return t[t.length-1]}};else try{e.i18next.init({ns:"wangEditor",lng:n,defaultNS:"wangEditor",resources:r})}catch(e){throw new Error("i18next:"+e)}}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(30));(0,i.default)(t,"__esModule",{value:!0}),t.setUnFullScreen=t.setFullScreen=void 0;var a=n(2).__importDefault(n(3));n(414),t.setFullScreen=function(e){var t=a.default(e.toolbarSelector),n=e.$textContainerElem,r=e.$toolbarElem,i=(0,o.default)(r).call(r,"i.w-e-icon-fullscreen"),s=e.config;i.removeClass("w-e-icon-fullscreen"),i.addClass("w-e-icon-fullscreen_exit"),t.addClass("w-e-full-screen-editor"),t.css("z-index",s.zIndexFullScreen);var c=r.getBoundingClientRect();n.css("height","calc(100% - "+c.height+"px)")},t.setUnFullScreen=function(e){var t=a.default(e.toolbarSelector),n=e.$textContainerElem,r=e.$toolbarElem,i=(0,o.default)(r).call(r,"i.w-e-icon-fullscreen_exit"),s=e.config;i.removeClass("w-e-icon-fullscreen_exit"),i.addClass("w-e-icon-fullscreen"),t.removeClass("w-e-full-screen-editor"),t.css("z-index","auto"),n.css("height",s.height+"px")},t.default=function(e){if(!e.textSelector&&e.config.showFullScreen){var n=e.$toolbarElem,r=a.default('<div class="w-e-menu" data-title="全屏">\n <i class="w-e-icon-fullscreen"></i>\n </div>');r.on("click",(function(n){var i;(0,o.default)(i=a.default(n.currentTarget)).call(i,"i").hasClass("w-e-icon-fullscreen")?(r.attr("data-title","取消全屏"),t.setFullScreen(e)):(r.attr("data-title","全屏"),t.setUnFullScreen(e))})),n.append(r)}}},function(e,t,n){var r=n(20),i=n(415);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o),e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-full-screen-editor {\n position: fixed;\n width: 100%!important;\n height: 100%!important;\n left: 0;\n top: 0;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(30));(0,i.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.$textElem,r=(0,o.default)(n).call(n,"[id='"+t+"']").getOffsetData().top;n.scrollTop(r)}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(123)),i={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},o=function(){function e(){this.tier=i,this.baseZIndex=r.default.zIndex}return e.prototype.get=function(e){return e&&this.tier[e]?this.baseZIndex+this.tier[e]:this.baseZIndex},e.prototype.init=function(e){this.baseZIndex==r.default.zIndex&&(this.baseZIndex=e.config.zIndex)},e}();t.default=o},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(72)),a=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var s=n(2),c=s.__importDefault(n(419)),l=n(6),u=n(7),d=function(e){function t(t){var n=e.call(this,(function(e,r){var i;if(e=function(e,t){return(0,o.default)(e).call(e,(function(e){var n=e.type,r=e.target,i=e.attributeName;return"attributes"!=n||"attributes"==n&&("contenteditable"==i||r!=t)}))}(e,r.target),(i=n.data).push.apply(i,e),t.isCompatibleMode)n.asyncSave();else if(!t.isComposing)return n.asyncSave()}))||this;return n.editor=t,n.data=[],n.asyncSave=u.EMPTY_FN,n}return s.__extends(t,e),t.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},t.prototype.emit=function(){var e;(0,a.default)(e=this.editor.txt.eventHooks.changeEvents).call(e,(function(e){return e()}))},t.prototype.observe=function(){var t=this;e.prototype.observe.call(this,this.editor.$textElem.elems[0]);var n=this.editor.config.onchangeTimeout;this.asyncSave=l.debounce((function(){t.save()}),n),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",(function(){t.asyncSave()}))},t}(c.default);t.default=d},function(e,t,n){var r=n(0)(n(1));(0,r.default)(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(t){e(t,n)},this.observer=new MutationObserver(this.callback),t&&(this.options=t)}return(0,r.default)(e.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),e.prototype.observe=function(e){this.node instanceof Node||(this.node=e,this.connect())},e.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("还未初始化绑定,请您先绑定有效的 Node 节点")},e.prototype.disconnect=function(){var e=this.observer.takeRecords();e.length&&this.callback(e),this.observer.disconnect()},e}();t.default=i},function(e,t,n){var r=n(0)(n(1));(0,r.default)(t,"__esModule",{value:!0});var i=n(2),o=i.__importDefault(n(421)),a=i.__importDefault(n(428)),s=i.__importDefault(n(429)),c=function(){function e(e){this.editor=e,this.content=new o.default(e),this.scroll=new a.default(e),this.range=new s.default(e)}return(0,r.default)(e.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),e.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},e.prototype.save=function(e){e.length&&(this.content.save(e),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},e.prototype.revoke=function(){this.editor.change.disconnect();var e=this.content.revoke();e&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},e.prototype.restore=function(){this.editor.change.disconnect();var e=this.content.restore();e&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},e}();t.default=c},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(422)),o=r.__importDefault(n(426)),a=function(){function e(e){this.editor=e}return e.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new o.default(this.editor):this.cache=new i.default(this.editor),this.cache.observe()},e.prototype.save=function(e){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(e)},e.prototype.revoke=function(){var e;return null===(e=this.cache)||void 0===e?void 0:e.revoke()},e.prototype.restore=function(){var e;return null===(e=this.cache)||void 0===e?void 0:e.restore()},e}();t.default=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(99)),o=r.__importDefault(n(424)),a=n(425),s=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n}return r.__extends(t,e),t.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},t.prototype.compile=function(e){return this.save(o.default(e)),this},t.prototype.revoke=function(){return e.prototype.revoke.call(this,(function(e){a.revoke(e)}))},t.prototype.restore=function(){return e.prototype.restore.call(this,(function(e){a.restore(e)}))},t}(i.default);t.default=s},function(e,t,n){var r=n(0)(n(1));(0,r.default)(t,"__esModule",{value:!0}),t.CeilStack=void 0;var i=function(){function e(e){void 0===e&&(e=0),this.data=[],this.max=0,this.reset=!1,(e=Math.abs(e))&&(this.max=e)}return e.prototype.resetMax=function(e){e=Math.abs(e),this.reset||isNaN(e)||(this.max=e,this.reset=!0)},(0,r.default)(e.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),e.prototype.instack=function(e){return this.data.unshift(e),this.max&&this.size>this.max&&(this.data.length=this.max),this},e.prototype.outstack=function(){return this.data.shift()},e.prototype.clear=function(){return this.data.length=0,this},e}();t.CeilStack=i},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4)),a=r(n(26));(0,i.default)(t,"__esModule",{value:!0}),t.compliePosition=t.complieNodes=t.compileValue=t.compileType=void 0;var s=n(6);function c(e){switch(e){case"childList":return"node";case"attributes":return"attr";default:return"text"}}function l(e){switch(e.type){case"attributes":return e.target.getAttribute(e.attributeName)||"";case"characterData":return e.target.textContent;default:return""}}function u(e){var t={};return e.addedNodes.length&&(t.add=s.toArray(e.addedNodes)),e.removedNodes.length&&(t.remove=s.toArray(e.removedNodes)),t}function d(e){return e.previousSibling?{type:"before",target:e.previousSibling}:e.nextSibling?{type:"after",target:e.nextSibling}:{type:"parent",target:e.target}}t.compileType=c,t.compileValue=l,t.complieNodes=u,t.compliePosition=d;var f=["UL","OL","H1","H2","H3","H4","H5","H6"];function p(e,t){for(var n=0,r=t.length-1;r>0&&e.contains(t[r]);r--)n++;return n}t.default=function(e){var t=[],n=!1,r=[];return(0,o.default)(e).call(e,(function(e,i){var o={type:c(e.type),target:e.target,attr:e.attributeName||"",value:l(e)||"",oldValue:e.oldValue||"",nodes:u(e),position:d(e)};if(t.push(o),s.UA.isFirefox){if(n&&e.addedNodes.length&&1==e.addedNodes[0].nodeType){var h=e.addedNodes[0],m={type:"node",target:h,attr:"",value:"",oldValue:"",nodes:{add:[n]},position:{type:"parent",target:h}};-1!=(0,a.default)(f).call(f,h.nodeName)?(m.nodes.add=s.toArray(h.childNodes),t.push(m)):3==n.nodeType?(p(h,r)&&(m.nodes.add=s.toArray(h.childNodes)),t.push(m)):-1==(0,a.default)(f).call(f,e.target.nodeName)&&p(h,r)&&(m.nodes.add=s.toArray(h.childNodes),t.push(m))}"node"==o.type&&1==e.removedNodes.length?(n=e.removedNodes[0],r.push(n)):(n=!1,r.length=0)}})),t}},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(4)),a=r(n(126));function s(e,t){var n=e.position.target;switch(e.position.type){case"before":n.nextSibling?(n=n.nextSibling,(0,o.default)(t).call(t,(function(t){e.target.insertBefore(t,n)}))):(0,o.default)(t).call(t,(function(t){e.target.appendChild(t)}));break;case"after":(0,o.default)(t).call(t,(function(t){e.target.insertBefore(t,n)}));break;default:(0,o.default)(t).call(t,(function(e){n.appendChild(e)}))}}(0,i.default)(t,"__esModule",{value:!0}),t.restore=t.revoke=void 0;var c={node:function(e){for(var t=0,n=(0,a.default)(e.nodes);t<n.length;t++){var r=n[t],i=r[0],c=r[1];switch(i){case"add":(0,o.default)(c).call(c,(function(t){e.target.removeChild(t)}));break;default:s(e,c)}}},text:function(e){e.target.textContent=e.oldValue},attr:function(e){var t=e.target;null==e.oldValue?t.removeAttribute(e.attr):t.setAttribute(e.attr,e.oldValue)}};t.revoke=function(e){for(var t=e.length-1;t>-1;t--){var n=e[t];c[n.type](n)}};var l={node:function(e){for(var t=0,n=(0,a.default)(e.nodes);t<n.length;t++){var r=n[t],i=r[0],c=r[1];switch(i){case"add":s(e,c);break;default:(0,o.default)(c).call(c,(function(e){e.parentNode.removeChild(e)}))}}},text:function(e){e.target.textContent=e.value},attr:function(e){e.target.setAttribute(e.attr,e.value)}};t.restore=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];l[r.type](r)}}},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(427),i=function(){function e(e){this.editor=e,this.data=new r.TailChain}return e.prototype.observe=function(){this.data.resetMax(this.editor.config.historyMaxSize),this.data.insertLast(this.editor.$textElem.html())},e.prototype.save=function(){return this.data.insertLast(this.editor.$textElem.html()),this},e.prototype.revoke=function(){var e=this.data.prev();return!!e&&(this.editor.$textElem.html(e),!0)},e.prototype.restore=function(){var e=this.data.next();return!!e&&(this.editor.$textElem.html(e),!0)},e}();t.default=i},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(92));(0,i.default)(t,"__esModule",{value:!0}),t.TailChain=void 0;var a=function(){function e(){this.data=[],this.max=0,this.point=0,this.isRe=!1}return e.prototype.resetMax=function(e){(e=Math.abs(e))&&(this.max=e)},(0,i.default)(e.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),e.prototype.insertLast=function(e){var t;for(this.isRe&&((0,o.default)(t=this.data).call(t,this.point+1),this.isRe=!1),this.data.push(e);this.max&&this.size>this.max;)this.data.shift();return this.point=this.size-1,this},e.prototype.current=function(){return this.data[this.point]},e.prototype.prev=function(){if(!this.isRe&&(this.isRe=!0),this.point--,!(this.point<0))return this.current();this.point=0},e.prototype.next=function(){if(!this.isRe&&(this.isRe=!0),this.point++,!(this.point>=this.size))return this.current();this.point=this.size-1},e}();t.TailChain=a},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n.last=0,n.target=t.$textElem.elems[0],n}return r.__extends(t,e),t.prototype.observe=function(){var e=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",(function(){e.last=e.target.scrollTop})),this.resetMaxSize(this.editor.config.historyMaxSize)},t.prototype.save=function(){return e.prototype.save.call(this,[this.last,this.target.scrollTop]),this},t.prototype.revoke=function(){var t=this;return e.prototype.revoke.call(this,(function(e){t.target.scrollTop=e[0]}))},t.prototype.restore=function(){var t=this;return e.prototype.restore.call(this,(function(e){t.target.scrollTop=e[1]}))},t}(r.__importDefault(n(99)).default);t.default=i},function(e,t,n){var r=n(0)(n(1));(0,r.default)(t,"__esModule",{value:!0});var i=n(2),o=i.__importDefault(n(99)),a=i.__importDefault(n(3)),s=n(6);function c(e){return{start:[e.startContainer,e.startOffset],end:[e.endContainer,e.endOffset],root:e.commonAncestorContainer,collapsed:e.collapsed}}var l=function(e){function t(t){var n=e.call(this,t.config.historyMaxSize)||this;return n.editor=t,n.lastRange=c(document.createRange()),n.root=t.$textElem.elems[0],n.updateLastRange=s.debounce((function(){n.lastRange=c(n.rangeHandle)}),t.config.onchangeTimeout),n}return i.__extends(t,e),(0,r.default)(t.prototype,"rangeHandle",{get:function(){var e=document.getSelection();return e&&e.rangeCount?e.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),t.prototype.observe=function(){var e=this;function t(){var t=e.rangeHandle;(e.root===t.commonAncestorContainer||e.root.contains(t.commonAncestorContainer))&&(e.editor.isComposing||e.updateLastRange())}this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize),a.default(document).on("selectionchange",t),this.editor.beforeDestroy((function(){a.default(document).off("selectionchange",t)})),e.editor.$textElem.on("keydown",(function(t){"Backspace"!=t.key&&"Delete"!=t.key||e.updateLastRange()}))},t.prototype.save=function(){var t=c(this.rangeHandle);return e.prototype.save.call(this,[this.lastRange,t]),this.lastRange=t,this},t.prototype.set=function(e){try{if(e){var t=this.rangeHandle;return t.setStart.apply(t,e.start),t.setEnd.apply(t,e.end),this.editor.menus.changeActive(),!0}}catch(e){return!1}return!1},t.prototype.revoke=function(){var t=this;return e.prototype.revoke.call(this,(function(e){t.set(e[0])}))},t.prototype.restore=function(){var t=this;return e.prototype.restore.call(this,(function(e){t.set(e[1])}))},t}(o.default);t.default=l},function(e,t,n){var r=n(0),i=r(n(1)),o=r(n(30));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));n(431),t.default=function(e){var t,n,r=!1;return e.txt.eventHooks.changeEvents.push((function(){r&&(0,o.default)(t).call(t,".w-e-content-preview").html(e.$textElem.html())})),{disable:function(){if(!r){e.$textElem.hide();var i=e.zIndex.get("textContainer"),o=e.txt.html();t=a.default('<div class="w-e-content-mantle" style="z-index:'+i+'">\n <div class="w-e-content-preview w-e-text">'+o+"</div>\n </div>"),e.$textContainerElem.append(t);var s=e.zIndex.get("menu");n=a.default('<div class="w-e-menue-mantle" style="z-index:'+s+'"></div>'),e.$toolbarElem.append(n),r=!0}},enable:function(){r&&(t.remove(),n.remove(),e.$textElem.show(),r=!1)}}}},function(e,t,n){var r=n(20),i=n(432);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o),e.exports=i.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-content-mantle {\n width: 100%;\n height: 100%;\n overflow-y: auto;\n}\n.w-e-content-mantle .w-e-content-preview {\n width: 100%;\n min-height: 100%;\n padding: 0 10px;\n line-height: 1.5;\n}\n.w-e-content-mantle .w-e-content-preview img {\n cursor: default;\n}\n.w-e-content-mantle .w-e-content-preview img:hover {\n box-shadow: none;\n}\n.w-e-menue-mantle {\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n}\n",""]),e.exports=t},function(e,t,n){(0,n(0)(n(1)).default)(t,"__esModule",{value:!0})}]).default},e.exports=n()}(e={exports:{}},e.exports),e.exports),r=(t=n)&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,i=1,o=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};return{name:"fcEditor",props:{value:String,init:Function,disabled:Boolean,config:Object},data:function(){return{editor:{},uni:i++}},watch:{disabled:function(){this.enable()},value:function(e){e!==this.editor.txt.html()&&this.editor.txt.html(e)}},methods:{enable:function(){this.disabled?this.editor.disable():this.editor.enable()},result:function(){this.$emit("input",this.editor.txt.html())}},mounted:function(){var e=this;this.$nextTick((function(){e.editor=new r("#editor".concat(e.uni)),e.editor.config.zIndex=2,e.config&&o(e.editor.config,e.config),e.init&&e.init(e.editor),e.editor.create(),e.enable(),e.editor.txt.html(e.value)}))},render:function(){return(0,arguments[0])("div",{on:{input:this.result},attrs:{id:"editor".concat(this.uni)},style:"line-height: normal;"})},beforeDestroy:function(){this.editor&&this.editor.destroy(),this.editor=null}}}))},c740:function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").findIndex,o=n("44d2"),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},c7ce:function(e,t){
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},c7eb:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("d9e2"),n("14d9"),n("159b"),n("b0c0"),n("131a"),n("1f68"),n("fb6a");var r=n("53ca");function i(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
i=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof _?t:_,o=Object.create(i.prototype),s=new L(r||[]);return a(o,"_invoke",{value:T(e,n,s)}),o}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",g="executing",v="completed",b={};function _(){}function y(){}function w(){}var x={};d(x,c,(function(){return this}));var k=Object.getPrototypeOf,C=k&&k(k(M([])));C&&C!==n&&o.call(C,c)&&(x=C);var A=w.prototype=_.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var l=p(e[i],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==Object(r["a"])(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,c)}))}c(l.arg)}var i;a(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}})}function T(t,n,r){var i=h;return function(o,a){if(i===g)throw new Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=O(s,r);if(c){if(c===b)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=g;var l=p(t,n,r);if("normal"===l.type){if(i=r.done?v:m,l.arg===b)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=v,r.method="throw",r.arg=l.arg)}}}function O(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator["return"]&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var o=p(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function R(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(Object(r["a"])(t)+" is not iterable")}return y.prototype=w,a(A,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:y,configurable:!0}),y.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(A),e},t.awrap=function(e){return{__await:e}},S(E.prototype),d(E.prototype,l,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new E(f(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(A),d(A,u,"Generator"),d(A,c,(function(){return this})),d(A,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=M,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;D(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),b}},t}},c8af:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8d2:function(e,t,n){"use strict";var r=n("5e77").PROPER,i=n("d039"),o=n("5899"),a="​…᠎";e.exports=function(e){return i((function(){return!!o[e]()||a[e]()!==a||r&&o[e].name!==e}))}},c901:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},ca72:function(e,t,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"],i=function(e){return-1!==r.map((function(e){return e.toLowerCase()})).indexOf(e.toLowerCase())},o=function(e,t,n){Object.keys(t).filter(i).forEach((function(r){var i=t[r];"function"===typeof i&&("onInit"===r?i(e,n):n.on(r.substring(2),(function(e){return i(e,n)})))}))},a=function(e,t){var n=e.$props.modelEvents?e.$props.modelEvents:null,r=Array.isArray(n)?n.join(" "):n;t.on(r||"change input undo redo",(function(){e.$emit("input",t.getContent({format:e.$props.outputFormat}))}))},s=function(e,t,n){var r=t.$props.value?t.$props.value:"",i=t.$props.initialValue?t.$props.initialValue:"";n.setContent(r||(t.initialized?t.cache:i)),t.$watch("value",(function(e,r){n&&"string"===typeof e&&e!==r&&e!==n.getContent({format:t.$props.outputFormat})&&n.setContent(e)})),t.$listeners.input&&a(t,n),o(e,t.$listeners,n),t.initialized=!0},c=0,l=function(e){var t=Date.now(),n=Math.floor(1e9*Math.random());return c++,e+"_"+n+c+String(t)},u=function(e){return null!==e&&"textarea"===e.tagName.toLowerCase()},d=function(e){return"undefined"===typeof e||""===e?[]:Array.isArray(e)?e:e.split(" ")},f=function(e,t){return d(e).concat(d(t))},p=function(e){return null===e||void 0===e},h=function(){return{listeners:[],scriptId:l("tiny-script"),scriptLoaded:!1}},m=function(){var e=h(),t=function(e,t,n,r){var i=t.createElement("script");i.referrerPolicy="origin",i.type="application/javascript",i.id=e,i.src=n;var o=function(){i.removeEventListener("load",o),r()};i.addEventListener("load",o),t.head&&t.head.appendChild(i)},n=function(n,r,i){e.scriptLoaded?i():(e.listeners.push(i),n.getElementById(e.scriptId)||t(e.scriptId,n,r,(function(){e.listeners.forEach((function(e){return e()})),e.scriptLoaded=!0})))},r=function(){e=h()};return{load:n,reinitialize:r}},g=m(),v=n("c4a9"),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(e){return"html"===e||"text"===e}}},_=function(){return _=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},_.apply(this,arguments)},y=function(e,t,n){return e(n||"div",{attrs:{id:t}})},w=function(e,t){return e("textarea",{attrs:{id:t},style:{visibility:"hidden"}})},x=function(e){return function(){var t=_(_({},e.$props.init),{readonly:e.$props.disabled,selector:"#"+e.elementId,plugins:f(e.$props.init&&e.$props.init.plugins,e.$props.plugins),toolbar:e.$props.toolbar||e.$props.init&&e.$props.init.toolbar,inline:e.inlineEditor,setup:function(t){e.editor=t,t.on("init",(function(n){return s(n,e,t)})),e.$props.init&&"function"===typeof e.$props.init.setup&&e.$props.init.setup(t)}});u(e.element)&&(e.element.style.visibility="",e.element.style.display=""),Object(v["a"])().init(t)}},k={props:b,created:function(){this.elementId=this.$props.id||l("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"])())x(this)();else if(this.element&&this.element.ownerDocument){var e=this.$props.cloudChannel?this.$props.cloudChannel:"5",t=this.$props.apiKey?this.$props.apiKey:"no-api-key",n=p(this.$props.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/"+t+"/tinymce/"+e+"/tinymce.min.js":this.$props.tinymceScriptSrc;g.load(this.element.ownerDocument,n,x(this))}},beforeDestroy:function(){null!==Object(v["a"])()&&Object(v["a"])().remove(this.editor)},deactivated:function(){var e;this.inlineEditor||(this.cache=this.editor.getContent(),null===(e=Object(v["a"])())||void 0===e||e.remove(this.editor))},activated:function(){!this.inlineEditor&&this.initialized&&x(this)()},render:function(e){return this.inlineEditor?y(e,this.elementId,this.$props.tagName):w(e,this.elementId)}};t["a"]=k},ca84:function(e,t,n){"use strict";var r=n("e330"),i=n("1a2d"),o=n("fc6a"),a=n("4d64").indexOf,s=n("d012"),c=r([].push);e.exports=function(e,t){var n,r=o(e),l=0,u=[];for(n in r)!i(s,n)&&i(r,n)&&c(u,n);while(t.length>l)i(r,n=t[l++])&&(~a(u,n)||c(u,n));return u}},ca91:function(e,t,n){"use strict";var r=n("ebb5"),i=n("d58f").left,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("reduce",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},caad:function(e,t,n){"use strict";var r=n("23e7"),i=n("4d64").includes,o=n("d039"),a=n("44d2"),s=o((function(){return!Array(1).includes()}));r({target:"Array",proto:!0,forced:s},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},cb2d:function(e,t,n){"use strict";var r=n("1626"),i=n("9bf2"),o=n("13d2"),a=n("6374");e.exports=function(e,t,n,s){s||(s={});var c=s.enumerable,l=void 0!==s.name?s.name:t;if(r(n)&&o(n,l,s),s.global)c?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(u){}c?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},cc12:function(e,t,n){"use strict";var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},cc15:function(e,t,n){var r=n("b367")("wks"),i=n("8b1a"),o=n("ef08").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},cc98:function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("4738").CONSTRUCTOR,a=n("d256"),s=n("d066"),c=n("1626"),l=n("cb2d"),u=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&c(a)){var d=s("Promise").prototype["catch"];u["catch"]!==d&&l(u,"catch",d,{unsafe:!0})}},cca6:function(e,t,n){"use strict";var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},cd26:function(e,t,n){"use strict";var r=n("ebb5"),i=r.aTypedArray,o=r.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){var e,t=this,n=i(t).length,r=a(n/2),o=0;while(o<r)e=t[o],t[o++]=t[--n],t[n]=e;return t}))},cdce:function(e,t,n){"use strict";var r=n("da84"),i=n("1626"),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},cdd9:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)},n=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return function(t){return n(t)===e}},i=function(e){return function(t){return typeof t===e}},o=function(e){return function(t){return e===t}},a=r("string"),s=r("object"),c=r("array"),l=o(null),u=i("boolean"),d=function(e){return null===e||void 0===e},f=function(e){return!d(e)},p=i("function"),h=i("number"),m=function(){},g=function(e){return function(){return e}},v=function(e){return e},b=g(!1),_=g(!0),y=function(){return w},w=function(){var e=function(e){return e()},t=v,n={fold:function(e,t){return e()},isSome:b,isNone:_,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:g(null),getOrUndefined:g(void 0),or:t,orThunk:e,map:y,each:m,bind:y,exists:b,forall:_,filter:function(){return y()},toArray:function(){return[]},toString:g("none()")};return n}(),x=function(e){var t=g(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:_,isNone:b,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return x(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:w},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},k=function(e){return null===e||void 0===e?w:x(e)},C={some:x,none:y,from:k},A=Object.keys,S=Object.hasOwnProperty,E=function(e,t){for(var n=A(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},T=function(e){return function(t,n){e[n]=t}},O=function(e,t,n,r){var i={};return E(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},R=function(e,t){var n={};return O(e,t,T(n),m),n},D=function(e,t){return S.call(e,t)},L=function(e,t){return D(e,t)&&void 0!==e[t]&&null!==e[t]},M=Array.prototype.push,F=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!c(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);M.apply(t,e[n])}return t},N=function(e,t){return t>=0&&t<e.length?C.some(e[t]):C.none()},B=function(e){return N(e,0)},I=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return C.none()};"undefined"!==typeof window?window:Function("return this;")();var P=function(e,t,n){if(!(a(n)||u(n)||h(n)))throw new Error("Attribute value was not simple");e.setAttribute(t,n+"")},$=function(e,t,n){P(e.dom,t,n)},j=function(e,t){e.dom.removeAttribute(t)},z=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw new Error("HTML must have a single root node");return U(r.childNodes[0])},q=function(e,t){var n=t||document,r=n.createElement(e);return U(r)},H=function(e,t){var n=t||document,r=n.createTextNode(e);return U(r)},U=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},W=function(e,t,n){return C.from(e.dom.elementFromPoint(t,n)).map(U)},V={fromHtml:z,fromTag:q,fromText:H,fromDom:U,fromPoint:W},G=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),K=tinymce.util.Tools.resolve("tinymce.util.Promise"),Y=tinymce.util.Tools.resolve("tinymce.util.URI"),X=tinymce.util.Tools.resolve("tinymce.util.XHR"),Q=function(e){return e.getParam("image_dimensions",!0,"boolean")},J=function(e){return e.getParam("image_advtab",!1,"boolean")},Z=function(e){return e.getParam("image_uploadtab",!0,"boolean")},ee=function(e){return e.getParam("image_prepend_url","","string")},te=function(e){return e.getParam("image_class_list")},ne=function(e){return e.getParam("image_description",!0,"boolean")},re=function(e){return e.getParam("image_title",!1,"boolean")},ie=function(e){return e.getParam("image_caption",!1,"boolean")},oe=function(e){return e.getParam("image_list",!1)},ae=function(e){return f(e.getParam("images_upload_url"))},se=function(e){return f(e.getParam("images_upload_handler"))},ce=function(e){return e.getParam("a11y_advanced_options",!1,"boolean")},le=function(e){return e.getParam("automatic_uploads",!0,"boolean")},ue=function(e,t){return Math.max(parseInt(e,10),parseInt(t,10))},de=function(e){return new K((function(t){var n=document.createElement("img"),r=function(e){n.onload=n.onerror=null,n.parentNode&&n.parentNode.removeChild(n),t(e)};n.onload=function(){var e=ue(n.width,n.clientWidth),t=ue(n.height,n.clientHeight),i={width:e,height:t};r(K.resolve(i))},n.onerror=function(){r(K.reject("Failed to get image dimensions for: "+e))};var i=n.style;i.visibility="hidden",i.position="fixed",i.bottom=i.left="0px",i.width=i.height="auto",document.body.appendChild(n),n.src=e}))},fe=function(e){return e&&(e=e.replace(/px$/,"")),e},pe=function(e){return e.length>0&&/^[0-9]+$/.test(e)&&(e+="px"),e},he=function(e){if(e.margin){var t=String(e.margin).split(" ");switch(t.length){case 1:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[0],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[0];break;case 2:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[0],e["margin-left"]=e["margin-left"]||t[1];break;case 3:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[1];break;case 4:e["margin-top"]=e["margin-top"]||t[0],e["margin-right"]=e["margin-right"]||t[1],e["margin-bottom"]=e["margin-bottom"]||t[2],e["margin-left"]=e["margin-left"]||t[3]}delete e.margin}return e},me=function(e,t){var n=oe(e);a(n)?X.send({url:n,success:function(e){t(JSON.parse(e))}}):p(n)?n(t):t(n)},ge=function(e,t,n){var r=function(){n.onload=n.onerror=null,e.selection&&(e.selection.select(n),e.nodeChanged())};n.onload=function(){t.width||t.height||!Q(e)||e.dom.setAttribs(n,{width:String(n.clientWidth),height:String(n.clientHeight)}),r()},n.onerror=r},ve=function(e){return new K((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=function(){n(r.error.message)},r.readAsDataURL(e)}))},be=function(e){return"IMG"===e.nodeName&&(e.hasAttribute("data-mce-object")||e.hasAttribute("data-mce-placeholder"))},_e=function(e,t){return Y.isDomSafe(t,"img",e.settings)},ye=G.DOM,we=function(e){return e.style.marginLeft&&e.style.marginRight&&e.style.marginLeft===e.style.marginRight?fe(e.style.marginLeft):""},xe=function(e){return e.style.marginTop&&e.style.marginBottom&&e.style.marginTop===e.style.marginBottom?fe(e.style.marginTop):""},ke=function(e){return e.style.borderWidth?fe(e.style.borderWidth):""},Ce=function(e,t){return e.hasAttribute(t)?e.getAttribute(t):""},Ae=function(e,t){return e.style[t]?e.style[t]:""},Se=function(e){return null!==e.parentNode&&"FIGURE"===e.parentNode.nodeName},Ee=function(e,t,n){""===n?e.removeAttribute(t):e.setAttribute(t,n)},Te=function(e){var t=ye.create("figure",{class:"image"});ye.insertAfter(t,e),t.appendChild(e),t.appendChild(ye.create("figcaption",{contentEditable:"true"},"Caption")),t.contentEditable="false"},Oe=function(e){var t=e.parentNode;ye.insertAfter(e,t),ye.remove(t)},Re=function(e){Se(e)?Oe(e):Te(e)},De=function(e,t){var n=e.getAttribute("style"),r=t(null!==n?n:"");r.length>0?(e.setAttribute("style",r),e.setAttribute("data-mce-style",r)):e.removeAttribute("style")},Le=function(e,t){return function(e,n,r){e.style[n]?(e.style[n]=pe(r),De(e,t)):Ee(e,n,r)}},Me=function(e,t){return e.style[t]?fe(e.style[t]):Ce(e,t)},Fe=function(e,t){var n=pe(t);e.style.marginLeft=n,e.style.marginRight=n},Ne=function(e,t){var n=pe(t);e.style.marginTop=n,e.style.marginBottom=n},Be=function(e,t){var n=pe(t);e.style.borderWidth=n},Ie=function(e,t){e.style.borderStyle=t},Pe=function(e){return Ae(e,"borderStyle")},$e=function(e){return"FIGURE"===e.nodeName},je=function(e){return"IMG"===e.nodeName},ze=function(e){return 0===ye.getAttrib(e,"alt").length&&"presentation"===ye.getAttrib(e,"role")},qe=function(e){return ze(e)?"":Ce(e,"alt")},He=function(){return{src:"",alt:"",title:"",width:"",height:"",class:"",style:"",caption:!1,hspace:"",vspace:"",border:"",borderStyle:"",isDecorative:!1}},Ue=function(e,t){var n=document.createElement("img");return Ee(n,"style",t.style),(we(n)||""!==t.hspace)&&Fe(n,t.hspace),(xe(n)||""!==t.vspace)&&Ne(n,t.vspace),(ke(n)||""!==t.border)&&Be(n,t.border),(Pe(n)||""!==t.borderStyle)&&Ie(n,t.borderStyle),e(n.getAttribute("style"))},We=function(e,n){var r=document.createElement("img");if(Qe(e,t(t({},n),{caption:!1}),r),Ke(r,n.alt,n.isDecorative),n.caption){var i=ye.create("figure",{class:"image"});return i.appendChild(r),i.appendChild(ye.create("figcaption",{contentEditable:"true"},"Caption")),i.contentEditable="false",i}return r},Ve=function(e,t){return{src:Ce(t,"src"),alt:qe(t),title:Ce(t,"title"),width:Me(t,"width"),height:Me(t,"height"),class:Ce(t,"class"),style:e(Ce(t,"style")),caption:Se(t),hspace:we(t),vspace:xe(t),border:ke(t),borderStyle:Ae(t,"borderStyle"),isDecorative:ze(t)}},Ge=function(e,t,n,r,i){n[r]!==t[r]&&i(e,r,n[r])},Ke=function(e,t,n){if(n){ye.setAttrib(e,"role","presentation");var r=V.fromDom(e);$(r,"alt","")}else{if(l(t)){r=V.fromDom(e);j(r,"alt")}else{r=V.fromDom(e);$(r,"alt",t)}"presentation"===ye.getAttrib(e,"role")&&ye.setAttrib(e,"role","")}},Ye=function(e,t,n){n.alt===t.alt&&n.isDecorative===t.isDecorative||Ke(e,n.alt,n.isDecorative)},Xe=function(e,t){return function(n,r,i){e(n,i),De(n,t)}},Qe=function(e,t,n){var r=Ve(e,n);Ge(n,r,t,"caption",(function(e,t,n){return Re(e)})),Ge(n,r,t,"src",Ee),Ge(n,r,t,"title",Ee),Ge(n,r,t,"width",Le("width",e)),Ge(n,r,t,"height",Le("height",e)),Ge(n,r,t,"class",Ee),Ge(n,r,t,"style",Xe((function(e,t){return Ee(e,"style",t)}),e)),Ge(n,r,t,"hspace",Xe(Fe,e)),Ge(n,r,t,"vspace",Xe(Ne,e)),Ge(n,r,t,"border",Xe(Be,e)),Ge(n,r,t,"borderStyle",Xe(Ie,e)),Ye(n,r,t)},Je=function(e,t){var n=e.dom.styles.parse(t),r=he(n),i=e.dom.styles.parse(e.dom.styles.serialize(r));return e.dom.styles.serialize(i)},Ze=function(e){var t=e.selection.getNode(),n=e.dom.getParent(t,"figure.image");return n?e.dom.select("img",n)[0]:t&&("IMG"!==t.nodeName||be(t))?null:t},et=function(e,t){var n=e.dom,r=R(e.schema.getTextBlockElements(),(function(t,n){return!e.schema.isValidChild(n,"figure")})),i=n.getParent(t.parentNode,(function(e){return L(r,e.nodeName)}),e.getBody());return i?n.split(i,t):t},tt=function(e){var t=Ze(e);return t?Ve((function(t){return Je(e,t)}),t):He()},nt=function(e,t){var n=We((function(t){return Je(e,t)}),t);e.dom.setAttrib(n,"data-mce-id","__mcenew"),e.focus(),e.selection.setContent(n.outerHTML);var r=e.dom.select('*[data-mce-id="__mcenew"]')[0];if(e.dom.setAttrib(r,"data-mce-id",null),$e(r)){var i=et(e,r);e.selection.select(i)}else e.selection.select(r)},rt=function(e,t){e.dom.setAttrib(t,"src",t.getAttribute("src"))},it=function(e,t){if(t){var n=e.dom.is(t.parentNode,"figure.image")?t.parentNode:t;e.dom.remove(n),e.focus(),e.nodeChanged(),e.dom.isEmpty(e.getBody())&&(e.setContent(""),e.selection.setCursorLocation())}},ot=function(e,t){var n=Ze(e);if(Qe((function(t){return Je(e,t)}),t,n),rt(e,n),$e(n.parentNode)){var r=n.parentNode;et(e,r),e.selection.select(n.parentNode)}else e.selection.select(n),ge(e,t,n)},at=function(e,n){var r=n.src;return t(t({},n),{src:_e(e,r)?r:""})},st=function(e,n){var r=Ze(e);if(r){var i=Ve((function(t){return Je(e,t)}),r),o=t(t({},i),n),a=at(e,o);o.src?ot(e,a):it(e,r)}else n.src&&nt(e,t(t({},He()),n))},ct=function(e,t){var n=s(e)&&s(t);return n?ut(e,t):t},lt=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)D(o,a)&&(r[a]=e(r[a],o[a]))}return r}},ut=lt(ct),dt=function(e){return e.length>0},ft=tinymce.util.Tools.resolve("tinymce.util.ImageUploader"),pt=tinymce.util.Tools.resolve("tinymce.util.Tools"),ht=function(e){return a(e.value)?e.value:""},mt=function(e){return a(e.text)?e.text:a(e.title)?e.title:""},gt=function(e,t){var n=[];return pt.each(e,(function(e){var r=mt(e);if(void 0!==e.menu){var i=gt(e.menu,t);n.push({text:r,items:i})}else{var o=t(e);n.push({text:r,value:o})}})),n},vt=function(e){return void 0===e&&(e=ht),function(t){return t?C.from(t).map((function(t){return gt(t,e)})):C.none()}},bt=function(e){return vt(ht)(e)},_t=function(e){return D(e,"items")},yt=function(e,t){return I(e,(function(e){return _t(e)?yt(e.items,t):e.value===t?C.some(e):C.none()}))},wt=function(e,t){return e.bind((function(e){return yt(e,t)}))},xt={sanitizer:vt,sanitize:bt,findEntry:wt},kt=function(e){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"}]}]}]}},Ct={makeTab:kt},At=function(e){var t=xt.sanitizer((function(t){return e.convertURL(t.value||t.url,"src")})),n=new K((function(n){me(e,(function(e){n(t(e).map((function(e){return F([[{text:"None",value:""}],e])})))}))})),r=xt.sanitize(te(e)),i=J(e),o=Z(e),s=ae(e),c=se(e),l=tt(e),u=ne(e),d=re(e),f=Q(e),p=ie(e),h=ce(e),m=le(e),g=C.some(ee(e)).filter((function(e){return a(e)&&e.length>0}));return n.then((function(e){return{image:l,imageList:e,classList:r,hasAdvTab:i,hasUploadTab:o,hasUploadUrl:s,hasUploadHandler:c,hasDescription:u,hasImageTitle:d,hasDimensions:f,hasImageCaption:p,prependURL:g,hasAccessibilityOptions:h,automaticUploads:m}}))},St=function(e){var n={name:"src",type:"urlinput",filetype:"image",label:"Source"},r=e.imageList.map((function(e){return{name:"images",type:"listbox",label:"Image list",items:e}})),i={name:"alt",type:"input",label:"Alternative description",disabled:e.hasAccessibilityOptions&&e.image.isDecorative},o={name:"title",type:"input",label:"Image title"},a={name:"dimensions",type:"sizeinput"},s={type:"label",label:"Accessibility",items:[{name:"isDecorative",type:"checkbox",label:"Image is decorative"}]},c=e.classList.map((function(e){return{name:"classes",type:"listbox",label:"Class",items:e}})),l={type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]},u=function(e){return e?{type:"grid",columns:2}:{type:"panel"}};return F([[n],r.toArray(),e.hasAccessibilityOptions&&e.hasDescription?[s]:[],e.hasDescription?[i]:[],e.hasImageTitle?[o]:[],e.hasDimensions?[a]:[],[t(t({},u(e.classList.isSome()&&e.hasImageCaption)),{items:F([c.toArray(),e.hasImageCaption?[l]:[]])})]])},Et=function(e){return{title:"General",name:"general",items:St(e)}},Tt={makeTab:Et,makeItems:St},Ot=function(e){var t=[{type:"dropzone",name:"fileinput"}];return{title:"Upload",name:"upload",items:t}},Rt={makeTab:Ot},Dt=function(e){return{prevImage:xt.findEntry(e.imageList,e.image.src),prevAlt:e.image.alt,open:!0}},Lt=function(e){return{src:{value:e.src,meta:{}},images:e.src,alt:e.alt,title:e.title,dimensions:{width:e.width,height:e.height},classes:e.class,caption:e.caption,style:e.style,vspace:e.vspace,border:e.border,hspace:e.hspace,borderstyle:e.borderStyle,fileinput:[],isDecorative:e.isDecorative}},Mt=function(e,t){return{src:e.src.value,alt:0===e.alt.length&&t?null:e.alt,title:e.title,width:e.dimensions.width,height:e.dimensions.height,class:e.classes,style:e.style,caption:e.caption,hspace:e.hspace,vspace:e.vspace,border:e.border,borderStyle:e.borderstyle,isDecorative:e.isDecorative}},Ft=function(e,t){return/^(?:[a-zA-Z]+:)?\/\//.test(t)?C.none():e.prependURL.bind((function(e){return t.substring(0,e.length)!==e?C.some(e+t):C.none()}))},Nt=function(e,t){var n=t.getData();Ft(e,n.src.value).each((function(e){t.setData({src:{value:e,meta:n.src.meta}})}))},Bt=function(e,t,n){e.hasDescription&&a(n.alt)&&(t.alt=n.alt),e.hasAccessibilityOptions&&(t.isDecorative=n.isDecorative||t.isDecorative||!1),e.hasImageTitle&&a(n.title)&&(t.title=n.title),e.hasDimensions&&(a(n.width)&&(t.dimensions.width=n.width),a(n.height)&&(t.dimensions.height=n.height)),a(n.class)&&xt.findEntry(e.classList,n.class).each((function(e){t.classes=e.value})),e.hasImageCaption&&u(n.caption)&&(t.caption=n.caption),e.hasAdvTab&&(a(n.style)&&(t.style=n.style),a(n.vspace)&&(t.vspace=n.vspace),a(n.border)&&(t.border=n.border),a(n.hspace)&&(t.hspace=n.hspace),a(n.borderstyle)&&(t.borderstyle=n.borderstyle))},It=function(e,t){var n=t.getData(),r=n.src.meta;if(void 0!==r){var i=ut({},n);Bt(e,i,r),t.setData(i)}},Pt=function(e,t,n,r){var i=r.getData(),o=i.src.value,a=i.src.meta||{};a.width||a.height||!t.hasDimensions||(dt(o)?e.imageSize(o).then((function(e){n.open&&r.setData({dimensions:e})})).catch((function(e){})):r.setData({dimensions:{width:"",height:""}}))},$t=function(e,t,n){var r=n.getData(),i=xt.findEntry(e.imageList,r.src.value);t.prevImage=i,n.setData({images:i.map((function(e){return e.value})).getOr("")})},jt=function(e,t,n,r){Nt(t,r),It(t,r),Pt(e,t,n,r),$t(t,n,r)},zt=function(e,t,n,r){var i=r.getData(),o=xt.findEntry(t.imageList,i.images);o.each((function(e){var t=""===i.alt||n.prevImage.map((function(e){return e.text===i.alt})).getOr(!1);t?""===e.value?r.setData({src:e,alt:n.prevAlt}):r.setData({src:e,alt:e.text}):r.setData({src:e})})),n.prevImage=o,jt(e,t,n,r)},qt=function(e){var t=e["margin-top"]&&e["margin-bottom"]&&e["margin-top"]===e["margin-bottom"];return t?fe(String(e["margin-top"])):""},Ht=function(e){var t=e["margin-right"]&&e["margin-left"]&&e["margin-right"]===e["margin-left"];return t?fe(String(e["margin-right"])):""},Ut=function(e){return e["border-width"]?fe(String(e["border-width"])):""},Wt=function(e){return e["border-style"]?String(e["border-style"]):""},Vt=function(e,t,n){return t(e(t(n)))},Gt=function(e,t,n){var r=he(e(n.style)),i=ut({},n);return i.vspace=qt(r),i.hspace=Ht(r),i.border=Ut(r),i.borderstyle=Wt(r),i.style=Vt(e,t,r),i},Kt=function(e,t){var n=t.getData(),r=Gt(e.parseStyle,e.serializeStyle,n);t.setData(r)},Yt=function(e,t,n){var r=ut(Lt(t.image),n.getData()),i=Ue(e.normalizeCss,Mt(r,!1));n.setData({style:i})},Xt=function(e,t,n,r){var i=r.getData();r.block("Uploading image"),B(i.fileinput).fold((function(){r.unblock()}),(function(i){var o=URL.createObjectURL(i),a=function(){r.unblock(),URL.revokeObjectURL(o)},s=function(i){r.setData({src:{value:i,meta:{}}}),r.showTab("general"),jt(e,t,n,r)};ve(i).then((function(n){var c=e.createBlobCache(i,o,n);t.automaticUploads?e.uploadImage(c).then((function(e){s(e.url),a()})).catch((function(t){a(),e.alertErr(t)})):(e.addToBlobCache(c),s(c.blobUri()),r.unblock())}))}))},Qt=function(e,t,n){return function(r,i){"src"===i.name?jt(e,t,n,r):"images"===i.name?zt(e,t,n,r):"alt"===i.name?n.prevAlt=r.getData().alt:"style"===i.name?Kt(e,r):"vspace"===i.name||"hspace"===i.name||"border"===i.name||"borderstyle"===i.name?Yt(e,t,r):"fileinput"===i.name?Xt(e,t,n,r):"isDecorative"===i.name&&(r.getData().isDecorative?r.disable("alt"):r.enable("alt"))}},Jt=function(e){return function(){e.open=!1}},Zt=function(e){if(e.hasAdvTab||e.hasUploadUrl||e.hasUploadHandler){var t={type:"tabpanel",tabs:F([[Tt.makeTab(e)],e.hasAdvTab?[Ct.makeTab(e)]:[],e.hasUploadTab&&(e.hasUploadUrl||e.hasUploadHandler)?[Rt.makeTab(e)]:[]])};return t}var n={type:"panel",items:Tt.makeItems(e)};return n},en=function(e){return function(t){var n=Dt(t);return{title:"Insert/Edit Image",size:"normal",body:Zt(t),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:Lt(t.image),onSubmit:e.onSubmit(t),onChange:Qt(e,t,n),onClose:Jt(n)}}},tn=function(e){return function(t){return function(n){var r=ut(Lt(t.image),n.getData());e.execCommand("mceUpdateImage",!1,Mt(r,t.hasAccessibilityOptions)),e.editorUpload.uploadImagesAuto(),n.close()}}},nn=function(e){return function(t){return _e(e,t)?de(e.documentBaseURI.toAbsolute(t)).then((function(e){return{width:String(e.width),height:String(e.height)}})):K.resolve({width:"",height:""})}},rn=function(e){return function(t,n,r){return e.editorUpload.blobCache.create({blob:t,blobUri:n,name:t.name?t.name.replace(/\.[^\.]+$/,""):null,filename:t.name,base64:r.split(",")[1]})}},on=function(e){return function(t){e.editorUpload.blobCache.add(t)}},an=function(e){return function(t){e.windowManager.alert(t)}},sn=function(e){return function(t){return Je(e,t)}},cn=function(e){return function(t){return e.dom.parseStyle(t)}},ln=function(e){return function(t,n){return e.dom.serializeStyle(t,n)}},un=function(e){return function(t){return ft(e).upload([t],!1).then((function(e){return 0===e.length?K.reject("Failed to upload image"):!1===e[0].status?K.reject(e[0].error.message):e[0]}))}},dn=function(e){var t={onSubmit:tn(e),imageSize:nn(e),addToBlobCache:on(e),createBlobCache:rn(e),alertErr:an(e),normalizeCss:sn(e),parseStyle:cn(e),serializeStyle:ln(e),uploadImage:un(e)},n=function(){At(e).then(en(t)).then(e.windowManager.open)};return{open:n}},fn=function(e){e.addCommand("mceImage",dn(e).open),e.addCommand("mceUpdateImage",(function(t,n){e.undoManager.transact((function(){return st(e,n)}))}))},pn=function(e){var t=e.attr("class");return t&&/\bimage\b/.test(t)},hn=function(e){return function(t){var n=t.length,r=function(t){t.attr("contenteditable",e?"true":null)};while(n--){var i=t[n];pn(i)&&(i.attr("contenteditable",e?"false":null),pt.each(i.getAll("figcaption"),r))}}},mn=function(e){e.on("PreInit",(function(){e.parser.addNodeFilter("figure",hn(!0)),e.serializer.addNodeFilter("figure",hn(!1))}))},gn=function(e){e.ui.registry.addToggleButton("image",{icon:"image",tooltip:"Insert/edit image",onAction:dn(e).open,onSetup:function(t){return t.setActive(f(Ze(e))),e.selection.selectorChangedWithUnbind("img:not([data-mce-object],[data-mce-placeholder]),figure.image",t.setActive).unbind}}),e.ui.registry.addMenuItem("image",{icon:"image",text:"Image...",onAction:dn(e).open}),e.ui.registry.addContextMenu("image",{update:function(e){return $e(e)||je(e)&&!be(e)?["image"]:[]}})};function vn(){e.add("image",(function(e){mn(e),gn(e),fn(e)}))}vn()})()},cdf9:function(e,t,n){"use strict";var r=n("825a"),i=n("861d"),o=n("f069");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),a=n.resolve;return a(t),n.promise}},ce7a:function(e,t,n){var r=n("9c0e"),i=n("0983"),o=n("5a94")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},cee4:function(e,t,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),a=n("2444");function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var c=s(a);c.Axios=o,c.create=function(e){return s(r.merge(a,e))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(e){return Promise.all(e)},c.spread=n("0df6"),e.exports=c,e.exports.default=c},cf98:function(e,t,n){"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},d009:function(e,t,n){"use strict";var r=n("00ce"),i=n("7992"),o=n("64b0")(),a=n("2aa9"),s=r("%TypeError%"),c=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||c(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(l=!1)}return(r||l||!n)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},d012:function(e,t,n){"use strict";e.exports={}},d039:function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){"use strict";var r=n("da84"),i=n("1626"),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},d139:function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").find,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("find",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},d16a:function(e,t,n){var r=n("fc5e"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},d233:function(e,t,n){"use strict";var r=n("b313"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e){while(e.length>1){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);t.obj[t.prop]=r}}},c=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},l=function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(o(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=c(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"===typeof a&&n&&"object"===typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)},u=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},d=function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},f=function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<s.length;++l){var u=s.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===r.RFC1738&&(40===u||41===u)?c+=s.charAt(l):u<128?c+=a[u]:u<2048?c+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?c+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(l)),c+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return c},p=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],o=i.obj[i.prop],a=Object.keys(o),c=0;c<a.length;++c){var l=a[c],u=o[l];"object"===typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:o,prop:l}),n.push(u))}return s(t),e},h=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},m=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},v=function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};e.exports={arrayToObject:c,assign:u,combine:g,compact:p,decode:d,encode:f,isBuffer:m,isRegExp:h,maybeMap:v,merge:l}},d256:function(e,t,n){"use strict";var r=n("da84");e.exports=r.Promise},d28b:function(e,t,n){"use strict";var r=n("e065");r("iterator")},d2bb:function(e,t,n){"use strict";var r=n("7282"),i=n("825a"),o=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(a){}return function(n,r){return i(n),o(r),t?e(n,r):n.__proto__=r,n}}():void 0)},d37d:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},d3b7:function(e,t,n){"use strict";var r=n("00ee"),i=n("cb2d"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d429:function(e,t,n){"use strict";var r=n("07fa"),i=n("5926"),o=RangeError;e.exports=function(e,t,n,a){var s=r(e),c=i(n),l=c<0?s+c:c;if(l>=s||l<0)throw new o("Incorrect index");for(var u=new t(s),d=0;d<s;d++)u[d]=d===l?a:e[d];return u}},d44e:function(e,t,n){"use strict";var r=n("9bf2").f,i=n("1a2d"),o=n("b622"),a=o("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,a)&&r(e,a,{configurable:!0,value:t})}},d4af:function(e,t,n){"use strict";var r=n("8eb7"),i=n("7b3e"),o=10,a=40,s=800;function c(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*o,i=n*o,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(1==e.deltaMode?(r*=a,i*=a):(r*=s,i*=s)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}c.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},e.exports=c},d4c3:function(e,t,n){"use strict";var r=n("342f");e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},d57c:function(e,t){e.exports.id="ace/mode/html_worker",e.exports.src='"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/\'/g,"&#39;").replace(/</g,"&#60;")},exports.getMatchOffsets=function(string,regExp){var matches=[];return string.replace(regExp,function(str){matches.push({offset:arguments[arguments.length-2],length:str.length})}),matches},exports.deferredCall=function(fcn){var timer=null,callback=function(){timer=null,fcn()},deferred=function(timeout){return deferred.cancel(),timer=setTimeout(callback,timeout||0),deferred};return deferred.schedule=deferred,deferred.call=function(){return this.cancel(),fcn(),deferred},deferred.cancel=function(){return clearTimeout(timer),timer=null,deferred},deferred.isPending=function(){return timer},deferred},exports.delayedCall=function(fcn,defaultTimeout){var timer=null,callback=function(){timer=null,fcn()},_self=function(timeout){null==timer&&(timer=setTimeout(callback,timeout||defaultTimeout))};return _self.delay=function(timeout){timer&&clearTimeout(timer),timer=setTimeout(callback,timeout||defaultTimeout)},_self.schedule=_self,_self.call=function(){this.cancel(),fcn()},_self.cancel=function(){timer&&clearTimeout(timer),timer=null},_self.isPending=function(){return timer},_self}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.column<point2.column;return point1.row<point2.row||point1.row==point2.row&&bColIsAfter}function $getTransformedPoint(delta,point,moveIfEqual){var deltaIsInsert="insert"==delta.action,deltaRowShift=(deltaIsInsert?1:-1)*(delta.end.row-delta.start.row),deltaColShift=(deltaIsInsert?1:-1)*(delta.end.column-delta.start.column),deltaStart=delta.start,deltaEnd=deltaIsInsert?deltaStart:delta.end;return $pointsInOrder(point,deltaStart,moveIfEqual)?{row:point.row,column:point.column}:$pointsInOrder(deltaEnd,point,!moveIfEqual)?{row:point.row+deltaRowShift,column:point.column+(point.row==deltaEnd.row?deltaColShift:0)}:{row:deltaStart.row,column:deltaStart.column}}oop.implement(this,EventEmitter),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(delta){if(!(delta.start.row==delta.end.row&&delta.start.row!=this.row||delta.start.row>this.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(acequire,exports){"use strict";acequire("../range").Range;var Document=acequire("../document").Document,lang=acequire("../lib/lang"),Mirror=exports.Mirror=function(sender){this.sender=sender;var doc=this.doc=new Document(""),deferredUpdate=this.deferredUpdate=lang.delayedCall(this.onUpdate.bind(this)),_self=this;sender.on("change",function(e){var data=e.data;if(data[0].start)doc.applyDeltas(data);else for(var i=0;data.length>i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/html/saxparser",["require","exports","module"],function(acequire,exports,module){module.exports=function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof acequire&&acequire;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw Error("Cannot find module \'"+o+"\'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof acequire&&acequire,o=0;r.length>o;o++)s(r[o]);return s}({1:[function(_dereq_,module,exports){function isScopeMarker(node){return"http://www.w3.org/1999/xhtml"===node.namespaceURI?"applet"===node.localName||"caption"===node.localName||"marquee"===node.localName||"object"===node.localName||"table"===node.localName||"td"===node.localName||"th"===node.localName:"http://www.w3.org/1998/Math/MathML"===node.namespaceURI?"mi"===node.localName||"mo"===node.localName||"mn"===node.localName||"ms"===node.localName||"mtext"===node.localName||"annotation-xml"===node.localName:"http://www.w3.org/2000/svg"===node.namespaceURI?"foreignObject"===node.localName||"desc"===node.localName||"title"===node.localName:void 0}function isListItemScopeMarker(node){return isScopeMarker(node)||"http://www.w3.org/1999/xhtml"===node.namespaceURI&&"ol"===node.localName||"http://www.w3.org/1999/xhtml"===node.namespaceURI&&"ul"===node.localName}function isTableScopeMarker(node){return"http://www.w3.org/1999/xhtml"===node.namespaceURI&&"table"===node.localName||"http://www.w3.org/1999/xhtml"===node.namespaceURI&&"html"===node.localName}function isTableBodyScopeMarker(node){return"http://www.w3.org/1999/xhtml"===node.namespaceURI&&"tbody"===node.localName||"http://www.w3.org/1999/xhtml"===node.namespaceURI&&"tfoot"===node.localName||"http://www.w3.org/1999/xhtml"===node.namespaceURI&&"thead"===node.localName||"http://www.w3.org/1999/xhtml"===node.namespaceURI&&"html"===node.localName}function isTableRowScopeMarker(node){return"http://www.w3.org/1999/xhtml"===node.namespaceURI&&"tr"===node.localName||"http://www.w3.org/1999/xhtml"===node.namespaceURI&&"html"===node.localName}function isButtonScopeMarker(node){return isScopeMarker(node)||"http://www.w3.org/1999/xhtml"===node.namespaceURI&&"button"===node.localName}function isSelectScopeMarker(node){return!("http://www.w3.org/1999/xhtml"===node.namespaceURI&&"optgroup"===node.localName||"http://www.w3.org/1999/xhtml"===node.namespaceURI&&"option"===node.localName)}function ElementStack(){this.elements=[],this.rootNode=null,this.headElement=null,this.bodyElement=null}ElementStack.prototype._inScope=function(localName,isMarker){for(var i=this.elements.length-1;i>=0;i--){var node=this.elements[i];if(node.localName===localName)return!0;if(isMarker(node))return!1}},ElementStack.prototype.push=function(item){this.elements.push(item)},ElementStack.prototype.pushHtmlElement=function(item){this.rootNode=item.node,this.push(item)},ElementStack.prototype.pushHeadElement=function(item){this.headElement=item.node,this.push(item)},ElementStack.prototype.pushBodyElement=function(item){this.bodyElement=item.node,this.push(item)},ElementStack.prototype.pop=function(){return this.elements.pop()},ElementStack.prototype.remove=function(item){this.elements.splice(this.elements.indexOf(item),1)},ElementStack.prototype.popUntilPopped=function(localName){var element;do element=this.pop();while(element.localName!=localName)},ElementStack.prototype.popUntilTableScopeMarker=function(){for(;!isTableScopeMarker(this.top);)this.pop()},ElementStack.prototype.popUntilTableBodyScopeMarker=function(){for(;!isTableBodyScopeMarker(this.top);)this.pop()},ElementStack.prototype.popUntilTableRowScopeMarker=function(){for(;!isTableRowScopeMarker(this.top);)this.pop()},ElementStack.prototype.item=function(index){return this.elements[index]},ElementStack.prototype.contains=function(element){return-1!==this.elements.indexOf(element)},ElementStack.prototype.inScope=function(localName){return this._inScope(localName,isScopeMarker)},ElementStack.prototype.inListItemScope=function(localName){return this._inScope(localName,isListItemScopeMarker)},ElementStack.prototype.inTableScope=function(localName){return this._inScope(localName,isTableScopeMarker)},ElementStack.prototype.inButtonScope=function(localName){return this._inScope(localName,isButtonScopeMarker)},ElementStack.prototype.inSelectScope=function(localName){return this._inScope(localName,isSelectScopeMarker)},ElementStack.prototype.hasNumberedHeaderElementInScope=function(){for(var i=this.elements.length-1;i>=0;i--){var node=this.elements[i];if(node.isNumberedHeader())return!0;if(isScopeMarker(node))return!1}},ElementStack.prototype.furthestBlockForFormattingElement=function(element){for(var furthestBlock=null,i=this.elements.length-1;i>=0;i--){var node=this.elements[i];\nif(node.node===element)break;node.isSpecial()&&(furthestBlock=node)}return furthestBlock},ElementStack.prototype.findIndex=function(localName){for(var i=this.elements.length-1;i>=0;i--)if(this.elements[i].localName==localName)return i;return-1},ElementStack.prototype.remove_openElements_until=function(callback){for(var element,finished=!1;!finished;)element=this.elements.pop(),finished=callback(element);return element},Object.defineProperty(ElementStack.prototype,"top",{get:function(){return this.elements[this.elements.length-1]}}),Object.defineProperty(ElementStack.prototype,"length",{get:function(){return this.elements.length}}),exports.ElementStack=ElementStack},{}],2:[function(_dereq_,module,exports){function isAlphaNumeric(c){return c>="0"&&"9">=c||c>="a"&&"z">=c||c>="A"&&"Z">=c}function isHexDigit(c){return c>="0"&&"9">=c||c>="a"&&"f">=c||c>="A"&&"F">=c}function isDecimalDigit(c){return c>="0"&&"9">=c}var entities=_dereq_("html5-entities"),InputStream=_dereq_("./InputStream").InputStream,namedEntityPrefixes={};Object.keys(entities).forEach(function(entityKey){for(var i=0;entityKey.length>i;i++)namedEntityPrefixes[entityKey.substring(0,i+1)]=!0});var EntityParser={};EntityParser.consumeEntity=function(buffer,tokenizer,additionalAllowedCharacter){var decodedCharacter="",consumedCharacters="",ch=buffer.char();if(ch===InputStream.EOF)return!1;if(consumedCharacters+=ch,"\t"==ch||"\\n"==ch||"\v"==ch||" "==ch||"<"==ch||"&"==ch)return buffer.unget(consumedCharacters),!1;if(additionalAllowedCharacter===ch)return buffer.unget(consumedCharacters),!1;if("#"==ch){if(ch=buffer.shift(1),ch===InputStream.EOF)return tokenizer._parseError("expected-numeric-entity-but-got-eof"),buffer.unget(consumedCharacters),!1;consumedCharacters+=ch;var radix=10,isDigit=isDecimalDigit;if("x"==ch||"X"==ch){if(radix=16,isDigit=isHexDigit,ch=buffer.shift(1),ch===InputStream.EOF)return tokenizer._parseError("expected-numeric-entity-but-got-eof"),buffer.unget(consumedCharacters),!1;consumedCharacters+=ch}if(isDigit(ch)){for(var code="";ch!==InputStream.EOF&&isDigit(ch);)code+=ch,ch=buffer.char();code=parseInt(code,radix);var replacement=this.replaceEntityNumbers(code);if(replacement&&(tokenizer._parseError("invalid-numeric-entity-replaced"),code=replacement),code>65535&&1114111>=code){code-=65536;var first=((1047552&code)>>10)+55296,second=(1023&code)+56320;decodedCharacter=String.fromCharCode(first,second)}else decodedCharacter=String.fromCharCode(code);return";"!==ch&&(tokenizer._parseError("numeric-entity-without-semicolon"),buffer.unget(ch)),decodedCharacter}return buffer.unget(consumedCharacters),tokenizer._parseError("expected-numeric-entity"),!1}if(ch>="a"&&"z">=ch||ch>="A"&&"Z">=ch){for(var mostRecentMatch="";namedEntityPrefixes[consumedCharacters]&&(entities[consumedCharacters]&&(mostRecentMatch=consumedCharacters),";"!=ch)&&(ch=buffer.char(),ch!==InputStream.EOF);)consumedCharacters+=ch;return mostRecentMatch?(decodedCharacter=entities[mostRecentMatch],";"===ch||!additionalAllowedCharacter||!isAlphaNumeric(ch)&&"="!==ch?(consumedCharacters.length>mostRecentMatch.length&&buffer.unget(consumedCharacters.substring(mostRecentMatch.length)),";"!==ch&&tokenizer._parseError("named-entity-without-semicolon"),decodedCharacter):(buffer.unget(consumedCharacters),!1)):(tokenizer._parseError("expected-named-entity"),buffer.unget(consumedCharacters),!1)}},EntityParser.replaceEntityNumbers=function(c){switch(c){case 0:return 65533;case 19:return 16;case 128:return 8364;case 129:return 129;case 130:return 8218;case 131:return 402;case 132:return 8222;case 133:return 8230;case 134:return 8224;case 135:return 8225;case 136:return 710;case 137:return 8240;case 138:return 352;case 139:return 8249;case 140:return 338;case 141:return 141;case 142:return 381;case 143:return 143;case 144:return 144;case 145:return 8216;case 146:return 8217;case 147:return 8220;case 148:return 8221;case 149:return 8226;case 150:return 8211;case 151:return 8212;case 152:return 732;case 153:return 8482;case 154:return 353;case 155:return 8250;case 156:return 339;case 157:return 157;case 158:return 382;case 159:return 376;default:if(c>=55296&&57343>=c||c>1114111)return 65533;if(c>=1&&8>=c||c>=14&&31>=c||c>=127&&159>=c||c>=64976&&65007>=c||11==c||65534==c||131070==c||3145726==c||196607==c||262142==c||262143==c||327678==c||327679==c||393214==c||393215==c||458750==c||458751==c||524286==c||524287==c||589822==c||589823==c||655358==c||655359==c||720894==c||720895==c||786430==c||786431==c||851966==c||851967==c||917502==c||917503==c||983038==c||983039==c||1048574==c||1048575==c||1114110==c||1114111==c)return c}},exports.EntityParser=EntityParser},{"./InputStream":3,"html5-entities":12}],3:[function(_dereq_,module,exports){function InputStream(){this.data="",this.start=0,this.committed=0,this.eof=!1,this.lastLocation={line:0,column:0}}InputStream.EOF=-1,InputStream.DRAIN=-2,InputStream.prototype={slice:function(){if(this.start>=this.data.length){if(!this.eof)throw InputStream.DRAIN;return InputStream.EOF}return this.data.slice(this.start,this.data.length)},"char":function(){if(!this.eof&&this.start>=this.data.length-1)throw InputStream.DRAIN;if(this.start>=this.data.length)return InputStream.EOF;var ch=this.data[this.start++];return"\\r"===ch&&(ch="\\n"),ch},advance:function(amount){if(this.start+=amount,this.start>=this.data.length){if(!this.eof)throw InputStream.DRAIN;return InputStream.EOF}this.committed>this.data.length/2&&(this.lastLocation=this.location(),this.data=this.data.slice(this.committed),this.start=this.start-this.committed,this.committed=0)},matchWhile:function(re){if(this.eof&&this.start>=this.data.length)return"";var r=RegExp("^"+re+"+"),m=r.exec(this.slice());if(m){if(!this.eof&&m[0].length==this.data.length-this.start)throw InputStream.DRAIN;return this.advance(m[0].length),m[0]}return""},matchUntil:function(re){var m,s;if(s=this.slice(),s===InputStream.EOF)return"";if(m=RegExp(re+(this.eof?"|$":"")).exec(s)){var t=this.data.slice(this.start,this.start+m.index);return this.advance(m.index),t.replace(/\\r/g,"\\n").replace(/\\n{2,}/g,"\\n")}throw InputStream.DRAIN},append:function(data){this.data+=data},shift:function(n){if(!this.eof&&this.start+n>=this.data.length)throw InputStream.DRAIN;if(this.eof&&this.start>=this.data.length)return InputStream.EOF;var d=""+this.data.slice(this.start,this.start+n);return this.advance(Math.min(n,this.data.length-this.start)),d},peek:function(n){if(!this.eof&&this.start+n>=this.data.length)throw InputStream.DRAIN;return this.eof&&this.start>=this.data.length?InputStream.EOF:""+this.data.slice(this.start,Math.min(this.start+n,this.data.length))},length:function(){return this.data.length-this.start-1},unget:function(d){d!==InputStream.EOF&&(this.start-=d.length)},undo:function(){this.start=this.committed},commit:function(){this.committed=this.start},location:function(){var lastLine=this.lastLocation.line,lastColumn=this.lastLocation.column,read=this.data.slice(0,this.committed),newlines=read.match(/\\n/g),line=newlines?lastLine+newlines.length:lastLine,column=newlines?read.length-read.lastIndexOf("\\n")-1:lastColumn+read.length;return{line:line,column:column}}},exports.InputStream=InputStream},{}],4:[function(_dereq_,module,exports){function StackItem(namespaceURI,localName,attributes,node){this.localName=localName,this.namespaceURI=namespaceURI,this.attributes=attributes,this.node=node}function getAttribute(item,name){for(var i=0;item.attributes.length>i;i++)if(item.attributes[i].nodeName==name)return item.attributes[i].nodeValue;return null}var SpecialElements={"http://www.w3.org/1999/xhtml":["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],"http://www.w3.org/1998/Math/MathML":["mi","mo","mn","ms","mtext","annotation-xml"],"http://www.w3.org/2000/svg":["foreignObject","desc","title"]};StackItem.prototype.isSpecial=function(){return this.namespaceURI in SpecialElements&&SpecialElements[this.namespaceURI].indexOf(this.localName)>-1},StackItem.prototype.isFosterParenting=function(){return"http://www.w3.org/1999/xhtml"===this.namespaceURI?"table"===this.localName||"tbody"===this.localName||"tfoot"===this.localName||"thead"===this.localName||"tr"===this.localName:!1},StackItem.prototype.isNumberedHeader=function(){return"http://www.w3.org/1999/xhtml"===this.namespaceURI?"h1"===this.localName||"h2"===this.localName||"h3"===this.localName||"h4"===this.localName||"h5"===this.localName||"h6"===this.localName:!1},StackItem.prototype.isForeign=function(){return"http://www.w3.org/1999/xhtml"!=this.namespaceURI},StackItem.prototype.isHtmlIntegrationPoint=function(){if("http://www.w3.org/1998/Math/MathML"===this.namespaceURI){if("annotation-xml"!==this.localName)return!1;var encoding=getAttribute(this,"encoding");return encoding?(encoding=encoding.toLowerCase(),"text/html"===encoding||"application/xhtml+xml"===encoding):!1}return"http://www.w3.org/2000/svg"===this.namespaceURI?"foreignObject"===this.localName||"desc"===this.localName||"title"===this.localName:!1},StackItem.prototype.isMathMLTextIntegrationPoint=function(){return"http://www.w3.org/1998/Math/MathML"===this.namespaceURI?"mi"===this.localName||"mo"===this.localName||"mn"===this.localName||"ms"===this.localName||"mtext"===this.localName:!1},exports.StackItem=StackItem},{}],5:[function(_dereq_,module,exports){function isWhitespace(c){return" "===c||"\\n"===c||"\t"===c||"\\r"===c||"\\f"===c}function isAlpha(c){return c>="A"&&"Z">=c||c>="a"&&"z">=c}function Tokenizer(tokenHandler){this._tokenHandler=tokenHandler,this._state=Tokenizer.DATA,this._inputStream=new InputStream,this._currentToken=null,this._temporaryBuffer="",this._additionalAllowedCharacter=""}var InputStream=_dereq_("./InputStream").InputStream,EntityParser=_dereq_("./EntityParser").EntityParser;Tokenizer.prototype._parseError=function(code,args){this._tokenHandler.parseError(code,args)},Tokenizer.prototype._emitToken=function(token){if("StartTag"===token.type)for(var i=1;token.data.length>i;i++)token.data[i].nodeName||token.data.splice(i--,1);else"EndTag"===token.type&&(token.selfClosing&&this._parseError("self-closing-flag-on-end-tag"),0!==token.data.length&&this._parseError("attributes-in-end-tag"));this._tokenHandler.processToken(token),"StartTag"===token.type&&token.selfClosing&&!this._tokenHandler.isSelfClosingFlagAcknowledged()&&this._parseError("non-void-element-with-trailing-solidus",{name:token.name})},Tokenizer.prototype._emitCurrentToken=function(){this._state=Tokenizer.DATA,this._emitToken(this._currentToken)},Tokenizer.prototype._currentAttribute=function(){return this._currentToken.data[this._currentToken.data.length-1]},Tokenizer.prototype.setState=function(state){this._state=state},Tokenizer.prototype.tokenize=function(source){function data_state(buffer){var data=buffer.char();if(data===InputStream.EOF)return tokenizer._emitToken({type:"EOF",data:null}),!1;if("&"===data)tokenizer.setState(character_reference_in_data_state);else if("<"===data)tokenizer.setState(tag_open_state);else if("\\0"===data)tokenizer._emitToken({type:"Characters",data:data}),buffer.commit();else{var chars=buffer.matchUntil("&|<|\\0");tokenizer._emitToken({type:"Characters",data:data+chars}),buffer.commit()}return!0}function character_reference_in_data_state(buffer){var character=EntityParser.consumeEntity(buffer,tokenizer);return tokenizer.setState(data_state),tokenizer._emitToken({type:"Characters",data:character||"&"}),!0}function rcdata_state(buffer){var data=buffer.char();if(data===InputStream.EOF)return tokenizer._emitToken({type:"EOF",data:null}),!1;if("&"===data)tokenizer.setState(character_reference_in_rcdata_state);else if("<"===data)tokenizer.setState(rcdata_less_than_sign_state);else if("\\0"===data)tokenizer._parseError("invalid-codepoint"),tokenizer._emitToken({type:"Characters",data:"�"}),buffer.commit();else{var chars=buffer.matchUntil("&|<|\\0");tokenizer._emitToken({type:"Characters",data:data+chars}),buffer.commit()}return!0}function character_reference_in_rcdata_state(buffer){var character=EntityParser.consumeEntity(buffer,tokenizer);return tokenizer.setState(rcdata_state),tokenizer._emitToken({type:"Characters",data:character||"&"}),!0}function rawtext_state(buffer){var data=buffer.char();if(data===InputStream.EOF)return tokenizer._emitToken({type:"EOF",data:null}),!1;if("<"===data)tokenizer.setState(rawtext_less_than_sign_state);else if("\\0"===data)tokenizer._parseError("invalid-codepoint"),tokenizer._emitToken({type:"Characters",data:"�"}),buffer.commit();else{var chars=buffer.matchUntil("<|\\0");tokenizer._emitToken({type:"Characters",data:data+chars})}return!0}function plaintext_state(buffer){var data=buffer.char();if(data===InputStream.EOF)return tokenizer._emitToken({type:"EOF",data:null}),!1;if("\\0"===data)tokenizer._parseError("invalid-codepoint"),tokenizer._emitToken({type:"Characters",data:"�"}),buffer.commit();else{var chars=buffer.matchUntil("\\0");tokenizer._emitToken({type:"Characters",data:data+chars})}return!0}function script_data_state(buffer){var data=buffer.char();if(data===InputStream.EOF)return tokenizer._emitToken({type:"EOF",data:null}),!1;if("<"===data)tokenizer.setState(script_data_less_than_sign_state);else if("\\0"===data)tokenizer._parseError("invalid-codepoint"),tokenizer._emitToken({type:"Characters",data:"�"}),buffer.commit();else{var chars=buffer.matchUntil("<|\\0");tokenizer._emitToken({type:"Characters",data:data+chars})}return!0}function rcdata_less_than_sign_state(buffer){var data=buffer.char();return"/"===data?(this._temporaryBuffer="",tokenizer.setState(rcdata_end_tag_open_state)):(tokenizer._emitToken({type:"Characters",data:"<"}),buffer.unget(data),tokenizer.setState(rcdata_state)),!0}function rcdata_end_tag_open_state(buffer){var data=buffer.char();return isAlpha(data)?(this._temporaryBuffer+=data,tokenizer.setState(rcdata_end_tag_name_state)):(tokenizer._emitToken({type:"Characters",data:"</"}),buffer.unget(data),tokenizer.setState(rcdata_state)),!0}function rcdata_end_tag_name_state(buffer){var appropriate=tokenizer._currentToken&&tokenizer._currentToken.name===this._temporaryBuffer.toLowerCase(),data=buffer.char();return isWhitespace(data)&&appropriate?(tokenizer._currentToken={type:"EndTag",name:this._temporaryBuffer,data:[],selfClosing:!1},tokenizer.setState(before_attribute_name_state)):"/"===data&&appropriate?(tokenizer._currentToken={type:"EndTag",name:this._temporaryBuffer,data:[],selfClosing:!1},tokenizer.setState(self_closing_tag_state)):">"===data&&appropriate?(tokenizer._currentToken={type:"EndTag",name:this._temporaryBuffer,data:[],selfClosing:!1},tokenizer._emitCurrentToken(),tokenizer.setState(data_state)):isAlpha(data)?(this._temporaryBuffer+=data,buffer.commit()):(tokenizer._emitToken({type:"Characters",data:"</"+this._temporaryBuffer}),buffer.unget(data),tokenizer.setState(rcdata_state)),!0}function rawtext_less_than_sign_state(buffer){var data=buffer.char();return"/"===data?(this._temporaryBuffer="",tokenizer.setState(rawtext_end_tag_open_state)):(tokenizer._emitToken({type:"Characters",data:"<"}),buffer.unget(data),tokenizer.setState(rawtext_state)),!0}function rawtext_end_tag_open_state(buffer){var data=buffer.char();return isAlpha(data)?(this._temporaryBuffer+=data,tokenizer.setState(rawtext_end_tag_name_state)):(tokenizer._emitToken({type:"Characters",data:"</"}),buffer.unget(data),tokenizer.setState(rawtext_state)),!0}function rawtext_end_tag_name_state(buffer){var appropriate=tokenizer._currentToken&&tokenizer._currentToken.name===this._temporaryBuffer.toLowerCase(),data=buffer.char();return isWhitespace(data)&&appropriate?(tokenizer._currentToken={type:"EndTag",name:this._temporaryBuffer,data:[],selfClosing:!1},tokenizer.setState(before_attribute_name_state)):"/"===data&&appropriate?(tokenizer._currentToken={type:"EndTag",name:this._temporaryBuffer,data:[],selfClosing:!1},tokenizer.setState(self_closing_tag_state)):">"===data&&appropriate?(tokenizer._currentToken={type:"EndTag",name:this._temporaryBuffer,data:[],selfClosing:!1},tokenizer._emitCurrentToken(),tokenizer.setState(data_state)):isAlpha(data)?(this._temporaryBuffer+=data,buffer.commit()):(tokenizer._emitToken({type:"Characters",data:"</"+this._temporaryBuffer}),buffer.unget(data),tokenizer.setState(rawtext_state)),!0}function script_data_less_than_sign_state(buffer){var data=buffer.char();return"/"===data?(this._temporaryBuffer="",tokenizer.setState(script_data_end_tag_open_state)):"!"===data?(tokenizer._emitToken({type:"Characters",data:"<!"}),tokenizer.setState(script_data_escape_start_state)):(tokenizer._emitToken({type:"Characters",data:"<"}),buffer.unget(data),tokenizer.setState(script_data_state)),!0}function script_data_end_tag_open_state(buffer){var data=buffer.char();return isAlpha(data)?(this._temporaryBuffer+=data,tokenizer.setState(script_data_end_tag_name_state)):(tokenizer._emitToken({type:"Characters",data:"</"}),buffer.unget(data),tokenizer.setState(script_data_state)),!0}function script_data_end_tag_name_state(buffer){var appropriate=tokenizer._currentToken&&tokenizer._currentToken.name===this._temporaryBuffer.toLowerCase(),data=buffer.char();return isWhitespace(data)&&appropriate?(tokenizer._currentToken={type:"EndTag",name:"script",data:[],selfClosing:!1},tokenizer.setState(before_attribute_name_state)):"/"===data&&appropriate?(tokenizer._currentToken={type:"EndTag",name:"script",data:[],selfClosing:!1},tokenizer.setState(self_closing_tag_state)):">"===data&&appropriate?(tokenizer._currentToken={type:"EndTag",name:"script",data:[],selfClosing:!1},tokenizer._emitCurrentToken()):isAlpha(data)?(this._temporaryBuffer+=data,buffer.commit()):(tokenizer._emitToken({type:"Characters",data:"</"+this._temporaryBuffer}),buffer.unget(data),tokenizer.setState(script_data_state)),!0}function script_data_escape_start_state(buffer){var data=buffer.char();return"-"===data?(tokenizer._emitToken({type:"Characters",data:"-"}),tokenizer.setState(script_data_escape_start_dash_state)):(buffer.unget(data),tokenizer.setState(script_data_state)),!0}function script_data_escape_start_dash_state(buffer){var data=buffer.char();return"-"===data?(tokenizer._emitToken({type:"Characters",data:"-"}),tokenizer.setState(script_data_escaped_dash_dash_state)):(buffer.unget(data),tokenizer.setState(script_data_state)),!0}function script_data_escaped_state(buffer){var data=buffer.char();if(data===InputStream.EOF)buffer.unget(data),tokenizer.setState(data_state);else if("-"===data)tokenizer._emitToken({type:"Characters",data:"-"}),tokenizer.setState(script_data_escaped_dash_state);else if("<"===data)tokenizer.setState(script_data_escaped_less_then_sign_state);else if("\\0"===data)tokenizer._parseError("invalid-codepoint"),tokenizer._emitToken({type:"Characters",data:"�"}),buffer.commit();else{var chars=buffer.matchUntil("<|-|\\0");tokenizer._emitToken({type:"Characters",data:data+chars})}return!0}function script_data_escaped_dash_state(buffer){var data=buffer.char();return data===InputStream.EOF?(buffer.unget(data),tokenizer.setState(data_state)):"-"===data?(tokenizer._emitToken({type:"Characters",data:"-"}),tokenizer.setState(script_data_escaped_dash_dash_state)):"<"===data?tokenizer.setState(script_data_escaped_less_then_sign_state):"\\0"===data?(tokenizer._parseError("invalid-codepoint"),tokenizer._emitToken({type:"Characters",data:"�"}),tokenizer.setState(script_data_escaped_state)):(tokenizer._emitToken({type:"Characters",data:data}),tokenizer.setState(script_data_escaped_state)),!0}function script_data_escaped_dash_dash_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-script"),buffer.unget(data),tokenizer.setState(data_state)):"<"===data?tokenizer.setState(script_data_escaped_less_then_sign_state):">"===data?(tokenizer._emitToken({type:"Characters",data:">"}),tokenizer.setState(script_data_state)):"\\0"===data?(tokenizer._parseError("invalid-codepoint"),tokenizer._emitToken({type:"Characters",data:"�"}),tokenizer.setState(script_data_escaped_state)):(tokenizer._emitToken({type:"Characters",data:data}),tokenizer.setState(script_data_escaped_state)),!0}function script_data_escaped_less_then_sign_state(buffer){var data=buffer.char();return"/"===data?(this._temporaryBuffer="",tokenizer.setState(script_data_escaped_end_tag_open_state)):isAlpha(data)?(tokenizer._emitToken({type:"Characters",data:"<"+data}),this._temporaryBuffer=data,tokenizer.setState(script_data_double_escape_start_state)):(tokenizer._emitToken({type:"Characters",data:"<"}),buffer.unget(data),tokenizer.setState(script_data_escaped_state)),!0}function script_data_escaped_end_tag_open_state(buffer){var data=buffer.char();return isAlpha(data)?(this._temporaryBuffer=data,tokenizer.setState(script_data_escaped_end_tag_name_state)):(tokenizer._emitToken({type:"Characters",data:"</"}),buffer.unget(data),tokenizer.setState(script_data_escaped_state)),!0}function script_data_escaped_end_tag_name_state(buffer){var appropriate=tokenizer._currentToken&&tokenizer._currentToken.name===this._temporaryBuffer.toLowerCase(),data=buffer.char();return isWhitespace(data)&&appropriate?(tokenizer._currentToken={type:"EndTag",name:"script",data:[],selfClosing:!1},tokenizer.setState(before_attribute_name_state)):"/"===data&&appropriate?(tokenizer._currentToken={type:"EndTag",name:"script",data:[],selfClosing:!1},tokenizer.setState(self_closing_tag_state)):">"===data&&appropriate?(tokenizer._currentToken={type:"EndTag",name:"script",data:[],selfClosing:!1},tokenizer.setState(data_state),tokenizer._emitCurrentToken()):isAlpha(data)?(this._temporaryBuffer+=data,buffer.commit()):(tokenizer._emitToken({type:"Characters",data:"</"+this._temporaryBuffer}),buffer.unget(data),tokenizer.setState(script_data_escaped_state)),!0}function script_data_double_escape_start_state(buffer){var data=buffer.char();return isWhitespace(data)||"/"===data||">"===data?(tokenizer._emitToken({type:"Characters",data:data}),"script"===this._temporaryBuffer.toLowerCase()?tokenizer.setState(script_data_double_escaped_state):tokenizer.setState(script_data_escaped_state)):isAlpha(data)?(tokenizer._emitToken({type:"Characters",data:data}),this._temporaryBuffer+=data,buffer.commit()):(buffer.unget(data),tokenizer.setState(script_data_escaped_state)),!0}function script_data_double_escaped_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-script"),buffer.unget(data),tokenizer.setState(data_state)):"-"===data?(tokenizer._emitToken({type:"Characters",data:"-"}),tokenizer.setState(script_data_double_escaped_dash_state)):"<"===data?(tokenizer._emitToken({type:"Characters",data:"<"}),tokenizer.setState(script_data_double_escaped_less_than_sign_state)):"\\0"===data?(tokenizer._parseError("invalid-codepoint"),tokenizer._emitToken({type:"Characters",data:"�"}),buffer.commit()):(tokenizer._emitToken({type:"Characters",data:data}),buffer.commit()),!0}function script_data_double_escaped_dash_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-script"),buffer.unget(data),tokenizer.setState(data_state)):"-"===data?(tokenizer._emitToken({type:"Characters",data:"-"}),tokenizer.setState(script_data_double_escaped_dash_dash_state)):"<"===data?(tokenizer._emitToken({type:"Characters",data:"<"}),tokenizer.setState(script_data_double_escaped_less_than_sign_state)):"\\0"===data?(tokenizer._parseError("invalid-codepoint"),tokenizer._emitToken({type:"Characters",data:"�"}),tokenizer.setState(script_data_double_escaped_state)):(tokenizer._emitToken({type:"Characters",data:data}),tokenizer.setState(script_data_double_escaped_state)),!0}function script_data_double_escaped_dash_dash_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-script"),buffer.unget(data),tokenizer.setState(data_state)):"-"===data?(tokenizer._emitToken({type:"Characters",data:"-"}),buffer.commit()):"<"===data?(tokenizer._emitToken({type:"Characters",data:"<"}),tokenizer.setState(script_data_double_escaped_less_than_sign_state)):">"===data?(tokenizer._emitToken({type:"Characters",data:">"}),tokenizer.setState(script_data_state)):"\\0"===data?(tokenizer._parseError("invalid-codepoint"),tokenizer._emitToken({type:"Characters",data:"�"}),tokenizer.setState(script_data_double_escaped_state)):(tokenizer._emitToken({type:"Characters",data:data}),tokenizer.setState(script_data_double_escaped_state)),!0}function script_data_double_escaped_less_than_sign_state(buffer){var data=buffer.char();return"/"===data?(tokenizer._emitToken({type:"Characters",data:"/"}),this._temporaryBuffer="",tokenizer.setState(script_data_double_escape_end_state)):(buffer.unget(data),tokenizer.setState(script_data_double_escaped_state)),!0}function script_data_double_escape_end_state(buffer){var data=buffer.char();return isWhitespace(data)||"/"===data||">"===data?(tokenizer._emitToken({type:"Characters",data:data}),"script"===this._temporaryBuffer.toLowerCase()?tokenizer.setState(script_data_escaped_state):tokenizer.setState(script_data_double_escaped_state)):isAlpha(data)?(tokenizer._emitToken({type:"Characters",data:data}),this._temporaryBuffer+=data,buffer.commit()):(buffer.unget(data),tokenizer.setState(script_data_double_escaped_state)),!0}function tag_open_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("bare-less-than-sign-at-eof"),tokenizer._emitToken({type:"Characters",data:"<"}),buffer.unget(data),tokenizer.setState(data_state)):isAlpha(data)?(tokenizer._currentToken={type:"StartTag",name:data.toLowerCase(),data:[]},tokenizer.setState(tag_name_state)):"!"===data?tokenizer.setState(markup_declaration_open_state):"/"===data?tokenizer.setState(close_tag_open_state):">"===data?(tokenizer._parseError("expected-tag-name-but-got-right-bracket"),tokenizer._emitToken({type:"Characters",data:"<>"}),tokenizer.setState(data_state)):"?"===data?(tokenizer._parseError("expected-tag-name-but-got-question-mark"),buffer.unget(data),tokenizer.setState(bogus_comment_state)):(tokenizer._parseError("expected-tag-name"),tokenizer._emitToken({type:"Characters",data:"<"}),buffer.unget(data),tokenizer.setState(data_state)),!0}function close_tag_open_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("expected-closing-tag-but-got-eof"),tokenizer._emitToken({type:"Characters",data:"</"}),buffer.unget(data),tokenizer.setState(data_state)):isAlpha(data)?(tokenizer._currentToken={type:"EndTag",name:data.toLowerCase(),data:[]},tokenizer.setState(tag_name_state)):">"===data?(tokenizer._parseError("expected-closing-tag-but-got-right-bracket"),tokenizer.setState(data_state)):(tokenizer._parseError("expected-closing-tag-but-got-char",{data:data}),buffer.unget(data),tokenizer.setState(bogus_comment_state)),!0}function tag_name_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-tag-name"),buffer.unget(data),tokenizer.setState(data_state)):isWhitespace(data)?tokenizer.setState(before_attribute_name_state):isAlpha(data)?tokenizer._currentToken.name+=data.toLowerCase():">"===data?tokenizer._emitCurrentToken():"/"===data?tokenizer.setState(self_closing_tag_state):"\\0"===data?(tokenizer._parseError("invalid-codepoint"),tokenizer._currentToken.name+="�"):tokenizer._currentToken.name+=data,buffer.commit(),!0}function before_attribute_name_state(buffer){var data=buffer.char();if(data===InputStream.EOF)tokenizer._parseError("expected-attribute-name-but-got-eof"),buffer.unget(data),tokenizer.setState(data_state);else{if(isWhitespace(data))return!0;isAlpha(data)?(tokenizer._currentToken.data.push({nodeName:data.toLowerCase(),nodeValue:""}),tokenizer.setState(attribute_name_state)):">"===data?tokenizer._emitCurrentToken():"/"===data?tokenizer.setState(self_closing_tag_state):"\'"===data||\'"\'===data||"="===data||"<"===data?(tokenizer._parseError("invalid-character-in-attribute-name"),tokenizer._currentToken.data.push({nodeName:data,nodeValue:""}),tokenizer.setState(attribute_name_state)):"\\0"===data?(tokenizer._parseError("invalid-codepoint"),tokenizer._currentToken.data.push({nodeName:"�",nodeValue:""})):(tokenizer._currentToken.data.push({nodeName:data,nodeValue:""}),tokenizer.setState(attribute_name_state))}return!0}function attribute_name_state(buffer){var data=buffer.char(),leavingThisState=!0,shouldEmit=!1;if(data===InputStream.EOF?(tokenizer._parseError("eof-in-attribute-name"),buffer.unget(data),tokenizer.setState(data_state),shouldEmit=!0):"="===data?tokenizer.setState(before_attribute_value_state):isAlpha(data)?(tokenizer._currentAttribute().nodeName+=data.toLowerCase(),leavingThisState=!1):">"===data?shouldEmit=!0:isWhitespace(data)?tokenizer.setState(after_attribute_name_state):"/"===data?tokenizer.setState(self_closing_tag_state):"\'"===data||\'"\'===data?(tokenizer._parseError("invalid-character-in-attribute-name"),tokenizer._currentAttribute().nodeName+=data,leavingThisState=!1):"\\0"===data?(tokenizer._parseError("invalid-codepoint"),tokenizer._currentAttribute().nodeName+="�"):(tokenizer._currentAttribute().nodeName+=data,leavingThisState=!1),leavingThisState){for(var attributes=tokenizer._currentToken.data,currentAttribute=attributes[attributes.length-1],i=attributes.length-2;i>=0;i--)if(currentAttribute.nodeName===attributes[i].nodeName){tokenizer._parseError("duplicate-attribute",{name:currentAttribute.nodeName}),currentAttribute.nodeName=null;break}shouldEmit&&tokenizer._emitCurrentToken()}else buffer.commit();return!0}function after_attribute_name_state(buffer){var data=buffer.char();if(data===InputStream.EOF)tokenizer._parseError("expected-end-of-tag-but-got-eof"),buffer.unget(data),tokenizer.setState(data_state);else{if(isWhitespace(data))return!0;"="===data?tokenizer.setState(before_attribute_value_state):">"===data?tokenizer._emitCurrentToken():isAlpha(data)?(tokenizer._currentToken.data.push({nodeName:data,nodeValue:""}),tokenizer.setState(attribute_name_state)):"/"===data?tokenizer.setState(self_closing_tag_state):"\'"===data||\'"\'===data||"<"===data?(tokenizer._parseError("invalid-character-after-attribute-name"),tokenizer._currentToken.data.push({nodeName:data,nodeValue:""}),tokenizer.setState(attribute_name_state)):"\\0"===data?(tokenizer._parseError("invalid-codepoint"),tokenizer._currentToken.data.push({nodeName:"�",nodeValue:""})):(tokenizer._currentToken.data.push({nodeName:data,nodeValue:""}),tokenizer.setState(attribute_name_state))}return!0}function before_attribute_value_state(buffer){var data=buffer.char();if(data===InputStream.EOF)tokenizer._parseError("expected-attribute-value-but-got-eof"),buffer.unget(data),tokenizer.setState(data_state);else{if(isWhitespace(data))return!0;\'"\'===data?tokenizer.setState(attribute_value_double_quoted_state):"&"===data?(tokenizer.setState(attribute_value_unquoted_state),buffer.unget(data)):"\'"===data?tokenizer.setState(attribute_value_single_quoted_state):">"===data?(tokenizer._parseError("expected-attribute-value-but-got-right-bracket"),tokenizer._emitCurrentToken()):"="===data||"<"===data||"`"===data?(tokenizer._parseError("unexpected-character-in-unquoted-attribute-value"),tokenizer._currentAttribute().nodeValue+=data,tokenizer.setState(attribute_value_unquoted_state)):"\\0"===data?(tokenizer._parseError("invalid-codepoint"),tokenizer._currentAttribute().nodeValue+="�"):(tokenizer._currentAttribute().nodeValue+=data,tokenizer.setState(attribute_value_unquoted_state))}return!0\n}function attribute_value_double_quoted_state(buffer){var data=buffer.char();if(data===InputStream.EOF)tokenizer._parseError("eof-in-attribute-value-double-quote"),buffer.unget(data),tokenizer.setState(data_state);else if(\'"\'===data)tokenizer.setState(after_attribute_value_state);else if("&"===data)this._additionalAllowedCharacter=\'"\',tokenizer.setState(character_reference_in_attribute_value_state);else if("\\0"===data)tokenizer._parseError("invalid-codepoint"),tokenizer._currentAttribute().nodeValue+="�";else{var s=buffer.matchUntil(\'[\\0"&]\');data+=s,tokenizer._currentAttribute().nodeValue+=data}return!0}function attribute_value_single_quoted_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-attribute-value-single-quote"),buffer.unget(data),tokenizer.setState(data_state)):"\'"===data?tokenizer.setState(after_attribute_value_state):"&"===data?(this._additionalAllowedCharacter="\'",tokenizer.setState(character_reference_in_attribute_value_state)):"\\0"===data?(tokenizer._parseError("invalid-codepoint"),tokenizer._currentAttribute().nodeValue+="�"):tokenizer._currentAttribute().nodeValue+=data+buffer.matchUntil("\\0|[\'&]"),!0}function attribute_value_unquoted_state(buffer){var data=buffer.char();if(data===InputStream.EOF)tokenizer._parseError("eof-after-attribute-value"),buffer.unget(data),tokenizer.setState(data_state);else if(isWhitespace(data))tokenizer.setState(before_attribute_name_state);else if("&"===data)this._additionalAllowedCharacter=">",tokenizer.setState(character_reference_in_attribute_value_state);else if(">"===data)tokenizer._emitCurrentToken();else if(\'"\'===data||"\'"===data||"="===data||"`"===data||"<"===data)tokenizer._parseError("unexpected-character-in-unquoted-attribute-value"),tokenizer._currentAttribute().nodeValue+=data,buffer.commit();else if("\\0"===data)tokenizer._parseError("invalid-codepoint"),tokenizer._currentAttribute().nodeValue+="�";else{var o=buffer.matchUntil("\\0|[\t\\n\v\\f \\r&<>\\"\'=`]");o===InputStream.EOF&&(tokenizer._parseError("eof-in-attribute-value-no-quotes"),tokenizer._emitCurrentToken()),buffer.commit(),tokenizer._currentAttribute().nodeValue+=data+o}return!0}function character_reference_in_attribute_value_state(buffer){var character=EntityParser.consumeEntity(buffer,tokenizer,this._additionalAllowedCharacter);return this._currentAttribute().nodeValue+=character||"&",\'"\'===this._additionalAllowedCharacter?tokenizer.setState(attribute_value_double_quoted_state):"\'"===this._additionalAllowedCharacter?tokenizer.setState(attribute_value_single_quoted_state):">"===this._additionalAllowedCharacter&&tokenizer.setState(attribute_value_unquoted_state),!0}function after_attribute_value_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-after-attribute-value"),buffer.unget(data),tokenizer.setState(data_state)):isWhitespace(data)?tokenizer.setState(before_attribute_name_state):">"===data?(tokenizer.setState(data_state),tokenizer._emitCurrentToken()):"/"===data?tokenizer.setState(self_closing_tag_state):(tokenizer._parseError("unexpected-character-after-attribute-value"),buffer.unget(data),tokenizer.setState(before_attribute_name_state)),!0}function self_closing_tag_state(buffer){var c=buffer.char();return c===InputStream.EOF?(tokenizer._parseError("unexpected-eof-after-solidus-in-tag"),buffer.unget(c),tokenizer.setState(data_state)):">"===c?(tokenizer._currentToken.selfClosing=!0,tokenizer.setState(data_state),tokenizer._emitCurrentToken()):(tokenizer._parseError("unexpected-character-after-solidus-in-tag"),buffer.unget(c),tokenizer.setState(before_attribute_name_state)),!0}function bogus_comment_state(buffer){var data=buffer.matchUntil(">");return data=data.replace(/\\u0000/g,"�"),buffer.char(),tokenizer._emitToken({type:"Comment",data:data}),tokenizer.setState(data_state),!0}function markup_declaration_open_state(buffer){var chars=buffer.shift(2);if("--"===chars)tokenizer._currentToken={type:"Comment",data:""},tokenizer.setState(comment_start_state);else{var newchars=buffer.shift(5);if(newchars===InputStream.EOF||chars===InputStream.EOF)return tokenizer._parseError("expected-dashes-or-doctype"),tokenizer.setState(bogus_comment_state),buffer.unget(chars),!0;chars+=newchars,"DOCTYPE"===chars.toUpperCase()?(tokenizer._currentToken={type:"Doctype",name:"",publicId:null,systemId:null,forceQuirks:!1},tokenizer.setState(doctype_state)):tokenizer._tokenHandler.isCdataSectionAllowed()&&"[CDATA["===chars?tokenizer.setState(cdata_section_state):(tokenizer._parseError("expected-dashes-or-doctype"),buffer.unget(chars),tokenizer.setState(bogus_comment_state))}return!0}function cdata_section_state(buffer){var data=buffer.matchUntil("]]>");return buffer.shift(3),data&&tokenizer._emitToken({type:"Characters",data:data}),tokenizer.setState(data_state),!0}function comment_start_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-comment"),tokenizer._emitToken(tokenizer._currentToken),buffer.unget(data),tokenizer.setState(data_state)):"-"===data?tokenizer.setState(comment_start_dash_state):">"===data?(tokenizer._parseError("incorrect-comment"),tokenizer._emitToken(tokenizer._currentToken),tokenizer.setState(data_state)):"\\0"===data?(tokenizer._parseError("invalid-codepoint"),tokenizer._currentToken.data+="�"):(tokenizer._currentToken.data+=data,tokenizer.setState(comment_state)),!0}function comment_start_dash_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-comment"),tokenizer._emitToken(tokenizer._currentToken),buffer.unget(data),tokenizer.setState(data_state)):"-"===data?tokenizer.setState(comment_end_state):">"===data?(tokenizer._parseError("incorrect-comment"),tokenizer._emitToken(tokenizer._currentToken),tokenizer.setState(data_state)):"\\0"===data?(tokenizer._parseError("invalid-codepoint"),tokenizer._currentToken.data+="�"):(tokenizer._currentToken.data+="-"+data,tokenizer.setState(comment_state)),!0}function comment_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-comment"),tokenizer._emitToken(tokenizer._currentToken),buffer.unget(data),tokenizer.setState(data_state)):"-"===data?tokenizer.setState(comment_end_dash_state):"\\0"===data?(tokenizer._parseError("invalid-codepoint"),tokenizer._currentToken.data+="�"):(tokenizer._currentToken.data+=data,buffer.commit()),!0}function comment_end_dash_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-comment-end-dash"),tokenizer._emitToken(tokenizer._currentToken),buffer.unget(data),tokenizer.setState(data_state)):"-"===data?tokenizer.setState(comment_end_state):"\\0"===data?(tokenizer._parseError("invalid-codepoint"),tokenizer._currentToken.data+="-�",tokenizer.setState(comment_state)):(tokenizer._currentToken.data+="-"+data+buffer.matchUntil("\\0|-"),buffer.char()),!0}function comment_end_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-comment-double-dash"),tokenizer._emitToken(tokenizer._currentToken),buffer.unget(data),tokenizer.setState(data_state)):">"===data?(tokenizer._emitToken(tokenizer._currentToken),tokenizer.setState(data_state)):"!"===data?(tokenizer._parseError("unexpected-bang-after-double-dash-in-comment"),tokenizer.setState(comment_end_bang_state)):"-"===data?(tokenizer._parseError("unexpected-dash-after-double-dash-in-comment"),tokenizer._currentToken.data+=data):"\\0"===data?(tokenizer._parseError("invalid-codepoint"),tokenizer._currentToken.data+="--�",tokenizer.setState(comment_state)):(tokenizer._parseError("unexpected-char-in-comment"),tokenizer._currentToken.data+="--"+data,tokenizer.setState(comment_state)),!0}function comment_end_bang_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-comment-end-bang-state"),tokenizer._emitToken(tokenizer._currentToken),buffer.unget(data),tokenizer.setState(data_state)):">"===data?(tokenizer._emitToken(tokenizer._currentToken),tokenizer.setState(data_state)):"-"===data?(tokenizer._currentToken.data+="--!",tokenizer.setState(comment_end_dash_state)):(tokenizer._currentToken.data+="--!"+data,tokenizer.setState(comment_state)),!0}function doctype_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("expected-doctype-name-but-got-eof"),tokenizer._currentToken.forceQuirks=!0,buffer.unget(data),tokenizer.setState(data_state),tokenizer._emitCurrentToken()):isWhitespace(data)?tokenizer.setState(before_doctype_name_state):(tokenizer._parseError("need-space-after-doctype"),buffer.unget(data),tokenizer.setState(before_doctype_name_state)),!0}function before_doctype_name_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("expected-doctype-name-but-got-eof"),tokenizer._currentToken.forceQuirks=!0,buffer.unget(data),tokenizer.setState(data_state),tokenizer._emitCurrentToken()):isWhitespace(data)||(">"===data?(tokenizer._parseError("expected-doctype-name-but-got-right-bracket"),tokenizer._currentToken.forceQuirks=!0,tokenizer.setState(data_state),tokenizer._emitCurrentToken()):(isAlpha(data)&&(data=data.toLowerCase()),tokenizer._currentToken.name=data,tokenizer.setState(doctype_name_state))),!0}function doctype_name_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._currentToken.forceQuirks=!0,buffer.unget(data),tokenizer._parseError("eof-in-doctype-name"),tokenizer.setState(data_state),tokenizer._emitCurrentToken()):isWhitespace(data)?tokenizer.setState(after_doctype_name_state):">"===data?(tokenizer.setState(data_state),tokenizer._emitCurrentToken()):(isAlpha(data)&&(data=data.toLowerCase()),tokenizer._currentToken.name+=data,buffer.commit()),!0}function after_doctype_name_state(buffer){var data=buffer.char();if(data===InputStream.EOF)tokenizer._currentToken.forceQuirks=!0,buffer.unget(data),tokenizer._parseError("eof-in-doctype"),tokenizer.setState(data_state),tokenizer._emitCurrentToken();else if(isWhitespace(data));else if(">"===data)tokenizer.setState(data_state),tokenizer._emitCurrentToken();else{if(["p","P"].indexOf(data)>-1){var expected=[["u","U"],["b","B"],["l","L"],["i","I"],["c","C"]],matched=expected.every(function(expected){return data=buffer.char(),expected.indexOf(data)>-1});if(matched)return tokenizer.setState(after_doctype_public_keyword_state),!0}else if(["s","S"].indexOf(data)>-1){var expected=[["y","Y"],["s","S"],["t","T"],["e","E"],["m","M"]],matched=expected.every(function(expected){return data=buffer.char(),expected.indexOf(data)>-1});if(matched)return tokenizer.setState(after_doctype_system_keyword_state),!0}buffer.unget(data),tokenizer._currentToken.forceQuirks=!0,data===InputStream.EOF?(tokenizer._parseError("eof-in-doctype"),buffer.unget(data),tokenizer.setState(data_state),tokenizer._emitCurrentToken()):(tokenizer._parseError("expected-space-or-right-bracket-in-doctype",{data:data}),tokenizer.setState(bogus_doctype_state))}return!0}function after_doctype_public_keyword_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-doctype"),tokenizer._currentToken.forceQuirks=!0,buffer.unget(data),tokenizer.setState(data_state),tokenizer._emitCurrentToken()):isWhitespace(data)?tokenizer.setState(before_doctype_public_identifier_state):"\'"===data||\'"\'===data?(tokenizer._parseError("unexpected-char-in-doctype"),buffer.unget(data),tokenizer.setState(before_doctype_public_identifier_state)):(buffer.unget(data),tokenizer.setState(before_doctype_public_identifier_state)),!0}function before_doctype_public_identifier_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-doctype"),tokenizer._currentToken.forceQuirks=!0,buffer.unget(data),tokenizer.setState(data_state),tokenizer._emitCurrentToken()):isWhitespace(data)||(\'"\'===data?(tokenizer._currentToken.publicId="",tokenizer.setState(doctype_public_identifier_double_quoted_state)):"\'"===data?(tokenizer._currentToken.publicId="",tokenizer.setState(doctype_public_identifier_single_quoted_state)):">"===data?(tokenizer._parseError("unexpected-end-of-doctype"),tokenizer._currentToken.forceQuirks=!0,tokenizer.setState(data_state),tokenizer._emitCurrentToken()):(tokenizer._parseError("unexpected-char-in-doctype"),tokenizer._currentToken.forceQuirks=!0,tokenizer.setState(bogus_doctype_state))),!0}function doctype_public_identifier_double_quoted_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-doctype"),tokenizer._currentToken.forceQuirks=!0,buffer.unget(data),tokenizer.setState(data_state),tokenizer._emitCurrentToken()):\'"\'===data?tokenizer.setState(after_doctype_public_identifier_state):">"===data?(tokenizer._parseError("unexpected-end-of-doctype"),tokenizer._currentToken.forceQuirks=!0,tokenizer.setState(data_state),tokenizer._emitCurrentToken()):tokenizer._currentToken.publicId+=data,!0}function doctype_public_identifier_single_quoted_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-doctype"),tokenizer._currentToken.forceQuirks=!0,buffer.unget(data),tokenizer.setState(data_state),tokenizer._emitCurrentToken()):"\'"===data?tokenizer.setState(after_doctype_public_identifier_state):">"===data?(tokenizer._parseError("unexpected-end-of-doctype"),tokenizer._currentToken.forceQuirks=!0,tokenizer.setState(data_state),tokenizer._emitCurrentToken()):tokenizer._currentToken.publicId+=data,!0}function after_doctype_public_identifier_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-doctype"),tokenizer._currentToken.forceQuirks=!0,tokenizer._emitCurrentToken(),buffer.unget(data),tokenizer.setState(data_state)):isWhitespace(data)?tokenizer.setState(between_doctype_public_and_system_identifiers_state):">"===data?(tokenizer.setState(data_state),tokenizer._emitCurrentToken()):\'"\'===data?(tokenizer._parseError("unexpected-char-in-doctype"),tokenizer._currentToken.systemId="",tokenizer.setState(doctype_system_identifier_double_quoted_state)):"\'"===data?(tokenizer._parseError("unexpected-char-in-doctype"),tokenizer._currentToken.systemId="",tokenizer.setState(doctype_system_identifier_single_quoted_state)):(tokenizer._parseError("unexpected-char-in-doctype"),tokenizer._currentToken.forceQuirks=!0,tokenizer.setState(bogus_doctype_state)),!0}function between_doctype_public_and_system_identifiers_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-doctype"),tokenizer._currentToken.forceQuirks=!0,tokenizer._emitCurrentToken(),buffer.unget(data),tokenizer.setState(data_state)):isWhitespace(data)||(">"===data?(tokenizer._emitCurrentToken(),tokenizer.setState(data_state)):\'"\'===data?(tokenizer._currentToken.systemId="",tokenizer.setState(doctype_system_identifier_double_quoted_state)):"\'"===data?(tokenizer._currentToken.systemId="",tokenizer.setState(doctype_system_identifier_single_quoted_state)):(tokenizer._parseError("unexpected-char-in-doctype"),tokenizer._currentToken.forceQuirks=!0,tokenizer.setState(bogus_doctype_state))),!0}function after_doctype_system_keyword_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-doctype"),tokenizer._currentToken.forceQuirks=!0,tokenizer._emitCurrentToken(),buffer.unget(data),tokenizer.setState(data_state)):isWhitespace(data)?tokenizer.setState(before_doctype_system_identifier_state):"\'"===data||\'"\'===data?(tokenizer._parseError("unexpected-char-in-doctype"),buffer.unget(data),tokenizer.setState(before_doctype_system_identifier_state)):(buffer.unget(data),tokenizer.setState(before_doctype_system_identifier_state)),!0}function before_doctype_system_identifier_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-doctype"),tokenizer._currentToken.forceQuirks=!0,tokenizer._emitCurrentToken(),buffer.unget(data),tokenizer.setState(data_state)):isWhitespace(data)||(\'"\'===data?(tokenizer._currentToken.systemId="",tokenizer.setState(doctype_system_identifier_double_quoted_state)):"\'"===data?(tokenizer._currentToken.systemId="",tokenizer.setState(doctype_system_identifier_single_quoted_state)):">"===data?(tokenizer._parseError("unexpected-end-of-doctype"),tokenizer._currentToken.forceQuirks=!0,tokenizer._emitCurrentToken(),tokenizer.setState(data_state)):(tokenizer._parseError("unexpected-char-in-doctype"),tokenizer._currentToken.forceQuirks=!0,tokenizer.setState(bogus_doctype_state))),!0}function doctype_system_identifier_double_quoted_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-doctype"),tokenizer._currentToken.forceQuirks=!0,tokenizer._emitCurrentToken(),buffer.unget(data),tokenizer.setState(data_state)):\'"\'===data?tokenizer.setState(after_doctype_system_identifier_state):">"===data?(tokenizer._parseError("unexpected-end-of-doctype"),tokenizer._currentToken.forceQuirks=!0,tokenizer._emitCurrentToken(),tokenizer.setState(data_state)):tokenizer._currentToken.systemId+=data,!0}function doctype_system_identifier_single_quoted_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-doctype"),tokenizer._currentToken.forceQuirks=!0,tokenizer._emitCurrentToken(),buffer.unget(data),tokenizer.setState(data_state)):"\'"===data?tokenizer.setState(after_doctype_system_identifier_state):">"===data?(tokenizer._parseError("unexpected-end-of-doctype"),tokenizer._currentToken.forceQuirks=!0,tokenizer._emitCurrentToken(),tokenizer.setState(data_state)):tokenizer._currentToken.systemId+=data,!0}function after_doctype_system_identifier_state(buffer){var data=buffer.char();return data===InputStream.EOF?(tokenizer._parseError("eof-in-doctype"),tokenizer._currentToken.forceQuirks=!0,tokenizer._emitCurrentToken(),buffer.unget(data),tokenizer.setState(data_state)):isWhitespace(data)||(">"===data?(tokenizer._emitCurrentToken(),tokenizer.setState(data_state)):(tokenizer._parseError("unexpected-char-in-doctype"),tokenizer.setState(bogus_doctype_state))),!0}function bogus_doctype_state(buffer){var data=buffer.char();return data===InputStream.EOF?(buffer.unget(data),tokenizer._emitCurrentToken(),tokenizer.setState(data_state)):">"===data&&(tokenizer._emitCurrentToken(),tokenizer.setState(data_state)),!0}Tokenizer.DATA=data_state,Tokenizer.RCDATA=rcdata_state,Tokenizer.RAWTEXT=rawtext_state,Tokenizer.SCRIPT_DATA=script_data_state,Tokenizer.PLAINTEXT=plaintext_state,this._state=Tokenizer.DATA,this._inputStream.append(source),this._tokenHandler.startTokenization(this),this._inputStream.eof=!0;for(var tokenizer=this;this._state.call(this,this._inputStream););},Object.defineProperty(Tokenizer.prototype,"lineNumber",{get:function(){return this._inputStream.location().line}}),Object.defineProperty(Tokenizer.prototype,"columnNumber",{get:function(){return this._inputStream.location().column}}),exports.Tokenizer=Tokenizer},{"./EntityParser":2,"./InputStream":3}],6:[function(_dereq_,module,exports){function isWhitespace(ch){return" "===ch||"\\n"===ch||"\t"===ch||"\\r"===ch||"\\f"===ch}function isWhitespaceOrReplacementCharacter(ch){return isWhitespace(ch)||"�"===ch}function isAllWhitespace(characters){for(var i=0;characters.length>i;i++){var ch=characters[i];if(!isWhitespace(ch))return!1}return!0}function isAllWhitespaceOrReplacementCharacters(characters){for(var i=0;characters.length>i;i++){var ch=characters[i];if(!isWhitespaceOrReplacementCharacter(ch))return!1}return!0}function getAttribute(node,name){for(var i=0;node.attributes.length>i;i++){var attribute=node.attributes[i];if(attribute.nodeName===name)return attribute}return null}function CharacterBuffer(characters){this.characters=characters,this.current=0,this.end=this.characters.length}function TreeBuilder(){this.tokenizer=null,this.errorHandler=null,this.scriptingEnabled=!1,this.document=null,this.head=null,this.form=null,this.openElements=new ElementStack,this.activeFormattingElements=[],this.insertionMode=null,this.insertionModeName="",this.originalInsertionMode="",this.inQuirksMode=!1,this.compatMode="no quirks",this.framesetOk=!0,this.redirectAttachToFosterParent=!1,this.selfClosingFlagAcknowledged=!1,this.context="",this.pendingTableCharacters=[],this.shouldSkipLeadingNewline=!1;var tree=this,modes=this.insertionModes={};modes.base={end_tag_handlers:{"-default":"endTagOther"},start_tag_handlers:{"-default":"startTagOther"},processEOF:function(){tree.generateImpliedEndTags(),tree.openElements.length>2?tree.parseError("expected-closing-tag-but-got-eof"):2==tree.openElements.length&&"body"!=tree.openElements.item(1).localName?tree.parseError("expected-closing-tag-but-got-eof"):tree.context&&tree.openElements.length>1},processComment:function(data){tree.insertComment(data,tree.currentStackItem().node)},processDoctype:function(){tree.parseError("unexpected-doctype")},processStartTag:function(name,attributes,selfClosing){if(this[this.start_tag_handlers[name]])this[this.start_tag_handlers[name]](name,attributes,selfClosing);else{if(!this[this.start_tag_handlers["-default"]])throw Error("No handler found for "+name);this[this.start_tag_handlers["-default"]](name,attributes,selfClosing)}},processEndTag:function(name){if(this[this.end_tag_handlers[name]])this[this.end_tag_handlers[name]](name);else{if(!this[this.end_tag_handlers["-default"]])throw Error("No handler found for "+name);this[this.end_tag_handlers["-default"]](name)}},startTagHtml:function(name,attributes){modes.inBody.startTagHtml(name,attributes)}},modes.initial=Object.create(modes.base),modes.initial.processEOF=function(){tree.parseError("expected-doctype-but-got-eof"),this.anythingElse(),tree.insertionMode.processEOF()},modes.initial.processComment=function(data){tree.insertComment(data,tree.document)},modes.initial.processDoctype=function(name,publicId,systemId,forceQuirks){function publicIdStartsWith(string){return 0===publicId.toLowerCase().indexOf(string)}tree.insertDoctype(name||"",publicId||"",systemId||""),forceQuirks||"html"!=name||null!=publicId&&(["+//silmaril//dtd html pro v0r11 19970101//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//as//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html strict//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//ietf//dtd html//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o\'reilly and associates//dtd html 2.0//","-//o\'reilly and associates//dtd html extended 1.0//","-//spyglass//dtd html 2.0 extended//","-//sq//dtd html 2.0 hotmetal + extensions//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//","html"].some(publicIdStartsWith)||["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"].indexOf(publicId.toLowerCase())>-1||null==systemId&&["-//w3c//dtd html 4.01 transitional//","-//w3c//dtd html 4.01 frameset//"].some(publicIdStartsWith))||null!=systemId&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"==systemId.toLowerCase()?(tree.compatMode="quirks",tree.parseError("quirky-doctype")):null!=publicId&&(["-//w3c//dtd xhtml 1.0 transitional//","-//w3c//dtd xhtml 1.0 frameset//"].some(publicIdStartsWith)||null!=systemId&&["-//w3c//dtd html 4.01 transitional//","-//w3c//dtd html 4.01 frameset//"].indexOf(publicId.toLowerCase())>-1)?(tree.compatMode="limited quirks",tree.parseError("almost-standards-doctype")):"-//W3C//DTD HTML 4.0//EN"==publicId&&(null==systemId||"http://www.w3.org/TR/REC-html40/strict.dtd"==systemId)||"-//W3C//DTD HTML 4.01//EN"==publicId&&(null==systemId||"http://www.w3.org/TR/html4/strict.dtd"==systemId)||"-//W3C//DTD XHTML 1.0 Strict//EN"==publicId&&"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"==systemId||"-//W3C//DTD XHTML 1.1//EN"==publicId&&"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"==systemId||(null!=systemId&&"about:legacy-compat"!=systemId||null!=publicId)&&tree.parseError("unknown-doctype"),tree.setInsertionMode("beforeHTML")},modes.initial.processCharacters=function(buffer){buffer.skipLeadingWhitespace(),buffer.length&&(tree.parseError("expected-doctype-but-got-chars"),this.anythingElse(),tree.insertionMode.processCharacters(buffer))},modes.initial.processStartTag=function(name,attributes,selfClosing){tree.parseError("expected-doctype-but-got-start-tag",{name:name}),this.anythingElse(),tree.insertionMode.processStartTag(name,attributes,selfClosing)},modes.initial.processEndTag=function(name){tree.parseError("expected-doctype-but-got-end-tag",{name:name}),this.anythingElse(),tree.insertionMode.processEndTag(name)},modes.initial.anythingElse=function(){tree.compatMode="quirks",tree.setInsertionMode("beforeHTML")},modes.beforeHTML=Object.create(modes.base),modes.beforeHTML.start_tag_handlers={html:"startTagHtml","-default":"startTagOther"},modes.beforeHTML.processEOF=function(){this.anythingElse(),tree.insertionMode.processEOF()},modes.beforeHTML.processComment=function(data){tree.insertComment(data,tree.document)},modes.beforeHTML.processCharacters=function(buffer){buffer.skipLeadingWhitespace(),buffer.length&&(this.anythingElse(),tree.insertionMode.processCharacters(buffer))},modes.beforeHTML.startTagHtml=function(name,attributes){tree.insertHtmlElement(attributes),tree.setInsertionMode("beforeHead")},modes.beforeHTML.startTagOther=function(name,attributes,selfClosing){this.anythingElse(),tree.insertionMode.processStartTag(name,attributes,selfClosing)},modes.beforeHTML.processEndTag=function(name){this.anythingElse(),tree.insertionMode.processEndTag(name)},modes.beforeHTML.anythingElse=function(){tree.insertHtmlElement(),tree.setInsertionMode("beforeHead")},modes.afterAfterBody=Object.create(modes.base),modes.afterAfterBody.start_tag_handlers={html:"startTagHtml","-default":"startTagOther"},modes.afterAfterBody.processComment=function(data){tree.insertComment(data,tree.document)},modes.afterAfterBody.processDoctype=function(data){modes.inBody.processDoctype(data)},modes.afterAfterBody.startTagHtml=function(data,attributes){modes.inBody.startTagHtml(data,attributes)},modes.afterAfterBody.startTagOther=function(name,attributes,selfClosing){tree.parseError("unexpected-start-tag",{name:name}),tree.setInsertionMode("inBody"),tree.insertionMode.processStartTag(name,attributes,selfClosing)},modes.afterAfterBody.endTagOther=function(name){tree.parseError("unexpected-end-tag",{name:name}),tree.setInsertionMode("inBody"),tree.insertionMode.processEndTag(name)},modes.afterAfterBody.processCharacters=function(data){return isAllWhitespace(data.characters)?(modes.inBody.processCharacters(data),void 0):(tree.parseError("unexpected-char-after-body"),tree.setInsertionMode("inBody"),tree.insertionMode.processCharacters(data))},modes.afterBody=Object.create(modes.base),modes.afterBody.end_tag_handlers={html:"endTagHtml","-default":"endTagOther"},modes.afterBody.processComment=function(data){tree.insertComment(data,tree.openElements.rootNode)},modes.afterBody.processCharacters=function(data){return isAllWhitespace(data.characters)?(modes.inBody.processCharacters(data),void 0):(tree.parseError("unexpected-char-after-body"),tree.setInsertionMode("inBody"),tree.insertionMode.processCharacters(data))},modes.afterBody.processStartTag=function(name,attributes,selfClosing){tree.parseError("unexpected-start-tag-after-body",{name:name}),tree.setInsertionMode("inBody"),tree.insertionMode.processStartTag(name,attributes,selfClosing)},modes.afterBody.endTagHtml=function(){tree.context?tree.parseError("end-html-in-innerhtml"):tree.setInsertionMode("afterAfterBody")},modes.afterBody.endTagOther=function(name){tree.parseError("unexpected-end-tag-after-body",{name:name}),tree.setInsertionMode("inBody"),tree.insertionMode.processEndTag(name)},modes.afterFrameset=Object.create(modes.base),modes.afterFrameset.start_tag_handlers={html:"startTagHtml",noframes:"startTagNoframes","-default":"startTagOther"},modes.afterFrameset.end_tag_handlers={html:"endTagHtml","-default":"endTagOther"},modes.afterFrameset.processCharacters=function(buffer){for(var characters=buffer.takeRemaining(),whitespace="",i=0;characters.length>i;i++){var ch=characters[i];isWhitespace(ch)&&(whitespace+=ch)}whitespace&&tree.insertText(whitespace),whitespace.length<characters.length&&tree.parseError("expected-eof-but-got-char")},modes.afterFrameset.startTagNoframes=function(name,attributes){modes.inHead.processStartTag(name,attributes)},modes.afterFrameset.startTagOther=function(name){tree.parseError("unexpected-start-tag-after-frameset",{name:name})},modes.afterFrameset.endTagHtml=function(){tree.setInsertionMode("afterAfterFrameset")},modes.afterFrameset.endTagOther=function(name){tree.parseError("unexpected-end-tag-after-frameset",{name:name})},modes.beforeHead=Object.create(modes.base),modes.beforeHead.start_tag_handlers={html:"startTagHtml",head:"startTagHead","-default":"startTagOther"},modes.beforeHead.end_tag_handlers={html:"endTagImplyHead",head:"endTagImplyHead",body:"endTagImplyHead",br:"endTagImplyHead","-default":"endTagOther"},modes.beforeHead.processEOF=function(){this.startTagHead("head",[]),tree.insertionMode.processEOF()},modes.beforeHead.processCharacters=function(buffer){buffer.skipLeadingWhitespace(),buffer.length&&(this.startTagHead("head",[]),tree.insertionMode.processCharacters(buffer))},modes.beforeHead.startTagHead=function(name,attributes){tree.insertHeadElement(attributes),tree.setInsertionMode("inHead")},modes.beforeHead.startTagOther=function(name,attributes,selfClosing){this.startTagHead("head",[]),tree.insertionMode.processStartTag(name,attributes,selfClosing)},modes.beforeHead.endTagImplyHead=function(name){this.startTagHead("head",[]),tree.insertionMode.processEndTag(name)},modes.beforeHead.endTagOther=function(name){tree.parseError("end-tag-after-implied-root",{name:name})},modes.inHead=Object.create(modes.base),modes.inHead.start_tag_handlers={html:"startTagHtml",head:"startTagHead",title:"startTagTitle",script:"startTagScript",style:"startTagNoFramesStyle",noscript:"startTagNoScript",noframes:"startTagNoFramesStyle",base:"startTagBaseBasefontBgsoundLink",basefont:"startTagBaseBasefontBgsoundLink",bgsound:"startTagBaseBasefontBgsoundLink",link:"startTagBaseBasefontBgsoundLink",meta:"startTagMeta","-default":"startTagOther"},modes.inHead.end_tag_handlers={head:"endTagHead",html:"endTagHtmlBodyBr",body:"endTagHtmlBodyBr",br:"endTagHtmlBodyBr","-default":"endTagOther"},modes.inHead.processEOF=function(){var name=tree.currentStackItem().localName;\n-1!=["title","style","script"].indexOf(name)&&(tree.parseError("expected-named-closing-tag-but-got-eof",{name:name}),tree.popElement()),this.anythingElse(),tree.insertionMode.processEOF()},modes.inHead.processCharacters=function(buffer){var leadingWhitespace=buffer.takeLeadingWhitespace();leadingWhitespace&&tree.insertText(leadingWhitespace),buffer.length&&(this.anythingElse(),tree.insertionMode.processCharacters(buffer))},modes.inHead.startTagHtml=function(name,attributes){modes.inBody.processStartTag(name,attributes)},modes.inHead.startTagHead=function(){tree.parseError("two-heads-are-not-better-than-one")},modes.inHead.startTagTitle=function(name,attributes){tree.processGenericRCDATAStartTag(name,attributes)},modes.inHead.startTagNoScript=function(name,attributes){return tree.scriptingEnabled?tree.processGenericRawTextStartTag(name,attributes):(tree.insertElement(name,attributes),tree.setInsertionMode("inHeadNoscript"),void 0)},modes.inHead.startTagNoFramesStyle=function(name,attributes){tree.processGenericRawTextStartTag(name,attributes)},modes.inHead.startTagScript=function(name,attributes){tree.insertElement(name,attributes),tree.tokenizer.setState(Tokenizer.SCRIPT_DATA),tree.originalInsertionMode=tree.insertionModeName,tree.setInsertionMode("text")},modes.inHead.startTagBaseBasefontBgsoundLink=function(name,attributes){tree.insertSelfClosingElement(name,attributes)},modes.inHead.startTagMeta=function(name,attributes){tree.insertSelfClosingElement(name,attributes)},modes.inHead.startTagOther=function(name,attributes,selfClosing){this.anythingElse(),tree.insertionMode.processStartTag(name,attributes,selfClosing)},modes.inHead.endTagHead=function(){"head"==tree.openElements.item(tree.openElements.length-1).localName?tree.openElements.pop():tree.parseError("unexpected-end-tag",{name:"head"}),tree.setInsertionMode("afterHead")},modes.inHead.endTagHtmlBodyBr=function(name){this.anythingElse(),tree.insertionMode.processEndTag(name)},modes.inHead.endTagOther=function(name){tree.parseError("unexpected-end-tag",{name:name})},modes.inHead.anythingElse=function(){this.endTagHead("head")},modes.afterHead=Object.create(modes.base),modes.afterHead.start_tag_handlers={html:"startTagHtml",head:"startTagHead",body:"startTagBody",frameset:"startTagFrameset",base:"startTagFromHead",link:"startTagFromHead",meta:"startTagFromHead",script:"startTagFromHead",style:"startTagFromHead",title:"startTagFromHead","-default":"startTagOther"},modes.afterHead.end_tag_handlers={body:"endTagBodyHtmlBr",html:"endTagBodyHtmlBr",br:"endTagBodyHtmlBr","-default":"endTagOther"},modes.afterHead.processEOF=function(){this.anythingElse(),tree.insertionMode.processEOF()},modes.afterHead.processCharacters=function(buffer){var leadingWhitespace=buffer.takeLeadingWhitespace();leadingWhitespace&&tree.insertText(leadingWhitespace),buffer.length&&(this.anythingElse(),tree.insertionMode.processCharacters(buffer))},modes.afterHead.startTagHtml=function(name,attributes){modes.inBody.processStartTag(name,attributes)},modes.afterHead.startTagBody=function(name,attributes){tree.framesetOk=!1,tree.insertBodyElement(attributes),tree.setInsertionMode("inBody")},modes.afterHead.startTagFrameset=function(name,attributes){tree.insertElement(name,attributes),tree.setInsertionMode("inFrameset")},modes.afterHead.startTagFromHead=function(name,attributes,selfClosing){tree.parseError("unexpected-start-tag-out-of-my-head",{name:name}),tree.openElements.push(tree.head),modes.inHead.processStartTag(name,attributes,selfClosing),tree.openElements.remove(tree.head)},modes.afterHead.startTagHead=function(name){tree.parseError("unexpected-start-tag",{name:name})},modes.afterHead.startTagOther=function(name,attributes,selfClosing){this.anythingElse(),tree.insertionMode.processStartTag(name,attributes,selfClosing)},modes.afterHead.endTagBodyHtmlBr=function(name){this.anythingElse(),tree.insertionMode.processEndTag(name)},modes.afterHead.endTagOther=function(name){tree.parseError("unexpected-end-tag",{name:name})},modes.afterHead.anythingElse=function(){tree.insertBodyElement([]),tree.setInsertionMode("inBody"),tree.framesetOk=!0},modes.inBody=Object.create(modes.base),modes.inBody.start_tag_handlers={html:"startTagHtml",head:"startTagMisplaced",base:"startTagProcessInHead",basefont:"startTagProcessInHead",bgsound:"startTagProcessInHead",link:"startTagProcessInHead",meta:"startTagProcessInHead",noframes:"startTagProcessInHead",script:"startTagProcessInHead",style:"startTagProcessInHead",title:"startTagProcessInHead",body:"startTagBody",form:"startTagForm",plaintext:"startTagPlaintext",a:"startTagA",button:"startTagButton",xmp:"startTagXmp",table:"startTagTable",hr:"startTagHr",image:"startTagImage",input:"startTagInput",textarea:"startTagTextarea",select:"startTagSelect",isindex:"startTagIsindex",applet:"startTagAppletMarqueeObject",marquee:"startTagAppletMarqueeObject",object:"startTagAppletMarqueeObject",li:"startTagListItem",dd:"startTagListItem",dt:"startTagListItem",address:"startTagCloseP",article:"startTagCloseP",aside:"startTagCloseP",blockquote:"startTagCloseP",center:"startTagCloseP",details:"startTagCloseP",dir:"startTagCloseP",div:"startTagCloseP",dl:"startTagCloseP",fieldset:"startTagCloseP",figcaption:"startTagCloseP",figure:"startTagCloseP",footer:"startTagCloseP",header:"startTagCloseP",hgroup:"startTagCloseP",main:"startTagCloseP",menu:"startTagCloseP",nav:"startTagCloseP",ol:"startTagCloseP",p:"startTagCloseP",section:"startTagCloseP",summary:"startTagCloseP",ul:"startTagCloseP",listing:"startTagPreListing",pre:"startTagPreListing",b:"startTagFormatting",big:"startTagFormatting",code:"startTagFormatting",em:"startTagFormatting",font:"startTagFormatting",i:"startTagFormatting",s:"startTagFormatting",small:"startTagFormatting",strike:"startTagFormatting",strong:"startTagFormatting",tt:"startTagFormatting",u:"startTagFormatting",nobr:"startTagNobr",area:"startTagVoidFormatting",br:"startTagVoidFormatting",embed:"startTagVoidFormatting",img:"startTagVoidFormatting",keygen:"startTagVoidFormatting",wbr:"startTagVoidFormatting",param:"startTagParamSourceTrack",source:"startTagParamSourceTrack",track:"startTagParamSourceTrack",iframe:"startTagIFrame",noembed:"startTagRawText",noscript:"startTagRawText",h1:"startTagHeading",h2:"startTagHeading",h3:"startTagHeading",h4:"startTagHeading",h5:"startTagHeading",h6:"startTagHeading",caption:"startTagMisplaced",col:"startTagMisplaced",colgroup:"startTagMisplaced",frame:"startTagMisplaced",frameset:"startTagFrameset",tbody:"startTagMisplaced",td:"startTagMisplaced",tfoot:"startTagMisplaced",th:"startTagMisplaced",thead:"startTagMisplaced",tr:"startTagMisplaced",option:"startTagOptionOptgroup",optgroup:"startTagOptionOptgroup",math:"startTagMath",svg:"startTagSVG",rt:"startTagRpRt",rp:"startTagRpRt","-default":"startTagOther"},modes.inBody.end_tag_handlers={p:"endTagP",body:"endTagBody",html:"endTagHtml",address:"endTagBlock",article:"endTagBlock",aside:"endTagBlock",blockquote:"endTagBlock",button:"endTagBlock",center:"endTagBlock",details:"endTagBlock",dir:"endTagBlock",div:"endTagBlock",dl:"endTagBlock",fieldset:"endTagBlock",figcaption:"endTagBlock",figure:"endTagBlock",footer:"endTagBlock",header:"endTagBlock",hgroup:"endTagBlock",listing:"endTagBlock",main:"endTagBlock",menu:"endTagBlock",nav:"endTagBlock",ol:"endTagBlock",pre:"endTagBlock",section:"endTagBlock",summary:"endTagBlock",ul:"endTagBlock",form:"endTagForm",applet:"endTagAppletMarqueeObject",marquee:"endTagAppletMarqueeObject",object:"endTagAppletMarqueeObject",dd:"endTagListItem",dt:"endTagListItem",li:"endTagListItem",h1:"endTagHeading",h2:"endTagHeading",h3:"endTagHeading",h4:"endTagHeading",h5:"endTagHeading",h6:"endTagHeading",a:"endTagFormatting",b:"endTagFormatting",big:"endTagFormatting",code:"endTagFormatting",em:"endTagFormatting",font:"endTagFormatting",i:"endTagFormatting",nobr:"endTagFormatting",s:"endTagFormatting",small:"endTagFormatting",strike:"endTagFormatting",strong:"endTagFormatting",tt:"endTagFormatting",u:"endTagFormatting",br:"endTagBr","-default":"endTagOther"},modes.inBody.processCharacters=function(buffer){tree.shouldSkipLeadingNewline&&(tree.shouldSkipLeadingNewline=!1,buffer.skipAtMostOneLeadingNewline()),tree.reconstructActiveFormattingElements();var characters=buffer.takeRemaining();characters=characters.replace(/\\u0000/g,function(){return tree.parseError("invalid-codepoint"),""}),characters&&(tree.insertText(characters),tree.framesetOk&&!isAllWhitespaceOrReplacementCharacters(characters)&&(tree.framesetOk=!1))},modes.inBody.startTagHtml=function(name,attributes){tree.parseError("non-html-root"),tree.addAttributesToElement(tree.openElements.rootNode,attributes)},modes.inBody.startTagProcessInHead=function(name,attributes){modes.inHead.processStartTag(name,attributes)},modes.inBody.startTagBody=function(name,attributes){tree.parseError("unexpected-start-tag",{name:"body"}),1==tree.openElements.length||"body"!=tree.openElements.item(1).localName?assert.ok(tree.context):(tree.framesetOk=!1,tree.addAttributesToElement(tree.openElements.bodyElement,attributes))},modes.inBody.startTagFrameset=function(name,attributes){if(tree.parseError("unexpected-start-tag",{name:"frameset"}),1==tree.openElements.length||"body"!=tree.openElements.item(1).localName)assert.ok(tree.context);else if(tree.framesetOk){for(tree.detachFromParent(tree.openElements.bodyElement);tree.openElements.length>1;)tree.openElements.pop();tree.insertElement(name,attributes),tree.setInsertionMode("inFrameset")}},modes.inBody.startTagCloseP=function(name,attributes){tree.openElements.inButtonScope("p")&&this.endTagP("p"),tree.insertElement(name,attributes)},modes.inBody.startTagPreListing=function(name,attributes){tree.openElements.inButtonScope("p")&&this.endTagP("p"),tree.insertElement(name,attributes),tree.framesetOk=!1,tree.shouldSkipLeadingNewline=!0},modes.inBody.startTagForm=function(name,attributes){tree.form?tree.parseError("unexpected-start-tag",{name:name}):(tree.openElements.inButtonScope("p")&&this.endTagP("p"),tree.insertElement(name,attributes),tree.form=tree.currentStackItem())},modes.inBody.startTagRpRt=function(name,attributes){tree.openElements.inScope("ruby")&&(tree.generateImpliedEndTags(),"ruby"!=tree.currentStackItem().localName&&tree.parseError("unexpected-start-tag",{name:name})),tree.insertElement(name,attributes)},modes.inBody.startTagListItem=function(name,attributes){for(var stopNames={li:["li"],dd:["dd","dt"],dt:["dd","dt"]},stopName=stopNames[name],els=tree.openElements,i=els.length-1;i>=0;i--){var node=els.item(i);if(-1!=stopName.indexOf(node.localName)){tree.insertionMode.processEndTag(node.localName);break}if(node.isSpecial()&&"p"!==node.localName&&"address"!==node.localName&&"div"!==node.localName)break}tree.openElements.inButtonScope("p")&&this.endTagP("p"),tree.insertElement(name,attributes),tree.framesetOk=!1},modes.inBody.startTagPlaintext=function(name,attributes){tree.openElements.inButtonScope("p")&&this.endTagP("p"),tree.insertElement(name,attributes),tree.tokenizer.setState(Tokenizer.PLAINTEXT)},modes.inBody.startTagHeading=function(name,attributes){tree.openElements.inButtonScope("p")&&this.endTagP("p"),tree.currentStackItem().isNumberedHeader()&&(tree.parseError("unexpected-start-tag",{name:name}),tree.popElement()),tree.insertElement(name,attributes)},modes.inBody.startTagA=function(name,attributes){var activeA=tree.elementInActiveFormattingElements("a");activeA&&(tree.parseError("unexpected-start-tag-implies-end-tag",{startName:"a",endName:"a"}),tree.adoptionAgencyEndTag("a"),tree.openElements.contains(activeA)&&tree.openElements.remove(activeA),tree.removeElementFromActiveFormattingElements(activeA)),tree.reconstructActiveFormattingElements(),tree.insertFormattingElement(name,attributes)},modes.inBody.startTagFormatting=function(name,attributes){tree.reconstructActiveFormattingElements(),tree.insertFormattingElement(name,attributes)},modes.inBody.startTagNobr=function(name,attributes){tree.reconstructActiveFormattingElements(),tree.openElements.inScope("nobr")&&(tree.parseError("unexpected-start-tag-implies-end-tag",{startName:"nobr",endName:"nobr"}),this.processEndTag("nobr"),tree.reconstructActiveFormattingElements()),tree.insertFormattingElement(name,attributes)},modes.inBody.startTagButton=function(name,attributes){tree.openElements.inScope("button")?(tree.parseError("unexpected-start-tag-implies-end-tag",{startName:"button",endName:"button"}),this.processEndTag("button"),tree.insertionMode.processStartTag(name,attributes)):(tree.framesetOk=!1,tree.reconstructActiveFormattingElements(),tree.insertElement(name,attributes))},modes.inBody.startTagAppletMarqueeObject=function(name,attributes){tree.reconstructActiveFormattingElements(),tree.insertElement(name,attributes),tree.activeFormattingElements.push(Marker),tree.framesetOk=!1},modes.inBody.endTagAppletMarqueeObject=function(name){tree.openElements.inScope(name)?(tree.generateImpliedEndTags(),tree.currentStackItem().localName!=name&&tree.parseError("end-tag-too-early",{name:name}),tree.openElements.popUntilPopped(name),tree.clearActiveFormattingElements()):tree.parseError("unexpected-end-tag",{name:name})},modes.inBody.startTagXmp=function(name,attributes){tree.openElements.inButtonScope("p")&&this.processEndTag("p"),tree.reconstructActiveFormattingElements(),tree.processGenericRawTextStartTag(name,attributes),tree.framesetOk=!1},modes.inBody.startTagTable=function(name,attributes){"quirks"!==tree.compatMode&&tree.openElements.inButtonScope("p")&&this.processEndTag("p"),tree.insertElement(name,attributes),tree.setInsertionMode("inTable"),tree.framesetOk=!1},modes.inBody.startTagVoidFormatting=function(name,attributes){tree.reconstructActiveFormattingElements(),tree.insertSelfClosingElement(name,attributes),tree.framesetOk=!1},modes.inBody.startTagParamSourceTrack=function(name,attributes){tree.insertSelfClosingElement(name,attributes)},modes.inBody.startTagHr=function(name,attributes){tree.openElements.inButtonScope("p")&&this.endTagP("p"),tree.insertSelfClosingElement(name,attributes),tree.framesetOk=!1},modes.inBody.startTagImage=function(name,attributes){tree.parseError("unexpected-start-tag-treated-as",{originalName:"image",newName:"img"}),this.processStartTag("img",attributes)},modes.inBody.startTagInput=function(name,attributes){var currentFramesetOk=tree.framesetOk;this.startTagVoidFormatting(name,attributes);for(var key in attributes)if("type"==attributes[key].nodeName){"hidden"==attributes[key].nodeValue.toLowerCase()&&(tree.framesetOk=currentFramesetOk);break}},modes.inBody.startTagIsindex=function(name,attributes){if(tree.parseError("deprecated-tag",{name:"isindex"}),tree.selfClosingFlagAcknowledged=!0,!tree.form){var formAttributes=[],inputAttributes=[],prompt="This is a searchable index. Enter search keywords: ";for(var key in attributes)switch(attributes[key].nodeName){case"action":formAttributes.push({nodeName:"action",nodeValue:attributes[key].nodeValue});break;case"prompt":prompt=attributes[key].nodeValue;break;case"name":break;default:inputAttributes.push({nodeName:attributes[key].nodeName,nodeValue:attributes[key].nodeValue})}inputAttributes.push({nodeName:"name",nodeValue:"isindex"}),this.processStartTag("form",formAttributes),this.processStartTag("hr"),this.processStartTag("label"),this.processCharacters(new CharacterBuffer(prompt)),this.processStartTag("input",inputAttributes),this.processEndTag("label"),this.processStartTag("hr"),this.processEndTag("form")}},modes.inBody.startTagTextarea=function(name,attributes){tree.insertElement(name,attributes),tree.tokenizer.setState(Tokenizer.RCDATA),tree.originalInsertionMode=tree.insertionModeName,tree.shouldSkipLeadingNewline=!0,tree.framesetOk=!1,tree.setInsertionMode("text")},modes.inBody.startTagIFrame=function(name,attributes){tree.framesetOk=!1,this.startTagRawText(name,attributes)},modes.inBody.startTagRawText=function(name,attributes){tree.processGenericRawTextStartTag(name,attributes)},modes.inBody.startTagSelect=function(name,attributes){tree.reconstructActiveFormattingElements(),tree.insertElement(name,attributes),tree.framesetOk=!1;var insertionModeName=tree.insertionModeName;"inTable"==insertionModeName||"inCaption"==insertionModeName||"inColumnGroup"==insertionModeName||"inTableBody"==insertionModeName||"inRow"==insertionModeName||"inCell"==insertionModeName?tree.setInsertionMode("inSelectInTable"):tree.setInsertionMode("inSelect")},modes.inBody.startTagMisplaced=function(name){tree.parseError("unexpected-start-tag-ignored",{name:name})},modes.inBody.endTagMisplaced=function(name){tree.parseError("unexpected-end-tag",{name:name})},modes.inBody.endTagBr=function(name){tree.parseError("unexpected-end-tag-treated-as",{originalName:"br",newName:"br element"}),tree.reconstructActiveFormattingElements(),tree.insertElement(name,[]),tree.popElement()},modes.inBody.startTagOptionOptgroup=function(name,attributes){"option"==tree.currentStackItem().localName&&tree.popElement(),tree.reconstructActiveFormattingElements(),tree.insertElement(name,attributes)},modes.inBody.startTagOther=function(name,attributes){tree.reconstructActiveFormattingElements(),tree.insertElement(name,attributes)},modes.inBody.endTagOther=function(name){for(var node,i=tree.openElements.length-1;i>0;i--){if(node=tree.openElements.item(i),node.localName==name){tree.generateImpliedEndTags(name),tree.currentStackItem().localName!=name&&tree.parseError("unexpected-end-tag",{name:name}),tree.openElements.remove_openElements_until(function(x){return x===node});break}if(node.isSpecial()){tree.parseError("unexpected-end-tag",{name:name});break}}},modes.inBody.startTagMath=function(name,attributes,selfClosing){tree.reconstructActiveFormattingElements(),attributes=tree.adjustMathMLAttributes(attributes),attributes=tree.adjustForeignAttributes(attributes),tree.insertForeignElement(name,attributes,"http://www.w3.org/1998/Math/MathML",selfClosing)},modes.inBody.startTagSVG=function(name,attributes,selfClosing){tree.reconstructActiveFormattingElements(),attributes=tree.adjustSVGAttributes(attributes),attributes=tree.adjustForeignAttributes(attributes),tree.insertForeignElement(name,attributes,"http://www.w3.org/2000/svg",selfClosing)},modes.inBody.endTagP=function(name){tree.openElements.inButtonScope("p")?(tree.generateImpliedEndTags("p"),"p"!=tree.currentStackItem().localName&&tree.parseError("unexpected-implied-end-tag",{name:"p"}),tree.openElements.popUntilPopped(name)):(tree.parseError("unexpected-end-tag",{name:"p"}),this.startTagCloseP("p",[]),this.endTagP("p"))},modes.inBody.endTagBody=function(name){return tree.openElements.inScope("body")?("body"!=tree.currentStackItem().localName&&tree.parseError("expected-one-end-tag-but-got-another",{expectedName:tree.currentStackItem().localName,gotName:name}),tree.setInsertionMode("afterBody"),void 0):(tree.parseError("unexpected-end-tag",{name:name}),void 0)},modes.inBody.endTagHtml=function(name){return tree.openElements.inScope("body")?("body"!=tree.currentStackItem().localName&&tree.parseError("expected-one-end-tag-but-got-another",{expectedName:tree.currentStackItem().localName,gotName:name}),tree.setInsertionMode("afterBody"),tree.insertionMode.processEndTag(name),void 0):(tree.parseError("unexpected-end-tag",{name:name}),void 0)},modes.inBody.endTagBlock=function(name){tree.openElements.inScope(name)?(tree.generateImpliedEndTags(),tree.currentStackItem().localName!=name&&tree.parseError("end-tag-too-early",{name:name}),tree.openElements.popUntilPopped(name)):tree.parseError("unexpected-end-tag",{name:name})},modes.inBody.endTagForm=function(name){var node=tree.form;tree.form=null,node&&tree.openElements.inScope(name)?(tree.generateImpliedEndTags(),tree.currentStackItem()!=node&&tree.parseError("end-tag-too-early-ignored",{name:"form"}),tree.openElements.remove(node)):tree.parseError("unexpected-end-tag",{name:name})},modes.inBody.endTagListItem=function(name){tree.openElements.inListItemScope(name)?(tree.generateImpliedEndTags(name),tree.currentStackItem().localName!=name&&tree.parseError("end-tag-too-early",{name:name}),tree.openElements.popUntilPopped(name)):tree.parseError("unexpected-end-tag",{name:name})},modes.inBody.endTagHeading=function(name){return tree.openElements.hasNumberedHeaderElementInScope()?(tree.generateImpliedEndTags(),tree.currentStackItem().localName!=name&&tree.parseError("end-tag-too-early",{name:name}),tree.openElements.remove_openElements_until(function(e){return e.isNumberedHeader()}),void 0):(tree.parseError("unexpected-end-tag",{name:name}),void 0)},modes.inBody.endTagFormatting=function(name,attributes){tree.adoptionAgencyEndTag(name)||this.endTagOther(name,attributes)},modes.inCaption=Object.create(modes.base),modes.inCaption.start_tag_handlers={html:"startTagHtml",caption:"startTagTableElement",col:"startTagTableElement",colgroup:"startTagTableElement",tbody:"startTagTableElement",td:"startTagTableElement",tfoot:"startTagTableElement",thead:"startTagTableElement",tr:"startTagTableElement","-default":"startTagOther"},modes.inCaption.end_tag_handlers={caption:"endTagCaption",table:"endTagTable",body:"endTagIgnore",col:"endTagIgnore",colgroup:"endTagIgnore",html:"endTagIgnore",tbody:"endTagIgnore",td:"endTagIgnore",tfood:"endTagIgnore",thead:"endTagIgnore",tr:"endTagIgnore","-default":"endTagOther"},modes.inCaption.processCharacters=function(data){modes.inBody.processCharacters(data)},modes.inCaption.startTagTableElement=function(name,attributes){tree.parseError("unexpected-end-tag",{name:name});var ignoreEndTag=!tree.openElements.inTableScope("caption");tree.insertionMode.processEndTag("caption"),ignoreEndTag||tree.insertionMode.processStartTag(name,attributes)},modes.inCaption.startTagOther=function(name,attributes,selfClosing){modes.inBody.processStartTag(name,attributes,selfClosing)},modes.inCaption.endTagCaption=function(name){tree.openElements.inTableScope("caption")?(tree.generateImpliedEndTags(),"caption"!=tree.currentStackItem().localName&&tree.parseError("expected-one-end-tag-but-got-another",{gotName:"caption",expectedName:tree.currentStackItem().localName}),tree.openElements.popUntilPopped("caption"),tree.clearActiveFormattingElements(),tree.setInsertionMode("inTable")):(assert.ok(tree.context),tree.parseError("unexpected-end-tag",{name:name}))},modes.inCaption.endTagTable=function(name){tree.parseError("unexpected-end-table-in-caption");var ignoreEndTag=!tree.openElements.inTableScope("caption");tree.insertionMode.processEndTag("caption"),ignoreEndTag||tree.insertionMode.processEndTag(name)},modes.inCaption.endTagIgnore=function(name){tree.parseError("unexpected-end-tag",{name:name})},modes.inCaption.endTagOther=function(name){modes.inBody.processEndTag(name)},modes.inCell=Object.create(modes.base),modes.inCell.start_tag_handlers={html:"startTagHtml",caption:"startTagTableOther",col:"startTagTableOther",colgroup:"startTagTableOther",tbody:"startTagTableOther",td:"startTagTableOther",tfoot:"startTagTableOther",th:"startTagTableOther",thead:"startTagTableOther",tr:"startTagTableOther","-default":"startTagOther"},modes.inCell.end_tag_handlers={td:"endTagTableCell",th:"endTagTableCell",body:"endTagIgnore",caption:"endTagIgnore",col:"endTagIgnore",colgroup:"endTagIgnore",html:"endTagIgnore",table:"endTagImply",tbody:"endTagImply",tfoot:"endTagImply",thead:"endTagImply",tr:"endTagImply","-default":"endTagOther"},modes.inCell.processCharacters=function(data){modes.inBody.processCharacters(data)},modes.inCell.startTagTableOther=function(name,attributes,selfClosing){tree.openElements.inTableScope("td")||tree.openElements.inTableScope("th")?(this.closeCell(),tree.insertionMode.processStartTag(name,attributes,selfClosing)):tree.parseError("unexpected-start-tag",{name:name})},modes.inCell.startTagOther=function(name,attributes,selfClosing){modes.inBody.processStartTag(name,attributes,selfClosing)},modes.inCell.endTagTableCell=function(name){tree.openElements.inTableScope(name)?(tree.generateImpliedEndTags(name),tree.currentStackItem().localName!=name.toLowerCase()?(tree.parseError("unexpected-cell-end-tag",{name:name}),tree.openElements.popUntilPopped(name)):tree.popElement(),tree.clearActiveFormattingElements(),tree.setInsertionMode("inRow")):tree.parseError("unexpected-end-tag",{name:name})},modes.inCell.endTagIgnore=function(name){tree.parseError("unexpected-end-tag",{name:name})},modes.inCell.endTagImply=function(name){tree.openElements.inTableScope(name)?(this.closeCell(),tree.insertionMode.processEndTag(name)):tree.parseError("unexpected-end-tag",{name:name})},modes.inCell.endTagOther=function(name){modes.inBody.processEndTag(name)},modes.inCell.closeCell=function(){tree.openElements.inTableScope("td")?this.endTagTableCell("td"):tree.openElements.inTableScope("th")&&this.endTagTableCell("th")},modes.inColumnGroup=Object.create(modes.base),modes.inColumnGroup.start_tag_handlers={html:"startTagHtml",col:"startTagCol","-default":"startTagOther"},modes.inColumnGroup.end_tag_handlers={colgroup:"endTagColgroup",col:"endTagCol","-default":"endTagOther"},modes.inColumnGroup.ignoreEndTagColgroup=function(){return"html"==tree.currentStackItem().localName},modes.inColumnGroup.processCharacters=function(buffer){var leadingWhitespace=buffer.takeLeadingWhitespace();if(leadingWhitespace&&tree.insertText(leadingWhitespace),buffer.length){var ignoreEndTag=this.ignoreEndTagColgroup();this.endTagColgroup("colgroup"),ignoreEndTag||tree.insertionMode.processCharacters(buffer)}},modes.inColumnGroup.startTagCol=function(name,attributes){tree.insertSelfClosingElement(name,attributes)},modes.inColumnGroup.startTagOther=function(name,attributes,selfClosing){var ignoreEndTag=this.ignoreEndTagColgroup();this.endTagColgroup("colgroup"),ignoreEndTag||tree.insertionMode.processStartTag(name,attributes,selfClosing)},modes.inColumnGroup.endTagColgroup=function(name){this.ignoreEndTagColgroup()?(assert.ok(tree.context),tree.parseError("unexpected-end-tag",{name:name})):(tree.popElement(),tree.setInsertionMode("inTable"))},modes.inColumnGroup.endTagCol=function(){tree.parseError("no-end-tag",{name:"col"})},modes.inColumnGroup.endTagOther=function(name){var ignoreEndTag=this.ignoreEndTagColgroup();this.endTagColgroup("colgroup"),ignoreEndTag||tree.insertionMode.processEndTag(name)},modes.inForeignContent=Object.create(modes.base),modes.inForeignContent.processStartTag=function(name,attributes,selfClosing){if(-1!=["b","big","blockquote","body","br","center","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","head","hr","i","img","li","listing","menu","meta","nobr","ol","p","pre","ruby","s","small","span","strong","strike","sub","sup","table","tt","u","ul","var"].indexOf(name)||"font"==name&&attributes.some(function(attr){return["color","face","size"].indexOf(attr.nodeName)>=0})){for(tree.parseError("unexpected-html-element-in-foreign-content",{name:name});tree.currentStackItem().isForeign()&&!tree.currentStackItem().isHtmlIntegrationPoint()&&!tree.currentStackItem().isMathMLTextIntegrationPoint();)tree.openElements.pop();return tree.insertionMode.processStartTag(name,attributes,selfClosing),void 0}"http://www.w3.org/1998/Math/MathML"==tree.currentStackItem().namespaceURI&&(attributes=tree.adjustMathMLAttributes(attributes)),"http://www.w3.org/2000/svg"==tree.currentStackItem().namespaceURI&&(name=tree.adjustSVGTagNameCase(name),attributes=tree.adjustSVGAttributes(attributes)),attributes=tree.adjustForeignAttributes(attributes),tree.insertForeignElement(name,attributes,tree.currentStackItem().namespaceURI,selfClosing)},modes.inForeignContent.processEndTag=function(name){var node=tree.currentStackItem(),index=tree.openElements.length-1;for(node.localName.toLowerCase()!=name&&tree.parseError("unexpected-end-tag",{name:name});;){if(0===index)break;if(node.localName.toLowerCase()==name){for(;tree.openElements.pop()!=node;);break}if(index-=1,node=tree.openElements.item(index),!node.isForeign()){tree.insertionMode.processEndTag(name);break}}},modes.inForeignContent.processCharacters=function(buffer){var characters=buffer.takeRemaining();characters=characters.replace(/\\u0000/g,function(){return tree.parseError("invalid-codepoint"),"�"}),tree.framesetOk&&!isAllWhitespaceOrReplacementCharacters(characters)&&(tree.framesetOk=!1),tree.insertText(characters)},modes.inHeadNoscript=Object.create(modes.base),modes.inHeadNoscript.start_tag_handlers={html:"startTagHtml",basefont:"startTagBasefontBgsoundLinkMetaNoframesStyle",bgsound:"startTagBasefontBgsoundLinkMetaNoframesStyle",link:"startTagBasefontBgsoundLinkMetaNoframesStyle",meta:"startTagBasefontBgsoundLinkMetaNoframesStyle",noframes:"startTagBasefontBgsoundLinkMetaNoframesStyle",style:"startTagBasefontBgsoundLinkMetaNoframesStyle",head:"startTagHeadNoscript",noscript:"startTagHeadNoscript","-default":"startTagOther"},modes.inHeadNoscript.end_tag_handlers={noscript:"endTagNoscript",br:"endTagBr","-default":"endTagOther"},modes.inHeadNoscript.processCharacters=function(buffer){var leadingWhitespace=buffer.takeLeadingWhitespace();leadingWhitespace&&tree.insertText(leadingWhitespace),buffer.length&&(tree.parseError("unexpected-char-in-frameset"),this.anythingElse(),tree.insertionMode.processCharacters(buffer))},modes.inHeadNoscript.processComment=function(data){modes.inHead.processComment(data)},modes.inHeadNoscript.startTagBasefontBgsoundLinkMetaNoframesStyle=function(name,attributes){modes.inHead.processStartTag(name,attributes)},modes.inHeadNoscript.startTagHeadNoscript=function(name){tree.parseError("unexpected-start-tag-in-frameset",{name:name})},modes.inHeadNoscript.startTagOther=function(name,attributes){tree.parseError("unexpected-start-tag-in-frameset",{name:name}),this.anythingElse(),tree.insertionMode.processStartTag(name,attributes)},modes.inHeadNoscript.endTagBr=function(name,attributes){tree.parseError("unexpected-end-tag-in-frameset",{name:name}),this.anythingElse(),tree.insertionMode.processEndTag(name,attributes)},modes.inHeadNoscript.endTagNoscript=function(){tree.popElement(),tree.setInsertionMode("inHead")},modes.inHeadNoscript.endTagOther=function(name){tree.parseError("unexpected-end-tag-in-frameset",{name:name})},modes.inHeadNoscript.anythingElse=function(){tree.popElement(),tree.setInsertionMode("inHead")},modes.inFrameset=Object.create(modes.base),modes.inFrameset.start_tag_handlers={html:"startTagHtml",frameset:"startTagFrameset",frame:"startTagFrame",noframes:"startTagNoframes","-default":"startTagOther"},modes.inFrameset.end_tag_handlers={frameset:"endTagFrameset",noframes:"endTagNoframes","-default":"endTagOther"},modes.inFrameset.processCharacters=function(){tree.parseError("unexpected-char-in-frameset")},modes.inFrameset.startTagFrameset=function(name,attributes){tree.insertElement(name,attributes)},modes.inFrameset.startTagFrame=function(name,attributes){tree.insertSelfClosingElement(name,attributes)},modes.inFrameset.startTagNoframes=function(name,attributes){modes.inBody.processStartTag(name,attributes)},modes.inFrameset.startTagOther=function(name){tree.parseError("unexpected-start-tag-in-frameset",{name:name})},modes.inFrameset.endTagFrameset=function(){"html"==tree.currentStackItem().localName?tree.parseError("unexpected-frameset-in-frameset-innerhtml"):tree.popElement(),tree.context||"frameset"==tree.currentStackItem().localName||tree.setInsertionMode("afterFrameset")},modes.inFrameset.endTagNoframes=function(name){modes.inBody.processEndTag(name)},modes.inFrameset.endTagOther=function(name){tree.parseError("unexpected-end-tag-in-frameset",{name:name})},modes.inTable=Object.create(modes.base),modes.inTable.start_tag_handlers={html:"startTagHtml",caption:"startTagCaption",colgroup:"startTagColgroup",col:"startTagCol",table:"startTagTable",tbody:"startTagRowGroup",tfoot:"startTagRowGroup",thead:"startTagRowGroup",td:"startTagImplyTbody",th:"startTagImplyTbody",tr:"startTagImplyTbody",style:"startTagStyleScript",script:"startTagStyleScript",input:"startTagInput",form:"startTagForm","-default":"startTagOther"},modes.inTable.end_tag_handlers={table:"endTagTable",body:"endTagIgnore",caption:"endTagIgnore",col:"endTagIgnore",colgroup:"endTagIgnore",html:"endTagIgnore",tbody:"endTagIgnore",td:"endTagIgnore",tfoot:"endTagIgnore",th:"endTagIgnore",thead:"endTagIgnore",tr:"endTagIgnore","-default":"endTagOther"},modes.inTable.processCharacters=function(data){if(tree.currentStackItem().isFosterParenting()){var originalInsertionMode=tree.insertionModeName;\ntree.setInsertionMode("inTableText"),tree.originalInsertionMode=originalInsertionMode,tree.insertionMode.processCharacters(data)}else tree.redirectAttachToFosterParent=!0,modes.inBody.processCharacters(data),tree.redirectAttachToFosterParent=!1},modes.inTable.startTagCaption=function(name,attributes){tree.openElements.popUntilTableScopeMarker(),tree.activeFormattingElements.push(Marker),tree.insertElement(name,attributes),tree.setInsertionMode("inCaption")},modes.inTable.startTagColgroup=function(name,attributes){tree.openElements.popUntilTableScopeMarker(),tree.insertElement(name,attributes),tree.setInsertionMode("inColumnGroup")},modes.inTable.startTagCol=function(name,attributes){this.startTagColgroup("colgroup",[]),tree.insertionMode.processStartTag(name,attributes)},modes.inTable.startTagRowGroup=function(name,attributes){tree.openElements.popUntilTableScopeMarker(),tree.insertElement(name,attributes),tree.setInsertionMode("inTableBody")},modes.inTable.startTagImplyTbody=function(name,attributes){this.startTagRowGroup("tbody",[]),tree.insertionMode.processStartTag(name,attributes)},modes.inTable.startTagTable=function(name,attributes){tree.parseError("unexpected-start-tag-implies-end-tag",{startName:"table",endName:"table"}),tree.insertionMode.processEndTag("table"),tree.context||tree.insertionMode.processStartTag(name,attributes)},modes.inTable.startTagStyleScript=function(name,attributes){modes.inHead.processStartTag(name,attributes)},modes.inTable.startTagInput=function(name,attributes){for(var key in attributes)if("type"==attributes[key].nodeName.toLowerCase()){if("hidden"==attributes[key].nodeValue.toLowerCase())return tree.parseError("unexpected-hidden-input-in-table"),tree.insertElement(name,attributes),tree.openElements.pop(),void 0;break}this.startTagOther(name,attributes)},modes.inTable.startTagForm=function(name,attributes){tree.parseError("unexpected-form-in-table"),tree.form||(tree.insertElement(name,attributes),tree.form=tree.currentStackItem(),tree.openElements.pop())},modes.inTable.startTagOther=function(name,attributes,selfClosing){tree.parseError("unexpected-start-tag-implies-table-voodoo",{name:name}),tree.redirectAttachToFosterParent=!0,modes.inBody.processStartTag(name,attributes,selfClosing),tree.redirectAttachToFosterParent=!1},modes.inTable.endTagTable=function(name){tree.openElements.inTableScope(name)?(tree.generateImpliedEndTags(),tree.currentStackItem().localName!=name&&tree.parseError("end-tag-too-early-named",{gotName:"table",expectedName:tree.currentStackItem().localName}),tree.openElements.popUntilPopped("table"),tree.resetInsertionMode()):(assert.ok(tree.context),tree.parseError("unexpected-end-tag",{name:name}))},modes.inTable.endTagIgnore=function(name){tree.parseError("unexpected-end-tag",{name:name})},modes.inTable.endTagOther=function(name){tree.parseError("unexpected-end-tag-implies-table-voodoo",{name:name}),tree.redirectAttachToFosterParent=!0,modes.inBody.processEndTag(name),tree.redirectAttachToFosterParent=!1},modes.inTableText=Object.create(modes.base),modes.inTableText.flushCharacters=function(){var characters=tree.pendingTableCharacters.join("");isAllWhitespace(characters)?tree.insertText(characters):(tree.redirectAttachToFosterParent=!0,tree.reconstructActiveFormattingElements(),tree.insertText(characters),tree.framesetOk=!1,tree.redirectAttachToFosterParent=!1),tree.pendingTableCharacters=[]},modes.inTableText.processComment=function(data){this.flushCharacters(),tree.setInsertionMode(tree.originalInsertionMode),tree.insertionMode.processComment(data)},modes.inTableText.processEOF=function(){this.flushCharacters(),tree.setInsertionMode(tree.originalInsertionMode),tree.insertionMode.processEOF()},modes.inTableText.processCharacters=function(buffer){var characters=buffer.takeRemaining();characters=characters.replace(/\\u0000/g,function(){return tree.parseError("invalid-codepoint"),""}),characters&&tree.pendingTableCharacters.push(characters)},modes.inTableText.processStartTag=function(name,attributes,selfClosing){this.flushCharacters(),tree.setInsertionMode(tree.originalInsertionMode),tree.insertionMode.processStartTag(name,attributes,selfClosing)},modes.inTableText.processEndTag=function(name,attributes){this.flushCharacters(),tree.setInsertionMode(tree.originalInsertionMode),tree.insertionMode.processEndTag(name,attributes)},modes.inTableBody=Object.create(modes.base),modes.inTableBody.start_tag_handlers={html:"startTagHtml",tr:"startTagTr",td:"startTagTableCell",th:"startTagTableCell",caption:"startTagTableOther",col:"startTagTableOther",colgroup:"startTagTableOther",tbody:"startTagTableOther",tfoot:"startTagTableOther",thead:"startTagTableOther","-default":"startTagOther"},modes.inTableBody.end_tag_handlers={table:"endTagTable",tbody:"endTagTableRowGroup",tfoot:"endTagTableRowGroup",thead:"endTagTableRowGroup",body:"endTagIgnore",caption:"endTagIgnore",col:"endTagIgnore",colgroup:"endTagIgnore",html:"endTagIgnore",td:"endTagIgnore",th:"endTagIgnore",tr:"endTagIgnore","-default":"endTagOther"},modes.inTableBody.processCharacters=function(data){modes.inTable.processCharacters(data)},modes.inTableBody.startTagTr=function(name,attributes){tree.openElements.popUntilTableBodyScopeMarker(),tree.insertElement(name,attributes),tree.setInsertionMode("inRow")},modes.inTableBody.startTagTableCell=function(name,attributes){tree.parseError("unexpected-cell-in-table-body",{name:name}),this.startTagTr("tr",[]),tree.insertionMode.processStartTag(name,attributes)},modes.inTableBody.startTagTableOther=function(name,attributes){tree.openElements.inTableScope("tbody")||tree.openElements.inTableScope("thead")||tree.openElements.inTableScope("tfoot")?(tree.openElements.popUntilTableBodyScopeMarker(),this.endTagTableRowGroup(tree.currentStackItem().localName),tree.insertionMode.processStartTag(name,attributes)):tree.parseError("unexpected-start-tag",{name:name})},modes.inTableBody.startTagOther=function(name,attributes){modes.inTable.processStartTag(name,attributes)},modes.inTableBody.endTagTableRowGroup=function(name){tree.openElements.inTableScope(name)?(tree.openElements.popUntilTableBodyScopeMarker(),tree.popElement(),tree.setInsertionMode("inTable")):tree.parseError("unexpected-end-tag-in-table-body",{name:name})},modes.inTableBody.endTagTable=function(name){tree.openElements.inTableScope("tbody")||tree.openElements.inTableScope("thead")||tree.openElements.inTableScope("tfoot")?(tree.openElements.popUntilTableBodyScopeMarker(),this.endTagTableRowGroup(tree.currentStackItem().localName),tree.insertionMode.processEndTag(name)):tree.parseError("unexpected-end-tag",{name:name})},modes.inTableBody.endTagIgnore=function(name){tree.parseError("unexpected-end-tag-in-table-body",{name:name})},modes.inTableBody.endTagOther=function(name){modes.inTable.processEndTag(name)},modes.inSelect=Object.create(modes.base),modes.inSelect.start_tag_handlers={html:"startTagHtml",option:"startTagOption",optgroup:"startTagOptgroup",select:"startTagSelect",input:"startTagInput",keygen:"startTagInput",textarea:"startTagInput",script:"startTagScript","-default":"startTagOther"},modes.inSelect.end_tag_handlers={option:"endTagOption",optgroup:"endTagOptgroup",select:"endTagSelect",caption:"endTagTableElements",table:"endTagTableElements",tbody:"endTagTableElements",tfoot:"endTagTableElements",thead:"endTagTableElements",tr:"endTagTableElements",td:"endTagTableElements",th:"endTagTableElements","-default":"endTagOther"},modes.inSelect.processCharacters=function(buffer){var data=buffer.takeRemaining();data=data.replace(/\\u0000/g,function(){return tree.parseError("invalid-codepoint"),""}),data&&tree.insertText(data)},modes.inSelect.startTagOption=function(name,attributes){"option"==tree.currentStackItem().localName&&tree.popElement(),tree.insertElement(name,attributes)},modes.inSelect.startTagOptgroup=function(name,attributes){"option"==tree.currentStackItem().localName&&tree.popElement(),"optgroup"==tree.currentStackItem().localName&&tree.popElement(),tree.insertElement(name,attributes)},modes.inSelect.endTagOption=function(name){return"option"!==tree.currentStackItem().localName?(tree.parseError("unexpected-end-tag-in-select",{name:name}),void 0):(tree.popElement(),void 0)},modes.inSelect.endTagOptgroup=function(){"option"==tree.currentStackItem().localName&&"optgroup"==tree.openElements.item(tree.openElements.length-2).localName&&tree.popElement(),"optgroup"==tree.currentStackItem().localName?tree.popElement():tree.parseError("unexpected-end-tag-in-select",{name:"optgroup"})},modes.inSelect.startTagSelect=function(){tree.parseError("unexpected-select-in-select"),this.endTagSelect("select")},modes.inSelect.endTagSelect=function(name){tree.openElements.inTableScope("select")?(tree.openElements.popUntilPopped("select"),tree.resetInsertionMode()):tree.parseError("unexpected-end-tag",{name:name})},modes.inSelect.startTagInput=function(name,attributes){tree.parseError("unexpected-input-in-select"),tree.openElements.inSelectScope("select")&&(this.endTagSelect("select"),tree.insertionMode.processStartTag(name,attributes))},modes.inSelect.startTagScript=function(name,attributes){modes.inHead.processStartTag(name,attributes)},modes.inSelect.endTagTableElements=function(name){tree.parseError("unexpected-end-tag-in-select",{name:name}),tree.openElements.inTableScope(name)&&(this.endTagSelect("select"),tree.insertionMode.processEndTag(name))},modes.inSelect.startTagOther=function(name){tree.parseError("unexpected-start-tag-in-select",{name:name})},modes.inSelect.endTagOther=function(name){tree.parseError("unexpected-end-tag-in-select",{name:name})},modes.inSelectInTable=Object.create(modes.base),modes.inSelectInTable.start_tag_handlers={caption:"startTagTable",table:"startTagTable",tbody:"startTagTable",tfoot:"startTagTable",thead:"startTagTable",tr:"startTagTable",td:"startTagTable",th:"startTagTable","-default":"startTagOther"},modes.inSelectInTable.end_tag_handlers={caption:"endTagTable",table:"endTagTable",tbody:"endTagTable",tfoot:"endTagTable",thead:"endTagTable",tr:"endTagTable",td:"endTagTable",th:"endTagTable","-default":"endTagOther"},modes.inSelectInTable.processCharacters=function(data){modes.inSelect.processCharacters(data)},modes.inSelectInTable.startTagTable=function(name,attributes){tree.parseError("unexpected-table-element-start-tag-in-select-in-table",{name:name}),this.endTagOther("select"),tree.insertionMode.processStartTag(name,attributes)},modes.inSelectInTable.startTagOther=function(name,attributes,selfClosing){modes.inSelect.processStartTag(name,attributes,selfClosing)},modes.inSelectInTable.endTagTable=function(name){tree.parseError("unexpected-table-element-end-tag-in-select-in-table",{name:name}),tree.openElements.inTableScope(name)&&(this.endTagOther("select"),tree.insertionMode.processEndTag(name))},modes.inSelectInTable.endTagOther=function(name){modes.inSelect.processEndTag(name)},modes.inRow=Object.create(modes.base),modes.inRow.start_tag_handlers={html:"startTagHtml",td:"startTagTableCell",th:"startTagTableCell",caption:"startTagTableOther",col:"startTagTableOther",colgroup:"startTagTableOther",tbody:"startTagTableOther",tfoot:"startTagTableOther",thead:"startTagTableOther",tr:"startTagTableOther","-default":"startTagOther"},modes.inRow.end_tag_handlers={tr:"endTagTr",table:"endTagTable",tbody:"endTagTableRowGroup",tfoot:"endTagTableRowGroup",thead:"endTagTableRowGroup",body:"endTagIgnore",caption:"endTagIgnore",col:"endTagIgnore",colgroup:"endTagIgnore",html:"endTagIgnore",td:"endTagIgnore",th:"endTagIgnore","-default":"endTagOther"},modes.inRow.processCharacters=function(data){modes.inTable.processCharacters(data)},modes.inRow.startTagTableCell=function(name,attributes){tree.openElements.popUntilTableRowScopeMarker(),tree.insertElement(name,attributes),tree.setInsertionMode("inCell"),tree.activeFormattingElements.push(Marker)},modes.inRow.startTagTableOther=function(name,attributes){var ignoreEndTag=this.ignoreEndTagTr();this.endTagTr("tr"),ignoreEndTag||tree.insertionMode.processStartTag(name,attributes)},modes.inRow.startTagOther=function(name,attributes,selfClosing){modes.inTable.processStartTag(name,attributes,selfClosing)},modes.inRow.endTagTr=function(name){this.ignoreEndTagTr()?(assert.ok(tree.context),tree.parseError("unexpected-end-tag",{name:name})):(tree.openElements.popUntilTableRowScopeMarker(),tree.popElement(),tree.setInsertionMode("inTableBody"))},modes.inRow.endTagTable=function(name){var ignoreEndTag=this.ignoreEndTagTr();this.endTagTr("tr"),ignoreEndTag||tree.insertionMode.processEndTag(name)},modes.inRow.endTagTableRowGroup=function(name){tree.openElements.inTableScope(name)?(this.endTagTr("tr"),tree.insertionMode.processEndTag(name)):tree.parseError("unexpected-end-tag",{name:name})},modes.inRow.endTagIgnore=function(name){tree.parseError("unexpected-end-tag-in-table-row",{name:name})},modes.inRow.endTagOther=function(name){modes.inTable.processEndTag(name)},modes.inRow.ignoreEndTagTr=function(){return!tree.openElements.inTableScope("tr")},modes.afterAfterFrameset=Object.create(modes.base),modes.afterAfterFrameset.start_tag_handlers={html:"startTagHtml",noframes:"startTagNoFrames","-default":"startTagOther"},modes.afterAfterFrameset.processEOF=function(){},modes.afterAfterFrameset.processComment=function(data){tree.insertComment(data,tree.document)},modes.afterAfterFrameset.processCharacters=function(buffer){for(var characters=buffer.takeRemaining(),whitespace="",i=0;characters.length>i;i++){var ch=characters[i];isWhitespace(ch)&&(whitespace+=ch)}whitespace&&(tree.reconstructActiveFormattingElements(),tree.insertText(whitespace)),whitespace.length<characters.length&&tree.parseError("expected-eof-but-got-char")},modes.afterAfterFrameset.startTagNoFrames=function(name,attributes){modes.inHead.processStartTag(name,attributes)},modes.afterAfterFrameset.startTagOther=function(name){tree.parseError("expected-eof-but-got-start-tag",{name:name})},modes.afterAfterFrameset.processEndTag=function(name){tree.parseError("expected-eof-but-got-end-tag",{name:name})},modes.text=Object.create(modes.base),modes.text.start_tag_handlers={"-default":"startTagOther"},modes.text.end_tag_handlers={script:"endTagScript","-default":"endTagOther"},modes.text.processCharacters=function(buffer){tree.shouldSkipLeadingNewline&&(tree.shouldSkipLeadingNewline=!1,buffer.skipAtMostOneLeadingNewline());var data=buffer.takeRemaining();data&&tree.insertText(data)},modes.text.processEOF=function(){tree.parseError("expected-named-closing-tag-but-got-eof",{name:tree.currentStackItem().localName}),tree.openElements.pop(),tree.setInsertionMode(tree.originalInsertionMode),tree.insertionMode.processEOF()},modes.text.startTagOther=function(name){throw"Tried to process start tag "+name+" in RCDATA/RAWTEXT mode"},modes.text.endTagScript=function(){var node=tree.openElements.pop();assert.ok("script"==node.localName),tree.setInsertionMode(tree.originalInsertionMode)},modes.text.endTagOther=function(){tree.openElements.pop(),tree.setInsertionMode(tree.originalInsertionMode)}}function formatMessage(format,args){return format.replace(RegExp("{[0-9a-z-]+}","gi"),function(match){return args[match.slice(1,-1)]||match})}var assert=_dereq_("assert"),messages=_dereq_("./messages.json"),constants=_dereq_("./constants");_dereq_("events").EventEmitter;var Tokenizer=_dereq_("./Tokenizer").Tokenizer,ElementStack=_dereq_("./ElementStack").ElementStack,StackItem=_dereq_("./StackItem").StackItem,Marker={};CharacterBuffer.prototype.skipAtMostOneLeadingNewline=function(){"\\n"===this.characters[this.current]&&this.current++},CharacterBuffer.prototype.skipLeadingWhitespace=function(){for(;isWhitespace(this.characters[this.current]);)if(++this.current==this.end)return},CharacterBuffer.prototype.skipLeadingNonWhitespace=function(){for(;!isWhitespace(this.characters[this.current]);)if(++this.current==this.end)return},CharacterBuffer.prototype.takeRemaining=function(){return this.characters.substring(this.current)},CharacterBuffer.prototype.takeLeadingWhitespace=function(){var start=this.current;return this.skipLeadingWhitespace(),start===this.current?"":this.characters.substring(start,this.current-start)},Object.defineProperty(CharacterBuffer.prototype,"length",{get:function(){return this.end-this.current}}),TreeBuilder.prototype.setInsertionMode=function(name){this.insertionMode=this.insertionModes[name],this.insertionModeName=name},TreeBuilder.prototype.adoptionAgencyEndTag=function(name){function isActiveFormattingElement(el){return el===formattingElement}for(var formattingElement,outerIterationLimit=8,innerIterationLimit=3,outerLoopCounter=0;outerIterationLimit>outerLoopCounter++;){if(formattingElement=this.elementInActiveFormattingElements(name),!formattingElement||this.openElements.contains(formattingElement)&&!this.openElements.inScope(formattingElement.localName))return this.parseError("adoption-agency-1.1",{name:name}),!1;if(!this.openElements.contains(formattingElement))return this.parseError("adoption-agency-1.2",{name:name}),this.removeElementFromActiveFormattingElements(formattingElement),!0;this.openElements.inScope(formattingElement.localName)||this.parseError("adoption-agency-4.4",{name:name}),formattingElement!=this.currentStackItem()&&this.parseError("adoption-agency-1.3",{name:name});var furthestBlock=this.openElements.furthestBlockForFormattingElement(formattingElement.node);if(!furthestBlock)return this.openElements.remove_openElements_until(isActiveFormattingElement),this.removeElementFromActiveFormattingElements(formattingElement),!0;for(var afeIndex=this.openElements.elements.indexOf(formattingElement),commonAncestor=this.openElements.item(afeIndex-1),bookmark=this.activeFormattingElements.indexOf(formattingElement),node=furthestBlock,lastNode=furthestBlock,index=this.openElements.elements.indexOf(node),innerLoopCounter=0;innerIterationLimit>innerLoopCounter++;)if(index-=1,node=this.openElements.item(index),0>this.activeFormattingElements.indexOf(node))this.openElements.elements.splice(index,1);else{if(node==formattingElement)break;lastNode==furthestBlock&&(bookmark=this.activeFormattingElements.indexOf(node)+1);var clone=this.createElement(node.namespaceURI,node.localName,node.attributes),newNode=new StackItem(node.namespaceURI,node.localName,node.attributes,clone);this.activeFormattingElements[this.activeFormattingElements.indexOf(node)]=newNode,this.openElements.elements[this.openElements.elements.indexOf(node)]=newNode,node=newNode,this.detachFromParent(lastNode.node),this.attachNode(lastNode.node,node.node),lastNode=node}this.detachFromParent(lastNode.node),commonAncestor.isFosterParenting()?this.insertIntoFosterParent(lastNode.node):this.attachNode(lastNode.node,commonAncestor.node);var clone=this.createElement("http://www.w3.org/1999/xhtml",formattingElement.localName,formattingElement.attributes),formattingClone=new StackItem(formattingElement.namespaceURI,formattingElement.localName,formattingElement.attributes,clone);this.reparentChildren(furthestBlock.node,clone),this.attachNode(clone,furthestBlock.node),this.removeElementFromActiveFormattingElements(formattingElement),this.activeFormattingElements.splice(Math.min(bookmark,this.activeFormattingElements.length),0,formattingClone),this.openElements.remove(formattingElement),this.openElements.elements.splice(this.openElements.elements.indexOf(furthestBlock)+1,0,formattingClone)}return!0},TreeBuilder.prototype.start=function(){throw"Not mplemented"},TreeBuilder.prototype.startTokenization=function(tokenizer){if(this.tokenizer=tokenizer,this.compatMode="no quirks",this.originalInsertionMode="initial",this.framesetOk=!0,this.openElements=new ElementStack,this.activeFormattingElements=[],this.start(),this.context){switch(this.context){case"title":case"textarea":this.tokenizer.setState(Tokenizer.RCDATA);break;case"style":case"xmp":case"iframe":case"noembed":case"noframes":this.tokenizer.setState(Tokenizer.RAWTEXT);break;case"script":this.tokenizer.setState(Tokenizer.SCRIPT_DATA);break;case"noscript":this.scriptingEnabled&&this.tokenizer.setState(Tokenizer.RAWTEXT);break;case"plaintext":this.tokenizer.setState(Tokenizer.PLAINTEXT)}this.insertHtmlElement(),this.resetInsertionMode()}else this.setInsertionMode("initial")},TreeBuilder.prototype.processToken=function(token){this.selfClosingFlagAcknowledged=!1;var insertionMode,currentNode=this.openElements.top||null;switch(insertionMode=!currentNode||!currentNode.isForeign()||currentNode.isMathMLTextIntegrationPoint()&&("StartTag"==token.type&&!(token.name in{mglyph:0,malignmark:0})||"Characters"===token.type)||"http://www.w3.org/1998/Math/MathML"==currentNode.namespaceURI&&"annotation-xml"==currentNode.localName&&"StartTag"==token.type&&"svg"==token.name||currentNode.isHtmlIntegrationPoint()&&token.type in{StartTag:0,Characters:0}||"EOF"==token.type?this.insertionMode:this.insertionModes.inForeignContent,token.type){case"Characters":var buffer=new CharacterBuffer(token.data);insertionMode.processCharacters(buffer);break;case"Comment":insertionMode.processComment(token.data);break;case"StartTag":insertionMode.processStartTag(token.name,token.data,token.selfClosing);break;case"EndTag":insertionMode.processEndTag(token.name);break;case"Doctype":insertionMode.processDoctype(token.name,token.publicId,token.systemId,token.forceQuirks);break;case"EOF":insertionMode.processEOF()}},TreeBuilder.prototype.isCdataSectionAllowed=function(){return this.openElements.length>0&&this.currentStackItem().isForeign()},TreeBuilder.prototype.isSelfClosingFlagAcknowledged=function(){return this.selfClosingFlagAcknowledged},TreeBuilder.prototype.createElement=function(){throw Error("Not implemented")},TreeBuilder.prototype.attachNode=function(){throw Error("Not implemented")},TreeBuilder.prototype.attachNodeToFosterParent=function(){throw Error("Not implemented")},TreeBuilder.prototype.detachFromParent=function(){throw Error("Not implemented")},TreeBuilder.prototype.addAttributesToElement=function(){throw Error("Not implemented")},TreeBuilder.prototype.insertHtmlElement=function(attributes){var root=this.createElement("http://www.w3.org/1999/xhtml","html",attributes);return this.attachNode(root,this.document),this.openElements.pushHtmlElement(new StackItem("http://www.w3.org/1999/xhtml","html",attributes,root)),root},TreeBuilder.prototype.insertHeadElement=function(attributes){var element=this.createElement("http://www.w3.org/1999/xhtml","head",attributes);return this.head=new StackItem("http://www.w3.org/1999/xhtml","head",attributes,element),this.attachNode(element,this.openElements.top.node),this.openElements.pushHeadElement(this.head),element},TreeBuilder.prototype.insertBodyElement=function(attributes){var element=this.createElement("http://www.w3.org/1999/xhtml","body",attributes);return this.attachNode(element,this.openElements.top.node),this.openElements.pushBodyElement(new StackItem("http://www.w3.org/1999/xhtml","body",attributes,element)),element},TreeBuilder.prototype.insertIntoFosterParent=function(node){var tableIndex=this.openElements.findIndex("table"),tableElement=this.openElements.item(tableIndex).node;return 0===tableIndex?this.attachNode(node,tableElement):(this.attachNodeToFosterParent(node,tableElement,this.openElements.item(tableIndex-1).node),void 0)},TreeBuilder.prototype.insertElement=function(name,attributes,namespaceURI,selfClosing){namespaceURI||(namespaceURI="http://www.w3.org/1999/xhtml");var element=this.createElement(namespaceURI,name,attributes);this.shouldFosterParent()?this.insertIntoFosterParent(element):this.attachNode(element,this.openElements.top.node),selfClosing||this.openElements.push(new StackItem(namespaceURI,name,attributes,element))},TreeBuilder.prototype.insertFormattingElement=function(name,attributes){this.insertElement(name,attributes,"http://www.w3.org/1999/xhtml"),this.appendElementToActiveFormattingElements(this.currentStackItem())},TreeBuilder.prototype.insertSelfClosingElement=function(name,attributes){this.selfClosingFlagAcknowledged=!0,this.insertElement(name,attributes,"http://www.w3.org/1999/xhtml",!0)},TreeBuilder.prototype.insertForeignElement=function(name,attributes,namespaceURI,selfClosing){selfClosing&&(this.selfClosingFlagAcknowledged=!0),this.insertElement(name,attributes,namespaceURI,selfClosing)},TreeBuilder.prototype.insertComment=function(){throw Error("Not implemented")},TreeBuilder.prototype.insertDoctype=function(){throw Error("Not implemented")},TreeBuilder.prototype.insertText=function(){throw Error("Not implemented")},TreeBuilder.prototype.currentStackItem=function(){return this.openElements.top},TreeBuilder.prototype.popElement=function(){return this.openElements.pop()},TreeBuilder.prototype.shouldFosterParent=function(){return this.redirectAttachToFosterParent&&this.currentStackItem().isFosterParenting()},TreeBuilder.prototype.generateImpliedEndTags=function(exclude){var name=this.openElements.top.localName;-1!=["dd","dt","li","option","optgroup","p","rp","rt"].indexOf(name)&&name!=exclude&&(this.popElement(),this.generateImpliedEndTags(exclude))},TreeBuilder.prototype.reconstructActiveFormattingElements=function(){if(0!==this.activeFormattingElements.length){var i=this.activeFormattingElements.length-1,entry=this.activeFormattingElements[i];if(entry!=Marker&&!this.openElements.contains(entry)){for(;entry!=Marker&&!this.openElements.contains(entry)&&(i-=1,entry=this.activeFormattingElements[i]););for(;;){i+=1,entry=this.activeFormattingElements[i],this.insertElement(entry.localName,entry.attributes);var element=this.currentStackItem();if(this.activeFormattingElements[i]=element,element==this.activeFormattingElements[this.activeFormattingElements.length-1])break}}}},TreeBuilder.prototype.ensureNoahsArkCondition=function(item){var kNoahsArkCapacity=3;if(!(kNoahsArkCapacity>this.activeFormattingElements.length)){for(var candidates=[],newItemAttributeCount=item.attributes.length,i=this.activeFormattingElements.length-1;i>=0;i--){var candidate=this.activeFormattingElements[i];if(candidate===Marker)break;item.localName===candidate.localName&&item.namespaceURI===candidate.namespaceURI&&candidate.attributes.length==newItemAttributeCount&&candidates.push(candidate)}if(!(kNoahsArkCapacity>candidates.length)){for(var remainingCandidates=[],attributes=item.attributes,i=0;attributes.length>i;i++){for(var attribute=attributes[i],j=0;candidates.length>j;j++){var candidate=candidates[j],candidateAttribute=getAttribute(candidate,attribute.nodeName);candidateAttribute&&candidateAttribute.nodeValue===attribute.nodeValue&&remainingCandidates.push(candidate)}if(kNoahsArkCapacity>remainingCandidates.length)return;candidates=remainingCandidates,remainingCandidates=[]}for(var i=kNoahsArkCapacity-1;candidates.length>i;i++)this.removeElementFromActiveFormattingElements(candidates[i])}}},TreeBuilder.prototype.appendElementToActiveFormattingElements=function(item){this.ensureNoahsArkCondition(item),this.activeFormattingElements.push(item)},TreeBuilder.prototype.removeElementFromActiveFormattingElements=function(item){var index=this.activeFormattingElements.indexOf(item);index>=0&&this.activeFormattingElements.splice(index,1)},TreeBuilder.prototype.elementInActiveFormattingElements=function(name){for(var els=this.activeFormattingElements,i=els.length-1;i>=0&&els[i]!=Marker;i--)if(els[i].localName==name)return els[i];return!1},TreeBuilder.prototype.clearActiveFormattingElements=function(){for(;0!==this.activeFormattingElements.length&&this.activeFormattingElements.pop()!=Marker;);},TreeBuilder.prototype.reparentChildren=function(){throw Error("Not implemented")},TreeBuilder.prototype.setFragmentContext=function(context){this.context=context},TreeBuilder.prototype.parseError=function(code,args){if(this.errorHandler){var message=formatMessage(messages[code],args);this.errorHandler.error(message,this.tokenizer._inputStream.location(),code)}},TreeBuilder.prototype.resetInsertionMode=function(){for(var last=!1,node=null,i=this.openElements.length-1;i>=0;i--){if(node=this.openElements.item(i),0===i&&(assert.ok(this.context),last=!0,node=new StackItem("http://www.w3.org/1999/xhtml",this.context,[],null)),"http://www.w3.org/1999/xhtml"===node.namespaceURI){if("select"===node.localName)return this.setInsertionMode("inSelect");if("td"===node.localName||"th"===node.localName)return this.setInsertionMode("inCell");if("tr"===node.localName)return this.setInsertionMode("inRow");if("tbody"===node.localName||"thead"===node.localName||"tfoot"===node.localName)return this.setInsertionMode("inTableBody");if("caption"===node.localName)return this.setInsertionMode("inCaption");if("colgroup"===node.localName)return this.setInsertionMode("inColumnGroup");if("table"===node.localName)return this.setInsertionMode("inTable");if("head"===node.localName&&!last)return this.setInsertionMode("inHead");if("body"===node.localName)return this.setInsertionMode("inBody");if("frameset"===node.localName)return this.setInsertionMode("inFrameset");if("html"===node.localName)return this.openElements.headElement?this.setInsertionMode("afterHead"):this.setInsertionMode("beforeHead")}if(last)return this.setInsertionMode("inBody")}},TreeBuilder.prototype.processGenericRCDATAStartTag=function(name,attributes){this.insertElement(name,attributes),this.tokenizer.setState(Tokenizer.RCDATA),this.originalInsertionMode=this.insertionModeName,this.setInsertionMode("text")},TreeBuilder.prototype.processGenericRawTextStartTag=function(name,attributes){this.insertElement(name,attributes),this.tokenizer.setState(Tokenizer.RAWTEXT),this.originalInsertionMode=this.insertionModeName,this.setInsertionMode("text")},TreeBuilder.prototype.adjustMathMLAttributes=function(attributes){return attributes.forEach(function(a){a.namespaceURI="http://www.w3.org/1998/Math/MathML",constants.MATHMLAttributeMap[a.nodeName]&&(a.nodeName=constants.MATHMLAttributeMap[a.nodeName])}),attributes},TreeBuilder.prototype.adjustSVGTagNameCase=function(name){return constants.SVGTagMap[name]||name},TreeBuilder.prototype.adjustSVGAttributes=function(attributes){return attributes.forEach(function(a){a.namespaceURI="http://www.w3.org/2000/svg",constants.SVGAttributeMap[a.nodeName]&&(a.nodeName=constants.SVGAttributeMap[a.nodeName])}),attributes},TreeBuilder.prototype.adjustForeignAttributes=function(attributes){for(var i=0;attributes.length>i;i++){var attribute=attributes[i],adjusted=constants.ForeignAttributeMap[attribute.nodeName];adjusted&&(attribute.nodeName=adjusted.localName,attribute.prefix=adjusted.prefix,attribute.namespaceURI=adjusted.namespaceURI)}return attributes},exports.TreeBuilder=TreeBuilder},{"./ElementStack":1,"./StackItem":4,"./Tokenizer":5,"./constants":7,"./messages.json":8,assert:13,events:16}],7:[function(_dereq_,module,exports){exports.SVGTagMap={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},exports.MATHMLAttributeMap={definitionurl:"definitionURL"},exports.SVGAttributeMap={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",externalresourcesacequired:"externalResourcesRequired",filterres:"filterRes",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",acequiredextensions:"acequiredExtensions",acequiredfeatures:"acequiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},exports.ForeignAttributeMap={"xlink:actuate":{prefix:"xlink",localName:"actuate",namespaceURI:"http://www.w3.org/1999/xlink"},"xlink:arcrole":{prefix:"xlink",localName:"arcrole",namespaceURI:"http://www.w3.org/1999/xlink"},"xlink:href":{prefix:"xlink",localName:"href",namespaceURI:"http://www.w3.org/1999/xlink"},"xlink:role":{prefix:"xlink",localName:"role",namespaceURI:"http://www.w3.org/1999/xlink"},"xlink:show":{prefix:"xlink",localName:"show",namespaceURI:"http://www.w3.org/1999/xlink"},"xlink:title":{prefix:"xlink",localName:"title",namespaceURI:"http://www.w3.org/1999/xlink"},"xlink:type":{prefix:"xlink",localName:"title",namespaceURI:"http://www.w3.org/1999/xlink"},"xml:base":{prefix:"xml",localName:"base",namespaceURI:"http://www.w3.org/XML/1998/namespace"},"xml:lang":{prefix:"xml",localName:"lang",namespaceURI:"http://www.w3.org/XML/1998/namespace"},"xml:space":{prefix:"xml",localName:"space",namespaceURI:"http://www.w3.org/XML/1998/namespace"},xmlns:{prefix:null,localName:"xmlns",namespaceURI:"http://www.w3.org/2000/xmlns/"},"xmlns:xlink":{prefix:"xmlns",localName:"xlink",namespaceURI:"http://www.w3.org/2000/xmlns/"}}\n},{}],8:[function(_dereq_,module){module.exports={"null-character":"Null character in input stream, replaced with U+FFFD.","invalid-codepoint":"Invalid codepoint in stream","incorrectly-placed-solidus":"Solidus (/) incorrectly placed in tag.","incorrect-cr-newline-entity":"Incorrect CR newline entity, replaced with LF.","illegal-windows-1252-entity":"Entity used with illegal number (windows-1252 reference).","cant-convert-numeric-entity":"Numeric entity couldn\'t be converted to character (codepoint U+{charAsInt}).","invalid-numeric-entity-replaced":"Numeric entity represents an illegal codepoint. Expanded to the C1 controls range.","numeric-entity-without-semicolon":"Numeric entity didn\'t end with \';\'.","expected-numeric-entity-but-got-eof":"Numeric entity expected. Got end of file instead.","expected-numeric-entity":"Numeric entity expected but none found.","named-entity-without-semicolon":"Named entity didn\'t end with \';\'.","expected-named-entity":"Named entity expected. Got none.","attributes-in-end-tag":"End tag contains unexpected attributes.","self-closing-flag-on-end-tag":"End tag contains unexpected self-closing flag.","bare-less-than-sign-at-eof":"End of file after <.","expected-tag-name-but-got-right-bracket":"Expected tag name. Got \'>\' instead.","expected-tag-name-but-got-question-mark":"Expected tag name. Got \'?\' instead. (HTML doesn\'t support processing instructions.)","expected-tag-name":"Expected tag name. Got something else instead.","expected-closing-tag-but-got-right-bracket":"Expected closing tag. Got \'>\' instead. Ignoring \'</>\'.","expected-closing-tag-but-got-eof":"Expected closing tag. Unexpected end of file.","expected-closing-tag-but-got-char":"Expected closing tag. Unexpected character \'{data}\' found.","eof-in-tag-name":"Unexpected end of file in the tag name.","expected-attribute-name-but-got-eof":"Unexpected end of file. Expected attribute name instead.","eof-in-attribute-name":"Unexpected end of file in attribute name.","invalid-character-in-attribute-name":"Invalid character in attribute name.","duplicate-attribute":"Dropped duplicate attribute \'{name}\' on tag.","expected-end-of-tag-but-got-eof":"Unexpected end of file. Expected = or end of tag.","expected-attribute-value-but-got-eof":"Unexpected end of file. Expected attribute value.","expected-attribute-value-but-got-right-bracket":"Expected attribute value. Got \'>\' instead.","unexpected-character-in-unquoted-attribute-value":"Unexpected character in unquoted attribute","invalid-character-after-attribute-name":"Unexpected character after attribute name.","unexpected-character-after-attribute-value":"Unexpected character after attribute value.","eof-in-attribute-value-double-quote":\'Unexpected end of file in attribute value (").\',"eof-in-attribute-value-single-quote":"Unexpected end of file in attribute value (\').","eof-in-attribute-value-no-quotes":"Unexpected end of file in attribute value.","eof-after-attribute-value":"Unexpected end of file after attribute value.","unexpected-eof-after-solidus-in-tag":"Unexpected end of file in tag. Expected >.","unexpected-character-after-solidus-in-tag":"Unexpected character after / in tag. Expected >.","expected-dashes-or-doctype":"Expected \'--\' or \'DOCTYPE\'. Not found.","unexpected-bang-after-double-dash-in-comment":"Unexpected ! after -- in comment.","incorrect-comment":"Incorrect comment.","eof-in-comment":"Unexpected end of file in comment.","eof-in-comment-end-dash":"Unexpected end of file in comment (-).","unexpected-dash-after-double-dash-in-comment":"Unexpected \'-\' after \'--\' found in comment.","eof-in-comment-double-dash":"Unexpected end of file in comment (--).","eof-in-comment-end-bang-state":"Unexpected end of file in comment.","unexpected-char-in-comment":"Unexpected character in comment found.","need-space-after-doctype":"No space after literal string \'DOCTYPE\'.","expected-doctype-name-but-got-right-bracket":"Unexpected > character. Expected DOCTYPE name.","expected-doctype-name-but-got-eof":"Unexpected end of file. Expected DOCTYPE name.","eof-in-doctype-name":"Unexpected end of file in DOCTYPE name.","eof-in-doctype":"Unexpected end of file in DOCTYPE.","expected-space-or-right-bracket-in-doctype":"Expected space or \'>\'. Got \'{data}\'.","unexpected-end-of-doctype":"Unexpected end of DOCTYPE.","unexpected-char-in-doctype":"Unexpected character in DOCTYPE.","eof-in-bogus-doctype":"Unexpected end of file in bogus doctype.","eof-in-innerhtml":"Unexpected EOF in inner html mode.","unexpected-doctype":"Unexpected DOCTYPE. Ignored.","non-html-root":"html needs to be the first start tag.","expected-doctype-but-got-eof":"Unexpected End of file. Expected DOCTYPE.","unknown-doctype":"Erroneous DOCTYPE. Expected <!DOCTYPE html>.","quirky-doctype":"Quirky doctype. Expected <!DOCTYPE html>.","almost-standards-doctype":"Almost standards mode doctype. Expected <!DOCTYPE html>.","obsolete-doctype":"Obsolete doctype. Expected <!DOCTYPE html>.","expected-doctype-but-got-chars":"Non-space characters found without seeing a doctype first. Expected e.g. <!DOCTYPE html>.","expected-doctype-but-got-start-tag":"Start tag seen without seeing a doctype first. Expected e.g. <!DOCTYPE html>.","expected-doctype-but-got-end-tag":"End tag seen without seeing a doctype first. Expected e.g. <!DOCTYPE html>.","end-tag-after-implied-root":"Unexpected end tag ({name}) after the (implied) root element.","expected-named-closing-tag-but-got-eof":"Unexpected end of file. Expected end tag ({name}).","two-heads-are-not-better-than-one":"Unexpected start tag head in existing head. Ignored.","unexpected-end-tag":"Unexpected end tag ({name}). Ignored.","unexpected-implied-end-tag":"End tag {name} implied, but there were open elements.","unexpected-start-tag-out-of-my-head":"Unexpected start tag ({name}) that can be in head. Moved.","unexpected-start-tag":"Unexpected start tag ({name}).","missing-end-tag":"Missing end tag ({name}).","missing-end-tags":"Missing end tags ({name}).","unexpected-start-tag-implies-end-tag":"Unexpected start tag ({startName}) implies end tag ({endName}).","unexpected-start-tag-treated-as":"Unexpected start tag ({originalName}). Treated as {newName}.","deprecated-tag":"Unexpected start tag {name}. Don\'t use it!","unexpected-start-tag-ignored":"Unexpected start tag {name}. Ignored.","expected-one-end-tag-but-got-another":"Unexpected end tag ({gotName}). Missing end tag ({expectedName}).","end-tag-too-early":"End tag ({name}) seen too early. Expected other end tag.","end-tag-too-early-named":"Unexpected end tag ({gotName}). Expected end tag ({expectedName}.","end-tag-too-early-ignored":"End tag ({name}) seen too early. Ignored.","adoption-agency-1.1":"End tag ({name}) violates step 1, paragraph 1 of the adoption agency algorithm.","adoption-agency-1.2":"End tag ({name}) violates step 1, paragraph 2 of the adoption agency algorithm.","adoption-agency-1.3":"End tag ({name}) violates step 1, paragraph 3 of the adoption agency algorithm.","adoption-agency-4.4":"End tag ({name}) violates step 4, paragraph 4 of the adoption agency algorithm.","unexpected-end-tag-treated-as":"Unexpected end tag ({originalName}). Treated as {newName}.","no-end-tag":"This element ({name}) has no end tag.","unexpected-implied-end-tag-in-table":"Unexpected implied end tag ({name}) in the table phase.","unexpected-implied-end-tag-in-table-body":"Unexpected implied end tag ({name}) in the table body phase.","unexpected-char-implies-table-voodoo":"Unexpected non-space characters in table context caused voodoo mode.","unexpected-hidden-input-in-table":"Unexpected input with type hidden in table context.","unexpected-form-in-table":"Unexpected form in table context.","unexpected-start-tag-implies-table-voodoo":"Unexpected start tag ({name}) in table context caused voodoo mode.","unexpected-end-tag-implies-table-voodoo":"Unexpected end tag ({name}) in table context caused voodoo mode.","unexpected-cell-in-table-body":"Unexpected table cell start tag ({name}) in the table body phase.","unexpected-cell-end-tag":"Got table cell end tag ({name}) while acequired end tags are missing.","unexpected-end-tag-in-table-body":"Unexpected end tag ({name}) in the table body phase. Ignored.","unexpected-implied-end-tag-in-table-row":"Unexpected implied end tag ({name}) in the table row phase.","unexpected-end-tag-in-table-row":"Unexpected end tag ({name}) in the table row phase. Ignored.","unexpected-select-in-select":"Unexpected select start tag in the select phase treated as select end tag.","unexpected-input-in-select":"Unexpected input start tag in the select phase.","unexpected-start-tag-in-select":"Unexpected start tag token ({name}) in the select phase. Ignored.","unexpected-end-tag-in-select":"Unexpected end tag ({name}) in the select phase. Ignored.","unexpected-table-element-start-tag-in-select-in-table":"Unexpected table element start tag ({name}) in the select in table phase.","unexpected-table-element-end-tag-in-select-in-table":"Unexpected table element end tag ({name}) in the select in table phase.","unexpected-char-after-body":"Unexpected non-space characters in the after body phase.","unexpected-start-tag-after-body":"Unexpected start tag token ({name}) in the after body phase.","unexpected-end-tag-after-body":"Unexpected end tag token ({name}) in the after body phase.","unexpected-char-in-frameset":"Unepxected characters in the frameset phase. Characters ignored.","unexpected-start-tag-in-frameset":"Unexpected start tag token ({name}) in the frameset phase. Ignored.","unexpected-frameset-in-frameset-innerhtml":"Unexpected end tag token (frameset in the frameset phase (innerHTML).","unexpected-end-tag-in-frameset":"Unexpected end tag token ({name}) in the frameset phase. Ignored.","unexpected-char-after-frameset":"Unexpected non-space characters in the after frameset phase. Ignored.","unexpected-start-tag-after-frameset":"Unexpected start tag ({name}) in the after frameset phase. Ignored.","unexpected-end-tag-after-frameset":"Unexpected end tag ({name}) in the after frameset phase. Ignored.","expected-eof-but-got-char":"Unexpected non-space characters. Expected end of file.","expected-eof-but-got-start-tag":"Unexpected start tag ({name}). Expected end of file.","expected-eof-but-got-end-tag":"Unexpected end tag ({name}). Expected end of file.","unexpected-end-table-in-caption":"Unexpected end table tag in caption. Generates implied end caption.","end-html-in-innerhtml":"Unexpected html end tag in inner html mode.","eof-in-table":"Unexpected end of file. Expected table content.","eof-in-script":"Unexpected end of file. Expected script content.","non-void-element-with-trailing-solidus":"Trailing solidus not allowed on element {name}.","unexpected-html-element-in-foreign-content":\'HTML start tag "{name}" in a foreign namespace context.\',"unexpected-start-tag-in-table":"Unexpected {name}. Expected table content."}},{}],9:[function(_dereq_,module,exports){function SAXParser(){this.contentHandler=null,this._errorHandler=null,this._treeBuilder=new SAXTreeBuilder,this._tokenizer=new Tokenizer(this._treeBuilder),this._scriptingEnabled=!1}var SAXTreeBuilder=_dereq_("./SAXTreeBuilder").SAXTreeBuilder,Tokenizer=_dereq_("../Tokenizer").Tokenizer,TreeParser=_dereq_("./TreeParser").TreeParser;SAXParser.prototype.parse=function(source){this._tokenizer.tokenize(source);var document=this._treeBuilder.document;document&&new TreeParser(this.contentHandler).parse(document)},SAXParser.prototype.parseFragment=function(source,context){this._treeBuilder.setFragmentContext(context),this._tokenizer.tokenize(source);var fragment=this._treeBuilder.getFragment();fragment&&new TreeParser(this.contentHandler).parse(fragment)},Object.defineProperty(SAXParser.prototype,"scriptingEnabled",{get:function(){return this._scriptingEnabled},set:function(value){this._scriptingEnabled=value,this._treeBuilder.scriptingEnabled=value}}),Object.defineProperty(SAXParser.prototype,"errorHandler",{get:function(){return this._errorHandler},set:function(value){this._errorHandler=value,this._treeBuilder.errorHandler=value}}),exports.SAXParser=SAXParser},{"../Tokenizer":5,"./SAXTreeBuilder":10,"./TreeParser":11}],10:[function(_dereq_,module,exports){function SAXTreeBuilder(){TreeBuilder.call(this)}function getAttribute(node,name){for(var i=0;node.attributes.length>i;i++){var attribute=node.attributes[i];if(attribute.nodeName===name)return attribute.nodeValue}}function Node(locator){locator?(this.columnNumber=locator.columnNumber,this.lineNumber=locator.lineNumber):(this.columnNumber=-1,this.lineNumber=-1),this.parentNode=null,this.nextSibling=null,this.firstChild=null}function ParentNode(locator){Node.call(this,locator),this.lastChild=null,this._endLocator=null}function Document(locator){ParentNode.call(this,locator),this.nodeType=NodeType.DOCUMENT}function DocumentFragment(){ParentNode.call(this,new Locator),this.nodeType=NodeType.DOCUMENT_FRAGMENT}function Element(locator,uri,localName,qName,atts,prefixMappings){ParentNode.call(this,locator),this.uri=uri,this.localName=localName,this.qName=qName,this.attributes=atts,this.prefixMappings=prefixMappings,this.nodeType=NodeType.ELEMENT}function Characters(locator,data){Node.call(this,locator),this.data=data,this.nodeType=NodeType.CHARACTERS}function IgnorableWhitespace(locator,data){Node.call(this,locator),this.data=data,this.nodeType=NodeType.IGNORABLE_WHITESPACE}function Comment(locator,data){Node.call(this,locator),this.data=data,this.nodeType=NodeType.COMMENT}function CDATA(locator){ParentNode.call(this,locator),this.nodeType=NodeType.CDATA}function Entity(name){ParentNode.call(this),this.name=name,this.nodeType=NodeType.ENTITY}function SkippedEntity(name){Node.call(this),this.name=name,this.nodeType=NodeType.SKIPPED_ENTITY}function ProcessingInstruction(target,data){Node.call(this),this.target=target,this.data=data}function DTD(name,publicIdentifier,systemIdentifier){ParentNode.call(this),this.name=name,this.publicIdentifier=publicIdentifier,this.systemIdentifier=systemIdentifier,this.nodeType=NodeType.DTD}var util=_dereq_("util"),TreeBuilder=_dereq_("../TreeBuilder").TreeBuilder;util.inherits(SAXTreeBuilder,TreeBuilder),SAXTreeBuilder.prototype.start=function(){this.document=new Document(this.tokenizer)},SAXTreeBuilder.prototype.end=function(){this.document.endLocator=this.tokenizer},SAXTreeBuilder.prototype.insertDoctype=function(name,publicId,systemId){var doctype=new DTD(this.tokenizer,name,publicId,systemId);doctype.endLocator=this.tokenizer,this.document.appendChild(doctype)},SAXTreeBuilder.prototype.createElement=function(namespaceURI,localName,attributes){var element=new Element(this.tokenizer,namespaceURI,localName,localName,attributes||[]);return element},SAXTreeBuilder.prototype.insertComment=function(data,parent){parent||(parent=this.currentStackItem());var comment=new Comment(this.tokenizer,data);parent.appendChild(comment)},SAXTreeBuilder.prototype.appendCharacters=function(parent,data){var text=new Characters(this.tokenizer,data);parent.appendChild(text)},SAXTreeBuilder.prototype.insertText=function(data){if(this.redirectAttachToFosterParent&&this.openElements.top.isFosterParenting()){var tableIndex=this.openElements.findIndex("table"),tableItem=this.openElements.item(tableIndex),table=tableItem.node;if(0===tableIndex)return this.appendCharacters(table,data);var text=new Characters(this.tokenizer,data),parent=table.parentNode;if(parent)return parent.insertBetween(text,table.previousSibling,table),void 0;var stackParent=this.openElements.item(tableIndex-1).node;return stackParent.appendChild(text),void 0}this.appendCharacters(this.currentStackItem().node,data)},SAXTreeBuilder.prototype.attachNode=function(node,parent){parent.appendChild(node)},SAXTreeBuilder.prototype.attachNodeToFosterParent=function(child,table,stackParent){var parent=table.parentNode;parent?parent.insertBetween(child,table.previousSibling,table):stackParent.appendChild(child)},SAXTreeBuilder.prototype.detachFromParent=function(element){element.detach()},SAXTreeBuilder.prototype.reparentChildren=function(oldParent,newParent){newParent.appendChildren(oldParent.firstChild)},SAXTreeBuilder.prototype.getFragment=function(){var fragment=new DocumentFragment;return this.reparentChildren(this.openElements.rootNode,fragment),fragment},SAXTreeBuilder.prototype.addAttributesToElement=function(element,attributes){for(var i=0;attributes.length>i;i++){var attribute=attributes[i];getAttribute(element,attribute.nodeName)||element.attributes.push(attribute)}};var NodeType={CDATA:1,CHARACTERS:2,COMMENT:3,DOCUMENT:4,DOCUMENT_FRAGMENT:5,DTD:6,ELEMENT:7,ENTITY:8,IGNORABLE_WHITESPACE:9,PROCESSING_INSTRUCTION:10,SKIPPED_ENTITY:11};Node.prototype.visit=function(){throw Error("Not Implemented")},Node.prototype.revisit=function(){},Node.prototype.detach=function(){null!==this.parentNode&&(this.parentNode.removeChild(this),this.parentNode=null)},Object.defineProperty(Node.prototype,"previousSibling",{get:function(){for(var prev=null,next=this.parentNode.firstChild;;){if(this==next)return prev;prev=next,next=next.nextSibling}}}),ParentNode.prototype=Object.create(Node.prototype),ParentNode.prototype.insertBefore=function(child,sibling){if(!sibling)return this.appendChild(child);if(child.detach(),child.parentNode=this,this.firstChild==sibling)child.nextSibling=sibling,this.firstChild=child;else{for(var prev=this.firstChild,next=this.firstChild.nextSibling;next!=sibling;)prev=next,next=next.nextSibling;prev.nextSibling=child,child.nextSibling=next}return child},ParentNode.prototype.insertBetween=function(child,prev,next){return next?(child.detach(),child.parentNode=this,child.nextSibling=next,prev?prev.nextSibling=child:firstChild=child,child):this.appendChild(child)},ParentNode.prototype.appendChild=function(child){return child.detach(),child.parentNode=this,this.firstChild?this.lastChild.nextSibling=child:this.firstChild=child,this.lastChild=child,child},ParentNode.prototype.appendChildren=function(parent){var child=parent.firstChild;if(child){var another=parent;this.firstChild?this.lastChild.nextSibling=child:this.firstChild=child,this.lastChild=another.lastChild;do child.parentNode=this;while(child=child.nextSibling);another.firstChild=null,another.lastChild=null}},ParentNode.prototype.removeChild=function(node){if(this.firstChild==node)this.firstChild=node.nextSibling,this.lastChild==node&&(this.lastChild=null);else{for(var prev=this.firstChild,next=this.firstChild.nextSibling;next!=node;)prev=next,next=next.nextSibling;prev.nextSibling=node.nextSibling,this.lastChild==node&&(this.lastChild=prev)}return node.parentNode=null,node},Object.defineProperty(ParentNode.prototype,"endLocator",{get:function(){return this._endLocator},set:function(endLocator){this._endLocator={lineNumber:endLocator.lineNumber,columnNumber:endLocator.columnNumber}}}),Document.prototype=Object.create(ParentNode.prototype),Document.prototype.visit=function(treeParser){treeParser.startDocument(this)},Document.prototype.revisit=function(treeParser){treeParser.endDocument(this.endLocator)},DocumentFragment.prototype=Object.create(ParentNode.prototype),DocumentFragment.prototype.visit=function(){},Element.prototype=Object.create(ParentNode.prototype),Element.prototype.visit=function(treeParser){if(this.prefixMappings)for(var key in prefixMappings){var mapping=prefixMappings[key];treeParser.startPrefixMapping(mapping.getPrefix(),mapping.getUri(),this)}treeParser.startElement(this.uri,this.localName,this.qName,this.attributes,this)},Element.prototype.revisit=function(treeParser){if(treeParser.endElement(this.uri,this.localName,this.qName,this.endLocator),this.prefixMappings)for(var key in prefixMappings){var mapping=prefixMappings[key];treeParser.endPrefixMapping(mapping.getPrefix(),this.endLocator)}},Characters.prototype=Object.create(Node.prototype),Characters.prototype.visit=function(treeParser){treeParser.characters(this.data,0,this.data.length,this)},IgnorableWhitespace.prototype=Object.create(Node.prototype),IgnorableWhitespace.prototype.visit=function(treeParser){treeParser.ignorableWhitespace(this.data,0,this.data.length,this)},Comment.prototype=Object.create(Node.prototype),Comment.prototype.visit=function(treeParser){treeParser.comment(this.data,0,this.data.length,this)},CDATA.prototype=Object.create(ParentNode.prototype),CDATA.prototype.visit=function(treeParser){treeParser.startCDATA(this)},CDATA.prototype.revisit=function(treeParser){treeParser.endCDATA(this.endLocator)},Entity.prototype=Object.create(ParentNode.prototype),Entity.prototype.visit=function(treeParser){treeParser.startEntity(this.name,this)},Entity.prototype.revisit=function(treeParser){treeParser.endEntity(this.name)},SkippedEntity.prototype=Object.create(Node.prototype),SkippedEntity.prototype.visit=function(treeParser){treeParser.skippedEntity(this.name,this)},ProcessingInstruction.prototype=Object.create(Node.prototype),ProcessingInstruction.prototype.visit=function(treeParser){treeParser.processingInstruction(this.target,this.data,this)},ProcessingInstruction.prototype.getNodeType=function(){return NodeType.PROCESSING_INSTRUCTION},DTD.prototype=Object.create(ParentNode.prototype),DTD.prototype.visit=function(treeParser){treeParser.startDTD(this.name,this.publicIdentifier,this.systemIdentifier,this)},DTD.prototype.revisit=function(treeParser){treeParser.endDTD()},exports.SAXTreeBuilder=SAXTreeBuilder},{"../TreeBuilder":6,util:20}],11:[function(_dereq_,module,exports){function TreeParser(contentHandler,lexicalHandler){if(this.contentHandler,this.lexicalHandler,this.locatorDelegate,!contentHandler)throw new IllegalArgumentException("contentHandler was null.");this.contentHandler=contentHandler,this.lexicalHandler=lexicalHandler?lexicalHandler:new NullLexicalHandler}function NullLexicalHandler(){}TreeParser.prototype.parse=function(node){this.contentHandler.documentLocator=this;for(var next,current=node;;)if(current.visit(this),next=current.firstChild)current=next;else for(;;){if(current.revisit(this),current==node)return;if(next=current.nextSibling){current=next;break}current=current.parentNode}},TreeParser.prototype.characters=function(ch,start,length,locator){this.locatorDelegate=locator,this.contentHandler.characters(ch,start,length)},TreeParser.prototype.endDocument=function(locator){this.locatorDelegate=locator,this.contentHandler.endDocument()},TreeParser.prototype.endElement=function(uri,localName,qName,locator){this.locatorDelegate=locator,this.contentHandler.endElement(uri,localName,qName)},TreeParser.prototype.endPrefixMapping=function(prefix,locator){this.locatorDelegate=locator,this.contentHandler.endPrefixMapping(prefix)},TreeParser.prototype.ignorableWhitespace=function(ch,start,length,locator){this.locatorDelegate=locator,this.contentHandler.ignorableWhitespace(ch,start,length)},TreeParser.prototype.processingInstruction=function(target,data,locator){this.locatorDelegate=locator,this.contentHandler.processingInstruction(target,data)},TreeParser.prototype.skippedEntity=function(name,locator){this.locatorDelegate=locator,this.contentHandler.skippedEntity(name)},TreeParser.prototype.startDocument=function(locator){this.locatorDelegate=locator,this.contentHandler.startDocument()},TreeParser.prototype.startElement=function(uri,localName,qName,atts,locator){this.locatorDelegate=locator,this.contentHandler.startElement(uri,localName,qName,atts)},TreeParser.prototype.startPrefixMapping=function(prefix,uri,locator){this.locatorDelegate=locator,this.contentHandler.startPrefixMapping(prefix,uri)},TreeParser.prototype.comment=function(ch,start,length,locator){this.locatorDelegate=locator,this.lexicalHandler.comment(ch,start,length)},TreeParser.prototype.endCDATA=function(locator){this.locatorDelegate=locator,this.lexicalHandler.endCDATA()},TreeParser.prototype.endDTD=function(locator){this.locatorDelegate=locator,this.lexicalHandler.endDTD()},TreeParser.prototype.endEntity=function(name,locator){this.locatorDelegate=locator,this.lexicalHandler.endEntity(name)},TreeParser.prototype.startCDATA=function(locator){this.locatorDelegate=locator,this.lexicalHandler.startCDATA()},TreeParser.prototype.startDTD=function(name,publicId,systemId,locator){this.locatorDelegate=locator,this.lexicalHandler.startDTD(name,publicId,systemId)},TreeParser.prototype.startEntity=function(name,locator){this.locatorDelegate=locator,this.lexicalHandler.startEntity(name)},Object.defineProperty(TreeParser.prototype,"columnNumber",{get:function(){return this.locatorDelegate?this.locatorDelegate.columnNumber:-1}}),Object.defineProperty(TreeParser.prototype,"lineNumber",{get:function(){return this.locatorDelegate?this.locatorDelegate.lineNumber:-1}}),NullLexicalHandler.prototype.comment=function(){},NullLexicalHandler.prototype.endCDATA=function(){},NullLexicalHandler.prototype.endDTD=function(){},NullLexicalHandler.prototype.endEntity=function(){},NullLexicalHandler.prototype.startCDATA=function(){},NullLexicalHandler.prototype.startDTD=function(){},NullLexicalHandler.prototype.startEntity=function(){},exports.TreeParser=TreeParser},{}],12:[function(_dereq_,module){module.exports={"Aacute;":"Á",Aacute:"Á","aacute;":"á",aacute:"á","Abreve;":"Ă","abreve;":"ă","ac;":"∾","acd;":"∿","acE;":"∾̳","Acirc;":"Â",Acirc:"Â","acirc;":"â",acirc:"â","acute;":"´",acute:"´","Acy;":"А","acy;":"а","AElig;":"Æ",AElig:"Æ","aelig;":"æ",aelig:"æ","af;":"⁡","Afr;":"𝔄","afr;":"𝔞","Agrave;":"À",Agrave:"À","agrave;":"à",agrave:"à","alefsym;":"ℵ","aleph;":"ℵ","Alpha;":"Α","alpha;":"α","Amacr;":"Ā","amacr;":"ā","amalg;":"⨿","amp;":"&",amp:"&","AMP;":"&",AMP:"&","andand;":"⩕","And;":"⩓","and;":"∧","andd;":"⩜","andslope;":"⩘","andv;":"⩚","ang;":"∠","ange;":"⦤","angle;":"∠","angmsdaa;":"⦨","angmsdab;":"⦩","angmsdac;":"⦪","angmsdad;":"⦫","angmsdae;":"⦬","angmsdaf;":"⦭","angmsdag;":"⦮","angmsdah;":"⦯","angmsd;":"∡","angrt;":"∟","angrtvb;":"⊾","angrtvbd;":"⦝","angsph;":"∢","angst;":"Å","angzarr;":"⍼","Aogon;":"Ą","aogon;":"ą","Aopf;":"𝔸","aopf;":"𝕒","apacir;":"⩯","ap;":"≈","apE;":"⩰","ape;":"≊","apid;":"≋","apos;":"\'","ApplyFunction;":"⁡","approx;":"≈","approxeq;":"≊","Aring;":"Å",Aring:"Å","aring;":"å",aring:"å","Ascr;":"𝒜","ascr;":"𝒶","Assign;":"≔","ast;":"*","asymp;":"≈","asympeq;":"≍","Atilde;":"Ã",Atilde:"Ã","atilde;":"ã",atilde:"ã","Auml;":"Ä",Auml:"Ä","auml;":"ä",auml:"ä","awconint;":"∳","awint;":"⨑","backcong;":"≌","backepsilon;":"϶","backprime;":"‵","backsim;":"∽","backsimeq;":"⋍","Backslash;":"∖","Barv;":"⫧","barvee;":"⊽","barwed;":"⌅","Barwed;":"⌆","barwedge;":"⌅","bbrk;":"⎵","bbrktbrk;":"⎶","bcong;":"≌","Bcy;":"Б","bcy;":"б","bdquo;":"„","becaus;":"∵","because;":"∵","Because;":"∵","bemptyv;":"⦰","bepsi;":"϶","bernou;":"ℬ","Bernoullis;":"ℬ","Beta;":"Β","beta;":"β","beth;":"ℶ","between;":"≬","Bfr;":"𝔅","bfr;":"𝔟","bigcap;":"⋂","bigcirc;":"◯","bigcup;":"⋃","bigodot;":"⨀","bigoplus;":"⨁","bigotimes;":"⨂","bigsqcup;":"⨆","bigstar;":"★","bigtriangledown;":"▽","bigtriangleup;":"△","biguplus;":"⨄","bigvee;":"⋁","bigwedge;":"⋀","bkarow;":"⤍","blacklozenge;":"⧫","blacksquare;":"▪","blacktriangle;":"▴","blacktriangledown;":"▾","blacktriangleleft;":"◂","blacktriangleright;":"▸","blank;":"␣","blk12;":"▒","blk14;":"░","blk34;":"▓","block;":"█","bne;":"=⃥","bnequiv;":"≡⃥","bNot;":"⫭","bnot;":"⌐","Bopf;":"𝔹","bopf;":"𝕓","bot;":"⊥","bottom;":"⊥","bowtie;":"⋈","boxbox;":"⧉","boxdl;":"┐","boxdL;":"╕","boxDl;":"╖","boxDL;":"╗","boxdr;":"┌","boxdR;":"╒","boxDr;":"╓","boxDR;":"╔","boxh;":"─","boxH;":"═","boxhd;":"┬","boxHd;":"╤","boxhD;":"╥","boxHD;":"╦","boxhu;":"┴","boxHu;":"╧","boxhU;":"╨","boxHU;":"╩","boxminus;":"⊟","boxplus;":"⊞","boxtimes;":"⊠","boxul;":"┘","boxuL;":"╛","boxUl;":"╜","boxUL;":"╝","boxur;":"└","boxuR;":"╘","boxUr;":"╙","boxUR;":"╚","boxv;":"│","boxV;":"║","boxvh;":"┼","boxvH;":"╪","boxVh;":"╫","boxVH;":"╬","boxvl;":"┤","boxvL;":"╡","boxVl;":"╢","boxVL;":"╣","boxvr;":"├","boxvR;":"╞","boxVr;":"╟","boxVR;":"╠","bprime;":"‵","breve;":"˘","Breve;":"˘","brvbar;":"¦",brvbar:"¦","bscr;":"𝒷","Bscr;":"ℬ","bsemi;":"⁏","bsim;":"∽","bsime;":"⋍","bsolb;":"⧅","bsol;":"\\\\","bsolhsub;":"⟈","bull;":"•","bullet;":"•","bump;":"≎","bumpE;":"⪮","bumpe;":"≏","Bumpeq;":"≎","bumpeq;":"≏","Cacute;":"Ć","cacute;":"ć","capand;":"⩄","capbrcup;":"⩉","capcap;":"⩋","cap;":"∩","Cap;":"⋒","capcup;":"⩇","capdot;":"⩀","CapitalDifferentialD;":"ⅅ","caps;":"∩︀","caret;":"⁁","caron;":"ˇ","Cayleys;":"ℭ","ccaps;":"⩍","Ccaron;":"Č","ccaron;":"č","Ccedil;":"Ç",Ccedil:"Ç","ccedil;":"ç",ccedil:"ç","Ccirc;":"Ĉ","ccirc;":"ĉ","Cconint;":"∰","ccups;":"⩌","ccupssm;":"⩐","Cdot;":"Ċ","cdot;":"ċ","cedil;":"¸",cedil:"¸","Cedilla;":"¸","cemptyv;":"⦲","cent;":"¢",cent:"¢","centerdot;":"·","CenterDot;":"·","cfr;":"𝔠","Cfr;":"ℭ","CHcy;":"Ч","chcy;":"ч","check;":"✓","checkmark;":"✓","Chi;":"Χ","chi;":"χ","circ;":"ˆ","circeq;":"≗","circlearrowleft;":"↺","circlearrowright;":"↻","circledast;":"⊛","circledcirc;":"⊚","circleddash;":"⊝","CircleDot;":"⊙","circledR;":"®","circledS;":"Ⓢ","CircleMinus;":"⊖","CirclePlus;":"⊕","CircleTimes;":"⊗","cir;":"○","cirE;":"⧃","cire;":"≗","cirfnint;":"⨐","cirmid;":"⫯","cirscir;":"⧂","ClockwiseContourIntegral;":"∲","CloseCurlyDoubleQuote;":"”","CloseCurlyQuote;":"’","clubs;":"♣","clubsuit;":"♣","colon;":":","Colon;":"∷","Colone;":"⩴","colone;":"≔","coloneq;":"≔","comma;":",","commat;":"@","comp;":"∁","compfn;":"∘","complement;":"∁","complexes;":"ℂ","cong;":"≅","congdot;":"⩭","Congruent;":"≡","conint;":"∮","Conint;":"∯","ContourIntegral;":"∮","copf;":"𝕔","Copf;":"ℂ","coprod;":"∐","Coproduct;":"∐","copy;":"©",copy:"©","COPY;":"©",COPY:"©","copysr;":"℗","CounterClockwiseContourIntegral;":"∳","crarr;":"↵","cross;":"✗","Cross;":"⨯","Cscr;":"𝒞","cscr;":"𝒸","csub;":"⫏","csube;":"⫑","csup;":"⫐","csupe;":"⫒","ctdot;":"⋯","cudarrl;":"⤸","cudarrr;":"⤵","cuepr;":"⋞","cuesc;":"⋟","cularr;":"↶","cularrp;":"⤽","cupbrcap;":"⩈","cupcap;":"⩆","CupCap;":"≍","cup;":"∪","Cup;":"⋓","cupcup;":"⩊","cupdot;":"⊍","cupor;":"⩅","cups;":"∪︀","curarr;":"↷","curarrm;":"⤼","curlyeqprec;":"⋞","curlyeqsucc;":"⋟","curlyvee;":"⋎","curlywedge;":"⋏","curren;":"¤",curren:"¤","curvearrowleft;":"↶","curvearrowright;":"↷","cuvee;":"⋎","cuwed;":"⋏","cwconint;":"∲","cwint;":"∱","cylcty;":"⌭","dagger;":"†","Dagger;":"‡","daleth;":"ℸ","darr;":"↓","Darr;":"↡","dArr;":"⇓","dash;":"‐","Dashv;":"⫤","dashv;":"⊣","dbkarow;":"⤏","dblac;":"˝","Dcaron;":"Ď","dcaron;":"ď","Dcy;":"Д","dcy;":"д","ddagger;":"‡","ddarr;":"⇊","DD;":"ⅅ","dd;":"ⅆ","DDotrahd;":"⤑","ddotseq;":"⩷","deg;":"°",deg:"°","Del;":"∇","Delta;":"Δ","delta;":"δ","demptyv;":"⦱","dfisht;":"⥿","Dfr;":"𝔇","dfr;":"𝔡","dHar;":"⥥","dharl;":"⇃","dharr;":"⇂","DiacriticalAcute;":"´","DiacriticalDot;":"˙","DiacriticalDoubleAcute;":"˝","DiacriticalGrave;":"`","DiacriticalTilde;":"˜","diam;":"⋄","diamond;":"⋄","Diamond;":"⋄","diamondsuit;":"♦","diams;":"♦","die;":"¨","DifferentialD;":"ⅆ","digamma;":"ϝ","disin;":"⋲","div;":"÷","divide;":"÷",divide:"÷","divideontimes;":"⋇","divonx;":"⋇","DJcy;":"Ђ","djcy;":"ђ","dlcorn;":"⌞","dlcrop;":"⌍","dollar;":"$","Dopf;":"𝔻","dopf;":"𝕕","Dot;":"¨","dot;":"˙","DotDot;":"⃜","doteq;":"≐","doteqdot;":"≑","DotEqual;":"≐","dotminus;":"∸","dotplus;":"∔","dotsquare;":"⊡","doublebarwedge;":"⌆","DoubleContourIntegral;":"∯","DoubleDot;":"¨","DoubleDownArrow;":"⇓","DoubleLeftArrow;":"⇐","DoubleLeftRightArrow;":"⇔","DoubleLeftTee;":"⫤","DoubleLongLeftArrow;":"⟸","DoubleLongLeftRightArrow;":"⟺","DoubleLongRightArrow;":"⟹","DoubleRightArrow;":"⇒","DoubleRightTee;":"⊨","DoubleUpArrow;":"⇑","DoubleUpDownArrow;":"⇕","DoubleVerticalBar;":"∥","DownArrowBar;":"⤓","downarrow;":"↓","DownArrow;":"↓","Downarrow;":"⇓","DownArrowUpArrow;":"⇵","DownBreve;":"̑","downdownarrows;":"⇊","downharpoonleft;":"⇃","downharpoonright;":"⇂","DownLeftRightVector;":"⥐","DownLeftTeeVector;":"⥞","DownLeftVectorBar;":"⥖","DownLeftVector;":"↽","DownRightTeeVector;":"⥟","DownRightVectorBar;":"⥗","DownRightVector;":"⇁","DownTeeArrow;":"↧","DownTee;":"⊤","drbkarow;":"⤐","drcorn;":"⌟","drcrop;":"⌌","Dscr;":"𝒟","dscr;":"𝒹","DScy;":"Ѕ","dscy;":"ѕ","dsol;":"⧶","Dstrok;":"Đ","dstrok;":"đ","dtdot;":"⋱","dtri;":"▿","dtrif;":"▾","duarr;":"⇵","duhar;":"⥯","dwangle;":"⦦","DZcy;":"Џ","dzcy;":"џ","dzigrarr;":"⟿","Eacute;":"É",Eacute:"É","eacute;":"é",eacute:"é","easter;":"⩮","Ecaron;":"Ě","ecaron;":"ě","Ecirc;":"Ê",Ecirc:"Ê","ecirc;":"ê",ecirc:"ê","ecir;":"≖","ecolon;":"≕","Ecy;":"Э","ecy;":"э","eDDot;":"⩷","Edot;":"Ė","edot;":"ė","eDot;":"≑","ee;":"ⅇ","efDot;":"≒","Efr;":"𝔈","efr;":"𝔢","eg;":"⪚","Egrave;":"È",Egrave:"È","egrave;":"è",egrave:"è","egs;":"⪖","egsdot;":"⪘","el;":"⪙","Element;":"∈","elinters;":"⏧","ell;":"ℓ","els;":"⪕","elsdot;":"⪗","Emacr;":"Ē","emacr;":"ē","empty;":"∅","emptyset;":"∅","EmptySmallSquare;":"◻","emptyv;":"∅","EmptyVerySmallSquare;":"▫","emsp13;":" ","emsp14;":" ","emsp;":" ","ENG;":"Ŋ","eng;":"ŋ","ensp;":" ","Eogon;":"Ę","eogon;":"ę","Eopf;":"𝔼","eopf;":"𝕖","epar;":"⋕","eparsl;":"⧣","eplus;":"⩱","epsi;":"ε","Epsilon;":"Ε","epsilon;":"ε","epsiv;":"ϵ","eqcirc;":"≖","eqcolon;":"≕","eqsim;":"≂","eqslantgtr;":"⪖","eqslantless;":"⪕","Equal;":"⩵","equals;":"=","EqualTilde;":"≂","equest;":"≟","Equilibrium;":"⇌","equiv;":"≡","equivDD;":"⩸","eqvparsl;":"⧥","erarr;":"⥱","erDot;":"≓","escr;":"ℯ","Escr;":"ℰ","esdot;":"≐","Esim;":"⩳","esim;":"≂","Eta;":"Η","eta;":"η","ETH;":"Ð",ETH:"Ð","eth;":"ð",eth:"ð","Euml;":"Ë",Euml:"Ë","euml;":"ë",euml:"ë","euro;":"€","excl;":"!","exist;":"∃","Exists;":"∃","expectation;":"ℰ","exponentiale;":"ⅇ","ExponentialE;":"ⅇ","fallingdotseq;":"≒","Fcy;":"Ф","fcy;":"ф","female;":"♀","ffilig;":"ffi","fflig;":"ff","ffllig;":"ffl","Ffr;":"𝔉","ffr;":"𝔣","filig;":"fi","FilledSmallSquare;":"◼","FilledVerySmallSquare;":"▪","fjlig;":"fj","flat;":"♭","fllig;":"fl","fltns;":"▱","fnof;":"ƒ","Fopf;":"𝔽","fopf;":"𝕗","forall;":"∀","ForAll;":"∀","fork;":"⋔","forkv;":"⫙","Fouriertrf;":"ℱ","fpartint;":"⨍","frac12;":"½",frac12:"½","frac13;":"⅓","frac14;":"¼",frac14:"¼","frac15;":"⅕","frac16;":"⅙","frac18;":"⅛","frac23;":"⅔","frac25;":"⅖","frac34;":"¾",frac34:"¾","frac35;":"⅗","frac38;":"⅜","frac45;":"⅘","frac56;":"⅚","frac58;":"⅝","frac78;":"⅞","frasl;":"⁄","frown;":"⌢","fscr;":"𝒻","Fscr;":"ℱ","gacute;":"ǵ","Gamma;":"Γ","gamma;":"γ","Gammad;":"Ϝ","gammad;":"ϝ","gap;":"⪆","Gbreve;":"Ğ","gbreve;":"ğ","Gcedil;":"Ģ","Gcirc;":"Ĝ","gcirc;":"ĝ","Gcy;":"Г","gcy;":"г","Gdot;":"Ġ","gdot;":"ġ","ge;":"≥","gE;":"≧","gEl;":"⪌","gel;":"⋛","geq;":"≥","geqq;":"≧","geqslant;":"⩾","gescc;":"⪩","ges;":"⩾","gesdot;":"⪀","gesdoto;":"⪂","gesdotol;":"⪄","gesl;":"⋛︀","gesles;":"⪔","Gfr;":"𝔊","gfr;":"𝔤","gg;":"≫","Gg;":"⋙","ggg;":"⋙","gimel;":"ℷ","GJcy;":"Ѓ","gjcy;":"ѓ","gla;":"⪥","gl;":"≷","glE;":"⪒","glj;":"⪤","gnap;":"⪊","gnapprox;":"⪊","gne;":"⪈","gnE;":"≩","gneq;":"⪈","gneqq;":"≩","gnsim;":"⋧","Gopf;":"𝔾","gopf;":"𝕘","grave;":"`","GreaterEqual;":"≥","GreaterEqualLess;":"⋛","GreaterFullEqual;":"≧","GreaterGreater;":"⪢","GreaterLess;":"≷","GreaterSlantEqual;":"⩾","GreaterTilde;":"≳","Gscr;":"𝒢","gscr;":"ℊ","gsim;":"≳","gsime;":"⪎","gsiml;":"⪐","gtcc;":"⪧","gtcir;":"⩺","gt;":">",gt:">","GT;":">",GT:">","Gt;":"≫","gtdot;":"⋗","gtlPar;":"⦕","gtquest;":"⩼","gtrapprox;":"⪆","gtrarr;":"⥸","gtrdot;":"⋗","gtreqless;":"⋛","gtreqqless;":"⪌","gtrless;":"≷","gtrsim;":"≳","gvertneqq;":"≩︀","gvnE;":"≩︀","Hacek;":"ˇ","hairsp;":" ","half;":"½","hamilt;":"ℋ","HARDcy;":"Ъ","hardcy;":"ъ","harrcir;":"⥈","harr;":"↔","hArr;":"⇔","harrw;":"↭","Hat;":"^","hbar;":"ℏ","Hcirc;":"Ĥ","hcirc;":"ĥ","hearts;":"♥","heartsuit;":"♥","hellip;":"…","hercon;":"⊹","hfr;":"𝔥","Hfr;":"ℌ","HilbertSpace;":"ℋ","hksearow;":"⤥","hkswarow;":"⤦","hoarr;":"⇿","homtht;":"∻","hookleftarrow;":"↩","hookrightarrow;":"↪","hopf;":"𝕙","Hopf;":"ℍ","horbar;":"―","HorizontalLine;":"─","hscr;":"𝒽","Hscr;":"ℋ","hslash;":"ℏ","Hstrok;":"Ħ","hstrok;":"ħ","HumpDownHump;":"≎","HumpEqual;":"≏","hybull;":"⁃","hyphen;":"‐","Iacute;":"Í",Iacute:"Í","iacute;":"í",iacute:"í","ic;":"⁣","Icirc;":"Î",Icirc:"Î","icirc;":"î",icirc:"î","Icy;":"И","icy;":"и","Idot;":"İ","IEcy;":"Е","iecy;":"е","iexcl;":"¡",iexcl:"¡","iff;":"⇔","ifr;":"𝔦","Ifr;":"ℑ","Igrave;":"Ì",Igrave:"Ì","igrave;":"ì",igrave:"ì","ii;":"ⅈ","iiiint;":"⨌","iiint;":"∭","iinfin;":"⧜","iiota;":"℩","IJlig;":"IJ","ijlig;":"ij","Imacr;":"Ī","imacr;":"ī","image;":"ℑ","ImaginaryI;":"ⅈ","imagline;":"ℐ","imagpart;":"ℑ","imath;":"ı","Im;":"ℑ","imof;":"⊷","imped;":"Ƶ","Implies;":"⇒","incare;":"℅","in;":"∈","infin;":"∞","infintie;":"⧝","inodot;":"ı","intcal;":"⊺","int;":"∫","Int;":"∬","integers;":"ℤ","Integral;":"∫","intercal;":"⊺","Intersection;":"⋂","intlarhk;":"⨗","intprod;":"⨼","InvisibleComma;":"⁣","InvisibleTimes;":"⁢","IOcy;":"Ё","iocy;":"ё","Iogon;":"Į","iogon;":"į","Iopf;":"𝕀","iopf;":"𝕚","Iota;":"Ι","iota;":"ι","iprod;":"⨼","iquest;":"¿",iquest:"¿","iscr;":"𝒾","Iscr;":"ℐ","isin;":"∈","isindot;":"⋵","isinE;":"⋹","isins;":"⋴","isinsv;":"⋳","isinv;":"∈","it;":"⁢","Itilde;":"Ĩ","itilde;":"ĩ","Iukcy;":"І","iukcy;":"і","Iuml;":"Ï",Iuml:"Ï","iuml;":"ï",iuml:"ï","Jcirc;":"Ĵ","jcirc;":"ĵ","Jcy;":"Й","jcy;":"й","Jfr;":"𝔍","jfr;":"𝔧","jmath;":"ȷ","Jopf;":"𝕁","jopf;":"𝕛","Jscr;":"𝒥","jscr;":"𝒿","Jsercy;":"Ј","jsercy;":"ј","Jukcy;":"Є","jukcy;":"є","Kappa;":"Κ","kappa;":"κ","kappav;":"ϰ","Kcedil;":"Ķ","kcedil;":"ķ","Kcy;":"К","kcy;":"к","Kfr;":"𝔎","kfr;":"𝔨","kgreen;":"ĸ","KHcy;":"Х","khcy;":"х","KJcy;":"Ќ","kjcy;":"ќ","Kopf;":"𝕂","kopf;":"𝕜","Kscr;":"𝒦","kscr;":"𝓀","lAarr;":"⇚","Lacute;":"Ĺ","lacute;":"ĺ","laemptyv;":"⦴","lagran;":"ℒ","Lambda;":"Λ","lambda;":"λ","lang;":"⟨","Lang;":"⟪","langd;":"⦑","langle;":"⟨","lap;":"⪅","Laplacetrf;":"ℒ","laquo;":"«",laquo:"«","larrb;":"⇤","larrbfs;":"⤟","larr;":"←","Larr;":"↞","lArr;":"⇐","larrfs;":"⤝","larrhk;":"↩","larrlp;":"↫","larrpl;":"⤹","larrsim;":"⥳","larrtl;":"↢","latail;":"⤙","lAtail;":"⤛","lat;":"⪫","late;":"⪭","lates;":"⪭︀","lbarr;":"⤌","lBarr;":"⤎","lbbrk;":"❲","lbrace;":"{","lbrack;":"[","lbrke;":"⦋","lbrksld;":"⦏","lbrkslu;":"⦍","Lcaron;":"Ľ","lcaron;":"ľ","Lcedil;":"Ļ","lcedil;":"ļ","lceil;":"⌈","lcub;":"{","Lcy;":"Л","lcy;":"л","ldca;":"⤶","ldquo;":"“","ldquor;":"„","ldrdhar;":"⥧","ldrushar;":"⥋","ldsh;":"↲","le;":"≤","lE;":"≦","LeftAngleBracket;":"⟨","LeftArrowBar;":"⇤","leftarrow;":"←","LeftArrow;":"←","Leftarrow;":"⇐","LeftArrowRightArrow;":"⇆","leftarrowtail;":"↢","LeftCeiling;":"⌈","LeftDoubleBracket;":"⟦","LeftDownTeeVector;":"⥡","LeftDownVectorBar;":"⥙","LeftDownVector;":"⇃","LeftFloor;":"⌊","leftharpoondown;":"↽","leftharpoonup;":"↼","leftleftarrows;":"⇇","leftrightarrow;":"↔","LeftRightArrow;":"↔","Leftrightarrow;":"⇔","leftrightarrows;":"⇆","leftrightharpoons;":"⇋","leftrightsquigarrow;":"↭","LeftRightVector;":"⥎","LeftTeeArrow;":"↤","LeftTee;":"⊣","LeftTeeVector;":"⥚","leftthreetimes;":"⋋","LeftTriangleBar;":"⧏","LeftTriangle;":"⊲","LeftTriangleEqual;":"⊴","LeftUpDownVector;":"⥑","LeftUpTeeVector;":"⥠","LeftUpVectorBar;":"⥘","LeftUpVector;":"↿","LeftVectorBar;":"⥒","LeftVector;":"↼","lEg;":"⪋","leg;":"⋚","leq;":"≤","leqq;":"≦","leqslant;":"⩽","lescc;":"⪨","les;":"⩽","lesdot;":"⩿","lesdoto;":"⪁","lesdotor;":"⪃","lesg;":"⋚︀","lesges;":"⪓","lessapprox;":"⪅","lessdot;":"⋖","lesseqgtr;":"⋚","lesseqqgtr;":"⪋","LessEqualGreater;":"⋚","LessFullEqual;":"≦","LessGreater;":"≶","lessgtr;":"≶","LessLess;":"⪡","lesssim;":"≲","LessSlantEqual;":"⩽","LessTilde;":"≲","lfisht;":"⥼","lfloor;":"⌊","Lfr;":"𝔏","lfr;":"𝔩","lg;":"≶","lgE;":"⪑","lHar;":"⥢","lhard;":"↽","lharu;":"↼","lharul;":"⥪","lhblk;":"▄","LJcy;":"Љ","ljcy;":"љ","llarr;":"⇇","ll;":"≪","Ll;":"⋘","llcorner;":"⌞","Lleftarrow;":"⇚","llhard;":"⥫","lltri;":"◺","Lmidot;":"Ŀ","lmidot;":"ŀ","lmoustache;":"⎰","lmoust;":"⎰","lnap;":"⪉","lnapprox;":"⪉","lne;":"⪇","lnE;":"≨","lneq;":"⪇","lneqq;":"≨","lnsim;":"⋦","loang;":"⟬","loarr;":"⇽","lobrk;":"⟦","longleftarrow;":"⟵","LongLeftArrow;":"⟵","Longleftarrow;":"⟸","longleftrightarrow;":"⟷","LongLeftRightArrow;":"⟷","Longleftrightarrow;":"⟺","longmapsto;":"⟼","longrightarrow;":"⟶","LongRightArrow;":"⟶","Longrightarrow;":"⟹","looparrowleft;":"↫","looparrowright;":"↬","lopar;":"⦅","Lopf;":"𝕃","lopf;":"𝕝","loplus;":"⨭","lotimes;":"⨴","lowast;":"∗","lowbar;":"_","LowerLeftArrow;":"↙","LowerRightArrow;":"↘","loz;":"◊","lozenge;":"◊","lozf;":"⧫","lpar;":"(","lparlt;":"⦓","lrarr;":"⇆","lrcorner;":"⌟","lrhar;":"⇋","lrhard;":"⥭","lrm;":"‎","lrtri;":"⊿","lsaquo;":"‹","lscr;":"𝓁","Lscr;":"ℒ","lsh;":"↰","Lsh;":"↰","lsim;":"≲","lsime;":"⪍","lsimg;":"⪏","lsqb;":"[","lsquo;":"‘","lsquor;":"‚","Lstrok;":"Ł","lstrok;":"ł","ltcc;":"⪦","ltcir;":"⩹","lt;":"<",lt:"<","LT;":"<",LT:"<","Lt;":"≪","ltdot;":"⋖","lthree;":"⋋","ltimes;":"⋉","ltlarr;":"⥶","ltquest;":"⩻","ltri;":"◃","ltrie;":"⊴","ltrif;":"◂","ltrPar;":"⦖","lurdshar;":"⥊","luruhar;":"⥦","lvertneqq;":"≨︀","lvnE;":"≨︀","macr;":"¯",macr:"¯","male;":"♂","malt;":"✠","maltese;":"✠","Map;":"⤅","map;":"↦","mapsto;":"↦","mapstodown;":"↧","mapstoleft;":"↤","mapstoup;":"↥","marker;":"▮","mcomma;":"⨩","Mcy;":"М","mcy;":"м","mdash;":"—","mDDot;":"∺","measuredangle;":"∡","MediumSpace;":" ","Mellintrf;":"ℳ","Mfr;":"𝔐","mfr;":"𝔪","mho;":"℧","micro;":"µ",micro:"µ","midast;":"*","midcir;":"⫰","mid;":"∣","middot;":"·",middot:"·","minusb;":"⊟","minus;":"−","minusd;":"∸","minusdu;":"⨪","MinusPlus;":"∓","mlcp;":"⫛","mldr;":"…","mnplus;":"∓","models;":"⊧","Mopf;":"𝕄","mopf;":"𝕞","mp;":"∓","mscr;":"𝓂","Mscr;":"ℳ","mstpos;":"∾","Mu;":"Μ","mu;":"μ","multimap;":"⊸","mumap;":"⊸","nabla;":"∇","Nacute;":"Ń","nacute;":"ń","nang;":"∠⃒","nap;":"≉","napE;":"⩰̸","napid;":"≋̸","napos;":"ʼn","napprox;":"≉","natural;":"♮","naturals;":"ℕ","natur;":"♮","nbsp;":" ",nbsp:" ","nbump;":"≎̸","nbumpe;":"≏̸","ncap;":"⩃","Ncaron;":"Ň","ncaron;":"ň","Ncedil;":"Ņ","ncedil;":"ņ","ncong;":"≇","ncongdot;":"⩭̸","ncup;":"⩂","Ncy;":"Н","ncy;":"н","ndash;":"–","nearhk;":"⤤","nearr;":"↗","neArr;":"⇗","nearrow;":"↗","ne;":"≠","nedot;":"≐̸","NegativeMediumSpace;":"​","NegativeThickSpace;":"​","NegativeThinSpace;":"​","NegativeVeryThinSpace;":"​","nequiv;":"≢","nesear;":"⤨","nesim;":"≂̸","NestedGreaterGreater;":"≫","NestedLessLess;":"≪","NewLine;":"\\n","nexist;":"∄","nexists;":"∄","Nfr;":"𝔑","nfr;":"𝔫","ngE;":"≧̸","nge;":"≱","ngeq;":"≱","ngeqq;":"≧̸","ngeqslant;":"⩾̸","nges;":"⩾̸","nGg;":"⋙̸","ngsim;":"≵","nGt;":"≫⃒","ngt;":"≯","ngtr;":"≯","nGtv;":"≫̸","nharr;":"↮","nhArr;":"⇎","nhpar;":"⫲","ni;":"∋","nis;":"⋼","nisd;":"⋺","niv;":"∋","NJcy;":"Њ","njcy;":"њ","nlarr;":"↚","nlArr;":"⇍","nldr;":"‥","nlE;":"≦̸","nle;":"≰","nleftarrow;":"↚","nLeftarrow;":"⇍","nleftrightarrow;":"↮","nLeftrightarrow;":"⇎","nleq;":"≰","nleqq;":"≦̸","nleqslant;":"⩽̸","nles;":"⩽̸","nless;":"≮","nLl;":"⋘̸","nlsim;":"≴","nLt;":"≪⃒","nlt;":"≮","nltri;":"⋪","nltrie;":"⋬","nLtv;":"≪̸","nmid;":"∤","NoBreak;":"⁠","NonBreakingSpace;":" ","nopf;":"𝕟","Nopf;":"ℕ","Not;":"⫬","not;":"¬",not:"¬","NotCongruent;":"≢","NotCupCap;":"≭","NotDoubleVerticalBar;":"∦","NotElement;":"∉","NotEqual;":"≠","NotEqualTilde;":"≂̸","NotExists;":"∄","NotGreater;":"≯","NotGreaterEqual;":"≱","NotGreaterFullEqual;":"≧̸","NotGreaterGreater;":"≫̸","NotGreaterLess;":"≹","NotGreaterSlantEqual;":"⩾̸","NotGreaterTilde;":"≵","NotHumpDownHump;":"≎̸","NotHumpEqual;":"≏̸","notin;":"∉","notindot;":"⋵̸","notinE;":"⋹̸","notinva;":"∉","notinvb;":"⋷","notinvc;":"⋶","NotLeftTriangleBar;":"⧏̸","NotLeftTriangle;":"⋪","NotLeftTriangleEqual;":"⋬","NotLess;":"≮","NotLessEqual;":"≰","NotLessGreater;":"≸","NotLessLess;":"≪̸","NotLessSlantEqual;":"⩽̸","NotLessTilde;":"≴","NotNestedGreaterGreater;":"⪢̸","NotNestedLessLess;":"⪡̸","notni;":"∌","notniva;":"∌","notnivb;":"⋾","notnivc;":"⋽","NotPrecedes;":"⊀","NotPrecedesEqual;":"⪯̸","NotPrecedesSlantEqual;":"⋠","NotReverseElement;":"∌","NotRightTriangleBar;":"⧐̸","NotRightTriangle;":"⋫","NotRightTriangleEqual;":"⋭","NotSquareSubset;":"⊏̸","NotSquareSubsetEqual;":"⋢","NotSquareSuperset;":"⊐̸","NotSquareSupersetEqual;":"⋣","NotSubset;":"⊂⃒","NotSubsetEqual;":"⊈","NotSucceeds;":"⊁","NotSucceedsEqual;":"⪰̸","NotSucceedsSlantEqual;":"⋡","NotSucceedsTilde;":"≿̸","NotSuperset;":"⊃⃒","NotSupersetEqual;":"⊉","NotTilde;":"≁","NotTildeEqual;":"≄","NotTildeFullEqual;":"≇","NotTildeTilde;":"≉","NotVerticalBar;":"∤","nparallel;":"∦","npar;":"∦","nparsl;":"⫽⃥","npart;":"∂̸","npolint;":"⨔","npr;":"⊀","nprcue;":"⋠","nprec;":"⊀","npreceq;":"⪯̸","npre;":"⪯̸","nrarrc;":"⤳̸","nrarr;":"↛","nrArr;":"⇏","nrarrw;":"↝̸","nrightarrow;":"↛","nRightarrow;":"⇏","nrtri;":"⋫","nrtrie;":"⋭","nsc;":"⊁","nsccue;":"⋡","nsce;":"⪰̸","Nscr;":"𝒩","nscr;":"𝓃","nshortmid;":"∤","nshortparallel;":"∦","nsim;":"≁","nsime;":"≄","nsimeq;":"≄","nsmid;":"∤","nspar;":"∦","nsqsube;":"⋢","nsqsupe;":"⋣","nsub;":"⊄","nsubE;":"⫅̸","nsube;":"⊈","nsubset;":"⊂⃒","nsubseteq;":"⊈","nsubseteqq;":"⫅̸","nsucc;":"⊁","nsucceq;":"⪰̸","nsup;":"⊅","nsupE;":"⫆̸","nsupe;":"⊉","nsupset;":"⊃⃒","nsupseteq;":"⊉","nsupseteqq;":"⫆̸","ntgl;":"≹","Ntilde;":"Ñ",Ntilde:"Ñ","ntilde;":"ñ",ntilde:"ñ","ntlg;":"≸","ntriangleleft;":"⋪","ntrianglelefteq;":"⋬","ntriangleright;":"⋫","ntrianglerighteq;":"⋭","Nu;":"Ν","nu;":"ν","num;":"#","numero;":"№","numsp;":" ","nvap;":"≍⃒","nvdash;":"⊬","nvDash;":"⊭","nVdash;":"⊮","nVDash;":"⊯","nvge;":"≥⃒","nvgt;":">⃒","nvHarr;":"⤄","nvinfin;":"⧞","nvlArr;":"⤂","nvle;":"≤⃒","nvlt;":"<⃒","nvltrie;":"⊴⃒","nvrArr;":"⤃","nvrtrie;":"⊵⃒","nvsim;":"∼⃒","nwarhk;":"⤣","nwarr;":"↖","nwArr;":"⇖","nwarrow;":"↖","nwnear;":"⤧","Oacute;":"Ó",Oacute:"Ó","oacute;":"ó",oacute:"ó","oast;":"⊛","Ocirc;":"Ô",Ocirc:"Ô","ocirc;":"ô",ocirc:"ô","ocir;":"⊚","Ocy;":"О","ocy;":"о","odash;":"⊝","Odblac;":"Ő","odblac;":"ő","odiv;":"⨸","odot;":"⊙","odsold;":"⦼","OElig;":"Œ","oelig;":"œ","ofcir;":"⦿","Ofr;":"𝔒","ofr;":"𝔬","ogon;":"˛","Ograve;":"Ò",Ograve:"Ò","ograve;":"ò",ograve:"ò","ogt;":"⧁","ohbar;":"⦵","ohm;":"Ω","oint;":"∮","olarr;":"↺","olcir;":"⦾","olcross;":"⦻","oline;":"‾","olt;":"⧀","Omacr;":"Ō","omacr;":"ō","Omega;":"Ω","omega;":"ω","Omicron;":"Ο","omicron;":"ο","omid;":"⦶","ominus;":"⊖","Oopf;":"𝕆","oopf;":"𝕠","opar;":"⦷","OpenCurlyDoubleQuote;":"“","OpenCurlyQuote;":"‘","operp;":"⦹","oplus;":"⊕","orarr;":"↻","Or;":"⩔","or;":"∨","ord;":"⩝","order;":"ℴ","orderof;":"ℴ","ordf;":"ª",ordf:"ª","ordm;":"º",ordm:"º","origof;":"⊶","oror;":"⩖","orslope;":"⩗","orv;":"⩛","oS;":"Ⓢ","Oscr;":"𝒪","oscr;":"ℴ","Oslash;":"Ø",Oslash:"Ø","oslash;":"ø",oslash:"ø","osol;":"⊘","Otilde;":"Õ",Otilde:"Õ","otilde;":"õ",otilde:"õ","otimesas;":"⨶","Otimes;":"⨷","otimes;":"⊗","Ouml;":"Ö",Ouml:"Ö","ouml;":"ö",ouml:"ö","ovbar;":"⌽","OverBar;":"‾","OverBrace;":"⏞","OverBracket;":"⎴","OverParenthesis;":"⏜","para;":"¶",para:"¶","parallel;":"∥","par;":"∥","parsim;":"⫳","parsl;":"⫽","part;":"∂","PartialD;":"∂","Pcy;":"П","pcy;":"п","percnt;":"%","period;":".","permil;":"‰","perp;":"⊥","pertenk;":"‱","Pfr;":"𝔓","pfr;":"𝔭","Phi;":"Φ","phi;":"φ","phiv;":"ϕ","phmmat;":"ℳ","phone;":"☎","Pi;":"Π","pi;":"π","pitchfork;":"⋔","piv;":"ϖ","planck;":"ℏ","planckh;":"ℎ","plankv;":"ℏ","plusacir;":"⨣","plusb;":"⊞","pluscir;":"⨢","plus;":"+","plusdo;":"∔","plusdu;":"⨥","pluse;":"⩲","PlusMinus;":"±","plusmn;":"±",plusmn:"±","plussim;":"⨦","plustwo;":"⨧","pm;":"±","Poincareplane;":"ℌ","pointint;":"⨕","popf;":"𝕡","Popf;":"ℙ","pound;":"£",pound:"£","prap;":"⪷","Pr;":"⪻","pr;":"≺","prcue;":"≼","precapprox;":"⪷","prec;":"≺","preccurlyeq;":"≼","Precedes;":"≺","PrecedesEqual;":"⪯","PrecedesSlantEqual;":"≼","PrecedesTilde;":"≾","preceq;":"⪯","precnapprox;":"⪹","precneqq;":"⪵","precnsim;":"⋨","pre;":"⪯","prE;":"⪳","precsim;":"≾","prime;":"′","Prime;":"″","primes;":"ℙ","prnap;":"⪹","prnE;":"⪵","prnsim;":"⋨","prod;":"∏","Product;":"∏","profalar;":"⌮","profline;":"⌒","profsurf;":"⌓","prop;":"∝","Proportional;":"∝","Proportion;":"∷","propto;":"∝","prsim;":"≾","prurel;":"⊰","Pscr;":"𝒫","pscr;":"𝓅","Psi;":"Ψ","psi;":"ψ","puncsp;":" ","Qfr;":"𝔔","qfr;":"𝔮","qint;":"⨌","qopf;":"𝕢","Qopf;":"ℚ","qprime;":"⁗","Qscr;":"𝒬","qscr;":"𝓆","quaternions;":"ℍ","quatint;":"⨖","quest;":"?","questeq;":"≟","quot;":\'"\',quot:\'"\',"QUOT;":\'"\',QUOT:\'"\',"rAarr;":"⇛","race;":"∽̱","Racute;":"Ŕ","racute;":"ŕ","radic;":"√","raemptyv;":"⦳","rang;":"⟩","Rang;":"⟫","rangd;":"⦒","range;":"⦥","rangle;":"⟩","raquo;":"»",raquo:"»","rarrap;":"⥵","rarrb;":"⇥","rarrbfs;":"⤠","rarrc;":"⤳","rarr;":"→","Rarr;":"↠","rArr;":"⇒","rarrfs;":"⤞","rarrhk;":"↪","rarrlp;":"↬","rarrpl;":"⥅","rarrsim;":"⥴","Rarrtl;":"⤖","rarrtl;":"↣","rarrw;":"↝","ratail;":"⤚","rAtail;":"⤜","ratio;":"∶","rationals;":"ℚ","rbarr;":"⤍","rBarr;":"⤏","RBarr;":"⤐","rbbrk;":"❳","rbrace;":"}","rbrack;":"]","rbrke;":"⦌","rbrksld;":"⦎","rbrkslu;":"⦐","Rcaron;":"Ř","rcaron;":"ř","Rcedil;":"Ŗ","rcedil;":"ŗ","rceil;":"⌉","rcub;":"}","Rcy;":"Р","rcy;":"р","rdca;":"⤷","rdldhar;":"⥩","rdquo;":"”","rdquor;":"”","rdsh;":"↳","real;":"ℜ","realine;":"ℛ","realpart;":"ℜ","reals;":"ℝ","Re;":"ℜ","rect;":"▭","reg;":"®",reg:"®","REG;":"®",REG:"®","ReverseElement;":"∋","ReverseEquilibrium;":"⇋","ReverseUpEquilibrium;":"⥯","rfisht;":"⥽","rfloor;":"⌋","rfr;":"𝔯","Rfr;":"ℜ","rHar;":"⥤","rhard;":"⇁","rharu;":"⇀","rharul;":"⥬","Rho;":"Ρ","rho;":"ρ","rhov;":"ϱ","RightAngleBracket;":"⟩","RightArrowBar;":"⇥","rightarrow;":"→","RightArrow;":"→","Rightarrow;":"⇒","RightArrowLeftArrow;":"⇄","rightarrowtail;":"↣","RightCeiling;":"⌉","RightDoubleBracket;":"⟧","RightDownTeeVector;":"⥝","RightDownVectorBar;":"⥕","RightDownVector;":"⇂","RightFloor;":"⌋","rightharpoondown;":"⇁","rightharpoonup;":"⇀","rightleftarrows;":"⇄","rightleftharpoons;":"⇌","rightrightarrows;":"⇉","rightsquigarrow;":"↝","RightTeeArrow;":"↦","RightTee;":"⊢","RightTeeVector;":"⥛","rightthreetimes;":"⋌","RightTriangleBar;":"⧐","RightTriangle;":"⊳","RightTriangleEqual;":"⊵","RightUpDownVector;":"⥏","RightUpTeeVector;":"⥜","RightUpVectorBar;":"⥔","RightUpVector;":"↾","RightVectorBar;":"⥓","RightVector;":"⇀","ring;":"˚","risingdotseq;":"≓","rlarr;":"⇄","rlhar;":"⇌","rlm;":"‏","rmoustache;":"⎱","rmoust;":"⎱","rnmid;":"⫮","roang;":"⟭","roarr;":"⇾","robrk;":"⟧","ropar;":"⦆","ropf;":"𝕣","Ropf;":"ℝ","roplus;":"⨮","rotimes;":"⨵","RoundImplies;":"⥰","rpar;":")","rpargt;":"⦔","rppolint;":"⨒","rrarr;":"⇉","Rrightarrow;":"⇛","rsaquo;":"›","rscr;":"𝓇","Rscr;":"ℛ","rsh;":"↱","Rsh;":"↱","rsqb;":"]","rsquo;":"’","rsquor;":"’","rthree;":"⋌","rtimes;":"⋊","rtri;":"▹","rtrie;":"⊵","rtrif;":"▸","rtriltri;":"⧎","RuleDelayed;":"⧴","ruluhar;":"⥨","rx;":"℞","Sacute;":"Ś","sacute;":"ś","sbquo;":"‚","scap;":"⪸","Scaron;":"Š","scaron;":"š","Sc;":"⪼","sc;":"≻","sccue;":"≽","sce;":"⪰","scE;":"⪴","Scedil;":"Ş","scedil;":"ş","Scirc;":"Ŝ","scirc;":"ŝ","scnap;":"⪺","scnE;":"⪶","scnsim;":"⋩","scpolint;":"⨓","scsim;":"≿","Scy;":"С","scy;":"с","sdotb;":"⊡","sdot;":"⋅","sdote;":"⩦","searhk;":"⤥","searr;":"↘","seArr;":"⇘","searrow;":"↘","sect;":"§",sect:"§","semi;":";","seswar;":"⤩","setminus;":"∖","setmn;":"∖","sext;":"✶","Sfr;":"𝔖","sfr;":"𝔰","sfrown;":"⌢","sharp;":"♯","SHCHcy;":"Щ","shchcy;":"щ","SHcy;":"Ш","shcy;":"ш","ShortDownArrow;":"↓","ShortLeftArrow;":"←","shortmid;":"∣","shortparallel;":"∥","ShortRightArrow;":"→","ShortUpArrow;":"↑","shy;":"­",shy:"­","Sigma;":"Σ","sigma;":"σ","sigmaf;":"ς","sigmav;":"ς","sim;":"∼","simdot;":"⩪","sime;":"≃","simeq;":"≃","simg;":"⪞","simgE;":"⪠","siml;":"⪝","simlE;":"⪟","simne;":"≆","simplus;":"⨤","simrarr;":"⥲","slarr;":"←","SmallCircle;":"∘","smallsetminus;":"∖","smashp;":"⨳","smeparsl;":"⧤","smid;":"∣","smile;":"⌣","smt;":"⪪","smte;":"⪬","smtes;":"⪬︀","SOFTcy;":"Ь","softcy;":"ь","solbar;":"⌿","solb;":"⧄","sol;":"/","Sopf;":"𝕊","sopf;":"𝕤","spades;":"♠","spadesuit;":"♠","spar;":"∥","sqcap;":"⊓","sqcaps;":"⊓︀","sqcup;":"⊔","sqcups;":"⊔︀","Sqrt;":"√","sqsub;":"⊏","sqsube;":"⊑","sqsubset;":"⊏","sqsubseteq;":"⊑","sqsup;":"⊐","sqsupe;":"⊒","sqsupset;":"⊐","sqsupseteq;":"⊒","square;":"□","Square;":"□","SquareIntersection;":"⊓","SquareSubset;":"⊏","SquareSubsetEqual;":"⊑","SquareSuperset;":"⊐","SquareSupersetEqual;":"⊒","SquareUnion;":"⊔","squarf;":"▪","squ;":"□","squf;":"▪","srarr;":"→","Sscr;":"𝒮","sscr;":"𝓈","ssetmn;":"∖","ssmile;":"⌣","sstarf;":"⋆","Star;":"⋆","star;":"☆","starf;":"★","straightepsilon;":"ϵ","straightphi;":"ϕ","strns;":"¯","sub;":"⊂","Sub;":"⋐","subdot;":"⪽","subE;":"⫅","sube;":"⊆","subedot;":"⫃","submult;":"⫁","subnE;":"⫋","subne;":"⊊","subplus;":"⪿","subrarr;":"⥹","subset;":"⊂","Subset;":"⋐","subseteq;":"⊆","subseteqq;":"⫅","SubsetEqual;":"⊆","subsetneq;":"⊊","subsetneqq;":"⫋","subsim;":"⫇","subsub;":"⫕","subsup;":"⫓","succapprox;":"⪸","succ;":"≻","succcurlyeq;":"≽","Succeeds;":"≻","SucceedsEqual;":"⪰","SucceedsSlantEqual;":"≽","SucceedsTilde;":"≿","succeq;":"⪰","succnapprox;":"⪺","succneqq;":"⪶","succnsim;":"⋩","succsim;":"≿","SuchThat;":"∋","sum;":"∑","Sum;":"∑","sung;":"♪","sup1;":"¹",sup1:"¹","sup2;":"²",sup2:"²","sup3;":"³",sup3:"³","sup;":"⊃","Sup;":"⋑","supdot;":"⪾","supdsub;":"⫘","supE;":"⫆","supe;":"⊇","supedot;":"⫄","Superset;":"⊃","SupersetEqual;":"⊇","suphsol;":"⟉","suphsub;":"⫗","suplarr;":"⥻","supmult;":"⫂","supnE;":"⫌","supne;":"⊋","supplus;":"⫀","supset;":"⊃","Supset;":"⋑","supseteq;":"⊇","supseteqq;":"⫆","supsetneq;":"⊋","supsetneqq;":"⫌","supsim;":"⫈","supsub;":"⫔","supsup;":"⫖","swarhk;":"⤦","swarr;":"↙","swArr;":"⇙","swarrow;":"↙","swnwar;":"⤪","szlig;":"ß",szlig:"ß","Tab;":"\t","target;":"⌖","Tau;":"Τ","tau;":"τ","tbrk;":"⎴","Tcaron;":"Ť","tcaron;":"ť","Tcedil;":"Ţ","tcedil;":"ţ","Tcy;":"Т","tcy;":"т","tdot;":"⃛","telrec;":"⌕","Tfr;":"𝔗","tfr;":"𝔱","there4;":"∴","therefore;":"∴","Therefore;":"∴","Theta;":"Θ","theta;":"θ","thetasym;":"ϑ","thetav;":"ϑ","thickapprox;":"≈","thicksim;":"∼","ThickSpace;":"  ","ThinSpace;":" ","thinsp;":" ","thkap;":"≈","thksim;":"∼","THORN;":"Þ",THORN:"Þ","thorn;":"þ",thorn:"þ","tilde;":"˜","Tilde;":"∼","TildeEqual;":"≃","TildeFullEqual;":"≅","TildeTilde;":"≈","timesbar;":"⨱","timesb;":"⊠","times;":"×",times:"×","timesd;":"⨰","tint;":"∭","toea;":"⤨","topbot;":"⌶","topcir;":"⫱","top;":"⊤","Topf;":"𝕋","topf;":"𝕥","topfork;":"⫚","tosa;":"⤩","tprime;":"‴","trade;":"™","TRADE;":"™","triangle;":"▵","triangledown;":"▿","triangleleft;":"◃","trianglelefteq;":"⊴","triangleq;":"≜","triangleright;":"▹","trianglerighteq;":"⊵","tridot;":"◬","trie;":"≜","triminus;":"⨺","TripleDot;":"⃛","triplus;":"⨹","trisb;":"⧍","tritime;":"⨻","trpezium;":"⏢","Tscr;":"𝒯","tscr;":"𝓉","TScy;":"Ц","tscy;":"ц","TSHcy;":"Ћ","tshcy;":"ћ","Tstrok;":"Ŧ","tstrok;":"ŧ","twixt;":"≬","twoheadleftarrow;":"↞","twoheadrightarrow;":"↠","Uacute;":"Ú",Uacute:"Ú","uacute;":"ú",uacute:"ú","uarr;":"↑","Uarr;":"↟","uArr;":"⇑","Uarrocir;":"⥉","Ubrcy;":"Ў","ubrcy;":"ў","Ubreve;":"Ŭ","ubreve;":"ŭ","Ucirc;":"Û",Ucirc:"Û","ucirc;":"û",ucirc:"û","Ucy;":"У","ucy;":"у","udarr;":"⇅","Udblac;":"Ű","udblac;":"ű","udhar;":"⥮","ufisht;":"⥾","Ufr;":"𝔘","ufr;":"𝔲","Ugrave;":"Ù",Ugrave:"Ù","ugrave;":"ù",ugrave:"ù","uHar;":"⥣","uharl;":"↿","uharr;":"↾","uhblk;":"▀","ulcorn;":"⌜","ulcorner;":"⌜","ulcrop;":"⌏","ultri;":"◸","Umacr;":"Ū","umacr;":"ū","uml;":"¨",uml:"¨","UnderBar;":"_","UnderBrace;":"⏟","UnderBracket;":"⎵","UnderParenthesis;":"⏝","Union;":"⋃","UnionPlus;":"⊎","Uogon;":"Ų","uogon;":"ų","Uopf;":"𝕌","uopf;":"𝕦","UpArrowBar;":"⤒","uparrow;":"↑","UpArrow;":"↑","Uparrow;":"⇑","UpArrowDownArrow;":"⇅","updownarrow;":"↕","UpDownArrow;":"↕","Updownarrow;":"⇕","UpEquilibrium;":"⥮","upharpoonleft;":"↿","upharpoonright;":"↾","uplus;":"⊎","UpperLeftArrow;":"↖","UpperRightArrow;":"↗","upsi;":"υ","Upsi;":"ϒ","upsih;":"ϒ","Upsilon;":"Υ","upsilon;":"υ","UpTeeArrow;":"↥","UpTee;":"⊥","upuparrows;":"⇈","urcorn;":"⌝","urcorner;":"⌝","urcrop;":"⌎","Uring;":"Ů","uring;":"ů","urtri;":"◹","Uscr;":"𝒰","uscr;":"𝓊","utdot;":"⋰","Utilde;":"Ũ","utilde;":"ũ","utri;":"▵","utrif;":"▴","uuarr;":"⇈","Uuml;":"Ü",Uuml:"Ü","uuml;":"ü",uuml:"ü","uwangle;":"⦧","vangrt;":"⦜","varepsilon;":"ϵ","varkappa;":"ϰ","varnothing;":"∅","varphi;":"ϕ","varpi;":"ϖ","varpropto;":"∝","varr;":"↕","vArr;":"⇕","varrho;":"ϱ","varsigma;":"ς","varsubsetneq;":"⊊︀","varsubsetneqq;":"⫋︀","varsupsetneq;":"⊋︀","varsupsetneqq;":"⫌︀","vartheta;":"ϑ","vartriangleleft;":"⊲","vartriangleright;":"⊳","vBar;":"⫨","Vbar;":"⫫","vBarv;":"⫩","Vcy;":"В","vcy;":"в","vdash;":"⊢","vDash;":"⊨","Vdash;":"⊩","VDash;":"⊫","Vdashl;":"⫦","veebar;":"⊻","vee;":"∨","Vee;":"⋁","veeeq;":"≚","vellip;":"⋮","verbar;":"|","Verbar;":"‖","vert;":"|","Vert;":"‖","VerticalBar;":"∣","VerticalLine;":"|","VerticalSeparator;":"❘","VerticalTilde;":"≀","VeryThinSpace;":" ","Vfr;":"𝔙","vfr;":"𝔳","vltri;":"⊲","vnsub;":"⊂⃒","vnsup;":"⊃⃒","Vopf;":"𝕍","vopf;":"𝕧","vprop;":"∝","vrtri;":"⊳","Vscr;":"𝒱","vscr;":"𝓋","vsubnE;":"⫋︀","vsubne;":"⊊︀","vsupnE;":"⫌︀","vsupne;":"⊋︀","Vvdash;":"⊪","vzigzag;":"⦚","Wcirc;":"Ŵ","wcirc;":"ŵ","wedbar;":"⩟","wedge;":"∧","Wedge;":"⋀","wedgeq;":"≙","weierp;":"℘","Wfr;":"𝔚","wfr;":"𝔴","Wopf;":"𝕎","wopf;":"𝕨","wp;":"℘","wr;":"≀","wreath;":"≀","Wscr;":"𝒲","wscr;":"𝓌","xcap;":"⋂","xcirc;":"◯","xcup;":"⋃","xdtri;":"▽","Xfr;":"𝔛","xfr;":"𝔵","xharr;":"⟷","xhArr;":"⟺","Xi;":"Ξ","xi;":"ξ","xlarr;":"⟵","xlArr;":"⟸","xmap;":"⟼","xnis;":"⋻","xodot;":"⨀","Xopf;":"𝕏","xopf;":"𝕩","xoplus;":"⨁","xotime;":"⨂","xrarr;":"⟶","xrArr;":"⟹","Xscr;":"𝒳","xscr;":"𝓍","xsqcup;":"⨆","xuplus;":"⨄","xutri;":"△","xvee;":"⋁","xwedge;":"⋀","Yacute;":"Ý",Yacute:"Ý","yacute;":"ý",yacute:"ý","YAcy;":"Я","yacy;":"я","Ycirc;":"Ŷ","ycirc;":"ŷ","Ycy;":"Ы","ycy;":"ы","yen;":"¥",yen:"¥","Yfr;":"𝔜","yfr;":"𝔶","YIcy;":"Ї","yicy;":"ї","Yopf;":"𝕐","yopf;":"𝕪","Yscr;":"𝒴","yscr;":"𝓎","YUcy;":"Ю","yucy;":"ю","yuml;":"ÿ",yuml:"ÿ","Yuml;":"Ÿ","Zacute;":"Ź","zacute;":"ź","Zcaron;":"Ž","zcaron;":"ž","Zcy;":"З","zcy;":"з","Zdot;":"Ż","zdot;":"ż","zeetrf;":"ℨ","ZeroWidthSpace;":"​","Zeta;":"Ζ","zeta;":"ζ","zfr;":"𝔷","Zfr;":"ℨ","ZHcy;":"Ж","zhcy;":"ж","zigrarr;":"⇝","zopf;":"𝕫","Zopf;":"ℤ","Zscr;":"𝒵","zscr;":"𝓏","zwj;":"‍","zwnj;":"‌"}\n},{}],13:[function(_dereq_,module){function replacer(key,value){return util.isUndefined(value)?""+value:!util.isNumber(value)||!isNaN(value)&&isFinite(value)?util.isFunction(value)||util.isRegExp(value)?""+value:value:""+value}function truncate(s,n){return util.isString(s)?n>s.length?s:s.slice(0,n):s}function getMessage(self){return truncate(JSON.stringify(self.actual,replacer),128)+" "+self.operator+" "+truncate(JSON.stringify(self.expected,replacer),128)}function fail(actual,expected,message,operator,stackStartFunction){throw new assert.AssertionError({message:message,actual:actual,expected:expected,operator:operator,stackStartFunction:stackStartFunction})}function ok(value,message){value||fail(value,!0,message,"==",assert.ok)}function _deepEqual(actual,expected){if(actual===expected)return!0;if(util.isBuffer(actual)&&util.isBuffer(expected)){if(actual.length!=expected.length)return!1;for(var i=0;actual.length>i;i++)if(actual[i]!==expected[i])return!1;return!0}return util.isDate(actual)&&util.isDate(expected)?actual.getTime()===expected.getTime():util.isRegExp(actual)&&util.isRegExp(expected)?actual.source===expected.source&&actual.global===expected.global&&actual.multiline===expected.multiline&&actual.lastIndex===expected.lastIndex&&actual.ignoreCase===expected.ignoreCase:util.isObject(actual)||util.isObject(expected)?objEquiv(actual,expected):actual==expected}function isArguments(object){return"[object Arguments]"==Object.prototype.toString.call(object)}function objEquiv(a,b){if(util.isNullOrUndefined(a)||util.isNullOrUndefined(b))return!1;if(a.prototype!==b.prototype)return!1;if(isArguments(a))return isArguments(b)?(a=pSlice.call(a),b=pSlice.call(b),_deepEqual(a,b)):!1;try{var key,i,ka=objectKeys(a),kb=objectKeys(b)}catch(e){return!1}if(ka.length!=kb.length)return!1;for(ka.sort(),kb.sort(),i=ka.length-1;i>=0;i--)if(ka[i]!=kb[i])return!1;for(i=ka.length-1;i>=0;i--)if(key=ka[i],!_deepEqual(a[key],b[key]))return!1;return!0}function expectedException(actual,expected){return actual&&expected?"[object RegExp]"==Object.prototype.toString.call(expected)?expected.test(actual):actual instanceof expected?!0:expected.call({},actual)===!0?!0:!1:!1}function _throws(shouldThrow,block,expected,message){var actual;util.isString(expected)&&(message=expected,expected=null);try{block()}catch(e){actual=e}if(message=(expected&&expected.name?" ("+expected.name+").":".")+(message?" "+message:"."),shouldThrow&&!actual&&fail(actual,expected,"Missing expected exception"+message),!shouldThrow&&expectedException(actual,expected)&&fail(actual,expected,"Got unwanted exception"+message),shouldThrow&&actual&&expected&&!expectedException(actual,expected)||!shouldThrow&&actual)throw actual}var util=_dereq_("util/"),pSlice=Array.prototype.slice,hasOwn=Object.prototype.hasOwnProperty,assert=module.exports=ok;assert.AssertionError=function(options){this.name="AssertionError",this.actual=options.actual,this.expected=options.expected,this.operator=options.operator,options.message?(this.message=options.message,this.generatedMessage=!1):(this.message=getMessage(this),this.generatedMessage=!0);var stackStartFunction=options.stackStartFunction||fail;if(Error.captureStackTrace)Error.captureStackTrace(this,stackStartFunction);else{var err=Error();if(err.stack){var out=err.stack,fn_name=stackStartFunction.name,idx=out.indexOf("\\n"+fn_name);if(idx>=0){var next_line=out.indexOf("\\n",idx+1);out=out.substring(next_line+1)}this.stack=out}}},util.inherits(assert.AssertionError,Error),assert.fail=fail,assert.ok=ok,assert.equal=function(actual,expected,message){actual!=expected&&fail(actual,expected,message,"==",assert.equal)},assert.notEqual=function(actual,expected,message){actual==expected&&fail(actual,expected,message,"!=",assert.notEqual)},assert.deepEqual=function(actual,expected,message){_deepEqual(actual,expected)||fail(actual,expected,message,"deepEqual",assert.deepEqual)},assert.notDeepEqual=function(actual,expected,message){_deepEqual(actual,expected)&&fail(actual,expected,message,"notDeepEqual",assert.notDeepEqual)},assert.strictEqual=function(actual,expected,message){actual!==expected&&fail(actual,expected,message,"===",assert.strictEqual)},assert.notStrictEqual=function(actual,expected,message){actual===expected&&fail(actual,expected,message,"!==",assert.notStrictEqual)},assert.throws=function(){_throws.apply(this,[!0].concat(pSlice.call(arguments)))},assert.doesNotThrow=function(){_throws.apply(this,[!1].concat(pSlice.call(arguments)))},assert.ifError=function(err){if(err)throw err};var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj)hasOwn.call(obj,key)&&keys.push(key);return keys}},{"util/":15}],14:[function(_dereq_,module){module.exports=function(arg){return arg&&"object"==typeof arg&&"function"==typeof arg.copy&&"function"==typeof arg.fill&&"function"==typeof arg.readUInt8}},{}],15:[function(_dereq_,module,exports){(function(process,global){function inspect(obj,opts){var ctx={seen:[],stylize:stylizeNoColor};return arguments.length>=3&&(ctx.depth=arguments[2]),arguments.length>=4&&(ctx.colors=arguments[3]),isBoolean(opts)?ctx.showHidden=opts:opts&&exports._extend(ctx,opts),isUndefined(ctx.showHidden)&&(ctx.showHidden=!1),isUndefined(ctx.depth)&&(ctx.depth=2),isUndefined(ctx.colors)&&(ctx.colors=!1),isUndefined(ctx.customInspect)&&(ctx.customInspect=!0),ctx.colors&&(ctx.stylize=stylizeWithColor),formatValue(ctx,obj,ctx.depth)}function stylizeWithColor(str,styleType){var style=inspect.styles[styleType];return style?"["+inspect.colors[style][0]+"m"+str+"["+inspect.colors[style][1]+"m":str}function stylizeNoColor(str){return str}function arrayToHash(array){var hash={};return array.forEach(function(val){hash[val]=!0}),hash}function formatValue(ctx,value,recurseTimes){if(ctx.customInspect&&value&&isFunction(value.inspect)&&value.inspect!==exports.inspect&&(!value.constructor||value.constructor.prototype!==value)){var ret=value.inspect(recurseTimes,ctx);return isString(ret)||(ret=formatValue(ctx,ret,recurseTimes)),ret}var primitive=formatPrimitive(ctx,value);if(primitive)return primitive;var keys=Object.keys(value),visibleKeys=arrayToHash(keys);if(ctx.showHidden&&(keys=Object.getOwnPropertyNames(value)),isError(value)&&(keys.indexOf("message")>=0||keys.indexOf("description")>=0))return formatError(value);if(0===keys.length){if(isFunction(value)){var name=value.name?": "+value.name:"";return ctx.stylize("[Function"+name+"]","special")}if(isRegExp(value))return ctx.stylize(RegExp.prototype.toString.call(value),"regexp");if(isDate(value))return ctx.stylize(Date.prototype.toString.call(value),"date");if(isError(value))return formatError(value)}var base="",array=!1,braces=["{","}"];if(isArray(value)&&(array=!0,braces=["[","]"]),isFunction(value)){var n=value.name?": "+value.name:"";base=" [Function"+n+"]"}if(isRegExp(value)&&(base=" "+RegExp.prototype.toString.call(value)),isDate(value)&&(base=" "+Date.prototype.toUTCString.call(value)),isError(value)&&(base=" "+formatError(value)),0===keys.length&&(!array||0==value.length))return braces[0]+base+braces[1];if(0>recurseTimes)return isRegExp(value)?ctx.stylize(RegExp.prototype.toString.call(value),"regexp"):ctx.stylize("[Object]","special");ctx.seen.push(value);var output;return output=array?formatArray(ctx,value,recurseTimes,visibleKeys,keys):keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array)}),ctx.seen.pop(),reduceToSingleString(output,base,braces)}function formatPrimitive(ctx,value){if(isUndefined(value))return ctx.stylize("undefined","undefined");if(isString(value)){var simple="\'"+JSON.stringify(value).replace(/^"|"$/g,"").replace(/\'/g,"\\\\\'").replace(/\\\\"/g,\'"\')+"\'";return ctx.stylize(simple,"string")}return isNumber(value)?ctx.stylize(""+value,"number"):isBoolean(value)?ctx.stylize(""+value,"boolean"):isNull(value)?ctx.stylize("null","null"):void 0}function formatError(value){return"["+Error.prototype.toString.call(value)+"]"}function formatArray(ctx,value,recurseTimes,visibleKeys,keys){for(var output=[],i=0,l=value.length;l>i;++i)hasOwnProperty(value,i+"")?output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,i+"",!0)):output.push("");return keys.forEach(function(key){key.match(/^\\d+$/)||output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,key,!0))}),output}function formatProperty(ctx,value,recurseTimes,visibleKeys,key,array){var name,str,desc;if(desc=Object.getOwnPropertyDescriptor(value,key)||{value:value[key]},desc.get?str=desc.set?ctx.stylize("[Getter/Setter]","special"):ctx.stylize("[Getter]","special"):desc.set&&(str=ctx.stylize("[Setter]","special")),hasOwnProperty(visibleKeys,key)||(name="["+key+"]"),str||(0>ctx.seen.indexOf(desc.value)?(str=isNull(recurseTimes)?formatValue(ctx,desc.value,null):formatValue(ctx,desc.value,recurseTimes-1),str.indexOf("\\n")>-1&&(str=array?str.split("\\n").map(function(line){return" "+line}).join("\\n").substr(2):"\\n"+str.split("\\n").map(function(line){return" "+line}).join("\\n"))):str=ctx.stylize("[Circular]","special")),isUndefined(name)){if(array&&key.match(/^\\d+$/))return str;name=JSON.stringify(""+key),name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(name=name.substr(1,name.length-2),name=ctx.stylize(name,"name")):(name=name.replace(/\'/g,"\\\\\'").replace(/\\\\"/g,\'"\').replace(/(^"|"$)/g,"\'"),name=ctx.stylize(name,"string"))}return name+": "+str}function reduceToSingleString(output,base,braces){var numLinesEst=0,length=output.reduce(function(prev,cur){return numLinesEst++,cur.indexOf("\\n")>=0&&numLinesEst++,prev+cur.replace(/\\u001b\\[\\d\\d?m/g,"").length+1},0);return length>60?braces[0]+(""===base?"":base+"\\n ")+" "+output.join(",\\n ")+" "+braces[1]:braces[0]+base+" "+output.join(", ")+" "+braces[1]}function isArray(ar){return Array.isArray(ar)}function isBoolean(arg){return"boolean"==typeof arg}function isNull(arg){return null===arg}function isNullOrUndefined(arg){return null==arg}function isNumber(arg){return"number"==typeof arg}function isString(arg){return"string"==typeof arg}function isSymbol(arg){return"symbol"==typeof arg}function isUndefined(arg){return void 0===arg}function isRegExp(re){return isObject(re)&&"[object RegExp]"===objectToString(re)}function isObject(arg){return"object"==typeof arg&&null!==arg}function isDate(d){return isObject(d)&&"[object Date]"===objectToString(d)}function isError(e){return isObject(e)&&("[object Error]"===objectToString(e)||e instanceof Error)}function isFunction(arg){return"function"==typeof arg}function isPrimitive(arg){return null===arg||"boolean"==typeof arg||"number"==typeof arg||"string"==typeof arg||"symbol"==typeof arg||arg===void 0}function objectToString(o){return Object.prototype.toString.call(o)}function pad(n){return 10>n?"0"+n.toString(10):n.toString(10)}function timestamp(){var d=new Date,time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(":");return[d.getDate(),months[d.getMonth()],time].join(" ")}function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}var formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString(f)){for(var objects=[],i=0;arguments.length>i;i++)objects.push(inspect(arguments[i]));return objects.join(" ")}for(var i=1,args=arguments,len=args.length,str=(f+"").replace(formatRegExp,function(x){if("%%"===x)return"%";if(i>=len)return x;switch(x){case"%s":return args[i++]+"";case"%d":return Number(args[i++]);case"%j":try{return JSON.stringify(args[i++])}catch(_){return"[Circular]"}default:return x}}),x=args[i];len>i;x=args[++i])str+=isNull(x)||!isObject(x)?" "+x:" "+inspect(x);return str},exports.deprecate=function(fn,msg){function deprecated(){if(!warned){if(process.throwDeprecation)throw Error(msg);process.traceDeprecation?console.trace(msg):console.error(msg),warned=!0}return fn.apply(this,arguments)}if(isUndefined(global.process))return function(){return exports.deprecate(fn,msg).apply(this,arguments)};if(process.noDeprecation===!0)return fn;var warned=!1;return deprecated};var debugEnviron,debugs={};exports.debuglog=function(set){if(isUndefined(debugEnviron)&&(debugEnviron=process.env.NODE_DEBUG||""),set=set.toUpperCase(),!debugs[set])if(RegExp("\\\\b"+set+"\\\\b","i").test(debugEnviron)){var pid=process.pid;debugs[set]=function(){var msg=exports.format.apply(exports,arguments);console.error("%s %d: %s",set,pid,msg)}}else debugs[set]=function(){};return debugs[set]},exports.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},exports.isArray=isArray,exports.isBoolean=isBoolean,exports.isNull=isNull,exports.isNullOrUndefined=isNullOrUndefined,exports.isNumber=isNumber,exports.isString=isString,exports.isSymbol=isSymbol,exports.isUndefined=isUndefined,exports.isRegExp=isRegExp,exports.isObject=isObject,exports.isDate=isDate,exports.isError=isError,exports.isFunction=isFunction,exports.isPrimitive=isPrimitive,exports.isBuffer=_dereq_("./support/isBuffer");var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];exports.log=function(){console.log("%s - %s",timestamp(),exports.format.apply(exports,arguments))},exports.inherits=_dereq_("inherits"),exports._extend=function(origin,add){if(!add||!isObject(add))return origin;for(var keys=Object.keys(add),i=keys.length;i--;)origin[keys[i]]=add[keys[i]];return origin}}).call(this,_dereq_("/usr/local/lib/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":14,"/usr/local/lib/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":18,inherits:17}],16:[function(_dereq_,module){function EventEmitter(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function isFunction(arg){return"function"==typeof arg}function isNumber(arg){return"number"==typeof arg}function isObject(arg){return"object"==typeof arg&&null!==arg}function isUndefined(arg){return void 0===arg}module.exports=EventEmitter,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||0>n||isNaN(n))throw TypeError("n must be a positive number");return this._maxListeners=n,this},EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(this._events||(this._events={}),"error"===type&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length))throw er=arguments[1],er instanceof Error?er:TypeError(\'Uncaught, unspecified "error" event.\');if(handler=this._events[type],isUndefined(handler))return!1;if(isFunction(handler))switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];handler.apply(this,args)}else if(isObject(handler)){for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];for(listeners=handler.slice(),len=listeners.length,i=0;len>i;i++)listeners[i].apply(this,args)}return!0},EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",type,isFunction(listener.listener)?listener.listener:listener),this._events[type]?isObject(this._events[type])?this._events[type].push(listener):this._events[type]=[this._events[type],listener]:this._events[type]=listener,isObject(this._events[type])&&!this._events[type].warned){var m;m=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners,m&&m>0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[type].length),console.trace())}return this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError("listener must be a function");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError("listener must be a function");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit("removeListener",type,listener);else if(isObject(list)){for(i=length;i--\x3e0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(0>position)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit("removeListener",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)"removeListener"!==key&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events={},this}if(listeners=this._events[type],isFunction(listeners))this.removeListener(type,listeners);else for(;listeners.length;)this.removeListener(type,listeners[listeners.length-1]);return delete this._events[type],this},EventEmitter.prototype.listeners=function(type){var ret;return ret=this._events&&this._events[type]?isFunction(this._events[type])?[this._events[type]]:this._events[type].slice():[]},EventEmitter.listenerCount=function(emitter,type){var ret;return ret=emitter._events&&emitter._events[type]?isFunction(emitter._events[type])?1:emitter._events[type].length:0}},{}],17:[function(_dereq_,module){module.exports="function"==typeof Object.create?function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})}:function(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor}},{}],18:[function(_dereq_,module){function noop(){}var process=module.exports={};process.nextTick=function(){var canSetImmediate="undefined"!=typeof window&&window.setImmediate,canPost="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(canSetImmediate)return function(f){return window.setImmediate(f)};if(canPost){var queue=[];return window.addEventListener("message",function(ev){var source=ev.source;if((source===window||null===source)&&"process-tick"===ev.data&&(ev.stopPropagation(),queue.length>0)){var fn=queue.shift();fn()}},!0),function(fn){queue.push(fn),window.postMessage("process-tick","*")}}return function(fn){setTimeout(fn,0)}}(),process.title="browser",process.browser=!0,process.env={},process.argv=[],process.on=noop,process.once=noop,process.off=noop,process.emit=noop,process.binding=function(){throw Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(){throw Error("process.chdir is not supported")}},{}],19:[function(_dereq_,module){module.exports=_dereq_(14)},{}],20:[function(_dereq_,module){module.exports=_dereq_(15)},{"./support/isBuffer":19,"/usr/local/lib/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":18,inherits:17}]},{},[9])(9)}),ace.define("ace/mode/html_worker",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/worker/mirror","ace/mode/html/saxparser"],function(acequire,exports){"use strict";var oop=acequire("../lib/oop");acequire("../lib/lang");var Mirror=acequire("../worker/mirror").Mirror,SAXParser=acequire("./html/saxparser").SAXParser,errorTypes={"expected-doctype-but-got-start-tag":"info","expected-doctype-but-got-chars":"info","non-html-root":"info"},Worker=exports.Worker=function(sender){Mirror.call(this,sender),this.setTimeout(400),this.context=null};oop.inherits(Worker,Mirror),function(){this.setOptions=function(options){this.context=options.context},this.onUpdate=function(){var value=this.doc.getValue();if(value){var parser=new SAXParser,errors=[],noop=function(){};parser.contentHandler={startDocument:noop,endDocument:noop,startElement:noop,endElement:noop,characters:noop},parser.errorHandler={error:function(message,location,code){errors.push({row:location.line,column:location.column,text:message,type:errorTypes[code]||"error"})}},this.context?parser.parseFragment(value,this.context):parser.parse(value),this.sender.emit("error",errors)}}}.call(Worker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != \'object\'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object\n});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws="\t\\n\v\\f\\r   ᠎              \\u2028\\u2029\ufeff";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can\'t convert "+o+" to object");return Object(o)}});'},d58f:function(e,t,n){"use strict";var r=n("59ed"),i=n("7b0b"),o=n("44ad"),a=n("07fa"),s=TypeError,c=function(e){return function(t,n,c,l){var u=i(t),d=o(u),f=a(u);r(n);var p=e?f-1:0,h=e?-1:1;if(c<2)while(1){if(p in d){l=d[p],p+=h;break}if(p+=h,e?p<0:f<=p)throw new s("Reduce of empty array with no initial value")}for(;e?p>=0:f>p;p+=h)p in d&&(l=n(l,d[p],p,u));return l}};e.exports={left:c(!1),right:c(!0)}},d5d6:function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").forEach,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("forEach",(function(e){i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},d6d6:function(e,t,n){"use strict";var r=TypeError;e.exports=function(e,t){if(e<t)throw new r("Not enough arguments");return e}},d784:function(e,t,n){"use strict";n("ac1f");var r=n("4625"),i=n("cb2d"),o=n("9263"),a=n("d039"),s=n("b622"),c=n("9112"),l=s("species"),u=RegExp.prototype;e.exports=function(e,t,n,d){var f=s(e),p=!a((function(){var t={};return t[f]=function(){return 7},7!==""[e](t)})),h=p&&!a((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[l]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!p||!h||n){var m=r(/./[f]),g=t(f,""[e],(function(e,t,n,i,a){var s=r(e),c=t.exec;return c===o||c===u.exec?p&&!a?{done:!0,value:m(t,n,i)}:{done:!0,value:s(n,t,i)}:{done:!1}}));i(String.prototype,e,g[0]),i(u,f,g[1])}d&&c(u[f],"sham",!0)}},d81d:function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").map,o=n("1dde"),a=o("map");r({target:"Array",proto:!0,forced:!a},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d998:function(e,t,n){"use strict";var r=n("342f");e.exports=/MSIE|Trident/.test(r)},d9b5:function(e,t,n){"use strict";var r=n("d066"),i=n("1626"),o=n("3a9b"),a=n("fdbf"),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},d9e2:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("2ba4"),a=n("e5cb"),s="WebAssembly",c=i[s],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var n={};n[e]=a(e,t,l),r({global:!0,constructor:!0,arity:1,forced:l},n)},d=function(e,t){if(c&&c[e]){var n={};n[e]=a(s+"."+e,t,l),r({target:s,stat:!0,constructor:!0,arity:1,forced:l},n)}};u("Error",(function(e){return function(t){return o(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),u("URIError",(function(e){return function(t){return o(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},d9f5:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("c65b"),a=n("e330"),s=n("c430"),c=n("83ab"),l=n("04f8"),u=n("d039"),d=n("1a2d"),f=n("3a9b"),p=n("825a"),h=n("fc6a"),m=n("a04b"),g=n("577e"),v=n("5c6c"),b=n("7c73"),_=n("df75"),y=n("241c"),w=n("057f"),x=n("7418"),k=n("06cf"),C=n("9bf2"),A=n("37e8"),S=n("d1e7"),E=n("cb2d"),T=n("edd0"),O=n("5692"),R=n("f772"),D=n("d012"),L=n("90e3"),M=n("b622"),F=n("e538"),N=n("e065"),B=n("57b9"),I=n("d44e"),P=n("69f3"),$=n("b727").forEach,j=R("hidden"),z="Symbol",q="prototype",H=P.set,U=P.getterFor(z),W=Object[q],V=i.Symbol,G=V&&V[q],K=i.RangeError,Y=i.TypeError,X=i.QObject,Q=k.f,J=C.f,Z=w.f,ee=S.f,te=a([].push),ne=O("symbols"),re=O("op-symbols"),ie=O("wks"),oe=!X||!X[q]||!X[q].findChild,ae=function(e,t,n){var r=Q(W,t);r&&delete W[t],J(e,t,n),r&&e!==W&&J(W,t,r)},se=c&&u((function(){return 7!==b(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?ae:J,ce=function(e,t){var n=ne[e]=b(G);return H(n,{type:z,tag:e,description:t}),c||(n.description=t),n},le=function(e,t,n){e===W&&le(re,t,n),p(e);var r=m(t);return p(n),d(ne,r)?(n.enumerable?(d(e,j)&&e[j][r]&&(e[j][r]=!1),n=b(n,{enumerable:v(0,!1)})):(d(e,j)||J(e,j,v(1,b(null))),e[j][r]=!0),se(e,r,n)):J(e,r,n)},ue=function(e,t){p(e);var n=h(t),r=_(n).concat(me(n));return $(r,(function(t){c&&!o(fe,n,t)||le(e,t,n[t])})),e},de=function(e,t){return void 0===t?b(e):ue(b(e),t)},fe=function(e){var t=m(e),n=o(ee,this,t);return!(this===W&&d(ne,t)&&!d(re,t))&&(!(n||!d(this,t)||!d(ne,t)||d(this,j)&&this[j][t])||n)},pe=function(e,t){var n=h(e),r=m(t);if(n!==W||!d(ne,r)||d(re,r)){var i=Q(n,r);return!i||!d(ne,r)||d(n,j)&&n[j][r]||(i.enumerable=!0),i}},he=function(e){var t=Z(h(e)),n=[];return $(t,(function(e){d(ne,e)||d(D,e)||te(n,e)})),n},me=function(e){var t=e===W,n=Z(t?re:h(e)),r=[];return $(n,(function(e){!d(ne,e)||t&&!d(W,e)||te(r,ne[e])})),r};l||(V=function(){if(f(G,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=L(e),n=function(e){var r=void 0===this?i:this;r===W&&o(n,re,e),d(r,j)&&d(r[j],t)&&(r[j][t]=!1);var a=v(1,e);try{se(r,t,a)}catch(s){if(!(s instanceof K))throw s;ae(r,t,a)}};return c&&oe&&se(W,t,{configurable:!0,set:n}),ce(t,e)},G=V[q],E(G,"toString",(function(){return U(this).tag})),E(V,"withoutSetter",(function(e){return ce(L(e),e)})),S.f=fe,C.f=le,A.f=ue,k.f=pe,y.f=w.f=he,x.f=me,F.f=function(e){return ce(M(e),e)},c&&(T(G,"description",{configurable:!0,get:function(){return U(this).description}}),s||E(W,"propertyIsEnumerable",fe,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:V}),$(_(ie),(function(e){N(e)})),r({target:z,stat:!0,forced:!l},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!c},{create:de,defineProperty:le,defineProperties:ue,getOwnPropertyDescriptor:pe}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:he}),B(),I(V,z),D[j]=!0},da84:function(e,t,n){"use strict";(function(t){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("56ef"),a=n("fc6a"),s=n("06cf"),c=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){var t,n,r=a(e),i=s.f,l=o(r),u={},d=0;while(l.length>d)n=i(r,t=l[d++]),void 0!==n&&c(u,t,n);return u}})},dc4a:function(e,t,n){"use strict";var r=n("59ed"),i=n("7234");e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},dc7a:function(e,t,n){var r=n("ff91"),i=n("1935"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("78f3")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},dcc3:function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),c=function(){return this};e.exports=function(e,t,n,l){var u=t+" Iterator";return e.prototype=i(r,{next:o(+!l,n)}),a(e,u,!1,!0),s[u]=c,e}},ddb0:function(e,t,n){"use strict";var r=n("da84"),i=n("fdbc"),o=n("785a"),a=n("e260"),s=n("9112"),c=n("d44e"),l=n("b622"),u=l("iterator"),d=a.values,f=function(e,t){if(e){if(e[u]!==d)try{s(e,u,d)}catch(r){e[u]=d}if(c(e,t,!0),i[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(r){e[n]=a[n]}}};for(var p in i)f(r[p]&&r[p].prototype,p);f(o,"DOMTokenList")},df75:function(e,t,n){"use strict";var r=n("ca84"),i=n("7839");e.exports=Object.keys||function(e){return r(e,i)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c<a;c++)if(i[c]!==o[c]){s=c;break}var l=[];for(c=s;c<i.length;c++)l.push("..");return l=l.concat(o.slice(s)),l.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},df7e:function(e,t,n){"use strict";var r=n("07fa");e.exports=function(e,t){for(var n=r(e),i=new t(n),o=0;o<n;o++)i[o]=e[n-o-1];return i}},dfb9:function(e,t,n){"use strict";var r=n("07fa");e.exports=function(e,t,n){var i=0,o=arguments.length>2?n:r(t),a=new e(o);while(o>i)a[i]=t[i++];return a}},dfe5:function(e,t){},e017:function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var n=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function r(e,t){return t={exports:{}},e(t,t.exports),t.exports}var i=r((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&e(n)?o(t(n),n,r):n}function r(t,r,i){var a=t.slice();return r.forEach((function(r,s){"undefined"===typeof a[s]?a[s]=n(r,i):e(r)?a[s]=o(t[s],r,i):-1===t.indexOf(r)&&a.push(n(r,i))})),a}function i(t,r,i){var a={};return e(t)&&Object.keys(t).forEach((function(e){a[e]=n(t[e],i)})),Object.keys(r).forEach((function(s){e(r[s])&&t[s]?a[s]=o(t[s],r[s],i):a[s]=n(r[s],i)})),a}function o(e,t,o){var a=Array.isArray(t),s=o||{arrayMerge:r},c=s.arrayMerge||r;return a?Array.isArray(e)?c(e,t,o):n(t,o):i(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return o(e,n,t)}))},o}))})),o=r((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),a=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,"&quot;");return t+'="'+n+'"'})).join(" ")},s=o.svg,c=o.xlink,l={};l[s.name]=s.uri,l[c.name]=c.uri;var u=function(e,t){void 0===e&&(e="");var n=i(l,t||{}),r=a(n);return"<svg "+r+">"+e+"</svg>"},d=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return n(u(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,r),t}(e);return d}))}).call(this,n("c8ba"))},e01a:function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("da84"),a=n("e330"),s=n("1a2d"),c=n("1626"),l=n("3a9b"),u=n("577e"),d=n("edd0"),f=n("e893"),p=o.Symbol,h=p&&p.prototype;if(i&&c(p)&&(!("description"in h)||void 0!==p().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=l(h,this)?new p(e):void 0===e?p():p(e);return""===e&&(m[t]=!0),t};f(g,p),g.prototype=h,h.constructor=g;var v="Symbol(description detection)"===String(p("description detection")),b=a(h.valueOf),_=a(h.toString),y=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),x=a("".slice);d(h,"description",{configurable:!0,get:function(){var e=b(this);if(s(m,e))return"";var t=_(e),n=v?x(t,7,-1):w(t,y,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},e065:function(e,t,n){"use strict";var r=n("428f"),i=n("1a2d"),o=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},e070:function(e,t){e.exports.id="ace/mode/css_worker",e.exports.src='"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/\'/g,"&#39;").replace(/</g,"&#60;")},exports.getMatchOffsets=function(string,regExp){var matches=[];return string.replace(regExp,function(str){matches.push({offset:arguments[arguments.length-2],length:str.length})}),matches},exports.deferredCall=function(fcn){var timer=null,callback=function(){timer=null,fcn()},deferred=function(timeout){return deferred.cancel(),timer=setTimeout(callback,timeout||0),deferred};return deferred.schedule=deferred,deferred.call=function(){return this.cancel(),fcn(),deferred},deferred.cancel=function(){return clearTimeout(timer),timer=null,deferred},deferred.isPending=function(){return timer},deferred},exports.delayedCall=function(fcn,defaultTimeout){var timer=null,callback=function(){timer=null,fcn()},_self=function(timeout){null==timer&&(timer=setTimeout(callback,timeout||defaultTimeout))};return _self.delay=function(timeout){timer&&clearTimeout(timer),timer=setTimeout(callback,timeout||defaultTimeout)},_self.schedule=_self,_self.call=function(){this.cancel(),fcn()},_self.cancel=function(){timer&&clearTimeout(timer),timer=null},_self.isPending=function(){return timer},_self}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.column<point2.column;return point1.row<point2.row||point1.row==point2.row&&bColIsAfter}function $getTransformedPoint(delta,point,moveIfEqual){var deltaIsInsert="insert"==delta.action,deltaRowShift=(deltaIsInsert?1:-1)*(delta.end.row-delta.start.row),deltaColShift=(deltaIsInsert?1:-1)*(delta.end.column-delta.start.column),deltaStart=delta.start,deltaEnd=deltaIsInsert?deltaStart:delta.end;return $pointsInOrder(point,deltaStart,moveIfEqual)?{row:point.row,column:point.column}:$pointsInOrder(deltaEnd,point,!moveIfEqual)?{row:point.row+deltaRowShift,column:point.column+(point.row==deltaEnd.row?deltaColShift:0)}:{row:deltaStart.row,column:deltaStart.column}}oop.implement(this,EventEmitter),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(delta){if(!(delta.start.row==delta.end.row&&delta.start.row!=this.row||delta.start.row>this.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(acequire,exports){"use strict";acequire("../range").Range;var Document=acequire("../document").Document,lang=acequire("../lib/lang"),Mirror=exports.Mirror=function(sender){this.sender=sender;var doc=this.doc=new Document(""),deferredUpdate=this.deferredUpdate=lang.delayedCall(this.onUpdate.bind(this)),_self=this;sender.on("change",function(e){var data=e.data;if(data[0].start)doc.applyDeltas(data);else for(var i=0;data.length>i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/css/csslint",["require","exports","module"],function(acequire,exports,module){function objectToString(o){return Object.prototype.toString.call(o)}function clone(parent,circular,depth,prototype){function _clone(parent,depth){if(null===parent)return null;if(0==depth)return parent;var child;if("object"!=typeof parent)return parent;if(util.isArray(parent))child=[];else if(util.isRegExp(parent))child=RegExp(parent.source,util.getRegExpFlags(parent)),parent.lastIndex&&(child.lastIndex=parent.lastIndex);else if(util.isDate(parent))child=new Date(parent.getTime());else{if(useBuffer&&Buffer.isBuffer(parent))return child=new Buffer(parent.length),parent.copy(child),child;child=prototype===void 0?Object.create(Object.getPrototypeOf(parent)):Object.create(prototype)}if(circular){var index=allParents.indexOf(parent);if(-1!=index)return allChildren[index];allParents.push(parent),allChildren.push(child)}for(var i in parent)child[i]=_clone(parent[i],depth-1);return child}var allParents=[],allChildren=[],useBuffer="undefined"!=typeof Buffer;return circular===void 0&&(circular=!0),depth===void 0&&(depth=1/0),_clone(parent,depth)}function Reporter(lines,ruleset){this.messages=[],this.stats=[],this.lines=lines,this.ruleset=ruleset}var parserlib={};(function(){function EventTarget(){this._listeners={}}function StringReader(text){this._input=text.replace(/\\n\\r?/g,"\\n"),this._line=1,this._col=1,this._cursor=0}function SyntaxError(message,line,col){this.col=col,this.line=line,this.message=message}function SyntaxUnit(text,line,col,type){this.col=col,this.line=line,this.text=text,this.type=type}function TokenStreamBase(input,tokenData){this._reader=input?new StringReader(""+input):null,this._token=null,this._tokenData=tokenData,this._lt=[],this._ltIndex=0,this._ltIndexCache=[]}EventTarget.prototype={constructor:EventTarget,addListener:function(type,listener){this._listeners[type]||(this._listeners[type]=[]),this._listeners[type].push(listener)},fire:function(event){if("string"==typeof event&&(event={type:event}),event.target!==void 0&&(event.target=this),event.type===void 0)throw Error("Event object missing \'type\' property.");if(this._listeners[event.type])for(var listeners=this._listeners[event.type].concat(),i=0,len=listeners.length;len>i;i++)listeners[i].call(this,event)},removeListener:function(type,listener){if(this._listeners[type])for(var listeners=this._listeners[type],i=0,len=listeners.length;len>i;i++)if(listeners[i]===listener){listeners.splice(i,1);break}}},StringReader.prototype={constructor:StringReader,getCol:function(){return this._col},getLine:function(){return this._line},eof:function(){return this._cursor==this._input.length},peek:function(count){var c=null;return count=count===void 0?1:count,this._cursor<this._input.length&&(c=this._input.charAt(this._cursor+count-1)),c},read:function(){var c=null;return this._cursor<this._input.length&&("\\n"==this._input.charAt(this._cursor)?(this._line++,this._col=1):this._col++,c=this._input.charAt(this._cursor++)),c},mark:function(){this._bookmark={cursor:this._cursor,line:this._line,col:this._col}},reset:function(){this._bookmark&&(this._cursor=this._bookmark.cursor,this._line=this._bookmark.line,this._col=this._bookmark.col,delete this._bookmark)},readTo:function(pattern){for(var c,buffer="";buffer.length<pattern.length||buffer.lastIndexOf(pattern)!=buffer.length-pattern.length;){if(c=this.read(),!c)throw Error(\'Expected "\'+pattern+\'" at line \'+this._line+", col "+this._col+".");buffer+=c}return buffer},readWhile:function(filter){for(var buffer="",c=this.read();null!==c&&filter(c);)buffer+=c,c=this.read();return buffer},readMatch:function(matcher){var source=this._input.substring(this._cursor),value=null;return"string"==typeof matcher?0===source.indexOf(matcher)&&(value=this.readCount(matcher.length)):matcher instanceof RegExp&&matcher.test(source)&&(value=this.readCount(RegExp.lastMatch.length)),value},readCount:function(count){for(var buffer="";count--;)buffer+=this.read();return buffer}},SyntaxError.prototype=Error(),SyntaxUnit.fromToken=function(token){return new SyntaxUnit(token.value,token.startLine,token.startCol)},SyntaxUnit.prototype={constructor:SyntaxUnit,valueOf:function(){return this.text},toString:function(){return this.text}},TokenStreamBase.createTokenData=function(tokens){var nameMap=[],typeMap={},tokenData=tokens.concat([]),i=0,len=tokenData.length+1;for(tokenData.UNKNOWN=-1,tokenData.unshift({name:"EOF"});len>i;i++)nameMap.push(tokenData[i].name),tokenData[tokenData[i].name]=i,tokenData[i].text&&(typeMap[tokenData[i].text]=i);return tokenData.name=function(tt){return nameMap[tt]},tokenData.type=function(c){return typeMap[c]},tokenData},TokenStreamBase.prototype={constructor:TokenStreamBase,match:function(tokenTypes,channel){tokenTypes instanceof Array||(tokenTypes=[tokenTypes]);\nfor(var tt=this.get(channel),i=0,len=tokenTypes.length;len>i;)if(tt==tokenTypes[i++])return!0;return this.unget(),!1},mustMatch:function(tokenTypes){var token;if(tokenTypes instanceof Array||(tokenTypes=[tokenTypes]),!this.match.apply(this,arguments))throw token=this.LT(1),new SyntaxError("Expected "+this._tokenData[tokenTypes[0]].name+" at line "+token.startLine+", col "+token.startCol+".",token.startLine,token.startCol)},advance:function(tokenTypes,channel){for(;0!==this.LA(0)&&!this.match(tokenTypes,channel);)this.get();return this.LA(0)},get:function(channel){var token,info,tokenInfo=this._tokenData,i=(this._reader,0);if(tokenInfo.length,this._lt.length&&this._ltIndex>=0&&this._ltIndex<this._lt.length){for(i++,this._token=this._lt[this._ltIndex++],info=tokenInfo[this._token.type];void 0!==info.channel&&channel!==info.channel&&this._ltIndex<this._lt.length;)this._token=this._lt[this._ltIndex++],info=tokenInfo[this._token.type],i++;if((void 0===info.channel||channel===info.channel)&&this._ltIndex<=this._lt.length)return this._ltIndexCache.push(i),this._token.type}return token=this._getToken(),token.type>-1&&!tokenInfo[token.type].hide&&(token.channel=tokenInfo[token.type].channel,this._token=token,this._lt.push(token),this._ltIndexCache.push(this._lt.length-this._ltIndex+i),this._lt.length>5&&this._lt.shift(),this._ltIndexCache.length>5&&this._ltIndexCache.shift(),this._ltIndex=this._lt.length),info=tokenInfo[token.type],info&&(info.hide||void 0!==info.channel&&channel!==info.channel)?this.get(channel):token.type},LA:function(index){var tt,total=index;if(index>0){if(index>5)throw Error("Too much lookahead.");for(;total;)tt=this.get(),total--;for(;index>total;)this.unget(),total++}else if(0>index){if(!this._lt[this._ltIndex+index])throw Error("Too much lookbehind.");tt=this._lt[this._ltIndex+index].type}else tt=this._token.type;return tt},LT:function(index){return this.LA(index),this._lt[this._ltIndex+index-1]},peek:function(){return this.LA(1)},token:function(){return this._token},tokenName:function(tokenType){return 0>tokenType||tokenType>this._tokenData.length?"UNKNOWN_TOKEN":this._tokenData[tokenType].name},tokenType:function(tokenName){return this._tokenData[tokenName]||-1},unget:function(){if(!this._ltIndexCache.length)throw Error("Too much lookahead.");this._ltIndex-=this._ltIndexCache.pop(),this._token=this._lt[this._ltIndex-1]}},parserlib.util={StringReader:StringReader,SyntaxError:SyntaxError,SyntaxUnit:SyntaxUnit,EventTarget:EventTarget,TokenStreamBase:TokenStreamBase}})(),function(){function Combinator(text,line,col){SyntaxUnit.call(this,text,line,col,Parser.COMBINATOR_TYPE),this.type="unknown",/^\\s+$/.test(text)?this.type="descendant":">"==text?this.type="child":"+"==text?this.type="adjacent-sibling":"~"==text&&(this.type="sibling")}function MediaFeature(name,value){SyntaxUnit.call(this,"("+name+(null!==value?":"+value:"")+")",name.startLine,name.startCol,Parser.MEDIA_FEATURE_TYPE),this.name=name,this.value=value}function MediaQuery(modifier,mediaType,features,line,col){SyntaxUnit.call(this,(modifier?modifier+" ":"")+(mediaType?mediaType:"")+(mediaType&&features.length>0?" and ":"")+features.join(" and "),line,col,Parser.MEDIA_QUERY_TYPE),this.modifier=modifier,this.mediaType=mediaType,this.features=features}function Parser(options){EventTarget.call(this),this.options=options||{},this._tokenStream=null}function PropertyName(text,hack,line,col){SyntaxUnit.call(this,text,line,col,Parser.PROPERTY_NAME_TYPE),this.hack=hack}function PropertyValue(parts,line,col){SyntaxUnit.call(this,parts.join(" "),line,col,Parser.PROPERTY_VALUE_TYPE),this.parts=parts}function PropertyValueIterator(value){this._i=0,this._parts=value.parts,this._marks=[],this.value=value}function PropertyValuePart(text,line,col){SyntaxUnit.call(this,text,line,col,Parser.PROPERTY_VALUE_PART_TYPE),this.type="unknown";var temp;if(/^([+\\-]?[\\d\\.]+)([a-z]+)$/i.test(text))switch(this.type="dimension",this.value=+RegExp.$1,this.units=RegExp.$2,this.units.toLowerCase()){case"em":case"rem":case"ex":case"px":case"cm":case"mm":case"in":case"pt":case"pc":case"ch":case"vh":case"vw":case"vmax":case"vmin":this.type="length";break;case"deg":case"rad":case"grad":this.type="angle";break;case"ms":case"s":this.type="time";break;case"hz":case"khz":this.type="frequency";break;case"dpi":case"dpcm":this.type="resolution"}else/^([+\\-]?[\\d\\.]+)%$/i.test(text)?(this.type="percentage",this.value=+RegExp.$1):/^([+\\-]?\\d+)$/i.test(text)?(this.type="integer",this.value=+RegExp.$1):/^([+\\-]?[\\d\\.]+)$/i.test(text)?(this.type="number",this.value=+RegExp.$1):/^#([a-f0-9]{3,6})/i.test(text)?(this.type="color",temp=RegExp.$1,3==temp.length?(this.red=parseInt(temp.charAt(0)+temp.charAt(0),16),this.green=parseInt(temp.charAt(1)+temp.charAt(1),16),this.blue=parseInt(temp.charAt(2)+temp.charAt(2),16)):(this.red=parseInt(temp.substring(0,2),16),this.green=parseInt(temp.substring(2,4),16),this.blue=parseInt(temp.substring(4,6),16))):/^rgb\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*\\)/i.test(text)?(this.type="color",this.red=+RegExp.$1,this.green=+RegExp.$2,this.blue=+RegExp.$3):/^rgb\\(\\s*(\\d+)%\\s*,\\s*(\\d+)%\\s*,\\s*(\\d+)%\\s*\\)/i.test(text)?(this.type="color",this.red=255*+RegExp.$1/100,this.green=255*+RegExp.$2/100,this.blue=255*+RegExp.$3/100):/^rgba\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*([\\d\\.]+)\\s*\\)/i.test(text)?(this.type="color",this.red=+RegExp.$1,this.green=+RegExp.$2,this.blue=+RegExp.$3,this.alpha=+RegExp.$4):/^rgba\\(\\s*(\\d+)%\\s*,\\s*(\\d+)%\\s*,\\s*(\\d+)%\\s*,\\s*([\\d\\.]+)\\s*\\)/i.test(text)?(this.type="color",this.red=255*+RegExp.$1/100,this.green=255*+RegExp.$2/100,this.blue=255*+RegExp.$3/100,this.alpha=+RegExp.$4):/^hsl\\(\\s*(\\d+)\\s*,\\s*(\\d+)%\\s*,\\s*(\\d+)%\\s*\\)/i.test(text)?(this.type="color",this.hue=+RegExp.$1,this.saturation=+RegExp.$2/100,this.lightness=+RegExp.$3/100):/^hsla\\(\\s*(\\d+)\\s*,\\s*(\\d+)%\\s*,\\s*(\\d+)%\\s*,\\s*([\\d\\.]+)\\s*\\)/i.test(text)?(this.type="color",this.hue=+RegExp.$1,this.saturation=+RegExp.$2/100,this.lightness=+RegExp.$3/100,this.alpha=+RegExp.$4):/^url\\(["\']?([^\\)"\']+)["\']?\\)/i.test(text)?(this.type="uri",this.uri=RegExp.$1):/^([^\\(]+)\\(/i.test(text)?(this.type="function",this.name=RegExp.$1,this.value=text):/^["\'][^"\']*["\']/.test(text)?(this.type="string",this.value=eval(text)):Colors[text.toLowerCase()]?(this.type="color",temp=Colors[text.toLowerCase()].substring(1),this.red=parseInt(temp.substring(0,2),16),this.green=parseInt(temp.substring(2,4),16),this.blue=parseInt(temp.substring(4,6),16)):/^[\\,\\/]$/.test(text)?(this.type="operator",this.value=text):/^[a-z\\-_\\u0080-\\uFFFF][a-z0-9\\-_\\u0080-\\uFFFF]*$/i.test(text)&&(this.type="identifier",this.value=text)}function Selector(parts,line,col){SyntaxUnit.call(this,parts.join(" "),line,col,Parser.SELECTOR_TYPE),this.parts=parts,this.specificity=Specificity.calculate(this)}function SelectorPart(elementName,modifiers,text,line,col){SyntaxUnit.call(this,text,line,col,Parser.SELECTOR_PART_TYPE),this.elementName=elementName,this.modifiers=modifiers}function SelectorSubPart(text,type,line,col){SyntaxUnit.call(this,text,line,col,Parser.SELECTOR_SUB_PART_TYPE),this.type=type,this.args=[]}function Specificity(a,b,c,d){this.a=a,this.b=b,this.c=c,this.d=d}function isHexDigit(c){return null!==c&&h.test(c)}function isDigit(c){return null!==c&&/\\d/.test(c)}function isWhitespace(c){return null!==c&&/\\s/.test(c)}function isNewLine(c){return null!==c&&nl.test(c)}function isNameStart(c){return null!==c&&/[a-z_\\u0080-\\uFFFF\\\\]/i.test(c)}function isNameChar(c){return null!==c&&(isNameStart(c)||/[0-9\\-\\\\]/.test(c))}function isIdentStart(c){return null!==c&&(isNameStart(c)||/\\-\\\\/.test(c))}function mix(receiver,supplier){for(var prop in supplier)supplier.hasOwnProperty(prop)&&(receiver[prop]=supplier[prop]);return receiver}function TokenStream(input){TokenStreamBase.call(this,input,Tokens)}function ValidationError(message,line,col){this.col=col,this.line=line,this.message=message}var EventTarget=parserlib.util.EventTarget,TokenStreamBase=parserlib.util.TokenStreamBase,StringReader=parserlib.util.StringReader,SyntaxError=parserlib.util.SyntaxError,SyntaxUnit=parserlib.util.SyntaxUnit,Colors={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",activeBorder:"Active window border.",activecaption:"Active window caption.",appworkspace:"Background color of multiple document interface.",background:"Desktop background.",buttonface:"The face background color for 3-D elements that appear 3-D due to one layer of surrounding border.",buttonhighlight:"The color of the border facing the light source for 3-D elements that appear 3-D due to one layer of surrounding border.",buttonshadow:"The color of the border away from the light source for 3-D elements that appear 3-D due to one layer of surrounding border.",buttontext:"Text on push buttons.",captiontext:"Text in caption, size box, and scrollbar arrow box.",graytext:"Grayed (disabled) text. This color is set to #000 if the current display driver does not support a solid gray color.",greytext:"Greyed (disabled) text. This color is set to #000 if the current display driver does not support a solid grey color.",highlight:"Item(s) selected in a control.",highlighttext:"Text of item(s) selected in a control.",inactiveborder:"Inactive window border.",inactivecaption:"Inactive window caption.",inactivecaptiontext:"Color of text in an inactive caption.",infobackground:"Background color for tooltip controls.",infotext:"Text color for tooltip controls.",menu:"Menu background.",menutext:"Text in menus.",scrollbar:"Scroll bar gray area.",threeddarkshadow:"The color of the darker (generally outer) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedface:"The face background color for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedhighlight:"The color of the lighter (generally outer) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedlightshadow:"The color of the darker (generally inner) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedshadow:"The color of the lighter (generally inner) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",window:"Window background.",windowframe:"Window frame.",windowtext:"Text in windows."};Combinator.prototype=new SyntaxUnit,Combinator.prototype.constructor=Combinator,MediaFeature.prototype=new SyntaxUnit,MediaFeature.prototype.constructor=MediaFeature,MediaQuery.prototype=new SyntaxUnit,MediaQuery.prototype.constructor=MediaQuery,Parser.DEFAULT_TYPE=0,Parser.COMBINATOR_TYPE=1,Parser.MEDIA_FEATURE_TYPE=2,Parser.MEDIA_QUERY_TYPE=3,Parser.PROPERTY_NAME_TYPE=4,Parser.PROPERTY_VALUE_TYPE=5,Parser.PROPERTY_VALUE_PART_TYPE=6,Parser.SELECTOR_TYPE=7,Parser.SELECTOR_PART_TYPE=8,Parser.SELECTOR_SUB_PART_TYPE=9,Parser.prototype=function(){var prop,proto=new EventTarget,additions={constructor:Parser,DEFAULT_TYPE:0,COMBINATOR_TYPE:1,MEDIA_FEATURE_TYPE:2,MEDIA_QUERY_TYPE:3,PROPERTY_NAME_TYPE:4,PROPERTY_VALUE_TYPE:5,PROPERTY_VALUE_PART_TYPE:6,SELECTOR_TYPE:7,SELECTOR_PART_TYPE:8,SELECTOR_SUB_PART_TYPE:9,_stylesheet:function(){var count,token,tt,tokenStream=this._tokenStream;for(this.fire("startstylesheet"),this._charset(),this._skipCruft();tokenStream.peek()==Tokens.IMPORT_SYM;)this._import(),this._skipCruft();for(;tokenStream.peek()==Tokens.NAMESPACE_SYM;)this._namespace(),this._skipCruft();for(tt=tokenStream.peek();tt>Tokens.EOF;){try{switch(tt){case Tokens.MEDIA_SYM:this._media(),this._skipCruft();break;case Tokens.PAGE_SYM:this._page(),this._skipCruft();break;case Tokens.FONT_FACE_SYM:this._font_face(),this._skipCruft();break;case Tokens.KEYFRAMES_SYM:this._keyframes(),this._skipCruft();break;case Tokens.VIEWPORT_SYM:this._viewport(),this._skipCruft();break;case Tokens.UNKNOWN_SYM:if(tokenStream.get(),this.options.strict)throw new SyntaxError("Unknown @ rule.",tokenStream.LT(0).startLine,tokenStream.LT(0).startCol);for(this.fire({type:"error",error:null,message:"Unknown @ rule: "+tokenStream.LT(0).value+".",line:tokenStream.LT(0).startLine,col:tokenStream.LT(0).startCol}),count=0;tokenStream.advance([Tokens.LBRACE,Tokens.RBRACE])==Tokens.LBRACE;)count++;for(;count;)tokenStream.advance([Tokens.RBRACE]),count--;break;case Tokens.S:this._readWhitespace();break;default:if(!this._ruleset())switch(tt){case Tokens.CHARSET_SYM:throw token=tokenStream.LT(1),this._charset(!1),new SyntaxError("@charset not allowed here.",token.startLine,token.startCol);case Tokens.IMPORT_SYM:throw token=tokenStream.LT(1),this._import(!1),new SyntaxError("@import not allowed here.",token.startLine,token.startCol);case Tokens.NAMESPACE_SYM:throw token=tokenStream.LT(1),this._namespace(!1),new SyntaxError("@namespace not allowed here.",token.startLine,token.startCol);default:tokenStream.get(),this._unexpectedToken(tokenStream.token())}}}catch(ex){if(!(ex instanceof SyntaxError)||this.options.strict)throw ex;this.fire({type:"error",error:ex,message:ex.message,line:ex.line,col:ex.col})}tt=tokenStream.peek()}tt!=Tokens.EOF&&this._unexpectedToken(tokenStream.token()),this.fire("endstylesheet")},_charset:function(emit){var charset,token,line,col,tokenStream=this._tokenStream;tokenStream.match(Tokens.CHARSET_SYM)&&(line=tokenStream.token().startLine,col=tokenStream.token().startCol,this._readWhitespace(),tokenStream.mustMatch(Tokens.STRING),token=tokenStream.token(),charset=token.value,this._readWhitespace(),tokenStream.mustMatch(Tokens.SEMICOLON),emit!==!1&&this.fire({type:"charset",charset:charset,line:line,col:col}))},_import:function(emit){var uri,importToken,tokenStream=this._tokenStream,mediaList=[];tokenStream.mustMatch(Tokens.IMPORT_SYM),importToken=tokenStream.token(),this._readWhitespace(),tokenStream.mustMatch([Tokens.STRING,Tokens.URI]),uri=tokenStream.token().value.replace(/^(?:url\\()?["\']?([^"\']+?)["\']?\\)?$/,"$1"),this._readWhitespace(),mediaList=this._media_query_list(),tokenStream.mustMatch(Tokens.SEMICOLON),this._readWhitespace(),emit!==!1&&this.fire({type:"import",uri:uri,media:mediaList,line:importToken.startLine,col:importToken.startCol})},_namespace:function(emit){var line,col,prefix,uri,tokenStream=this._tokenStream;tokenStream.mustMatch(Tokens.NAMESPACE_SYM),line=tokenStream.token().startLine,col=tokenStream.token().startCol,this._readWhitespace(),tokenStream.match(Tokens.IDENT)&&(prefix=tokenStream.token().value,this._readWhitespace()),tokenStream.mustMatch([Tokens.STRING,Tokens.URI]),uri=tokenStream.token().value.replace(/(?:url\\()?["\']([^"\']+)["\']\\)?/,"$1"),this._readWhitespace(),tokenStream.mustMatch(Tokens.SEMICOLON),this._readWhitespace(),emit!==!1&&this.fire({type:"namespace",prefix:prefix,uri:uri,line:line,col:col})},_media:function(){var line,col,mediaList,tokenStream=this._tokenStream;for(tokenStream.mustMatch(Tokens.MEDIA_SYM),line=tokenStream.token().startLine,col=tokenStream.token().startCol,this._readWhitespace(),mediaList=this._media_query_list(),tokenStream.mustMatch(Tokens.LBRACE),this._readWhitespace(),this.fire({type:"startmedia",media:mediaList,line:line,col:col});;)if(tokenStream.peek()==Tokens.PAGE_SYM)this._page();else if(tokenStream.peek()==Tokens.FONT_FACE_SYM)this._font_face();else if(tokenStream.peek()==Tokens.VIEWPORT_SYM)this._viewport();else if(!this._ruleset())break;tokenStream.mustMatch(Tokens.RBRACE),this._readWhitespace(),this.fire({type:"endmedia",media:mediaList,line:line,col:col})},_media_query_list:function(){var tokenStream=this._tokenStream,mediaList=[];for(this._readWhitespace(),(tokenStream.peek()==Tokens.IDENT||tokenStream.peek()==Tokens.LPAREN)&&mediaList.push(this._media_query());tokenStream.match(Tokens.COMMA);)this._readWhitespace(),mediaList.push(this._media_query());return mediaList},_media_query:function(){var tokenStream=this._tokenStream,type=null,ident=null,token=null,expressions=[];if(tokenStream.match(Tokens.IDENT)&&(ident=tokenStream.token().value.toLowerCase(),"only"!=ident&&"not"!=ident?(tokenStream.unget(),ident=null):token=tokenStream.token()),this._readWhitespace(),tokenStream.peek()==Tokens.IDENT?(type=this._media_type(),null===token&&(token=tokenStream.token())):tokenStream.peek()==Tokens.LPAREN&&(null===token&&(token=tokenStream.LT(1)),expressions.push(this._media_expression())),null===type&&0===expressions.length)return null;for(this._readWhitespace();tokenStream.match(Tokens.IDENT);)"and"!=tokenStream.token().value.toLowerCase()&&this._unexpectedToken(tokenStream.token()),this._readWhitespace(),expressions.push(this._media_expression());return new MediaQuery(ident,type,expressions,token.startLine,token.startCol)},_media_type:function(){return this._media_feature()},_media_expression:function(){var token,tokenStream=this._tokenStream,feature=null,expression=null;return tokenStream.mustMatch(Tokens.LPAREN),this._readWhitespace(),feature=this._media_feature(),this._readWhitespace(),tokenStream.match(Tokens.COLON)&&(this._readWhitespace(),token=tokenStream.LT(1),expression=this._expression()),tokenStream.mustMatch(Tokens.RPAREN),this._readWhitespace(),new MediaFeature(feature,expression?new SyntaxUnit(expression,token.startLine,token.startCol):null)},_media_feature:function(){var tokenStream=this._tokenStream;return tokenStream.mustMatch(Tokens.IDENT),SyntaxUnit.fromToken(tokenStream.token())},_page:function(){var line,col,tokenStream=this._tokenStream,identifier=null,pseudoPage=null;tokenStream.mustMatch(Tokens.PAGE_SYM),line=tokenStream.token().startLine,col=tokenStream.token().startCol,this._readWhitespace(),tokenStream.match(Tokens.IDENT)&&(identifier=tokenStream.token().value,"auto"===identifier.toLowerCase()&&this._unexpectedToken(tokenStream.token())),tokenStream.peek()==Tokens.COLON&&(pseudoPage=this._pseudo_page()),this._readWhitespace(),this.fire({type:"startpage",id:identifier,pseudo:pseudoPage,line:line,col:col}),this._readDeclarations(!0,!0),this.fire({type:"endpage",id:identifier,pseudo:pseudoPage,line:line,col:col})},_margin:function(){var line,col,tokenStream=this._tokenStream,marginSym=this._margin_sym();return marginSym?(line=tokenStream.token().startLine,col=tokenStream.token().startCol,this.fire({type:"startpagemargin",margin:marginSym,line:line,col:col}),this._readDeclarations(!0),this.fire({type:"endpagemargin",margin:marginSym,line:line,col:col}),!0):!1},_margin_sym:function(){var tokenStream=this._tokenStream;return tokenStream.match([Tokens.TOPLEFTCORNER_SYM,Tokens.TOPLEFT_SYM,Tokens.TOPCENTER_SYM,Tokens.TOPRIGHT_SYM,Tokens.TOPRIGHTCORNER_SYM,Tokens.BOTTOMLEFTCORNER_SYM,Tokens.BOTTOMLEFT_SYM,Tokens.BOTTOMCENTER_SYM,Tokens.BOTTOMRIGHT_SYM,Tokens.BOTTOMRIGHTCORNER_SYM,Tokens.LEFTTOP_SYM,Tokens.LEFTMIDDLE_SYM,Tokens.LEFTBOTTOM_SYM,Tokens.RIGHTTOP_SYM,Tokens.RIGHTMIDDLE_SYM,Tokens.RIGHTBOTTOM_SYM])?SyntaxUnit.fromToken(tokenStream.token()):null},_pseudo_page:function(){var tokenStream=this._tokenStream;return tokenStream.mustMatch(Tokens.COLON),tokenStream.mustMatch(Tokens.IDENT),tokenStream.token().value},_font_face:function(){var line,col,tokenStream=this._tokenStream;tokenStream.mustMatch(Tokens.FONT_FACE_SYM),line=tokenStream.token().startLine,col=tokenStream.token().startCol,this._readWhitespace(),this.fire({type:"startfontface",line:line,col:col}),this._readDeclarations(!0),this.fire({type:"endfontface",line:line,col:col})},_viewport:function(){var line,col,tokenStream=this._tokenStream;tokenStream.mustMatch(Tokens.VIEWPORT_SYM),line=tokenStream.token().startLine,col=tokenStream.token().startCol,this._readWhitespace(),this.fire({type:"startviewport",line:line,col:col}),this._readDeclarations(!0),this.fire({type:"endviewport",line:line,col:col})},_operator:function(inFunction){var tokenStream=this._tokenStream,token=null;return(tokenStream.match([Tokens.SLASH,Tokens.COMMA])||inFunction&&tokenStream.match([Tokens.PLUS,Tokens.STAR,Tokens.MINUS]))&&(token=tokenStream.token(),this._readWhitespace()),token?PropertyValuePart.fromToken(token):null},_combinator:function(){var token,tokenStream=this._tokenStream,value=null;return tokenStream.match([Tokens.PLUS,Tokens.GREATER,Tokens.TILDE])&&(token=tokenStream.token(),value=new Combinator(token.value,token.startLine,token.startCol),this._readWhitespace()),value},_unary_operator:function(){var tokenStream=this._tokenStream;return tokenStream.match([Tokens.MINUS,Tokens.PLUS])?tokenStream.token().value:null},_property:function(){var tokenValue,token,line,col,tokenStream=this._tokenStream,value=null,hack=null;return tokenStream.peek()==Tokens.STAR&&this.options.starHack&&(tokenStream.get(),token=tokenStream.token(),hack=token.value,line=token.startLine,col=token.startCol),tokenStream.match(Tokens.IDENT)&&(token=tokenStream.token(),tokenValue=token.value,"_"==tokenValue.charAt(0)&&this.options.underscoreHack&&(hack="_",tokenValue=tokenValue.substring(1)),value=new PropertyName(tokenValue,hack,line||token.startLine,col||token.startCol),this._readWhitespace()),value},_ruleset:function(){var tt,selectors,tokenStream=this._tokenStream;try{selectors=this._selectors_group()}catch(ex){if(!(ex instanceof SyntaxError)||this.options.strict)throw ex;if(this.fire({type:"error",error:ex,message:ex.message,line:ex.line,col:ex.col}),tt=tokenStream.advance([Tokens.RBRACE]),tt!=Tokens.RBRACE)throw ex;return!0}return selectors&&(this.fire({type:"startrule",selectors:selectors,line:selectors[0].line,col:selectors[0].col}),this._readDeclarations(!0),this.fire({type:"endrule",selectors:selectors,line:selectors[0].line,col:selectors[0].col})),selectors},_selectors_group:function(){var selector,tokenStream=this._tokenStream,selectors=[];if(selector=this._selector(),null!==selector)for(selectors.push(selector);tokenStream.match(Tokens.COMMA);)this._readWhitespace(),selector=this._selector(),null!==selector?selectors.push(selector):this._unexpectedToken(tokenStream.LT(1));return selectors.length?selectors:null},_selector:function(){var tokenStream=this._tokenStream,selector=[],nextSelector=null,combinator=null,ws=null;if(nextSelector=this._simple_selector_sequence(),null===nextSelector)return null;for(selector.push(nextSelector);;)if(combinator=this._combinator(),null!==combinator)selector.push(combinator),nextSelector=this._simple_selector_sequence(),null===nextSelector?this._unexpectedToken(tokenStream.LT(1)):selector.push(nextSelector);else{if(!this._readWhitespace())break;ws=new Combinator(tokenStream.token().value,tokenStream.token().startLine,tokenStream.token().startCol),combinator=this._combinator(),nextSelector=this._simple_selector_sequence(),null===nextSelector?null!==combinator&&this._unexpectedToken(tokenStream.LT(1)):(null!==combinator?selector.push(combinator):selector.push(ws),selector.push(nextSelector))}return new Selector(selector,selector[0].line,selector[0].col)},_simple_selector_sequence:function(){var line,col,tokenStream=this._tokenStream,elementName=null,modifiers=[],selectorText="",components=[function(){return tokenStream.match(Tokens.HASH)?new SelectorSubPart(tokenStream.token().value,"id",tokenStream.token().startLine,tokenStream.token().startCol):null},this._class,this._attrib,this._pseudo,this._negation],i=0,len=components.length,component=null;for(line=tokenStream.LT(1).startLine,col=tokenStream.LT(1).startCol,elementName=this._type_selector(),elementName||(elementName=this._universal()),null!==elementName&&(selectorText+=elementName);;){if(tokenStream.peek()===Tokens.S)break;for(;len>i&&null===component;)component=components[i++].call(this);if(null===component){if(""===selectorText)return null;break}i=0,modifiers.push(component),selectorText+=""+component,component=null}return""!==selectorText?new SelectorPart(elementName,modifiers,selectorText,line,col):null},_type_selector:function(){var tokenStream=this._tokenStream,ns=this._namespace_prefix(),elementName=this._element_name();return elementName?(ns&&(elementName.text=ns+elementName.text,elementName.col-=ns.length),elementName):(ns&&(tokenStream.unget(),ns.length>1&&tokenStream.unget()),null)},_class:function(){var token,tokenStream=this._tokenStream;return tokenStream.match(Tokens.DOT)?(tokenStream.mustMatch(Tokens.IDENT),token=tokenStream.token(),new SelectorSubPart("."+token.value,"class",token.startLine,token.startCol-1)):null},_element_name:function(){var token,tokenStream=this._tokenStream;return tokenStream.match(Tokens.IDENT)?(token=tokenStream.token(),new SelectorSubPart(token.value,"elementName",token.startLine,token.startCol)):null},_namespace_prefix:function(){var tokenStream=this._tokenStream,value="";return(tokenStream.LA(1)===Tokens.PIPE||tokenStream.LA(2)===Tokens.PIPE)&&(tokenStream.match([Tokens.IDENT,Tokens.STAR])&&(value+=tokenStream.token().value),tokenStream.mustMatch(Tokens.PIPE),value+="|"),value.length?value:null},_universal:function(){var ns,tokenStream=this._tokenStream,value="";return ns=this._namespace_prefix(),ns&&(value+=ns),tokenStream.match(Tokens.STAR)&&(value+="*"),value.length?value:null},_attrib:function(){var ns,token,tokenStream=this._tokenStream,value=null;return tokenStream.match(Tokens.LBRACKET)?(token=tokenStream.token(),value=token.value,value+=this._readWhitespace(),ns=this._namespace_prefix(),ns&&(value+=ns),tokenStream.mustMatch(Tokens.IDENT),value+=tokenStream.token().value,value+=this._readWhitespace(),tokenStream.match([Tokens.PREFIXMATCH,Tokens.SUFFIXMATCH,Tokens.SUBSTRINGMATCH,Tokens.EQUALS,Tokens.INCLUDES,Tokens.DASHMATCH])&&(value+=tokenStream.token().value,value+=this._readWhitespace(),tokenStream.mustMatch([Tokens.IDENT,Tokens.STRING]),value+=tokenStream.token().value,value+=this._readWhitespace()),tokenStream.mustMatch(Tokens.RBRACKET),new SelectorSubPart(value+"]","attribute",token.startLine,token.startCol)):null},_pseudo:function(){var line,col,tokenStream=this._tokenStream,pseudo=null,colons=":";return tokenStream.match(Tokens.COLON)&&(tokenStream.match(Tokens.COLON)&&(colons+=":"),tokenStream.match(Tokens.IDENT)?(pseudo=tokenStream.token().value,line=tokenStream.token().startLine,col=tokenStream.token().startCol-colons.length):tokenStream.peek()==Tokens.FUNCTION&&(line=tokenStream.LT(1).startLine,col=tokenStream.LT(1).startCol-colons.length,pseudo=this._functional_pseudo()),pseudo&&(pseudo=new SelectorSubPart(colons+pseudo,"pseudo",line,col))),pseudo},_functional_pseudo:function(){var tokenStream=this._tokenStream,value=null;return tokenStream.match(Tokens.FUNCTION)&&(value=tokenStream.token().value,value+=this._readWhitespace(),value+=this._expression(),tokenStream.mustMatch(Tokens.RPAREN),value+=")"),value},_expression:function(){for(var tokenStream=this._tokenStream,value="";tokenStream.match([Tokens.PLUS,Tokens.MINUS,Tokens.DIMENSION,Tokens.NUMBER,Tokens.STRING,Tokens.IDENT,Tokens.LENGTH,Tokens.FREQ,Tokens.ANGLE,Tokens.TIME,Tokens.RESOLUTION,Tokens.SLASH]);)value+=tokenStream.token().value,value+=this._readWhitespace();return value.length?value:null},_negation:function(){var line,col,arg,tokenStream=this._tokenStream,value="",subpart=null;return tokenStream.match(Tokens.NOT)&&(value=tokenStream.token().value,line=tokenStream.token().startLine,col=tokenStream.token().startCol,value+=this._readWhitespace(),arg=this._negation_arg(),value+=arg,value+=this._readWhitespace(),tokenStream.match(Tokens.RPAREN),value+=tokenStream.token().value,subpart=new SelectorSubPart(value,"not",line,col),subpart.args.push(arg)),subpart},_negation_arg:function(){var line,col,part,tokenStream=this._tokenStream,args=[this._type_selector,this._universal,function(){return tokenStream.match(Tokens.HASH)?new SelectorSubPart(tokenStream.token().value,"id",tokenStream.token().startLine,tokenStream.token().startCol):null},this._class,this._attrib,this._pseudo],arg=null,i=0,len=args.length;for(line=tokenStream.LT(1).startLine,col=tokenStream.LT(1).startCol;len>i&&null===arg;)arg=args[i].call(this),i++;return null===arg&&this._unexpectedToken(tokenStream.LT(1)),part="elementName"==arg.type?new SelectorPart(arg,[],""+arg,line,col):new SelectorPart(null,[arg],""+arg,line,col)},_declaration:function(){var tokenStream=this._tokenStream,property=null,expr=null,prio=null,invalid=null,propertyName="";if(property=this._property(),null!==property){tokenStream.mustMatch(Tokens.COLON),this._readWhitespace(),expr=this._expr(),expr&&0!==expr.length||this._unexpectedToken(tokenStream.LT(1)),prio=this._prio(),propertyName=""+property,(this.options.starHack&&"*"==property.hack||this.options.underscoreHack&&"_"==property.hack)&&(propertyName=property.text);try{this._validateProperty(propertyName,expr)}catch(ex){invalid=ex}return this.fire({type:"property",property:property,value:expr,important:prio,line:property.line,col:property.col,invalid:invalid}),!0}return!1},_prio:function(){var tokenStream=this._tokenStream,result=tokenStream.match(Tokens.IMPORTANT_SYM);return this._readWhitespace(),result},_expr:function(inFunction){var values=(this._tokenStream,[]),value=null,operator=null;if(value=this._term(inFunction),null!==value)for(values.push(value);;){if(operator=this._operator(inFunction),operator&&values.push(operator),value=this._term(inFunction),null===value)break;\nvalues.push(value)}return values.length>0?new PropertyValue(values,values[0].line,values[0].col):null},_term:function(inFunction){var token,line,col,tokenStream=this._tokenStream,unary=null,value=null,endChar=null;return unary=this._unary_operator(),null!==unary&&(line=tokenStream.token().startLine,col=tokenStream.token().startCol),tokenStream.peek()==Tokens.IE_FUNCTION&&this.options.ieFilters?(value=this._ie_function(),null===unary&&(line=tokenStream.token().startLine,col=tokenStream.token().startCol)):inFunction&&tokenStream.match([Tokens.LPAREN,Tokens.LBRACE,Tokens.LBRACKET])?(token=tokenStream.token(),endChar=token.endChar,value=token.value+this._expr(inFunction).text,null===unary&&(line=tokenStream.token().startLine,col=tokenStream.token().startCol),tokenStream.mustMatch(Tokens.type(endChar)),value+=endChar,this._readWhitespace()):tokenStream.match([Tokens.NUMBER,Tokens.PERCENTAGE,Tokens.LENGTH,Tokens.ANGLE,Tokens.TIME,Tokens.FREQ,Tokens.STRING,Tokens.IDENT,Tokens.URI,Tokens.UNICODE_RANGE])?(value=tokenStream.token().value,null===unary&&(line=tokenStream.token().startLine,col=tokenStream.token().startCol),this._readWhitespace()):(token=this._hexcolor(),null===token?(null===unary&&(line=tokenStream.LT(1).startLine,col=tokenStream.LT(1).startCol),null===value&&(value=tokenStream.LA(3)==Tokens.EQUALS&&this.options.ieFilters?this._ie_function():this._function())):(value=token.value,null===unary&&(line=token.startLine,col=token.startCol))),null!==value?new PropertyValuePart(null!==unary?unary+value:value,line,col):null},_function:function(){var lt,tokenStream=this._tokenStream,functionText=null,expr=null;if(tokenStream.match(Tokens.FUNCTION)){if(functionText=tokenStream.token().value,this._readWhitespace(),expr=this._expr(!0),functionText+=expr,this.options.ieFilters&&tokenStream.peek()==Tokens.EQUALS)do for(this._readWhitespace()&&(functionText+=tokenStream.token().value),tokenStream.LA(0)==Tokens.COMMA&&(functionText+=tokenStream.token().value),tokenStream.match(Tokens.IDENT),functionText+=tokenStream.token().value,tokenStream.match(Tokens.EQUALS),functionText+=tokenStream.token().value,lt=tokenStream.peek();lt!=Tokens.COMMA&&lt!=Tokens.S&&lt!=Tokens.RPAREN;)tokenStream.get(),functionText+=tokenStream.token().value,lt=tokenStream.peek();while(tokenStream.match([Tokens.COMMA,Tokens.S]));tokenStream.match(Tokens.RPAREN),functionText+=")",this._readWhitespace()}return functionText},_ie_function:function(){var lt,tokenStream=this._tokenStream,functionText=null;if(tokenStream.match([Tokens.IE_FUNCTION,Tokens.FUNCTION])){functionText=tokenStream.token().value;do for(this._readWhitespace()&&(functionText+=tokenStream.token().value),tokenStream.LA(0)==Tokens.COMMA&&(functionText+=tokenStream.token().value),tokenStream.match(Tokens.IDENT),functionText+=tokenStream.token().value,tokenStream.match(Tokens.EQUALS),functionText+=tokenStream.token().value,lt=tokenStream.peek();lt!=Tokens.COMMA&&lt!=Tokens.S&&lt!=Tokens.RPAREN;)tokenStream.get(),functionText+=tokenStream.token().value,lt=tokenStream.peek();while(tokenStream.match([Tokens.COMMA,Tokens.S]));tokenStream.match(Tokens.RPAREN),functionText+=")",this._readWhitespace()}return functionText},_hexcolor:function(){var color,tokenStream=this._tokenStream,token=null;if(tokenStream.match(Tokens.HASH)){if(token=tokenStream.token(),color=token.value,!/#[a-f0-9]{3,6}/i.test(color))throw new SyntaxError("Expected a hex color but found \'"+color+"\' at line "+token.startLine+", col "+token.startCol+".",token.startLine,token.startCol);this._readWhitespace()}return token},_keyframes:function(){var token,tt,name,tokenStream=this._tokenStream,prefix="";for(tokenStream.mustMatch(Tokens.KEYFRAMES_SYM),token=tokenStream.token(),/^@\\-([^\\-]+)\\-/.test(token.value)&&(prefix=RegExp.$1),this._readWhitespace(),name=this._keyframe_name(),this._readWhitespace(),tokenStream.mustMatch(Tokens.LBRACE),this.fire({type:"startkeyframes",name:name,prefix:prefix,line:token.startLine,col:token.startCol}),this._readWhitespace(),tt=tokenStream.peek();tt==Tokens.IDENT||tt==Tokens.PERCENTAGE;)this._keyframe_rule(),this._readWhitespace(),tt=tokenStream.peek();this.fire({type:"endkeyframes",name:name,prefix:prefix,line:token.startLine,col:token.startCol}),this._readWhitespace(),tokenStream.mustMatch(Tokens.RBRACE)},_keyframe_name:function(){var tokenStream=this._tokenStream;return tokenStream.mustMatch([Tokens.IDENT,Tokens.STRING]),SyntaxUnit.fromToken(tokenStream.token())},_keyframe_rule:function(){var keyList=(this._tokenStream,this._key_list());this.fire({type:"startkeyframerule",keys:keyList,line:keyList[0].line,col:keyList[0].col}),this._readDeclarations(!0),this.fire({type:"endkeyframerule",keys:keyList,line:keyList[0].line,col:keyList[0].col})},_key_list:function(){var tokenStream=this._tokenStream,keyList=[];for(keyList.push(this._key()),this._readWhitespace();tokenStream.match(Tokens.COMMA);)this._readWhitespace(),keyList.push(this._key()),this._readWhitespace();return keyList},_key:function(){var token,tokenStream=this._tokenStream;if(tokenStream.match(Tokens.PERCENTAGE))return SyntaxUnit.fromToken(tokenStream.token());if(tokenStream.match(Tokens.IDENT)){if(token=tokenStream.token(),/from|to/i.test(token.value))return SyntaxUnit.fromToken(token);tokenStream.unget()}this._unexpectedToken(tokenStream.LT(1))},_skipCruft:function(){for(;this._tokenStream.match([Tokens.S,Tokens.CDO,Tokens.CDC]););},_readDeclarations:function(checkStart,readMargins){var tt,tokenStream=this._tokenStream;this._readWhitespace(),checkStart&&tokenStream.mustMatch(Tokens.LBRACE),this._readWhitespace();try{for(;;){if(tokenStream.match(Tokens.SEMICOLON)||readMargins&&this._margin());else{if(!this._declaration())break;if(!tokenStream.match(Tokens.SEMICOLON))break}this._readWhitespace()}tokenStream.mustMatch(Tokens.RBRACE),this._readWhitespace()}catch(ex){if(!(ex instanceof SyntaxError)||this.options.strict)throw ex;if(this.fire({type:"error",error:ex,message:ex.message,line:ex.line,col:ex.col}),tt=tokenStream.advance([Tokens.SEMICOLON,Tokens.RBRACE]),tt==Tokens.SEMICOLON)this._readDeclarations(!1,readMargins);else if(tt!=Tokens.RBRACE)throw ex}},_readWhitespace:function(){for(var tokenStream=this._tokenStream,ws="";tokenStream.match(Tokens.S);)ws+=tokenStream.token().value;return ws},_unexpectedToken:function(token){throw new SyntaxError("Unexpected token \'"+token.value+"\' at line "+token.startLine+", col "+token.startCol+".",token.startLine,token.startCol)},_verifyEnd:function(){this._tokenStream.LA(1)!=Tokens.EOF&&this._unexpectedToken(this._tokenStream.LT(1))},_validateProperty:function(property,value){Validation.validate(property,value)},parse:function(input){this._tokenStream=new TokenStream(input,Tokens),this._stylesheet()},parseStyleSheet:function(input){return this.parse(input)},parseMediaQuery:function(input){this._tokenStream=new TokenStream(input,Tokens);var result=this._media_query();return this._verifyEnd(),result},parsePropertyValue:function(input){this._tokenStream=new TokenStream(input,Tokens),this._readWhitespace();var result=this._expr();return this._readWhitespace(),this._verifyEnd(),result},parseRule:function(input){this._tokenStream=new TokenStream(input,Tokens),this._readWhitespace();var result=this._ruleset();return this._readWhitespace(),this._verifyEnd(),result},parseSelector:function(input){this._tokenStream=new TokenStream(input,Tokens),this._readWhitespace();var result=this._selector();return this._readWhitespace(),this._verifyEnd(),result},parseStyleAttribute:function(input){input+="}",this._tokenStream=new TokenStream(input,Tokens),this._readDeclarations()}};for(prop in additions)additions.hasOwnProperty(prop)&&(proto[prop]=additions[prop]);return proto}();var Properties={"align-items":"flex-start | flex-end | center | baseline | stretch","align-content":"flex-start | flex-end | center | space-between | space-around | stretch","align-self":"auto | flex-start | flex-end | center | baseline | stretch","-webkit-align-items":"flex-start | flex-end | center | baseline | stretch","-webkit-align-content":"flex-start | flex-end | center | space-between | space-around | stretch","-webkit-align-self":"auto | flex-start | flex-end | center | baseline | stretch","alignment-adjust":"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | <percentage> | <length>","alignment-baseline":"baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical",animation:1,"animation-delay":{multi:"<time>",comma:!0},"animation-direction":{multi:"normal | reverse | alternate | alternate-reverse",comma:!0},"animation-duration":{multi:"<time>",comma:!0},"animation-fill-mode":{multi:"none | forwards | backwards | both",comma:!0},"animation-iteration-count":{multi:"<number> | infinite",comma:!0},"animation-name":{multi:"none | <ident>",comma:!0},"animation-play-state":{multi:"running | paused",comma:!0},"animation-timing-function":1,"-moz-animation-delay":{multi:"<time>",comma:!0},"-moz-animation-direction":{multi:"normal | reverse | alternate | alternate-reverse",comma:!0},"-moz-animation-duration":{multi:"<time>",comma:!0},"-moz-animation-iteration-count":{multi:"<number> | infinite",comma:!0},"-moz-animation-name":{multi:"none | <ident>",comma:!0},"-moz-animation-play-state":{multi:"running | paused",comma:!0},"-ms-animation-delay":{multi:"<time>",comma:!0},"-ms-animation-direction":{multi:"normal | reverse | alternate | alternate-reverse",comma:!0},"-ms-animation-duration":{multi:"<time>",comma:!0},"-ms-animation-iteration-count":{multi:"<number> | infinite",comma:!0},"-ms-animation-name":{multi:"none | <ident>",comma:!0},"-ms-animation-play-state":{multi:"running | paused",comma:!0},"-webkit-animation-delay":{multi:"<time>",comma:!0},"-webkit-animation-direction":{multi:"normal | reverse | alternate | alternate-reverse",comma:!0},"-webkit-animation-duration":{multi:"<time>",comma:!0},"-webkit-animation-fill-mode":{multi:"none | forwards | backwards | both",comma:!0},"-webkit-animation-iteration-count":{multi:"<number> | infinite",comma:!0},"-webkit-animation-name":{multi:"none | <ident>",comma:!0},"-webkit-animation-play-state":{multi:"running | paused",comma:!0},"-o-animation-delay":{multi:"<time>",comma:!0},"-o-animation-direction":{multi:"normal | reverse | alternate | alternate-reverse",comma:!0},"-o-animation-duration":{multi:"<time>",comma:!0},"-o-animation-iteration-count":{multi:"<number> | infinite",comma:!0},"-o-animation-name":{multi:"none | <ident>",comma:!0},"-o-animation-play-state":{multi:"running | paused",comma:!0},appearance:"icon | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal | none | inherit",azimuth:function(expression){var part,simple="<angle> | leftwards | rightwards | inherit",direction="left-side | far-left | left | center-left | center | center-right | right | far-right | right-side",behind=!1,valid=!1;if(ValidationTypes.isAny(expression,simple)||(ValidationTypes.isAny(expression,"behind")&&(behind=!0,valid=!0),ValidationTypes.isAny(expression,direction)&&(valid=!0,behind||ValidationTypes.isAny(expression,"behind"))),expression.hasNext())throw part=expression.next(),valid?new ValidationError("Expected end of value but found \'"+part+"\'.",part.line,part.col):new ValidationError("Expected (<\'azimuth\'>) but found \'"+part+"\'.",part.line,part.col)},"backface-visibility":"visible | hidden",background:1,"background-attachment":{multi:"<attachment>",comma:!0},"background-clip":{multi:"<box>",comma:!0},"background-color":"<color> | inherit","background-image":{multi:"<bg-image>",comma:!0},"background-origin":{multi:"<box>",comma:!0},"background-position":{multi:"<bg-position>",comma:!0},"background-repeat":{multi:"<repeat-style>"},"background-size":{multi:"<bg-size>",comma:!0},"baseline-shift":"baseline | sub | super | <percentage> | <length>",behavior:1,binding:1,bleed:"<length>","bookmark-label":"<content> | <attr> | <string>","bookmark-level":"none | <integer>","bookmark-state":"open | closed","bookmark-target":"none | <uri> | <attr>",border:"<border-width> || <border-style> || <color>","border-bottom":"<border-width> || <border-style> || <color>","border-bottom-color":"<color> | inherit","border-bottom-left-radius":"<x-one-radius>","border-bottom-right-radius":"<x-one-radius>","border-bottom-style":"<border-style>","border-bottom-width":"<border-width>","border-collapse":"collapse | separate | inherit","border-color":{multi:"<color> | inherit",max:4},"border-image":1,"border-image-outset":{multi:"<length> | <number>",max:4},"border-image-repeat":{multi:"stretch | repeat | round",max:2},"border-image-slice":function(expression){var part,valid=!1,numeric="<number> | <percentage>",fill=!1,count=0,max=4;for(ValidationTypes.isAny(expression,"fill")&&(fill=!0,valid=!0);expression.hasNext()&&max>count&&(valid=ValidationTypes.isAny(expression,numeric));)count++;if(fill?valid=!0:ValidationTypes.isAny(expression,"fill"),expression.hasNext())throw part=expression.next(),valid?new ValidationError("Expected end of value but found \'"+part+"\'.",part.line,part.col):new ValidationError("Expected ([<number> | <percentage>]{1,4} && fill?) but found \'"+part+"\'.",part.line,part.col)},"border-image-source":"<image> | none","border-image-width":{multi:"<length> | <percentage> | <number> | auto",max:4},"border-left":"<border-width> || <border-style> || <color>","border-left-color":"<color> | inherit","border-left-style":"<border-style>","border-left-width":"<border-width>","border-radius":function(expression){for(var part,valid=!1,simple="<length> | <percentage> | inherit",slash=!1,count=0,max=8;expression.hasNext()&&max>count;){if(valid=ValidationTypes.isAny(expression,simple),!valid){if(!("/"==expression.peek()&&count>0)||slash)break;slash=!0,max=count+5,expression.next()}count++}if(expression.hasNext())throw part=expression.next(),valid?new ValidationError("Expected end of value but found \'"+part+"\'.",part.line,part.col):new ValidationError("Expected (<\'border-radius\'>) but found \'"+part+"\'.",part.line,part.col)},"border-right":"<border-width> || <border-style> || <color>","border-right-color":"<color> | inherit","border-right-style":"<border-style>","border-right-width":"<border-width>","border-spacing":{multi:"<length> | inherit",max:2},"border-style":{multi:"<border-style>",max:4},"border-top":"<border-width> || <border-style> || <color>","border-top-color":"<color> | inherit","border-top-left-radius":"<x-one-radius>","border-top-right-radius":"<x-one-radius>","border-top-style":"<border-style>","border-top-width":"<border-width>","border-width":{multi:"<border-width>",max:4},bottom:"<margin-width> | inherit","-moz-box-align":"start | end | center | baseline | stretch","-moz-box-decoration-break":"slice |clone","-moz-box-direction":"normal | reverse | inherit","-moz-box-flex":"<number>","-moz-box-flex-group":"<integer>","-moz-box-lines":"single | multiple","-moz-box-ordinal-group":"<integer>","-moz-box-orient":"horizontal | vertical | inline-axis | block-axis | inherit","-moz-box-pack":"start | end | center | justify","-webkit-box-align":"start | end | center | baseline | stretch","-webkit-box-decoration-break":"slice |clone","-webkit-box-direction":"normal | reverse | inherit","-webkit-box-flex":"<number>","-webkit-box-flex-group":"<integer>","-webkit-box-lines":"single | multiple","-webkit-box-ordinal-group":"<integer>","-webkit-box-orient":"horizontal | vertical | inline-axis | block-axis | inherit","-webkit-box-pack":"start | end | center | justify","box-shadow":function(expression){var part;if(ValidationTypes.isAny(expression,"none")){if(expression.hasNext())throw part=expression.next(),new ValidationError("Expected end of value but found \'"+part+"\'.",part.line,part.col)}else Validation.multiProperty("<shadow>",expression,!0,1/0)},"box-sizing":"content-box | border-box | inherit","break-after":"auto | always | avoid | left | right | page | column | avoid-page | avoid-column","break-before":"auto | always | avoid | left | right | page | column | avoid-page | avoid-column","break-inside":"auto | avoid | avoid-page | avoid-column","caption-side":"top | bottom | inherit",clear:"none | right | left | both | inherit",clip:1,color:"<color> | inherit","color-profile":1,"column-count":"<integer> | auto","column-fill":"auto | balance","column-gap":"<length> | normal","column-rule":"<border-width> || <border-style> || <color>","column-rule-color":"<color>","column-rule-style":"<border-style>","column-rule-width":"<border-width>","column-span":"none | all","column-width":"<length> | auto",columns:1,content:1,"counter-increment":1,"counter-reset":1,crop:"<shape> | auto",cue:"cue-after | cue-before | inherit","cue-after":1,"cue-before":1,cursor:1,direction:"ltr | rtl | inherit",display:"inline | block | list-item | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | grid | inline-grid | none | inherit | -moz-box | -moz-inline-block | -moz-inline-box | -moz-inline-grid | -moz-inline-stack | -moz-inline-table | -moz-grid | -moz-grid-group | -moz-grid-line | -moz-groupbox | -moz-deck | -moz-popup | -moz-stack | -moz-marker | -webkit-box | -webkit-inline-box | -ms-flexbox | -ms-inline-flexbox | flex | -webkit-flex | inline-flex | -webkit-inline-flex","dominant-baseline":1,"drop-initial-after-adjust":"central | middle | after-edge | text-after-edge | ideographic | alphabetic | mathematical | <percentage> | <length>","drop-initial-after-align":"baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical","drop-initial-before-adjust":"before-edge | text-before-edge | central | middle | hanging | mathematical | <percentage> | <length>","drop-initial-before-align":"caps-height | baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical","drop-initial-size":"auto | line | <length> | <percentage>","drop-initial-value":"initial | <integer>",elevation:"<angle> | below | level | above | higher | lower | inherit","empty-cells":"show | hide | inherit",filter:1,fit:"fill | hidden | meet | slice","fit-position":1,flex:"<flex>","flex-basis":"<width>","flex-direction":"row | row-reverse | column | column-reverse","flex-flow":"<flex-direction> || <flex-wrap>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap | wrap | wrap-reverse","-webkit-flex":"<flex>","-webkit-flex-basis":"<width>","-webkit-flex-direction":"row | row-reverse | column | column-reverse","-webkit-flex-flow":"<flex-direction> || <flex-wrap>","-webkit-flex-grow":"<number>","-webkit-flex-shrink":"<number>","-webkit-flex-wrap":"nowrap | wrap | wrap-reverse","-ms-flex":"<flex>","-ms-flex-align":"start | end | center | stretch | baseline","-ms-flex-direction":"row | row-reverse | column | column-reverse | inherit","-ms-flex-order":"<number>","-ms-flex-pack":"start | end | center | justify","-ms-flex-wrap":"nowrap | wrap | wrap-reverse","float":"left | right | none | inherit","float-offset":1,font:1,"font-family":1,"font-size":"<absolute-size> | <relative-size> | <length> | <percentage> | inherit","font-size-adjust":"<number> | none | inherit","font-stretch":"normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | inherit","font-style":"normal | italic | oblique | inherit","font-variant":"normal | small-caps | inherit","font-weight":"normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit","grid-cell-stacking":"columns | rows | layer","grid-column":1,"grid-columns":1,"grid-column-align":"start | end | center | stretch","grid-column-sizing":1,"grid-column-span":"<integer>","grid-flow":"none | rows | columns","grid-layer":"<integer>","grid-row":1,"grid-rows":1,"grid-row-align":"start | end | center | stretch","grid-row-span":"<integer>","grid-row-sizing":1,"hanging-punctuation":1,height:"<margin-width> | <content-sizing> | inherit","hyphenate-after":"<integer> | auto","hyphenate-before":"<integer> | auto","hyphenate-character":"<string> | auto","hyphenate-lines":"no-limit | <integer>","hyphenate-resource":1,hyphens:"none | manual | auto",icon:1,"image-orientation":"angle | auto","image-rendering":1,"image-resolution":1,"inline-box-align":"initial | last | <integer>","justify-content":"flex-start | flex-end | center | space-between | space-around","-webkit-justify-content":"flex-start | flex-end | center | space-between | space-around",left:"<margin-width> | inherit","letter-spacing":"<length> | normal | inherit","line-height":"<number> | <length> | <percentage> | normal | inherit","line-break":"auto | loose | normal | strict","line-stacking":1,"line-stacking-ruby":"exclude-ruby | include-ruby","line-stacking-shift":"consider-shifts | disregard-shifts","line-stacking-strategy":"inline-line-height | block-line-height | max-height | grid-height","list-style":1,"list-style-image":"<uri> | none | inherit","list-style-position":"inside | outside | inherit","list-style-type":"disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | lower-alpha | upper-alpha | none | inherit",margin:{multi:"<margin-width> | inherit",max:4},"margin-bottom":"<margin-width> | inherit","margin-left":"<margin-width> | inherit","margin-right":"<margin-width> | inherit","margin-top":"<margin-width> | inherit",mark:1,"mark-after":1,"mark-before":1,marks:1,"marquee-direction":1,"marquee-play-count":1,"marquee-speed":1,"marquee-style":1,"max-height":"<length> | <percentage> | <content-sizing> | none | inherit","max-width":"<length> | <percentage> | <content-sizing> | none | inherit","min-height":"<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats | inherit","min-width":"<length> | <percentage> | <content-sizing> | contain-floats | -moz-contain-floats | -webkit-contain-floats | inherit","move-to":1,"nav-down":1,"nav-index":1,"nav-left":1,"nav-right":1,"nav-up":1,opacity:"<number> | inherit",order:"<integer>","-webkit-order":"<integer>",orphans:"<integer> | inherit",outline:1,"outline-color":"<color> | invert | inherit","outline-offset":1,"outline-style":"<border-style> | inherit","outline-width":"<border-width> | inherit",overflow:"visible | hidden | scroll | auto | inherit","overflow-style":1,"overflow-wrap":"normal | break-word","overflow-x":1,"overflow-y":1,padding:{multi:"<padding-width> | inherit",max:4},"padding-bottom":"<padding-width> | inherit","padding-left":"<padding-width> | inherit","padding-right":"<padding-width> | inherit","padding-top":"<padding-width> | inherit",page:1,"page-break-after":"auto | always | avoid | left | right | inherit","page-break-before":"auto | always | avoid | left | right | inherit","page-break-inside":"auto | avoid | inherit","page-policy":1,pause:1,"pause-after":1,"pause-before":1,perspective:1,"perspective-origin":1,phonemes:1,pitch:1,"pitch-range":1,"play-during":1,"pointer-events":"auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit",position:"static | relative | absolute | fixed | inherit","presentation-level":1,"punctuation-trim":1,quotes:1,"rendering-intent":1,resize:1,rest:1,"rest-after":1,"rest-before":1,richness:1,right:"<margin-width> | inherit",rotation:1,"rotation-point":1,"ruby-align":1,"ruby-overhang":1,"ruby-position":1,"ruby-span":1,size:1,speak:"normal | none | spell-out | inherit","speak-header":"once | always | inherit","speak-numeral":"digits | continuous | inherit","speak-punctuation":"code | none | inherit","speech-rate":1,src:1,stress:1,"string-set":1,"table-layout":"auto | fixed | inherit","tab-size":"<integer> | <length>",target:1,"target-name":1,"target-new":1,"target-position":1,"text-align":"left | right | center | justify | inherit","text-align-last":1,"text-decoration":1,"text-emphasis":1,"text-height":1,"text-indent":"<length> | <percentage> | inherit","text-justify":"auto | none | inter-word | inter-ideograph | inter-cluster | distribute | kashida","text-outline":1,"text-overflow":1,"text-rendering":"auto | optimizeSpeed | optimizeLegibility | geometricPrecision | inherit","text-shadow":1,"text-transform":"capitalize | uppercase | lowercase | none | inherit","text-wrap":"normal | none | avoid",top:"<margin-width> | inherit","-ms-touch-action":"auto | none | pan-x | pan-y","touch-action":"auto | none | pan-x | pan-y",transform:1,"transform-origin":1,"transform-style":1,transition:1,"transition-delay":1,"transition-duration":1,"transition-property":1,"transition-timing-function":1,"unicode-bidi":"normal | embed | isolate | bidi-override | isolate-override | plaintext | inherit","user-modify":"read-only | read-write | write-only | inherit","user-select":"none | text | toggle | element | elements | all | inherit","vertical-align":"auto | use-script | baseline | sub | super | top | text-top | central | middle | bottom | text-bottom | <percentage> | <length>",visibility:"visible | hidden | collapse | inherit","voice-balance":1,"voice-duration":1,"voice-family":1,"voice-pitch":1,"voice-pitch-range":1,"voice-rate":1,"voice-stress":1,"voice-volume":1,volume:1,"white-space":"normal | pre | nowrap | pre-wrap | pre-line | inherit | -pre-wrap | -o-pre-wrap | -moz-pre-wrap | -hp-pre-wrap","white-space-collapse":1,widows:"<integer> | inherit",width:"<length> | <percentage> | <content-sizing> | auto | inherit","word-break":"normal | keep-all | break-all","word-spacing":"<length> | normal | inherit","word-wrap":"normal | break-word","writing-mode":"horizontal-tb | vertical-rl | vertical-lr | lr-tb | rl-tb | tb-rl | bt-rl | tb-lr | bt-lr | lr-bt | rl-bt | lr | rl | tb | inherit","z-index":"<integer> | auto | inherit",zoom:"<number> | <percentage> | normal"};PropertyName.prototype=new SyntaxUnit,PropertyName.prototype.constructor=PropertyName,PropertyName.prototype.toString=function(){return(this.hack?this.hack:"")+this.text},PropertyValue.prototype=new SyntaxUnit,PropertyValue.prototype.constructor=PropertyValue,PropertyValueIterator.prototype.count=function(){return this._parts.length},PropertyValueIterator.prototype.isFirst=function(){return 0===this._i},PropertyValueIterator.prototype.hasNext=function(){return this._i<this._parts.length},PropertyValueIterator.prototype.mark=function(){this._marks.push(this._i)},PropertyValueIterator.prototype.peek=function(count){return this.hasNext()?this._parts[this._i+(count||0)]:null},PropertyValueIterator.prototype.next=function(){return this.hasNext()?this._parts[this._i++]:null},PropertyValueIterator.prototype.previous=function(){return this._i>0?this._parts[--this._i]:null},PropertyValueIterator.prototype.restore=function(){this._marks.length&&(this._i=this._marks.pop())},PropertyValuePart.prototype=new SyntaxUnit,PropertyValuePart.prototype.constructor=PropertyValuePart,PropertyValuePart.fromToken=function(token){return new PropertyValuePart(token.value,token.startLine,token.startCol)};var Pseudos={":first-letter":1,":first-line":1,":before":1,":after":1};Pseudos.ELEMENT=1,Pseudos.CLASS=2,Pseudos.isElement=function(pseudo){return 0===pseudo.indexOf("::")||Pseudos[pseudo.toLowerCase()]==Pseudos.ELEMENT},Selector.prototype=new SyntaxUnit,Selector.prototype.constructor=Selector,SelectorPart.prototype=new SyntaxUnit,SelectorPart.prototype.constructor=SelectorPart,SelectorSubPart.prototype=new SyntaxUnit,SelectorSubPart.prototype.constructor=SelectorSubPart,Specificity.prototype={constructor:Specificity,compare:function(other){var i,len,comps=["a","b","c","d"];for(i=0,len=comps.length;len>i;i++){if(this[comps[i]]<other[comps[i]])return-1;if(this[comps[i]]>other[comps[i]])return 1}return 0},valueOf:function(){return 1e3*this.a+100*this.b+10*this.c+this.d},toString:function(){return this.a+","+this.b+","+this.c+","+this.d}},Specificity.calculate=function(selector){function updateValues(part){var i,j,len,num,modifier,elementName=part.elementName?part.elementName.text:"";for(elementName&&"*"!=elementName.charAt(elementName.length-1)&&d++,i=0,len=part.modifiers.length;len>i;i++)switch(modifier=part.modifiers[i],modifier.type){case"class":case"attribute":c++;break;case"id":b++;break;case"pseudo":Pseudos.isElement(modifier.text)?d++:c++;break;case"not":for(j=0,num=modifier.args.length;num>j;j++)updateValues(modifier.args[j])}}var i,len,part,b=0,c=0,d=0;for(i=0,len=selector.parts.length;len>i;i++)part=selector.parts[i],part instanceof SelectorPart&&updateValues(part);return new Specificity(0,b,c,d)};var h=/^[0-9a-fA-F]$/,nonascii=/^[\\u0080-\\uFFFF]$/,nl=/\\n|\\r\\n|\\r|\\f/;TokenStream.prototype=mix(new TokenStreamBase,{_getToken:function(){var c,reader=this._reader,token=null,startLine=reader.getLine(),startCol=reader.getCol();for(c=reader.read();c;){switch(c){case"/":token="*"==reader.peek()?this.commentToken(c,startLine,startCol):this.charToken(c,startLine,startCol);break;case"|":case"~":case"^":case"$":case"*":token="="==reader.peek()?this.comparisonToken(c,startLine,startCol):this.charToken(c,startLine,startCol);break;case\'"\':case"\'":token=this.stringToken(c,startLine,startCol);break;case"#":token=isNameChar(reader.peek())?this.hashToken(c,startLine,startCol):this.charToken(c,startLine,startCol);break;case".":token=isDigit(reader.peek())?this.numberToken(c,startLine,startCol):this.charToken(c,startLine,startCol);break;case"-":token="-"==reader.peek()?this.htmlCommentEndToken(c,startLine,startCol):isNameStart(reader.peek())?this.identOrFunctionToken(c,startLine,startCol):this.charToken(c,startLine,startCol);break;case"!":token=this.importantToken(c,startLine,startCol);break;case"@":token=this.atRuleToken(c,startLine,startCol);break;case":":token=this.notToken(c,startLine,startCol);break;case"<":token=this.htmlCommentStartToken(c,startLine,startCol);break;case"U":case"u":if("+"==reader.peek()){token=this.unicodeRangeToken(c,startLine,startCol);break}default:token=isDigit(c)?this.numberToken(c,startLine,startCol):isWhitespace(c)?this.whitespaceToken(c,startLine,startCol):isIdentStart(c)?this.identOrFunctionToken(c,startLine,startCol):this.charToken(c,startLine,startCol)}break}return token||null!==c||(token=this.createToken(Tokens.EOF,null,startLine,startCol)),token},createToken:function(tt,value,startLine,startCol,options){var reader=this._reader;return options=options||{},{value:value,type:tt,channel:options.channel,endChar:options.endChar,hide:options.hide||!1,startLine:startLine,startCol:startCol,endLine:reader.getLine(),endCol:reader.getCol()}},atRuleToken:function(first,startLine,startCol){var ident,rule=first,reader=this._reader,tt=Tokens.CHAR;return reader.mark(),ident=this.readName(),rule=first+ident,tt=Tokens.type(rule.toLowerCase()),(tt==Tokens.CHAR||tt==Tokens.UNKNOWN)&&(rule.length>1?tt=Tokens.UNKNOWN_SYM:(tt=Tokens.CHAR,rule=first,reader.reset())),this.createToken(tt,rule,startLine,startCol)},charToken:function(c,startLine,startCol){var tt=Tokens.type(c),opts={};return-1==tt?tt=Tokens.CHAR:opts.endChar=Tokens[tt].endChar,this.createToken(tt,c,startLine,startCol,opts)},commentToken:function(first,startLine,startCol){var comment=(this._reader,this.readComment(first));return this.createToken(Tokens.COMMENT,comment,startLine,startCol)},comparisonToken:function(c,startLine,startCol){var reader=this._reader,comparison=c+reader.read(),tt=Tokens.type(comparison)||Tokens.CHAR;return this.createToken(tt,comparison,startLine,startCol)\n},hashToken:function(first,startLine,startCol){var name=(this._reader,this.readName(first));return this.createToken(Tokens.HASH,name,startLine,startCol)},htmlCommentStartToken:function(first,startLine,startCol){var reader=this._reader,text=first;return reader.mark(),text+=reader.readCount(3),"\x3c!--"==text?this.createToken(Tokens.CDO,text,startLine,startCol):(reader.reset(),this.charToken(first,startLine,startCol))},htmlCommentEndToken:function(first,startLine,startCol){var reader=this._reader,text=first;return reader.mark(),text+=reader.readCount(2),"--\x3e"==text?this.createToken(Tokens.CDC,text,startLine,startCol):(reader.reset(),this.charToken(first,startLine,startCol))},identOrFunctionToken:function(first,startLine,startCol){var reader=this._reader,ident=this.readName(first),tt=Tokens.IDENT;return"("==reader.peek()?(ident+=reader.read(),"url("==ident.toLowerCase()?(tt=Tokens.URI,ident=this.readURI(ident),"url("==ident.toLowerCase()&&(tt=Tokens.FUNCTION)):tt=Tokens.FUNCTION):":"==reader.peek()&&"progid"==ident.toLowerCase()&&(ident+=reader.readTo("("),tt=Tokens.IE_FUNCTION),this.createToken(tt,ident,startLine,startCol)},importantToken:function(first,startLine,startCol){var temp,c,reader=this._reader,important=first,tt=Tokens.CHAR;for(reader.mark(),c=reader.read();c;){if("/"==c){if("*"!=reader.peek())break;if(temp=this.readComment(c),""===temp)break}else{if(!isWhitespace(c)){if(/i/i.test(c)){temp=reader.readCount(8),/mportant/i.test(temp)&&(important+=c+temp,tt=Tokens.IMPORTANT_SYM);break}break}important+=c+this.readWhitespace()}c=reader.read()}return tt==Tokens.CHAR?(reader.reset(),this.charToken(first,startLine,startCol)):this.createToken(tt,important,startLine,startCol)},notToken:function(first,startLine,startCol){var reader=this._reader,text=first;return reader.mark(),text+=reader.readCount(4),":not("==text.toLowerCase()?this.createToken(Tokens.NOT,text,startLine,startCol):(reader.reset(),this.charToken(first,startLine,startCol))},numberToken:function(first,startLine,startCol){var ident,reader=this._reader,value=this.readNumber(first),tt=Tokens.NUMBER,c=reader.peek();return isIdentStart(c)?(ident=this.readName(reader.read()),value+=ident,tt=/^em$|^ex$|^px$|^gd$|^rem$|^vw$|^vh$|^vmax$|^vmin$|^ch$|^cm$|^mm$|^in$|^pt$|^pc$/i.test(ident)?Tokens.LENGTH:/^deg|^rad$|^grad$/i.test(ident)?Tokens.ANGLE:/^ms$|^s$/i.test(ident)?Tokens.TIME:/^hz$|^khz$/i.test(ident)?Tokens.FREQ:/^dpi$|^dpcm$/i.test(ident)?Tokens.RESOLUTION:Tokens.DIMENSION):"%"==c&&(value+=reader.read(),tt=Tokens.PERCENTAGE),this.createToken(tt,value,startLine,startCol)},stringToken:function(first,startLine,startCol){for(var delim=first,string=first,reader=this._reader,prev=first,tt=Tokens.STRING,c=reader.read();c&&(string+=c,c!=delim||"\\\\"==prev);){if(isNewLine(reader.peek())&&"\\\\"!=c){tt=Tokens.INVALID;break}prev=c,c=reader.read()}return null===c&&(tt=Tokens.INVALID),this.createToken(tt,string,startLine,startCol)},unicodeRangeToken:function(first,startLine,startCol){var temp,reader=this._reader,value=first,tt=Tokens.CHAR;return"+"==reader.peek()&&(reader.mark(),value+=reader.read(),value+=this.readUnicodeRangePart(!0),2==value.length?reader.reset():(tt=Tokens.UNICODE_RANGE,-1==value.indexOf("?")&&"-"==reader.peek()&&(reader.mark(),temp=reader.read(),temp+=this.readUnicodeRangePart(!1),1==temp.length?reader.reset():value+=temp))),this.createToken(tt,value,startLine,startCol)},whitespaceToken:function(first,startLine,startCol){var value=(this._reader,first+this.readWhitespace());return this.createToken(Tokens.S,value,startLine,startCol)},readUnicodeRangePart:function(allowQuestionMark){for(var reader=this._reader,part="",c=reader.peek();isHexDigit(c)&&6>part.length;)reader.read(),part+=c,c=reader.peek();if(allowQuestionMark)for(;"?"==c&&6>part.length;)reader.read(),part+=c,c=reader.peek();return part},readWhitespace:function(){for(var reader=this._reader,whitespace="",c=reader.peek();isWhitespace(c);)reader.read(),whitespace+=c,c=reader.peek();return whitespace},readNumber:function(first){for(var reader=this._reader,number=first,hasDot="."==first,c=reader.peek();c;){if(isDigit(c))number+=reader.read();else{if("."!=c)break;if(hasDot)break;hasDot=!0,number+=reader.read()}c=reader.peek()}return number},readString:function(){for(var reader=this._reader,delim=reader.read(),string=delim,prev=delim,c=reader.peek();c&&(c=reader.read(),string+=c,c!=delim||"\\\\"==prev);){if(isNewLine(reader.peek())&&"\\\\"!=c){string="";break}prev=c,c=reader.peek()}return null===c&&(string=""),string},readURI:function(first){var reader=this._reader,uri=first,inner="",c=reader.peek();for(reader.mark();c&&isWhitespace(c);)reader.read(),c=reader.peek();for(inner="\'"==c||\'"\'==c?this.readString():this.readURL(),c=reader.peek();c&&isWhitespace(c);)reader.read(),c=reader.peek();return""===inner||")"!=c?(uri=first,reader.reset()):uri+=inner+reader.read(),uri},readURL:function(){for(var reader=this._reader,url="",c=reader.peek();/^[!#$%&\\\\*-~]$/.test(c);)url+=reader.read(),c=reader.peek();return url},readName:function(first){for(var reader=this._reader,ident=first||"",c=reader.peek();;)if("\\\\"==c)ident+=this.readEscape(reader.read()),c=reader.peek();else{if(!c||!isNameChar(c))break;ident+=reader.read(),c=reader.peek()}return ident},readEscape:function(first){var reader=this._reader,cssEscape=first||"",i=0,c=reader.peek();if(isHexDigit(c))do cssEscape+=reader.read(),c=reader.peek();while(c&&isHexDigit(c)&&6>++i);return 3==cssEscape.length&&/\\s/.test(c)||7==cssEscape.length||1==cssEscape.length?reader.read():c="",cssEscape+c},readComment:function(first){var reader=this._reader,comment=first||"",c=reader.read();if("*"==c){for(;c;){if(comment+=c,comment.length>2&&"*"==c&&"/"==reader.peek()){comment+=reader.read();break}c=reader.read()}return comment}return""}});var Tokens=[{name:"CDO"},{name:"CDC"},{name:"S",whitespace:!0},{name:"COMMENT",comment:!0,hide:!0,channel:"comment"},{name:"INCLUDES",text:"~="},{name:"DASHMATCH",text:"|="},{name:"PREFIXMATCH",text:"^="},{name:"SUFFIXMATCH",text:"$="},{name:"SUBSTRINGMATCH",text:"*="},{name:"STRING"},{name:"IDENT"},{name:"HASH"},{name:"IMPORT_SYM",text:"@import"},{name:"PAGE_SYM",text:"@page"},{name:"MEDIA_SYM",text:"@media"},{name:"FONT_FACE_SYM",text:"@font-face"},{name:"CHARSET_SYM",text:"@charset"},{name:"NAMESPACE_SYM",text:"@namespace"},{name:"VIEWPORT_SYM",text:["@viewport","@-ms-viewport"]},{name:"UNKNOWN_SYM"},{name:"KEYFRAMES_SYM",text:["@keyframes","@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"]},{name:"IMPORTANT_SYM"},{name:"LENGTH"},{name:"ANGLE"},{name:"TIME"},{name:"FREQ"},{name:"DIMENSION"},{name:"PERCENTAGE"},{name:"NUMBER"},{name:"URI"},{name:"FUNCTION"},{name:"UNICODE_RANGE"},{name:"INVALID"},{name:"PLUS",text:"+"},{name:"GREATER",text:">"},{name:"COMMA",text:","},{name:"TILDE",text:"~"},{name:"NOT"},{name:"TOPLEFTCORNER_SYM",text:"@top-left-corner"},{name:"TOPLEFT_SYM",text:"@top-left"},{name:"TOPCENTER_SYM",text:"@top-center"},{name:"TOPRIGHT_SYM",text:"@top-right"},{name:"TOPRIGHTCORNER_SYM",text:"@top-right-corner"},{name:"BOTTOMLEFTCORNER_SYM",text:"@bottom-left-corner"},{name:"BOTTOMLEFT_SYM",text:"@bottom-left"},{name:"BOTTOMCENTER_SYM",text:"@bottom-center"},{name:"BOTTOMRIGHT_SYM",text:"@bottom-right"},{name:"BOTTOMRIGHTCORNER_SYM",text:"@bottom-right-corner"},{name:"LEFTTOP_SYM",text:"@left-top"},{name:"LEFTMIDDLE_SYM",text:"@left-middle"},{name:"LEFTBOTTOM_SYM",text:"@left-bottom"},{name:"RIGHTTOP_SYM",text:"@right-top"},{name:"RIGHTMIDDLE_SYM",text:"@right-middle"},{name:"RIGHTBOTTOM_SYM",text:"@right-bottom"},{name:"RESOLUTION",state:"media"},{name:"IE_FUNCTION"},{name:"CHAR"},{name:"PIPE",text:"|"},{name:"SLASH",text:"/"},{name:"MINUS",text:"-"},{name:"STAR",text:"*"},{name:"LBRACE",endChar:"}",text:"{"},{name:"RBRACE",text:"}"},{name:"LBRACKET",endChar:"]",text:"["},{name:"RBRACKET",text:"]"},{name:"EQUALS",text:"="},{name:"COLON",text:":"},{name:"SEMICOLON",text:";"},{name:"LPAREN",endChar:")",text:"("},{name:"RPAREN",text:")"},{name:"DOT",text:"."}];(function(){var nameMap=[],typeMap={};Tokens.UNKNOWN=-1,Tokens.unshift({name:"EOF"});for(var i=0,len=Tokens.length;len>i;i++)if(nameMap.push(Tokens[i].name),Tokens[Tokens[i].name]=i,Tokens[i].text)if(Tokens[i].text instanceof Array)for(var j=0;Tokens[i].text.length>j;j++)typeMap[Tokens[i].text[j]]=i;else typeMap[Tokens[i].text]=i;Tokens.name=function(tt){return nameMap[tt]},Tokens.type=function(c){return typeMap[c]||-1}})();var Validation={validate:function(property,value){var name=(""+property).toLowerCase(),expression=(value.parts,new PropertyValueIterator(value)),spec=Properties[name];if(spec)"number"!=typeof spec&&("string"==typeof spec?spec.indexOf("||")>-1?this.groupProperty(spec,expression):this.singleProperty(spec,expression,1):spec.multi?this.multiProperty(spec.multi,expression,spec.comma,spec.max||1/0):"function"==typeof spec&&spec(expression));else if(0!==name.indexOf("-"))throw new ValidationError("Unknown property \'"+property+"\'.",property.line,property.col)},singleProperty:function(types,expression,max){for(var part,result=!1,value=expression.value,count=0;expression.hasNext()&&max>count&&(result=ValidationTypes.isAny(expression,types));)count++;if(!result)throw expression.hasNext()&&!expression.isFirst()?(part=expression.peek(),new ValidationError("Expected end of value but found \'"+part+"\'.",part.line,part.col)):new ValidationError("Expected ("+types+") but found \'"+value+"\'.",value.line,value.col);if(expression.hasNext())throw part=expression.next(),new ValidationError("Expected end of value but found \'"+part+"\'.",part.line,part.col)},multiProperty:function(types,expression,comma,max){for(var part,result=!1,value=expression.value,count=0;expression.hasNext()&&!result&&max>count&&ValidationTypes.isAny(expression,types);)if(count++,expression.hasNext()){if(comma){if(","!=expression.peek())break;part=expression.next()}}else result=!0;if(!result)throw expression.hasNext()&&!expression.isFirst()?(part=expression.peek(),new ValidationError("Expected end of value but found \'"+part+"\'.",part.line,part.col)):(part=expression.previous(),comma&&","==part?new ValidationError("Expected end of value but found \'"+part+"\'.",part.line,part.col):new ValidationError("Expected ("+types+") but found \'"+value+"\'.",value.line,value.col));if(expression.hasNext())throw part=expression.next(),new ValidationError("Expected end of value but found \'"+part+"\'.",part.line,part.col)},groupProperty:function(types,expression){for(var name,part,result=!1,value=expression.value,typeCount=types.split("||").length,groups={count:0},partial=!1;expression.hasNext()&&!result&&(name=ValidationTypes.isAnyOfGroup(expression,types))&&!groups[name];)groups[name]=1,groups.count++,partial=!0,groups.count!=typeCount&&expression.hasNext()||(result=!0);if(!result)throw partial&&expression.hasNext()?(part=expression.peek(),new ValidationError("Expected end of value but found \'"+part+"\'.",part.line,part.col)):new ValidationError("Expected ("+types+") but found \'"+value+"\'.",value.line,value.col);if(expression.hasNext())throw part=expression.next(),new ValidationError("Expected end of value but found \'"+part+"\'.",part.line,part.col)}};ValidationError.prototype=Error();var ValidationTypes={isLiteral:function(part,literals){var i,len,text=(""+part.text).toLowerCase(),args=literals.split(" | "),found=!1;for(i=0,len=args.length;len>i&&!found;i++)text==args[i].toLowerCase()&&(found=!0);return found},isSimple:function(type){return!!this.simple[type]},isComplex:function(type){return!!this.complex[type]},isAny:function(expression,types){var i,len,args=types.split(" | "),found=!1;for(i=0,len=args.length;len>i&&!found&&expression.hasNext();i++)found=this.isType(expression,args[i]);return found},isAnyOfGroup:function(expression,types){var i,len,args=types.split(" || "),found=!1;for(i=0,len=args.length;len>i&&!found;i++)found=this.isType(expression,args[i]);return found?args[i-1]:!1},isType:function(expression,type){var part=expression.peek(),result=!1;return"<"!=type.charAt(0)?(result=this.isLiteral(part,type),result&&expression.next()):this.simple[type]?(result=this.simple[type](part),result&&expression.next()):result=this.complex[type](expression),result},simple:{"<absolute-size>":function(part){return ValidationTypes.isLiteral(part,"xx-small | x-small | small | medium | large | x-large | xx-large")},"<attachment>":function(part){return ValidationTypes.isLiteral(part,"scroll | fixed | local")},"<attr>":function(part){return"function"==part.type&&"attr"==part.name},"<bg-image>":function(part){return this["<image>"](part)||this["<gradient>"](part)||"none"==part},"<gradient>":function(part){return"function"==part.type&&/^(?:\\-(?:ms|moz|o|webkit)\\-)?(?:repeating\\-)?(?:radial\\-|linear\\-)?gradient/i.test(part)},"<box>":function(part){return ValidationTypes.isLiteral(part,"padding-box | border-box | content-box")},"<content>":function(part){return"function"==part.type&&"content"==part.name},"<relative-size>":function(part){return ValidationTypes.isLiteral(part,"smaller | larger")},"<ident>":function(part){return"identifier"==part.type},"<length>":function(part){return"function"==part.type&&/^(?:\\-(?:ms|moz|o|webkit)\\-)?calc/i.test(part)?!0:"length"==part.type||"number"==part.type||"integer"==part.type||"0"==part},"<color>":function(part){return"color"==part.type||"transparent"==part},"<number>":function(part){return"number"==part.type||this["<integer>"](part)},"<integer>":function(part){return"integer"==part.type},"<line>":function(part){return"integer"==part.type},"<angle>":function(part){return"angle"==part.type},"<uri>":function(part){return"uri"==part.type},"<image>":function(part){return this["<uri>"](part)},"<percentage>":function(part){return"percentage"==part.type||"0"==part},"<border-width>":function(part){return this["<length>"](part)||ValidationTypes.isLiteral(part,"thin | medium | thick")},"<border-style>":function(part){return ValidationTypes.isLiteral(part,"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset")},"<content-sizing>":function(part){return ValidationTypes.isLiteral(part,"fill-available | -moz-available | -webkit-fill-available | max-content | -moz-max-content | -webkit-max-content | min-content | -moz-min-content | -webkit-min-content | fit-content | -moz-fit-content | -webkit-fit-content")},"<margin-width>":function(part){return this["<length>"](part)||this["<percentage>"](part)||ValidationTypes.isLiteral(part,"auto")},"<padding-width>":function(part){return this["<length>"](part)||this["<percentage>"](part)},"<shape>":function(part){return"function"==part.type&&("rect"==part.name||"inset-rect"==part.name)},"<time>":function(part){return"time"==part.type},"<flex-grow>":function(part){return this["<number>"](part)},"<flex-shrink>":function(part){return this["<number>"](part)},"<width>":function(part){return this["<margin-width>"](part)},"<flex-basis>":function(part){return this["<width>"](part)},"<flex-direction>":function(part){return ValidationTypes.isLiteral(part,"row | row-reverse | column | column-reverse")},"<flex-wrap>":function(part){return ValidationTypes.isLiteral(part,"nowrap | wrap | wrap-reverse")}},complex:{"<bg-position>":function(expression){for(var result=!1,numeric="<percentage> | <length>",xDir="left | right",yDir="top | bottom",count=0;expression.peek(count)&&","!=expression.peek(count);)count++;return 3>count?ValidationTypes.isAny(expression,xDir+" | center | "+numeric)?(result=!0,ValidationTypes.isAny(expression,yDir+" | center | "+numeric)):ValidationTypes.isAny(expression,yDir)&&(result=!0,ValidationTypes.isAny(expression,xDir+" | center")):ValidationTypes.isAny(expression,xDir)?ValidationTypes.isAny(expression,yDir)?(result=!0,ValidationTypes.isAny(expression,numeric)):ValidationTypes.isAny(expression,numeric)&&(ValidationTypes.isAny(expression,yDir)?(result=!0,ValidationTypes.isAny(expression,numeric)):ValidationTypes.isAny(expression,"center")&&(result=!0)):ValidationTypes.isAny(expression,yDir)?ValidationTypes.isAny(expression,xDir)?(result=!0,ValidationTypes.isAny(expression,numeric)):ValidationTypes.isAny(expression,numeric)&&(ValidationTypes.isAny(expression,xDir)?(result=!0,ValidationTypes.isAny(expression,numeric)):ValidationTypes.isAny(expression,"center")&&(result=!0)):ValidationTypes.isAny(expression,"center")&&ValidationTypes.isAny(expression,xDir+" | "+yDir)&&(result=!0,ValidationTypes.isAny(expression,numeric)),result},"<bg-size>":function(expression){var result=!1,numeric="<percentage> | <length> | auto";return ValidationTypes.isAny(expression,"cover | contain")?result=!0:ValidationTypes.isAny(expression,numeric)&&(result=!0,ValidationTypes.isAny(expression,numeric)),result},"<repeat-style>":function(expression){var part,result=!1,values="repeat | space | round | no-repeat";return expression.hasNext()&&(part=expression.next(),ValidationTypes.isLiteral(part,"repeat-x | repeat-y")?result=!0:ValidationTypes.isLiteral(part,values)&&(result=!0,expression.hasNext()&&ValidationTypes.isLiteral(expression.peek(),values)&&expression.next())),result},"<shadow>":function(expression){var result=!1,count=0,inset=!1,color=!1;if(expression.hasNext()){for(ValidationTypes.isAny(expression,"inset")&&(inset=!0),ValidationTypes.isAny(expression,"<color>")&&(color=!0);ValidationTypes.isAny(expression,"<length>")&&4>count;)count++;expression.hasNext()&&(color||ValidationTypes.isAny(expression,"<color>"),inset||ValidationTypes.isAny(expression,"inset")),result=count>=2&&4>=count}return result},"<x-one-radius>":function(expression){var result=!1,simple="<length> | <percentage> | inherit";return ValidationTypes.isAny(expression,simple)&&(result=!0,ValidationTypes.isAny(expression,simple)),result},"<flex>":function(expression){var part,result=!1;if(ValidationTypes.isAny(expression,"none | inherit")?result=!0:ValidationTypes.isType(expression,"<flex-grow>")?expression.peek()?ValidationTypes.isType(expression,"<flex-shrink>")?result=expression.peek()?ValidationTypes.isType(expression,"<flex-basis>"):!0:ValidationTypes.isType(expression,"<flex-basis>")&&(result=null===expression.peek()):result=!0:ValidationTypes.isType(expression,"<flex-basis>")&&(result=!0),!result)throw part=expression.peek(),new ValidationError("Expected (none | [ <flex-grow> <flex-shrink>? || <flex-basis> ]) but found \'"+expression.value.text+"\'.",part.line,part.col);return result}}};parserlib.css={Colors:Colors,Combinator:Combinator,Parser:Parser,PropertyName:PropertyName,PropertyValue:PropertyValue,PropertyValuePart:PropertyValuePart,MediaFeature:MediaFeature,MediaQuery:MediaQuery,Selector:Selector,SelectorPart:SelectorPart,SelectorSubPart:SelectorSubPart,Specificity:Specificity,TokenStream:TokenStream,Tokens:Tokens,ValidationError:ValidationError}}(),function(){for(var prop in parserlib)exports[prop]=parserlib[prop]}();var util={isArray:function(ar){return Array.isArray(ar)||"object"==typeof ar&&"[object Array]"===objectToString(ar)},isDate:function(d){return"object"==typeof d&&"[object Date]"===objectToString(d)},isRegExp:function(re){return"object"==typeof re&&"[object RegExp]"===objectToString(re)},getRegExpFlags:function(re){var flags="";return re.global&&(flags+="g"),re.ignoreCase&&(flags+="i"),re.multiline&&(flags+="m"),flags}};"object"==typeof module&&(module.exports=clone),clone.clonePrototype=function(parent){if(null===parent)return null;var c=function(){};return c.prototype=parent,new c};var CSSLint=function(){function applyEmbeddedRuleset(text,ruleset){var valueMap,embedded=text&&text.match(embeddedRuleset),rules=embedded&&embedded[1];return rules&&(valueMap={"true":2,"":1,"false":0,2:2,1:1,0:0},rules.toLowerCase().split(",").forEach(function(rule){var pair=rule.split(":"),property=pair[0]||"",value=pair[1]||"";ruleset[property.trim()]=valueMap[value.trim()]})),ruleset}var rules=[],formatters=[],embeddedRuleset=/\\/\\*csslint([^\\*]*)\\*\\//,api=new parserlib.util.EventTarget;return api.version="@VERSION@",api.addRule=function(rule){rules.push(rule),rules[rule.id]=rule},api.clearRules=function(){rules=[]},api.getRules=function(){return[].concat(rules).sort(function(a,b){return a.id>b.id?1:0})},api.getRuleset=function(){for(var ruleset={},i=0,len=rules.length;len>i;)ruleset[rules[i++].id]=1;return ruleset},api.addFormatter=function(formatter){formatters[formatter.id]=formatter},api.getFormatter=function(formatId){return formatters[formatId]},api.format=function(results,filename,formatId,options){var formatter=this.getFormatter(formatId),result=null;return formatter&&(result=formatter.startFormat(),result+=formatter.formatResults(results,filename,options||{}),result+=formatter.endFormat()),result},api.hasFormat=function(formatId){return formatters.hasOwnProperty(formatId)},api.verify=function(text,ruleset){var reporter,lines,report,i=0,parser=new parserlib.css.Parser({starHack:!0,ieFilters:!0,underscoreHack:!0,strict:!1});lines=text.replace(/\\n\\r?/g,"$split$").split("$split$"),ruleset||(ruleset=this.getRuleset()),embeddedRuleset.test(text)&&(ruleset=clone(ruleset),ruleset=applyEmbeddedRuleset(text,ruleset)),reporter=new Reporter(lines,ruleset),ruleset.errors=2;for(i in ruleset)ruleset.hasOwnProperty(i)&&ruleset[i]&&rules[i]&&rules[i].init(parser,reporter);try{parser.parse(text)}catch(ex){reporter.error("Fatal error, cannot continue: "+ex.message,ex.line,ex.col,{})}return report={messages:reporter.messages,stats:reporter.stats,ruleset:reporter.ruleset},report.messages.sort(function(a,b){return a.rollup&&!b.rollup?1:!a.rollup&&b.rollup?-1:a.line-b.line}),report},api}();Reporter.prototype={constructor:Reporter,error:function(message,line,col,rule){this.messages.push({type:"error",line:line,col:col,message:message,evidence:this.lines[line-1],rule:rule||{}})},warn:function(message,line,col,rule){this.report(message,line,col,rule)},report:function(message,line,col,rule){this.messages.push({type:2===this.ruleset[rule.id]?"error":"warning",line:line,col:col,message:message,evidence:this.lines[line-1],rule:rule})},info:function(message,line,col,rule){this.messages.push({type:"info",line:line,col:col,message:message,evidence:this.lines[line-1],rule:rule})},rollupError:function(message,rule){this.messages.push({type:"error",rollup:!0,message:message,rule:rule})},rollupWarn:function(message,rule){this.messages.push({type:"warning",rollup:!0,message:message,rule:rule})},stat:function(name,value){this.stats[name]=value}},CSSLint._Reporter=Reporter,CSSLint.Util={mix:function(receiver,supplier){var prop;for(prop in supplier)supplier.hasOwnProperty(prop)&&(receiver[prop]=supplier[prop]);return prop},indexOf:function(values,value){if(values.indexOf)return values.indexOf(value);for(var i=0,len=values.length;len>i;i++)if(values[i]===value)return i;return-1},forEach:function(values,func){if(values.forEach)return values.forEach(func);for(var i=0,len=values.length;len>i;i++)func(values[i],i,values)}},CSSLint.addRule({id:"adjoining-classes",name:"Disallow adjoining classes",desc:"Don\'t use adjoining classes.",browsers:"IE6",init:function(parser,reporter){var rule=this;parser.addListener("startrule",function(event){var selector,part,modifier,classCount,i,j,k,selectors=event.selectors;for(i=0;selectors.length>i;i++)for(selector=selectors[i],j=0;selector.parts.length>j;j++)if(part=selector.parts[j],part.type===parser.SELECTOR_PART_TYPE)for(classCount=0,k=0;part.modifiers.length>k;k++)modifier=part.modifiers[k],"class"===modifier.type&&classCount++,classCount>1&&reporter.report("Don\'t use adjoining classes.",part.line,part.col,rule)})}}),CSSLint.addRule({id:"box-model",name:"Beware of broken box size",desc:"Don\'t use width or height when using padding or border.",browsers:"All",init:function(parser,reporter){function startRule(){properties={},boxSizing=!1}function endRule(){var prop,value;if(!boxSizing){if(properties.height)for(prop in heightProperties)heightProperties.hasOwnProperty(prop)&&properties[prop]&&(value=properties[prop].value,("padding"!==prop||2!==value.parts.length||0!==value.parts[0].value)&&reporter.report("Using height with "+prop+" can sometimes make elements larger than you expect.",properties[prop].line,properties[prop].col,rule));if(properties.width)for(prop in widthProperties)widthProperties.hasOwnProperty(prop)&&properties[prop]&&(value=properties[prop].value,("padding"!==prop||2!==value.parts.length||0!==value.parts[1].value)&&reporter.report("Using width with "+prop+" can sometimes make elements larger than you expect.",properties[prop].line,properties[prop].col,rule))}}var properties,rule=this,widthProperties={border:1,"border-left":1,"border-right":1,padding:1,"padding-left":1,"padding-right":1},heightProperties={border:1,"border-bottom":1,"border-top":1,padding:1,"padding-bottom":1,"padding-top":1},boxSizing=!1;parser.addListener("startrule",startRule),parser.addListener("startfontface",startRule),parser.addListener("startpage",startRule),parser.addListener("startpagemargin",startRule),parser.addListener("startkeyframerule",startRule),parser.addListener("property",function(event){var name=event.property.text.toLowerCase();heightProperties[name]||widthProperties[name]?/^0\\S*$/.test(event.value)||"border"===name&&"none"==""+event.value||(properties[name]={line:event.property.line,col:event.property.col,value:event.value}):/^(width|height)/i.test(name)&&/^(length|percentage)/.test(event.value.parts[0].type)?properties[name]=1:"box-sizing"===name&&(boxSizing=!0)}),parser.addListener("endrule",endRule),parser.addListener("endfontface",endRule),parser.addListener("endpage",endRule),parser.addListener("endpagemargin",endRule),parser.addListener("endkeyframerule",endRule)}}),CSSLint.addRule({id:"box-sizing",name:"Disallow use of box-sizing",desc:"The box-sizing properties isn\'t supported in IE6 and IE7.",browsers:"IE6, IE7",tags:["Compatibility"],init:function(parser,reporter){var rule=this;parser.addListener("property",function(event){var name=event.property.text.toLowerCase();"box-sizing"===name&&reporter.report("The box-sizing property isn\'t supported in IE6 and IE7.",event.line,event.col,rule)})}}),CSSLint.addRule({id:"bulletproof-font-face",name:"Use the bulletproof @font-face syntax",desc:"Use the bulletproof @font-face syntax to avoid 404\'s in old IE (http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax).",browsers:"All",init:function(parser,reporter){var line,col,rule=this,fontFaceRule=!1,firstSrc=!0,ruleFailed=!1;parser.addListener("startfontface",function(){fontFaceRule=!0}),parser.addListener("property",function(event){if(fontFaceRule){var propertyName=(""+event.property).toLowerCase(),value=""+event.value;if(line=event.line,col=event.col,"src"===propertyName){var regex=/^\\s?url\\([\'"].+\\.eot\\?.*[\'"]\\)\\s*format\\([\'"]embedded-opentype[\'"]\\).*$/i;!value.match(regex)&&firstSrc?(ruleFailed=!0,firstSrc=!1):value.match(regex)&&!firstSrc&&(ruleFailed=!1)}}}),parser.addListener("endfontface",function(){fontFaceRule=!1,ruleFailed&&reporter.report("@font-face declaration doesn\'t follow the fontspring bulletproof syntax.",line,col,rule)})}}),CSSLint.addRule({id:"compatible-vendor-prefixes",name:"Require compatible vendor prefixes",desc:"Include all compatible vendor prefixes to reach a wider range of users.",browsers:"All",init:function(parser,reporter){var compatiblePrefixes,properties,prop,variations,prefixed,i,len,rule=this,inKeyFrame=!1,arrayPush=Array.prototype.push,applyTo=[];compatiblePrefixes={animation:"webkit moz","animation-delay":"webkit moz","animation-direction":"webkit moz","animation-duration":"webkit moz","animation-fill-mode":"webkit moz","animation-iteration-count":"webkit moz","animation-name":"webkit moz","animation-play-state":"webkit moz","animation-timing-function":"webkit moz",appearance:"webkit moz","border-end":"webkit moz","border-end-color":"webkit moz","border-end-style":"webkit moz","border-end-width":"webkit moz","border-image":"webkit moz o","border-radius":"webkit","border-start":"webkit moz","border-start-color":"webkit moz","border-start-style":"webkit moz","border-start-width":"webkit moz","box-align":"webkit moz ms","box-direction":"webkit moz ms","box-flex":"webkit moz ms","box-lines":"webkit ms","box-ordinal-group":"webkit moz ms","box-orient":"webkit moz ms","box-pack":"webkit moz ms","box-sizing":"webkit moz","box-shadow":"webkit moz","column-count":"webkit moz ms","column-gap":"webkit moz ms","column-rule":"webkit moz ms","column-rule-color":"webkit moz ms","column-rule-style":"webkit moz ms","column-rule-width":"webkit moz ms","column-width":"webkit moz ms",hyphens:"epub moz","line-break":"webkit ms","margin-end":"webkit moz","margin-start":"webkit moz","marquee-speed":"webkit wap","marquee-style":"webkit wap","padding-end":"webkit moz","padding-start":"webkit moz","tab-size":"moz o","text-size-adjust":"webkit ms",transform:"webkit moz ms o","transform-origin":"webkit moz ms o",transition:"webkit moz o","transition-delay":"webkit moz o","transition-duration":"webkit moz o","transition-property":"webkit moz o","transition-timing-function":"webkit moz o","user-modify":"webkit moz","user-select":"webkit moz ms","word-break":"epub ms","writing-mode":"epub ms"};for(prop in compatiblePrefixes)if(compatiblePrefixes.hasOwnProperty(prop)){for(variations=[],prefixed=compatiblePrefixes[prop].split(" "),i=0,len=prefixed.length;len>i;i++)variations.push("-"+prefixed[i]+"-"+prop);compatiblePrefixes[prop]=variations,arrayPush.apply(applyTo,variations)}parser.addListener("startrule",function(){properties=[]}),parser.addListener("startkeyframes",function(event){inKeyFrame=event.prefix||!0}),parser.addListener("endkeyframes",function(){inKeyFrame=!1}),parser.addListener("property",function(event){var name=event.property;CSSLint.Util.indexOf(applyTo,name.text)>-1&&(inKeyFrame&&"string"==typeof inKeyFrame&&0===name.text.indexOf("-"+inKeyFrame+"-")||properties.push(name))}),parser.addListener("endrule",function(){if(properties.length){var i,len,name,prop,variations,value,full,actual,item,propertiesSpecified,propertyGroups={};for(i=0,len=properties.length;len>i;i++){name=properties[i];for(prop in compatiblePrefixes)compatiblePrefixes.hasOwnProperty(prop)&&(variations=compatiblePrefixes[prop],CSSLint.Util.indexOf(variations,name.text)>-1&&(propertyGroups[prop]||(propertyGroups[prop]={full:variations.slice(0),actual:[],actualNodes:[]}),-1===CSSLint.Util.indexOf(propertyGroups[prop].actual,name.text)&&(propertyGroups[prop].actual.push(name.text),propertyGroups[prop].actualNodes.push(name))))}for(prop in propertyGroups)if(propertyGroups.hasOwnProperty(prop)&&(value=propertyGroups[prop],full=value.full,actual=value.actual,full.length>actual.length))for(i=0,len=full.length;len>i;i++)item=full[i],-1===CSSLint.Util.indexOf(actual,item)&&(propertiesSpecified=1===actual.length?actual[0]:2===actual.length?actual.join(" and "):actual.join(", "),reporter.report("The property "+item+" is compatible with "+propertiesSpecified+" and should be included as well.",value.actualNodes[0].line,value.actualNodes[0].col,rule))}})}}),CSSLint.addRule({id:"display-property-grouping",name:"Require properties appropriate for display",desc:"Certain properties shouldn\'t be used with certain display property values.",browsers:"All",init:function(parser,reporter){function reportProperty(name,display,msg){properties[name]&&("string"!=typeof propertiesToCheck[name]||properties[name].value.toLowerCase()!==propertiesToCheck[name])&&reporter.report(msg||name+" can\'t be used with display: "+display+".",properties[name].line,properties[name].col,rule)}function startRule(){properties={}}function endRule(){var display=properties.display?properties.display.value:null;if(display)switch(display){case"inline":reportProperty("height",display),reportProperty("width",display),reportProperty("margin",display),reportProperty("margin-top",display),reportProperty("margin-bottom",display),reportProperty("float",display,"display:inline has no effect on floated elements (but may be used to fix the IE6 double-margin bug).");break;case"block":reportProperty("vertical-align",display);\nbreak;case"inline-block":reportProperty("float",display);break;default:0===display.indexOf("table-")&&(reportProperty("margin",display),reportProperty("margin-left",display),reportProperty("margin-right",display),reportProperty("margin-top",display),reportProperty("margin-bottom",display),reportProperty("float",display))}}var properties,rule=this,propertiesToCheck={display:1,"float":"none",height:1,width:1,margin:1,"margin-left":1,"margin-right":1,"margin-bottom":1,"margin-top":1,padding:1,"padding-left":1,"padding-right":1,"padding-bottom":1,"padding-top":1,"vertical-align":1};parser.addListener("startrule",startRule),parser.addListener("startfontface",startRule),parser.addListener("startkeyframerule",startRule),parser.addListener("startpagemargin",startRule),parser.addListener("startpage",startRule),parser.addListener("property",function(event){var name=event.property.text.toLowerCase();propertiesToCheck[name]&&(properties[name]={value:event.value.text,line:event.property.line,col:event.property.col})}),parser.addListener("endrule",endRule),parser.addListener("endfontface",endRule),parser.addListener("endkeyframerule",endRule),parser.addListener("endpagemargin",endRule),parser.addListener("endpage",endRule)}}),CSSLint.addRule({id:"duplicate-background-images",name:"Disallow duplicate background images",desc:"Every background-image should be unique. Use a common class for e.g. sprites.",browsers:"All",init:function(parser,reporter){var rule=this,stack={};parser.addListener("property",function(event){var i,len,name=event.property.text,value=event.value;if(name.match(/background/i))for(i=0,len=value.parts.length;len>i;i++)"uri"===value.parts[i].type&&(stack[value.parts[i].uri]===void 0?stack[value.parts[i].uri]=event:reporter.report("Background image \'"+value.parts[i].uri+"\' was used multiple times, first declared at line "+stack[value.parts[i].uri].line+", col "+stack[value.parts[i].uri].col+".",event.line,event.col,rule))})}}),CSSLint.addRule({id:"duplicate-properties",name:"Disallow duplicate properties",desc:"Duplicate properties must appear one after the other.",browsers:"All",init:function(parser,reporter){function startRule(){properties={}}var properties,lastProperty,rule=this;parser.addListener("startrule",startRule),parser.addListener("startfontface",startRule),parser.addListener("startpage",startRule),parser.addListener("startpagemargin",startRule),parser.addListener("startkeyframerule",startRule),parser.addListener("property",function(event){var property=event.property,name=property.text.toLowerCase();!properties[name]||lastProperty===name&&properties[name]!==event.value.text||reporter.report("Duplicate property \'"+event.property+"\' found.",event.line,event.col,rule),properties[name]=event.value.text,lastProperty=name})}}),CSSLint.addRule({id:"empty-rules",name:"Disallow empty rules",desc:"Rules without any properties specified should be removed.",browsers:"All",init:function(parser,reporter){var rule=this,count=0;parser.addListener("startrule",function(){count=0}),parser.addListener("property",function(){count++}),parser.addListener("endrule",function(event){var selectors=event.selectors;0===count&&reporter.report("Rule is empty.",selectors[0].line,selectors[0].col,rule)})}}),CSSLint.addRule({id:"errors",name:"Parsing Errors",desc:"This rule looks for recoverable syntax errors.",browsers:"All",init:function(parser,reporter){var rule=this;parser.addListener("error",function(event){reporter.error(event.message,event.line,event.col,rule)})}}),CSSLint.addRule({id:"fallback-colors",name:"Require fallback colors",desc:"For older browsers that don\'t support RGBA, HSL, or HSLA, provide a fallback color.",browsers:"IE6,IE7,IE8",init:function(parser,reporter){function startRule(){properties={},lastProperty=null}var lastProperty,properties,rule=this,propertiesToCheck={color:1,background:1,"border-color":1,"border-top-color":1,"border-right-color":1,"border-bottom-color":1,"border-left-color":1,border:1,"border-top":1,"border-right":1,"border-bottom":1,"border-left":1,"background-color":1};parser.addListener("startrule",startRule),parser.addListener("startfontface",startRule),parser.addListener("startpage",startRule),parser.addListener("startpagemargin",startRule),parser.addListener("startkeyframerule",startRule),parser.addListener("property",function(event){var property=event.property,name=property.text.toLowerCase(),parts=event.value.parts,i=0,colorType="",len=parts.length;if(propertiesToCheck[name])for(;len>i;)"color"===parts[i].type&&("alpha"in parts[i]||"hue"in parts[i]?(/([^\\)]+)\\(/.test(parts[i])&&(colorType=RegExp.$1.toUpperCase()),lastProperty&&lastProperty.property.text.toLowerCase()===name&&"compat"===lastProperty.colorType||reporter.report("Fallback "+name+" (hex or RGB) should precede "+colorType+" "+name+".",event.line,event.col,rule)):event.colorType="compat"),i++;lastProperty=event})}}),CSSLint.addRule({id:"floats",name:"Disallow too many floats",desc:"This rule tests if the float property is used too many times",browsers:"All",init:function(parser,reporter){var rule=this,count=0;parser.addListener("property",function(event){"float"===event.property.text.toLowerCase()&&"none"!==event.value.text.toLowerCase()&&count++}),parser.addListener("endstylesheet",function(){reporter.stat("floats",count),count>=10&&reporter.rollupWarn("Too many floats ("+count+"), you\'re probably using them for layout. Consider using a grid system instead.",rule)})}}),CSSLint.addRule({id:"font-faces",name:"Don\'t use too many web fonts",desc:"Too many different web fonts in the same stylesheet.",browsers:"All",init:function(parser,reporter){var rule=this,count=0;parser.addListener("startfontface",function(){count++}),parser.addListener("endstylesheet",function(){count>5&&reporter.rollupWarn("Too many @font-face declarations ("+count+").",rule)})}}),CSSLint.addRule({id:"font-sizes",name:"Disallow too many font sizes",desc:"Checks the number of font-size declarations.",browsers:"All",init:function(parser,reporter){var rule=this,count=0;parser.addListener("property",function(event){"font-size"==""+event.property&&count++}),parser.addListener("endstylesheet",function(){reporter.stat("font-sizes",count),count>=10&&reporter.rollupWarn("Too many font-size declarations ("+count+"), abstraction needed.",rule)})}}),CSSLint.addRule({id:"gradients",name:"Require all gradient definitions",desc:"When using a vendor-prefixed gradient, make sure to use them all.",browsers:"All",init:function(parser,reporter){var gradients,rule=this;parser.addListener("startrule",function(){gradients={moz:0,webkit:0,oldWebkit:0,o:0}}),parser.addListener("property",function(event){/\\-(moz|o|webkit)(?:\\-(?:linear|radial))\\-gradient/i.test(event.value)?gradients[RegExp.$1]=1:/\\-webkit\\-gradient/i.test(event.value)&&(gradients.oldWebkit=1)}),parser.addListener("endrule",function(event){var missing=[];gradients.moz||missing.push("Firefox 3.6+"),gradients.webkit||missing.push("Webkit (Safari 5+, Chrome)"),gradients.oldWebkit||missing.push("Old Webkit (Safari 4+, Chrome)"),gradients.o||missing.push("Opera 11.1+"),missing.length&&4>missing.length&&reporter.report("Missing vendor-prefixed CSS gradients for "+missing.join(", ")+".",event.selectors[0].line,event.selectors[0].col,rule)})}}),CSSLint.addRule({id:"ids",name:"Disallow IDs in selectors",desc:"Selectors should not contain IDs.",browsers:"All",init:function(parser,reporter){var rule=this;parser.addListener("startrule",function(event){var selector,part,modifier,idCount,i,j,k,selectors=event.selectors;for(i=0;selectors.length>i;i++){for(selector=selectors[i],idCount=0,j=0;selector.parts.length>j;j++)if(part=selector.parts[j],part.type===parser.SELECTOR_PART_TYPE)for(k=0;part.modifiers.length>k;k++)modifier=part.modifiers[k],"id"===modifier.type&&idCount++;1===idCount?reporter.report("Don\'t use IDs in selectors.",selector.line,selector.col,rule):idCount>1&&reporter.report(idCount+" IDs in the selector, really?",selector.line,selector.col,rule)}})}}),CSSLint.addRule({id:"import",name:"Disallow @import",desc:"Don\'t use @import, use <link> instead.",browsers:"All",init:function(parser,reporter){var rule=this;parser.addListener("import",function(event){reporter.report("@import prevents parallel downloads, use <link> instead.",event.line,event.col,rule)})}}),CSSLint.addRule({id:"important",name:"Disallow !important",desc:"Be careful when using !important declaration",browsers:"All",init:function(parser,reporter){var rule=this,count=0;parser.addListener("property",function(event){event.important===!0&&(count++,reporter.report("Use of !important",event.line,event.col,rule))}),parser.addListener("endstylesheet",function(){reporter.stat("important",count),count>=10&&reporter.rollupWarn("Too many !important declarations ("+count+"), try to use less than 10 to avoid specificity issues.",rule)})}}),CSSLint.addRule({id:"known-properties",name:"Require use of known properties",desc:"Properties should be known (listed in CSS3 specification) or be a vendor-prefixed property.",browsers:"All",init:function(parser,reporter){var rule=this;parser.addListener("property",function(event){event.invalid&&reporter.report(event.invalid.message,event.line,event.col,rule)})}}),CSSLint.addRule({id:"order-alphabetical",name:"Alphabetical order",desc:"Assure properties are in alphabetical order",browsers:"All",init:function(parser,reporter){var properties,rule=this,startRule=function(){properties=[]};parser.addListener("startrule",startRule),parser.addListener("startfontface",startRule),parser.addListener("startpage",startRule),parser.addListener("startpagemargin",startRule),parser.addListener("startkeyframerule",startRule),parser.addListener("property",function(event){var name=event.property.text,lowerCasePrefixLessName=name.toLowerCase().replace(/^-.*?-/,"");properties.push(lowerCasePrefixLessName)}),parser.addListener("endrule",function(event){var currentProperties=properties.join(","),expectedProperties=properties.sort().join(",");currentProperties!==expectedProperties&&reporter.report("Rule doesn\'t have all its properties in alphabetical ordered.",event.line,event.col,rule)})}}),CSSLint.addRule({id:"outline-none",name:"Disallow outline: none",desc:"Use of outline: none or outline: 0 should be limited to :focus rules.",browsers:"All",tags:["Accessibility"],init:function(parser,reporter){function startRule(event){lastRule=event.selectors?{line:event.line,col:event.col,selectors:event.selectors,propCount:0,outline:!1}:null}function endRule(){lastRule&&lastRule.outline&&(-1===(""+lastRule.selectors).toLowerCase().indexOf(":focus")?reporter.report("Outlines should only be modified using :focus.",lastRule.line,lastRule.col,rule):1===lastRule.propCount&&reporter.report("Outlines shouldn\'t be hidden unless other visual changes are made.",lastRule.line,lastRule.col,rule))}var lastRule,rule=this;parser.addListener("startrule",startRule),parser.addListener("startfontface",startRule),parser.addListener("startpage",startRule),parser.addListener("startpagemargin",startRule),parser.addListener("startkeyframerule",startRule),parser.addListener("property",function(event){var name=event.property.text.toLowerCase(),value=event.value;lastRule&&(lastRule.propCount++,"outline"!==name||"none"!=""+value&&"0"!=""+value||(lastRule.outline=!0))}),parser.addListener("endrule",endRule),parser.addListener("endfontface",endRule),parser.addListener("endpage",endRule),parser.addListener("endpagemargin",endRule),parser.addListener("endkeyframerule",endRule)}}),CSSLint.addRule({id:"overqualified-elements",name:"Disallow overqualified elements",desc:"Don\'t use classes or IDs with elements (a.foo or a#foo).",browsers:"All",init:function(parser,reporter){var rule=this,classes={};parser.addListener("startrule",function(event){var selector,part,modifier,i,j,k,selectors=event.selectors;for(i=0;selectors.length>i;i++)for(selector=selectors[i],j=0;selector.parts.length>j;j++)if(part=selector.parts[j],part.type===parser.SELECTOR_PART_TYPE)for(k=0;part.modifiers.length>k;k++)modifier=part.modifiers[k],part.elementName&&"id"===modifier.type?reporter.report("Element ("+part+") is overqualified, just use "+modifier+" without element name.",part.line,part.col,rule):"class"===modifier.type&&(classes[modifier]||(classes[modifier]=[]),classes[modifier].push({modifier:modifier,part:part}))}),parser.addListener("endstylesheet",function(){var prop;for(prop in classes)classes.hasOwnProperty(prop)&&1===classes[prop].length&&classes[prop][0].part.elementName&&reporter.report("Element ("+classes[prop][0].part+") is overqualified, just use "+classes[prop][0].modifier+" without element name.",classes[prop][0].part.line,classes[prop][0].part.col,rule)})}}),CSSLint.addRule({id:"qualified-headings",name:"Disallow qualified headings",desc:"Headings should not be qualified (namespaced).",browsers:"All",init:function(parser,reporter){var rule=this;parser.addListener("startrule",function(event){var selector,part,i,j,selectors=event.selectors;for(i=0;selectors.length>i;i++)for(selector=selectors[i],j=0;selector.parts.length>j;j++)part=selector.parts[j],part.type===parser.SELECTOR_PART_TYPE&&part.elementName&&/h[1-6]/.test(""+part.elementName)&&j>0&&reporter.report("Heading ("+part.elementName+") should not be qualified.",part.line,part.col,rule)})}}),CSSLint.addRule({id:"regex-selectors",name:"Disallow selectors that look like regexs",desc:"Selectors that look like regular expressions are slow and should be avoided.",browsers:"All",init:function(parser,reporter){var rule=this;parser.addListener("startrule",function(event){var selector,part,modifier,i,j,k,selectors=event.selectors;for(i=0;selectors.length>i;i++)for(selector=selectors[i],j=0;selector.parts.length>j;j++)if(part=selector.parts[j],part.type===parser.SELECTOR_PART_TYPE)for(k=0;part.modifiers.length>k;k++)modifier=part.modifiers[k],"attribute"===modifier.type&&/([\\~\\|\\^\\$\\*]=)/.test(modifier)&&reporter.report("Attribute selectors with "+RegExp.$1+" are slow!",modifier.line,modifier.col,rule)})}}),CSSLint.addRule({id:"rules-count",name:"Rules Count",desc:"Track how many rules there are.",browsers:"All",init:function(parser,reporter){var count=0;parser.addListener("startrule",function(){count++}),parser.addListener("endstylesheet",function(){reporter.stat("rule-count",count)})}}),CSSLint.addRule({id:"selector-max-approaching",name:"Warn when approaching the 4095 selector limit for IE",desc:"Will warn when selector count is >= 3800 selectors.",browsers:"IE",init:function(parser,reporter){var rule=this,count=0;parser.addListener("startrule",function(event){count+=event.selectors.length}),parser.addListener("endstylesheet",function(){count>=3800&&reporter.report("You have "+count+" selectors. Internet Explorer supports a maximum of 4095 selectors per stylesheet. Consider refactoring.",0,0,rule)})}}),CSSLint.addRule({id:"selector-max",name:"Error when past the 4095 selector limit for IE",desc:"Will error when selector count is > 4095.",browsers:"IE",init:function(parser,reporter){var rule=this,count=0;parser.addListener("startrule",function(event){count+=event.selectors.length}),parser.addListener("endstylesheet",function(){count>4095&&reporter.report("You have "+count+" selectors. Internet Explorer supports a maximum of 4095 selectors per stylesheet. Consider refactoring.",0,0,rule)})}}),CSSLint.addRule({id:"selector-newline",name:"Disallow new-line characters in selectors",desc:"New-line characters in selectors are usually a forgotten comma and not a descendant combinator.",browsers:"All",init:function(parser,reporter){function startRule(event){var i,len,selector,p,n,pLen,part,part2,type,currentLine,nextLine,selectors=event.selectors;for(i=0,len=selectors.length;len>i;i++)for(selector=selectors[i],p=0,pLen=selector.parts.length;pLen>p;p++)for(n=p+1;pLen>n;n++)part=selector.parts[p],part2=selector.parts[n],type=part.type,currentLine=part.line,nextLine=part2.line,"descendant"===type&&nextLine>currentLine&&reporter.report("newline character found in selector (forgot a comma?)",currentLine,selectors[i].parts[0].col,rule)}var rule=this;parser.addListener("startrule",startRule)}}),CSSLint.addRule({id:"shorthand",name:"Require shorthand properties",desc:"Use shorthand properties where possible.",browsers:"All",init:function(parser,reporter){function startRule(){properties={}}function endRule(event){var prop,i,len,total;for(prop in mapping)if(mapping.hasOwnProperty(prop)){for(total=0,i=0,len=mapping[prop].length;len>i;i++)total+=properties[mapping[prop][i]]?1:0;total===mapping[prop].length&&reporter.report("The properties "+mapping[prop].join(", ")+" can be replaced by "+prop+".",event.line,event.col,rule)}}var prop,i,len,properties,rule=this,propertiesToCheck={},mapping={margin:["margin-top","margin-bottom","margin-left","margin-right"],padding:["padding-top","padding-bottom","padding-left","padding-right"]};for(prop in mapping)if(mapping.hasOwnProperty(prop))for(i=0,len=mapping[prop].length;len>i;i++)propertiesToCheck[mapping[prop][i]]=prop;parser.addListener("startrule",startRule),parser.addListener("startfontface",startRule),parser.addListener("property",function(event){var name=(""+event.property).toLowerCase();propertiesToCheck[name]&&(properties[name]=1)}),parser.addListener("endrule",endRule),parser.addListener("endfontface",endRule)}}),CSSLint.addRule({id:"star-property-hack",name:"Disallow properties with a star prefix",desc:"Checks for the star property hack (targets IE6/7)",browsers:"All",init:function(parser,reporter){var rule=this;parser.addListener("property",function(event){var property=event.property;"*"===property.hack&&reporter.report("Property with star prefix found.",event.property.line,event.property.col,rule)})}}),CSSLint.addRule({id:"text-indent",name:"Disallow negative text-indent",desc:"Checks for text indent less than -99px",browsers:"All",init:function(parser,reporter){function startRule(){textIndent=!1,direction="inherit"}function endRule(){textIndent&&"ltr"!==direction&&reporter.report("Negative text-indent doesn\'t work well with RTL. If you use text-indent for image replacement explicitly set direction for that item to ltr.",textIndent.line,textIndent.col,rule)}var textIndent,direction,rule=this;parser.addListener("startrule",startRule),parser.addListener("startfontface",startRule),parser.addListener("property",function(event){var name=(""+event.property).toLowerCase(),value=event.value;"text-indent"===name&&-99>value.parts[0].value?textIndent=event.property:"direction"===name&&"ltr"==""+value&&(direction="ltr")}),parser.addListener("endrule",endRule),parser.addListener("endfontface",endRule)}}),CSSLint.addRule({id:"underscore-property-hack",name:"Disallow properties with an underscore prefix",desc:"Checks for the underscore property hack (targets IE6)",browsers:"All",init:function(parser,reporter){var rule=this;parser.addListener("property",function(event){var property=event.property;"_"===property.hack&&reporter.report("Property with underscore prefix found.",event.property.line,event.property.col,rule)})}}),CSSLint.addRule({id:"unique-headings",name:"Headings should only be defined once",desc:"Headings should be defined only once.",browsers:"All",init:function(parser,reporter){var rule=this,headings={h1:0,h2:0,h3:0,h4:0,h5:0,h6:0};parser.addListener("startrule",function(event){var selector,part,pseudo,i,j,selectors=event.selectors;for(i=0;selectors.length>i;i++)if(selector=selectors[i],part=selector.parts[selector.parts.length-1],part.elementName&&/(h[1-6])/i.test(""+part.elementName)){for(j=0;part.modifiers.length>j;j++)if("pseudo"===part.modifiers[j].type){pseudo=!0;break}pseudo||(headings[RegExp.$1]++,headings[RegExp.$1]>1&&reporter.report("Heading ("+part.elementName+") has already been defined.",part.line,part.col,rule))}}),parser.addListener("endstylesheet",function(){var prop,messages=[];for(prop in headings)headings.hasOwnProperty(prop)&&headings[prop]>1&&messages.push(headings[prop]+" "+prop+"s");messages.length&&reporter.rollupWarn("You have "+messages.join(", ")+" defined in this stylesheet.",rule)})}}),CSSLint.addRule({id:"universal-selector",name:"Disallow universal selector",desc:"The universal selector (*) is known to be slow.",browsers:"All",init:function(parser,reporter){var rule=this;parser.addListener("startrule",function(event){var selector,part,i,selectors=event.selectors;for(i=0;selectors.length>i;i++)selector=selectors[i],part=selector.parts[selector.parts.length-1],"*"===part.elementName&&reporter.report(rule.desc,part.line,part.col,rule)})}}),CSSLint.addRule({id:"unqualified-attributes",name:"Disallow unqualified attribute selectors",desc:"Unqualified attribute selectors are known to be slow.",browsers:"All",init:function(parser,reporter){var rule=this;parser.addListener("startrule",function(event){var selector,part,modifier,i,k,selectors=event.selectors;for(i=0;selectors.length>i;i++)if(selector=selectors[i],part=selector.parts[selector.parts.length-1],part.type===parser.SELECTOR_PART_TYPE)for(k=0;part.modifiers.length>k;k++)modifier=part.modifiers[k],"attribute"!==modifier.type||part.elementName&&"*"!==part.elementName||reporter.report(rule.desc,part.line,part.col,rule)})}}),CSSLint.addRule({id:"vendor-prefix",name:"Require standard property with vendor prefix",desc:"When using a vendor-prefixed property, make sure to include the standard one.",browsers:"All",init:function(parser,reporter){function startRule(){properties={},num=1}function endRule(){var prop,i,len,needed,actual,needsStandard=[];for(prop in properties)propertiesToCheck[prop]&&needsStandard.push({actual:prop,needed:propertiesToCheck[prop]});for(i=0,len=needsStandard.length;len>i;i++)needed=needsStandard[i].needed,actual=needsStandard[i].actual,properties[needed]?properties[needed][0].pos<properties[actual][0].pos&&reporter.report("Standard property \'"+needed+"\' should come after vendor-prefixed property \'"+actual+"\'.",properties[actual][0].name.line,properties[actual][0].name.col,rule):reporter.report("Missing standard property \'"+needed+"\' to go along with \'"+actual+"\'.",properties[actual][0].name.line,properties[actual][0].name.col,rule)}var properties,num,rule=this,propertiesToCheck={"-webkit-border-radius":"border-radius","-webkit-border-top-left-radius":"border-top-left-radius","-webkit-border-top-right-radius":"border-top-right-radius","-webkit-border-bottom-left-radius":"border-bottom-left-radius","-webkit-border-bottom-right-radius":"border-bottom-right-radius","-o-border-radius":"border-radius","-o-border-top-left-radius":"border-top-left-radius","-o-border-top-right-radius":"border-top-right-radius","-o-border-bottom-left-radius":"border-bottom-left-radius","-o-border-bottom-right-radius":"border-bottom-right-radius","-moz-border-radius":"border-radius","-moz-border-radius-topleft":"border-top-left-radius","-moz-border-radius-topright":"border-top-right-radius","-moz-border-radius-bottomleft":"border-bottom-left-radius","-moz-border-radius-bottomright":"border-bottom-right-radius","-moz-column-count":"column-count","-webkit-column-count":"column-count","-moz-column-gap":"column-gap","-webkit-column-gap":"column-gap","-moz-column-rule":"column-rule","-webkit-column-rule":"column-rule","-moz-column-rule-style":"column-rule-style","-webkit-column-rule-style":"column-rule-style","-moz-column-rule-color":"column-rule-color","-webkit-column-rule-color":"column-rule-color","-moz-column-rule-width":"column-rule-width","-webkit-column-rule-width":"column-rule-width","-moz-column-width":"column-width","-webkit-column-width":"column-width","-webkit-column-span":"column-span","-webkit-columns":"columns","-moz-box-shadow":"box-shadow","-webkit-box-shadow":"box-shadow","-moz-transform":"transform","-webkit-transform":"transform","-o-transform":"transform","-ms-transform":"transform","-moz-transform-origin":"transform-origin","-webkit-transform-origin":"transform-origin","-o-transform-origin":"transform-origin","-ms-transform-origin":"transform-origin","-moz-box-sizing":"box-sizing","-webkit-box-sizing":"box-sizing"};parser.addListener("startrule",startRule),parser.addListener("startfontface",startRule),parser.addListener("startpage",startRule),parser.addListener("startpagemargin",startRule),parser.addListener("startkeyframerule",startRule),parser.addListener("property",function(event){var name=event.property.text.toLowerCase();properties[name]||(properties[name]=[]),properties[name].push({name:event.property,value:event.value,pos:num++})}),parser.addListener("endrule",endRule),parser.addListener("endfontface",endRule),parser.addListener("endpage",endRule),parser.addListener("endpagemargin",endRule),parser.addListener("endkeyframerule",endRule)}}),CSSLint.addRule({id:"zero-units",name:"Disallow units for 0 values",desc:"You don\'t need to specify units when a value is 0.",browsers:"All",init:function(parser,reporter){var rule=this;parser.addListener("property",function(event){for(var parts=event.value.parts,i=0,len=parts.length;len>i;)!parts[i].units&&"percentage"!==parts[i].type||0!==parts[i].value||"time"===parts[i].type||reporter.report("Values of 0 shouldn\'t have units specified.",parts[i].line,parts[i].col,rule),i++})}}),function(){var xmlEscape=function(str){return str&&str.constructor===String?str.replace(/[\\"&><]/g,function(match){switch(match){case\'"\':return"&quot;";case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;"}}):""};CSSLint.addFormatter({id:"checkstyle-xml",name:"Checkstyle XML format",startFormat:function(){return\'<?xml version="1.0" encoding="utf-8"?><checkstyle>\'},endFormat:function(){return"</checkstyle>"},readError:function(filename,message){return\'<file name="\'+xmlEscape(filename)+\'"><error line="0" column="0" severty="error" message="\'+xmlEscape(message)+\'"></error></file>\'},formatResults:function(results,filename){var messages=results.messages,output=[],generateSource=function(rule){return rule&&"name"in rule?"net.csslint."+rule.name.replace(/\\s/g,""):""};return messages.length>0&&(output.push(\'<file name="\'+filename+\'">\'),CSSLint.Util.forEach(messages,function(message){message.rollup||output.push(\'<error line="\'+message.line+\'" column="\'+message.col+\'" severity="\'+message.type+\'"\'+\' message="\'+xmlEscape(message.message)+\'" source="\'+generateSource(message.rule)+\'"/>\')}),output.push("</file>")),output.join("")}})}(),CSSLint.addFormatter({id:"compact",name:"Compact, \'porcelain\' format",startFormat:function(){return""},endFormat:function(){return""},formatResults:function(results,filename,options){var messages=results.messages,output="";options=options||{};var capitalize=function(str){return str.charAt(0).toUpperCase()+str.slice(1)};return 0===messages.length?options.quiet?"":filename+": Lint Free!":(CSSLint.Util.forEach(messages,function(message){output+=message.rollup?filename+": "+capitalize(message.type)+" - "+message.message+"\\n":filename+": "+"line "+message.line+", col "+message.col+", "+capitalize(message.type)+" - "+message.message+" ("+message.rule.id+")\\n"}),output)}}),CSSLint.addFormatter({id:"csslint-xml",name:"CSSLint XML format",startFormat:function(){return\'<?xml version="1.0" encoding="utf-8"?><csslint>\'},endFormat:function(){return"</csslint>"},formatResults:function(results,filename){var messages=results.messages,output=[],escapeSpecialCharacters=function(str){return str&&str.constructor===String?str.replace(/\\"/g,"\'").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):""};return messages.length>0&&(output.push(\'<file name="\'+filename+\'">\'),CSSLint.Util.forEach(messages,function(message){message.rollup?output.push(\'<issue severity="\'+message.type+\'" reason="\'+escapeSpecialCharacters(message.message)+\'" evidence="\'+escapeSpecialCharacters(message.evidence)+\'"/>\'):output.push(\'<issue line="\'+message.line+\'" char="\'+message.col+\'" severity="\'+message.type+\'"\'+\' reason="\'+escapeSpecialCharacters(message.message)+\'" evidence="\'+escapeSpecialCharacters(message.evidence)+\'"/>\')}),output.push("</file>")),output.join("")}}),CSSLint.addFormatter({id:"junit-xml",name:"JUNIT XML format",startFormat:function(){return\'<?xml version="1.0" encoding="utf-8"?><testsuites>\'},endFormat:function(){return"</testsuites>"},formatResults:function(results,filename){var messages=results.messages,output=[],tests={error:0,failure:0},generateSource=function(rule){return rule&&"name"in rule?"net.csslint."+rule.name.replace(/\\s/g,""):""},escapeSpecialCharacters=function(str){return str&&str.constructor===String?str.replace(/\\"/g,"\'").replace(/</g,"&lt;").replace(/>/g,"&gt;"):""};return messages.length>0&&(messages.forEach(function(message){var type="warning"===message.type?"error":message.type;message.rollup||(output.push(\'<testcase time="0" name="\'+generateSource(message.rule)+\'">\'),output.push("<"+type+\' message="\'+escapeSpecialCharacters(message.message)+\'"><![CDATA[\'+message.line+":"+message.col+":"+escapeSpecialCharacters(message.evidence)+"]]></"+type+">"),output.push("</testcase>"),tests[type]+=1)}),output.unshift(\'<testsuite time="0" tests="\'+messages.length+\'" skipped="0" errors="\'+tests.error+\'" failures="\'+tests.failure+\'" package="net.csslint" name="\'+filename+\'">\'),output.push("</testsuite>")),output.join("")}}),CSSLint.addFormatter({id:"lint-xml",name:"Lint XML format",startFormat:function(){return\'<?xml version="1.0" encoding="utf-8"?><lint>\'},endFormat:function(){return"</lint>"},formatResults:function(results,filename){var messages=results.messages,output=[],escapeSpecialCharacters=function(str){return str&&str.constructor===String?str.replace(/\\"/g,"\'").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):""};return messages.length>0&&(output.push(\'<file name="\'+filename+\'">\'),CSSLint.Util.forEach(messages,function(message){message.rollup?output.push(\'<issue severity="\'+message.type+\'" reason="\'+escapeSpecialCharacters(message.message)+\'" evidence="\'+escapeSpecialCharacters(message.evidence)+\'"/>\'):output.push(\'<issue line="\'+message.line+\'" char="\'+message.col+\'" severity="\'+message.type+\'"\'+\' reason="\'+escapeSpecialCharacters(message.message)+\'" evidence="\'+escapeSpecialCharacters(message.evidence)+\'"/>\')}),output.push("</file>")),output.join("")}}),CSSLint.addFormatter({id:"text",name:"Plain Text",startFormat:function(){return""},endFormat:function(){return""},formatResults:function(results,filename,options){var messages=results.messages,output="";if(options=options||{},0===messages.length)return options.quiet?"":"\\n\\ncsslint: No errors in "+filename+".";output="\\n\\ncsslint: There ",output+=1===messages.length?"is 1 problem":"are "+messages.length+" problems",output+=" in "+filename+".";var pos=filename.lastIndexOf("/"),shortFilename=filename;return-1===pos&&(pos=filename.lastIndexOf("\\\\")),pos>-1&&(shortFilename=filename.substring(pos+1)),CSSLint.Util.forEach(messages,function(message,i){output=output+"\\n\\n"+shortFilename,message.rollup?(output+="\\n"+(i+1)+": "+message.type,output+="\\n"+message.message):(output+="\\n"+(i+1)+": "+message.type+" at line "+message.line+", col "+message.col,output+="\\n"+message.message,output+="\\n"+message.evidence)}),output}}),module.exports.CSSLint=CSSLint}),ace.define("ace/mode/css_worker",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/worker/mirror","ace/mode/css/csslint"],function(acequire,exports){"use strict";var oop=acequire("../lib/oop"),lang=acequire("../lib/lang"),Mirror=acequire("../worker/mirror").Mirror,CSSLint=acequire("./css/csslint").CSSLint,Worker=exports.Worker=function(sender){Mirror.call(this,sender),this.setTimeout(400),this.ruleset=null,this.setDisabledRules("ids|order-alphabetical"),this.setInfoRules("adjoining-classes|qualified-headings|zero-units|gradients|import|outline-none|vendor-prefix")};oop.inherits(Worker,Mirror),function(){this.setInfoRules=function(ruleNames){"string"==typeof ruleNames&&(ruleNames=ruleNames.split("|")),this.infoRules=lang.arrayToMap(ruleNames),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.setDisabledRules=function(ruleNames){if(ruleNames){"string"==typeof ruleNames&&(ruleNames=ruleNames.split("|"));\nvar all={};CSSLint.getRules().forEach(function(x){all[x.id]=!0}),ruleNames.forEach(function(x){delete all[x]}),this.ruleset=all}else this.ruleset=null;this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.onUpdate=function(){var value=this.doc.getValue();if(!value)return this.sender.emit("annotate",[]);var infoRules=this.infoRules,result=CSSLint.verify(value,this.ruleset);this.sender.emit("annotate",result.messages.map(function(msg){return{row:msg.line-1,column:msg.col-1,text:msg.message,type:infoRules[msg.rule.id]?"info":msg.type,rule:msg.rule.name}}))}}.call(Worker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != \'object\'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws="\t\\n\v\\f\\r   ᠎              \\u2028\\u2029\ufeff";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can\'t convert "+o+" to object");return Object(o)}});'},e163:function(e,t,n){"use strict";var r=n("1a2d"),i=n("1626"),o=n("7b0b"),a=n("f772"),s=n("e177"),c=a("IE_PROTO"),l=Object,u=l.prototype;e.exports=s?l.getPrototypeOf:function(e){var t=o(e);if(r(t,c))return t[c];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof l?u:null}},e177:function(e,t,n){"use strict";var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e198:function(e,t,n){var r=n("ef08"),i=n("5524"),o=n("e444"),a=n("fcd4"),s=n("1a14").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},e1a9:function(e,t){ace.define("ace/snippets/html",["require","exports","module"],(function(e,t,n){"use strict";t.snippetText='# Some useful Unicode entities\n# Non-Breaking Space\nsnippet nbs\n\t&nbsp;\n# ←\nsnippet left\n\t&#x2190;\n# →\nsnippet right\n\t&#x2192;\n# ↑\nsnippet up\n\t&#x2191;\n# ↓\nsnippet down\n\t&#x2193;\n# ↩\nsnippet return\n\t&#x21A9;\n# ⇤\nsnippet backtab\n\t&#x21E4;\n# ⇥\nsnippet tab\n\t&#x21E5;\n# ⇧\nsnippet shift\n\t&#x21E7;\n# ⌃\nsnippet ctrl\n\t&#x2303;\n# ⌅\nsnippet enter\n\t&#x2305;\n# ⌘\nsnippet cmd\n\t&#x2318;\n# ⌥\nsnippet option\n\t&#x2325;\n# ⌦\nsnippet delete\n\t&#x2326;\n# ⌫\nsnippet backspace\n\t&#x232B;\n# ⎋\nsnippet esc\n\t&#x238B;\n# Generic Doctype\nsnippet doctype HTML 4.01 Strict\n\t<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"\n\t"http://www.w3.org/TR/html4/strict.dtd">\nsnippet doctype HTML 4.01 Transitional\n\t<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"\n\t"http://www.w3.org/TR/html4/loose.dtd">\nsnippet doctype HTML 5\n\t<!DOCTYPE HTML>\nsnippet doctype XHTML 1.0 Frameset\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\nsnippet doctype XHTML 1.0 Strict\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\nsnippet doctype XHTML 1.0 Transitional\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\nsnippet doctype XHTML 1.1\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\n\t"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n# HTML Doctype 4.01 Strict\nsnippet docts\n\t<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"\n\t"http://www.w3.org/TR/html4/strict.dtd">\n# HTML Doctype 4.01 Transitional\nsnippet doct\n\t<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"\n\t"http://www.w3.org/TR/html4/loose.dtd">\n# HTML Doctype 5\nsnippet doct5\n\t<!DOCTYPE html>\n# XHTML Doctype 1.0 Frameset\nsnippet docxf\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">\n# XHTML Doctype 1.0 Strict\nsnippet docxs\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n# XHTML Doctype 1.0 Transitional\nsnippet docxt\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n# XHTML Doctype 1.1\nsnippet docx\n\t<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"\n\t"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">\n# html5shiv\nsnippet html5shiv\n\t\x3c!--[if lte IE 8]>\n\t\t<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js"><\/script>\n\t<![endif]--\x3e\nsnippet html5printshiv\n\t\x3c!--[if lte IE 8]>\n\t\t<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"><\/script>\n\t<![endif]--\x3e\n# Attributes\nsnippet attr\n\t${1:attribute}="${2:property}"\nsnippet attr+\n\t${1:attribute}="${2:property}" attr+${3}\nsnippet .\n\tclass="${1}"${2}\nsnippet #\n\tid="${1}"${2}\nsnippet alt\n\talt="${1}"${2}\nsnippet charset\n\tcharset="${1:utf-8}"${2}\nsnippet data\n\tdata-${1}="${2:$1}"${3}\nsnippet for\n\tfor="${1}"${2}\nsnippet height\n\theight="${1}"${2}\nsnippet href\n\thref="${1:#}"${2}\nsnippet lang\n\tlang="${1:en}"${2}\nsnippet media\n\tmedia="${1}"${2}\nsnippet name\n\tname="${1}"${2}\nsnippet rel\n\trel="${1}"${2}\nsnippet scope\n\tscope="${1:row}"${2}\nsnippet src\n\tsrc="${1}"${2}\nsnippet title=\n\ttitle="${1}"${2}\nsnippet type\n\ttype="${1}"${2}\nsnippet value\n\tvalue="${1}"${2}\nsnippet width\n\twidth="${1}"${2}\n# Elements\nsnippet a\n\t<a href="${1:#}">${2:$1}</a>\nsnippet a.\n\t<a class="${1}" href="${2:#}">${3:$1}</a>\nsnippet a#\n\t<a id="${1}" href="${2:#}">${3:$1}</a>\nsnippet a:ext\n\t<a href="http://${1:example.com}">${2:$1}</a>\nsnippet a:mail\n\t<a href="mailto:${1:joe@example.com}?subject=${2:feedback}">${3:email me}</a>\nsnippet abbr\n\t<abbr title="${1}">${2}</abbr>\nsnippet address\n\t<address>\n\t\t${1}\n\t</address>\nsnippet area\n\t<area shape="${1:rect}" coords="${2}" href="${3}" alt="${4}" />\nsnippet area+\n\t<area shape="${1:rect}" coords="${2}" href="${3}" alt="${4}" />\n\tarea+${5}\nsnippet area:c\n\t<area shape="circle" coords="${1}" href="${2}" alt="${3}" />\nsnippet area:d\n\t<area shape="default" coords="${1}" href="${2}" alt="${3}" />\nsnippet area:p\n\t<area shape="poly" coords="${1}" href="${2}" alt="${3}" />\nsnippet area:r\n\t<area shape="rect" coords="${1}" href="${2}" alt="${3}" />\nsnippet article\n\t<article>\n\t\t${1}\n\t</article>\nsnippet article.\n\t<article class="${1}">\n\t\t${2}\n\t</article>\nsnippet article#\n\t<article id="${1}">\n\t\t${2}\n\t</article>\nsnippet aside\n\t<aside>\n\t\t${1}\n\t</aside>\nsnippet aside.\n\t<aside class="${1}">\n\t\t${2}\n\t</aside>\nsnippet aside#\n\t<aside id="${1}">\n\t\t${2}\n\t</aside>\nsnippet audio\n\t<audio src="${1}>${2}</audio>\nsnippet b\n\t<b>${1}</b>\nsnippet base\n\t<base href="${1}" target="${2}" />\nsnippet bdi\n\t<bdi>${1}</bdo>\nsnippet bdo\n\t<bdo dir="${1}">${2}</bdo>\nsnippet bdo:l\n\t<bdo dir="ltr">${1}</bdo>\nsnippet bdo:r\n\t<bdo dir="rtl">${1}</bdo>\nsnippet blockquote\n\t<blockquote>\n\t\t${1}\n\t</blockquote>\nsnippet body\n\t<body>\n\t\t${1}\n\t</body>\nsnippet br\n\t<br />${1}\nsnippet button\n\t<button type="${1:submit}">${2}</button>\nsnippet button.\n\t<button class="${1:button}" type="${2:submit}">${3}</button>\nsnippet button#\n\t<button id="${1}" type="${2:submit}">${3}</button>\nsnippet button:s\n\t<button type="submit">${1}</button>\nsnippet button:r\n\t<button type="reset">${1}</button>\nsnippet canvas\n\t<canvas>\n\t\t${1}\n\t</canvas>\nsnippet caption\n\t<caption>${1}</caption>\nsnippet cite\n\t<cite>${1}</cite>\nsnippet code\n\t<code>${1}</code>\nsnippet col\n\t<col />${1}\nsnippet col+\n\t<col />\n\tcol+${1}\nsnippet colgroup\n\t<colgroup>\n\t\t${1}\n\t</colgroup>\nsnippet colgroup+\n\t<colgroup>\n\t\t<col />\n\t\tcol+${1}\n\t</colgroup>\nsnippet command\n\t<command type="command" label="${1}" icon="${2}" />\nsnippet command:c\n\t<command type="checkbox" label="${1}" icon="${2}" />\nsnippet command:r\n\t<command type="radio" radiogroup="${1}" label="${2}" icon="${3}" />\nsnippet datagrid\n\t<datagrid>\n\t\t${1}\n\t</datagrid>\nsnippet datalist\n\t<datalist>\n\t\t${1}\n\t</datalist>\nsnippet datatemplate\n\t<datatemplate>\n\t\t${1}\n\t</datatemplate>\nsnippet dd\n\t<dd>${1}</dd>\nsnippet dd.\n\t<dd class="${1}">${2}</dd>\nsnippet dd#\n\t<dd id="${1}">${2}</dd>\nsnippet del\n\t<del>${1}</del>\nsnippet details\n\t<details>${1}</details>\nsnippet dfn\n\t<dfn>${1}</dfn>\nsnippet dialog\n\t<dialog>\n\t\t${1}\n\t</dialog>\nsnippet div\n\t<div>\n\t\t${1}\n\t</div>\nsnippet div.\n\t<div class="${1}">\n\t\t${2}\n\t</div>\nsnippet div#\n\t<div id="${1}">\n\t\t${2}\n\t</div>\nsnippet dl\n\t<dl>\n\t\t${1}\n\t</dl>\nsnippet dl.\n\t<dl class="${1}">\n\t\t${2}\n\t</dl>\nsnippet dl#\n\t<dl id="${1}">\n\t\t${2}\n\t</dl>\nsnippet dl+\n\t<dl>\n\t\t<dt>${1}</dt>\n\t\t<dd>${2}</dd>\n\t\tdt+${3}\n\t</dl>\nsnippet dt\n\t<dt>${1}</dt>\nsnippet dt.\n\t<dt class="${1}">${2}</dt>\nsnippet dt#\n\t<dt id="${1}">${2}</dt>\nsnippet dt+\n\t<dt>${1}</dt>\n\t<dd>${2}</dd>\n\tdt+${3}\nsnippet em\n\t<em>${1}</em>\nsnippet embed\n\t<embed src=${1} type="${2} />\nsnippet fieldset\n\t<fieldset>\n\t\t${1}\n\t</fieldset>\nsnippet fieldset.\n\t<fieldset class="${1}">\n\t\t${2}\n\t</fieldset>\nsnippet fieldset#\n\t<fieldset id="${1}">\n\t\t${2}\n\t</fieldset>\nsnippet fieldset+\n\t<fieldset>\n\t\t<legend><span>${1}</span></legend>\n\t\t${2}\n\t</fieldset>\n\tfieldset+${3}\nsnippet figcaption\n\t<figcaption>${1}</figcaption>\nsnippet figure\n\t<figure>${1}</figure>\nsnippet footer\n\t<footer>\n\t\t${1}\n\t</footer>\nsnippet footer.\n\t<footer class="${1}">\n\t\t${2}\n\t</footer>\nsnippet footer#\n\t<footer id="${1}">\n\t\t${2}\n\t</footer>\nsnippet form\n\t<form action="${1}" method="${2:get}" accept-charset="utf-8">\n\t\t${3}\n\t</form>\nsnippet form.\n\t<form class="${1}" action="${2}" method="${3:get}" accept-charset="utf-8">\n\t\t${4}\n\t</form>\nsnippet form#\n\t<form id="${1}" action="${2}" method="${3:get}" accept-charset="utf-8">\n\t\t${4}\n\t</form>\nsnippet h1\n\t<h1>${1}</h1>\nsnippet h1.\n\t<h1 class="${1}">${2}</h1>\nsnippet h1#\n\t<h1 id="${1}">${2}</h1>\nsnippet h2\n\t<h2>${1}</h2>\nsnippet h2.\n\t<h2 class="${1}">${2}</h2>\nsnippet h2#\n\t<h2 id="${1}">${2}</h2>\nsnippet h3\n\t<h3>${1}</h3>\nsnippet h3.\n\t<h3 class="${1}">${2}</h3>\nsnippet h3#\n\t<h3 id="${1}">${2}</h3>\nsnippet h4\n\t<h4>${1}</h4>\nsnippet h4.\n\t<h4 class="${1}">${2}</h4>\nsnippet h4#\n\t<h4 id="${1}">${2}</h4>\nsnippet h5\n\t<h5>${1}</h5>\nsnippet h5.\n\t<h5 class="${1}">${2}</h5>\nsnippet h5#\n\t<h5 id="${1}">${2}</h5>\nsnippet h6\n\t<h6>${1}</h6>\nsnippet h6.\n\t<h6 class="${1}">${2}</h6>\nsnippet h6#\n\t<h6 id="${1}">${2}</h6>\nsnippet head\n\t<head>\n\t\t<meta http-equiv="content-type" content="text/html; charset=utf-8" />\n\n\t\t<title>${1:`substitute(Filename(\'\', \'Page Title\'), \'^.\', \'\\u&\', \'\')`}</title>\n\t\t${2}\n\t</head>\nsnippet header\n\t<header>\n\t\t${1}\n\t</header>\nsnippet header.\n\t<header class="${1}">\n\t\t${2}\n\t</header>\nsnippet header#\n\t<header id="${1}">\n\t\t${2}\n\t</header>\nsnippet hgroup\n\t<hgroup>\n\t\t${1}\n\t</hgroup>\nsnippet hgroup.\n\t<hgroup class="${1}>\n\t\t${2}\n\t</hgroup>\nsnippet hr\n\t<hr />${1}\nsnippet html\n\t<html>\n\t${1}\n\t</html>\nsnippet xhtml\n\t<html xmlns="http://www.w3.org/1999/xhtml">\n\t${1}\n\t</html>\nsnippet html5\n\t<!DOCTYPE html>\n\t<html>\n\t\t<head>\n\t\t\t<meta http-equiv="content-type" content="text/html; charset=utf-8" />\n\t\t\t<title>${1:`substitute(Filename(\'\', \'Page Title\'), \'^.\', \'\\u&\', \'\')`}</title>\n\t\t\t${2:meta}\n\t\t</head>\n\t\t<body>\n\t\t\t${3:body}\n\t\t</body>\n\t</html>\nsnippet xhtml5\n\t<!DOCTYPE html>\n\t<html xmlns="http://www.w3.org/1999/xhtml">\n\t\t<head>\n\t\t\t<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />\n\t\t\t<title>${1:`substitute(Filename(\'\', \'Page Title\'), \'^.\', \'\\u&\', \'\')`}</title>\n\t\t\t${2:meta}\n\t\t</head>\n\t\t<body>\n\t\t\t${3:body}\n\t\t</body>\n\t</html>\nsnippet i\n\t<i>${1}</i>\nsnippet iframe\n\t<iframe src="${1}" frameborder="0"></iframe>${2}\nsnippet iframe.\n\t<iframe class="${1}" src="${2}" frameborder="0"></iframe>${3}\nsnippet iframe#\n\t<iframe id="${1}" src="${2}" frameborder="0"></iframe>${3}\nsnippet img\n\t<img src="${1}" alt="${2}" />${3}\nsnippet img.\n\t<img class="${1}" src="${2}" alt="${3}" />${4}\nsnippet img#\n\t<img id="${1}" src="${2}" alt="${3}" />${4}\nsnippet input\n\t<input type="${1:text/submit/hidden/button/image}" name="${2}" id="${3:$2}" value="${4}" />${5}\nsnippet input.\n\t<input class="${1}" type="${2:text/submit/hidden/button/image}" name="${3}" id="${4:$3}" value="${5}" />${6}\nsnippet input:text\n\t<input type="text" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:submit\n\t<input type="submit" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:hidden\n\t<input type="hidden" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:button\n\t<input type="button" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:image\n\t<input type="image" name="${1}" id="${2:$1}" src="${3}" alt="${4}" />${5}\nsnippet input:checkbox\n\t<input type="checkbox" name="${1}" id="${2:$1}" />${3}\nsnippet input:radio\n\t<input type="radio" name="${1}" id="${2:$1}" />${3}\nsnippet input:color\n\t<input type="color" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:date\n\t<input type="date" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:datetime\n\t<input type="datetime" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:datetime-local\n\t<input type="datetime-local" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:email\n\t<input type="email" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:file\n\t<input type="file" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:month\n\t<input type="month" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:number\n\t<input type="number" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:password\n\t<input type="password" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:range\n\t<input type="range" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:reset\n\t<input type="reset" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:search\n\t<input type="search" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:time\n\t<input type="time" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:url\n\t<input type="url" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet input:week\n\t<input type="week" name="${1}" id="${2:$1}" value="${3}" />${4}\nsnippet ins\n\t<ins>${1}</ins>\nsnippet kbd\n\t<kbd>${1}</kbd>\nsnippet keygen\n\t<keygen>${1}</keygen>\nsnippet label\n\t<label for="${2:$1}">${1}</label>\nsnippet label:i\n\t<label for="${2:$1}">${1}</label>\n\t<input type="${3:text/submit/hidden/button}" name="${4:$2}" id="${5:$2}" value="${6}" />${7}\nsnippet label:s\n\t<label for="${2:$1}">${1}</label>\n\t<select name="${3:$2}" id="${4:$2}">\n\t\t<option value="${5}">${6:$5}</option>\n\t</select>\nsnippet legend\n\t<legend>${1}</legend>\nsnippet legend+\n\t<legend><span>${1}</span></legend>\nsnippet li\n\t<li>${1}</li>\nsnippet li.\n\t<li class="${1}">${2}</li>\nsnippet li+\n\t<li>${1}</li>\n\tli+${2}\nsnippet lia\n\t<li><a href="${2:#}">${1}</a></li>\nsnippet lia+\n\t<li><a href="${2:#}">${1}</a></li>\n\tlia+${3}\nsnippet link\n\t<link rel="${1}" href="${2}" title="${3}" type="${4}" />${5}\nsnippet link:atom\n\t<link rel="alternate" href="${1:atom.xml}" title="Atom" type="application/atom+xml" />${2}\nsnippet link:css\n\t<link rel="stylesheet" href="${2:style.css}" type="text/css" media="${3:all}" />${4}\nsnippet link:favicon\n\t<link rel="shortcut icon" href="${1:favicon.ico}" type="image/x-icon" />${2}\nsnippet link:rss\n\t<link rel="alternate" href="${1:rss.xml}" title="RSS" type="application/atom+xml" />${2}\nsnippet link:touch\n\t<link rel="apple-touch-icon" href="${1:favicon.png}" />${2}\nsnippet map\n\t<map name="${1}">\n\t\t${2}\n\t</map>\nsnippet map.\n\t<map class="${1}" name="${2}">\n\t\t${3}\n\t</map>\nsnippet map#\n\t<map name="${1}" id="${2:$1}>\n\t\t${3}\n\t</map>\nsnippet map+\n\t<map name="${1}">\n\t\t<area shape="${2}" coords="${3}" href="${4}" alt="${5}" />${6}\n\t</map>${7}\nsnippet mark\n\t<mark>${1}</mark>\nsnippet menu\n\t<menu>\n\t\t${1}\n\t</menu>\nsnippet menu:c\n\t<menu type="context">\n\t\t${1}\n\t</menu>\nsnippet menu:t\n\t<menu type="toolbar">\n\t\t${1}\n\t</menu>\nsnippet meta\n\t<meta http-equiv="${1}" content="${2}" />${3}\nsnippet meta:compat\n\t<meta http-equiv="X-UA-Compatible" content="IE=${1:7,8,edge}" />${3}\nsnippet meta:refresh\n\t<meta http-equiv="refresh" content="text/html;charset=UTF-8" />${3}\nsnippet meta:utf\n\t<meta http-equiv="content-type" content="text/html;charset=UTF-8" />${3}\nsnippet meter\n\t<meter>${1}</meter>\nsnippet nav\n\t<nav>\n\t\t${1}\n\t</nav>\nsnippet nav.\n\t<nav class="${1}">\n\t\t${2}\n\t</nav>\nsnippet nav#\n\t<nav id="${1}">\n\t\t${2}\n\t</nav>\nsnippet noscript\n\t<noscript>\n\t\t${1}\n\t</noscript>\nsnippet object\n\t<object data="${1}" type="${2}">\n\t\t${3}\n\t</object>${4}\n# Embed QT Movie\nsnippet movie\n\t<object width="$2" height="$3" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"\n\t codebase="http://www.apple.com/qtactivex/qtplugin.cab">\n\t\t<param name="src" value="$1" />\n\t\t<param name="controller" value="$4" />\n\t\t<param name="autoplay" value="$5" />\n\t\t<embed src="${1:movie.mov}"\n\t\t\twidth="${2:320}" height="${3:240}"\n\t\t\tcontroller="${4:true}" autoplay="${5:true}"\n\t\t\tscale="tofit" cache="true"\n\t\t\tpluginspage="http://www.apple.com/quicktime/download/" />\n\t</object>${6}\nsnippet ol\n\t<ol>\n\t\t${1}\n\t</ol>\nsnippet ol.\n\t<ol class="${1}>\n\t\t${2}\n\t</ol>\nsnippet ol#\n\t<ol id="${1}>\n\t\t${2}\n\t</ol>\nsnippet ol+\n\t<ol>\n\t\t<li>${1}</li>\n\t\tli+${2}\n\t</ol>\nsnippet opt\n\t<option value="${1}">${2:$1}</option>\nsnippet opt+\n\t<option value="${1}">${2:$1}</option>\n\topt+${3}\nsnippet optt\n\t<option>${1}</option>\nsnippet optgroup\n\t<optgroup>\n\t\t<option value="${1}">${2:$1}</option>\n\t\topt+${3}\n\t</optgroup>\nsnippet output\n\t<output>${1}</output>\nsnippet p\n\t<p>${1}</p>\nsnippet param\n\t<param name="${1}" value="${2}" />${3}\nsnippet pre\n\t<pre>\n\t\t${1}\n\t</pre>\nsnippet progress\n\t<progress>${1}</progress>\nsnippet q\n\t<q>${1}</q>\nsnippet rp\n\t<rp>${1}</rp>\nsnippet rt\n\t<rt>${1}</rt>\nsnippet ruby\n\t<ruby>\n\t\t<rp><rt>${1}</rt></rp>\n\t</ruby>\nsnippet s\n\t<s>${1}</s>\nsnippet samp\n\t<samp>\n\t\t${1}\n\t</samp>\nsnippet script\n\t<script type="text/javascript" charset="utf-8">\n\t\t${1}\n\t<\/script>\nsnippet scriptsrc\n\t<script src="${1}.js" type="text/javascript" charset="utf-8"><\/script>\nsnippet newscript\n\t<script type="application/javascript" charset="utf-8">\n\t\t${1}\n\t<\/script>\nsnippet newscriptsrc\n\t<script src="${1}.js" type="application/javascript" charset="utf-8"><\/script>\nsnippet section\n\t<section>\n\t\t${1}\n\t</section>\nsnippet section.\n\t<section class="${1}">\n\t\t${2}\n\t</section>\nsnippet section#\n\t<section id="${1}">\n\t\t${2}\n\t</section>\nsnippet select\n\t<select name="${1}" id="${2:$1}">\n\t\t${3}\n\t</select>\nsnippet select.\n\t<select name="${1}" id="${2:$1}" class="${3}>\n\t\t${4}\n\t</select>\nsnippet select+\n\t<select name="${1}" id="${2:$1}">\n\t\t<option value="${3}">${4:$3}</option>\n\t\topt+${5}\n\t</select>\nsnippet small\n\t<small>${1}</small>\nsnippet source\n\t<source src="${1}" type="${2}" media="${3}" />\nsnippet span\n\t<span>${1}</span>\nsnippet strong\n\t<strong>${1}</strong>\nsnippet style\n\t<style type="text/css" media="${1:all}">\n\t\t${2}\n\t</style>\nsnippet sub\n\t<sub>${1}</sub>\nsnippet summary\n\t<summary>\n\t\t${1}\n\t</summary>\nsnippet sup\n\t<sup>${1}</sup>\nsnippet table\n\t<table border="${1:0}">\n\t\t${2}\n\t</table>\nsnippet table.\n\t<table class="${1}" border="${2:0}">\n\t\t${3}\n\t</table>\nsnippet table#\n\t<table id="${1}" border="${2:0}">\n\t\t${3}\n\t</table>\nsnippet tbody\n\t<tbody>\n\t\t${1}\n\t</tbody>\nsnippet td\n\t<td>${1}</td>\nsnippet td.\n\t<td class="${1}">${2}</td>\nsnippet td#\n\t<td id="${1}">${2}</td>\nsnippet td+\n\t<td>${1}</td>\n\ttd+${2}\nsnippet textarea\n\t<textarea name="${1}" id=${2:$1} rows="${3:8}" cols="${4:40}">${5}</textarea>${6}\nsnippet tfoot\n\t<tfoot>\n\t\t${1}\n\t</tfoot>\nsnippet th\n\t<th>${1}</th>\nsnippet th.\n\t<th class="${1}">${2}</th>\nsnippet th#\n\t<th id="${1}">${2}</th>\nsnippet th+\n\t<th>${1}</th>\n\tth+${2}\nsnippet thead\n\t<thead>\n\t\t${1}\n\t</thead>\nsnippet time\n\t<time datetime="${1}" pubdate="${2:$1}>${3:$1}</time>\nsnippet title\n\t<title>${1:`substitute(Filename(\'\', \'Page Title\'), \'^.\', \'\\u&\', \'\')`}</title>\nsnippet tr\n\t<tr>\n\t\t${1}\n\t</tr>\nsnippet tr+\n\t<tr>\n\t\t<td>${1}</td>\n\t\ttd+${2}\n\t</tr>\nsnippet track\n\t<track src="${1}" srclang="${2}" label="${3}" default="${4:default}>${5}</track>${6}\nsnippet ul\n\t<ul>\n\t\t${1}\n\t</ul>\nsnippet ul.\n\t<ul class="${1}">\n\t\t${2}\n\t</ul>\nsnippet ul#\n\t<ul id="${1}">\n\t\t${2}\n\t</ul>\nsnippet ul+\n\t<ul>\n\t\t<li>${1}</li>\n\t\tli+${2}\n\t</ul>\nsnippet var\n\t<var>${1}</var>\nsnippet video\n\t<video src="${1} height="${2}" width="${3}" preload="${5:none}" autoplay="${6:autoplay}>${7}</video>${8}\nsnippet wbr\n\t<wbr />${1}\n',t.scope="html"}))},e260:function(e,t,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("9bf2").f,c=n("c6d2"),l=n("4754"),u=n("c430"),d=n("83ab"),f="Array Iterator",p=a.set,h=a.getterFor(f);e.exports=c(Array,"Array",(function(e,t){p(this,{type:f,target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,l(void 0,!0);switch(e.kind){case"keys":return l(n,!1);case"values":return l(t[n],!1)}return l([n,t[n]],!1)}),"values");var m=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!u&&d&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(g){}},e267:function(e,t,n){"use strict";var r=n("e330"),i=n("e8b5"),o=n("1626"),a=n("c6b6"),s=n("577e"),c=r([].push);e.exports=function(e){if(o(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;r<t;r++){var l=e[r];"string"==typeof l?c(n,l):"number"!=typeof l&&"Number"!==a(l)&&"String"!==a(l)||c(n,s(l))}var u=n.length,d=!0;return function(e,t){if(d)return d=!1,t;if(i(this))return t;for(var r=0;r<u;r++)if(n[r]===e)return t}}}},e330:function(e,t,n){"use strict";var r=n("40d5"),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},e34a:function(e,t,n){var r=n("8b1a")("meta"),i=n("7a41"),o=n("9c0e"),a=n("1a14").f,s=0,c=Object.isExtensible||function(){return!0},l=!n("4b8b")((function(){return c(Object.preventExtensions({}))})),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[r].i},f=function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[r].w},p=function(e){return l&&h.NEED&&c(e)&&!o(e,r)&&u(e),e},h=e.exports={KEY:r,NEED:!1,fastKey:d,getWeak:f,onFreeze:p}},e391:function(e,t,n){"use strict";var r=n("577e");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},e3f1:function(e,t,n){for(var r=n("5775"),i=n("e496"),o=n("8393"),a=n("1935"),s=n("1690"),c=n("b283"),l=n("b3ad"),u=l("iterator"),d=l("toStringTag"),f=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(p),m=0;m<h.length;m++){var g,v=h[m],b=p[v],_=a[v],y=_&&_.prototype;if(y&&(y[u]||s(y,u,f),y[d]||s(y,d,v),c[v]=f,b))for(g in r)y[g]||o(y,g,r[g],!0)}},e439:function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("fc6a"),a=n("06cf").f,s=n("83ab"),c=!s||i((function(){a(1)}));r({target:"Object",stat:!0,forced:c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},e444:function(e,t){e.exports=!0},e496:function(e,t,n){var r=n("f29a"),i=n("f520");e.exports=Object.keys||function(e){return r(e,i)}},e507:function(e,t,n){var r=n("512c");r(r.S+r.F,"Object",{assign:n("072d")})},e538:function(e,t,n){"use strict";var r=n("b622");t.f=r},e562:function(e,t,n){(function(t){(function(){"use strict";var n=function(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},r=function(e){return-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(e)},i=function(e,t){var n=Array.prototype.slice.call(e);return n.sort(t)},o=function(e,t){return a((function(n,r){return e.eq(t(n),t(r))}))},a=function(e){return{eq:e}},s=a((function(e,t){return e===t})),c=s,l=function(e){return a((function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e.eq(t[i],n[i]))return!1;return!0}))},u=function(e,t){return o(l(e),(function(e){return i(e,t)}))},d=function(e){return a((function(t,n){var r=Object.keys(t),i=Object.keys(n);if(!u(c).eq(r,i))return!1;for(var o=r.length,a=0;a<o;a++){var s=r[a];if(!e.eq(t[s],n[s]))return!1}return!0}))},f=a((function(e,t){if(e===t)return!0;var i=n(e),o=n(t);return i===o&&(r(i)?e===t:"array"===i?l(f).eq(e,t):"object"===i&&d(f).eq(e,t))})),p=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},h=function(e){return function(t){return p(t)===e}},m=function(e){return function(t){return typeof t===e}},g=function(e){return function(t){return e===t}},v=h("string"),b=h("object"),_=h("array"),y=g(null),w=m("boolean"),x=g(void 0),k=function(e){return null===e||void 0===e},C=function(e){return!k(e)},A=m("function"),S=m("number"),E=function(){},T=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},O=function(e,t){return function(n){return e(t(n))}},R=function(e){return function(){return e}},D=function(e){return e},L=function(e,t){return e===t};function M(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var F=function(e){return function(t){return!e(t)}},N=function(e){return function(){throw new Error(e)}},B=function(e){return e()},I=function(e){e()},P=R(!1),$=R(!0),j=function(){return z},z=function(){var e=function(e){return e()},t=D,n={fold:function(e,t){return e()},isSome:P,isNone:$,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:R(null),getOrUndefined:R(void 0),or:t,orThunk:e,map:j,each:E,bind:j,exists:P,forall:$,filter:function(){return j()},toArray:function(){return[]},toString:R("none()")};return n}(),q=function(e){var t=R(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:$,isNone:P,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return q(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:z},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},H=function(e){return null===e||void 0===e?z:q(e)},U={some:q,none:j,from:H},W=Array.prototype.slice,V=Array.prototype.indexOf,G=Array.prototype.push,K=function(e,t){return V.call(e,t)},Y=function(e,t){var n=K(e,t);return-1===n?U.none():U.some(n)},X=function(e,t){return K(e,t)>-1},Q=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return!0}return!1},J=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},Z=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},ee=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];t(r,n)}},te=function(e,t){for(var n=[],r=[],i=0,o=e.length;i<o;i++){var a=e[i],s=t(a,i)?n:r;s.push(a)}return{pass:n,fail:r}},ne=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},re=function(e,t,n){return ee(e,(function(e,r){n=t(n,e,r)})),n},ie=function(e,t,n){return Z(e,(function(e,r){n=t(n,e,r)})),n},oe=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return U.some(o);if(n(o,r))break}return U.none()},ae=function(e,t){return oe(e,t,P)},se=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];if(t(i,n))return U.some(n)}return U.none()},ce=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!_(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);G.apply(t,e[n])}return t},le=function(e,t){return ce(J(e,t))},ue=function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(!0!==t(i,n))return!1}return!0},de=function(e){var t=W.call(e,0);return t.reverse(),t},fe=function(e,t){return ne(e,(function(e){return!X(t,e)}))},pe=function(e,t){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];n[String(o)]=t(o,r)}return n},he=function(e,t){var n=W.call(e,0);return n.sort(t),n},me=function(e,t){return t>=0&&t<e.length?U.some(e[t]):U.none()},ge=function(e){return me(e,0)},ve=function(e){return me(e,e.length-1)},be=A(Array.from)?Array.from:function(e){return W.call(e)},_e=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return U.none()},ye=Object.keys,we=Object.hasOwnProperty,xe=function(e,t){for(var n=ye(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},ke=function(e,t){return Ce(e,(function(e,n){return{k:n,v:t(e,n)}}))},Ce=function(e,t){var n={};return xe(e,(function(e,r){var i=t(e,r);n[i.k]=i.v})),n},Ae=function(e){return function(t,n){e[n]=t}},Se=function(e,t,n,r){var i={};return xe(e,(function(e,i){(t(e,i)?n:r)(e,i)})),i},Ee=function(e,t){var n={},r={};return Se(e,t,Ae(n),Ae(r)),{t:n,f:r}},Te=function(e,t){var n={};return Se(e,t,Ae(n),E),n},Oe=function(e,t){var n=[];return xe(e,(function(e,r){n.push(t(e,r))})),n},Re=function(e){return Oe(e,D)},De=function(e,t){return Le(e,t)?U.from(e[t]):U.none()},Le=function(e,t){return we.call(e,t)},Me=function(e,t){return Le(e,t)&&void 0!==e[t]&&null!==e[t]},Fe=function(e,t,n){return void 0===n&&(n=f),d(n).eq(e,t)},Ne=Array.isArray,Be=function(e){if(Ne(e))return e;for(var t=[],n=0,r=e.length;n<r;n++)t[n]=e[n];return t},Ie=function(e,t,n){var r,i;if(!e)return!1;if(n=n||e,void 0!==e.length){for(r=0,i=e.length;r<i;r++)if(!1===t.call(n,e[r],r,e))return!1}else for(r in e)if(Le(e,r)&&!1===t.call(n,e[r],r,e))return!1;return!0},Pe=function(e,t){var n=[];return Ie(e,(function(r,i){n.push(t(r,i,e))})),n},$e=function(e,t){var n=[];return Ie(e,(function(r,i){t&&!t(r,i,e)||n.push(r)})),n},je=function(e,t){if(e)for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},ze=function(e,t,n,r){for(var i=x(n)?e[0]:n,o=0;o<e.length;o++)i=t.call(r,i,e[o],o);return i},qe=function(e,t,n){var r,i;for(r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return r;return-1},He=function(e){return e[e.length-1]},Ue=function(){return Ue=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ue.apply(this,arguments)};function We(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function Ve(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var Ge=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},Ke=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),c=i||!o&&a&&r("(min-device-width:768px)"),l=o||a&&!c,u=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!l&&!c&&!u;return{isiPad:R(i),isiPhone:R(o),isTablet:R(c),isPhone:R(l),isTouch:R(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:R(u),isDesktop:R(d)}},Ye=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},Xe=function(e,t){var n=Ye(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return Ze(r(1),r(2))},Qe=function(e,t){var n=String(t).toLowerCase();return 0===e.length?Je():Xe(e,n)},Je=function(){return Ze(0,0)},Ze=function(e,t){return{major:e,minor:t}},et={nu:Ze,detect:Qe,unknown:Je},tt=function(e,t){return _e(t.brands,(function(t){var n=t.brand.toLowerCase();return ae(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:et.nu(parseInt(t.version,10),0)}}))}))},nt=function(e,t){var n=String(t).toLowerCase();return ae(e,(function(e){return e.search(n)}))},rt=function(e,t){return nt(e,t).map((function(e){var n=et.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},it=function(e,t){return nt(e,t).map((function(e){var n=et.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},ot=function(e,t){return e.substring(t)},at=function(e,t,n){return""===t||e.length>=t.length&&e.substr(n,n+t.length)===t},st=function(e,t){return lt(e,t)?ot(e,t.length):e},ct=function(e,t){return-1!==e.indexOf(t)},lt=function(e,t){return at(e,t,0)},ut=function(e){return function(t){return t.replace(e,"")}},dt=ut(/^\s+|\s+$/g),ft=ut(/^\s+/g),pt=ut(/\s+$/g),ht=function(e){return e.length>0},mt=function(e){return!ht(e)},gt=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,vt=function(e){return function(t){return ct(t,e)}},bt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return ct(e,"edge/")&&ct(e,"chrome")&&ct(e,"safari")&&ct(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,gt],search:function(e){return ct(e,"chrome")&&!ct(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return ct(e,"msie")||ct(e,"trident")}},{name:"Opera",versionRegexes:[gt,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:vt("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:vt("firefox")},{name:"Safari",versionRegexes:[gt,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(ct(e,"safari")||ct(e,"mobile/"))&&ct(e,"applewebkit")}}],_t=[{name:"Windows",search:vt("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return ct(e,"iphone")||ct(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:vt("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:vt("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:vt("linux"),versionRegexes:[]},{name:"Solaris",search:vt("sunos"),versionRegexes:[]},{name:"FreeBSD",search:vt("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:vt("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],yt={browsers:R(bt),oses:R(_t)},wt="Edge",xt="Chrome",kt="IE",Ct="Opera",At="Firefox",St="Safari",Et=function(){return Tt({current:void 0,version:et.unknown()})},Tt=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(wt),isChrome:r(xt),isIE:r(kt),isOpera:r(Ct),isFirefox:r(At),isSafari:r(St)}},Ot={unknown:Et,nu:Tt,edge:R(wt),chrome:R(xt),ie:R(kt),opera:R(Ct),firefox:R(At),safari:R(St)},Rt="Windows",Dt="iOS",Lt="Android",Mt="Linux",Ft="OSX",Nt="Solaris",Bt="FreeBSD",It="ChromeOS",Pt=function(){return $t({current:void 0,version:et.unknown()})},$t=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Rt),isiOS:r(Dt),isAndroid:r(Lt),isOSX:r(Ft),isLinux:r(Mt),isSolaris:r(Nt),isFreeBSD:r(Bt),isChromeOS:r(It)}},jt={unknown:Pt,nu:$t,windows:R(Rt),ios:R(Dt),android:R(Lt),linux:R(Mt),osx:R(Ft),solaris:R(Nt),freebsd:R(Bt),chromeos:R(It)},zt=function(e,t,n){var r=yt.browsers(),i=yt.oses(),o=t.bind((function(e){return tt(r,e)})).orThunk((function(){return rt(r,e)})).fold(Ot.unknown,Ot.nu),a=it(i,e).fold(jt.unknown,jt.nu),s=Ke(a,o,e,n);return{browser:o,os:a,deviceType:s}},qt={detect:zt},Ht=function(e){return window.matchMedia(e).matches},Ut=Ge((function(){return qt.detect(navigator.userAgent,U.from(navigator.userAgentData),Ht)})),Wt=function(){return Ut()},Vt=navigator.userAgent,Gt=Wt(),Kt=Gt.browser,Yt=Gt.os,Xt=Gt.deviceType,Qt=/WebKit/.test(Vt)&&!Kt.isEdge(),Jt="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,Zt=-1!==Vt.indexOf("Windows Phone"),en={opera:Kt.isOpera(),webkit:Qt,ie:!(!Kt.isIE()&&!Kt.isEdge())&&Kt.version.major,gecko:Kt.isFirefox(),mac:Yt.isOSX()||Yt.isiOS(),iOS:Xt.isiPad()||Xt.isiPhone(),android:Yt.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Kt.isIE()?document.documentMode||7:10,fileApi:Jt,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Kt.isIE(),desktop:Xt.isDesktop(),windowsPhone:Zt,browser:{current:Kt.current,version:Kt.version,isChrome:Kt.isChrome,isEdge:Kt.isEdge,isFirefox:Kt.isFirefox,isIE:Kt.isIE,isOpera:Kt.isOpera,isSafari:Kt.isSafari},os:{current:Yt.current,version:Yt.version,isAndroid:Yt.isAndroid,isChromeOS:Yt.isChromeOS,isFreeBSD:Yt.isFreeBSD,isiOS:Yt.isiOS,isLinux:Yt.isLinux,isOSX:Yt.isOSX,isSolaris:Yt.isSolaris,isWindows:Yt.isWindows},deviceType:{isDesktop:Xt.isDesktop,isiPad:Xt.isiPad,isiPhone:Xt.isiPhone,isPhone:Xt.isPhone,isTablet:Xt.isTablet,isTouch:Xt.isTouch,isWebView:Xt.isWebView}},tn=/^\s*|\s*$/g,nn=function(e){return null===e||void 0===e?"":(""+e).replace(tn,"")},rn=function(e,t){return t?!("array"!==t||!Ne(e))||typeof e===t:void 0!==e},on=function(e,t,n){var r;e=e||[],t=t||",","string"===typeof e&&(e=e.split(t)),n=n||{},r=e.length;while(r--)n[e[r]]={};return n},an=Le,sn=function(e,t,n){var r,i,o,a=this,s=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var c=e[3].match(/(^|\.)(\w+)$/i)[2],l=a.createNS(e[3].replace(/\.\w+$/,""),n);if(!l[c]){if("static"===e[2])return l[c]=t,void(this.onCreate&&this.onCreate(e[2],e[3],l[c]));t[c]||(t[c]=function(){},s=1),l[c]=t[c],a.extend(l[c].prototype,t),e[5]&&(r=a.resolve(e[5]).prototype,i=e[5].match(/\.(\w+)$/i)[1],o=l[c],l[c]=s?function(){return r[i].apply(this,arguments)}:function(){return this.parent=r[i],o.apply(this,arguments)},l[c].prototype[c]=l[c],a.each(r,(function(e,t){l[c].prototype[t]=r[t]})),a.each(t,(function(e,t){r[t]?l[c].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==c&&(l[c].prototype[t]=e)}))),a.each(t.static,(function(e,t){l[c][t]=e}))}},cn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++){var i=t[r];for(var o in i)if(Le(i,o)){var a=i[o];void 0!==a&&(e[o]=a)}}return e},ln=function(e,t,n,r){r=r||this,e&&(n&&(e=e[n]),Ie(e,(function(e,i){if(!1===t.call(r,e,i,n))return!1;ln(e,t,n,r)})))},un=function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0;n<e.length;n++)r=e[n],t[r]||(t[r]={}),t=t[r];return t},dn=function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0,r=e.length;n<r;n++)if(t=t[e[n]],!t)break;return t},fn=function(e,t){return!e||rn(e,"array")?e:Pe(e.split(t||","),nn)},pn=function(e){var t=en.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e},hn={trim:nn,isArray:Ne,is:rn,toArray:Be,makeMap:on,each:Ie,map:Pe,grep:$e,inArray:je,hasOwn:an,extend:cn,create:sn,walk:ln,createNS:un,resolve:dn,explode:fn,_addCacheSuffix:pn},mn=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw new Error("HTML must have a single root node");return bn(r.childNodes[0])},gn=function(e,t){var n=t||document,r=n.createElement(e);return bn(r)},vn=function(e,t){var n=t||document,r=n.createTextNode(e);return bn(r)},bn=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},_n=function(e,t,n){return U.from(e.dom.elementFromPoint(t,n)).map(bn)},yn={fromHtml:mn,fromTag:gn,fromText:vn,fromDom:bn,fromPoint:_n},wn=function(e,t){var n=[],r=function(e){return n.push(e),t(e)},i=t(e);do{i=i.bind(r)}while(i.isSome());return n},xn=function(e,t,n){return 0!==(e.compareDocumentPosition(t)&n)},kn=function(e,t){return xn(e,t,Node.DOCUMENT_POSITION_CONTAINED_BY)},Cn=8,An=9,Sn=11,En=1,Tn=3,On=function(e,t){var n=e.dom;if(n.nodeType!==En)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Rn=function(e){return e.nodeType!==En&&e.nodeType!==An&&e.nodeType!==Sn||0===e.childElementCount},Dn=function(e,t){var n=void 0===t?document:t.dom;return Rn(n)?[]:J(n.querySelectorAll(e),yn.fromDom)},Ln=function(e,t){var n=void 0===t?document:t.dom;return Rn(n)?U.none():U.from(n.querySelector(e)).map(yn.fromDom)},Mn=function(e,t){return e.dom===t.dom},Fn=function(e,t){var n=e.dom,r=t.dom;return n!==r&&n.contains(r)},Nn=function(e,t){return kn(e.dom,t.dom)},Bn=function(e,t){return Wt().browser.isIE()?Nn(e,t):Fn(e,t)};"undefined"!==typeof window?window:Function("return this;")();var In=function(e){var t=e.dom.nodeName;return t.toLowerCase()},Pn=function(e){return e.dom.nodeType},$n=function(e){return function(t){return Pn(t)===e}},jn=function(e){return Pn(e)===Cn||"#comment"===In(e)},zn=$n(En),qn=$n(Tn),Hn=$n(An),Un=$n(Sn),Wn=function(e){return function(t){return zn(t)&&In(t)===e}},Vn=function(e){return yn.fromDom(e.dom.ownerDocument)},Gn=function(e){return Hn(e)?e:Vn(e)},Kn=function(e){return yn.fromDom(Gn(e).dom.documentElement)},Yn=function(e){return yn.fromDom(Gn(e).dom.defaultView)},Xn=function(e){return U.from(e.dom.parentNode).map(yn.fromDom)},Qn=function(e,t){var n=A(t)?t:P,r=e.dom,i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=yn.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},Jn=function(e){var t=function(t){return ne(t,(function(t){return!Mn(e,t)}))};return Xn(e).map(rr).map(t).getOr([])},Zn=function(e){return U.from(e.dom.previousSibling).map(yn.fromDom)},er=function(e){return U.from(e.dom.nextSibling).map(yn.fromDom)},tr=function(e){return de(wn(e,Zn))},nr=function(e){return wn(e,er)},rr=function(e){return J(e.dom.childNodes,yn.fromDom)},ir=function(e,t){var n=e.dom.childNodes;return U.from(n[t]).map(yn.fromDom)},or=function(e){return ir(e,0)},ar=function(e){return ir(e,e.dom.childNodes.length-1)},sr=function(e){return e.dom.childNodes.length},cr=function(e){var t=e.dom.head;if(null===t||void 0===t)throw new Error("Head is not available yet");return yn.fromDom(t)},lr=function(e){return Un(e)&&C(e.dom.host)},ur=A(Element.prototype.attachShadow)&&A(Node.prototype.getRootNode),dr=R(ur),fr=ur?function(e){return yn.fromDom(e.dom.getRootNode())}:Gn,pr=function(e){return lr(e)?e:cr(Gn(e))},hr=function(e){var t=fr(e);return lr(t)?U.some(t):U.none()},mr=function(e){return yn.fromDom(e.dom.host)},gr=function(e){if(dr()&&C(e.target)){var t=yn.fromDom(e.target);if(zn(t)&&vr(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return ge(n)}}return U.from(e.target)},vr=function(e){return C(e.dom.shadowRoot)},br=function(e,t){var n=Xn(e);n.each((function(n){n.dom.insertBefore(t.dom,e.dom)}))},_r=function(e,t){var n=er(e);n.fold((function(){var n=Xn(e);n.each((function(e){wr(e,t)}))}),(function(e){br(e,t)}))},yr=function(e,t){var n=or(e);n.fold((function(){wr(e,t)}),(function(n){e.dom.insertBefore(t.dom,n.dom)}))},wr=function(e,t){e.dom.appendChild(t.dom)},xr=function(e,t){br(e,t),wr(t,e)},kr=function(e,t){Z(t,(function(t){br(e,t)}))},Cr=function(e,t){Z(t,(function(t){wr(e,t)}))},Ar=function(e){e.dom.textContent="",Z(rr(e),(function(e){Sr(e)}))},Sr=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Er=function(e){var t=rr(e);t.length>0&&kr(e,t),Sr(e)},Tr=function(e){var t=qn(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return hr(yn.fromDom(t)).fold((function(){return n.body.contains(t)}),O(Tr,mr))},Or=function(e,t){var n=function(n,r){return Or(e+n,t+r)};return{left:e,top:t,translate:n}},Rr=Or,Dr=function(e){var t=e.getBoundingClientRect();return Rr(t.left,t.top)},Lr=function(e,t){return void 0!==e?e:void 0!==t?t:0},Mr=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,i=t.documentElement;if(n===e.dom)return Rr(n.offsetLeft,n.offsetTop);var o=Lr(null===r||void 0===r?void 0:r.pageYOffset,i.scrollTop),a=Lr(null===r||void 0===r?void 0:r.pageXOffset,i.scrollLeft),s=Lr(i.clientTop,n.clientTop),c=Lr(i.clientLeft,n.clientLeft);return Fr(e).translate(a-c,o-s)},Fr=function(e){var t=e.dom,n=t.ownerDocument,r=n.body;return r===t?Rr(r.offsetLeft,r.offsetTop):Tr(e)?Dr(t):Rr(0,0)},Nr=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Rr(n,r)},Br=function(e,t,n){var r=void 0!==n?n.dom:document,i=r.defaultView;i&&i.scrollTo(e,t)},Ir=function(e,t){var n=Wt().browser.isSafari();n&&A(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)},Pr=function(e){var t=void 0===e?window:e;return Wt().browser.isFirefox()?U.none():U.from(t["visualViewport"])},$r=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},jr=function(e){var t=void 0===e?window:e,n=t.document,r=Nr(yn.fromDom(n));return Pr(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,i=e.clientHeight;return $r(r.left,r.top,n,i)}),(function(e){return $r(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},zr=function(e){return function(t){return!!t&&t.nodeType===e}},qr=function(e){return!!e&&!Object.getPrototypeOf(e)},Hr=zr(1),Ur=function(e){var t=e.map((function(e){return e.toLowerCase()}));return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return X(t,n)}return!1}},Wr=function(e,t){var n=t.toLowerCase().split(" ");return function(t){if(Hr(t))for(var r=0;r<n.length;r++){var i=t.ownerDocument.defaultView.getComputedStyle(t,null),o=i?i.getPropertyValue(e):null;if(o===n[r])return!0}return!1}},Vr=function(e){return function(t){return Hr(t)&&t.hasAttribute(e)}},Gr=function(e,t){return function(n){return Hr(n)&&n.getAttribute(e)===t}},Kr=function(e){return Hr(e)&&e.hasAttribute("data-mce-bogus")},Yr=function(e){return Hr(e)&&"all"===e.getAttribute("data-mce-bogus")},Xr=function(e){return Hr(e)&&"TABLE"===e.tagName},Qr=function(e){return function(t){if(Hr(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},Jr=Ur(["textarea","input"]),Zr=zr(3),ei=zr(8),ti=zr(9),ni=zr(11),ri=Ur(["br"]),ii=Ur(["img"]),oi=Qr("true"),ai=Qr("false"),si=Ur(["td","th"]),ci=Ur(["video","audio","object","embed"]),li=function(e,t,n){return void 0===n&&(n=L),e.exists((function(e){return n(e,t)}))},ui=function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t},di=function(e,t,n){return e.isSome()&&t.isSome()?U.some(n(e.getOrDie(),t.getOrDie())):U.none()},fi=function(e,t,n,r){return e.isSome()&&t.isSome()&&n.isSome()?U.some(r(e.getOrDie(),t.getOrDie(),n.getOrDie())):U.none()},pi=function(e,t){return e?U.some(t):U.none()},hi=function(e){return void 0!==e.style&&A(e.style.getPropertyValue)},mi=function(e,t,n){if(!(v(n)||w(n)||S(n)))throw new Error("Attribute value was not simple");e.setAttribute(t,n+"")},gi=function(e,t,n){mi(e.dom,t,n)},vi=function(e,t){var n=e.dom;xe(t,(function(e,t){mi(n,t,e)}))},bi=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},_i=function(e,t){return U.from(bi(e,t))},yi=function(e,t){var n=e.dom;return!(!n||!n.hasAttribute)&&n.hasAttribute(t)},wi=function(e,t){e.dom.removeAttribute(t)},xi=function(e){return ie(e.dom.attributes,(function(e,t){return e[t.name]=t.value,e}),{})},ki=function(e,t,n){if(!v(n))throw new Error("CSS value must be a string: "+n);hi(e)&&e.style.setProperty(t,n)},Ci=function(e,t){var n=e.dom;xe(t,(function(e,t){ki(n,t,e)}))},Ai=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||Tr(e)?i:Si(n,t)},Si=function(e,t){return hi(e)?e.style.getPropertyValue(t):""},Ei=function(e,t){var n=e.dom,r=Si(n,t);return U.from(r).filter((function(e){return e.length>0}))},Ti=function(e){var t={},n=e.dom;if(hi(n))for(var r=0;r<n.style.length;r++){var i=n.style.item(r);t[i]=n.style[i]}return t},Oi=function(e){return e.dom.offsetWidth},Ri=Wt().browser,Di=function(e){return ae(e,zn)},Li=function(e){return Ri.isFirefox()&&"table"===In(e)?Di(rr(e)).filter((function(e){return"caption"===In(e)})).bind((function(e){return Di(nr(e)).map((function(t){var n=t.dom.offsetTop,r=e.dom.offsetTop,i=e.dom.offsetHeight;return n<=r?-i:0}))})).getOr(0):0},Mi=function(e,t){return e.children&&X(e.children,t)},Fi=function(e,t,n){var r=0,i=0,o=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===Ai(yn.fromDom(e),"position")){var a=t.getBoundingClientRect();return r=a.left+(o.documentElement.scrollLeft||e.scrollLeft)-o.documentElement.clientLeft,i=a.top+(o.documentElement.scrollTop||e.scrollTop)-o.documentElement.clientTop,{x:r,y:i}}var s=t;while(s&&s!==n&&s.nodeType&&!Mi(s,n)){var c=s;r+=c.offsetLeft||0,i+=c.offsetTop||0,s=c.offsetParent}s=t.parentNode;while(s&&s!==n&&s.nodeType&&!Mi(s,n))r-=s.scrollLeft||0,i-=s.scrollTop||0,s=s.parentNode;i+=Li(yn.fromDom(t))}return{x:r,y:i}},Ni={},Bi={exports:Ni};(function(e,n,r,i){(function(t,i){"object"===typeof n&&"undefined"!==typeof r?r.exports=i():"function"===typeof e&&e.amd?e(i):(t="undefined"!==typeof globalThis?globalThis:t||self,t.EphoxContactWrapper=i())})(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 i(e,t){return function(){e.apply(t,arguments)}}function o(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function a(e,t){while(3===e._state)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(i){return void c(t.promise,i)}s(t.promise,r)}else(1===e._state?s:c)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===typeof t||"function"===typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void l(e);if("function"===typeof n)return void d(i(n,t),e)}e._state=1,e._value=t,l(e)}catch(r){c(e,r)}}function c(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function u(e,t,n){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,s(t,e))}),(function(e){n||(n=!0,c(t,e))}))}catch(r){if(n)return;n=!0,c(t,r)}}o.prototype["catch"]=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new u(e,t,n)),n},o.all=function(e){var t=Array.prototype.slice.call(e);return new o((function(e,n){if(0===t.length)return e([]);var r=t.length;function i(o,a){try{if(a&&("object"===typeof a||"function"===typeof a)){var s=a.then;if("function"===typeof s)return void s.call(a,(function(e){i(o,e)}),n)}t[o]=a,0===--r&&e(t)}catch(c){n(c)}}for(var o=0;o<t.length;o++)i(o,t[o])}))},o.resolve=function(e){return e&&"object"===typeof e&&e.constructor===o?e:new o((function(t){t(e)}))},o.reject=function(e){return new o((function(t,n){n(e)}))},o.race=function(e){return new o((function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)}))},o._immediateFn="function"===typeof setImmediate?function(e){setImmediate(e)}:function(e){n(e,0)},o._unhandledRejectionFn=function(e){"undefined"!==typeof console&&console},o._setImmediateFn=function(e){o._immediateFn=e},o._setUnhandledRejectionFn=function(e){o._unhandledRejectionFn=e},t.exports?t.exports=o:e.Promise||(e.Promise=o)})(e)})(n);var r=n.exports,i=function(){return"undefined"!==typeof window?window:Function("return this;")()}(),o={boltExport:i.Promise||r};return o}))})(void 0,Ni,Bi);var Ii=Bi.exports.boltExport,Pi=function(e){var t=U.none(),n=[],r=function(e){return Pi((function(t){i((function(n){t(e(n))}))}))},i=function(e){a()?c(e):n.push(e)},o=function(e){a()||(t=U.some(e),s(n),n=[])},a=function(){return t.isSome()},s=function(e){Z(e,c)},c=function(e){t.each((function(t){setTimeout((function(){e(t)}),0)}))};return e(o),{get:i,map:r,isReady:a}},$i=function(e){return Pi((function(t){t(e)}))},ji={nu:Pi,pure:$i},zi=function(e){setTimeout((function(){throw e}),0)},qi=function(e){var t=function(t){e().then(t,zi)},n=function(t){return qi((function(){return e().then(t)}))},r=function(t){return qi((function(){return e().then((function(e){return t(e).toPromise()}))}))},i=function(t){return qi((function(){return e().then((function(){return t.toPromise()}))}))},o=function(){return ji.nu(t)},a=function(){var t=null;return qi((function(){return null===t&&(t=e()),t}))},s=e;return{map:n,bind:r,anonBind:i,toLazy:o,toCached:a,toPromise:s,get:t}},Hi=function(e){return qi((function(){return new Ii(e)}))},Ui=function(e){return qi((function(){return Ii.resolve(e)}))},Wi={nu:Hi,pure:Ui},Vi=function(e,t){return t((function(t){var n=[],r=0,i=function(i){return function(o){n[i]=o,r++,r>=e.length&&t(n)}};0===e.length?t([]):Z(e,(function(e,t){e.get(i(t))}))}))},Gi=function(e){return Vi(e,Wi.nu)},Ki=function(e){var t=function(t){return Ki(e)},n=function(t){return Ki(e)},r=function(t){return Ki(t(e))},i=function(t){return Ki(e)},o=function(t){t(e)},a=function(t){return t(e)},s=function(t,n){return n(e)},c=function(t){return t(e)},l=function(t){return t(e)},u=function(){return U.some(e)};return{isValue:$,isError:P,getOr:R(e),getOrThunk:R(e),getOrDie:R(e),or:t,orThunk:n,fold:s,map:r,mapError:i,each:o,bind:a,exists:c,forall:l,toOptional:u}},Yi=function(e){var t=function(e){return e()},n=function(){return N(String(e))()},r=D,i=function(e){return e()},o=function(t){return Yi(e)},a=function(t){return Yi(t(e))},s=function(t){return Yi(e)},c=function(t,n){return t(e)};return{isValue:P,isError:$,getOr:D,getOrThunk:t,getOrDie:n,or:r,orThunk:i,fold:c,map:o,mapError:a,each:E,bind:s,exists:P,forall:$,toOptional:U.none}},Xi=function(e,t){return e.fold((function(){return Yi(t)}),Ki)},Qi={value:Ki,error:Yi,fromOption:Xi},Ji=function(e){if(!_(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return Z(e,(function(r,i){var o=ye(r);if(1!==o.length)throw new Error("one and only one name per case");var a=o[0],s=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(!_(s))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=n.length;if(o!==s.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+s.length+" ("+s+"), got "+o);var c=function(e){var r=ye(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));var i=ue(t,(function(e){return X(r,e)}));if(!i)throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)};return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);var o=t[i];return o.apply(null,n)},match:c,log:function(e){}}}})),n},Zi={generate:Ji};Zi.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var eo=function(e){return e.fold(D,D)};function to(e,t,n,r,i){return e(n,r)?U.some(n):A(i)&&i(n)?U.none():t(n,r,i)}var no,ro,io,oo,ao,so,co,lo,uo,fo,po,ho,mo,go,vo,bo,_o,yo,wo,xo=function(e,t,n){var r=e.dom,i=A(n)?n:P;while(r.parentNode){r=r.parentNode;var o=yn.fromDom(r);if(t(o))return U.some(o);if(i(o))break}return U.none()},ko=function(e,t,n){var r=function(e,t){return t(e)};return to(r,xo,e,t,n)},Co=function(e,t){var n=e.dom;return n.parentNode?Ao(yn.fromDom(n.parentNode),(function(n){return!Mn(e,n)&&t(n)})):U.none()},Ao=function(e,t){var n=function(e){return t(yn.fromDom(e))},r=ae(e.dom.childNodes,n);return r.map(yn.fromDom)},So=function(e,t,n){return xo(e,(function(e){return On(e,t)}),n)},Eo=function(e,t){return Ln(t,e)},To=function(e,t,n){var r=function(e,t){return On(e,t)};return to(r,So,e,t,n)},Oo=window.Promise?window.Promise:Ii,Ro=function(e,t){for(var n=window.requestAnimationFrame,r=["ms","moz","webkit"],i=function(e){window.setTimeout(e,0)},o=0;o<r.length&&!n;o++)n=window[r[o]+"RequestAnimationFrame"];n||(n=i),n(e,t)},Do=function(e,t){return"number"!==typeof t&&(t=0),setTimeout(e,t)},Lo=function(e,t){return"number"!==typeof t&&(t=1),setInterval(e,t)},Mo=function(e){return clearTimeout(e)},Fo=function(e){return clearInterval(e)},No=function(e,t){var n,r=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];clearTimeout(n),n=Do((function(){e.apply(this,r)}),t)};return r.stop=function(){clearTimeout(n)},r},Bo={requestAnimationFrame:function(e,t){no?no.then(e):no=new Oo((function(e){t||(t=document.body),Ro(e,t)})).then(e)},setTimeout:Do,setInterval:Lo,setEditorTimeout:function(e,t,n){return Do((function(){e.removed||t()}),n)},setEditorInterval:function(e,t,n){var r=Lo((function(){e.removed?clearInterval(r):t()}),n);return r},debounce:No,throttle:No,clearInterval:Fo,clearTimeout:Mo},Io=function(e,t){void 0===t&&(t={});var n=0,r={},i=yn.fromDom(e),o=Gn(i),a=t.maxLoadTime||5e3,s=function(e){t.referrerPolicy=e},c=function(e){wr(pr(i),e)},l=function(e){var t=pr(i);Eo(t,"#"+e).each(Sr)},u=function(e){return De(r,e).getOrThunk((function(){return{id:"mce-u"+n++,passed:[],failed:[],count:0}}))},d=function(n,i,s){var l,d=hn._addCacheSuffix(n),f=u(d);r[d]=f,f.count++;var p=function(e,t){var n=e.length;while(n--)e[n]();f.status=t,f.passed=[],f.failed=[],l&&(l.onload=null,l.onerror=null,l=null)},h=function(){return p(f.passed,2)},m=function(){return p(f.failed,3)},g=function(e,t){e()||(Date.now()-_<a?Bo.setTimeout(t):m())},v=function(){g((function(){var t=e.styleSheets,n=t.length;while(n--){var r=t[n],i=r.ownerNode;if(i&&i.id===l.id)return h(),!0}return!1}),v)};if(i&&f.passed.push(i),s&&f.failed.push(s),1!==f.status)if(2!==f.status)if(3!==f.status){f.status=1;var b=yn.fromTag("link",o.dom);vi(b,{rel:"stylesheet",type:"text/css",id:f.id});var _=Date.now();t.contentCssCors&&gi(b,"crossOrigin","anonymous"),t.referrerPolicy&&gi(b,"referrerpolicy",t.referrerPolicy),l=b.dom,l.onload=v,l.onerror=m,c(b),gi(b,"href",d)}else m();else h()},f=function(e){return Wi.nu((function(t){d(e,T(t,R(Qi.value(e))),T(t,R(Qi.error(e))))}))},p=function(e,t,n){Gi(J(e,f)).get((function(e){var r=te(e,(function(e){return e.isValue()}));r.fail.length>0?n(r.fail.map(eo)):t(r.pass.map(eo))}))},h=function(e){var t=hn._addCacheSuffix(e);De(r,t).each((function(e){var n=--e.count;0===n&&(delete r[t],l(e.id))}))},m=function(e){Z(e,(function(e){h(e)}))};return{load:d,loadAll:p,unload:h,unloadAll:m,_setReferrerPolicy:s}},Po=function(){var e=new WeakMap,t=function(t,n){var r=fr(t),i=r.dom;return U.from(e.get(i)).getOrThunk((function(){var t=Io(i,n);return e.set(i,t),t}))};return{forElement:t}},$o=Po(),jo=function(){function e(e,t){this.node=e,this.rootNode=t,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return e.prototype.current=function(){return this.node},e.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},e.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},e.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},e.prototype.findSibling=function(e,t,n,r){var i,o;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(i=e[n],i)return i;for(o=e.parentNode;o&&o!==this.rootNode;o=o.parentNode)if(i=o[n],i)return i}}},e.prototype.findPreviousNode=function(e,t,n,r){var i,o,a;if(e){if(i=e[n],this.rootNode&&i===this.rootNode)return;if(i){if(!r)for(a=i[t];a;a=a[t])if(!a[t])return a;return i}if(o=e.parentNode,o&&o!==this.rootNode)return o}},e}(),zo=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],qo=["td","th"],Ho=["thead","tbody","tfoot"],Uo=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],Wo=["h1","h2","h3","h4","h5","h6"],Vo=["li","dd","dt"],Go=["ul","ol","dl"],Ko=["pre","script","textarea","style"],Yo=function(e){var t;return function(n){return t=t||pe(e,$),Le(t,In(n))}},Xo=Yo(Wo),Qo=Yo(zo),Jo=function(e){return"table"===In(e)},Zo=function(e){return zn(e)&&!Qo(e)},ea=function(e){return zn(e)&&"br"===In(e)},ta=Yo(Uo),na=Yo(Go),ra=Yo(Vo),ia=Yo(Ho),oa=Yo(qo),aa=Yo(Ko),sa=function(e,t,n){return So(e,t,n).isSome()},ca="\ufeff",la=" ",ua=function(e){return e===ca},da=function(e){return e.replace(/\uFEFF/g,"")},fa=ca,pa=ua,ha=da,ma=Hr,ga=Zr,va=function(e){return ga(e)&&(e=e.parentNode),ma(e)&&e.hasAttribute("data-mce-caret")},ba=function(e){return ga(e)&&pa(e.data)},_a=function(e){return va(e)||ba(e)},ya=function(e){return e.firstChild!==e.lastChild||!ri(e.firstChild)},wa=function(e,t){var n=e.ownerDocument,r=n.createTextNode(fa),i=e.parentNode;if(t){o=e.previousSibling;if(ga(o)){if(_a(o))return o;if(Ea(o))return o.splitText(o.data.length-1)}i.insertBefore(r,e)}else{var o=e.nextSibling;if(ga(o)){if(_a(o))return o;if(Sa(o))return o.splitText(1),o}e.nextSibling?i.insertBefore(r,e.nextSibling):i.appendChild(r)}return r},xa=function(e){var t=e.container();return!!Zr(t)&&(t.data.charAt(e.offset())===fa||e.isAtStart()&&ba(t.previousSibling))},ka=function(e){var t=e.container();return!!Zr(t)&&(t.data.charAt(e.offset()-1)===fa||e.isAtEnd()&&ba(t.nextSibling))},Ca=function(){var e=document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},Aa=function(e,t,n){var r=t.ownerDocument,i=r.createElement(e);i.setAttribute("data-mce-caret",n?"before":"after"),i.setAttribute("data-mce-bogus","all"),i.appendChild(Ca());var o=t.parentNode;return n?o.insertBefore(i,t):t.nextSibling?o.insertBefore(i,t.nextSibling):o.appendChild(i),i},Sa=function(e){return ga(e)&&e.data[0]===fa},Ea=function(e){return ga(e)&&e.data[e.data.length-1]===fa},Ta=function(e){var t=e.getElementsByTagName("br"),n=t[t.length-1];Kr(n)&&n.parentNode.removeChild(n)},Oa=function(e){return e&&e.hasAttribute("data-mce-caret")?(Ta(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},Ra=function(e){return va(e.startContainer)},Da=oi,La=ai,Ma=ri,Fa=Zr,Na=Ur(["script","style","textarea"]),Ba=Ur(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Ia=Ur(["table"]),Pa=_a,$a=function(e){return!Pa(e)&&(Fa(e)?!Na(e.parentNode):Ba(e)||Ma(e)||Ia(e)||za(e))},ja=function(e){return Hr(e)&&"true"===e.getAttribute("unselectable")},za=function(e){return!1===ja(e)&&La(e)},qa=function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(za(e))return!1;if(Da(e))return!0}return!0},Ha=function(e){return!!za(e)&&!0!==ie(be(e.getElementsByTagName("*")),(function(e,t){return e||Da(t)}),!1)},Ua=function(e){return Ba(e)||Ha(e)},Wa=function(e,t){return $a(e)&&qa(e,t)},Va=/^[ \t\r\n]*$/,Ga=function(e){return Va.test(e)},Ka=function(e,t){var n=yn.fromDom(t),r=yn.fromDom(e);return sa(r,"pre,code",M(Mn,n))},Ya=function(e,t){return Zr(e)&&Ga(e.data)&&!1===Ka(e,t)},Xa=function(e){return Hr(e)&&"A"===e.nodeName&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id"))},Qa=function(e,t){return $a(e)&&!1===Ya(e,t)||Xa(e)||Ja(e)},Ja=Vr("data-mce-bookmark"),Za=Vr("data-mce-bogus"),es=Gr("data-mce-bogus","all"),ts=function(e,t){var n=0;if(Qa(e,e))return!1;var r=e.firstChild;if(!r)return!0;var i=new jo(r,e);do{if(t){if(es(r)){r=i.next(!0);continue}if(Za(r)){r=i.next();continue}}if(ri(r))n++,r=i.next();else{if(Qa(r,e))return!1;r=i.next()}}while(r);return n<=1},ns=function(e,t){return void 0===t&&(t=!0),ts(e.dom,t)},rs=function(e){return"span"===e.nodeName.toLowerCase()},is=function(e,t){return C(e)&&(Qa(e,t)||Zo(yn.fromDom(e)))},os=function(e,t){var n=new jo(e,t).prev(!1),r=new jo(e,t).next(!1),i=x(n)||is(n,t),o=x(r)||is(r,t);return i&&o},as=function(e){return rs(e)&&"bookmark"===e.getAttribute("data-mce-type")},ss=function(e,t){return Zr(e)&&e.data.length>0&&os(e,t)},cs=function(e){return!!Hr(e)&&e.childNodes.length>0},ls=function(e){return ni(e)||ti(e)},us=function(e,t,n){var r=n||t;if(Hr(t)&&as(t))return t;for(var i=t.childNodes,o=i.length-1;o>=0;o--)us(e,i[o],r);if(Hr(t)){var a=t.childNodes;1===a.length&&as(a[0])&&t.parentNode.insertBefore(a[0],t)}return ls(t)||Qa(t,r)||cs(t)||ss(t,r)||e.remove(t),t},ds=hn.makeMap,fs=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ps=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,hs=/[<>&\"\']/g,ms=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,gs={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},vs={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},bs={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"},_s=function(e){var t=yn.fromTag("div").dom;return t.innerHTML=e,t.textContent||t.innerText||e},ys=function(e,t){var n,r,i,o={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),vs[r]||(i="&"+e[n+1]+";",o[r]=i,o[i]=r);return o}},ws=ys("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),xs=function(e,t){return e.replace(t?fs:ps,(function(e){return vs[e]||e}))},ks=function(e){return(""+e).replace(hs,(function(e){return vs[e]||e}))},Cs=function(e,t){return e.replace(t?fs:ps,(function(e){return e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":vs[e]||"&#"+e.charCodeAt(0)+";"}))},As=function(e,t,n){return n=n||ws,e.replace(t?fs:ps,(function(e){return vs[e]||n[e]||e}))},Ss=function(e,t){var n=ys(t)||ws,r=function(e,t){return e.replace(t?fs:ps,(function(e){return void 0!==vs[e]?vs[e]:void 0!==n[e]?n[e]:e.length>1?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"}))},i=function(e,t){return As(e,t,n)},o=ds(e.replace(/\+/g,","));return o.named&&o.numeric?r:o.named?t?i:As:o.numeric?Cs:xs},Es=function(e){return e.replace(ms,(function(e,t){return t?(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10),t>65535?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):gs[t]||String.fromCharCode(t)):bs[e]||ws[e]||_s(e)}))},Ts={encodeRaw:xs,encodeAllRaw:ks,encodeNumeric:Cs,encodeNamed:As,getEncodeFunc:Ss,decode:Es},Os={},Rs={},Ds=hn.makeMap,Ls=hn.each,Ms=hn.extend,Fs=hn.explode,Ns=hn.inArray,Bs=function(e,t){return e=hn.trim(e),e?e.split(t||" "):[]},Is=function(e,t){var n=Ds(e," ",Ds(e.toUpperCase()," "));return Ms(n,t)},Ps=function(e){return Is("td th li dt dd figcaption caption details summary",e.getTextBlockElements())},$s=function(e){var t,n,r,i,o,a,s={},c=function(e,n,r){var i,o,a,c=function(e,t){var n,r,i={};for(n=0,r=e.length;n<r;n++)i[e[n]]=t||{};return i};r=r||[],n=n||"","string"===typeof r&&(r=Bs(r));var l=Bs(e);i=l.length;while(i--)o=Bs([t,n].join(" ")),a={attributes:c(o),attributesOrder:o,children:c(r,Rs)},s[l[i]]=a},l=function(e,t){var n,r,i,o,a=Bs(e);n=a.length;var c=Bs(t);while(n--)for(r=s[a[n]],i=0,o=c.length;i<o;i++)r.attributes[c[i]]={},r.attributesOrder.push(c[i])};return Os[e]?Os[e]:(t="id accesskey class dir lang style tabindex title role",n="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==e&&(t+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",n+=" article aside details dialog figure main header footer hgroup section nav",r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==e&&(t+=" xml:lang",a="acronym applet basefont big font strike tt",r=[r,a].join(" "),Ls(Bs(a),(function(e){c(e,"",r)})),o="center dir isindex noframes",n=[n,o].join(" "),i=[n,r].join(" "),Ls(Bs(o),(function(e){c(e,"",i)}))),i=i||[n,r].join(" "),c("html","manifest","head body"),c("head","","base command link meta noscript script style title"),c("title hr noscript br"),c("base","href target"),c("link","href rel media hreflang type sizes hreflang"),c("meta","name http-equiv content charset"),c("style","media type scoped"),c("script","src async defer type charset"),c("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",i),c("address dt dd div caption","",i),c("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",r),c("blockquote","cite",i),c("ol","reversed start type","li"),c("ul","","li"),c("li","value",i),c("dl","","dt dd"),c("a","href target rel media hreflang type",r),c("q","cite",r),c("ins del","cite datetime",i),c("img","src sizes srcset alt usemap ismap width height"),c("iframe","src name width height",i),c("embed","src type width height"),c("object","data type typemustmatch name usemap form width height",[i,"param"].join(" ")),c("param","name value"),c("map","name",[i,"area"].join(" ")),c("area","alt coords shape href target rel media hreflang type"),c("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),c("colgroup","span","col"),c("col","span"),c("tbody thead tfoot","","tr"),c("tr","","td th"),c("td","colspan rowspan headers",i),c("th","colspan rowspan headers scope abbr",i),c("form","accept-charset action autocomplete enctype method name novalidate target",i),c("fieldset","disabled form name",[i,"legend"].join(" ")),c("label","form for",r),c("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),c("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?i:r),c("select","disabled form multiple name required size","option optgroup"),c("optgroup","disabled label","option"),c("option","disabled label selected value"),c("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),c("menu","type label",[i,"li"].join(" ")),c("noscript","",i),"html4"!==e&&(c("wbr"),c("ruby","",[r,"rt rp"].join(" ")),c("figcaption","",i),c("mark rt rp summary bdi","",r),c("canvas","width height",i),c("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[i,"track source"].join(" ")),c("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[i,"track source"].join(" ")),c("picture","","img source"),c("source","src srcset type media sizes"),c("track","kind src srclang label default"),c("datalist","",[r,"option"].join(" ")),c("article section nav aside main header footer","",i),c("hgroup","","h1 h2 h3 h4 h5 h6"),c("figure","",[i,"figcaption"].join(" ")),c("time","datetime",r),c("dialog","open",i),c("command","type label icon disabled checked radiogroup command"),c("output","for form name",r),c("progress","value max",r),c("meter","value min max low high optimum",r),c("details","open",[i,"summary"].join(" ")),c("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==e&&(l("script","language xml:space"),l("style","xml:space"),l("object","declare classid code codebase codetype archive standby align border hspace vspace"),l("embed","align name hspace vspace"),l("param","valuetype type"),l("a","charset name rev shape coords"),l("br","clear"),l("applet","codebase archive code object alt name width height align hspace vspace"),l("img","name longdesc align border hspace vspace"),l("iframe","longdesc frameborder marginwidth marginheight scrolling align"),l("font basefont","size color face"),l("input","usemap align"),l("select"),l("textarea"),l("h1 h2 h3 h4 h5 h6 div p legend caption","align"),l("ul","type compact"),l("li","type"),l("ol dl menu dir","compact"),l("pre","width xml:space"),l("hr","align noshade size width"),l("isindex","prompt"),l("table","summary width frame rules cellspacing cellpadding align bgcolor"),l("col","width align char charoff valign"),l("colgroup","width align char charoff valign"),l("thead","align char charoff valign"),l("tr","align char charoff valign bgcolor"),l("th","axis align char charoff valign nowrap bgcolor width height"),l("form","accept"),l("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),l("tfoot","align char charoff valign"),l("tbody","align char charoff valign"),l("area","nohref"),l("body","background bgcolor text link vlink alink")),"html4"!==e&&(l("input button select textarea","autofocus"),l("input textarea","placeholder"),l("a","download"),l("link script img","crossorigin"),l("img","loading"),l("iframe","sandbox seamless allowfullscreen loading")),Ls(Bs("a form meter progress dfn"),(function(e){s[e]&&delete s[e].children[e]})),delete s.caption.children.table,delete s.script,Os[e]=s,s)},js=function(e,t){var n;return e&&(n={},"string"===typeof e&&(e={"*":e}),Ls(e,(function(e,r){n[r]=n[r.toUpperCase()]="map"===t?Ds(e,/[, ]/):Fs(e,/[, ]/)}))),n},zs=function(e){var t={},n={},r=[],i={},o={},a=function(t,n,r){var i=e[t];return i?i=Ds(i,/[, ]/,Ds(i.toUpperCase(),/[, ]/)):(i=Os[t],i||(i=Is(n,r),Os[t]=i)),i};e=e||{};var s=$s(e.schema);!1===e.verify_html&&(e.valid_elements="*[*]");var c=js(e.valid_styles),l=js(e.invalid_styles,"map"),u=js(e.valid_classes,"map"),d=a("whitespace_elements","pre script noscript style textarea video audio iframe object code"),f=a("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),p=a("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),h=a("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),m="td th iframe video audio object script code",g=a("non_empty_elements",m+" pre",p),v=a("move_caret_before_on_enter_elements",m+" table",p),b=a("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),_=a("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",b),y=a("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp");Ls((e.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),(function(e){o[e]=new RegExp("</"+e+"[^>]*>","gi")}));var w=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},x=function(e){var n,i,o,a,s,c,l,u,d,f,p,h,m,g,v,b,_,y,x=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,k=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,C=/[*?+]/;if(e){var A=Bs(e,",");for(t["@"]&&(b=t["@"].attributes,_=t["@"].attributesOrder),n=0,i=A.length;n<i;n++)if(s=x.exec(A[n]),s){if(g=s[1],d=s[2],v=s[3],u=s[5],h={},m=[],c={attributes:h,attributesOrder:m},"#"===g&&(c.paddEmpty=!0),"-"===g&&(c.removeEmpty=!0),"!"===s[4]&&(c.removeEmptyAttrs=!0),b&&(xe(b,(function(e,t){h[t]=e})),m.push.apply(m,_)),u)for(u=Bs(u,"|"),o=0,a=u.length;o<a;o++)if(s=k.exec(u[o]),s){if(l={},p=s[1],f=s[2].replace(/[\\:]:/g,":"),g=s[3],y=s[4],"!"===p&&(c.attributesRequired=c.attributesRequired||[],c.attributesRequired.push(f),l.required=!0),"-"===p){delete h[f],m.splice(Ns(m,f),1);continue}g&&("="===g&&(c.attributesDefault=c.attributesDefault||[],c.attributesDefault.push({name:f,value:y}),l.defaultValue=y),":"===g&&(c.attributesForced=c.attributesForced||[],c.attributesForced.push({name:f,value:y}),l.forcedValue=y),"<"===g&&(l.validValues=Ds(y,"?"))),C.test(f)?(c.attributePatterns=c.attributePatterns||[],l.pattern=w(f),c.attributePatterns.push(l)):(h[f]||m.push(f),h[f]=l)}b||"@"!==d||(b=h,_=m),v&&(c.outputName=d,t[v]=c),C.test(d)?(c.pattern=w(d),r.push(c)):t[d]=c}}},k=function(e){t={},r=[],x(e),Ls(s,(function(e,t){n[t]=e.children}))},C=function(e){var r=/^(~)?(.+)$/;e&&(Os.text_block_elements=Os.block_elements=null,Ls(Bs(e,","),(function(e){var o=r.exec(e),a="~"===o[1],s=a?"span":"div",c=o[2];if(n[c]=n[s],i[c]=s,a||(_[c.toUpperCase()]={},_[c]={}),!t[c]){var l=t[s];l=Ms({},l),delete l.removeEmptyAttrs,delete l.removeEmpty,t[c]=l}Ls(n,(function(e,t){e[s]&&(n[t]=e=Ms({},n[t]),e[c]=e[s])}))})))},A=function(t){var r=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;Os[e.schema]=null,t&&Ls(Bs(t,","),(function(e){var t,i,o=r.exec(e);o&&(i=o[1],t=i?n[o[2]]:n[o[2]]={"#comment":{}},t=n[o[2]],Ls(Bs(o[3],"|"),(function(e){"-"===i?delete t[e]:t[e]={}})))}))},S=function(e){var n,i=t[e];if(i)return i;n=r.length;while(n--)if(i=r[n],i.pattern.test(e))return i};e.valid_elements?k(e.valid_elements):(Ls(s,(function(e,r){t[r]={attributes:e.attributes,attributesOrder:e.attributesOrder},n[r]=e.children})),"html5"!==e.schema&&Ls(Bs("strong/b em/i"),(function(e){var n=Bs(e,"/");t[n[1]].outputName=n[0]})),Ls(y,(function(n,r){t[r]&&(e.padd_empty_block_inline_children&&(t[r].paddInEmptyBlock=!0),t[r].removeEmpty=!0)})),Ls(Bs("ol ul blockquote a table tbody"),(function(e){t[e]&&(t[e].removeEmpty=!0)})),Ls(Bs("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),(function(e){t[e].paddEmpty=!0})),Ls(Bs("span"),(function(e){t[e].removeEmptyAttrs=!0}))),C(e.custom_elements),A(e.valid_children),x(e.extended_valid_elements),A("+ol[ul|ol],+ul[ul|ol]"),Ls({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(function(e,n){t[n]&&(t[n].parentsRequired=Bs(e))})),e.invalid_elements&&Ls(Fs(e.invalid_elements),(function(e){t[e]&&delete t[e]})),S("span")||x("span[!data-mce-type|*]");var E=R(c),T=R(l),O=R(u),D=R(h),L=R(_),M=R(b),F=R(y),N=R(p),B=R(f),I=R(g),P=R(v),$=R(d),j=R(o),z=function(e,t){var r=n[e.toLowerCase()];return!(!r||!r[t.toLowerCase()])},q=function(e,t){var n,r,i=S(e);if(i){if(!t)return!0;if(i.attributes[t])return!0;if(n=i.attributePatterns,n){r=n.length;while(r--)if(n[r].pattern.test(e))return!0}}return!1},H=R(i);return{children:n,elements:t,getValidStyles:E,getValidClasses:O,getBlockElements:L,getInvalidStyles:T,getShortEndedElements:N,getTextBlockElements:M,getTextInlineElements:F,getBoolAttrs:D,getElementRule:S,getSelfClosingElements:B,getNonEmptyElements:I,getMoveCaretBeforeOnEnterElements:P,getWhiteSpaceElements:$,getSpecialElements:j,isValidChild:z,isValid:q,getCustomElements:H,addValidElements:x,setValidElements:k,addCustomElements:C,addValidChildren:A}},qs=function(e,t,n,r){var i=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+i(t)+i(n)+i(r)},Hs=function(e,t){var n,r,i,o=this,a=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,s=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,c=/\s*([^:]+):\s*([^;]+);?/g,l=/\s+$/,u={},d=ca;e=e||{},t&&(r=t.getValidStyles(),i=t.getInvalidStyles());var f=("\\\" \\' \\; \\: ; : "+d).split(" ");for(n=0;n<f.length;n++)u[f[n]]=d+n,u[d+n]=f[n];return{toHex:function(e){return e.replace(a,qs)},parse:function(t){var r,i,f,p,h={},m=e.url_converter,g=e.url_converter_scope||o,v=function(e,t,r){var i=h[e+"-top"+t];if(i){var o=h[e+"-right"+t];if(o){var a=h[e+"-bottom"+t];if(a){var s=h[e+"-left"+t];if(s){var c=[i,o,a,s];n=c.length-1;while(n--)if(c[n]!==c[n+1])break;n>-1&&r||(h[e+t]=-1===n?c[0]:c.join(" "),delete h[e+"-top"+t],delete h[e+"-right"+t],delete h[e+"-bottom"+t],delete h[e+"-left"+t])}}}}},b=function(e){var t,n=h[e];if(n){n=n.split(" "),t=n.length;while(t--)if(n[t]!==n[0])return!1;return h[e]=n[0],!0}},_=function(e,t,n,r){b(t)&&b(n)&&b(r)&&(h[e]=h[t]+" "+h[n]+" "+h[r],delete h[t],delete h[n],delete h[r])},y=function(e){return p=!0,u[e]},w=function(e,t){return p&&(e=e.replace(/\uFEFF[0-9]/g,(function(e){return u[e]}))),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},x=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},k=function(e){return e.replace(/\\[0-9a-f]+/gi,x)},C=function(t,n,r,i,o,a){if(o=o||a,o)return o=w(o),"'"+o.replace(/\'/g,"\\'")+"'";if(n=w(n||r||i),!e.allow_script_urls){var s=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(s))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(s))return""}return m&&(n=m.call(g,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(t){t=t.replace(/[\u0000-\u001F]/g,""),t=t.replace(/\\[\"\';:\uFEFF]/g,y).replace(/\"[^\"]+\"|\'[^\']+\'/g,(function(e){return e.replace(/[;:]/g,y)}));while(r=c.exec(t))if(c.lastIndex=r.index+r[0].length,i=r[1].replace(l,"").toLowerCase(),f=r[2].replace(l,""),i&&f){if(i=k(i),f=k(f),-1!==i.indexOf(d)||-1!==i.indexOf('"'))continue;if(!e.allow_script_urls&&("behavior"===i||/expression\s*\(|\/\*|\*\//.test(f)))continue;"font-weight"===i&&"700"===f?f="bold":"color"!==i&&"background-color"!==i||(f=f.toLowerCase()),f=f.replace(a,qs),f=f.replace(s,C),h[i]=p?w(f,!0):f}v("border","",!0),v("border","-width"),v("border","-color"),v("border","-style"),v("padding",""),v("margin",""),_("border","border-width","border-style","border-color"),"medium none"===h.border&&delete h.border,"none"===h["border-image"]&&delete h["border-image"]}return h},serialize:function(e,t){var n="",o=function(t){var i,o=r[t];if(o)for(var a=0,s=o.length;a<s;a++)t=o[a],i=e[t],i&&(n+=(n.length>0?" ":"")+t+": "+i+";")},a=function(e,t){var n=i["*"];return(!n||!n[e])&&(n=i[t],!(n&&n[e]))};return t&&r?(o("*"),o(t)):xe(e,(function(e,r){!e||i&&!a(r,t)||(n+=(n.length>0?" ":"")+r+": "+e+";")})),n}}},Us={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},Ws=function(e){return e instanceof Event||A(e.initEvent)},Vs=function(e){return e.isDefaultPrevented===$||e.isDefaultPrevented===P},Gs=function(e){return k(e.preventDefault)||Ws(e)},Ks=function(e,t){var n=null!==t&&void 0!==t?t:{};for(var r in e)Le(Us,r)||(n[r]=e[r]);return C(n.composedPath)&&(n.composedPath=function(){return e.composedPath()}),n},Ys=function(e,t,n,r){var i,o=Ks(t,r);return o.type=e,k(o.target)&&(o.target=null!==(i=o.srcElement)&&void 0!==i?i:n),Gs(t)&&(o.preventDefault=function(){o.defaultPrevented=!0,o.isDefaultPrevented=$,A(t.preventDefault)?t.preventDefault():Ws(t)&&(t.returnValue=!1)},o.stopPropagation=function(){o.cancelBubble=!0,o.isPropagationStopped=$,A(t.stopPropagation)?t.stopPropagation():Ws(t)&&(t.cancelBubble=!0)},o.stopImmediatePropagation=function(){o.isImmediatePropagationStopped=$,o.stopPropagation()},Vs(o)||(o.isDefaultPrevented=!0===o.defaultPrevented?$:P,o.isPropagationStopped=!0===o.cancelBubble?$:P,o.isImmediatePropagationStopped=P)),o},Xs="mce-data-",Qs=/^(?:mouse|contextmenu)|click/,Js=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},Zs=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},ec=function(e){return C(e)&&Qs.test(e.type)},tc=function(e,t){var n=Ys(e.type,e,document,t);if(ec(e)&&x(e.pageX)&&!x(e.clientX)){var r=n.target.ownerDocument||document,i=r.documentElement,o=r.body,a=n;a.pageX=e.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),a.pageY=e.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)}return x(n.metaKey)&&(n.metaKey=!1),n},nc=function(e,t,n){var r=e.document,i={type:"ready"};if(n.domLoaded)t(i);else{var o=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},a=function(){Zs(e,"DOMContentLoaded",a),Zs(e,"load",a),n.domLoaded||(n.domLoaded=!0,t(i)),e=null};o()?a():Js(e,"DOMContentLoaded",a),n.domLoaded||Js(e,"load",a)}},rc=function(){function e(){this.domLoaded=!1,this.events={},this.count=1,this.expando=Xs+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in document.documentElement,this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}return e.prototype.bind=function(e,t,n,r){var i,o,a,s,c,l,u,d=this,f=window,p=function(e){d.executeHandlers(tc(e||f.event),i)};if(e&&3!==e.nodeType&&8!==e.nodeType){e[d.expando]?i=e[d.expando]:(i=d.count++,e[d.expando]=i,d.events[i]={}),r=r||e;var h=t.split(" ");a=h.length;while(a--)s=h[a],l=p,c=u=!1,"DOMContentLoaded"===s&&(s="ready"),d.domLoaded&&"ready"===s&&"complete"===e.readyState?n.call(r,tc({type:s})):(d.hasMouseEnterLeave||(c=d.mouseEnterLeave[s],c&&(l=function(e){var t=e.currentTarget,n=e.relatedTarget;if(n&&t.contains)n=t.contains(n);else while(n&&n!==t)n=n.parentNode;n||(e=tc(e||f.event),e.type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,d.executeHandlers(e,i))})),d.hasFocusIn||"focusin"!==s&&"focusout"!==s||(u=!0,c="focusin"===s?"focus":"blur",l=function(e){e=tc(e||f.event),e.type="focus"===e.type?"focusin":"focusout",d.executeHandlers(e,i)}),o=d.events[i][s],o?"ready"===s&&d.domLoaded?n(tc({type:s})):o.push({func:n,scope:r}):(d.events[i][s]=o=[{func:n,scope:r}],o.fakeName=c,o.capture=u,o.nativeHandler=l,"ready"===s?nc(e,l,d):Js(e,c||s,l,u)));return e=o=null,n}},e.prototype.unbind=function(e,t,n){var r,i,o,a,s;if(!e||3===e.nodeType||8===e.nodeType)return this;var c=e[this.expando];if(c){if(s=this.events[c],t){var l=t.split(" ");i=l.length;while(i--)if(a=l[i],r=s[a],r){if(n){o=r.length;while(o--)if(r[o].func===n){var u=r.nativeHandler,d=r.fakeName,f=r.capture;r=r.slice(0,o).concat(r.slice(o+1)),r.nativeHandler=u,r.fakeName=d,r.capture=f,s[a]=r}}n&&0!==r.length||(delete s[a],Zs(e,r.fakeName||a,r.nativeHandler,r.capture))}}else xe(s,(function(t,n){Zs(e,t.fakeName||n,t.nativeHandler,t.capture)})),s={};for(a in s)if(Le(s,a))return this;delete this.events[c];try{delete e[this.expando]}catch(p){e[this.expando]=null}}return this},e.prototype.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return this;var i=tc({type:t,target:e},n);do{r=e[this.expando],r&&this.executeHandlers(i,r),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow}while(e&&!i.isPropagationStopped());return this},e.prototype.clean=function(e){var t,n;if(!e||3===e.nodeType||8===e.nodeType)return this;if(e[this.expando]&&this.unbind(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName){this.unbind(e),n=e.getElementsByTagName("*"),t=n.length;while(t--)e=n[t],e[this.expando]&&this.unbind(e)}return this},e.prototype.destroy=function(){this.events={}},e.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},e.prototype.executeHandlers=function(e,t){var n=this.events[t],r=n&&n[e.type];if(r)for(var i=0,o=r.length;i<o;i++){var a=r[i];if(a&&!1===a.func.call(a.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return}},e.Event=new e,e}(),ic="sizzle"+-new Date,oc=window.document,ac=0,sc=0,cc=qc(),lc=qc(),uc=qc(),dc=function(e,t){return e===t&&(po=!0),0},fc="undefined",pc=1<<31,hc={}.hasOwnProperty,mc=[],gc=mc.pop,vc=mc.push,bc=mc.push,_c=mc.slice,yc=mc.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},wc="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",xc="[\\x20\\t\\r\\n\\f]",kc="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",Cc="\\["+xc+"*("+kc+")(?:"+xc+"*([*^$|!~]?=)"+xc+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+kc+"))|)"+xc+"*\\]",Ac=":("+kc+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Cc+")*)|.*)\\)|)",Sc=new RegExp("^"+xc+"+|((?:^|[^\\\\])(?:\\\\.)*)"+xc+"+$","g"),Ec=new RegExp("^"+xc+"*,"+xc+"*"),Tc=new RegExp("^"+xc+"*([>+~]|"+xc+")"+xc+"*"),Oc=new RegExp("="+xc+"*([^\\]'\"]*?)"+xc+"*\\]","g"),Rc=new RegExp(Ac),Dc=new RegExp("^"+kc+"$"),Lc={ID:new RegExp("^#("+kc+")"),CLASS:new RegExp("^\\.("+kc+")"),TAG:new RegExp("^("+kc+"|[*])"),ATTR:new RegExp("^"+Cc),PSEUDO:new RegExp("^"+Ac),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+xc+"*(even|odd|(([+-]|)(\\d*)n|)"+xc+"*(?:([+-]|)"+xc+"*(\\d+)|))"+xc+"*\\)|)","i"),bool:new RegExp("^(?:"+wc+")$","i"),needsContext:new RegExp("^"+xc+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+xc+"*((?:-\\d)?\\d*)"+xc+"*\\)|)(?=[^-]|$)","i")},Mc=/^(?:input|select|textarea|button)$/i,Fc=/^h\d$/i,Nc=/^[^{]+\{\s*\[native \w/,Bc=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ic=/[+~]/,Pc=/'|\\/g,$c=new RegExp("\\\\([\\da-f]{1,6}"+xc+"?|("+xc+")|.)","ig"),jc=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{bc.apply(mc=_c.call(oc.childNodes),oc.childNodes),mc[oc.childNodes.length].nodeType}catch(Rz){bc={apply:mc.length?function(e,t){vc.apply(e,_c.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}var zc=function(e,t,n,r){var i,o,a,s,c,l,u,d,f,p;if((t?t.ownerDocument||t:oc)!==mo&&ho(t),t=t||mo,n=n||[],!e||"string"!==typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(vo&&!r){if(i=Bc.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&wo(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return bc.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&ro.getElementsByClassName)return bc.apply(n,t.getElementsByClassName(a)),n}if(ro.qsa&&(!bo||!bo.test(e))){if(d=u=ic,f=t,p=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){l=so(e),(u=t.getAttribute("id"))?d=u.replace(Pc,"\\$&"):t.setAttribute("id",d),d="[id='"+d+"'] ",c=l.length;while(c--)l[c]=d+Xc(l[c]);f=Ic.test(e)&&Kc(t.parentNode)||t,p=l.join(",")}if(p)try{return bc.apply(n,f.querySelectorAll(p)),n}catch(h){}finally{u||t.removeAttribute("id")}}}return lo(e.replace(Sc,"$1"),t,n,r)};function qc(){var e=[];function t(n,r){return e.push(n+" ")>io.cacheLength&&delete t[e.shift()],t[n+" "]=r}return t}function Hc(e){return e[ic]=!0,e}function Uc(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||pc)-(~e.sourceIndex||pc);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function Wc(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function Vc(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function Gc(e){return Hc((function(t){return t=+t,Hc((function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function Kc(e){return e&&typeof e.getElementsByTagName!==fc&&e}function Yc(){}function Xc(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Qc(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=sc++;return t.first?function(t,n,o){while(t=t[r])if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,c,l=[ac,o];if(a){while(t=t[r])if((1===t.nodeType||i)&&e(t,n,a))return!0}else while(t=t[r])if(1===t.nodeType||i){if(c=t[ic]||(t[ic]={}),(s=c[r])&&s[0]===ac&&s[1]===o)return l[2]=s[2];if(c[r]=l,l[2]=e(t,n,a))return!0}}}function Jc(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Zc(e,t,n){for(var r=0,i=t.length;r<i;r++)zc(e,t[r],n);return n}function el(e,t,n,r,i){for(var o,a=[],s=0,c=e.length,l=null!=t;s<c;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function tl(e,t,n,r,i,o){return r&&!r[ic]&&(r=tl(r)),i&&!i[ic]&&(i=tl(i,o)),Hc((function(o,a,s,c){var l,u,d,f=[],p=[],h=a.length,m=o||Zc(t||"*",s.nodeType?[s]:s,[]),g=!e||!o&&t?m:el(m,f,e,s,c),v=n?i||(o?e:h||r)?[]:a:g;if(n&&n(g,v,s,c),r){l=el(v,p),r(l,[],s,c),u=l.length;while(u--)(d=l[u])&&(v[p[u]]=!(g[p[u]]=d))}if(o){if(i||e){if(i){l=[],u=v.length;while(u--)(d=v[u])&&l.push(g[u]=d);i(null,v=[],l,c)}u=v.length;while(u--)(d=v[u])&&(l=i?yc.call(o,d):f[u])>-1&&(o[l]=!(a[l]=d))}}else v=el(v===a?v.splice(h,v.length):v),i?i(null,a,v,c):bc.apply(a,v)}))}function nl(e){for(var t,n,r,i=e.length,o=io.relative[e[0].type],a=o||io.relative[" "],s=o?1:0,c=Qc((function(e){return e===t}),a,!0),l=Qc((function(e){return yc.call(t,e)>-1}),a,!0),u=[function(e,n,r){var i=!o&&(r||n!==uo)||((t=n).nodeType?c(e,n,r):l(e,n,r));return t=null,i}];s<i;s++)if(n=io.relative[e[s].type])u=[Qc(Jc(u),n)];else{if(n=io.filter[e[s].type].apply(null,e[s].matches),n[ic]){for(r=++s;r<i;r++)if(io.relative[e[r].type])break;return tl(s>1&&Jc(u),s>1&&Xc(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Sc,"$1"),n,s<r&&nl(e.slice(s,r)),r<i&&nl(e=e.slice(r)),r<i&&Xc(e))}u.push(n)}return Jc(u)}function rl(e,t){var n=t.length>0,r=e.length>0,i=function(i,o,a,s,c){var l,u,d,f=0,p="0",h=i&&[],m=[],g=uo,v=i||r&&io.find.TAG("*",c),b=ac+=null==g?1:Math.random()||.1,_=v.length;for(c&&(uo=o!==mo&&o);p!==_&&null!=(l=v[p]);p++){if(r&&l){u=0;while(d=e[u++])if(d(l,o,a)){s.push(l);break}c&&(ac=b)}n&&((l=!d&&l)&&f--,i&&h.push(l))}if(f+=p,n&&p!==f){u=0;while(d=t[u++])d(h,m,o,a);if(i){if(f>0)while(p--)h[p]||m[p]||(m[p]=gc.call(s));m=el(m)}bc.apply(s,m),c&&!i&&m.length>0&&f+t.length>1&&zc.uniqueSort(s)}return c&&(ac=b,uo=g),h};return n?Hc(i):i}ro=zc.support={},ao=zc.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},ho=zc.setDocument=function(e){var t,n=e?e.ownerDocument||e:oc,r=n.defaultView;function i(e){try{return e.top}catch(t){}return null}return n!==mo&&9===n.nodeType&&n.documentElement?(mo=n,go=n.documentElement,vo=!ao(n),r&&r!==i(r)&&(r.addEventListener?r.addEventListener("unload",(function(){ho()}),!1):r.attachEvent&&r.attachEvent("onunload",(function(){ho()}))),ro.attributes=!0,ro.getElementsByTagName=!0,ro.getElementsByClassName=Nc.test(n.getElementsByClassName),ro.getById=!0,io.find.ID=function(e,t){if(typeof t.getElementById!==fc&&vo){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},io.filter.ID=function(e){var t=e.replace($c,jc);return function(e){return e.getAttribute("id")===t}},io.find.TAG=ro.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==fc)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},io.find.CLASS=ro.getElementsByClassName&&function(e,t){if(vo)return t.getElementsByClassName(e)},_o=[],bo=[],ro.disconnectedMatch=!0,bo=bo.length&&new RegExp(bo.join("|")),_o=_o.length&&new RegExp(_o.join("|")),t=Nc.test(go.compareDocumentPosition),wo=t||Nc.test(go.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},dc=t?function(e,t){if(e===t)return po=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!ro.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===oc&&wo(oc,e)?-1:t===n||t.ownerDocument===oc&&wo(oc,t)?1:fo?yc.call(fo,e)-yc.call(fo,t):0:4&r?-1:1)}:function(e,t){if(e===t)return po=!0,0;var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],c=[t];if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:fo?yc.call(fo,e)-yc.call(fo,t):0;if(o===a)return Uc(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)c.unshift(r);while(s[i]===c[i])i++;return i?Uc(s[i],c[i]):s[i]===oc?-1:c[i]===oc?1:0},n):mo},zc.matches=function(e,t){return zc(e,null,null,t)},zc.matchesSelector=function(e,t){if((e.ownerDocument||e)!==mo&&ho(e),t=t.replace(Oc,"='$1']"),ro.matchesSelector&&vo&&(!_o||!_o.test(t))&&(!bo||!bo.test(t)))try{var n=yo.call(e,t);if(n||ro.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(Rz){}return zc(t,mo,null,[e]).length>0},zc.contains=function(e,t){return(e.ownerDocument||e)!==mo&&ho(e),wo(e,t)},zc.attr=function(e,t){(e.ownerDocument||e)!==mo&&ho(e);var n=io.attrHandle[t.toLowerCase()],r=n&&hc.call(io.attrHandle,t.toLowerCase())?n(e,t,!vo):void 0;return void 0!==r?r:ro.attributes||!vo?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},zc.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},zc.uniqueSort=function(e){var t,n=[],r=0,i=0;if(po=!ro.detectDuplicates,fo=!ro.sortStable&&e.slice(0),e.sort(dc),po){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return fo=null,e},oo=zc.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=oo(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=oo(t);return n},io=zc.selectors={cacheLength:50,createPseudo:Hc,match:Lc,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($c,jc),e[3]=(e[3]||e[4]||e[5]||"").replace($c,jc),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||zc.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&zc.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Lc.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Rc.test(n)&&(t=so(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace($c,jc).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=cc[e+" "];return t||(t=new RegExp("(^|"+xc+")"+e+"("+xc+"|$)"))&&cc(e,(function(e){return t.test("string"===typeof e.className&&e.className||typeof e.getAttribute!==fc&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=zc.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,c){var l,u,d,f,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),b=!c&&!s;if(g){if(o){while(m){d=t;while(d=d[m])if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&b){u=g[ic]||(g[ic]={}),l=u[e]||[],p=l[0]===ac&&l[1],f=l[0]===ac&&l[2],d=p&&g.childNodes[p];while(d=++p&&d&&d[m]||(f=p=0)||h.pop())if(1===d.nodeType&&++f&&d===t){u[e]=[ac,p,f];break}}else if(b&&(l=(t[ic]||(t[ic]={}))[e])&&l[0]===ac)f=l[1];else while(d=++p&&d&&d[m]||(f=p=0)||h.pop())if((s?d.nodeName.toLowerCase()===v:1===d.nodeType)&&++f&&(b&&((d[ic]||(d[ic]={}))[e]=[ac,f]),d===t))break;return f-=i,f===r||f%r===0&&f/r>=0}}},PSEUDO:function(e,t){var n,r=io.pseudos[e]||io.setFilters[e.toLowerCase()]||zc.error("unsupported pseudo: "+e);return r[ic]?r(t):r.length>1?(n=[e,e,"",t],io.setFilters.hasOwnProperty(e.toLowerCase())?Hc((function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=yc.call(e,o[a]),e[i]=!(n[i]=o[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:Hc((function(e){var t=[],n=[],r=co(e.replace(Sc,"$1"));return r[ic]?Hc((function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:Hc((function(e){return function(t){return zc(e,t).length>0}})),contains:Hc((function(e){return e=e.replace($c,jc),function(t){return(t.textContent||t.innerText||oo(t)).indexOf(e)>-1}})),lang:Hc((function(e){return Dc.test(e||"")||zc.error("unsupported lang: "+e),e=e.replace($c,jc).toLowerCase(),function(t){var n;do{if(n=vo?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=window.location&&window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===go},focus:function(e){return e===mo.activeElement&&(!mo.hasFocus||mo.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!io.pseudos.empty(e)},header:function(e){return Fc.test(e.nodeName)},input:function(e){return Mc.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:Gc((function(){return[0]})),last:Gc((function(e,t){return[t-1]})),eq:Gc((function(e,t,n){return[n<0?n+t:n]})),even:Gc((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:Gc((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:Gc((function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e})),gt:Gc((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},io.pseudos.nth=io.pseudos.eq,Z(["radio","checkbox","file","password","image"],(function(e){io.pseudos[e]=Wc(e)})),Z(["submit","reset"],(function(e){io.pseudos[e]=Vc(e)})),Yc.prototype=io.filters=io.pseudos,io.setFilters=new Yc,so=zc.tokenize=function(e,t){var n,r,i,o,a,s,c,l=lc[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],c=io.preFilter;while(a){for(o in n&&!(r=Ec.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=Tc.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(Sc," ")}),a=a.slice(n.length)),io.filter)io.filter.hasOwnProperty(o)&&(!(r=Lc[o].exec(a))||c[o]&&!(r=c[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length)));if(!n)break}return t?a.length:a?zc.error(e):lc(e,s).slice(0)},co=zc.compile=function(e,t){var n,r=[],i=[],o=uc[e+" "];if(!o){t||(t=so(e)),n=t.length;while(n--)o=nl(t[n]),o[ic]?r.push(o):i.push(o);o=uc(e,rl(i,r)),o.selector=e}return o},lo=zc.select=function(e,t,n,r){var i,o,a,s,c,l="function"===typeof e&&e,u=!r&&so(e=l.selector||e);if(n=n||[],1===u.length){if(o=u[0]=u[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&ro.getById&&9===t.nodeType&&vo&&io.relative[o[1].type]){if(t=(io.find.ID(a.matches[0].replace($c,jc),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=Lc.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],io.relative[s=a.type])break;if((c=io.find[s])&&(r=c(a.matches[0].replace($c,jc),Ic.test(o[0].type)&&Kc(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&Xc(o),!e)return bc.apply(n,r),n;break}}}return(l||co(e,u))(r,t,!vo,n,Ic.test(e)&&Kc(t.parentNode)||t),n},ro.sortStable=ic.split("").sort(dc).join("")===ic,ro.detectDuplicates=!!po,ho(),ro.sortDetached=!0;var il=document,ol=Array.prototype.push,al=Array.prototype.slice,sl=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,cl=rc.Event,ll=hn.makeMap("children,contents,next,prev"),ul=function(e){return"undefined"!==typeof e},dl=function(e){return"string"===typeof e},fl=function(e){return e&&e===e.window},pl=function(e,t){t=t||il;var n,r=t.createElement("div"),i=t.createDocumentFragment();r.innerHTML=e;while(n=r.firstChild)i.appendChild(n);return i},hl=function(e,t,n,r){var i;if(dl(t))t=pl(t,Ol(e[0]));else if(t.length&&!t.nodeType){if(t=Ml.makeArray(t),r)for(i=t.length-1;i>=0;i--)hl(e,t[i],n,r);else for(i=0;i<t.length;i++)hl(e,t[i],n,r);return e}if(t.nodeType){i=e.length;while(i--)n.call(e[i],t)}return e},ml=function(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")},gl=function(e,t,n){var r,i;return t=Ml(t)[0],e.each((function(){var e=this;n&&r===e.parentNode||(r=e.parentNode,i=t.cloneNode(!1),e.parentNode.insertBefore(i,e)),i.appendChild(e)})),e},vl=hn.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),bl=hn.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),_l={for:"htmlFor",class:"className",readonly:"readOnly"},yl={float:"cssFloat"},wl={},xl={},kl=function(e,t){return new Ml.fn.init(e,t)},Cl=function(e,t){var n;if(t.indexOf)return t.indexOf(e);n=t.length;while(n--)if(t[n]===e)return n;return-1},Al=/^\s*|\s*$/g,Sl=function(e){return null===e||void 0===e?"":(""+e).replace(Al,"")},El=function(e,t){var n,r,i,o;if(e)if(n=e.length,void 0===n){for(r in e)if(e.hasOwnProperty(r)&&(o=e[r],!1===t.call(o,r,o)))break}else for(i=0;i<n;i++)if(o=e[i],!1===t.call(o,i,o))break;return e},Tl=function(e,t){var n=[];return El(e,(function(e,r){t(r,e)&&n.push(r)})),n},Ol=function(e){return e?9===e.nodeType?e:e.ownerDocument:il};kl.fn=kl.prototype={constructor:kl,selector:"",context:null,length:0,init:function(e,t){var n,r,i=this;if(!e)return i;if(e.nodeType)return i.context=i[0]=e,i.length=1,i;if(t&&t.nodeType)i.context=t;else{if(t)return Ml(e).attr(t);i.context=t=document}if(dl(e)){if(i.selector=e,n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:sl.exec(e),!n)return Ml(t).find(e);if(n[1]){r=pl(e,Ol(t)).firstChild;while(r)ol.call(i,r),r=r.nextSibling}else{if(r=Ol(t).getElementById(n[2]),!r)return i;if(r.id!==n[2])return i.find(e);i.length=1,i[0]=r}}else this.add(e,!1);return i},toArray:function(){return hn.toArray(this)},add:function(e,t){var n,r,i=this;if(dl(e))return i.add(Ml(e));if(!1!==t)for(n=Ml.unique(i.toArray().concat(Ml.makeArray(e))),i.length=n.length,r=0;r<n.length;r++)i[r]=n[r];else ol.apply(i,Ml.makeArray(e));return i},attr:function(e,t){var n,r=this;if("object"===typeof e)El(e,(function(e,t){r.attr(e,t)}));else{if(!ul(t)){if(r[0]&&1===r[0].nodeType){if(n=wl[e],n&&n.get)return n.get(r[0],e);if(bl[e])return r.prop(e)?e:void 0;t=r[0].getAttribute(e,2),null===t&&(t=void 0)}return t}this.each((function(){var n;if(1===this.nodeType){if(n=wl[e],n&&n.set)return void n.set(this,t);null===t?this.removeAttribute(e,2):this.setAttribute(e,t,2)}}))}return r},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if(e=_l[e]||e,"object"===typeof e)El(e,(function(e,t){n.prop(e,t)}));else{if(!ul(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each((function(){1===this.nodeType&&(this[e]=t)}))}return n},css:function(e,t){var n,r,i=this,o=function(e){return e.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()}))},a=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e}))};if("object"===typeof e)El(e,(function(e,t){i.css(e,t)}));else if(ul(t))e=o(e),"number"!==typeof t||vl[e]||(t=t.toString()+"px"),i.each((function(){var n=this.style;if(r=xl[e],r&&r.set)r.set(this,t);else{try{this.style[yl[e]||e]=t}catch(i){}null!==t&&""!==t||(n.removeProperty?n.removeProperty(a(e)):n.removeAttribute(e))}}));else{if(n=i[0],r=xl[e],r&&r.get)return r.get(n);if(!n.ownerDocument.defaultView)return n.currentStyle?n.currentStyle[o(e)]:"";try{return n.ownerDocument.defaultView.getComputedStyle(n,null).getPropertyValue(a(e))}catch(s){return}}return i},remove:function(){var e,t=this,n=this.length;while(n--)e=t[n],cl.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){var e,t=this,n=this.length;while(n--){e=t[n];while(e.firstChild)e.removeChild(e.firstChild)}return this},html:function(e){var t,n=this;if(ul(e)){t=n.length;try{while(t--)n[t].innerHTML=e}catch(r){Ml(n[t]).empty().append(e)}return n}return n[0]?n[0].innerHTML:""},text:function(e){var t,n=this;if(ul(e)){t=n.length;while(t--)"innerText"in n[t]?n[t].innerText=e:n[0].textContent=e;return n}return n[0]?n[0].innerText||n[0].textContent:""},append:function(){return hl(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)}))},prepend:function(){return hl(this,arguments,(function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)}),!0)},before:function(){var e=this;return e[0]&&e[0].parentNode?hl(e,arguments,(function(e){this.parentNode.insertBefore(e,this)})):e},after:function(){var e=this;return e[0]&&e[0].parentNode?hl(e,arguments,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}),!0):e},appendTo:function(e){return Ml(e).append(this),this},prependTo:function(e){return Ml(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return gl(this,e)},wrapAll:function(e){return gl(this,e,!0)},wrapInner:function(e){return this.each((function(){Ml(this).contents().wrapAll(e)})),this},unwrap:function(){return this.parent().each((function(){Ml(this).replaceWith(this.childNodes)}))},clone:function(){var e=[];return this.each((function(){e.push(this.cloneNode(!0))})),Ml(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,t){var n=this;return"string"!==typeof e||(-1!==e.indexOf(" ")?El(e.split(" "),(function(){n.toggleClass(this,t)})):n.each((function(n,r){var i=ml(r,e);if(i!==t){var o=r.className;i?r.className=Sl((" "+o+" ").replace(" "+e+" "," ")):r.className+=o?" "+e:e}}))),n},hasClass:function(e){return ml(this[0],e)},each:function(e){return El(this,e)},on:function(e,t){return this.each((function(){cl.bind(this,e,t)}))},off:function(e,t){return this.each((function(){cl.unbind(this,e,t)}))},trigger:function(e){return this.each((function(){"object"===typeof e?cl.fire(this,e.type,e):cl.fire(this,e)}))},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return Ml(al.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){var t,n,r=[];for(t=0,n=this.length;t<n;t++)Ml.find(e,this[t],r);return Ml(r)},filter:function(e){return Ml("function"===typeof e?Tl(this.toArray(),(function(t,n){return e(n,t)})):Ml.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof Ml&&(e=e[0]),this.each((function(n,r){while(r){if("string"===typeof e&&Ml(r).is(e)){t.push(r);break}if(r===e){t.push(r);break}r=r.parentNode}})),Ml(t)},offset:function(e){var t,n,r,i,o=0,a=0;return e?this.css(e):(t=this[0],t&&(n=t.ownerDocument,r=n.documentElement,t.getBoundingClientRect&&(i=t.getBoundingClientRect(),o=i.left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=i.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:o,top:a})},push:ol,sort:Array.prototype.sort,splice:Array.prototype.splice},hn.extend(kl,{extend:hn.extend,makeArray:function(e){return fl(e)||e.nodeType?[e]:hn.toArray(e)},inArray:Cl,isArray:hn.isArray,each:El,trim:Sl,grep:Tl,find:zc,expr:zc.selectors,unique:zc.uniqueSort,text:zc.getText,contains:zc.contains,filter:function(e,t,n){var r=t.length;n&&(e=":not("+e+")");while(r--)1!==t[r].nodeType&&t.splice(r,1);return t=1===t.length?Ml.find.matchesSelector(t[0],e)?[t[0]]:[]:Ml.find.matches(e,t),t}});var Rl=function(e,t,n){var r=[],i=e[t];"string"!==typeof n&&n instanceof Ml&&(n=n[0]);while(i&&9!==i.nodeType){if(void 0!==n){if(i===n)break;if("string"===typeof n&&Ml(i).is(n))break}1===i.nodeType&&r.push(i),i=i[t]}return r},Dl=function(e,t,n,r){var i=[];for(r instanceof Ml&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==r){if(e===r)break;if("string"===typeof r&&Ml(e).is(r))break}i.push(e)}return i},Ll=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};El({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Rl(e,"parentNode")},next:function(e){return Ll(e,"nextSibling",1)},prev:function(e){return Ll(e,"previousSibling",1)},children:function(e){return Dl(e.firstChild,"nextSibling",1)},contents:function(e){return hn.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},(function(e,t){kl.fn[e]=function(n){var r=this,i=[];r.each((function(){var e=t.call(i,this,n,i);e&&(Ml.isArray(e)?i.push.apply(i,e):i.push(e))})),this.length>1&&(ll[e]||(i=Ml.unique(i)),0===e.indexOf("parents")&&(i=i.reverse()));var o=Ml(i);return n?o.filter(n):o}})),El({parentsUntil:function(e,t){return Rl(e,"parentNode",t)},nextUntil:function(e,t){return Dl(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return Dl(e,"previousSibling",1,t).slice(1)}},(function(e,t){kl.fn[e]=function(n,r){var i=this,o=[];i.each((function(){var e=t.call(o,this,n,o);e&&(Ml.isArray(e)?o.push.apply(o,e):o.push(e))})),this.length>1&&(o=Ml.unique(o),0!==e.indexOf("parents")&&"prevUntil"!==e||(o=o.reverse()));var a=Ml(o);return r?a.filter(r):a}})),kl.fn.is=function(e){return!!e&&this.filter(e).length>0},kl.fn.init.prototype=kl.fn,kl.overrideDefaults=function(e){var t,n=function(r,i){return t=t||e(),0===arguments.length&&(r=t.element),i||(i=t.context),new n.fn.init(r,i)};return Ml.extend(n,this),n},kl.attrHooks=wl,kl.cssHooks=xl;var Ml=kl,Fl=hn.each,Nl=hn.grep,Bl=en.ie,Il=/^([a-z0-9],?)+$/i,Pl=function(e,t,n){var r=t.keep_values,i={set:function(e,r,i){t.url_converter&&null!==r&&(r=t.url_converter.call(t.url_converter_scope||n(),r,i,e[0])),e.attr("data-mce-"+i,r).attr(i,r)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}},o={style:{set:function(t,n){null===n||"object"!==typeof n?(r&&t.attr("data-mce-style",n),null!==n&&"string"===typeof n?(t.removeAttr("style"),t.css(e.parse(n))):t.attr("style",n)):t.css(n)},get:function(t){var n=t.attr("data-mce-style")||t.attr("style");return n=e.serialize(e.parse(n),t[0].nodeName),n}}};return r&&(o.href=o.src=i),o},$l=function(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName);r||(r=null),t.attr("data-mce-style",r)},jl=function(e,t){var n,r,i=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)r=e.nodeType,(!t||3!==r||r!==n&&e.nodeValue.length)&&(i++,n=r);return i},zl=function(e,t){void 0===t&&(t={});var n={},r=window,i={},o=0,a=!0,s=!0,c=$o.forElement(yn.fromDom(e),{contentCssCors:t.contentCssCors,referrerPolicy:t.referrerPolicy}),l=[],u=t.schema?t.schema:zs({}),d=Hs({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),f=t.ownEvents?new rc:rc.Event,p=u.getBlockElements(),h=Ml.overrideDefaults((function(){return{context:e,element:De.getRoot()}})),m=function(e){if("string"===typeof e)return!!p[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!p[e.nodeName])}return!1},g=function(t){return t&&e&&v(t)?e.getElementById(t):t},b=function(e){return h("string"===typeof e?g(e):e)},_=function(e,t,n){var r,i,o=b(e);return o.length&&(r=Le[t],i=r&&r.get?r.get(o,t):o.attr(t)),"undefined"===typeof i&&(i=n||""),i},y=function(e){var t=g(e);return t?t.attributes:[]},w=function(e,n,r){""===r&&(r=null);var i=b(e),o=i.attr(n);if(i.length){var a=Le[n];a&&a.set?a.set(i,r,n):i.attr(n,r),o!==r&&t.onSetAttrib&&t.onSetAttrib({attrElm:i,attrName:n,attrValue:r})}},x=function(t,n){if(!Bl||1!==t.nodeType||n)return t.cloneNode(n);var r=e.createElement(t.nodeName);return Fl(y(t),(function(e){w(r,e.nodeName,_(t,e.nodeName))})),r},C=function(){return t.root_element||e.body},A=function(e){var t=jr(e);return{x:t.x,y:t.y,w:t.width,h:t.height}},S=function(t,n){return Fi(e.body,g(t),n)},T=function(e,n,r){var i=v(n)?b(e).css(n,r):b(e).css(n);t.update_styles&&$l(d,i)},O=function(e,n){var r=b(e).css(n);t.update_styles&&$l(d,r)},D=function(e,t,n){var r=b(e);return n?r.css(t):(t=t.replace(/-(\D)/g,(function(e,t){return t.toUpperCase()})),"float"===t&&(t=en.browser.isIE()?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:void 0)},L=function(e){var t,n;return e=g(e),t=D(e,"width"),n=D(e,"height"),-1===t.indexOf("px")&&(t=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(n,10)||e.offsetHeight||e.clientHeight}},M=function(e){e=g(e);var t=S(e),n=L(e);return{x:t.x,y:t.y,w:n.w,h:n.h}},F=function(e,t){var n;if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(Il.test(t)){var r=t.toLowerCase().split(/,/),i=e.nodeName.toLowerCase();for(n=r.length-1;n>=0;n--)if(r[n]===i)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var o=Array.isArray(e)?e:[e];return zc(t,o[0].ownerDocument||o[0],null,o).length>0},N=function(e,t,n,r){var i,o=[],a=g(e);r=void 0===r,n=n||("BODY"!==C().nodeName?C().parentNode:null),hn.is(t,"string")&&(i=t,t="*"===t?function(e){return 1===e.nodeType}:function(e){return F(e,i)});while(a){if(a===n||k(a.nodeType)||ti(a)||ni(a))break;if(!t||"function"===typeof t&&t(a)){if(!r)return[a];o.push(a)}a=a.parentNode}return r?o:null},B=function(e,t,n){var r=N(e,t,n,!1);return r&&r.length>0?r[0]:null},I=function(e,t,n){var r=t;if(e)for("string"===typeof t&&(r=function(e){return F(e,t)}),e=e[n];e;e=e[n])if("function"===typeof r&&r(e))return e;return null},P=function(e,t){return I(e,t,"nextSibling")},$=function(e,t){return I(e,t,"previousSibling")},j=function(n,r){return zc(n,g(r)||t.root_element||e,[])},z=function(e,t,n){var r,i="string"===typeof e?g(e):e;if(!i)return!1;if(hn.isArray(i)&&(i.length||0===i.length))return r=[],Fl(i,(function(e,i){e&&r.push(t.call(n,"string"===typeof e?g(e):e,i))})),r;var o=n||this;return t.call(o,i)},q=function(e,t){b(e).each((function(e,n){Fl(t,(function(e,t){w(n,t,e)}))}))},H=function(e,t){var n=b(e);Bl?n.each((function(e,n){if(!1!==n.canHaveHTML){while(n.firstChild)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+t,n.removeChild(n.firstChild)}catch(r){Ml("<div></div>").html("<br>"+t).contents().slice(1).appendTo(n)}return t}})):n.html(t)},U=function(t,n,r,i,o){return z(t,(function(t){var a="string"===typeof n?e.createElement(n):n;return q(a,r),i&&("string"!==typeof i&&i.nodeType?a.appendChild(i):"string"===typeof i&&H(a,i)),o?a:t.appendChild(a)}))},W=function(t,n,r){return U(e.createElement(t),t,n,r,!0)},V=Ts.decode,G=Ts.encodeAllRaw,K=function(e,t,n){var r,i="";for(r in i+="<"+e,t)Me(t,r)&&(i+=" "+r+'="'+G(t[r])+'"');return"undefined"!==typeof n?i+">"+n+"</"+e+">":i+" />"},Y=function(t){var n,r=e.createElement("div"),i=e.createDocumentFragment();i.appendChild(r),t&&(r.innerHTML=t);while(n=r.firstChild)i.appendChild(n);return i.removeChild(r),i},X=function(e,t){var n=b(e);return t?n.each((function(){var e;while(e=this.firstChild)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)})).remove():n.remove(),n.length>1?n.toArray():n[0]},Q=function(e){return z(e,(function(e){var t,n=e.attributes;for(t=n.length-1;t>=0;t--)e.removeAttributeNode(n.item(t))}))},J=function(e){return d.parse(e)},ee=function(e,t){return d.serialize(e,t)},te=function(t){var r,i;if(De!==zl.DOM&&e===document){if(n[t])return;n[t]=!0}i=e.getElementById("mceDefaultStyles"),i||(i=e.createElement("style"),i.id="mceDefaultStyles",i.type="text/css",r=e.getElementsByTagName("head")[0],r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i)),i.styleSheet?i.styleSheet.cssText+=t:i.appendChild(e.createTextNode(t))},ne=function(e){e||(e=""),Z(e.split(","),(function(e){i[e]=!0,c.load(e,E)}))},re=function(e,t,n){b(e).toggleClass(t,n).each((function(){""===this.className&&Ml(this).attr("class",null)}))},ie=function(e,t){b(e).addClass(t)},oe=function(e,t){re(e,t,!1)},ae=function(e,t){return b(e).hasClass(t)},se=function(e){b(e).show()},ce=function(e){b(e).hide()},le=function(e){return"none"===b(e).css("display")},ue=function(e){return(e||"mce_")+o++},de=function(e){var t="string"===typeof e?g(e):e;return Hr(t)?t.outerHTML:Ml("<div></div>").append(Ml(t).clone()).html()},fe=function(e,t){b(e).each((function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}X(Ml(this).html(t),!0)}))},pe=function(e,t){var n=g(t);return z(e,(function(e){var t=n.parentNode,r=n.nextSibling;return r?t.insertBefore(e,r):t.appendChild(e),e}))},he=function(e,t,n){return z(t,(function(t){return hn.is(t,"array")&&(e=e.cloneNode(!0)),n&&Fl(Nl(t.childNodes),(function(t){e.appendChild(t)})),t.parentNode.replaceChild(e,t)}))},me=function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=W(t),Fl(y(e),(function(t){w(n,t.nodeName,_(e,t.nodeName))})),he(n,e,!0)),n||e},ge=function(e,t){var n,r=e;while(r){n=t;while(n&&r!==n)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},ve=function(e){return d.toHex(hn.trim(e))},be=function(e){if(Hr(e)){var t="a"===e.nodeName.toLowerCase()&&!_(e,"href")&&_(e,"id");if(_(e,"name")||_(e,"data-mce-bookmark")||t)return!0}return!1},_e=function(e,t){var n,r,i=0;if(be(e))return!1;if(e=e.firstChild,e){var o=new jo(e,e.parentNode),a=u?u.getWhiteSpaceElements():{};t=t||(u?u.getNonEmptyElements():null);do{if(n=e.nodeType,Hr(e)){var s=e.getAttribute("data-mce-bogus");if(s){e=o.next("all"===s);continue}if(r=e.nodeName.toLowerCase(),t&&t[r]){if("br"===r){i++,e=o.next();continue}return!1}if(be(e))return!1}if(8===n)return!1;if(3===n&&!Ga(e.nodeValue))return!1;if(3===n&&e.parentNode&&a[e.parentNode.nodeName]&&Ga(e.nodeValue))return!1;e=o.next()}while(e)}return i<=1},ye=function(){return e.createRange()},we=function(e,t,n){var r,i,o,a=ye();if(e&&t)return a.setStart(e.parentNode,jl(e)),a.setEnd(t.parentNode,jl(t)),r=a.extractContents(),a=ye(),a.setStart(t.parentNode,jl(t)+1),a.setEnd(e.parentNode,jl(e)+1),i=a.extractContents(),o=e.parentNode,o.insertBefore(us(De,r),e),n?o.insertBefore(n,e):o.insertBefore(t,e),o.insertBefore(us(De,i),e),X(e),n||t},ke=function(n,i,o,a){if(hn.isArray(n)){var s=n.length,c=[];while(s--)c[s]=ke(n[s],i,o,a);return c}!t.collect||n!==e&&n!==r||l.push([n,i,o,a]);var u=f.bind(n,i,o,a||De);return u},Ce=function(t,n,i){if(hn.isArray(t)){var o=t.length,a=[];while(o--)a[o]=Ce(t[o],n,i);return a}if(l.length>0&&(t===e||t===r)){o=l.length;while(o--){var s=l[o];t!==s[0]||n&&n!==s[1]||i&&i!==s[2]||f.unbind(s[0],s[1],s[2])}}return f.unbind(t,n,i)},Ae=function(e,t,n){return f.fire(e,t,n)},Se=function(e){if(e&&Hr(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},Ee=function(e){for(var t=C(),n=null;e&&e!==t;e=e.parentNode)if(n=Se(e),null!==n)break;return n},Te=function(){if(l.length>0){var e=l.length;while(e--){var t=l[e];f.unbind(t[0],t[1],t[2])}}xe(i,(function(e,t){c.unload(t),delete i[t]})),zc.setDocument&&zc.setDocument()},Oe=function(e,t){if(Bl){while(e){if(t===e)return!0;e=e.parentNode}return!1}return e===t||t.contains(e)},Re=function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset},De={doc:e,settings:t,win:r,files:i,stdMode:a,boxModel:s,styleSheetLoader:c,boundEvents:l,styles:d,schema:u,events:f,isBlock:m,$:h,$$:b,root:null,clone:x,getRoot:C,getViewPort:A,getRect:M,getSize:L,getParent:B,getParents:N,get:g,getNext:P,getPrev:$,select:j,is:F,add:U,create:W,createHTML:K,createFragment:Y,remove:X,setStyle:T,getStyle:D,setStyles:O,removeAllAttribs:Q,setAttrib:w,setAttribs:q,getAttrib:_,getPos:S,parseStyle:J,serializeStyle:ee,addStyle:te,loadCSS:ne,addClass:ie,removeClass:oe,hasClass:ae,toggleClass:re,show:se,hide:ce,isHidden:le,uniqueId:ue,setHTML:H,getOuterHTML:de,setOuterHTML:fe,decode:V,encode:G,insertAfter:pe,replace:he,rename:me,findCommonAncestor:ge,toHex:ve,run:z,getAttribs:y,isEmpty:_e,createRng:ye,nodeIndex:jl,split:we,bind:ke,unbind:Ce,fire:Ae,getContentEditable:Se,getContentEditableParent:Ee,destroy:Te,isChildOf:Oe,dumpRng:Re},Le=Pl(d,t,R(De));return De};zl.DOM=zl(document),zl.nodeIndex=jl;var ql=zl.DOM,Hl=hn.each,Ul=hn.grep,Wl=0,Vl=1,Gl=2,Kl=3,Yl=function(){function e(e){void 0===e&&(e={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=e}return e.prototype._setReferrerPolicy=function(e){this.settings.referrerPolicy=e},e.prototype.loadScript=function(e,t,n){var r,i=ql,o=function(){i.remove(c),r&&(r.onerror=r.onload=r=null)},a=function(){o(),t()},s=function(){o(),A(n)?n():"undefined"!==typeof console&&console.log},c=i.uniqueId();r=document.createElement("script"),r.id=c,r.type="text/javascript",r.src=hn._addCacheSuffix(e),this.settings.referrerPolicy&&i.setAttrib(r,"referrerpolicy",this.settings.referrerPolicy),r.onload=a,r.onerror=s,(document.getElementsByTagName("head")[0]||document.body).appendChild(r)},e.prototype.isDone=function(e){return this.states[e]===Gl},e.prototype.markDone=function(e){this.states[e]=Gl},e.prototype.add=function(e,t,n,r){var i=this.states[e];this.queue.push(e),void 0===i&&(this.states[e]=Wl),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:r,scope:n||this}))},e.prototype.load=function(e,t,n,r){return this.add(e,t,n,r)},e.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},e.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},e.prototype.loadScripts=function(e,t,n,r){var i=this,o=[],a=function(e,t){Hl(i.scriptLoadedCallbacks[t],(function(t){A(t[e])&&t[e].call(t.scope)})),i.scriptLoadedCallbacks[t]=void 0};i.queueLoadedCallbacks.push({success:t,failure:r,scope:n||this});var s=function(){var t=Ul(e);if(e.length=0,Hl(t,(function(e){i.states[e]!==Gl?i.states[e]!==Kl?i.states[e]!==Vl&&(i.states[e]=Vl,i.loading++,i.loadScript(e,(function(){i.states[e]=Gl,i.loading--,a("success",e),s()}),(function(){i.states[e]=Kl,i.loading--,o.push(e),a("failure",e),s()}))):a("failure",e):a("success",e)})),!i.loading){var n=i.queueLoadedCallbacks.slice(0);i.queueLoadedCallbacks.length=0,Hl(n,(function(e){0===o.length?A(e.success)&&e.success.call(e.scope):A(e.failure)&&e.failure.call(e.scope,o)}))}};s()},e.ScriptLoader=new e,e}(),Xl=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},Ql=function(e){return b(e)&&Le(e,"raw")},Jl=function(e){return _(e)&&e.length>1},Zl={},eu=Xl("en"),tu=function(){return De(Zl,eu.get())},nu=function(){return ke(Zl,(function(e){return Ue({},e)}))},ru=function(e){e&&eu.set(e)},iu=function(){return eu.get()},ou=function(e,t){var n=Zl[e];n||(Zl[e]=n={}),xe(t,(function(e,t){n[t.toLowerCase()]=e}))},au=function(e){var t=tu().getOr({}),n=function(e){return A(e)?Object.prototype.toString.call(e):r(e)?"":""+e},r=function(e){return""===e||null===e||void 0===e},i=function(e){var r=n(e);return De(t,r.toLowerCase()).map(n).getOr(r)},o=function(e){return e.replace(/{context:\w+}$/,"")};if(r(e))return"";if(Ql(e))return n(e.raw);if(Jl(e)){var a=e.slice(1),s=i(e[0]).replace(/\{([0-9]+)\}/g,(function(e,t){return Le(a,t)?n(a[t]):e}));return o(s)}return o(i(e))},su=function(){return tu().bind((function(e){return De(e,"_dir")})).exists((function(e){return"rtl"===e}))},cu=function(e){return Le(Zl,e)},lu={getData:nu,setCode:ru,getCode:iu,add:ou,translate:au,isRtl:su,hasCode:cu},uu=function(){var e=[],t={},n={},r=[],i=function(e,t){var n=ne(r,(function(n){return n.name===e&&n.state===t}));Z(n,(function(e){return e.callback()}))},o=function(e){if(n[e])return n[e].instance},a=function(e){var t;return n[e]&&(t=n[e].dependencies),t||[]},s=function(e,n){!1!==uu.languageLoad&&h(e,(function(){var r=lu.getCode(),i=","+(n||"")+",";!r||n&&-1===i.indexOf(","+r+",")||Yl.ScriptLoader.add(t[e]+"/langs/"+r+".js")}),"loaded")},c=function(t,r,o){var a=r;return e.push(a),n[t]={instance:a,dependencies:o},i(t,"added"),a},l=function(e){delete t[e],delete n[e]},u=function(e,t){return"object"===typeof t?t:"string"===typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}},d=function(e,n){var r=t[e];Z(n,(function(e){Yl.ScriptLoader.add(r+"/"+e)}))},f=function(e,t,n,r){var i=a(e);Z(i,(function(e){var n=u(t,e);p(n.resource,n,void 0,void 0)})),n&&(r?n.call(r):n.call(Yl))},p=function(e,r,o,a,s){if(!t[e]){var c="string"===typeof r?r:r.prefix+r.resource+r.suffix;0!==c.indexOf("/")&&-1===c.indexOf("://")&&(c=uu.baseURL+"/"+c),t[e]=c.substring(0,c.lastIndexOf("/"));var l=function(){i(e,"loaded"),f(e,r,o,a)};n[e]?l():Yl.ScriptLoader.add(c,l,a,s)}},h=function(e,i,o){void 0===o&&(o="added"),Le(n,e)&&"added"===o||Le(t,e)&&"loaded"===o?i():r.push({name:e,state:o,callback:i})};return{items:e,urls:t,lookup:n,_listeners:r,get:o,dependencies:a,requireLangPack:s,add:c,remove:l,createUrl:u,addComponents:d,load:p,waitFor:h}};uu.languageLoad=!0,uu.baseURL="",uu.PluginManager=uu(),uu.ThemeManager=uu();var du=function(e){var t=Xl(U.none()),n=function(){return t.get().each(e)},r=function(){n(),t.set(U.none())},i=function(){return t.get().isSome()},o=function(){return t.get()},a=function(e){n(),t.set(U.some(e))};return{clear:r,isSet:i,get:o,set:a}},fu=function(){var e=du(E),t=function(t){return e.get().each(t)};return Ue(Ue({},e),{on:t})},pu=function(e,t){var n=null,r=function(){y(n)||(clearTimeout(n),n=null)},i=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];y(n)&&(n=setTimeout((function(){n=null,e.apply(null,r)}),t))};return{cancel:r,throttle:i}},hu=function(e,t){var n=null,r=function(){y(n)||(clearTimeout(n),n=null)},i=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];r(),n=setTimeout((function(){n=null,e.apply(null,i)}),t)};return{cancel:r,throttle:i}},mu=function(e,t){var n=bi(e,t);return void 0===n||""===n?[]:n.split(" ")},gu=function(e,t,n){var r=mu(e,t),i=r.concat([n]);return gi(e,t,i.join(" ")),!0},vu=function(e,t,n){var r=ne(mu(e,t),(function(e){return e!==n}));return r.length>0?gi(e,t,r.join(" ")):wi(e,t),!1},bu=function(e){return void 0!==e.dom.classList},_u=function(e){return mu(e,"class")},yu=function(e,t){return gu(e,"class",t)},wu=function(e,t){return vu(e,"class",t)},xu=function(e,t){bu(e)?e.dom.classList.add(t):yu(e,t)},ku=function(e){var t=bu(e)?e.dom.classList:_u(e);0===t.length&&wi(e,"class")},Cu=function(e,t){if(bu(e)){var n=e.dom.classList;n.remove(t)}else wu(e,t);ku(e)},Au=function(e,t){return bu(e)&&e.dom.classList.contains(t)},Su=function(e,t){var n=[];return Z(rr(e),(function(e){t(e)&&(n=n.concat([e])),n=n.concat(Su(e,t))})),n},Eu=function(e,t){return Dn(t,e)},Tu=R("mce-annotation"),Ou=R("data-mce-annotation"),Ru=R("data-mce-annotation-uid"),Du=function(e,t){var n=e.selection.getRng(),r=yn.fromDom(n.startContainer),i=yn.fromDom(e.getBody()),o=t.fold((function(){return"."+Tu()}),(function(e){return"["+Ou()+'="'+e+'"]'})),a=ir(r,n.startOffset).getOr(r),s=To(a,o,(function(e){return Mn(e,i)})),c=function(e,t){return yi(e,t)?U.some(bi(e,t)):U.none()};return s.bind((function(t){return c(t,""+Ru()).bind((function(n){return c(t,""+Ou()).map((function(t){var r=Mu(e,n);return{uid:n,name:t,elements:r}}))}))}))},Lu=function(e){return zn(e)&&Au(e,Tu())},Mu=function(e,t){var n=yn.fromDom(e.getBody());return Eu(n,"["+Ru()+'="'+t+'"]')},Fu=function(e,t){var n=yn.fromDom(e.getBody()),r=Eu(n,"["+Ou()+'="'+t+'"]'),i={};return Z(r,(function(e){var t=bi(e,Ru()),n=De(i,t).getOr([]);i[t]=n.concat([e])})),i},Nu=function(e,t){var n=Xl({}),r=function(){return{listeners:[],previous:fu()}},i=function(e,t){o(e,(function(e){return t(e),e}))},o=function(e,t){var i=n.get(),o=De(i,e).getOrThunk(r),a=t(o);i[e]=a,n.set(i)},a=function(e,t,n){i(e,(function(r){Z(r.listeners,(function(r){return r(!0,e,{uid:t,nodes:J(n,(function(e){return e.dom}))})}))}))},s=function(e){i(e,(function(t){Z(t.listeners,(function(t){return t(!1,e)}))}))},c=hu((function(){var t=n.get(),r=he(ye(t));Z(r,(function(t){o(t,(function(n){var r=n.previous.get();return Du(e,U.some(t)).fold((function(){r.isSome()&&(s(t),n.previous.clear())}),(function(e){var t=e.uid,i=e.name,o=e.elements;li(r,t)||(a(i,t,o),n.previous.set(t))})),{previous:n.previous,listeners:n.listeners}}))}))}),30);e.on("remove",(function(){c.cancel()})),e.on("NodeChange",(function(){c.throttle()}));var l=function(e,t){o(e,(function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}}))};return{addListener:l}},Bu=function(e,t){var n=function(e){return U.from(e.attr(Ou())).bind(t.lookup)};e.on("init",(function(){e.serializer.addNodeFilter("span",(function(e){Z(e,(function(e){n(e).each((function(t){!1===t.persistent&&e.unwrap()}))}))}))}))},Iu=function(){var e={},t=function(t,n){e[t]={name:t,settings:n}},n=function(t){return De(e,t).map((function(e){return e.settings}))};return{register:t,lookup:n}},Pu=0,$u=function(e){var t=new Date,n=t.getTime(),r=Math.floor(1e9*Math.random());return Pu++,e+"_"+r+Pu+String(n)},ju=function(e,t){Z(t,(function(t){xu(e,t)}))},zu=function(e,t){var n=t||document,r=n.createElement("div");return r.innerHTML=e,rr(yn.fromDom(r))},qu=function(e){return J(e,yn.fromDom)},Hu=function(e){return e.dom.innerHTML},Uu=function(e,t){var n=Vn(e),r=n.dom,i=yn.fromDom(r.createDocumentFragment()),o=zu(t,r);Cr(i,o),Ar(e),wr(e,i)},Wu=function(e,t){return yn.fromDom(e.dom.cloneNode(t))},Vu=function(e){return Wu(e,!1)},Gu=function(e){return Wu(e,!0)},Ku=function(e,t,n){void 0===n&&(n=P);var r=new jo(e,t),i=function(e){var t;do{t=r[e]()}while(t&&!Zr(t)&&!n(t));return U.from(t).filter(Zr)};return{current:function(){return U.from(r.current()).filter(Zr)},next:function(){return i("next")},prev:function(){return i("prev")},prev2:function(){return i("prev2")}}},Yu=function(e,t){var n=t||function(t){return e.isBlock(t)||ri(t)||ai(t)},r=function(e,t,n,i){if(Zr(e)){var o=i(e,t,e.data);if(-1!==o)return U.some({container:e,offset:o})}return n().bind((function(e){return r(e.container,e.offset,n,i)}))},i=function(e,t,i,o){var a=Ku(e,o,n);return r(e,t,(function(){return a.prev().map((function(e){return{container:e,offset:e.length}}))}),i).getOrNull()},o=function(e,t,i,o){var a=Ku(e,o,n);return r(e,t,(function(){return a.next().map((function(e){return{container:e,offset:0}}))}),i).getOrNull()};return{backwards:i,forwards:o}},Xu=Math.round,Qu=function(e){return e?{left:Xu(e.left),top:Xu(e.top),bottom:Xu(e.bottom),right:Xu(e.right),width:Xu(e.width),height:Xu(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},Ju=function(e,t){return e=Qu(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e},Zu=function(e,t){return e.left===t.left&&e.top===t.top&&e.bottom===t.bottom&&e.right===t.right},ed=function(e,t,n){return e>=0&&e<=Math.min(t.height,n.height)/2},td=function(e,t){var n=Math.min(t.height/2,e.height/2);return e.bottom-n<t.top||!(e.top>t.bottom)&&ed(t.top-e.bottom,e,t)},nd=function(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&ed(t.bottom-e.top,e,t)},rd=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},id=function(e,t,n){return Math.min(Math.max(e,t),n)},od=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},ad=function(e,t){if(Hr(e)&&e.hasChildNodes()){var n=e.childNodes,r=id(t,0,n.length-1);return n[r]}return e},sd=function(e,t){return t<0&&Hr(e)&&e.hasChildNodes()?void 0:ad(e,t)},cd=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),ld=function(e){return"string"===typeof e&&e.charCodeAt(0)>=768&&cd.test(e)},ud=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(e[n](t))return!0;return!1}},dd=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(!e[n](t))return!1;return!0}},fd=Hr,pd=$a,hd=Wr("display","block table"),md=Wr("float","left right"),gd=dd(fd,pd,F(md)),vd=F(Wr("white-space","pre pre-line pre-wrap")),bd=Zr,_d=ri,yd=zl.nodeIndex,wd=sd,xd=function(e){return"createRange"in e?e.createRange():zl.DOM.createRng()},kd=function(e){return e&&/[\r\n\t ]/.test(e)},Cd=function(e){return!!e.setStart&&!!e.setEnd},Ad=function(e){var t=e.startContainer,n=e.startOffset;if(kd(e.toString())&&vd(t.parentNode)&&Zr(t)){var r=t.data;if(kd(r[n-1])||kd(r[n+1]))return!0}return!1},Sd=function(e){var t=e.ownerDocument,n=xd(t),r=t.createTextNode(la),i=e.parentNode;i.insertBefore(r,e),n.setStart(r,0),n.setEnd(r,1);var o=Qu(n.getBoundingClientRect());return i.removeChild(r),o},Ed=function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,i=e.endOffset;if(t===n&&Zr(n)&&0===r&&1===i){var o=e.cloneRange();return o.setEndAfter(n),Od(o)}return null},Td=function(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom},Od=function(e){var t,n=e.getClientRects();return t=n.length>0?Qu(n[0]):Qu(e.getBoundingClientRect()),!Cd(e)&&_d(e)&&Td(t)?Sd(e):Td(t)&&Cd(e)?Ed(e):t},Rd=function(e,t){var n=Ju(e,t);return n.width=1,n.right=n.left+1,n},Dd=function(e){var t=[],n=function(e){0!==e.height&&(t.length>0&&Zu(e,t[t.length-1])||t.push(e))},r=function(e,r){var i=xd(e.ownerDocument);if(r<e.data.length){if(ld(e.data[r]))return t;if(ld(e.data[r-1])&&(i.setStart(e,r),i.setEnd(e,r+1),!Ad(i)))return n(Rd(Od(i),!1)),t}r>0&&(i.setStart(e,r-1),i.setEnd(e,r),Ad(i)||n(Rd(Od(i),!1))),r<e.data.length&&(i.setStart(e,r),i.setEnd(e,r+1),Ad(i)||n(Rd(Od(i),!0)))},i=e.container(),o=e.offset();if(bd(i))return r(i,o),t;if(fd(i))if(e.isAtEnd()){var a=wd(i,o);bd(a)&&r(a,a.data.length),gd(a)&&!_d(a)&&n(Rd(Od(a),!1))}else{a=wd(i,o);if(bd(a)&&r(a,0),gd(a)&&e.isAtEnd())return n(Rd(Od(a),!1)),t;var s=wd(e.container(),e.offset()-1);gd(s)&&!_d(s)&&(hd(s)||hd(a)||!gd(a))&&n(Rd(Od(s),!1)),gd(a)&&n(Rd(Od(a),!0))}return t},Ld=function(e,t,n){var r=function(){return bd(e),0===t},i=function(){return bd(e)?t>=e.data.length:t>=e.childNodes.length},o=function(){var n=xd(e.ownerDocument);return n.setStart(e,t),n.setEnd(e,t),n},a=function(){return n||(n=Dd(Ld(e,t))),n},s=function(){return a().length>0},c=function(n){return n&&e===n.container()&&t===n.offset()},l=function(n){return wd(e,n?t-1:t)};return{container:R(e),offset:R(t),toRange:o,getClientRects:a,isVisible:s,isAtStart:r,isAtEnd:i,isEqual:c,getNode:l}};Ld.fromRangeStart=function(e){return Ld(e.startContainer,e.startOffset)},Ld.fromRangeEnd=function(e){return Ld(e.endContainer,e.endOffset)},Ld.after=function(e){return Ld(e.parentNode,yd(e)+1)},Ld.before=function(e){return Ld(e.parentNode,yd(e))},Ld.isAbove=function(e,t){return di(ge(t.getClientRects()),ve(e.getClientRects()),td).getOr(!1)},Ld.isBelow=function(e,t){return di(ve(t.getClientRects()),ge(e.getClientRects()),nd).getOr(!1)},Ld.isAtStart=function(e){return!!e&&e.isAtStart()},Ld.isAtEnd=function(e){return!!e&&e.isAtEnd()},Ld.isTextPosition=function(e){return!!e&&Zr(e.container())},Ld.isElementPosition=function(e){return!1===Ld.isTextPosition(e)};var Md,Fd=function(e,t){Zr(t)&&0===t.data.length&&e.remove(t)},Nd=function(e,t,n){t.insertNode(n),Fd(e,n.previousSibling),Fd(e,n.nextSibling)},Bd=function(e,t,n){var r=U.from(n.firstChild),i=U.from(n.lastChild);t.insertNode(n),r.each((function(t){return Fd(e,t.previousSibling)})),i.each((function(t){return Fd(e,t.nextSibling)}))},Id=function(e,t,n){ni(n)?Bd(e,t,n):Nd(e,t,n)},Pd=Zr,$d=Kr,jd=zl.nodeIndex,zd=function(e){var t=e.parentNode;return $d(t)?zd(t):t},qd=function(e){return e?ze(e.childNodes,(function(e,t){return $d(t)&&"BR"!==t.nodeName?e=e.concat(qd(t)):e.push(t),e}),[]):[]},Hd=function(e,t){while(e=e.previousSibling){if(!Pd(e))break;t+=e.data.length}return t},Ud=function(e){return function(t){return e===t}},Wd=function(e){var t,n;t=qd(zd(e)),n=qe(t,Ud(e),e),t=t.slice(0,n+1);var r=ze(t,(function(e,n,r){return Pd(n)&&Pd(t[r-1])&&e++,e}),0);return t=$e(t,Ur([e.nodeName])),n=qe(t,Ud(e),e),n-r},Vd=function(e){var t;return t=Pd(e)?"text()":e.nodeName.toLowerCase(),t+"["+Wd(e)+"]"},Gd=function(e,t,n){var r=[];for(t=t.parentNode;t!==e;t=t.parentNode){if(n&&n(t))break;r.push(t)}return r},Kd=function(e,t){var n,r,i,o,a,s=[];return n=t.container(),r=t.offset(),Pd(n)?i=Hd(n,r):(o=n.childNodes,r>=o.length?(i="after",r=o.length-1):i="before",n=o[r]),s.push(Vd(n)),a=Gd(e,n),a=$e(a,F(Kr)),s=s.concat(Pe(a,(function(e){return Vd(e)}))),s.reverse().join("/")+","+i},Yd=function(e,t,n){var r=qd(e);return r=$e(r,(function(e,t){return!Pd(e)||!Pd(r[t-1])})),r=$e(r,Ur([t])),r[n]},Xd=function(e,t){var n,r=e,i=0;while(Pd(r)){if(n=r.data.length,t>=i&&t<=i+n){e=r,t-=i;break}if(!Pd(r.nextSibling)){e=r,t=n;break}i+=n,r=r.nextSibling}return Pd(e)&&t>e.data.length&&(t=e.data.length),Ld(e,t)},Qd=function(e,t){var n;if(!t)return null;var r=t.split(","),i=r[0].split("/");n=r.length>1?r[1]:"before";var o=ze(i,(function(e,t){var n=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t);return n?("text()"===n[1]&&(n[1]="#text"),Yd(e,n[1],parseInt(n[2],10))):null}),e);return o?Pd(o)?Xd(o,parseInt(n,10)):(n="after"===n?jd(o)+1:jd(o),Ld(o.parentNode,n)):null},Jd=ai,Zd=function(e,t,n){var r,i;for(i=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&Zr(r);r=r.previousSibling)i+=e(r.data).length;return i},ef=function(e,t,n,r,i){var o,a=r[i?"startContainer":"endContainer"],s=r[i?"startOffset":"endOffset"],c=[],l=0,u=e.getRoot();for(Zr(a)?c.push(n?Zd(t,a,s):s):(o=a.childNodes,s>=o.length&&o.length&&(l=1,s=Math.max(0,o.length-1)),c.push(e.nodeIndex(o[s],n)+l));a&&a!==u;a=a.parentNode)c.push(e.nodeIndex(a,n));return c},tf=function(e,t,n,r){var i=t.dom,o={};return o.start=ef(i,e,n,r,!0),t.isCollapsed()||(o.end=ef(i,e,n,r,!1)),Ra(r)&&(o.isFakeCaret=!0),o},nf=function(e,t,n){var r=0;return hn.each(e.select(t),(function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++})),r},rf=function(e,t){var n,r,i,o=t?"start":"end";n=e[o+"Container"],r=e[o+"Offset"],Hr(n)&&"TR"===n.nodeName&&(i=n.childNodes,n=i[Math.min(t?r:r-1,i.length-1)],n&&(r=t?0:n.childNodes.length,e["set"+(t?"Start":"End")](n,r)))},of=function(e){return rf(e,!0),rf(e,!1),e},af=function(e,t){var n;if(Hr(e)&&(e=ad(e,t),Jd(e)))return e;if(_a(e)){if(Zr(e)&&va(e)&&(e=e.parentNode),n=e.previousSibling,Jd(n))return n;if(n=e.nextSibling,Jd(n))return n}},sf=function(e){return af(e.startContainer,e.startOffset)||af(e.endContainer,e.endOffset)},cf=function(e,t,n){var r=n.getNode(),i=r?r.nodeName:null,o=n.getRng();if(Jd(r)||"IMG"===i)return{name:i,index:nf(n.dom,i,r)};var a=sf(o);return a?(i=a.tagName,{name:i,index:nf(n.dom,i,a)}):tf(e,n,t,o)},lf=function(e){var t=e.getRng();return{start:Kd(e.dom.getRoot(),Ld.fromRangeStart(t)),end:Kd(e.dom.getRoot(),Ld.fromRangeEnd(t))}},uf=function(e){return{rng:e.getRng()}},df=function(e,t,n){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",r,"&#xFEFF;"):e.create("span",r)},ff=function(e,t){var n=e.dom,r=e.getRng(),i=n.uniqueId(),o=e.isCollapsed(),a=e.getNode(),s=a.nodeName;if("IMG"===s)return{name:s,index:nf(n,s,a)};var c=of(r.cloneRange());if(!o){c.collapse(!1);var l=df(n,i+"_end",t);Id(n,c,l)}r=of(r),r.collapse(!0);var u=df(n,i+"_start",t);return Id(n,r,u),e.moveToBookmark({id:i,keep:!0}),{id:i}},pf=function(e,t,n){return 2===t?cf(ha,n,e):3===t?lf(e):t?uf(e):ff(e,!1)},hf=M(cf,D,!0),mf=zl.DOM,gf="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow",vf=function(e,t,n){var r=e.getParam(t,n);if(-1!==r.indexOf("=")){var i=e.getParam(t,"","hash");return De(i,e.id).getOr(n)}return r},bf=function(e){return e.getParam("iframe_attrs",{})},_f=function(e){return e.getParam("doctype","<!DOCTYPE html>")},yf=function(e){return e.getParam("document_base_url","")},wf=function(e){return vf(e,"body_id","tinymce")},xf=function(e){return vf(e,"body_class","")},kf=function(e){return e.getParam("content_security_policy","")},Cf=function(e){return e.getParam("br_in_pre",!0)},Af=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},Sf=function(e){return e.getParam("forced_root_block_attrs",{})},Ef=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},Tf=function(e){return e.getParam("no_newline_selector","")},Of=function(e){return e.getParam("keep_styles",!0)},Rf=function(e){return e.getParam("end_container_on_empty_block",!1)},Df=function(e){return hn.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},Lf=function(e){return hn.explode(e.getParam("font_size_classes",""))},Mf=function(e){return e.getParam("images_dataimg_filter",$,"function")},Ff=function(e){return e.getParam("automatic_uploads",!0,"boolean")},Nf=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},Bf=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},If=function(e){return e.getParam("icons","","string")},Pf=function(e){return e.getParam("icons_url","","string")},$f=function(e){return e.getParam("images_upload_url","","string")},jf=function(e){return e.getParam("images_upload_base_path","","string")},zf=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},qf=function(e){return e.getParam("images_upload_handler",null,"function")},Hf=function(e){return e.getParam("content_css_cors",!1,"boolean")},Uf=function(e){return e.getParam("referrer_policy","","string")},Wf=function(e){return e.getParam("language","en","string")},Vf=function(e){return e.getParam("language_url","","string")},Gf=function(e){return e.getParam("indent_use_margin",!1)},Kf=function(e){return e.getParam("indentation","40px","string")},Yf=function(e){var t=e.getParam("content_css");return v(t)?J(t.split(","),dt):_(t)?t:!1===t||e.inline?[]:["default"]},Xf=function(e){var t=e.getParam("font_css",[]);return _(t)?t:J(t.split(","),dt)},Qf=function(e){return e.getParam("directionality",lu.isRtl()?"rtl":void 0)},Jf=function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},Zf=function(e){var t=e.getParam("object_resizing");return!1!==t&&!en.iOS&&(v(t)?t:"table,img,figure.image,div,video,iframe")},ep=function(e){return e.getParam("resize_img_proportional",!0,"boolean")},tp=function(e){return e.getParam("placeholder",mf.getAttrib(e.getElement(),"placeholder"),"string")},np=function(e){return e.getParam("event_root")},rp=function(e){return e.getParam("service_message")},ip=function(e){return e.getParam("theme")},op=function(e){return e.getParam("validate")},ap=function(e){return!1!==e.getParam("inline_boundaries")},sp=function(e){return e.getParam("formats")},cp=function(e){var t=e.getParam("preview_styles",gf);return v(t)?t:""},lp=function(e){return e.getParam("format_empty_lines",!1,"boolean")},up=function(e){return e.getParam("custom_ui_selector","","string")},dp=function(e){return e.getParam("theme_url")},fp=function(e){return e.getParam("inline")},pp=function(e){return e.getParam("hidden_input")},hp=function(e){return e.getParam("submit_patch")},mp=function(e){return"xml"===e.getParam("encoding")},gp=function(e){return e.getParam("add_form_submit_trigger")},vp=function(e){return e.getParam("add_unload_trigger")},bp=function(e){return""!==Af(e)},_p=function(e){return e.getParam("custom_undo_redo_levels",0,"number")},yp=function(e){return e.getParam("disable_nodechange")},wp=function(e){return e.getParam("readonly")},xp=function(e){return e.getParam("content_css_cors")},kp=function(e){return e.getParam("plugins","","string")},Cp=function(e){return e.getParam("external_plugins")},Ap=function(e){return e.getParam("block_unsupported_drop",!0,"boolean")},Sp=function(e){return e.getParam("visual",!0,"boolean")},Ep=function(e){return e.getParam("visual_table_class","mce-item-table","string")},Tp=function(e){return e.getParam("visual_anchor_class","mce-item-anchor","string")},Op=function(e){return e.getParam("iframe_aria_text","Rich Text Area. Press ALT-0 for help.","string")},Rp=Hr,Dp=Zr,Lp=function(e){var t=e.parentNode;t&&t.removeChild(e)},Mp=function(e){var t=ha(e);return{count:e.length-t.length,text:t}},Fp=function(e){var t;while(-1!==(t=e.data.lastIndexOf(fa)))e.deleteData(t,1)},Np=function(e,t){return zp(e),t},Bp=function(e,t){var n=Mp(e.data.substr(0,t.offset())),r=Mp(e.data.substr(t.offset())),i=n.text+r.text;return i.length>0?(Fp(e),Ld(e,t.offset()-n.count)):t},Ip=function(e,t){var n=t.container(),r=Y(be(n.childNodes),e).map((function(e){return e<t.offset()?Ld(n,t.offset()-1):t})).getOr(t);return zp(e),r},Pp=function(e,t){return Dp(e)&&t.container()===e?Bp(e,t):Np(e,t)},$p=function(e,t){return t.container()===e.parentNode?Ip(e,t):Np(e,t)},jp=function(e,t){return Ld.isTextPosition(t)?Pp(e,t):$p(e,t)},zp=function(e){Rp(e)&&_a(e)&&(ya(e)?e.removeAttribute("data-mce-caret"):Lp(e)),Dp(e)&&(Fp(e),0===e.data.length&&Lp(e))},qp=Wt().browser,Hp=ai,Up=ci,Wp=si,Vp="*[contentEditable=false],video,audio,embed,object",Gp=function(e,t,n){var r,i,o=Ju(t.getBoundingClientRect(),n);if("BODY"===e.tagName){var a=e.ownerDocument.documentElement;r=e.scrollLeft||a.scrollLeft,i=e.scrollTop||a.scrollTop}else{var s=e.getBoundingClientRect();r=e.scrollLeft-s.left,i=e.scrollTop-s.top}o.left+=r,o.right+=r,o.top+=i,o.bottom+=i,o.width=1;var c=t.offsetWidth-t.clientWidth;return c>0&&(n&&(c*=-1),o.left+=c,o.right+=c),o},Kp=function(e){for(var t=Eu(yn.fromDom(e),Vp),n=0;n<t.length;n++){var r=t[n].dom,i=r.previousSibling;if(Ea(i)){var o=i.data;1===o.length?i.parentNode.removeChild(i):i.deleteData(o.length-1,1)}if(i=r.nextSibling,Sa(i)){o=i.data;1===o.length?i.parentNode.removeChild(i):i.deleteData(0,1)}}},Yp=function(e,t,n,r){var i,o,a=fu(),s=Af(e),c=s.length>0?s:"p",l=function(e,r){var i;if(u(),Wp(r))return null;if(!n(r))return o=wa(r,e),i=r.ownerDocument.createRange(),Qp(o.nextSibling)?(i.setStart(o,0),i.setEnd(o,0)):(i.setStart(o,1),i.setEnd(o,1)),i;o=Aa(c,r,e);var s=Gp(t,r,e);Ml(o).css("top",s.top);var l=Ml('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(Ue({},s)).appendTo(t)[0];return a.set({caret:l,element:r,before:e}),e&&Ml(l).addClass("mce-visual-caret-before"),d(),i=r.ownerDocument.createRange(),i.setStart(o,0),i.setEnd(o,0),i},u=function(){Kp(t),o&&(zp(o),o=null),a.on((function(e){Ml(e.caret).remove(),a.clear()})),i&&(Bo.clearInterval(i),i=void 0)},d=function(){i=Bo.setInterval((function(){r()?Ml("div.mce-visual-caret",t).toggleClass("mce-visual-caret-hidden"):Ml("div.mce-visual-caret",t).addClass("mce-visual-caret-hidden")}),500)},f=function(){a.on((function(e){var n=Gp(t,e.element,e.before);Ml(e.caret).css(Ue({},n))}))},p=function(){return Bo.clearInterval(i)},h=function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"};return{show:l,hide:u,getCss:h,reposition:f,destroy:p}},Xp=function(){return qp.isIE()||qp.isEdge()||qp.isFirefox()},Qp=function(e){return Hp(e)||Up(e)},Jp=function(e){return Qp(e)||Xr(e)&&Xp()},Zp=ai,eh=ci,th=Wr("display","block table table-cell table-caption list-item"),nh=_a,rh=va,ih=Hr,oh=$a,ah=function(e){return e>0},sh=function(e){return e<0},ch=function(e,t){var n;while(n=e(t))if(!rh(n))return n;return null},lh=function(e,t,n,r,i){var o=new jo(e,r),a=Zp(e)||rh(e);if(sh(t)){if(a&&(e=ch(o.prev.bind(o),!0),n(e)))return e;while(e=ch(o.prev.bind(o),i))if(n(e))return e}if(ah(t)){if(a&&(e=ch(o.next.bind(o),!0),n(e)))return e;while(e=ch(o.next.bind(o),i))if(n(e))return e}return null},uh=function(e,t){while(e&&e!==t){if(th(e))return e;e=e.parentNode}return null},dh=function(e,t,n){return uh(e.container(),n)===uh(t.container(),n)},fh=function(e,t){if(!t)return null;var n=t.container(),r=t.offset();return ih(n)?n.childNodes[r+e]:null},ph=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},hh=function(e,t,n){return uh(t,e)===uh(n,e)},mh=function(e,t,n){var r=e?"previousSibling":"nextSibling";while(n&&n!==t){var i=n[r];if(nh(i)&&(i=i[r]),Zp(i)||eh(i)){if(hh(t,i,n))return i;break}if(oh(i))break;n=n.parentNode}return null},gh=M(ph,!0),vh=M(ph,!1),bh=function(e,t,n){var r,i=M(mh,!0,t),o=M(mh,!1,t),a=n.startContainer,s=n.startOffset;if(va(a)){ih(a)||(a=a.parentNode);var c=a.getAttribute("data-mce-caret");if("before"===c&&(r=a.nextSibling,Jp(r)))return gh(r);if("after"===c&&(r=a.previousSibling,Jp(r)))return vh(r)}if(!n.collapsed)return n;if(Zr(a)){if(nh(a)){if(1===e){if(r=o(a),r)return gh(r);if(r=i(a),r)return vh(r)}if(-1===e){if(r=i(a),r)return vh(r);if(r=o(a),r)return gh(r)}return n}if(Ea(a)&&s>=a.data.length-1)return 1===e&&(r=o(a),r)?gh(r):n;if(Sa(a)&&s<=1)return-1===e&&(r=i(a),r)?vh(r):n;if(s===a.data.length)return r=o(a),r?gh(r):n;if(0===s)return r=i(a),r?vh(r):n}return n},_h=function(e,t){return U.from(fh(e?0:-1,t)).filter(Zp)},yh=function(e,t,n){var r=bh(e,t,n);return-1===e?Ld.fromRangeStart(r):Ld.fromRangeEnd(r)},wh=function(e){return U.from(e.getNode()).map(yn.fromDom)},xh=function(e){return U.from(e.getNode(!0)).map(yn.fromDom)},kh=function(e,t){while(t=e(t))if(t.isVisible())return t;return t},Ch=function(e,t){var n=dh(e,t);return!(n||!ri(e.getNode()))||n};(function(e){e[e["Backwards"]=-1]="Backwards",e[e["Forwards"]=1]="Forwards"})(Md||(Md={}));var Ah=ai,Sh=Zr,Eh=Hr,Th=ri,Oh=$a,Rh=Ua,Dh=Wa,Lh=function(e,t){var n=[];while(e&&e!==t)n.push(e),e=e.parentNode;return n},Mh=function(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null},Fh=function(e,t){if(ah(e)){if(Oh(t.previousSibling)&&!Sh(t.previousSibling))return Ld.before(t);if(Sh(t))return Ld(t,0)}if(sh(e)){if(Oh(t.nextSibling)&&!Sh(t.nextSibling))return Ld.after(t);if(Sh(t))return Ld(t,t.data.length)}return sh(e)?Th(t)?Ld.before(t):Ld.after(t):Ld.before(t)},Nh=function(e,t){var n=t.nextSibling;return n&&Oh(n)?Sh(n)?Ld(n,0):Ld.before(n):Bh(Md.Forwards,Ld.after(t),e)},Bh=function(e,t,n){var r,i,o,a;if(!Eh(n)||!t)return null;if(t.isEqual(Ld.after(n))&&n.lastChild){if(a=Ld.after(n.lastChild),sh(e)&&Oh(n.lastChild)&&Eh(n.lastChild))return Th(n.lastChild)?Ld.before(n.lastChild):a}else a=t;var s=a.container(),c=a.offset();if(Sh(s)){if(sh(e)&&c>0)return Ld(s,--c);if(ah(e)&&c<s.length)return Ld(s,++c);r=s}else{if(sh(e)&&c>0&&(i=Mh(s,c-1),Oh(i)))return!Rh(i)&&(o=lh(i,e,Dh,i),o)?Sh(o)?Ld(o,o.data.length):Ld.after(o):Sh(i)?Ld(i,i.data.length):Ld.before(i);if(ah(e)&&c<s.childNodes.length&&(i=Mh(s,c),Oh(i)))return Th(i)?Nh(n,i):!Rh(i)&&(o=lh(i,e,Dh,i),o)?Sh(o)?Ld(o,0):Ld.before(o):Sh(i)?Ld(i,0):Ld.after(i);r=i||a.getNode()}if((ah(e)&&a.isAtEnd()||sh(e)&&a.isAtStart())&&(r=lh(r,e,$,n,!0),Dh(r,n)))return Fh(e,r);i=lh(r,e,Dh,n);var l=He(ne(Lh(s,n),Ah));return!l||i&&l.contains(i)?i?Fh(e,i):null:(a=ah(e)?Ld.after(l):Ld.before(l),a)},Ih=function(e){return{next:function(t){return Bh(Md.Forwards,t,e)},prev:function(t){return Bh(Md.Backwards,t,e)}}},Ph=function(e,t,n){var r=e?Ld.before(n):Ld.after(n);return Wh(e,t,r)},$h=function(e){return ri(e)?Ld.before(e):Ld.after(e)},jh=function(e){return Ld.isTextPosition(e)?0===e.offset():$a(e.getNode())},zh=function(e){if(Ld.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return $a(e.getNode(!0))},qh=function(e,t){return!Ld.isTextPosition(e)&&!Ld.isTextPosition(t)&&e.getNode()===t.getNode(!0)},Hh=function(e){return!Ld.isTextPosition(e)&&ri(e.getNode())},Uh=function(e,t,n){return e?!qh(t,n)&&!Hh(t)&&zh(t)&&jh(n):!qh(n,t)&&jh(t)&&zh(n)},Wh=function(e,t,n){var r=Ih(t);return U.from(e?r.next(n):r.prev(n))},Vh=function(e,t,n){return Wh(e,t,n).bind((function(r){return dh(n,r,t)&&Uh(e,n,r)?Wh(e,t,r):U.some(r)}))},Gh=function(e,t,n,r){return Vh(e,t,n).bind((function(n){return r(n)?Gh(e,t,n,r):U.some(n)}))},Kh=function(e,t){var n=e?t.firstChild:t.lastChild;return Zr(n)?U.some(Ld(n,e?0:n.data.length)):n?$a(n)?U.some(e?Ld.before(n):$h(n)):Ph(e,t,n):U.none()},Yh=M(Wh,!0),Xh=M(Wh,!1),Qh=M(Kh,!0),Jh=M(Kh,!1),Zh="_mce_caret",em=function(e){return Hr(e)&&e.id===Zh},tm=function(e,t){while(t&&t!==e){if(t.id===Zh)return t;t=t.parentNode}return null},nm=function(e){return v(e.start)},rm=function(e){return Le(e,"rng")},im=function(e){return Le(e,"id")},om=function(e){return Le(e,"name")},am=function(e){return hn.isArray(e.start)},sm=function(e,t){return Hr(t)&&e.isBlock(t)&&!t.innerHTML&&!en.ie&&(t.innerHTML='<br data-mce-bogus="1" />'),t},cm=function(e,t){var n,r=e.createRng();return n=Qd(e.getRoot(),t.start),r.setStart(n.container(),n.offset()),n=Qd(e.getRoot(),t.end),r.setEnd(n.container(),n.offset()),r},lm=function(e,t){var n=e.ownerDocument.createTextNode(fa);e.appendChild(n),t.setStart(n,0),t.setEnd(n,0)},um=function(e){return!1===e.hasChildNodes()},dm=function(e,t){return Jh(e).fold(P,(function(e){return t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0}))},fm=function(e,t,n){return!(!um(t)||!tm(e,t))&&(lm(t,n),!0)},pm=function(e,t,n,r){var i,o,a,s,c=n[t?"start":"end"],l=e.getRoot();if(c){for(a=c[0],o=l,i=c.length-1;i>=1;i--){if(s=o.childNodes,fm(l,o,r))return!0;if(c[i]>s.length-1)return!!fm(l,o,r)||dm(o,r);o=s[c[i]]}3===o.nodeType&&(a=Math.min(c[0],o.nodeValue.length)),1===o.nodeType&&(a=Math.min(c[0],o.childNodes.length)),t?r.setStart(o,a):r.setEnd(o,a)}return!0},hm=function(e){return Zr(e)&&e.data.length>0},mm=function(e,t,n){var r,i,o,a,s,c,l=e.get(n.id+"_"+t),u=n.keep;if(l){if(r=l.parentNode,"start"===t?(u?l.hasChildNodes()?(r=l.firstChild,i=1):hm(l.nextSibling)?(r=l.nextSibling,i=0):hm(l.previousSibling)?(r=l.previousSibling,i=l.previousSibling.data.length):(r=l.parentNode,i=e.nodeIndex(l)+1):i=e.nodeIndex(l),s=r,c=i):(u?l.hasChildNodes()?(r=l.firstChild,i=1):hm(l.previousSibling)?(r=l.previousSibling,i=l.previousSibling.data.length):(r=l.parentNode,i=e.nodeIndex(l)):i=e.nodeIndex(l),s=r,c=i),!u){a=l.previousSibling,o=l.nextSibling,hn.each(hn.grep(l.childNodes),(function(e){Zr(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))}));while(l=e.get(n.id+"_"+t))e.remove(l,!0);a&&o&&a.nodeType===o.nodeType&&Zr(a)&&!en.opera&&(i=a.nodeValue.length,a.appendData(o.nodeValue),e.remove(o),s=a,c=i)}return U.some(Ld(s,c))}return U.none()},gm=function(e,t){var n=e.createRng();return pm(e,!0,t,n)&&pm(e,!1,t,n)?U.some(n):U.none()},vm=function(e,t){var n=mm(e,"start",t),r=mm(e,"end",t);return di(n,r.or(n),(function(t,n){var r=e.createRng();return r.setStart(sm(e,t.container()),t.offset()),r.setEnd(sm(e,n.container()),n.offset()),r}))},bm=function(e,t){return U.from(e.select(t.name)[t.index]).map((function(t){var n=e.createRng();return n.selectNode(t),n}))},_m=function(e,t){var n=e.dom;if(t){if(am(t))return gm(n,t);if(nm(t))return U.some(cm(n,t));if(im(t))return vm(n,t);if(om(t))return bm(n,t);if(rm(t))return U.some(t.rng)}return U.none()},ym=function(e,t,n){return pf(e,t,n)},wm=function(e,t){_m(e,t).each((function(t){e.setRng(t)}))},xm=function(e){return Hr(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},km=function(e){return function(t){return e===t}},Cm=km(la),Am=function(e){return""!==e&&-1!==" \f\n\r\t\v".indexOf(e)},Sm=function(e){return!Am(e)&&!Cm(e)},Em=function(e){return!!e.nodeType},Tm=function(e){return e&&/^(IMG)$/.test(e.nodeName)},Om=function(e,t,n){var r=n.startOffset,i=n.startContainer;if((i!==n.endContainer||!Tm(i.childNodes[r]))&&Hr(i)){var o=i.childNodes,a=void 0;r<o.length?(i=o[r],a=new jo(i,e.getParent(i,e.isBlock))):(i=o[o.length-1],a=new jo(i,e.getParent(i,e.isBlock)),a.next(!0));for(var s=a.current();s;s=a.next())if(Zr(s)&&!Mm(s))return n.setStart(s,0),void t.setRng(n)}},Rm=function(e,t,n){if(e){var r=t?"nextSibling":"previousSibling";for(e=n?e:e[r];e;e=e[r])if(Hr(e)||!Mm(e))return e}},Dm=function(e,t){return Em(t)&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]},Lm=function(e,t,n){return e.schema.isValidChild(t,n)},Mm=function(e,t){if(void 0===t&&(t=!1),C(e)&&Zr(e)){var n=t?e.data.replace(/ /g," "):e.data;return Ga(n)}return!1},Fm=function(e){return C(e)&&Zr(e)&&0===e.length},Nm=function(e,t){return A(e)?e=e(t):C(t)&&(e=e.replace(/%(\w+)/g,(function(e,n){return t[n]||e}))),e},Bm=function(e,t){return e=e||"",t=t||"",e=""+(e.nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()},Im=function(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),"fontFamily"===n&&(t=t.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+t},Pm=function(e,t,n){return Im(e,e.getStyle(t,n),n)},$m=function(e,t){var n;return e.getParent(t,(function(t){return n=e.getStyle(t,"text-decoration"),n&&"none"!==n})),n},jm=function(e,t,n){return e.getParents(t,n,e.getRoot())},zm=function(e,t){var n=function(e){var t=function(e){return e.length>1&&"%"===e.charAt(0)};return Q(["styles","attributes"],(function(n){return De(e,n).exists((function(e){var n=_(e)?e:Re(e);return Q(n,t)}))}))};return Q(e.formatter.get(t),n)},qm=function(e,t,n){var r=["inline","block","selector","attributes","styles","classes"],i=function(e){return Te(e,(function(e,t){return Q(r,(function(e){return e===t}))}))};return Q(e.formatter.get(t),(function(t){var r=i(t);return Q(e.formatter.get(n),(function(e){var t=i(e);return Fe(r,t)}))}))},Hm=function(e){return Me(e,"block")},Um=function(e){return Me(e,"selector")},Wm=function(e){return Me(e,"inline")},Vm=function(e){return Um(e)&&Wm(e)&&li(De(e,"mixed"),!0)},Gm=function(e){return Um(e)&&!1!==e.expand&&!Wm(e)},Km=xm,Ym=jm,Xm=Mm,Qm=Dm,Jm=function(e){return ri(e)&&e.getAttribute("data-mce-bogus")&&!e.nextSibling},Zm=function(e,t){var n=t;while(n){if(Hr(n)&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t},eg=function(e,t,n,r){for(var i=t.data,o=n;e?o>=0:o<i.length;e?o--:o++)if(r(i.charAt(o)))return e?o+1:o;return-1},tg=function(e,t,n){return eg(e,t,n,(function(e){return Cm(e)||Am(e)}))},ng=function(e,t,n){return eg(e,t,n,Sm)},rg=function(e,t,n,r,i,o){var a,s=e.getParent(n,e.isBlock)||t,c=function(t,n,r){var o=Yu(e),c=i?o.backwards:o.forwards;return U.from(c(t,n,(function(e,t){return Km(e.parentNode)?-1:(a=e,r(i,e,t))}),s))},l=c(n,r,tg);return l.bind((function(e){return o?c(e.container,e.offset+(i?-1:0),ng):U.some(e)})).orThunk((function(){return a?U.some({container:a,offset:i?0:a.length}):U.none()}))},ig=function(e,t,n,r,i){Zr(r)&&mt(r.data)&&r[i]&&(r=r[i]);for(var o=Ym(e,r),a=0;a<o.length;a++)for(var s=0;s<t.length;s++){var c=t[s];if((!C(c.collapsed)||c.collapsed===n.collapsed)&&(Um(c)&&e.is(o[a],c.selector)))return o[a]}return r},og=function(e,t,n,r){var i=n,o=e.dom,a=o.getRoot(),s=t[0];if(Hm(s)&&(i=s.wrapper?null:o.getParent(n,s.block,a)),!i){var c=o.getParent(n,"LI,TD,TH");i=o.getParent(Zr(n)?n.parentNode:n,(function(t){return t!==a&&Qm(e,t)}),c)}if(i&&Hm(s)&&s.wrapper&&(i=Ym(o,i,"ul,ol").reverse()[0]||i),!i){i=n;while(i[r]&&!o.isBlock(i[r]))if(i=i[r],Bm(i,"br"))break}return i||n},ag=function(e,t,n,r){var i=n.parentNode;return!C(n[r])&&(!(i!==t&&!k(i)&&!e.isBlock(i))||ag(e,t,i,r))},sg=function(e,t,n,r,i){var o=n,a=i?"previousSibling":"nextSibling",s=e.getRoot();if(Zr(n)&&!Xm(n)&&(i?r>0:r<n.data.length))return n;while(1){if(!t[0].block_expand&&e.isBlock(o))return o;for(var c=o[a];c;c=c[a]){var l=Zr(c)&&!ag(e,s,c,a);if(!Km(c)&&!Jm(c)&&!Xm(c,l))return o}if(o===s||o.parentNode===s){n=o;break}o=o.parentNode}return n},cg=function(e){return Km(e.parentNode)||Km(e)},lg=function(e,t,n,r){void 0===r&&(r=!1);var i=t.startContainer,o=t.startOffset,a=t.endContainer,s=t.endOffset,c=e.dom,l=n[0];if(Hr(i)&&i.hasChildNodes()&&(i=ad(i,o),Zr(i)&&(o=0)),Hr(a)&&a.hasChildNodes()&&(a=ad(a,t.collapsed?s:s-1),Zr(a)&&(s=a.nodeValue.length)),i=Zm(c,i),a=Zm(c,a),cg(i)&&(i=Km(i)?i:i.parentNode,i=t.collapsed?i.previousSibling||i:i.nextSibling||i,Zr(i)&&(o=t.collapsed?i.length:0)),cg(a)&&(a=Km(a)?a:a.parentNode,a=t.collapsed?a.nextSibling||a:a.previousSibling||a,Zr(a)&&(s=t.collapsed?0:a.length)),t.collapsed){var u=rg(c,e.getBody(),i,o,!0,r);u.each((function(e){var t=e.container,n=e.offset;i=t,o=n}));var d=rg(c,e.getBody(),a,s,!1,r);d.each((function(e){var t=e.container,n=e.offset;a=t,s=n}))}return(Wm(l)||l.block_expand)&&(Wm(l)&&Zr(i)&&0!==o||(i=sg(c,n,i,o,!0)),Wm(l)&&Zr(a)&&s!==a.nodeValue.length||(a=sg(c,n,a,s,!1))),Gm(l)&&(i=ig(c,n,t,i,"previousSibling"),a=ig(c,n,t,a,"nextSibling")),(Hm(l)||Um(l))&&(i=og(e,n,i,"previousSibling"),a=og(e,n,a,"nextSibling"),Hm(l)&&(c.isBlock(i)||(i=sg(c,n,i,o,!0)),c.isBlock(a)||(a=sg(c,n,a,s,!1)))),Hr(i)&&(o=c.nodeIndex(i),i=i.parentNode),Hr(a)&&(s=c.nodeIndex(a)+1,a=a.parentNode),{startContainer:i,startOffset:o,endContainer:a,endOffset:s}},ug=function(e,t,n){var r=t.startOffset,i=ad(t.startContainer,r),o=t.endOffset,a=ad(t.endContainer,o-1),s=function(e){var t=e[0];Zr(t)&&t===i&&r>=t.data.length&&e.splice(0,1);var n=e[e.length-1];return 0===o&&e.length>0&&n===a&&Zr(n)&&e.splice(e.length-1,1),e},c=function(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r},l=function(t,n){return e.getParent(t,(function(e){return e.parentNode===n}),n)},u=function(e,t,r){for(var i=r?"nextSibling":"previousSibling",o=e,a=o.parentNode;o&&o!==t;o=a){a=o.parentNode;var l=c(o===e?o:o[i],i);l.length&&(r||l.reverse(),n(s(l)))}};if(i===a)return n(s([i]));var d=e.findCommonAncestor(i,a);if(e.isChildOf(i,a))return u(i,d,!0);if(e.isChildOf(a,i))return u(a,d);var f=l(i,d)||i,p=l(a,d)||a;u(i,f,!0);var h=c(f===i?f:f.nextSibling,"nextSibling",p===a?p.nextSibling:p);h.length&&n(s(h)),u(a,p)},dg=function(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t},fg=function(e){return le(e,(function(e){var t=od(e);return t?[yn.fromDom(t)]:[]}))},pg=function(e){return dg(e).length>1},hg=function(e){return ne(fg(e),oa)},mg=function(e){return Eu(e,"td[data-mce-selected],th[data-mce-selected]")},gg=function(e,t){var n=mg(t);return n.length>0?n:hg(e)},vg=function(e){return gg(dg(e.selection.getSel()),yn.fromDom(e.getBody()))},bg=function(e,t){return So(e,"table",t)},_g=function(e){var t=e.startContainer,n=e.startOffset;return Zr(t)?0===n?U.some(yn.fromDom(t)):U.none():U.from(t.childNodes[n]).map(yn.fromDom)},yg=function(e){var t=e.endContainer,n=e.endOffset;return Zr(t)?n===t.data.length?U.some(yn.fromDom(t)):U.none():U.from(t.childNodes[n-1]).map(yn.fromDom)},wg=function(e){return or(e).fold(R([e]),(function(t){return[e].concat(wg(t))}))},xg=function(e){return ar(e).fold(R([e]),(function(t){return"br"===In(t)?Zn(t).map((function(t){return[e].concat(xg(t))})).getOr([]):[e].concat(xg(t))}))},kg=function(e,t){return di(_g(t),yg(t),(function(t,n){var r=ae(wg(e),M(Mn,t)),i=ae(xg(e),M(Mn,n));return r.isSome()&&i.isSome()})).getOr(!1)},Cg=function(e,t,n,r){var i=n,o=new jo(n,i),a=Te(e.schema.getMoveCaretBeforeOnEnterElements(),(function(e,t){return!X(["td","th","table"],t.toLowerCase())}));do{if(Zr(n)&&0!==hn.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(a[n.nodeName])return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n))}while(n=r?o.next():o.prev());"BODY"===i.nodeName&&(r?t.setStart(i,0):t.setEnd(i,i.childNodes.length))},Ag=function(e){var t=e.selection.getSel();return t&&t.rangeCount>0},Sg=function(e,t){var n=vg(e);n.length>0?Z(n,(function(n){var r=n.dom,i=e.dom.createRng();i.setStartBefore(r),i.setEndAfter(r),t(i,!0)})):t(e.selection.getRng(),!1)},Eg=function(e,t,n){var r=ff(e,t);n(r),e.moveToBookmark(r)},Tg=function(e,t){var n=function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return r(n).getOr("")},r=function(t){return e(t)?U.from(t.dom.nodeValue):U.none()},i=function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom.nodeValue=r};return{get:n,getOption:r,set:i}},Og=Tg(qn,"text"),Rg=function(e){return Og.get(e)},Dg=function(e){return qn(e)&&Rg(e)===fa},Lg=function(e,t,n,r){return Xn(t).fold((function(){return"skipping"}),(function(i){return"br"===r||Dg(t)?"valid":Lu(t)?"existing":em(t.dom)?"caret":Lm(e,n,r)&&Lm(e,In(i),n)?"valid":"invalid-child"}))},Mg=function(e,t){var n=lg(e,t,[{inline:"span"}]);t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)},Fg=function(e,t,n,r){var i=t.uid,o=void 0===i?$u("mce-annotation"):i,a=We(t,["uid"]),s=yn.fromTag("span",e);xu(s,Tu()),gi(s,""+Ru(),o),gi(s,""+Ou(),n);var c=r(o,a),l=c.attributes,u=void 0===l?{}:l,d=c.classes,f=void 0===d?[]:d;return vi(s,u),ju(s,f),s},Ng=function(e,t,n,r,i){var o=[],a=Fg(e.getDoc(),i,n,r),s=fu(),c=function(){s.clear()},l=function(){return s.get().getOrThunk((function(){var e=Vu(a);return o.push(e),s.set(e),e}))},u=function(e){Z(e,d)},d=function(t){var n=Lg(e,t,"span",In(t));switch(n){case"invalid-child":c();var r=rr(t);u(r),c();break;case"valid":var i=l();xr(t,i);break}},f=function(e){var t=J(e,yn.fromDom);u(t)};return ug(e.dom,t,(function(e){c(),f(e)})),o},Bg=function(e,t,n,r){e.undoManager.transact((function(){var i=e.selection,o=i.getRng(),a=vg(e).length>0;if(o.collapsed&&!a&&Mg(e,o),i.getRng().collapsed&&!a){var s=Fg(e.getDoc(),r,t,n.decorate);Uu(s,la),i.getRng().insertNode(s.dom),i.select(s.dom)}else Eg(i,!1,(function(){Sg(e,(function(i){Ng(e,i,t,n.decorate,r)}))}))}))},Ig=function(e){var t=Iu();Bu(e,t);var n=Nu(e);return{register:function(e,n){t.register(e,n)},annotate:function(n,r){t.lookup(n).each((function(t){Bg(e,n,t,r)}))},annotationChanged:function(e,t){n.addListener(e,t)},remove:function(t){Du(e,U.some(t)).each((function(e){var t=e.elements;Z(t,Er)}))},getAll:function(t){var n=Fu(e,t);return ke(n,(function(e){return J(e,(function(e){return e.dom}))}))}}},Pg=function(e){return{getBookmark:M(ym,e),moveToBookmark:M(wm,e)}};Pg.isBookmarkNode=xm;var $g=function(e,t){while(t&&t!==e){if(oi(t)||ai(t))return t;t=t.parentNode}return null},jg=function(e,t,n){if(n.collapsed)return!1;if(en.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(Hr(r))return Q(r.getClientRects(),(function(n){return rd(n,e,t)}))}return Q(n.getClientRects(),(function(n){return rd(n,e,t)}))},zg=function(e,t){return e.fire("PreProcess",t)},qg=function(e,t){return e.fire("PostProcess",t)},Hg=function(e){return e.fire("remove")},Ug=function(e){return e.fire("detach")},Wg=function(e,t){return e.fire("SwitchMode",{mode:t})},Vg=function(e,t,n,r,i){e.fire("ObjectResizeStart",{target:t,width:n,height:r,origin:i})},Gg=function(e,t,n,r,i){e.fire("ObjectResized",{target:t,width:n,height:r,origin:i})},Kg=function(e){return e.fire("PreInit")},Yg=function(e){return e.fire("PostRender")},Xg=function(e){return e.fire("Init")},Qg=function(e,t){return e.fire("PlaceholderToggle",{state:t})},Jg=function(e,t,n){return e.fire(t,n)},Zg=function(e,t,n,r){return e.fire("FormatApply",{format:t,node:n,vars:r})},ev=function(e,t,n,r){return e.fire("FormatRemove",{format:t,node:n,vars:r})},tv={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||tv.metaKeyPressed(e)},metaKeyPressed:function(e){return en.mac?e.metaKey:e.ctrlKey&&!e.altKey}},nv=ai,rv=function(e,t){var n,r,i,o,a,s,c,l,u,d,f,p,h,m,g,v,b,_="data-mce-selected",y=t.dom,w=hn.each,x=t.getDoc(),k=document,A=Math.abs,S=Math.round,E=t.getBody(),T={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},O=function(e){return e&&("IMG"===e.nodeName||t.dom.is(e,"figure.image"))},R=function(e){return ci(e)||y.hasClass(e,"mce-preview-object")},D=function(e,t){if("longpress"===e.type||0===e.type.indexOf("touch")){var n=e.touches[0];return O(e.target)&&!jg(n.clientX,n.clientY,t)}return O(e.target)&&!jg(e.clientX,e.clientY,t)},L=function(e){var n=e.target;D(e,t.selection.getRng())&&!e.isDefaultPrevented()&&t.selection.select(n)},M=function(e){return y.is(e,"figure.image")?[e.querySelector("img")]:y.hasClass(e,"mce-preview-object")&&C(e.firstElementChild)?[e,e.firstElementChild]:[e]},F=function(e){var n=Zf(t);return!!n&&("false"!==e.getAttribute("data-mce-resize")&&(e!==t.getBody()&&(y.hasClass(e,"mce-preview-object")?On(yn.fromDom(e.firstElementChild),n):On(yn.fromDom(e),n))))},N=function(e){return R(e)?y.create("img",{src:en.transparentSrc}):e.cloneNode(!0)},B=function(e,n,r){if(C(r)){var i=M(e);Z(i,(function(e){e.style[n]||!t.schema.isValid(e.nodeName.toLowerCase(),n)?y.setStyle(e,n,r):y.setAttrib(e,n,""+r)}))}},I=function(e,t,n){B(e,"width",t),B(e,"height",n)},P=function(e){var a,_,w,x,k;a=e.screenX-s,_=e.screenY-c,m=a*o[2]+d,g=_*o[3]+f,m=m<5?5:m,g=g<5?5:g,w=(O(n)||R(n))&&!1!==ep(t)?!tv.modifierPressed(e):tv.modifierPressed(e),w&&(A(a)>A(_)?(g=S(m*p),m=S(g/p)):(m=S(g/p),g=S(m*p))),I(r,m,g),x=o.startPos.x+a,k=o.startPos.y+_,x=x>0?x:0,k=k>0?k:0,y.setStyles(i,{left:x,top:k,display:"block"}),i.innerHTML=m+" &times; "+g,o[2]<0&&r.clientWidth<=m&&y.setStyle(r,"left",l+(d-m)),o[3]<0&&r.clientHeight<=g&&y.setStyle(r,"top",u+(f-g)),a=E.scrollWidth-v,_=E.scrollHeight-b,a+_!==0&&y.setStyles(i,{left:x-a,top:k-_}),h||(Vg(t,n,d,f,"corner-"+o.name),h=!0)},$=function(){var e=h;h=!1,e&&(B(n,"width",m),B(n,"height",g)),y.unbind(x,"mousemove",P),y.unbind(x,"mouseup",$),k!==x&&(y.unbind(k,"mousemove",P),y.unbind(k,"mouseup",$)),y.remove(r),y.remove(i),y.remove(a),j(n),e&&(Gg(t,n,m,g,"corner-"+o.name),y.setAttrib(n,"style",y.getAttrib(n,"style"))),t.nodeChanged()},j=function(e){U();var l=y.getPos(e,E),u=l.x,h=l.y,C=e.getBoundingClientRect(),A=C.width||C.right-C.left,S=C.height||C.bottom-C.top;n!==e&&(z(),n=e,m=g=0);var O=t.fire("ObjectSelected",{target:e}),R=y.getAttrib(n,_,"1");F(e)&&!O.isDefaultPrevented()?w(T,(function(e,t){var l,m=function(l){var m=M(n)[0];s=l.screenX,c=l.screenY,d=m.clientWidth,f=m.clientHeight,p=f/d,o=e,o.name=t,o.startPos={x:A*e[0]+u,y:S*e[1]+h},v=E.scrollWidth,b=E.scrollHeight,a=y.add(E,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),y.setStyles(a,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),r=N(n),y.addClass(r,"mce-clonedresizable"),y.setAttrib(r,"data-mce-bogus","all"),r.contentEditable="false",y.setStyles(r,{left:u,top:h,margin:0}),I(r,A,S),r.removeAttribute(_),E.appendChild(r),y.bind(x,"mousemove",P),y.bind(x,"mouseup",$),k!==x&&(y.bind(k,"mousemove",P),y.bind(k,"mouseup",$)),i=y.add(E,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},d+" &times; "+f)};l=y.get("mceResizeHandle"+t),l&&y.remove(l),l=y.add(E,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===en.ie&&(l.contentEditable=!1),y.bind(l,"mousedown",(function(e){e.stopImmediatePropagation(),e.preventDefault(),m(e)})),e.elm=l,y.setStyles(l,{left:A*e[0]+u-l.offsetWidth/2,top:S*e[1]+h-l.offsetHeight/2})})):z(),y.getAttrib(n,_)||n.setAttribute(_,R)},z=function(){U(),n&&n.removeAttribute(_),xe(T,(function(e,t){var n=y.get("mceResizeHandle"+t);n&&(y.unbind(n),y.remove(n))}))},q=function(n){var r,i,o=function(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)};h||t.removed||(w(y.select("img[data-mce-selected],hr[data-mce-selected]"),(function(e){e.removeAttribute(_)})),i="mousedown"===n.type?n.target:e.getNode(),i=y.$(i).closest("table,img,figure.image,hr,video,span.mce-preview-object")[0],o(i,E)&&(W(),r=e.getStart(!0),o(r,i)&&o(e.getEnd(!0),i))?j(i):z())},H=function(e){return nv($g(t.getBody(),e))},U=function(){xe(T,(function(e){e.elm&&(y.unbind(e.elm),delete e.elm)}))},W=function(){try{t.getDoc().execCommand("enableObjectResizing",!1,"false")}catch(e){}};t.on("init",(function(){if(W(),en.browser.isIE()||en.browser.isEdge()){t.on("mousedown click",(function(e){var n=e.target,r=n.nodeName;h||!/^(TABLE|IMG|HR)$/.test(r)||H(n)||(2!==e.button&&t.selection.select(n,"TABLE"===r),"mousedown"===e.type&&t.nodeChanged())}));var e=function(e){var n=function(e){Bo.setEditorTimeout(t,(function(){return t.selection.select(e)}))};if(H(e.target)||ci(e.target))return e.preventDefault(),void n(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&n(e.target))};y.bind(E,"mscontrolselect",e),t.on("remove",(function(){return y.unbind(E,"mscontrolselect",e)}))}var r=Bo.throttle((function(e){t.composing||q(e)}));t.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",r),t.on("keyup compositionend",(function(e){n&&"TABLE"===n.nodeName&&r(e)})),t.on("hide blur",z),t.on("contextmenu longpress",L,!0)})),t.on("remove",U);var V=function(){n=r=a=null};return{isResizable:F,showResizeRect:j,hideResizeRect:z,updateResizeRect:q,destroy:V}},iv=function(e){return oi(e)||ai(e)},ov=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},av=function(e,t,n){var r,i=n.elementFromPoint(e,t),o=n.body.createTextRange();if(i&&"HTML"!==i.tagName||(i=n.body),o.moveToElementText(i),r=hn.toArray(o.getClientRects()),r=r.sort((function(e,n){return e=Math.abs(Math.max(e.top-t,e.bottom-t)),n=Math.abs(Math.max(n.top-t,n.bottom-t)),e-n})),r.length>0){t=(r[0].bottom+r[0].top)/2;try{return o.moveToPoint(e,t),o.collapse(!0),o}catch(a){}}return null},sv=function(e,t){var n=e&&e.parentElement?e.parentElement():null;return ai(ov(n,t,iv))?null:e},cv=function(e,t,n){var r,i,o=n;if(o.caretPositionFromPoint)i=o.caretPositionFromPoint(e,t),i&&(r=n.createRange(),r.setStart(i.offsetNode,i.offset),r.collapse(!0));else if(o.caretRangeFromPoint)r=o.caretRangeFromPoint(e,t);else if(o.body.createTextRange){r=o.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(a){r=av(e,t,n)}return sv(r,n.body)}return r},lv=function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},uv=function(e,t,n){while(e&&e!==t){if(n(e))return e;e=e.parentNode}return null},dv=function(e,t,n){return null!==uv(e,t,n)},fv=function(e,t,n){return dv(e,t,(function(e){return e.nodeName===n}))},pv=function(e){return e&&"TABLE"===e.nodeName},hv=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},mv=function(e,t){return _a(e)&&!1===dv(e,t,em)},gv=function(e,t,n){var r=new jo(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());while(t=r[n?"prev":"next"]())if(ri(t))return!0},vv=function(e,t){return e.previousSibling&&e.previousSibling.nodeName===t},bv=function(e,t){while(t&&t!==e){if(ai(t))return!0;t=t.parentNode}return!1},_v=function(e,t,n,r,i){var o,a,s=e.getRoot(),c=e.schema.getNonEmptyElements(),l=e.getParent(i.parentNode,e.isBlock)||s;if(r&&ri(i)&&t&&e.isEmpty(l))return U.some(Ld(i.parentNode,e.nodeIndex(i)));var u=new jo(i,l);while(a=u[r?"prev":"next"]()){if("false"===e.getContentEditableParent(a)||mv(a,s))return U.none();if(Zr(a)&&a.nodeValue.length>0)return!1===fv(a,s,"A")?U.some(Ld(a,r?a.nodeValue.length:0)):U.none();if(e.isBlock(a)||c[a.nodeName.toLowerCase()])return U.none();o=a}return n&&o?U.some(Ld(o,0)):U.none()},yv=function(e,t,n,r){var i,o,a,s,c=e.getRoot(),l=!1;i=r[(n?"start":"end")+"Container"],o=r[(n?"start":"end")+"Offset"];var u=Hr(i)&&o===i.childNodes.length,d=e.schema.getNonEmptyElements();if(s=n,_a(i))return U.none();if(Hr(i)&&o>i.childNodes.length-1&&(s=!1),ti(i)&&(i=c,o=0),i===c){if(s&&(a=i.childNodes[o>0?o-1:0],a)){if(_a(a))return U.none();if(d[a.nodeName]||pv(a))return U.none()}if(i.hasChildNodes()){if(o=Math.min(!s&&o>0?o-1:o,i.childNodes.length-1),i=i.childNodes[o],o=Zr(i)&&u?i.data.length:0,!t&&i===c.lastChild&&pv(i))return U.none();if(bv(c,i)||_a(i))return U.none();if(i.hasChildNodes()&&!1===pv(i)){a=i;var f=new jo(i,c);do{if(ai(a)||_a(a)){l=!1;break}if(Zr(a)&&a.nodeValue.length>0){o=s?0:a.nodeValue.length,i=a,l=!0;break}if(d[a.nodeName.toLowerCase()]&&!hv(a)){o=e.nodeIndex(a),i=a.parentNode,s||o++,l=!0;break}}while(a=s?f.next():f.prev())}}}return t&&(Zr(i)&&0===o&&_v(e,u,t,!0,i).each((function(e){i=e.container(),o=e.offset(),l=!0})),Hr(i)&&(a=i.childNodes[o],a||(a=i.childNodes[o-1]),!a||!ri(a)||vv(a,"A")||gv(e,a,!1)||gv(e,a,!0)||_v(e,u,t,!0,a).each((function(e){i=e.container(),o=e.offset(),l=!0})))),s&&!t&&Zr(i)&&o===i.nodeValue.length&&_v(e,u,t,!1,i).each((function(e){i=e.container(),o=e.offset(),l=!0})),l?U.some(Ld(i,o)):U.none()},wv=function(e,t){var n=t.collapsed,r=t.cloneRange(),i=Ld.fromRangeStart(t);return yv(e,n,!0,r).each((function(e){n&&Ld.isAbove(i,e)||r.setStart(e.container(),e.offset())})),n||yv(e,n,!1,r).each((function(e){r.setEnd(e.container(),e.offset())})),n&&r.collapse(!0),lv(t,r)?U.none():U.some(r)},xv=function(e,t){return e.splitText(t)},kv=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,i=e.endOffset;return t===r&&Zr(t)?n>0&&n<t.nodeValue.length&&(r=xv(t,n),t=r.previousSibling,i>n?(i-=n,t=r=xv(r,i).previousSibling,i=r.nodeValue.length,n=0):i=0):(Zr(t)&&n>0&&n<t.nodeValue.length&&(t=xv(t,n),n=0),Zr(r)&&i>0&&i<r.nodeValue.length&&(r=xv(r,i).previousSibling,i=r.nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:i}},Cv=function(e){var t=function(t,n){return ug(e,t,n)},n=kv,r=function(t){return wv(e,t).fold(P,(function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0}))};return{walk:t,split:n,normalize:r}};Cv.compareRanges=lv,Cv.getCaretRangeFromPoint=cv,Cv.getSelectedNode=od,Cv.getNode=ad;var Av,Sv=function(e,t){var n=function(t,n){if(!S(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom;hi(r)&&(r.style[e]=n+"px")},r=function(n){var r=t(n);if(r<=0||null===r){var i=Ai(n,e);return parseFloat(i)||0}return r},i=r,o=function(e,t){return ie(t,(function(t,n){var r=Ai(e,n),i=void 0===r?0:parseInt(r,10);return isNaN(i)?t:t+i}),0)},a=function(e,t,n){var r=o(e,n),i=t>r?t-r:0;return i};return{set:n,get:r,getOuter:i,aggregate:o,max:a}},Ev=Sv("height",(function(e){var t=e.dom;return Tr(e)?t.getBoundingClientRect().height:t.offsetHeight})),Tv=function(e){return Ev.get(e)},Ov=function(e,t){var n=e.view(t);return n.fold(R([]),(function(t){var n=e.owner(t),r=Ov(e,n);return[t].concat(r)}))},Rv=function(e,t){var n=t.owner(e);return Ov(t,n)},Dv=function(e){var t,n=e.dom===document?U.none():U.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement);return n.map(yn.fromDom)},Lv=function(e){return Gn(e)},Mv=Object.freeze({__proto__:null,view:Dv,owner:Lv}),Fv=function(e){var t=yn.fromDom(document),n=Nr(t),r=Rv(e,Mv),i=Fr(e),o=re(r,(function(e,t){var n=Fr(t);return{left:e.left+n.left,top:e.top+n.top}}),{left:0,top:0});return Rr(o.left+i.left+n.left,o.top+i.top+n.top)},Nv=function(e){return"textarea"===In(e)},Bv=function(e,t){var n=e.fire("ScrollIntoView",t);return n.isDefaultPrevented()},Iv=function(e,t){e.fire("AfterScrollIntoView",t)},Pv=function(e,t){var n=rr(e);if(0===n.length||Nv(e))return{element:e,offset:t};if(t<n.length&&!Nv(n[t]))return{element:n[t],offset:0};var r=n[n.length-1];return Nv(r)?{element:e,offset:t}:"img"===In(r)?{element:r,offset:1}:qn(r)?{element:r,offset:Rg(r).length}:{element:r,offset:rr(r).length}},$v=function(e,t){var n=Mr(e),r=Tv(e);return{element:e,bottom:n.top+r,height:r,pos:n,cleanup:t}},jv=function(e,t){var n=Pv(e,t),r=yn.fromHtml('<span data-mce-bogus="all" style="display: inline-block;">'+fa+"</span>");return br(n.element,r),$v(r,(function(){return Sr(r)}))},zv=function(e){return $v(yn.fromDom(e),E)},qv=function(e,t,n,r){Vv(e,(function(i,o){return Uv(e,t,n,r)}),n)},Hv=function(e,t,n,r,i){var o={elm:r.element.dom,alignToTop:i};if(!Bv(e,o)){var a=Nr(t).top;n(t,a,r,i),Iv(e,o)}},Uv=function(e,t,n,r){var i=yn.fromDom(e.getBody()),o=yn.fromDom(e.getDoc());Oi(i);var a=jv(yn.fromDom(n.startContainer),n.startOffset);Hv(e,o,t,a,r),a.cleanup()},Wv=function(e,t,n,r){var i=yn.fromDom(e.getDoc());Hv(e,i,n,zv(t),r)},Vv=function(e,t,n){var r=n.startContainer,i=n.startOffset,o=n.endContainer,a=n.endOffset;t(yn.fromDom(r),yn.fromDom(o));var s=e.dom.createRng();s.setStart(r,i),s.setEnd(o,a),e.selection.setRng(n)},Gv=function(e,t,n,r){var i=e.pos;if(n)Br(i.left,i.top,r);else{var o=i.top-t+e.height;Br(i.left,o,r)}},Kv=function(e,t,n,r,i){var o=n+t,a=r.pos.top,s=r.bottom,c=s-a>=n;if(a<t)Gv(r,n,!1!==i,e);else if(a>o){var l=c?!1!==i:!0===i;Gv(r,n,l,e)}else s>o&&!c&&Gv(r,n,!0===i,e)},Yv=function(e,t,n,r){var i=e.dom.defaultView.innerHeight;Kv(e,t,i,n,r)},Xv=function(e,t,n,r){var i=e.dom.defaultView.innerHeight;Kv(e,t,i,n,r);var o=Fv(n.element),a=jr(window);o.top<a.y?Ir(n.element,!1!==r):o.top>a.bottom&&Ir(n.element,!0===r)},Qv=function(e,t,n){return qv(e,Yv,t,n)},Jv=function(e,t,n){return Wv(e,t,Yv,n)},Zv=function(e,t,n){return qv(e,Xv,t,n)},eb=function(e,t,n){return Wv(e,t,Xv,n)},tb=function(e,t,n){var r=e.inline?Jv:eb;r(e,t,n)},nb=function(e,t,n){var r=e.inline?Qv:Zv;r(e,t,n)},rb=function(){return yn.fromDom(document)},ib=function(e){return e.dom.focus()},ob=function(e){var t=fr(e).dom;return e.dom===t.activeElement},ab=function(e){return void 0===e&&(e=rb()),U.from(e.dom.activeElement).map(yn.fromDom)},sb=function(e){return ab(fr(e)).filter((function(t){return e.dom.contains(t.dom)}))},cb=function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}},lb={create:cb},ub=Zi.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),db=function(e,t,n,r){return e.fold(t,n,r)},fb=function(e){return e.fold(D,D,D)},pb=ub.before,hb=ub.on,mb=ub.after,gb={before:pb,on:hb,after:mb,cata:db,getStart:fb},vb=Zi.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),bb=function(e){return vb.exact(e.start,e.soffset,e.finish,e.foffset)},_b=function(e){return e.match({domRange:function(e){return yn.fromDom(e.startContainer)},relative:function(e,t){return gb.getStart(e)},exact:function(e,t,n,r){return e}})},yb=vb.domRange,wb=vb.relative,xb=vb.exact,kb=function(e){var t=_b(e);return Yn(t)},Cb=lb.create,Ab={domRange:yb,relative:wb,exact:xb,exactFromRange:bb,getWin:kb,range:Cb},Sb=Wt().browser,Eb=function(e,t){var n=qn(t)?Rg(t).length:rr(t).length+1;return e>n?n:e<0?0:e},Tb=function(e){return Ab.range(e.start,Eb(e.soffset,e.start),e.finish,Eb(e.foffset,e.finish))},Ob=function(e,t){return!qr(t.dom)&&(Bn(e,t)||Mn(e,t))},Rb=function(e){return function(t){return Ob(e,t.start)&&Ob(e,t.finish)}},Db=function(e){return!0===e.inline||Sb.isIE()},Lb=function(e){return Ab.range(yn.fromDom(e.startContainer),e.startOffset,yn.fromDom(e.endContainer),e.endOffset)},Mb=function(e){var t=e.getSelection(),n=t&&0!==t.rangeCount?U.from(t.getRangeAt(0)):U.none();return n.map(Lb)},Fb=function(e){var t=Yn(e);return Mb(t.dom).filter(Rb(e))},Nb=function(e,t){return U.from(t).filter(Rb(e)).map(Tb)},Bb=function(e){var t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),U.some(t)}catch(n){return U.none()}},Ib=function(e){var t=Db(e)?Fb(yn.fromDom(e.getBody())):U.none();e.bookmark=t.isSome()?t:e.bookmark},Pb=function(e,t){var n=yn.fromDom(e.getBody()),r=Db(e)?U.from(t):U.none(),i=r.map(Lb).filter(Rb(n));e.bookmark=i.isSome()?i:e.bookmark},$b=function(e){var t=e.bookmark?e.bookmark:U.none();return t.bind((function(t){return Nb(yn.fromDom(e.getBody()),t)})).bind(Bb)},jb=function(e){$b(e).each((function(t){return e.selection.setRng(t)}))},zb=function(e){var t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")},qb={isEditorUIElement:zb},Hb=function(e){return"nodechange"===e.type&&e.selectionChange},Ub=function(e,t){var n=function(){t.throttle()};zl.DOM.bind(document,"mouseup",n),e.on("remove",(function(){zl.DOM.unbind(document,"mouseup",n)}))},Wb=function(e){e.on("focusout",(function(){Ib(e)}))},Vb=function(e,t){e.on("mouseup touchend",(function(e){t.throttle()}))},Gb=function(e,t){var n=Wt().browser;n.isIE()?Wb(e):Vb(e,t),e.on("keyup NodeChange",(function(t){Hb(t)||Ib(e)}))},Kb=function(e){var t=pu((function(){Ib(e)}),0);e.on("init",(function(){e.inline&&Ub(e,t),Gb(e,t)})),e.on("remove",(function(){t.cancel()}))},Yb=zl.DOM,Xb=function(e){return qb.isEditorUIElement(e)},Qb=function(e){var t=e.classList;return void 0!==t&&(t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body"))},Jb=function(e,t){var n=up(e),r=Yb.getParent(t,(function(t){return Xb(t)||!!n&&e.dom.is(t,n)}));return null!==r},Zb=function(e){try{var t=fr(yn.fromDom(e.getElement()));return ab(t).fold((function(){return document.body}),(function(e){return e.dom}))}catch(n){return document.body}},e_=function(e,t){var n=t.editor;Kb(n),n.on("focusin",(function(){var t=e.focusedEditor;t!==n&&(t&&t.fire("blur",{focusedEditor:n}),e.setActive(n),e.focusedEditor=n,n.fire("focus",{blurredEditor:t}),n.focus(!0))})),n.on("focusout",(function(){Bo.setEditorTimeout(n,(function(){var t=e.focusedEditor;Jb(n,Zb(n))||t!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null)}))})),Av||(Av=function(t){var n=e.activeEditor;n&&gr(t).each((function(t){t.ownerDocument===document&&(t===document.body||Jb(n,t)||e.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null))}))},Yb.bind(document,"focusin",Av))},t_=function(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(Yb.unbind(document,"focusin",Av),Av=null)},n_=function(e){e.on("AddEditor",M(e_,e)),e.on("RemoveEditor",M(t_,e))},r_=function(e,t){return e.dom.getParent(t,(function(t){return"true"===e.dom.getContentEditable(t)}))},i_=function(e){return e.collapsed?U.from(ad(e.startContainer,e.startOffset)).map(yn.fromDom):U.none()},o_=function(e,t){return i_(t).bind((function(t){return ia(t)?U.some(t):!1===Bn(e,t)?U.some(e):U.none()}))},a_=function(e,t){o_(yn.fromDom(e.getBody()),t).bind((function(e){return Qh(e.dom)})).fold((function(){e.selection.normalize()}),(function(t){return e.selection.setRng(t.toRange())}))},s_=function(e){if(e.setActive)try{e.setActive()}catch(t){e.focus()}else e.focus()},c_=function(e){return ob(e)||sb(e).isSome()},l_=function(e){return e.iframeElement&&ob(yn.fromDom(e.iframeElement))},u_=function(e){var t=e.getBody();return t&&c_(yn.fromDom(t))},d_=function(e){var t=fr(yn.fromDom(e.getElement()));return ab(t).filter((function(t){return!Qb(t.dom)&&Jb(e,t.dom)})).isSome()},f_=function(e){return e.inline?u_(e):l_(e)},p_=function(e){return f_(e)||d_(e)},h_=function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),void 0!==e.bookmark&&!1===f_(e)&&$b(e).each((function(t){e.selection.setRng(t),r=t}));var i=r_(e,t.getNode());if(e.$.contains(n,i))return s_(i),a_(e,r),void m_(e);e.inline||(en.opera||s_(n),e.getWin().focus()),(en.gecko||e.inline)&&(s_(n),a_(e,r)),m_(e)},m_=function(e){return e.editorManager.setActive(e)},g_=function(e,t){e.removed||(t?m_(e):h_(e))},v_=function(e,t,n,r,i){var o=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return U.from(o).map(yn.fromDom).map((function(e){return r&&t.collapsed?e:ir(e,i(e,a)).getOr(e)})).bind((function(e){return zn(e)?U.some(e):Xn(e).filter(zn)})).map((function(e){return e.dom})).getOr(e)},b_=function(e,t,n){return v_(e,t,!0,n,(function(e,t){return Math.min(sr(e),t)}))},__=function(e,t,n){return v_(e,t,!1,n,(function(e,t){return t>0?t-1:t}))},y_=function(e,t){var n=e;while(e&&Zr(e)&&0===e.length)e=t?e.nextSibling:e.previousSibling;return e||n},w_=function(e,t){var n,r,i;if(!t)return e;r=t.startContainer,i=t.endContainer;var o=t.startOffset,a=t.endOffset;return n=t.commonAncestorContainer,!t.collapsed&&(r===i&&a-o<2&&r.hasChildNodes()&&(n=r.childNodes[o]),3===r.nodeType&&3===i.nodeType&&(r=r.length===o?y_(r.nextSibling,!0):r.parentNode,i=0===a?y_(i.previousSibling,!1):i.parentNode,r&&r===i))?r:n&&3===n.nodeType?n.parentNode:n},x_=function(e,t,n,r){var i,o=[],a=e.getRoot();if(n=e.getParent(n||b_(a,t,t.collapsed),e.isBlock),r=e.getParent(r||__(a,t,t.collapsed),e.isBlock),n&&n!==a&&o.push(n),n&&r&&n!==r){i=n;var s=new jo(n,a);while((i=s.next())&&i!==r)e.isBlock(i)&&o.push(i)}return r&&n!==r&&r!==a&&o.push(r),o},k_=function(e,t,n){return U.from(t).map((function(t){var r=e.nodeIndex(t),i=e.createRng();return i.setStart(t.parentNode,r),i.setEnd(t.parentNode,r+1),n&&(Cg(e,i,t,!0),Cg(e,i,t,!1)),i}))},C_=function(e,t){return J(t,(function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t}))},A_={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},S_=function(e,t,n){var r=n?"lastChild":"firstChild",i=n?"prev":"next";if(e[r])return e[r];if(e!==t){var o=e[i];if(o)return o;for(var a=e.parent;a&&a!==t;a=a.parent)if(o=a[i],o)return o}},E_=function(e){if(!Ga(e.value))return!1;var t=e.parent;return!t||"span"===t.name&&!t.attr("style")||!/^[ ]+$/.test(e.value)},T_=function(e){var t="a"===e.name&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t},O_=function(){function e(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}return e.create=function(t,n){var r=new e(t,A_[t]||1);return n&&xe(n,(function(e,t){r.attr(t,e)})),r},e.prototype.replace=function(e){var t=this;return e.parent&&e.remove(),t.insert(e,t),t.remove(),t},e.prototype.attr=function(e,t){var n,r=this;if("string"!==typeof e)return void 0!==e&&null!==e&&xe(e,(function(e,t){r.attr(t,e)})),r;if(n=r.attributes){if(void 0!==t){if(null===t){if(e in n.map){delete n.map[e];var i=n.length;while(i--)if(n[i].name===e)return n.splice(i,1),r}return r}if(e in n.map){i=n.length;while(i--)if(n[i].name===e){n[i].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,r}return n.map[e]}},e.prototype.clone=function(){var t,n=this,r=new e(n.name,n.type);if(t=n.attributes){var i=[];i.map={};for(var o=0,a=t.length;o<a;o++){var s=t[o];"id"!==s.name&&(i[i.length]={name:s.name,value:s.value},i.map[s.name]=s.value)}r.attributes=i}return r.value=n.value,r.shortEnded=n.shortEnded,r},e.prototype.wrap=function(e){var t=this;return t.parent.insert(e,t),e.append(t),t},e.prototype.unwrap=function(){for(var e=this,t=e.firstChild;t;){var n=t.next;e.insert(t,e,!0),t=n}e.remove()},e.prototype.remove=function(){var e=this,t=e.parent,n=e.next,r=e.prev;return t&&(t.firstChild===e?(t.firstChild=n,n&&(n.prev=null)):r.next=n,t.lastChild===e?(t.lastChild=r,r&&(r.next=null)):n.prev=r,e.parent=e.next=e.prev=null),e},e.prototype.append=function(e){var t=this;e.parent&&e.remove();var n=t.lastChild;return n?(n.next=e,e.prev=n,t.lastChild=e):t.lastChild=t.firstChild=e,e.parent=t,e},e.prototype.insert=function(e,t,n){e.parent&&e.remove();var r=t.parent||this;return n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,e.prev=t,t.next=e),e.parent=r,e},e.prototype.getAll=function(e){for(var t=this,n=[],r=t.firstChild;r;r=S_(r,t))r.name===e&&n.push(r);return n},e.prototype.children=function(){for(var e=this,t=[],n=e.firstChild;n;n=n.next)t.push(n);return t},e.prototype.empty=function(){var e=this;if(e.firstChild){for(var t=[],n=e.firstChild;n;n=S_(n,e))t.push(n);var r=t.length;while(r--){n=t[r];n.parent=n.firstChild=n.lastChild=n.next=n.prev=null}}return e.firstChild=e.lastChild=null,e},e.prototype.isEmpty=function(e,t,n){void 0===t&&(t={});var r=this,i=r.firstChild;if(T_(r))return!1;if(i)do{if(1===i.type){if(i.attr("data-mce-bogus"))continue;if(e[i.name])return!1;if(T_(i))return!1}if(8===i.type)return!1;if(3===i.type&&!E_(i))return!1;if(3===i.type&&i.parent&&t[i.parent.name]&&Ga(i.value))return!1;if(n&&n(i))return!1}while(i=S_(i,r));return!0},e.prototype.walk=function(e){return S_(this,null,e)},e}(),R_=hn.makeMap("NOSCRIPT STYLE SCRIPT XMP IFRAME NOEMBED NOFRAMES PLAINTEXT"," "),D_=function(e){return v(e.nodeValue)&&ct(e.nodeValue,fa)},L_=function(e){return(0===e.length?"":J(e,(function(e){return"["+e+"]"})).join(",")+",")+'[data-mce-bogus="all"]'},M_=function(e,t){return t.querySelectorAll(L_(e))},F_=function(e,t,n){return document.createTreeWalker(e,t,n,!1)},N_=function(e){return F_(e,NodeFilter.SHOW_COMMENT,(function(e){return D_(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}))},B_=function(e){return F_(e,NodeFilter.SHOW_TEXT,(function(e){if(D_(e)){var t=e.parentNode;return t&&Le(R_,t.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}return NodeFilter.FILTER_SKIP}))},I_=function(e){return null!==N_(e).nextNode()},P_=function(e){return null!==B_(e).nextNode()},$_=function(e,t){return null!==t.querySelector(L_(e))},j_=function(e,t){Z(M_(e,t),(function(t){var n=yn.fromDom(t);"all"===bi(n,"data-mce-bogus")?Sr(n):Z(e,(function(e){yi(n,e)&&wi(n,e)}))}))},z_=function(e){var t=e.nextNode();while(null!==t)t.nodeValue=null,t=e.nextNode()},q_=T(z_,N_),H_=T(z_,B_),U_=function(e,t){var n=[{condition:M($_,t),action:M(j_,t)},{condition:I_,action:q_},{condition:P_,action:H_}],r=e,i=!1;return Z(n,(function(t){var n=t.condition,o=t.action;n(r)&&(i||(r=e.cloneNode(!0),i=!0),o(r))})),r},W_=function(e,t){var n=Af(e),r=new RegExp("^(<"+n+"[^>]*>(&nbsp;|&#160;|\\s| |<br \\/>|)<\\/"+n+">[\r\n]*|<br \\/>[\r\n]*)$");return t.replace(r,"")},V_=function(e,t){return Ue(Ue({},e),{format:t,get:!0,getInner:!0})},G_=function(e,t,n,r){var i,o=V_(t,n),a=t.no_events?o:e.fire("BeforeGetContent",o);return i="raw"===a.format?hn.trim(ha(U_(r,e.serializer.getTempAttrs()).innerHTML)):"text"===a.format?e.dom.isEmpty(r)?"":ha(r.innerText||r.textContent):"tree"===a.format?e.serializer.serialize(r,a):W_(e,e.serializer.serialize(r,a)),X(["text","tree"],a.format)||aa(yn.fromDom(r))?a.content=i:a.content=hn.trim(i),a.no_events?a.content:e.fire("GetContent",a).content},K_=function(e,t,n){return U.from(e.getBody()).fold(R("tree"===t.format?new O_("body",11):""),(function(r){return G_(e,t,n,r)}))},Y_=hn.each,X_=function(e){var t=function(t,n){if(t.nodeName!==n.nodeName)return!1;var r=function(t){var n={};return Y_(e.getAttribs(t),(function(r){var i=r.nodeName.toLowerCase();0!==i.indexOf("_")&&"style"!==i&&0!==i.indexOf("data-")&&(n[i]=e.getAttrib(t,i))})),n},i=function(e,t){var n,r;for(r in e)if(Le(e,r)){if(n=t[r],"undefined"===typeof n)return!1;if(e[r]!==n)return!1;delete t[r]}for(r in t)if(Le(t,r))return!1;return!0};return!!i(r(t),r(n))&&(!!i(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))&&(!xm(t)&&!xm(n)))};return{compare:t}},Q_=hn.makeMap,J_=function(e){var t=[];e=e||{};var n=e.indent,r=Q_(e.indent_before||""),i=Q_(e.indent_after||""),o=Ts.getEncodeFunc(e.entity_encoding||"raw",e.entities),a="html"===e.element_format;return{start:function(e,s,c){var l,u,d,f;if(n&&r[e]&&t.length>0&&(f=t[t.length-1],f.length>0&&"\n"!==f&&t.push("\n")),t.push("<",e),s)for(l=0,u=s.length;l<u;l++)d=s[l],t.push(" ",d.name,'="',o(d.value,!0),'"');t[t.length]=!c||a?">":" />",c&&n&&i[e]&&t.length>0&&(f=t[t.length-1],f.length>0&&"\n"!==f&&t.push("\n"))},end:function(e){var r;t.push("</",e,">"),n&&i[e]&&t.length>0&&(r=t[t.length-1],r.length>0&&"\n"!==r&&t.push("\n"))},text:function(e,n){e.length>0&&(t[t.length]=n?e:o(e))},cdata:function(e){t.push("<![CDATA[",e,"]]>")},comment:function(e){t.push("\x3c!--",e,"--\x3e")},pi:function(e,r){r?t.push("<?",e," ",o(r),"?>"):t.push("<?",e,"?>"),n&&t.push("\n")},doctype:function(e){t.push("<!DOCTYPE",e,">",n?"\n":"")},reset:function(){t.length=0},getContent:function(){return t.join("").replace(/\n$/,"")}}},Z_=function(e,t){void 0===t&&(t=zs());var n=J_(e);e=e||{},e.validate=!("validate"in e)||e.validate;var r=function(r){var i=e.validate,o={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)do{a(e)}while(e=e.next)}};n.reset();var a=function(e){var r=o[e.type];if(r)r(e);else{var s=e.name,c=e.shortEnded,l=e.attributes;if(i&&l&&l.length>1){var u=[];u.map={};var d=t.getElementRule(e.name);if(d){for(var f=0,p=d.attributesOrder.length;f<p;f++){var h=d.attributesOrder[f];if(h in l.map){var m=l.map[h];u.map[h]=m,u.push({name:h,value:m})}}for(f=0,p=l.length;f<p;f++){h=l[f].name;if(!(h in u.map)){m=l.map[h];u.map[h]=m,u.push({name:h,value:m})}}l=u}}if(n.start(e.name,l,c),!c){if(e=e.firstChild)do{a(e)}while(e=e.next);n.end(s)}}};return 1!==r.type||e.inner?o[11](r):a(r),n.getContent()};return{serialize:r}},ey=new Set;(function(){var e=["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"];Z(e,(function(e){ey.add(e)}))})();var ty=["font","text-decoration","text-emphasis"],ny=function(e,t){return ye(e.parseStyle(e.getAttrib(t,"style")))},ry=function(e){return ey.has(e)},iy=function(e,t){return ue(ny(e,t),(function(e){return!ry(e)}))},oy=function(e){return ne(e,(function(e){return Q(ty,(function(t){return lt(e,t)}))}))},ay=function(e,t,n){var r=ny(e,t),i=ny(e,n),o=function(r){var i=e.getStyle(t,r),o=e.getStyle(n,r);return ht(i)&&ht(o)&&i!==o};return Q(r,(function(e){var t=function(t){return Q(t,(function(t){return t===e}))};if(!t(i)&&t(ty)){var n=oy(i);return Q(n,o)}return o(e)}))},sy=function(e,t,n){return U.from(n.container()).filter(Zr).exists((function(r){var i=e?0:-1;return t(r.data.charAt(n.offset()+i))}))},cy=M(sy,!0,Am),ly=M(sy,!1,Am),uy=function(e){var t=e.container();return Zr(t)&&(0===t.data.length||pa(t.data)&&Pg.isBookmarkNode(t.parentNode))},dy=function(e,t){return function(n){return U.from(fh(e?0:-1,n)).filter(t).isSome()}},fy=function(e){return ii(e)&&"block"===Ai(yn.fromDom(e),"display")},py=function(e){return ai(e)&&!Yr(e)},hy=dy(!0,fy),my=dy(!1,fy),gy=dy(!0,ci),vy=dy(!1,ci),by=dy(!0,Xr),_y=dy(!1,Xr),yy=dy(!0,py),wy=dy(!1,py),xy=function(e){var t=[],n=e.dom;while(n)t.push(yn.fromDom(n)),n=n.lastChild;return t},ky=function(e){var t=Eu(e,"br"),n=ne(xy(e).slice(-1),ea);t.length===n.length&&Z(n,Sr)},Cy=function(e){Ar(e),wr(e,yn.fromHtml('<br data-mce-bogus="1">'))},Ay=function(e){ar(e).each((function(t){Zn(t).each((function(n){Qo(e)&&ea(t)&&Qo(n)&&Sr(t)}))}))},Sy=function(e){return e.slice(0,-1)},Ey=function(e,t,n){return Bn(t,e)?Sy(Qn(e,(function(e){return n(e)||Mn(e,t)}))):[]},Ty=function(e,t){return Ey(e,t,P)},Oy=function(e,t){return[e].concat(Ty(e,t))},Ry=function(e,t,n){return Gh(e,t,n,uy)},Dy=function(e,t){return ae(Oy(yn.fromDom(t.container()),e),Qo)},Ly=function(e,t,n){return Ry(e,t.dom,n).forall((function(e){return Dy(t,n).fold((function(){return!1===dh(e,n,t.dom)}),(function(r){return!1===dh(e,n,t.dom)&&Bn(r,yn.fromDom(e.container()))}))}))},My=function(e,t,n){return Dy(t,n).fold((function(){return Ry(e,t.dom,n).forall((function(e){return!1===dh(e,n,t.dom)}))}),(function(t){return Ry(e,t.dom,n).isNone()}))},Fy=M(My,!1),Ny=M(My,!0),By=M(Ly,!1),Iy=M(Ly,!0),Py=function(e){return wh(e).exists(ea)},$y=function(e,t,n){var r=ne(Oy(yn.fromDom(n.container()),t),Qo),i=ge(r).getOr(t);return Wh(e,i.dom,n).filter(Py)},jy=function(e,t){return wh(t).exists(ea)||$y(!0,e,t).isSome()},zy=function(e,t){return xh(t).exists(ea)||$y(!1,e,t).isSome()},qy=M($y,!1),Hy=M($y,!0),Uy=function(e){return Ld.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()},Wy=function(e,t){var n=ne(Oy(yn.fromDom(t.container()),e),Qo);return ge(n).getOr(e)},Vy=function(e,t){return Uy(t)?ly(t):ly(t)||Xh(Wy(e,t).dom,t).exists(ly)},Gy=function(e,t){return Uy(t)?cy(t):cy(t)||Yh(Wy(e,t).dom,t).exists(cy)},Ky=function(e){return X(["pre","pre-wrap"],e)},Yy=function(e){return wh(e).bind((function(e){return ko(e,zn)})).exists((function(e){return Ky(Ai(e,"white-space"))}))},Xy=function(e,t){return Xh(e.dom,t).isNone()},Qy=function(e,t){return Yh(e.dom,t).isNone()},Jy=function(e,t){return Xy(e,t)||Qy(e,t)||Fy(e,t)||Ny(e,t)||zy(e,t)||jy(e,t)},Zy=function(e,t){return!Yy(t)&&(Jy(e,t)||Vy(e,t)||Gy(e,t))},ew=function(e,t){return!Yy(t)&&(Fy(e,t)||By(e,t)||zy(e,t)||Vy(e,t))},tw=function(e){var t=e.container(),n=e.offset();return Zr(t)&&n<t.data.length?Ld(t,n+1):e},nw=function(e,t){return!Yy(t)&&(Ny(e,t)||Iy(e,t)||jy(e,t)||Gy(e,t))},rw=function(e,t){return ew(e,t)||nw(e,tw(t))},iw=function(e,t){return Cm(e.charAt(t))},ow=function(e){var t=e.container();return Zr(t)&&ct(t.data,la)},aw=function(e){var t=e.split("");return J(t,(function(e,n){return Cm(e)&&n>0&&n<t.length-1&&Sm(t[n-1])&&Sm(t[n+1])?" ":e})).join("")},sw=function(e,t){var n=t.data,r=Ld(t,0);return!(!iw(n,0)||rw(e,r))&&(t.data=" "+n.slice(1),!0)},cw=function(e){var t=e.data,n=aw(t);return n!==t&&(e.data=n,!0)},lw=function(e,t){var n=t.data,r=Ld(t,n.length-1);return!(!iw(n,n.length-1)||rw(e,r))&&(t.data=n.slice(0,-1)+" ",!0)},uw=function(e,t){return U.some(t).filter(ow).bind((function(t){var n=t.container(),r=sw(e,n)||cw(n)||lw(e,n);return r?U.some(t):U.none()}))},dw=function(e){var t=yn.fromDom(e.getBody());e.selection.isCollapsed()&&uw(t,Ld.fromRangeStart(e.selection.getRng())).each((function(t){e.selection.setRng(t.toRange())}))},fw=function(e,t,n){var r=ie(e,(function(r,i){return Am(i)||Cm(i)?r.previousCharIsSpace||""===r.str&&t||r.str.length===e.length-1&&n?{previousCharIsSpace:!1,str:r.str+la}:{previousCharIsSpace:!0,str:r.str+" "}:{previousCharIsSpace:!1,str:r.str+i}}),{previousCharIsSpace:!1,str:""});return r.str},pw=function(e,t,n){if(0!==n){var r=yn.fromDom(e),i=xo(r,Qo).getOr(r),o=e.data.slice(t,t+n),a=t+n>=e.data.length&&nw(i,Ld(e,e.data.length)),s=0===t&&ew(i,Ld(e,0));e.replaceData(t,n,fw(o,s,a))}},hw=function(e,t){var n=e.data.slice(t),r=n.length-ft(n).length;pw(e,t,r)},mw=function(e,t){var n=e.data.slice(0,t),r=n.length-pt(n).length;pw(e,t-r,r)},gw=function(e,t,n,r){void 0===r&&(r=!0);var i=pt(e.data).length,o=r?e:t,a=r?t:e;return r?o.appendData(a.data):o.insertData(0,a.data),Sr(yn.fromDom(a)),n&&hw(o,i),o},vw=function(e,t){var n=e.container(),r=e.offset();return!1===Ld.isTextPosition(e)&&n===t.parentNode&&r>Ld.before(t).offset()},bw=function(e,t){return vw(t,e)?Ld(t.container(),t.offset()-1):t},_w=function(e){return Zr(e)?Ld(e,0):Ld.before(e)},yw=function(e){return Zr(e)?Ld(e,e.data.length):Ld.after(e)},ww=function(e){return $a(e.previousSibling)?U.some(yw(e.previousSibling)):e.previousSibling?Jh(e.previousSibling):U.none()},xw=function(e){return $a(e.nextSibling)?U.some(_w(e.nextSibling)):e.nextSibling?Qh(e.nextSibling):U.none()},kw=function(e,t){var n=Ld.before(t.previousSibling?t.previousSibling:t.parentNode);return Xh(e,n).fold((function(){return Yh(e,Ld.after(t))}),U.some)},Cw=function(e,t){return Yh(e,Ld.after(t)).fold((function(){return Xh(e,Ld.before(t))}),U.some)},Aw=function(e,t){return ww(t).orThunk((function(){return xw(t)})).orThunk((function(){return kw(e,t)}))},Sw=function(e,t){return xw(t).orThunk((function(){return ww(t)})).orThunk((function(){return Cw(e,t)}))},Ew=function(e,t,n){return e?Sw(t,n):Aw(t,n)},Tw=function(e,t,n){return Ew(e,t,n).map(M(bw,n))},Ow=function(e,t,n){n.fold((function(){e.focus()}),(function(n){e.selection.setRng(n.toRange(),t)}))},Rw=function(e){return function(t){return t.dom===e}},Dw=function(e,t){return t&&Le(e.schema.getBlockElements(),In(t))},Lw=function(e){if(ns(e)){var t=yn.fromHtml('<br data-mce-bogus="1">');return Ar(e),wr(e,t),U.some(Ld.before(t.dom))}return U.none()},Mw=function(e,t,n){var r=Zn(e).filter(qn),i=er(e).filter(qn);return Sr(e),fi(r,i,t,(function(e,t,r){var i=e.dom,o=t.dom,a=i.data.length;return gw(i,o,n),r.container()===o?Ld(i,a):r})).orThunk((function(){return n&&(r.each((function(e){return mw(e.dom,e.dom.length)})),i.each((function(e){return hw(e.dom,0)}))),t}))},Fw=function(e,t){return Le(e.schema.getTextInlineElements(),In(t))},Nw=function(e,t,n,r){void 0===r&&(r=!0);var i=Tw(t,e.getBody(),n.dom),o=xo(n,M(Dw,e),Rw(e.getBody())),a=Mw(n,i,Fw(e,n));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):o.bind(Lw).fold((function(){r&&Ow(e,t,a)}),(function(n){r&&Ow(e,t,U.some(n))}))},Bw=function(e){return function(t){return Mn(e,t)}},Iw=function(e){return Eu(e,"td,th")},Pw=function(e,t){var n=function(e){return bg(yn.fromDom(e),t)},r=n(e.startContainer),i=n(e.endContainer),o=r.isSome(),a=i.isSome(),s=di(r,i,Mn).getOr(!1),c=!s&&o&&a;return{startTable:r,endTable:i,isStartInTable:o,isEndInTable:a,isSameTable:s,isMultiTable:c}},$w=function(e,t){return{start:e,end:t}},jw=function(e,t,n){return{rng:e,table:t,cells:n}},zw=Zi.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),qw=function(e,t){return To(yn.fromDom(e),"td,th",t)},Hw=function(e){return!Mn(e.start,e.end)},Uw=function(e,t){return bg(e.start,t).bind((function(n){return bg(e.end,t).bind((function(e){return pi(Mn(n,e),n)}))}))},Ww=function(e,t){return!Hw(e)&&Uw(e,t).exists((function(e){var t=e.dom.rows;return 1===t.length&&1===t[0].cells.length}))},Vw=function(e,t){var n=qw(e.startContainer,t),r=qw(e.endContainer,t);return di(n,r,$w)},Gw=function(e){return function(t){return bg(t,e).bind((function(e){return ve(Iw(e)).map((function(e){return $w(t,e)}))}))}},Kw=function(e){return function(t){return bg(t,e).bind((function(e){return ge(Iw(e)).map((function(e){return $w(e,t)}))}))}},Yw=function(e){return function(t){return Uw(t,e).map((function(e){return jw(t,e,Iw(e))}))}},Xw=function(e,t,n,r){if(n.collapsed||!e.forall(Hw))return U.none();if(t.isSameTable){var i=e.bind(Yw(r));return U.some({start:i,end:i})}var o=qw(n.startContainer,r),a=qw(n.endContainer,r),s=o.bind(Gw(r)).bind(Yw(r)),c=a.bind(Kw(r)).bind(Yw(r));return U.some({start:s,end:c})},Qw=function(e,t){return se(e,(function(e){return Mn(e,t)}))},Jw=function(e){return di(Qw(e.cells,e.rng.start),Qw(e.cells,e.rng.end),(function(t,n){return e.cells.slice(t,n+1)}))},Zw=function(e,t,n){return e.exists((function(e){return Ww(e,n)&&kg(e.start,t)}))},ex=function(e,t){var n=t.startTable,r=t.endTable,i=e.cloneRange();return n.each((function(e){return i.setStartAfter(e.dom)})),r.each((function(e){return i.setEndBefore(e.dom)})),i},tx=function(e,t,n,r){return Xw(e,t,n,r).bind((function(e){var t=e.start,n=e.end;return t.or(n)})).bind((function(e){var r=t.isSameTable,i=Jw(e).getOr([]);if(r&&e.cells.length===i.length)return U.some(zw.fullTable(e.table));if(i.length>0){if(r)return U.some(zw.partialTable(i,U.none()));var o=ex(n,t);return U.some(zw.partialTable(i,U.some(Ue(Ue({},t),{rng:o}))))}return U.none()}))},nx=function(e,t,n,r){return Xw(e,t,n,r).bind((function(e){var r=e.start,i=e.end,o=r.bind(Jw).getOr([]),a=i.bind(Jw).getOr([]);if(o.length>0&&a.length>0){var s=ex(n,t);return U.some(zw.multiTable(o,a,s))}return U.none()}))},rx=function(e,t){var n=Bw(e),r=Vw(t,n),i=Pw(t,n);return Zw(r,t,n)?r.map((function(e){return zw.singleCellTable(t,e.start)})):i.isMultiTable?nx(r,i,t,n):tx(r,i,t,n)},ix=function(e){var t=jn(e)?Zn(e):ar(e);return t.bind(ix).orThunk((function(){return U.some(e)}))},ox=function(e){return Z(e,(function(e){wi(e,"contenteditable"),Cy(e)}))},ax=function(e,t){return U.from(e.dom.getParent(t,e.dom.isBlock)).map(yn.fromDom)},sx=function(e,t,n){n.each((function(n){t?Sr(n):(Cy(n),e.selection.setCursorLocation(n.dom,0))}))},cx=function(e,t,n,r){var i=n.cloneRange();r?(i.setStart(n.startContainer,n.startOffset),i.setEndAfter(t.dom.lastChild)):(i.setStartBefore(t.dom.firstChild),i.setEnd(n.endContainer,n.endOffset)),fx(e,i,t,!1)},lx=function(e){var t=vg(e),n=yn.fromDom(e.selection.getNode());si(n.dom)&&ns(n)?e.selection.setCursorLocation(n.dom,0):e.selection.collapse(!0),t.length>1&&Q(t,(function(e){return Mn(e,n)}))&&gi(n,"data-mce-selected","1")},ux=function(e,t,n){var r=e.selection.getRng(),i=n.bind((function(n){var i=n.rng,o=n.isStartInTable,a=ax(e,o?i.endContainer:i.startContainer);i.deleteContents(),sx(e,o,a.filter(ns));var s=o?t[0]:t[t.length-1];return cx(e,s,r,o),ns(s)?U.none():U.some(o?t.slice(1):t.slice(0,-1))})).getOr(t);return ox(i),lx(e),!0},dx=function(e,t,n,r){var i=e.selection.getRng(),o=t[0],a=n[n.length-1];cx(e,o,i,!0),cx(e,a,i,!1);var s=ns(o)?t:t.slice(1),c=ns(a)?n:n.slice(0,-1);return ox(s.concat(c)),r.deleteContents(),lx(e),!0},fx=function(e,t,n,r){void 0===r&&(r=!0),t.deleteContents();var i=ix(n).getOr(n),o=yn.fromDom(e.dom.getParent(i.dom,e.dom.isBlock));if(ns(o)&&(Cy(o),r&&e.selection.setCursorLocation(o.dom,0)),!Mn(n,o)){var a=li(Xn(o),n)?[]:Jn(o);Z(a.concat(rr(n)),(function(e){Mn(e,o)||Bn(e,o)||!ns(e)||Sr(e)}))}return!0},px=function(e,t){return Nw(e,!1,t),!0},hx=function(e,t,n){return rx(t,n).map((function(t){return t.fold(M(fx,e),M(px,e),M(ux,e),M(dx,e))}))},mx=function(e,t){return wx(e,t)},gx=function(e,t,n,r){return _x(t,r).fold((function(){return hx(e,t,n)}),(function(t){return mx(e,t)})).getOr(!1)},vx=function(e,t,n){var r=yn.fromDom(e.getBody()),i=e.selection.getRng();return 0!==n.length?ux(e,n,U.none()):gx(e,r,i,t)},bx=function(e,t){return ae(Oy(t,e),oa)},_x=function(e,t){return ae(Oy(t,e),Wn("caption"))},yx=function(e,t,n,r,i){return Vh(n,e.getBody(),i).bind((function(e){return bx(t,yn.fromDom(e.getNode())).map((function(e){return!1===Mn(e,r)}))}))},wx=function(e,t){return Cy(t),e.selection.setCursorLocation(t.dom,0),U.some(!0)},xx=function(e,t,n,r){return Qh(e.dom).bind((function(i){return Jh(e.dom).map((function(e){return t?n.isEqual(i)&&r.isEqual(e):n.isEqual(e)&&r.isEqual(i)}))})).getOr(!0)},kx=function(e,t){return wx(e,t)},Cx=function(e,t,n){return _x(e,yn.fromDom(n.getNode())).map((function(e){return!1===Mn(e,t)}))},Ax=function(e,t,n,r,i){return Vh(n,e.getBody(),i).bind((function(o){return xx(r,n,i,o)?kx(e,r):Cx(t,r,o)})).or(U.some(!0))},Sx=function(e,t,n,r){var i=Ld.fromRangeStart(e.selection.getRng());return bx(n,r).bind((function(r){return ns(r)?wx(e,r):yx(e,n,t,r,i)})).getOr(!1)},Ex=function(e,t,n,r){var i=Ld.fromRangeStart(e.selection.getRng());return ns(r)?wx(e,r):Ax(e,n,t,r,i)},Tx=function(e,t){return e?by(t):_y(t)},Ox=function(e,t){var n=Ld.fromRangeStart(e.selection.getRng());return Tx(t,n)||Wh(t,e.getBody(),n).exists((function(e){return Tx(t,e)}))},Rx=function(e,t,n){var r=yn.fromDom(e.getBody());return _x(r,n).fold((function(){return Sx(e,t,r,n)||Ox(e,t)}),(function(n){return Ex(e,t,r,n).getOr(!1)}))},Dx=function(e,t){var n=yn.fromDom(e.selection.getStart(!0)),r=vg(e);return e.selection.isCollapsed()&&0===r.length?Rx(e,t,n):vx(e,n,r)},Lx=function(e,t,n,r){var i=document.createRange();return i.setStart(e,t),i.setEnd(n,r),i},Mx=function(e){var t=Ld.fromRangeStart(e),n=Ld.fromRangeEnd(e),r=e.commonAncestorContainer;return Wh(!1,r,n).map((function(i){return!dh(t,n,r)&&dh(t,i,r)?Lx(t.container(),t.offset(),i.container(),i.offset()):e})).getOr(e)},Fx=function(e){return e.collapsed?e:Mx(e)},Nx=function(e){return e.firstChild&&e.firstChild===e.lastChild},Bx=function(e){return"br"===e.name||e.value===la},Ix=function(e,t){var n=e.getBlockElements();return n[t.name]&&Nx(t)&&Bx(t.firstChild)},Px=function(e,t){var n=e.getNonEmptyElements();return t&&(t.isEmpty(n)||Ix(e,t))},$x=function(e,t){var n=t.firstChild,r=t.lastChild;return n&&"meta"===n.name&&(n=n.next),r&&"mce_marker"===r.attr("id")&&(r=r.prev),Px(e,r)&&(r=r.prev),!(!n||n!==r)&&("ul"===n.name||"ol"===n.name)},jx=function(e){var t=e.firstChild,n=e.lastChild;return t&&"META"===t.nodeName&&t.parentNode.removeChild(t),n&&"mce_marker"===n.id&&n.parentNode.removeChild(n),e},zx=function(e,t,n){var r=t.serialize(n),i=e.createFragment(r);return jx(i)},qx=function(e){return ne(e.childNodes,(function(e){return"LI"===e.nodeName}))},Hx=function(e){return e.data===la||ri(e)},Ux=function(e){return e&&e.firstChild&&e.firstChild===e.lastChild&&Hx(e.firstChild)},Wx=function(e){return!e.firstChild||Ux(e)},Vx=function(e){return e.length>0&&Wx(e[e.length-1])?e.slice(0,-1):e},Gx=function(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},Kx=function(e,t){return!!Gx(e,t)},Yx=function(e,t){var n=t.cloneRange(),r=t.cloneRange();return n.setStartBefore(e),r.setEndAfter(e),[n.cloneContents(),r.cloneContents()]},Xx=function(e,t){var n=Ld.before(e),r=Ih(t),i=r.next(n);return i?i.toRange():null},Qx=function(e,t){var n=Ld.after(e),r=Ih(t),i=r.prev(n);return i?i.toRange():null},Jx=function(e,t,n,r){var i=Yx(e,r),o=e.parentNode;return o.insertBefore(i[0],e),hn.each(t,(function(t){o.insertBefore(t,e)})),o.insertBefore(i[1],e),o.removeChild(e),Qx(t[t.length-1],n)},Zx=function(e,t,n){var r=e.parentNode;return hn.each(t,(function(t){r.insertBefore(t,e)})),Xx(e,n)},ek=function(e,t,n,r){return r.insertAfter(t.reverse(),e),Qx(t[0],n)},tk=function(e,t,n,r){var i=zx(t,e,r),o=Gx(t,n.startContainer),a=Vx(qx(i.firstChild)),s=1,c=2,l=t.getRoot(),u=function(e){var r=Ld.fromRangeStart(n),i=Ih(t.getRoot()),a=e===s?i.prev(r):i.next(r);return!a||Gx(t,a.getNode())!==o};return u(s)?Zx(o,a,l):u(c)?ek(o,a,l,t):Jx(o,a,l,n)},nk=function(e,t,n){var r=yn.fromDom(e.getRoot());return n=ew(r,Ld.fromRangeStart(t))?n.replace(/^ /,"&nbsp;"):n.replace(/^&nbsp;/," "),n=nw(r,Ld.fromRangeEnd(t))?n.replace(/(&nbsp;| )(<br( \/)>)?$/,"&nbsp;"):n.replace(/&nbsp;(<br( \/)?>)?$/," "),n},rk=si,ik=function(e,t,n){if(null!==n){var r=e.getParent(t.endContainer,rk);return n===r&&kg(yn.fromDom(n),t)}return!1},ok=function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,i=n.lastChild;!r||r===i&&"BR"===r.nodeName?e.dom.setHTML(n,t):e.selection.setContent(t)}},ak=function(e,t){U.from(e.getParent(t,"td,th")).map(yn.fromDom).each(Ay)},sk=function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var i=e.getBody(),o=X_(r);hn.each(r.select("*[data-mce-fragment]"),(function(e){var t=C(n[e.nodeName.toLowerCase()]);if(t&&iy(r,e))for(var a=e.parentNode;C(a)&&a!==i;a=a.parentNode){var s=ay(r,e,a);if(s)break;if(o.compare(a,e)){r.remove(e,!0);break}}}))}},ck=function(e){var t=e;while(t=t.walk())1===t.type&&t.attr("data-mce-fragment","1")},lk=function(e){hn.each(e.getElementsByTagName("*"),(function(e){e.removeAttribute("data-mce-fragment")}))},uk=function(e){return!!e.getAttribute("data-mce-fragment")},dk=function(e,t){return t&&!e.schema.getShortEndedElements()[t.nodeName]},fk=function(e,t){var n,r=e.dom,i=e.selection;if(t){i.scrollIntoView(t);var o=$g(e.getBody(),t);if("false"===r.getContentEditable(o))return r.remove(t),void i.select(o);var a=r.createRng(),s=t.previousSibling;if(Zr(s)){if(a.setStart(s,s.nodeValue.length),!en.ie){var c=t.nextSibling;Zr(c)&&(s.appendData(c.data),c.parentNode.removeChild(c))}}else a.setStartBefore(t),a.setEndBefore(t);var l=function(t){var n=Ld.fromRangeStart(t),r=Ih(e.getBody());if(n=r.next(n),n)return n.toRange()},u=r.getParent(t,r.isBlock);r.remove(t),u&&r.isEmpty(u)&&(e.$(u).empty(),a.setStart(u,0),a.setEnd(u,0),rk(u)||uk(u)||!(n=l(a))?r.add(u,r.create("br",{"data-mce-bogus":"1"})):(a=n,r.remove(u))),i.setRng(a)}},pk=function(e){var t=e.dom,n=Fx(e.selection.getRng());e.selection.setRng(n);var r=t.getParent(n.startContainer,rk);ik(t,n,r)?fx(e,n,yn.fromDom(r)):e.getDoc().execCommand("Delete",!1,null)},hk=function(e,t,n){var r,i,o,a=e.selection,s=e.dom;/^ | $/.test(t)&&(t=nk(s,a.getRng(),t));var c=e.parser,l=n.merge,u=Z_({validate:op(e)},e.schema),d='<span id="mce_marker" data-mce-type="bookmark">&#xFEFF;</span>',f=e.fire("BeforeSetContent",{content:t,format:"html",selection:!0,paste:n.paste});if(f.isDefaultPrevented())e.fire("SetContent",{content:f.content,format:"html",selection:!0,paste:n.paste});else{t=f.content,n.preserve_zwsp||(t=ha(t)),-1===t.indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,d),i=a.getRng();var p=i.startContainer||(i.parentElement?i.parentElement():null),h=e.getBody();p===h&&a.isCollapsed()&&s.isBlock(h.firstChild)&&dk(e,h.firstChild)&&s.isEmpty(h.firstChild)&&(i=s.createRng(),i.setStart(h.firstChild,0),i.setEnd(h.firstChild,0),a.setRng(i)),a.isCollapsed()||pk(e),r=a.getNode();var m={context:r.nodeName.toLowerCase(),data:n.data,insert:!0},g=c.parse(t,m);if(!0===n.paste&&$x(e.schema,g)&&Kx(s,r))return i=tk(u,s,a.getRng(),g),a.setRng(i),void e.fire("SetContent",f);if(ck(g),o=g.lastChild,"mce_marker"===o.attr("id")){var v=o;for(o=o.prev;o;o=o.walk(!0))if(3===o.type||!s.isBlock(o.name)){e.schema.isValidChild(o.parent.name,"span")&&o.parent.insert(v,o,"br"===o.name);break}}if(e._selectionOverrides.showBlockCaretContainer(r),m.invalid){e.selection.setContent(d),r=a.getNode();var b=e.getBody();9===r.nodeType?r=o=b:o=r;while(o!==b)r=o,o=o.parentNode;t=r===b?b.innerHTML:s.getOuterHTML(r),t=u.serialize(c.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,(function(){return u.serialize(g)})))),r===b?s.setHTML(b,t):s.setOuterHTML(r,t)}else t=u.serialize(g),ok(e,t,r);sk(e,l),fk(e,s.get("mce_marker")),lk(e.getBody()),ak(s,a.getStart()),e.fire("SetContent",f),e.addVisual()}},mk=function(e,t){t(e),e.firstChild&&mk(e.firstChild,t),e.next&&mk(e.next,t)},gk=function(e,t,n){var r={},i={},o=[];for(var a in n.firstChild&&mk(n.firstChild,(function(n){Z(e,(function(e){e.name===n.name&&(r[e.name]?r[e.name].nodes.push(n):r[e.name]={filter:e,nodes:[n]})})),Z(t,(function(e){"string"===typeof n.attr(e.name)&&(i[e.name]?i[e.name].nodes.push(n):i[e.name]={filter:e,nodes:[n]})}))})),r)Le(r,a)&&o.push(r[a]);for(var s in i)Le(i,s)&&o.push(i[s]);return o},vk=function(e,t,n){var r=gk(e,t,n);Z(r,(function(e){Z(e.filter.callbacks,(function(t){t(e.nodes,e.filter.name,{})}))}))},bk="html",_k=function(e){return e instanceof O_},yk=function(e){f_(e)&&Qh(e.getBody()).each((function(t){var n=t.getNode(),r=Xr(n)?Qh(n).getOr(t):t;e.selection.setRng(r.toRange())}))},wk=function(e,t,n){e.dom.setHTML(e.getBody(),t),!0!==n&&yk(e)},xk=function(e,t,n,r){if(n=ha(n),0===n.length||/^\s+$/.test(n)){var i='<br data-mce-bogus="1">';"TABLE"===t.nodeName?n="<tr><td>"+i+"</td></tr>":/^(UL|OL)$/.test(t.nodeName)&&(n="<li>"+i+"</li>");var o=Af(e);o&&e.schema.isValidChild(t.nodeName.toLowerCase(),o.toLowerCase())?(n=i,n=e.dom.createHTML(o,Sf(e),n)):n||(n='<br data-mce-bogus="1">'),wk(e,n,r.no_selection),e.fire("SetContent",r)}else"raw"!==r.format&&(n=Z_({validate:e.validate},e.schema).serialize(e.parser.parse(n,{isRootContent:!0,insert:!0}))),r.content=aa(yn.fromDom(t))?n:hn.trim(n),wk(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r);return r.content},kk=function(e,t,n,r){vk(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var i=Z_({validate:e.validate},e.schema).serialize(n);return r.content=ha(aa(yn.fromDom(t))?i:hn.trim(i)),wk(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r),n},Ck=function(e,t){return Ue(Ue({format:bk},e),{set:!0,content:_k(t)?"":t})},Ak=function(e,t,n){var r=Ck(n,t),i=n.no_events?r:e.fire("BeforeSetContent",r);return _k(t)||(t=i.content),U.from(e.getBody()).fold(R(t),(function(n){return _k(t)?kk(e,n,t,i):xk(e,n,t,i)}))},Sk=function(e,t){return Co(e,t).isSome()},Ek=function(e){return A(e)?e:P},Tk=function(e,t,n){var r=e.dom,i=Ek(n);while(r.parentNode){r=r.parentNode;var o=yn.fromDom(r),a=t(o);if(a.isSome())return a;if(i(o))break}return U.none()},Ok=function(e,t,n){var r=t(e),i=Ek(n);return r.orThunk((function(){return i(e)?U.none():Tk(e,t,i)}))},Rk=Bm,Dk=function(e,t,n){var r=e.formatter.get(n);if(r)for(var i=0;i<r.length;i++){var o=r[i];if(Um(o)&&!1===o.inherit&&e.dom.is(t,o.selector))return!0}return!1},Lk=function(e,t,n,r,i){var o=e.dom.getRoot();return t!==o&&(t=e.dom.getParent(t,(function(t){return!!Dk(e,t,n)||(t.parentNode===o||!!Nk(e,t,n,r,!0))})),!!Nk(e,t,n,r,i))},Mk=function(e,t,n){return!!Rk(t,n.inline)||(!!Rk(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0))},Fk=function(e,t,n,r,i,o){var a=n[r];if(A(n.onmatch))return n.onmatch(t,n,r);if(a)if(x(a.length)){for(var s in a)if(Le(a,s)){var c="attributes"===r?e.getAttrib(t,s):Pm(e,t,s),l=Nm(a[s],o),u=k(c)||mt(c);if(u&&k(l))continue;if(i&&u&&!n.exact)return!1;if((!i||n.exact)&&!Rk(c,Im(e,l,s)))return!1}}else for(var d=0;d<a.length;d++)if("attributes"===r?e.getAttrib(t,a[d]):Pm(e,t,a[d]))return!0;return!0},Nk=function(e,t,n,r,i){var o=e.formatter.get(n),a=e.dom;if(o&&t)for(var s=0;s<o.length;s++){var c=o[s];if(Mk(e.dom,t,c)&&Fk(a,t,c,"attributes",i,r)&&Fk(a,t,c,"styles",i,r)){var l=c.classes;if(l)for(var u=0;u<l.length;u++)if(!e.dom.hasClass(t,Nm(l[u],r)))return;return c}}},Bk=function(e,t,n,r,i){if(r)return Lk(e,r,t,n,i);if(r=e.selection.getNode(),Lk(e,r,t,n,i))return!0;var o=e.selection.getStart();return!(o===r||!Lk(e,o,t,n,i))},Ik=function(e,t,n){var r=[],i={},o=e.selection.getStart();return e.dom.getParent(o,(function(o){for(var a=0;a<t.length;a++){var s=t[a];!i[s]&&Nk(e,o,s,n)&&(i[s]=!0,r.push(s))}}),e.dom.getRoot()),r},Pk=function(e,t){var n=function(t){return Mn(t,yn.fromDom(e.getBody()))},r=function(t,n){return Nk(e,t.dom,n)?U.some(n):U.none()};return U.from(e.selection.getStart(!0)).bind((function(e){return Ok(yn.fromDom(e),(function(e){return _e(t,(function(t){return r(e,t)}))}),n)})).getOrNull()},$k=function(e,t){var n=e.formatter.get(t),r=e.dom;if(n)for(var i=e.selection.getStart(),o=jm(r,i),a=n.length-1;a>=0;a--){var s=n[a];if(!Um(s)||C(s.defaultBlock))return!0;for(var c=o.length-1;c>=0;c--)if(r.is(o[c],s.selector))return!0}return!1},jk=function(e,t,n){return ie(n,(function(n,r){var i=zm(e,r);return e.formatter.matchNode(t,r,{},i)?n.concat([r]):n}),[])},zk=fa,qk="_mce_caret",Hk=function(e,t){return e.importNode(t,!0)},Uk=function(e){var t=[];while(e){if(3===e.nodeType&&e.nodeValue!==zk||e.childNodes.length>1)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t},Wk=function(e){return Uk(e).length>0},Vk=function(e){if(e){var t=new jo(e,e);for(e=t.current();e;e=t.next())if(Zr(e))return e}return null},Gk=function(e){var t=yn.fromTag("span");return vi(t,{id:qk,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&wr(t,yn.fromText(zk)),t},Kk=function(e){var t=Vk(e);return t&&t.nodeValue.charAt(0)===zk&&t.deleteData(0,1),t},Yk=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,i=e.selection;if(Wk(t))Nw(e,!1,yn.fromDom(t),n);else{var o=i.getRng(),a=r.getParent(t,r.isBlock),s=o.startContainer,c=o.startOffset,l=o.endContainer,u=o.endOffset,d=Kk(t);r.remove(t,!0),s===d&&c>0&&o.setStart(d,c-1),l===d&&u>0&&o.setEnd(d,u-1),a&&r.isEmpty(a)&&Cy(yn.fromDom(a)),i.setRng(o)}},Xk=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,i=e.selection;if(t)Yk(e,t,n);else if(t=tm(e.getBody(),i.getStart()),!t)while(t=r.get(qk))Yk(e,t,!1)},Qk=function(e,t,n){var r=e.dom,i=r.getParent(n,M(Dm,e));i&&r.isEmpty(i)?n.parentNode.replaceChild(t,n):(ky(yn.fromDom(n)),r.isEmpty(n)?n.parentNode.replaceChild(t,n):r.insertAfter(t,n))},Jk=function(e,t){return e.appendChild(t),t},Zk=function(e,t){var n=re(e,(function(e,t){return Jk(e,t.cloneNode(!1))}),t);return Jk(n,n.ownerDocument.createTextNode(zk))},eC=function(e,t,n,r,i,o){var a=e.formatter,s=e.dom,c=ne(ye(a.get()),(function(e){return e!==r&&!ct(e,"removeformat")})),l=jk(e,n,c),u=ne(l,(function(t){return!qm(e,t,r)}));if(u.length>0){var d=n.cloneNode(!1);return s.add(t,d),a.remove(r,i,d,o),s.remove(d),U.some(d)}return U.none()},tC=function(e,t,n){var r,i,o=e.selection,a=o.getRng(),s=a.startOffset,c=a.startContainer,l=c.nodeValue;r=tm(e.getBody(),o.getStart()),r&&(i=Vk(r));var u=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(l&&s>0&&s<l.length&&u.test(l.charAt(s))&&u.test(l.charAt(s-1))){var d=o.getBookmark();a.collapse(!0);var f=lg(e,a,e.formatter.get(t));f=kv(f),e.formatter.apply(t,n,f),o.moveToBookmark(d)}else r&&i.nodeValue===zk||(r=Hk(e.getDoc(),Gk(!0).dom),i=r.firstChild,a.insertNode(r),s=1),e.formatter.apply(t,n,r),o.setCursorLocation(i,s)},nC=function(e,t,n,r){var i,o,a,s=e.dom,c=e.selection,l=[],u=c.getRng(),d=u.startContainer,f=u.startOffset;o=d,3===d.nodeType&&(f!==d.nodeValue.length&&(i=!0),o=o.parentNode);while(o){if(Nk(e,o,t,n,r)){a=o;break}o.nextSibling&&(i=!0),l.push(o),o=o.parentNode}if(a)if(i){var p=c.getBookmark();u.collapse(!0);var h=lg(e,u,e.formatter.get(t),!0);h=kv(h),e.formatter.remove(t,n,h,r),c.moveToBookmark(p)}else{var m=tm(e.getBody(),a),g=Gk(!1).dom;Qk(e,g,null!==m?m:a);var v=eC(e,g,a,t,n,r),b=Zk(l.concat(v.toArray()),g);Yk(e,m,!1),c.setCursorLocation(b,1),s.isEmpty(a)&&s.remove(a)}},rC=function(e,t){var n=e.selection,r=e.getBody();Xk(e,null,!1),8!==t&&46!==t||!n.isCollapsed()||n.getStart().innerHTML!==zk||Xk(e,tm(r,n.getStart())),37!==t&&39!==t||Xk(e,tm(r,n.getStart()))},iC=function(e){e.on("mouseup keydown",(function(t){rC(e,t.keyCode)}))},oC=function(e,t){var n=Gk(!1),r=Zk(t,n.dom);return br(yn.fromDom(e),n),Sr(yn.fromDom(e)),Ld(r,0)},aC=function(e,t){var n=e.schema.getTextInlineElements();return Le(n,In(t))&&!em(t.dom)&&!Kr(t.dom)},sC=function(e){return em(e.dom)&&Wk(e.dom)},cC={},lC=$e,uC=Ie,dC=function(e,t){var n=cC[e];n||(cC[e]=[]),cC[e].push(t)},fC=function(e,t){uC(cC[e],(function(e){e(t)}))};dC("pre",(function(e){var t,n=e.selection.getRng(),r=function(e){return o(e.previousSibling)&&-1!==je(t,e.previousSibling)},i=function(e,t){Ml(t).remove(),Ml(e).append("<br><br>").append(t.childNodes)},o=Ur(["pre"]);n.collapsed||(t=e.selection.getSelectedBlocks(),uC(lC(lC(t,o),r),(function(e){i(e.previousSibling,e)})))}));var pC=hn.each,hC=function(e){return Hr(e)&&!xm(e)&&!em(e)&&!Kr(e)},mC=function(e,t){for(var n=e;n;n=n[t]){if(Zr(n)&&ht(n.data))return e;if(Hr(n)&&!xm(n))return n}return e},gC=function(e,t,n){var r=X_(e);if(t&&n&&(t=mC(t,"previousSibling"),n=mC(n,"nextSibling"),r.compare(t,n))){for(var i=t.nextSibling;i&&i!==n;){var o=i;i=i.nextSibling,t.appendChild(o)}return e.remove(n),hn.each(hn.grep(n.childNodes),(function(e){t.appendChild(e)})),t}return n},vC=function(e,t,n,r){if(r&&!1!==t.merge_siblings){var i=gC(e,Rm(r),r);gC(e,i,Rm(i,!0))}},bC=function(e,t,n){if(t.clear_child_styles){var r=t.links?"*:not(a)":"*";pC(e.select(r,n),(function(n){hC(n)&&pC(t.styles,(function(t,r){e.setStyle(n,r,"")}))}))}},_C=function(e,t,n){pC(e.childNodes,(function(e){hC(e)&&(t(e)&&n(e),e.hasChildNodes()&&_C(e,t,n))}))},yC=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},wC=function(e,t){return function(n){return!(!n||!Pm(e,n,t))}},xC=function(e,t,n){return function(r){e.setStyle(r,t,n),""===r.getAttribute("style")&&r.removeAttribute("style"),yC(e,r)}},kC=Zi.generate([{keep:[]},{rename:["name"]},{removed:[]}]),CC=/^(src|href|style)$/,AC=hn.each,SC=Bm,EC=function(e){return/^(TR|TH|TD)$/.test(e.nodeName)},TC=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},OC=function(e,t,n){var r=t[n?"startContainer":"endContainer"],i=t[n?"startOffset":"endOffset"];if(Hr(r)){var o=r.childNodes.length-1;!n&&i&&i--,r=r.childNodes[i>o?o:i]}return Zr(r)&&n&&i>=r.nodeValue.length&&(r=new jo(r,e.getBody()).next()||r),Zr(r)&&!n&&0===i&&(r=new jo(r,e.getBody()).prev()||r),r},RC=function(e,t){var n=t?"firstChild":"lastChild";if(EC(e)&&e[n]){var r=e[n];return"TR"===e.nodeName&&r[n]||r}return e},DC=function(e,t,n,r){var i=e.create(n,r);return t.parentNode.insertBefore(i,t),i.appendChild(t),i},LC=function(e,t,n,r,i){var o=yn.fromDom(t),a=yn.fromDom(e.create(r,i)),s=n?nr(o):tr(o);return Cr(a,s),n?(br(o,a),yr(a,o)):(_r(o,a),wr(a,o)),a.dom},MC=function(e,t,n){return!(!Wm(n)||!SC(t,n.inline))||(!(!Hm(n)||!SC(t,n.block))||(Um(n)?Hr(t)&&e.is(t,n.selector):void 0))},FC=function(e,t){return t.links&&"A"===e.nodeName},NC=function(e,t,n,r){var i=Rm(t,n,r);return k(i)||"BR"===i.nodeName||e.isBlock(i)},BC=function(e,t,n){var r,i=t.parentNode,o=e.dom,a=Af(e);Hm(n)&&(a?i===o.getRoot()&&(n.list_block&&SC(t,n.list_block)||Z(be(t.childNodes),(function(t){Lm(e,a,t.nodeName.toLowerCase())?r?r.appendChild(t):(r=DC(o,t,a),o.setAttribs(r,e.settings.forced_root_block_attrs)):r=null}))):o.isBlock(t)&&!o.isBlock(i)&&(NC(o,t,!1)||NC(o,t.firstChild,!0,!0)||t.insertBefore(o.create("br"),t.firstChild),NC(o,t,!0)||NC(o,t.lastChild,!1,!0)||t.appendChild(o.create("br")))),Vm(n)&&!SC(n.inline,t)||o.remove(t,!0)},IC=function(e,t,n,r,i){var o,a=e.dom;if(!MC(a,r,t)&&!FC(r,t))return kC.keep();var s=r;if(Wm(t)&&"all"===t.remove&&_(t.preserve_attributes)){var c=ne(a.getAttribs(s),(function(e){return X(t.preserve_attributes,e.name.toLowerCase())}));if(a.removeAllAttribs(s),Z(c,(function(e){return a.setAttrib(s,e.name,e.value)})),c.length>0)return kC.rename("span")}if("all"!==t.remove){AC(t.styles,(function(e,r){e=Im(a,Nm(e,n),r+""),S(r)&&(r=e,i=null),(t.remove_similar||!i||SC(Pm(a,i,r),e))&&a.setStyle(s,r,""),o=!0})),o&&""===a.getAttrib(s,"style")&&(s.removeAttribute("style"),s.removeAttribute("data-mce-style")),AC(t.attributes,(function(e,r){var o;if(e=Nm(e,n),S(r)&&(r=e,i=null),t.remove_similar||!i||SC(a.getAttrib(i,r),e)){if("class"===r&&(e=a.getAttrib(s,r),e&&(o="",Z(e.split(/\s+/),(function(e){/mce\-\w+/.test(e)&&(o+=(o?" ":"")+e)})),o)))return void a.setAttrib(s,r,o);if(CC.test(r)&&s.removeAttribute("data-mce-"+r),"style"===r&&Ur(["li"])(s)&&"none"===a.getStyle(s,"list-style-type"))return s.removeAttribute(r),void a.setStyle(s,"list-style-type","none");"class"===r&&s.removeAttribute("className"),s.removeAttribute(r)}})),AC(t.classes,(function(e){e=Nm(e,n),i&&!a.hasClass(i,e)||a.removeClass(s,e)}));for(var l=a.getAttribs(s),u=0;u<l.length;u++){var d=l[u].nodeName;if(0!==d.indexOf("_")&&0!==d.indexOf("data-"))return kC.keep()}}return"none"!==t.remove?(BC(e,s,t),kC.removed()):kC.keep()},PC=function(e,t,n,r,i){return IC(e,t,n,r,i).fold(P,(function(t){return e.dom.rename(r,t),!0}),$)},$C=function(e,t,n,r,i){var o;return Z(jm(e.dom,t.parentNode).reverse(),(function(t){if(!o&&"_start"!==t.id&&"_end"!==t.id){var a=Nk(e,t,n,r,i);a&&!1!==a.split&&(o=t)}})),o},jC=function(e,t,n,r){return IC(e,t,n,r,r).fold(R(r),(function(t){var n=e.dom.createFragment();return n.appendChild(r),e.dom.rename(r,t)}),R(null))},zC=function(e,t,n,r,i,o,a,s){var c,l,u,d=e.dom;if(n){for(var f=n.parentNode,p=r.parentNode;p&&p!==f;p=p.parentNode){c=d.clone(p,!1);for(var h=0;h<t.length;h++)if(c=jC(e,t[h],s,c),null===c)break;c&&(l&&c.appendChild(l),u||(u=c),l=c)}!o||a.mixed&&d.isBlock(n)||(r=d.split(n,r)),l&&(i.parentNode.insertBefore(l,i),u.appendChild(i),Wm(a)&&vC(d,a,s,l))}return r},qC=function(e,t,n,r,i){var o=e.formatter.get(t),a=o[0],s=!0,c=e.dom,l=e.selection,u=function(r){var s=$C(e,r,t,n,i);return zC(e,o,s,r,r,!0,a,n)},d=function(e){return xm(e)&&Hr(e)&&("_start"===e.id||"_end"===e.id)},f=function(t){return Q(o,(function(r){return PC(e,r,n,t,t)}))},p=function(t){var n=!0,r=!1;Hr(t)&&c.getContentEditable(t)&&(n=s,s="true"===c.getContentEditable(t),r=!0);var i=be(t.childNodes);if(s&&!r){var l=f(t),u=l||Q(o,(function(e){return Mk(c,t,e)})),d=t.parentNode;!u&&C(d)&&Gm(a)&&f(d)}if(a.deep&&i.length){for(var h=0;h<i.length;h++)p(i[h]);r&&(s=n)}var m=["underline","line-through","overline"];Z(m,(function(n){Hr(t)&&e.dom.getStyle(t,"text-decoration")===n&&t.parentNode&&$m(c,t.parentNode)===n&&PC(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:n}},null,t)}))},h=function(e){var t=c.get(e?"_start":"_end"),n=t[e?"firstChild":"lastChild"];return d(n)&&(n=n[e?"firstChild":"lastChild"]),Zr(n)&&0===n.data.length&&(n=e?t.previousSibling||t.nextSibling:t.nextSibling||t.previousSibling),c.remove(t,!0),n},m=function(t){var n,r,i=lg(e,t,o,t.collapsed);if(a.split){if(i=kv(i),n=OC(e,i,!0),r=OC(e,i),n!==r){if(n=RC(n,!0),r=RC(r,!1),TC(c,n,r)){var s=U.from(n.firstChild).getOr(n);return u(LC(c,s,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void h(!0)}if(TC(c,r,n)){s=U.from(r.lastChild).getOr(r);return u(LC(c,s,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void h(!1)}n=DC(c,n,"span",{id:"_start","data-mce-type":"bookmark"}),r=DC(c,r,"span",{id:"_end","data-mce-type":"bookmark"});var l=c.createRng();l.setStartAfter(n),l.setEndBefore(r),ug(c,l,(function(e){Z(e,(function(e){xm(e)||xm(e.parentNode)||u(e)}))})),u(n),u(r),n=h(!0),r=h()}else n=r=u(n);i.startContainer=n.parentNode?n.parentNode:n,i.startOffset=c.nodeIndex(n),i.endContainer=r.parentNode?r.parentNode:r,i.endOffset=c.nodeIndex(r)+1}ug(c,i,(function(e){Z(e,p)}))};if(r){if(Em(r)){var g=c.createRng();g.setStartBefore(r),g.setEndAfter(r),m(g)}else m(r);ev(e,t,r,n)}else if("false"!==c.getContentEditable(l.getNode()))l.isCollapsed()&&Wm(a)&&!vg(e).length?nC(e,t,n,i):(Eg(l,!0,(function(){Sg(e,m)})),Wm(a)&&Bk(e,t,n,l.getStart())&&Om(c,l,l.getRng()),e.nodeChanged()),ev(e,t,r,n);else{r=l.getNode();for(var v=0;v<o.length;v++)if(o[v].ceFalseOverride&&PC(e,o[v],n,r,r))break;ev(e,t,r,n)}},HC=hn.each,UC=function(e,t,n,r){var i=function(t){if(1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType){var n=$m(e,t.parentNode);e.getStyle(t,"color")&&n?e.setStyle(t,"text-decoration",n):e.getStyle(t,"text-decoration")===n&&e.setStyle(t,"text-decoration",null)}};t.styles&&(t.styles.color||t.styles.textDecoration)&&(hn.walk(r,i,"childNodes"),i(r))},WC=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&_C(r,wC(e,"fontSize"),xC(e,"backgroundColor",Nm(t.styles.backgroundColor,n)))},VC=function(e,t,n,r){!Wm(t)||"sub"!==t.inline&&"sup"!==t.inline||(_C(r,wC(e,"fontSize"),xC(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},GC=function(e,t,n,r){HC(t,(function(t){Wm(t)&&HC(e.dom.select(t.inline,r),(function(r){hC(r)&&PC(e,t,n,r,t.exact?r:null)})),bC(e.dom,t,r)}))},KC=function(e,t,n,r,i){Nk(e,i.parentNode,n,r)&&PC(e,t,r,i)||t.merge_with_parents&&e.dom.getParent(i.parentNode,(function(o){if(Nk(e,o,n,r))return PC(e,t,r,i),!0}))},YC=hn.each,XC=function(e){return Hr(e)&&!xm(e)&&!em(e)&&!Kr(e)},QC=function(e,t,n,r){if(lp(e)&&Wm(t)){var i=Ps(e.schema),o=Sk(yn.fromDom(n),(function(e){return em(e.dom)}));return Me(i,r)&&ns(yn.fromDom(n.parentNode),!1)&&!o}return!1},JC=function(e,t,n,r){var i=e.formatter.get(t),o=i[0],a=!r&&e.selection.isCollapsed(),s=e.dom,c=e.selection,l=function(e,t){if(void 0===t&&(t=o),A(t.onformat)&&t.onformat(e,t,n,r),YC(t.styles,(function(t,r){s.setStyle(e,r,Nm(t,n))})),t.styles){var i=s.getAttrib(e,"style");i&&s.setAttrib(e,"data-mce-style",i)}YC(t.attributes,(function(t,r){s.setAttrib(e,r,Nm(t,n))})),YC(t.classes,(function(t){t=Nm(t,n),s.hasClass(e,t)||s.addClass(e,t)}))},u=function(e,t){var n=!1;return YC(e,(function(e){return!!Um(e)&&(C(e.collapsed)&&e.collapsed!==a?void 0:s.is(t,e.selector)&&!em(t)?(l(t,e),n=!0,!1):void 0)})),n},d=function(e){if(v(e)){var t=s.create(e);return l(t),t}return null},f=function(r,a,s){var c=[],f=!0,p=o.inline||o.block,h=d(p);ug(r,a,(function(a){var d,m=function(a){var g=!1,v=f,b=a.nodeName.toLowerCase(),_=a.parentNode,y=_.nodeName.toLowerCase();if(Hr(a)&&r.getContentEditable(a)&&(v=f,f="true"===r.getContentEditable(a),g=!0),ri(a)&&!QC(e,o,a,y))return d=null,void(Hm(o)&&r.remove(a));if(Hm(o)&&o.wrapper&&Nk(e,a,t,n))d=null;else{if(f&&!g&&Hm(o)&&!o.wrapper&&Dm(e,b)&&Lm(e,y,p)){var w=r.rename(a,p);return l(w),c.push(w),void(d=null)}if(Um(o)){var x=u(i,a);if(!x&&C(_)&&Gm(o)&&(x=u(i,_)),!Wm(o)||x)return void(d=null)}!f||g||!Lm(e,p,b)||!Lm(e,y,p)||!s&&Zr(a)&&pa(a.data)||em(a)||Wm(o)&&r.isBlock(a)?(d=null,Z(be(a.childNodes),m),g&&(f=v),d=null):(d||(d=r.clone(h,!1),a.parentNode.insertBefore(d,a),c.push(d)),d.appendChild(a))}};Z(a,m)})),!0===o.links&&Z(c,(function(e){var t=function(e){"A"===e.nodeName&&l(e,o),Z(be(e.childNodes),t)};t(e)})),Z(c,(function(a){var s=function(e){var t=0;return Z(e.childNodes,(function(e){Fm(e)||xm(e)||t++})),t},u=function(e){var t=ae(e.childNodes,XC).filter((function(e){return Mk(r,e,o)}));return t.map((function(t){var n=r.clone(t,!1);return l(n),r.replace(n,e,!0),r.remove(t,!0),n})).getOr(e)},d=s(a);!(c.length>1)&&r.isBlock(a)||0!==d?(Wm(o)||Hm(o)&&o.wrapper)&&(o.exact||1!==d||(a=u(a)),GC(e,i,n,a),KC(e,o,t,n,a),WC(r,o,n,a),UC(r,o,n,a),VC(r,o,n,a),vC(r,o,n,a)):r.remove(a,!0)}))};if("false"!==s.getContentEditable(c.getNode())){if(o){if(r)if(Em(r)){if(!u(i,r)){var p=s.createRng();p.setStartBefore(r),p.setEndAfter(r),f(s,lg(e,p,i),!0)}}else f(s,r,!0);else if(a&&Wm(o)&&!vg(e).length)tC(e,t,n);else{var h=c.getNode(),m=i[0];e.settings.forced_root_block||!m.defaultBlock||s.getParent(h,s.isBlock)||JC(e,m.defaultBlock),c.setRng(Fx(c.getRng())),Eg(c,!0,(function(){Sg(e,(function(t,n){var r=n?t:lg(e,t,i);f(s,r,!1)}))})),Om(s,c,c.getRng()),e.nodeChanged()}fC(t,e)}Zg(e,t,r,n)}else{r=c.getNode();for(var g=0,b=i.length;g<b;g++){var _=i[g];if(_.ceFalseOverride&&Um(_)&&s.is(r,_.selector)){l(r,_);break}}Zg(e,t,r,n)}},ZC=function(e){return Le(e,"vars")},eA=function(e,t){e.set({}),t.on("NodeChange",(function(n){iA(t,n.element,e.get())})),t.on("FormatApply FormatRemove",(function(n){var r=U.from(n.node).map((function(e){return Em(e)?e:e.startContainer})).bind((function(e){return Hr(e)?U.some(e):U.from(e.parentElement)})).getOrThunk((function(){return tA(t)}));iA(t,r,e.get())}))},tA=function(e){return e.selection.getStart()},nA=function(e,t,n,r,i){var o=function(t){var o=e.formatter.matchNode(t,n,null!==i&&void 0!==i?i:{},r);return!x(o)},a=function(t){return!!Dk(e,t,n)||!r&&C(e.formatter.matchNode(t,n,i,!0))};return oe(t,o,a)},rA=function(e,t){var n=null!==t&&void 0!==t?t:tA(e);return ne(jm(e.dom,n),(function(e){return Hr(e)&&!Kr(e)}))},iA=function(e,t,n){var r=rA(e,t);xe(n,(function(n,i){var o=function(n){var o=nA(e,r,i,n.similar,ZC(n)?n.vars:void 0),a=o.isSome();if(n.state.get()!==a){n.state.set(a);var s=o.getOr(t);ZC(n)?n.callback(a,{node:s,format:i,parents:r}):Z(n.callbacks,(function(e){return e(a,{node:s,format:i,parents:r})}))}};Z([n.withSimilar,n.withoutSimilar],o),Z(n.withVars,o)}))},oA=function(e,t,n,r,i,o){var a=t.get();Z(n.split(","),(function(t){var n=De(a,t).getOrThunk((function(){var e={withSimilar:{state:Xl(!1),similar:!0,callbacks:[]},withoutSimilar:{state:Xl(!1),similar:!1,callbacks:[]},withVars:[]};return a[t]=e,e})),s=function(){var n=rA(e);return nA(e,n,t,i,o).isSome()};if(x(o)){var c=i?n.withSimilar:n.withoutSimilar;c.callbacks.push(r),1===c.callbacks.length&&c.state.set(s())}else n.withVars.push({state:Xl(s()),similar:i,vars:o,callback:r})})),t.set(a)},aA=function(e,t,n){var r=e.get();Z(t.split(","),(function(e){return De(r,e).each((function(t){r[e]={withSimilar:Ue(Ue({},t.withSimilar),{callbacks:ne(t.withSimilar.callbacks,(function(e){return e!==n}))}),withoutSimilar:Ue(Ue({},t.withoutSimilar),{callbacks:ne(t.withoutSimilar.callbacks,(function(e){return e!==n}))}),withVars:ne(t.withVars,(function(e){return e.callback!==n}))}}))})),e.set(r)},sA=function(e,t,n,r,i,o){return null===t.get()&&eA(t,e),oA(e,t,n,r,i,o),{unbind:function(){return aA(t,n,r)}}},cA=function(e,t,n,r){var i=e.formatter.get(t);!Bk(e,t,n,r)||"toggle"in i[0]&&!i[0].toggle?JC(e,t,n,r):qC(e,t,n,r)},lA=function(e,t){var n=t||document,r=n.createDocumentFragment();return Z(e,(function(e){r.appendChild(e.dom)})),yn.fromDom(r)},uA=function(e,t,n){return{element:e,width:t,rows:n}},dA=function(e,t){return{element:e,cells:t}},fA=function(e,t){return{x:e,y:t}},pA=function(e,t){var n=parseInt(bi(e,t),10);return isNaN(n)?1:n},hA=function(e,t,n,r,i){for(var o=pA(i,"rowspan"),a=pA(i,"colspan"),s=e.rows,c=n;c<n+o;c++){s[c]||(s[c]=dA(Gu(r),[]));for(var l=t;l<t+a;l++){var u=s[c].cells;u[l]=c===n&&l===t?i:Vu(i)}}},mA=function(e,t,n){var r=e.rows,i=r[n]?r[n].cells:[];return!!i[t]},gA=function(e,t,n){while(mA(e,t,n))t++;return t},vA=function(e){return ie(e,(function(e,t){return t.cells.length>e?t.cells.length:e}),0)},bA=function(e,t){for(var n=e.rows,r=0;r<n.length;r++)for(var i=n[r].cells,o=0;o<i.length;o++)if(Mn(i[o],t))return U.some(fA(o,r));return U.none()},_A=function(e,t,n,r,i){for(var o=[],a=e.rows,s=n;s<=i;s++){var c=a[s].cells,l=t<r?c.slice(t,r+1):c.slice(r,t+1);o.push(dA(a[s].element,l))}return o},yA=function(e,t,n){var r=t.x,i=t.y,o=n.x,a=n.y,s=i<a?_A(e,r,i,o,a):_A(e,r,a,o,i);return uA(e.element,vA(s),s)},wA=function(e,t){var n=Vu(e.element),r=yn.fromTag("tbody");return Cr(r,t),wr(n,r),n},xA=function(e){return J(e.rows,(function(e){var t=J(e.cells,(function(e){var t=Gu(e);return wi(t,"colspan"),wi(t,"rowspan"),t})),n=Vu(e.element);return Cr(n,t),n}))},kA=function(e){var t=uA(Vu(e),0,[]);return Z(Eu(e,"tr"),(function(e,n){Z(Eu(e,"td,th"),(function(r,i){hA(t,gA(t,i,n),n,e,r)}))})),uA(t.element,vA(t.rows),t.rows)},CA=function(e){return wA(e,xA(e))},AA=function(e,t,n){return bA(e,t).bind((function(t){return bA(e,n).map((function(n){return yA(e,t,n)}))}))},SA=function(e){return ae(e,(function(e){return"ul"===In(e)||"ol"===In(e)}))},EA=function(e,t){return ae(e,(function(e){return"li"===In(e)&&kg(e,t)})).fold(R([]),(function(t){return SA(e).map((function(e){var t=yn.fromTag(In(e)),n=Te(Ti(e),(function(e,t){return lt(t,"list-style")}));return Ci(t,n),[yn.fromTag("li"),t]})).getOr([])}))},TA=function(e,t){var n=ie(t,(function(e,t){return wr(t,e),t}),e);return t.length>0?lA([n]):n},OA=function(e){return ra(e)?Xn(e).filter(na).fold(R([]),(function(t){return[e,t]})):na(e)?[e]:[]},RA=function(e,t){var n=yn.fromDom(t.commonAncestorContainer),r=Oy(n,e),i=ne(r,(function(e){return Zo(e)||Xo(e)})),o=EA(r,t),a=i.concat(o.length?o:OA(n));return J(a,Vu)},DA=function(){return lA([])},LA=function(e,t){return TA(yn.fromDom(t.cloneContents()),RA(e,t))},MA=function(e,t){return So(t,"table",M(Mn,e))},FA=function(e,t){return MA(e,t[0]).bind((function(e){var n=t[0],r=t[t.length-1],i=kA(e);return AA(i,n,r).map((function(e){return lA([CA(e)])}))})).getOrThunk(DA)},NA=function(e,t){return t.length>0&&t[0].collapsed?DA():LA(e,t[0])},BA=function(e,t){var n=gg(t,e);return n.length>0?FA(e,n):NA(e,t)},IA=function(e){return e.replace(/^[ \f\n\r\t\v]+/,"")},PA=function(e,t){return t>=0&&t<e.length&&Am(e.charAt(t))},$A=function(e,t){var n=ha(e.innerText);return t?IA(n):n},jA=function(e){return e.map((function(e){return e.nodeName})).getOr("div").toLowerCase()},zA=function(e){return U.from(e.selection.getRng()).map((function(t){var n=U.from(e.dom.getParent(t.commonAncestorContainer,e.dom.isBlock)),r=e.getBody(),i=jA(n),o=en.browser.isIE()&&"pre"!==i,a=e.dom.add(r,i,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},t.cloneContents()),s=$A(a,o),c=ha(a.textContent);if(e.dom.remove(a),PA(c,0)||PA(c,c.length-1)){var l=n.getOr(r),u=$A(l,o),d=u.indexOf(s);if(-1===d)return s;var f=PA(u,d-1),p=PA(u,d+s.length);return(f?" ":"")+s+(p?" ":"")}return s})).getOr("")},qA=function(e,t){var n=e.selection.getRng(),r=e.dom.create("body"),i=e.selection.getSel(),o=C_(e,dg(i)),a=t.contextual?BA(yn.fromDom(e.getBody()),o).dom:n.cloneContents();return a&&r.appendChild(a),e.selection.serializer.serialize(r,t)},HA=function(e,t){return Ue(Ue({},e),{format:t,get:!0,selection:!0})},UA=function(e,t,n){void 0===n&&(n={});var r=HA(n,t),i=e.fire("BeforeGetContent",r);if(i.isDefaultPrevented())return e.fire("GetContent",i),i.content;if("text"===i.format)return zA(e);i.getInner=!0;var o=qA(e,i);return"tree"===i.format?o:(i.content=e.selection.isCollapsed()?"":o,e.fire("GetContent",i),i.content)},WA=0,VA=1,GA=2,KA=function(e,t){var n=e.length+t.length+2,r=new Array(n),i=new Array(n),o=function(e,t,n){return{start:e,end:t,diag:n}},a=function(n,r,i,o,s){var l=c(n,r,i,o);if(null===l||l.start===r&&l.diag===r-o||l.end===n&&l.diag===n-i){var u=n,d=i;while(u<r||d<o)u<r&&d<o&&e[u]===t[d]?(s.push([WA,e[u]]),++u,++d):r-n>o-i?(s.push([GA,e[u]]),++u):(s.push([VA,t[d]]),++d)}else{a(n,l.start,i,l.start-l.diag,s);for(var f=l.start;f<l.end;++f)s.push([WA,e[f]]);a(l.end,r,l.end-l.diag,o,s)}},s=function(n,r,i,a){var s=n;while(s-r<a&&s<i&&e[s]===t[s-r])++s;return o(n,s,r)},c=function(n,o,a,c){var l=o-n,u=c-a;if(0===l||0===u)return null;var d,f,p,h,m,g=l-u,v=u+l,b=(v%2===0?v:v+1)/2;for(r[1+b]=n,i[1+b]=o+1,d=0;d<=b;++d){for(f=-d;f<=d;f+=2){p=f+b,f===-d||f!==d&&r[p-1]<r[p+1]?r[p]=r[p+1]:r[p]=r[p-1]+1,h=r[p],m=h-n+a-f;while(h<o&&m<c&&e[h]===t[m])r[p]=++h,++m;if(g%2!==0&&g-d<=f&&f<=g+d&&i[p-g]<=r[p])return s(i[p-g],f+n-a,o,c)}for(f=g-d;f<=g+d;f+=2){p=f+b-g,f===g-d||f!==g+d&&i[p+1]<=i[p-1]?i[p]=i[p+1]-1:i[p]=i[p-1],h=i[p]-1,m=h-n+a-f;while(h>=n&&m>=a&&e[h]===t[m])i[p]=h--,m--;if(g%2===0&&-d<=f&&f<=d&&i[p]<=r[p+g])return s(i[p],f+n-a,o,c)}}},l=[];return a(0,e.length,0,t.length,l),l},YA=function(e){return Hr(e)?e.outerHTML:Zr(e)?Ts.encodeRaw(e.data,!1):ei(e)?"\x3c!--"+e.data+"--\x3e":""},XA=function(e){var t,n=document.createElement("div"),r=document.createDocumentFragment();e&&(n.innerHTML=e);while(t=n.firstChild)r.appendChild(t);return r},QA=function(e,t,n){var r=XA(t);if(e.hasChildNodes()&&n<e.childNodes.length){var i=e.childNodes[n];i.parentNode.insertBefore(r,i)}else e.appendChild(r)},JA=function(e,t){if(e.hasChildNodes()&&t<e.childNodes.length){var n=e.childNodes[t];n.parentNode.removeChild(n)}},ZA=function(e,t){var n=0;Z(e,(function(e){e[0]===WA?n++:e[0]===VA?(QA(t,e[1],n),n++):e[0]===GA&&JA(t,n)}))},eS=function(e,t){return ne(J(be(e.childNodes),t?T(ha,YA):YA),(function(e){return e.length>0}))},tS=function(e,t){var n=J(be(t.childNodes),YA);return ZA(KA(n,e),t),t},nS=Ge((function(){return document.implementation.createHTMLDocument("undo")})),rS=function(e){return null!==e.querySelector("iframe")},iS=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},oS=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},aS=function(e){var t=e.serializer.getTempAttrs(),n=U_(e.getBody(),t);return rS(n)?iS(eS(n,!0)):oS(ha(n.innerHTML))},sS=function(e,t,n){var r=n?t.beforeBookmark:t.bookmark;"fragmented"===t.type?tS(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw",no_selection:!C(r)||!am(r)||!r.isFakeCaret}),e.selection.moveToBookmark(r)},cS=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},lS=function(e){var t=yn.fromTag("body",nS());return Uu(t,cS(e)),Z(Eu(t,"*[data-mce-bogus]"),Er),Hu(t)},uS=function(e,t){return cS(e)===cS(t)},dS=function(e,t){return lS(e)===lS(t)},fS=function(e,t){return!(!e||!t)&&(!!uS(e,t)||dS(e,t))},pS=function(e){return 0===e.get()},hS=function(e,t,n){pS(n)&&(e.typing=t)},mS=function(e,t){e.typing&&(hS(e,!1,t),e.add())},gS=function(e){e.typing&&(e.typing=!1,e.add())},vS=function(e,t,n){pS(t)&&n.set(hf(e.selection))},bS=function(e,t,n,r,i,o,a){var s=aS(e);if(o=o||{},o=hn.extend(o,s),!1===pS(r)||e.removed)return null;var c=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:o,lastLevel:c,originalEvent:a}).isDefaultPrevented())return null;if(c&&fS(c,o))return null;t.data[n.get()]&&i.get().each((function(e){t.data[n.get()].beforeBookmark=e}));var l=_p(e);if(l&&t.data.length>l){for(var u=0;u<t.data.length-1;u++)t.data[u]=t.data[u+1];t.data.length--,n.set(t.data.length)}o.bookmark=hf(e.selection),n.get()<t.data.length-1&&(t.data.length=n.get()+1),t.data.push(o),n.set(t.data.length-1);var d={level:o,lastLevel:c,originalEvent:a};return n.get()>0?(e.setDirty(!0),e.fire("AddUndo",d),e.fire("change",d)):e.fire("AddUndo",d),o},_S=function(e,t,n){t.data=[],n.set(0),t.typing=!1,e.fire("ClearUndos")},yS=function(e,t,n,r,i){if(t.transact(r)){var o=t.data[n.get()].bookmark,a=t.data[n.get()-1];sS(e,a,!0),t.transact(i)&&(t.data[n.get()-1].beforeBookmark=o)}},wS=function(e,t,n){var r;return t.get()<n.length-1&&(t.set(t.get()+1),r=n[t.get()],sS(e,r,!1),e.setDirty(!0),e.fire("Redo",{level:r})),r},xS=function(e,t,n,r){var i;return t.typing&&(t.add(),t.typing=!1,hS(t,!1,n)),r.get()>0&&(r.set(r.get()-1),i=t.data[r.get()],sS(e,i,!0),e.setDirty(!0),e.fire("Undo",{level:i})),i},kS=function(e){e.clear(),e.add()},CS=function(e,t,n){return n.get()>0||t.typing&&t.data[0]&&!fS(aS(e),t.data[0])},AS=function(e,t){return t.get()<e.data.length-1&&!e.typing},SS=function(e,t,n){return mS(e,t),e.beforeChange(),e.ignore(n),e.add()},ES=function(e,t){try{e.set(e.get()+1),t()}finally{e.set(e.get()-1)}},TS=function(e,t){var n=e.dom,r=C(t)?t:e.getBody();x(e.hasVisual)&&(e.hasVisual=Sp(e)),Z(n.select("table,a",r),(function(t){switch(t.nodeName){case"TABLE":var r=Ep(e),i=n.getAttrib(t,"border");i&&"0"!==i||!e.hasVisual?n.removeClass(t,r):n.addClass(t,r);break;case"A":if(!n.getAttrib(t,"href")){var o=n.getAttrib(t,"name")||t.id,a=Tp(e);o&&e.hasVisual?n.addClass(t,a):n.removeClass(t,a)}break}})),e.fire("VisualAid",{element:t,hasVisual:e.hasVisual})},OS=function(e){return{undoManager:{beforeChange:function(t,n){return vS(e,t,n)},add:function(t,n,r,i,o,a){return bS(e,t,n,r,i,o,a)},undo:function(t,n,r){return xS(e,t,n,r)},redo:function(t,n){return wS(e,t,n)},clear:function(t,n){return _S(e,t,n)},reset:function(e){return kS(e)},hasUndo:function(t,n){return CS(e,t,n)},hasRedo:function(e,t){return AS(e,t)},transact:function(e,t,n){return SS(e,t,n)},ignore:function(e,t){return ES(e,t)},extra:function(t,n,r,i){return yS(e,t,n,r,i)}},formatter:{match:function(t,n,r,i){return Bk(e,t,n,r,i)},matchAll:function(t,n){return Ik(e,t,n)},matchNode:function(t,n,r,i){return Nk(e,t,n,r,i)},canApply:function(t){return $k(e,t)},closest:function(t){return Pk(e,t)},apply:function(t,n,r){return JC(e,t,n,r)},remove:function(t,n,r,i){return qC(e,t,n,r,i)},toggle:function(t,n,r){return cA(e,t,n,r)},formatChanged:function(t,n,r,i,o){return sA(e,t,n,r,i,o)}},editor:{getContent:function(t,n){return K_(e,t,n)},setContent:function(t,n){return Ak(e,t,n)},insertContent:function(t,n){return hk(e,t,n)},addVisual:function(t){return TS(e,t)}},selection:{getContent:function(t,n){return UA(e,t,n)}},raw:{getModel:function(){return U.none()}}}},RS=function(e){var t=function(e){return b(e)?e:{}},n=e.undoManager,r=e.formatter,i=e.editor,o=e.selection,a=e.raw;return{undoManager:{beforeChange:n.beforeChange,add:n.add,undo:n.undo,redo:n.redo,clear:n.clear,reset:n.reset,hasUndo:n.hasUndo,hasRedo:n.hasRedo,transact:function(e,t,r){return n.transact(r)},ignore:function(e,t){return n.ignore(t)},extra:function(e,t,r,i){return n.extra(r,i)}},formatter:{match:function(e,n,i,o){return r.match(e,t(n),o)},matchAll:r.matchAll,matchNode:r.matchNode,canApply:function(e){return r.canApply(e)},closest:function(e){return r.closest(e)},apply:function(e,n,i){return r.apply(e,t(n))},remove:function(e,n,i,o){return r.remove(e,t(n))},toggle:function(e,n,i){return r.toggle(e,t(n))},formatChanged:function(e,t,n,i,o){return r.formatChanged(t,n,i,o)}},editor:{getContent:function(e,t){return i.getContent(e)},setContent:function(e,t){return i.setContent(e,t)},insertContent:function(e,t){return i.insertContent(e)},addVisual:i.addVisual},selection:{getContent:function(e,t){return o.getContent(t)}},raw:{getModel:function(){return U.some(a.getRawModel())}}}},DS=function(){var e=R(null),t=R("");return{undoManager:{beforeChange:E,add:e,undo:e,redo:e,clear:E,reset:E,hasUndo:P,hasRedo:P,transact:e,ignore:E,extra:E},formatter:{match:P,matchAll:R([]),matchNode:R(void 0),canApply:P,closest:t,apply:E,remove:E,toggle:E,formatChanged:R({unbind:E})},editor:{getContent:t,setContent:t,insertContent:E,addVisual:E},selection:{getContent:t},raw:{getModel:R(U.none())}}},LS=function(e){return Le(e.plugins,"rtc")},MS=function(e){return De(e.plugins,"rtc").bind((function(e){return U.from(e.setup)}))},FS=function(e){var t=e;return MS(e).fold((function(){return t.rtcInstance=OS(e),U.none()}),(function(e){return t.rtcInstance=DS(),U.some((function(){return e().then((function(e){return t.rtcInstance=RS(e),e.rtc.isRemote}))}))}))},NS=function(e){return e.rtcInstance?e.rtcInstance:OS(e)},BS=function(e){var t=e.rtcInstance;if(t)return t;throw new Error("Failed to get RTC instance not yet initialized.")},IS=function(e,t,n){BS(e).undoManager.beforeChange(t,n)},PS=function(e,t,n,r,i,o,a){return BS(e).undoManager.add(t,n,r,i,o,a)},$S=function(e,t,n,r){return BS(e).undoManager.undo(t,n,r)},jS=function(e,t,n){return BS(e).undoManager.redo(t,n)},zS=function(e,t,n){BS(e).undoManager.clear(t,n)},qS=function(e,t){BS(e).undoManager.reset(t)},HS=function(e,t,n){return BS(e).undoManager.hasUndo(t,n)},US=function(e,t,n){return BS(e).undoManager.hasRedo(t,n)},WS=function(e,t,n,r){return BS(e).undoManager.transact(t,n,r)},VS=function(e,t,n){BS(e).undoManager.ignore(t,n)},GS=function(e,t,n,r,i){BS(e).undoManager.extra(t,n,r,i)},KS=function(e,t,n,r,i){return BS(e).formatter.match(t,n,r,i)},YS=function(e,t,n){return BS(e).formatter.matchAll(t,n)},XS=function(e,t,n,r,i){return BS(e).formatter.matchNode(t,n,r,i)},QS=function(e,t){return BS(e).formatter.canApply(t)},JS=function(e,t){return BS(e).formatter.closest(t)},ZS=function(e,t,n,r){BS(e).formatter.apply(t,n,r)},eE=function(e,t,n,r,i){BS(e).formatter.remove(t,n,r,i)},tE=function(e,t,n,r){BS(e).formatter.toggle(t,n,r)},nE=function(e,t,n,r,i,o){return BS(e).formatter.formatChanged(t,n,r,i,o)},rE=function(e,t,n){return NS(e).editor.getContent(t,n)},iE=function(e,t,n){return NS(e).editor.setContent(t,n)},oE=function(e,t,n){return NS(e).editor.insertContent(t,n)},aE=function(e,t,n){return BS(e).selection.getContent(t,n)},sE=function(e,t){return BS(e).editor.addVisual(t)},cE=function(e,t){void 0===t&&(t={});var n=t.format?t.format:"html";return aE(e,n,t)},lE=function(e){return 0===e.dom.length?(Sr(e),U.none()):U.some(e)},uE=function(e,t){return e.filter((function(e){return Pg.isBookmarkNode(e.dom)})).bind(t?er:Zn)},dE=function(e,t,n,r){var i=e.dom,o=t.dom,a=r?i.length:o.length;r?(gw(i,o,!1,!r),n.setStart(o,a)):(gw(o,i,!1,!r),n.setEnd(o,a))},fE=function(e,t){Xn(e).each((function(n){var r=e.dom;t&&ew(n,Ld(r,0))?hw(r,0):!t&&nw(n,Ld(r,r.length))&&mw(r,r.length)}))},pE=function(e,t,n,r){e.bind((function(e){var i=r?mw:hw;return i(e.dom,r?e.dom.length:0),t.filter(qn).map((function(t){return dE(e,t,n,r)}))})).orThunk((function(){var e=uE(t,r).or(t).filter(qn);return e.map((function(e){return fE(e,r)}))}))},hE=function(e,t){var n=U.from(t.firstChild).map(yn.fromDom),r=U.from(t.lastChild).map(yn.fromDom);e.deleteContents(),e.insertNode(t);var i=n.bind(Zn).filter(qn).bind(lE),o=r.bind(er).filter(qn).bind(lE);pE(i,n,e,!0),pE(o,r,e,!1),e.collapse(!1)},mE=function(e,t){return Ue(Ue({format:"html"},e),{set:!0,selection:!0,content:t})},gE=function(e,t){if("raw"!==t.format){var n=e.selection.getRng(),r=e.dom.getParent(n.commonAncestorContainer,e.dom.isBlock),i=r?{context:r.nodeName.toLowerCase()}:{},o=e.parser.parse(t.content,Ue(Ue({isRootContent:!0,forced_root_block:!1},i),t));return Z_({validate:e.validate},e.schema).serialize(o)}return t.content},vE=function(e,t,n){void 0===n&&(n={});var r=mE(n,t),i=r;if(!r.no_events){var o=e.fire("BeforeSetContent",r);if(o.isDefaultPrevented())return void e.fire("SetContent",o);i=o}i.content=gE(e,i);var a=e.selection.getRng();hE(a,a.createContextualFragment(i.content)),e.selection.setRng(a),nb(e,a),i.no_events||e.fire("SetContent",i)},bE=function(e,t,n){if(e&&Le(e,t)){var r=ne(e[t],(function(e){return e!==n}));0===r.length?delete e[t]:e[t]=r}};function _E(e,t){var n,r,i=function(t,n){return ae(n,(function(n){return e.is(n,t)}))},o=function(t){return e.getParents(t,null,e.getRoot())};return{selectorChangedWithUnbind:function(e,a){return n||(n={},r={},t.on("NodeChange",(function(e){var t=e.element,a=o(t),s={};hn.each(n,(function(e,t){i(t,a).each((function(n){r[t]||(Z(e,(function(e){e(!0,{node:n,selector:t,parents:a})})),r[t]=e),s[t]=e}))})),hn.each(r,(function(e,n){s[n]||(delete r[n],hn.each(e,(function(e){e(!1,{node:t,selector:n,parents:a})})))}))}))),n[e]||(n[e]=[]),n[e].push(a),i(e,o(t.selection.getStart())).each((function(){r[e]=n[e]})),{unbind:function(){bE(n,e,a),bE(r,e,a)}}}}}var yE=function(e){return!!e.select},wE=function(e){return!(!e||!e.ownerDocument)&&Bn(yn.fromDom(e.ownerDocument),yn.fromDom(e))},xE=function(e){return!!e&&(!!yE(e)||wE(e.startContainer)&&wE(e.endContainer))},kE=function(e,t,n,r){var i,o,a=_E(e,r).selectorChangedWithUnbind,s=function(t,n){var i=e.createRng();C(t)&&C(n)?(i.setStart(t,n),i.setEnd(t,n),_(i),g(!1)):(Cg(e,i,r.getBody(),!0),_(i))},c=function(e){return cE(r,e)},l=function(e,t){return vE(r,e,t)},u=function(e){return b_(r.getBody(),b(),e)},d=function(e){return __(r.getBody(),b(),e)},f=function(e,t){return M.getBookmark(e,t)},p=function(e){return M.moveToBookmark(e)},h=function(t,n){return k_(e,t,n).each(_),t},m=function(){var e=b(),t=v();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},g=function(e){var t=b();t.collapse(!!e),_(t)},v=function(){return t.getSelection?t.getSelection():t.document.selection},b=function(){var n,a,s,c=function(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(r){return-1}},l=t.document;if(void 0!==r.bookmark&&!1===f_(r)){var u=$b(r);if(u.isSome())return u.map((function(e){return C_(r,[e])[0]})).getOr(l.createRange())}try{(n=v())&&!qr(n.anchorNode)&&(a=n.rangeCount>0?n.getRangeAt(0):n.createRange?n.createRange():l.createRange(),a=C_(r,[a])[0])}catch(d){}return a||(a=l.createRange?l.createRange():l.body.createTextRange()),a.setStart&&9===a.startContainer.nodeType&&a.collapsed&&(s=e.getRoot(),a.setStart(s,0),a.setEnd(s,0)),i&&o&&(0===c(a.START_TO_START,a,i)&&0===c(a.END_TO_END,a,i)?a=o:(i=null,o=null)),a},_=function(e,t){var n;if(xE(e)){var a=yE(e)?e:null;if(a){o=null;try{a.select()}catch(l){}}else{var s=v(),c=r.fire("SetSelectionRange",{range:e,forward:t});if(e=c.range,s){o=e;try{s.removeAllRanges(),s.addRange(e)}catch(l){}!1===t&&s.extend&&(s.collapse(e.endContainer,e.endOffset),s.extend(e.startContainer,e.startOffset)),i=s.rangeCount>0?s.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!s.setBaseAndExtent||en.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(n=e.startContainer.childNodes[e.startOffset],n&&"IMG"===n.tagName&&(s.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),s.anchorNode===e.startContainer&&s.focusNode===e.endContainer||s.setBaseAndExtent(n,0,n,1))),r.fire("AfterSetSelectionRange",{range:e,forward:t})}}},y=function(t){return l(e.getOuterHTML(t)),t},w=function(){return w_(r.getBody(),b())},x=function(t,n){return x_(e,b(),t,n)},k=function(){var t=v(),n=null===t||void 0===t?void 0:t.anchorNode,r=null===t||void 0===t?void 0:t.focusNode;if(!t||!n||!r||qr(n)||qr(r))return!0;var i=e.createRng();i.setStart(n,t.anchorOffset),i.collapse(!0);var o=e.createRng();return o.setStart(r,t.focusOffset),o.collapse(!0),i.compareBoundaryPoints(i.START_TO_START,o)<=0},A=function(){var t=b(),n=v();if(!pg(n)&&Ag(r)){var i=wv(e,t);return i.each((function(e){_(e,k())})),i.getOr(t)}return t},S=function(e,t){return a(e,t),L},E=function(){var t,n=e.getRoot();while(n&&"BODY"!==n.nodeName){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},T=function(e,t){C(e)?tb(r,e,t):nb(r,b(),t)},O=function(e,t){return _(cv(e,t,r.getDoc()))},R=function(){var e=b();return e.collapsed?Ld.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},D=function(){t=i=o=null,F.destroy()},L={bookmarkManager:null,controlSelection:null,dom:e,win:t,serializer:n,editor:r,collapse:g,setCursorLocation:s,getContent:c,setContent:l,getBookmark:f,moveToBookmark:p,select:h,isCollapsed:m,isForward:k,setNode:y,getNode:w,getSel:v,setRng:_,getRng:b,getStart:u,getEnd:d,getSelectedBlocks:x,normalize:A,selectorChanged:S,selectorChangedWithUnbind:a,getScrollContainer:E,scrollIntoView:T,placeCaretAt:O,getBoundingClientRect:R,destroy:D},M=Pg(L),F=rv(L,r);return L.bookmarkManager=M,L.controlSelection=F,L},CE=function(e,t){Z(t,(function(t){e.attr(t,null)}))},AE=function(e,t,n){e.addNodeFilter("font",(function(e){Z(e,(function(e){var r=t.parse(e.attr("style")),i=e.attr("color"),o=e.attr("face"),a=e.attr("size");i&&(r.color=i),o&&(r["font-family"]=o),a&&(r["font-size"]=n[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",t.serialize(r)),CE(e,["color","face","size"])}))}))},SE=function(e,t){e.addNodeFilter("strike",(function(e){Z(e,(function(e){var n=t.parse(e.attr("style"));n["text-decoration"]="line-through",e.name="span",e.attr("style",t.serialize(n))}))}))},EE=function(e,t){var n=Hs();t.convert_fonts_to_spans&&AE(e,n,hn.explode(t.font_size_legacy_values)),SE(e,n)},TE=function(e,t){t.inline_styles&&EE(e,t)},OE=function(e){return new Oo((function(t,n){var r=function(){n("Cannot convert "+e+" to Blob. Resource might not exist or is inaccessible.")};try{var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(){200===i.status?t(i.response):r()},i.onerror=r,i.send()}catch(o){r()}}))},RE=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},DE=function(e,t){var n;try{n=atob(t)}catch(Rz){return U.none()}for(var r=new Uint8Array(n.length),i=0;i<r.length;i++)r[i]=n.charCodeAt(i);return U.some(new Blob([r],{type:e}))},LE=function(e){return new Oo((function(t){var n=RE(e),r=n.type,i=n.data;DE(r,i).fold((function(){return t(new Blob([]))}),t)}))},ME=function(e){return 0===e.indexOf("blob:")?OE(e):0===e.indexOf("data:")?LE(e):null},FE=function(e){return new Oo((function(t){var n=new FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}))},NE=0,BE=function(e){return(e||"blobid")+NE++},IE=function(e,t,n,r){var i,o;if(0===t.src.indexOf("blob:"))return o=e.getByUri(t.src),void(o?n({image:t,blobInfo:o}):ME(t.src).then((function(r){FE(r).then((function(a){i=RE(a).data,o=e.create(BE(),r,i),e.add(o),n({image:t,blobInfo:o})}))}),(function(e){r(e)})));var a=RE(t.src),s=a.data,c=a.type;i=s,o=e.getByData(i,c),o?n({image:t,blobInfo:o}):ME(t.src).then((function(r){o=e.create(BE(),r,i),e.add(o),n({image:t,blobInfo:o})}),(function(e){r(e)}))},PE=function(e){return e?be(e.getElementsByTagName("img")):[]},$E=function(e,t){var n={},r=function(r,i){i||(i=$);var o=ne(PE(r),(function(t){var n=t.src;return!!en.fileApi&&(!t.hasAttribute("data-mce-bogus")&&(!t.hasAttribute("data-mce-placeholder")&&(!(!n||n===en.transparentSrc)&&(0===n.indexOf("blob:")?!e.isUploaded(n)&&i(t):0===n.indexOf("data:")&&i(t)))))})),a=J(o,(function(e){if(void 0!==n[e.src])return new Oo((function(t){n[e.src].then((function(n){if("string"===typeof n)return n;t({image:e,blobInfo:n.blobInfo})}))}));var r=new Oo((function(n,r){IE(t,e,n,r)})).then((function(e){return delete n[e.image.src],e})).catch((function(t){return delete n[e.src],t}));return n[e.src]=r,r}));return Oo.all(a)};return{findAll:r}},jE=function(e){var t,n=/data:[^;<"'\s]+;base64,([a-z0-9\+\/=\s]+)/gi,r=[],i={},o=$u("img"),a=0,s=0;while(t=n.exec(e)){var c=t[0],l=o+"_"+s++;i[l]=c,a<t.index&&r.push(e.substr(a,t.index-a)),r.push(l),a=t.index+c.length}var u=new RegExp(o+"_[0-9]+","g");return 0===a?{prefix:o,uris:i,html:e,re:u}:(a<e.length&&r.push(e.substr(a)),{prefix:o,uris:i,html:r.join(""),re:u})},zE=function(e,t){return e.replace(t.re,(function(e){return De(t.uris,e).getOr(e)}))},qE=function(e){var t=/data:([^;]+);base64,([a-z0-9\+\/=\s]+)/i.exec(e);return t?U.some({type:t[1],data:decodeURIComponent(t[2])}):U.none()},HE=function(e,t,n,r){var i=e.padd_empty_with_br||t.insert;i&&n[r.name]?r.empty().append(new O_("br",1)).shortEnded=!0:r.empty().append(new O_("#text",3)).value=la},UE=function(e){return WE(e,"#text")&&e.firstChild.value===la},WE=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},VE=function(e,t){var n=e.getElementRule(t.name);return n&&n.paddEmpty},GE=function(e,t,n,r){return r.isEmpty(t,n,(function(t){return VE(e,t)}))},KE=function(e,t){return e&&(Le(t,e.name)||"br"===e.name)},YE=function(e){return C(e.attr("data-mce-bogus"))},XE=function(e){return e.attr("src")===en.transparentSrc||C(e.attr("data-mce-placeholder"))},QE=function(e,t){if(t.images_dataimg_filter){var n=new Image;return n.src=e.attr("src"),xe(e.attributes.map,(function(e,t){n.setAttribute(t,e)})),t.images_dataimg_filter(n)}return!0},JE=function(e,t){var n=t.blob_cache,r=function(e){var r=e.attr("src");XE(e)||YE(e)||qE(r).filter((function(){return QE(e,t)})).bind((function(e){var t=e.type,r=e.data;return U.from(n.getByData(r,t)).orThunk((function(){return DE(t,r).map((function(e){var t=n.create(BE(),e,r);return n.add(t),t}))}))})).each((function(t){e.attr("src",t.blobUri())}))};n&&e.addAttributeFilter("src",(function(e){return Z(e,r)}))},ZE=function(e,t){var n=e.schema;t.remove_trailing_brs&&e.addNodeFilter("br",(function(e,r,i){var o,a,s,c,l,u,d,f,p=e.length,h=hn.extend({},n.getBlockElements()),m=n.getNonEmptyElements(),g=n.getWhiteSpaceElements();for(h.body=1,o=0;o<p;o++)if(a=e[o],s=a.parent,h[a.parent.name]&&a===s.lastChild){l=a.prev;while(l){if(u=l.name,"span"!==u||"bookmark"!==l.attr("data-mce-type")){"br"===u&&(a=null);break}l=l.prev}a&&(a.remove(),GE(n,m,g,s)&&(d=n.getElementRule(s.name),d&&(d.removeEmpty?s.remove():d.paddEmpty&&HE(t,i,h,s))))}else{c=a;while(s&&s.firstChild===c&&s.lastChild===c){if(c=s,h[s.name])break;s=s.parent}c===s&&!0!==t.padd_empty_with_br&&(f=new O_("#text",3),f.value=la,a.replace(f))}})),e.addAttributeFilter("href",(function(e){var n=e.length,r=function(e){var t=e.split(" ").filter((function(e){return e.length>0}));return t.concat(["noopener"]).sort().join(" ")},i=function(e){var t=e?hn.trim(e):"";return/\b(noopener)\b/g.test(t)?t:r(t)};if(!t.allow_unsafe_link_target)while(n--){var o=e[n];"a"===o.name&&"_blank"===o.attr("target")&&o.attr("rel",i(o.attr("rel")))}})),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",(function(e){var t,n,r,i,o=e.length;while(o--)if(i=e[o],"a"===i.name&&i.firstChild&&!i.attr("href")){r=i.parent,t=i.lastChild;do{n=t.prev,r.insert(t,i),t=n}while(t)}})),t.fix_list_elements&&e.addNodeFilter("ul,ol",(function(e){var t,n,r=e.length;while(r--)if(t=e[r],n=t.parent,"ul"===n.name||"ol"===n.name)if(t.prev&&"li"===t.prev.name)t.prev.append(t);else{var i=new O_("li",1);i.attr("style","list-style-type: none"),t.wrap(i)}})),t.validate&&n.getValidClasses()&&e.addAttributeFilter("class",(function(e){var t=n.getValidClasses(),r=e.length;while(r--){for(var i=e[r],o=i.attr("class").split(" "),a="",s=0;s<o.length;s++){var c=o[s],l=!1,u=t["*"];u&&u[c]&&(l=!0),u=t[i.name],!l&&u&&u[c]&&(l=!0),l&&(a&&(a+=" "),a+=c)}a.length||(a=null),i.attr("class",a)}})),JE(e,t)},eT=hn.each,tT=hn.trim,nT="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),rT={ftp:21,http:80,https:443,mailto:25},iT=["img","video"],oT=function(e,t){return C(e)?!e:!C(t)||!X(iT,t)},aT=function(e,t,n){return!e.allow_html_data_urls&&(/^data:image\//i.test(t)?oT(e.allow_svg_data_urls,n)&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t))},sT=function(){function e(t,n){t=tT(t),this.settings=n||{};var r=this.settings.base_uri,i=this;if(/^([\w\-]+):([^\/]{2})/i.test(t)||/^\s*#/.test(t))i.source=t;else{var o=0===t.indexOf("//");if(0!==t.indexOf("/")||o||(t=(r&&r.protocol||"http")+"://mce_host"+t),!/^[\w\-]*:?\/\//.test(t)){var a=this.settings.base_uri?this.settings.base_uri.path:new e(document.location.href).directory;if(this.settings.base_uri&&""==this.settings.base_uri.protocol)t="//mce_host"+i.toAbsPath(a,t);else{var s=/([^#?]*)([#?]?.*)/.exec(t);t=(r&&r.protocol||"http")+"://mce_host"+i.toAbsPath(a,s[1])+s[2]}}t=t.replace(/@@/g,"(mce_at)");var c=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t);eT(nT,(function(e,t){var n=c[t];n&&(n=n.replace(/\(mce_at\)/g,"@@")),i[e]=n})),r&&(i.protocol||(i.protocol=r.protocol),i.userInfo||(i.userInfo=r.userInfo),i.port||"mce_host"!==i.host||(i.port=r.port),i.host&&"mce_host"!==i.host||(i.host=r.host),i.source=""),o&&(i.protocol="")}}return e.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},e.isDomSafe=function(e,t,n){if(void 0===n&&(n={}),n.allow_script_urls)return!0;var r=Ts.decode(e).replace(/[\s\u0000-\u001F]+/g,"");try{r=decodeURIComponent(r)}catch(i){r=unescape(r)}return!/((java|vb)script|mhtml):/i.test(r)&&!aT(n,r,t)},e.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},e.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},e.prototype.toRelative=function(t){var n;if("./"===t)return t;var r=new e(t,{base_uri:this});if("mce_host"!==r.host&&this.host!==r.host&&r.host||this.port!==r.port||this.protocol!==r.protocol&&""!==r.protocol)return r.getURI();var i=this.getURI(),o=r.getURI();return i===o||"/"===i.charAt(i.length-1)&&i.substr(0,i.length-1)===o?i:(n=this.toRelPath(this.path,r.path),r.query&&(n+="?"+r.query),r.anchor&&(n+="#"+r.anchor),n)},e.prototype.toAbsolute=function(t,n){var r=new e(t,{base_uri:this});return r.getURI(n&&this.isSameOrigin(r))},e.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=rT[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},e.prototype.toRelPath=function(e,t){var n,r,i=0,o="",a=e.substring(0,e.lastIndexOf("/")).split("/"),s=t.split("/");if(a.length>=s.length)for(n=0,r=a.length;n<r;n++)if(n>=s.length||a[n]!==s[n]){i=n+1;break}if(a.length<s.length)for(n=0,r=s.length;n<r;n++)if(n>=a.length||a[n]!==s[n]){i=n+1;break}if(1===i)return t;for(n=0,r=a.length-(i-1);n<r;n++)o+="../";for(n=i-1,r=s.length;n<r;n++)o+=n!==i-1?"/"+s[n]:s[n];return o},e.prototype.toAbsPath=function(e,t){var n,r,i=0,o=[],a=/\/$/.test(t)?"/":"",s=e.split("/"),c=t.split("/");for(eT(s,(function(e){e&&o.push(e)})),s=o,n=c.length-1,o=[];n>=0;n--)0!==c[n].length&&"."!==c[n]&&(".."!==c[n]?i>0?i--:o.push(c[n]):i++);return n=s.length-i,r=n<=0?de(o).join("/"):s.slice(0,n).join("/")+"/"+de(o).join("/"),0!==r.indexOf("/")&&(r="/"+r),a&&r.lastIndexOf("/")!==r.length-1&&(r+=a),r},e.prototype.getURI=function(e){var t;return void 0===e&&(e=!1),this.source&&!e||(t="",e||(this.protocol?t+=this.protocol+"://":t+="//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source},e}(),cT=hn.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),lT=function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")},uT=Ge((function(){return document.implementation.createHTMLDocument("parser")})),dT=function(e,t,n){var r=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,i=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,o=e.getShortEndedElements(),a=1,s=n;while(0!==a){r.lastIndex=s;while(1){var c=r.exec(t);if(null===c)return s;if("!"===c[1]){s=lt(c[2],"--")?pT(t,!1,c.index+"!--".length):pT(t,!0,c.index+1);break}i.lastIndex=r.lastIndex;var l=i.exec(t);if(!y(l)&&l.index===r.lastIndex){"/"===c[1]?a-=1:Le(o,c[2])||(a+=1),s=r.lastIndex+l[0].length;break}}}return s},fT=function(e,t){return/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(e.substr(t))},pT=function(e,t,n){void 0===n&&(n=0);var r=e.toLowerCase();if(-1!==r.indexOf("[if ",n)&&fT(r,n)){var i=r.indexOf("[endif]",n);return r.indexOf(">",i)}if(t){var o=r.indexOf(">",n);return-1!==o?o:r.length}var a=/--!?>/g;a.lastIndex=n;var s=a.exec(e);return s?s.index+s[0].length:r.length},hT=function(e,t){var n=e.exec(t);if(n){var r=n[1],i=n[2];return"string"===typeof r&&"data-mce-bogus"===r.toLowerCase()?i:null}return null},mT=function(e,t){void 0===t&&(t=zs()),e=e||{};var n=uT(),r=n.createElement("form");!1!==e.fix_self_closing&&(e.fix_self_closing=!0);var i=e.comment?e.comment:E,o=e.cdata?e.cdata:E,a=e.text?e.text:E,s=e.start?e.start:E,c=e.end?e.end:E,l=e.pi?e.pi:E,u=e.doctype?e.doctype:E,d=function(d,f){void 0===f&&(f="html");var p,h,m,g,v,b,_,y,w,x,k,C,A,S,E,T,O,R,D,L,M=d.html,F=0,N=[],B=0,I=Ts.decode,P=hn.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),$="html"===f?0:1,j=function(e){var t,n;t=N.length;while(t--)if(N[t].name===e)break;if(t>=0){for(n=N.length-1;n>=t;n--)e=N[n],e.valid&&c(e.name);N.length=t}},z=function(e,t){return a(zE(e,d),t)},q=function(t){""!==t&&(">"===t.charAt(0)&&(t=" "+t),e.allow_conditional_comments||"[if"!==t.substr(0,3).toLowerCase()||(t=" "+t),i(zE(t,d)))},H=function(e){return zE(e,d)},U=function(e,t){var n=e||"",r=!lt(n,"--"),i=pT(M,r,t);return e=M.substr(t,i-t),q(r?n+e:e),i+1},W=function(t,i,o,a,s){if(i=i.toLowerCase(),o=H(i in X?i:I(o||a||s||"")),Q&&!y&&!1===lT(i)){var c=S[i];if(!c&&E){var l=E.length;while(l--)if(c=E[l],c.pattern.test(i))break;-1===l&&(c=null)}if(!c)return;if(c.validValues&&!(o in c.validValues))return}var u="name"===i||"id"===i;u&&t in cT&&(o in n||o in r)||P[i]&&!sT.isDomSafe(o,t,e)||y&&(i in P||0===i.indexOf("on"))||(g.map[i]=o,g.push({name:i,value:o}))},V=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_:.]*)(\\s(?:[^'\">]+(?:\"[^\"]*\"|'[^']*'))*[^\"'>]*(?:\"[^\">]*|'[^'>]*)?|\\s*|\\/)>))","g"),G=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,K=t.getShortEndedElements(),Y=e.self_closing_elements||t.getSelfClosingElements(),X=t.getBoolAttrs(),Q=e.validate,J=e.remove_internals,Z=e.fix_self_closing,ee=t.getSpecialElements(),te=M+">";while(p=V.exec(te)){var ne=p[0];if(F<p.index&&z(I(M.substr(F,p.index-F))),h=p[7])h=h.toLowerCase(),":"===h.charAt(0)&&(h=h.substr(1)),j(h);else if(h=p[8]){if(p.index+ne.length>M.length){z(I(M.substr(p.index))),F=p.index+ne.length;continue}h=h.toLowerCase(),":"===h.charAt(0)&&(h=h.substr(1)),w=h in K,Z&&Y[h]&&N.length>0&&N[N.length-1].name===h&&j(h);var re=hT(G,p[9]);if(null!==re){if("all"===re){F=dT(t,M,V.lastIndex),V.lastIndex=F;continue}k=!1}if(!Q||(x=t.getElementRule(h))){if(k=!0,Q&&(S=x.attributes,E=x.attributePatterns),(A=p[9])?(y=-1!==A.indexOf("data-mce-type"),y&&J&&(k=!1),g=[],g.map={},A.replace(G,(function(e,t,n,r,i){return W(h,t,n,r,i),""}))):(g=[],g.map={}),Q&&!y){if(T=x.attributesRequired,O=x.attributesDefault,R=x.attributesForced,D=x.removeEmptyAttrs,D&&!g.length&&(k=!1),R){v=R.length;while(v--)C=R[v],_=C.name,L=C.value,"{$uid}"===L&&(L="mce_"+B++),g.map[_]=L,g.push({name:_,value:L})}if(O){v=O.length;while(v--)C=O[v],_=C.name,_ in g.map||(L=C.value,"{$uid}"===L&&(L="mce_"+B++),g.map[_]=L,g.push({name:_,value:L}))}if(T){v=T.length;while(v--)if(T[v]in g.map)break;-1===v&&(k=!1)}if(C=g.map["data-mce-bogus"]){if("all"===C){F=dT(t,M,V.lastIndex),V.lastIndex=F;continue}k=!1}}k&&s(h,g,w)}else k=!1;if(m=ee[h]){m.lastIndex=F=p.index+ne.length,(p=m.exec(M))?(k&&(b=M.substr(F,p.index-F)),F=p.index+p[0].length):(b=M.substr(F),F=M.length),k&&(b.length>0&&z(b,!0),c(h)),V.lastIndex=F;continue}w||(A&&A.indexOf("/")===A.length-1?k&&c(h):N.push({name:h,valid:k}))}else if(h=p[1])q(h);else if(h=p[2]){var ie=1===$||e.preserve_cdata||N.length>0&&t.isValidChild(N[N.length-1].name,"#cdata");if(!ie){F=U("",p.index+2),V.lastIndex=F;continue}o(h)}else if(h=p[3])u(h);else{if((h=p[4])||"<!"===ne){F=U(h,p.index+ne.length),V.lastIndex=F;continue}if(h=p[5]){if(1!==$){F=U("?",p.index+2),V.lastIndex=F;continue}l(h,p[6])}}F=p.index+ne.length}for(F<M.length&&z(I(M.substr(F))),v=N.length-1;v>=0;v--)h=N[v],h.valid&&c(h.name)},f=function(e,t){void 0===t&&(t="html"),d(jE(e),t)};return{parse:f}};mT.findEndTag=dT;var gT=hn.makeMap,vT=hn.each,bT=hn.explode,_T=hn.extend,yT=function(e,t){void 0===t&&(t=zs());var n={},r=[],i={},o={};e=e||{},e.validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var a=function(e){for(var n=gT("tr,td,th,tbody,thead,tfoot,table"),r=t.getNonEmptyElements(),i=t.getWhiteSpaceElements(),o=t.getTextBlockElements(),a=t.getSpecialElements(),c=function(e,n){if(void 0===n&&(n=e.parent),a[e.name])e.empty().remove();else{for(var r=e.children(),i=0,o=r;i<o.length;i++){var s=o[i];t.isValidChild(n.name,s.name)||c(s,n)}e.unwrap()}},l=0;l<e.length;l++){var u=e[l],d=void 0,f=void 0,p=void 0;if(u.parent&&!u.fixed)if(o[u.name]&&"li"===u.parent.name){var h=u.next;while(h){if(!o[h.name])break;h.name="li",h.fixed=!0,u.parent.insert(h,u.parent),h=h.next}u.unwrap()}else{var m=[u];for(d=u.parent;d&&!t.isValidChild(d.name,u.name)&&!n[d.name];d=d.parent)m.push(d);if(d&&m.length>1)if(t.isValidChild(d.name,u.name)){m.reverse(),f=s(m[0].clone());for(var g=f,v=0;v<m.length-1;v++){t.isValidChild(g.name,m[v].name)?(p=s(m[v].clone()),g.append(p)):p=g;for(var b=m[v].firstChild;b&&b!==m[v+1];){var _=b.next;p.append(b),b=_}g=p}GE(t,r,i,f)?d.insert(u,m[0],!0):(d.insert(f,m[0],!0),d.insert(u,f)),d=m[0],(GE(t,r,i,d)||WE(d,"br"))&&d.empty().remove()}else c(u);else if(u.parent){if("li"===u.name){h=u.prev;if(h&&("ul"===h.name||"ol"===h.name)){h.append(u);continue}if(h=u.next,h&&("ul"===h.name||"ol"===h.name)){h.insert(u,h.firstChild,!0);continue}u.wrap(s(new O_("ul",1)));continue}t.isValidChild(u.parent.name,"div")&&t.isValidChild("div",u.name)?u.wrap(s(new O_("div",1))):c(u)}}}},s=function(e){var t=e.name;if(t in n){var a=i[t];a?a.push(e):i[t]=[e]}var s=r.length;while(s--){var c=r[s].name;if(c in e.attributes.map){a=o[c];a?a.push(e):o[c]=[e]}}return e},c=function(e,t){vT(bT(e),(function(e){var r=n[e];r||(n[e]=r=[]),r.push(t)}))},l=function(){var e=[];for(var t in n)Le(n,t)&&e.push({name:t,callbacks:n[t]});return e},u=function(e,t){vT(bT(e),(function(e){var n;for(n=0;n<r.length;n++)if(r[n].name===e)return void r[n].callbacks.push(t);r.push({name:e,callbacks:[t]})}))},d=function(){return[].concat(r)},f=function(s,c){var l,u,d,f,p,h,m,g,v=[],b=function(e){return!1===e?"":!0===e?"p":e};c=c||{},i={},o={};var _=_T(gT("script,style,head,html,body,title,meta,param"),t.getBlockElements()),y=Ps(t),w=t.getNonEmptyElements(),x=t.children,k=e.validate,A="forced_root_block"in c?c.forced_root_block:e.forced_root_block,S=b(A),E=t.getWhiteSpaceElements(),T=/^[ \t\r\n]+/,O=/[ \t\r\n]+$/,R=/[ \t\r\n]+/g,D=/^[ \t\r\n]+$/,L=Le(E,c.context)||Le(E,e.root_name),M=function(){var n=$.firstChild,r=null,i=function(e){e&&(n=e.firstChild,n&&3===n.type&&(n.value=n.value.replace(T,"")),n=e.lastChild,n&&3===n.type&&(n.value=n.value.replace(O,"")))};if(t.isValidChild($.name,S.toLowerCase())){while(n){var o=n.next;3===n.type||1===n.type&&"p"!==n.name&&!_[n.name]&&!n.attr("data-mce-type")?(r||(r=F(S,1),r.attr(e.forced_root_block_attrs),$.insert(r,n)),r.append(n)):(i(r),r=null),n=o}i(r)}},F=function(e,t){var r,o=new O_(e,t);return e in n&&(r=i[e],r?r.push(o):i[e]=[o]),o},N=function(e){for(var n=t.getBlockElements(),r=e.prev;r&&3===r.type;){var i=r.value.replace(O,"");if(i.length>0)return void(r.value=i);var o=r.next;if(o){if(3===o.type&&o.value.length){r=r.prev;continue}if(!n[o.name]&&"script"!==o.name&&"style"!==o.name){r=r.prev;continue}}var a=r.prev;r.remove(),r=a}},B=function(e){var t={};for(var n in e)"li"!==n&&"p"!==n&&(t[n]=e[n]);return t},I=function(e){var n=e;while(C(n)){if(n.name in y)return GE(t,w,E,n);n=n.parent}return!1},P=mT({validate:k,document:e.document,allow_html_data_urls:e.allow_html_data_urls,allow_svg_data_urls:e.allow_svg_data_urls,allow_script_urls:e.allow_script_urls,allow_conditional_comments:e.allow_conditional_comments,preserve_cdata:e.preserve_cdata,self_closing_elements:B(t.getSelfClosingElements()),cdata:function(e){g.append(F("#cdata",4)).value=e},text:function(e,t){var n;L||(e=e.replace(R," "),KE(g.lastChild,_)&&(e=e.replace(T,""))),0!==e.length&&(n=F("#text",3),n.raw=!!t,g.append(n).value=e)},comment:function(e){g.append(F("#comment",8)).value=e},pi:function(e,t){g.append(F(e,7)).value=t,N(g)},doctype:function(e){var t=g.append(F("#doctype",10));t.value=e,N(g)},start:function(e,n,i){var a=k?t.getElementRule(e):{};if(a){var s=F(a.outputName||e,1);s.attributes=n,s.shortEnded=i,g.append(s);var c=x[g.name];c&&x[s.name]&&!c[s.name]&&v.push(s);var l=r.length;while(l--){var u=r[l].name;u in n.map&&(h=o[u],h?h.push(s):o[u]=[s])}_[e]&&N(s),i||(g=s),!L&&E[e]&&(L=!0)}},end:function(n){var r,i,o,a=k?t.getElementRule(n):{};if(a){if(_[n]&&!L){if(r=g.firstChild,r&&3===r.type)if(i=r.value.replace(T,""),i.length>0)r.value=i,r=r.next;else{o=r.next,r.remove(),r=o;while(r&&3===r.type)i=r.value,o=r.next,(0===i.length||D.test(i))&&(r.remove(),r=o),r=o}if(r=g.lastChild,r&&3===r.type)if(i=r.value.replace(O,""),i.length>0)r.value=i,r=r.prev;else{o=r.prev,r.remove(),r=o;while(r&&3===r.type)i=r.value,o=r.prev,(0===i.length||D.test(i))&&(r.remove(),r=o),r=o}}L&&E[n]&&(L=!1);var s=GE(t,w,E,g),l=g.parent;a.paddInEmptyBlock&&s&&I(g)?HE(e,c,_,g):a.removeEmpty&&s?_[g.name]?g.empty().remove():g.unwrap():a.paddEmpty&&(UE(g)||s)&&HE(e,c,_,g),g=l}}},t),$=g=new O_(c.context||e.root_name,11);if(P.parse(s,c.format),k&&v.length&&(c.context?c.invalid=!0:a(v)),S&&("body"===$.name||c.isRootContent)&&M(),!c.invalid){for(m in i)if(Le(i,m)){h=n[m],l=i[m],f=l.length;while(f--)l[f].parent||l.splice(f,1);for(u=0,d=h.length;u<d;u++)h[u](l,m,c)}for(u=0,d=r.length;u<d;u++)if(h=r[u],h.name in o){l=o[h.name],f=l.length;while(f--)l[f].parent||l.splice(f,1);for(f=0,p=h.callbacks.length;f<p;f++)h.callbacks[f](l,h.name,c)}}return $},p={schema:t,addAttributeFilter:u,getAttributeFilters:d,addNodeFilter:c,getNodeFilters:l,filterNode:s,parse:f};return ZE(p,e),TE(p,e),p},wT=function(e,t,n){e.addAttributeFilter("data-mce-tabindex",(function(e,t){var n=e.length;while(n--){var r=e[n];r.attr("tabindex",r.attr("data-mce-tabindex")),r.attr(t,null)}})),e.addAttributeFilter("src,href,style",(function(e,r){var i="data-mce-"+r,o=t.url_converter,a=t.url_converter_scope,s=e.length;while(s--){var c=e[s],l=c.attr(i);void 0!==l?(c.attr(r,l.length>0?l:null),c.attr(i,null)):(l=c.attr(r),"style"===r?l=n.serializeStyle(n.parseStyle(l),c.name):o&&(l=o.call(a,l,r,c.name)),c.attr(r,l.length>0?l:null))}})),e.addAttributeFilter("class",(function(e){var t=e.length;while(t--){var n=e[t],r=n.attr("class");r&&(r=n.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),n.attr("class",r.length>0?r:null))}})),e.addAttributeFilter("data-mce-type",(function(e,t,n){var r=e.length;while(r--){var i=e[r];if("bookmark"===i.attr("data-mce-type")&&!n.cleanup){var o=U.from(i.firstChild).exists((function(e){return!pa(e.value)}));o?i.unwrap():i.remove()}}})),e.addNodeFilter("noscript",(function(e){var t=e.length;while(t--){var n=e[t].firstChild;n&&(n.value=Ts.decode(n.value))}})),e.addNodeFilter("script,style",(function(e,n){var r=function(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")},i=e.length;while(i--){var o=e[i],a=o.firstChild?o.firstChild.value:"";if("script"===n){var s=o.attr("type");s&&o.attr("type","mce-no/type"===s?null:s.replace(/^mce\-/,"")),"xhtml"===t.element_format&&a.length>0&&(o.firstChild.value="// <![CDATA[\n"+r(a)+"\n// ]]>")}else"xhtml"===t.element_format&&a.length>0&&(o.firstChild.value="\x3c!--\n"+r(a)+"\n--\x3e")}})),e.addNodeFilter("#comment",(function(e){var r=e.length;while(r--){var i=e[r];t.preserve_cdata&&0===i.value.indexOf("[CDATA[")?(i.name="#cdata",i.type=4,i.value=n.decode(i.value.replace(/^\[CDATA\[|\]\]$/g,""))):0===i.value.indexOf("mce:protected ")&&(i.name="#text",i.type=3,i.raw=!0,i.value=unescape(i.value).substr(14))}})),e.addNodeFilter("xml:namespace,input",(function(e,t){var n=e.length;while(n--){var r=e[n];7===r.type?r.remove():1===r.type&&("input"!==t||r.attr("type")||r.attr("type","text"))}})),e.addAttributeFilter("data-mce-type",(function(t){Z(t,(function(t){"format-caret"===t.attr("data-mce-type")&&(t.isEmpty(e.schema.getNonEmptyElements())?t.remove():t.unwrap())}))})),e.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize,data-mce-placeholder",(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)}))},xT=function(e){var t=function(e){return e&&"br"===e.name},n=e.lastChild;if(t(n)){var r=n.prev;t(r)&&(n.remove(),r.remove())}},kT=function(e,t,n){var r,i=e.dom,o=t.cloneNode(!0),a=document.implementation;if(a.createHTMLDocument){var s=a.createHTMLDocument("");hn.each("BODY"===o.nodeName?o.childNodes:[o],(function(e){s.body.appendChild(s.importNode(e,!0))})),o="BODY"!==o.nodeName?s.body.firstChild:s.body,r=i.doc,i.doc=s}return zg(e,Ue(Ue({},n),{node:o})),r&&(i.doc=r),o},CT=function(e,t){return e&&e.hasEventListeners("PreProcess")&&!t.no_events},AT=function(e,t,n){return CT(e,n)?kT(e,t,n):t},ST=function(e,t,n){-1===hn.inArray(t,n)&&(e.addAttributeFilter(n,(function(e,t){var n=e.length;while(n--)e[n].attr(t,null)})),t.push(n))},ET=function(e,t,n){if(!t.no_events&&e){var r=qg(e,Ue(Ue({},t),{content:n}));return r.content}return n},TT=function(e,t,n){var r=ha(n.getInner?t.innerHTML:e.getOuterHTML(t));return n.selection||aa(yn.fromDom(t))?r:hn.trim(r)},OT=function(e,t,n){var r=n.selection?Ue({forced_root_block:!1},n):n,i=e.parse(t,r);return xT(i),i},RT=function(e,t,n){var r=Z_(e,t);return r.serialize(n)},DT=function(e,t,n,r,i){var o=RT(t,n,r);return ET(e,i,o)},LT=function(e,t){var n=["data-mce-selected"],r=t&&t.dom?t.dom:zl.DOM,i=t&&t.schema?t.schema:zs(e);e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs=!("remove_trailing_brs"in e)||e.remove_trailing_brs;var o=yT(e,i);wT(o,e,r);var a=function(n,a){void 0===a&&(a={});var s=Ue({format:"html"},a),c=AT(t,n,s),l=TT(r,c,s),u=OT(o,l,s);return"tree"===s.format?u:DT(t,e,i,u,s)};return{schema:i,addNodeFilter:o.addNodeFilter,addAttributeFilter:o.addAttributeFilter,serialize:a,addRules:i.addValidElements,setRules:i.setValidElements,addTempAttr:M(ST,o,n),getTempAttrs:R(n),getNodeFilters:o.getNodeFilters,getAttributeFilters:o.getAttributeFilters}},MT=function(e,t){var n=LT(e,t);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs,getNodeFilters:n.getNodeFilters,getAttributeFilters:n.getAttributeFilters}},FT="html",NT=function(e,t){void 0===t&&(t={});var n=t.format?t.format:FT;return rE(e,t,n)},BT=function(e,t,n){return void 0===n&&(n={}),iE(e,t,n)},IT=zl.DOM,PT=function(e){IT.setStyle(e.id,"display",e.orgDisplay)},$T=function(e){return U.from(e).each((function(e){return e.destroy()}))},jT=function(e){e.contentAreaContainer=e.formElement=e.container=e.editorContainer=null,e.bodyElement=e.contentDocument=e.contentWindow=null,e.iframeElement=e.targetElm=null,e.selection&&(e.selection=e.selection.win=e.selection.dom=e.selection.dom.doc=null)},zT=function(e){var t=e.formElement;t&&(t._mceOldSubmit&&(t.submit=t._mceOldSubmit,t._mceOldSubmit=null),IT.unbind(t,"submit reset",e.formEventDelegate))},qT=function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),i=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&i&&IT.remove(i.nextSibling),Hg(e),e.editorManager.remove(e),!e.inline&&r&&PT(e),Ug(e),IT.remove(e.getContainer()),$T(t),$T(n),e.destroy()}},HT=function(e,t){var n=e.selection,r=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),$T(n),$T(r)),zT(e),jT(e),e.destroyed=!0):e.remove())},UT=function(e,t){var n=b(e)&&b(t);return n?VT(e,t):t},WT=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)throw new Error("Can't merge zero objects");for(var r={},i=0;i<t.length;i++){var o=t[i];for(var a in o)Le(o,a)&&(r[a]=e(r[a],o[a]))}return r}},VT=WT(UT),GT="autoresize_on_init,content_editable_state,convert_fonts_to_spans,inline_styles,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),KT="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),YT="imagetools,toc".split(","),XT=function(e){var t=ne(GT,(function(t){return Le(e,t)})),n=e.forced_root_block;return!1!==n&&""!==n||t.push("forced_root_block (false only)"),he(t)},QT=function(e){var t=hn.makeMap(e.plugins," "),n=function(e){return Le(t,e)},r=Ve(Ve([],ne(KT,n),!0),le(YT,(function(e){return n(e)?[e+" (moving to premium)"]:[]})),!0);return he(r)},JT=function(e,t){var n=XT(e),r=QT(t),i=r.length>0,o=n.length>0,a="mobile"===t.theme;if(i||o||a){var s="\n- ";i&&r.join(s),o&&n.join(s)}},ZT=function(e,t){return{sections:R(e),settings:R(t)}},eO=Wt().deviceType,tO=eO.isTouch(),nO=eO.isPhone(),rO=eO.isTablet(),iO=["lists","autolink","autosave"],oO={table_grid:!1,object_resizing:!1,resize:!1},aO=function(e){var t=_(e)?e.join(" "):e,n=J(v(t)?t.split(" "):[],dt);return ne(n,(function(e){return e.length>0}))},sO=function(e){return ne(e,M(X,iO))},cO=function(e,t){var n=Ee(t,(function(t,n){return X(e,n)}));return ZT(n.t,n.f)},lO=function(e,t,n){void 0===n&&(n={});var r=e.sections(),i=De(r,t).getOr({});return hn.extend({},n,i)},uO=function(e,t){return Le(e.sections(),t)},dO=function(e,t,n){var r=e.sections();return uO(e,t)&&r[t].theme===n},fO=function(e,t){return uO(e,t)?e.sections()[t]:{}},pO=function(e,t){return De(e,"toolbar_mode").orThunk((function(){return De(e,"toolbar_drawer").map((function(e){return!1===e?"wrap":e}))})).getOr(t)},hO=function(e,t,n,r,i){var o={id:t,theme:"silver",toolbar_mode:pO(e,"floating"),plugins:"",document_base_url:n,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:i.convertURL,url_converter_scope:i};return Ue(Ue({},o),r?oO:{})},mO=function(e,t){var n={resize:!1,toolbar_mode:pO(e,"scrolling"),toolbar_sticky:!1},r={menubar:!1};return Ue(Ue(Ue({},oO),n),t?r:{})},gO=function(e,t){var n=t.external_plugins?t.external_plugins:{};return e&&e.external_plugins?hn.extend({},e.external_plugins,n):n},vO=function(e,t){return[].concat(aO(e)).concat(aO(t))},bO=function(e,t,n,r){return e&&dO(t,"mobile","mobile")?sO(r):e&&uO(t,"mobile")?r:n},_O=function(e,t,n,r){var i=aO(n.forced_plugins),o=aO(r.plugins),a=fO(t,"mobile"),s=a.plugins?aO(a.plugins):o,c=bO(e,t,o,s),l=vO(i,c);if(en.browser.isIE()&&X(l,"rtc"))throw new Error("RTC plugin is not supported on IE 11.");return hn.extend(r,{plugins:l.join(" ")})},yO=function(e,t){return e&&uO(t,"mobile")},wO=function(e,t,n,r,i){var o=e?{mobile:mO(i.mobile||{},t)}:{},a=cO(["mobile"],VT(o,i)),s=hn.extend(n,r,a.settings(),yO(e,a)?lO(a,"mobile"):{},{validate:!0,external_plugins:gO(r,a.settings())});return _O(e,a,r,s)},xO=function(e,t,n,r,i){var o=hO(i,t,n,tO,e),a=wO(nO||rO,nO,o,r,i);return!1!==a.deprecation_warnings&&JT(i,a),a},kO=function(e,t,n){return U.from(t.settings[n]).filter(e)},CO=function(e){var t={};return"string"===typeof e?Z(e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(","),(function(e){var n=e.split("=");n.length>1?t[hn.trim(n[0])]=hn.trim(n[1]):t[hn.trim(n[0])]=hn.trim(n[0])})):t=e,t},AO=function(e){return function(t){return _(t)&&ue(t,e)}},SO=function(e,t,n,r){var i=t in e.settings?e.settings[t]:n;return"hash"===r?CO(i):"string"===r?kO(v,e,t).getOr(n):"number"===r?kO(S,e,t).getOr(n):"boolean"===r?kO(w,e,t).getOr(n):"object"===r?kO(b,e,t).getOr(n):"array"===r?kO(_,e,t).getOr(n):"string[]"===r?kO(AO(v),e,t).getOr(n):"function"===r?kO(A,e,t).getOr(n):i},EO=function(){var e={},t=function(t,n){e[t]=n},n=function(t){return e[t]?e[t]:{icons:{}}},r=function(t){return Le(e,t)};return{add:t,get:n,has:r}},TO=EO(),OO=function(e,t){var n=t.dom;return n[e]},RO=function(e,t){return parseInt(Ai(t,e),10)},DO=M(OO,"clientWidth"),LO=M(OO,"clientHeight"),MO=M(RO,"margin-top"),FO=M(RO,"margin-left"),NO=function(e){return e.dom.getBoundingClientRect()},BO=function(e,t,n){var r=DO(e),i=LO(e);return t>=0&&n>=0&&t<=r&&n<=i},IO=function(e,t,n,r){var i=NO(t),o=e?i.left+t.dom.clientLeft+FO(t):0,a=e?i.top+t.dom.clientTop+MO(t):0,s=n-o,c=r-a;return{x:s,y:c}},PO=function(e,t,n){var r=yn.fromDom(e.getBody()),i=e.inline?r:Kn(r),o=IO(e.inline,i,t,n);return BO(i,o.x,o.y)},$O=function(e){return U.from(e).map(yn.fromDom)},jO=function(e){var t=e.inline?e.getBody():e.getContentAreaContainer();return $O(t).map(Tr).getOr(!1)},zO=function(){var e=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,reposition:e,getArgs:e}},qO=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():zO()},r=function(){return U.from(t[0])},i=function(e,t){return e.type===t.type&&e.text===t.text&&!e.progressBar&&!e.timeout&&!t.progressBar&&!t.timeout},o=function(){t.length>0&&n().reposition(t)},a=function(e){t.push(e)},s=function(e){se(t,(function(t){return t===e})).each((function(e){t.splice(e,1)}))},c=function(c,l){if(void 0===l&&(l=!0),!e.removed&&jO(e))return l&&e.fire("BeforeOpenNotification",{notification:c}),ae(t,(function(e){return i(n().getArgs(e),c)})).getOrThunk((function(){e.editorManager.setActive(e);var t=n().open(c,(function(){s(t),o(),r().fold((function(){return e.focus()}),(function(e){return ib(yn.fromDom(e.getEl()))}))}));return a(t),o(),e.fire("OpenNotification",{notification:Ue({},t)}),t}))},l=function(){r().each((function(e){n().close(e),s(e),o()}))},u=R(t),d=function(e){e.on("SkinLoaded",(function(){var t=rp(e);t&&c({text:t,type:"warning",timeout:0},!1),o()})),e.on("show ResizeEditor ResizeWindow NodeChange",(function(){Bo.requestAnimationFrame(o)})),e.on("remove",(function(){Z(t.slice(),(function(e){n().close(e)}))}))};return d(e),{open:c,close:l,getNotifications:u}},HO=uu.PluginManager,UO=uu.ThemeManager;function WO(){var e=function(){throw new Error("Theme did not provide a WindowManager implementation.")};return{open:e,openUrl:e,alert:e,confirm:e,close:e,getParams:e,setParams:e}}var VO=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():WO()},r=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t?t.apply(e,n):void 0}},i=function(t){e.fire("OpenWindow",{dialog:t})},o=function(t){e.fire("CloseWindow",{dialog:t})},a=function(e){t.push(e),i(e)},s=function(n){o(n),t=ne(t,(function(e){return e!==n})),0===t.length&&e.focus()},c=function(){return U.from(t[t.length-1])},l=function(t){e.editorManager.setActive(e),Ib(e);var n=t();return a(n),n},u=function(e,t){return l((function(){return n().open(e,t,s)}))},d=function(e){return l((function(){return n().openUrl(e,s)}))},f=function(e,t,i){var o=n();o.alert(e,r(i||o,t))},p=function(e,t,i){var o=n();o.confirm(e,r(i||o,t))},h=function(){c().each((function(e){n().close(e),s(e)}))};return e.on("remove",(function(){Z(t,(function(e){n().close(e)}))})),{open:u,openUrl:d,alert:f,confirm:p,close:h}},GO=function(e,t){e.notificationManager.open({type:"error",text:t})},KO=function(e,t){e._skinLoaded?GO(e,t):e.on("SkinLoaded",(function(){GO(e,t)}))},YO=function(e,t){KO(e,lu.translate(["Failed to upload image: {0}",t]))},XO=function(e,t,n){Jg(e,t,{message:n})},QO=function(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t},JO=function(e,t,n){XO(e,"PluginLoadError",QO("plugin",t,n))},ZO=function(e,t,n){XO(e,"IconsLoadError",QO("icons",t,n))},eR=function(e,t,n){XO(e,"LanguageLoadError",QO("language",t,n))},tR=function(e,t,n){var r=lu.translate(["Failed to initialize plugin: {0}",t]);Jg(e,"PluginLoadError",{message:r}),nR(r,n),KO(e,r)},nR=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=window.console;r&&(r.error?r.error.apply(r,Ve([e],t,!1)):r.log.apply(r,Ve([e],t,!1)))},rR=function(e){return/^[a-z0-9\-]+$/i.test(e)},iR=function(e){return aR(e,Yf(e))},oR=function(e){return aR(e,Xf(e))},aR=function(e,t){var n=e.editorManager.baseURL+"/skins/content",r=e.editorManager.suffix,i="content"+r+".css",o=!0===e.inline;return J(t,(function(t){return rR(t)&&!o?n+"/"+t+"/"+i:e.documentBaseURI.toAbsolute(t)}))},sR=function(e){e.contentCSS=e.contentCSS.concat(iR(e),oR(e))},cR=function(){var e=1,t=2,n={},r=function(e,t){return{status:e,resultUri:t}},i=function(e){return e in n},o=function(e){var t=n[e];return t?t.resultUri:null},a=function(t){return!!i(t)&&n[t].status===e},s=function(e){return!!i(e)&&n[e].status===t},c=function(t){n[t]=r(e,null)},l=function(e,i){n[e]=r(t,i)},u=function(e){delete n[e]},d=function(){n={}};return{hasBlobUri:i,getResultUri:o,isPending:a,isUploaded:s,markPending:c,markUploaded:l,removeFailed:u,destroy:d}},lR=0,uR=function(){var e=function(){return Math.round(4294967295*Math.random()).toString(36)},t=(new Date).getTime();return"s"+t.toString(36)+e()+e()+e()},dR=function(e){return e+lR+++uR()},fR=function(){var e=[],t=function(e){var t={"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};return t[e.toLowerCase()]||"dat"},n=function(e,t,n,i,o){if(v(e)){var a=e;return r({id:a,name:i,filename:o,blob:t,base64:n})}if(b(e))return r(e);throw new Error("Unknown input type")},r=function(e){if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");var n=e.id||dR("blobid"),r=e.name||n,i=e.blob;return{id:R(n),name:R(r),filename:R(e.filename||r+"."+t(i.type)),blob:R(i),base64:R(e.base64),blobUri:R(e.blobUri||URL.createObjectURL(i)),uri:R(e.uri)}},i=function(t){a(t.id())||e.push(t)},o=function(t){return ae(e,t).getOrUndefined()},a=function(e){return o((function(t){return t.id()===e}))},s=function(e){return o((function(t){return t.blobUri()===e}))},c=function(e,t){return o((function(n){return n.base64()===e&&n.blob().type===t}))},l=function(t){e=ne(e,(function(e){return e.blobUri()!==t||(URL.revokeObjectURL(e.blobUri()),!1)}))},u=function(){Z(e,(function(e){URL.revokeObjectURL(e.blobUri())})),e=[]};return{create:n,add:i,get:a,getByUri:s,getByData:c,findFirst:o,removeByUri:l,destroy:u}},pR=function(e,t){var n={},r=function(e,t){return e?e.replace(/\/$/,"")+"/"+t.replace(/^\//,""):t},i=function(e,n,i,o){var a=new XMLHttpRequest;a.open("POST",t.url),a.withCredentials=t.credentials,a.upload.onprogress=function(e){o(e.loaded/e.total*100)},a.onerror=function(){i("Image upload failed due to a XHR Transport error. Code: "+a.status)},a.onload=function(){if(a.status<200||a.status>=300)i("HTTP Error: "+a.status);else{var e=JSON.parse(a.responseText);e&&"string"===typeof e.location?n(r(t.basePath,e.location)):i("Invalid JSON: "+a.responseText)}};var s=new FormData;s.append("file",e.blob(),e.filename()),a.send(s)},o=function(){return new Oo((function(e){e([])}))},a=function(e,t){return{url:t,blobInfo:e,status:!0}},s=function(e,t,n){return{url:"",blobInfo:e,status:!1,error:{message:t,options:n}}},c=function(e,t){hn.each(n[e],(function(e){e(t)})),delete n[e]},l=function(t,n,r){return e.markPending(t.blobUri()),new Oo((function(i){var o,l;try{var u=function(){o&&(o.close(),l=E)},d=function(n){u(),e.markUploaded(t.blobUri(),n),c(t.blobUri(),a(t,n)),i(a(t,n))},f=function(n,r){var o=r||{};u(),e.removeFailed(t.blobUri()),c(t.blobUri(),s(t,n,o)),i(s(t,n,o))};l=function(e){e<0||e>100||U.from(o).orThunk((function(){return U.from(r).map(B)})).each((function(t){o=t,t.progressBar.value(e)}))},n(t,d,f,l)}catch(p){i(s(t,p.message,{}))}}))},u=function(e){return e===i},d=function(e){var t=e.blobUri();return new Oo((function(e){n[t]=n[t]||[],n[t].push(e)}))},f=function(n,r){return n=hn.grep(n,(function(t){return!e.isUploaded(t.blobUri())})),Oo.all(hn.map(n,(function(n){return e.isPending(n.blobUri())?d(n):l(n,t.handler,r)})))},p=function(e,n){return!t.url&&u(t.handler)?o():f(e,n)};return!1===A(t.handler)&&(t.handler=i),{upload:p}},hR=function(e){return function(){return e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})}},mR=function(e,t){return pR(t,{url:$f(e),basePath:jf(e),credentials:zf(e),handler:qf(e)})},gR=function(e){var t=cR(),n=mR(e,t);return{upload:function(t,r){return void 0===r&&(r=!0),n.upload(t,r?hR(e):void 0)}}},vR=function(e){var t=Xl(null);e.on("change AddUndo",(function(e){t.set(Ue({},e.level))}));var n=function(){var n=e.undoManager.data;ve(n).filter((function(e){return!fS(t.get(),e)})).each((function(t){e.setDirty(!0),e.fire("change",{level:t,lastLevel:me(n,n.length-2).getOrNull()})}))};return{fireIfChanged:n}},bR=function(e){var t,n,r=fR(),i=cR(),o=[],a=vR(e),s=function(t){return function(n){return e.selection?t(n):[]}},c=function(e){return e+(-1===e.indexOf("?")?"?":"&")+(new Date).getTime()},l=function(e,t,n){var r=0;do{r=e.indexOf(t,r),-1!==r&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1)}while(-1!==r);return e},u=function(e,t,n){var r='src="'+n+'"'+(n===en.transparentSrc?' data-mce-placeholder="1"':"");return e=l(e,'src="'+t+'"',r),e=l(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"'),e},d=function(t,n){Z(e.undoManager.data,(function(e){"fragmented"===e.type?e.fragments=J(e.fragments,(function(e){return u(e,t,n)})):e.content=u(e.content,t,n)}))},f=function(t,n){var r=e.convertURL(n,"src");d(t.src,n),e.$(t).attr({src:Nf(e)?c(n):n,"data-mce-src":r})},p=function(n){return t||(t=mR(e,i)),v().then(s((function(i){var o=J(i,(function(e){return e.blobInfo}));return t.upload(o,hR(e)).then(s((function(t){var o=[],s=J(t,(function(t,n){var a=i[n].blobInfo,s=i[n].image;return t.status&&Bf(e)?(r.removeByUri(s.src),LS(e)||f(s,t.url)):t.error&&(t.error.options.remove&&(d(s.getAttribute("src"),en.transparentSrc),o.push(s)),YO(e,t.error.message)),{element:s,status:t.status,uploadUri:t.url,blobInfo:a}}));return s.length>0&&a.fireIfChanged(),o.length>0&&(LS(e)||e.undoManager.transact((function(){Z(o,(function(t){e.dom.remove(t),r.removeByUri(t.src)}))}))),n&&n(s),s})))})))},h=function(t){if(Ff(e))return p(t)},m=function(t){if(!1===ue(o,(function(e){return e(t)})))return!1;if(0===t.getAttribute("src").indexOf("data:")){var n=Mf(e);return n(t)}return!0},g=function(e){o.push(e)},v=function(){return n||(n=$E(i,r)),n.findAll(e.getBody(),m).then(s((function(t){return t=ne(t,(function(t){return"string"!==typeof t||(KO(e,t),!1)})),LS(e)||Z(t,(function(e){d(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")})),t})))},b=function(){r.destroy(),i.destroy(),n=t=null},_=function(t){return t.replace(/src="(blob:[^"]+)"/g,(function(t,n){var o=i.getResultUri(n);if(o)return'src="'+o+'"';var a=r.getByUri(n);if(a||(a=ie(e.editorManager.get(),(function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)}),null)),a){var s=a.blob();return'src="data:'+s.type+";base64,"+a.base64()+'"'}return t}))};return e.on("SetContent",(function(){Ff(e)?h():v()})),e.on("RawSaveContent",(function(e){e.content=_(e.content)})),e.on("GetContent",(function(e){e.source_view||"raw"===e.format||"tree"===e.format||(e.content=_(e.content))})),e.on("PostRender",(function(){e.parser.addNodeFilter("img",(function(e){Z(e,(function(e){var t=e.attr("src");if(!r.getByUri(t)){var n=i.getResultUri(t);n&&e.attr("src",n)}}))}))})),{blobCache:r,addFilter:g,uploadImages:p,uploadImagesAuto:h,scanForImages:v,destroy:b}},_R=function(e){var t={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all",preserve_attributes:["class","style"]},{inline:"s",remove:"all",preserve_attributes:["class","style"]}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",defaultBlock:"p",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(e,t,n){return Hr(e)&&e.hasAttribute("href")},onformat:function(t,n,r){hn.each(r,(function(n,r){e.setAttrib(t,r,n)}))}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":function(e){var t;return null!==(t=null===e||void 0===e?void 0:e.customValue)&&void 0!==t?t:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return hn.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),(function(e){t[e]={block:e,remove:"all"}})),t},yR=function(e){var t={},n=function(e){return C(e)?t[e]:t},r=function(e){return Le(t,e)},i=function(e,n){e&&(v(e)?(_(n)||(n=[n]),Z(n,(function(e){x(e.deep)&&(e.deep=!Um(e)),x(e.split)&&(e.split=!Um(e)||Wm(e)),x(e.remove)&&Um(e)&&!Wm(e)&&(e.remove="none"),Um(e)&&Wm(e)&&(e.mixed=!0,e.block_expand=!0),v(e.classes)&&(e.classes=e.classes.split(/\s+/))})),t[e]=n):xe(e,(function(e,t){i(t,e)})))},o=function(e){return e&&t[e]&&delete t[e],t};return i(_R(e.dom)),i(sp(e)),{get:n,has:r,register:i,unregister:o}},wR=hn.each,xR=zl.DOM,kR=function(e,t){var n,r,i,o=t&&t.schema||zs({}),a=function(e,t){t.classes.length&&xR.addClass(e,t.classes.join(" ")),xR.setAttribs(e,t.attrs)},s=function(e){r="string"===typeof e?{name:e,classes:[],attrs:{}}:e;var t=xR.create(r.name);return a(t,r),t},c=function(e,t){var n="string"!==typeof e?e.nodeName.toLowerCase():e,r=o.getElementRule(n),i=r&&r.parentsRequired;return!(!i||!i.length)&&(t&&-1!==hn.inArray(i,t)?t:i[0])},l=function(e,t,n){var r,i,o=t.length>0&&t[0],a=o&&o.name,u=c(e,a);if(u)a===u?(i=t[0],t=t.slice(1)):i=u;else if(o)i=t[0],t=t.slice(1);else if(!n)return e;return i&&(r=s(i),r.appendChild(e)),n&&(r||(r=xR.create("div"),r.appendChild(e)),hn.each(n,(function(t){var n=s(t);r.insertBefore(n,e)}))),l(r,t,i&&i.siblings)};return e&&e.length?(r=e[0],n=s(r),i=xR.create("div"),i.appendChild(l(n,e.slice(1),r.siblings)),i):""},CR=function(e){var t,n={classes:[],attrs:{}};return e=n.selector=hn.trim(e),"*"!==e&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(function(e,t,r,i,o){switch(t){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==hn.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r);break}if("["===i){var a=o.match(/([\w\-]+)(?:\=\"([^\"]+))?/);a&&(n.attrs[a[1]]=a[2])}return""}))),n.name=t||"div",n},AR=function(e){return e&&"string"===typeof e?(e=e.split(/\s*,\s*/)[0],e=e.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),hn.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),(function(e){var t=hn.map(e.split(/(?:~\+|~|\+)/),CR),n=t.pop();return t.length&&(n.siblings=t),n})).reverse()):[]},SR=function(e,t){var n,r,i,o="",a=cp(e);if(""===a)return"";var s=function(e){return e.replace(/%(\w+)/g,"")};if("string"===typeof t){if(t=e.formatter.get(t),!t)return;t=t[0]}if("preview"in t){var c=De(t,"preview");if(li(c,!1))return"";a=c.getOr(a)}n=t.block||t.inline||"span";var l=AR(t.selector);l.length?(l[0].name||(l[0].name=n),n=t.selector,r=kR(l,e)):r=kR([n],e);var u=xR.select(n,r)[0]||r.firstChild;return wR(t.styles,(function(e,t){var n=s(e);n&&xR.setStyle(u,t,n)})),wR(t.attributes,(function(e,t){var n=s(e);n&&xR.setAttrib(u,t,n)})),wR(t.classes,(function(e){var t=s(e);xR.hasClass(u,t)||xR.addClass(u,t)})),e.fire("PreviewFormats"),xR.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),i=xR.getStyle(e.getBody(),"fontSize",!0),i=/px$/.test(i)?parseInt(i,10):0,wR(a.split(" "),(function(t){var n=xR.getStyle(u,t,!0);if(("background-color"!==t||!/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)||(n=xR.getStyle(e.getBody(),t,!0),"#ffffff"!==xR.toHex(n).toLowerCase()))&&("color"!==t||"#000000"!==xR.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===i)return;var r=parseFloat(n)/(/%$/.test(n)?100:1);n=r*i+"px"}"border"===t&&n&&(o+="padding:0 2px;"),o+=t+":"+n+";"}})),e.fire("AfterPreviewFormats"),xR.remove(r),o},ER=function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])},TR=function(e){var t=yR(e),n=Xl(null);return ER(e),iC(e),{get:t.get,has:t.has,register:t.register,unregister:t.unregister,apply:function(t,n,r){ZS(e,t,n,r)},remove:function(t,n,r,i){eE(e,t,n,r,i)},toggle:function(t,n,r){tE(e,t,n,r)},match:function(t,n,r,i){return KS(e,t,n,r,i)},closest:function(t){return JS(e,t)},matchAll:function(t,n){return YS(e,t,n)},matchNode:function(t,n,r,i){return XS(e,t,n,r,i)},canApply:function(t){return QS(e,t)},formatChanged:function(t,r,i,o){return nE(e,n,t,r,i,o)},getCssText:M(SR,e)}},OR=function(e){switch(e.toLowerCase()){case"undo":case"redo":case"mcerepaint":case"mcefocus":return!0;default:return!1}},RR=function(e,t,n){var r=Xl(!1),i=function(e){hS(t,!1,n),t.add({},e)};e.on("init",(function(){t.add()})),e.on("BeforeExecCommand",(function(e){var r=e.command;OR(r)||(mS(t,n),t.beforeChange())})),e.on("ExecCommand",(function(e){var t=e.command;OR(t)||i(e)})),e.on("ObjectResizeStart cut",(function(){t.beforeChange()})),e.on("SaveContent ObjectResized blur",i),e.on("dragend",i),e.on("keyup",(function(n){var o=n.keyCode;n.isDefaultPrevented()||((o>=33&&o<=36||o>=37&&o<=40||45===o||n.ctrlKey)&&(i(),e.nodeChanged()),46!==o&&8!==o||e.nodeChanged(),r.get()&&t.typing&&!1===fS(aS(e),t.data[0])&&(!1===e.isDirty()&&(e.setDirty(!0),e.fire("change",{level:t.data[0],lastLevel:null})),e.fire("TypingUndo"),r.set(!1),e.nodeChanged()))})),e.on("keydown",(function(e){var o=e.keyCode;if(!e.isDefaultPrevented())if(o>=33&&o<=36||o>=37&&o<=40||45===o)t.typing&&i(e);else{var a=e.ctrlKey&&!e.altKey||e.metaKey;!(o<16||o>20)||224===o||91===o||t.typing||a||(t.beforeChange(),hS(t,!0,n),t.add({},e),r.set(!0))}})),e.on("mousedown",(function(e){t.typing&&i(e)}));var o=function(e){return"insertReplacementText"===e.inputType},a=function(e){return"insertText"===e.inputType&&null===e.data},s=function(e){return"insertFromPaste"===e.inputType||"insertFromDrop"===e.inputType};e.on("input",(function(e){e.inputType&&(o(e)||a(e)||s(e))&&i(e)})),e.on("AddUndo Undo Redo ClearUndos",(function(t){t.isDefaultPrevented()||e.nodeChanged()}))},DR=function(e){e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo")},LR=function(e){var t=fu(),n=Xl(0),r=Xl(0),i={data:[],typing:!1,beforeChange:function(){IS(e,n,t)},add:function(o,a){return PS(e,i,r,n,t,o,a)},undo:function(){return $S(e,i,n,r)},redo:function(){return jS(e,r,i.data)},clear:function(){zS(e,i,r)},reset:function(){qS(e,i)},hasUndo:function(){return HS(e,i,r)},hasRedo:function(){return US(e,i,r)},transact:function(t){return WS(e,i,n,t)},ignore:function(t){VS(e,n,t)},extra:function(t,n){GS(e,i,r,t,n)}};return LS(e)||RR(e,i,n),DR(e),i},MR=[9,27,tv.HOME,tv.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,tv.DOWN,tv.UP,tv.LEFT,tv.RIGHT].concat(en.browser.isFirefox()?[224]:[]),FR="data-mce-placeholder",NR=function(e){return"keydown"===e.type||"keyup"===e.type},BR=function(e){var t=e.keyCode;return t===tv.BACKSPACE||t===tv.DELETE},IR=function(e){if(NR(e)){var t=e.keyCode;return!BR(e)&&(tv.metaKeyPressed(e)||e.altKey||t>=112&&t<=123||X(MR,t))}return!1},PR=function(e){return NR(e)&&!(BR(e)||"keyup"===e.type&&229===e.keyCode)},$R=function(e,t,n){if(ns(yn.fromDom(t),!1)){var r=""===n,i=t.firstElementChild;return!i||!e.getStyle(t.firstElementChild,"padding-left")&&!e.getStyle(t.firstElementChild,"padding-right")&&(r?!e.isBlock(i):n===i.nodeName.toLowerCase())}return!1},jR=function(e){var t=e.dom,n=Af(e),r=tp(e),i=function(o,a){if(!IR(o)){var s=e.getBody(),c=!PR(o)&&$R(t,s,n),l=""!==t.getAttrib(s,FR);(l!==c||a)&&(t.setAttrib(s,FR,c?r:null),t.setAttrib(s,"aria-placeholder",c?r:null),Qg(e,c),e.on(c?"keydown":"keyup",i),e.off(c?"keyup":"keydown",i))}};r&&e.on("init",(function(t){i(t,!0),e.on("change SetContent ExecCommand",i),e.on("paste",(function(t){return Bo.setEditorTimeout(e,(function(){return i(t)}))}))}))},zR=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,qR=function(e){return zR.test(e)},HR=function(e,t){return On(yn.fromDom(t),Jf(e))},UR=function(e){return"rtl"===zl.DOM.getStyle(e,"direction",!0)||qR(e.textContent)},WR=function(e,t,n){return ne(zl.DOM.getParents(n.container(),"*",t),e)},VR=function(e,t,n){var r=WR(e,t,n);return U.from(r[r.length-1])},GR=function(e,t,n){var r=uh(t,e),i=uh(n,e);return r&&r===i},KR=function(e){return xa(e)||ka(e)},YR=function(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?ba(n)?Zr(n.nextSibling)?Ld(n.nextSibling,0):Ld.after(n):xa(t)?Ld(n,r+1):t:ba(n)?Zr(n.previousSibling)?Ld(n.previousSibling,n.previousSibling.data.length):Ld.before(n):ka(t)?Ld(n,r-1):t},XR=M(YR,!0),QR=M(YR,!1),JR=function(e){return function(t){return Mn(e,yn.fromDom(t.dom.parentNode))}},ZR=function(e){return ta(e)||ra(e)},eD=function(e,t){return Bn(e,t)?ko(t,ZR,JR(e)):U.none()},tD=function(e){var t=e.getBody(),n=t.firstChild&&e.dom.isBlock(t.firstChild)?t.firstChild:t;e.selection.setCursorLocation(n,0)},nD=function(e){e.dom.isEmpty(e.getBody())&&(e.setContent(""),tD(e))},rD=function(e,t,n){return di(Qh(n),Jh(n),(function(r,i){var o=YR(!0,r),a=YR(!1,i),s=YR(!1,t);return e?Yh(n,s).exists((function(e){return e.isEqual(a)&&t.isEqual(o)})):Xh(n,s).exists((function(e){return e.isEqual(o)&&t.isEqual(a)}))})).getOr(!0)},iD=function(e,t){return{block:e,position:t}},oD=function(e,t){return{from:e,to:t}},aD=function(e,t){var n=yn.fromDom(e),r=yn.fromDom(t.container());return eD(n,r).map((function(e){return iD(e,t)}))},sD=function(e){return!1===Mn(e.from.block,e.to.block)},cD=function(e){return Xn(e.from.block).bind((function(t){return Xn(e.to.block).filter((function(e){return Mn(t,e)}))})).isSome()},lD=function(e){return!1===ai(e.from.block.dom)&&!1===ai(e.to.block.dom)},uD=function(e,t,n){return ri(n.position.getNode())&&!1===ns(n.block)?Kh(!1,n.block.dom).bind((function(r){return r.isEqual(n.position)?Wh(t,e,r).bind((function(t){return aD(e,t)})):U.some(n)})).getOr(n):n},dD=function(e,t,n){var r=aD(e,Ld.fromRangeStart(n)),i=r.bind((function(n){return Wh(t,e,n.position).bind((function(n){return aD(e,n).map((function(n){return uD(e,t,n)}))}))}));return di(r,i,oD).filter((function(e){return sD(e)&&cD(e)&&lD(e)}))},fD=function(e,t,n){return n.collapsed?dD(e,t,n):U.none()},pD=function(e){var t=rr(e);return se(t,Qo).fold(R(t),(function(e){return t.slice(0,e)}))},hD=function(e){var t=pD(e);return Z(t,Sr),t},mD=function(e,t){var n=Oy(t,e);return ae(n.reverse(),(function(e){return ns(e)})).each(Sr)},gD=function(e){return 0===ne(tr(e),(function(e){return!ns(e)})).length},vD=function(e,t,n,r){if(ns(n))return Cy(n),Qh(n.dom);gD(r)&&ns(t)&&br(r,yn.fromTag("br"));var i=Xh(n.dom,Ld.before(r.dom));return Z(hD(t),(function(e){br(r,e)})),mD(e,t),i},bD=function(e,t,n){if(ns(n))return Sr(n),ns(t)&&Cy(t),Qh(t.dom);var r=Jh(n.dom);return Z(hD(t),(function(e){wr(n,e)})),mD(e,t),r},_D=function(e,t){var n=Oy(t,e);return U.from(n[n.length-1])},yD=function(e,t){return Bn(t,e)?_D(t,e):U.none()},wD=function(e,t){Kh(e,t.dom).map((function(e){return e.getNode()})).map(yn.fromDom).filter(ea).each(Sr)},xD=function(e,t,n){return wD(!0,t),wD(!1,n),yD(t,n).fold(M(bD,e,t,n),M(vD,e,t,n))},kD=function(e,t,n,r){return t?xD(e,r,n):xD(e,n,r)},CD=function(e,t){var n=yn.fromDom(e.getBody()),r=fD(n.dom,t,e.selection.getRng()).bind((function(e){return kD(n,t,e.from.block,e.to.block)}));return r.each((function(t){e.selection.setRng(t.toRange())})),r.isSome()},AD=function(e,t){var n=t.getRng();return di(eD(e,yn.fromDom(n.startContainer)),eD(e,yn.fromDom(n.endContainer)),(function(r,i){return!1===Mn(r,i)&&(n.deleteContents(),kD(e,!0,r,i).each((function(e){t.setRng(e.toRange())})),!0)})).getOr(!1)},SD=function(e,t){var n=yn.fromDom(t),r=M(Mn,e);return xo(n,oa,r).isSome()},ED=function(e,t){return SD(e,t.startContainer)||SD(e,t.endContainer)},TD=function(e,t){var n=Xh(e.dom,Ld.fromRangeStart(t)).isNone(),r=Yh(e.dom,Ld.fromRangeEnd(t)).isNone();return!ED(e,t)&&n&&r},OD=function(e){return e.setContent(""),e.selection.setCursorLocation(),!0},RD=function(e){var t=yn.fromDom(e.getBody()),n=e.selection.getRng();return TD(t,n)?OD(e):AD(t,e.selection)},DD=function(e,t){return!e.selection.isCollapsed()&&RD(e)},LD=oi,MD=ai,FD=function(e,t,n,r,i){return U.from(t._selectionOverrides.showCaret(e,n,r,i))},ND=function(e){var t=e.ownerDocument.createRange();return t.selectNode(e),t},BD=function(e,t){var n=e.fire("BeforeObjectSelected",{target:t});return n.isDefaultPrevented()?U.none():U.some(ND(t))},ID=function(e,t,n){var r=bh(1,e.getBody(),t),i=Ld.fromRangeStart(r),o=i.getNode();if(Qp(o))return FD(1,e,o,!i.isAtEnd(),!1);var a=i.getNode(!0);if(Qp(a))return FD(1,e,a,!1,!1);var s=e.dom.getParent(i.getNode(),(function(e){return MD(e)||LD(e)}));return Qp(s)?FD(1,e,s,!1,n):U.none()},PD=function(e,t,n){return t.collapsed?ID(e,t,n).getOr(t):t},$D=function(e){return yy(e)||gy(e)},jD=function(e){return wy(e)||vy(e)},zD=function(e,t){Zr(t)&&0===t.data.length&&e.remove(t)},qD=function(e,t,n,r,i,o){return FD(r,e,o.getNode(!i),i,!0).each((function(n){if(t.collapsed){var r=t.cloneRange();i?r.setEnd(n.startContainer,n.startOffset):r.setStart(n.endContainer,n.endOffset),r.deleteContents()}else t.deleteContents();e.selection.setRng(n)})),zD(e.dom,n),!0},HD=function(e,t){var n=e.selection.getRng();if(!Zr(n.commonAncestorContainer))return!1;var r=t?Md.Forwards:Md.Backwards,i=Ih(e.getBody()),o=M(kh,t?i.next:i.prev),a=t?$D:jD,s=yh(r,e.getBody(),n),c=YR(t,o(s));if(!c||!Ch(s,c))return!1;if(a(c))return qD(e,n,s.getNode(),r,t,c);var l=o(c);return!!(l&&a(l)&&Ch(c,l))&&qD(e,n,s.getNode(),r,t,l)},UD=function(e,t){return HD(e,t)},WD=function(e){return oa(yn.fromDom(e))||ra(yn.fromDom(e))},VD=Zi.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),GD=function(e,t){var n=t.getNode(!1===e),r=e?"after":"before";return Hr(n)&&n.getAttribute("data-mce-caret")===r},KD=function(e,t,n,r){var i=function(t){return Zo(yn.fromDom(t))&&!dh(n,r,e)};return _h(!t,n).fold((function(){return _h(t,r).fold(P,i)}),i)},YD=function(e,t,n,r){var i=r.getNode(!1===t);return eD(yn.fromDom(e),yn.fromDom(n.getNode())).map((function(e){return ns(e)?VD.remove(e.dom):VD.moveToElement(i)})).orThunk((function(){return U.some(VD.moveToElement(i))}))},XD=function(e,t,n){return Wh(t,e,n).bind((function(r){return WD(r.getNode())||KD(e,t,n,r)?U.none():t&&ai(r.getNode())||!1===t&&ai(r.getNode(!0))?YD(e,t,n,r):t&&wy(n)||!1===t&&yy(n)?U.some(VD.moveToPosition(r)):U.none()}))},QD=function(e,t){return e&&ai(t.nextSibling)?U.some(VD.moveToElement(t.nextSibling)):!1===e&&ai(t.previousSibling)?U.some(VD.moveToElement(t.previousSibling)):U.none()},JD=function(e,t,n){return n.fold((function(e){return U.some(VD.remove(e))}),(function(e){return U.some(VD.moveToElement(e))}),(function(n){return dh(t,n,e)?U.none():U.some(VD.moveToPosition(n))}))},ZD=function(e,t,n){return GD(t,n)?QD(t,n.getNode(!1===t)).fold((function(){return XD(e,t,n)}),U.some):XD(e,t,n).bind((function(t){return JD(e,n,t)}))},eL=function(e,t,n){var r=bh(t?1:-1,e,n),i=Ld.fromRangeStart(r),o=yn.fromDom(e);return!1===t&&wy(i)?U.some(VD.remove(i.getNode(!0))):t&&yy(i)?U.some(VD.remove(i.getNode())):!1===t&&yy(i)&&zy(o,i)?qy(o,i).map((function(e){return VD.remove(e.getNode())})):t&&wy(i)&&jy(o,i)?Hy(o,i).map((function(e){return VD.remove(e.getNode())})):ZD(e,t,i)},tL=function(e,t){return function(n){return e._selectionOverrides.hideFakeCaret(),Nw(e,t,yn.fromDom(n)),!0}},nL=function(e,t){return function(n){var r=t?Ld.before(n):Ld.after(n);return e.selection.setRng(r.toRange()),!0}},rL=function(e){return function(t){return e.selection.setRng(t.toRange()),!0}},iL=function(e,t){return U.from($g(e.getBody(),t))},oL=function(e,t){var n=e.selection.getNode();return iL(e,n).filter(ai).fold((function(){return eL(e.getBody(),t,e.selection.getRng()).exists((function(n){return n.fold(tL(e,t),nL(e,t),rL(e))}))}),$)},aL=function(e){Z(Eu(e,".mce-offscreen-selection"),Sr)},sL=function(e,t){var n=e.selection.getNode();if(ai(n)&&!si(n)){var r=iL(e,n.parentNode).filter(ai);return r.fold((function(){return aL(yn.fromDom(e.getBody())),Nw(e,t,yn.fromDom(e.selection.getNode())),nD(e),!0}),$)}return!1},cL=function(e){var t=e.dom,n=e.selection,r=$g(e.getBody(),n.getNode());if(oi(r)&&t.isBlock(r)&&t.isEmpty(r)){var i=t.create("br",{"data-mce-bogus":"1"});t.setHTML(r,""),r.appendChild(i),n.setRng(Ld.before(i).toRange())}return!0},lL=function(e,t){return e.selection.isCollapsed()?oL(e,t):sL(e,t)},uL=function(e,t){var n=Ld.fromRangeStart(e.selection.getRng());return Wh(t,e.getBody(),n).filter((function(e){return t?hy(e):my(e)})).bind((function(e){return U.from(fh(t?0:-1,e))})).exists((function(t){return e.selection.select(t),!0}))},dL=function(e,t){return!!e.selection.isCollapsed()&&uL(e,t)},fL=Zr,pL=function(e){return fL(e)&&e.data[0]===fa},hL=function(e){return fL(e)&&e.data[e.data.length-1]===fa},mL=function(e){return e.ownerDocument.createTextNode(fa)},gL=function(e){if(fL(e.previousSibling))return hL(e.previousSibling)||e.previousSibling.appendData(fa),e.previousSibling;if(fL(e))return pL(e)||e.insertData(0,fa),e;var t=mL(e);return e.parentNode.insertBefore(t,e),t},vL=function(e){if(fL(e.nextSibling))return pL(e.nextSibling)||e.nextSibling.insertData(0,fa),e.nextSibling;if(fL(e))return hL(e)||e.appendData(fa),e;var t=mL(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t},bL=function(e,t){return e?gL(t):vL(t)},_L=M(bL,!0),yL=M(bL,!1),wL=function(e,t){return Zr(e.container())?bL(t,e.container()):bL(t,e.getNode())},xL=function(e,t){var n=t.get();return n&&e.container()===n&&ba(n)},kL=function(e,t){return t.fold((function(t){zp(e.get());var n=_L(t);return e.set(n),U.some(Ld(n,n.length-1))}),(function(t){return Qh(t).map((function(t){if(xL(t,e))return Ld(e.get(),1);zp(e.get());var n=wL(t,!0);return e.set(n),Ld(n,1)}))}),(function(t){return Jh(t).map((function(t){if(xL(t,e))return Ld(e.get(),e.get().length-1);zp(e.get());var n=wL(t,!1);return e.set(n),Ld(n,n.length-1)}))}),(function(t){zp(e.get());var n=yL(t);return e.set(n),U.some(Ld(n,1))}))},CL=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return U.none()},AL=Zi.generate([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),SL=function(e,t){var n=uh(t,e);return n||e},EL=function(e,t,n){var r=XR(n),i=SL(t,r.container());return VR(e,i,r).fold((function(){return Yh(i,r).bind(M(VR,e,i)).map((function(e){return AL.before(e)}))}),U.none)},TL=function(e,t){return null===tm(e,t)},OL=function(e,t,n){return VR(e,t,n).filter(M(TL,t))},RL=function(e,t,n){var r=QR(n);return OL(e,t,r).bind((function(e){var t=Xh(e,r);return t.isNone()?U.some(AL.start(e)):U.none()}))},DL=function(e,t,n){var r=XR(n);return OL(e,t,r).bind((function(e){var t=Yh(e,r);return t.isNone()?U.some(AL.end(e)):U.none()}))},LL=function(e,t,n){var r=QR(n),i=SL(t,r.container());return VR(e,i,r).fold((function(){return Xh(i,r).bind(M(VR,e,i)).map((function(e){return AL.after(e)}))}),U.none)},ML=function(e){return!1===UR(NL(e))},FL=function(e,t,n){var r=CL([EL,RL,DL,LL],[e,t,n]);return r.filter(ML)},NL=function(e){return e.fold(D,D,D,D)},BL=function(e){return e.fold(R("before"),R("start"),R("end"),R("after"))},IL=function(e){return e.fold(AL.before,AL.before,AL.after,AL.after)},PL=function(e){return e.fold(AL.start,AL.start,AL.end,AL.end)},$L=function(e,t){return BL(e)===BL(t)&&NL(e)===NL(t)},jL=function(e,t,n,r,i,o){return di(VR(t,n,r),VR(t,n,i),(function(t,r){return t!==r&&GR(n,t,r)?AL.after(e?t:r):o})).getOr(o)},zL=function(e,t){return e.fold($,(function(e){return!$L(e,t)}))},qL=function(e,t,n,r,i){var o=YR(e,i),a=Wh(e,n,o).map(M(YR,e)),s=a.fold((function(){return r.map(IL)}),(function(i){return FL(t,n,i).map(M(jL,e,t,n,o,i)).filter(M(zL,r))}));return s.filter(ML)},HL=function(e,t){return e?t.fold(T(U.some,AL.start),U.none,T(U.some,AL.after),U.none):t.fold(U.none,T(U.some,AL.before),U.none,T(U.some,AL.end))},UL=function(e,t,n,r){var i=YR(e,r),o=FL(t,n,i);return FL(t,n,i).bind(M(HL,e)).orThunk((function(){return qL(e,t,n,o,r)}))};M(UL,!1),M(UL,!0);var WL,VL=function(e){return A(e.selection.getSel().modify)},GL=function(e,t,n){var r=e?1:-1;return t.setRng(Ld(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0},KL=function(e,t){var n=t.selection.getRng(),r=e?Ld.fromRangeEnd(n):Ld.fromRangeStart(n);return!!VL(t)&&(e&&xa(r)?GL(!0,t.selection,r):!(e||!ka(r))&&GL(!1,t.selection,r))};(function(e){e[e["Br"]=0]="Br",e[e["Block"]=1]="Block",e[e["Wrap"]=2]="Wrap",e[e["Eol"]=3]="Eol"})(WL||(WL={}));var YL,XL=function(e,t){return e===Md.Backwards?de(t):t},QL=function(e,t,n){return e===Md.Forwards?t.next(n):t.prev(n)},JL=function(e,t,n,r){return ri(r.getNode(t===Md.Forwards))?WL.Br:!1===dh(n,r)?WL.Block:WL.Wrap},ZL=function(e,t,n,r){var i=Ih(n),o=r,a=[];while(o){var s=QL(t,i,o);if(!s)break;if(ri(s.getNode(!1)))return t===Md.Forwards?{positions:XL(t,a).concat([s]),breakType:WL.Br,breakAt:U.some(s)}:{positions:XL(t,a),breakType:WL.Br,breakAt:U.some(s)};if(s.isVisible()){if(e(o,s)){var c=JL(n,t,o,s);return{positions:XL(t,a),breakType:c,breakAt:U.some(s)}}a.push(s),o=s}else o=s}return{positions:XL(t,a),breakType:WL.Eol,breakAt:U.none()}},eM=function(e,t,n,r){return t(n,r).breakAt.map((function(r){var i=t(n,r).positions;return e===Md.Backwards?i.concat(r):[r].concat(i)})).getOr([])},tM=function(e,t){return ie(e,(function(e,n){return e.fold((function(){return U.some(n)}),(function(r){return di(ge(r.getClientRects()),ge(n.getClientRects()),(function(e,i){var o=Math.abs(t-e.left),a=Math.abs(t-i.left);return a<=o?n:r})).or(e)}))}),U.none())},nM=function(e,t){return ge(t.getClientRects()).bind((function(t){return tM(e,t.left)}))},rM=M(ZL,Ld.isAbove,-1),iM=M(ZL,Ld.isBelow,1),oM=M(eM,-1,rM),aM=M(eM,1,iM),sM=function(e,t){return rM(e,t).breakAt.isNone()},cM=function(e,t){return iM(e,t).breakAt.isNone()},lM=function(e){return Qh(e).map((function(t){return[t].concat(iM(e,t).positions)})).getOr([])},uM=function(e){return Jh(e).map((function(t){return rM(e,t).positions.concat(t)})).getOr([])},dM=function(e){var t=function(t){return J(t,(function(t){var n=Qu(t);return n.node=e,n}))};if(Hr(e))return t(e.getClientRects());if(Zr(e)){var n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}},fM=function(e){return le(e,dM)};(function(e){e[e["Up"]=-1]="Up",e[e["Down"]=1]="Down"})(YL||(YL={}));var pM,hM,mM=function(e,t,n,r){while(r=lh(r,e,Wa,t))if(n(r))return},gM=function(e,t,n,r,i,o){var a=0,s=[],c=function(r){var o=fM([r]);-1===e&&(o=o.reverse());for(var c=0;c<o.length;c++){var u=o[c];if(!n(u,l)){if(s.length>0&&t(u,He(s))&&a++,u.line=a,i(u))return!0;s.push(u)}}},l=He(o.getClientRects());if(!l)return s;var u=o.getNode();return c(u),mM(e,r,c,u),s},vM=function(e,t){return t.line>e},bM=function(e,t){return t.line===e},_M=M(gM,YL.Up,td,nd),yM=M(gM,YL.Down,nd,td),wM=function(e,t,n,r){var i,o,a,s,c=Ih(t),l=[],u=0,d=function(e){return He(e.getClientRects())};1===e?(i=c.next,o=nd,a=td,s=Ld.after(r)):(i=c.prev,o=td,a=nd,s=Ld.before(r));var f=d(s);do{if(s.isVisible()){var p=d(s);if(!a(p,f)){l.length>0&&o(p,He(l))&&u++;var h=Qu(p);if(h.position=s,h.line=u,n(h))return l;l.push(h)}}}while(s=i(s));return l},xM=function(e){return function(t){return vM(e,t)}},kM=function(e){return function(t){return bM(e,t)}},CM=ai,AM=lh,SM=function(e,t){return Math.abs(e.left-t)},EM=function(e,t){return Math.abs(e.right-t)},TM=function(e,t){return e>=t.left&&e<=t.right},OM=function(e,t){return e>=t.top&&e<=t.bottom},RM=function(e){return Me(e,"node")},DM=function(e,t,n){return void 0===n&&(n=$),ze(e,(function(e,r){if(TM(t,r))return n(r)?r:e;if(TM(t,e))return n(e)?e:r;var i=Math.min(SM(e,t),EM(e,t)),o=Math.min(SM(r,t),EM(r,t));return o===i&&RM(r)&&CM(r.node)||o<i?r:e}))},LM=function(e,t,n,r,i){var o=AM(r,e,Wa,t,!i);do{if(!o||n(o))return}while(o=AM(o,e,Wa,t))},MM=function(e,t,n){void 0===n&&(n=!0);var r=[],i=function(e,n){var i=ne(fM([n]),(function(n){return!e(n,t)}));return r=r.concat(i),0===i.length};return r.push(t),LM(YL.Up,e,M(i,td),t.node,n),LM(YL.Down,e,M(i,nd),t.node,n),r},FM=function(e){return ne(be(e.getElementsByTagName("*")),Jp)},NM=function(e,t){return{node:e.node,before:SM(e,t)<EM(e,t)}},BM=function(e,t,n){var r=fM(FM(e)),i=ne(r,M(OM,n)),o=function(e){return!Xr(e.node)&&!ci(e.node)},a=DM(i,t,o);if(a){var s=o(a);if(a=DM(MM(e,a,s),t,o),a&&Jp(a.node))return NM(a,t)}return null},IM=function(e,t){e.selection.setRng(t),nb(e,e.selection.getRng())},PM=function(e,t,n){return U.some(PD(e,t,n))},$M=function(e,t,n,r,i,o){var a=t===Md.Forwards,s=Ih(e.getBody()),c=M(kh,a?s.next:s.prev),l=a?r:i;if(!n.collapsed){var u=od(n);if(o(u))return FD(t,e,u,t===Md.Backwards,!1)}var d=yh(t,e.getBody(),n);if(l(d))return BD(e,d.getNode(!a));var f=YR(a,c(d)),p=Ra(n);if(!f)return p?U.some(n):U.none();if(l(f))return FD(t,e,f.getNode(!a),a,!1);var h=c(f);return h&&l(h)&&Ch(f,h)?FD(t,e,h.getNode(!a),a,!1):p?PM(e,f.toRange(),!1):U.none()},jM=function(e,t,n,r,i,o){var a=yh(t,e.getBody(),n),s=He(a.getClientRects()),c=t===YL.Down;if(!s)return U.none();var l,u=c?yM:_M,d=u(e.getBody(),xM(1),a),f=ne(d,kM(1)),p=s.left,h=DM(f,p);if(h&&o(h.node)){var m=Math.abs(p-h.left),g=Math.abs(p-h.right);return FD(t,e,h.node,m<g,!1)}if(l=r(a)?a.getNode():i(a)?a.getNode(!0):od(n),l){var v=wM(t,e.getBody(),xM(1),l),b=DM(ne(v,kM(1)),p);if(b)return PM(e,b.position.toRange(),!1);if(b=He(ne(v,kM(0))),b)return PM(e,b.position.toRange(),!1)}return 0===f.length?zM(e,c).filter(c?i:r).map((function(t){return PD(e,t.toRange(),!1)})):U.none()},zM=function(e,t){var n=e.selection.getRng(),r=e.getBody();if(t){var i=Ld.fromRangeEnd(n),o=iM(r,i);return ve(o.positions)}i=Ld.fromRangeStart(n),o=rM(r,i);return ge(o.positions)},qM=function(e,t,n){return zM(e,t).filter(n).exists((function(t){return e.selection.setRng(t.toRange()),!0}))},HM=function(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)},UM=function(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},WM=function(e,t,n){return kL(t,n).map((function(t){return HM(e,t),n}))},VM=function(e,t,n){var r=e.getBody(),i=Ld.fromRangeStart(e.selection.getRng()),o=M(HR,e),a=UL(n,o,r,i);return a.bind((function(n){return WM(e,t,n)}))},GM=function(e,t,n){var r=J(Eu(yn.fromDom(t.getRoot()),'*[data-mce-selected="inline-boundary"]'),(function(e){return e.dom})),i=ne(r,e),o=ne(n,e);Z(fe(i,o),M(UM,!1)),Z(fe(o,i),M(UM,!0))},KM=function(e,t){if(e.selection.isCollapsed()&&!0!==e.composing&&t.get()){var n=Ld.fromRangeStart(e.selection.getRng());Ld.isTextPosition(n)&&!1===KR(n)&&(HM(e,jp(t.get(),n)),t.set(null))}},YM=function(e,t,n,r){if(t.selection.isCollapsed()){var i=ne(r,e);Z(i,(function(r){var i=Ld.fromRangeStart(t.selection.getRng());FL(e,t.getBody(),i).bind((function(e){return WM(t,n,e)}))}))}},XM=function(e,t,n){return!!ap(e)&&VM(e,t,n).isSome()},QM=function(e,t,n){return!!ap(t)&&KL(e,t)},JM=function(e){var t=Xl(null),n=M(HR,e);return e.on("NodeChange",(function(r){!ap(e)||en.browser.isIE()&&r.initial||(GM(n,e.dom,r.parents),KM(e,t),YM(n,e,t,r.parents))})),t},ZM=M(QM,!0),eF=M(QM,!1),tF=function(e,t,n){if(ap(e)){var r=zM(e,t).getOrThunk((function(){var n=e.selection.getRng();return t?Ld.fromRangeEnd(n):Ld.fromRangeStart(n)}));return FL(M(HR,e),e.getBody(),r).exists((function(t){var r=IL(t);return kL(n,r).exists((function(t){return HM(e,t),!0}))}))}return!1},nF=function(e,t){var n=document.createRange();return n.setStart(e.container(),e.offset()),n.setEnd(t.container(),t.offset()),n},rF=function(e){return di(Qh(e),Jh(e),(function(t,n){var r=YR(!0,t),i=YR(!1,n);return Yh(e,r).forall((function(e){return e.isEqual(i)}))})).getOr(!0)},iF=function(e,t){return function(n){return kL(t,n).exists((function(t){return HM(e,t),!0}))}},oF=function(e,t,n,r){var i=e.getBody(),o=M(HR,e);e.undoManager.ignore((function(){e.selection.setRng(nF(n,r)),e.execCommand("Delete"),FL(o,i,Ld.fromRangeStart(e.selection.getRng())).map(PL).map(iF(e,t))})),e.nodeChanged()},aF=function(e,t){var n=uh(t,e);return n||e},sF=function(e,t,n,r){var i=aF(e.getBody(),r.container()),o=M(HR,e),a=FL(o,i,r);return a.bind((function(e){return n?e.fold(R(U.some(PL(e))),U.none,R(U.some(IL(e))),U.none):e.fold(U.none,R(U.some(IL(e))),U.none,R(U.some(PL(e))))})).map(iF(e,t)).getOrThunk((function(){var s=Vh(n,i,r),c=s.bind((function(e){return FL(o,i,e)}));return di(a,c,(function(){return VR(o,i,r).exists((function(t){return!!rF(t)&&(Nw(e,n,yn.fromDom(t)),!0)}))})).orThunk((function(){return c.bind((function(i){return s.map((function(i){return n?oF(e,t,r,i):oF(e,t,i,r),!0}))}))})).getOr(!1)}))},cF=function(e,t,n){if(e.selection.isCollapsed()&&ap(e)){var r=Ld.fromRangeStart(e.selection.getRng());return sF(e,t,n,r)}return!1},lF=function(e,t){var n=Oy(t,e);return se(n,Qo).fold(R(n),(function(e){return n.slice(0,e)}))},uF=function(e){return 1===sr(e)},dF=function(e,t,n,r){var i=M(aC,t),o=J(ne(r,i),(function(e){return e.dom}));if(0===o.length)Nw(t,e,n);else{var a=oC(n.dom,o);t.selection.setRng(a.toRange())}},fF=function(e,t){var n=yn.fromDom(e.getBody()),r=yn.fromDom(e.selection.getStart()),i=ne(lF(n,r),uF);return ve(i).exists((function(n){var r=Ld.fromRangeStart(e.selection.getRng());return!(!rD(t,r,n.dom)||sC(n))&&(dF(t,e,n,i),!0)}))},pF=function(e,t){return!!e.selection.isCollapsed()&&fF(e,t)},hF=function(e,t,n){return e._selectionOverrides.hideFakeCaret(),Nw(e,t,yn.fromDom(n)),!0},mF=function(e,t){var n=t?gy:vy,r=t?Md.Forwards:Md.Backwards,i=yh(r,e.getBody(),e.selection.getRng());return n(i)?hF(e,t,i.getNode(!t)):U.from(YR(t,i)).filter((function(e){return n(e)&&Ch(i,e)})).exists((function(n){return hF(e,t,n.getNode(!t))}))},gF=function(e,t){var n=e.selection.getNode();return!!ci(n)&&hF(e,t,n)},vF=function(e,t){return e.selection.isCollapsed()?mF(e,t):gF(e,t)},bF=function(e){return ko(e,(function(e){return oi(e.dom)||ai(e.dom)})).exists((function(e){return oi(e.dom)}))},_F=function(e){var t=parseInt(e,10);return isNaN(t)?0:t},yF=function(e,t){var n=e||Jo(t)?"margin":"padding",r="rtl"===Ai(t,"direction")?"-right":"-left";return n+r},wF=function(e,t,n,r,i,o){var a=yF(n,yn.fromDom(o));if("outdent"===t){var s=Math.max(0,_F(o.style[a])-r);e.setStyle(o,a,s?s+i:"")}else{s=_F(o.style[a])+r+i;e.setStyle(o,a,s)}},xF=function(e,t){return ue(t,(function(t){var n=yF(Gf(e),t),r=Ei(t,n).map(_F).getOr(0),i=e.dom.getContentEditable(t.dom);return"false"!==i&&r>0}))},kF=function(e){var t=SF(e);return!e.mode.isReadOnly()&&(t.length>1||xF(e,t))},CF=function(e){return na(e)||ra(e)},AF=function(e){return Xn(e).exists(CF)},SF=function(e){return ne(qu(e.selection.getSelectedBlocks()),(function(e){return!CF(e)&&!AF(e)&&bF(e)}))},EF=function(e,t){var n=e.dom,r=e.selection,i=e.formatter,o=Kf(e),a=/[a-z%]+$/i.exec(o)[0],s=parseInt(o,10),c=Gf(e),l=Af(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==l||n.getParent(r.getNode(),n.isBlock)||i.apply("div"),Z(SF(e),(function(e){wF(n,t,c,s,a,e.dom)}))},TF=function(e,t){if(e.selection.isCollapsed()&&kF(e)){var n=e.dom,r=e.selection.getRng(),i=Ld.fromRangeStart(r),o=n.getParent(r.startContainer,n.isBlock);if(null!==o&&Fy(yn.fromDom(o),i))return EF(e,"outdent"),!0}return!1},OF=function(e,t){e.getDoc().execCommand(t,!1,null)},RF=function(e,t){TF(e)||lL(e,!1)||UD(e,!1)||cF(e,t,!1)||CD(e,!1)||Dx(e)||dL(e,!1)||vF(e,!1)||DD(e)||pF(e,!1)||(OF(e,"Delete"),nD(e))},DF=function(e,t){lL(e,!0)||UD(e,!0)||cF(e,t,!0)||CD(e,!0)||Dx(e)||dL(e,!0)||vF(e,!0)||DD(e)||pF(e,!0)||OF(e,"ForwardDelete")},LF=function(e,t){e.addCommand("delete",(function(){RF(e,t)})),e.addCommand("forwardDelete",(function(){DF(e,t)}))},MF=5,FF=400,NF=function(e){return void 0===e.touches||1!==e.touches.length?U.none():U.some(e.touches[0])},BF=function(e,t){var n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y);return n>MF||r>MF},IF=function(e){var t=fu(),n=Xl(!1),r=hu((function(t){e.fire("longpress",Ue(Ue({},t),{type:"longpress"})),n.set(!0)}),FF);e.on("touchstart",(function(e){NF(e).each((function(i){r.cancel();var o={x:i.clientX,y:i.clientY,target:e.target};r.throttle(e),n.set(!1),t.set(o)}))}),!0),e.on("touchmove",(function(i){r.cancel(),NF(i).each((function(r){t.on((function(i){BF(r,i)&&(t.clear(),n.set(!1),e.fire("longpresscancel"))}))}))}),!0),e.on("touchend touchcancel",(function(i){r.cancel(),"touchcancel"!==i.type&&t.get().filter((function(e){return e.target.isEqualNode(i.target)})).each((function(){n.get()?i.preventDefault():e.fire("tap",Ue(Ue({},i),{type:"tap"}))}))}),!0)},PF=function(e,t){return Le(e,t.nodeName)},$F=function(e,t){return!!Zr(t)||!!Hr(t)&&(!PF(e,t)&&!xm(t))},jF=function(e,t,n){return Q(Ty(yn.fromDom(n),yn.fromDom(t)),(function(t){return PF(e,t.dom)}))},zF=function(e,t){if(Zr(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||PF(e,t.nextSibling)))return!0}return!1},qF=function(e){var t,n,r,i=e.dom,o=e.selection,a=e.schema,s=a.getBlockElements(),c=o.getStart(),l=e.getBody(),u=Af(e);if(c&&Hr(c)&&u){var d=l.nodeName.toLowerCase();if(a.isValidChild(d,u.toLowerCase())&&!jF(s,l,c)){var f=o.getRng(),p=f.startContainer,h=f.startOffset,m=f.endContainer,g=f.endOffset,v=f_(e);c=l.firstChild;while(c)if($F(s,c)){if(zF(s,c)){n=c,c=c.nextSibling,i.remove(n);continue}t||(t=i.create(u,Sf(e)),c.parentNode.insertBefore(t,c),r=!0),n=c,c=c.nextSibling,t.appendChild(n)}else t=null,c=c.nextSibling;r&&v&&(f.setStart(p,h),f.setEnd(m,g),o.setRng(f),e.nodeChanged())}}},HF=function(e){Af(e)&&e.on("NodeChange",M(qF,e))},UF=function(e){return Eo(yn.fromDom(e.getBody()),"*[data-mce-caret]").map((function(e){return e.dom})).getOrNull()},WF=function(e){e.selection.setRng(e.selection.getRng())},VF=function(e,t){t.hasAttribute("data-mce-caret")&&(Oa(t),WF(e),e.selection.scrollIntoView(t))},GF=function(e,t){var n=UF(e);if(n)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void VF(e,n)):void(ya(n)&&(VF(e,n),e.undoManager.add()))},KF=function(e){e.on("keyup compositionstart",M(GF,e))},YF=ai,XF=function(e,t,n){return $M(t,e,n,yy,wy,YF)},QF=function(e,t,n){var r=function(e){return yy(e)||by(e)},i=function(e){return wy(e)||_y(e)};return jM(t,e,n,r,i,YF)},JF=function(e){var t=e.dom.create(Af(e));return(!en.ie||en.ie>=11)&&(t.innerHTML='<br data-mce-bogus="1">'),t},ZF=function(e,t,n){var r=Ih(e.getBody()),i=M(kh,1===t?r.next:r.prev);if(n.collapsed&&bp(e)){var o=e.dom.getParent(n.startContainer,"PRE");if(!o)return;var a=i(Ld.fromRangeStart(n));if(!a){var s=JF(e);1===t?e.$(o).after(s):e.$(o).before(s),e.selection.select(s,!0),e.selection.collapse()}}},eN=function(e,t){var n=t?Md.Forwards:Md.Backwards,r=e.selection.getRng();return XF(n,e,r).orThunk((function(){return ZF(e,n,r),U.none()}))},tN=function(e,t){var n=t?1:-1,r=e.selection.getRng();return QF(n,e,r).orThunk((function(){return ZF(e,n,r),U.none()}))},nN=function(e,t){return eN(e,t).exists((function(t){return IM(e,t),!0}))},rN=function(e,t){return tN(e,t).exists((function(t){return IM(e,t),!0}))},iN=function(e,t){var n=t?wy:yy;return qM(e,t,n)},oN=function(e){return X(["figcaption"],In(e))},aN=function(e){var t=document.createRange();return t.setStartBefore(e.dom),t.setEndBefore(e.dom),t},sN=function(e,t,n){n?wr(e,t):yr(e,t)},cN=function(e,t){var n=yn.fromTag("br");return sN(e,n,t),aN(n)},lN=function(e,t,n,r){var i=yn.fromTag(n),o=yn.fromTag("br");return vi(i,r),wr(i,o),sN(e,i,t),aN(o)},uN=function(e,t,n,r){return""===t?cN(e,r):lN(e,r,t,n)},dN=function(e,t){var n=M(Mn,t);return ko(yn.fromDom(e.container()),Qo,n).filter(oN)},fN=function(e,t,n){return t?cM(e.dom,n):sM(e.dom,n)},pN=function(e,t){var n=yn.fromDom(e.getBody()),r=Ld.fromRangeStart(e.selection.getRng()),i=Af(e),o=Sf(e);return dN(r,n).exists((function(){if(fN(n,t,r)){var a=uN(n,i,o,t);return e.selection.setRng(a),!0}return!1}))},hN=function(e,t){return!!e.selection.isCollapsed()&&pN(e,t)},mN=function(e){return J(e,(function(e){return Ue({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:E},e)}))},gN=function(e,t){return t.keyCode===e.keyCode&&t.shiftKey===e.shiftKey&&t.altKey===e.altKey&&t.ctrlKey===e.ctrlKey&&t.metaKey===e.metaKey},vN=function(e,t){return le(mN(e),(function(e){return gN(e,t)?[e]:[]}))},bN=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(null,t)}},_N=function(e,t){return ae(vN(e,t),(function(e){return e.action()}))},yN=function(e,t){var n=t?Md.Forwards:Md.Backwards,r=e.selection.getRng();return $M(e,n,r,gy,vy,ci).exists((function(t){return IM(e,t),!0}))},wN=function(e,t){var n=t?1:-1,r=e.selection.getRng();return jM(e,n,r,gy,vy,ci).exists((function(t){return IM(e,t),!0}))},xN=function(e,t){var n=t?vy:gy;return qM(e,t,n)},kN=function(e,t){return{left:e.left-t,top:e.top-t,right:e.right+2*t,bottom:e.bottom+2*t,width:e.width+t,height:e.height+t}},CN=function(e,t){return le(t,(function(t){var n=kN(Qu(t.getBoundingClientRect()),-1);return[{x:n.left,y:e(n),cell:t},{x:n.right,y:e(n),cell:t}]}))},AN=function(e,t,n){return ie(e,(function(e,r){return e.fold((function(){return U.some(r)}),(function(e){var i=Math.sqrt(Math.abs(e.x-t)+Math.abs(e.y-n)),o=Math.sqrt(Math.abs(r.x-t)+Math.abs(r.y-n));return U.some(o<i?r:e)}))}),U.none())},SN=function(e,t,n,r,i){var o=Eu(yn.fromDom(n),"td,th,caption").map((function(e){return e.dom})),a=ne(CN(e,o),(function(e){return t(e,i)}));return AN(a,r,i).map((function(e){return e.cell}))},EN=function(e){return e.bottom},TN=function(e){return e.top},ON=function(e,t){return e.y<t},RN=function(e,t){return e.y>t},DN=M(SN,EN,ON),LN=M(SN,TN,RN),MN=function(e,t){return ge(t.getClientRects()).bind((function(t){return DN(e,t.left,t.top)})).bind((function(e){return nM(uM(e),t)}))},FN=function(e,t){return ve(t.getClientRects()).bind((function(t){return LN(e,t.left,t.top)})).bind((function(e){return nM(lM(e),t)}))},NN=function(e,t,n){return n.breakAt.exists((function(n){return e(t,n).breakAt.isSome()}))},BN=function(e){return e.breakType===WL.Wrap&&0===e.positions.length},IN=function(e){return e.breakType===WL.Br&&1===e.positions.length},PN=function(e,t,n){var r=e(t,n);return BN(r)||!ri(n.getNode())&&IN(r)?!NN(e,t,r):r.breakAt.isNone()},$N=M(PN,rM),jN=M(PN,iM),zN=function(e,t,n){var r=Ld.fromRangeStart(t);return Kh(!e,n).exists((function(e){return e.isEqual(r)}))},qN=function(e,t,n,r){var i=e.selection.getRng(),o=t?1:-1;return!(!Xp()||!zN(t,i,n))&&(FD(o,e,n,!t,!1).each((function(t){IM(e,t)})),!0)},HN=function(e,t,n){return MN(t,n).orThunk((function(){return ge(n.getClientRects()).bind((function(n){return tM(oM(e,Ld.before(t)),n.left)}))})).getOr(Ld.before(t))},UN=function(e,t,n){return FN(t,n).orThunk((function(){return ge(n.getClientRects()).bind((function(n){return tM(aM(e,Ld.after(t)),n.left)}))})).getOr(Ld.after(t))},WN=function(e,t){var n=t.getNode(e);return Hr(n)&&"TABLE"===n.nodeName?U.some(n):U.none()},VN=function(e,t,n,r){var i=Af(t);i?t.undoManager.transact((function(){var r=yn.fromTag(i);vi(r,Sf(t)),wr(r,yn.fromTag("br")),e?_r(yn.fromDom(n),r):br(yn.fromDom(n),r);var o=t.dom.createRng();o.setStart(r.dom,0),o.setEnd(r.dom,0),IM(t,o)})):IM(t,r.toRange())},GN=function(e,t,n){var r=WN(!!t,n),i=!1===t;r.fold((function(){return IM(e,n.toRange())}),(function(r){return Kh(i,e.getBody()).filter((function(e){return e.isEqual(n)})).fold((function(){return IM(e,n.toRange())}),(function(i){return VN(t,e,r,n)}))}))},KN=function(e,t,n,r){var i=e.selection.getRng(),o=Ld.fromRangeStart(i),a=e.getBody();if(!t&&$N(r,o)){var s=HN(a,n,o);return GN(e,t,s),!0}if(t&&jN(r,o)){s=UN(a,n,o);return GN(e,t,s),!0}return!1},YN=function(e,t,n){return U.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind((function(r){return U.from(e.dom.getParent(r,"table")).map((function(i){return n(e,t,i,r)}))})).getOr(!1)},XN=function(e,t){return YN(e,t,qN)},QN=function(e,t){return YN(e,t,KN)},JN=function(e,t,n){var r=Wt().os;_N([{keyCode:tv.RIGHT,action:bN(nN,e,!0)},{keyCode:tv.LEFT,action:bN(nN,e,!1)},{keyCode:tv.UP,action:bN(rN,e,!1)},{keyCode:tv.DOWN,action:bN(rN,e,!0)},{keyCode:tv.RIGHT,action:bN(XN,e,!0)},{keyCode:tv.LEFT,action:bN(XN,e,!1)},{keyCode:tv.UP,action:bN(QN,e,!1)},{keyCode:tv.DOWN,action:bN(QN,e,!0)},{keyCode:tv.RIGHT,action:bN(yN,e,!0)},{keyCode:tv.LEFT,action:bN(yN,e,!1)},{keyCode:tv.UP,action:bN(wN,e,!1)},{keyCode:tv.DOWN,action:bN(wN,e,!0)},{keyCode:tv.RIGHT,action:bN(XM,e,t,!0)},{keyCode:tv.LEFT,action:bN(XM,e,t,!1)},{keyCode:tv.RIGHT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:bN(ZM,e,t)},{keyCode:tv.LEFT,ctrlKey:!r.isOSX(),altKey:r.isOSX(),action:bN(eF,e,t)},{keyCode:tv.UP,action:bN(hN,e,!1)},{keyCode:tv.DOWN,action:bN(hN,e,!0)}],n).each((function(e){n.preventDefault()}))},ZN=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&JN(e,t,n)}))},eB=function(e,t,n){_N([{keyCode:tv.BACKSPACE,action:bN(TF,e,!1)},{keyCode:tv.BACKSPACE,action:bN(lL,e,!1)},{keyCode:tv.DELETE,action:bN(lL,e,!0)},{keyCode:tv.BACKSPACE,action:bN(UD,e,!1)},{keyCode:tv.DELETE,action:bN(UD,e,!0)},{keyCode:tv.BACKSPACE,action:bN(cF,e,t,!1)},{keyCode:tv.DELETE,action:bN(cF,e,t,!0)},{keyCode:tv.BACKSPACE,action:bN(Dx,e,!1)},{keyCode:tv.DELETE,action:bN(Dx,e,!0)},{keyCode:tv.BACKSPACE,action:bN(dL,e,!1)},{keyCode:tv.DELETE,action:bN(dL,e,!0)},{keyCode:tv.BACKSPACE,action:bN(vF,e,!1)},{keyCode:tv.DELETE,action:bN(vF,e,!0)},{keyCode:tv.BACKSPACE,action:bN(DD,e,!1)},{keyCode:tv.DELETE,action:bN(DD,e,!0)},{keyCode:tv.BACKSPACE,action:bN(CD,e,!1)},{keyCode:tv.DELETE,action:bN(CD,e,!0)},{keyCode:tv.BACKSPACE,action:bN(pF,e,!1)},{keyCode:tv.DELETE,action:bN(pF,e,!0)}],n).each((function(e){n.preventDefault()}))},tB=function(e,t){_N([{keyCode:tv.BACKSPACE,action:bN(cL,e)},{keyCode:tv.DELETE,action:bN(cL,e)}],t)},nB=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&eB(e,t,n)})),e.on("keyup",(function(t){!1===t.isDefaultPrevented()&&tB(e,t)}))},rB=function(e){while(e){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}},iB=function(e,t){var n,r=t,i=e.dom,o=e.schema.getMoveCaretBeforeOnEnterElements();if(t){if(/^(LI|DT|DD)$/.test(t.nodeName)){var a=rB(t.firstChild);a&&/^(UL|OL|DL)$/.test(a.nodeName)&&t.insertBefore(i.doc.createTextNode(la),t.firstChild)}var s=i.createRng();if(t.normalize(),t.hasChildNodes()){var c=new jo(t,t);while(n=c.current()){if(Zr(n)){s.setStart(n,0),s.setEnd(n,0);break}if(o[n.nodeName.toLowerCase()]){s.setStartBefore(n),s.setEndBefore(n);break}r=n,n=c.next()}n||(s.setStart(r,0),s.setEnd(r,0))}else ri(t)?t.nextSibling&&i.isBlock(t.nextSibling)?(s.setStartBefore(t),s.setEndBefore(t)):(s.setStartAfter(t),s.setEndAfter(t)):(s.setStart(t,0),s.setEnd(t,0));e.selection.setRng(s),nb(e,s)}},oB=function(e,t){var n,r,i=e.getRoot();n=t;while(n!==i&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==i?r:i},aB=function(e){return U.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))},sB=function(e){return aB(e).fold(R(""),(function(e){return e.nodeName.toUpperCase()}))},cB=function(e){return aB(e).filter((function(e){return ra(yn.fromDom(e))})).isSome()},lB=function(e,t){return e.firstChild&&e.firstChild.nodeName===t},uB=function(e){var t;return(null===(t=e.parentNode)||void 0===t?void 0:t.firstChild)===e},dB=function(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t},fB=function(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)},pB=function(e){return fB(e)&&fB(e.parentNode)},hB=function(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e},mB=function(e,t,n){var r=e[n?"firstChild":"lastChild"];while(r){if(Hr(r))break;r=r[n?"nextSibling":"previousSibling"]}return r===t},gB=function(e,t,n,r,i){var o=e.dom,a=e.selection.getRng();if(n!==e.getBody()){pB(n)&&(i="LI");var s=i?t(i):o.create("BR");if(mB(n,r,!0)&&mB(n,r,!1))if(dB(n,"LI")){var c=hB(n);o.insertAfter(s,c),uB(n)?o.remove(c):o.remove(n)}else o.replace(s,n);else if(mB(n,r,!0))dB(n,"LI")?(o.insertAfter(s,hB(n)),s.appendChild(o.doc.createTextNode(" ")),s.appendChild(n)):n.parentNode.insertBefore(s,n),o.remove(r);else if(mB(n,r,!1))o.insertAfter(s,hB(n)),o.remove(r);else{n=hB(n);var l=a.cloneRange();l.setStartAfter(r),l.setEndAfter(n);var u=l.extractContents();"LI"===i&&lB(u,"LI")?(s=u.firstChild,o.insertAfter(u,n)):(o.insertAfter(u,n),o.insertAfter(s,n)),o.remove(r)}iB(e,s)}},vB=function(e){Z(Su(yn.fromDom(e),qn),(function(e){var t=e.dom;t.nodeValue=ha(t.nodeValue)}))},bB=function(e,t){return t&&"A"===t.nodeName&&e.isEmpty(t)},_B=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},yB=function(e){e.innerHTML='<br data-mce-bogus="1">'},wB=function(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t},xB=function(e,t){return t&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==e.getContentEditable(t)},kB=function(e,t,n){var r,i=n,o=[];if(i){while(i=i.firstChild){if(e.isBlock(i))return;Hr(i)&&!t[i.nodeName.toLowerCase()]&&o.push(i)}r=o.length;while(r--)i=o[r],(!i.hasChildNodes()||i.firstChild===i.lastChild&&""===i.firstChild.nodeValue||bB(e,i))&&e.remove(i)}},CB=function(e,t,n){return!1===Zr(t)?n:e?1===n&&t.data.charAt(n-1)===fa?0:n:n===t.data.length-1&&t.data.charAt(n)===fa?t.data.length:n},AB=function(e){var t=e.cloneRange();return t.setStart(e.startContainer,CB(!0,e.startContainer,e.startOffset)),t.setEnd(e.endContainer,CB(!1,e.endContainer,e.endOffset)),t},SB=function(e){do{Zr(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild}while(e)},EB=function(e,t){var n,r,i=e.getRoot();n=t;while(n!==i&&"false"!==e.getContentEditable(n))"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==i?r:i},TB=function(e,t,n){var r=e.dom;U.from(n.style).map(r.parseStyle).each((function(e){var n=Ti(yn.fromDom(t)),i=Ue(Ue({},n),e);r.setStyles(t,i)}));var i=U.from(n.class).map((function(e){return e.split(/\s+/)})),o=U.from(t.className).map((function(e){return ne(e.split(/\s+/),(function(e){return""!==e}))}));di(i,o,(function(e,n){var i=ne(n,(function(t){return!X(e,t)})),o=Ve(Ve([],e,!0),i,!0);r.setAttrib(t,"class",o.join(" "))}));var a=["style","class"],s=Te(n,(function(e,t){return!X(a,t)}));r.setAttribs(t,s)},OB=function(e,t){var n=Af(e);if(n&&n.toLowerCase()===t.tagName.toLowerCase()){var r=Sf(e);TB(e,t,r)}},RB=function(e,t,n,r,i){var o,a,s,c,l,u,d=t||"P",f=e.dom,p=EB(f,r);if(a=f.getParent(r,f.isBlock),!a||!xB(f,a)){if(a=a||p,u=a===e.getBody()||_B(a)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return o=f.create(d),OB(e,o),a.appendChild(o),n.setStart(o,0),n.setEnd(o,0),o;c=r;while(c.parentNode!==a)c=c.parentNode;while(c&&!f.isBlock(c))s=c,c=c.previousSibling;if(s&&e.schema.isValidChild(u,d.toLowerCase())){o=f.create(d),OB(e,o),s.parentNode.insertBefore(o,s),c=s;while(c&&!f.isBlock(c))l=c.nextSibling,o.appendChild(c),c=l;n.setStart(r,i),n.setEnd(r,i)}}return r},DB=function(e,t){t.normalize();var n=t.lastChild;n&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")},LB=function(e,t){var n,r,i,o,a,s,c,l,u,d,f=e.dom,p=e.schema,h=p.getNonEmptyElements(),m=e.selection.getRng(),g=function(t){var n,i,a,s=r,c=p.getTextInlineElements();if(n=t||"TABLE"===l||"HR"===l?f.create(t||u):o.cloneNode(!1),a=n,!1===Of(e))f.setAttrib(n,"style",null),f.setAttrib(n,"class",null);else do{if(c[s.nodeName]){if(em(s)||xm(s))continue;i=s.cloneNode(!1),f.setAttrib(i,"id",""),n.hasChildNodes()?(i.appendChild(n.firstChild),n.appendChild(i)):(a=i,n.appendChild(i))}}while((s=s.parentNode)&&s!==w);return OB(e,n),yB(a),n},v=function(e){var t,n,a=CB(e,r,i);if(Zr(r)&&(e?a>0:a<r.nodeValue.length))return!1;if(r.parentNode===o&&d&&!e)return!0;if(e&&Hr(r)&&r===o.firstChild)return!0;if(wB(r,"TABLE")||wB(r,"HR"))return d&&!e||!d&&e;var s=new jo(r,o);Zr(r)&&(e&&0===a?s.prev():e||a!==r.nodeValue.length||s.next());while(t=s.current()){if(Hr(t)){if(!t.getAttribute("data-mce-bogus")&&(n=t.nodeName.toLowerCase(),h[n]&&"br"!==n))return!1}else if(Zr(t)&&!Ga(t.nodeValue))return!1;e?s.prev():s.next()}return!0},b=function(){a=/^(H[1-6]|PRE|FIGURE)$/.test(l)&&"HGROUP"!==x?g(u):g(),Rf(e)&&xB(f,c)&&f.isEmpty(o)?a=f.split(c,o):f.insertAfter(a,o),iB(e,a)};wv(f,m).each((function(e){m.setStart(e.startContainer,e.startOffset),m.setEnd(e.endContainer,e.endOffset)})),r=m.startContainer,i=m.startOffset,u=Af(e);var _=!(!t||!t.shiftKey),y=!(!t||!t.ctrlKey);Hr(r)&&r.hasChildNodes()&&(d=i>r.childNodes.length-1,r=r.childNodes[Math.min(i,r.childNodes.length-1)]||r,i=d&&Zr(r)?r.nodeValue.length:0);var w=EB(f,r);if(w){(u&&!_||!u&&_)&&(r=RB(e,u,m,r,i)),o=f.getParent(r,f.isBlock),c=o?f.getParent(o.parentNode,f.isBlock):null,l=o?o.nodeName.toUpperCase():"";var x=c?c.nodeName.toUpperCase():"";"LI"!==x||y||(o=c,c=c.parentNode,l=x),/^(LI|DT|DD)$/.test(l)&&f.isEmpty(o)?gB(e,g,c,o,u):u&&o===e.getBody()||(u=u||"P",va(o)?(a=Oa(o),f.isEmpty(o)&&yB(o),OB(e,a),iB(e,a)):v()?b():v(!0)?(a=o.parentNode.insertBefore(g(),o),iB(e,wB(o,"HR")?a:o)):(n=AB(m).cloneRange(),n.setEndAfter(o),s=n.extractContents(),vB(s),SB(s),a=s.firstChild,f.insertAfter(s,o),kB(f,h,a),DB(f,o),f.isEmpty(o)&&yB(o),a.normalize(),f.isEmpty(a)?(f.remove(a),b()):(OB(e,a),iB(e,a))),f.setAttrib(a,"id",""),e.fire("NewBlock",{newBlock:a}))}},MB=function(e,t,n){var r,i=new jo(t,n),o=e.getNonEmptyElements();while(r=i.next())if(o[r.nodeName.toLowerCase()]||r.length>0)return!0},FB=function(e,t,n){var r=e.dom.createRng();n?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)),e.selection.setRng(r),nb(e,r)},NB=function(e,t){var n,r,i=e.selection,o=e.dom,a=i.getRng();wv(o,a).each((function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)}));var s=a.startOffset,c=a.startContainer;if(1===c.nodeType&&c.hasChildNodes()){var l=s>c.childNodes.length-1;c=c.childNodes[Math.min(s,c.childNodes.length-1)]||c,s=l&&3===c.nodeType?c.nodeValue.length:0}var u=o.getParent(c,o.isBlock),d=u?o.getParent(u.parentNode,o.isBlock):null,f=d?d.nodeName.toUpperCase():"",p=!(!t||!t.ctrlKey);"LI"!==f||p||(u=d),c&&3===c.nodeType&&s>=c.nodeValue.length&&(MB(e.schema,c,u)||(n=o.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=o.create("br"),Id(o,a,n),FB(e,n,r),e.undoManager.add()},BB=function(e,t){var n=yn.fromTag("br");br(yn.fromDom(t),n),e.undoManager.add()},IB=function(e,t){$B(e.getBody(),t)||_r(yn.fromDom(t),yn.fromTag("br"));var n=yn.fromTag("br");_r(yn.fromDom(t),n),FB(e,n.dom,!1),e.undoManager.add()},PB=function(e){return ri(e.getNode())},$B=function(e,t){return!!PB(Ld.after(t))||Yh(e,Ld.after(t)).map((function(e){return ri(e.getNode())})).getOr(!1)},jB=function(e){return e&&"A"===e.nodeName&&"href"in e},zB=function(e){return e.fold(P,jB,jB,P)},qB=function(e){var t=M(HR,e),n=Ld.fromRangeStart(e.selection.getRng());return FL(t,e.getBody(),n).filter(zB)},HB=function(e,t){t.fold(E,M(BB,e),M(IB,e),E)},UB=function(e,t){var n=qB(e);n.isSome()?n.each(M(HB,e)):NB(e,t)},WB=function(e,t){return aB(e).filter((function(e){return t.length>0&&On(yn.fromDom(e),t)})).isSome()},VB=function(e){return WB(e,Ef(e))},GB=function(e){return WB(e,Tf(e))},KB=Zi.generate([{br:[]},{block:[]},{none:[]}]),YB=function(e,t){return GB(e)},XB=function(e){return function(t,n){var r=""===Af(t);return r===e}},QB=function(e){return function(t,n){return cB(t)===e}},JB=function(e,t){return function(n,r){var i=sB(n)===e.toUpperCase();return i===t}},ZB=function(e){return JB("pre",e)},eI=function(){return JB("summary",!0)},tI=function(e){return function(t,n){return Cf(t)===e}},nI=function(e,t){return VB(e)},rI=function(e,t){return t},iI=function(e){var t=Af(e),n=oB(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")},oI=function(e,t){return function(n,r){var i=ie(e,(function(e,t){return e&&t(n,r)}),!0);return i?U.some(t):U.none()}},aI=function(e,t){return CL([oI([YB],KB.none()),oI([eI()],KB.br()),oI([ZB(!0),tI(!1),rI],KB.br()),oI([ZB(!0),tI(!1)],KB.block()),oI([ZB(!0),tI(!0),rI],KB.block()),oI([ZB(!0),tI(!0)],KB.br()),oI([QB(!0),rI],KB.br()),oI([QB(!0)],KB.block()),oI([XB(!0),rI,iI],KB.block()),oI([XB(!0)],KB.br()),oI([nI],KB.br()),oI([XB(!1),rI],KB.br()),oI([iI],KB.block())],[e,!(!t||!t.shiftKey)]).getOr(KB.none())},sI=function(e,t){aI(e,t).fold((function(){UB(e,t)}),(function(){LB(e,t)}),E)},cI=function(e,t){t.isDefaultPrevented()||(t.preventDefault(),gS(e.undoManager),e.undoManager.transact((function(){!1===e.selection.isCollapsed()&&e.execCommand("Delete"),sI(e,t)})))},lI=function(e){e.on("keydown",(function(t){t.keyCode===tv.ENTER&&cI(e,t)}))},uI=function(e,t,n){_N([{keyCode:tv.END,action:bN(iN,e,!0)},{keyCode:tv.HOME,action:bN(iN,e,!1)},{keyCode:tv.END,action:bN(xN,e,!0)},{keyCode:tv.HOME,action:bN(xN,e,!1)},{keyCode:tv.END,action:bN(tF,e,!0,t)},{keyCode:tv.HOME,action:bN(tF,e,!1,t)}],n).each((function(e){n.preventDefault()}))},dI=function(e,t){e.on("keydown",(function(n){!1===n.isDefaultPrevented()&&uI(e,t,n)}))},fI=Wt().browser,pI=function(e){var t=pu((function(){e.composing||dw(e)}),0);fI.isIE()&&(e.on("keypress",(function(e){t.throttle()})),e.on("remove",(function(e){t.cancel()})))},hI=function(e){pI(e),e.on("input",(function(t){!1===t.isComposing&&dw(e)}))},mI=Wt(),gI=function(e,t,n){_N([{keyCode:tv.PAGE_UP,action:bN(tF,e,!1,t)},{keyCode:tv.PAGE_DOWN,action:bN(tF,e,!0,t)}],n)},vI=function(e){return e.stopImmediatePropagation()},bI=function(e){return e.keyCode===tv.PAGE_UP||e.keyCode===tv.PAGE_DOWN},_I=function(e,t,n){n&&!e.get()?t.on("NodeChange",vI,!0):!n&&e.get()&&t.off("NodeChange",vI),e.set(n)},yI=function(e,t){if(!mI.os.isOSX()){var n=Xl(!1);e.on("keydown",(function(t){bI(t)&&_I(n,e,!0)})),e.on("keyup",(function(r){!1===r.isDefaultPrevented()&&gI(e,t,r),bI(r)&&n.get()&&(_I(n,e,!1),e.nodeChanged())}))}},wI=function(e,t){var n=t.container(),r=t.offset();return Zr(n)?(n.insertData(r,e),U.some(Ld(n,r+e.length))):wh(t).map((function(n){var r=yn.fromText(e);return t.isAtEnd()?_r(n,r):br(n,r),Ld(r.dom,e.length)}))},xI=M(wI,la),kI=M(wI," "),CI=function(e){return function(t){return t.fold((function(t){return Xh(e.dom,Ld.before(t))}),(function(e){return Qh(e)}),(function(e){return Jh(e)}),(function(t){return Yh(e.dom,Ld.after(t))}))}},AI=function(e,t){return function(n){return Zy(e,n)?xI(t):kI(t)}},SI=function(e){return function(t){return e.selection.setRng(t.toRange()),e.nodeChanged(),!0}},EI=function(e){var t=Ld.fromRangeStart(e.selection.getRng()),n=yn.fromDom(e.getBody());if(e.selection.isCollapsed()){var r=M(HR,e),i=Ld.fromRangeStart(e.selection.getRng());return FL(r,e.getBody(),i).bind(CI(n)).bind(AI(n,t)).exists(SI(e))}return!1},TI=function(e,t){_N([{keyCode:tv.SPACEBAR,action:bN(EI,e)}],t).each((function(e){t.preventDefault()}))},OI=function(e){e.on("keydown",(function(t){!1===t.isDefaultPrevented()&&TI(e,t)}))},RI=function(e){var t=JM(e);return KF(e),ZN(e,t),nB(e,t),lI(e),OI(e),hI(e),dI(e,t),yI(e,t),t},DI=function(e){return LS(e)?Xl(null):RI(e)},LI=function(){function e(e){var t;this.lastPath=[],this.editor=e;var n=this;"onselectionchange"in e.getDoc()||e.on("NodeChange click mouseup keyup focus",(function(n){var r=e.selection.getRng(),i={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset};"nodechange"!==n.type&&lv(i,t)||e.fire("SelectionChange"),t=i})),e.on("contextmenu",(function(){e.fire("SelectionChange")})),e.on("SelectionChange",(function(){var t=e.selection.getStart(!0);!t||!en.range&&e.selection.isCollapsed()||Ag(e)&&!n.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})})),e.on("mouseup",(function(t){!t.isDefaultPrevented()&&Ag(e)&&("IMG"===e.selection.getNode().nodeName?Bo.setEditorTimeout(e,(function(){e.nodeChanged()})):e.nodeChanged())}))}return e.prototype.nodeChanged=function(e){var t,n,r,i=this.editor.selection;this.editor.initialized&&i&&!yp(this.editor)&&!this.editor.mode.isReadOnly()&&(r=this.editor.getBody(),t=i.getStart(!0)||r,t.ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(t,r)||(t=r),n=[],this.editor.dom.getParent(t,(function(e){if(e===r)return!0;n.push(e)})),e=e||{},e.element=t,e.parents=n,this.editor.fire("NodeChange",e))},e.prototype.isSameElementPath=function(e){var t,n=this.editor.$(e).parentsUntil(this.editor.getBody()).add(e);if(n.length===this.lastPath.length){for(t=n.length;t>=0;t--)if(n[t]!==this.lastPath[t])break;if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},e}(),MI=function(e){e.on("click",(function(t){e.dom.getParent(t.target,"details")&&t.preventDefault()}))},FI=function(e){e.parser.addNodeFilter("details",(function(e){Z(e,(function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")}))})),e.serializer.addNodeFilter("details",(function(e){Z(e,(function(e){var t=e.attr("data-mce-open");e.attr("open",v(t)?t:null),e.attr("data-mce-open",null)}))}))},NI=function(e){MI(e),FI(e)},BI=function(e){return Hr(e)&&ta(yn.fromDom(e))},II=function(e){var t=e.selection.getRng(),n=Ld.fromRangeStart(t),r=Ld.fromRangeEnd(t);if(Ld.isElementPosition(n)){var i=n.container();BI(i)&&Qh(i).each((function(e){return t.setStart(e.container(),e.offset())}))}if(Ld.isElementPosition(r)){i=n.container();BI(i)&&Jh(i).each((function(e){return t.setEnd(e.container(),e.offset())}))}e.selection.setRng(Fx(t))},PI=function(e){e.on("click",(function(t){t.detail>=3&&II(e)}))},$I=function(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,r=n.documentElement,i=n.defaultView;return{top:t.top+i.pageYOffset-r.clientTop,left:t.left+i.pageXOffset-r.clientLeft}},jI=function(e){return e.inline?$I(e.getBody()):{left:0,top:0}},zI=function(e){var t=e.getBody();return e.inline?{left:t.scrollLeft,top:t.scrollTop}:{left:0,top:0}},qI=function(e){var t=e.getBody(),n=e.getDoc().documentElement,r={left:t.scrollLeft,top:t.scrollTop},i={left:t.scrollLeft||n.scrollLeft,top:t.scrollTop||n.scrollTop};return e.inline?r:i},HI=function(e,t){if(t.target.ownerDocument!==e.getDoc()){var n=$I(e.getContentAreaContainer()),r=qI(e);return{left:t.pageX-n.left+r.left,top:t.pageY-n.top+r.top}}return{left:t.pageX,top:t.pageY}},UI=function(e,t,n){return{pageX:n.left-e.left+t.left,pageY:n.top-e.top+t.top}},WI=function(e,t){return UI(jI(e),zI(e),HI(e,t))},VI=ai,GI=oi,KI=function(e,t){return VI(t)&&t!==e},YI=function(e,t,n){return t!==n&&!e.dom.isChildOf(t,n)&&!VI(t)},XI=function(e){var t=e.cloneNode(!0);return t.removeAttribute("data-mce-selected"),t},QI=function(e,t,n,r){var i=e.dom,o=t.cloneNode(!0);i.setStyles(o,{width:n,height:r}),i.setAttrib(o,"data-mce-selected",null);var a=i.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return i.setStyles(a,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),i.setStyles(o,{margin:0,boxSizing:"border-box"}),a.appendChild(o),a},JI=function(e,t){e.parentNode!==t&&t.appendChild(e)},ZI=function(e,t,n,r,i,o){var a=0,s=0;e.style.left=t.pageX+"px",e.style.top=t.pageY+"px",t.pageX+n>i&&(a=t.pageX+n-i),t.pageY+r>o&&(s=t.pageY+r-o),e.style.width=n-a+"px",e.style.height=r-s+"px"},eP=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},tP=function(e){return 0===e.button},nP=function(e,t){return{pageX:t.pageX-e.relX,pageY:t.pageY+5}},rP=function(e,t){return function(n){if(tP(n)){var r=ae(t.dom.getParents(n.target),ud(VI,GI)).getOr(null);if(KI(t.getBody(),r)){var i=t.dom.getPos(r),o=t.getBody(),a=t.getDoc().documentElement;e.set({element:r,dragging:!1,screenX:n.screenX,screenY:n.screenY,maxX:(t.inline?o.scrollWidth:a.offsetWidth)-2,maxY:(t.inline?o.scrollHeight:a.offsetHeight)-2,relX:n.pageX-i.x,relY:n.pageY-i.y,width:r.offsetWidth,height:r.offsetHeight,ghost:QI(t,r,r.offsetWidth,r.offsetHeight)})}}}},iP=function(e,t){var n=Bo.throttle((function(e,n){t._selectionOverrides.hideFakeCaret(),t.selection.placeCaretAt(e,n)}),0);return t.on("remove",n.stop),function(r){return e.on((function(e){var i=Math.max(Math.abs(r.screenX-e.screenX),Math.abs(r.screenY-e.screenY));if(!e.dragging&&i>10){var o=t.fire("dragstart",{target:e.element});if(o.isDefaultPrevented())return;e.dragging=!0,t.focus()}if(e.dragging){var a=nP(e,WI(t,r));JI(e.ghost,t.getBody()),ZI(e.ghost,a,e.width,e.height,e.maxX,e.maxY),n(r.clientX,r.clientY)}}))}},oP=function(e){var t=e.getSel().getRangeAt(0),n=t.startContainer;return 3===n.nodeType?n.parentNode:n},aP=function(e,t){return function(n){e.on((function(e){if(e.dragging){if(YI(t,oP(t.selection),e.element)){var r=XI(e.element),i=t.fire("drop",{clientX:n.clientX,clientY:n.clientY});i.isDefaultPrevented()||t.undoManager.transact((function(){eP(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()}))}t.fire("dragend")}})),cP(e)}},sP=function(e,t){return function(){e.on((function(e){e.dragging&&t.fire("dragend")})),cP(e)}},cP=function(e){e.on((function(e){eP(e.ghost)})),e.clear()},lP=function(e){var t=fu(),n=zl.DOM,r=document,i=rP(t,e),o=iP(t,e),a=aP(t,e),s=sP(t,e);e.on("mousedown",i),e.on("mousemove",o),e.on("mouseup",a),n.bind(r,"mousemove",o),n.bind(r,"mouseup",s),e.on("remove",(function(){n.unbind(r,"mousemove",o),n.unbind(r,"mouseup",s)})),e.on("keydown",(function(e){e.keyCode===tv.ESC&&s()}))},uP=function(e){e.on("drop",(function(t){var n="undefined"!==typeof t.clientX?e.getDoc().elementFromPoint(t.clientX,t.clientY):null;(VI(n)||"false"===e.dom.getContentEditableParent(n))&&t.preventDefault()}))},dP=function(e){var t=function(t){if(!t.isDefaultPrevented()){var n=t.dataTransfer;n&&(X(n.types,"Files")||n.files.length>0)&&(t.preventDefault(),"drop"===t.type&&KO(e,"Dropped file type is not supported"))}},n=function(n){Jb(e,n.target)&&t(n)},r=function(){var r=zl.DOM,i=e.dom,o=document,a=e.inline?e.getBody():e.getDoc(),s=["drop","dragover"];Z(s,(function(e){r.bind(o,e,n),i.bind(a,e,t)})),e.on("remove",(function(){Z(s,(function(e){r.unbind(o,e,n),i.unbind(a,e,t)}))}))};e.on("init",(function(){Bo.setEditorTimeout(e,r,0)}))},fP=function(e){lP(e),uP(e),Ap(e)&&dP(e)},pP=function(e){var t=pu((function(){if(!e.removed&&e.getBody().contains(document.activeElement)){var t=e.selection.getRng();if(t.collapsed){var n=PD(e,t,!1);e.selection.setRng(n)}}}),0);e.on("focus",(function(){t.throttle()})),e.on("blur",(function(){t.cancel()}))},hP=function(e){e.on("init",(function(){e.on("focusin",(function(t){var n=t.target;if(ci(n)){var r=$g(e.getBody(),n),i=ai(r)?r:n;e.selection.getNode()!==i&&BD(e,i).each((function(t){return e.selection.setRng(t)}))}}))}))},mP=oi,gP=ai,vP=function(e,t){return $g(e.getBody(),t)},bP=function(e){var t,n=e.selection,r=e.dom,i=r.isBlock,o=e.getBody(),a=Yp(e,o,i,(function(){return f_(e)})),s="sel-"+r.uniqueId(),c="data-mce-selected",l=function(e){return r.hasClass(e,"mce-offscreen-selection")},u=function(e){return e!==o&&(gP(e)||ci(e))&&r.isChildOf(e,o)},d=function(e){return yy(e)||wy(e)||gy(e)||vy(e)},f=function(){var e=r.get(s);return e?e.getElementsByTagName("*")[0]:e},p=function(e){e&&n.setRng(e)},h=n.getRng,m=function(t,r,i,o){void 0===o&&(o=!0);var s=e.fire("ShowCaret",{target:r,direction:t,before:i});return s.isDefaultPrevented()?null:(o&&n.scrollIntoView(r,-1===t),a.show(i,r))},g=function(e){e.hasAttribute("data-mce-caret")&&(Oa(e),p(h()),n.scrollIntoView(e))},v=function(){e.on("mouseup",(function(t){var n=h();n.collapsed&&PO(e,t.clientX,t.clientY)&&ID(e,n,!1).each(p)})),e.on("click",(function(t){var i=vP(e,t.target);i&&(gP(i)&&(t.preventDefault(),e.focus()),mP(i)&&r.isChildOf(i,n.getNode())&&A())})),e.on("blur NewBlock",A),e.on("ResizeWindow FullscreenStateChanged",a.reposition);var s=function(e){var t=e.firstChild;if(k(t))return!1;var n=Ld.before(t);if(ri(n.getNode())&&1===e.childNodes.length)return!d(n);var r=Ih(e),i=r.next(n);return i&&!d(i)},c=function(e,t){var n=r.getParent(e,i),o=r.getParent(t,i);return n===o},g=function(t,n){var o=r.getParent(t,i),a=r.getParent(n,i);return!k(o)&&(!(t===a||!r.isChildOf(o,a)||!1!==gP(vP(e,o)))||!r.isChildOf(a,o)&&!c(o,a)&&s(o))};e.on("tap",(function(t){var n=t.target,r=vP(e,n);gP(r)?(t.preventDefault(),BD(e,r).each(C)):u(n)&&BD(e,n).each(C)}),!0),e.on("mousedown",(function(t){var i=t.target;if((i===o||"HTML"===i.nodeName||r.isChildOf(i,o))&&!1!==PO(e,t.clientX,t.clientY)){var a=vP(e,i);if(a)gP(a)?(t.preventDefault(),BD(e,a).each(C)):(A(),mP(a)&&t.shiftKey||jg(t.clientX,t.clientY,n.getRng())||(E(),n.placeCaretAt(t.clientX,t.clientY)));else if(u(i))BD(e,i).each(C);else if(!1===Jp(i)){A(),E();var s=BM(o,t.clientX,t.clientY);if(s&&!g(i,s.node)){t.preventDefault();var c=m(1,s.node,s.before,!1);p(c),e.getBody().focus()}}}})),e.on("keypress",(function(e){tv.modifierPressed(e)||gP(n.getNode())&&e.preventDefault()})),e.on("GetSelectionRange",(function(e){var n=e.range;if(t){if(!t.parentNode)return void(t=null);n=n.cloneRange(),n.selectNode(t),e.range=n}})),e.on("SetSelectionRange",(function(e){e.range=y(e.range);var t=C(e.range,e.forward);t&&(e.range=t)}));var v=function(e){return"mcepastebin"===e.id};e.on("AfterSetSelectionRange",(function(e){var t=e.range,n=t.startContainer.parentNode;_(t)||v(n)||E(),l(n)||A()})),e.on("copy",(function(e){var t=e.clipboardData;if(!e.isDefaultPrevented()&&e.clipboardData&&!en.ie){var n=f();n&&(e.preventDefault(),t.clearData(),t.setData("text/html",n.outerHTML),t.setData("text/plain",n.outerText||n.innerText))}})),fP(e),pP(e),hP(e)},b=function(e){return _a(e)||Sa(e)||Ea(e)},_=function(e){return b(e.startContainer)||b(e.endContainer)},y=function(t){var n=e.schema.getShortEndedElements(),i=r.createRng(),o=t.startContainer,a=t.startOffset,s=t.endContainer,c=t.endOffset;return Le(n,o.nodeName.toLowerCase())?0===a?i.setStartBefore(o):i.setStartAfter(o):i.setStart(o,a),Le(n,s.nodeName.toLowerCase())?0===c?i.setEndBefore(s):i.setEndAfter(s):i.setEnd(s,c),i},w=function(t,i,o){var a=e.$,c=Eo(yn.fromDom(e.getBody()),"#"+s).fold((function(){return a([])}),(function(e){return a([e.dom])}));0===c.length&&(c=a('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",s),c.appendTo(e.getBody()));var l=r.createRng();i===o&&en.ie?(c.empty().append('<p style="font-size: 0" data-mce-bogus="all"> </p>').append(i),l.setStartAfter(c[0].firstChild.firstChild),l.setEndAfter(i)):(c.empty().append(la).append(i).append(la),l.setStart(c[0].firstChild,1),l.setEnd(c[0].lastChild,0)),c.css({top:r.getPos(t,e.getBody()).y}),c[0].focus();var u=n.getSel();return u.removeAllRanges(),u.addRange(l),l},x=function(n){var i=n.cloneNode(!0),o=e.fire("ObjectSelected",{target:n,targetClone:i});if(o.isDefaultPrevented())return null;var a=w(n,o.targetClone,i),s=yn.fromDom(n);return Z(Eu(yn.fromDom(e.getBody()),"*[data-mce-selected]"),(function(e){Mn(s,e)||wi(e,c)})),r.getAttrib(n,c)||n.setAttribute(c,"1"),t=n,E(),a},C=function(e,t){if(!e)return null;if(e.collapsed){if(!_(e)){var n=t?1:-1,i=yh(n,o,e),a=i.getNode(!t);if(Jp(a))return m(n,a,!!t&&!i.isAtEnd(),!1);var s=i.getNode(t);if(Jp(s))return m(n,s,!t&&!i.isAtEnd(),!1)}return null}var c=e.startContainer,l=e.startOffset,d=e.endOffset;if(3===c.nodeType&&0===l&&gP(c.parentNode)&&(c=c.parentNode,l=r.nodeIndex(c),c=c.parentNode),1!==c.nodeType)return null;if(d===l+1&&c===e.endContainer){var f=c.childNodes[l];if(u(f))return x(f)}return null},A=function(){t&&t.removeAttribute(c),Eo(yn.fromDom(e.getBody()),"#"+s).each(Sr),t=null},S=function(){a.destroy(),t=null},E=function(){a.hide()};return en.ceFalse&&!LS(e)&&v(),{showCaret:m,showBlockCaretContainer:g,hideFakeCaret:E,destroy:S}},_P=function(e){var t=hn.each,n=tv.BACKSPACE,r=tv.DELETE,i=e.dom,o=e.selection,a=e.parser,s=en.gecko,c=en.ie,l=en.webkit,u="data:text/mce-internal,",d=c?"Text":"URL",f=function(t,n){try{e.getDoc().execCommand(t,!1,n)}catch(r){}},p=function(e){return e.isDefaultPrevented()},h=function(t){var n,r;t.dataTransfer&&(e.selection.isCollapsed()&&"IMG"===t.target.tagName&&o.select(t.target),n=e.selection.getContent(),n.length>0&&(r=u+escape(e.id)+","+escape(n),t.dataTransfer.setData(d,r)))},m=function(e){var t;return e.dataTransfer&&(t=e.dataTransfer.getData(d),t&&t.indexOf(u)>=0)?(t=t.substr(u.length).split(","),{id:unescape(t[0]),html:unescape(t[1])}):null},g=function(t,n){e.queryCommandSupported("mceInsertClipboardContent")?e.execCommand("mceInsertClipboardContent",!1,{content:t,internal:n}):e.execCommand("mceInsertContent",!1,t)},v=function(){var t=function(e){var t=i.create("body"),n=e.cloneContents();return t.appendChild(n),o.serializer.serialize(t,{format:"html"})},a=function(n){var r=t(n),o=i.createRng();o.selectNode(e.getBody());var a=t(o);return r===a};e.on("keydown",(function(t){var o,s,c=t.keyCode;if(!p(t)&&(c===r||c===n)){if(o=e.selection.isCollapsed(),s=e.getBody(),o&&!i.isEmpty(s))return;if(!o&&!a(e.selection.getRng()))return;t.preventDefault(),e.setContent(""),s.firstChild&&i.isBlock(s.firstChild)?e.selection.setCursorLocation(s.firstChild,0):e.selection.setCursorLocation(s,0),e.nodeChanged()}}))},b=function(){e.shortcuts.add("meta+a",null,"SelectAll")},_=function(){e.inline||i.bind(e.getDoc(),"mousedown mouseup",(function(t){var n;if(t.target===e.getDoc().documentElement)if(n=o.getRng(),e.getBody().focus(),"mousedown"===t.type){if(_a(n.startContainer))return;o.placeCaretAt(t.clientX,t.clientY)}else o.setRng(n)}))},y=function(){e.on("keydown",(function(t){if(!p(t)&&t.keyCode===n){if(!e.getBody().getElementsByTagName("hr").length)return;if(o.isCollapsed()&&0===o.getRng().startOffset){var r=o.getNode(),a=r.previousSibling;if("HR"===r.nodeName)return i.remove(r),void t.preventDefault();a&&a.nodeName&&"hr"===a.nodeName.toLowerCase()&&(i.remove(a),t.preventDefault())}}}))},w=function(){Range.prototype.getClientRects||e.on("mousedown",(function(t){if(!p(t)&&"HTML"===t.target.nodeName){var n=e.getBody();n.blur(),Bo.setEditorTimeout(e,(function(){n.focus()}))}}))},x=function(){e.on("click",(function(t){var n=t.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==i.getContentEditableParent(n)&&(t.preventDefault(),e.selection.select(n),e.nodeChanged()),"A"===n.nodeName&&i.hasClass(n,"mce-item-anchor")&&(t.preventDefault(),o.select(n))}))},k=function(){var n=function(){var n=i.getAttribs(o.getStart().cloneNode(!1));return function(){var r=o.getStart();r!==e.getBody()&&(i.setAttrib(r,"style",null),t(n,(function(e){r.setAttributeNode(e.cloneNode(!0))})))}},r=function(){return!o.isCollapsed()&&i.getParent(o.getStart(),i.isBlock)!==i.getParent(o.getEnd(),i.isBlock)};e.on("keypress",(function(t){var i;if(!p(t)&&(8===t.keyCode||46===t.keyCode)&&r())return i=n(),e.getDoc().execCommand("delete",!1,null),i(),t.preventDefault(),!1})),i.bind(e.getDoc(),"cut",(function(t){var i;!p(t)&&r()&&(i=n(),Bo.setEditorTimeout(e,(function(){i()})))}))},C=function(){e.on("keydown",(function(e){if(!p(e)&&e.keyCode===n&&o.isCollapsed()&&0===o.getRng().startOffset){var t=o.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}}))},A=function(){e.on("keydown",(function(t){var n,r;if(!p(t)&&t.keyCode===tv.BACKSPACE){n=o.getRng();var a=n.startContainer,s=n.startOffset,c=i.getRoot();if(r=a,n.collapsed&&0===s){while(r&&r.parentNode&&r.parentNode.firstChild===r&&r.parentNode!==c)r=r.parentNode;"BLOCKQUOTE"===r.tagName&&(e.formatter.toggle("blockquote",null,r),n=i.createRng(),n.setStart(a,0),n.setEnd(a,0),o.setRng(n))}}}))},S=function(){var t=function(){f("StyleWithCSS",!1),f("enableInlineTableEditing",!1),Zf(e)||f("enableObjectResizing",!1)};wp(e)||e.on("BeforeExecCommand mousedown",t)},T=function(){var n=function(){t(i.select("a"),(function(e){var t=e.parentNode,n=i.getRoot();if(t.lastChild===e){while(t&&!i.isBlock(t)){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}i.add(t,"br",{"data-mce-bogus":1})}}))};e.on("SetContent ExecCommand",(function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||n()}))},O=function(){Af(e)&&e.on("init",(function(){f("DefaultParagraphSeparator",Af(e))}))},R=function(){e.on("keyup focusin mouseup",(function(e){tv.modifierPressed(e)||o.normalize()}),!0)},D=function(){e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},L=function(){e.inline||e.on("keydown",(function(){document.activeElement===document.body&&e.getWin().focus()}))},M=function(){e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",(function(t){var n;if("HTML"===t.target.nodeName){if(en.ie>11)return void e.getBody().focus();n=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(n),e.selection.normalize(),e.nodeChanged()}})))},F=function(){en.mac&&e.on("keydown",(function(t){if(tv.metaKeyPressed(t)&&!t.shiftKey&&(37===t.keyCode||39===t.keyCode)){t.preventDefault();var n=e.selection.getSel();n.modify("move",37===t.keyCode?"backward":"forward","lineboundary")}}))},N=function(){f("AutoUrlDetect",!1)},B=function(){e.on("click",(function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)})),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},I=function(){e.on("init",(function(){e.dom.bind(e.getBody(),"submit",(function(e){e.preventDefault()}))}))},P=function(){a.addNodeFilter("br",(function(e){var t=e.length;while(t--)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()}))},$=function(){e.on("dragstart",(function(e){h(e)})),e.on("drop",(function(t){if(!p(t)){var n=m(t);if(n&&n.id!==e.id){t.preventDefault();var r=cv(t.x,t.y,e.getDoc());o.setRng(r),g(n.html,!0)}}}))},j=E,z=function(){if(!s||e.removed)return!1;var t=e.selection.getSel();return!t||!t.rangeCount||0===t.rangeCount},q=function(){l&&(_(),x(),I(),b(),en.iOS&&(L(),M(),B())),s&&(w(),S(),D(),F())},H=function(){A(),v(),en.windowsPhone||R(),l&&(_(),x(),O(),I(),C(),P(),en.iOS?(L(),M(),B()):b()),en.ie>=11&&(M(),C()),en.ie&&(b(),N(),$()),s&&(y(),w(),k(),S(),T(),D(),F(),C())};return LS(e)?q():H(),{refreshContentEditable:j,isHidden:z}},yP=zl.DOM,wP=function(e,t){var n=yn.fromDom(e.getBody()),r=pr(fr(n)),i=yn.fromTag("style");gi(i,"type","text/css"),wr(i,yn.fromText(t)),wr(r,i),e.on("remove",(function(){Sr(i)}))},xP=function(e){return e.inline?e.getElement().nodeName.toLowerCase():void 0},kP=function(e){return Te(e,(function(e){return!1===x(e)}))},CP=function(e){var t=e.settings;return kP({block_elements:t.block_elements,boolean_attributes:t.boolean_attributes,custom_elements:t.custom_elements,extended_valid_elements:t.extended_valid_elements,invalid_elements:t.invalid_elements,invalid_styles:t.invalid_styles,move_caret_before_on_enter_elements:t.move_caret_before_on_enter_elements,non_empty_elements:t.non_empty_elements,schema:t.schema,self_closing_elements:t.self_closing_elements,short_ended_elements:t.short_ended_elements,special:t.special,text_block_elements:t.text_block_elements,text_inline_elements:t.text_inline_elements,valid_children:t.valid_children,valid_classes:t.valid_classes,valid_elements:t.valid_elements,valid_styles:t.valid_styles,verify_html:t.verify_html,whitespace_elements:t.whitespace_elements,padd_empty_block_inline_children:t.format_empty_lines})},AP=function(e){var t=e.settings,n=e.editorUpload.blobCache;return kP({allow_conditional_comments:t.allow_conditional_comments,allow_html_data_urls:t.allow_html_data_urls,allow_svg_data_urls:t.allow_svg_data_urls,allow_html_in_named_anchor:t.allow_html_in_named_anchor,allow_script_urls:t.allow_script_urls,allow_unsafe_link_target:t.allow_unsafe_link_target,convert_fonts_to_spans:t.convert_fonts_to_spans,fix_list_elements:t.fix_list_elements,font_size_legacy_values:t.font_size_legacy_values,forced_root_block:t.forced_root_block,forced_root_block_attrs:t.forced_root_block_attrs,padd_empty_with_br:t.padd_empty_with_br,preserve_cdata:t.preserve_cdata,remove_trailing_brs:t.remove_trailing_brs,inline_styles:t.inline_styles,root_name:xP(e),validate:!0,blob_cache:n,document:e.getDoc(),images_dataimg_filter:t.images_dataimg_filter})},SP=function(e){var t=e.settings;return Ue(Ue(Ue({},AP(e)),CP(e)),kP({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope,element_format:t.element_format,entities:t.entities,entity_encoding:t.entity_encoding,indent:t.indent,indent_after:t.indent_after,indent_before:t.indent_before}))},EP=function(e){var t=yT(AP(e),e.schema);return t.addAttributeFilter("src,href,style,tabindex",(function(t,n){var r,i,o=t.length,a=e.dom,s="data-mce-"+n;while(o--)if(r=t[o],i=r.attr(n),i&&!r.attr(s)){if(0===i.indexOf("data:")||0===i.indexOf("blob:"))continue;"style"===n?(i=a.serializeStyle(a.parseStyle(i),r.name),i.length||(i=null),r.attr(s,i),r.attr(n,i)):"tabindex"===n?(r.attr(s,i),r.attr(n,null)):r.attr(s,e.convertURL(i,n,r.name))}})),t.addNodeFilter("script",(function(e){var t=e.length;while(t--){var n=e[t],r=n.attr("type")||"no/type";0!==r.indexOf("mce-")&&n.attr("type","mce-"+r)}})),e.settings.preserve_cdata&&t.addNodeFilter("#cdata",(function(t){var n=t.length;while(n--){var r=t[n];r.type=8,r.name="#comment",r.value="[CDATA["+e.dom.encode(r.value)+"]]"}})),t.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",(function(t){var n=t.length,r=e.schema.getNonEmptyElements();while(n--){var i=t[n];i.isEmpty(r)&&0===i.getAll("br").length&&(i.append(new O_("br",1)).shortEnded=!0)}})),t},TP=function(e){e.settings.auto_focus&&Bo.setEditorTimeout(e,(function(){var t;t=!0===e.settings.auto_focus?e:e.editorManager.get(e.settings.auto_focus),t.destroyed||t.focus()}),100)},OP=function(e){var t=e.dom.getRoot();e.inline||Ag(e)&&e.selection.getStart(!0)!==t||Qh(t).each((function(t){var n=t.getNode(),r=Xr(n)?Qh(n).getOr(t):t;en.browser.isIE()?Pb(e,r.toRange()):e.selection.setRng(r.toRange())}))},RP=function(e){e.bindPendingEventDelegates(),e.initialized=!0,Xg(e),e.focus(!0),OP(e),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),TP(e)},DP=function(e){return e.inline?e.ui.styleSheetLoader:e.dom.styleSheetLoader},LP=function(e,t,n){var r=[new Oo((function(n,r){return DP(e).loadAll(t,n,r)}))];return e.inline?r:r.concat([new Oo((function(t,r){return e.ui.styleSheetLoader.loadAll(n,t,r)}))])},MP=function(e){var t=DP(e),n=Xf(e),r=e.contentCSS,i=function(){t.unloadAll(r),e.inline||e.ui.styleSheetLoader.unloadAll(n)},o=function(){e.removed?i():e.on("remove",i)};if(e.contentStyles.length>0){var a="";hn.each(e.contentStyles,(function(e){a+=e+"\r\n"})),e.dom.addStyle(a)}var s=Oo.all(LP(e,r,n)).then(o).catch(o);return e.settings.content_style&&wP(e,e.settings.content_style),s},FP=function(e){var t=e.settings,n=e.getDoc(),r=e.getBody();Kg(e),t.browser_spellcheck||t.gecko_spellcheck||(n.body.spellcheck=!1,yP.setAttrib(r,"spellcheck","false")),e.quirks=_P(e),Yg(e);var i=Qf(e);void 0!==i&&(r.dir=i),t.protect&&e.on("BeforeSetContent",(function(e){hn.each(t.protect,(function(t){e.content=e.content.replace(t,(function(e){return"\x3c!--mce:protected "+escape(e)+"--\x3e"}))}))})),e.on("SetContent",(function(){e.addVisual(e.getBody())})),e.on("compositionstart compositionend",(function(t){e.composing="compositionstart"===t.type}))},NP=function(e){LS(e)||e.load({initial:!0,format:"html"}),e.startContent=e.getContent({format:"raw"})},BP=function(e){!0!==e.removed&&(NP(e),RP(e))},IP=function(e,t){var n=e.settings,r=e.getElement(),i=e.getDoc();n.inline||(e.getElement().style.visibility=e.orgVisibility),t||e.inline||(i.open(),i.write(e.iframeHTML),i.close()),e.inline&&(yP.addClass(r,"mce-content-body"),e.contentDocument=i=document,e.contentWindow=window,e.bodyElement=r,e.contentAreaContainer=r);var o=e.getBody();o.disabled=!0,e.readonly=!!n.readonly,e.readonly||(e.inline&&"static"===yP.getStyle(o,"position",!0)&&(o.style.position="relative"),o.contentEditable=e.getParam("content_editable_state",!0)),o.disabled=!1,e.editorUpload=bR(e),e.schema=zs(CP(e)),e.dom=zl(i,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,hex_colors:n.force_hex_style_colors,update_styles:!0,root_element:e.inline?e.getBody():null,collect:function(){return e.inline},schema:e.schema,contentCssCors:Hf(e),referrerPolicy:Uf(e),onSetAttrib:function(t){e.fire("SetAttrib",t)}}),e.parser=EP(e),e.serializer=MT(SP(e),e),e.selection=kE(e.dom,e.getWin(),e.serializer,e),e.annotator=Ig(e),e.formatter=TR(e),e.undoManager=LR(e),e._nodeChangeDispatcher=new LI(e),e._selectionOverrides=bP(e),IF(e),NI(e),LS(e)||PI(e);var a=DI(e);LF(e,a),HF(e),jR(e);var s=FS(e);FP(e),s.fold((function(){MP(e).then((function(){return BP(e)}))}),(function(t){e.setProgressState(!0),MP(e).then((function(){t().then((function(t){e.setProgressState(!1),BP(e)}),(function(t){e.notificationManager.open({type:"error",text:String(t)}),BP(e)}))}))}))},PP=zl.DOM,$P=function(e,t){if(document.domain!==window.location.hostname&&en.browser.isIE()){var n=dR("mce");e[n]=function(){IP(e)};var r='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+e.id+'");document.write(ed.iframeHTML);document.close();ed.'+n+"(true);})()";return PP.setAttrib(t,"src",r),!0}return!1},jP=function(e,t,n,r){var i=yn.fromTag("iframe");return vi(i,r),vi(i,{id:e+"_ifr",frameBorder:"0",allowTransparency:"true",title:t}),xu(i,"tox-edit-area__iframe"),i},zP=function(e){var t=_f(e)+"<html><head>";yf(e)!==e.documentBaseUrl&&(t+='<base href="'+e.documentBaseURI.getURI()+'" />'),t+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';var n=wf(e),r=xf(e),i=e.translate(Op(e));return kf(e)&&(t+='<meta http-equiv="Content-Security-Policy" content="'+kf(e)+'" />'),t+='</head><body id="'+n+'" class="mce-content-body '+r+'" data-id="'+e.id+'" aria-label="'+i+'"><br></body></html>',t},qP=function(e,t){var n=e.translate("Rich Text Area"),r=jP(e.id,n,t.height,bf(e)).dom;r.onload=function(){r.onload=null,e.fire("load")};var i=$P(e,r);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=r,e.iframeHTML=zP(e),PP.add(t.iframeContainer,r),i},HP=function(e,t){var n=qP(e,t);t.editorContainer&&(PP.get(t.editorContainer).style.display=e.orgDisplay,e.hidden=PP.isHidden(t.editorContainer)),e.getElement().style.display="none",PP.setAttrib(e.id,"aria-hidden","true"),n||IP(e)},UP=zl.DOM,WP=function(e,t,n){var r=HO.get(n),i=HO.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=hn.trim(n),r&&-1===hn.inArray(t,n)){if(hn.each(HO.dependencies(n),(function(n){WP(e,t,n)})),e.plugins[n])return;try{var o=new r(e,i,e.$);e.plugins[n]=o,o.init&&(o.init(e,i),t.push(n))}catch(Rz){tR(e,n,Rz)}}},VP=function(e){return e.replace(/^\-/,"")},GP=function(e){var t=[];hn.each(kp(e).split(/[ ,]/),(function(n){WP(e,t,VP(n))}))},KP=function(e){var t=hn.trim(If(e)),n=e.ui.registry.getAll().icons,r=Ue(Ue({},TO.get("default").icons),TO.get(t).icons);xe(r,(function(t,r){Le(n,r)||e.ui.registry.addIcon(r,t)}))},YP=function(e){var t=ip(e);if(v(t)){e.settings.theme=VP(t);var n=UO.get(t);e.theme=new n(e,UO.urls[t]),e.theme.init&&e.theme.init(e,UO.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}},XP=function(e){return e.theme.renderUI()},QP=function(e){var t=e.getElement(),n=ip(e),r=n(e,t);return r.editorContainer.nodeType&&(r.editorContainer.id=r.editorContainer.id||e.id+"_parent"),r.iframeContainer&&r.iframeContainer.nodeType&&(r.iframeContainer.id=r.iframeContainer.id||e.id+"_iframecontainer"),r.height=r.iframeHeight?r.iframeHeight:t.offsetHeight,r},JP=function(e){return{editorContainer:e,iframeContainer:e,api:{}}},ZP=function(e){var t=UP.create("div");return UP.insertAfter(t,e),JP(t)},e$=function(e){var t=e.getElement();return e.inline?JP(null):ZP(t)},t$=function(e){var t=e.getElement();return e.orgDisplay=t.style.display,v(ip(e))?XP(e):A(ip(e))?QP(e):e$(e)},n$=function(e,t){var n={show:U.from(t.show).getOr(E),hide:U.from(t.hide).getOr(E),disable:U.from(t.disable).getOr(E),isDisabled:U.from(t.isDisabled).getOr(P),enable:function(){e.mode.isReadOnly()||U.from(t.enable).map(I)}};e.ui=Ue(Ue({},e.ui),n)},r$=function(e){e.fire("ScriptsLoaded"),KP(e),YP(e),GP(e);var t=t$(e);n$(e,U.from(t.api).getOr({}));var n={editorContainer:t.editorContainer,iframeContainer:t.iframeContainer};return e.editorContainer=n.editorContainer?n.editorContainer:null,sR(e),e.inline?IP(e):HP(e,n)},i$=zl.DOM,o$=function(e){return"-"===e.charAt(0)},a$=function(e,t){var n=Wf(t),r=Vf(t);if(!1===lu.hasCode(n)&&"en"!==n){var i=""!==r?r:t.editorManager.baseURL+"/langs/"+n+".js";e.add(i,E,void 0,(function(){eR(t,i,n)}))}},s$=function(e,t,n,r){var i=ip(t);if(v(i)){if(!o$(i)&&!Le(UO.urls,i)){var o=dp(t);o?UO.load(i,t.documentBaseURI.toAbsolute(o)):UO.load(i,"themes/"+i+"/theme"+n+".js")}e.loadQueue((function(){UO.waitFor(i,r)}))}else r()},c$=function(e){return U.from(Pf(e)).filter((function(e){return e.length>0})).map((function(e){return{url:e,name:U.none()}}))},l$=function(e,t,n){return U.from(t).filter((function(e){return e.length>0&&!TO.has(e)})).map((function(t){return{url:e.editorManager.baseURL+"/icons/"+t+"/icons"+n+".js",name:U.some(t)}}))},u$=function(e,t,n){var r=l$(t,"default",n),i=c$(t).orThunk((function(){return l$(t,If(t),"")}));Z(ui([r,i]),(function(n){e.add(n.url,E,void 0,(function(){ZO(t,n.url,n.name.getOrUndefined())}))}))},d$=function(e,t){hn.each(Cp(e),(function(t,n){HO.load(n,t,E,void 0,(function(){JO(e,t,n)})),e.settings.plugins+=" "+n})),hn.each(kp(e).split(/[ ,]/),(function(n){if(n=hn.trim(n),n&&!HO.urls[n])if(o$(n)){n=n.substr(1,n.length);var r=HO.dependencies(n);hn.each(r,(function(n){var r={prefix:"plugins/",resource:n,suffix:"/plugin"+t+".js"},i=HO.createUrl(r,n);HO.load(i.resource,i,E,void 0,(function(){JO(e,i.prefix+i.resource+i.suffix,i.resource)}))}))}else{var i={prefix:"plugins/",resource:n,suffix:"/plugin"+t+".js"};HO.load(n,i,E,void 0,(function(){JO(e,i.prefix+i.resource+i.suffix,n)}))}}))},f$=function(e,t){var n=Yl.ScriptLoader;s$(n,e,t,(function(){a$(n,e),u$(n,e,t),d$(e,t),n.loadQueue((function(){e.removed||r$(e)}),e,(function(){e.removed||r$(e)}))}))},p$=function(e,t){return $o.forElement(e,{contentCssCors:xp(t),referrerPolicy:Uf(t)})},h$=function(e){var t=e.id;lu.setCode(Wf(e));var n=function(){i$.unbind(window,"ready",n),e.render()};if(rc.Event.domLoaded){if(e.getElement()&&en.contentEditable){var r=yn.fromDom(e.getElement()),i=xi(r);e.on("remove",(function(){ee(r.dom.attributes,(function(e){return wi(r,e.name)})),vi(r,i)})),e.ui.styleSheetLoader=p$(r,e),fp(e)?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden");var o=e.getElement().form||i$.getParent(t,"form");o&&(e.formElement=o,pp(e)&&!Jr(e.getElement())&&(i$.insertAfter(i$.create("input",{type:"hidden",name:t}),t),e.hasHiddenInput=!0),e.formEventDelegate=function(t){e.fire(t.type,t)},i$.bind(o,"submit reset",e.formEventDelegate),e.on("reset",(function(){e.resetContent()})),!hp(e)||o.submit.nodeType||o.submit.length||o._mceOldSubmit||(o._mceOldSubmit=o.submit,o.submit=function(){return e.editorManager.triggerSave(),e.setDirty(!1),o._mceOldSubmit(o)})),e.windowManager=VO(e),e.notificationManager=qO(e),mp(e)&&e.on("GetContent",(function(e){e.save&&(e.content=i$.encode(e.content))})),gp(e)&&e.on("submit",(function(){e.initialized&&e.save()})),vp(e)&&(e._beforeUnload=function(){!e.initialized||e.destroyed||e.isHidden()||e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),f$(e,e.suffix)}}else i$.bind(window,"ready",n)},m$=function(e,t){return sE(e,t)},g$={"font-size":"size","font-family":"face"},v$=function(e,t,n){var r=function(t){return Ei(t,e).orThunk((function(){return"font"===In(t)?De(g$,e).bind((function(e){return _i(t,e)})):U.none()}))},i=function(e){return Mn(yn.fromDom(t),e)};return Ok(yn.fromDom(n),(function(e){return r(e)}),i)},b$=function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},_$=function(e,t){return U.from(zl.DOM.getStyle(t,e,!0))},y$=function(e){return function(t,n){return U.from(n).map(yn.fromDom).filter(zn).bind((function(n){return v$(e,t,n.dom).or(_$(e,n.dom))})).getOr("")}},w$=y$("font-size"),x$=T(b$,y$("font-family")),k$=function(e){return Qh(e.getBody()).map((function(e){var t=e.container();return Zr(t)?t.parentNode:t}))},C$=function(e){return U.from(e.selection.getRng()).bind((function(t){var n=e.getBody(),r=t.startContainer===n&&0===t.startOffset;return r?U.none():U.from(e.selection.getStart(!0))}))},A$=function(e,t){return C$(e).orThunk(M(k$,e)).map(yn.fromDom).filter(zn).bind(t)},S$=function(e,t){return A$(e,O(U.some,t))},E$=function(e,t){if(/^[0-9.]+$/.test(t)){var n=parseInt(t,10);if(n>=1&&n<=7){var r=Df(e),i=Lf(e);return i?i[n-1]||t:r[n-1]||t}return t}return t},T$=function(e){var t=e.split(/\s*,\s*/);return J(t,(function(e){return-1===e.indexOf(" ")||lt(e,'"')||lt(e,"'")?e:"'"+e+"'"})).join(",")},O$=function(e,t){var n=E$(e,t);e.formatter.toggle("fontname",{value:T$(n)}),e.nodeChanged()},R$=function(e){return S$(e,(function(t){return x$(e.getBody(),t.dom)})).getOr("")},D$=function(e,t){e.formatter.toggle("fontsize",{value:E$(e,t)}),e.nodeChanged()},L$=function(e){return S$(e,(function(t){return w$(e.getBody(),t.dom)})).getOr("")},M$=function(e){return S$(e,(function(t){var n=yn.fromDom(e.getBody()),r=Ok(t,(function(e){return Ei(e,"line-height")}),M(Mn,n)),i=function(){var e=parseFloat(Ai(t,"line-height")),n=parseFloat(Ai(t,"font-size"));return String(e/n)};return r.getOrThunk(i)})).getOr("")},F$=function(e,t){e.formatter.toggle("lineheight",{value:String(t)}),e.nodeChanged()},N$=function(e){if("string"!==typeof e){var t=hn.extend({paste:e.paste,data:{paste:e.paste}},e);return{content:e.content,details:t}}return{content:e,details:{}}},B$=function(e,t){var n=N$(t);oE(e,n.content,n.details)},I$=hn.each,P$=hn.map,$$=hn.inArray,j$=function(){function e(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}return e.prototype.execCommand=function(e,t,n,r){var i,o=!1,a=this;if(!a.editor.removed){if("mcefocus"!==e.toLowerCase()&&(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?jb(a.editor):a.editor.focus()),r=a.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n}),r.isDefaultPrevented())return!1;var s=e.toLowerCase();if(i=a.commands.exec[s])return i(s,t,n),a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(I$(this.editor.plugins,(function(r){if(r.execCommand&&r.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),o=!0,!1})),o)return o;if(a.editor.theme&&a.editor.theme.execCommand&&a.editor.theme.execCommand(e,t,n))return a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{o=a.editor.getDoc().execCommand(e,t,n)}catch(c){}return!!o&&(a.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},e.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(n){}return!1}},e.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(n){}}},e.prototype.addCommands=function(e,t){void 0===t&&(t="exec");var n=this;I$(e,(function(e,r){I$(r.toLowerCase().split(","),(function(r){n.commands[t][r]=e}))}))},e.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,i,o,a){return t.call(n||r.editor,i,o,a)}},e.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(t){}return!1},e.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},e.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},e.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},e.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},e.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},e.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t),this.editor.nodeChanged()},e.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},e.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},e.prototype.setupCommands=function(e){var t=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":E,"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},mceFocus:function(t,n,r){g_(e,r)},"Cut,Copy,Paste":function(n){var r,i=e.getDoc();try{t.execNativeCommand(n)}catch(a){r=!0}if("paste"!==n||i.queryCommandEnabled(n)||(r=!0),r||!i.queryCommandSupported(n)){var o=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");en.mac&&(o=o.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:o,type:"error"})}},unlink:function(){if(e.selection.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");t&&e.dom.remove(t,!0)}else e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),I$("left,center,right,justify".split(","),(function(t){r!==t&&e.formatter.remove("align"+t)})),"none"!==r&&t.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r;t.execNativeCommand(n);var i=e.dom.getParent(e.selection.getNode(),"ol,ul");i&&(r=i.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(r.nodeName)&&(t.storeSelection(),e.dom.split(r,i),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,{value:r})},FontName:function(t,n,r){O$(e,r)},FontSize:function(t,n,r){D$(e,r)},LineHeight:function(t,n,r){F$(e,r)},Lang:function(e,n,r){t.toggleFormat(e,{value:r.code,customValue:r.customCode})},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,r){return t.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,r,i){var o=i||e.selection.getNode();o!==e.getBody()&&(t.storeSelection(),e.dom.remove(o,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var i=0;e.dom.getParent(e.selection.getNode(),(function(t){if(1===t.nodeType&&i++===r)return e.selection.select(t),!1}),e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){B$(e,r)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var i=e.getContent();e.setContent(i.replace(/tiny_mce_marker/g,(function(){return r})))},mceInsertNewLine:function(t,n,r){sI(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){EF(e,t)},mceRepaint:E,InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){"string"===typeof r&&(r={href:r});var i=e.dom.getParent(e.selection.getNode(),"a");r.href=r.href.replace(/ /g,"%20"),i&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,i)},selectAll:function(){var t=e.dom.getParent(e.selection.getStart(),oi);if(t){var n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return UB(e,r),!0}});var n=function(t){return function(){var n=e.selection,r=n.isCollapsed()?[e.dom.getParent(n.getNode(),e.dom.isBlock)]:n.getSelectedBlocks(),i=P$(r,(function(n){return!!e.formatter.matchNode(n,t)}));return-1!==$$(i,!0)}};t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return kF(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",(function(){return R$(e)}),this),t.addQueryValueHandler("FontSize",(function(){return L$(e)}),this),t.addQueryValueHandler("LineHeight",(function(){return M$(e)}),this)},e}(),z$="data-mce-contenteditable",q$=function(e,t,n){Au(e,t)&&!1===n?Cu(e,t):n&&xu(e,t)},H$=function(e,t,n){try{e.getDoc().execCommand(t,!1,String(n))}catch(r){}},U$=function(e,t){e.dom.contentEditable=t?"true":"false"},W$=function(e){Z(Eu(e,'*[contenteditable="true"]'),(function(e){gi(e,z$,"true"),U$(e,!1)}))},V$=function(e){Z(Eu(e,"*["+z$+'="true"]'),(function(e){wi(e,z$),U$(e,!0)}))},G$=function(e){U.from(e.selection.getNode()).each((function(e){e.removeAttribute("data-mce-selected")}))},K$=function(e){e.selection.setRng(e.selection.getRng())},Y$=function(e,t){var n=yn.fromDom(e.getBody());q$(n,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),G$(e),e.readonly=!0,U$(n,!1),W$(n)):(e.readonly=!1,U$(n,!0),V$(n),H$(e,"StyleWithCSS",!1),H$(e,"enableInlineTableEditing",!1),H$(e,"enableObjectResizing",!1),p_(e)&&e.focus(),K$(e),e.nodeChanged())},X$=function(e){return e.readonly},Q$=function(e){e.parser.addAttributeFilter("contenteditable",(function(t){X$(e)&&Z(t,(function(e){e.attr(z$,e.attr("contenteditable")),e.attr("contenteditable","false")}))})),e.serializer.addAttributeFilter(z$,(function(t){X$(e)&&Z(t,(function(e){e.attr("contenteditable",e.attr(z$))}))})),e.serializer.addTempAttr(z$)},J$=function(e){e.serializer?Q$(e):e.on("PreInit",(function(){Q$(e)}))},Z$=function(e){return"click"===e.type},ej=function(e,t){var n=function(t){return Mn(t,yn.fromDom(e.getBody()))};return To(t,"a",n).bind((function(e){return _i(e,"href")}))},tj=function(e,t){if(Z$(t)&&!tv.metaKeyPressed(t)){var n=yn.fromDom(t.target);ej(e,n).each((function(n){if(t.preventDefault(),/^#/.test(n)){var r=e.dom.select(n+',[name="'+st(n,"#")+'"]');r.length&&e.selection.scrollIntoView(r[0],!0)}else window.open(n,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")}))}},nj=function(e){e.on("ShowCaret",(function(t){X$(e)&&t.preventDefault()})),e.on("ObjectSelected",(function(t){X$(e)&&t.preventDefault()}))},rj=hn.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),ij=function(){function e(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||P}return e.isNative=function(e){return!!rj[e.toLowerCase()]},e.prototype.fire=function(e,t){var n=e.toLowerCase(),r=Ys(n,t||{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(r);var i=this.bindings[n];if(i)for(var o=0,a=i.length;o<a;o++){var s=i[o];if(!s.removed){if(s.once&&this.off(n,s.func),r.isImmediatePropagationStopped())return r;if(!1===s.func.call(this.scope,r))return r.preventDefault(),r}}return r},e.prototype.on=function(e,t,n,r){if(!1===t&&(t=P),t){var i={func:t,removed:!1};r&&hn.extend(i,r);var o=e.toLowerCase().split(" "),a=o.length;while(a--){var s=o[a],c=this.bindings[s];c||(c=[],this.toggleEvent(s,!0)),c=n?Ve([i],c,!0):Ve(Ve([],c,!0),[i],!1),this.bindings[s]=c}}return this},e.prototype.off=function(e,t){var n=this;if(e){var r=e.toLowerCase().split(" "),i=r.length;while(i--){var o=r[i],a=this.bindings[o];if(!o)return xe(this.bindings,(function(e,t){n.toggleEvent(t,!1),delete n.bindings[t]})),this;if(a){if(t){var s=te(a,(function(e){return e.func===t}));a=s.fail,this.bindings[o]=a,Z(s.pass,(function(e){e.removed=!0}))}else a.length=0;a.length||(this.toggleEvent(e,!1),delete this.bindings[o])}}}else xe(this.bindings,(function(e,t){n.toggleEvent(t,!1)})),this.bindings={};return this},e.prototype.once=function(e,t,n){return this.on(e,t,n,{once:!0})},e.prototype.has=function(e){return e=e.toLowerCase(),!(!this.bindings[e]||0===this.bindings[e].length)},e}(),oj=function(e){return e._eventDispatcher||(e._eventDispatcher=new ij({scope:e,toggleEvent:function(t,n){ij.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher},aj={fire:function(e,t,n){var r=this;if(r.removed&&"remove"!==e&&"detach"!==e)return t;var i=oj(r).fire(e,t);if(!1!==n&&r.parent){var o=r.parent();while(o&&!i.isPropagationStopped())o.fire(e,i,!1),o=o.parent()}return i},on:function(e,t,n){return oj(this).on(e,t,n)},off:function(e,t){return oj(this).off(e,t)},once:function(e,t){return oj(this).once(e,t)},hasEventListeners:function(e){return oj(this).has(e)}},sj=zl.DOM,cj=function(e,t){if("selectionchange"===t)return e.getDoc();if(!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t))return e.getDoc().documentElement;var n=np(e);return n?(e.eventRoot||(e.eventRoot=sj.select(n)[0]),e.eventRoot):e.getBody()},lj=function(e){return!e.hidden&&!X$(e)},uj=function(e,t,n){lj(e)?e.fire(t,n):X$(e)&&tj(e,n)},dj=function(e,t){var n;if(e.delegates||(e.delegates={}),!e.delegates[t]&&!e.removed){var r=cj(e,t);if(np(e)){if(pM||(pM={},e.editorManager.on("removeEditor",(function(){e.editorManager.activeEditor||pM&&(xe(pM,(function(t,n){e.dom.unbind(cj(e,n))})),pM=null)}))),pM[t])return;n=function(n){var r=n.target,i=e.editorManager.get(),o=i.length;while(o--){var a=i[o].getBody();(a===r||sj.isChildOf(r,a))&&uj(i[o],t,n)}},pM[t]=n,sj.bind(r,t,n)}else n=function(n){uj(e,t,n)},sj.bind(r,t,n),e.delegates[t]=n}},fj=Ue(Ue({},aj),{bindPendingEventDelegates:function(){var e=this;hn.each(e._pendingNativeEvents,(function(t){dj(e,t)}))},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(n.removed||(t?n.initialized?dj(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(cj(n,e),e,n.delegates[e]),delete n.delegates[e])))},unbindAllNativeEvents:function(){var e=this,t=e.getBody(),n=e.dom;e.delegates&&(xe(e.delegates,(function(t,n){e.dom.unbind(cj(e,n),n,t)})),delete e.delegates),!e.inline&&t&&n&&(t.onload=null,n.unbind(e.getWin()),n.unbind(e.getDoc())),n&&(n.unbind(t),n.unbind(e.getContainer()))}}),pj=["design","readonly"],hj=function(e,t,n,r){var i=n[t.get()],o=n[r];try{o.activate()}catch(Rz){return}i.deactivate(),i.editorReadOnly!==o.editorReadOnly&&Y$(e,o.editorReadOnly),t.set(r),Wg(e,r)},mj=function(e,t,n,r){if(r!==n.get()){if(!Le(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?hj(e,n,t,r):e.on("init",(function(){return hj(e,n,t,r)}))}},gj=function(e,t,n){var r;if(X(pj,t))throw new Error("Cannot override default mode "+t);return Ue(Ue({},e),(r={},r[t]=Ue(Ue({},n),{deactivate:function(){try{n.deactivate()}catch(Rz){}}}),r))},vj=function(e){var t=Xl("design"),n=Xl({design:{activate:E,deactivate:E,editorReadOnly:!1},readonly:{activate:E,deactivate:E,editorReadOnly:!0}});return J$(e),nj(e),{isReadOnly:function(){return X$(e)},set:function(r){return mj(e,n.get(),t,r)},get:function(){return t.get()},register:function(e,t){n.set(gj(n.get(),e,t))}}},bj=hn.each,_j=hn.explode,yj={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},wj=hn.makeMap("alt,ctrl,shift,meta,access"),xj=function(e){var t,n={};bj(_j(e.toLowerCase(),"+"),(function(e){e in wj?n[e]=!0:/^[0-9]{2,}$/.test(e)?n.keyCode=parseInt(e,10):(n.charCode=e.charCodeAt(0),n.keyCode=yj[e]||e.toUpperCase().charCodeAt(0))}));var r=[n.keyCode];for(t in wj)n[t]?r.push(t):n[t]=!1;return n.id=r.join(","),n.access&&(n.alt=!0,en.mac?n.ctrl=!0:n.shift=!0),n.meta&&(en.mac?n.meta=!0:(n.ctrl=!0,n.meta=!1)),n},kj=function(){function e(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",(function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(bj(t.shortcuts,(function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0})),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))}))}return e.prototype.add=function(e,t,n,r){var i=this,o=i.normalizeCommandFunc(n);return bj(_j(hn.trim(e)),(function(e){var n=i.createShortcut(e,t,o,r);i.shortcuts[n.id]=n})),!0},e.prototype.remove=function(e){var t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)},e.prototype.normalizeCommandFunc=function(e){var t=this,n=e;return"string"===typeof n?function(){t.editor.execCommand(n,!1,null)}:hn.isArray(n)?function(){t.editor.execCommand(n[0],n[1],n[2])}:n},e.prototype.createShortcut=function(e,t,n,r){var i=hn.map(_j(e,">"),xj);return i[i.length-1]=hn.extend(i[i.length-1],{func:n,scope:r||this.editor}),hn.extend(i[0],{desc:this.editor.translate(t),subpatterns:i.slice(1)})},e.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},e.prototype.isFunctionKey=function(e){return"keydown"===e.type&&e.keyCode>=112&&e.keyCode<=123},e.prototype.matchShortcut=function(e,t){return!!t&&(t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&(t.alt===e.altKey&&t.shift===e.shiftKey&&(!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0))))},e.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},e}(),Cj=function(){var e={},t={},n={},r={},i={},o={},a={},s=function(e,t){return function(n,r){return e[n.toLowerCase()]=Ue(Ue({},r),{type:t})}},c=function(e,t){return r[e.toLowerCase()]=t};return{addButton:s(e,"button"),addGroupToolbarButton:s(e,"grouptoolbarbutton"),addToggleButton:s(e,"togglebutton"),addMenuButton:s(e,"menubutton"),addSplitButton:s(e,"splitbutton"),addMenuItem:s(t,"menuitem"),addNestedMenuItem:s(t,"nestedmenuitem"),addToggleMenuItem:s(t,"togglemenuitem"),addAutocompleter:s(n,"autocompleter"),addContextMenu:s(i,"contextmenu"),addContextToolbar:s(o,"contexttoolbar"),addContextForm:s(o,"contextform"),addSidebar:s(a,"sidebar"),addIcon:c,getAll:function(){return{buttons:e,menuItems:t,icons:r,popups:n,contextMenus:i,contextToolbars:o,sidebars:a}}}},Aj=function(){var e=Cj();return{addAutocompleter:e.addAutocompleter,addButton:e.addButton,addContextForm:e.addContextForm,addContextMenu:e.addContextMenu,addContextToolbar:e.addContextToolbar,addIcon:e.addIcon,addMenuButton:e.addMenuButton,addMenuItem:e.addMenuItem,addNestedMenuItem:e.addNestedMenuItem,addSidebar:e.addSidebar,addSplitButton:e.addSplitButton,addToggleButton:e.addToggleButton,addGroupToolbarButton:e.addGroupToolbarButton,addToggleMenuItem:e.addToggleMenuItem,getAll:e.getAll}},Sj=zl.DOM,Ej=hn.extend,Tj=hn.each,Oj=hn.resolve,Rj=en.ie,Dj=function(){function e(e,t,n){var r=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,Ej(this,fj),this.settings=xO(this,e,this.documentBaseUrl,n.defaultSettings,t),this.settings.suffix&&(n.suffix=this.settings.suffix),this.suffix=n.suffix,this.settings.base_url&&n._setBaseUrl(this.settings.base_url),this.baseUri=n.baseURI,this.settings.referrer_policy&&(Yl.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),zl.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),uu.languageLoad=this.settings.language_load,uu.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new sT(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new kj(this),this.editorCommands=new j$(this),this.settings.cache_suffix&&(en.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:Aj(),styleSheetLoader:void 0,show:E,hide:E,enable:E,disable:E,isDisabled:P};var i=this,o=vj(i);this.mode=o,this.setMode=o.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Ml.overrideDefaults((function(){return{context:r.inline?r.getBody():r.getDoc(),element:r.getBody()}}))}return e.prototype.render=function(){h$(this)},e.prototype.focus=function(e){this.execCommand("mceFocus",!1,e)},e.prototype.hasFocus=function(){return f_(this)},e.prototype.execCallback=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,i=this,o=i.settings[e];if(o)return i.callbackLookup&&(r=i.callbackLookup[e])&&(o=r.func,r=r.scope),"string"===typeof o&&(r=o.replace(/\.\w+$/,""),r=r?Oj(r):0,o=Oj(o),i.callbackLookup=i.callbackLookup||{},i.callbackLookup[e]={func:o,scope:r}),o.apply(r||i,t)},e.prototype.translate=function(e){return lu.translate(e)},e.prototype.getParam=function(e,t,n){return SO(this,e,t,n)},e.prototype.hasPlugin=function(e,t){var n=X(kp(this).split(/[ ,]/),e);return!!n&&(!t||void 0!==HO.get(e))},e.prototype.nodeChanged=function(e){this._nodeChangeDispatcher.nodeChanged(e)},e.prototype.addCommand=function(e,t,n){this.editorCommands.addCommand(e,t,n)},e.prototype.addQueryStateHandler=function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},e.prototype.addQueryValueHandler=function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},e.prototype.addShortcut=function(e,t,n,r){this.shortcuts.add(e,t,n,r)},e.prototype.execCommand=function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},e.prototype.queryCommandState=function(e){return this.editorCommands.queryCommandState(e)},e.prototype.queryCommandValue=function(e){return this.editorCommands.queryCommandValue(e)},e.prototype.queryCommandSupported=function(e){return this.editorCommands.queryCommandSupported(e)},e.prototype.show=function(){var e=this;e.hidden&&(e.hidden=!1,e.inline?e.getBody().contentEditable="true":(Sj.show(e.getContainer()),Sj.hide(e.id)),e.load(),e.fire("show"))},e.prototype.hide=function(){var e=this,t=e.getDoc();e.hidden||(Rj&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(Sj.hide(e.getContainer()),Sj.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},e.prototype.isHidden=function(){return!!this.hidden},e.prototype.setProgressState=function(e,t){this.fire("ProgressState",{state:e,time:t})},e.prototype.load=function(e){var t,n=this,r=n.getElement();if(n.removed)return"";if(r){e=e||{},e.load=!0;var i=Jr(r)?r.value:r.innerHTML;return t=n.setContent(i,e),e.element=r,e.no_events||n.fire("LoadContent",e),e.element=r=null,t}},e.prototype.save=function(e){var t,n,r=this,i=r.getElement();if(i&&r.initialized&&!r.removed)return e=e||{},e.save=!0,e.element=i,t=e.content=r.getContent(e),e.no_events||r.fire("SaveContent",e),"raw"===e.format&&r.fire("RawSaveContent",e),t=e.content,Jr(i)?i.value=t:(!e.is_removing&&r.inline||(i.innerHTML=t),(n=Sj.getParent(r.id,"form"))&&Tj(n.elements,(function(e){if(e.name===r.id)return e.value=t,!1}))),e.element=i=null,!1!==e.set_dirty&&r.setDirty(!1),t},e.prototype.setContent=function(e,t){return BT(this,e,t)},e.prototype.getContent=function(e){return NT(this,e)},e.prototype.insertContent=function(e,t){t&&(e=Ej({content:e},t)),this.execCommand("mceInsertContent",!1,e)},e.prototype.resetContent=function(e){void 0===e?BT(this,this.startContent,{format:"raw"}):BT(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},e.prototype.isDirty=function(){return!this.isNotDirty},e.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},e.prototype.getContainer=function(){var e=this;return e.container||(e.container=Sj.get(e.editorContainer||e.id+"_parent")),e.container},e.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},e.prototype.getElement=function(){return this.targetElm||(this.targetElm=Sj.get(this.id)),this.targetElm},e.prototype.getWin=function(){var e,t=this;return t.contentWindow||(e=t.iframeElement,e&&(t.contentWindow=e.contentWindow)),t.contentWindow},e.prototype.getDoc=function(){var e,t=this;return t.contentDocument||(e=t.getWin(),e&&(t.contentDocument=e.document)),t.contentDocument},e.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},e.prototype.convertURL=function(e,t,n){var r=this,i=r.settings;return i.urlconverter_callback?r.execCallback("urlconverter_callback",e,n,!0,t):!i.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:i.relative_urls?r.documentBaseURI.toRelative(e):(e=r.documentBaseURI.toAbsolute(e,i.remove_script_host),e)},e.prototype.addVisual=function(e){m$(this,e)},e.prototype.remove=function(){qT(this)},e.prototype.destroy=function(e){HT(this,e)},e.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},e.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},e.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},e.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},e.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},e.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},e}(),Lj=zl.DOM,Mj=hn.explode,Fj=hn.each,Nj=hn.extend,Bj=0,Ij=!1,Pj=[],$j=[],jj=function(e){return"length"!==e},zj=function(e){var t=e.type;Fj(Vj.get(),(function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e);break}}))},qj=function(e){e!==Ij&&(e?Ml(window).on("resize scroll",zj):Ml(window).off("resize scroll",zj),Ij=e)},Hj=function(e){var t=$j;delete Pj[e.id];for(var n=0;n<Pj.length;n++)if(Pj[n]===e){Pj.splice(n,1);break}return $j=ne($j,(function(t){return e!==t})),Vj.activeEditor===e&&(Vj.activeEditor=$j.length>0?$j[0]:null),Vj.focusedEditor===e&&(Vj.focusedEditor=null),t.length!==$j.length},Uj=function(e){return e&&e.initialized&&!(e.getContainer()||e.getBody()).parentNode&&(Hj(e),e.unbindAllNativeEvents(),e.destroy(!0),e.removed=!0,e=null),e},Wj="CSS1Compat"!==document.compatMode,Vj=Ue(Ue({},aj),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Ml,majorVersion:"5",minorVersion:"10.9",releaseDate:"2023-11-15",editors:Pj,i18n:lu,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var e,t,n=this,r="";t=sT.getDocumentBaseUrl(document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/"));var i=window.tinymce||window.tinyMCEPreInit;if(i)e=i.base||i.baseURL,r=i.suffix;else{for(var o=document.getElementsByTagName("script"),a=0;a<o.length;a++){var s=o[a].src||"";if(""!==s){var c=s.substring(s.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(s)){-1!==c.indexOf(".min")&&(r=".min"),e=s.substring(0,s.lastIndexOf("/"));break}}}if(!e&&document.currentScript){s=document.currentScript.src;-1!==s.indexOf(".min")&&(r=".min"),e=s.substring(0,s.lastIndexOf("/"))}}n.baseURL=new sT(t).toAbsolute(e),n.documentBaseURL=t,n.baseURI=new sT(n.baseURL),n.suffix=r,n_(n)},overrideDefaults:function(e){var t=e.base_url;t&&this._setBaseUrl(t);var n=e.suffix;e.suffix&&(this.suffix=n),this.defaultSettings=e;var r=e.plugin_base_urls;void 0!==r&&xe(r,(function(e,t){uu.PluginManager.urls[t]=e}))},init:function(e){var t,n=this,r=hn.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),i=function(e,t){return e.inline&&t.tagName.toLowerCase()in r},o=function(e){var t=e.id;return t||(t=De(e,"name").filter((function(e){return!Lj.get(e)})).getOrThunk(Lj.uniqueId),e.setAttribute("id",t)),t},a=function(t){var r=e[t];if(r)return r.apply(n,[])},s=function(e,t){return t.constructor===RegExp?t.test(e.className):Lj.hasClass(e,t)},c=function(e){var t=[];if(en.browser.isIE()&&en.browser.version.major<11)return nR("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(Wj)return nR("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(e.types)return Fj(e.types,(function(e){t=t.concat(Lj.select(e.selector))})),t;if(e.selector)return Lj.select(e.selector);if(e.target)return[e.target];switch(e.mode){case"exact":var n=e.elements||"";n.length>0&&Fj(Mj(n),(function(e){var n=Lj.get(e);n?t.push(n):Fj(document.forms,(function(n){Fj(n.elements,(function(n){n.name===e&&(e="mce_editor_"+Bj++,Lj.setAttrib(n,"id",e),t.push(n))}))}))}));break;case"textareas":case"specific_textareas":Fj(Lj.select("textarea"),(function(n){e.editor_deselector&&s(n,e.editor_deselector)||e.editor_selector&&!s(n,e.editor_selector)||t.push(n)}));break}return t},l=function(e){t=e},u=function(){var t,r=0,s=[],d=function(e,i,o){var a=new Dj(e,i,n);s.push(a),a.on("init",(function(){++r===t.length&&l(s)})),a.targetElm=a.targetElm||o,a.render()};Lj.unbind(window,"ready",u),a("onpageload"),t=Ml.unique(c(e)),e.types?Fj(e.types,(function(n){hn.each(t,(function(t){return!Lj.is(t,n.selector)||(d(o(t),Nj({},e,n),t),!1)}))})):(hn.each(t,(function(e){Uj(n.get(e.id))})),t=hn.grep(t,(function(e){return!n.get(e.id)})),0===t.length?l([]):Fj(t,(function(t){i(e,t)?nR("Could not initialize inline editor on invalid inline target element",t):d(o(t),e,t)})))};return n.settings=e,Lj.bind(window,"ready",u),new Oo((function(e){t?e(t):l=function(t){e(t)}}))},get:function(e){return 0===arguments.length?$j.slice(0):v(e)?ae($j,(function(t){return t.id===e})).getOr(null):S(e)&&$j[e]?$j[e]:null},add:function(e){var t=this,n=Pj[e.id];return n===e||(null===t.get(e.id)&&(jj(e.id)&&(Pj[e.id]=e),Pj.push(e),$j.push(e)),qj(!0),t.activeEditor=e,t.fire("AddEditor",{editor:e}),hM||(hM=function(e){var n=t.fire("BeforeUnload");if(n.returnValue)return e.preventDefault(),e.returnValue=n.returnValue,n.returnValue},window.addEventListener("beforeunload",hM))),e},createEditor:function(e,t){return this.add(new Dj(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!v(e))return n=e,y(r.get(n.id))?null:(Hj(n)&&r.fire("RemoveEditor",{editor:n}),0===$j.length&&window.removeEventListener("beforeunload",hM),n.remove(),qj($j.length>0),n);Fj(Lj.select(e),(function(e){n=r.get(e.id),n&&r.remove(n)}))}else for(t=$j.length-1;t>=0;t--)r.remove($j[t])},execCommand:function(e,t,n){var r=this,i=r.get(n);switch(e){case"mceAddEditor":return r.get(n)||new Dj(n,r.settings,r).render(),!0;case"mceRemoveEditor":return i&&i.remove(),!0;case"mceToggleEditor":return i?(i.isHidden()?i.show():i.hide(),!0):(r.execCommand("mceAddEditor",!1,n),!0)}return!!r.activeEditor&&r.activeEditor.execCommand(e,t,n)},triggerSave:function(){Fj($j,(function(e){e.save()}))},addI18n:function(e,t){lu.add(e,t)},translate:function(e){return lu.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!==e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e},_setBaseUrl:function(e){this.baseURL=new sT(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new sT(this.baseURL)}});Vj.setup();var Gj,Kj,Yj=Math.min,Xj=Math.max,Qj=Math.round,Jj=function(e,t,n){var r=t.x,i=t.y,o=e.w,a=e.h,s=t.w,c=t.h,l=(n||"").split("");return"b"===l[0]&&(i+=c),"r"===l[1]&&(r+=s),"c"===l[0]&&(i+=Qj(c/2)),"c"===l[1]&&(r+=Qj(s/2)),"b"===l[3]&&(i-=a),"r"===l[4]&&(r-=o),"c"===l[3]&&(i-=Qj(a/2)),"c"===l[4]&&(r-=Qj(o/2)),rz(r,i,o,a)},Zj=function(e,t,n,r){var i,o;for(o=0;o<r.length;o++)if(i=Jj(e,t,r[o]),i.x>=n.x&&i.x+i.w<=n.w+n.x&&i.y>=n.y&&i.y+i.h<=n.h+n.y)return r[o];return null},ez=function(e,t,n){return rz(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},tz=function(e,t){var n=Xj(e.x,t.x),r=Xj(e.y,t.y),i=Yj(e.x+e.w,t.x+t.w),o=Yj(e.y+e.h,t.y+t.h);return i-n<0||o-r<0?null:rz(n,r,i-n,o-r)},nz=function(e,t,n){var r=e.x,i=e.y,o=e.x+e.w,a=e.y+e.h,s=t.x+t.w,c=t.y+t.h,l=Xj(0,t.x-r),u=Xj(0,t.y-i),d=Xj(0,o-s),f=Xj(0,a-c);return r+=l,i+=u,n&&(o+=l,a+=u,r-=d,i-=f),o-=d,a-=f,rz(r,i,o-r,a-i)},rz=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},iz=function(e){return rz(e.left,e.top,e.width,e.height)},oz={inflate:ez,relativePosition:Jj,findBestRelativePosition:Zj,intersect:tz,clamp:nz,create:rz,fromClientRect:iz},az=function(e,t,n){void 0===n&&(n=1e3);var r=!1,i=null,o=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];r||(r=!0,null!==i&&(clearTimeout(i),i=null),e.apply(null,t))}},a=o(e),s=o(t),c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];r||null!==i||(i=setTimeout((function(){return s.apply(null,e)}),n))};return{start:c,resolve:a,reject:s}},sz=function(){var e={},t={},n=function(n,r){var i='Script at URL "'+r+'" failed to load',o='Script at URL "'+r+"\" did not call `tinymce.Resource.add('"+n+"', data)` within 1 second";if(void 0!==e[n])return e[n];var a=new Oo((function(e,a){var s=az(e,a);t[n]=s.resolve,Yl.ScriptLoader.loadScript(r,(function(){return s.start(o)}),(function(){return s.reject(i)}))}));return e[n]=a,a},r=function(n,r){void 0!==t[n]&&(t[n](r),delete t[n]),e[n]=Oo.resolve(r)};return{load:n,add:r}},cz=sz(),lz=hn.each,uz=hn.extend,dz=function(){};dz.extend=Gj=function(e){var t=this,n=t.prototype,r=function(){var e,t,n,r=this;if(!Kj&&(r.init&&r.init.apply(r,arguments),t=r.Mixins,t)){e=t.length;while(e--)n=t[e],n.init&&n.init.apply(r,arguments)}},i=function(){return this},o=function(e,t){return function(){var r=this,i=r._super;r._super=n[e];var o=t.apply(r,arguments);return r._super=i,o}};Kj=!0;var a=new t;return Kj=!1,e.Mixins&&(lz(e.Mixins,(function(t){for(var n in t)"init"!==n&&(e[n]=t[n])})),n.Mixins&&(e.Mixins=n.Mixins.concat(e.Mixins))),e.Methods&&lz(e.Methods.split(","),(function(t){e[t]=i})),e.Properties&&lz(e.Properties.split(","),(function(t){var n="_"+t;e[t]=function(e){var t=this;return void 0!==e?(t[n]=e,t):t[n]}})),e.Statics&&lz(e.Statics,(function(e,t){r[t]=e})),e.Defaults&&n.Defaults&&(e.Defaults=uz({},n.Defaults,e.Defaults)),xe(e,(function(e,t){"function"===typeof e&&n[t]?a[t]=o(t,e):a[t]=e})),r.prototype=a,r.constructor=r,r.extend=Gj,r};var fz,pz=Math.min,hz=Math.max,mz=Math.round,gz=function(e){var t={},n=0,r=0,i=0,o=function(e,t,n){var r,i,o;r=0,i=0,o=0,e/=255,t/=255,n/=255;var a=pz(e,pz(t,n)),s=hz(e,hz(t,n));if(a===s)return o=a,{h:0,s:0,v:100*o};var c=e===a?t-n:n===a?e-t:n-e;return r=e===a?3:n===a?1:5,r=60*(r-c/(s-a)),i=(s-a)/s,o=s,{h:mz(r),s:mz(100*i),v:mz(100*o)}},a=function(e,t,o){if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,o=parseInt(o,10)/100,t=hz(0,pz(t,1)),o=hz(0,pz(o,1)),0!==t){var a=e/60,s=o*t,c=s*(1-Math.abs(a%2-1)),l=o-s;switch(Math.floor(a)){case 0:n=s,r=c,i=0;break;case 1:n=c,r=s,i=0;break;case 2:n=0,r=s,i=c;break;case 3:n=0,r=c,i=s;break;case 4:n=c,r=0,i=s;break;case 5:n=s,r=0,i=c;break;default:n=r=i=0}n=mz(255*(n+l)),r=mz(255*(r+l)),i=mz(255*(i+l))}else n=r=i=mz(255*o)},s=function(){var e=function(e){return e=parseInt(e,10).toString(16),e.length>1?e:"0"+e};return"#"+e(n)+e(r)+e(i)},c=function(){return{r:n,g:r,b:i}},l=function(){return o(n,r,i)},u=function(e){var o;return"object"===typeof e?"r"in e?(n=e.r,r=e.g,i=e.b):"v"in e&&a(e.h,e.s,e.v):(o=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(n=parseInt(o[1],10),r=parseInt(o[2],10),i=parseInt(o[3],10)):(o=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(n=parseInt(o[1],16),r=parseInt(o[2],16),i=parseInt(o[3],16)):(o=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(n=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),i=parseInt(o[3]+o[3],16)),n=n<0?0:n>255?255:n,r=r<0?0:r>255?255:r,i=i<0?0:i>255?255:i,t};return e&&u(e),t.toRgb=c,t.toHsv=l,t.toHex=s,t.parse=u,t},vz=function(e){var t=JSON.stringify(e);return v(t)?t.replace(/[\u0080-\uFFFF]/g,(function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t})):t},bz={serialize:vz,parse:function(e){try{return JSON.parse(e)}catch(t){}}},_z={callbacks:{},count:0,send:function(e){var t=this,n=zl.DOM,r=void 0!==e.count?e.count:t.count,i="tinymce_jsonp_"+r;t.callbacks[r]=function(o){n.remove(i),delete t.callbacks[r],e.callback(o)},n.add(n.doc.body,"script",{id:i,src:e.url,type:"text/javascript"}),t.count++}},yz=Ue(Ue({},aj),{send:function(e){var t,n=0,r=function(){!e.async||4===t.readyState||n++>1e4?(e.success&&n<1e4&&200===t.status?e.success.call(e.success_scope,""+t.responseText,t,e):e.error&&e.error.call(e.error_scope,n>1e4?"TIMED_OUT":"GENERAL",t,e),t=null):Bo.setTimeout(r,10)};if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=!1!==e.async,e.data=e.data||"",yz.fire("beforeInitialize",{settings:e}),t=new XMLHttpRequest,t.overrideMimeType&&t.overrideMimeType(e.content_type),t.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.crossDomain&&(t.withCredentials=!0),e.content_type&&t.setRequestHeader("Content-Type",e.content_type),e.requestheaders&&hn.each(e.requestheaders,(function(e){t.setRequestHeader(e.key,e.value)})),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t=yz.fire("beforeSend",{xhr:t,settings:e}).xhr,t.send(e.data),!e.async)return r();Bo.setTimeout(r,10)}}),wz=hn.extend,xz=function(){function e(e){this.settings=wz({},e),this.count=0}return e.sendRPC=function(t){return(new e).send(t)},e.prototype.send=function(e){var t=e.error,n=e.success,r=wz(this.settings,e);r.success=function(e,i){e=bz.parse(e),"undefined"===typeof e&&(e={error:"JSON Parse error."}),e.error?t.call(r.error_scope||r.scope,e.error,i):n.call(r.success_scope||r.scope,e.result)},r.error=function(e,n){t&&t.call(r.error_scope||r.scope,e,n)},r.data=bz.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),r.content_type="application/json",yz.send(r)},e}(),kz=function(){return function(){var e={},t=[],n={getItem:function(t){var n=e[t];return n||null},setItem:function(n,r){t.push(n),e[n]=String(r)},key:function(e){return t[e]},removeItem:function(n){t=t.filter((function(e){return e===n})),delete e[n]},clear:function(){t=[],e={}},length:0};return Object.defineProperty(n,"length",{get:function(){return t.length},configurable:!1,enumerable:!1}),n}()};try{var Cz="__storage_test__";fz=window.localStorage,fz.setItem(Cz,Cz),fz.removeItem(Cz)}catch(Rz){fz=kz()}var Az=fz,Sz={geom:{Rect:oz},util:{Promise:Oo,Delay:Bo,Tools:hn,VK:tv,URI:sT,Class:dz,EventDispatcher:ij,Observable:aj,I18n:lu,XHR:yz,JSON:bz,JSONRequest:xz,JSONP:_z,LocalStorage:Az,Color:gz,ImageUploader:gR},dom:{EventUtils:rc,Sizzle:zc,DomQuery:Ml,TreeWalker:jo,TextSeeker:Yu,DOMUtils:zl,ScriptLoader:Yl,RangeUtils:Cv,Serializer:MT,StyleSheetLoader:Io,ControlSelection:rv,BookmarkManager:Pg,Selection:kE,Event:rc.Event},html:{Styles:Hs,Entities:Ts,Node:O_,Schema:zs,SaxParser:mT,DomParser:yT,Writer:J_,Serializer:Z_},Env:en,AddOnManager:uu,Annotator:Ig,Formatter:TR,UndoManager:LR,EditorCommands:j$,WindowManager:VO,NotificationManager:qO,EditorObservable:fj,Shortcuts:kj,Editor:Dj,FocusManager:qb,EditorManager:Vj,DOM:zl.DOM,ScriptLoader:Yl.ScriptLoader,PluginManager:HO,ThemeManager:UO,IconManager:TO,Resource:cz,trim:hn.trim,isArray:hn.isArray,is:hn.is,toArray:hn.toArray,makeMap:hn.makeMap,each:hn.each,map:hn.map,grep:hn.grep,inArray:hn.inArray,extend:hn.extend,create:hn.create,walk:hn.walk,createNS:hn.createNS,resolve:hn.resolve,explode:hn.explode,_addCacheSuffix:hn._addCacheSuffix,isOpera:en.opera,isWebKit:en.webkit,isIE:en.ie,isGecko:en.gecko,isMac:en.mac},Ez=hn.extend(Vj,Sz),Tz=function(t){try{e.exports=t}catch(n){}},Oz=function(e){window.tinymce=e,window.tinyMCE=e};Oz(Ez),Tz(Ez)})()}).call(this,n("c8ba"))},e58c:function(e,t,n){"use strict";var r=n("2ba4"),i=n("fc6a"),o=n("5926"),a=n("07fa"),s=n("a640"),c=Math.min,l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),f=u||!d;e.exports=f?function(e){if(u)return r(l,this,arguments)||0;var t=i(this),n=a(t),s=n-1;for(arguments.length>1&&(s=c(s,o(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:l},e5cb:function(e,t,n){"use strict";var r=n("d066"),i=n("1a2d"),o=n("9112"),a=n("3a9b"),s=n("d2bb"),c=n("e893"),l=n("aeb0"),u=n("7156"),d=n("e391"),f=n("ab36"),p=n("6f19"),h=n("83ab"),m=n("c430");e.exports=function(e,t,n,g){var v="stackTraceLimit",b=g?2:1,_=e.split("."),y=_[_.length-1],w=r.apply(null,_);if(w){var x=w.prototype;if(!m&&i(x,"cause")&&delete x.cause,!n)return w;var k=r("Error"),C=t((function(e,t){var n=d(g?t:e,void 0),r=g?new w(e):new w;return void 0!==n&&o(r,"message",n),p(r,C,r.stack,2),this&&a(x,this)&&u(r,this,C),arguments.length>b&&f(r,arguments[b]),r}));if(C.prototype=x,"Error"!==y?s?s(C,k):c(C,k,{name:!0}):h&&v in w&&(l(C,w,v),l(C,w,"prepareStackTrace")),c(C,w),!m)try{x.name!==y&&o(x,"name",y),x.constructor=C}catch(A){}return C}}},e667:function(e,t,n){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6cf:function(e,t,n){"use strict";n("5e7e"),n("14e5"),n("cc98"),n("3529"),n("f22b"),n("7149")},e81e:function(e,t,n){e.exports=!n("961e")&&!n("8997")((function(){return 7!=Object.defineProperty(n("3524")("div"),"a",{get:function(){return 7}}).a}))},e866:function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));const r={type(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"},Undef(e){return void 0===e||null===e},Element(e){return"object"===typeof e&&null!==e&&1===e.nodeType&&!r.Object(e)},trueArray(e){return Array.isArray(e)&&e.length>0},Function(e){const t=this.getType(e);return"Function"===t||"AsyncFunction"===t},getType(e){const t=Object.prototype.toString.call(e);return/^\[object (.*)\]$/.exec(t)[1]},empty(e){return void 0===e||null===e||(!(!Array.isArray(e)||!Array.isArray(e)||e.length)||"string"===typeof e&&!e)}};function i(e,t){return{}.hasOwnProperty.call(e,t)}["Date","Object","String","Boolean","Array","Number"].forEach(e=>{r[e]=function(t){return r.type(t,e)}}),t["a"]=r},e893:function(e,t,n){"use strict";var r=n("1a2d"),i=n("56ef"),o=n("06cf"),a=n("9bf2");e.exports=function(e,t,n){for(var s=i(t),c=a.f,l=o.f,u=0;u<s.length;u++){var d=s[u];r(e,d)||n&&r(n,d)||c(e,d,l(t,d))}}},e8b5:function(e,t,n){"use strict";var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"===r(e)}},e8ff:function(e,t){e.exports.id="ace/mode/json_worker",e.exports.src='"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.column<point2.column;return point1.row<point2.row||point1.row==point2.row&&bColIsAfter}function $getTransformedPoint(delta,point,moveIfEqual){var deltaIsInsert="insert"==delta.action,deltaRowShift=(deltaIsInsert?1:-1)*(delta.end.row-delta.start.row),deltaColShift=(deltaIsInsert?1:-1)*(delta.end.column-delta.start.column),deltaStart=delta.start,deltaEnd=deltaIsInsert?deltaStart:delta.end;return $pointsInOrder(point,deltaStart,moveIfEqual)?{row:point.row,column:point.column}:$pointsInOrder(deltaEnd,point,!moveIfEqual)?{row:point.row+deltaRowShift,column:point.column+(point.row==deltaEnd.row?deltaColShift:0)}:{row:deltaStart.row,column:deltaStart.column}}oop.implement(this,EventEmitter),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(delta){if(!(delta.start.row==delta.end.row&&delta.start.row!=this.row||delta.start.row>this.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, [\'\', \'\']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/\'/g,"&#39;").replace(/</g,"&#60;")},exports.getMatchOffsets=function(string,regExp){var matches=[];return string.replace(regExp,function(str){matches.push({offset:arguments[arguments.length-2],length:str.length})}),matches},exports.deferredCall=function(fcn){var timer=null,callback=function(){timer=null,fcn()},deferred=function(timeout){return deferred.cancel(),timer=setTimeout(callback,timeout||0),deferred};return deferred.schedule=deferred,deferred.call=function(){return this.cancel(),fcn(),deferred},deferred.cancel=function(){return clearTimeout(timer),timer=null,deferred},deferred.isPending=function(){return timer},deferred},exports.delayedCall=function(fcn,defaultTimeout){var timer=null,callback=function(){timer=null,fcn()},_self=function(timeout){null==timer&&(timer=setTimeout(callback,timeout||defaultTimeout))};return _self.delay=function(timeout){timer&&clearTimeout(timer),timer=setTimeout(callback,timeout||defaultTimeout)},_self.schedule=_self,_self.call=function(){this.cancel(),fcn()},_self.cancel=function(){timer&&clearTimeout(timer),timer=null},_self.isPending=function(){return timer},_self}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(acequire,exports){"use strict";acequire("../range").Range;var Document=acequire("../document").Document,lang=acequire("../lib/lang"),Mirror=exports.Mirror=function(sender){this.sender=sender;var doc=this.doc=new Document(""),deferredUpdate=this.deferredUpdate=lang.delayedCall(this.onUpdate.bind(this)),_self=this;sender.on("change",function(e){var data=e.data;if(data[0].start)doc.applyDeltas(data);else for(var i=0;data.length>i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/json/json_parse",["require","exports","module"],function(){"use strict";var at,ch,text,value,escapee={\'"\':\'"\',"\\\\":"\\\\","/":"/",b:"\\b",f:"\\f",n:"\\n",r:"\\r",t:"\t"},error=function(m){throw{name:"SyntaxError",message:m,at:at,text:text}},next=function(c){return c&&c!==ch&&error("Expected \'"+c+"\' instead of \'"+ch+"\'"),ch=text.charAt(at),at+=1,ch},number=function(){var number,string="";for("-"===ch&&(string="-",next("-"));ch>="0"&&"9">=ch;)string+=ch,next();if("."===ch)for(string+=".";next()&&ch>="0"&&"9">=ch;)string+=ch;if("e"===ch||"E"===ch)for(string+=ch,next(),("-"===ch||"+"===ch)&&(string+=ch,next());ch>="0"&&"9">=ch;)string+=ch,next();return number=+string,isNaN(number)?(error("Bad number"),void 0):number},string=function(){var hex,i,uffff,string="";if(\'"\'===ch)for(;next();){if(\'"\'===ch)return next(),string;if("\\\\"===ch)if(next(),"u"===ch){for(uffff=0,i=0;4>i&&(hex=parseInt(next(),16),isFinite(hex));i+=1)uffff=16*uffff+hex;string+=String.fromCharCode(uffff)}else{if("string"!=typeof escapee[ch])break;string+=escapee[ch]}else string+=ch}error("Bad string")},white=function(){for(;ch&&" ">=ch;)next()},word=function(){switch(ch){case"t":return next("t"),next("r"),next("u"),next("e"),!0;case"f":return next("f"),next("a"),next("l"),next("s"),next("e"),!1;case"n":return next("n"),next("u"),next("l"),next("l"),null}error("Unexpected \'"+ch+"\'")},array=function(){var array=[];if("["===ch){if(next("["),white(),"]"===ch)return next("]"),array;for(;ch;){if(array.push(value()),white(),"]"===ch)return next("]"),array;next(","),white()}}error("Bad array")},object=function(){var key,object={};if("{"===ch){if(next("{"),white(),"}"===ch)return next("}"),object;for(;ch;){if(key=string(),white(),next(":"),Object.hasOwnProperty.call(object,key)&&error(\'Duplicate key "\'+key+\'"\'),object[key]=value(),white(),"}"===ch)return next("}"),object;next(","),white()}}error("Bad object")};return value=function(){switch(white(),ch){case"{":return object();case"[":return array();case\'"\':return string();case"-":return number();default:return ch>="0"&&"9">=ch?number():word()}},function(source,reviver){var result;return text=source,at=0,ch=" ",result=value(),white(),ch&&error("Syntax error"),"function"==typeof reviver?function walk(holder,key){var k,v,value=holder[key];if(value&&"object"==typeof value)for(k in value)Object.hasOwnProperty.call(value,k)&&(v=walk(value,k),void 0!==v?value[k]=v:delete value[k]);return reviver.call(holder,key,value)}({"":result},""):result}}),ace.define("ace/mode/json_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/json/json_parse"],function(acequire,exports){"use strict";var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,parse=acequire("./json/json_parse"),JsonWorker=exports.JsonWorker=function(sender){Mirror.call(this,sender),this.setTimeout(200)};oop.inherits(JsonWorker,Mirror),function(){this.onUpdate=function(){var value=this.doc.getValue(),errors=[];try{value&&parse(value)}catch(e){var pos=this.doc.indexToPosition(e.at-1);errors.push({row:pos.row,column:pos.column,text:e.message,type:"error"})}this.sender.emit("annotate",errors)}}.call(JsonWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0\n}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != \'object\'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws="\t\\n\v\\f\\r   ᠎              \\u2028\\u2029\ufeff";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can\'t convert "+o+" to object");return Object(o)}});'},e91f:function(e,t,n){"use strict";var r=n("ebb5"),i=n("4d64").indexOf,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("indexOf",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},e95a:function(e,t,n){"use strict";var r=n("b622"),i=n("3f8c"),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},e9c4:function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("2ba4"),a=n("c65b"),s=n("e330"),c=n("d039"),l=n("1626"),u=n("d9b5"),d=n("f36a"),f=n("e267"),p=n("04f8"),h=String,m=i("JSON","stringify"),g=s(/./.exec),v=s("".charAt),b=s("".charCodeAt),_=s("".replace),y=s(1..toString),w=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,C=!p||c((function(){var e=i("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))})),A=c((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),S=function(e,t){var n=d(arguments),r=f(t);if(l(r)||void 0!==e&&!u(e))return n[1]=function(e,t){if(l(r)&&(t=a(r,this,h(e),t)),!u(t))return t},o(m,null,n)},E=function(e,t,n){var r=v(n,t-1),i=v(n,t+1);return g(x,e)&&!g(k,i)||g(k,e)&&!g(x,r)?"\\u"+y(b(e,0),16):e};m&&r({target:"JSON",stat:!0,arity:3,forced:C||A},{stringify:function(e,t,n){var r=d(arguments),i=o(C?S:m,null,r);return A&&"string"==typeof i?_(i,w,E):i}})},ea34:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},eac5:function(e,t,n){"use strict";var r=n("861d"),i=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&i(e)===e}},ebb5:function(e,t,n){"use strict";var r,i,o,a=n("4b11"),s=n("83ab"),c=n("da84"),l=n("1626"),u=n("861d"),d=n("1a2d"),f=n("f5df"),p=n("0d51"),h=n("9112"),m=n("cb2d"),g=n("edd0"),v=n("3a9b"),b=n("e163"),_=n("d2bb"),y=n("b622"),w=n("90e3"),x=n("69f3"),k=x.enforce,C=x.get,A=c.Int8Array,S=A&&A.prototype,E=c.Uint8ClampedArray,T=E&&E.prototype,O=A&&b(A),R=S&&b(S),D=Object.prototype,L=c.TypeError,M=y("toStringTag"),F=w("TYPED_ARRAY_TAG"),N="TypedArrayConstructor",B=a&&!!_&&"Opera"!==f(c.opera),I=!1,P={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},$={BigInt64Array:8,BigUint64Array:8},j=function(e){if(!u(e))return!1;var t=f(e);return"DataView"===t||d(P,t)||d($,t)},z=function(e){var t=b(e);if(u(t)){var n=C(t);return n&&d(n,N)?n[N]:z(t)}},q=function(e){if(!u(e))return!1;var t=f(e);return d(P,t)||d($,t)},H=function(e){if(q(e))return e;throw new L("Target is not a typed array")},U=function(e){if(l(e)&&(!_||v(O,e)))return e;throw new L(p(e)+" is not a typed array constructor")},W=function(e,t,n,r){if(s){if(n)for(var i in P){var o=c[i];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(a){try{o.prototype[e]=t}catch(l){}}}R[e]&&!n||m(R,e,n?t:B&&S[e]||t,r)}},V=function(e,t,n){var r,i;if(s){if(_){if(n)for(r in P)if(i=c[r],i&&d(i,e))try{delete i[e]}catch(o){}if(O[e]&&!n)return;try{return m(O,e,n?t:B&&O[e]||t)}catch(o){}}for(r in P)i=c[r],!i||i[e]&&!n||m(i,e,t)}};for(r in P)i=c[r],o=i&&i.prototype,o?k(o)[N]=i:B=!1;for(r in $)i=c[r],o=i&&i.prototype,o&&(k(o)[N]=i);if((!B||!l(O)||O===Function.prototype)&&(O=function(){throw new L("Incorrect invocation")},B))for(r in P)c[r]&&_(c[r],O);if((!B||!R||R===D)&&(R=O.prototype,B))for(r in P)c[r]&&_(c[r].prototype,R);if(B&&b(T)!==R&&_(T,R),s&&!d(R,M))for(r in I=!0,g(R,M,{configurable:!0,get:function(){return u(this)?this[F]:void 0}}),P)c[r]&&h(c[r],F,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:B,TYPED_ARRAY_TAG:I&&F,aTypedArray:H,aTypedArrayConstructor:U,exportTypedArrayMethod:W,exportTypedArrayStaticMethod:V,getTypedArrayConstructor:z,isView:j,isTypedArray:q,TypedArray:O,TypedArrayPrototype:R}},edd0:function(e,t,n){"use strict";var r=n("13d2"),i=n("9bf2");e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},ef08:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},ef1f:function(e,t){(function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,t){e.focus(),e.undoManager.transact((function(){e.setContent(t)})),e.selection.setCursorLocation(),e.nodeChanged()},n=function(e){return e.getContent({source_view:!0})},r=function(e){var r=n(e);e.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:r},onSubmit:function(n){t(e,n.getData().code),n.close()}})},i=function(e){e.addCommand("mceCodeEditor",(function(){r(e)}))},o=function(e){var t=function(){return e.execCommand("mceCodeEditor")};e.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:t}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:t})};function a(){e.add("code",(function(e){return i(e),o(e),{}}))}a()})()},ef55:function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="./",t(t.s=26)}([function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}))).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t){e.exports=function(e,t,n,r,i){var o,a=e=e||{},s=typeof e.default;"object"!==s&&"function"!==s||(o=e,a=e.default);var c,l="function"==typeof a?a.options:a;if(t&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns),r&&(l._scopeId=r),i?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=c):n&&(c=n),c){var u=l.functional,d=u?l.render:l.beforeCreate;u?l.render=function(e,t){return c.call(t),d(e,t)}:l.beforeCreate=d?[].concat(d,c):[c]}return{esModule:o,exports:a,options:l}}},function(e,t,n){function r(e){for(var t=0;t<e.length;t++){var n=e[t],r=u[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(o(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(o(n.parts[i]));u[n.id]={id:n.id,refs:1,parts:a}}}}function i(){var e=document.createElement("style");return e.type="text/css",d.appendChild(e),e}function o(e){var t,n,r=document.querySelector("style["+v+'~="'+e.id+'"]');if(r){if(h)return m;r.parentNode.removeChild(r)}if(b){var o=p++;r=f||(f=i()),t=a.bind(null,r,o,!1),n=a.bind(null,r,o,!0)}else r=i(),t=s.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}function a(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function s(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),g.ssrId&&e.setAttribute(v,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var l=n(86),u={},d=c&&(document.head||document.getElementsByTagName("head")[0]),f=null,p=0,h=!1,m=function(){},g=null,v="data-vue-ssr-id",b="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,n,i){h=n,g=i||{};var o=l(e,t);return r(o),function(t){for(var n=[],i=0;i<o.length;i++){var a=o[i],s=u[a.id];s.refs--,n.push(s)}t?(o=l(e,t),r(o)):o=[];for(i=0;i<n.length;i++){s=n[i];if(0===s.refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete u[s.id]}}}};var _=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){var r,i,o;!function(n,a){i=[t],r=a,void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)}(0,(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uploaderMixin={inject:["uploader"]},e.supportMixin={data:function(){return{support:!0}},mounted:function(){this.support=this.uploader.uploader.support}}}))},function(e,t,n){function r(e){n(81)}var i=n(1)(n(29),n(74),r,null,null);e.exports=i.exports},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t,n){e.exports=!n(8)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){var n=Object.prototype,r=Array.prototype,i=n.toString,o=function(e){return"[object Function]"===i.call(e)},a=Array.isArray||function(e){return"[object Array]"===i.call(e)},s=function(e){return"[object Object]"===i.call(e)&&Object.getPrototypeOf(e)===n},c=0,l={uid:function(){return++c},noop:function(){},bind:function(e,t){return function(){return e.apply(t,arguments)}},preventEvent:function(e){e.preventDefault()},stop:function(e){e.preventDefault(),e.stopPropagation()},nextTick:function(e,t){setTimeout(l.bind(e,t),0)},toArray:function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=e.length),r.slice.call(e,t,n)},isPlainObject:s,isFunction:o,isArray:a,isObject:function(e){return Object(e)===e},isString:function(e){return"string"==typeof e},isUndefined:function(e){return void 0===e},isDefined:function(e){return void 0!==e},each:function(e,t,n){if(l.isDefined(e.length))for(var r=0,i=e.length;r<i&&!1!==t.call(n,e[r],r,e);r++);else for(var o in e)if(!1===t.call(n,e[o],o,e))break},evalOpts:function(e,t){return l.isFunction(e)&&(t=l.toArray(arguments),e=e.apply(null,t.slice(1))),e},extend:function(){var e,t,n,r,i,c,u=arguments[0]||{},d=1,f=arguments.length,p=!1;for("boolean"==typeof u&&(p=u,u=arguments[1]||{},d++),"object"==typeof u||o(u)||(u={}),d===f&&(u=this,d--);d<f;d++)if(null!=(e=arguments[d]))for(t in e)n=u[t],r=e[t],u!==r&&(p&&r&&(s(r)||(i=a(r)))?(i?(i=!1,c=n&&a(n)?n:[]):c=n&&s(n)?n:{},u[t]=l.extend(p,c,r)):void 0!==r&&(u[t]=r));return u},formatSize:function(e){return e<1024?e.toFixed(0)+" bytes":e<1048576?(e/1024).toFixed(0)+" KB":e<1073741824?(e/1024/1024).toFixed(1)+" MB":(e/1024/1024/1024).toFixed(1)+" GB"},defineNonEnumerable:function(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})}};e.exports=l},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){function r(e){n(85)}var i=n(1)(n(27),n(78),r,null,null);e.exports=i.exports},function(e,t,n){function r(e){n(83)}var i=n(1)(n(28),n(76),r,null,null);e.exports=i.exports},function(e,t,n){function r(e){n(84)}var i=n(1)(n(30),n(77),r,null,null);e.exports=i.exports},function(e,t,n){function r(e){n(80)}var i=n(1)(n(31),n(73),r,null,null);e.exports=i.exports},function(e,t,n){function r(e){n(79)}var i=n(1)(n(32),n(72),r,null,null);e.exports=i.exports},function(e,t,n){var r,i,o;!function(n,a){i=[t],r=a,void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)}(0,(function(e){"use strict";function t(e){function t(e){return e>1?"s":""}var n=Math.floor(e/31536e3);if(n)return n+" year"+t(n);var r=Math.floor((e%=31536e3)/86400);if(r)return r+" day"+t(r);var i=Math.floor((e%=86400)/3600);if(i)return i+" hour"+t(i);var o=Math.floor((e%=3600)/60);if(o)return o+" minute"+t(o);var a=e%60;return a+" second"+t(a)}function n(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))}Object.defineProperty(e,"__esModule",{value:!0}),e.secondsToStr=t,e.kebabCase=n}))},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(9),i=n(5),o=n(43),a=n(47),s=function(e,t,n){var c,l,u,d=e&s.F,f=e&s.G,p=e&s.S,h=e&s.P,m=e&s.B,g=e&s.W,v=f?i:i[t]||(i[t]={}),b=v.prototype,_=f?r:p?r[t]:(r[t]||{}).prototype;for(c in f&&(n=t),n)(l=!d&&_&&void 0!==_[c])&&c in v||(u=l?_[c]:n[c],v[c]=f&&"function"!=typeof _[c]?n[c]:m&&l?o(u,r):g&&_[c]==u?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(u):h&&"function"==typeof u?o(Function.call,u):u,h&&((v.virtual||(v.virtual={}))[c]=u,e&s.R&&b&&!b[c]&&a(b,c,u)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){var r=n(40),i=n(48),o=n(59),a=Object.defineProperty;t.f=n(6)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(49),i=n(17);e.exports=function(e){return r(i(e))}},function(e,t,n){function r(e,t,n){i.defineNonEnumerable(this,"uploader",e),i.defineNonEnumerable(this,"file",t),i.defineNonEnumerable(this,"bytes",null),this.offset=n,this.tested=!1,this.retries=0,this.pendingRetry=!1,this.preprocessState=0,this.readState=0,this.loaded=0,this.total=0,this.chunkSize=this.uploader.opts.chunkSize,this.startByte=this.offset*this.chunkSize,this.endByte=this.computeEndByte(),this.xhr=null}var i=n(7),o=r.STATUS={PENDING:"pending",UPLOADING:"uploading",READING:"reading",SUCCESS:"success",ERROR:"error",COMPLETE:"complete",PROGRESS:"progress",RETRY:"retry"};i.extend(r.prototype,{_event:function(e,t){t=i.toArray(arguments),t.unshift(this),this.file._chunkEvent.apply(this.file,t)},computeEndByte:function(){var e=Math.min(this.file.size,(this.offset+1)*this.chunkSize);return this.file.size-e<this.chunkSize&&!this.uploader.opts.forceChunkSize&&(e=this.file.size),e},getParams:function(){return{chunkNumber:this.offset+1,chunkSize:this.uploader.opts.chunkSize,currentChunkSize:this.endByte-this.startByte,totalSize:this.file.size,identifier:this.file.uniqueIdentifier,filename:this.file.name,relativePath:this.file.relativePath,totalChunks:this.file.chunks.length}},getTarget:function(e,t){return t.length?(e.indexOf("?")<0?e+="?":e+="&",e+t.join("&")):e},test:function(){function e(e){var t=r.status(!0);t===o.ERROR?(r._event(t,r.message()),r.uploader.uploadNextChunk()):t===o.SUCCESS?(r._event(t,r.message()),r.tested=!0):r.file.paused||(r.tested=!0,r.send())}this.xhr=new XMLHttpRequest,this.xhr.addEventListener("load",e,!1),this.xhr.addEventListener("error",e,!1);var t=i.evalOpts(this.uploader.opts.testMethod,this.file,this),n=this.prepareXhrRequest(t,!0);this.xhr.send(n);var r=this},preprocessFinished:function(){this.endByte=this.computeEndByte(),this.preprocessState=2,this.send()},readFinished:function(e){this.readState=2,this.bytes=e,this.send()},send:function(){function e(e){e.lengthComputable&&(c.loaded=e.loaded,c.total=e.total),c._event(o.PROGRESS,e)}function t(e){var t=c.message();c.processingResponse=!0,c.uploader.opts.processResponse(t,(function(e,t){if(c.processingResponse=!1,c.xhr){c.processedState={err:e,res:t};var n=c.status();if(n===o.SUCCESS||n===o.ERROR)c._event(n,t),n===o.ERROR&&c.uploader.uploadNextChunk();else{c._event(o.RETRY,t),c.pendingRetry=!0,c.abort(),c.retries++;var r=c.uploader.opts.chunkRetryInterval;null!==r?setTimeout((function(){c.send()}),r):c.send()}}}),c.file,c)}var n=this.uploader.opts.preprocess,r=this.uploader.opts.readFileFn;if(i.isFunction(n))switch(this.preprocessState){case 0:return this.preprocessState=1,void n(this);case 1:return}switch(this.readState){case 0:return this.readState=1,void r(this.file,this.file.fileType,this.startByte,this.endByte,this);case 1:return}if(!this.uploader.opts.testChunks||this.tested){this.loaded=0,this.total=0,this.pendingRetry=!1,this.xhr=new XMLHttpRequest,this.xhr.upload.addEventListener("progress",e,!1),this.xhr.addEventListener("load",t,!1),this.xhr.addEventListener("error",t,!1);var a=i.evalOpts(this.uploader.opts.uploadMethod,this.file,this),s=this.prepareXhrRequest(a,!1,this.uploader.opts.method,this.bytes);this.xhr.send(s);var c=this}else this.test()},abort:function(){var e=this.xhr;this.xhr=null,this.processingResponse=!1,this.processedState=null,e&&e.abort()},status:function(e){if(1===this.readState)return o.READING;if(this.pendingRetry||1===this.preprocessState)return o.UPLOADING;if(this.xhr){if(this.xhr.readyState<4||this.processingResponse)return o.UPLOADING;var t;this.uploader.opts.successStatuses.indexOf(this.xhr.status)>-1?t=o.SUCCESS:this.uploader.opts.permanentErrors.indexOf(this.xhr.status)>-1||!e&&this.retries>=this.uploader.opts.maxChunkRetries?t=o.ERROR:(this.abort(),t=o.PENDING);var n=this.processedState;return n&&n.err&&(t=o.ERROR),t}return o.PENDING},message:function(){return this.xhr?this.xhr.responseText:""},progress:function(){if(this.pendingRetry)return 0;var e=this.status();return e===o.SUCCESS||e===o.ERROR?1:e===o.PENDING?0:this.total>0?this.loaded/this.total:0},sizeUploaded:function(){var e=this.endByte-this.startByte;return this.status()!==o.SUCCESS&&(e=this.progress()*e),e},prepareXhrRequest:function(e,t,n,r){var o=i.evalOpts(this.uploader.opts.query,this.file,this,t);o=i.extend(this.getParams(),o),o=this.uploader.opts.processParams(o,this.file,this,t);var a=i.evalOpts(this.uploader.opts.target,this.file,this,t),s=null;if("GET"===e||"octet"===n){var c=[];i.each(o,(function(e,t){c.push([encodeURIComponent(t),encodeURIComponent(e)].join("="))})),a=this.getTarget(a,c),s=r||null}else s=new FormData,i.each(o,(function(e,t){s.append(t,e)})),void 0!==r&&s.append(this.uploader.opts.fileParameterName,r,this.file.name);return this.xhr.open(e,a,!0),this.xhr.withCredentials=this.uploader.opts.withCredentials,i.each(i.evalOpts(this.uploader.opts.headers,this.file,this,t),(function(e,t){this.xhr.setRequestHeader(t,e)}),this),s}}),e.exports=r},function(e,t,n){function r(e){this.support=u,this.support&&(this.supportDirectory=d,i.defineNonEnumerable(this,"filePaths",{}),this.opts=i.extend({},r.defaults,e||{}),this.preventEvent=i.bind(this._preventEvent,this),a.call(this,this))}var i=n(7),o=n(70),a=n(71),s=n(22),c="undefined"==typeof window,l=!c&&window.navigator.msPointerEnabled,u=function(){if(c)return!1;var e="slice",t=i.isDefined(window.File)&&i.isDefined(window.Blob)&&i.isDefined(window.FileList),n=null;return t&&(n=window.Blob.prototype,i.each(["slice","webkitSlice","mozSlice"],(function(t){if(n[t])return e=t,!1})),t=!!n[e]),t&&(r.sliceName=e),n=null,t}(),d=function(){if(c)return!1;var e=window.document.createElement("input");e.type="file";var t="webkitdirectory"in e||"directory"in e;return e=null,t}(),f=function(e,t,n,i,o){o.readFinished(e.file[r.sliceName](n,i,t))};r.version="__VERSION__",r.defaults={chunkSize:1048576,forceChunkSize:!1,simultaneousUploads:3,singleFile:!1,fileParameterName:"file",progressCallbacksInterval:500,speedSmoothingFactor:.1,query:{},headers:{},withCredentials:!1,preprocess:null,method:"multipart",testMethod:"GET",uploadMethod:"POST",prioritizeFirstAndLastChunk:!1,allowDuplicateUploads:!1,target:"/",testChunks:!0,generateUniqueIdentifier:null,maxChunkRetries:0,chunkRetryInterval:null,permanentErrors:[404,415,500,501],successStatuses:[200,201,202],onDropStopPropagation:!1,initFileFn:null,readFileFn:f,checkChunkUploadedByResponse:null,initialPaused:!1,processResponse:function(e,t){t(null,e)},processParams:function(e){return e}},r.utils=i,r.event=o,r.File=a,r.Chunk=s,r.prototype=i.extend({},a.prototype),i.extend(r.prototype,o),i.extend(r.prototype,{constructor:r,_trigger:function(e){var t=i.toArray(arguments),n=!this.trigger.apply(this,arguments);return"catchAll"!==e&&(t.unshift("catchAll"),n=!this.trigger.apply(this,t)||n),!n},_triggerAsync:function(){var e=arguments;i.nextTick((function(){this._trigger.apply(this,e)}),this)},addFiles:function(e,t){var n=[],r=this.fileList.length;i.each(e,(function(e){if((!l||l&&e.size>0)&&(e.size%4096!=0||"."!==e.name&&"."!==e.fileName)){var r=this.generateUniqueIdentifier(e);if(this.opts.allowDuplicateUploads||!this.getFromUniqueIdentifier(r)){var i=new a(this,e,this);i.uniqueIdentifier=r,this._trigger("fileAdded",i,t)?n.push(i):a.prototype.removeFile.call(this,i)}}}),this);var o=this.fileList.slice(r);this._trigger("filesAdded",n,o,t)?(i.each(n,(function(e){this.opts.singleFile&&this.files.length>0&&this.removeFile(this.files[0]),this.files.push(e)}),this),this._trigger("filesSubmitted",n,o,t)):i.each(o,(function(e){a.prototype.removeFile.call(this,e)}),this)},addFile:function(e,t){this.addFiles([e],t)},cancel:function(){for(var e=this.fileList.length-1;e>=0;e--)this.fileList[e].cancel()},removeFile:function(e){a.prototype.removeFile.call(this,e),this._trigger("fileRemoved",e)},generateUniqueIdentifier:function(e){var t=this.opts.generateUniqueIdentifier;if(i.isFunction(t))return t(e);var n=e.relativePath||e.webkitRelativePath||e.fileName||e.name;return e.size+"-"+n.replace(/[^0-9a-zA-Z_-]/gim,"")},getFromUniqueIdentifier:function(e){var t=!1;return i.each(this.files,(function(n){if(n.uniqueIdentifier===e)return t=n,!1})),t},uploadNextChunk:function(e){var t=!1,n=s.STATUS.PENDING,r=this.uploader.opts.checkChunkUploadedByResponse;if(this.opts.prioritizeFirstAndLastChunk&&(i.each(this.files,(function(e){if(!e.paused&&(!r||e._firstResponse||!e.isUploading()))return e.chunks.length&&e.chunks[0].status()===n?(e.chunks[0].send(),t=!0,!1):e.chunks.length>1&&e.chunks[e.chunks.length-1].status()===n?(e.chunks[e.chunks.length-1].send(),t=!0,!1):void 0})),t))return t;if(i.each(this.files,(function(e){if(!e.paused){if(r&&!e._firstResponse&&e.isUploading())return;i.each(e.chunks,(function(e){if(e.status()===n)return e.send(),t=!0,!1}))}if(t)return!1})),t)return!0;var o=!1;return i.each(this.files,(function(e){if(!e.isComplete())return o=!0,!1})),o||e||!this.files.length||this._triggerAsync("complete"),o},upload:function(e){var t=this._shouldUploadNext();if(!1!==t){!e&&this._trigger("uploadStart");for(var n=!1,r=1;r<=this.opts.simultaneousUploads-t&&((n=this.uploadNextChunk(!e)||n)||!e);r++);n||e||this._triggerAsync("complete")}},_shouldUploadNext:function(){var e=0,t=!0,n=this.opts.simultaneousUploads,r=s.STATUS.UPLOADING;return i.each(this.files,(function(o){return i.each(o.chunks,(function(i){if(i.status()===r&&++e>=n)return t=!1,!1})),t})),t&&e},assignBrowse:function(e,t,n,r){void 0===e.length&&(e=[e]),i.each(e,(function(e){var o;"INPUT"===e.tagName&&"file"===e.type?o=e:(o=document.createElement("input"),o.setAttribute("type","file"),i.extend(o.style,{visibility:"hidden",position:"absolute",width:"1px",height:"1px"}),e.appendChild(o),e.addEventListener("click",(function(t){"label"!==e.tagName.toLowerCase()&&o.click()}),!1)),this.opts.singleFile||n||o.setAttribute("multiple","multiple"),t&&o.setAttribute("webkitdirectory","webkitdirectory"),r&&i.each(r,(function(e,t){o.setAttribute(t,e)}));var a=this;o.addEventListener("change",(function(e){a._trigger(e.type,e),e.target.value&&(a.addFiles(e.target.files,e),e.target.value="")}),!1)}),this)},onDrop:function(e){this._trigger(e.type,e),this.opts.onDropStopPropagation&&e.stopPropagation(),e.preventDefault(),this._parseDataTransfer(e.dataTransfer,e)},_parseDataTransfer:function(e,t){e.items&&e.items[0]&&e.items[0].webkitGetAsEntry?this.webkitReadDataTransfer(e,t):this.addFiles(e.files,t)},webkitReadDataTransfer:function(e,t){function n(e){e.readEntries((function(t){t.length?(c+=t.length,i.each(t,(function(e){if(e.isFile){var t=e.fullPath;e.file((function(e){r(e,t)}),o)}else e.isDirectory&&n(e.createReader())})),n(e)):a()}),o)}function r(e,t){e.relativePath=t.substring(1),l.push(e),a()}function o(e){throw e}function a(){0==--c&&s.addFiles(l,t)}var s=this,c=e.items.length,l=[];i.each(e.items,(function(e){var t=e.webkitGetAsEntry();t?t.isFile?r(e.getAsFile(),t.fullPath):n(t.createReader()):a()}))},_assignHelper:function(e,t,n){void 0===e.length&&(e=[e]);var r=n?"removeEventListener":"addEventListener";i.each(e,(function(e){i.each(t,(function(t,n){e[r](n,t,!1)}),this)}),this)},_preventEvent:function(e){i.preventEvent(e),this._trigger(e.type,e)},assignDrop:function(e){this._onDrop=i.bind(this.onDrop,this),this._assignHelper(e,{dragover:this.preventEvent,dragenter:this.preventEvent,dragleave:this.preventEvent,drop:this._onDrop})},unAssignDrop:function(e){this._assignHelper(e,{dragover:this.preventEvent,dragenter:this.preventEvent,dragleave:this.preventEvent,drop:this._onDrop},!0),this._onDrop=null}}),e.exports=r},function(e,t,n){function r(e){n(82)}var i=n(1)(n(33),n(75),r,null,null);e.exports=i.exports},function(e,t,n){var r,i,o;!function(n,a){i=[e,t],r=a,void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)}(0,(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["fileProgress","fileSuccess","fileComplete","fileError"];t.default=n,e.exports=t.default}))},function(e,t,n){var r,i,o;!function(a,s){i=[e,t,n(24),n(11),n(12),n(15),n(14),n(13),n(4)],r=s,void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)}(0,(function(e,t,n,r,i,o,a,s,c){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}function u(e){u.installed||(e.component(d.default.name,d.default),e.component(f.default.name,f.default),e.component(p.default.name,p.default),e.component(h.default.name,h.default),e.component(m.default.name,m.default),e.component(g.default.name,g.default),e.component(v.default.name,v.default))}Object.defineProperty(t,"__esModule",{value:!0});var d=l(n),f=l(r),p=l(i),h=l(o),m=l(a),g=l(s),v=l(c),b={version:"0.7.6",install:u,Uploader:d.default,UploaderBtn:f.default,UploaderDrop:p.default,UploaderUnsupport:h.default,UploaderList:m.default,UploaderFiles:g.default,UploaderFile:v.default};"undefined"!=typeof window&&window.Vue&&window.Vue.use(u),t.default=b,e.exports=t.default}))},function(e,t,n){var r,i,o;!function(a,s){i=[e,t,n(3)],r=s,void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)}(0,(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"uploader-btn",mixins:[n.uploaderMixin,n.supportMixin],props:{directory:{type:Boolean,default:!1},single:{type:Boolean,default:!1},attrs:{type:Object,default:function(){return{}}}},mounted:function(){var e=this;this.$nextTick((function(){e.uploader.uploader.assignBrowse(e.$refs.btn,e.directory,e.single,e.attrs)}))}},e.exports=t.default}))},function(e,t,n){var r,i,o;!function(a,s){i=[e,t,n(3)],r=s,void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)}(0,(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"uploader-drop",mixins:[n.uploaderMixin,n.supportMixin],data:function(){return{dropClass:""}},methods:{onDragEnter:function(){this.dropClass="uploader-dragover"},onDragLeave:function(){this.dropClass=""},onDrop:function(){this.dropClass="uploader-droped"}},mounted:function(){var e=this;this.$nextTick((function(){var t=e.$refs.drop,n=e.uploader.uploader;n.assignDrop(t),n.on("dragenter",e.onDragEnter),n.on("dragleave",e.onDragLeave),n.on("drop",e.onDrop)}))},beforeDestroy:function(){var e=this.$refs.drop,t=this.uploader.uploader;t.off("dragenter",this.onDragEnter),t.off("dragleave",this.onDragLeave),t.off("drop",this.onDrop),t.unAssignDrop(e)}},e.exports=t.default}))},function(e,t,n){var r,i,o;!function(a,s){i=[e,t,n(35),n(23),n(25),n(16)],r=s,void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)}(0,(function(e,t,n,r,i,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=a(n),c=a(r),l=a(i);t.default={name:"uploader-file",props:{file:{type:Object,default:function(){return{}}},list:{type:Boolean,default:!1}},data:function(){return{response:null,paused:!1,error:!1,averageSpeed:0,currentSpeed:0,isComplete:!1,isUploading:!1,size:0,formatedSize:"",uploadedSize:0,progress:0,timeRemaining:0,type:"",extension:"",progressingClass:""}},computed:{fileCategory:function(){var e=this.extension,t=this.file.isFolder,n=t?"folder":"unknown",r=this.file.uploader.opts.categoryMap,i=r||{image:["gif","jpg","jpeg","png","bmp","webp"],video:["mp4","m3u8","rmvb","avi","swf","3gp","mkv","flv"],audio:["mp3","wav","wma","ogg","aac","flac"],document:["doc","txt","docx","pages","epub","pdf","numbers","csv","xls","xlsx","keynote","ppt","pptx"]};return(0,s.default)(i).forEach((function(t){i[t].indexOf(e)>-1&&(n=t)})),n},progressStyle:function(){var e=Math.floor(100*this.progress),t="translateX("+Math.floor(e-100)+"%)";return{progress:e+"%",webkitTransform:t,mozTransform:t,msTransform:t,transform:t}},formatedAverageSpeed:function(){return c.default.utils.formatSize(this.averageSpeed)+" / s"},status:function(){var e=this.isUploading,t=this.isComplete,n=this.error,r=this.paused;return t?"success":n?"error":e?"uploading":r?"paused":"waiting"},statusText:function(){var e=this.status,t=this.file.uploader.fileStatusText;return("function"==typeof t?t(e,this.response):t[e])||e},formatedTimeRemaining:function(){var e=this.timeRemaining,t=this.file;if(e===Number.POSITIVE_INFINITY||0===e)return"";var n=(0,o.secondsToStr)(e),r=t.uploader.opts.parseTimeRemaining;return r&&(n=r(e,n)),n}},watch:{status:function(e,t){var n=this;t&&"uploading"===e&&"uploading"!==t?this.tid=setTimeout((function(){n.progressingClass="uploader-file-progressing"}),200):(clearTimeout(this.tid),this.progressingClass="")}},methods:{_actionCheck:function(){this.paused=this.file.paused,this.error=this.file.error,this.isUploading=this.file.isUploading()},pause:function(){this.file.pause(),this._actionCheck(),this._fileProgress()},resume:function(){this.file.resume(),this._actionCheck()},remove:function(){this.file.cancel()},retry:function(){this.file.retry(),this._actionCheck()},processResponse:function(e){var t=e;try{t=JSON.parse(e)}catch(e){}this.response=t},fileEventsHandler:function(e,t){var n=t[0],r=t[1],i=this.list?n:r;if(this.file===i){if(this.list&&"fileSuccess"===e)return void this.processResponse(t[2]);this["_"+e].apply(this,t)}},_fileProgress:function(){this.progress=this.file.progress(),this.averageSpeed=this.file.averageSpeed,this.currentSpeed=this.file.currentSpeed,this.timeRemaining=this.file.timeRemaining(),this.uploadedSize=this.file.sizeUploaded(),this._actionCheck()},_fileSuccess:function(e,t,n){e&&this.processResponse(n),this._fileProgress(),this.error=!1,this.isComplete=!0,this.isUploading=!1},_fileComplete:function(){this._fileSuccess()},_fileError:function(e,t,n){this._fileProgress(),this.processResponse(n),this.error=!0,this.isComplete=!1,this.isUploading=!1}},mounted:function(){var e=this,t=["paused","error","averageSpeed","currentSpeed"],n=["isComplete","isUploading",{key:"size",fn:"getSize"},{key:"formatedSize",fn:"getFormatSize"},{key:"uploadedSize",fn:"sizeUploaded"},"progress","timeRemaining",{key:"type",fn:"getType"},{key:"extension",fn:"getExtension"}];t.forEach((function(t){e[t]=e.file[t]})),n.forEach((function(t){"string"==typeof t?e[t]=e.file[t]():e[t.key]=e.file[t.fn]()}));var r=this._handlers={},i=function(t){return r[t]=function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];e.fileEventsHandler(t,r)},r[t]};l.default.forEach((function(t){e.file.uploader.on(t,i(t))}))},destroyed:function(){var e=this;l.default.forEach((function(t){e.file.uploader.off(t,e._handlers[t])})),this._handlers=null}},e.exports=t.default}))},function(e,t,n){var r,i,o;!function(a,s){i=[e,t,n(3),n(4)],r=s,void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)}(0,(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default={name:"uploader-files",mixins:[n.uploaderMixin],computed:{files:function(){return this.uploader.files}},components:{UploaderFile:i.default}},e.exports=t.default}))},function(e,t,n){var r,i,o;!function(a,s){i=[e,t,n(3),n(4)],r=s,void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)}(0,(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default={name:"uploader-list",mixins:[n.uploaderMixin],computed:{fileList:function(){return this.uploader.fileList}},components:{UploaderFile:i.default}},e.exports=t.default}))},function(e,t,n){var r,i,o;!function(a,s){i=[e,t,n(3)],r=s,void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)}(0,(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"uploader-unsupport",mixins:[n.uploaderMixin,n.supportMixin]},e.exports=t.default}))},function(e,t,n){var r,i,o;!function(a,s){i=[e,t,n(36),n(23),n(16),n(11),n(12),n(15),n(14),n(13),n(4)],r=s,void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)}(0,(function(e,t,n,r,i,o,a,s,c,l,u){"use strict";function d(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var f=d(n),p=d(r),h=d(o),m=d(a),g=d(s),v=d(c),b=d(l),_=d(u);t.default={name:"uploader",provide:function(){return{uploader:this}},props:{options:{type:Object,default:function(){return{}}},autoStart:{type:Boolean,default:!0},fileStatusText:{type:[Object,Function],default:function(){return{success:"success",error:"error",uploading:"uploading",paused:"paused",waiting:"waiting"}}}},data:function(){return{started:!1,files:[],fileList:[]}},methods:{uploadStart:function(){this.started=!0},fileAdded:function(e){if(this.$emit((0,i.kebabCase)("fileAdded"),e),e.ignored)return!1},filesAdded:function(e,t){if(this.$emit((0,i.kebabCase)("filesAdded"),e,t),e.ignored||t.ignored)return!1},fileRemoved:function(e){this.files=this.uploader.files,this.fileList=this.uploader.fileList},filesSubmitted:function(e,t){this.files=this.uploader.files,this.fileList=this.uploader.fileList,this.autoStart&&this.uploader.upload()},allEvent:function(){for(var e,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],a=(e={},(0,f.default)(e,"fileAdded",!0),(0,f.default)(e,"filesAdded",!0),(0,f.default)(e,"uploadStart","uploadStart"),e),s=a[o];if(s){if(!0===s)return;this[s].apply(this,n.slice(1))}n[0]=(0,i.kebabCase)(o),this.$emit.apply(this,n)}},created:function(){this.options.initialPaused=!this.autoStart;var e=new p.default(this.options);this.uploader=e,this.uploader.fileStatusText=this.fileStatusText,e.on("catchAll",this.allEvent),e.on("fileAdded",this.fileAdded),e.on("filesAdded",this.filesAdded),e.on("fileRemoved",this.fileRemoved),e.on("filesSubmitted",this.filesSubmitted)},destroyed:function(){var e=this.uploader;e.off("catchAll",this.allEvent),e.off("fileAdded",this.fileAdded),e.off("filesAdded",this.filesAdded),e.off("fileRemoved",this.fileRemoved),e.off("filesSubmitted",this.filesSubmitted),this.uploader=null},components:{UploaderBtn:h.default,UploaderDrop:m.default,UploaderUnsupport:g.default,UploaderList:v.default,UploaderFiles:b.default,UploaderFile:_.default}},e.exports=t.default}))},function(e,t,n){e.exports={default:n(37),__esModule:!0}},function(e,t,n){e.exports={default:n(38),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(34),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){n(61);var r=n(5).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){n(62),e.exports=n(5).Object.keys},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(10);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(21),i=n(57),o=n(56);e.exports=function(e){return function(t,n,a){var s,c=r(t),l=i(c.length),u=o(a,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(39);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(10),i=n(9).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(19),i=n(53);e.exports=n(6)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){e.exports=!n(6)&&!n(8)((function(){return 7!=Object.defineProperty(n(44)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(42);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(46),i=n(21),o=n(41)(!1),a=n(54)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){var r=n(50),i=n(45);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(18),i=n(5),o=n(8);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(55)("keys"),i=n(60);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(9),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t,n){var r=n(20),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(20),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(17);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(10);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(18);r(r.S+r.F*!n(6),"Object",{defineProperty:n(19).f})},function(e,t,n){var r=n(58),i=n(51);n(52)("keys",(function(){return function(e){return i(r(e))}}))},function(e,t,n){t=e.exports=n(0)(!0),t.push([e.i,".uploader-unsupport{position:relative;z-index:10;overflow:hidden}","",{version:3,sources:["/Users/didi/Documents/git/private/vue-uploader/src/components/unsupport.vue"],names:[],mappings:"AACA,oBACE,kBAAmB,AACnB,WAAY,AACZ,eAAiB,CAClB",file:"unsupport.vue",sourcesContent:["\n.uploader-unsupport {\n position: relative;\n z-index: 10;\n overflow: hidden;\n}\n"],sourceRoot:""}])},function(e,t,n){t=e.exports=n(0)(!0),t.push([e.i,".uploader-list{position:relative}.uploader-list>ul{list-style:none;margin:0;padding:0}","",{version:3,sources:["/Users/didi/Documents/git/private/vue-uploader/src/components/list.vue"],names:[],mappings:"AACA,eACE,iBAAmB,CACpB,AACD,kBACE,gBAAiB,AACjB,SAAU,AACV,SAAU,CACX",file:"list.vue",sourcesContent:["\n.uploader-list {\n position: relative;\n}\n.uploader-list > ul {\n list-style: none;\n margin: 0;\n padding: 0\n}\n"],sourceRoot:""}])},function(e,t,n){t=e.exports=n(0)(!0),t.push([e.i,'.uploader-file{position:relative;height:49px;line-height:49px;overflow:hidden;border-bottom:1px solid #cdcdcd}.uploader-file[status=error] .uploader-file-retry,.uploader-file[status=paused] .uploader-file-resume,.uploader-file[status=uploading] .uploader-file-pause,.uploader-file[status=waiting] .uploader-file-pause{display:block}.uploader-file[status=success] .uploader-file-remove{display:none}.uploader-file[status=error] .uploader-file-progress{background:#ffe0e0}.uploader-file-progress{position:absolute;width:100%;height:100%;background:#e2eeff;-webkit-transform:translateX(-100%);transform:translateX(-100%)}.uploader-file-progressing{-webkit-transition:all .4s linear;transition:all .4s linear}.uploader-file-info{position:relative;z-index:1;height:100%;overflow:hidden}.uploader-file-info:hover{background-color:hsla(0,0%,94%,.2)}.uploader-file-info em,.uploader-file-info i{font-style:normal}.uploader-file-actions,.uploader-file-meta,.uploader-file-name,.uploader-file-size,.uploader-file-status{float:left;position:relative;height:100%}.uploader-file-name{width:45%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-indent:14px}.uploader-file-icon{width:24px;height:24px;display:inline-block;vertical-align:top;margin-top:13px;margin-right:8px}.uploader-file-icon:before{content:"\\1F4C3";display:block;height:100%;font-size:24px;line-height:1;text-indent:0}.uploader-file-icon[icon=folder]:before{content:"\\1F4C2"}.uploader-file-icon[icon=image]:before{content:"\\1F4CA"}.uploader-file-icon[icon=video]:before{content:"\\1F4F9"}.uploader-file-icon[icon=audio]:before{content:"\\1F3B5"}.uploader-file-icon[icon=document]:before{content:"\\1F4CB"}.uploader-file-size{width:13%;text-indent:10px}.uploader-file-meta{width:8%}.uploader-file-status{width:24%;text-indent:20px}.uploader-file-actions{width:10%}.uploader-file-actions>span{display:none;float:left;width:16px;height:16px;margin-top:16px;margin-right:10px;cursor:pointer;background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABkCAYAAAD0ZHJ6AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAJcEhZcwAACxMAAAsTAQCanBgAAARkSURBVGje7ZnfS1NRHMAH4ptPkvQSuAdBkCxD8FUQJMEULUgzy1KyyPVQ4JMiiP4Bvg6EwUQQfMmwhwRDshwaKUjDVCgoSdDNHkzTJZ6+Z37Purve8+PeTb2TM/ggu+ew89l33x8H9BBCPG7GowXTJej3+wnDvEm0JuLC04+EYWftVAUv+fiCvDUdQR1BHUEdQR3BTIygvixoQS14XgTtthLVdpNWwXRLqvQ724LplFRtyrYF0yVpFLQrKRVMh6RZ0I6kkmCqklaCqpKZH0FX56Crq9jVfdDVk0RfFrSgFsxkQVmLcdKCVrKySCrryhPEyYShhzOcrFtG0EoilfHHk1CRU5rF6ZjNZhlVOW6RnMSVyyilKies4pO41diVy8wIujoHXV3FGdMHXTtJKLFYTLhZtq4vC1rwXApCZTIqgR6g1PBMCO9DL3bMMSqBHqDU8EyISDAHiGKvWwcCQG2KgjlAFCDAOhAAap0K5gKLphk8mqJgLrCIgoxRJ4J5wKpJ7gAoMkn5EBXBPGDVJHcAFJmkfIhQcAql1oBpTvTol9gG9pm4RHAKpdaAaU706JfYBvaZuJVgPQrt4sFlnOh5MC/p3lmJYD0K7eLBZZzoeTAv6d5ZnuAYHjpgEOnk5F0ufhG6v1ggOIaHDhhEOjl5l4tfhO4vthLcwAMrFNvLJO5vEwhu4IEViu1lEve3WQmyoihQFBzG/V0CQVYUBYqCw7i/SxTBcpsRbFeIYLnNCLZbCY5b5KAnxRwct8hBj9McZFVMW0ihRNBuFdMWUigRlFaxuQ9WWYjRMTiIe5z0wSoLMToGB3GPsA9aTZIJoB+nRgBnM1tzOkkmgH6cGgGczWzNpzqLx3n/aULJJgezeNw07oxQySbVywKjBOgFRnDs+VEsx8FlgVEC9AIjOPb8KJYjvSzoG7UW1IJaUAtqQS14toLNM5fN5APdwBJA8G83Pk/aK/rgzVvXzeQD3cASQPBvNz5P2ssTzAaGUIrHEO6zI5gNDKEUjyHcxxWkh4Ylcowwk1QQpIeGJXKMMJO0EgwqyjGCioJBJvDrxRMSuVOTJEXfbz1/bHwWtBL0yoQehK6RucgE+bGzanzulQh6E3IgQV+xpc8kcrfuSO7eTfJ3ZYmQw0Oy9azVKOk1C/bJ5D5F38YPeLfx0rjWJxHsS0SqsSYuxySjj5qO5Oj7xQWy2VBtFOwzCy6ryH3YfE3uh64Y1xckgstJPydEjkkeHv07Iy4Xaao15+KCWTBx6M/db+T9xivSErqaJDdzXI6yLRE8Vgg0coex/SPJvT0SbWu0KpZtbgSpCH3NRt7I5OxHkObc6heU+/M/J5vrpBFM5GBLqCQux14COXs5CNXK5OjPGm1tSMrJSOMNYQ4mVTGV/L6zTL7+DovkbFUxbSW0Wo05l8hJWsU+cRWfSh+Mt5Lb1ck/J1TvVsdDaR/MiEni+llsdZuZp62EViu+96bpNjNPWwmtVnzvFd5m9IVVC54x/wA7gNvqFG9vXQAAAABJRU5ErkJggg==") no-repeat 0 0}.uploader-file-actions>span:hover{background-position-x:-21px}.uploader-file-actions .uploader-file-pause{background-position-y:0}.uploader-file-actions .uploader-file-resume{background-position-y:-17px}.uploader-file-actions .uploader-file-retry{background-position-y:-53px}.uploader-file-actions .uploader-file-remove{display:block;background-position-y:-34px}',"",{version:3,sources:["/Users/didi/Documents/git/private/vue-uploader/src/components/file.vue"],names:[],mappings:"AACA,eACE,kBAAmB,AACnB,YAAa,AACb,iBAAkB,AAClB,gBAAiB,AACjB,+BAAiC,CAClC,AAQD,gNACE,aAAe,CAChB,AACD,qDACE,YAAc,CACf,AACD,qDACE,kBAAoB,CACrB,AACD,wBACE,kBAAmB,AACnB,WAAY,AACZ,YAAa,AACb,mBAAoB,AACpB,oCAAqC,AAC7B,2BAA6B,CACtC,AACD,2BACE,kCAAmC,AACnC,yBAA2B,CAC5B,AACD,oBACE,kBAAmB,AACnB,UAAW,AACX,YAAa,AACb,eAAiB,CAClB,AACD,0BACE,kCAA2C,CAC5C,AACD,6CAEE,iBAAmB,CACpB,AACD,yGAKE,WAAY,AACZ,kBAAmB,AACnB,WAAa,CACd,AACD,oBACE,UAAW,AACX,gBAAiB,AACjB,mBAAoB,AACpB,uBAAwB,AACxB,gBAAkB,CACnB,AACD,oBACE,WAAY,AACZ,YAAa,AACb,qBAAsB,AACtB,mBAAoB,AACpB,gBAAiB,AACjB,gBAAkB,CACnB,AACD,2BACE,iBAAc,AACd,cAAe,AACf,YAAa,AACb,eAAgB,AAChB,cAAe,AACf,aAAe,CAChB,AACD,wCACE,gBAAc,CACf,AACD,uCACE,gBAAc,CACf,AACD,uCACE,gBAAc,CACf,AACD,uCACE,gBAAc,CACf,AACD,0CACE,gBAAc,CACf,AACD,oBACE,UAAW,AACX,gBAAkB,CACnB,AACD,oBACE,QAAU,CACX,AACD,sBACE,UAAW,AACX,gBAAkB,CACnB,AACD,uBACE,SAAW,CACZ,AACD,4BACE,aAAc,AACd,WAAY,AACZ,WAAY,AACZ,YAAa,AACb,gBAAiB,AACjB,kBAAmB,AACnB,eAAgB,AAChB,srDAAwrD,CACzrD,AACD,kCACE,2BAA6B,CAC9B,AACD,4CACE,uBAAyB,CAC1B,AACD,6CACE,2BAA6B,CAC9B,AACD,4CACE,2BAA6B,CAC9B,AACD,6CACE,cAAe,AACf,2BAA6B,CAC9B",file:"file.vue",sourcesContent:['\n.uploader-file {\n position: relative;\n height: 49px;\n line-height: 49px;\n overflow: hidden;\n border-bottom: 1px solid #cdcdcd;\n}\n.uploader-file[status="waiting"] .uploader-file-pause,\n.uploader-file[status="uploading"] .uploader-file-pause {\n display: block;\n}\n.uploader-file[status="paused"] .uploader-file-resume {\n display: block;\n}\n.uploader-file[status="error"] .uploader-file-retry {\n display: block;\n}\n.uploader-file[status="success"] .uploader-file-remove {\n display: none;\n}\n.uploader-file[status="error"] .uploader-file-progress {\n background: #ffe0e0;\n}\n.uploader-file-progress {\n position: absolute;\n width: 100%;\n height: 100%;\n background: #e2eeff;\n -webkit-transform: translateX(-100%);\n transform: translateX(-100%);\n}\n.uploader-file-progressing {\n -webkit-transition: all .4s linear;\n transition: all .4s linear;\n}\n.uploader-file-info {\n position: relative;\n z-index: 1;\n height: 100%;\n overflow: hidden;\n}\n.uploader-file-info:hover {\n background-color: rgba(240, 240, 240, 0.2);\n}\n.uploader-file-info i,\n.uploader-file-info em {\n font-style: normal;\n}\n.uploader-file-name,\n.uploader-file-size,\n.uploader-file-meta,\n.uploader-file-status,\n.uploader-file-actions {\n float: left;\n position: relative;\n height: 100%;\n}\n.uploader-file-name {\n width: 45%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-indent: 14px;\n}\n.uploader-file-icon {\n width: 24px;\n height: 24px;\n display: inline-block;\n vertical-align: top;\n margin-top: 13px;\n margin-right: 8px;\n}\n.uploader-file-icon::before {\n content: "📃";\n display: block;\n height: 100%;\n font-size: 24px;\n line-height: 1;\n text-indent: 0;\n}\n.uploader-file-icon[icon="folder"]::before {\n content: "📂";\n}\n.uploader-file-icon[icon="image"]::before {\n content: "📊";\n}\n.uploader-file-icon[icon="video"]::before {\n content: "📹";\n}\n.uploader-file-icon[icon="audio"]::before {\n content: "🎵";\n}\n.uploader-file-icon[icon="document"]::before {\n content: "📋";\n}\n.uploader-file-size {\n width: 13%;\n text-indent: 10px;\n}\n.uploader-file-meta {\n width: 8%;\n}\n.uploader-file-status {\n width: 24%;\n text-indent: 20px;\n}\n.uploader-file-actions {\n width: 10%;\n}\n.uploader-file-actions > span {\n display: none;\n float: left;\n width: 16px;\n height: 16px;\n margin-top: 16px;\n margin-right: 10px;\n cursor: pointer;\n background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAABkCAYAAAD0ZHJ6AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAJcEhZcwAACxMAAAsTAQCanBgAAARkSURBVGje7ZnfS1NRHMAH4ptPkvQSuAdBkCxD8FUQJMEULUgzy1KyyPVQ4JMiiP4Bvg6EwUQQfMmwhwRDshwaKUjDVCgoSdDNHkzTJZ6+Z37Purve8+PeTb2TM/ggu+ew89l33x8H9BBCPG7GowXTJej3+wnDvEm0JuLC04+EYWftVAUv+fiCvDUdQR1BHUEdQR3BTIygvixoQS14XgTtthLVdpNWwXRLqvQ724LplFRtyrYF0yVpFLQrKRVMh6RZ0I6kkmCqklaCqpKZH0FX56Crq9jVfdDVk0RfFrSgFsxkQVmLcdKCVrKySCrryhPEyYShhzOcrFtG0EoilfHHk1CRU5rF6ZjNZhlVOW6RnMSVyyilKies4pO41diVy8wIujoHXV3FGdMHXTtJKLFYTLhZtq4vC1rwXApCZTIqgR6g1PBMCO9DL3bMMSqBHqDU8EyISDAHiGKvWwcCQG2KgjlAFCDAOhAAap0K5gKLphk8mqJgLrCIgoxRJ4J5wKpJ7gAoMkn5EBXBPGDVJHcAFJmkfIhQcAql1oBpTvTol9gG9pm4RHAKpdaAaU706JfYBvaZuJVgPQrt4sFlnOh5MC/p3lmJYD0K7eLBZZzoeTAv6d5ZnuAYHjpgEOnk5F0ufhG6v1ggOIaHDhhEOjl5l4tfhO4vthLcwAMrFNvLJO5vEwhu4IEViu1lEve3WQmyoihQFBzG/V0CQVYUBYqCw7i/SxTBcpsRbFeIYLnNCLZbCY5b5KAnxRwct8hBj9McZFVMW0ihRNBuFdMWUigRlFaxuQ9WWYjRMTiIe5z0wSoLMToGB3GPsA9aTZIJoB+nRgBnM1tzOkkmgH6cGgGczWzNpzqLx3n/aULJJgezeNw07oxQySbVywKjBOgFRnDs+VEsx8FlgVEC9AIjOPb8KJYjvSzoG7UW1IJaUAtqQS14toLNM5fN5APdwBJA8G83Pk/aK/rgzVvXzeQD3cASQPBvNz5P2ssTzAaGUIrHEO6zI5gNDKEUjyHcxxWkh4Ylcowwk1QQpIeGJXKMMJO0EgwqyjGCioJBJvDrxRMSuVOTJEXfbz1/bHwWtBL0yoQehK6RucgE+bGzanzulQh6E3IgQV+xpc8kcrfuSO7eTfJ3ZYmQw0Oy9azVKOk1C/bJ5D5F38YPeLfx0rjWJxHsS0SqsSYuxySjj5qO5Oj7xQWy2VBtFOwzCy6ryH3YfE3uh64Y1xckgstJPydEjkkeHv07Iy4Xaao15+KCWTBx6M/db+T9xivSErqaJDdzXI6yLRE8Vgg0coex/SPJvT0SbWu0KpZtbgSpCH3NRt7I5OxHkObc6heU+/M/J5vrpBFM5GBLqCQux14COXs5CNXK5OjPGm1tSMrJSOMNYQ4mVTGV/L6zTL7+DovkbFUxbSW0Wo05l8hJWsU+cRWfSh+Mt5Lb1ck/J1TvVsdDaR/MiEni+llsdZuZp62EViu+96bpNjNPWwmtVnzvFd5m9IVVC54x/wA7gNvqFG9vXQAAAABJRU5ErkJggg==") no-repeat 0 0;\n}\n.uploader-file-actions > span:hover {\n background-position-x: -21px;\n}\n.uploader-file-actions .uploader-file-pause {\n background-position-y: 0;\n}\n.uploader-file-actions .uploader-file-resume {\n background-position-y: -17px;\n}\n.uploader-file-actions .uploader-file-retry {\n background-position-y: -53px;\n}\n.uploader-file-actions .uploader-file-remove {\n display: block;\n background-position-y: -34px;\n}\n'],sourceRoot:""}])},function(e,t,n){t=e.exports=n(0)(!0),t.push([e.i,".uploader{position:relative}","",{version:3,sources:["/Users/didi/Documents/git/private/vue-uploader/src/components/uploader.vue"],names:[],mappings:"AACA,UACE,iBAAmB,CACpB",file:"uploader.vue",sourcesContent:["\n.uploader {\n position: relative;\n}\n"],sourceRoot:""}])},function(e,t,n){t=e.exports=n(0)(!0),t.push([e.i,".uploader-drop{position:relative;padding:10px;overflow:hidden;border:1px dashed #ccc;background-color:#f5f5f5}.uploader-dragover{border-color:#999;background-color:#f7f7f7}","",{version:3,sources:["/Users/didi/Documents/git/private/vue-uploader/src/components/drop.vue"],names:[],mappings:"AACA,eACE,kBAAmB,AACnB,aAAc,AACd,gBAAiB,AACjB,uBAAwB,AACxB,wBAA0B,CAC3B,AACD,mBACE,kBAAmB,AACnB,wBAA0B,CAC3B",file:"drop.vue",sourcesContent:["\n.uploader-drop {\n position: relative;\n padding: 10px;\n overflow: hidden;\n border: 1px dashed #ccc;\n background-color: #f5f5f5;\n}\n.uploader-dragover {\n border-color: #999;\n background-color: #f7f7f7;\n}\n"],sourceRoot:""}])},function(e,t,n){t=e.exports=n(0)(!0),t.push([e.i,".uploader-files{position:relative}.uploader-files>ul{list-style:none;margin:0;padding:0}","",{version:3,sources:["/Users/didi/Documents/git/private/vue-uploader/src/components/files.vue"],names:[],mappings:"AACA,gBACE,iBAAmB,CACpB,AACD,mBACE,gBAAiB,AACjB,SAAU,AACV,SAAU,CACX",file:"files.vue",sourcesContent:["\n.uploader-files {\n position: relative;\n}\n.uploader-files > ul {\n list-style: none;\n margin: 0;\n padding: 0\n}\n"],sourceRoot:""}])},function(e,t,n){t=e.exports=n(0)(!0),t.push([e.i,".uploader-btn{display:inline-block;position:relative;padding:4px 8px;font-size:100%;line-height:1.4;color:#666;border:1px solid #666;cursor:pointer;border-radius:2px;background:none;outline:none}.uploader-btn:hover{background-color:rgba(0,0,0,.08)}","",{version:3,sources:["/Users/didi/Documents/git/private/vue-uploader/src/components/btn.vue"],names:[],mappings:"AACA,cACE,qBAAsB,AACtB,kBAAmB,AACnB,gBAAiB,AACjB,eAAgB,AAChB,gBAAiB,AACjB,WAAY,AACZ,sBAAuB,AACvB,eAAgB,AAChB,kBAAmB,AACnB,gBAAiB,AACjB,YAAc,CACf,AACD,oBACE,gCAAqC,CACtC",file:"btn.vue",sourcesContent:["\n.uploader-btn {\n display: inline-block;\n position: relative;\n padding: 4px 8px;\n font-size: 100%;\n line-height: 1.4;\n color: #666;\n border: 1px solid #666;\n cursor: pointer;\n border-radius: 2px;\n background: none;\n outline: none;\n}\n.uploader-btn:hover {\n background-color: rgba(0, 0, 0, .08);\n}\n"],sourceRoot:""}])},function(e,t,n){var r=n(7).each,i={_eventData:null,on:function(e,t){this._eventData||(this._eventData={}),this._eventData[e]||(this._eventData[e]=[]);var n=!1;r(this._eventData[e],(function(e){if(e===t)return n=!0,!1})),n||this._eventData[e].push(t)},off:function(e,t){this._eventData||(this._eventData={}),this._eventData[e]&&this._eventData[e].length&&(t?r(this._eventData[e],(function(n,r){if(n===t)return this._eventData[e].splice(r,1),!1}),this):this._eventData[e]=[])},trigger:function(e){if(this._eventData||(this._eventData={}),!this._eventData[e])return!0;var t=this._eventData[e].slice.call(arguments,1),n=!1;return r(this._eventData[e],(function(e){n=!1===e.apply(this,t)||n}),this),!n}};e.exports=i},function(e,t,n){function r(e,t,n){o.defineNonEnumerable(this,"uploader",e),this.isRoot=this.isFolder=e===this,o.defineNonEnumerable(this,"parent",n||null),o.defineNonEnumerable(this,"files",[]),o.defineNonEnumerable(this,"fileList",[]),o.defineNonEnumerable(this,"chunks",[]),o.defineNonEnumerable(this,"_errorFiles",[]),o.defineNonEnumerable(this,"file",null),this.id=o.uid(),this.isRoot||!t?this.file=null:o.isString(t)?(this.isFolder=!0,this.file=null,this.path=t,this.parent.path&&(t=t.substr(this.parent.path.length)),this.name="/"===t.charAt(t.length-1)?t.substr(0,t.length-1):t):(this.file=t,this.fileType=this.file.type,this.name=t.fileName||t.name,this.size=t.size,this.relativePath=t.relativePath||t.webkitRelativePath||this.name,this._parseFile()),this.paused=e.opts.initialPaused,this.error=!1,this.allError=!1,this.aborted=!1,this.completed=!1,this.averageSpeed=0,this.currentSpeed=0,this._lastProgressCallback=Date.now(),this._prevUploadedSize=0,this._prevProgress=0,this.bootstrap()}function i(e){var t=[],n=e.split("/"),r=n.length,i=1;if(n.splice(r-1,1),r--,n.length)for(;i<=r;)t.push(n.slice(0,i++).join("/")+"/");return t}var o=n(7),a=n(22);o.extend(r.prototype,{_parseFile:function(){var e=i(this.relativePath);if(e.length){var t=this.uploader.filePaths;o.each(e,(function(n,i){var o=t[n];o||(o=new r(this.uploader,n,this.parent),t[n]=o,this._updateParentFileList(o)),this.parent=o,o.files.push(this),e[i+1]||o.fileList.push(this)}),this)}else this._updateParentFileList()},_updateParentFileList:function(e){e||(e=this);var t=this.parent;t&&t.fileList.push(e)},_eachAccess:function(e,t){this.isFolder?o.each(this.files,(function(t,n){return e.call(this,t,n)}),this):t.call(this,this)},bootstrap:function(){if(!this.isFolder){var e=this.uploader.opts;o.isFunction(e.initFileFn)&&e.initFileFn.call(this,this),this.abort(!0),this._resetError(),this._prevProgress=0;for(var t=e.forceChunkSize?Math.ceil:Math.floor,n=Math.max(t(this.size/e.chunkSize),1),r=0;r<n;r++)this.chunks.push(new a(this.uploader,this,r))}},_measureSpeed:function(){var e=this.uploader.opts.speedSmoothingFactor,t=Date.now()-this._lastProgressCallback;if(t){var n=this.sizeUploaded();this.currentSpeed=Math.max((n-this._prevUploadedSize)/t*1e3,0),this.averageSpeed=e*this.currentSpeed+(1-e)*this.averageSpeed,this._prevUploadedSize=n,this.parent&&this.parent._checkProgress()&&this.parent._measureSpeed()}},_checkProgress:function(e){return Date.now()-this._lastProgressCallback>=this.uploader.opts.progressCallbacksInterval},_chunkEvent:function(e,t,n){var r=this.uploader,i=a.STATUS,o=this,s=this.getRoot(),c=function(){o._measureSpeed(),r._trigger("fileProgress",s,o,e),o._lastProgressCallback=Date.now()};switch(t){case i.PROGRESS:this._checkProgress()&&c();break;case i.ERROR:this._error(),this.abort(!0),r._trigger("fileError",s,this,n,e);break;case i.SUCCESS:if(this._updateUploadedChunks(n,e),this.error)return;clearTimeout(this._progeressId),this._progeressId=0;var l=Date.now()-this._lastProgressCallback;l<r.opts.progressCallbacksInterval&&(this._progeressId=setTimeout(c,r.opts.progressCallbacksInterval-l)),this.isComplete()?(clearTimeout(this._progeressId),c(),this.currentSpeed=0,this.averageSpeed=0,r._trigger("fileSuccess",s,this,n,e),s.isComplete()&&r._trigger("fileComplete",s,this)):this._progeressId||c();break;case i.RETRY:r._trigger("fileRetry",s,this,e)}},_updateUploadedChunks:function(e,t){var n=this.uploader.opts.checkChunkUploadedByResponse;if(n){var r=t.xhr;o.each(this.chunks,(function(i){if(!i.tested){var o=n.call(this,i,e);i!==t||o||(i.xhr=null),o&&(i.xhr=r),i.tested=!0}}),this),this._firstResponse?this.uploader.uploadNextChunk():(this._firstResponse=!0,this.uploader.upload(!0))}else this.uploader.uploadNextChunk()},_error:function(){this.error=this.allError=!0;for(var e=this.parent;e&&e!==this.uploader;)e._errorFiles.push(this),e.error=!0,e._errorFiles.length===e.files.length&&(e.allError=!0),e=e.parent},_resetError:function(){this.error=this.allError=!1;for(var e=this.parent,t=-1;e&&e!==this.uploader;)t=e._errorFiles.indexOf(this),e._errorFiles.splice(t,1),e.allError=!1,e._errorFiles.length||(e.error=!1),e=e.parent},isComplete:function(){if(!this.completed){var e=!1;this._eachAccess((function(t){if(!t.isComplete())return e=!0,!1}),(function(){if(this.error)e=!0;else{var t=a.STATUS;o.each(this.chunks,(function(n){var r=n.status();if(r===t.ERROR||r===t.PENDING||r===t.UPLOADING||r===t.READING||1===n.preprocessState||1===n.readState)return e=!0,!1}))}})),this.completed=!e}return this.completed},isUploading:function(){var e=!1;return this._eachAccess((function(t){if(t.isUploading())return e=!0,!1}),(function(){var t=a.STATUS.UPLOADING;o.each(this.chunks,(function(n){if(n.status()===t)return e=!0,!1}))})),e},resume:function(){this._eachAccess((function(e){e.resume()}),(function(){this.paused=!1,this.aborted=!1,this.uploader.upload()})),this.paused=!1,this.aborted=!1},pause:function(){this._eachAccess((function(e){e.pause()}),(function(){this.paused=!0,this.abort()})),this.paused=!0},cancel:function(){this.uploader.removeFile(this)},retry:function(e){var t=function(e){e.error&&e.bootstrap()};e?e.bootstrap():this._eachAccess(t,(function(){this.bootstrap()})),this.uploader.upload()},abort:function(e){if(!this.aborted){this.currentSpeed=0,this.averageSpeed=0,this.aborted=!e;var t=this.chunks;e&&(this.chunks=[]);var n=a.STATUS.UPLOADING;o.each(t,(function(e){e.status()===n&&(e.abort(),this.uploader.uploadNextChunk())}),this)}},progress:function(){var e=0,t=0,n=0;return this._eachAccess((function(r,i){e+=r.progress()*r.size,t+=r.size,i===this.files.length-1&&(n=t>0?e/t:this.isComplete()?1:0)}),(function(){if(this.error)n=1;else{if(1===this.chunks.length)return this._prevProgress=Math.max(this._prevProgress,this.chunks[0].progress()),void(n=this._prevProgress);var e=0;o.each(this.chunks,(function(t){e+=t.progress()*(t.endByte-t.startByte)}));var t=e/this.size;this._prevProgress=Math.max(this._prevProgress,t>.9999?1:t),n=this._prevProgress}})),n},getSize:function(){var e=0;return this._eachAccess((function(t){e+=t.size}),(function(){e+=this.size})),e},getFormatSize:function(){var e=this.getSize();return o.formatSize(e)},getRoot:function(){if(this.isRoot)return this;for(var e=this.parent;e;){if(e.parent===this.uploader)return e;e=e.parent}return this},sizeUploaded:function(){var e=0;return this._eachAccess((function(t){e+=t.sizeUploaded()}),(function(){o.each(this.chunks,(function(t){e+=t.sizeUploaded()}))})),e},timeRemaining:function(){function e(e,t){return e&&!t?Number.POSITIVE_INFINITY:e||t?Math.floor(e/t):0}var t=0,n=0,r=0;return this._eachAccess((function(i,o){i.paused||i.error||(n+=i.size-i.sizeUploaded(),r+=i.averageSpeed),o===this.files.length-1&&(t=e(n,r))}),(function(){if(this.paused||this.error)t=0;else{var n=this.size-this.sizeUploaded();t=e(n,this.averageSpeed)}})),t},removeFile:function(e){if(e.isFolder)for(;e.files.length;){var t=e.files[e.files.length-1];this._removeFile(t)}this._removeFile(e)},_delFilePath:function(e){e.path&&this.filePaths&&delete this.filePaths[e.path],o.each(e.fileList,(function(e){this._delFilePath(e)}),this)},_removeFile:function(e){if(!e.isFolder){o.each(this.files,(function(t,n){if(t===e)return this.files.splice(n,1),!1}),this),e.abort();for(var t,n=e.parent;n&&n!==this;)t=n.parent,n._removeFile(e),n=t}e.parent===this&&o.each(this.fileList,(function(t,n){if(t===e)return this.fileList.splice(n,1),!1}),this),this.isRoot||!this.isFolder||this.files.length||(this.parent._removeFile(this),this.uploader._delFilePath(this)),e.parent=null},getType:function(){return this.isFolder?"folder":this.file.type&&this.file.type.split("/")[1]},getExtension:function(){return this.isFolder?"":this.name.substr(2+(~-this.name.lastIndexOf(".")>>>0)).toLowerCase()}}),e.exports=r},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:!e.support,expression:"!support"}],staticClass:"uploader-unsupport"},[e._t("default",[e._m(0)])],2)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[e._v("\n Your browser, unfortunately, is not supported by Uploader.js. The library requires support for "),n("a",{attrs:{href:"http://www.w3.org/TR/FileAPI/"}},[e._v("the HTML5 File API")]),e._v(" along with "),n("a",{attrs:{href:"http://www.w3.org/TR/FileAPI/#normalization-of-params"}},[e._v("file slicing")]),e._v(".\n ")])}]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uploader-list"},[e._t("default",[n("ul",e._l(e.fileList,(function(e){return n("li",{key:e.id},[n("uploader-file",{attrs:{file:e,list:!0}})],1)})))],{fileList:e.fileList})],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uploader-file",attrs:{status:e.status}},[e._t("default",[n("div",{staticClass:"uploader-file-progress",class:e.progressingClass,style:e.progressStyle}),e._v(" "),n("div",{staticClass:"uploader-file-info"},[n("div",{staticClass:"uploader-file-name"},[n("i",{staticClass:"uploader-file-icon",attrs:{icon:e.fileCategory}}),e._v(e._s(e.file.name))]),e._v(" "),n("div",{staticClass:"uploader-file-size"},[e._v(e._s(e.formatedSize))]),e._v(" "),n("div",{staticClass:"uploader-file-meta"}),e._v(" "),n("div",{staticClass:"uploader-file-status"},[n("span",{directives:[{name:"show",rawName:"v-show",value:"uploading"!==e.status,expression:"status !== 'uploading'"}]},[e._v(e._s(e.statusText))]),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:"uploading"===e.status,expression:"status === 'uploading'"}]},[n("span",[e._v(e._s(e.progressStyle.progress))]),e._v(" "),n("em",[e._v(e._s(e.formatedAverageSpeed))]),e._v(" "),n("i",[e._v(e._s(e.formatedTimeRemaining))])])]),e._v(" "),n("div",{staticClass:"uploader-file-actions"},[n("span",{staticClass:"uploader-file-pause",on:{click:e.pause}}),e._v(" "),n("span",{staticClass:"uploader-file-resume",on:{click:e.resume}},[e._v("️")]),e._v(" "),n("span",{staticClass:"uploader-file-retry",on:{click:e.retry}}),e._v(" "),n("span",{staticClass:"uploader-file-remove",on:{click:e.remove}})])])],{file:e.file,list:e.list,status:e.status,paused:e.paused,error:e.error,response:e.response,averageSpeed:e.averageSpeed,formatedAverageSpeed:e.formatedAverageSpeed,currentSpeed:e.currentSpeed,isComplete:e.isComplete,isUploading:e.isUploading,size:e.size,formatedSize:e.formatedSize,uploadedSize:e.uploadedSize,progress:e.progress,progressStyle:e.progressStyle,progressingClass:e.progressingClass,timeRemaining:e.timeRemaining,formatedTimeRemaining:e.formatedTimeRemaining,type:e.type,extension:e.extension,fileCategory:e.fileCategory})],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uploader"},[e._t("default",[n("uploader-unsupport"),e._v(" "),n("uploader-drop",[n("p",[e._v("Drop files here to upload or")]),e._v(" "),n("uploader-btn",[e._v("select files")]),e._v(" "),n("uploader-btn",{attrs:{directory:!0}},[e._v("select folder")])],1),e._v(" "),n("uploader-list")],{files:e.files,fileList:e.fileList,started:e.started})],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:e.support,expression:"support"}],ref:"drop",staticClass:"uploader-drop",class:e.dropClass},[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uploader-files"},[e._t("default",[n("ul",e._l(e.files,(function(e){return n("li",{key:e.id},[n("uploader-file",{attrs:{file:e}})],1)})))],{files:e.files})],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("label",{directives:[{name:"show",rawName:"v-show",value:e.support,expression:"support"}],ref:"btn",staticClass:"uploader-btn"},[e._t("default")],2)},staticRenderFns:[]}},function(e,t,n){var r=n(63);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(2)("2e4f4074",r,!0,{})},function(e,t,n){var r=n(64);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(2)("30297bf6",r,!0,{})},function(e,t,n){var r=n(65);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(2)("9c4391de",r,!0,{})},function(e,t,n){var r=n(66);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(2)("6f0f0164",r,!0,{})},function(e,t,n){var r=n(67);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(2)("f60d437e",r,!0,{})},function(e,t,n){var r=n(68);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(2)("36e02209",r,!0,{})},function(e,t,n){var r=n(69);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),n(2)("fb1ffb7e",r,!0,{})},function(e,t){e.exports=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s=o[1],c=o[2],l=o[3],u={id:e+":"+i,css:s,media:c,sourceMap:l};r[a]?r[a].parts.push(u):n.push(r[a]={id:a,parts:[u]})}return n}}])}))},efec:function(e,t,n){"use strict";var r=n("1a2d"),i=n("cb2d"),o=n("51eb"),a=n("b622"),s=a("toPrimitive"),c=Date.prototype;r(c,s)||i(c,s,o)},f034:function(e,t){(function(){"use strict";var e=function(e){var t=e,n=function(){return t},r=function(e){t=e};return{get:n,set:r}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){return{isFullscreen:function(){return null!==e.get()}}},r=function(e){var t=typeof e;return null===e?"null":"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t},i=function(e){return function(t){return r(t)===e}},o=function(e){return function(t){return typeof t===e}},a=i("string"),s=i("array"),c=o("boolean"),l=function(e){return null===e||void 0===e},u=function(e){return!l(e)},d=o("function"),f=o("number"),p=function(){},h=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},m=function(e,t){return function(n){return e(t(n))}},g=function(e){return function(){return e}},v=function(e){return e};function b(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.concat(n);return e.apply(null,i)}}var _=g(!1),y=g(!0),w=function(){return x},x=function(){var e=function(e){return e()},t=v,n={fold:function(e,t){return e()},isSome:_,isNone:y,getOr:t,getOrThunk:e,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:g(null),getOrUndefined:g(void 0),or:t,orThunk:e,map:w,each:p,bind:w,exists:_,forall:y,filter:function(){return w()},toArray:function(){return[]},toString:g("none()")};return n}(),k=function(e){var t=g(e),n=function(){return i},r=function(t){return t(e)},i={fold:function(t,n){return n(e)},isSome:y,isNone:_,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return k(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?i:x},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return i},C=function(e){return null===e||void 0===e?x:k(e)},A={some:k,none:w,from:C},S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},S.apply(this,arguments)},E=function(t){var n=e(A.none()),r=function(){return n.get().each(t)},i=function(){r(),n.set(A.none())},o=function(){return n.get().isSome()},a=function(){return n.get()},s=function(e){r(),n.set(A.some(e))};return{clear:i,isSet:o,get:a,set:s}},T=function(){return E((function(e){return e.unbind()}))},O=function(){var e=E(p),t=function(t){return e.get().each(t)};return S(S({},e),{on:t})},R=Array.prototype.push,D=function(e,t){for(var n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[i]=t(o,i)}return r},L=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];t(i,n)}},M=function(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];t(o,r)&&n.push(o)}return n},F=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r];if(t(o,r))return A.some(o);if(n(o,r))break}return A.none()},N=function(e,t){return F(e,t,_)},B=function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!s(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);R.apply(t,e[n])}return t},I=function(e,t){return B(D(e,t))},P=function(e,t){return t>=0&&t<e.length?A.some(e[t]):A.none()},$=function(e){return P(e,0)},j=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return A.none()},z=Object.keys,q=function(e,t){for(var n=z(e),r=0,i=n.length;r<i;r++){var o=n[r],a=e[o];t(a,o)}},H=function(e,t){return-1!==e.indexOf(t)},U=function(e){return void 0!==e.style&&d(e.style.getPropertyValue)},W=function(e,t){var n=t||document,r=n.createElement("div");if(r.innerHTML=e,!r.hasChildNodes()||r.childNodes.length>1)throw new Error("HTML must have a single root node");return K(r.childNodes[0])},V=function(e,t){var n=t||document,r=n.createElement(e);return K(r)},G=function(e,t){var n=t||document,r=n.createTextNode(e);return K(r)},K=function(e){if(null===e||void 0===e)throw new Error("Node cannot be null or undefined");return{dom:e}},Y=function(e,t,n){return A.from(e.dom.elementFromPoint(t,n)).map(K)},X={fromHtml:W,fromTag:V,fromText:G,fromDom:K,fromPoint:Y};"undefined"!==typeof window?window:Function("return this;")();var Q=9,J=11,Z=1,ee=3,te=function(e){return e.dom.nodeType},ne=function(e){return function(t){return te(t)===e}},re=ne(Z),ie=ne(ee),oe=ne(Q),ae=ne(J),se=function(e){var t,n=!1;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n||(n=!0,t=e.apply(null,r)),t}},ce=function(e,t,n,r){var i=e.isiOS()&&!0===/ipad/i.test(n),o=e.isiOS()&&!i,a=e.isiOS()||e.isAndroid(),s=a||r("(pointer:coarse)"),c=i||!o&&a&&r("(min-device-width:768px)"),l=o||a&&!c,u=t.isSafari()&&e.isiOS()&&!1===/safari/i.test(n),d=!l&&!c&&!u;return{isiPad:g(i),isiPhone:g(o),isTablet:g(c),isPhone:g(l),isTouch:g(s),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:g(u),isDesktop:g(d)}},le=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}},ue=function(e,t){var n=le(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return pe(r(1),r(2))},de=function(e,t){var n=String(t).toLowerCase();return 0===e.length?fe():ue(e,n)},fe=function(){return pe(0,0)},pe=function(e,t){return{major:e,minor:t}},he={nu:pe,detect:de,unknown:fe},me=function(e,t){return j(t.brands,(function(t){var n=t.brand.toLowerCase();return N(e,(function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())})).map((function(e){return{current:e.name,version:he.nu(parseInt(t.version,10),0)}}))}))},ge=function(e,t){var n=String(t).toLowerCase();return N(e,(function(e){return e.search(n)}))},ve=function(e,t){return ge(e,t).map((function(e){var n=he.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},be=function(e,t){return ge(e,t).map((function(e){var n=he.detect(e.versionRegexes,t);return{current:e.name,version:n}}))},_e=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,ye=function(e){return function(t){return H(t,e)}},we=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return H(e,"edge/")&&H(e,"chrome")&&H(e,"safari")&&H(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,_e],search:function(e){return H(e,"chrome")&&!H(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return H(e,"msie")||H(e,"trident")}},{name:"Opera",versionRegexes:[_e,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ye("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ye("firefox")},{name:"Safari",versionRegexes:[_e,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(H(e,"safari")||H(e,"mobile/"))&&H(e,"applewebkit")}}],xe=[{name:"Windows",search:ye("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return H(e,"iphone")||H(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ye("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ye("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ye("linux"),versionRegexes:[]},{name:"Solaris",search:ye("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ye("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ye("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],ke={browsers:g(we),oses:g(xe)},Ce="Edge",Ae="Chrome",Se="IE",Ee="Opera",Te="Firefox",Oe="Safari",Re=function(){return De({current:void 0,version:he.unknown()})},De=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isEdge:r(Ce),isChrome:r(Ae),isIE:r(Se),isOpera:r(Ee),isFirefox:r(Te),isSafari:r(Oe)}},Le={unknown:Re,nu:De,edge:g(Ce),chrome:g(Ae),ie:g(Se),opera:g(Ee),firefox:g(Te),safari:g(Oe)},Me="Windows",Fe="iOS",Ne="Android",Be="Linux",Ie="OSX",Pe="Solaris",$e="FreeBSD",je="ChromeOS",ze=function(){return qe({current:void 0,version:he.unknown()})},qe=function(e){var t=e.current,n=e.version,r=function(e){return function(){return t===e}};return{current:t,version:n,isWindows:r(Me),isiOS:r(Fe),isAndroid:r(Ne),isOSX:r(Ie),isLinux:r(Be),isSolaris:r(Pe),isFreeBSD:r($e),isChromeOS:r(je)}},He={unknown:ze,nu:qe,windows:g(Me),ios:g(Fe),android:g(Ne),linux:g(Be),osx:g(Ie),solaris:g(Pe),freebsd:g($e),chromeos:g(je)},Ue=function(e,t,n){var r=ke.browsers(),i=ke.oses(),o=t.bind((function(e){return me(r,e)})).orThunk((function(){return ve(r,e)})).fold(Le.unknown,Le.nu),a=be(i,e).fold(He.unknown,He.nu),s=ce(a,o,e,n);return{browser:o,os:a,deviceType:s}},We={detect:Ue},Ve=function(e){return window.matchMedia(e).matches},Ge=se((function(){return We.detect(navigator.userAgent,A.from(navigator.userAgentData),Ve)})),Ke=function(){return Ge()},Ye=function(e,t){var n=e.dom;if(n.nodeType!==Z)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},Xe=function(e){return e.nodeType!==Z&&e.nodeType!==Q&&e.nodeType!==J||0===e.childElementCount},Qe=function(e,t){var n=void 0===t?document:t.dom;return Xe(n)?[]:D(n.querySelectorAll(e),X.fromDom)},Je=function(e,t){return e.dom===t.dom},Ze=function(e){return X.fromDom(e.dom.ownerDocument)},et=function(e){return oe(e)?e:Ze(e)},tt=function(e){return A.from(e.dom.parentNode).map(X.fromDom)},nt=function(e,t){var n=d(t)?t:_,r=e.dom,i=[];while(null!==r.parentNode&&void 0!==r.parentNode){var o=r.parentNode,a=X.fromDom(o);if(i.push(a),!0===n(a))break;r=o}return i},rt=function(e){var t=function(t){return M(t,(function(t){return!Je(e,t)}))};return tt(e).map(it).map(t).getOr([])},it=function(e){return D(e.dom.childNodes,X.fromDom)},ot=function(e){return ae(e)&&u(e.dom.host)},at=d(Element.prototype.attachShadow)&&d(Node.prototype.getRootNode),st=g(at),ct=at?function(e){return X.fromDom(e.dom.getRootNode())}:et,lt=function(e){var t=ct(e);return ot(t)?A.some(t):A.none()},ut=function(e){return X.fromDom(e.dom.host)},dt=function(e){if(st()&&u(e.target)){var t=X.fromDom(e.target);if(re(t)&&ft(t)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return $(n)}}return A.from(e.target)},ft=function(e){return u(e.dom.shadowRoot)},pt=function(e){var t=ie(e)?e.dom.parentNode:e.dom;if(void 0===t||null===t||null===t.ownerDocument)return!1;var n=t.ownerDocument;return lt(X.fromDom(t)).fold((function(){return n.body.contains(t)}),m(pt,ut))},ht=function(e){var t=e.dom.body;if(null===t||void 0===t)throw new Error("Body is not available yet");return X.fromDom(t)},mt=function(e,t,n){if(!(a(n)||c(n)||f(n)))throw new Error("Attribute value was not simple");e.setAttribute(t,n+"")},gt=function(e,t,n){mt(e.dom,t,n)},vt=function(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n},bt=function(e,t){e.dom.removeAttribute(t)},_t=function(e,t,n){if(!a(n))throw new Error("CSS value must be a string: "+n);U(e)&&e.style.setProperty(t,n)},yt=function(e,t){var n=e.dom;q(t,(function(e,t){_t(n,t,e)}))},wt=function(e,t){var n=e.dom,r=window.getComputedStyle(n),i=r.getPropertyValue(t);return""!==i||pt(e)?i:xt(n,t)},xt=function(e,t){return U(e)?e.style.getPropertyValue(t):""},kt=function(e,t,n,r,i,o,a){return{target:e,x:t,y:n,stop:r,prevent:i,kill:o,raw:a}},Ct=function(e){var t=X.fromDom(dt(e).getOr(e.target)),n=function(){return e.stopPropagation()},r=function(){return e.preventDefault()},i=h(r,n);return kt(t,e.clientX,e.clientY,n,r,i,e)},At=function(e,t){return function(n){e(n)&&t(Ct(n))}},St=function(e,t,n,r,i){var o=At(n,r);return e.dom.addEventListener(t,o,i),{unbind:b(Tt,e,t,o,i)}},Et=function(e,t,n,r){return St(e,t,n,r,!1)},Tt=function(e,t,n,r){e.dom.removeEventListener(t,n,r)},Ot=y,Rt=function(e,t,n){return Et(e,t,Ot,n)},Dt=function(e,t){var n=function(n,r){return Dt(e+n,t+r)};return{left:e,top:t,translate:n}},Lt=Dt,Mt=function(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Lt(n,r)},Ft=function(e){var t=void 0===e?window:e;return Ke().browser.isFirefox()?A.none():A.from(t["visualViewport"])},Nt=function(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}},Bt=function(e){var t=void 0===e?window:e,n=t.document,r=Mt(X.fromDom(n));return Ft(t).fold((function(){var e=t.document.documentElement,n=e.clientWidth,i=e.clientHeight;return Nt(r.left,r.top,n,i)}),(function(e){return Nt(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)}))},It=function(e,t,n){return Ft(n).map((function(n){var r=function(e){return t(Ct(e))};return n.addEventListener(e,r),{unbind:function(){return n.removeEventListener(e,r)}}})).getOrThunk((function(){return{unbind:p}}))},Pt=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),$t=tinymce.util.Tools.resolve("tinymce.Env"),jt=tinymce.util.Tools.resolve("tinymce.util.Delay"),zt=function(e,t){e.fire("FullscreenStateChanged",{state:t}),e.fire("ResizeEditor")},qt=function(e){return e.getParam("fullscreen_native",!1,"boolean")},Ht=function(e){var t=X.fromDom(e.getElement());return lt(t).map(ut).getOrThunk((function(){return ht(Ze(t))}))},Ut=function(e){return void 0!==e.fullscreenElement?e.fullscreenElement:void 0!==e.msFullscreenElement?e.msFullscreenElement:void 0!==e.webkitFullscreenElement?e.webkitFullscreenElement:null},Wt=function(){return void 0!==document.fullscreenElement?"fullscreenchange":void 0!==document.msFullscreenElement?"MSFullscreenChange":void 0!==document.webkitFullscreenElement?"webkitfullscreenchange":"fullscreenchange"},Vt=function(e){var t=e.dom;t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.webkitRequestFullScreen&&t.webkitRequestFullScreen()},Gt=function(e){var t=e.dom;t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.webkitCancelFullScreen&&t.webkitCancelFullScreen()},Kt=function(e){return e.dom===Ut(Ze(e).dom)},Yt=function(e,t,n){return M(nt(e,n),t)},Xt=function(e,t){return M(rt(e),t)},Qt=function(e){return Qe(e)},Jt=function(e,t,n){return Yt(e,(function(e){return Ye(e,t)}),n)},Zt=function(e,t){return Xt(e,(function(e){return Ye(e,t)}))},en="data-ephox-mobile-fullscreen-style",tn="display:none!important;",nn="position:absolute!important;",rn="top:0!important;left:0!important;margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:visible!important;",on="background-color:rgb(255,255,255)!important;",an=$t.os.isAndroid(),sn=function(e){var t=wt(e,"background-color");return void 0!==t&&""!==t?"background-color:"+t+"!important":on},cn=function(e,t,n){var r=function(e){return Zt(e,"*:not(.tox-silver-sink)")},i=function(t){return function(n){var r=vt(n,"style"),i=void 0===r?"no-styles":r.trim();i!==t&&(gt(n,en,i),yt(n,e.parseStyle(t)))}},o=Jt(t,"*"),a=I(o,r),s=sn(n);L(a,i(tn)),L(o,i(nn+rn+s));var c=!0===an?"":nn;i(c+rn+s)(t)},ln=function(e){var t=Qt("["+en+"]");L(t,(function(t){var n=vt(t,en);"no-styles"!==n?yt(t,e.parseStyle(n)):bt(t,"style"),bt(t,en)}))},un=Pt.DOM,dn=function(){return Bt(window)},fn=function(e){return window.scrollTo(e.x,e.y)},pn=Ft().fold((function(){return{bind:p,unbind:p}}),(function(e){var t=O(),n=T(),r=T(),i=function(){document.body.scrollTop=0,document.documentElement.scrollTop=0},o=function(){window.requestAnimationFrame((function(){t.on((function(t){return yt(t,{top:e.offsetTop+"px",left:e.offsetLeft+"px",height:e.height+"px",width:e.width+"px"})}))}))},a=jt.throttle((function(){i(),o()}),50),s=function(e){t.set(e),a(),n.set(It("resize",a)),r.set(It("scroll",a))},c=function(){t.on((function(){n.clear(),r.clear()})),t.clear()};return{bind:s,unbind:c}})),hn=function(e,t){var n=document.body,r=document.documentElement,i=e.getContainer(),o=X.fromDom(i),a=Ht(e),s=t.get(),c=X.fromDom(e.getBody()),l=$t.deviceType.isTouch(),u=i.style,d=e.iframeElement,f=d.style,p=function(e){e(n,"tox-fullscreen"),e(r,"tox-fullscreen"),e(i,"tox-fullscreen"),lt(o).map((function(e){return ut(e).dom})).each((function(t){e(t,"tox-fullscreen"),e(t,"tox-shadowhost")}))},h=function(){l&&ln(e.dom),p(un.removeClass),pn.unbind(),A.from(t.get()).each((function(e){return e.fullscreenChangeHandler.unbind()}))};if(s)s.fullscreenChangeHandler.unbind(),qt(e)&&Kt(a)&&Gt(Ze(a)),f.width=s.iframeWidth,f.height=s.iframeHeight,u.width=s.containerWidth,u.height=s.containerHeight,u.top=s.containerTop,u.left=s.containerLeft,h(),fn(s.scrollPos),t.set(null),zt(e,!1),e.off("remove",h);else{var m=Rt(Ze(a),Wt(),(function(n){qt(e)&&(Kt(a)||null===t.get()||hn(e,t))})),g={scrollPos:dn(),containerWidth:u.width,containerHeight:u.height,containerTop:u.top,containerLeft:u.left,iframeWidth:f.width,iframeHeight:f.height,fullscreenChangeHandler:m};l&&cn(e.dom,o,c),f.width=f.height="100%",u.width=u.height="",p(un.addClass),pn.bind(o),e.on("remove",h),t.set(g),qt(e)&&Vt(a),zt(e,!0)}},mn=function(e,t){e.addCommand("mceFullScreen",(function(){hn(e,t)}))},gn=function(e,t){return function(n){n.setActive(null!==t.get());var r=function(e){return n.setActive(e.state)};return e.on("FullscreenStateChanged",r),function(){return e.off("FullscreenStateChanged",r)}}},vn=function(e,t){var n=function(){return e.execCommand("mceFullScreen")};e.ui.registry.addToggleMenuItem("fullscreen",{text:"Fullscreen",icon:"fullscreen",shortcut:"Meta+Shift+F",onAction:n,onSetup:gn(e,t)}),e.ui.registry.addToggleButton("fullscreen",{tooltip:"Fullscreen",icon:"fullscreen",onAction:n,onSetup:gn(e,t)})};function bn(){t.add("fullscreen",(function(t){var r=e(null);return t.inline||(mn(t,r),vn(t,r),t.addShortcut("Meta+Shift+F","","mceFullScreen")),n(r)}))}bn()})()},f069:function(e,t,n){"use strict";var r=n("59ed"),i=TypeError,o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},f22b:function(e,t,n){"use strict";var r=n("23e7"),i=n("f069"),o=n("4738").CONSTRUCTOR;r({target:"Promise",stat:!0,forced:o},{reject:function(e){var t=i.f(this),n=t.reject;return n(e),t.promise}})},f29a:function(e,t,n){var r=n("8973"),i=n("6137"),o=n("949b")(!1),a=n("6a83")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);while(t.length>c)r(s,n=t[c++])&&(~o(l,n)||l.push(n));return l}},f354:function(e,t,n){"use strict";var r=n("d039"),i=n("b622"),o=n("83ab"),a=n("c430"),s=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t["delete"]("b"),r+=n+e})),n["delete"]("a",2),n["delete"]("b",void 0),a&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(a||!o)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},f36a:function(e,t,n){"use strict";var r=n("e330");e.exports=r([].slice)},f495:function(e,t,n){"use strict";var r=n("c04e"),i=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new i("Can't convert number to bigint");return BigInt(t)}},f520:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f5df:function(e,t,n){"use strict";var r=n("00ee"),i=n("1626"),o=n("c6b6"),a=n("b622"),s=a("toStringTag"),c=Object,l="Arguments"===o(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=c(e),s))?n:l?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},f5df1:function(e,t,n){},f6b4:function(e,t,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},f748:function(e,t,n){"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!==t?t:t<0?-1:1}},f772:function(e,t,n){"use strict";var r=n("5692"),i=n("90e3"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},f893:function(e,t,n){e.exports={default:n("8119"),__esModule:!0}},f8cd:function(e,t,n){"use strict";var r=n("5926"),i=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new i("The argument can't be less than 0");return t}},f9d4:function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";e.defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,c=n.json||s,l=n.typescript,u=n.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),f=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function h(e){var t,n=!1,r=!1;while(null!=(t=e.next())){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}function m(e,t,n){return r=e,i=n,t}function g(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=v(n),t.tokenize(e,t);if("."==n&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return m("number","number");if("."==n&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return m(n);if("="==n&&e.eat(">"))return m("=>","operator");if("0"==n&&e.match(/^(?:x[\da-f]+|o[0-7]+|b[01]+)n?/i))return m("number","number");if(/\d/.test(n))return e.match(/^\d*(?:n|(?:\.\d*)?(?:[eE][+\-]?\d+)?)?/),m("number","number");if("/"==n)return e.eat("*")?(t.tokenize=b,b(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):Ze(e,t,1)?(h(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==n)return t.tokenize=_,_(e,t);if("#"==n)return e.skipToEnd(),m("error","error");if(f.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),m("operator","operator",e.current());if(u.test(n)){e.eatWhile(u);var r=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(r)){var i=d[r];return m(i.type,i.style,r)}if("async"==r&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",r)}return m("variable","variable",r)}}function v(e){return function(t,n){var r,i=!1;if(s&&"@"==t.peek()&&t.match(p))return n.tokenize=g,m("jsonld-keyword","meta");while(null!=(r=t.next())){if(r==e&&!i)break;i=!i&&"\\"==r}return i||(n.tokenize=g),m("string","string")}}function b(e,t){var n,r=!1;while(n=e.next()){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return m("comment","comment")}function _(e,t){var n,r=!1;while(null!=(n=e.next())){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return m("quasi","string-2",e.current())}var y="([{}])";function w(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(l){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),c=y.indexOf(s);if(c>=0&&c<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(c>=3&&c<6)++i;else if(u.test(s))o=!0;else{if(/["'\/]/.test(s))return;if(o&&!i){++a;break}}}o&&!i&&(t.fatArrowAt=a)}}var x={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function k(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function C(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function A(e,t,n,r,i){var o=e.cc;S.state=e,S.stream=i,S.marked=null,S.cc=o,S.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);while(1){var a=o.length?o.pop():c?U:q;if(a(n,r)){while(o.length&&o[o.length-1].lex)o.pop()();return S.marked?S.marked:"variable"==n&&C(e,r)?"variable-2":t}}}var S={state:null,column:null,marked:null,cc:null};function E(){for(var e=arguments.length-1;e>=0;e--)S.cc.push(arguments[e])}function T(){return E.apply(null,arguments),!0}function O(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function R(e){var t=S.state;if(S.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=D(e,t.context);if(null!=r)return void(t.context=r)}else if(!O(e,t.localVars))return void(t.localVars=new F(e,t.localVars));n.globalVars&&!O(e,t.globalVars)&&(t.globalVars=new F(e,t.globalVars))}function D(e,t){if(t){if(t.block){var n=D(e,t.prev);return n?n==t.prev?t:new M(n,t.vars,!0):null}return O(e,t.vars)?t:new M(t.prev,new F(e,t.vars),!1)}return null}function L(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function M(e,t,n){this.prev=e,this.vars=t,this.block=n}function F(e,t){this.name=e,this.next=t}var N=new F("this",new F("arguments",null));function B(){S.state.context=new M(S.state.context,S.state.localVars,!1),S.state.localVars=N}function I(){S.state.context=new M(S.state.context,S.state.localVars,!0),S.state.localVars=null}function P(){S.state.localVars=S.state.context.vars,S.state.context=S.state.context.prev}function $(e,t){var n=function(){var n=S.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new k(r,S.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function j(){var e=S.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function z(e){function t(n){return n==e?T():";"==e||"}"==n||")"==n||"]"==n?E():T(t)}return t}function q(e,t){return"var"==e?T($("vardef",t),ke,z(";"),j):"keyword a"==e?T($("form"),V,q,j):"keyword b"==e?T($("form"),q,j):"keyword d"==e?S.stream.match(/^\s*$/,!1)?T():T($("stat"),K,z(";"),j):"debugger"==e?T(z(";")):"{"==e?T($("}"),I,de,j,P):";"==e?T():"if"==e?("else"==S.state.lexical.info&&S.state.cc[S.state.cc.length-1]==j&&S.state.cc.pop()(),T($("form"),V,q,j,Oe)):"function"==e?T(Me):"for"==e?T($("form"),Re,q,j):"class"==e||l&&"interface"==t?(S.marked="keyword",T($("form","class"==e?e:t),Pe,j)):"variable"==e?l&&"declare"==t?(S.marked="keyword",T(q)):l&&("module"==t||"enum"==t||"type"==t)&&S.stream.match(/^\s*\w/,!1)?(S.marked="keyword","enum"==t?T(Xe):"type"==t?T(Ne,z("operator"),me,z(";")):T($("form"),Ce,z("{"),$("}"),de,j,j)):l&&"namespace"==t?(S.marked="keyword",T($("form"),U,q,j)):l&&"abstract"==t?(S.marked="keyword",T(q)):T($("stat"),ie):"switch"==e?T($("form"),V,z("{"),$("}","switch"),I,de,j,j,P):"case"==e?T(U,z(":")):"default"==e?T(z(":")):"catch"==e?T($("form"),B,H,q,j,P):"export"==e?T($("stat"),qe,j):"import"==e?T($("stat"),Ue,j):"async"==e?T(q):"@"==t?T(U,q):E($("stat"),U,z(";"),j)}function H(e){if("("==e)return T(Be,z(")"))}function U(e,t){return G(e,t,!1)}function W(e,t){return G(e,t,!0)}function V(e){return"("!=e?E():T($(")"),U,z(")"),j)}function G(e,t,n){if(S.state.fatArrowAt==S.stream.start){var r=n?ee:Z;if("("==e)return T(B,$(")"),le(Be,")"),j,z("=>"),r,P);if("variable"==e)return E(B,Ce,z("=>"),r,P)}var i=n?X:Y;return x.hasOwnProperty(e)?T(i):"function"==e?T(Me,i):"class"==e||l&&"interface"==t?(S.marked="keyword",T($("form"),Ie,j)):"keyword c"==e||"async"==e?T(n?W:U):"("==e?T($(")"),K,z(")"),j,i):"operator"==e||"spread"==e?T(n?W:U):"["==e?T($("]"),Ye,j,i):"{"==e?ue(ae,"}",null,i):"quasi"==e?E(Q,i):"new"==e?T(te(n)):"import"==e?T(U):T()}function K(e){return e.match(/[;\}\)\],]/)?E():E(U)}function Y(e,t){return","==e?T(U):X(e,t,!1)}function X(e,t,n){var r=0==n?Y:X,i=0==n?U:W;return"=>"==e?T(B,n?ee:Z,P):"operator"==e?/\+\+|--/.test(t)||l&&"!"==t?T(r):l&&"<"==t&&S.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?T($(">"),le(me,">"),j,r):"?"==t?T(U,z(":"),i):T(i):"quasi"==e?E(Q,r):";"!=e?"("==e?ue(W,")","call",r):"."==e?T(oe,r):"["==e?T($("]"),K,z("]"),j,r):l&&"as"==t?(S.marked="keyword",T(me,r)):"regexp"==e?(S.state.lastType=S.marked="operator",S.stream.backUp(S.stream.pos-S.stream.start-1),T(i)):void 0:void 0}function Q(e,t){return"quasi"!=e?E():"${"!=t.slice(t.length-2)?T(Q):T(U,J)}function J(e){if("}"==e)return S.marked="string-2",S.state.tokenize=_,T(Q)}function Z(e){return w(S.stream,S.state),E("{"==e?q:U)}function ee(e){return w(S.stream,S.state),E("{"==e?q:W)}function te(e){return function(t){return"."==t?T(e?re:ne):"variable"==t&&l?T(ye,e?X:Y):E(e?W:U)}}function ne(e,t){if("target"==t)return S.marked="keyword",T(Y)}function re(e,t){if("target"==t)return S.marked="keyword",T(X)}function ie(e){return":"==e?T(j,q):E(Y,z(";"),j)}function oe(e){if("variable"==e)return S.marked="property",T()}function ae(e,t){return"async"==e?(S.marked="property",T(ae)):"variable"==e||"keyword"==S.style?(S.marked="property","get"==t||"set"==t?T(se):(l&&S.state.fatArrowAt==S.stream.start&&(n=S.stream.match(/^\s*:\s*/,!1))&&(S.state.fatArrowAt=S.stream.pos+n[0].length),T(ce))):"number"==e||"string"==e?(S.marked=s?"property":S.style+" property",T(ce)):"jsonld-keyword"==e?T(ce):l&&L(t)?(S.marked="keyword",T(ae)):"["==e?T(U,fe,z("]"),ce):"spread"==e?T(W,ce):"*"==t?(S.marked="keyword",T(ae)):":"==e?E(ce):void 0;var n}function se(e){return"variable"!=e?E(ce):(S.marked="property",T(Me))}function ce(e){return":"==e?T(W):"("==e?E(Me):void 0}function le(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=S.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),T((function(n,r){return n==t||r==t?E():E(e)}),r)}return i==t||o==t?T():n&&n.indexOf(";")>-1?E(e):T(z(t))}return function(n,i){return n==t||i==t?T():E(e,r)}}function ue(e,t,n){for(var r=3;r<arguments.length;r++)S.cc.push(arguments[r]);return T($(t,n),le(e,t),j)}function de(e){return"}"==e?T():E(q,de)}function fe(e,t){if(l){if(":"==e||"in"==t)return T(me);if("?"==t)return T(fe)}}function pe(e){if(l&&":"==e)return S.stream.match(/^\s*\w+\s+is\b/,!1)?T(U,he,me):T(me)}function he(e,t){if("is"==t)return S.marked="keyword",T()}function me(e,t){return"keyof"==t||"typeof"==t||"infer"==t?(S.marked="keyword",T("typeof"==t?W:me)):"variable"==e||"void"==t?(S.marked="type",T(_e)):"|"==t||"&"==t?T(me):"string"==e||"number"==e||"atom"==e?T(_e):"["==e?T($("]"),le(me,"]",","),j,_e):"{"==e?T($("}"),le(ve,"}",",;"),j,_e):"("==e?T(le(be,")"),ge,_e):"<"==e?T(le(me,">"),me):void 0}function ge(e){if("=>"==e)return T(me)}function ve(e,t){return"variable"==e||"keyword"==S.style?(S.marked="property",T(ve)):"?"==t||"number"==e||"string"==e?T(ve):":"==e?T(me):"["==e?T(z("variable"),fe,z("]"),ve):"("==e?E(Fe,ve):void 0}function be(e,t){return"variable"==e&&S.stream.match(/^\s*[?:]/,!1)||"?"==t?T(be):":"==e?T(me):"spread"==e?T(be):E(me)}function _e(e,t){return"<"==t?T($(">"),le(me,">"),j,_e):"|"==t||"."==e||"&"==t?T(me):"["==e?T(me,z("]"),_e):"extends"==t||"implements"==t?(S.marked="keyword",T(me)):"?"==t?T(me,z(":"),me):void 0}function ye(e,t){if("<"==t)return T($(">"),le(me,">"),j,_e)}function we(){return E(me,xe)}function xe(e,t){if("="==t)return T(me)}function ke(e,t){return"enum"==t?(S.marked="keyword",T(Xe)):E(Ce,fe,Ee,Te)}function Ce(e,t){return l&&L(t)?(S.marked="keyword",T(Ce)):"variable"==e?(R(t),T()):"spread"==e?T(Ce):"["==e?ue(Se,"]"):"{"==e?ue(Ae,"}"):void 0}function Ae(e,t){return"variable"!=e||S.stream.match(/^\s*:/,!1)?("variable"==e&&(S.marked="property"),"spread"==e?T(Ce):"}"==e?E():"["==e?T(U,z("]"),z(":"),Ae):T(z(":"),Ce,Ee)):(R(t),T(Ee))}function Se(){return E(Ce,Ee)}function Ee(e,t){if("="==t)return T(W)}function Te(e){if(","==e)return T(ke)}function Oe(e,t){if("keyword b"==e&&"else"==t)return T($("form","else"),q,j)}function Re(e,t){return"await"==t?T(Re):"("==e?T($(")"),De,j):void 0}function De(e){return"var"==e?T(ke,Le):"variable"==e?T(Le):E(Le)}function Le(e,t){return")"==e?T():";"==e?T(Le):"in"==t||"of"==t?(S.marked="keyword",T(U,Le)):E(U,Le)}function Me(e,t){return"*"==t?(S.marked="keyword",T(Me)):"variable"==e?(R(t),T(Me)):"("==e?T(B,$(")"),le(Be,")"),j,pe,q,P):l&&"<"==t?T($(">"),le(we,">"),j,Me):void 0}function Fe(e,t){return"*"==t?(S.marked="keyword",T(Fe)):"variable"==e?(R(t),T(Fe)):"("==e?T(B,$(")"),le(Be,")"),j,pe,P):l&&"<"==t?T($(">"),le(we,">"),j,Fe):void 0}function Ne(e,t){return"keyword"==e||"variable"==e?(S.marked="type",T(Ne)):"<"==t?T($(">"),le(we,">"),j):void 0}function Be(e,t){return"@"==t&&T(U,Be),"spread"==e?T(Be):l&&L(t)?(S.marked="keyword",T(Be)):l&&"this"==e?T(fe,Ee):E(Ce,fe,Ee)}function Ie(e,t){return"variable"==e?Pe(e,t):$e(e,t)}function Pe(e,t){if("variable"==e)return R(t),T($e)}function $e(e,t){return"<"==t?T($(">"),le(we,">"),j,$e):"extends"==t||"implements"==t||l&&","==e?("implements"==t&&(S.marked="keyword"),T(l?me:U,$e)):"{"==e?T($("}"),je,j):void 0}function je(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||l&&L(t))&&S.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(S.marked="keyword",T(je)):"variable"==e||"keyword"==S.style?(S.marked="property",T(l?ze:Me,je)):"number"==e||"string"==e?T(l?ze:Me,je):"["==e?T(U,fe,z("]"),l?ze:Me,je):"*"==t?(S.marked="keyword",T(je)):l&&"("==e?E(Fe,je):";"==e||","==e?T(je):"}"==e?T():"@"==t?T(U,je):void 0}function ze(e,t){if("?"==t)return T(ze);if(":"==e)return T(me,Ee);if("="==t)return T(W);var n=S.state.lexical.prev,r=n&&"interface"==n.info;return E(r?Fe:Me)}function qe(e,t){return"*"==t?(S.marked="keyword",T(Ke,z(";"))):"default"==t?(S.marked="keyword",T(U,z(";"))):"{"==e?T(le(He,"}"),Ke,z(";")):E(q)}function He(e,t){return"as"==t?(S.marked="keyword",T(z("variable"))):"variable"==e?E(W,He):void 0}function Ue(e){return"string"==e?T():"("==e?E(U):E(We,Ve,Ke)}function We(e,t){return"{"==e?ue(We,"}"):("variable"==e&&R(t),"*"==t&&(S.marked="keyword"),T(Ge))}function Ve(e){if(","==e)return T(We,Ve)}function Ge(e,t){if("as"==t)return S.marked="keyword",T(We)}function Ke(e,t){if("from"==t)return S.marked="keyword",T(U)}function Ye(e){return"]"==e?T():E(le(W,"]"))}function Xe(){return E($("form"),Ce,z("{"),$("}"),le(Qe,"}"),j,j)}function Qe(){return E(Ce,Ee)}function Je(e,t){return"operator"==e.lastType||","==e.lastType||f.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function Ze(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return P.lex=!0,j.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new k((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new M(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),w(e,t)),t.tokenize!=b&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",A(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==b)return e.Pass;if(t.tokenize!=g)return 0;var i,s=r&&r.charAt(0),c=t.lexical;if(!/^\s*else\b/.test(r))for(var l=t.cc.length-1;l>=0;--l){var u=t.cc[l];if(u==j)c=c.prev;else if(u!=Oe)break}while(("stat"==c.type||"form"==c.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==Y||i==X)&&!/^[,\.=+\-*:?[\(]/.test(r)))c=c.prev;a&&")"==c.type&&"stat"==c.prev.type&&(c=c.prev);var d=c.type,f=s==d;return"vardef"==d?c.indented+("operator"==t.lastType||","==t.lastType?c.info.length+1:0):"form"==d&&"{"==s?c.indented:"form"==d?c.indented+o:"stat"==d?c.indented+(Je(t,r)?a||o:0):"switch"!=c.info||f||0==n.doubleIndentSwitch?c.align?c.column+(f?0:1):c.indented+(f?0:o):c.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:c?null:"/*",blockCommentEnd:c?null:"*/",blockCommentContinue:c?null:" * ",lineComment:c?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:c?"json":"javascript",jsonldMode:s,jsonMode:c,expressionAllowed:Ze,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=U&&t!=W||e.cc.pop()}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}))},faf5:function(e,t,n){e.exports=!n("0bad")&&!n("4b8b")((function(){return 7!=Object.defineProperty(n("05f5")("div"),"a",{get:function(){return 7}}).a}))},fb6a:function(e,t,n){"use strict";var r=n("23e7"),i=n("e8b5"),o=n("68ee"),a=n("861d"),s=n("23cb"),c=n("07fa"),l=n("fc6a"),u=n("8418"),d=n("b622"),f=n("1dde"),p=n("f36a"),h=f("slice"),m=d("species"),g=Array,v=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,r,d,f=l(this),h=c(f),b=s(e,h),_=s(void 0===t?h:t,h);if(i(f)&&(n=f.constructor,o(n)&&(n===g||i(n.prototype))?n=void 0:a(n)&&(n=n[m],null===n&&(n=void 0)),n===g||void 0===n))return p(f,b,_);for(r=new(void 0===n?g:n)(v(_-b,0)),d=0;b<_;b++,d++)b in f&&u(r,d,f[b]);return r.length=d,r}})},fc1b:function(e,t,n){"use strict";var r=n("f748"),i=Math.abs,o=2220446049250313e-31,a=1/o,s=function(e){return e+a-a};e.exports=function(e,t,n,a){var c=+e,l=i(c),u=r(c);if(l<a)return u*s(l/a/t)*a*t;var d=(1+t/o)*l,f=d-(d-l);return f>n||f!==f?u*(1/0):u*f}},fc5e:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},fc6a:function(e,t,n){"use strict";var r=n("44ad"),i=n("1d80");e.exports=function(e){return r(i(e))}},fcd4:function(e,t,n){t.f=n("cc15")},fce3:function(e,t,n){"use strict";var r=n("d039"),i=n("da84"),o=i.RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},fdbc:function(e,t,n){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){"use strict";var r=n("04f8");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fed5:function(e,t){t.f=Object.getOwnPropertySymbols},ff91:function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)}}]);