diff --git a/g3w-admin/client/static/client/js/vendor.min.js b/g3w-admin/client/static/client/js/vendor.min.js index 3ed1e3554..ead747a9c 100644 --- a/g3w-admin/client/static/client/js/vendor.min.js +++ b/g3w-admin/client/static/client/js/vendor.min.js @@ -27281,4 +27281,4 @@ this.executeHTTPRequest(this.prepareHTTPRequest()),this.postRequestExecution()}, */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Quill=e():t.Quill=e()}(window,(function(){return function(t){var e={};function r(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(o,n,function(e){return t[e]}.bind(null,n));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=111)}([function(t,e,r){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},n=o(r(16)),i=o(r(1)),s=o(r(72)),a=o(r(73)),l=o(r(24)),c=String.fromCharCode(0),u=function(){function t(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}return t.prototype.insert=function(t,e){var r={};return"string"==typeof t&&0===t.length?this:(r.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(r.attributes=e),this.push(r))},t.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},t.prototype.retain=function(t,e){if(t<=0)return this;var r={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(r.attributes=e),this.push(r)},t.prototype.push=function(t){var e=this.ops.length,r=this.ops[e-1];if(t=i.default(!0,{},t),"object"==typeof r){if("number"==typeof t.delete&&"number"==typeof r.delete)return this.ops[e-1]={delete:r.delete+t.delete},this;if("number"==typeof r.delete&&null!=t.insert&&(e-=1,"object"!=typeof(r=this.ops[e-1])))return this.ops.unshift(t),this;if(n.default(t.attributes,r.attributes)){if("string"==typeof t.insert&&"string"==typeof r.insert)return this.ops[e-1]={insert:r.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof r.retain)return this.ops[e-1]={retain:r.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},t.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},t.prototype.filter=function(t){return this.ops.filter(t)},t.prototype.forEach=function(t){this.ops.forEach(t)},t.prototype.map=function(t){return this.ops.map(t)},t.prototype.partition=function(t){var e=[],r=[];return this.forEach((function(o){(t(o)?e:r).push(o)})),[e,r]},t.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},t.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+l.default.length(e):e.delete?t-e.delete:t}),0)},t.prototype.length=function(){return this.reduce((function(t,e){return t+l.default.length(e)}),0)},t.prototype.slice=function(e,r){void 0===e&&(e=0),void 0===r&&(r=1/0);for(var o=[],n=l.default.iterator(this.ops),i=0;i0&&o.next(s.retain-c)}for(var u=new t(i);r.hasNext()||o.hasNext();)if("insert"===o.peekType())u.push(o.next());else if("delete"===r.peekType())u.push(r.next());else{var p=Math.min(r.peekLength(),o.peekLength()),d=r.next(p),h=o.next(p);if("number"==typeof h.retain){var f={};"number"==typeof d.retain?f.retain=p:f.insert=d.insert;var y=a.default.compose(d.attributes,h.attributes,"number"==typeof d.retain);if(y&&(f.attributes=y),u.push(f),!o.hasNext()&&n.default(u.ops[u.ops.length-1],f)){var m=new t(r.rest());return u.concat(m).chop()}}else"number"==typeof h.delete&&"number"==typeof d.retain&&u.push(h)}return u.chop()},t.prototype.concat=function(e){var r=new t(this.ops.slice());return e.ops.length>0&&(r.push(e.ops[0]),r.ops=r.ops.concat(e.ops.slice(1))),r},t.prototype.diff=function(e,r){if(this.ops===e.ops)return new t;var o=[this,e].map((function(t){return t.map((function(r){if(null!=r.insert)return"string"==typeof r.insert?r.insert:c;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new t,u=s.default(o[0],o[1],r),p=l.default.iterator(this.ops),d=l.default.iterator(e.ops);return u.forEach((function(t){for(var e=t[1].length;e>0;){var r=0;switch(t[0]){case s.default.INSERT:r=Math.min(d.peekLength(),e),i.push(d.next(r));break;case s.default.DELETE:r=Math.min(e,p.peekLength()),p.next(r),i.delete(r);break;case s.default.EQUAL:r=Math.min(p.peekLength(),d.peekLength(),e);var o=p.next(r),l=d.next(r);n.default(o.insert,l.insert)?i.retain(r,a.default.diff(o.attributes,l.attributes)):i.push(l).delete(r)}e-=r}})),i.chop()},t.prototype.eachLine=function(e,r){void 0===r&&(r="\n");for(var o=l.default.iterator(this.ops),n=new t,i=0;o.hasNext();){if("insert"!==o.peekType())return;var s=o.peek(),a=l.default.length(s)-o.peekLength(),c="string"==typeof s.insert?s.insert.indexOf(r,a)-a:-1;if(c<0)n.push(o.next());else if(c>0)n.push(o.next(c));else{if(!1===e(n,o.next(1).attributes||{},i))return;i+=1,n=new t}}n.length()>0&&e(n,{},i)},t.prototype.invert=function(e){var r=new t;return this.reduce((function(t,o){if(o.insert)r.delete(l.default.length(o));else{if(o.retain&&null==o.attributes)return r.retain(o.retain),t+o.retain;if(o.delete||o.retain&&o.attributes){var n=o.delete||o.retain;return e.slice(t,t+n).forEach((function(t){o.delete?r.push(t):o.retain&&o.attributes&&r.retain(l.default.length(t),a.default.invert(o.attributes,t.attributes))})),t+n}}return t}),0),r.chop()},t.prototype.transform=function(e,r){if(void 0===r&&(r=!1),r=!!r,"number"==typeof e)return this.transformPosition(e,r);for(var o=e,n=l.default.iterator(this.ops),i=l.default.iterator(o.ops),s=new t;n.hasNext()||i.hasNext();)if("insert"!==n.peekType()||!r&&"insert"===i.peekType())if("insert"===i.peekType())s.push(i.next());else{var c=Math.min(n.peekLength(),i.peekLength()),u=n.next(c),p=i.next(c);if(u.delete)continue;p.delete?s.push(p):s.retain(c,a.default.transform(u.attributes,p.attributes,r))}else s.retain(l.default.length(n.next()));return s.chop()},t.prototype.transformPosition=function(t,e){void 0===e&&(e=!1),e=!!e;for(var r=l.default.iterator(this.ops),o=0;r.hasNext()&&o<=t;){var n=r.peekLength(),i=r.peekType();r.next(),"delete"!==i?("insert"===i&&(o=0;u--)if(W[u]!=$[u])return!1;for(u=W.length-1;u>=0;u--)if(p=W[u],!R(t[p],e[p],r,i))return!1;var V=h(t),H=h(e);if(V!==H)return!1;if("Set"===V||"Set"===H)return function(t,e,r,o){if(O(t)!==O(e))return!1;var n,i,s,a=f(t),l=f(e);for(;(n=a.next())&&!n.done;)if(n.value&&"object"==typeof n.value)s||(s=new x),w(s,n.value);else if(!P(e,n.value)){if(r.strict)return!1;if(!j(t,e,n.value))return!1;s||(s=new x),w(s,n.value)}if(s){for(;(i=l.next())&&!i.done;)if(i.value&&"object"==typeof i.value){if(!q(s,i.value,r.strict,o))return!1}else if(!r.strict&&!P(t,i.value)&&!q(s,i.value,r.strict,o))return!1;return 0===O(s)}return!0}(t,e,r,i);if("Map"===V)return function(t,e,r,o){if(N(t)!==N(e))return!1;var n,i,s,a,l,c,u=f(t),p=f(e);for(;(n=u.next())&&!n.done;)if(a=n.value[0],l=n.value[1],a&&"object"==typeof a)s||(s=new x),w(s,a);else if(void 0===(c=S(e,a))&&!E(e,a)||!R(l,c,r,o)){if(r.strict)return!1;if(!T(t,e,a,l,r,o))return!1;s||(s=new x),w(s,a)}if(s){for(;(i=p.next())&&!i.done;)if(a=i.value[0],c=i.value[1],a&&"object"==typeof a){if(!L(s,t,a,c,r,o))return!1}else if(!(r.strict||t.has(a)&&R(S(t,a),c,r,o)||L(s,t,a,c,g({},r,{strict:!1}),o)))return!1;return 0===O(s)}return!0}(t,e,r,i);return!0}(t,e,d,p)}function U(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&(!(t.length>0&&"number"!=typeof t[0])&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))))}t.exports=function(t,e,r){return R(t,e,r,y())}},function(t,e,r){"use strict";var o=r(21),n="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,s=Array.prototype.concat,a=Object.defineProperty,l=a&&function(){var t={};try{for(var e in a(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),c=function(t,e,r,o){var n;(!(e in t)||"function"==typeof(n=o)&&"[object Function]"===i.call(n)&&o())&&(l?a(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},u=function(t,e){var r=arguments.length>2?arguments[2]:{},i=o(e);n&&(i=s.call(i,Object.getOwnPropertySymbols(e)));for(var a=0;a=0&&"[object Array]"!==n.call(t)&&"[object Function]"===n.call(t.callee)},a=function(){return i(arguments)}();i.isLegacyArguments=s,t.exports=a?i:s},function(t,e,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},function(t,e,r){"use strict";var o=TypeError,n=Object.getOwnPropertyDescriptor;if(n)try{n({},"")}catch(t){n=null}var i=function(){throw new o},s=n?function(){try{return arguments.callee,i}catch(t){try{return n(arguments,"callee").get}catch(t){return i}}}():i,a=r(3)(),l=Object.getPrototypeOf||function(t){return t.__proto__},c=void 0,u="undefined"==typeof Uint8Array?void 0:l(Uint8Array),p={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":a?l([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":c&&a&&Symbol.asyncIterator?c[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":a?l(l([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&a?l((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&a?l((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":a?l(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":a?Symbol:void 0,"%SymbolPrototype%":a?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":s,"%TypedArray%":u,"%TypedArrayPrototype%":u?u.prototype:void 0,"%TypeError%":o,"%TypeErrorPrototype%":o.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},d=r(2).call(Function.call,String.prototype.replace),h=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,f=/\\(\\)?/g,y=function(t){var e=[];return d(t,h,(function(t,r,o,n){e[e.length]=o?d(n,f,"$1"):r||t})),e},m=function(t,e){if(!(t in p))throw new SyntaxError("intrinsic "+t+" does not exist!");if(void 0===p[t]&&!e)throw new o("intrinsic "+t+" exists, but is not available. Please file an issue!");return p[t]};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=y(t),i=m("%"+(r.length>0?r[0]:"")+"%",e),s=1;s=r.length){var a=n(i,r[s]);if(!e&&!(r[s]in i))throw new o("base intrinsic for "+t+" exists, but the property is not available.");i=a?a.get||a.value:i[r[s]]}else i=i[r[s]];return i}},function(t,e,r){"use strict";var o=TypeError,n=Object.getOwnPropertyDescriptor;if(n)try{n({},"")}catch(t){n=null}var i=function(){throw new o},s=n?function(){try{return arguments.callee,i}catch(t){try{return n(arguments,"callee").get}catch(t){return i}}}():i,a=r(3)(),l=Object.getPrototypeOf||function(t){return t.__proto__},c=void 0,u="undefined"==typeof Uint8Array?void 0:l(Uint8Array),p={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":a?l([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":c&&a&&Symbol.asyncIterator?c[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":a?l(l([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&a?l((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&a?l((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":a?l(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":a?Symbol:void 0,"%SymbolPrototype%":a?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":s,"%TypedArray%":u,"%TypedArrayPrototype%":u?u.prototype:void 0,"%TypeError%":o,"%TypeErrorPrototype%":o.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},d=r(2).call(Function.call,String.prototype.replace),h=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,f=/\\(\\)?/g,y=function(t){var e=[];return d(t,h,(function(t,r,o,n){e[e.length]=o?d(n,f,"$1"):r||t})),e},m=function(t,e){if(!(t in p))throw new SyntaxError("intrinsic "+t+" does not exist!");if(void 0===p[t]&&!e)throw new o("intrinsic "+t+" exists, but is not available. Please file an issue!");return p[t]};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=y(t),i=m("%"+(r.length>0?r[0]:"")+"%",e),s=1;s=r.length){var a=n(i,r[s]);if(!e&&!(r[s]in i))throw new o("base intrinsic for "+t+" exists, but the property is not available.");i=a?a.get||a.value:i[r[s]]}else i=i[r[s]];return i}},function(t,e,r){"use strict";var o=TypeError,n=Object.getOwnPropertyDescriptor;if(n)try{n({},"")}catch(t){n=null}var i=function(){throw new o},s=n?function(){try{return arguments.callee,i}catch(t){try{return n(arguments,"callee").get}catch(t){return i}}}():i,a=r(3)(),l=Object.getPrototypeOf||function(t){return t.__proto__},c=void 0,u="undefined"==typeof Uint8Array?void 0:l(Uint8Array),p={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":a?l([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":c&&a&&Symbol.asyncIterator?c[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":a?l(l([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&a?l((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&a?l((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":a?l(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":a?Symbol:void 0,"%SymbolPrototype%":a?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":s,"%TypedArray%":u,"%TypedArrayPrototype%":u?u.prototype:void 0,"%TypeError%":o,"%TypeErrorPrototype%":o.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},d=r(2).call(Function.call,String.prototype.replace),h=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,f=/\\(\\)?/g,y=function(t){var e=[];return d(t,h,(function(t,r,o,n){e[e.length]=o?d(n,f,"$1"):r||t})),e},m=function(t,e){if(!(t in p))throw new SyntaxError("intrinsic "+t+" does not exist!");if(void 0===p[t]&&!e)throw new o("intrinsic "+t+" exists, but is not available. Please file an issue!");return p[t]};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=y(t),i=m("%"+(r.length>0?r[0]:"")+"%",e),s=1;s=r.length){var a=n(i,r[s]);if(!e&&!(r[s]in i))throw new o("base intrinsic for "+t+" exists, but the property is not available.");i=a?a.get||a.value:i[r[s]]}else i=i[r[s]];return i}},function(t,e,r){"use strict";var o=TypeError,n=Object.getOwnPropertyDescriptor;if(n)try{n({},"")}catch(t){n=null}var i=function(){throw new o},s=n?function(){try{return arguments.callee,i}catch(t){try{return n(arguments,"callee").get}catch(t){return i}}}():i,a=r(3)(),l=Object.getPrototypeOf||function(t){return t.__proto__},c=void 0,u="undefined"==typeof Uint8Array?void 0:l(Uint8Array),p={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":a?l([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":c&&a&&Symbol.asyncIterator?c[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":a?l(l([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&a?l((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&a?l((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":a?l(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":a?Symbol:void 0,"%SymbolPrototype%":a?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":s,"%TypedArray%":u,"%TypedArrayPrototype%":u?u.prototype:void 0,"%TypeError%":o,"%TypeErrorPrototype%":o.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},d=r(2).call(Function.call,String.prototype.replace),h=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,f=/\\(\\)?/g,y=function(t){var e=[];return d(t,h,(function(t,r,o,n){e[e.length]=o?d(n,f,"$1"):r||t})),e},m=function(t,e){if(!(t in p))throw new SyntaxError("intrinsic "+t+" does not exist!");if(void 0===p[t]&&!e)throw new o("intrinsic "+t+" exists, but is not available. Please file an issue!");return p[t]};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=y(t),i=m("%"+(r.length>0?r[0]:"")+"%",e),s=1;s=r.length){var a=n(i,r[s]);if(!e&&!(r[s]in i))throw new o("base intrinsic for "+t+" exists, but the property is not available.");i=a?a.get||a.value:i[r[s]]}else i=i[r[s]];return i}},function(t,e,r){"use strict";var o=TypeError,n=Object.getOwnPropertyDescriptor;if(n)try{n({},"")}catch(t){n=null}var i=function(){throw new o},s=n?function(){try{return arguments.callee,i}catch(t){try{return n(arguments,"callee").get}catch(t){return i}}}():i,a=r(3)(),l=Object.getPrototypeOf||function(t){return t.__proto__},c=void 0,u="undefined"==typeof Uint8Array?void 0:l(Uint8Array),p={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":a?l([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":c&&a&&Symbol.asyncIterator?c[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":a?l(l([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&a?l((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&a?l((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":a?l(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":a?Symbol:void 0,"%SymbolPrototype%":a?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":s,"%TypedArray%":u,"%TypedArrayPrototype%":u?u.prototype:void 0,"%TypeError%":o,"%TypeErrorPrototype%":o.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},d=r(2).call(Function.call,String.prototype.replace),h=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,f=/\\(\\)?/g,y=function(t){var e=[];return d(t,h,(function(t,r,o,n){e[e.length]=o?d(n,f,"$1"):r||t})),e},m=function(t,e){if(!(t in p))throw new SyntaxError("intrinsic "+t+" does not exist!");if(void 0===p[t]&&!e)throw new o("intrinsic "+t+" exists, but is not available. Please file an issue!");return p[t]};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=y(t),i=m("%"+(r.length>0?r[0]:"")+"%",e),s=1;s=r.length){var a=n(i,r[s]);if(!e&&!(r[s]in i))throw new o("base intrinsic for "+t+" exists, but the property is not available.");i=a?a.get||a.value:i[r[s]]}else i=i[r[s]];return i}},function(t,e){t.exports=' '},function(t,e,r){var o=r(63),n=r(8),i=r(18),s=r(65),a=r(20),l=r(71),c=Date.prototype.getTime;function u(t,e,r){var h=r||{};return!!(h.strict?i(t,e):t===e)||(!t||!e||"object"!=typeof t&&"object"!=typeof e?h.strict?i(t,e):t==e:function(t,e,r){var i,h;if(typeof t!=typeof e)return!1;if(p(t)||p(e))return!1;if(t.prototype!==e.prototype)return!1;if(n(t)!==n(e))return!1;var f=s(t),y=s(e);if(f!==y)return!1;if(f||y)return t.source===e.source&&a(t)===a(e);if(l(t)&&l(e))return c.call(t)===c.call(e);var m=d(t),g=d(e);if(m!==g)return!1;if(m||g){if(t.length!==e.length)return!1;for(i=0;i=0;i--)if(b[i]!=v[i])return!1;for(i=b.length-1;i>=0;i--)if(h=b[i],!u(t[h],e[h],r))return!1;return!0}(t,e,h))}function p(t){return null==t}function d(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}t.exports=u},function(t,e,r){"use strict";var o=Object.prototype.toString;t.exports=function(t){var e=o.call(t),r="[object Arguments]"===e;return r||(r="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===o.call(t.callee)),r}},function(t,e,r){"use strict";var o=function(t){return t!=t};t.exports=function(t,e){return 0===t&&0===e?1/t==1/e:t===e||!(!o(t)||!o(e))}},function(t,e,r){"use strict";var o=r(2);t.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e,r){"use strict";var o=r(6),n=r(68),i=r(22),s=r(23),a=r(70),l=n(i);o(l,{getPolyfill:s,implementation:i,shim:a}),t.exports=l},function(t,e,r){"use strict";var o=Object.prototype.hasOwnProperty,n=Object.prototype.toString,i=Array.prototype.slice,s=r(67),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),c=a.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(t){var e=t.constructor;return e&&e.prototype===t},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!d["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{p(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),f=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===n.call(t),i=s(t),a=e&&"[object String]"===n.call(t),d=[];if(!e&&!r&&!i)throw new TypeError("Object.keys called on a non-object");var f=c&&r;if(a&&t.length>0&&!o.call(t,0))for(var y=0;y0)for(var m=0;m=0&&"[object Function]"===o.call(t.callee)),r}},function(t,e,r){"use strict";var o=String.prototype.valueOf,n=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"string"==typeof t||"object"==typeof t&&(i?function(t){try{return o.call(t),!0}catch(t){return!1}}(t):"[object String]"===n.call(t))}},function(t,e,r){"use strict";var o,n="function"==typeof Map&&Map.prototype?Map:null,i="function"==typeof Set&&Set.prototype?Set:null;n||(o=function(t){return!1});var s=n?Map.prototype.has:null,a=i?Set.prototype.has:null;o||s||(o=function(t){return!1}),t.exports=o||function(t){if(!t||"object"!=typeof t)return!1;try{if(s.call(t),a)try{a.call(t)}catch(t){return!0}return t instanceof n}catch(t){}return!1}},function(t,e,r){"use strict";var o,n="function"==typeof Map&&Map.prototype?Map:null,i="function"==typeof Set&&Set.prototype?Set:null;i||(o=function(t){return!1});var s=n?Map.prototype.has:null,a=i?Set.prototype.has:null;o||a||(o=function(t){return!1}),t.exports=o||function(t){if(!t||"object"!=typeof t)return!1;try{if(a.call(t),s)try{s.call(t)}catch(t){return!0}return t instanceof i}catch(t){}return!1}},function(t,e){var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString;t.exports=function(t,e,n){if("[object Function]"!==o.call(e))throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var s=0;s '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e,r){"use strict";var o=Array.prototype.slice,n=r(17),i=Object.keys,s=i?function(t){return i(t)}:r(64),a=Object.keys;s.shim=function(){Object.keys?function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2)||(Object.keys=function(t){return n(t)?a(o.call(t)):a(t)}):Object.keys=s;return Object.keys||s},t.exports=s},function(t,e,r){"use strict";var o;if(!Object.keys){var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,s=r(17),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),c=a.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(t){var e=t.constructor;return e&&e.prototype===t},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!d["$"+t]&&n.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{p(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();o=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===i.call(t),o=s(t),a=e&&"[object String]"===i.call(t),d=[];if(!e&&!r&&!o)throw new TypeError("Object.keys called on a non-object");var f=c&&r;if(a&&t.length>0&&!n.call(t,0))for(var y=0;y0)for(var m=0;m=0&&"[object Function]"===o.call(t.callee)),r}},function(t,e,r){"use strict";var o=r(2),n=r(69)("%Function%"),i=n.apply,s=n.call;t.exports=function(){return o.apply(s,arguments)},t.exports.apply=function(){return o.apply(i,arguments)}},function(t,e,r){"use strict";var o=TypeError,n=Object.getOwnPropertyDescriptor;if(n)try{n({},"")}catch(t){n=null}var i=function(){throw new o},s=n?function(){try{return arguments.callee,i}catch(t){try{return n(arguments,"callee").get}catch(t){return i}}}():i,a=r(3)(),l=Object.getPrototypeOf||function(t){return t.__proto__},c=void 0,u="undefined"==typeof Uint8Array?void 0:l(Uint8Array),p={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":a?l([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":c&&a&&Symbol.asyncIterator?c[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":a?l(l([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&a?l((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&a?l((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":a?l(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":a?Symbol:void 0,"%SymbolPrototype%":a?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":s,"%TypedArray%":u,"%TypedArrayPrototype%":u?u.prototype:void 0,"%TypeError%":o,"%TypeErrorPrototype%":o.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},d=r(2).call(Function.call,String.prototype.replace),h=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,f=/\\(\\)?/g,y=function(t){var e=[];return d(t,h,(function(t,r,o,n){e[e.length]=o?d(n,f,"$1"):r||t})),e},m=function(t,e){if(!(t in p))throw new SyntaxError("intrinsic "+t+" does not exist!");if(void 0===p[t]&&!e)throw new o("intrinsic "+t+" exists, but is not available. Please file an issue!");return p[t]};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=y(t),i=m("%"+(r.length>0?r[0]:"")+"%",e),s=1;s=r.length){var a=n(i,r[s]);if(!e&&!(r[s]in i))throw new o("base intrinsic for "+t+" exists, but the property is not available.");i=a?a.get||a.value:i[r[s]]}else i=i[r[s]];return i}},function(t,e,r){"use strict";var o=r(6).supportsDescriptors,n=r(23),i=Object.getOwnPropertyDescriptor,s=Object.defineProperty,a=TypeError,l=Object.getPrototypeOf,c=/a/;t.exports=function(){if(!o||!l)throw new a("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=n(),e=l(c),r=i(e,"flags");return r&&r.get===t||s(e,"flags",{configurable:!0,enumerable:!1,get:t}),t}},function(t,e,r){"use strict";var o=Date.prototype.getDay,n=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(t){return"object"==typeof t&&null!==t&&(i?function(t){try{return o.call(t),!0}catch(t){return!1}}(t):"[object Date]"===n.call(t))}},function(t,e){function r(t,e,s,a){if(t===e)return t?[[0,t]]:[];if(null!=s){var p=function(t,e,r){var o="number"==typeof r?{index:r,length:0}:r.oldRange,n="number"==typeof r?null:r.newRange,i=t.length,s=e.length;if(0===o.length&&(null===n||0===n.length)){var a=o.index,l=t.slice(0,a),c=t.slice(a),p=n?n.index:null,d=a+s-i;if((null===p||p===d)&&!(d<0||d>s)){var h=e.slice(0,d);if((A=e.slice(d))===c){var f=Math.min(a,d),y=l.slice(0,f),m=h.slice(0,f);if(y===m){var g=l.slice(f),b=h.slice(f);return u(y,g,b,c)}}}if(null===p||p===a){var v=a,A=(h=e.slice(0,v),e.slice(v));if(h===l){var x=Math.min(i-v,s-v),E=c.slice(c.length-x),S=A.slice(A.length-x);if(E===S){g=c.slice(0,c.length-x),b=A.slice(0,A.length-x);return u(l,g,b,E)}}}}if(o.length>0&&n&&0===n.length){y=t.slice(0,o.index),E=t.slice(o.index+o.length),f=y.length,x=E.length;if(!(se.length?t:e,l=t.length>e.length?e:t,c=a.indexOf(l);if(-1!==c)return s=[[1,a.substring(0,c)],[0,l],[1,a.substring(c+l.length)]],t.length>e.length&&(s[0][0]=s[2][0]=-1),s;if(1===l.length)return[[-1,t],[1,e]];var u=function(t,e){var r=t.length>e.length?t:e,o=t.length>e.length?e:t;if(r.length<4||2*o.length=t.length?[o,s,a,l,p]:null}var a,l,c,u,p,d=s(r,o,Math.ceil(r.length/4)),h=s(r,o,Math.ceil(r.length/2));if(!d&&!h)return null;a=h?d&&d[4].length>h[4].length?d:h:d;t.length>e.length?(l=a[0],c=a[1],u=a[2],p=a[3]):(u=a[0],p=a[1],l=a[2],c=a[3]);var f=a[4];return[l,c,u,p,f]}(t,e);if(u){var p=u[0],d=u[1],h=u[2],f=u[3],y=u[4],m=r(p,h),g=r(d,f);return m.concat([[0,y]],g)}return function(t,e){for(var r=t.length,n=e.length,i=Math.ceil((r+n)/2),s=i,a=2*i,l=new Array(a),c=new Array(a),u=0;ur)f+=2;else if(A>n)h+=2;else if(d){if((S=s+p-b)>=0&&S=x)return o(t,e,w,A)}}}for(var E=-g+y;E<=g-m;E+=2){for(var S=s+E,N=(x=E===-g||E!==g&&c[S-1]r)m+=2;else if(N>n)y+=2;else if(!d){if((v=s+p-E)>=0&&v=(x=r-x))return o(t,e,w,A)}}}}return[[-1,t],[1,e]]}(t,e)}(t=t.substring(0,t.length-d),e=e.substring(0,e.length-d));return h&&y.unshift([0,h]),f&&y.push([0,f]),function t(e,r){e.push([0,""]);var o,s=0,a=0,u=0,p="",d="";for(;s=0&&c(e[h][1])){var f=e[h][1].slice(-1);if(e[h][1]=e[h][1].slice(0,-1),p=f+p,d=f+d,!e[h][1]){e.splice(h,1),s--;var y=h-1;e[y]&&1===e[y][0]&&(u++,d=e[y][1]+d,y--),e[y]&&-1===e[y][0]&&(a++,p=e[y][1]+p,y--),h=y}}if(l(e[s][1])){f=e[s][1].charAt(0);e[s][1]=e[s][1].slice(1),p+=f,d+=f}}if(s0||d.length>0){p.length>0&&d.length>0&&(0!==(o=n(d,p))&&(h>=0?e[h][1]+=d.substring(0,o):(e.splice(0,0,[0,d.substring(0,o)]),s++),d=d.substring(o),p=p.substring(o)),0!==(o=i(d,p))&&(e[s][1]=d.substring(d.length-o)+e[s][1],d=d.substring(0,d.length-o),p=p.substring(0,p.length-o)));var m=u+a;0===p.length&&0===d.length?(e.splice(s-m,m),s-=m):0===p.length?(e.splice(s-m,m,[1,d]),s=s-m+1):0===d.length?(e.splice(s-m,m,[-1,p]),s=s-m+1):(e.splice(s-m,m,[-1,p],[1,d]),s=s-m+2)}0!==s&&0===e[s-1][0]?(e[s-1][1]+=e[s][1],e.splice(s,1)):s++,u=0,a=0,p="",d=""}""===e[e.length-1][1]&&e.pop();var g=!1;s=1;for(;s=55296&&t<=56319}function a(t){return t>=56320&&t<=57343}function l(t){return a(t.charCodeAt(0))}function c(t){return s(t.charCodeAt(t.length-1))}function u(t,e,r,o){return c(t)||l(o)?null:function(t){for(var e=[],r=0;r0&&e.push(t[r]);return e}([[0,t],[-1,e],[1,r],[0,o]])}function p(t,e,o){return r(t,e,o,!0)}p.INSERT=1,p.DELETE=-1,p.EQUAL=0,t.exports=p},function(t,e,r){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var n,i=o(r(16)),s=o(r(1));!function(t){t.compose=function(t,e,r){void 0===t&&(t={}),void 0===e&&(e={}),"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var o=s.default(!0,{},e);for(var n in r||(o=Object.keys(o).reduce((function(t,e){return null!=o[e]&&(t[e]=o[e]),t}),{})),t)void 0!==t[n]&&void 0===e[n]&&(o[n]=t[n]);return Object.keys(o).length>0?o:void 0},t.diff=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=Object.keys(t).concat(Object.keys(e)).reduce((function(r,o){return i.default(t[o],e[o])||(r[o]=void 0===e[o]?null:e[o]),r}),{});return Object.keys(r).length>0?r:void 0},t.invert=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),t=t||{};var r=Object.keys(e).reduce((function(r,o){return e[o]!==t[o]&&void 0!==t[o]&&(r[o]=e[o]),r}),{});return Object.keys(t).reduce((function(r,o){return t[o]!==e[o]&&void 0===e[o]&&(r[o]=null),r}),r)},t.transform=function(t,e,r){if(void 0===r&&(r=!1),"object"!=typeof t)return e;if("object"==typeof e){if(!r)return e;var o=Object.keys(e).reduce((function(r,o){return void 0===t[o]&&(r[o]=e[o]),r}),{});return Object.keys(o).length>0?o:void 0}}}(n||(n={})),e.default=n},function(t,e,r){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var n=o(r(24)),i=function(){function t(t){this.ops=t,this.index=0,this.offset=0}return t.prototype.hasNext=function(){return this.peekLength()<1/0},t.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var r=this.offset,o=n.default.length(e);if(t>=o-r?(t=o-r,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var i={};return e.attributes&&(i.attributes=e.attributes),"number"==typeof e.retain?i.retain=t:"string"==typeof e.insert?i.insert=e.insert.substr(r,t):i.insert=e.insert,i}return{retain:1/0}},t.prototype.peek=function(){return this.ops[this.index]},t.prototype.peekLength=function(){return this.ops[this.index]?n.default.length(this.ops[this.index])-this.offset:1/0},t.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},t.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,r=this.next(),o=this.ops.slice(this.index);return this.offset=t,this.index=e,[r].concat(o)}return[]},t}();e.default=i},function(t,e,r){"use strict";var o=Array.prototype.slice,n=r(25),i=Object.keys,s=i?function(t){return i(t)}:r(76),a=Object.keys;s.shim=function(){Object.keys?function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2)||(Object.keys=function(t){return n(t)?a(o.call(t)):a(t)}):Object.keys=s;return Object.keys||s},t.exports=s},function(t,e,r){"use strict";var o;if(!Object.keys){var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,s=r(25),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),c=a.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(t){var e=t.constructor;return e&&e.prototype===t},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!d["$"+t]&&n.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{p(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();o=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===i.call(t),o=s(t),a=e&&"[object String]"===i.call(t),d=[];if(!e&&!r&&!o)throw new TypeError("Object.keys called on a non-object");var f=c&&r;if(a&&t.length>0&&!n.call(t,0))for(var y=0;y0)for(var m=0;m=t.length;return o||(r=t[e],e+=1),{done:o,value:r}}}},y=function(t){if(i(t)||o(t))return f(t);if(s(t)){var e=0;return{next:function(){var r=function(t,e){if(e+1>=t.length)return e+1;var r=d(t,e);if(r<55296||r>56319)return e+1;var o=d(t,e+1);return o<56320||o>57343?e+1:e+2}(t,e),o=h(t,e,r);return e=r,{done:r>t.length,value:o}}}}};if(l||c){var m=r(27),g=r(28),b=u("Map.prototype.forEach",!0),v=u("Set.prototype.forEach",!0);if(void 0===e||!e.versions||!e.versions.node)var A=u("Map.prototype.iterator",!0),x=u("Set.prototype.iterator",!0),E=function(t){var e=!1;return{next:function(){try{return{done:e,value:e?void 0:t.next()}}catch(t){return e=!0,{done:!0,value:void 0}}}}};var S=u("Map.prototype.@@iterator",!0)||u("Map.prototype._es6-shim iterator_",!0),N=u("Set.prototype.@@iterator",!0)||u("Set.prototype._es6-shim iterator_",!0);t.exports=function(t){return function(t){if(m(t)){if(A)return E(A(t));if(S)return S(t);if(b){var e=[];return b(t,(function(t,r){p(e,[r,t])})),f(e)}}if(g(t)){if(x)return E(x(t));if(N)return N(t);if(v){var r=[];return v(t,(function(t){p(r,t)})),f(r)}}}(t)||y(t)}}else t.exports=y}}).call(this,r(91))},function(t,e){var r,o,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(t){o=s}}();var l,c=[],u=!1,p=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):p=-1,c.length&&h())}function h(){if(!u){var t=a(d);u=!0;for(var e=c.length;e;){for(l=c,c=[];++p1)for(var r=1;r0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var l=void 0===a.depth?5:a.depth;if(void 0===o&&(o=0),o>=l&&l>0&&"object"==typeof e)return"[Object]";if(void 0===n)n=[];else if(function(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r=0)return"[Circular]";function f(e,r){return r&&(n=n.slice()).push(r),t(e,a,o+1,n)}if("function"==typeof e){var g=function(t){if(t.name)return t.name;var e=y.call(t,/^function\s*([\w$]+)/);if(e)return e[1];return null}(e);return"[Function"+(g?": "+g:"")+"]"}if(E(e)){var S=Symbol.prototype.toString.call(e);return"object"==typeof e?P(S):S}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var T="<"+String(e.nodeName).toLowerCase(),j=e.attributes||[],L=0;L"}if(x(e))return 0===e.length?"[]":"[ "+I(e,f).join(", ")+" ]";if(function(t){return"[object Error]"===w(t)}(e)){var R=I(e,f);return 0===R.length?"["+String(e)+"]":"{ ["+String(e)+"] "+R.join(", ")+" }"}if("object"==typeof e){if(b&&"function"==typeof e[b])return e[b]();if("function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var U=[];return s.call(e,(function(t,r){U.push(f(r,e)+" => "+f(t,e))})),q("Map",i.call(e),U)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var C=[];return u.call(e,(function(t){C.push(f(t,e))})),q("Set",c.call(e),C)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{d.call(t,d)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return O("WeakMap");if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{d.call(t,d);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return O("WeakSet");if(function(t){return"[object Number]"===w(t)}(e))return P(f(Number(e)));if(function(t){return"[object BigInt]"===w(t)}(e))return P(f(m.call(e)));if(function(t){return"[object Boolean]"===w(t)}(e))return P(h.call(e));if(function(t){return"[object String]"===w(t)}(e))return P(f(String(e)));if(!function(t){return"[object Date]"===w(t)}(e)&&!function(t){return"[object RegExp]"===w(t)}(e)){var M=I(e,f);return 0===M.length?"{}":"{ "+M.join(", ")+" }"}return String(e)};var S=Object.prototype.hasOwnProperty||function(t){return t in this};function N(t,e){return S.call(t,e)}function w(t){return f.call(t)}function k(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+e.toString(16)}function P(t){return"Object("+t+")"}function O(t){return t+" { ? }"}function q(t,e,r){return t+" ("+e+") {"+r.join(", ")+"}"}function I(t,e){var r=x(t),o=[];if(r){o.length=t.length;for(var n=0;n-1}return!!d&&function(t){var e=!1;return o(p,(function(r,o){if(!e)try{e=r.call(t)===o}catch(t){}})),e}(t)}}).call(this,r(7))},function(t,e,r){"use strict";var o=r(14),n=r(107),i=n(o("String.prototype.indexOf"));t.exports=function(t,e){var r=o(t,!!e);return"function"==typeof r&&i(t,".prototype.")?n(r):r}},function(t,e,r){"use strict";var o=r(2),n=r(14)("%Function%"),i=n.apply,s=n.call;t.exports=function(){return o.apply(s,arguments)},t.exports.apply=function(){return o.apply(i,arguments)}},function(t,e,r){"use strict";var o=r(14)("%Object.getOwnPropertyDescriptor%");if(o)try{o([],"length")}catch(t){o=null}t.exports=o},function(t,e,r){"use strict";var o=r(6),n=r(31),i=r(32),s=r(110),a=i();o(a,{getPolyfill:i,implementation:n,shim:s}),t.exports=a},function(t,e,r){"use strict";var o=r(6),n=r(32);t.exports=function(){var t=n();return o(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t}},function(t,e,r){"use strict";r.r(e);var o={};r.r(o),r.d(o,"ParentBlot",(function(){return y})),r.d(o,"ContainerBlot",(function(){return g})),r.d(o,"LeafBlot",(function(){return v})),r.d(o,"EmbedBlot",(function(){return I})),r.d(o,"ScrollBlot",(function(){return L})),r.d(o,"BlockBlot",(function(){return q})),r.d(o,"InlineBlot",(function(){return P})),r.d(o,"TextBlot",(function(){return U})),r.d(o,"Attributor",(function(){return A})),r.d(o,"ClassAttributor",(function(){return E})),r.d(o,"StyleAttributor",(function(){return N})),r.d(o,"AttributorStore",(function(){return w})),r.d(o,"Registry",(function(){return u})),r.d(o,"Scope",(function(){return a}));var n,i=r(0),s=r.n(i);!function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(n||(n={}));var a=n;var l=class{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const e=t.slice(1);this.append(...e)}}at(t){const e=this.iterator();let r=e();for(;r&&t>0;)t-=1,r=e();return r}contains(t){const e=this.iterator();let r=e();for(;r;){if(r===t)return!0;r=e()}return!1}indexOf(t){const e=this.iterator();let r=e(),o=0;for(;r;){if(r===t)return o;o+=1,r=e()}return-1}insertBefore(t,e){null!=t&&(this.remove(t),t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,r=this.head;for(;null!=r;){if(r===t)return e;e+=r.length(),r=r.next}return-1}remove(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const e=t;return null!=t&&(t=t.next),e}}find(t,e=!1){const r=this.iterator();let o=r();for(;o;){const n=o.length();if(ti?r(a,t-i,Math.min(e,i+o-t)):r(a,0,Math.min(o,t+e-i)),i+=o,a=s()}}map(t){return this.reduce((e,r)=>(e.push(t(r)),e),[])}reduce(t,e){const r=this.iterator();let o=r();for(;o;)e=t(e,o),o=r();return e}};class c extends Error{constructor(t){super(t="[Parchment] "+t),this.message=t,this.name=this.constructor.name}}class u{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){return null==t?null:this.blots.has(t)?this.blots.get(t)||null:e?this.find(t.parentNode,e):null}create(t,e,r){const o=this.query(e);if(null==o)throw new c(`Unable to create ${e} blot`);const n=o,i=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:n.create(r),s=new n(t,i,r);return u.blots.set(s.domNode,s),s}find(t,e=!1){return u.find(t,e)}query(t,e=a.ANY){let r;if("string"==typeof t)r=this.types[t]||this.attributes[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)r=this.types.text;else if("number"==typeof t)t&a.LEVEL&a.BLOCK?r=this.types.block:t&a.LEVEL&a.INLINE&&(r=this.types.inline);else if(t instanceof HTMLElement){(t.getAttribute("class")||"").split(/\s+/).some(t=>(r=this.classes[t],!!r)),r=r||this.tags[t.tagName]}return null==r?null:e&a.LEVEL&r.scope&&e&a.TYPE&r.scope?r:null}register(...t){if(t.length>1)return t.map(t=>this.register(t));const e=t[0];if("string"!=typeof e.blotName&&"string"!=typeof e.attrName)throw new c("Invalid definition");if("abstract"===e.blotName)throw new c("Cannot register abstract class");if(this.types[e.blotName||e.attrName]=e,"string"==typeof e.keyName)this.attributes[e.keyName]=e;else if(null!=e.className&&(this.classes[e.className]=e),null!=e.tagName){Array.isArray(e.tagName)?e.tagName=e.tagName.map(t=>t.toUpperCase()):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEach(t=>{null!=this.tags[t]&&null!=e.className||(this.tags[t]=e)})}return e}}u.blots=new WeakMap;class p{constructor(t,e){this.scroll=t,this.domNode=e,u.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(null==this.tagName)throw new c("Blot definition missing tagName");let e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t,10).toString()===t&&(t=parseInt(t,10))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){null!=this.parent&&this.parent.removeChild(this),u.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,r,o){const n=this.isolate(t,e);if(null!=this.scroll.query(r,a.BLOT)&&o)n.wrap(r,o);else if(null!=this.scroll.query(r,a.ATTRIBUTE)){const t=this.scroll.create(this.statics.scope);n.wrap(t),t.format(r,o)}}insertAt(t,e,r){const o=null==r?this.scroll.create("text",e):this.scroll.create(e,r),n=this.split(t);this.parent.insertBefore(o,n||void 0)}isolate(t,e){const r=this.split(t);if(null==r)throw new Error("Attempt to isolate at end");return r.split(e),r}length(){return 1}offset(t=this.parent){return null==this.parent||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){!this.statics.requiredContainer||this.parent instanceof this.statics.requiredContainer||this.wrap(this.statics.requiredContainer.blotName)}remove(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,e){const r="string"==typeof t?this.scroll.create(t,e):t;return null!=this.parent&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(t,e){return 0===t?this:this.next}update(t,e){}wrap(t,e){const r="string"==typeof t?this.scroll.create(t,e):t;if(null!=this.parent&&this.parent.insertBefore(r,this.next||void 0),"function"!=typeof r.appendChild)throw new c(`Cannot wrap ${t}`);return r.appendChild(this),r}}p.blotName="abstract";var d=p;function h(t,e){let r=e.find(t);if(null==r)try{r=e.create(t)}catch(o){r=e.create(a.INLINE),Array.from(t.childNodes).forEach(t=>{r.domNode.appendChild(t)}),t.parentNode&&t.parentNode.replaceChild(r.domNode,t),r.attach()}return r}class f extends d{constructor(t,e){super(t,e),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=t,f.uiClass&&this.uiNode.classList.add(f.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new l,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const e=h(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(t){if(t instanceof c)return;throw t}})}deleteAt(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(t,e,r)=>{t.deleteAt(e,r)})}descendant(t,e=0){const[r,o]=this.children.find(e);return null==t.blotName&&t(r)||null!=t.blotName&&r instanceof t?[r,o]:r instanceof f?r.descendant(t,o):[null,-1]}descendants(t,e=0,r=Number.MAX_VALUE){let o=[],n=r;return this.children.forEachAt(e,r,(e,r,i)=>{(null==t.blotName&&t(e)||null!=t.blotName&&e instanceof t)&&o.push(e),e instanceof f&&(o=o.concat(e.descendants(t,r,n))),n-=i}),o}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(e=>{if(t)return;this.statics.allowedChildren.some(t=>e instanceof t)||(e.statics.scope===a.BLOCK_BLOT?(null!=e.next&&this.splitAfter(e),null!=e.prev&&this.splitAfter(e.prev),e.parent.unwrap(),t=!0):e instanceof f?e.unwrap():e.remove())})}formatAt(t,e,r,o){this.children.forEachAt(t,e,(t,e,n)=>{t.formatAt(e,n,r,o)})}insertAt(t,e,r){const[o,n]=this.children.find(t);if(o)o.insertAt(n,e,r);else{const t=null==r?this.scroll.create("text",e):this.scroll.create(e,r);this.appendChild(t)}}insertBefore(t,e){null!=t.parent&&t.parent.children.remove(t);let r=null;this.children.insertBefore(t,e||null),t.parent=this,null!=e&&(r=e.domNode),this.domNode.parentNode===t.domNode&&this.domNode.nextSibling===r||this.domNode.insertBefore(t.domNode,r),t.attach()}length(){return this.children.reduce((t,e)=>t+e.length(),0)}moveChildren(t,e){this.children.forEach(r=>{t.insertBefore(r,e)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(t,e=!1){const[r,o]=this.children.find(t,e),n=[[this,t]];return r instanceof f?n.concat(r.path(o,e)):(null!=r&&n.push([r,o]),n)}removeChild(t){this.children.remove(t)}replaceWith(t,e){const r="string"==typeof t?this.scroll.create(t,e):t;return r instanceof f&&this.moveChildren(r),super.replaceWith(r)}split(t,e=!1){if(!e){if(0===t)return this;if(t===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(t,this.length(),(t,o,n)=>{const i=t.split(o,e);null!=i&&r.appendChild(i)}),r}splitAfter(t){const e=this.clone();for(;null!=t.next;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){const r=[],o=[];t.forEach(t=>{t.target===this.domNode&&"childList"===t.type&&(r.push(...t.addedNodes),o.push(...t.removedNodes))}),o.forEach(t=>{if(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const e=this.scroll.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==this.domNode||e.detach())}),r.filter(t=>t.parentNode===this.domNode||t===this.uiNode).sort((t,e)=>t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(t=>{let e=null;null!=t.nextSibling&&(e=this.scroll.find(t.nextSibling));const r=h(t,this.scroll);r.next===e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(this),this.insertBefore(r,e||void 0))}),this.enforceAllowedChildren()}}f.uiClass="";var y=f;class m extends y{checkMerge(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,r,o){super.formatAt(t,e,r,o),this.enforceAllowedChildren()}insertAt(t,e,r){super.insertAt(t,e,r),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}}m.blotName="container",m.scope=a.BLOCK_BLOT;var g=m;class b extends d{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}}b.scope=a.INLINE_BLOT;var v=b;class A{constructor(t,e,r={}){this.attrName=t,this.keyName=e;const o=a.TYPE&a.ATTRIBUTE;this.scope=null!=r.scope?r.scope&a.LEVEL|o:a.ATTRIBUTE,null!=r.whitelist&&(this.whitelist=r.whitelist)}static keys(t){return Array.from(t.attributes).map(t=>t.name)}add(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)}canAdd(t,e){return null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1)}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}function x(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(t=>0===t.indexOf(`${e}-`))}var E=class extends A{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0)}remove(t){x(t,this.keyName).forEach(e=>{t.classList.remove(e)}),0===t.classList.length&&t.removeAttribute("class")}value(t){const e=(x(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}};function S(t){const e=t.split("-"),r=e.slice(1).map(t=>t[0].toUpperCase()+t.slice(1)).join("");return e[0]+r}var N=class extends A{static keys(t){return(t.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(t,e){return!!this.canAdd(t,e)&&(t.style[S(this.keyName)]=e,!0)}remove(t){t.style[S(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[S(this.keyName)];return this.canAdd(t,e)?e:""}};var w=class{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=u.find(this.domNode);if(null==t)return;const e=A.keys(this.domNode),r=E.keys(this.domNode),o=N.keys(this.domNode);e.concat(r).concat(o).forEach(e=>{const r=t.scroll.query(e,a.ATTRIBUTE);r instanceof A&&(this.attributes[r.attrName]=r)})}copy(t){Object.keys(this.attributes).forEach(e=>{const r=this.attributes[e].value(this.domNode);t.format(e,r)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t),{})}};class k extends y{constructor(t,e){super(t,e),this.attributes=new w(this.domNode)}static formats(t,e){const r=e.query(k.blotName);if(null==r||t.tagName!==r.tagName)return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)}format(t,e){if(t!==this.statics.blotName||e){const r=this.scroll.query(t,a.INLINE);if(null==r)return;r instanceof A?this.attributes.attribute(r,e):!e||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e)}else this.children.forEach(t=>{t instanceof k||(t=t.wrap(k.blotName,!0)),this.attributes.copy(t)}),this.unwrap()}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return null!=e&&(t[this.statics.blotName]=e),t}formatAt(t,e,r,o){if(null!=this.formats()[r]||this.scroll.query(r,a.ATTRIBUTE)){this.isolate(t,e).format(r,o)}else super.formatAt(t,e,r,o)}optimize(t){super.optimize(t);const e=this.formats();if(0===Object.keys(e).length)return this.unwrap();const r=this.next;r instanceof k&&r.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(t[r]!==e[r])return!1;return!0}(e,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(t,e){const r=super.replaceWith(t,e);return this.attributes.copy(r),r}update(t,e){super.update(t,e),t.some(t=>t.target===this.domNode&&"attributes"===t.type)&&this.attributes.build()}wrap(t,e){const r=super.wrap(t,e);return r instanceof k&&this.attributes.move(r),r}}k.allowedChildren=[k,v],k.blotName="inline",k.scope=a.INLINE_BLOT,k.tagName="SPAN";var P=k;class O extends y{constructor(t,e){super(t,e),this.attributes=new w(this.domNode)}static formats(t,e){const r=e.query(O.blotName);if(null==r||t.tagName!==r.tagName)return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)}format(t,e){const r=this.scroll.query(t,a.BLOCK);null!=r&&(r instanceof A?this.attributes.attribute(r,e):t!==this.statics.blotName||e?!e||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e):this.replaceWith(O.blotName))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return null!=e&&(t[this.statics.blotName]=e),t}formatAt(t,e,r,o){null!=this.scroll.query(r,a.BLOCK)?this.format(r,o):super.formatAt(t,e,r,o)}insertAt(t,e,r){if(null==r||null!=this.scroll.query(e,a.INLINE))super.insertAt(t,e,r);else{const o=this.split(t);if(null==o)throw new Error("Attempt to insertAt after block boundaries");{const t=this.scroll.create(e,r);o.parent.insertBefore(t,o)}}}replaceWith(t,e){const r=super.replaceWith(t,e);return this.attributes.copy(r),r}update(t,e){super.update(t,e),t.some(t=>t.target===this.domNode&&"attributes"===t.type)&&this.attributes.build()}}O.blotName="block",O.scope=a.BLOCK_BLOT,O.tagName="P",O.allowedChildren=[P,O,v];var q=O;var I=class extends v{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,r,o){0===t&&e===this.length()?this.format(r,o):super.formatAt(t,e,r,o)}formats(){return this.statics.formats(this.domNode,this.scroll)}};const T={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};class j extends y{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(t=>{this.update(t)}),this.observer.observe(this.domNode,T),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){return this.registry.find(t,e)}query(t,e=a.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){null!=this.scroll&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),0===t&&e===this.length()?this.children.forEach(t=>{t.remove()}):super.deleteAt(t,e)}formatAt(t,e,r,o){this.update(),super.formatAt(t,e,r,o)}insertAt(t,e,r){this.update(),super.insertAt(t,e,r)}optimize(t=[],e={}){super.optimize(e);const r=e.mutationsMap||new WeakMap;let o=Array.from(this.observer.takeRecords());for(;o.length>0;)t.push(o.pop());const n=(t,e=!0)=>{null!=t&&t!==this&&null!=t.domNode.parentNode&&(r.has(t.domNode)||r.set(t.domNode,[]),e&&n(t.parent))},i=t=>{r.has(t.domNode)&&(t instanceof y&&t.children.forEach(i),r.delete(t.domNode),t.optimize(e))};let s=t;for(let e=0;s.length>0;e+=1){if(e>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(s.forEach(t=>{const e=this.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(n(this.find(t.previousSibling,!1)),Array.from(t.addedNodes).forEach(t=>{const e=this.find(t,!1);n(e,!1),e instanceof y&&e.children.forEach(t=>{n(t,!1)})})):"attributes"===t.type&&n(e.prev)),n(e))}),this.children.forEach(i),s=Array.from(this.observer.takeRecords()),o=s.slice();o.length>0;)t.push(o.pop())}}update(t,e={}){t=t||this.observer.takeRecords();const r=new WeakMap;t.map(t=>{const e=u.find(t.target,!0);return null==e?null:r.has(e.domNode)?(r.get(e.domNode).push(t),null):(r.set(e.domNode,[t]),e)}).forEach(t=>{null!=t&&t!==this&&r.has(t.domNode)&&t.update(r.get(t.domNode)||[],e)}),e.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),e),this.optimize(t,e)}}j.blotName="scroll",j.defaultChild=q,j.allowedChildren=[q,g],j.scope=a.BLOCK_BLOT,j.tagName="DIV";var L=j;class R extends v{constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}static create(t){return document.createTextNode(t)}static value(t){return t.data}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,r){null==r?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,r)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof R&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(0===t)return this;if(t===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(t,e){t.some(t=>"characterData"===t.type&&t.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}}R.blotName="text",R.scope=a.INLINE_BLOT;var U=R,C=r(1),M=r.n(C),B=r(4),_=r.n(B),F=r(5),D=r.n(F),W=r(33),$=r.n(W),V=new WeakMap;const H=["error","warn","log","info"];let z="warn";function G(t,...e){H.indexOf(t)<=H.indexOf(z)&&console[t](...e)}function K(t){return H.reduce((e,r)=>(e[r]=G.bind(console,r,t),e),{})}K.level=t=>{z=t},G.level=K.level;var J=K;const Z=J("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(t=>{document.addEventListener(t,(...t)=>{Array.from(document.querySelectorAll(".ql-container")).forEach(e=>{const r=V.get(e);r&&r.emitter&&r.emitter.handleDOM(...t)})})});class X extends $.a{constructor(){super(),this.listeners={},this.on("error",Z.error)}emit(...t){Z.log.call(Z,...t),super.emit(...t)}handleDOM(t,...e){(this.listeners[t.type]||[]).forEach(({node:r,handler:o})=>{(t.target===r||r.contains(t.target))&&o(t,...e)})}listenDOM(t,e,r){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:r})}}X.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},X.sources={API:"api",SILENT:"silent",USER:"user"};var Y=X;const Q=J("quill:selection");class tt{constructor(t,e=0){this.index=t,this.length=e}}class et{constructor(t,e){this.emitter=e,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new tt(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{this.mouseDown||this.composing||setTimeout(this.update.bind(this,Y.sources.USER),1)}),this.emitter.on(Y.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const t=this.getNativeRange();null!=t&&t.start.node!==this.cursor.textNode&&this.emitter.once(Y.events.SCROLL_UPDATE,()=>{try{this.root.contains(t.start.node)&&this.root.contains(t.end.node)&&this.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset),this.update(Y.sources.SILENT)}catch(t){}})}),this.emitter.on(Y.events.SCROLL_OPTIMIZE,(t,e)=>{if(e.range){const{startNode:t,startOffset:r,endNode:o,endOffset:n}=e.range;this.setNativeRange(t,r,o,n),this.update(Y.sources.SILENT)}}),this.update(Y.sources.SILENT)}handleComposition(){this.root.addEventListener("compositionstart",()=>{this.composing=!0,this.scroll.batchStart()}),this.root.addEventListener("compositionend",()=>{if(this.scroll.batchEnd(),this.composing=!1,this.cursor.parent){const t=this.cursor.restore();if(!t)return;setTimeout(()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(Y.sources.USER)})}focus(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}format(t,e){this.scroll.update();const r=this.getNativeRange();if(null!=r&&r.native.collapsed&&!this.scroll.query(t,a.BLOCK)){if(r.start.node!==this.cursor.textNode){const t=this.scroll.find(r.start.node,!1);if(null==t)return;if(t instanceof v){const e=t.split(r.start.offset);t.parent.insertBefore(this.cursor,e)}else t.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(t,e=0){const r=this.scroll.length();let o;t=Math.min(t,r-1),e=Math.min(t+e,r-1)-t;let[n,i]=this.scroll.leaf(t);if(null==n)return null;[o,i]=n.position(i,!0);const s=document.createRange();if(e>0)return s.setStart(o,i),[n,i]=this.scroll.leaf(t+e),null==n?null:([o,i]=n.position(i,!0),s.setEnd(o,i),s.getBoundingClientRect());let a,l="left";return o instanceof Text?(i0&&(l="right")),{bottom:a.top+a.height,height:a.height,left:a[l],right:a[l],top:a.top,width:0}}getNativeRange(){const t=document.getSelection();if(null==t||t.rangeCount<=0)return null;const e=t.getRangeAt(0);if(null==e)return null;const r=this.normalizeNative(e);return Q.info("getNativeRange",r),r}getRange(){const t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||rt(this.root,document.activeElement)}normalizedToRange(t){const e=[[t.start.node,t.start.offset]];t.native.collapsed||e.push([t.end.node,t.end.offset]);const r=e.map(t=>{const[e,r]=t,o=this.scroll.find(e,!0),n=o.offset(this.scroll);return 0===r?n:o instanceof v?n+o.index(e,r):n+o.length()}),o=Math.min(Math.max(...r),this.scroll.length()-1),n=Math.min(o,...r);return new tt(n,o-n)}normalizeNative(t){if(!rt(this.root,t.startContainer)||!t.collapsed&&!rt(this.root,t.endContainer))return null;const e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach(t=>{let{node:e,offset:r}=t;for(;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>r)e=e.childNodes[r],r=0;else{if(e.childNodes.length!==r)break;e=e.lastChild,r=e instanceof Text?e.data.length:e.childNodes.length>0?e.childNodes.length:e.childNodes.length+1}t.node=e,t.offset=r}),e}rangeToNative(t){const e=t.collapsed?[t.index]:[t.index,t.index+t.length],r=[],o=this.scroll.length();return e.forEach((t,e)=>{t=Math.min(o-1,t);const[n,i]=this.scroll.leaf(t),[s,a]=n.position(i,0!==e);r.push(s,a)}),r.length<2?r.concat(r):r}scrollIntoView(t){const e=this.lastRange;if(null==e)return;const r=this.getBounds(e.index,e.length);if(null==r)return;const o=this.scroll.length()-1,[n]=this.scroll.line(Math.min(e.index,o));let i=n;if(e.length>0&&([i]=this.scroll.line(Math.min(e.index+e.length,o))),null==n||null==i)return;const s=t.getBoundingClientRect();r.tops.bottom&&(t.scrollTop+=r.bottom-s.bottom)}setNativeRange(t,e,r=t,o=e,n=!1){if(Q.info("setNativeRange",t,e,r,o),null!=t&&(null==this.root.parentNode||null==t.parentNode||null==r.parentNode))return;const i=document.getSelection();if(null!=i)if(null!=t){this.hasFocus()||this.root.focus();const{native:s}=this.getNativeRange()||{};if(null==s||n||t!==s.startContainer||e!==s.startOffset||r!==s.endContainer||o!==s.endOffset){"BR"===t.tagName&&(e=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),"BR"===r.tagName&&(o=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);const n=document.createRange();n.setStart(t,e),n.setEnd(r,o),i.removeAllRanges(),i.addRange(n)}}else i.removeAllRanges(),this.root.blur()}setRange(t,e=!1,r=Y.sources.API){if("string"==typeof e&&(r=e,e=!1),Q.info("setRange",t),null!=t){const r=this.rangeToNative(t);this.setNativeRange(...r,e)}else this.setNativeRange(null);this.update(r)}update(t=Y.sources.USER){const e=this.lastRange,[r,o]=this.getRange();if(this.lastRange=r,this.lastNative=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!D()(e,this.lastRange)){if(!this.composing&&null!=o&&o.native.collapsed&&o.start.node!==this.cursor.textNode){const t=this.cursor.restore();t&&this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}const r=[Y.events.SELECTION_CHANGE,_()(this.lastRange),_()(e),t];this.emitter.emit(Y.events.EDITOR_CHANGE,...r),t!==Y.sources.SILENT&&this.emitter.emit(...r)}}}function rt(t,e){try{e.parentNode}catch(t){return!1}return t.contains(e)}class ot extends U{}function nt(t){return t.replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"}[t]))}class it extends I{static value(){}constructor(t,e,r){super(t,e),this.selection=r,this.textNode=document.createTextNode(it.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){null!=this.parent&&this.parent.removeChild(this)}format(t,e){if(0!==this.savedLength)return void super.format(t,e);let r=this,o=0;for(;null!=r&&r.statics.scope!==a.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;null!=r&&(this.savedLength=it.CONTENTS.length,r.optimize(),r.formatAt(o,it.CONTENTS.length,t,e),this.savedLength=0)}index(t,e){return t===this.textNode?0:super.index(t,e)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||null==this.parent)return null;const t=this.selection.getNativeRange();for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const e=this.prev instanceof ot?this.prev:null,r=e?e.length():0,o=this.next instanceof ot?this.next:null,n=o?o.text:"",{textNode:i}=this,s=i.data.split(it.CONTENTS).join("");let a;if(i.data=it.CONTENTS,e)a=e,(s||o)&&(e.insertAt(e.length(),s+n),o&&o.remove());else if(o)a=o,o.insertAt(0,s);else{const t=document.createTextNode(s);a=this.scroll.create(t),this.parent.insertBefore(a,this)}if(this.remove(),t){const n=(t,n)=>e&&t===e.domNode?n:t===i?r+n-1:o&&t===o.domNode?r+s.length+n:null,l=n(t.start.node,t.start.offset),c=n(t.end.node,t.end.offset);if(null!==l&&null!==c)return{startNode:a.domNode,startOffset:l,endNode:a.domNode,endOffset:c}}return null}update(t,e){if(t.some(t=>"characterData"===t.type&&t.target===this.textNode)){const t=this.restore();t&&(e.range=t)}}value(){return""}}it.blotName="cursor",it.className="ql-cursor",it.tagName="span",it.CONTENTS="\ufeff";var st=it;class at extends I{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}at.blotName="break",at.tagName="BR";var lt=at;class ct extends P{static compare(t,e){const r=ct.order.indexOf(t),o=ct.order.indexOf(e);return r>=0||o>=0?r-o:t===e?0:t0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}}ct.allowedChildren=[ct,lt,I,ot],ct.order=["cursor","inline","link","underline","strike","italic","bold","script","code"];var ut=ct;class pt extends q{constructor(t,e){super(t,e),this.cache={}}delta(){return null==this.cache.delta&&(this.cache.delta=ht(this)),this.cache.delta}deleteAt(t,e){super.deleteAt(t,e),this.cache={}}formatAt(t,e,r,o){e<=0||(this.scroll.query(r,a.BLOCK)?t+e===this.length()&&this.format(r,o):super.formatAt(t,Math.min(e,this.length()-t-1),r,o),this.cache={})}insertAt(t,e,r){if(null!=r)return super.insertAt(t,e,r),void(this.cache={});if(0===e.length)return;const o=e.split("\n"),n=o.shift();n.length>0&&(t(i=i.split(t,!0),i.insertAt(0,e),e.length),t+n.length)}insertBefore(t,e){const{head:r}=this.children;super.insertBefore(t,e),r instanceof lt&&r.remove(),this.cache={}}length(){return null==this.cache.length&&(this.cache.length=super.length()+1),this.cache.length}moveChildren(t,e){super.moveChildren(t,e),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t,e=!1){if(e&&(0===t||t>=this.length()-1)){const e=this.clone();return 0===t?(this.parent.insertBefore(e,this),this):(this.parent.insertBefore(e,this.next),e)}const r=super.split(t,e);return this.cache={},r}}pt.blotName="block",pt.tagName="P",pt.defaultChild=lt,pt.allowedChildren=[lt,ut,I,ot];class dt extends I{attach(){super.attach(),this.attributes=new w(this.domNode)}delta(){return(new s.a).insert(this.value(),M()(this.formats(),this.attributes.values()))}format(t,e){const r=this.scroll.query(t,a.BLOCK_ATTRIBUTE);null!=r&&this.attributes.attribute(r,e)}formatAt(t,e,r,o){this.format(r,o)}insertAt(t,e,r){if("string"==typeof e&&e.endsWith("\n")){const r=this.scroll.create(pt.blotName);this.parent.insertBefore(r,0===t?this:this.next),r.insertAt(0,e.slice(0,-1))}else super.insertAt(t,e,r)}}function ht(t,e=!0){return t.descendants(v).reduce((t,r)=>0===r.length()?t:t.insert(r.value(),ft(r,{},e)),new s.a).insert("\n",ft(t))}function ft(t,e={},r=!0){return null==t?e:("function"==typeof t.formats&&(e=M()(e,t.formats()),r&&delete e["code-token"]),null==t.parent||"scroll"===t.parent.statics.blotName||t.parent.statics.scope!==t.statics.scope?e:ft(t.parent,e,r))}dt.scope=a.BLOCK_BLOT;const yt=/^[ -~]*$/;function mt(t,e,r,o=!1){if("function"==typeof t.html)return t.html(e,r);if(t instanceof ot)return nt(t.value().slice(e,e+r));if(t.children){if("list-container"===t.statics.blotName){const o=[];return t.children.forEachAt(e,r,(t,e,r)=>{const n=t.formats();o.push({child:t,offset:e,length:r,indent:n.indent||0,type:n.list})}),function t(e,r,o){if(0===e.length){const[e]=bt(o.pop());return r<=0?""):"").concat(t([],r-1,o))}const[{child:n,offset:i,length:s,indent:a,type:l},...c]=e,[u,p]=bt(l);if(a>r)return o.push(l),a===r+1?"<".concat(u,">").concat(mt(n,i,s)).concat(t(c,a,o)):"<".concat(u,">
  • ").concat(t(e,r+1,o));const d=o[o.length-1];if(a===r&&l===d)return"
  • ").concat(mt(n,i,s)).concat(t(c,a,o));const[h]=bt(o.pop());return"").concat(t(e,r-1,o))}(o,-1,[])}const n=[];if(t.children.forEachAt(e,r,(t,e,r)=>{n.push(mt(t,e,r))}),o||"list"===t.statics.blotName)return n.join("");const{outerHTML:i,innerHTML:s}=t.domNode,[a,l]=i.split(">".concat(s,"<"));return"'.concat(n.join(""),"<").concat(l):"".concat(a,">").concat(n.join(""),"<").concat(l)}return t.domNode.outerHTML}function gt(t,e){return Object.keys(e).reduce((r,o)=>(null==t[o]||(e[o]===t[o]?r[o]=e[o]:Array.isArray(e[o])?e[o].indexOf(t[o])<0&&(r[o]=e[o].concat([t[o]])):r[o]=[e[o],t[o]]),r),{})}function bt(t){const e="ordered"===t?"ol":"ul";switch(t){case"checked":return[e,' data-list="checked"'];case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function vt({index:t,length:e},r){return new tt(t+r,e)}var At=class{constructor(t){this.scroll=t,this.delta=this.getDelta()}applyDelta(t){let e=!1;this.scroll.update();let r=this.scroll.length();this.scroll.batchStart();const o=function(t){return t.reduce((t,e)=>{if("string"==typeof e.insert){const r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)},new s.a)}(t);return o.reduce((t,o)=>{const n=o.retain||o.delete||o.insert.length||1;let s=o.attributes||{};if(null!=o.insert){if("string"==typeof o.insert){let n=o.insert;n.endsWith("\n")&&e&&(e=!1,n=n.slice(0,-1)),(t>=r||this.scroll.descendant(dt,t)[0])&&!n.endsWith("\n")&&(e=!0),this.scroll.insertAt(t,n);const[a,l]=this.scroll.line(t);let c=M()({},ft(a));if(a instanceof pt){const[t]=a.descendant(v,l);c=M()(c,ft(t))}s=i.AttributeMap.diff(c,s)||{}}else if("object"==typeof o.insert){const e=Object.keys(o.insert)[0];if(null==e)return t;this.scroll.insertAt(t,e,o.insert[e])}r+=n}return Object.keys(s).forEach(e=>{this.scroll.formatAt(t,n,e,s[e])}),t+n},0),o.reduce((t,e)=>"number"==typeof e.delete?(this.scroll.deleteAt(t,e.delete),t):t+(e.retain||e.insert.length||1),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(o)}deleteText(t,e){return this.scroll.deleteAt(t,e),this.update((new s.a).retain(t).delete(e))}formatLine(t,e,r={}){this.scroll.update(),Object.keys(r).forEach(o=>{this.scroll.lines(t,Math.max(e,1)).forEach(t=>{t.format(o,r[o])})}),this.scroll.optimize();const o=(new s.a).retain(t).retain(e,_()(r));return this.update(o)}formatText(t,e,r={}){Object.keys(r).forEach(o=>{this.scroll.formatAt(t,e,o,r[o])});const o=(new s.a).retain(t).retain(e,_()(r));return this.update(o)}getContents(t,e){return this.delta.slice(t,t+e)}getDelta(){return this.scroll.lines().reduce((t,e)=>t.concat(e.delta()),new s.a)}getFormat(t,e=0){let r=[],o=[];0===e?this.scroll.path(t).forEach(t=>{const[e]=t;e instanceof pt?r.push(e):e instanceof v&&o.push(e)}):(r=this.scroll.lines(t,e),o=this.scroll.descendants(v,t,e));const n=[r,o].map(t=>{if(0===t.length)return{};let e=ft(t.shift());for(;Object.keys(e).length>0;){const r=t.shift();if(null==r)return e;e=gt(ft(r),e)}return e});return M.a.apply(M.a,n)}getHTML(t,e){const[r,o]=this.scroll.line(t);return r.length()>=o+e?mt(r,o,e,!0):mt(this.scroll,t,e,!0)}getText(t,e){return this.getContents(t,e).filter(t=>"string"==typeof t.insert).map(t=>t.insert).join("")}insertEmbed(t,e,r){return this.scroll.insertAt(t,e,r),this.update((new s.a).retain(t).insert({[e]:r}))}insertText(t,e,r={}){return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach(o=>{this.scroll.formatAt(t,e.length,o,r[o])}),this.update((new s.a).retain(t).insert(e,_()(r)))}isBlank(){if(0===this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;const t=this.scroll.children.head;return t.statics.blotName===pt.blotName&&(!(t.children.length>1)&&t.children.head instanceof lt)}removeFormat(t,e){const r=this.getText(t,e),[o,n]=this.scroll.line(t+e);let i=0,a=new s.a;null!=o&&(i=o.length()-n,a=o.delta().slice(n,n+i-1).insert("\n"));const l=this.getContents(t,e+i).diff((new s.a).insert(r).concat(a)),c=(new s.a).retain(t).concat(l);return this.applyDelta(c)}update(t,e=[],r){const o=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(yt)&&this.scroll.find(e[0].target)){const n=this.scroll.find(e[0].target),i=ft(n),a=n.offset(this.scroll),l=e[0].oldValue.replace(st.CONTENTS,""),c=(new s.a).insert(l),u=(new s.a).insert(n.value()),p=r&&{oldRange:vt(r.oldRange,-a),newRange:vt(r.newRange,-a)};t=(new s.a).retain(a).concat(c.diff(u,p)).reduce((t,e)=>e.insert?t.insert(e.insert,i):t.push(e),new s.a),this.delta=o.compose(t)}else this.delta=this.getDelta(),t&&D()(o.compose(t),this.delta)||(t=o.diff(this.delta,r));return t}};class xt{constructor(t,e={}){this.quill=t,this.options=e}}xt.DEFAULTS={};var Et=xt;class St{constructor(t,e){this.quill=t,this.options=e,this.modules={}}init(){Object.keys(this.options.modules).forEach(t=>{null==this.modules[t]&&this.addModule(t)})}addModule(t){const e=this.quill.constructor.import("modules/".concat(t));return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}St.DEFAULTS={modules:{}},St.themes={default:St};var Nt=St;const wt=J("quill"),kt=new u;y.uiClass="ql-ui";class Pt{static debug(t){!0===t&&(t="log"),J.level(t)}static find(t){return V.get(t)||kt.find(t)}static import(t){return null==this.imports[t]&&wt.error("Cannot import ".concat(t,". Are you sure it was registered?")),this.imports[t]}static register(t,e,r=!1){if("string"!=typeof t){const r=t.attrName||t.blotName;"string"==typeof r?this.register("formats/".concat(r),t,e):Object.keys(t).forEach(r=>{this.register(r,t[r],e)})}else null==this.imports[t]||r||wt.warn("Overwriting ".concat(t," with"),e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName&&kt.register(e),"function"==typeof e.register&&e.register(kt)}constructor(t,e={}){if(this.options=function(t,e){if((e=M()(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0}},e)).theme&&e.theme!==Pt.DEFAULTS.theme){if(e.theme=Pt.import("themes/".concat(e.theme)),null==e.theme)throw new Error("Invalid theme ".concat(e.theme,". Did you register it?"))}else e.theme=Nt;const r=M()(!0,{},e.theme.DEFAULTS);[r,e].forEach(t=>{t.modules=t.modules||{},Object.keys(t.modules).forEach(e=>{!0===t.modules[e]&&(t.modules[e]={})})});const o=Object.keys(r.modules).concat(Object.keys(e.modules)).reduce((t,e)=>{const r=Pt.import("modules/".concat(e));return null==r?wt.error("Cannot load ".concat(e," module. Are you sure you registered it?")):t[e]=r.DEFAULTS||{},t},{});null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar});return e=M()(!0,{},Pt.DEFAULTS,{modules:o},r,e),["bounds","container","scrollingContainer"].forEach(t=>{"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),e.modules=Object.keys(e.modules).reduce((t,r)=>(e.modules[r]&&(t[r]=e.modules[r]),t),{}),e}(t,e),this.container=this.options.container,null==this.container)return wt.error("Invalid Quill container",t);this.options.debug&&Pt.debug(this.options.debug);const r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",V.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new Y;const o=this.options.registry.query(L.blotName);this.scroll=new o(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new At(this.scroll),this.selection=new et(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.init(),this.emitter.on(Y.events.EDITOR_CHANGE,t=>{t===Y.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(Y.events.SCROLL_UPDATE,(t,e)=>{const r=this.selection.lastRange,[o]=this.selection.getRange(),n=r&&o?{oldRange:r,newRange:o}:void 0;Ot.call(this,()=>this.editor.update(null,e,n),t)});const n=this.clipboard.convert({html:"".concat(r,"


    "),text:"\n"});this.setContents(n),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t,e=null){if("string"==typeof t){const e=t;(t=document.createElement("div")).classList.add(e)}return this.container.insertBefore(t,e),t}blur(){this.selection.setRange(null)}deleteText(t,e,r){return[t,e,,r]=qt(t,e,r),Ot.call(this,()=>this.editor.deleteText(t,e),r,t,-1*e)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;const e=t();return this.allowReadOnlyEdits=!1,e}enable(t=!0){this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){const{scrollTop:t}=this.scrollingContainer;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}format(t,e,r=Y.sources.API){return Ot.call(this,()=>{const r=this.getSelection(!0);let o=new s.a;if(null==r)return o;if(this.scroll.query(t,a.BLOCK))o=this.editor.formatLine(r.index,r.length,{[t]:e});else{if(0===r.length)return this.selection.format(t,e),o;o=this.editor.formatText(r.index,r.length,{[t]:e})}return this.setSelection(r,Y.sources.SILENT),o},r)}formatLine(t,e,r,o,n){let i;return[t,e,i,n]=qt(t,e,r,o,n),Ot.call(this,()=>this.editor.formatLine(t,e,i),n,t,0)}formatText(t,e,r,o,n){let i;return[t,e,i,n]=qt(t,e,r,o,n),Ot.call(this,()=>this.editor.formatText(t,e,i),n,t,0)}getBounds(t,e=0){let r;r="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);const o=this.container.getBoundingClientRect();return{bottom:r.bottom-o.top,height:r.height,left:r.left-o.left,right:r.right-o.left,top:r.top-o.top,width:r.width}}getContents(t=0,e=this.getLength()-t){return[t,e]=qt(t,e),this.editor.getContents(t,e)}getFormat(t=this.getSelection(!0),e=0){return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(t=0,e=Number.MAX_VALUE){return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}getModule(t){return this.theme.modules[t]}getSelection(t=!1){return t&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(t=0,e=this.getLength()-t){return[t,e]=qt(t,e),this.editor.getHTML(t,e)}getText(t=0,e=this.getLength()-t){return[t,e]=qt(t,e),this.editor.getText(t,e)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,e,r,o=Pt.sources.API){return Ot.call(this,()=>this.editor.insertEmbed(t,e,r),o,t)}insertText(t,e,r,o,n){let i;return[t,,i,n]=qt(t,0,r,o,n),Ot.call(this,()=>this.editor.insertText(t,e,i),n,t,e.length)}isEnabled(){return this.scroll.isEnabled()}off(...t){return this.emitter.off(...t)}on(...t){return this.emitter.on(...t)}once(...t){return this.emitter.once(...t)}removeFormat(t,e,r){return[t,e,,r]=qt(t,e,r),Ot.call(this,()=>this.editor.removeFormat(t,e),r,t)}scrollIntoView(){this.selection.scrollIntoView(this.scrollingContainer)}setContents(t,e=Y.sources.API){return Ot.call(this,()=>{t=new s.a(t);const e=this.getLength(),r=this.editor.deleteText(0,e),o=this.editor.applyDelta(t),n=o.ops[o.ops.length-1];return null!=n&&"string"==typeof n.insert&&"\n"===n.insert[n.insert.length-1]&&(this.editor.deleteText(this.getLength()-1,1),o.delete(1)),r.compose(o)},e)}setSelection(t,e,r){null==t?this.selection.setRange(null,e||Pt.sources.API):([t,e,,r]=qt(t,e,r),this.selection.setRange(new tt(Math.max(0,t),e),r),r!==Y.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer))}setText(t,e=Y.sources.API){const r=(new s.a).insert(t);return this.setContents(r,e)}update(t=Y.sources.USER){const e=this.scroll.update(t);return this.selection.update(t),e}updateContents(t,e=Y.sources.API){return Ot.call(this,()=>(t=new s.a(t),this.editor.applyDelta(t,e)),e,!0)}}function Ot(t,e,r,o){if(!this.isEnabled()&&e===Y.sources.USER&&!this.allowReadOnlyEdits)return new s.a;let n=null==r?null:this.getSelection();const i=this.editor.delta,a=t();if(null!=n&&(!0===r&&(r=n.index),null==o?n=It(n,a,e):0!==o&&(n=It(n,r,o,e)),this.setSelection(n,Y.sources.SILENT)),a.length()>0){const t=[Y.events.TEXT_CHANGE,a,i,e];this.emitter.emit(Y.events.EDITOR_CHANGE,...t),e!==Y.sources.SILENT&&this.emitter.emit(...t)}return a}function qt(t,e,r,o,n){let i={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(n=o,o=r,r=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(n=o,o=r,r=e,e=0),"object"==typeof r?(i=r,n=o):"string"==typeof r&&(null!=o?i[r]=o:n=r),[t,e,i,n=n||Y.sources.API]}function It(t,e,r,o){if(null==t)return null;let n,i;return e instanceof s.a?[n,i]=[t.index,t.index+t.length].map(t=>e.transformPosition(t,o!==Y.sources.USER)):[n,i]=[t.index,t.index+t.length].map(t=>t=0?t+r:Math.max(e,t+r)),new tt(n,i-n)}Pt.DEFAULTS={bounds:null,modules:{},placeholder:"",readOnly:!1,registry:kt,scrollingContainer:null,theme:"default"},Pt.events=Y.events,Pt.sources=Y.sources,Pt.version="2.0.0-dev.4",Pt.imports={delta:s.a,parchment:o,"core/module":Et,"core/theme":Nt};var Tt=class extends g{};var jt=class extends I{constructor(t,e){super(t,e),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable",!1),Array.from(this.domNode.childNodes).forEach(t=>{this.contentNode.appendChild(t)}),this.leftGuard=document.createTextNode("\ufeff"),this.rightGuard=document.createTextNode("\ufeff"),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,e){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,e)}restore(t){let e,r;const o=t.data.split("\ufeff").join("");if(t===this.leftGuard)if(this.prev instanceof ot){const t=this.prev.length();this.prev.insertAt(t,o),e={startNode:this.prev.domNode,startOffset:t+o.length}}else r=document.createTextNode(o),this.parent.insertBefore(this.scroll.create(r),this),e={startNode:r,startOffset:o.length};else t===this.rightGuard&&(this.next instanceof ot?(this.next.insertAt(0,o),e={startNode:this.next.domNode,startOffset:o.length}):(r=document.createTextNode(o),this.parent.insertBefore(this.scroll.create(r),this.next),e={startNode:r,startOffset:o.length}));return t.data="\ufeff",e}update(t,e){t.forEach(t=>{if("characterData"===t.type&&(t.target===this.leftGuard||t.target===this.rightGuard)){const r=this.restore(t.target);r&&(e.range=r)}})}};function Lt(t){return t instanceof pt||t instanceof dt}class Rt extends L{constructor(t,e,{emitter:r}){super(t,e),this.emitter=r,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",t=>this.handleDragStart(t))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){const t=this.batch;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit(Y.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(Y.events.SCROLL_BLOT_UNMOUNT,t)}deleteAt(t,e){const[r,o]=this.line(t),[n]=this.line(t+e);if(super.deleteAt(t,e),null!=n&&r!==n&&o>0){if(r instanceof dt||n instanceof dt)return void this.optimize();const t=n.children.head instanceof lt?null:n.children.head;r.moveChildren(n,t),r.remove()}this.optimize()}enable(t=!0){this.domNode.setAttribute("contenteditable",t)}formatAt(t,e,r,o){super.formatAt(t,e,r,o),this.optimize()}handleDragStart(t){t.preventDefault()}insertAt(t,e,r){if(t>=this.length())if(null==r||null==this.scroll.query(e,a.BLOCK)){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t),null==r&&e.endsWith("\n")?t.insertAt(0,e.slice(0,-1),r):t.insertAt(0,e,r)}else{const t=this.scroll.create(e,r);this.appendChild(t)}else super.insertAt(t,e,r);this.optimize()}insertBefore(t,e){if(t.statics.scope===a.INLINE_BLOT){const r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(t),super.insertBefore(r,e)}else super.insertBefore(t,e)}isEnabled(){return"true"===this.domNode.getAttribute("contenteditable")}leaf(t){return this.path(t).pop()||[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(Lt,t)}lines(t=0,e=Number.MAX_VALUE){const r=(t,e,o)=>{let n=[],i=o;return t.children.forEachAt(e,o,(t,e,o)=>{Lt(t)?n.push(t):t instanceof g&&(n=n.concat(r(t,e,i))),i-=o}),n};return r(this,t,e)}optimize(t=[],e={}){this.batch||(super.optimize(t,e),t.length>0&&this.emitter.emit(Y.events.SCROLL_OPTIMIZE,t,e))}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch)return void(Array.isArray(t)&&(this.batch=this.batch.concat(t)));let e=Y.sources.USER;"string"==typeof t&&(e=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(Y.events.SCROLL_BEFORE_UPDATE,e,t),super.update(t.concat([])),t.length>0&&this.emitter.emit(Y.events.SCROLL_UPDATE,e,t)}}Rt.blotName="scroll",Rt.className="ql-editor",Rt.tagName="DIV",Rt.defaultChild=pt,Rt.allowedChildren=[pt,dt,Tt];var Ut=Rt;const Ct={scope:a.BLOCK,whitelist:["right","center","justify"]},Mt=new A("align","align",Ct),Bt=new E("align","ql-align",Ct),_t=new N("align","text-align",Ct);class Ft extends N{value(t){let e=super.value(t);if(!e.startsWith("rgb("))return e;e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");const r=e.split(",").map(t=>"00".concat(parseInt(t,10).toString(16)).slice(-2)).join("");return"#".concat(r)}}const Dt=new E("color","ql-color",{scope:a.INLINE}),Wt=new Ft("color","color",{scope:a.INLINE}),$t=new E("background","ql-bg",{scope:a.INLINE}),Vt=new Ft("background","background-color",{scope:a.INLINE});class Ht extends Tt{static create(t){const e=super.create(t);return e.setAttribute("spellcheck",!1),e}html(t,e){const r=this.children.map(t=>t.domNode.innerText).join("\n").slice(t,t+e);return"
    ".concat(nt(r),"
    ")}}class zt extends pt{static register(){Pt.register(Ht)}}class Gt extends ut{}Gt.blotName="code",Gt.tagName="CODE",zt.blotName="code-block",zt.className="ql-code-block",zt.tagName="DIV",Ht.blotName="code-block-container",Ht.className="ql-code-block-container",Ht.tagName="DIV",Ht.allowedChildren=[zt],zt.allowedChildren=[ot,lt,st],zt.requiredContainer=Ht,zt.TAB=" ";const Kt={scope:a.BLOCK,whitelist:["rtl"]},Jt=new A("direction","dir",Kt),Zt=new E("direction","ql-direction",Kt),Xt=new N("direction","direction",Kt),Yt={scope:a.INLINE,whitelist:["serif","monospace"]},Qt=new E("font","ql-font",Yt);const te=new class extends N{value(t){return super.value(t).replace(/["']/g,"")}}("font","font-family",Yt),ee=new E("size","ql-size",{scope:a.INLINE,whitelist:["small","large","huge"]}),re=new N("size","font-size",{scope:a.INLINE,whitelist:["10px","18px","32px"]}),oe=J("quill:clipboard"),ne=[[Node.TEXT_NODE,function(t,e){let r=t.data;if("O:P"===t.parentNode.tagName)return e.insert(r.trim());if(0===r.trim().length&&r.includes("\n"))return e;if(!function t(e){if(null==e)return!1;pe.has(e)||("PRE"===e.tagName?pe.set(e,!0):pe.set(e,t(e.parentNode)));return pe.get(e)}(t)){const e=(t,e)=>{const r=e.replace(/[^\u00a0]/g,"");return r.length<1&&t?" ":r};r=r.replace(/\r\n/g," ").replace(/\n/g," "),r=r.replace(/\s\s+/g,e.bind(e,!0)),(null==t.previousSibling&&ue(t.parentNode)||null!=t.previousSibling&&ue(t.previousSibling))&&(r=r.replace(/^\s+/,e.bind(e,!1))),(null==t.nextSibling&&ue(t.parentNode)||null!=t.nextSibling&&ue(t.nextSibling))&&(r=r.replace(/\s+$/,e.bind(e,!1)))}return e.insert(r)}],[Node.TEXT_NODE,fe],["br",function(t,e){ce(e,"\n")||e.insert("\n");return e}],[Node.ELEMENT_NODE,fe],[Node.ELEMENT_NODE,function(t,e,r){const o=r.query(t);if(null==o)return e;if(o.prototype instanceof I){const e={},n=o.value(t);if(null!=n)return e[o.blotName]=n,(new s.a).insert(e,o.formats(t,r))}else if(o.prototype instanceof q&&!ce(e,"\n")&&e.insert("\n"),"function"==typeof o.formats)return le(e,o.blotName,o.formats(t,r));return e}],[Node.ELEMENT_NODE,function(t,e,r){const o=A.keys(t),n=E.keys(t),i=N.keys(t),s={};if(o.concat(n).concat(i).forEach(e=>{let o=r.query(e,a.ATTRIBUTE);null!=o&&(s[o.attrName]=o.value(t),s[o.attrName])||(o=ie[e],null==o||o.attrName!==e&&o.keyName!==e||(s[o.attrName]=o.value(t)||void 0),o=se[e],null==o||o.attrName!==e&&o.keyName!==e||(o=se[e],s[o.attrName]=o.value(t)||void 0))}),Object.keys(s).length>0)return le(e,s);return e}],[Node.ELEMENT_NODE,function(t,e){const r={},o=t.style||{};"italic"===o.fontStyle&&(r.italic=!0);"underline"===o.textDecoration&&(r.underline=!0);"line-through"===o.textDecoration&&(r.strike=!0);(o.fontWeight.startsWith("bold")||parseInt(o.fontWeight,10)>=700)&&(r.bold=!0);Object.keys(r).length>0&&(e=le(e,r));if(parseFloat(o.textIndent||0)>0)return(new s.a).insert("\t").concat(e);return e}],["li",function(t,e,r){const o=r.query(t);if(null==o||"list"!==o.blotName||!ce(e,"\n"))return e;let n=-1,i=t.parentNode;for(;null!=i;)["OL","UL"].includes(i.tagName)&&(n+=1),i=i.parentNode;return n<=0?e:e.reduce((t,e)=>e.attributes&&e.attributes.list?t.push(e):t.insert(e.insert,{indent:n,...e.attributes||{}}),new s.a)}],["ol, ul",function(t,e){const r="OL"===t.tagName?"ordered":"bullet";return le(e,"list",r)}],["pre",function(t,e,r){const o=r.query("code-block"),n=!o||o.formats(t,r);return le(e,"code-block",n)}],["tr",function(t,e){const r="TABLE"===t.parentNode.tagName?t.parentNode:t.parentNode.parentNode,o=Array.from(r.querySelectorAll("tr")).indexOf(t)+1;return le(e,"table",o)}],["b",he.bind(he,"bold")],["i",he.bind(he,"italic")],["strike",he.bind(he,"strike")],["style",function(){return new s.a}]],ie=[Mt,Jt].reduce((t,e)=>(t[e.keyName]=e,t),{}),se=[_t,Vt,Wt,Xt,te,re].reduce((t,e)=>(t[e.keyName]=e,t),{});class ae extends Et{constructor(t,e){super(t,e),this.quill.root.addEventListener("copy",t=>this.onCaptureCopy(t,!1)),this.quill.root.addEventListener("cut",t=>this.onCaptureCopy(t,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],ne.concat(this.options.matchers).forEach(([t,e])=>{this.addMatcher(t,e)})}addMatcher(t,e){this.matchers.push([t,e])}convert({html:t,text:e},r={}){if(r[zt.blotName])return(new s.a).insert(e,{[zt.blotName]:r[zt.blotName]});if(!t)return(new s.a).insert(e||"");const o=(new DOMParser).parseFromString(t,"text/html").body,n=new WeakMap,[i,a]=this.prepareMatching(o,n),l=de(this.quill.scroll,o,i,a,n);return ce(l,"\n")&&(null==l.ops[l.ops.length-1].attributes||r.table)?l.compose((new s.a).retain(l.length()-1).delete(1)):l}dangerouslyPasteHTML(t,e,r=Pt.sources.API){if("string"==typeof t){const r=this.convert({html:t,text:""});this.quill.setContents(r,e),this.quill.setSelection(0,Pt.sources.SILENT)}else{const o=this.convert({html:e,text:""});this.quill.updateContents((new s.a).retain(t).concat(o),r),this.quill.setSelection(t+o.length(),Pt.sources.SILENT)}}onCaptureCopy(t,e=!1){if(t.defaultPrevented)return;t.preventDefault();const[r]=this.quill.selection.getRange();if(null==r)return;const{html:o,text:n}=this.onCopy(r,e);t.clipboardData.setData("text/plain",n),t.clipboardData.setData("text/html",o),e&&this.quill.deleteText(r,Pt.sources.USER)}onCapturePaste(t){if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const e=this.quill.getSelection(!0);if(null==e)return;const r=t.clipboardData.getData("text/html"),o=t.clipboardData.getData("text/plain"),n=Array.from(t.clipboardData.files||[]);!r&&n.length>0?this.quill.uploader.upload(e,n):this.onPaste(e,{html:r,text:o})}onCopy(t){const e=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:e}}onPaste(t,{text:e,html:r}){const o=this.quill.getFormat(t.index),n=this.convert({text:e,html:r},o);oe.log("onPaste",n,{text:e,html:r});const i=(new s.a).retain(t.index).delete(t.length).concat(n);this.quill.updateContents(i,Pt.sources.USER),this.quill.setSelection(i.length()-t.length,Pt.sources.SILENT),this.quill.scrollIntoView()}prepareMatching(t,e){const r=[],o=[];return this.matchers.forEach(n=>{const[i,s]=n;switch(i){case Node.TEXT_NODE:o.push(s);break;case Node.ELEMENT_NODE:r.push(s);break;default:Array.from(t.querySelectorAll(i)).forEach(t=>{if(e.has(t)){e.get(t).push(s)}else e.set(t,[s])})}}),[r,o]}}function le(t,e,r){return"object"==typeof e?Object.keys(e).reduce((t,r)=>le(t,r,e[r]),t):t.reduce((t,o)=>o.attributes&&o.attributes[e]?t.push(o):t.insert(o.insert,M()({},{[e]:r},o.attributes)),new s.a)}function ce(t,e){let r="";for(let o=t.ops.length-1;o>=0&&r.lengtho(e,r,t),new s.a):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((i,s)=>{let a=de(t,s,r,o,n);return s.nodeType===e.ELEMENT_NODE&&(a=r.reduce((e,r)=>r(s,e,t),a),a=(n.get(s)||[]).reduce((e,r)=>r(s,e,t),a)),i.concat(a)},new s.a):new s.a}function he(t,e,r){return le(r,t,!0)}function fe(t,e,r){if(!ce(e,"\n")){if(ue(t))return e.insert("\n");if(e.length()>0&&t.nextSibling){let{nextSibling:o}=t;for(;null!=o;){if(ue(o))return e.insert("\n");const t=r.query(o);if(t&&t.prototype instanceof dt)return e.insert("\n");o=o.firstChild}}}return e}class ye extends Et{constructor(t,e){super(t,e),this.lastRecorded=0,this.ignoreChange=!1,this.clear(),this.quill.on(Pt.events.EDITOR_CHANGE,(t,e,r,o)=>{t!==Pt.events.TEXT_CHANGE||this.ignoreChange||(this.options.userOnly&&o!==Pt.sources.USER?this.transform(e):this.record(e,r))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:"z",shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this))}change(t,e){if(0===this.stack[t].length)return;const r=this.stack[t].pop(),o=this.quill.getContents(),n=r.invert(o);this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(r,Pt.sources.USER),this.ignoreChange=!1;const i=function(t,e){const r=e.reduce((t,e)=>t+(e.delete||0),0);let o=e.length()-r;(function(t,e){const r=e.ops[e.ops.length-1];if(null==r)return!1;if(null!=r.insert)return"string"==typeof r.insert&&r.insert.endsWith("\n");if(null!=r.attributes)return Object.keys(r.attributes).some(e=>null!=t.query(e,a.BLOCK));return!1})(t,e)&&(o-=1);return o}(this.quill.scroll,r);this.quill.setSelection(i)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,e){if(0===t.ops.length)return;this.stack.redo=[];let r=t.invert(e);const o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){const t=this.stack.undo.pop();r=r.compose(t)}else this.lastRecorded=o;0!==r.length()&&(this.stack.undo.push(r),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){me(this.stack.undo,t),me(this.stack.redo,t)}undo(){this.change("undo","redo")}}function me(t,e){let r=e;for(let e=t.length-1;e>=0;e-=1){const o=t[e];t[e]=r.transform(o,!0),r=o.transform(r),0===t[e].length()&&t.splice(e,1)}}ye.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};const ge=J("quill:keyboard"),be=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class ve extends Et{static match(t,e){return!["altKey","ctrlKey","metaKey","shiftKey"].some(r=>!!e[r]!==t[r]&&null!==e[r])&&(e.key===t.key||e.key===t.which)}constructor(t,e){super(t,e),this.bindings={},Object.keys(this.options.bindings).forEach(t=>{this.options.bindings[t]&&this.addBinding(this.options.bindings[t])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(t,e={},r={}){const o=function(t){if("string"==typeof t||"number"==typeof t)t={key:t};else{if("object"!=typeof t)return null;t=_()(t,!1)}t.shortKey&&(t[be]=t.shortKey,delete t.shortKey);return t}(t);null!=o?("function"==typeof e&&(e={handler:e}),"function"==typeof r&&(r={handler:r}),(Array.isArray(o.key)?o.key:[o.key]).forEach(t=>{const n=M()({},o,{key:t},e,r);this.bindings[n.key]=this.bindings[n.key]||[],this.bindings[n.key].push(n)})):ge.warn("Attempted to add invalid keyboard binding",o)}listen(){this.quill.root.addEventListener("keydown",t=>{if(t.defaultPrevented||t.isComposing)return;const e=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(e=>ve.match(t,e));if(0===e.length)return;const r=this.quill.getSelection();if(null==r||!this.quill.hasFocus())return;const[o,n]=this.quill.getLine(r.index),[i,s]=this.quill.getLeaf(r.index),[a,l]=0===r.length?[i,s]:this.quill.getLeaf(r.index+r.length),c=i instanceof U?i.value().slice(0,s):"",u=a instanceof U?a.value().slice(l):"",p={collapsed:0===r.length,empty:0===r.length&&o.length()<=1,format:this.quill.getFormat(r),line:o,offset:n,prefix:c,suffix:u,event:t};e.some(t=>{if(null!=t.collapsed&&t.collapsed!==p.collapsed)return!1;if(null!=t.empty&&t.empty!==p.empty)return!1;if(null!=t.offset&&t.offset!==p.offset)return!1;if(Array.isArray(t.format)){if(t.format.every(t=>null==p.format[t]))return!1}else if("object"==typeof t.format&&!Object.keys(t.format).every(e=>!0===t.format[e]?null!=p.format[e]:!1===t.format[e]?null==p.format[e]:D()(t.format[e],p.format[e])))return!1;return!(null!=t.prefix&&!t.prefix.test(p.prefix))&&(!(null!=t.suffix&&!t.suffix.test(p.suffix))&&!0!==t.handler.call(this,r,p,t))})&&t.preventDefault()})}handleBackspace(t,e){const r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;if(0===t.index||this.quill.getLength()<=1)return;let o={};const[n]=this.quill.getLine(t.index);let a=(new s.a).retain(t.index-r).delete(r);if(0===e.offset){const[e]=this.quill.getLine(t.index-1);if(e){const e=n.formats(),r=this.quill.getFormat(t.index-1,1);if(o=i.AttributeMap.diff(e,r)||{},Object.keys(o).length>0){const e=(new s.a).retain(t.index+n.length()-2).retain(1,o);a=a.compose(e)}}}this.quill.updateContents(a,Pt.sources.USER),this.quill.focus()}handleDelete(t,e){const r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(t.index>=this.quill.getLength()-r)return;let o={};const[n]=this.quill.getLine(t.index);let a=(new s.a).retain(t.index).delete(r);if(e.offset>=n.length()-1){const[e]=this.quill.getLine(t.index+1);if(e){const r=n.formats(),s=this.quill.getFormat(t.index,1);o=i.AttributeMap.diff(r,s)||{},Object.keys(o).length>0&&(a=a.retain(e.length()-1).retain(1,o))}}this.quill.updateContents(a,Pt.sources.USER),this.quill.focus()}handleDeleteRange(t){const e=this.quill.getLines(t);let r={};if(e.length>1){const t=e[0].formats(),o=e[e.length-1].formats();r=i.AttributeMap.diff(o,t)||{}}this.quill.deleteText(t,Pt.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index,1,r,Pt.sources.USER),this.quill.setSelection(t.index,Pt.sources.SILENT),this.quill.focus()}handleEnter(t,e){const r=Object.keys(e.format).reduce((t,r)=>(this.quill.scroll.query(r,a.BLOCK)&&!Array.isArray(e.format[r])&&(t[r]=e.format[r]),t),{}),o=(new s.a).retain(t.index).delete(t.length).insert("\n",r);this.quill.updateContents(o,Pt.sources.USER),this.quill.setSelection(t.index+1,Pt.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach(t=>{null==r[t]&&(Array.isArray(e.format[t])||"code"!==t&&"link"!==t&&this.quill.format(t,e.format[t],Pt.sources.USER))})}}function Ae(t){return{key:"Tab",shiftKey:!t,format:{"code-block":!0},handler(e){const r=this.quill.scroll.query("code-block"),o=0===e.length?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:n,length:i}=e;o.forEach((e,o)=>{t?(e.insertAt(0,r.TAB),0===o?n+=r.TAB.length:i+=r.TAB.length):e.domNode.textContent.startsWith(r.TAB)&&(e.deleteAt(0,r.TAB.length),0===o?n-=r.TAB.length:i-=r.TAB.length)}),this.quill.update(Pt.sources.USER),this.quill.setSelection(n,i,Pt.sources.SILENT)}}}function xe(t,e){return{key:t,shiftKey:e,altKey:null,["ArrowLeft"===t?"prefix":"suffix"]:/^$/,handler(r){let{index:o}=r;"ArrowRight"===t&&(o+=r.length+1);const[n]=this.quill.getLeaf(o);return!(n instanceof I)||("ArrowLeft"===t?e?this.quill.setSelection(r.index-1,r.length+1,Pt.sources.USER):this.quill.setSelection(r.index-1,Pt.sources.USER):e?this.quill.setSelection(r.index,r.length+1,Pt.sources.USER):this.quill.setSelection(r.index+r.length+1,Pt.sources.USER),!1)}}}function Ee(t){return{key:t[0],shortKey:!0,handler(e,r){this.quill.format(t,!r.format[t],Pt.sources.USER)}}}function Se(t){return{key:t?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,r){const o=t?"prev":"next",n=r.line,i=n.parent[o];if(null!=i){if("table-row"===i.statics.blotName){let t=i.children.head,e=n;for(;null!=e.prev;)e=e.prev,t=t.next;const o=t.offset(this.quill.scroll)+Math.min(r.offset,t.length()-1);this.quill.setSelection(o,0,Pt.sources.USER)}}else{const e=n.table()[o];null!=e&&(t?this.quill.setSelection(e.offset(this.quill.scroll)+e.length()-1,0,Pt.sources.USER):this.quill.setSelection(e.offset(this.quill.scroll),0,Pt.sources.USER))}return!1}}}ve.DEFAULTS={bindings:{bold:Ee("bold"),italic:Ee("italic"),underline:Ee("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(t,e){return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","+1",Pt.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(t,e){return!(!e.collapsed||0===e.offset)||(this.quill.format("indent","-1",Pt.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(t,e){null!=e.format.indent?this.quill.format("indent","-1",Pt.sources.USER):null!=e.format.list&&this.quill.format("list",!1,Pt.sources.USER)}},"indent code-block":Ae(!0),"outdent code-block":Ae(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(t){this.quill.deleteText(t.index-1,1,Pt.sources.USER)}},tab:{key:"Tab",handler(t,e){if(e.format.table)return!0;this.quill.history.cutoff();const r=(new s.a).retain(t.index).delete(t.length).insert("\t");return this.quill.updateContents(r,Pt.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,Pt.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,Pt.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(t,e){const r={list:!1};e.format.indent&&(r.indent=!1),this.quill.formatLine(t.index,t.length,r,Pt.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(t){const[e,r]=this.quill.getLine(t.index),o=M()({},e.formats(),{list:"checked"}),n=(new s.a).retain(t.index).insert("\n",o).retain(e.length()-r-1).retain(1,{list:"unchecked"});this.quill.updateContents(n,Pt.sources.USER),this.quill.setSelection(t.index+1,Pt.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(t,e){const[r,o]=this.quill.getLine(t.index),n=(new s.a).retain(t.index).insert("\n",e.format).retain(r.length()-o-1).retain(1,{header:null});this.quill.updateContents(n,Pt.sources.USER),this.quill.setSelection(t.index+1,Pt.sources.SILENT),this.quill.scrollIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(t){const e=this.quill.getModule("table");if(e){const[r,o,n,i]=e.getTable(t),a=function(t,e,r,o){if(null==e.prev&&null==e.next)return null==r.prev&&null==r.next?0===o?-1:1:null==r.prev?-1:1;if(null==e.prev)return-1;if(null==e.next)return 1;return null}(0,o,n,i);if(null==a)return;let l=r.offset();if(a<0){const e=(new s.a).retain(l).insert("\n");this.quill.updateContents(e,Pt.sources.USER),this.quill.setSelection(t.index+1,t.length,Pt.sources.SILENT)}else if(a>0){l+=r.length();const t=(new s.a).retain(l).insert("\n");this.quill.updateContents(t,Pt.sources.USER),this.quill.setSelection(l,Pt.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(t,e){const{event:r,line:o}=e,n=o.offset(this.quill.scroll);r.shiftKey?this.quill.setSelection(n-1,Pt.sources.USER):this.quill.setSelection(n+o.length(),Pt.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{list:!1,"code-block":!1,blockquote:!1,header:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(t,e){if(null==this.quill.scroll.query("list"))return!0;const{length:r}=e.prefix,[o,n]=this.quill.getLine(t.index);if(n>r)return!0;let i;switch(e.prefix.trim()){case"[]":case"[ ]":i="unchecked";break;case"[x]":i="checked";break;case"-":case"*":i="bullet";break;default:i="ordered"}this.quill.insertText(t.index," ",Pt.sources.USER),this.quill.history.cutoff();const a=(new s.a).retain(t.index-n).delete(r+1).retain(o.length()-2-n).retain(1,{list:i});return this.quill.updateContents(a,Pt.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-r,Pt.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(t){const[e,r]=this.quill.getLine(t.index);let o=2,n=e;for(;null!=n&&n.length()<=1&&n.formats()["code-block"];)if(n=n.prev,o-=1,o<=0){const o=(new s.a).retain(t.index+e.length()-r-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(o,Pt.sources.USER),this.quill.setSelection(t.index-1,Pt.sources.SILENT),!1}return!0}},"embed left":xe("ArrowLeft",!1),"embed left shift":xe("ArrowLeft",!0),"embed right":xe("ArrowRight",!1),"embed right shift":xe("ArrowRight",!0),"table down":Se(!1),"table up":Se(!0)}};class Ne extends Et{constructor(t,e){super(t,e),t.root.addEventListener("drop",e=>{let r;if(e.preventDefault(),document.caretRangeFromPoint)r=document.caretRangeFromPoint(e.clientX,e.clientY);else{if(!document.caretPositionFromPoint)return;{const t=document.caretPositionFromPoint(e.clientX,e.clientY);r=document.createRange(),r.setStart(t.offsetNode,t.offset),r.setEnd(t.offsetNode,t.offset)}}const o=t.selection.normalizeNative(r),n=t.selection.normalizedToRange(o);this.upload(n,e.dataTransfer.files)})}upload(t,e){const r=[];Array.from(e).forEach(t=>{t&&this.options.mimetypes.includes(t.type)&&r.push(t)}),r.length>0&&this.options.handler.call(this,t,r)}}Ne.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(t,e){const r=e.map(t=>new Promise(e=>{const r=new FileReader;r.onload=t=>{e(t.target.result)},r.readAsDataURL(t)}));Promise.all(r).then(e=>{const r=e.reduce((t,e)=>t.insert({image:e}),(new s.a).retain(t.index).delete(t.length));this.quill.updateContents(r,Y.sources.USER),this.quill.setSelection(t.index+e.length,Y.sources.SILENT)})}};var we=Ne;Pt.register({"blots/block":pt,"blots/block/embed":dt,"blots/break":lt,"blots/container":Tt,"blots/cursor":st,"blots/embed":jt,"blots/inline":ut,"blots/scroll":Ut,"blots/text":ot,"modules/clipboard":ae,"modules/history":ye,"modules/keyboard":ve,"modules/uploader":we});var ke=Pt;var Pe=new class extends E{add(t,e){if("+1"===e||"-1"===e){const r=this.value(t)||0;e="+1"===e?r+1:r-1}return 0===e?(this.remove(t),!0):super.add(t,e)}canAdd(t,e){return super.canAdd(t,e)||super.canAdd(t,parseInt(e,10))}value(t){return parseInt(super.value(t),10)||void 0}}("indent","ql-indent",{scope:a.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class Oe extends pt{}Oe.blotName="blockquote",Oe.tagName="blockquote";var qe=Oe;class Ie extends pt{static formats(t){return this.tagName.indexOf(t.tagName)+1}}Ie.blotName="header",Ie.tagName=["H1","H2","H3","H4","H5","H6"];var Te=Ie;class je extends Tt{}je.blotName="list-container",je.tagName="OL";class Le extends pt{static create(t){const e=super.create();return e.setAttribute("data-list",t),e}static formats(t){return t.getAttribute("data-list")||void 0}static register(){Pt.register(je)}constructor(t,e){super(t,e);const r=e.ownerDocument.createElement("span"),o=r=>{if(!t.isEnabled())return;const o=this.statics.formats(e,t);"checked"===o?(this.format("list","unchecked"),r.preventDefault()):"unchecked"===o&&(this.format("list","checked"),r.preventDefault())};r.addEventListener("mousedown",o),r.addEventListener("touchstart",o),this.attachUI(r)}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-list",e):super.format(t,e)}}Le.blotName="list",Le.tagName="LI",je.allowedChildren=[Le],Le.requiredContainer=je;class Re extends ut{static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}Re.blotName="bold",Re.tagName=["STRONG","B"];var Ue=Re;class Ce extends Ue{}Ce.blotName="italic",Ce.tagName=["EM","I"];var Me=Ce;class Be extends ut{static create(t){const e=super.create(t);return e.setAttribute("href",this.sanitize(t)),e.setAttribute("rel","noopener noreferrer"),e.setAttribute("target","_blank"),e}static formats(t){return t.getAttribute("href")}static sanitize(t){return _e(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("href",this.constructor.sanitize(e)):super.format(t,e)}}function _e(t,e){const r=document.createElement("a");r.href=t;const o=r.href.slice(0,r.href.indexOf(":"));return e.indexOf(o)>-1}Be.blotName="link",Be.tagName="A",Be.SANITIZED_URL="about:blank",Be.PROTOCOL_WHITELIST=["http","https","mailto","tel"];class Fe extends ut{static create(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):super.create(t)}static formats(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}Fe.blotName="script",Fe.tagName=["SUB","SUP"];var De=Fe;class We extends Ue{}We.blotName="strike",We.tagName=["S","STRIKE"];var $e=We;class Ve extends ut{}Ve.blotName="underline",Ve.tagName="U";var He=Ve;class ze extends jt{static create(t){if(null==window.katex)throw new Error("Formula module requires KaTeX.");const e=super.create(t);return"string"==typeof t&&(window.katex.render(t,e,{throwOnError:!1,errorColor:"#f00"}),e.setAttribute("data-value",t)),e}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return"".concat(t,"")}}ze.blotName="formula",ze.className="ql-formula",ze.tagName="SPAN";var Ge=ze;const Ke=["alt","height","width"];class Je extends I{static create(t){const e=super.create(t);return"string"==typeof t&&e.setAttribute("src",this.sanitize(t)),e}static formats(t){return Ke.reduce((e,r)=>(t.hasAttribute(r)&&(e[r]=t.getAttribute(r)),e),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static register(){/Firefox/i.test(navigator.userAgent)&&setTimeout(()=>{document.execCommand("enableObjectResizing",!1,!1)},1)}static sanitize(t){return _e(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,e){Ke.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}}Je.blotName="image",Je.tagName="IMG";var Ze=Je;const Xe=["height","width"];class Ye extends dt{static create(t){const e=super.create(t);return e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen",!0),e.setAttribute("src",this.sanitize(t)),e}static formats(t){return Xe.reduce((e,r)=>(t.hasAttribute(r)&&(e[r]=t.getAttribute(r)),e),{})}static sanitize(t){return Be.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,e){Xe.indexOf(t)>-1?e?this.domNode.setAttribute(t,e):this.domNode.removeAttribute(t):super.format(t,e)}html(){const{video:t}=this.value();return'').concat(t,"")}}Ye.blotName="video",Ye.className="ql-video",Ye.tagName="IFRAME";var Qe=Ye;const tr=new E("code-token","hljs",{scope:a.INLINE});class er extends ut{static formats(t,e){for(;null!=t&&t!==e.domNode;){if(t.classList&&t.classList.contains(zt.className))return super.formats(t,e);t=t.parentNode}}constructor(t,e,r){super(t,e,r),tr.add(this.domNode,r)}format(t,e){t!==er.blotName?super.format(t,e):e?tr.add(this.domNode,e):(tr.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(...t){super.optimize(...t),tr.value(this.domNode)||this.unwrap()}}er.blotName="code-token",er.className="ql-token";class rr extends zt{static create(t){const e=super.create(t);return"string"==typeof t&&e.setAttribute("data-language",t),e}static formats(t){return t.getAttribute("data-language")||"plain"}static register(){}format(t,e){t===this.statics.blotName&&e?this.domNode.setAttribute("data-language",e):super.format(t,e)}replaceWith(t,e){return this.formatAt(0,this.length(),er.blotName,!1),super.replaceWith(t,e)}}class or extends Ht{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,e){t===rr.blotName&&(this.forceNext=!0,this.children.forEach(r=>{r.format(t,e)}))}formatAt(t,e,r,o){r===rr.blotName&&(this.forceNext=!0),super.formatAt(t,e,r,o)}highlight(t,e=!1){if(null==this.children.head)return;const r=Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode),o="".concat(r.map(t=>t.textContent).join("\n"),"\n"),n=rr.formats(this.children.head.domNode);if(e||this.forceNext||this.cachedText!==o){if(o.trim().length>0||null==this.cachedText){const e=this.children.reduce((t,e)=>t.concat(ht(e,!1)),new s.a),r=t(o,n);e.diff(r).reduce((t,{retain:e,attributes:r})=>e?(r&&Object.keys(r).forEach(o=>{[rr.blotName,er.blotName].includes(o)&&this.formatAt(t,e,o,r[o])}),t+e):t,0)}this.cachedText=o,this.forceNext=!1}}optimize(t){if(super.optimize(t),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){const t=rr.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}or.allowedChildren=[rr],rr.requiredContainer=or,rr.allowedChildren=[er,st,ot,lt];class nr extends Et{static register(){Pt.register(er,!0),Pt.register(rr,!0),Pt.register(or,!0)}constructor(t,e){if(super(t,e),null==this.options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((t,{key:e})=>(t[e]=!0,t),{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(Pt.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof or))return;const e=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(({key:t,label:r})=>{const o=e.ownerDocument.createElement("option");o.textContent=r,o.setAttribute("value",t),e.appendChild(o)}),e.addEventListener("change",()=>{t.format(rr.blotName,e.value),this.quill.root.focus(),this.highlight(t,!0)}),null==t.uiNode&&(t.attachUI(e),t.children.head&&(e.value=rr.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(Pt.events.SCROLL_OPTIMIZE,()=>{clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(t=null,e=!1){if(this.quill.selection.composing)return;this.quill.update(Pt.sources.USER);const r=this.quill.getSelection();(null==t?this.quill.scroll.descendants(or):[t]).forEach(t=>{t.highlight(this.highlightBlot,e)}),this.quill.update(Pt.sources.SILENT),null!=r&&this.quill.setSelection(r,Pt.sources.SILENT)}highlightBlot(t,e="plain"){if("plain"===(e=this.languages[e]?e:"plain"))return nt(t).split("\n").reduce((t,r,o)=>(0!==o&&t.insert("\n",{[zt.blotName]:e}),t.insert(r)),new s.a);const r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(zt.className),r.innerHTML=this.options.hljs.highlight(e,t).value,de(this.quill.scroll,r,[(t,e)=>{const r=tr.value(t);return r?e.compose((new s.a).retain(e.length(),{[er.blotName]:r})):e}],[(t,r)=>t.data.split("\n").reduce((t,r,o)=>(0!==o&&t.insert("\n",{[zt.blotName]:e}),t.insert(r)),r)],new WeakMap)}}nr.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"Javascript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};class ir extends pt{static create(t){const e=super.create();return t?e.setAttribute("data-row",t):e.setAttribute("data-row",cr()),e}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,e){t===ir.blotName&&e?this.domNode.setAttribute("data-row",e):super.format(t,e)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}}ir.blotName="table",ir.tagName="TD";class sr extends Tt{checkMerge(){if(super.checkMerge()&&null!=this.next.children.head){const t=this.children.head.formats(),e=this.children.tail.formats(),r=this.next.children.head.formats(),o=this.next.children.tail.formats();return t.table===e.table&&t.table===r.table&&t.table===o.table}return!1}optimize(...t){super.optimize(...t),this.children.forEach(t=>{if(null==t.next)return;const e=t.formats(),r=t.next.formats();if(e.table!==r.table){const e=this.splitAfter(t);e&&e.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}sr.blotName="table-row",sr.tagName="TR";class ar extends Tt{}ar.blotName="table-body",ar.tagName="TBODY";class lr extends Tt{balanceCells(){const t=this.descendants(sr),e=t.reduce((t,e)=>Math.max(e.children.length,t),0);t.forEach(t=>{new Array(e-t.children.length).fill(0).forEach(()=>{let e;null!=t.children.head&&(e=ir.formats(t.children.head.domNode));const r=this.scroll.create(ir.blotName,e);t.appendChild(r),r.optimize()})})}cells(t){return this.rows().map(e=>e.children.at(t))}deleteColumn(t){const[e]=this.descendant(ar);null!=e&&null!=e.children.head&&e.children.forEach(e=>{const r=e.children.at(t);null!=r&&r.remove()})}insertColumn(t){const[e]=this.descendant(ar);null!=e&&null!=e.children.head&&e.children.forEach(e=>{const r=e.children.at(t),o=ir.formats(e.children.head.domNode),n=this.scroll.create(ir.blotName,o);e.insertBefore(n,r)})}insertRow(t){const[e]=this.descendant(ar);if(null==e||null==e.children.head)return;const r=cr(),o=this.scroll.create(sr.blotName);e.children.head.children.forEach(()=>{const t=this.scroll.create(ir.blotName,r);o.appendChild(t)});const n=e.children.at(t);e.insertBefore(o,n)}rows(){const t=this.children.head;return null==t?[]:t.children.map(t=>t)}}function cr(){const t=Math.random().toString(36).slice(2,6);return"row-".concat(t)}lr.blotName="table-container",lr.tagName="TABLE",lr.allowedChildren=[ar],ar.requiredContainer=lr,ar.allowedChildren=[sr],sr.requiredContainer=ar,sr.allowedChildren=[ir],ir.requiredContainer=sr;var ur=class extends Et{static register(){Pt.register(ir),Pt.register(sr),Pt.register(ar),Pt.register(lr)}constructor(...t){super(...t),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(lr).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,e]=this.getTable();null!=e&&(t.deleteColumn(e.cellOffset()),this.quill.update(Pt.sources.USER))}deleteRow(){const[,t]=this.getTable();null!=t&&(t.remove(),this.quill.update(Pt.sources.USER))}deleteTable(){const[t]=this.getTable();if(null==t)return;const e=t.offset();t.remove(),this.quill.update(Pt.sources.USER),this.quill.setSelection(e,Pt.sources.SILENT)}getTable(t=this.quill.getSelection()){if(null==t)return[null,null,null,-1];const[e,r]=this.quill.getLine(t.index);if(null==e||e.statics.blotName!==ir.blotName)return[null,null,null,-1];const o=e.parent;return[o.parent.parent,o,e,r]}insertColumn(t){const e=this.quill.getSelection(),[r,o,n]=this.getTable(e);if(null==n)return;const i=n.cellOffset();r.insertColumn(i+t),this.quill.update(Pt.sources.USER);let s=o.rowOffset();0===t&&(s+=1),this.quill.setSelection(e.index+s,e.length,Pt.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const e=this.quill.getSelection(),[r,o,n]=this.getTable(e);if(null==n)return;const i=o.rowOffset();r.insertRow(i+t),this.quill.update(Pt.sources.USER),t>0?this.quill.setSelection(e,Pt.sources.SILENT):this.quill.setSelection(e.index+o.children.length,e.length,Pt.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,e){const r=this.quill.getSelection();if(null==r)return;const o=new Array(t).fill(0).reduce(t=>{const r=new Array(e).fill("\n").join("");return t.insert(r,{table:cr()})},(new s.a).retain(r.index));this.quill.updateContents(o,Pt.sources.USER),this.quill.setSelection(r.index,Pt.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Pt.events.SCROLL_OPTIMIZE,t=>{t.some(t=>!!["TD","TR","TBODY","TABLE"].includes(t.target.tagName)&&(this.quill.once(Pt.events.TEXT_CHANGE,(t,e,r)=>{r===Pt.sources.USER&&this.balanceTables()}),!0))})}};const pr=J("quill:toolbar");class dr extends Et{constructor(t,e){if(super(t,e),Array.isArray(this.options.container)){const e=document.createElement("div");!function(t,e){Array.isArray(e[0])||(e=[e]);e.forEach(e=>{const r=document.createElement("span");r.classList.add("ql-formats"),e.forEach(t=>{if("string"==typeof t)hr(r,t);else{const e=Object.keys(t)[0],o=t[e];Array.isArray(o)?function(t,e,r){const o=document.createElement("select");o.classList.add("ql-".concat(e)),r.forEach(t=>{const e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),o.appendChild(e)}),t.appendChild(o)}(r,e,o):hr(r,e,o)}}),t.appendChild(r)})}(e,this.options.container),t.container.parentNode.insertBefore(e,t.container),this.container=e}else"string"==typeof this.options.container?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement))return pr.error("Container required for toolbar",this.options);this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},Object.keys(this.options.handlers).forEach(t=>{this.addHandler(t,this.options.handlers[t])}),Array.from(this.container.querySelectorAll("button, select")).forEach(t=>{this.attach(t)}),this.quill.on(Pt.events.EDITOR_CHANGE,(t,e)=>{t===Pt.events.SELECTION_CHANGE&&this.update(e)}),this.quill.on(Pt.events.SCROLL_OPTIMIZE,()=>{const[t]=this.quill.selection.getRange();this.update(t)})}addHandler(t,e){this.handlers[t]=e}attach(t){let e=Array.from(t.classList).find(t=>0===t.indexOf("ql-"));if(!e)return;if(e=e.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[e]&&null==this.quill.scroll.query(e))return void pr.warn("ignoring attaching to nonexistent format",e,t);const r="SELECT"===t.tagName?"change":"click";t.addEventListener(r,r=>{let o;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;const e=t.options[t.selectedIndex];o=!e.hasAttribute("selected")&&(e.value||!1)}else o=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),r.preventDefault();this.quill.focus();const[n]=this.quill.selection.getRange();if(null!=this.handlers[e])this.handlers[e].call(this,o);else if(this.quill.scroll.query(e).prototype instanceof I){if(o=prompt("Enter ".concat(e)),!o)return;this.quill.updateContents((new s.a).retain(n.index).delete(n.length).insert({[e]:o}),Pt.sources.USER)}else this.quill.format(e,o,Pt.sources.USER);this.update(n)}),this.controls.push([e,t])}update(t){const e=null==t?{}:this.quill.getFormat(t);this.controls.forEach(r=>{const[o,n]=r;if("SELECT"===n.tagName){let r;if(null==t)r=null;else if(null==e[o])r=n.querySelector("option[selected]");else if(!Array.isArray(e[o])){let t=e[o];"string"==typeof t&&(t=t.replace(/"/g,'\\"')),r=n.querySelector('option[value="'.concat(t,'"]'))}null==r?(n.value="",n.selectedIndex=-1):r.selected=!0}else if(null==t)n.classList.remove("ql-active");else if(n.hasAttribute("value")){const t=e[o]===n.getAttribute("value")||null!=e[o]&&e[o].toString()===n.getAttribute("value")||null==e[o]&&!n.getAttribute("value");n.classList.toggle("ql-active",t)}else n.classList.toggle("ql-active",null!=e[o])})}}function hr(t,e,r){const o=document.createElement("button");o.setAttribute("type","button"),o.classList.add("ql-".concat(e)),null!=r&&(o.value=r),t.appendChild(o)}dr.DEFAULTS={},dr.DEFAULTS={container:null,handlers:{clean(){const t=this.quill.getSelection();if(null!=t)if(0===t.length){const t=this.quill.getFormat();Object.keys(t).forEach(t=>{null!=this.quill.scroll.query(t,a.INLINE)&&this.quill.format(t,!1,Pt.sources.USER)})}else this.quill.removeFormat(t,Pt.sources.USER)},direction(t){const{align:e}=this.quill.getFormat();"rtl"===t&&null==e?this.quill.format("align","right",Pt.sources.USER):t||"right"!==e||this.quill.format("align",!1,Pt.sources.USER),this.quill.format("direction",t,Pt.sources.USER)},indent(t){const e=this.quill.getSelection(),r=this.quill.getFormat(e),o=parseInt(r.indent||0,10);if("+1"===t||"-1"===t){let e="+1"===t?1:-1;"rtl"===r.direction&&(e*=-1),this.quill.format("indent",o+e,Pt.sources.USER)}},link(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,Pt.sources.USER)},list(t){const e=this.quill.getSelection(),r=this.quill.getFormat(e);"check"===t?"checked"===r.list||"unchecked"===r.list?this.quill.format("list",!1,Pt.sources.USER):this.quill.format("list","unchecked",Pt.sources.USER):this.quill.format("list",t,Pt.sources.USER)}}};var fr=r(34),yr=r.n(fr),mr=r(35),gr=r.n(mr),br=r(36),vr=r.n(br),Ar=r(37),xr=r.n(Ar),Er=r(38),Sr=r.n(Er),Nr=r(39),wr=r.n(Nr),kr=r(40),Pr=r.n(kr),Or=r(41),qr=r.n(Or),Ir=r(15),Tr=r.n(Ir),jr=r(42),Lr=r.n(jr),Rr=r(43),Ur=r.n(Rr),Cr=r(44),Mr=r.n(Cr),Br=r(45),_r=r.n(Br),Fr=r(46),Dr=r.n(Fr),Wr=r(47),$r=r.n(Wr),Vr=r(48),Hr=r.n(Vr),zr=r(49),Gr=r.n(zr),Kr=r(50),Jr=r.n(Kr),Zr=r(51),Xr=r.n(Zr),Yr=r(52),Qr=r.n(Yr),to=r(53),eo=r.n(to),ro=r(54),oo=r.n(ro),no=r(55),io=r.n(no),so=r(56),ao=r.n(so),lo=r(57),co=r.n(lo),uo=r(58),po=r.n(uo),ho=r(59),fo=r.n(ho),yo=r(60),mo=r.n(yo),go=r(61),bo=r.n(go),vo={align:{"":yr.a,center:gr.a,right:vr.a,justify:xr.a},background:Sr.a,blockquote:wr.a,bold:Pr.a,clean:qr.a,code:Tr.a,"code-block":Tr.a,color:Lr.a,direction:{"":Ur.a,rtl:Mr.a},formula:_r.a,header:{1:Dr.a,2:$r.a},italic:Hr.a,image:Gr.a,indent:{"+1":Jr.a,"-1":Xr.a},link:Qr.a,list:{bullet:eo.a,check:oo.a,ordered:io.a},script:{sub:ao.a,super:co.a},strike:po.a,table:fo.a,underline:mo.a,video:bo.a},Ao=r(62),xo=r.n(Ao);let Eo=0;function So(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var No=class{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),So(this.label,"aria-expanded"),So(this.options,"aria-hidden")}buildItem(t){const e=document.createElement("span");return e.tabIndex="0",e.setAttribute("role","button"),e.classList.add("ql-picker-item"),t.hasAttribute("value")&&e.setAttribute("data-value",t.getAttribute("value")),t.textContent&&e.setAttribute("data-label",t.textContent),e.addEventListener("click",()=>{this.selectItem(e,!0)}),e.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.selectItem(e,!0),t.preventDefault();break;case"Escape":this.escape(),t.preventDefault()}}),e}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=xo.a,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-".concat(Eo),Eo+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(e=>{const r=this.buildItem(e);t.appendChild(r),!0===e.selected&&this.selectItem(r)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t,e=!1){const r=this.container.querySelector(".ql-selected");t!==r&&(null!=r&&r.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);const e=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",e)}};var wo=class extends No{constructor(t,e){super(t),this.label.innerHTML=e,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(t=>{t.classList.add("ql-primary")})}buildItem(t){const e=super.buildItem(t);return e.style.backgroundColor=t.getAttribute("value")||"",e}selectItem(t,e){super.selectItem(t,e);const r=this.label.querySelector(".ql-color-label"),o=t&&t.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}};var ko=class extends No{constructor(t,e){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(t=>{t.innerHTML=e[t.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,e){super.selectItem(t,e);const r=t||this.defaultItem;this.label.innerHTML!==r.innerHTML&&(this.label.innerHTML=r.innerHTML)}};var Po=class{constructor(t,e){this.quill=t,this.boundsContainer=e||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop="".concat(-1*this.quill.root.scrollTop,"px")}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const e=t.left+t.width/2-this.root.offsetWidth/2,r=t.bottom+this.quill.root.scrollTop;this.root.style.left="".concat(e,"px"),this.root.style.top="".concat(r,"px"),this.root.classList.remove("ql-flip");const o=this.boundsContainer.getBoundingClientRect(),n=this.root.getBoundingClientRect();let i=0;if(n.right>o.right&&(i=o.right-n.right,this.root.style.left="".concat(e+i,"px")),n.lefto.bottom){const e=n.bottom-n.top,o=t.bottom-t.top+e;this.root.style.top="".concat(r-o,"px"),this.root.classList.add("ql-flip")}return i}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}};const Oo=[!1,"center","right","justify"],qo=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Io=[!1,"serif","monospace"],To=["1","2","3",!1],jo=["small",!1,"large","huge"];class Lo extends Nt{constructor(t,e){super(t,e);const r=e=>{document.body.contains(t.root)?(null==this.tooltip||this.tooltip.root.contains(e.target)||document.activeElement===this.tooltip.textbox||this.quill.hasFocus()||this.tooltip.hide(),null!=this.pickers&&this.pickers.forEach(t=>{t.container.contains(e.target)||t.close()})):document.body.removeEventListener("click",r)};t.emitter.listenDOM("click",document.body,r)}addModule(t){const e=super.addModule(t);return"toolbar"===t&&this.extendToolbar(e),e}buildButtons(t,e){Array.from(t).forEach(t=>{(t.getAttribute("class")||"").split(/\s+/).forEach(r=>{if(r.startsWith("ql-")&&(r=r.slice("ql-".length),null!=e[r]))if("direction"===r)t.innerHTML=e[r][""]+e[r].rtl;else if("string"==typeof e[r])t.innerHTML=e[r];else{const o=t.value||"";null!=o&&e[r][o]&&(t.innerHTML=e[r][o])}})})}buildPickers(t,e){this.pickers=Array.from(t).map(t=>{if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&Uo(t,Oo),new ko(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){const r=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&Uo(t,qo,"background"===r?"#ffffff":"#000000"),new wo(t,e[r])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?Uo(t,Io):t.classList.contains("ql-header")?Uo(t,To):t.classList.contains("ql-size")&&Uo(t,jo)),new No(t)});this.quill.on(Y.events.EDITOR_CHANGE,()=>{this.pickers.forEach(t=>{t.update()})})}}Lo.DEFAULTS=M()(!0,{},Nt.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let t=this.container.querySelector("input.ql-image[type=file]");null==t&&(t=document.createElement("input"),t.setAttribute("type","file"),t.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),t.classList.add("ql-image"),t.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,t.files),t.value=""}),this.container.appendChild(t)),t.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Ro extends Po{constructor(t,e){super(t,e),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{"Enter"===t.key?(this.save(),t.preventDefault()):"Escape"===t.key&&(this.cancel(),t.preventDefault())})}cancel(){this.hide()}edit(t="link",e=null){this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-".concat(t))||""),this.root.setAttribute("data-mode",t)}restoreFocus(){const{scrollTop:t}=this.quill.scrollingContainer;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:e}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,Y.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,Y.sources.USER)),this.quill.root.scrollTop=e;break}case"video":t=function(t){let e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);if(e)return"".concat(e[1]||"https","://www.youtube.com/embed/").concat(e[2],"?showinfo=0");if(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))return"".concat(e[1]||"https","://player.vimeo.com/video/").concat(e[2],"/");return t}(t);case"formula":{if(!t)break;const e=this.quill.getSelection(!0);if(null!=e){const r=e.index+e.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,Y.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",Y.sources.USER),this.quill.setSelection(r+2,Y.sources.USER)}break}}this.textbox.value="",this.hide()}}function Uo(t,e,r=!1){e.forEach(e=>{const o=document.createElement("option");e===r?o.setAttribute("selected","selected"):o.setAttribute("value",e),t.appendChild(o)})}const Co=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Mo extends Ro{constructor(t,e){super(t,e),this.quill.on(Y.events.EDITOR_CHANGE,(t,e,r,o)=>{if(t===Y.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&o===Y.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width="".concat(this.root.offsetWidth,"px");const t=this.quill.getLines(e.index,e.length);if(1===t.length)this.position(this.quill.getBounds(e));else{const r=t[t.length-1],o=this.quill.getIndex(r),n=Math.min(r.length()-1,e.index+e.length-o),i=this.quill.getBounds(new tt(o,n));this.position(i)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Y.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();null!=t&&this.position(this.quill.getBounds(t))},1)})}cancel(){this.show()}position(t){const e=super.position(t),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",0!==e&&(r.style.marginLeft="".concat(-1*e-r.offsetWidth/2,"px")),e}}Mo.TEMPLATE=['','
    ','','',"
    "].join("");class Bo extends Lo{constructor(t,e){null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=Co),super(t,e),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new Mo(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),vo),this.buildPickers(t.container.querySelectorAll("select"),vo)}}Bo.DEFAULTS=M()(!0,{},Lo.DEFAULTS,{modules:{toolbar:{handlers:{link(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});const _o=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Fo extends Ro{constructor(t,e){super(t,e),this.preview=this.root.querySelector("a.ql-preview")}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(null!=this.linkRange){const t=this.linkRange;this.restoreFocus(),this.quill.formatText(t,"link",!1,Y.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(Y.events.SELECTION_CHANGE,(t,e,r)=>{if(null!=t){if(0===t.length&&r===Y.sources.USER){const[e,r]=this.quill.scroll.descendant(Be,t.index);if(null!=e){this.linkRange=new tt(t.index-r,e.length());const o=Be.formats(e.domNode);return this.preview.textContent=o,this.preview.setAttribute("href",o),this.show(),void this.position(this.quill.getBounds(this.linkRange))}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Fo.TEMPLATE=['','','',''].join("");class Do extends Lo{constructor(t,e){null!=e.modules.toolbar&&null==e.modules.toolbar.container&&(e.modules.toolbar.container=_o),super(t,e),this.quill.container.classList.add("ql-snow")}extendToolbar(t){t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),vo),this.buildPickers(t.container.querySelectorAll("select"),vo),this.tooltip=new Fo(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(e,r)=>{t.handlers.link.call(t,!r.format.link)})}}Do.DEFAULTS=M()(!0,{},Lo.DEFAULTS,{modules:{toolbar:{handlers:{link(t){if(t){const t=this.quill.getSelection();if(null==t||0===t.length)return;let e=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(e)&&0!==e.indexOf("mailto:")&&(e="mailto:".concat(e));const{tooltip:r}=this.quill.theme;r.edit("link",e)}else this.quill.format("link",!1)}}}}});var Wo=Do;ke.register({"attributors/attribute/direction":Jt,"attributors/class/align":Bt,"attributors/class/background":$t,"attributors/class/color":Dt,"attributors/class/direction":Zt,"attributors/class/font":Qt,"attributors/class/size":ee,"attributors/style/align":_t,"attributors/style/background":Vt,"attributors/style/color":Wt,"attributors/style/direction":Xt,"attributors/style/font":te,"attributors/style/size":re},!0),ke.register({"formats/align":Bt,"formats/direction":Zt,"formats/indent":Pe,"formats/background":Vt,"formats/color":Wt,"formats/font":Qt,"formats/size":ee,"formats/blockquote":qe,"formats/code-block":zt,"formats/header":Te,"formats/list":Le,"formats/bold":Ue,"formats/code":Gt,"formats/italic":Me,"formats/link":Be,"formats/script":De,"formats/strike":$e,"formats/underline":He,"formats/formula":Ge,"formats/image":Ze,"formats/video":Qe,"modules/syntax":nr,"modules/table":ur,"modules/toolbar":dr,"themes/bubble":Bo,"themes/snow":Wo,"ui/icons":vo,"ui/picker":No,"ui/icon-picker":ko,"ui/color-picker":wo,"ui/tooltip":Po},!0);e.default=ke}]).default})); //# sourceMappingURL=quill.min.js.map -require=function r(o,i,a){function s(t,e){if(!i[t]){if(!o[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(c)return c(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}n=i[t]={exports:{}},o[t][0].call(n.exports,function(e){return s(o[t][1][e]||e)},n,n.exports,r,o,i,a)}return i[t].exports}for(var c="function"==typeof require&&require,e=0;e{var t;try{e()}catch(e){t=e}return t})(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!t&&c(t,n,"Missing expected exception"+r);var o="string"==typeof r,i=!e&&t&&!n;if((!e&&g.isError(t)&&o&&u(t,n)||i)&&c(t,n,"Got unwanted exception"+r),e&&t&&n&&!u(t,n)||!e&&t)throw t}i.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=a(s((n=this).actual),128)+" "+n.operator+" "+a(s(n.expected),128),this.generatedMessage=!0);var t,n=e.stackStartFunction||c;Error.captureStackTrace?Error.captureStackTrace(this,n):(e=new Error).stack&&(e=e.stack,t=o(n),0<=(t=e.indexOf("\n"+t))&&(t=e.indexOf("\n",t+1),e=e.substring(t+1)),this.stack=e)},g.inherits(i.AssertionError,Error),i.fail=c,i.ok=l,i.equal=function(e,t,n){e!=t&&c(e,t,n,"==",i.equal)},i.notEqual=function(e,t,n){e==t&&c(e,t,n,"!=",i.notEqual)},i.deepEqual=function(e,t,n){y(e,t,!1)||c(e,t,n,"deepEqual",i.deepEqual)},i.deepStrictEqual=function(e,t,n){y(e,t,!0)||c(e,t,n,"deepStrictEqual",i.deepStrictEqual)},i.notDeepEqual=function(e,t,n){y(e,t,!1)&&c(e,t,n,"notDeepEqual",i.notDeepEqual)},i.notDeepStrictEqual=function e(t,n,r){y(t,n,!0)&&c(t,n,r,"notDeepStrictEqual",e)},i.strictEqual=function(e,t,n){e!==t&&c(e,t,n,"===",i.strictEqual)},i.notStrictEqual=function(e,t,n){e===t&&c(e,t,n,"!==",i.notStrictEqual)},i.throws=function(e,t,n){f(!0,e,t,n)},i.doesNotThrow=function(e,t,n){f(!1,e,t,n)},i.ifError=function(e){if(e)throw e},i.strict=e(function e(t,n){t||c(t,!0,n,"==",e)},i,{equal:i.strictEqual,deepEqual:i.deepStrictEqual,notEqual:i.notStrictEqual,notDeepEqual:i.notDeepStrictEqual}),i.strict.strict=i.strict;var w=Object.keys||function(e){var t,n=[];for(t in e)r.call(e,t)&&n.push(t);return n}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"object.assign/polyfill":58,"util/":90}],2:[function(e,t,n){n.byteLength=function(e){var e=u(e),t=e[0],e=e[1];return 3*(t+e)/4-e},n.toByteArray=function(e){var t,n,r=u(e),o=r[0],r=r[1],i=new l(((e,t)=>3*(e+t)/4-t)(o,r)),a=0,s=0>16&255,i[a++]=t>>8&255,i[a++]=255&t;2===r&&(t=c[e.charCodeAt(n)]<<2|c[e.charCodeAt(n+1)]>>4,i[a++]=255&t);1===r&&(t=c[e.charCodeAt(n)]<<10|c[e.charCodeAt(n+1)]<<4|c[e.charCodeAt(n+2)]>>2,i[a++]=t>>8&255,i[a++]=255&t);return i},n.fromByteArray=function(e){for(var t,n=e.length,r=n%3,o=[],i=0,a=n-r;i{for(var r,o=[],i=t;is[e>>18&63]+s[e>>12&63]+s[e>>6&63]+s[63&e])(r));return o.join("")})(e,i,a>2]+s[t<<4&63]+"==")):2==r&&(t=(e[n-2]<<8)+e[n-1],o.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"="));return o.join("")};for(var s=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;oe!=e)(r.length)?c(a,0):l(a,r);if("Buffer"===r.type&&s(r.data))return l(a,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}o=e,r=t,e=n;if(f.isEncoding(e="string"==typeof e&&""!==e?e:"utf8"))return t=0|d(r,e),o=(r=(o=c(o,t)).write(r,e))!==t?o.slice(0,r):o;throw new TypeError('"encoding" must be a valid string encoding')}function o(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function a(e,t){if(o(t),e=c(e,t<0?0:0|u(t)),!f.TYPED_ARRAY_SUPPORT)for(var n=0;n>>1;case"base64":return j(e).length;default:if(r)return I(e).length;t=(""+t).toLowerCase(),r=!0}}function t(e,t,n){var r,o=!1;if((t=void 0===t||t<0?0:t)>this.length)return"";if((n=void 0===n||n>this.length?this.length:n)<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":var i=this,a=t,s=n,c=i.length;(!s||s<0||ce<16?"0"+e.toString(16):e.toString(16))(i[u]);return l;case"utf8":case"utf-8":return S(this,t,n);case"ascii":var f=this,c=t,d=n,h="";d=Math.min(f.length,d);for(var p=c;p=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=f.from(t,r)),f.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,o);if("number"==typeof t)return t&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(o?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(e,t,n):g(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,o){var i=1,a=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a/=i=2,s/=2,n/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o)for(var l=-1,u=n;u{for(var t=[],n=0;n{for(var n,r,o=[],i=0;i>8,o.push(n%256),o.push(r);return o})(t,e.length-n),e,n,r)}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o>>10&1023|55296),u=56320|1023&u),r.push(u),o+=f}var d=r,h=d.length;if(h<=m)return String.fromCharCode.apply(String,d);for(var p="",g=0;g{try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}})(),B.kMaxLength=n(),f.poolSize=8192,f._augment=function(e){return e.__proto__=f.prototype,e},f.from=function(e,t,n){return r(null,e,t,n)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol)&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0}),f.alloc=function(e,t,n){return r=null,t=t,n=n,o(e=e),!(e<=0)&&void 0!==t?"string"==typeof n?c(r,e).fill(t,n):c(r,e).fill(t):c(r,e);var r},f.allocUnsafe=function(e){return a(null,e)},f.allocUnsafeSlow=function(e){return a(null,e)},f.isBuffer=function(e){return!(null==e||!e._isBuffer)},f.compare=function(e,t){if(!f.isBuffer(e)||!f.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);ot)&&(e+=" ... "),""},f.prototype.compare=function(e,t,n,r,o){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),(t=void 0===t?0:t)<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(o<=r&&n<=t)return 0;if(o<=r)return-1;if(n<=t)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),l=e.slice(t,n),u=0;uthis.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var i,a,s,c=!1;;)switch(r){case"hex":var l=this,u=e,f=t,d=n,h=(f=Number(f)||0,l.length-f);if((!d||h<(d=Number(d)))&&(d=h),(h=u.length)%2!=0)throw new TypeError("Invalid hex string");h/2e.length)throw new RangeError("Index out of range")}function w(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function x(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function k(e,t,n,r){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function A(e,t,n,r,o){return o||k(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function E(e,t,n,r,o){return o||k(e,0,n,8),i.write(e,t,n,r,52,8),n+8}f.prototype.slice=function(e,t){var n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):n>>8):w(this,e,t,!0),t+2},f.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):w(this,e,t,!1),t+2},f.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):x(this,e,t,!0),t+4},f.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},f.prototype.writeIntLE=function(e,t,n,r){e=+e,t|=0,r||_(this,e,t,n,(r=Math.pow(2,8*n-1))-1,-r);var o=0,i=1,a=0;for(this[t]=255&e;++o>0)-a&255;return t+n},f.prototype.writeIntBE=function(e,t,n,r){e=+e,t|=0,r||_(this,e,t,n,(r=Math.pow(2,8*n-1))-1,-r);var o=n-1,i=1,a=0;for(this[t+o]=255&e;0<=--o&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},f.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,1,127,-128),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&(e=e<0?255+e+1:e),t+1},f.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):w(this,e,t,!0),t+2},f.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):w(this,e,t,!1),t+2},f.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):x(this,e,t,!0),t+4},f.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},f.prototype.writeFloatLE=function(e,t,n){return A(this,e,t,!0,n)},f.prototype.writeFloatBE=function(e,t,n){return A(this,e,t,!1,n)},f.prototype.writeDoubleLE=function(e,t,n){return E(this,e,t,!0,n)},f.prototype.writeDoubleBE=function(e,t,n){return E(this,e,t,!1,n)},f.prototype.copy=function(e,t,n,r){if(n=n||0,r||0===r||(r=this.length),t>=e.length&&(t=e.length),(r=0=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length);var o,i=(r=e.length-t>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(e=e||0))for(s=t;s>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function j(e){return C.toByteArray((e=>{var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e})(e))}function R(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},F("buffer").Buffer)},{"base64-js":2,buffer:3,ieee754:29,isarray:30}],4:[function(e,t,n){var r=e("get-intrinsic"),o=e("./"),i=o(r("String.prototype.indexOf"));t.exports=function(e,t){t=r(e,!!t);return"function"==typeof t&&-1{for(var n=[],r=t||0,o=0;r{for(var n="",r=0;r{var t=E(e,0,1),n=E(e,-1);if("%"===t&&"%"!==n)throw new d("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new d("invalid intrinsic syntax, expected opening `%`");var o=[];return A(e,I,function(e,t,n,r){o[o.length]=n?A(r,j,"$1"):t||e}),o})(e),r=0{var n,r=e;if(k(x,r)&&(r="%"+(n=x[r])[0]+"%"),k(_,r)){var o=_[r];if(void 0!==(o=o===y?w(r):o)||t)return{alias:n,name:r,value:o};throw new h("intrinsic "+e+" exists, but is not available. Please file an issue!")}throw new d("intrinsic "+e+" does not exist!")})("%"+r+"%",t),i=(o.name,o.value),a=!1,o=o.alias;o&&(r=o[0],S(n,C([0,1],o)));for(var s=1,c=!0;s=n.length?(c=!!(f=p(i,l)))&&"get"in f&&!("originalValue"in f.get)?f.get:i[l]:(c=k(i,l),i[l]),c&&!a&&(_[u]=i)}}return i}},{"es-errors":14,"es-errors/eval":13,"es-errors/range":15,"es-errors/ref":16,"es-errors/syntax":17,"es-errors/type":18,"es-errors/uri":19,"function-bind":21,"has-proto":25,"has-symbols":26,hasown:28}],23:[function(t,e,n){t=t("get-intrinsic")("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch(e){t=null}e.exports=t},{"get-intrinsic":22}],24:[function(e,t,n){function r(){return!!o}var o=e("es-define-property");r.hasArrayLengthDefineBug=function(){if(!o)return null;try{return 1!==o([],"length",{value:1}).length}catch(e){return!0}},t.exports=r},{"es-define-property":12}],25:[function(e,t,n){var r={__proto__:null,foo:{}},o=Object;t.exports=function(){return{__proto__:r}.foo===r.foo&&!(r instanceof o)}},{}],26:[function(e,t,n){var r="undefined"!=typeof Symbol&&Symbol,o=e("./shams");t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&o()}},{"./shams":27}],27:[function(e,t,n){t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"!=typeof Symbol.iterator){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;for(t in e[t]=42,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;n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){n=Object.getOwnPropertyDescriptor(e,t);if(42!==n.value||!0!==n.enumerable)return!1}}return!0}},{}],28:[function(e,t,n){var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,e=e("function-bind");t.exports=e.call(r,o)},{"function-bind":21}],29:[function(e,t,n){n.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,c=(1<>1,u=-7,f=n?o-1:0,d=n?-1:1,o=e[t+f];for(f+=d,i=o&(1<<-u)-1,o>>=-u,u+=s;0>=-u,u+=r;0>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1,i=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(r=Math.pow(2,-a))<1&&(a--,r*=2),2<=(t+=1<=a+u?f/r:f*Math.pow(2,1-u))*r&&(a++,r/=2),l<=a+u?(s=0,a=l):1<=a+u?(s=(t*r-1)*Math.pow(2,o),a+=u):(s=t*Math.pow(2,u-1)*Math.pow(2,o),a=0));8<=o;e[n+d]=255&s,d+=h,s/=256,o-=8);for(a=a<>2,i=(3&n)<<4|(n=e.charCodeAt(l++))>>4,a=(15&n)<<2|(r=e.charCodeAt(l++))>>6,s=63&r,isNaN(n)?a=s=64:isNaN(r)&&(s=64),c=c+u.charAt(o)+u.charAt(i)+u.charAt(a)+u.charAt(s);return c},n.decode=function(e,t){var n,r,o,i,a,s,c="",l=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");l>2,r=(3&a)<<6|(s=u.indexOf(e.charAt(l++))),c+=String.fromCharCode(o<<2|i>>4),64!=a&&(c+=String.fromCharCode(n)),64!=s&&(c+=String.fromCharCode(r));return c}},{}],32:[function(e,t,n){function r(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}r.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},t.exports=r},{}],33:[function(e,t,n){n.STORE={magic:"\0\0",compress:function(e,t){return e},uncompress:function(e){return e},compressInputType:null,uncompressInputType:null},n.DEFLATE=e("./flate")},{"./flate":38}],34:[function(e,t,n){var a=e("./utils"),s=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];t.exports=function(e,t){if(void 0===e||!e.length)return 0;var n,r="string"!==a.getTypeOf(e);void 0===t&&(t=0);t^=-1;for(var o=0,i=e.length;o>>8^s[255&(t^n)];return-1^t}},{"./utils":51}],35:[function(e,t,n){var r=e("./utils");function o(e){this.data=null,this.length=0,this.index=0}o.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1)}},t.exports=o},{"./utils":51}],36:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!1,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],37:[function(e,t,n){var r=e("./utils");n.string2binary=function(e){return r.string2binary(e)},n.string2Uint8Array=function(e){return r.transformTo("uint8array",e)},n.uint8Array2String=function(e){return r.transformTo("string",e)},n.string2Blob=function(e){e=r.transformTo("arraybuffer",e);return r.arrayBuffer2Blob(e)},n.arrayBuffer2Blob=function(e){return r.arrayBuffer2Blob(e)},n.transformTo=function(e,t){return r.transformTo(e,t)},n.getTypeOf=function(e){return r.getTypeOf(e)},n.checkSupport=function(e){return r.checkSupport(e)},n.MAX_VALUE_16BITS=r.MAX_VALUE_16BITS,n.MAX_VALUE_32BITS=r.MAX_VALUE_32BITS,n.pretty=function(e){return r.pretty(e)},n.findCompression=function(e){return r.findCompression(e)},n.isRegExp=function(e){return r.isRegExp(e)}},{"./utils":51}],38:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,o=e("pako");n.uncompressInputType=r?"uint8array":"array",n.compressInputType=r?"uint8array":"array",n.magic="\b\0",n.compress=function(e,t){return o.deflateRaw(e,{level:t.level||-1})},n.uncompress=function(e){return o.inflateRaw(e)}},{pako:59}],39:[function(e,t,n){var r=e("./base64");function o(e,t){if(!(this instanceof o))return new o(e,t);this.files={},this.comment=null,this.root="",e&&this.load(e,t),this.clone=function(){var e,t=new o;for(e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(o.prototype=e("./object")).load=e("./load"),o.support=e("./support"),o.defaults=e("./defaults"),o.utils=e("./deprecatedPublicUtils"),o.base64={encode:function(e){return r.encode(e)},decode:function(e){return r.decode(e)}},o.compressions=e("./compressions"),t.exports=o},{"./base64":31,"./compressions":33,"./defaults":36,"./deprecatedPublicUtils":37,"./load":40,"./object":43,"./support":47}],40:[function(e,t,n){var i=e("./base64"),a=e("./zipEntries");t.exports=function(e,t){var n,r,o;for((t=t||{}).base64&&(e=i.decode(e)),n=(e=new a(e,t)).files,r=0;r>>=8;return n}function s(e){return!0===(e=e||{}).base64&&null==e.binary&&(e.binary=!0),(e=S(e,f)).date=e.date||new Date,null!==e.compression&&(e.compression=e.compression.toUpperCase()),e}function c(e){var t=(e="/"==e.slice(-1)?e.substring(0,e.length-1):e).lastIndexOf("/");return 0>10&1023,o[i++]=56320|1023&t)}return o.length!==i&&(o.subarray?o=o.subarray(0,i):o.length=i),s.applyFromCharCode(o)}n.utf8encode=function(e){if(l.nodebuffer)return u(e,"utf-8");for(var t,n,r,o,i=e,a=i.length,s=0,c=0;c>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.utf8decode=function(e){if(l.nodebuffer)return s.transformTo("nodebuffer",e).toString("utf-8");for(var t=[],n=0,r=(e=s.transformTo(l.uint8array?"uint8array":"array",e)).length;n{for(var n=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=n&&128==(192&e[n]);)n--;return!(n<0)&&0!==n&&n+c[e[n]]>t?n:t})(e,Math.min(n+65536,r));l.uint8array?t.push(i(e.subarray(n,o))):t.push(i(e.slice(n,o))),n=o}return t.join("")}},{"./nodeBuffer":41,"./support":47,"./utils":51}],51:[function(e,t,l){var n=e("./support"),r=e("./compressions"),u=e("./nodeBuffer");function o(e){return e}function i(e,t){for(var n=0;n>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileName.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){var t;this.extraFields[1]&&(t=new r(this.extraFields[1].value),this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS)&&(this.diskNumberStart=t.readInt(4))},readExtraFields:function(e){var t,n,r,o=e.index;for(this.extraFields=this.extraFields||{};e.index{if("undefined"!=typeof window)for(var e in window)try{if(!o["$"+e]&&d.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{r(window[e])}catch(e){return!0}}catch(e){return!0}return!1})(),m=function(e){if("undefined"==typeof window||!i)return r(e);try{return r(e)}catch(e){return!1}},a=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===h.call(e),r=p(e),o=t&&"[object String]"===h.call(e),i=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var a=b&&n;if(o&&0{if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r{if(Object.assign&&Object.preventExtensions){var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}}return!1})()?r:Object.assign}},{"./implementation":57}],59:[function(e,t,n){var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":60,"./lib/inflate":61,"./lib/utils/common":62,"./lib/zlib/constants":65}],60:[function(e,t,n){var a=e("./zlib/deflate"),s=e("./utils/common"),c=e("./utils/strings"),r=e("./zlib/messages"),o=e("./zlib/zstream"),l=Object.prototype.toString;function i(e){if(!(this instanceof i))return new i(e);this.options=s.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});e=this.options;if(e.raw&&0>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return u(e,e.length)},n.binstring2buf=function(e){for(var t=new c.Buf8(e.length),n=0,r=t.length;n>10&1023,i[a++]=56320|1023&n)}return u(i,a)},n.utf8border=function(e,t){for(var n=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=n&&128==(192&e[n]);)n--;return!(n<0)&&0!==n&&n+l[e[n]]>t?n:t}},{"./common":62}],64:[function(e,t,n){t.exports=function(e,t,n,r){for(var o=65535&e|0,i=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3{for(var e=[],t=0;t<256;t++){for(var n=t,r=0;r<8;r++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e})();t.exports=function(e,t,n,r){var o=s,i=r+n;e^=-1;for(var a=r;a>>8^o[255&(e^t[a])];return-1^e}},{}],67:[function(e,z,t){var s,f=e("../utils/common"),c=e("./trees"),d=e("./adler32"),h=e("./crc32"),L=e("./messages"),l=0,u=4,p=0,g=-2,D=-1,N=4,M=2,b=8,U=9,n=286,$=30,H=19,Y=2*n+1,V=15,v=3,m=258,y=m+v+1,_=42,w=113,x=1,k=2,C=3,S=4;function A(e,t){return e.msg=L[t],t}function E(e){return(e<<1)-(4>>8&255,e.pending_buf[e.pending++]=255&t}function i(e,t){var n,r,o=e.max_chain_length,i=e.strstart,a=e.prev_length,s=e.nice_match,c=e.w_size-y>=2),e.lookaheadc&&0!=--o);return a<=e.lookahead?a:e.lookahead}function B(e){var t,n,r,o,i,a,s,c,l,u=e.w_size;do{if(c=e.window_size-e.lookahead-e.strstart,u+(u-y)<=e.strstart){for(f.arraySet(e.window,e.window,u,u,0),e.match_start-=u,e.strstart-=u,e.block_start-=u,t=n=e.hash_size;r=e.head[--t],e.head[t]=u<=r?r-u:0,--n;);for(t=n=u;r=e.prev[--t],e.prev[t]=u<=r?r-u:0,--n;);c+=u}if(0===e.strm.avail_in)break;if(a=e.window,s=e.strstart+e.lookahead,c=c,l=void 0,l=(i=e.strm).avail_in,n=0===(l=c=v){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(B(e),0===e.lookahead&&t===l)return x;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,j(e,!1),0===e.strm.avail_out))return x;if(e.w_size-y<=e.strstart-e.block_start&&(j(e,!1),0===e.strm.avail_out))return x}return e.insert=0,t===u?(j(e,!0),0===e.strm.avail_out?C:S):(e.block_start>8&255),R(r,r.gzhead.time>>16&255),R(r,r.gzhead.time>>24&255),R(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),R(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(R(r,255&r.gzhead.extra.length),R(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=h(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(R(r,0),R(r,0),R(r,0),R(r,0),R(r,0),R(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),R(r,3),r.status=w)):(a=b+(r.w_bits-8<<4)<<8,a|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=w,F(r,a),0!==r.strstart&&(F(r,e.adler>>>16),F(r,65535&e.adler)),e.adler=1)),69===r.status)if(r.gzhead.extra){for(o=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>o&&(e.adler=h(e.adler,r.pending_buf,r.pending-o,o)),I(e),o=r.pending,r.pending!==r.pending_buf_size));)R(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>o&&(e.adler=h(e.adler,r.pending_buf,r.pending-o,o)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=h(e.adler,r.pending_buf,r.pending-o,o)),I(e),o=r.pending,r.pending===r.pending_buf_size)){i=1;break}}while(i=r.gzindexo&&(e.adler=h(e.adler,r.pending_buf,r.pending-o,o)),0===i&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=h(e.adler,r.pending_buf,r.pending-o,o)),I(e),o=r.pending,r.pending===r.pending_buf_size)){i=1;break}}while(i=r.gzindexo&&(e.adler=h(e.adler,r.pending_buf,r.pending-o,o)),0===i&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&I(e),r.pending+2<=r.pending_buf_size&&(R(r,255&e.adler),R(r,e.adler>>8&255),e.adler=0,r.status=w)):r.status=w),0!==r.pending){if(I(e),0===e.avail_out)return r.last_flush=-1,p}else if(0===e.avail_in&&E(t)<=E(n)&&t!==u)return A(e,-5);if(666===r.status&&0!==e.avail_in)return A(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==l&&666!==r.status){var a=2===r.strategy?((e,t)=>{for(var n;;){if(0===e.lookahead&&(B(e),0===e.lookahead)){if(t===l)return x;break}if(e.match_length=0,n=c._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(j(e,!1),0===e.strm.avail_out))return x}return e.insert=0,t===u?(j(e,!0),0===e.strm.avail_out?C:S):e.last_lit&&(j(e,!1),0===e.strm.avail_out)?x:k})(r,t):3===r.strategy?((e,t)=>{for(var n,r,o,i,a=e.window;;){if(e.lookahead<=m){if(B(e),e.lookahead<=m&&t===l)return x;if(0===e.lookahead)break}if(e.match_length=0,v<=e.lookahead&&0>8&255),R(r,e.adler>>16&255),R(r,e.adler>>24&255),R(r,255&e.total_in),R(r,e.total_in>>8&255),R(r,e.total_in>>16&255),R(r,e.total_in>>24&255)):(F(r,e.adler>>>16),F(r,65535&e.adler)),I(e),0=v;){for(r=n.strstart,o=n.lookahead-(v-1);n.ins_h=(n.ins_h<>>=r=n>>>24,x-=r,0===(r=n>>>16&255))h[d++]=65535&n;else{if(!(16&r)){if(0==(64&r)){n=k[(65535&n)+(w&(1<>>=r,x-=r),x<15&&(w+=u[l++]<>>=r=n>>>24,x-=r,!(16&(r=n>>>16&255))){if(0==(64&r)){n=C[(65535&n)+(w&(1<>>=r,x-=r,(r=d-p)>3)<<3))-1,e.next_in=l-=o,e.next_out=d,e.avail_in=l>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function i(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new R.Buf16(320),this.work=new R.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function a(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=M,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new R.Buf32(r),t.distcode=t.distdyn=new R.Buf32(o),t.sane=1,t.back=-1,D):N}function s(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,a(e)):N}function c(e,t){var n,r;return!e||!e.state||(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15>>8&255,n.check=B(n.check,E,2,0),u=l=0,n.mode=2;else if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&l)<<8)+(l>>8))%31)e.msg="incorrect header check",n.mode=30;else if(8!=(15&l))e.msg="unknown compression method",n.mode=30;else{if(u-=4,x=8+(15&(l>>>=4)),0===n.wbits)n.wbits=x;else if(x>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&(E[0]=255&l,E[1]=l>>>8&255,n.check=B(n.check,E,2,0)),u=l=0,n.mode=3;case 3:for(;u<32;){if(0===s)break e;s--,l+=r[i++]<>>8&255,E[2]=l>>>16&255,E[3]=l>>>24&255,n.check=B(n.check,E,4,0)),u=l=0,n.mode=4;case 4:for(;u<16;){if(0===s)break e;s--,l+=r[i++]<>8),512&n.flags&&(E[0]=255&l,E[1]=l>>>8&255,n.check=B(n.check,E,2,0)),u=l=0,n.mode=5;case 5:if(1024&n.flags){for(;u<16;){if(0===s)break e;s--,l+=r[i++]<>>8&255,n.check=B(n.check,E,2,0)),u=l=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((h=s<(h=n.length)?s:h)&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),R.arraySet(n.head.extra,r,i,h,x)),512&n.flags&&(n.check=B(n.check,r,h,i)),s-=h,i+=h,n.length-=h),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break e;for(h=0;x=r[i+h++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x)),x&&h>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;u<32;){if(0===s)break e;s--,l+=r[i++]<>>=7&u,u-=7&u,n.mode=27;else{for(;u<3;){if(0===s)break e;s--,l+=r[i++]<>>=1)){case 0:n.mode=14;break;case 1:I=j=void 0;var I,j=n;if(Y){for($=new R.Buf32(512),H=new R.Buf32(32),I=0;I<144;)j.lens[I++]=8;for(;I<256;)j.lens[I++]=9;for(;I<280;)j.lens[I++]=7;for(;I<288;)j.lens[I++]=8;for(P(z,j.lens,0,288,$,0,j.work,{bits:9}),I=0;I<32;)j.lens[I++]=5;P(L,j.lens,0,32,H,0,j.work,{bits:5}),Y=!1}if(j.lencode=$,j.lenbits=9,j.distcode=H,j.distbits=5,n.mode=20,6!==t)break;l>>>=2,u-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}l>>>=2,u-=2}break;case 14:for(l>>>=7&u,u-=7&u;u<32;){if(0===s)break e;s--,l+=r[i++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&l,u=l=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(h=n.length){if(0===(h=c<(h=s>>=5,u-=5,n.ndist=1+(31&l),l>>>=5,u-=5,n.ncode=4+(15&l),l>>>=4,u-=4,286>>=3,u-=3}for(;n.have<19;)n.lens[O[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,C={bits:n.lenbits},k=P(0,n.lens,0,19,n.lencode,0,n.work,C),n.lenbits=C.bits,k){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,m=65535&A,!((b=A>>>24)<=u);){if(0===s)break e;s--,l+=r[i++]<>>=b,u-=b,n.lens[n.have++]=m;else{if(16===m){for(S=b+2;u>>=b,u-=b,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}x=n.lens[n.have-1],h=3+(3&l),l>>>=2,u-=2}else if(17===m){for(S=b+3;u>>=b)),l>>>=3,u=u-b-3}else{for(S=b+7;u>>=b)),l>>>=7,u=u-b-7}if(n.have+h>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;h--;)n.lens[n.have++]=x}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,C={bits:n.lenbits},k=P(z,n.lens,0,n.nlen,n.lencode,0,n.work,C),n.lenbits=C.bits,k){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,C={bits:n.distbits},k=P(L,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,C),n.distbits=C.bits,k){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=s&&258<=c){e.next_out=a,e.avail_out=c,e.next_in=i,e.avail_in=s,n.hold=l,n.bits=u,T(e,d),a=e.next_out,o=e.output,c=e.avail_out,i=e.next_in,r=e.input,s=e.avail_in,l=n.hold,u=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;v=(A=n.lencode[l&(1<>>16&255,m=65535&A,!((b=A>>>24)<=u);){if(0===s)break e;s--,l+=r[i++]<>y)])>>>16&255,m=65535&A,!(y+(b=A>>>24)<=u);){if(0===s)break e;s--,l+=r[i++]<>>=y,u-=y,n.back+=y}if(l>>>=b,u-=b,n.back+=b,n.length=m,0===v){n.mode=26;break}if(32&v){n.back=-1,n.mode=12;break}if(64&v){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&v,n.mode=22;case 22:if(n.extra){for(S=n.extra;u>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;v=(A=n.distcode[l&(1<>>16&255,m=65535&A,!((b=A>>>24)<=u);){if(0===s)break e;s--,l+=r[i++]<>y)])>>>16&255,m=65535&A,!(y+(b=A>>>24)<=u);){if(0===s)break e;s--,l+=r[i++]<>>=y,u-=y,n.back+=y}if(l>>>=b,u-=b,n.back+=b,64&v){e.msg="invalid distance code",n.mode=30;break}n.offset=m,n.extra=15&v,n.mode=24;case 24:if(n.extra){for(S=n.extra;u>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===c)break e;if(n.offset>(h=d-c)){if((h=n.offset-h)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}p=h>n.wnext?(h-=n.wnext,n.wsize-h):n.wnext-h,h>n.length&&(h=n.length),g=n.window}else g=o,p=a-n.offset,h=n.length;for(c-=h=ch?(g=F[B+a[y]],O[I+a[y]]):(g=96,0),c=1<<(p=m-C),_=l=1<>C)+(l-=c)]=p<<24|g<<16|b|0,0!==l;);for(c=1<>=1;if(E=0!==c?(E&c-1)+c:0,y++,0==--j[m]){if(m===w)break;m=t[n+a[y]]}if(x>>7)]}function o(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function P(e,t,n){e.bi_valid>r-n?(e.bi_buf|=t<>r-e.bi_valid,e.bi_valid+=n-r):(e.bi_buf|=t<>>=1,n<<=1,0<--t;);return n>>>1}function $(e,t,n){for(var r,o=new Array(A+1),i=0,a=1;a<=A;a++)o[a]=i=i+n[a-1]<<1;for(r=0;r<=t;r++){var s=e[2*r+1];0!==s&&(e[2*r]=U(o[s]++,s))}}function H(e){for(var t=0;t>1;1<=n;n--)L(e,i,n);for(o=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],L(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*o]=i[2*n]+i[2*r],e.depth[o]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=o,e.heap[1]=o++,L(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1];for(var u,f,d,h,p,g=e,b=t.dyn_tree,v=t.max_code,m=t.stat_desc.static_tree,y=t.stat_desc.has_stree,_=t.stat_desc.extra_bits,w=t.stat_desc.extra_base,x=t.stat_desc.max_length,k=0,C=0;C<=A;C++)g.bl_count[C]=0;for(b[2*g.heap[g.heap_max]+1]=0,u=g.heap_max+1;u>=7;a{for(var t=4093624447,n=0;n<=31;n++,t>>>=1)if(1&t&&0!==e.dyn_ltree[2*n])return u;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return f;for(n=32;n{var t;for(Z(e,e.dyn_ltree,e.l_desc.max_code),Z(e,e.dyn_dtree,e.d_desc.max_code),D(e,e.bl_desc),t=b-1;3<=t&&0===e.bl_tree[2*k[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),(i=e.static_len+3+7>>>3)<=(o=e.opt_len+3+7>>>3)&&(o=i)):o=i=n+5,n+4<=o&&-1!==t)X(e,t,n,r);else if(4===e.strategy||i===o)P(e,2+(r?1:0),3),q(e,C,E);else{P(e,4+(r?1:0),3);var s,c=e,t=e.l_desc.max_code+1,n=e.d_desc.max_code+1,l=a+1;for(P(c,t-257,5),P(c,n-1,5),P(c,l-4,4),s=0;s>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(I[n]+h+1)]++,e.dyn_dtree[2*T(t)]++),e.last_lit===e.lit_bufsize-1},e._tr_align=function(e){P(e,2,3),z(e,v,C),16===(e=e).bi_valid?(o(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":62}],74:[function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],75:[function(e,t,n){var r,o,t=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return(r=setTimeout)(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}var c,l=[],u=!1,f=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):f=-1,l.length)&&h()}function h(){if(!u){for(var e=s(d),t=(u=!0,l.length);t;){for(c=l,l=[];++fe.xmax&&(e.xmax=t.xmax),t.xmin{var t=new Date,n=e.charAt(e.length-1),r=parseInt(e,10);switch(n){case"Y":t.setFullYear(t.getFullYear()+r);break;case"M":t.setMonth(t.getMonth()+r);break;case"D":t.setDate(t.getDate()+r);break;case"h":t.setHours(t.getHours()+r);break;case"m":t.setMinutes(t.getMinutes()+r);break;case"s":t.setSeconds(t.getSeconds()+r);break;default:t=new Date(e)}return t})(n+="number"==typeof n?"D":"")),e[t]=n.toUTCString()),"secure"===t?e[t]&&(r+=";"+t):r+=";"+t+"="+e[t]);return e.hasOwnProperty("path")||(r+=";path=/"),r}return r.enabled=function(){var e,t="__test_key";return document.cookie=t+"=1",(e=!!document.cookie)&&r.remove(t),e},r.get=function(e,t){if("string"!=typeof e||!e)return null;e="(?:^|; )"+e.replace(/[.*+?^$|[\](){}\\-]/g,"\\$&")+"(?:=([^;]*?))?(?:;|$)";e=new RegExp(e).exec(document.cookie);return null!==e?t?e[1]:decodeURIComponent(e[1]):null},r.getRaw=function(e){return r.get(e,!0)},r.set=function(e,t,n,r){!0!==n&&(r=n,n=!1),r=o(r||{});e=e+"="+(n?t:encodeURIComponent(t))+r;document.cookie=e},r.setRaw=function(e,t,n){r.set(e,t,!0,n)},r.remove=function(e){r.set(e,"a",{expires:new Date})},r},"function"==typeof define&&define.amd?define(o):"object"==typeof n?t.exports=o():r.Cookie=o()},{}],88:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;function n(){}n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],89:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],90:[function(A,e,E){!function(C,S){!function(){var e,s=/%[sdj%]/g,r=(E.format=function(e){if(!v(e)){for(var t=[],n=0;n{var n;return m(t)?e.stylize("undefined","undefined"):v(t)?(n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",e.stylize(n,"string")):b(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0})(t,n);if(e)return e;var o,e=Object.keys(n),i=(o={},e.forEach(function(e,t){o[e]=!0}),o);if(t.showHidden&&(e=Object.getOwnPropertyNames(n)),w(n)&&(0<=e.indexOf("message")||0<=e.indexOf("description")))return f(n);if(0===e.length){if(x(n))return a=n.name?": "+n.name:"",t.stylize("[Function"+a+"]","special");if(y(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(_(n))return t.stylize(Date.prototype.toString.call(n),"date");if(w(n))return f(n)}var a="",s=!1,c=["{","}"];if(h(n)&&(s=!0,c=["[","]"]),x(n)&&(a=" [Function"+(n.name?": "+n.name:"")+"]"),y(n)&&(a=" "+RegExp.prototype.toString.call(n)),_(n)&&(a=" "+Date.prototype.toUTCString.call(n)),w(n)&&(a=" "+f(n)),0===e.length&&(!s||0==n.length))return c[0]+a+c[1];if(r<0)return y(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n),l=s?((t,n,r,o,e)=>{for(var i=[],a=0,s=n.length;a{n.resolve(e).then(function(e){i[t]=e,++a!==r||o||(o=!0,l.resolve(s,i))},function(e){o||(o=!0,l.reject(s,e))})})(e[t],t);return s},s.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);var o=-1,i=new this(c);for(;++o{t.resolve(e).then(function(e){r||(r=!0,l.resolve(i,e))},function(e){r||(r=!0,l.reject(i,e))})})(e[o]);return i}},{1:1}],3:[function(t,e,n){!function(e){"function"!=typeof e.Promise&&(e.Promise=t(2))}.call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,z,L){var D="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};var s=(()=>{try{return"undefined"!=typeof indexedDB?indexedDB:"undefined"!=typeof webkitIndexedDB?webkitIndexedDB:"undefined"!=typeof mozIndexedDB?mozIndexedDB:"undefined"!=typeof OIndexedDB?OIndexedDB:"undefined"!=typeof msIndexedDB?msIndexedDB:void 0}catch(e){}})();function i(t,n){t=t||[],n=n||{};try{return new Blob(t,n)}catch(e){if("TypeError"!==e.name)throw e;for(var r=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),o=0;oe.db.version,o&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),(r||n)&&(n&&(o=e.db.version+1,e.version{for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),o=0;o{g(n);for(var r=f[n.name],o=r.forages,e=0;e{try{var e,t;return s&&s.open?(e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code"),(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange):!1}catch(e){return!1}})(),iterate:function(a,e){var s=this,t=new h(function(o,i){s.ready().then(function(){w(s._dbInfo,n,function(e,t){if(e)return i(e);try{var n=t.objectStore(s._dbInfo.storeName).openCursor(),r=1;n.onsuccess=function(){var e,t=n.result;t?($(e=t.value)&&(e=U(e)),void 0!==(e=a(e,t.key,r++))?o(e):t.continue()):o()},n.onerror=function(){i(n.error)}}catch(e){i(e)}})}).catch(i)});return p(t,e),t},getItem:function(i,e){var a=this,t=(i=u(i),new h(function(r,o){a.ready().then(function(){w(a._dbInfo,n,function(e,t){if(e)return o(e);try{var n=t.objectStore(a._dbInfo.storeName).get(i);n.onsuccess=function(){var e=n.result;$(e=void 0===e?null:e)&&(e=U(e)),r(e)},n.onerror=function(){o(n.error)}}catch(e){o(e)}})}).catch(o)}));return p(t,e),t},setItem:function(s,t,e){var c=this,n=(s=u(s),new h(function(i,a){var e;c.ready().then(function(){return e=c._dbInfo,"[object Blob]"===N.call(t)?M(e.db).then(function(e){return e?t:(r=t,new h(function(t,e){var n=new FileReader;n.onerror=e,n.onloadend=function(e){e=btoa(e.target.result||"");t({__local_forage_encoded_blob:!0,data:e,type:r.type})},n.readAsBinaryString(r)}));var r}):t}).then(function(o){w(c._dbInfo,d,function(e,t){if(e)return a(e);try{var n=t.objectStore(c._dbInfo.storeName),r=(null===o&&(o=void 0),n.put(o,s));t.oncomplete=function(){i(o=void 0===o?null:o)},t.onabort=t.onerror=function(){var e=r.error||r.transaction.error;a(e)}}catch(e){a(e)}})}).catch(a)}));return p(n,e),n},removeItem:function(i,e){var a=this,t=(i=u(i),new h(function(r,o){a.ready().then(function(){w(a._dbInfo,d,function(e,t){if(e)return o(e);try{var n=t.objectStore(a._dbInfo.storeName).delete(i);t.oncomplete=function(){r()},t.onerror=function(){o(n.error)},t.onabort=function(){var e=n.error||n.transaction.error;o(e)}}catch(e){o(e)}})}).catch(o)}));return p(t,e),t},clear:function(e){var i=this,t=new h(function(r,o){i.ready().then(function(){w(i._dbInfo,d,function(e,t){if(e)return o(e);try{var n=t.objectStore(i._dbInfo.storeName).clear();t.oncomplete=function(){r()},t.onabort=t.onerror=function(){var e=n.error||n.transaction.error;o(e)}}catch(e){o(e)}})}).catch(o)});return p(t,e),t},length:function(e){var i=this,t=new h(function(r,o){i.ready().then(function(){w(i._dbInfo,n,function(e,t){if(e)return o(e);try{var n=t.objectStore(i._dbInfo.storeName).count();n.onsuccess=function(){r(n.result)},n.onerror=function(){o(n.error)}}catch(e){o(e)}})}).catch(o)});return p(t,e),t},key:function(s,e){var c=this,t=new h(function(i,a){s<0?i(null):c.ready().then(function(){w(c._dbInfo,n,function(e,t){if(e)return a(e);try{var n=t.objectStore(c._dbInfo.storeName),r=!1,o=n.openKeyCursor();o.onsuccess=function(){var e=o.result;e?0===s||r?i(e.key):(r=!0,e.advance(s)):i(null)},o.onerror=function(){a(o.error)}}catch(e){a(e)}})}).catch(a)});return p(t,e),t},keys:function(e){var a=this,t=new h(function(o,i){a.ready().then(function(){w(a._dbInfo,n,function(e,t){if(e)return i(e);try{var n=t.objectStore(a._dbInfo.storeName).openKeyCursor(),r=[];n.onsuccess=function(){var e=n.result;e?(r.push(e.key),e.continue()):o(r)},n.onerror=function(){i(n.error)}}catch(e){i(e)}})}).catch(i)});return p(t,e),t},dropInstance:function(a,e){e=l.apply(this,arguments);var t=this.config();return(a="function"!=typeof a&&a||{}).name||(a.name=a.name||t.name,a.storeName=a.storeName||t.storeName),p(t=a.name?(t=a.name===t.name&&this._dbInfo.db?h.resolve(this._dbInfo.db):m(a).then(function(e){var t=f[a.name],n=t.forages;t.db=e;for(var r=0;r>4,c[s++]=(15&n)<<4|r>>2,c[s++]=(3&r)<<6|63&o;return i}function E(e){for(var t=new Uint8Array(e),n="",r=0;r>2])+x[(3&t[r])<<4|t[r+1]>>4])+x[(15&t[r+1])<<2|t[r+2]>>6])+x[63&t[r+2]];return t.length%3==2?n=n.substring(0,n.length-1)+"=":t.length%3==1&&(n=n.substring(0,n.length-2)+"=="),n}var O={serialize:function(t,n){var e="";if(t&&(e=Z.call(t)),t&&("[object ArrayBuffer]"===e||t.buffer&&"[object ArrayBuffer]"===Z.call(t.buffer))){var r,o=k;t instanceof ArrayBuffer?(r=t,o+=S):(r=t.buffer,"[object Int8Array]"===e?o+="si08":"[object Uint8Array]"===e?o+="ui08":"[object Uint8ClampedArray]"===e?o+="uic8":"[object Int16Array]"===e?o+="si16":"[object Uint16Array]"===e?o+="ur16":"[object Int32Array]"===e?o+="si32":"[object Uint32Array]"===e?o+="ui32":"[object Float32Array]"===e?o+="fl32":"[object Float64Array]"===e?o+="fl64":n(new Error("Failed to get type for BinaryArray"))),n(o+E(r))}else if("[object Blob]"===e){o=new FileReader;o.onload=function(){var e="~~local_forage_type~"+t.type+"~"+E(this.result);n(k+A+e)},o.readAsArrayBuffer(t)}else try{n(JSON.stringify(t))}catch(e){console.error("Couldn't convert value into a JSON string: ",t),n(null,e)}},deserialize:function(e){if(e.substring(0,C)!==k)return JSON.parse(e);var t,n=e.substring(q),r=e.substring(C,q),o=(r===A&&V.test(n)&&(t=(e=n.match(V))[1],n=n.substring(e[0].length)),G(n));switch(r){case S:return o;case A:return i([o],{type:t});case"si08":return new Int8Array(o);case"ui08":return new Uint8Array(o);case"uic8":return new Uint8ClampedArray(o);case"si16":return new Int16Array(o);case"ur16":return new Uint16Array(o);case"si32":return new Int32Array(o);case"ui32":return new Uint32Array(o);case"fl32":return new Float32Array(o);case"fl64":return new Float64Array(o);default:throw new Error("Unkown type: "+r)}},stringToBuffer:G,bufferToString:E};function W(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function I(e,r,o,i,a,s){e.executeSql(o,i,a,function(e,n){n.code===n.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[r.storeName],function(e,t){t.rows.length?s(e,n):W(e,r,function(){e.executeSql(o,i,a,s)},s)},s):s(e,n)},s)}function X(a,e,s,c){var l=this,t=(a=u(a),new h(function(o,i){l.ready().then(function(){var n=e=void 0===e?null:e,r=l._dbInfo;r.serializer.serialize(e,function(t,e){e?i(e):r.db.transaction(function(e){I(e,r,"INSERT OR REPLACE INTO "+r.storeName+" (key, value) VALUES (?, ?)",[a,t],function(){o(n)},function(e,t){i(t)})},function(e){e.code===e.QUOTA_ERR&&(0 '__WebKitDatabaseInfoTable__'",[],function(e,t){for(var n=[],r=0;rnew h(function(e,n){r.executeSql("DROP TABLE IF EXISTS "+t,[],function(){e()},function(e,t){n(t)})}))(a.storeNames[t]));h.all(e).then(function(){o()}).catch(function(e){i(e)})},function(e){i(e)})})}):h.reject("Invalid arguments");return p(t,e),t}};function K(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function J(){return!(()=>{var e="_localforage_support_test";try{localStorage.setItem(e,!0),localStorage.removeItem(e)}catch(e){return 1}})()||0{try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}})(),iterate:function(c,e){var l=this,t=l.ready().then(function(){for(var e=l._dbInfo,t=e.keyPrefix,n=t.length,r=localStorage.length,o=1,i=0;ifunction(){var e=new Error("Method "+t+" is not implemented by the current driver"),e=h.reject(e);return p(e,arguments[arguments.length-1]),e})(u))}var f=function(e){j[r]&&console.info("Redefining LocalForage driver: "+r),j[r]=d,ne[r]=e,t()};"_support"in d?d._support&&"function"==typeof d._support?d._support().then(f,n):f(!!d._support):f(!0)}else n(e)}catch(e){n(e)}});return c(n,e,t),n},P.prototype.driver=function(){return this._driver||null},P.prototype.getDriver=function(e,t,n){e=j[e]?h.resolve(j[e]):h.reject(new Error("Driver not found."));return c(e,t,n),e},P.prototype.getSerializer=function(e){var t=h.resolve(O);return c(t,e),t},P.prototype.ready=function(e){var t=this,n=t._driverSet.then(function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready});return c(n,e,e),n},P.prototype.setDriver=function(e,t,n){var i=this,r=(te(e)||(e=[e]),this._getSupportedDrivers(e));function a(){i._config.driver=i.driver()}function s(e){return i._extend(e),a(),i._ready=i._initStorage(i._config),i._ready}function o(o){return function(){var r=0;return function e(){for(;r{t[n]=function(){var e=arguments;return t.ready().then(function(){return t[n].apply(t,e)})}})(this,B[e])},P.prototype.createInstance=function(e){return new P(e)};o=new P;z.exports=o},{3:3}]},{},[4])(4)})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],"lodash.clonedeep":[function(e,ze,Le){!function(Pe){!function(){var r="__lodash_hash_undefined__",w=9007199254740991,x="[object Arguments]",L="[object Boolean]",D="[object Date]",k="[object Function]",N="[object GeneratorFunction]",C="[object Map]",M="[object Number]",S="[object Object]",U="[object Promise]",$="[object RegExp]",A="[object Set]",H="[object String]",Y="[object Symbol]",n="[object WeakMap]",V="[object ArrayBuffer]",E="[object DataView]",q="[object Float32Array]",Z="[object Float64Array]",G="[object Int8Array]",W="[object Int16Array]",X="[object Int32Array]",K="[object Uint8Array]",J="[object Uint8ClampedArray]",Q="[object Uint16Array]",ee="[object Uint32Array]",te=/\w*$/,ne=/^\[object .+?Constructor\]$/,re=/^(?:0|[1-9]\d*)$/,O={},e=(O[x]=O["[object Array]"]=O[V]=O[E]=O[L]=O[D]=O[q]=O[Z]=O[G]=O[W]=O[X]=O[C]=O[M]=O[S]=O[$]=O[A]=O[H]=O[Y]=O[K]=O[J]=O[Q]=O[ee]=!0,O["[object Error]"]=O[k]=O[n]=!1,"object"==typeof Pe&&Pe&&Pe.Object===Object&&Pe),t="object"==typeof self&&self&&self.Object===Object&&self,e=e||t||Function("return this")(),t="object"==typeof Le&&Le&&!Le.nodeType&&Le,o=t&&"object"==typeof ze&&ze&&!ze.nodeType&&ze,o=o&&o.exports===t;function oe(e,t){return e.set(t[0],t[1]),e}function ie(e,t){return e.add(t),e}function ae(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o(e=>e&&"object"==typeof e)(e)&&Fe(e))(n=e)&&I.call(n,"callee")&&(!be.call(n,"callee")||l.call(n)==x)?((e,t)=>{for(var n=-1,r=Array(e);++n{var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&I.call(e,"index")&&(n.index=e.index,n.input=e.input),n})(n),!r){var c=n,l=s,u=-1,f=c.length;for(l=l||Array(f);++uP(e)?ge(e):{})(pe(d)),!r)return g=h=n,g=(v=s)&&Oe(g,z(g),v),Oe(h,Ie(h),g)}else{if(!O[p])return t?n:{};s=((e,t,n,r)=>{var o=e.constructor;switch(t){case V:return F(e);case L:case D:return new o(+e);case E:return((e,t)=>(t=t?F(e.buffer):e.buffer,new e.constructor(t,e.byteOffset,e.byteLength)))(e,r);case q:case Z:case G:case W:case X:case K:case J:case Q:case ee:return((e,t)=>(t=t?F(e.buffer):e.buffer,new e.constructor(t,e.byteOffset,e.length)))(e,r);case C:return((e,t,n)=>ae(t?n(ce(e),!0):ce(e),oe,new e.constructor))(e,r,n);case M:case H:return new o(e);case $:return(e=>{var t=new e.constructor(e.source,te.exec(e));return t.lastIndex=e.lastIndex,t})(e);case A:return((e,t,n)=>ae(t?n(le(e),!0):le(e),ie,new e.constructor))(e,r,n);case Y:return(e=>Ce?Object(Ce.call(e)):{})(e)}})(n,p,R,r)}}var b,v=(a=a||new j).get(n);if(v)return v;a.set(n,s);for(var m=(b=e?b:o?((e,t,n)=>{if(t=t(e),T(e))return t;for(var r=t,o=n(e),i=-1,a=o.length,s=r.length;++i{if(!je(e))return me(e);var t,n=[];for(t in Object(e))I.call(e,t)&&"constructor"!=t&&n.push(t);return n})(e)}ze.exports=function(e){return R(e,!0,!0)}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],"shp-write":[function(e,t,n){t.exports.download=e("./src/download"),t.exports.write=e("./src/write"),t.exports.zip=e("./src/zip")},{"./src/download":77,"./src/write":85,"./src/zip":86}],"util-deprecate":[function(e,n,t){!function(t){!function(){function r(e){try{if(!t.localStorage)return}catch(e){return}e=t.localStorage[e];return null!=e&&"true"===String(e).toLowerCase()}n.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],"vue-color":[function(e,n,r){!function(p){!function(){var e,t;e="undefined"!=typeof self?self:this,t=function(){return n=[function(e,t){function r(e,t){var n=e[1]||"",r=e[3];return r?(t&&"function"==typeof btoa?(e="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */",[n].concat(r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"})).concat([e])):[n]).join("\n"):n}e.exports=function(n){var a=[];return a.toString=function(){return this.map(function(e){var t=r(e,n);return e[2]?"@media "+e[2]+"{"+t+"}":t}).join("")},a.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},r=0;rn.parts.length&&(r.parts.length=n.parts.length)}else{for(var i=[],o=0;o{n.d(t,e,function(){return o[e]})})(r);var a=n(68),i=n(2)(i.a,a.a,!1,function(e){n(66)},null,null);i.options.__file="src/components/common/EditableInput.vue",t.default=i.exports},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(8),o=n(18);e.exports=n(9)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(16),o=n(42),i=n(25),a=Object.defineProperty;t.f=n(9)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)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,n){e.exports=!n(17)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(90),o=n(24);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(29)("wks"),o=n(19),i=n(4).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(51),i=n.n(o);for(r in o)"default"!==r&&(e=>{n.d(t,e,function(){return o[e]})})(r);var a=n(113),i=n(2)(i.a,a.a,!1,function(e){n(111)},null,null);i.options.__file="src/components/common/Hue.vue",t.default=i.exports},function(e,t){e.exports=!0},function(e,t){e=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=e)},function(e,t,n){var r=n(12);e.exports=function(e){if(r(e))return e;throw TypeError(e+" is not an object!")}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},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){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(54),i=n.n(o);for(r in o)"default"!==r&&(e=>{n.d(t,e,function(){return o[e]})})(r);var a=n(127),i=n(2)(i.a,a.a,!1,function(e){n(123)},null,null);i.options.__file="src/components/common/Saturation.vue",t.default=i.exports},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(55),i=n.n(o);for(r in o)"default"!==r&&(e=>{n.d(t,e,function(){return o[e]})})(r);var a=n(133),i=n(2)(i.a,a.a,!1,function(e){n(128)},null,null);i.options.__file="src/components/common/Alpha.vue",t.default=i.exports},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(56),i=n.n(o);for(r in o)"default"!==r&&(e=>{n.d(t,e,function(){return o[e]})})(r);var a=n(132),i=n(2)(i.a,a.a,!1,function(e){n(130)},null,null);i.options.__file="src/components/common/Checkboard.vue",t.default=i.exports},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0this.max))return e;this.$refs.input.value=this.max}},labelId:function(){return"input__label__"+this.label+"__"+Math.random().toString().slice(2,5)},labelSpanText:function(){return this.labelText||this.label}},methods:{update:function(e){this.handleChange(e.target.value)},handleChange:function(e){var t={};t[this.label]=e,(void 0===t.hex&&void 0===t["#"]||5{function e(e,t,n){if(this instanceof r){switch(arguments.length){case 0:return new r;case 1:return new r(e);case 2:return new r(e,t)}return new r(e,t,n)}return r.apply(this,arguments)}return e.prototype=r.prototype,e})(i):l&&"function"==typeof i?m(Function.call,i):i,l&&((d.virtual||(d.virtual={}))[r]=i,e&g.R)&&h&&!h[r]&&y(h,r,i))}var b=n(4),v=n(15),m=n(86),y=n(7),_=n(6);g.F=1,g.G=2,g.S=4,g.P=8,g.B=16,g.W=32,g.U=64,g.R=128,e.exports=g},function(e,t,n){e.exports=!n(9)&&!n(17)(function(){return 7!=Object.defineProperty(n(43)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(12),o=n(4).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){e.exports=n(7)},function(e,t,n){function r(){}var o=n(16),i=n(89),a=n(30),s=n(28)("IE_PROTO"),c=function(){var e=n(43)("iframe"),t=a.length;for(e.style.display="none",n(94).appendChild(e),e.src="javascript:",(e=e.contentWindow.document).open(),e.write("