/*! Copyright (c) 2018 Infopark AG (https://scrivito.com) */ !function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=671)}([function(t,e,n){var r,i;(function(){function n(t){function e(e,n,r,i,o,a){for(;o>=0&&o0?0:s-1;return arguments.length<3&&(i=n[a?a[u]:u],u+=t),e(n,r,i,a,u,s)}}function o(t){return function(e,n,r){n=E(n,r);for(var i=A(e),o=t>0?0:i-1;o>=0&&o0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return o=n(r,i),r[o]===i?o:-1;if(i!==i)return o=e(p.call(r,a,s),k.isNaN),o>=0?o+a:-1;for(o=t>0?a:s-1;o>=0&&o=0&&e<=S};k.each=k.forEach=function(t,e,n){e=O(e,n);var r,i;if(T(t))for(r=0,i=t.length;r=0},k.invoke=function(t,e){var n=p.call(arguments,2),r=k.isFunction(e);return k.map(t,function(t){var i=r?e:t[e];return null==i?i:i.apply(t,n)})},k.pluck=function(t,e){return k.map(t,k.property(e))},k.where=function(t,e){return k.filter(t,k.matcher(e))},k.findWhere=function(t,e){return k.find(t,k.matcher(e))},k.max=function(t,e,n){var r,i,o=-1/0,a=-1/0;if(null==e&&null!=t){t=T(t)?t:k.values(t);for(var s=0,u=t.length;so&&(o=r)}else e=E(e,n),k.each(t,function(t,n,r){((i=e(t,n,r))>a||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},k.min=function(t,e,n){var r,i,o=1/0,a=1/0;if(null==e&&null!=t){t=T(t)?t:k.values(t);for(var s=0,u=t.length;sr||void 0===n)return 1;if(ne?(a&&(clearTimeout(a),a=null),s=c,o=t.apply(r,i),a||(r=i=null)):a||!1===n.trailing||(a=setTimeout(u,l)),o}},k.debounce=function(t,e,n){var r,i,o,a,s,u=function(){var c=k.now()-a;c=0?r=setTimeout(u,e-c):(r=null,n||(s=t.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,a=k.now();var c=n&&!r;return r||(r=setTimeout(u,e)),c&&(s=t.apply(o,i),o=i=null),s}},k.wrap=function(t,e){return k.partial(e,t)},k.negate=function(t){return function(){return!t.apply(this,arguments)}},k.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},k.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},k.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},k.once=k.partial(k.before,2);var I=!{toString:null}.propertyIsEnumerable("toString"),D=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];k.keys=function(t){if(!k.isObject(t))return[];if(b)return b(t);var e=[];for(var n in t)k.has(t,n)&&e.push(n);return I&&s(t,e),e},k.allKeys=function(t){if(!k.isObject(t))return[];var e=[];for(var n in t)e.push(n);return I&&s(t,e),e},k.values=function(t){for(var e=k.keys(t),n=e.length,r=Array(n),i=0;i":">",'"':""","'":"'","`":"`"},M=k.invert(R),B=function(t){var e=function(e){return t[e]},n="(?:"+k.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}};k.escape=B(R),k.unescape=B(M),k.result=function(t,e,n){var r=null==t?void 0:t[e];return void 0===r&&(r=n),k.isFunction(r)?r.call(t):r};var F=0;k.uniqueId=function(t){var e=++F+"";return t?t+e:e},k.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var z=/(.)^/,U={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},H=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+U[t]};k.template=function(t,e,n){!e&&n&&(e=n),e=k.defaults({},e,k.templateSettings);var r=RegExp([(e.escape||z).source,(e.interpolate||z).source,(e.evaluate||z).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,function(e,n,r,a,s){return o+=t.slice(i,s).replace(H,W),i=s+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var a=new Function(e.variable||"obj","_",o)}catch(t){throw t.source=o,t}var s=function(t){return a.call(this,t,k)};return s.source="function("+(e.variable||"obj")+"){\n"+o+"}",s},k.chain=function(t){var e=k(t);return e._chain=!0,e};var K=function(t,e){return t._chain?k(e).chain():e};k.mixin=function(t){k.each(k.functions(t),function(e){var n=k[e]=t[e];k.prototype[e]=function(){var t=[this._wrapped];return h.apply(t,arguments),K(this,n.apply(k,t))}})},k.mixin(k),k.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=l[t];k.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],K(this,n)}}),k.each(["concat","join","slice"],function(t){var e=l[t];k.prototype[t]=function(){return K(this,e.apply(this._wrapped,arguments))}}),k.prototype.value=function(){return this._wrapped},k.prototype.valueOf=k.prototype.toJSON=k.prototype.value,k.prototype.toString=function(){return""+this._wrapped},r=[],void 0!==(i=function(){return k}.apply(e,r))&&(t.exports=i)}).call(this)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"AccessDeniedError",function(){return s}),n.d(e,"ArgumentError",function(){return u}),n.d(e,"ClientError",function(){return a}),n.d(e,"InternalError",function(){return c}),n.d(e,"InterpolationError",function(){return b}),n.d(e,"CurrentPageNotFoundError",function(){return m}),n.d(e,"NavigateToEmptyBinaryError",function(){return y}),n.d(e,"ResourceNotFoundError",function(){return f}),n.d(e,"RequestFailedError",function(){return l}),n.d(e,"ScrivitoError",function(){return o}),n.d(e,"TransformationSourceInvalidError",function(){return p}),n.d(e,"TransformationSourceTooLargeError",function(){return h}),n.d(e,"TranslationError",function(){return v}),n.d(e,"UnauthorizedError",function(){return d});var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=function(t){function e(e,n){var r=this.constructor;void 0===n&&(n=!0);var i=t.call(this,e)||this,o=r.prototype;if(Object.setPrototypeOf?Object.setPrototypeOf(i,o):i.__proto__=o,i._captureStackTrace=n,n)if(Error.captureStackTrace)Error.captureStackTrace(i,i.constructor);else{var a=void 0;try{throw new Error}catch(t){a=t.stack}Object.defineProperty(i,"stack",{value:a})}return i}return i(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"captureStackTrace",{get:function(){return!!this._captureStackTrace},enumerable:!0,configurable:!0}),e}(Error),a=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.httpCode=n,i.backendCode=r,i}return i(e,t),e.for=function(t,n,r){return"binary.unprocessable.image.transform.source.too_large"===r?new h(t,n,r):r&&-1!==r.indexOf("binary.unprocessable.image.transform.source.")?new p(t,n,r):new e(t,n,r)},e}(o),s=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return i(e,t),e}(a),u=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(o),c=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(o),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(o),f=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(o),d=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.details=i||{},o}return i(e,t),e}(a),h=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return i(e,t),e}(a),p=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return i(e,t),e}(a),v=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(c),y=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(c),m=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(c),b=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(v)},,function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return s(t)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function s(t){if(Array.isArray(t))return t}function u(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){return h(t)||d(t)||f()}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function d(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function h(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:[];return"/"===t?["/"].concat(l(e)):j(S(t),[t].concat(l(e)))}function S(t){var e=t.split("/");return e.pop(),1===e.length?"/":e.join("/")}function A(t){var e=["_path"];if(B.a.difference(B.a.keys(t),e).length)throw new F.ArgumentError('Currently only "_path" copy option is supported.')}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"default",function(){return Y});var T=n(155),N=n(211),P=n(48),L=n(58),I=n(116),D=n(32),q=n(54),R=n(117),M=n(0),B=n.n(M),F=n(1),z=n(71),U=n(120),H=n(23),W=n(121),K=n(4),V=n(17),Q={_id:"id",_obj_class:"objClass",_path:"path",_permalink:"permalink",_created_at:"createdAt",_created_by:"createdBy",_last_changed:"lastChanged",_last_changed_by:"lastChangedBy"},Y=function(t){function e(t){var n;return p(this,e),n=m(this,_(e).call(this)),n.objData=t,n}return O(e,null,[{key:"get",value:function(t){var e=this.getIncludingDeleted(t);if(e&&!e.isDeleted())return e}},{key:"getIncludingDeleted",value:function(t){var n=L.b(t);if(n){var r=new e(n);if(!r.isFinallyDeleted())return r}}},{key:"create",value:function(t){var e=scrivito.typeInfo.normalizeAttrs(t);E(e._objClass),e._id||(e._id=[this.generateId()]);var n={_id:e._id,_obj_class:e._objClass};return this.createWithSerializedAttributes(scrivito.typeInfo.unwrapAttributes(n),B.a.omit(t,"_objClass","_id"))}},{key:"addChildWithSerializedAttributes",value:function(t,n){var r=e.generateId();return this.createWithSerializedAttributes(B.a.extend({},n,{_id:r,_path:"".concat(t,"/").concat(r)}))}},{key:"createWithSerializedAttributes",value:function(t,n){if(!n)return this.createWithSerializedAttributes.apply(this,l(x(t)));var r=L.a(t._id);r.update(t);var i=new e(r);return i.update(n),i}},{key:"generateId",value:function(){return Object(U.b)()}},{key:"all",value:function(){return(new q.b).batchSize(1e3)}},{key:"root",value:function(){return e.getByPath("/")}},{key:"where",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(new q.b).and(t,e,n,r)}},{key:"getByPath",value:function(t){var e=Object(W.b)(this.where("_path","equals",t));if(e)return e}},{key:"getByPermalink",value:function(t){var e=this.where("_permalink","equals",t),n=Object(W.b)(e);if(n)return n}}]),O(e,[{key:"id",value:function(){return this.getAttributeData("_id")}},{key:"objClass",value:function(){return this.getAttributeData("_obj_class")}},{key:"obj",value:function(){return this}},{key:"createdAt",value:function(){return Object(P.g)(this.getAttributeData("_created_at"))}},{key:"createdBy",value:function(){return this.getAttributeData("_created_by")}},{key:"lastChanged",value:function(){var t=this.getAttributeData("_last_changed");return t?Object(P.g)(t):null}},{key:"lastChangedBy",value:function(){return this.getAttributeData("_last_changed_by")||null}},{key:"version",value:function(){return this.getAttributeData("_version")}},{key:"path",value:function(){return this.getAttributeData("_path")||null}},{key:"permalink",value:function(){return this.getAttributeData("_permalink")||null}},{key:"parentPath",value:function(){if(this.path()&&"/"!==this.path())return S(this.path())}},{key:"parent",value:function(){var t=this.parentPath();if(t)return e.getByPath(t)}},{key:"hasConflicts",value:function(){return!!this.getAttributeData("_conflicts")}},{key:"modification",value:function(){return this.isFinallyDeleted()||this.getAttributeData("_marked_deleted")?"deleted":this.getAttributeData("_modification")||null}},{key:"isModified",value:function(){return!!this.modification()}},{key:"isNew",value:function(){return"new"===this.modification()}},{key:"isEdited",value:function(){return"edited"===this.modification()}},{key:"isDeleted",value:function(){return"deleted"===this.modification()}},{key:"isFinallyDeleted",value:function(){return this.objData.isNonExistent()}},{key:"contentLength",value:function(){return this._binaryData("contentLength")}},{key:"contentType",value:function(){return this._binaryData("contentType")}},{key:"contentUrl",value:function(){return this._binaryData("url")}},{key:"metadata",value:function(){return this._binaryData("metadata")}},{key:"children",value:function(){var t=this.path();if(!t)return[];var e=C(t);return Object(W.a)(e)}},{key:"hasChildren",value:function(){var t=this.path();return!!t&&C(t).batchSize(0).count()>0}},{key:"orderedChildren",value:function(){var t=this.children(),e=this.get("childOrder","referencelist");return B.a.isArray(e)?B.a.sortBy(t,function(t){var n=B.a.invoke(e,"id"),r=n.indexOf(t.id());return-1===r?e.length:r}):t}},{key:"backlinks",value:function(){return Object(W.a)(e.where("*","linksTo",this))}},{key:"ancestors",value:function(){var t=this.parentPath();return t?j(t).map(function(t){return e.getByPath(t)}):[]}},{key:"update",value:function(t){var e=this,n=scrivito.typeInfo.normalizeAttrs(t);Object(K.j)(function(){e._persistWidgets(e,n);var t=I.a(n);e.objData.update(t)}),this.startLinkResolution()}},{key:"destroy",value:function(){this.update({_markedDeleted:[!0]})}},{key:"insertWidget",value:function(t,e){var n=e.before,r=e.after,i=(n||r).id(),o=this._widgetPlacementFor(i),a=o.attributeValue,s=o.attributeName,u=o.container,f=o.index,d=n?f:f+1,h=l(a.slice(0,d)).concat([t],l(a.slice(d)));u.update(c({},s,[h,"widgetlist"]))}},{key:"removeWidget",value:function(t){var e=this.fieldContainingWidget(t);e.update(B.a.reject(e.get(),function(e){return e.equals(t)}))}},{key:"copyAsync",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return A(t),this._copyAttributes().then(function(n){var r=B.a.extend(n,t),i=e.createWithSerializedAttributes(r);return i.objData.finishSaving().then(function(){return i})})}},{key:"moveToAsync",value:function(t){return this.update({_path:["".concat(t,"/").concat(this.id())]}),this.finishSaving()}},{key:"markResolvedAsync",value:function(){return this.update({_conflicts:[null]}),this.finishSaving()}},{key:"finishSaving",value:function(){var t=this;return this.finishLinkResolution().then(function(){return t.objData.finishSaving()})}},{key:"equals",value:function(t){return!!u(t,e)&&this.id()===t.id()}},{key:"widget",value:function(t){return this.getWidgetAttribute(t,"_obj_class")?D.a.build(t,this):null}},{key:"getWidgetAttribute",value:function(t,e){return this.objData.getWidgetAttribute(t,e)}},{key:"widgets",value:function(){var t=this,e=this.getData()._widget_pool||{};return Object.keys(e).map(function(e){return t.widget(e)})}},{key:"fieldContainingWidget",value:function(t){var e=this._widgetPlacementFor(t.id()),n=e.container,r=e.attributeName;return n.field(r,"widgetlist")}},{key:"generateWidgetId",value:function(){for(var t=0;t<10;t++){var e=Object(U.a)();if(!this.widget(e))return e}throw new F.InternalError("Could not generate a new unused widget id.")}},{key:"serializeAttributes",value:function(){var t=g(_(e.prototype),"serializeAttributes",this).call(this);return delete t._conflicts,delete t._modification,delete t._created_at,delete t._created_by,delete t._last_changed,delete t._last_changed_by,t}},{key:"slug",value:function(){var t=this.get("title","string");return Object(N.a)(t)}},{key:"getAttributeData",value:function(t){return this.objData.getAttribute(t)}},{key:"getData",value:function(){return this.objData.get()}},{key:"getWidgetData",value:function(t){return this.objData.getWidget(t)}},{key:"startLinkResolution",value:function(){V.b.startLinkResolutionFor(scrivito.currentWorkspaceId(),this.id())}},{key:"finishLinkResolution",value:function(){return V.b.finishLinkResolutionFor(scrivito.currentWorkspaceId(),this.id())}},{key:"toPrettyPrint",value:function(){return"[object ".concat(this.objClass(),' id="').concat(this.id(),'"]')}},{key:"_binaryData",value:function(t){var e=this.get("blob","binary");return e&&e.raw()[t]()}},{key:"_hasParentPath",value:function(){return this.path()&&"/"!==this.path()}},{key:"_copyAttributes",value:function(){var t=e.generateId(),n=this.serializeAttributes(),r=[];return B.a.each(n,function(e,o){if("_"===o[0])return void delete n[o];var a=i(e,2),s=a[0],u=a[1];if("binary"===s&&u){var c=new z.a({idToCopy:u.id}),l=c.intoId(t).then(function(t){return{name:o,binary:t}});r.push(l)}}),n._id=t,n._obj_class=this.objClass(),this.path()&&(n._path="".concat(this.parentPath(),"/").concat(t)),scrivito.Promise.all(r).then(function(t){return B.a.each(t,function(t){var e=t.name,r=t.binary;n[e]=["binary",{id:r.id()}]}),n})}},{key:"_widgetPlacementFor",value:function(t){var e=Object(T.a)(this.getData(),t),n=e.parentWidgetId?this.widget(e.parentWidgetId):this,r=Object(H.a)(e.attributeName),i=n.get(r,"widgetlist");return B.a.extend(e,{container:n,attributeName:r,attributeValue:i})}},{key:"_systemAttributes",get:function(){return Q}}]),v(e,t),e}(R.a)},function(t,e,n){"use strict";function r(t){t?(f=void 0,d=t.stateController(),h=t.createAppState(),p=t.cmsState()):(f=new m.a,d=f,h=i(),p=f.subState("cms"),v=f.subState("ui"))}function i(){if(!f)throw new y.InternalError;var t=(b++).toString();return f.subState("apps").subState(t)}function o(t){return d.withBatchedUpdates(t)}function a(t){return d.subscribe(t)}function s(t){return d.trackChanges(t)}function u(t,e){return d.withFrozenState(t,e)}function c(t){return d.failIfFrozen(t)}function l(t){return d.failIfTracking(t)}n.d(e,"a",function(){return h}),n.d(e,"b",function(){return p}),n.d(e,"i",function(){return v}),e.f=r,e.c=i,e.j=o,e.g=a,e.h=s,e.k=u,e.d=c,e.e=l;var f,d,h,p,v,y=n(1),m=n(164),b=0},function(t,e,n){function r(t,e){!0!==t&&(i(e)?e=e():o(e)&&(e='Assert failed (turn on "Pause on exceptions" in your Source panel)'),r.fail(e))}var i=n(10),o=n(25),a=n(184),s=n(105);r.fail=a,r.stringify=s,t.exports=r},,function(t,e,n){"use strict";function r(t){function e(){var n=Object(o.a)(function(){try{return{errorThrown:!1,run:o.b.run(function(){return Object(a.k)({contextName:"Scrivito.load",message:"Use an async callback: Scrivito.load(/* ... */).then(/* ... */)."},t)})}}catch(t){return{errorThrown:!0,error:t}}});if(!n.isAllDataUpToDate()){n.loadRequiredData();var r=new i.a,s=Object(a.g)(function(){r.resolve(void 0),s()});return r.promise.then(e)}var u=n.result;if(u.errorThrown)throw u.error;var l=u.run;if(!l.success)throw new c.InternalError;return l.result}return l(t),new scrivito.Promise(function(t){return t(e())})}var i=n(12),o=n(18),a=n(4),s=n(39),u=n(24),c=n(1),l=Object(s.a)("load",[["loadableFunction",u.a.Function]],{docPermalink:"js-sdk/load"});e.a=r},function(t,e,n){var r=n(11),i=n(51);t.exports=function(t){return r(t)?t.displayName:i(t)}},,function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,n){var r=n(10),i=n(27);t.exports=function(t){return r(t)&&i(t.meta)}},function(t,e,n){"use strict";var r=function(){function t(){var t=this;this.promise=new scrivito.Promise(function(e,n){t.resolve=function(n){t.settled=!0,e(n)},t.reject=function(e){t.settled=!0,n(e)}})}return t.prototype.isPending=function(){return!this.settled},t}();e.a=r},function(t,e){t.exports=React},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){if("function"!=typeof t)throw new d.ArgumentError("Scrivito.connect expects either a plain function or a subclass of React.Component");return u(t)?t:o(s(t)?t:a(t))}function o(t){var e=(n=function(t){function e(e){var n=t.call(this,e)||this;return n._scrivitoPrivateConnector=new m(n),n}return y(e,t),e.prototype.componentWillMount=function(){this._scrivitoPrivateConnector.componentWillMount(),t.prototype.componentWillMount&&t.prototype.componentWillMount.call(this)},e.prototype.componentWillUnmount=function(){this._scrivitoPrivateConnector.componentWillUnmount(),t.prototype.componentWillUnmount&&t.prototype.componentWillUnmount.call(this)},e.prototype.render=function(){var e=this;return this._scrivitoPrivateConnector.render(function(){return t.prototype.render.call(e)})},e}(t),n._isScrivitoConnectedComponent=!0,n);return e.displayName=Object(v.a)(t),e;var n}function a(t){var e=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return y(n,e),n.prototype.render=function(){return t(this.props)},n}(l.Component);return e.displayName=Object(v.a)(t),e}function s(t){return"function"==typeof t&&t.prototype&&t.prototype.isReactComponent}function u(t){return!0===t._isScrivitoConnectedComponent}function c(t){return!!t._scrivitoRenderWhileLoading}e.a=i;var l=n(13),f=(n.n(l),n(18)),d=n(1),h=n(4),p=n(81),v=n(122),y=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m=function(){function t(t){this.component=t}return t.prototype.componentWillMount=function(){var t=this;this.unsubscribeModelState=Object(h.g)(function(){t.isStateChangeDetected&&t.isStateChangeDetected()&&t.component.forceUpdate()})},t.prototype.componentWillUnmount=function(){this.unregisterLoadingActivity(),this.unsubscribeModelState&&this.unsubscribeModelState()},t.prototype.render=function(t){var e,n=this;return this.isStateChangeDetected=Object(h.h)(function(){var r=Object(f.a)(function(){return f.b.run(function(){return Object(h.k)({contextName:"React.Component#render",message:"Use one of the React lifecycle hooks."},t)})});r.loadRequiredData();var i=r.result;if(r.isAllDataLoaded()){if(n.unregisterLoadingActivity(),!i.success)throw new d.InternalError;e=i.result}else{n.unregisterLoadingActivityCallback||(n.unregisterLoadingActivityCallback=Object(p.c)());var o=i.success?i.result:null;e=n.handleLoading(o)}}),e},t.prototype.handleLoading=function(t){return c(this.component)?this.component._scrivitoRenderWhileLoading():t},t.prototype.unregisterLoadingActivity=function(){var t=this.unregisterLoadingActivityCallback;t&&(delete this.unregisterLoadingActivityCallback,t())},t}()},,function(t,e,n){n(5),n(65),n(10),n(52);t.exports=function(t,e){function n(t,e){return t}return n.meta={kind:"irreducible",name:t,predicate:e,identity:!0},n.displayName=t,n.is=e,n}},function(t,e,n){"use strict";function r(t){i=t}n.d(e,"b",function(){return i}),e.a=r;var i},function(t,e,n){"use strict";function r(){var t=d.current();t&&(t.allDataLoaded=!1)}function i(t){return f.runWith(!1,t)}var o=n(1),a=n(103),s=n(175),u=n(69),c=n(176),l=n(103);n.d(e,"a",function(){return l.a});var f=new u.a,d=new u.a,h=function(){function t(t){var e=t.state,n=t.loader,r=t.invalidation,i=t.throwNotLoaded;if(!e)throw new o.InternalError("LoadableData needs state");this.value=new s.a(e),this.loader=n,this.invalidation=r,this.throwNotLoaded=i||!1,this.id=e.id()}return t.throwNotLoaded=function(){throw r(),new scrivito.NotLoadedError(f.current())},t.run=function(t){var e={allDataLoaded:!0};try{return{success:!0,result:d.runWith(e,function(){return i(t)}),allDataLoaded:e.allDataLoaded}}catch(t){if(e.allDataLoaded)throw t;return{success:!1,allDataLoaded:!1}}},t.prototype.ensureAvailable=function(){var e=this;if(this.isAvailable())return this.reloadIfOutdated(),!0;if(this.isError())throw this.reloadIfOutdated(),this.value.error();return r(),a.b(function(){return e.progressLoading()}),this.throwNotLoaded&&t.throwNotLoaded(),!1},t.prototype.get=function(){if(this.ensureAvailable())return this.value.value()},t.prototype.reader=function(){return this.value.reader()},t.prototype.set=function(t){this.value.transitionToAvailable(t,this.currentVersion()),Object(c.c)(this.id)},t.prototype.setError=function(t){this.transitionToError(t),Object(c.c)(this.id)},t.prototype.reset=function(){this.value.transitionToMissing(),Object(c.c)(this.id)},t.prototype.isMissing=function(){return"MISSING"===this.value.status()},t.prototype.isLoading=function(){return Object(c.a)(this.id)},t.prototype.isAvailable=function(){return"AVAILABLE"===this.value.status()},t.prototype.isError=function(){return"ERROR"===this.value.status()},t.prototype.triggerLoading=function(){var t=this,e=this.currentVersion();Object(c.b)(this.id,function(e){var n=e.wasCancelled,r=e.push;return t.loader({push:r,isReload:function(){return t.hasBeenInvalidated()},wasCancelled:n})},function(n){t.value.transitionToAvailable(n,e)},function(n){t.transitionToError(n,e)})},t.prototype.transitionToError=function(t,e){void 0===e&&(e=this.currentVersion()),this.value.transitionToError(t,e)},t.prototype.reloadIfOutdated=function(){var t=this;this.hasBeenInvalidated()&&a.c(function(){return t.progressLoading()})},t.prototype.progressLoading=function(){(this.hasBeenInvalidated()||this.isMissing())&&this.triggerLoading()},t.prototype.hasBeenInvalidated=function(){return!!this.invalidation&&(!this.isMissing()&&this.currentVersion()!==this.value.version())},t.prototype.currentVersion=function(){var t=this.invalidation;if(t){var e=t();if("number"==typeof e&&isNaN(e)){var n="invalidation callback returned unsuitable version "+e;throw new o.InternalError(n)}return e}},t}();e.b=h},,function(t,e,n){var r=n(25),i=n(65);t.exports=function(t){return r(t)||i(t)}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function o(t,e){return void 0===e&&(e=0),y?new scrivito.Promise(function(e){return e(t())}):t().catch(function(n){if(i(n,k.RequestFailedError)){if(v&&e>5)throw n;var r=s(e);return Object(_.b)(r).then(function(){return o(t,e+1)})}throw n})}function a(t,e){return void 0===e&&(e=0),y?new scrivito.Promise(function(e){return e(t())}):t().then(function(n){if(429!==n.status)return n;if(v&&e>19)throw new Error("Maximum number of rate limit retries reached");var r=Number(n.getResponseHeader("Retry-After"))||0,i=Math.max(1e3*r,s(e));return Object(_.b)(i).then(function(){return a(t,e+1)})})}function s(t){return 500*Math.pow(2,Math.min(t,16))}function u(t){var e,n=t.status;try{e=JSON.parse(t.responseText)}catch(e){throw new k.RequestFailedError(t.responseText)}if(n>=200&&n<300)return e;if("auth_missing"===e.code){var r=e.details;if(r&&f(r)){var i=r.visit;if("string"==typeof i)return Object(x.d)(c(i)),{}}}throw l(n,e,t.responseText)}function c(t){var e=O.a.augmentedRedirectUrl(Object(x.c)());return t.replace("retry=RETRY","retry="+O.a.currentFailureCount()).replace(/\$RETURN_TO/,encodeURIComponent(e))}function l(t,e,n){if(401===t){var r=p(e);return new k.UnauthorizedError(r.error,t,r.code,r.details)}if(403===t){var r=p(e),i=r.code;if(!i||!d(i))throw new k.RequestFailedError("Authentication failure response no string value for code");return new k.AccessDeniedError(r.error,t,i)}if(e.error&&"4"===t.toString()[0]){var r=p(e);return k.ClientError.for(r.error,t,r.code)}return 500===t&&d(e.error)?new k.RequestFailedError(e.error):new k.RequestFailedError(n)}function f(t){return"object"===r(t)&&!Array.isArray(t)}function d(t){return"string"==typeof t}function h(t){return!!t&&!!t.task&&1===Object(m.size)(t)}function p(t){var e=t.error;if("string"!=typeof e)throw new k.RequestFailedError("Malformed error response (key error is not a string)");var n=t.code;if(void 0!==n&&!d(n))throw new k.RequestFailedError("Malformed error response (optional key code is not a string)");var r=t.details;if(void 0!==r&&!f(r))throw new k.RequestFailedError("Malformed error response (optional key details is not an object");return{code:n,error:e,details:r}}n.d(e,"a",function(){return j});var v,y,m=n(0),b=(n.n(m),n(33)),g=(n.n(b),n(12)),w=n(101),_=n(128),k=n(1),O=n(152),E=n(172),x=n(70),C=function(){function t(){this.initDeferred=new g.a,this.authHeaderValueProvider=E}return t.prototype.init=function(t,e,n){e&&(this.tenant=e,this.endpoint=t,this.url=b(t+"/tenants/"+e+"/perform").scheme("https").toString(),this.initDeferred.resolve(void 0)),n&&(this.authHeaderValueProvider=n)},t.prototype.get=function(t,e){return this._perform("GET",t,e)},t.prototype.put=function(t,e){return this._perform("PUT",t,e)},t.prototype.post=function(t,e){return this._perform("POST",t,e)},t.prototype.delete=function(t,e){return this._perform("DELETE",t,e)},t.prototype.requestBuiltInUserSession=function(t){var e=this;return this._ensureInitialized().then(function(){return e._ajax("PUT","sessions/"+t)}).then(function(t){return O.a.reset(),t})},t.prototype.enableForceVerification=function(){this.forceVerification=!0},t.prototype.currentPublicAuthorizationState=function(){return this.authHeaderValueProvider?this.authHeaderValueProvider.currentState?"[API] "+this.authHeaderValueProvider.currentState():"[API]: authorization provider without currentState()":"[API]: no authorization provider"},t.prototype._ensureInitialized=function(){return this.initDeferred.promise},t.prototype._perform=function(t,e,n){var r=this;return this._ensureInitialized().then(function(){return r._send(t,e,n).then(function(t){return h(t)?r._handleTask(t.task):t})})},t.prototype._send=function(t,e,n){var r=this;return this.authHeaderValueProvider.perform(function(i){return r._ajax(t,e,n,i)})},t.prototype._ajax=function(t,e,n,r){function i(){return a(function(){return Object(w.a)(t,s,f)}).then(u)}var s=this.url,c=this.forceVerification,l={path:e,verb:t,params:n||{}},f={params:l,authorization:r,forceVerification:c};return"POST"===t?i():o(i)},t.prototype._handleTask=function(t){var e=this;switch(t.status){case"success":return t.result;case"error":throw k.ClientError.for(t.message,412,t.code);case"open":return Object(_.a)(2).then(function(){return e.get("tasks/"+t.id).then(function(t){return e._handleTask(t)})});default:throw new k.RequestFailedError("Invalid task response (unknown status)")}},t}(),j=new C},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(Object(c.isArray)(e))return Object(c.map)(e,function(e){return i(t,e)});if(r(e,f.default))return o(e,t.objClassFor(e.objClass()));if(r(e,d.a)){var n=e.objClass();return o(e,t.widgetClassFor(n))}return r(e,h.a)?t.defaultClassForLinks.build(e.buildAttributes()):e}function o(t,e){var n=Object.create(e.prototype);return n._scrivitoPrivateContent=t,n}function a(t){return Object(c.isArray)(t)?Object(c.map)(t,s):s(t)}function s(t){return t&&t._scrivitoPrivateContent?t._scrivitoPrivateContent:t}function u(t,e,n){return Object(c.mapObject)(t,function(t,r){if(Object(l.a)(r))return[t];var i=e.attributes[r];if(!i)throw new p.ArgumentError('Attribute "'.concat(r,'" is not defined for CMS object ')+'class "'.concat(n,'".'));return[a(t),i]})}e.e=i,e.a=o,e.d=a,e.c=s,e.b=u;var c=n(0),l=(n.n(c),n(47)),f=n(3),d=n(32),h=n(34),p=n(1)},function(t,e,n){"use strict";function r(t){return f.test(t)}function i(t){return t.replace(c,function(t,e){return"_".concat(e.toLowerCase())})}function o(t){return t.replace(u,function(t,e,n,r){return r?n.toUpperCase()===n?t:"".concat(e.substr(1)).concat(n.toUpperCase()):t})}function a(t){var e=o(t);return e.charAt(0).toUpperCase()+e.slice(1)}function s(t){return t.replace(d," ").replace(h,function(t){return" ".concat(t.toLowerCase())}).replace(l,function(t){return" ".concat(t)}).trim().replace(/./,function(t){return t.toUpperCase()})}e.c=r,e.e=i,e.a=o,e.b=a,e.d=s;var u=/(_+)(\w)/g,c=/([A-Z])/g,l=/[A-Z]+|\d+/g,f=/^_?(_+[A-Z0-9]|[^_])+$/,d=/[_\s]+/g,h=/[A-Z][a-z]+/g},function(t,e,n){"use strict";var r=n(182);n.n(r);n.d(e,"a",function(){return r}),r.struct.strict=!0,r.interface.strict=!0,r.fail=function(t){throw new TypeError(t)}},function(t,e){t.exports=function(t){return null===t||void 0===t}},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){var n=scrivito.computeCacheKey([t,e]);return v.b.subState("binary").subState(n)}function o(t,e){return function(){return p.a.retrieveBinaryUrls(t,e)}}var a=n(33),s=(n.n(a),n(0)),u=(n.n(s),n(71)),c=n(18),l=n(130),f=n(1),d=n(131),h=n(39),p=n(43),v=n(4),y=n(24),m="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",b={public_access:{get:{url:m}},private_access:{get:{url:m}}},g=function(){function t(t,e,n){this._id=t,this._isPublic=!!e,this._transformation=n,this._loadableData=new c.b({state:i(t,n),loader:o(t,n)})}return t.upload=function(t,e){if(k(t,e),!(d.b.is(t)||e&&e.filename))throw new f.ArgumentError("Expected a filename to be passed with Blob as the source.");return new u.a({source:t},e)},t.store=function(e,n,r){var a=n.transformation;new c.b({state:i(e,a),loader:o(e,a)}).set(r);var s=new t(e);return a?s.optimizeFor(a):s},t.storeMetadata=function(t,e){l.a.store(t,e)},t.prototype.id=function(){return this._id},t.prototype.copy=function(t){return new u.a({idToCopy:this._id},t)},t.prototype.isPrivate=function(){return!this._isPublic},t.prototype.optimizeFor=function(e){return new t(this._id,this._isPublic,Object(s.extend)({},this._transformation,e))},t.prototype.original=function(){return new t(this._id,this._isPublic,{})},t.prototype.raw=function(){return new t(this._id,this._isPublic)},t.prototype.isExplicitlyTransformed=function(){return this._isTransformed()&&!Object(s.isEmpty)(this._transformation)},t.prototype.isRaw=function(){return!this._isTransformed()},t.prototype.url=function(){var t=this._urlData()[this._accessType()];if(t)return t.get.url},t.prototype.filename=function(){var t=this.url();return!t||t.match(/^data:/)?"":a(t).path().split("/").pop()},t.prototype.metadata=function(){return this._assertNotTransformed("Metadata"),new l.a(this._id)},t.prototype.contentType=function(){return this._assertNotTransformed("Content type"),this.metadata().get("contentType")},t.prototype.contentLength=function(){return this._assertNotTransformed("Content length"),this.metadata().get("contentLength")||0},t.prototype.extname=function(){if(this.raw().filename().indexOf(".")>-1){var t=/[^.\\]*$/.exec(this.raw().filename());if(t)return t[0].toLowerCase()}},t.prototype.equals=function(e){return r(e,t)&&e.id()===this.id()&&e.isPrivate()===this.isPrivate()&&Object(s.isEqual)(e.definition(),this.definition())},t.prototype.isImage=function(){var t=this.raw().contentType();return!!t&&"image"===t.split("/")[0]},t.prototype.definition=function(){return this._transformation||null},t.prototype._accessType=function(){return this.isPrivate()?"private_access":"public_access"},t.prototype._urlData=function(){return this._loadableData.get()||b},t.prototype._assertNotTransformed=function(t){if(this._isTransformed())throw new f.ScrivitoError('"'+t+'" is not available for transformed images. Use "Scrivito.Binary#raw" to access the untransformed version of the image.')},t.prototype._isTransformed=function(){return!!this._transformation},t}();e.a=g;var w=y.a.struct({contentType:y.a.maybe(y.a.String),filename:y.a.maybe(y.a.String)}),_=y.a.refinement(y.a.Object,function(t){return d.a.is(t)||d.b.is(t)},"Blob or File"),k=Object(h.a)("Binary.upload",[["source",_],["options",y.a.maybe(w)]],{docPermalink:"js-sdk/Binary-static-upload"})},function(t,e,n){var r=n(25),i=n(28);t.exports=function(t){return!r(t)&&"object"==typeof t&&!i(t)}},function(t,e){t.exports=function(t){return Array.isArray?Array.isArray(t):t instanceof Array}},function(t,e,n){var r=(n(5),n(106),n(11));n(8);t.exports=function(t){return!r(t)||t.meta.identity}},function(t,e,n){var r=n(11);n(51),n(5),n(105);t.exports=function(t,e,n){return r(t)?t.meta.identity||"object"!=typeof e||null===e?t(e,n):new t(e,n):e}},function(t,e,n){var r=n(11);t.exports=function(t,e){return r(e)?e.is(t):t instanceof e}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return s(t)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function s(t){if(Array.isArray(t))return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function l(t,e){if(!c(t,e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");d(t.prototype,e&&e.prototype),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return(v=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function y(t,e){for(var n=0;n=1,r=arguments.length>=2;if(!(this instanceof i))return n?r?new i(t,e):new i(t):new i;if(void 0===t){if(n)throw new TypeError("undefined is not a valid argument for URI");t="undefined"!=typeof location?location.href+"":""}if(null===t&&n)throw new TypeError("null is not a valid argument for URI");return this.href(t),void 0!==e?this.absoluteTo(e):this}function o(t){return/^[0-9]+$/.test(t)}function a(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function s(t){return void 0===t?"Undefined":String(Object.prototype.toString.call(t)).slice(8,-1)}function u(t){return"Array"===s(t)}function c(t,e){var n,r,i={};if("RegExp"===s(e))i=null;else if(u(e))for(n=0,r=e.length;n]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,i.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},i.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},i.hostProtocols=["http","https"],i.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,i.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},i.getDomAttribute=function(t){if(t&&t.nodeName){var e=t.nodeName.toLowerCase();if("input"!==e||"image"===t.type)return i.domAttributes[e]}},i.encode=p,i.decode=decodeURIComponent,i.iso8859=function(){i.encode=escape,i.decode=unescape},i.unicode=function(){i.encode=p,i.decode=decodeURIComponent},i.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},i.encodeQuery=function(t,e){var n=i.encode(t+"");return void 0===e&&(e=i.escapeQuerySpace),e?n.replace(/%20/g,"+"):n},i.decodeQuery=function(t,e){t+="",void 0===e&&(e=i.escapeQuerySpace);try{return i.decode(e?t.replace(/\+/g,"%20"):t)}catch(e){return t}};var w,_={encode:"encode",decode:"decode"},k=function(t,e){return function(n){try{return i[e](n+"").replace(i.characters[t][e].expression,function(n){return i.characters[t][e].map[n]})}catch(t){return n}}};for(w in _)i[w+"PathSegment"]=k("pathname",_[w]),i[w+"UrnPathSegment"]=k("urnpath",_[w]);var O=function(t,e,n){return function(r){var o;o=n?function(t){return i[e](i[n](t))}:i[e];for(var a=(r+"").split(t),s=0,u=a.length;s-1&&(e.fragment=t.substring(n+1)||null,t=t.substring(0,n)),n=t.indexOf("?"),n>-1&&(e.query=t.substring(n+1)||null,t=t.substring(0,n)),"//"===t.substring(0,2)?(e.protocol=null,t=t.substring(2),t=i.parseAuthority(t,e)):(n=t.indexOf(":"))>-1&&(e.protocol=t.substring(0,n)||null,e.protocol&&!e.protocol.match(i.protocol_expression)?e.protocol=void 0:"//"===t.substring(n+1,n+3)?(t=t.substring(n+3),t=i.parseAuthority(t,e)):(t=t.substring(n+1),e.urn=!0)),e.path=t,e},i.parseHost=function(t,e){t||(t=""),t=t.replace(/\\/g,"/");var n,r,o=t.indexOf("/");if(-1===o&&(o=t.length),"["===t.charAt(0))n=t.indexOf("]"),e.hostname=t.substring(1,n)||null,e.port=t.substring(n+2,o)||null,"/"===e.port&&(e.port=null);else{var a=t.indexOf(":"),s=t.indexOf("/"),u=t.indexOf(":",a+1);-1!==u&&(-1===s||u-1?r:t.length-1);return o>-1&&(-1===r||o-1?h.slice(0,p)+h.slice(p).replace(a,""):h.replace(a,""),!(h.length<=c[0].length||n.ignore&&n.ignore.test(h))){d=l+h.length;var m=e(h,l,d,t);void 0!==m?(m=String(m),t=t.slice(0,l)+m+t.slice(d),r.lastIndex=l+m.length):r.lastIndex=d}}return r.lastIndex=0,t},i.ensureValidHostname=function(e,n){var r=!!e,o=!!n,a=!1;if(o&&(a=l(i.hostProtocols,n)),a&&!r)throw new TypeError("Hostname cannot be empty, if protocol is "+n);if(e&&e.match(i.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(t.toASCII(e).match(i.invalid_hostname_characters))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_]')}},i.ensureValidPort=function(t){if(t){var e=Number(t);if(!(o(e)&&e>0&&e<65536))throw new TypeError('Port "'+t+'" is not a valid port')}},i.noConflict=function(t){if(t){var e={URI:this.noConflict()};return r.URITemplate&&"function"==typeof r.URITemplate.noConflict&&(e.URITemplate=r.URITemplate.noConflict()),r.IPv6&&"function"==typeof r.IPv6.noConflict&&(e.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&"function"==typeof r.SecondLevelDomains.noConflict&&(e.SecondLevelDomains=r.SecondLevelDomains.noConflict()),e}return r.URI===this&&(r.URI=m),this},b.build=function(t){return!0===t?this._deferred_build=!0:(void 0===t||this._deferred_build)&&(this._string=i.build(this._parts),this._deferred_build=!1),this},b.clone=function(){return new i(this)},b.valueOf=b.toString=function(){return this.build(!1)._string},b.protocol=v("protocol"),b.username=v("username"),b.password=v("password"),b.hostname=v("hostname"),b.port=v("port"),b.query=y("query","?"),b.fragment=y("fragment","#"),b.search=function(t,e){var n=this.query(t,e);return"string"==typeof n&&n.length?"?"+n:n},b.hash=function(t,e){var n=this.fragment(t,e);return"string"==typeof n&&n.length?"#"+n:n},b.pathname=function(t,e){if(void 0===t||!0===t){var n=this._parts.path||(this._parts.hostname?"/":"");return t?(this._parts.urn?i.decodeUrnPath:i.decodePath)(n):n}return this._parts.urn?this._parts.path=t?i.recodeUrnPath(t):"":this._parts.path=t?i.recodePath(t):"/",this.build(!e),this},b.path=b.pathname,b.href=function(t,e){var n;if(void 0===t)return this.toString();this._string="",this._parts=i._parts();var r=t instanceof i,o="object"==typeof t&&(t.hostname||t.path||t.pathname);if(t.nodeName){t=t[i.getDomAttribute(t)]||"",o=!1}if(!r&&o&&void 0!==t.pathname&&(t=t.toString()),"string"==typeof t||t instanceof String)this._parts=i.parse(String(t),this._parts);else{if(!r&&!o)throw new TypeError("invalid input");var a=r?t._parts:t;for(n in a)"query"!==n&&g.call(this._parts,n)&&(this._parts[n]=a[n]);a.query&&this.query(a.query,!1)}return this.build(!e),this},b.is=function(t){var e=!1,r=!1,o=!1,a=!1,s=!1,u=!1,c=!1,l=!this._parts.urn;switch(this._parts.hostname&&(l=!1,r=i.ip4_expression.test(this._parts.hostname),o=i.ip6_expression.test(this._parts.hostname),e=r||o,a=!e,s=a&&n&&n.has(this._parts.hostname),u=a&&i.idn_expression.test(this._parts.hostname),c=a&&i.punycode_expression.test(this._parts.hostname)),t.toLowerCase()){case"relative":return l;case"absolute":return!l;case"domain":case"name":return a;case"sld":return s;case"ip":return e;case"ip4":case"ipv4":case"inet4":return r;case"ip6":case"ipv6":case"inet6":return o;case"idn":return u;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var E=b.protocol,x=b.port,C=b.hostname;b.protocol=function(t,e){if(t&&(t=t.replace(/:(\/\/)?$/,""),!t.match(i.protocol_expression)))throw new TypeError('Protocol "'+t+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return E.call(this,t,e)},b.scheme=b.protocol,b.port=function(t,e){return this._parts.urn?void 0===t?"":this:(void 0!==t&&(0===t&&(t=null),t&&(t+="",":"===t.charAt(0)&&(t=t.substring(1)),i.ensureValidPort(t))),x.call(this,t,e))},b.hostname=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0!==t){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==i.parseHost(t,n))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');t=n.hostname,this._parts.preventInvalidHostname&&i.ensureValidHostname(t,this._parts.protocol)}return C.call(this,t,e)},b.origin=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var n=this.protocol();return this.authority()?(n?n+"://":"")+this.authority():""}var r=i(t);return this.protocol(r.protocol()).authority(r.authority()).build(!e),this},b.host=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?i.buildHost(this._parts):"";if("/"!==i.parseHost(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},b.authority=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?i.buildAuthority(this._parts):"";if("/"!==i.parseAuthority(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},b.userinfo=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var n=i.buildUserinfo(this._parts);return n?n.substring(0,n.length-1):n}return"@"!==t[t.length-1]&&(t+="@"),i.parseUserinfo(t,this._parts),this.build(!e),this},b.resource=function(t,e){var n;return void 0===t?this.path()+this.search()+this.hash():(n=i.parse(t),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!e),this)},b.subdomain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}var r=this._parts.hostname.length-this.domain().length,o=this._parts.hostname.substring(0,r),s=new RegExp("^"+a(o));if(t&&"."!==t.charAt(t.length-1)&&(t+="."),-1!==t.indexOf(":"))throw new TypeError("Domains cannot contain colons");return t&&i.ensureValidHostname(t,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(s,t),this.build(!e),this},b.domain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var r=this._parts.hostname.length-this.tld(e).length-1;return r=this._parts.hostname.lastIndexOf(".",r-1)+1,this._parts.hostname.substring(r)||""}if(!t)throw new TypeError("cannot set domain empty");if(-1!==t.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(i.ensureValidHostname(t,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=t;else{var o=new RegExp(a(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(o,t)}return this.build(!e),this},b.tld=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.lastIndexOf("."),i=this._parts.hostname.substring(r+1);return!0!==e&&n&&n.list[i.toLowerCase()]?n.get(this._parts.hostname)||i:i}var o;if(!t)throw new TypeError("cannot set TLD empty");if(t.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(t))throw new TypeError('TLD "'+t+'" contains characters other than [A-Z0-9]');o=new RegExp(a(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,t)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");o=new RegExp(a(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,t)}return this.build(!e),this},b.directory=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return t?i.decodePath(r):r}var o=this._parts.path.length-this.filename().length,s=this._parts.path.substring(0,o),u=new RegExp("^"+a(s));return this.is("relative")||(t||(t="/"),"/"!==t.charAt(0)&&(t="/"+t)),t&&"/"!==t.charAt(t.length-1)&&(t+="/"),t=i.recodePath(t),this._parts.path=this._parts.path.replace(u,t),this.build(!e),this},b.filename=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("string"!=typeof t){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/"),r=this._parts.path.substring(n+1);return t?i.decodePathSegment(r):r}var o=!1;"/"===t.charAt(0)&&(t=t.substring(1)),t.match(/\.?\//)&&(o=!0);var s=new RegExp(a(this.filename())+"$");return t=i.recodePath(t),this._parts.path=this._parts.path.replace(s,t),o?this.normalizePath(e):this.build(!e),this},b.suffix=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path||"/"===this._parts.path)return"";var n,r,o=this.filename(),s=o.lastIndexOf(".");return-1===s?"":(n=o.substring(s+1),r=/^[a-z0-9%]+$/i.test(n)?n:"",t?i.decodePathSegment(r):r)}"."===t.charAt(0)&&(t=t.substring(1));var u,c=this.suffix();if(c)u=t?new RegExp(a(c)+"$"):new RegExp(a("."+c)+"$");else{if(!t)return this;this._parts.path+="."+i.recodePath(t)}return u&&(t=i.recodePath(t),this._parts.path=this._parts.path.replace(u,t)),this.build(!e),this},b.segment=function(t,e,n){var r=this._parts.urn?":":"/",i=this.path(),o="/"===i.substring(0,1),a=i.split(r);if(void 0!==t&&"number"!=typeof t&&(n=e,e=t,t=void 0),void 0!==t&&"number"!=typeof t)throw new Error('Bad segment "'+t+'", must be 0-based integer');if(o&&a.shift(),t<0&&(t=Math.max(a.length+t,0)),void 0===e)return void 0===t?a:a[t];if(null===t||void 0===a[t])if(u(e)){a=[];for(var s=0,c=e.length;sn)return"Expected "+n+" arguments, got "+r;var i=c.flatten(e.map(function(e,n){var r=e[0],i=e[1],a=t[n];return s.a.validate(a,i).errors.map(function(t){return o(r,t)})}));return i.length>0?i.join(" "):void 0}function o(t,e){var n=a(t,e);if(void 0===e.actual)return"Missing required "+n+".";if(e.expected===s.a.Nil)return"Unexpected "+n+".";var r=s.a.getTypeName(e.expected);return"Unexpected value for "+n+": got "+Object(u.a)(e.actual)+", expected type "+r+"."}function a(t,e){var n="argument '"+t+"'";return 0===e.path.length?n:"key '"+e.path.join("/")+"' in "+n}e.a=r;var s=n(24),u=n(41),c=n(0),l=(n.n(c),n(1))},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";function r(t){try{return Object(u.isFunction)(t)?o(t):Object(u.isObject)(t)?i(t):a(t)}catch(t){return""}}function i(t){var e=t._scrivitoPrivateContent;return e&&Object(u.isFunction)(e.toPrettyPrint)?e.toPrettyPrint():Object(u.isElement)(t)?"[object HTMLElement ".concat(a(t.outerHTML),"]"):a(t)}function o(t){var e=t._scrivitoPrivateSchema;if(e)return"[class ".concat(e.name,"]");if(t.prototype&&t.prototype.isReactComponent){return'[class React.Component "'.concat(t.displayName||t.name,'"]')}return s(t.toString())}function a(t){var e=JSON.stringify(t);return e?s(e):e}function s(t){return t.length>100?"".concat(t.slice(0,100),"..."):t}e.a=r;var u=n(0);n.n(u)},function(t,e,n){"use strict";function r(t){return t.length<2}var i=n(0),o=(n.n(i),function(){function t(t,e){var n={};e._scrivitoPrivateSchema&&i.extend(n,e._scrivitoPrivateSchema.attributes),t.attributes&&i.each(t.attributes,function(t,e){var i=scrivito.typeInfo.normalize(t);if(r(i)){var o={};n[e]=[i[0],o]}else n[e]=i}),this.definition=i.extend({},t,{attributes:n})}return t.forInstance=function(t){return this.forClass(t.constructor)},t.forClass=function(t){return t._scrivitoPrivateSchema},t.basicFieldFor=function(e,n){var r=t.forInstance(e);if(r){var i=r.attributes[n];if(i)return e._scrivitoPrivateContent.field(n,i)}},Object.defineProperty(t.prototype,"attributes",{get:function(){return this.definition.attributes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.definition.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onlyInside",{get:function(){return this.definition.onlyInside},enumerable:!0,configurable:!0}),t.prototype.isBinary=function(){var t=this.definition.attributes.blob;return!!t&&"binary"===t[0]},t}());e.a=o},function(t,e,n){"use strict";function r(t){l=t}n.d(e,"a",function(){return l}),e.b=r;var i=n(154),o=n(177),a=n(178),s=n(179),u=n(180),c=n(181),l={retrieveObj:function(t,e){return Object(i.a)(t),Object(a.a)(e)},retrieveObjQuery:function(t,e){return Object(i.a)(t),Object(s.a)(e)},retrieveFacetQuery:function(t,e){return Object(i.a)(t),Object(u.a)(t,e)},retrieveBinaryMetadata:function(t){return Object(o.a)(t)},retrieveBinaryUrls:function(t,e){return Object(c.a)(t,e)}}},,,,function(t,e,n){"use strict";function r(t){return"_"===t[0]}e.a=r},function(t,e,n){"use strict";function r(t,e){return a(t)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function a(t){if(Array.isArray(t))return t}function s(t){return b.a.isString(t)?t.match(/^-?\d+$/)?y(t):null:y(t)}function u(t){return v(t)&&w<=t&&t<=_}function c(t){return b.a.isNumber(t)&&b.a.isFinite(t)}function l(t){if(!b.a.isString(t))return null;if(!h(t))throw new g.InternalError('The value is not a valid ISO date time: "'.concat(t,'"'));return f(t)}function f(t){if(t){var e=t.match(k),n=r(e,7),i=(n[0],n[1]),o=n[2],a=n[3],s=n[4],u=n[5],c=n[6];return new Date(Date.UTC(i,o-1,a,s,u,c))}}function d(t){var e="".concat(t.getUTCFullYear()).concat(p(t.getUTCMonth()+1)),n="".concat(p(t.getUTCDate())).concat(p(t.getUTCHours())),r="".concat(p(t.getUTCMinutes())).concat(p(t.getUTCSeconds()));return"".concat(e).concat(n).concat(r)}function h(t){return b.a.isString(t)&&t.match(/^\d{14}$/)}function p(t){return t<10?"0".concat(t):t}function v(t){return b.a.isNumber(t)&&b.a.isFinite(t)&&Math.floor(t)===t}function y(t){var e=parseInt(t,10);return 0===e?0:u(e)?e:null}e.b=s,e.f=u,e.e=c,e.a=l,e.g=f,e.c=d,e.d=h;var m=n(0),b=n.n(m),g=n(1),w=-9007199254740991,_=9007199254740991,k=/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)$/},,function(t,e,n){"use strict";function r(t,e){return t.then(function(t){return e(),t},function(t){throw e(),t})}n.d(e,"a",function(){return r})},function(t,e){t.exports=function(t){return t.displayName||t.name||""}},function(t,e,n){var r=n(5),i=n(8);t.exports=function(t,e){r(!(t instanceof e),function(){return"Cannot use the new operator to instantiate the type "+i(e)})}},function(t,e,n){"use strict";function r(t){s=t}n.d(e,"a",function(){return s}),e.b=r;var i=n(0),o=(n.n(i),n(96)),a=function(){function t(){this._replicationCache={},this._disabled=!1,this._writeWriteCallbacks={},this._subscriptionToken=0}return t.prototype.get=function(t){return this._replicationCache[t]||(this._replicationCache[t]=new o.a(t)),this._replicationCache[t]},t.prototype.subscribeWrites=function(t){return this._subscriptionToken+=1,this._writeWriteCallbacks[this._subscriptionToken]=t,this._subscriptionToken},t.prototype.unsubscribeWrites=function(t){delete this._writeWriteCallbacks[t]},t.prototype.isDisabled=function(){return this._disabled},t.prototype.writeStarted=function(t){Object(i.each)(this._writeWriteCallbacks,function(e){e(t)})},t.prototype.disableReplication=function(){this._disabled=!0},t.prototype.enableReplication=function(){this._disabled=!1},t.prototype.clearWriteCallbacks=function(){this._writeWriteCallbacks={}},t.prototype.clearCache=function(){this._replicationCache={}},t}(),s=new a},function(t,e,n){"use strict";function r(t){return a(t)||o(t)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function o(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function a(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:{};u(this,t),this._query=[].concat(e.query||[]),this._batchSize=e.batchSize,this._offset=e.offset,this._sortBy=e.sortBy,this._sortDirection=e.sortDirection,this._includeDeleted=e.includeDeleted}return l(t,[{key:"and",value:function(e,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(s(e,t))this._query=r(this._query).concat(r(e._query));else{var a=f(e,n,i);o&&(d(n),a.boost=b(o)),this._query.push(a)}return this}},{key:"andNot",value:function(t,e,n){var r=f(t,e,n);return h(e),r.negate=!0,this._query.push(r),this}},{key:"offset",value:function(t){return this._offset=t,this}},{key:"order",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc";return this._sortBy=g(t),this._sortDirection=e,this}},{key:"batchSize",value:function(t){return this._batchSize=t,this}},{key:"includeDeleted",value:function(){return this._includeDeleted=!0,this}},{key:"count",value:function(){return this.getObjDataQuery().count()}},{key:"iterator",value:function(){var t=this.getObjDataQuery().iterator();return{next:function(){var e=t.next(),n=e.done,r=e.value;return n?{done:n}:{done:n,value:new w.default(r)}}}}},{key:"getObjDataQuery",value:function(){return k.b(this.params(),this.getBatchSize())}},{key:"getBatchSize",value:function(){return this._batchSize||100}},{key:"facet",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new O.a(g(t),e,this._query).result()}},{key:"store",value:function(t,e){k.d(this.params(),t,e)}},{key:"params",value:function(){return Object(E.omit)({query:this._query,offset:this._offset,sortBy:this._sortBy,sortDirection:this._sortDirection,includeDeleted:this._includeDeleted,batchSize:this._batchSize},E.isUndefined)}}]),t}()},,,,function(t,e,n){"use strict";function r(t){Object(d.a)(function(){return s(t)})}function i(t){var e=c(t);return e.set(null),f.a.get(t).notifyBackendState(null),e}function o(t){var e=t._id;c(e).isAvailable()||a(e,t),f.a.get(e).notifyBackendState(t)}function a(t,e){c(t).set(e)}function s(t){var e=c(t);if(e.ensureAvailable())return e}function u(){return h.b.subState("objData")}function c(t){return new l.a(t,u().subState(t))}e.c=r,e.a=i,e.e=o,e.d=a,e.b=s;var l=n(174),f=n(53),d=n(7),h=n(4)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}n.d(e,"d",function(){return l}),n.d(e,"e",function(){return f}),n.d(e,"b",function(){return d}),n.d(e,"c",function(){return h}),n.d(e,"a",function(){return p});var i=n(24),o=n(3),a=n(32),s=n(34),u=n(54),c=n(26),l=i.a.irreducible("Obj",function(t){return r(t&&t._scrivitoPrivateContent,o.default)}),f=i.a.irreducible("Widget",function(t){return r(t&&t._scrivitoPrivateContent,a.a)}),d=i.a.irreducible("Link",function(t){return r(t&&t._scrivitoPrivateContent,s.a)}),h=i.a.irreducible("ObjSearch",function(t){return r(t._scrivitoPrivateContent,u.b)}),p=i.a.irreducible("Binary",function(t){return r(t,c.a)})},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(){var t=M.current();return t||o(d())}function o(t){var e=t.objId;if(null===e)return e;if(e)try{return scrivito.loadWithDefault(void 0,function(){var t=Object(P.a)().appModelAccessor,n=Object(P.a)().Obj,r=t.getObj(n,e);if(r)return r;throw new A.ResourceNotFoundError('Obj with id "'.concat(e,'" not found.'))})}catch(t){return void Object(D.a)(function(){return y(R,t)})}}function a(t,e){return M.runWith(t,e)}function s(){return d().queryParameters||{}}function u(){return d().error}function c(t){l(t,function(t){var e=t.obj,n=t.queryParameters,r=t.hash;e&&Object(L.e)({obj:e,queryParameters:n,hash:r})})}function l(t,e){if(!Object(E.isFunction)(t))throw new A.ArgumentError("Parameter fn needs to be a function.");var n=p(),i=Object(T.a)(t).then(function(t){if(t.obj)return Object(T.a)(function(){return g(t.obj,t.queryParameters,t.hash)}).then(function(t){var r=t.obj,i=t.url,o=t.queryParameters,a=t.hash;i?v(n,function(){e&&e({obj:r,queryParameters:o,hash:a}),scrivito.changeLocation(i)}):v(n,function(){e&&e({obj:r,queryParameters:o,hash:a}),m({obj:r,queryParameters:o,hash:a})})});y(n,new A.CurrentPageNotFoundError)}).catch(function(t){r(t,A.NavigateToEmptyBinaryError)||(Object(D.b)(t),y(n,t))});Object(N.b)(i)}function f(){return I.a.subState("currentPage")}function d(){return f().get()||{}}function h(t){f().set(t)}function p(){return R+=1}function v(t,e){R===t&&e()}function y(t,e){v(t,function(){h({objId:null,error:e}),b(null)})}function m(t){var e=t.obj,n=t.queryParameters,r=t.hash,i=e&&e.id()||null;h({objId:i,queryParameters:n,hash:r}),b(i)}function b(t){q.b&&q.b.setCurrentPageId(t)}function g(t,e,n){return k(t),null===t?{}:r(t,x.default)?w(t,e,n):r(t,S.a)?_(t,e,n):void 0}function w(t,e,n){if(O(t)){var r=t.get("blob",["binary"]);if(!r)throw new A.NavigateToEmptyBinaryError;return{url:r.url()}}return{obj:t,queryParameters:e,hash:n}}function _(t,e,n){if(t.isExternal())return{url:t.url()};var r={obj:t.obj(),queryParameters:t.queryParameters(),hash:t.hash()};return e&&!Object(E.isEmpty)(e)&&(r.queryParameters=e),n&&(r.hash=n),g(r.obj,r.queryParameters,r.hash)}function k(t){if(null!==t&&!r(t,x.default)&&!r(t,S.a)){if(!t)throw new A.ArgumentError("Missing target.");throw new A.ArgumentError("Target is invalid. Valid targets are instances of Obj or Link.")}}function O(t){var e=Object(P.a)().getClass(t.objClass());return!!e&&j.a.forClass(e).isBinary()}e.a=i,e.f=a,e.c=s,e.b=u,e.d=c,e.e=l;var E=n(0),x=(n.n(E),n(3)),C=n(69),j=n(42),S=n(34),A=n(1),T=n(7),N=n(81),P=n(61),L=n(72),I=n(4),D=n(37),q=n(17),R=0,M=new C.a},function(t,e,n){"use strict";function r(){return a}n.d(e,"a",function(){return r});var i=n(295),o=n(221),a={};i.a.init(a).setInitialContentFor(o.a)},function(t,e,n){"use strict";function r(){return Object(i.a)()._privateRealm._registry}n.d(e,"a",function(){return r});var i=n(61)},function(t,e,n){"use strict";function r(t){var e=t.routingBasePath;O=!0,y=e||""}function i(t){var e=t.obj,n=t.queryParameters,r=t.hash;return l("generate"),s({path:w.a(e),queryParameters:n,hash:r})}function o(t){var e=t.obj,n=t.queryParameters,r=t.hash;return l("generateRelative"),p({path:w.a(e),queryParameters:n,hash:r}).toString()}function a(t,e){var n=b()(e);return s({path:t,queryParameters:n.query(!0),hash:v(n)})}function s(t){var e=t.path,n=t.queryParameters,r=t.hash;l("generateUrl");var i=b()(_.c()).origin();return p({path:e,queryParameters:n,hash:r}).origin(i).toString()}function u(t){l("recognize");var e=null,n=b()(t),r=c(n);return Object(g.isString)(r)&&(e=w.c(r)),{path:r,obj:e,queryParameters:n.query(!0),hash:v(n)}}function c(t){return d(t)?h(t):null}function l(t){if(!O)throw scrivito.logError("Error from Scrivito SDK: No application configured, cannot initialize routing."),new k.InternalError("".concat(t," can't be called before init."))}function f(t){return d(b()(t))}function d(t){if(!t.is("absolute"))return!0;var e=b()(_.c()).origin();return t.origin()===e}function h(t){var e=t.path();return e.substring(0,y.length)!==y?null:e.substring(y.length)}function p(t){var e=t.path,n=t.queryParameters,r=t.hash,i="/".concat(y,"/").concat(e).replace(/\/+/g,"/"),o=b()("").pathname(i);return n&&o.query(n),r&&o.hash(r),o}function v(t){var e=t.hash();return""===e?null:e}e.e=r,e.a=i,e.c=o,e.b=a,e.d=s,e.h=u,e.i=c,e.g=f,e.f=d;var y,m=n(33),b=n.n(m),g=n(0),w=(n.n(g),n(223)),_=n(70),k=n(1),O=!1},,function(t,e){t.exports=function(t){return"string"==typeof t}},function(t,e){t.exports=function(t){return!0===t||!1===t}},function(t,e,n){var r=n(16),i=n(10);t.exports=r("Function",i)},,function(t,e,n){"use strict";var r=function(){function t(){}return t.prototype.current=function(){return this.currentContext},t.prototype.runWith=function(t,e){var n=this.currentContext;try{return this.currentContext=t,e()}finally{this.currentContext=n}},t}();e.a=r},function(t,e,n){"use strict";function r(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window).devicePixelRatio||1}function i(){return window.location}function o(t){window.location.assign(t)}function a(){return window.screen}function s(){return document}n.d(e,"a",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"d",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"b",function(){return s})},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};i(this,t);var r;if(e.idToCopy)this.idToCopy=e.idToCopy,this.contentType=n.contentType,r=n.filename;else{var o=e.source;this.source=o,this.contentType=n.contentType||o.type,r=n.filename||o.name}r&&(this.filename=r.replace(/[^\w\-_\.$]/g,"-"))}return a(t,[{key:"into",value:function(t){return d(t),Object(l.d)("Changing CMS content"),this.intoId(t.id())}},{key:"intoId",value:function(t){var e;return e=this.idToCopy?scrivito.BinaryRequest.copy(this.idToCopy,t,this.filename,this.contentType):scrivito.BinaryRequest.upload(t,this.source,this.filename,this.contentType),e.then(function(t){var e=t.id;return new s.a(e,!1)})}}]),t}(),d=Object(u.a)("FutureBinary#into",[["target",c.d]],{docPermalink:"js-sdk/FutureBinary-into"});e.a=f},function(t,e,n){"use strict";function r(t){y.push(t)}function i(t){var e=t.obj,n=t.queryParameters,r=t.hash,i=r||null,o={scrivitoObjId:e.id(),scrivitoQueryParameters:n,scrivitoHash:i},a=Object(k.c)({obj:e,queryParameters:n,hash:i}),s=y.location.state;d(s)&&s.scrivitoObjId===o.scrivitoObjId&&s.scrivitoHash===o.scrivitoHash&&Object(b.isEqual)(s.scrivitoQueryParameters,o.scrivitoQueryParameters)||p(function(){return y.push(a,o)})}function o(t){var e=t.obj,n=t.queryParameters,r=t.hash,i=r||null,o={scrivitoObjId:e.id(),scrivitoQueryParameters:n,scrivitoHash:i},a=Object(k.c)({obj:e,queryParameters:n,hash:i});p(function(){return y.replace(a,o)})}function a(){Object(O.d)(function(){var t=h(y.location),e=t.obj,n=t.queryParameters,r=t.hash;return e?{obj:e,queryParameters:n,hash:r}:{queryParameters:n,hash:r}})}function s(){x||(l(),x=!0)}function u(){m&&m(),Object(O.e)(function(){return{obj:null}}),x=!1}function c(t){if("/"!==t.createHref({pathname:"/"}))throw new _.ArgumentError("Expected a history without a preconfigured basename. For further details, see: https://www.scrivito.com/js-sdk/useHistory");y=t,x&&l()}function l(){m&&m(),v(),m=y.listen(function(t,e){if(!E){if("POP"===e){f({state:t.state})}"REPLACE"===e&&Object(O.d)(function(){return h(t)}),"PUSH"===e&&Object(O.d)(function(){return h(t)})}}),a()}function f(t){var e=t.state;if(!d(e))return void a();var n=e.scrivitoObjId,r=e.scrivitoHash,i=e.scrivitoQueryParameters;Object(O.d)(function(){return{obj:w.default.get(n),queryParameters:i,hash:r}})}function d(t){return t&&void 0!==t.scrivitoObjId}function h(t){var e=t.pathname,n=t.search,r=t.hash;return Object(k.h)(""+e+n+r)}function p(t){E=!0,t(),E=!1}function v(){y||(y=Object(g.a)())}e.c=r,e.d=i,e.e=o,e.a=s,e.b=u,e.f=c;var y,m,b=n(0),g=(n.n(b),n(303)),w=n(3),_=n(1),k=n(63),O=n(60),E=!1,x=!1},function(t,e,n){(function(e){/*! * Quill Editor v1.3.5 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen * Copyright (c) 2013, salesforce.com */ !function(e,n){t.exports=n()}(0,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=109)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),u=n(47),c=n(48),l=n(49),f=n(12),d=n(31),h=n(32),p=n(30),v=n(1),y={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:c.default,Scroll:a.default,Block:u.default,Inline:s.default,Text:l.default,Attributor:{Attribute:f.default,Class:d.default,Style:h.default,Store:p.default}};e.default=y},function(t,e,n){"use strict";function r(t,e){var n=o(t);if(null==n)throw new u("Unable to create "+t+" blot");var r=n;return new r(t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e),e)}function i(t,n){return void 0===n&&(n=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:n?i(t.parentNode,n):null}function o(t,e){void 0===e&&(e=h.ANY);var n;if("string"==typeof t)n=d[t]||c[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=d.text;else if("number"==typeof t)t&h.LEVEL&h.BLOCK?n=d.block:t&h.LEVEL&h.INLINE&&(n=d.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=l[r[i]])break;n=n||f[t.tagName]}return null==n?null:e&h.LEVEL&n.scope&&e&h.TYPE&n.scope?n:null}function a(){for(var t=[],e=0;e1)return t.map(function(t){return a(t)});var n=t[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new u("Invalid definition");if("abstract"===n.blotName)throw new u("Cannot register abstract class");if(d[n.blotName||n.attrName]=n,"string"==typeof n.keyName)c[n.keyName]=n;else if(null!=n.className&&(l[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map(function(t){return t.toUpperCase()}):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach(function(t){null!=f[t]&&null!=n.className||(f[t]=n)})}return n}var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var u=function(t){function e(e){var n=this;return e="[Parchment] "+e,n=t.call(this,e)||this,n.message=e,n.name=n.constructor.name,n}return s(e,t),e}(Error);e.ParchmentError=u;var c={},l={},f={},d={};e.DATA_KEY="__blot";var h;!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"}(h=e.Scope||(e.Scope={})),e.create=r,e.find=i,e.query=o,e.register=a},function(t,e,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),u=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};u.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},u.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},u.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},u.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=o(!0,{},t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(i(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.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},u.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},u.prototype.filter=function(t){return this.ops.filter(t)},u.prototype.forEach=function(t){this.ops.forEach(t)},u.prototype.map=function(t){return this.ops.map(t)},u.prototype.partition=function(t){var e=[],n=[];return this.forEach(function(r){(t(r)?e:n).push(r)}),[e,n]},u.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},u.prototype.changeLength=function(){return this.reduce(function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t},0)},u.prototype.length=function(){return this.reduce(function(t,e){return t+a.length(e)},0)},u.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=a.iterator(this.ops),i=0;i0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},u.prototype.diff=function(t,e){if(this.ops===t.ops)return new u;var n=[this,t].map(function(e){return e.map(function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:s;var r=e===t?"on":"with";throw new Error("diff() called "+r+" non-document")}).join("")}),o=new u,c=r(n[0],n[1],e),l=a.iterator(this.ops),f=a.iterator(t.ops);return c.forEach(function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),o.push(f.next(n));break;case r.DELETE:n=Math.min(e,l.peekLength()),l.next(n),o.delete(n);break;case r.EQUAL:n=Math.min(l.peekLength(),f.peekLength(),e);var s=l.next(n),u=f.next(n);i(s.insert,u.insert)?o.retain(n,a.attributes.diff(s.attributes,u.attributes)):o.push(u).delete(n)}e-=n}}),o.chop()},u.prototype.eachLine=function(t,e){e=e||"\n";for(var n=a.iterator(this.ops),r=new u,i=0;n.hasNext();){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),c="string"==typeof o.insert?o.insert.indexOf(e,s)-s:-1;if(c<0)r.push(n.next());else if(c>0)r.push(n.next(c));else{if(!1===t(r,n.next(1).attributes||{},i))return;i+=1,r=new u}}r.length()>0&&t(r,{},i)},u.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=a.iterator(this.ops),r=a.iterator(t.ops),i=new u;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),c=r.next(o);if(s.delete)continue;c.delete?i.push(c):i.retain(o,a.attributes.transform(s.attributes,c.attributes,e))}else i.retain(a.length(n.next()));return i.chop()},u.prototype.transformPosition=function(t,e){e=!!e;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,f.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:s(t.parent,e))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var u=function(){function t(t,e){for(var n=0;n0&&(t1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},i}}]),e}(v.default.Block);O.blotName="block",O.tagName="P",O.defaultChild="break",O.allowedChildren=[g.default,v.default.Embed,_.default],e.bubbleFormats=s,e.BlockEmbed=k,e.default=O},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(e=(0,C.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e),e.theme&&e.theme!==P.DEFAULTS.theme){if(e.theme=P.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=T.default;var n=(0,C.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach(function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach(function(e){!0===t.modules[e]&&(t.modules[e]={})})});var r=Object.keys(n.modules).concat(Object.keys(e.modules)),i=r.reduce(function(t,e){var n=P.import("modules/"+e);return null==n?N.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t},{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,C.default)(!0,{},P.DEFAULTS,{modules:i},n,e),["bounds","container","scrollingContainer"].forEach(function(t){"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),e.modules=Object.keys(e.modules).reduce(function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t},{}),e}function s(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===b.default.sources.USER)return new p.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,a=t();if(null!=i&&(!0===n&&(n=i.index),null==r?i=c(i,a,e):0!==r&&(i=c(i,n,r,e)),this.setSelection(i,b.default.sources.SILENT)),a.length()>0){var s,u=[b.default.events.TEXT_CHANGE,a,o,e];if((s=this.emitter).emit.apply(s,[b.default.events.EDITOR_CHANGE].concat(u)),e!==b.default.sources.SILENT){var l;(l=this.emitter).emit.apply(l,u)}}return a}function u(t,e,n,r,i){var o={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(i=r,r=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(i=r,r=n,n=e,e=0),"object"===(void 0===n?"undefined":l(n))?(o=n,i=r):"string"==typeof n&&(null!=r?o[n]=r:i=n),i=i||b.default.sources.API,[t,e,o,i]}function c(t,e,n,r){if(null==t)return null;var i=void 0,o=void 0;if(e instanceof p.default){var a=[t.index,t.index+t.length].map(function(t){return e.transformPosition(t,r!==b.default.sources.USER)}),s=f(a,2);i=s[0],o=s[1]}else{var u=[t.index,t.index+t.length].map(function(t){return t=0?t+n:Math.max(e,t+n)}),c=f(u,2);i=c[0],o=c[1]}return new O.Range(i,o-i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(o(this,t),this.options=a(e,r),this.container=this.options.container,null==this.container)return N.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=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 b.default,this.scroll=k.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new y.default(this.scroll),this.selection=new E.default(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.theme.init(),this.emitter.on(b.default.events.EDITOR_CHANGE,function(t){t===b.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())}),this.emitter.on(b.default.events.SCROLL_UPDATE,function(t,e){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;s.call(n,function(){return n.editor.update(null,e,i)},t)});var u=this.clipboard.convert("
"+i+"


");this.setContents(u),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return d(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),S.default.level(t)}},{key:"find",value:function(t){return t.__quill||k.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&N.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var i=t.attrName||t.blotName;"string"==typeof i?this.register("formats/"+i,t,e):Object.keys(t).forEach(function(r){n.register(r,t[r],e)})}else null==this.imports[t]||r||N.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?k.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),d(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,i=u(t,e,n),o=f(i,4);return t=o[0],e=o[1],n=o[3],s.call(this,function(){return r.editor.deleteText(t,e)},n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b.default.sources.API;return s.call(this,function(){var r=n.getSelection(!0),o=new p.default;if(null==r)return o;if(k.default.query(t,k.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,i({},t,e));else{if(0===r.length)return n.selection.format(t,e),o;o=n.editor.formatText(r.index,r.length,i({},t,e))}return n.setSelection(r,b.default.sources.SILENT),o},r)}},{key:"formatLine",value:function(t,e,n,r,i){var o=this,a=void 0,c=u(t,e,n,r,i),l=f(c,4);return t=l[0],e=l[1],a=l[2],i=l[3],s.call(this,function(){return o.editor.formatLine(t,e,a)},i,t,0)}},{key:"formatText",value:function(t,e,n,r,i){var o=this,a=void 0,c=u(t,e,n,r,i),l=f(c,4);return t=l[0],e=l[1],a=l[2],i=l[3],s.call(this,function(){return o.editor.formatText(t,e,a)},i,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=u(t,e),r=f(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=u(t,e),r=f(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return s.call(this,function(){return i.editor.insertEmbed(e,n,r)},o,e)}},{key:"insertText",value:function(t,e,n,r,i){var o=this,a=void 0,c=u(t,0,n,r,i),l=f(c,4);return t=l[0],a=l[2],i=l[3],s.call(this,function(){return o.editor.insertText(t,e,a)},i,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,i=u(t,e,n),o=f(i,4);return t=o[0],e=o[1],n=o[3],s.call(this,function(){return r.editor.removeFormat(t,e)},n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.sources.API;return s.call(this,function(){t=new p.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),i=e.editor.applyDelta(t),o=i.ops[i.ops.length-1];return null!=o&&"string"==typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),i.delete(1)),r.compose(i)},n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var i=u(e,n,r),o=f(i,4);e=o[0],n=o[1],r=o[3],this.selection.setRange(new O.Range(e,n),r),r!==b.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.sources.API,n=(new p.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.sources.API;return s.call(this,function(){return t=new p.default(t),e.editor.applyDelta(t,n)},n,!0)}}]),t}();P.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},P.events=b.default.events,P.sources=b.default.sources,P.version="1.3.5",P.imports={delta:p.default,parchment:k.default,"core/module":w.default,"core/theme":T.default},e.expandConfig=a,e.overload=u,e.default=P},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),i=e.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t1?e-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};i.DEFAULTS={},e.default=i},function(t,e,n){"use strict";function r(t){if(o.indexOf(t)<=o.indexOf(a)){for(var e,n=arguments.length,r=Array(n>1?n-1:0),i=1;i0&&"number"!=typeof t[0]))}function o(t,e,n){var o,l;if(r(t)||r(e))return!1;if(t.prototype!==e.prototype)return!1;if(u(t))return!!u(e)&&(t=a.call(t),e=a.call(e),c(t,e,n));if(i(t)){if(!i(e))return!1;if(t.length!==e.length)return!1;for(o=0;o=0;o--)if(f[o]!=d[o])return!1;for(o=f.length-1;o>=0;o--)if(l=f[o],!c(t[l],e[l],n))return!1;return typeof t==typeof e}var a=Array.prototype.slice,s=n(52),u=n(53),c=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:o(t,e,n))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,function(t){return t.name})},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var s=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function t(t,e){for(var n=0;n=t+n)){var a=this.newlineIndex(t,!0)+1,s=o-a+1,u=this.isolate(a,s),c=u.next;u.format(r,i),c instanceof e&&c.formatAt(0,t-a+n-s,r,i)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var r=this.descendant(g.default,t),i=s(r,2),o=i[0],a=i[1];o.insertAt(a,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var e=this.domNode.textContent.slice(t).indexOf("\n");return e>-1?t+e:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(h.default.create("text","\n")),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(t){var e=h.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof h.default.Embed?e.remove():e.unwrap()})}}],[{key:"create",value:function(t){var n=c(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(v.default);_.blotName="code-block",_.tagName="PRE",_.TAB=" ",e.Code=w,e.default=_},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return Object.keys(e).reduce(function(n,r){return null==t[r]?n:(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]],n)},{})}function s(t){return t.reduce(function(t,e){if(1===e.insert){var n=(0,C.default)(e.attributes);return delete n.image,t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,C.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"==typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)},new d.default)}Object.defineProperty(e,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function t(t,e){for(var n=0;n=r&&!s.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,s);var l=e.scroll.line(t),f=c(l,2),d=f[0],h=f[1],v=(0,T.default)({},(0,_.bubbleFormats)(d));if(d instanceof k.default){var m=d.descendant(y.default.Leaf,h),b=c(m,1),g=b[0];v=(0,T.default)(v,(0,_.bubbleFormats)(g))}a=p.default.attributes.diff(v,a)||{}}else if("object"===u(i.insert)){var w=Object.keys(i.insert)[0];if(null==w)return t;e.scroll.insertAt(t,w,i.insert[w])}r+=o}return Object.keys(a).forEach(function(n){e.scroll.formatAt(t,o,n,a[n])}),t+o},0),t.reduce(function(t,n){return"number"==typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)},0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new d.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach(function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(t,Math.max(e,1)),a=e;o.forEach(function(e){var o=e.length();if(e instanceof b.default){var s=t-e.offset(n.scroll),u=e.newlineIndex(s+a)-s+1;e.formatAt(s,u,i,r[i])}else e.format(i,r[i]);a-=o})}}),this.scroll.optimize(),this.update((new d.default).retain(t).retain(e,(0,C.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach(function(i){n.scroll.formatAt(t,e,i,r[i])}),this.update((new d.default).retain(t).retain(e,(0,C.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(t,e){return t.concat(e.delta())},new d.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach(function(t){var e=c(t,1),i=e[0];i instanceof k.default?n.push(i):i instanceof y.default.Leaf&&r.push(i)}):(n=this.scroll.lines(t,e),r=this.scroll.descendants(y.default.Leaf,t,e));var i=[n,r].map(function(t){if(0===t.length)return{};for(var e=(0,_.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=a((0,_.bubbleFormats)(n),e)}return e});return T.default.apply(T.default,i)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter(function(t){return"string"==typeof t.insert}).map(function(t){return t.insert}).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new d.default).retain(t).insert(i({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach(function(i){n.scroll.formatAt(t,e.length,i,r[i])}),this.update((new d.default).retain(t).insert(e,(0,C.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===k.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof E.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),i=c(r,2),o=i[0],a=i[1],s=0,u=new d.default;null!=o&&(s=o instanceof b.default?o.newlineIndex(a)-a+1:o.length()-a,u=o.delta().slice(a,a+s-1).insert("\n"));var l=this.getContents(t,e+s),f=l.diff((new d.default).insert(n).concat(u)),h=(new d.default).retain(t).concat(f);return this.applyDelta(h)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(N)&&y.default.find(e[0].target)){var i=y.default.find(e[0].target),o=(0,_.bubbleFormats)(i),a=i.offset(this.scroll),s=e[0].oldValue.replace(w.default.CONTENTS,""),u=(new d.default).insert(s),c=(new d.default).insert(i.value());t=(new d.default).retain(a).concat(u.diff(c,n)).reduce(function(t,e){return e.insert?t.insert(e.insert,o):t.push(e)},new d.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,S.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();e.default=P},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:0;o(this,t),this.index=e,this.length=n},_=function(){function t(e,n){var r=this;o(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=l.default.create("cursor",this),this.lastRange=this.savedRange=new w(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){r.mouseDown||setTimeout(r.update.bind(r,y.default.sources.USER),1)}),this.emitter.on(y.default.events.EDITOR_CHANGE,function(t,e){t===y.default.events.TEXT_CHANGE&&e.length()>0&&r.update(y.default.sources.SILENT)}),this.emitter.on(y.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(y.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}})}}),this.emitter.on(y.default.events.SCROLL_OPTIMIZE,function(t,e){if(e.range){var n=e.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}}),this.update(y.default.sources.SILENT)}return u(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",function(){t.composing=!0}),this.root.addEventListener("compositionend",function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout(function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,function(){t.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){t.mouseDown=!1,t.update(y.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!l.default.query(t,l.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=l.default.find(n.start.node,!1);if(null==r)return;if(r instanceof l.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.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()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var r=void 0,i=this.scroll.leaf(t),o=s(i,2),a=o[0],u=o[1];if(null==a)return null;var c=a.position(u,!0),l=s(c,2);r=l[0],u=l[1];var f=document.createRange();if(e>0){f.setStart(r,u);var d=this.scroll.leaf(t+e),h=s(d,2);if(a=h[0],u=h[1],null==a)return null;var p=a.position(u,!0),v=s(p,2);return r=v[0],u=v[1],f.setEnd(r,u),f.getBoundingClientRect()}var y="left",m=void 0;return r instanceof Text?(u0&&(y="right")),{bottom:m.top+m.height,height:m.height,left:m[y],right:m[y],top:m.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return g.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var r=n.map(function(t){var n=s(t,2),r=n[0],i=n[1],o=l.default.find(r,!0),a=o.offset(e.scroll);return 0===i?a:o instanceof l.default.Container?a+o.length():a+o.index(r,i)}),o=Math.min(Math.max.apply(Math,i(r)),this.scroll.length()-1),a=Math.min.apply(Math,[o].concat(i(r)));return new w(a,o-a)}},{key:"normalizeNative",value:function(t){if(!a(this.root,t.startContainer)||!t.collapsed&&!a(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach(function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n}),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],r=[],i=this.scroll.length();return n.forEach(function(t,n){t=Math.min(i-1,t);var o=void 0,a=e.scroll.leaf(t),u=s(a,2),c=u[0],l=u[1],f=c.position(l,0!==n),d=s(f,2);o=d[0],l=d[1],r.push(o,l)}),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var r=this.scroll.length()-1,i=this.scroll.line(Math.min(e.index,r)),o=s(i,1),a=o[0],u=a;if(e.length>0){var c=this.scroll.line(Math.min(e.index+e.length,r));u=s(c,1)[0]}if(null!=a&&null!=u){var l=t.getBoundingClientRect();n.topl.bottom&&(t.scrollTop+=n.bottom-l.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(g.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y.default.sources.API;if("string"==typeof e&&(n=e,e=!1),g.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,i(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y.default.sources.USER,e=this.lastRange,n=this.getRange(),r=s(n,2),i=r[0],o=r[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,p.default)(e,this.lastRange)){var a;!this.composing&&null!=o&&o.native.collapsed&&o.start.node!==this.cursor.textNode&&this.cursor.restore();var u=[y.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(e),t];if((a=this.emitter).emit.apply(a,[y.default.events.EDITOR_CHANGE].concat(u)),t!==y.default.sources.SILENT){var c;(c=this.emitter).emit.apply(c,u)}}}}]),t}();e.Range=w,e.default=_},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t;var t},e.scope=o.Scope.INLINE_BLOT,e}(i.default);e.default=a},function(t,e,n){function r(t){this.ops=t,this.index=0,this.offset=0}var i=n(11),o=n(3),a={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=o(!0,{},e);n||(r=Object.keys(r).reduce(function(t,e){return null!=r[e]&&(t[e]=r[e]),t},{}));for(var i in t)void 0!==t[i]&&void 0===e[i]&&(r[i]=t[i]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce(function(n,r){return i(t[r],e[r])||(n[r]=void 0===e[r]?null:e[r]),n},{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!=typeof t)return e;if("object"==typeof e){if(!n)return e;var r=Object.keys(e).reduce(function(n,r){return void 0===t[r]&&(n[r]=e[r]),n},{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new r(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=a.length(e);if(t>=r-n?(t=r-n,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(n,t):i.insert=e.insert,i}return{retain:1/0}},r.prototype.peek=function(){return this.ops[this.index]},r.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},r.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.exports=a},function(t,n){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}function n(r,i,o,a,f){function d(r,o){if(null===r)return null;if(0===o)return r;var y,m;if("object"!=typeof r)return r;if(t(r,u))y=new u;else if(t(r,c))y=new c;else if(t(r,l))y=new l(function(t,e){r.then(function(e){t(d(e,o-1))},function(t){e(d(t,o-1))})});else if(n.__isArray(r))y=[];else if(n.__isRegExp(r))y=new RegExp(r.source,s(r)),r.lastIndex&&(y.lastIndex=r.lastIndex);else if(n.__isDate(r))y=new Date(r.getTime());else{if(v&&e.isBuffer(r))return y=new e(r.length),r.copy(y),y;t(r,Error)?y=Object.create(r):void 0===a?(m=Object.getPrototypeOf(r),y=Object.create(m)):(y=Object.create(a),m=a)}if(i){var b=h.indexOf(r);if(-1!=b)return p[b];h.push(r),p.push(y)}t(r,u)&&r.forEach(function(t,e){var n=d(e,o-1),r=d(t,o-1);y.set(n,r)}),t(r,c)&&r.forEach(function(t){var e=d(t,o-1);y.add(e)});for(var g in r){var w;m&&(w=Object.getOwnPropertyDescriptor(m,g)),w&&null==w.set||(y[g]=d(r[g],o-1))}if(Object.getOwnPropertySymbols)for(var _=Object.getOwnPropertySymbols(r),g=0;g<_.length;g++){var k=_[g],O=Object.getOwnPropertyDescriptor(r,k);(!O||O.enumerable||f)&&(y[k]=d(r[k],o-1),O.enumerable||Object.defineProperty(y,k,{enumerable:!1}))}if(f)for(var E=Object.getOwnPropertyNames(r),g=0;g0){if(o instanceof v.BlockEmbed||f instanceof v.BlockEmbed)return void this.optimize();if(o instanceof w.default){var d=o.newlineIndex(o.length(),!0);if(d>-1&&(o=o.split(d+1))===f)return void this.optimize()}else if(f instanceof w.default){var h=f.newlineIndex(0);h>-1&&f.split(h+1)}var p=f.children.head instanceof b.default?null:f.children.head;o.moveChildren(f,p),o.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,i){(null==this.whitelist||this.whitelist[r])&&(l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==d.default.query(n,d.default.Scope.BLOCK)){var i=d.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var o=d.default.create(n,r);this.appendChild(o)}else l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===d.default.Scope.INLINE_BLOT){var r=d.default.create(this.statics.defaultChild);r.appendChild(t),t=r}l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(s,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return function t(e,n,r){var i=[],o=r;return e.children.forEachAt(n,r,function(e,n,r){s(e)?i.push(e):e instanceof d.default.Container&&(i=i.concat(t(e,n,o))),o-=r}),i}(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(p.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=p.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(p.default.events.SCROLL_BEFORE_UPDATE,n,t),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(p.default.events.SCROLL_UPDATE,n,t)}}}]),e}(d.default.Scroll);O.blotName="scroll",O.className="ql-editor",O.tagName="DIV",O.defaultChild="block",O.allowedChildren=[y.default,v.BlockEmbed,k.default],e.default=O},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},c=function(){function t(t,e){for(var n=0;n-1}Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var s=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,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))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":i(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var 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);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=r(i),a=n(5),s=r(a),u=n(4),c=r(u),l=n(16),f=r(l),d=n(24),h=r(d),p=n(23),v=r(p),y=n(35),m=r(y),b=n(6),g=r(b),w=n(22),_=r(w),k=n(7),O=r(k),E=n(55),x=r(E),C=n(42),j=r(C),S=n(34),A=r(S);s.default.register({"blots/block":c.default,"blots/block/embed":u.BlockEmbed,"blots/break":f.default,"blots/container":h.default,"blots/cursor":v.default,"blots/embed":m.default,"blots/inline":g.default,"blots/scroll":_.default,"blots/text":O.default,"modules/clipboard":x.default,"modules/history":j.default,"modules/keyboard":A.default}),o.default.register(c.default,f.default,v.default,g.default,_.default,O.default),e.default=s.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),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},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,i){var o=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},t.prototype.insertAt=function(t,e,n){var i=null==n?r.create("text",e):r.create(e,n),o=this.split(t);this.parent.insertBefore(i,o)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),null!=this.next&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"==typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),i=n(31),o=n(32),a=n(1),s=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(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])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);e.concat(n).concat(s).forEach(function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)})},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach(function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)})},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce(function(e,n){return e[n]=t.attributes[n].value(t.domNode),e},{})},t}();e.default=s},function(t,e,n){"use strict";function r(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(function(t){return 0===t.indexOf(e+"-")})}var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){r(t,this.keyName).forEach(function(e){t.classList.remove(e)}),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=r(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(o.default);e.default=a},function(t,e,n){"use strict";function r(t){var e=t.split("-"),n=e.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return e[0]+n}var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map(function(t){return t.split(":")[0].trim()})},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[r(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[r(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[r(this.keyName)];return this.canAdd(t,e)?e:""},e}(o.default);e.default=a},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n1){var c=i.formats(),l=this.quill.getFormat(t.index-1,1);o=S.default.attributes.diff(c,l)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,P.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(t.index-f,f,o,P.default.sources.USER),this.quill.focus()}}function l(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},i=0,o=this.quill.getLine(t.index),a=m(o,1),s=a[0];if(e.offset>=s.length()-1){var u=this.quill.getLine(t.index+1),c=m(u,1),l=c[0];if(l){var f=s.formats(),d=this.quill.getFormat(t.index,1);r=S.default.attributes.diff(f,d)||{},i=l.length()}}this.quill.deleteText(t.index,n,P.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+i-1,n,r,P.default.sources.USER)}}function f(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),i=e[e.length-1].formats();n=S.default.attributes.diff(i,r)||{}}this.quill.deleteText(t,P.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,P.default.sources.USER),this.quill.setSelection(t.index,P.default.sources.SILENT),this.quill.focus()}function d(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce(function(t,n){return T.default.query(n,T.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t},{});this.quill.insertText(t.index,"\n",r,P.default.sources.USER),this.quill.setSelection(t.index+1,P.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach(function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],P.default.sources.USER))})}function h(t){return{key:B.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=T.default.query("code-block"),r=e.index,i=e.length,o=this.quill.scroll.descendant(n,r),a=m(o,2),s=a[0],u=a[1];if(null!=s){var c=this.quill.getIndex(s),l=s.newlineIndex(u,!0)+1,f=s.newlineIndex(c+u+i),d=s.domNode.textContent.slice(l,f).split("\n");u=0,d.forEach(function(e,o){t?(s.insertAt(l+u,n.TAB),u+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):e.startsWith(n.TAB)&&(s.deleteAt(l+u,n.TAB.length),u-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),u+=e.length+1}),this.quill.update(P.default.sources.USER),this.quill.setSelection(r,i,P.default.sources.SILENT)}}}}function p(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],P.default.sources.USER)}}}function v(t){if("string"==typeof t||"number"==typeof t)return v({key:t});if("object"===(void 0===t?"undefined":y(t))&&(t=(0,w.default)(t,!1)),"string"==typeof t.key)if(null!=B.keys[t.key.toUpperCase()])t.key=B.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[M]=t.shortKey,delete t.shortKey),t}Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=v(t);if(null==r||null==r.key)return R.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,E.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",function(n){if(!n.defaultPrevented){var r=n.which||n.keyCode,i=(t.bindings[r]||[]).filter(function(t){return e.match(n,t)});if(0!==i.length){var o=t.quill.getSelection();if(null!=o&&t.quill.hasFocus()){var a=t.quill.getLine(o.index),s=m(a,2),u=s[0],c=s[1],l=t.quill.getLeaf(o.index),f=m(l,2),d=f[0],h=f[1],p=0===o.length?[d,h]:t.quill.getLeaf(o.index+o.length),v=m(p,2),b=v[0],g=v[1],w=d instanceof T.default.Text?d.value().slice(0,h):"",_=b instanceof T.default.Text?b.value().slice(g):"",O={collapsed:0===o.length,empty:0===o.length&&u.length()<=1,format:t.quill.getFormat(o),offset:c,prefix:w,suffix:_};i.some(function(e){if(null!=e.collapsed&&e.collapsed!==O.collapsed)return!1;if(null!=e.empty&&e.empty!==O.empty)return!1;if(null!=e.offset&&e.offset!==O.offset)return!1;if(Array.isArray(e.format)){if(e.format.every(function(t){return null==O.format[t]}))return!1}else if("object"===y(e.format)&&!Object.keys(e.format).every(function(t){return!0===e.format[t]?null!=O.format[t]:!1===e.format[t]?null==O.format[t]:(0,k.default)(e.format[t],O.format[t])}))return!1;return!(null!=e.prefix&&!e.prefix.test(O.prefix))&&(!(null!=e.suffix&&!e.suffix.test(O.suffix))&&!0!==e.handler.call(t,o,O))})&&n.preventDefault()}}}})}}]),e}(q.default);B.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},B.DEFAULTS={bindings:{bold:p("bold"),italic:p("italic"),underline:p("underline"),indent:{key:B.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",P.default.sources.USER)}},outdent:{key:B.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",P.default.sources.USER)}},"outdent backspace":{key:B.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",P.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,P.default.sources.USER)}},"indent code-block":h(!0),"outdent code-block":h(!1),"remove tab":{key:B.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,P.default.sources.USER)}},tab:{key:B.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new C.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,P.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,P.default.sources.SILENT)}},"list empty enter":{key:B.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,P.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,P.default.sources.USER)}},"checklist enter":{key:B.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=m(e,2),r=n[0],i=n[1],o=(0,E.default)({},r.formats(),{list:"checked"}),a=(new C.default).retain(t.index).insert("\n",o).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,P.default.sources.USER),this.quill.setSelection(t.index+1,P.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:B.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=m(n,2),i=r[0],o=r[1],a=(new C.default).retain(t.index).insert("\n",e.format).retain(i.length()-o-1).retain(1,{header:null});this.quill.updateContents(a,P.default.sources.USER),this.quill.setSelection(t.index+1,P.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),i=m(r,2),o=i[0],a=i[1];if(a>n)return!0;var s=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(t.index," ",P.default.sources.USER),this.quill.history.cutoff();var u=(new C.default).retain(t.index-a).delete(n+1).retain(o.length()-2-a).retain(1,{list:s});this.quill.updateContents(u,P.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,P.default.sources.SILENT)}},"code exit":{key:B.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=m(e,2),r=n[0],i=n[1],o=(new C.default).retain(t.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(o,P.default.sources.USER)}},"embed left":u(B.keys.LEFT,!1),"embed left shift":u(B.keys.LEFT,!0),"embed right":u(B.keys.RIGHT,!1),"embed right shift":u(B.keys.RIGHT,!0)}},e.default=B,e.SHORTKEY=M},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;nr&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),t=i.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach(function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}),this.stack.redo.forEach(function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(v.default);y.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=y,e.getLastChangeIndex=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var 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_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function u(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach(function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var c=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]: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-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,y.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,y.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=s(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,y.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",y.default.sources.USER),this.quill.setSelection(r+2,y.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(S.default);e.BaseTooltip=D,e.default=I},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){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)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(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)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var i=n.length();if(ts?n(r,t-s,Math.min(e,s+c-t)):n(r,0,Math.min(c,t+e-s)),s+=c}},t.prototype.map=function(t){return this.reduce(function(e,n){return e.push(t(n)),e},[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver(function(t){n.update(t)}),n.observer.observe(n.domNode,a),n.attach(),n}return r(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach(function(t){t.remove()}):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,i){this.update(),t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)e.push(a.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[o.DATA_KEY].mutations&&(t.domNode[o.DATA_KEY].mutations=[]),e&&s(t.parent))},u=function(t){null!=t.domNode[o.DATA_KEY]&&null!=t.domNode[o.DATA_KEY].mutations&&(t instanceof i.default&&t.children.forEach(u),t.optimize(n))},c=e,l=0;c.length>0;l+=1){if(l>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(function(t){var e=o.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(o.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,function(t){var e=o.find(t,!1);s(e,!1),e instanceof i.default&&e.children.forEach(function(t){s(t,!1)})})):"attributes"===t.type&&s(e.prev)),s(e))}),this.children.forEach(u),c=[].slice.call(this.observer.takeRecords()),a=c.slice();a.length>0;)e.push(a.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map(function(t){var e=o.find(t.target,!0);return null==e?null:null==e.domNode[o.DATA_KEY].mutations?(e.domNode[o.DATA_KEY].mutations=[t],e):(e.domNode[o.DATA_KEY].mutations.push(t),null)}).forEach(function(t){null!=t&&t!==r&&null!=t.domNode[o.DATA_KEY]&&t.update(t.domNode[o.DATA_KEY].mutations||[],n)}),null!=this.domNode[o.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="DIV",e}(i.default);e.default=s},function(t,e,n){"use strict";function r(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach(function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),i.attributes.copy(t)}),this.unwrap())},e.prototype.formatAt=function(e,n,r,i){if(null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)){this.isolate(e,n).format(r,i)}else t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var i=this.formats();if(0===Object.keys(i).length)return this.unwrap();var o=this.next;o instanceof e&&o.prev===this&&r(i,o.formats())&&(o.moveChildren(this),o.remove())},e.blotName="inline",e.scope=a.Scope.INLINE_BLOT,e.tagName="SPAN",e}(o.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var r=o.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,i){null!=o.query(r,o.Scope.BLOCK)?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=o.query(n,o.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var i=this.split(e),a=o.create(n,r);i.parent.insertBefore(a,i)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="P",e}(i.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,i){0===e&&n===this.length()?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(i.default);e.default=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),o=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return r(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=o.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some(function(t){return"characterData"===t.type&&t.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=o.Scope.INLINE_BLOT,e}(i.default);e.default=a},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:i.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;oe.length?t:e,a=t.length>e.length?e:t,s=o.indexOf(a);if(-1!=s)return r=[[v,o.substring(0,s)],[y,a],[v,o.substring(s+a.length)]],t.length>e.length&&(r[0][0]=r[2][0]=p),r;if(1==a.length)return[[p,t],[v,e]];var c=u(t,e);if(c){var l=c[0],f=c[1],d=c[2],h=c[3],m=c[4],b=n(l,d),g=n(f,h);return b.concat([[y,m]],g)}return i(t,e)}function i(t,e){for(var n=t.length,r=e.length,i=Math.ceil((n+r)/2),a=i,s=2*i,u=new Array(s),c=new Array(s),l=0;ln)y+=2;else if(O>r)h+=2;else if(d){var E=a+f-w;if(E>=0&&E=x)return o(t,e,_,O)}}}for(var C=-g+m;C<=g-b;C+=2){var x,E=a+C;x=C==-g||C!=g&&c[E-1]n)b+=2;else if(j>r)m+=2;else if(!d){var k=a+f-C;if(k>=0&&k=x)return o(t,e,_,O)}}}}return[[p,t],[v,e]]}function o(t,e,r,i){var o=t.substring(0,r),a=e.substring(0,i),s=t.substring(r),u=e.substring(i),c=n(o,a),l=n(s,u);return c.concat(l)}function a(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n=t.length?[r,i,o,u,f]:null}var r=t.length>e.length?t:e,i=t.length>e.length?e:t;if(r.length<4||2*i.lengthc[4].length?u:c:u;var l,f,d,h;return t.length>e.length?(l=o[0],f=o[1],d=o[2],h=o[3]):(d=o[0],h=o[1],l=o[2],f=o[3]),[l,f,d,h,o[4]]}function c(t){t.push([y,""]);for(var e,n=0,r=0,i=0,o="",u="";n1?(0!==r&&0!==i&&(e=a(u,o),0!==e&&(n-r-i>0&&t[n-r-i-1][0]==y?t[n-r-i-1][1]+=u.substring(0,e):(t.splice(0,0,[y,u.substring(0,e)]),n++),u=u.substring(e),o=o.substring(e)),0!==(e=s(u,o))&&(t[n][1]=u.substring(u.length-e)+t[n][1],u=u.substring(0,u.length-e),o=o.substring(0,o.length-e))),0===r?t.splice(n-i,r+i,[v,u]):0===i?t.splice(n-r,r+i,[p,o]):t.splice(n-r-i,r+i,[p,o],[v,u]),n=n-r-i+(r?1:0)+(i?1:0)+1):0!==n&&t[n-1][0]==y?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,i=0,r=0,o="",u=""}""===t[t.length-1][1]&&t.pop();var l=!1;for(n=1;n0&&r.splice(i+2,0,[a[0],s]),h(r,i,3)}return t}function d(t){for(var e=!1,n=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},r=2;r=55296&&t.charCodeAt(t.length-1)<=56319}(t[r-2][1])&&t[r-1][0]===p&&n(t[r-1][1])&&t[r][0]===v&&n(t[r][1])&&(e=!0,t[r-1][1]=t[r-2][1].slice(-1)+t[r-1][1],t[r][1]=t[r-2][1].slice(-1)+t[r][1],t[r-2][1]=t[r-2][1].slice(0,-1));if(!e)return t;for(var i=[],r=0;r0&&i.push(t[r]);return i}function h(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1=0&&n.length-1}function d(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce(function(e,n){return n(t,e)},new A.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],function(r,i){var o=d(i,e,n);return i.nodeType===t.ELEMENT_NODE&&(o=e.reduce(function(t,e){return e(i,t)},o),o=(i[Q]||[]).reduce(function(t,e){return e(i,t)},o)),r.concat(o)},new A.default):new A.default}function h(t,e,n){return u(n,t,!0)}function p(t,e){var n=N.default.Attributor.Attribute.keys(t),r=N.default.Attributor.Class.keys(t),i=N.default.Attributor.Style.keys(t),o={};return n.concat(r).concat(i).forEach(function(e){var n=N.default.query(e,N.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(t),o[n.attrName])||(n=$[e],null==n||n.attrName!==e&&n.keyName!==e||(o[n.attrName]=n.value(t)||void 0),null==(n=Z[e])||n.attrName!==e&&n.keyName!==e||(n=Z[e],o[n.attrName]=n.value(t)||void 0))}),Object.keys(o).length>0&&(e=u(e,o)),e}function v(t,e){var n=N.default.query(t);if(null==n)return e;if(n.prototype instanceof N.default.Embed){var r={},i=n.value(t);null!=i&&(r[n.blotName]=i,e=(new A.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=u(e,n.blotName,n.formats(t)));return e}function y(t,e){return l(e,"\n")||e.insert("\n"),e}function m(){return new A.default}function b(t,e){var n=N.default.query(t);if(null==n||"list-item"!==n.blotName||!l(e,"\n"))return e;for(var r=-1,i=t.parentNode;!i.classList.contains("ql-clipboard");)"list"===(N.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?e:e.compose((new A.default).retain(e.length()-1).retain(1,{indent:r}))}function g(t,e){return l(e,"\n")||(f(t)||e.length()>0&&t.nextSibling&&f(t.nextSibling))&&e.insert("\n"),e}function w(t,e){if(f(t)&&null!=t.nextElementSibling&&!l(e,"\n\n")){var n=t.offsetHeight+parseFloat(c(t).marginTop)+parseFloat(c(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function _(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===c(t).fontStyle&&(n.italic=!0),r.fontWeight&&(c(t).fontWeight.startsWith("bold")||parseInt(c(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=u(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new A.default).insert("\t").concat(e)),e}function k(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!c(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&f(t.parentNode)||null!=t.previousSibling&&f(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&f(t.parentNode)||null!=t.nextSibling&&f(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),x=function(){function t(t,e){for(var n=0;n\r?\n +\<"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[z.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new A.default).insert(n,i({},z.default.blotName,e[z.default.blotName]))}var r=this.prepareMatching(),o=E(r,2),a=o[0],s=o[1],u=d(this.container,a,s);return l(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new A.default).retain(u.length()-1).delete(1))),V.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,L.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new A.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),L.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new A.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(L.default.sources.SILENT),setTimeout(function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,L.default.sources.USER),e.quill.setSelection(r.length()-n.length,L.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=i,e.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach(function(r){var i=E(r,2),o=i[0],a=i[1];switch(o){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:e.push(a);break;default:[].forEach.call(t.container.querySelectorAll(o),function(t){t[Q]=t[Q]||[],t[Q].push(a)})}}),[e,n]}}]),e}(R.default);G.DEFAULTS={matchers:[],matchVisual:!0},e.default=G,e.matchAttributor=p,e.matchBlot=v,e.matchNewline=g,e.matchSpacing=w,e.matchText=k},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n '},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;nr.right&&(o=r.right-i.right,this.root.style.left=e+o+"px"),i.leftr.bottom){var a=i.bottom-i.top,s=t.bottom-t.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=o},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},c=function(){function t(t,e){for(var n=0;n','','',''].join(""),e.default=k},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(28),o=r(i),a=n(36),s=n(38),u=n(64),c=n(65),l=r(c),f=n(66),d=r(f),h=n(67),p=r(h),v=n(37),y=n(25),m=n(39),b=n(40),g=n(56),w=r(g),_=n(68),k=r(_),O=n(26),E=r(O),x=n(69),C=r(x),j=n(70),S=r(j),A=n(71),T=r(A),N=n(72),P=r(N),L=n(73),I=r(L),D=n(13),q=r(D),R=n(74),M=r(R),B=n(75),F=r(B),z=n(57),U=r(z),H=n(41),W=r(H),K=n(27),V=r(K),Q=n(59),Y=r(Q),$=n(60),Z=r($),G=n(61),X=r(G),J=n(108),tt=r(J),et=n(62),nt=r(et);o.default.register({"attributors/attribute/direction":s.DirectionAttribute,"attributors/class/align":a.AlignClass,"attributors/class/background":v.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":s.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":b.SizeClass,"attributors/style/align":a.AlignStyle,"attributors/style/background":v.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":s.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":b.SizeStyle},!0),o.default.register({"formats/align":a.AlignClass,"formats/direction":s.DirectionClass,"formats/indent":u.IndentClass,"formats/background":v.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":m.FontClass,"formats/size":b.SizeClass,"formats/blockquote":l.default,"formats/code-block":q.default,"formats/header":d.default,"formats/list":p.default,"formats/bold":w.default,"formats/code":D.Code,"formats/italic":k.default,"formats/link":E.default,"formats/script":C.default,"formats/strike":S.default,"formats/underline":T.default,"formats/image":P.default,"formats/video":I.default,"formats/list/item":h.ListItem,"modules/formula":M.default,"modules/syntax":F.default,"modules/toolbar":U.default,"themes/bubble":tt.default,"themes/snow":nt.default,"ui/icons":W.default,"ui/picker":V.default,"ui/icon-picker":Z.default,"ui/color-picker":Y.default,"ui/tooltip":X.default},!0),e.default=o.default},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var a=function(){function t(t,e){for(var n=0;n0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return i({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof y)c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(t,i)}}},{key:"optimize",value:function(t){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=f.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(v.default);m.blotName="list",m.scope=f.default.Scope.BLOCK_BLOT,m.tagName=["OL","UL"],m.defaultChild="list-item",m.allowedChildren=[y],e.ListItem=y,e.default=m},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(56),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),e}(s.default);u.blotName="italic",u.tagName=["EM","I"],e.default=u},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,l.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(c.default.Embed);d.blotName="image",d.tagName="IMG",e.default=d},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"sanitize",value:function(t){return l.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(u.BlockEmbed);d.blotName="video",d.className="ql-video",d.tagName="IFRAME",e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var s=function(){function t(t,e){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(y.default);m.className="ql-syntax";var b=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),g=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var a=null;return r.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(a),a=setTimeout(function(){r.highlight(),a=null},r.options.interval)}),r.highlight(),r}return a(e,t),s(e,null,[{key:"register",value:function(){d.default.register(b,!0),d.default.register(m,!0)}}]),s(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(m).forEach(function(e){e.highlight(t.options.highlight)}),this.quill.update(d.default.sources.SILENT),null!=e&&this.quill.setSelection(e,d.default.sources.SILENT)}}}]),e}(p.default);g.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value}}(),interval:1e3},e.CodeBlock=m,e.CodeToken=b,e.default=g},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){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var s=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;if(void 0!==a)return a.call(r)},u=function(){function t(t,e){for(var n=0;n0&&i===d.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(e.index,e.length);if(1===o.length)r.position(r.quill.getBounds(e));else{var a=o[o.length-1],s=r.quill.getIndex(a),u=Math.min(a.length()-1,e.index+e.length-s),c=r.quill.getBounds(new v.Range(s,u));r.position(c)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()}),r}return a(e,t),u(e,[{key:"listen",value:function(){var t=this;s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){t.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),e}(h.BaseTooltip);w.TEMPLATE=['','
','','',"
"].join(""),e.BubbleTooltip=w,e.default=g},function(t,e,n){t.exports=n(63)}]).default})}).call(e,n(326).Buffer)},,function(t,e,n){var r,i;/*! * jQuery JavaScript Library v1.11.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-05-01T17:42Z */ !function(e,n){"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,o){function a(t){var e=t.length,n=st.type(t);return"function"!==n&&!st.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t))}function s(t,e,n){if(st.isFunction(e))return st.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return st.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(vt.test(e))return st.filter(e,t,n);e=st.filter(e,t)}return st.grep(t,function(t){return st.inArray(t,e)>=0!==n})}function u(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}function c(t){var e=kt[t]={};return st.each(t.match(_t)||[],function(t,n){e[n]=!0}),e}function l(){mt.addEventListener?(mt.removeEventListener("DOMContentLoaded",f,!1),n.removeEventListener("load",f,!1)):(mt.detachEvent("onreadystatechange",f),n.detachEvent("onload",f))}function f(){(mt.addEventListener||"load"===event.type||"complete"===mt.readyState)&&(l(),st.ready())}function d(t,e,n){if(void 0===n&&1===t.nodeType){var r="data-"+e.replace(jt,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Ct.test(n)?st.parseJSON(n):n)}catch(t){}st.data(t,e,n)}else n=void 0}return n}function h(t){var e;for(e in t)if(("data"!==e||!st.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function p(t,e,n,r){if(st.acceptData(t)){var i,o,a=st.expando,s=t.nodeType,u=s?st.cache:t,c=s?t[a]:t[a]&&a;if(c&&u[c]&&(r||u[c].data)||void 0!==n||"string"!=typeof e)return c||(c=s?t[a]=X.pop()||st.guid++:a),u[c]||(u[c]=s?{}:{toJSON:st.noop}),"object"!=typeof e&&"function"!=typeof e||(r?u[c]=st.extend(u[c],e):u[c].data=st.extend(u[c].data,e)),o=u[c],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[st.camelCase(e)]=n),"string"==typeof e?null==(i=o[e])&&(i=o[st.camelCase(e)]):i=o,i}}function v(t,e,n){if(st.acceptData(t)){var r,i,o=t.nodeType,a=o?st.cache:t,s=o?t[st.expando]:st.expando;if(a[s]){if(e&&(r=n?a[s]:a[s].data)){st.isArray(e)?e=e.concat(st.map(e,st.camelCase)):e in r?e=[e]:(e=st.camelCase(e),e=e in r?[e]:e.split(" ")),i=e.length;for(;i--;)delete r[e[i]];if(n?!h(r):!st.isEmptyObject(r))return}(n||(delete a[s].data,h(a[s])))&&(o?st.cleanData([t],!0):at.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function y(){return!0}function m(){return!1}function b(){try{return mt.activeElement}catch(t){}}function g(t){var e=Mt.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function w(t,e){var n,r,i=0,o=typeof t.getElementsByTagName!==xt?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==xt?t.querySelectorAll(e||"*"):void 0;if(!o)for(o=[],n=t.childNodes||t;null!=(r=n[i]);i++)!e||st.nodeName(r,e)?o.push(r):st.merge(o,w(r,e));return void 0===e||e&&st.nodeName(t,e)?st.merge([t],o):o}function _(t){Pt.test(t.type)&&(t.defaultChecked=t.checked)}function k(t,e){return st.nodeName(t,"table")&&st.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function O(t){return t.type=(null!==st.find.attr(t,"type"))+"/"+t.type,t}function E(t){var e=$t.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function x(t,e){for(var n,r=0;null!=(n=t[r]);r++)st._data(n,"globalEval",!e||st._data(e[r],"globalEval"))}function C(t,e){if(1===e.nodeType&&st.hasData(t)){var n,r,i,o=st._data(t),a=st._data(e,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r")).appendTo(e.documentElement),e=(te[0].contentWindow||te[0].contentDocument).document,e.write(),e.close(),n=S(t,e),te.detach()),ee[t]=n),n}function T(t,e){return{get:function(){var n=t();if(null!=n)return n?void delete this.get:(this.get=e).apply(this,arguments)}}}function N(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),r=e,i=pe.length;i--;)if((e=pe[i]+n)in t)return e;return r}function P(t,e){for(var n,r,i,o=[],a=0,s=t.length;a=0&&n=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==st.type(t)||t.nodeType||st.isWindow(t))return!1;try{if(t.constructor&&!ot.call(t,"constructor")&&!ot.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(at.ownLast)for(e in t)return ot.call(t,e);for(e in t);return void 0===e||ot.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?rt[it.call(t)]||"object":typeof t},globalEval:function(t){t&&st.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(t){return t.replace(ct,"ms-").replace(lt,ft)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var r=0,i=t.length,o=a(t);if(n){if(o)for(;rw.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[R]=!0,t}function i(t){var e=T.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),r=t.length;r--;)w.attrHandle[n[r]]=e}function a(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||V)-(~t.sourceIndex||V);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return r(function(e){return e=+e,r(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function u(t){return t&&typeof t.getElementsByTagName!==K&&t}function c(){}function l(t){for(var e=0,n=t.length,r="";e1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function h(t,n,r){for(var i=0,o=n.length;i-1&&(r[c]=!(a[c]=f))}}else g=p(g===a?g.splice(y,g.length):g),o?o(null,a,g,u):G.apply(a,g)})}function y(t){for(var e,n,r,i=t.length,o=w.relative[t[0].type],a=o||w.relative[" "],s=o?1:0,u=f(function(t){return t===e},a,!0),c=f(function(t){return J.call(e,t)>-1},a,!0),h=[function(t,n,r){return!o&&(r||n!==C)||((e=n).nodeType?u(t,n,r):c(t,n,r))}];s1&&d(h),s>1&&l(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(at,"$1"),n,s0,o=t.length>0,a=function(r,a,s,u,c){var l,f,d,h=0,v="0",y=r&&[],m=[],b=C,g=r||o&&w.find.TAG("*",c),_=B+=null==b?1:Math.random()||.1,k=g.length;for(c&&(C=a!==T&&a);v!==k&&null!=(l=g[v]);v++){if(o&&l){for(f=0;d=t[f++];)if(d(l,a,s)){u.push(l);break}c&&(B=_)}i&&((l=!d&&l)&&h--,r&&y.push(l))}if(h+=v,i&&v!==h){for(f=0;d=n[f++];)d(y,m,a,s);if(r){if(h>0)for(;v--;)y[v]||m[v]||(m[v]=$.call(u));m=p(m)}G.apply(u,m),c&&!r&&m.length>0&&h+n.length>1&&e.uniqueSort(u)}return c&&(B=_,C=b),y};return i?r(a):a}var b,g,w,_,k,O,E,x,C,j,S,A,T,N,P,L,I,D,q,R="sizzle"+-new Date,M=t.document,B=0,F=0,z=n(),U=n(),H=n(),W=function(t,e){return t===e&&(S=!0),0},K="undefined",V=1<<31,Q={}.hasOwnProperty,Y=[],$=Y.pop,Z=Y.push,G=Y.push,X=Y.slice,J=Y.indexOf||function(t){for(var e=0,n=this.length;e+~]|"+et+")"+et+"*"),ct=new RegExp("="+et+"*([^\\]'\"]*?)"+et+"*\\]","g"),lt=new RegExp(ot),ft=new RegExp("^"+rt+"$"),dt={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt.replace("w","w*")+")"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+et+"*(even|odd|(([+-]|)(\\d*)n|)"+et+"*(?:([+-]|)"+et+"*(\\d+)|))"+et+"*\\)|)","i"),bool:new RegExp("^(?:"+tt+")$","i"),needsContext:new RegExp("^"+et+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+et+"*((?:-\\d)?\\d*)"+et+"*\\)|)(?=[^-]|$)","i")},ht=/^(?:input|select|textarea|button)$/i,pt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,mt=/[+~]/,bt=/'|\\/g,gt=new RegExp("\\\\([\\da-f]{1,6}"+et+"?|("+et+")|.)","ig"),wt=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{G.apply(Y=X.call(M.childNodes),M.childNodes),Y[M.childNodes.length].nodeType}catch(t){G={apply:Y.length?function(t,e){Z.apply(t,X.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}g=e.support={},k=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},A=e.setDocument=function(t){var e,n=t?t.ownerDocument||t:M,r=n.defaultView;return n!==T&&9===n.nodeType&&n.documentElement?(T=n,N=n.documentElement,P=!k(n),r&&r!==r.top&&(r.addEventListener?r.addEventListener("unload",function(){A()},!1):r.attachEvent&&r.attachEvent("onunload",function(){A()})),g.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),g.getElementsByTagName=i(function(t){return t.appendChild(n.createComment("")),!t.getElementsByTagName("*").length}),g.getElementsByClassName=vt.test(n.getElementsByClassName)&&i(function(t){return t.innerHTML="
",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),g.getById=i(function(t){return N.appendChild(t).id=R,!n.getElementsByName||!n.getElementsByName(R).length}),g.getById?(w.find.ID=function(t,e){if(typeof e.getElementById!==K&&P){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},w.filter.ID=function(t){var e=t.replace(gt,wt);return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var e=t.replace(gt,wt);return function(t){var n=typeof t.getAttributeNode!==K&&t.getAttributeNode("id");return n&&n.value===e}}),w.find.TAG=g.getElementsByTagName?function(t,e){if(typeof e.getElementsByTagName!==K)return e.getElementsByTagName(t)}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},w.find.CLASS=g.getElementsByClassName&&function(t,e){if(typeof e.getElementsByClassName!==K&&P)return e.getElementsByClassName(t)},I=[],L=[],(g.qsa=vt.test(n.querySelectorAll))&&(i(function(t){t.innerHTML="",t.querySelectorAll("[msallowclip^='']").length&&L.push("[*^$]="+et+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||L.push("\\["+et+"*(?:value|"+tt+")"),t.querySelectorAll(":checked").length||L.push(":checked")}),i(function(t){var e=n.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&L.push("name"+et+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),L.push(",.*:")})),(g.matchesSelector=vt.test(D=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&i(function(t){g.disconnectedMatch=D.call(t,"div"),D.call(t,"[s!='']:x"),I.push("!=",ot)}),L=L.length&&new RegExp(L.join("|")),I=I.length&&new RegExp(I.join("|")),e=vt.test(N.compareDocumentPosition),q=e||vt.test(N.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},W=e?function(t,e){if(t===e)return S=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&r||!g.sortDetached&&e.compareDocumentPosition(t)===r?t===n||t.ownerDocument===M&&q(M,t)?-1:e===n||e.ownerDocument===M&&q(M,e)?1:j?J.call(j,t)-J.call(j,e):0:4&r?-1:1)}:function(t,e){if(t===e)return S=!0,0;var r,i=0,o=t.parentNode,s=e.parentNode,u=[t],c=[e];if(!o||!s)return t===n?-1:e===n?1:o?-1:s?1:j?J.call(j,t)-J.call(j,e):0;if(o===s)return a(t,e);for(r=t;r=r.parentNode;)u.unshift(r);for(r=e;r=r.parentNode;)c.unshift(r);for(;u[i]===c[i];)i++;return i?a(u[i],c[i]):u[i]===M?-1:c[i]===M?1:0},n):T},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==T&&A(t),n=n.replace(ct,"='$1']"),g.matchesSelector&&P&&(!I||!I.test(n))&&(!L||!L.test(n)))try{var r=D.call(t,n);if(r||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return e(n,T,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==T&&A(t),q(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==T&&A(t);var n=w.attrHandle[e.toLowerCase()],r=n&&Q.call(w.attrHandle,e.toLowerCase())?n(t,e,!P):void 0;return void 0!==r?r:g.attributes||!P?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],r=0,i=0;if(S=!g.detectDuplicates,j=!g.sortStable&&t.slice(0),t.sort(W),S){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return j=null,t},_=e.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=_(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=_(e);return n},w=e.selectors={cacheLength:50,createPseudo:r,match:dt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(gt,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(gt,wt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return dt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&<.test(n)&&(e=O(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(gt,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=z[t+" "];return e||(e=new RegExp("(^|"+et+")"+t+"("+et+"|$)"))&&z(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==K&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var c,l,f,d,h,p,v=o!==a?"nextSibling":"previousSibling",y=e.parentNode,m=s&&e.nodeName.toLowerCase(),b=!u&&!s;if(y){if(o){for(;v;){for(f=e;f=f[v];)if(s?f.nodeName.toLowerCase()===m:1===f.nodeType)return!1;p=v="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?y.firstChild:y.lastChild],a&&b){for(l=y[R]||(y[R]={}),c=l[t]||[],h=c[0]===B&&c[1],d=c[0]===B&&c[2],f=h&&y.childNodes[h];f=++h&&f&&f[v]||(d=h=0)||p.pop();)if(1===f.nodeType&&++d&&f===e){l[t]=[B,h,d];break}}else if(b&&(c=(e[R]||(e[R]={}))[t])&&c[0]===B)d=c[1];else for(;(f=++h&&f&&f[v]||(d=h=0)||p.pop())&&((s?f.nodeName.toLowerCase()!==m:1!==f.nodeType)||!++d||(b&&((f[R]||(f[R]={}))[t]=[B,d]),f!==e)););return(d-=i)===r||d%r==0&&d/r>=0}}},PSEUDO:function(t,n){var i,o=w.pseudos[t]||w.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[R]?o(n):o.length>1?(i=[t,t,"",n],w.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=o(t,n),a=i.length;a--;)r=J.call(t,i[a]),t[r]=!(e[r]=i[a])}):function(t){return o(t,0,i)}):o}},pseudos:{not:r(function(t){var e=[],n=[],i=E(t.replace(at,"$1"));return i[R]?r(function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return function(e){return(e.textContent||e.innerText||_(e)).indexOf(t)>-1}}),lang:r(function(t){return ft.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(gt,wt).toLowerCase(),function(e){var n;do{if(n=P?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===N},focus:function(t){return t===T.activeElement&&(!T.hasFocus||T.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return pt.test(t.nodeName)},input:function(t){return ht.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:s(function(){return[0]}),last:s(function(t,e){return[e-1]}),eq:s(function(t,e,n){return[n<0?n+e:n]}),even:s(function(t,e){for(var n=0;n=0;)t.push(r);return t}),gt:s(function(t,e,n){for(var r=n<0?n+e:n;++r2&&"ID"===(a=o[0]).type&&g.getById&&9===e.nodeType&&P&&w.relative[o[1].type]){if(!(e=(w.find.ID(a.matches[0].replace(gt,wt),e)||[])[0]))return n;f&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=dt.needsContext.test(t)?0:o.length;i--&&(a=o[i],!w.relative[s=a.type]);)if((c=w.find[s])&&(r=c(a.matches[0].replace(gt,wt),mt.test(o[0].type)&&u(e.parentNode)||e))){if(o.splice(i,1),!(t=r.length&&l(o)))return G.apply(n,r),n;break}}return(f||E(t,d))(r,e,!P,n,mt.test(t)&&u(e.parentNode)||e),n},g.sortStable=R.split("").sort(W).join("")===R,g.detectDuplicates=!!S,A(),g.sortDetached=i(function(t){return 1&t.compareDocumentPosition(T.createElement("div"))}),i(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),g.attributes&&i(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(tt,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),e}(n);st.find=dt,st.expr=dt.selectors,st.expr[":"]=st.expr.pseudos,st.unique=dt.uniqueSort,st.text=dt.getText,st.isXMLDoc=dt.isXML,st.contains=dt.contains;var ht=st.expr.match.needsContext,pt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,vt=/^.[^:#\[\.,]*$/;st.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?st.find.matchesSelector(r,t)?[r]:[]:st.find.matches(t,st.grep(e,function(t){return 1===t.nodeType}))},st.fn.extend({find:function(t){var e,n=[],r=this,i=r.length;if("string"!=typeof t)return this.pushStack(st(t).filter(function(){for(e=0;e1?st.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(s(this,t||[],!1))},not:function(t){return this.pushStack(s(this,t||[],!0))},is:function(t){return!!s(this,"string"==typeof t&&ht.test(t)?st(t):t||[],!1).length}});var yt,mt=n.document,bt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(st.fn.init=function(t,e){var n,r;if(!t)return this;if("string"==typeof t){if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:bt.exec(t))||!n[1]&&e)return!e||e.jquery?(e||yt).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof st?e[0]:e,st.merge(this,st.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:mt,!0)),pt.test(n[1])&&st.isPlainObject(e))for(n in e)st.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((r=mt.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return yt.find(t);this.length=1,this[0]=r}return this.context=mt,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):st.isFunction(t)?void 0!==yt.ready?yt.ready(t):t(st):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),st.makeArray(t,this))}).prototype=st.fn,yt=st(mt);var gt=/^(?:parents|prev(?:Until|All))/,wt={children:!0,contents:!0,next:!0,prev:!0};st.extend({dir:function(t,e,n){for(var r=[],i=t[e];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!st(i).is(n));)1===i.nodeType&&r.push(i),i=i[e];return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),st.fn.extend({has:function(t){var e,n=st(t,this),r=n.length;return this.filter(function(){for(e=0;e-1:1===n.nodeType&&st.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?st.unique(o):o)},index:function(t){return t?"string"==typeof t?st.inArray(this[0],st(t)):st.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(st.unique(st.merge(this.get(),st(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),st.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return st.dir(t,"parentNode")},parentsUntil:function(t,e,n){return st.dir(t,"parentNode",n)},next:function(t){return u(t,"nextSibling")},prev:function(t){return u(t,"previousSibling")},nextAll:function(t){return st.dir(t,"nextSibling")},prevAll:function(t){return st.dir(t,"previousSibling")},nextUntil:function(t,e,n){return st.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return st.dir(t,"previousSibling",n)},siblings:function(t){return st.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return st.sibling(t.firstChild)},contents:function(t){return st.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:st.merge([],t.childNodes)}},function(t,e){st.fn[t]=function(n,r){var i=st.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=st.filter(r,i)),this.length>1&&(wt[t]||(i=st.unique(i)),gt.test(t)&&(i=i.reverse())),this.pushStack(i)}});var _t=/\S+/g,kt={};st.Callbacks=function(t){t="string"==typeof t?kt[t]||c(t):st.extend({},t);var e,n,r,i,o,a,s=[],u=!t.once&&[],l=function(c){for(n=t.memory&&c,r=!0,o=a||0,a=0,i=s.length,e=!0;s&&o-1;)s.splice(r,1),e&&(r<=i&&i--,r<=o&&o--)}),this},has:function(t){return t?st.inArray(t,s)>-1:!(!s||!s.length)},empty:function(){return s=[],i=0,this},disable:function(){return s=u=n=void 0,this},disabled:function(){return!s},lock:function(){return u=void 0,n||f.disable(),this},locked:function(){return!u},fireWith:function(t,n){return!s||r&&!u||(n=n||[],n=[t,n.slice?n.slice():n],e?u.push(n):l(n)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!r}};return f},st.extend({Deferred:function(t){var e=[["resolve","done",st.Callbacks("once memory"),"resolved"],["reject","fail",st.Callbacks("once memory"),"rejected"],["notify","progress",st.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return st.Deferred(function(n){st.each(e,function(e,o){var a=st.isFunction(t[e])&&t[e];i[o[1]](function(){var t=a&&a.apply(this,arguments);t&&st.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?st.extend(t,r):r}},i={};return r.pipe=r.then,st.each(e,function(t,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=J.call(arguments),a=o.length,s=1!==a||t&&st.isFunction(t.promise)?a:0,u=1===s?t:st.Deferred(),c=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?J.call(arguments):i,r===e?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(e=new Array(a),n=new Array(a),r=new Array(a);i0||(Ot.resolveWith(mt,[st]),st.fn.triggerHandler&&(st(mt).triggerHandler("ready"),st(mt).off("ready")))}}}),st.ready.promise=function(t){if(!Ot)if(Ot=st.Deferred(),"complete"===mt.readyState)setTimeout(st.ready);else if(mt.addEventListener)mt.addEventListener("DOMContentLoaded",f,!1),n.addEventListener("load",f,!1);else{mt.attachEvent("onreadystatechange",f),n.attachEvent("onload",f);var e=!1;try{e=null==n.frameElement&&mt.documentElement}catch(t){}e&&e.doScroll&&function t(){if(!st.isReady){try{e.doScroll("left")}catch(e){return setTimeout(t,50)}l(),st.ready()}}()}return Ot.promise(t)};var Et,xt="undefined";for(Et in st(at))break;at.ownLast="0"!==Et,at.inlineBlockNeedsLayout=!1,st(function(){var t,e,n,r;(n=mt.getElementsByTagName("body")[0])&&n.style&&(e=mt.createElement("div"),r=mt.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(e),typeof e.style.zoom!==xt&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",at.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(r))}),function(){var t=mt.createElement("div");if(null==at.deleteExpando){at.deleteExpando=!0;try{delete t.test}catch(t){at.deleteExpando=!1}}t=null}(),st.acceptData=function(t){var e=st.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute("classid")===e)};var Ct=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,jt=/([A-Z])/g;st.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?st.cache[t[st.expando]]:t[st.expando])&&!h(t)},data:function(t,e,n){return p(t,e,n)},removeData:function(t,e){return v(t,e)},_data:function(t,e,n){return p(t,e,n,!0)},_removeData:function(t,e){return v(t,e,!0)}}),st.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=st.data(o),1===o.nodeType&&!st._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=st.camelCase(r.slice(5)),d(o,r,i[r])));st._data(o,"parsedAttrs",!0)}return i}return"object"==typeof t?this.each(function(){st.data(this,t)}):arguments.length>1?this.each(function(){st.data(this,t,e)}):o?d(o,t,st.data(o,t)):void 0},removeData:function(t){return this.each(function(){st.removeData(this,t)})}}),st.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=st._data(t,e),n&&(!r||st.isArray(n)?r=st._data(t,e,st.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=st.queue(t,e),r=n.length,i=n.shift(),o=st._queueHooks(t,e),a=function(){st.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return st._data(t,n)||st._data(t,n,{empty:st.Callbacks("once memory").add(function(){st._removeData(t,e+"queue"),st._removeData(t,n)})})}}),st.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length
a",at.leadingWhitespace=3===e.firstChild.nodeType,at.tbody=!e.getElementsByTagName("tbody").length,at.htmlSerialize=!!e.getElementsByTagName("link").length,at.html5Clone="<:nav>"!==mt.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,n.appendChild(t),at.appendChecked=t.checked,e.innerHTML="",at.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,n.appendChild(e),e.innerHTML="",at.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,at.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",function(){at.noCloneEvent=!1}),e.cloneNode(!0).click()),null==at.deleteExpando){at.deleteExpando=!0;try{delete e.test}catch(t){at.deleteExpando=!1}}}(),function(){var t,e,r=mt.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})e="on"+t,(at[t+"Bubbles"]=e in n)||(r.setAttribute(e,"t"),at[t+"Bubbles"]=!1===r.attributes[e].expando);r=null}();var Lt=/^(?:input|select|textarea)$/i,It=/^key/,Dt=/^(?:mouse|pointer|contextmenu)|click/,qt=/^(?:focusinfocus|focusoutblur)$/,Rt=/^([^.]*)(?:\.(.+)|)$/;st.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,c,l,f,d,h,p,v,y=st._data(t);if(y){for(n.handler&&(u=n,n=u.handler,i=u.selector),n.guid||(n.guid=st.guid++),(a=y.events)||(a=y.events={}),(l=y.handle)||(l=y.handle=function(t){return typeof st===xt||t&&st.event.triggered===t.type?void 0:st.event.dispatch.apply(l.elem,arguments)},l.elem=t),e=(e||"").match(_t)||[""],s=e.length;s--;)o=Rt.exec(e[s])||[],h=v=o[1],p=(o[2]||"").split(".").sort(),h&&(c=st.event.special[h]||{},h=(i?c.delegateType:c.bindType)||h,c=st.event.special[h]||{},f=st.extend({type:h,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&st.expr.match.needsContext.test(i),namespace:p.join(".")},u),(d=a[h])||(d=a[h]=[],d.delegateCount=0,c.setup&&!1!==c.setup.call(t,r,p,l)||(t.addEventListener?t.addEventListener(h,l,!1):t.attachEvent&&t.attachEvent("on"+h,l))),c.add&&(c.add.call(t,f),f.handler.guid||(f.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,f):d.push(f),st.event.global[h]=!0);t=null}},remove:function(t,e,n,r,i){var o,a,s,u,c,l,f,d,h,p,v,y=st.hasData(t)&&st._data(t);if(y&&(l=y.events)){for(e=(e||"").match(_t)||[""],c=e.length;c--;)if(s=Rt.exec(e[c])||[],h=v=s[1],p=(s[2]||"").split(".").sort(),h){for(f=st.event.special[h]||{},h=(r?f.delegateType:f.bindType)||h,d=l[h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=d.length;o--;)a=d[o],!i&&v!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(d.splice(o,1),a.selector&&d.delegateCount--,f.remove&&f.remove.call(t,a));u&&!d.length&&(f.teardown&&!1!==f.teardown.call(t,p,y.handle)||st.removeEvent(t,h,y.handle),delete l[h])}else for(h in l)st.event.remove(t,h+e[c],n,r,!0);st.isEmptyObject(l)&&(delete y.handle,st._removeData(t,"events"))}},trigger:function(t,e,r,i){var o,a,s,u,c,l,f,d=[r||mt],h=ot.call(t,"type")?t.type:t,p=ot.call(t,"namespace")?t.namespace.split("."):[];if(s=l=r=r||mt,3!==r.nodeType&&8!==r.nodeType&&!qt.test(h+st.event.triggered)&&(h.indexOf(".")>=0&&(p=h.split("."),h=p.shift(),p.sort()),a=h.indexOf(":")<0&&"on"+h,t=t[st.expando]?t:new st.Event(h,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=p.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:st.makeArray(e,[t]),c=st.event.special[h]||{},i||!c.trigger||!1!==c.trigger.apply(r,e))){if(!i&&!c.noBubble&&!st.isWindow(r)){for(u=c.delegateType||h,qt.test(u+h)||(s=s.parentNode);s;s=s.parentNode)d.push(s),l=s;l===(r.ownerDocument||mt)&&d.push(l.defaultView||l.parentWindow||n)}for(f=0;(s=d[f++])&&!t.isPropagationStopped();)t.type=f>1?u:c.bindType||h,o=(st._data(s,"events")||{})[t.type]&&st._data(s,"handle"),o&&o.apply(s,e),(o=a&&s[a])&&o.apply&&st.acceptData(s)&&(t.result=o.apply(s,e),!1===t.result&&t.preventDefault());if(t.type=h,!i&&!t.isDefaultPrevented()&&(!c._default||!1===c._default.apply(d.pop(),e))&&st.acceptData(r)&&a&&r[h]&&!st.isWindow(r)){l=r[a],l&&(r[a]=null),st.event.triggered=h;try{r[h]()}catch(t){}st.event.triggered=void 0,l&&(r[a]=l)}return t.result}},dispatch:function(t){t=st.event.fix(t);var e,n,r,i,o,a=[],s=J.call(arguments),u=(st._data(this,"events")||{})[t.type]||[],c=st.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(a=st.event.handlers.call(this,t,u),e=0;(i=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,o=0;(r=i.handlers[o++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(r.namespace)||(t.handleObj=r,t.data=r.data,void 0!==(n=((st.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,s))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==t.type)){for(i=[],o=0;o=0:st.find(n,this,null,[u]).length),i[n]&&i.push(r);i.length&&a.push({elem:u,handlers:i})}return s]","i"),zt=/^\s+/,Ut=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ht=/<([\w:]+)/,Wt=/\s*$/g,Gt={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:at.htmlSerialize?[0,"",""]:[1,"X
","
"]},Xt=g(mt),Jt=Xt.appendChild(mt.createElement("div"));Gt.optgroup=Gt.option,Gt.tbody=Gt.tfoot=Gt.colgroup=Gt.caption=Gt.thead,Gt.th=Gt.td,st.extend({clone:function(t,e,n){var r,i,o,a,s,u=st.contains(t.ownerDocument,t);if(at.html5Clone||st.isXMLDoc(t)||!Ft.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(Jt.innerHTML=t.outerHTML,Jt.removeChild(o=Jt.firstChild)),!(at.noCloneEvent&&at.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||st.isXMLDoc(t)))for(r=w(o),s=w(t),a=0;null!=(i=s[a]);++a)r[a]&&j(i,r[a]);if(e)if(n)for(s=s||w(t),r=r||w(o),a=0;null!=(i=s[a]);a++)C(i,r[a]);else C(t,o);return r=w(o,"script"),r.length>0&&x(r,!u&&w(t,"script")),r=s=i=null,o},buildFragment:function(t,e,n,r){for(var i,o,a,s,u,c,l,f=t.length,d=g(e),h=[],p=0;p")+l[2],i=l[0];i--;)s=s.lastChild;if(!at.leadingWhitespace&&zt.test(o)&&h.push(e.createTextNode(zt.exec(o)[0])),!at.tbody)for(o="table"!==u||Wt.test(o)?""!==l[1]||Wt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;i--;)st.nodeName(c=o.childNodes[i],"tbody")&&!c.childNodes.length&&o.removeChild(c);for(st.merge(h,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=d.lastChild}else h.push(e.createTextNode(o));for(s&&d.removeChild(s),at.appendChecked||st.grep(w(h,"input"),_),p=0;o=h[p++];)if((!r||-1===st.inArray(o,r))&&(a=st.contains(o.ownerDocument,o),s=w(d.appendChild(o),"script"),a&&x(s),n))for(i=0;o=s[i++];)Yt.test(o.type||"")&&n.push(o);return s=null,d},cleanData:function(t,e){for(var n,r,i,o,a=0,s=st.expando,u=st.cache,c=at.deleteExpando,l=st.event.special;null!=(n=t[a]);a++)if((e||st.acceptData(n))&&(i=n[s],o=i&&u[i])){if(o.events)for(r in o.events)l[r]?st.event.remove(n,r):st.removeEvent(n,r,o.handle);u[i]&&(delete u[i],c?delete n[s]:typeof n.removeAttribute!==xt?n.removeAttribute(s):n[s]=null,X.push(i))}}}),st.fn.extend({text:function(t){return Nt(this,function(t){return void 0===t?st.text(this):this.empty().append((this[0]&&this[0].ownerDocument||mt).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){k(this,t).appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=k(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,r=t?st.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||st.cleanData(w(n)),n.parentNode&&(e&&st.contains(n.ownerDocument,n)&&x(w(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&st.cleanData(w(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&st.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return st.clone(this,t,e)})},html:function(t){return Nt(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(Bt,""):void 0;if("string"==typeof t&&!Vt.test(t)&&(at.htmlSerialize||!Ft.test(t))&&(at.leadingWhitespace||!zt.test(t))&&!Gt[(Ht.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Ut,"<$1>");try{for(;n1&&"string"==typeof d&&!at.checkClone&&Qt.test(d))return this.each(function(n){var r=l.eq(n);h&&(t[0]=d.call(this,n,r.html())),r.domManip(t,e)});if(c&&(s=st.buildFragment(t,this[0].ownerDocument,!1,this),n=s.firstChild,1===s.childNodes.length&&(s=n),n)){for(o=st.map(w(s,"script"),O),i=o.length;u
t
",i=t.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",s=0===i[0].offsetHeight,s&&(i[0].style.display="",i[1].style.display="none",s=0===i[0].offsetHeight),e.removeChild(r))}var e,r,i,o,a,s,u;e=mt.createElement("div"),e.innerHTML="
a",i=e.getElementsByTagName("a")[0],(r=i&&i.style)&&(r.cssText="float:left;opacity:.5",at.opacity="0.5"===r.opacity,at.cssFloat=!!r.cssFloat,e.style.backgroundClip="content-box",e.cloneNode(!0).style.backgroundClip="",at.clearCloneStyle="content-box"===e.style.backgroundClip,at.boxSizing=""===r.boxSizing||""===r.MozBoxSizing||""===r.WebkitBoxSizing,st.extend(at,{reliableHiddenOffsets:function(){return null==s&&t(),s},boxSizingReliable:function(){return null==a&&t(),a},pixelPosition:function(){return null==o&&t(),o},reliableMarginRight:function(){return null==u&&t(),u}}))}(),st.swap=function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];i=n.apply(t,r||[]);for(o in e)t.style[o]=a[o];return i};var se=/alpha\([^)]*\)/i,ue=/opacity\s*=\s*([^)]*)/,ce=/^(none|table(?!-c[ea]).+)/,le=new RegExp("^("+St+")(.*)$","i"),fe=new RegExp("^([+-])=("+St+")","i"),de={position:"absolute",visibility:"hidden",display:"block"},he={letterSpacing:"0",fontWeight:"400"},pe=["Webkit","O","Moz","ms"];st.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=re(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:at.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=st.camelCase(e),u=t.style;if(e=st.cssProps[s]||(st.cssProps[s]=N(u,s)),a=st.cssHooks[e]||st.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:u[e];if(o=typeof n,"string"===o&&(i=fe.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(st.css(t,e)),o="number"),null!=n&&n===n&&("number"!==o||st.cssNumber[s]||(n+="px"),at.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(t,n,r)))))try{u[e]=n}catch(t){}}},css:function(t,e,n,r){var i,o,a,s=st.camelCase(e);return e=st.cssProps[s]||(st.cssProps[s]=N(t.style,s)),a=st.cssHooks[e]||st.cssHooks[s],a&&"get"in a&&(o=a.get(t,!0,n)),void 0===o&&(o=re(t,e,r)),"normal"===o&&e in he&&(o=he[e]),""===n||n?(i=parseFloat(o),!0===n||st.isNumeric(i)?i||0:o):o}}),st.each(["height","width"],function(t,e){st.cssHooks[e]={get:function(t,n,r){if(n)return ce.test(st.css(t,"display"))&&0===t.offsetWidth?st.swap(t,de,function(){return D(t,e,r)}):D(t,e,r)},set:function(t,n,r){var i=r&&ne(t);return L(t,n,r?I(t,e,r,at.boxSizing&&"border-box"===st.css(t,"boxSizing",!1,i),i):0)}}}),at.opacity||(st.cssHooks.opacity={get:function(t,e){return ue.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,r=t.currentStyle,i=st.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===st.trim(o.replace(se,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||r&&!r.filter)||(n.filter=se.test(o)?o.replace(se,i):o+" "+i)}}),st.cssHooks.marginRight=T(at.reliableMarginRight,function(t,e){if(e)return st.swap(t,{display:"inline-block"},re,[t,"marginRight"])}),st.each({margin:"",padding:"",border:"Width"},function(t,e){st.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+At[r]+e]=o[r]||o[r-2]||o[0];return i}},ie.test(t)||(st.cssHooks[t+e].set=L)}),st.fn.extend({css:function(t,e){return Nt(this,function(t,e,n){var r,i,o={},a=0;if(st.isArray(e)){for(r=ne(t),i=e.length;a1)},show:function(){return P(this,!0)},hide:function(){return P(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Tt(this)?st(this).show():st(this).hide()})}}),st.Tween=q,q.prototype={constructor:q,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||"swing",this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(st.cssNumber[n]?"":"px")},cur:function(){var t=q.propHooks[this.prop];return t&&t.get?t.get(this):q.propHooks._default.get(this)},run:function(t){var e,n=q.propHooks[this.prop];return this.options.duration?this.pos=e=st.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):q.propHooks._default.set(this),this}},q.prototype.init.prototype=q.prototype,q.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=st.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){st.fx.step[t.prop]?st.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[st.cssProps[t.prop]]||st.cssHooks[t.prop])?st.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},q.propHooks.scrollTop=q.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},st.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},st.fx=q.prototype.init,st.fx.step={};var ve,ye,me=/^(?:toggle|show|hide)$/,be=new RegExp("^(?:([+-])=|)("+St+")([a-z%]*)$","i"),ge=/queueHooks$/,we=[F],_e={"*":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=be.exec(e),o=i&&i[3]||(st.cssNumber[t]?"":"px"),a=(st.cssNumber[t]||"px"!==o&&+r)&&be.exec(st.css(n.elem,t)),s=1,u=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do{s=s||".5",a/=s,st.style(n.elem,t,a+o)}while(s!==(s=n.cur()/r)&&1!==s&&--u)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};st.Animation=st.extend(U,{tweener:function(t,e){st.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,r=0,i=t.length;r
a",r=e.getElementsByTagName("a")[0],n=mt.createElement("select"),i=n.appendChild(mt.createElement("option")),t=e.getElementsByTagName("input")[0],r.style.cssText="top:1px",at.getSetAttribute="t"!==e.className,at.style=/top/.test(r.getAttribute("style")),at.hrefNormalized="/a"===r.getAttribute("href"),at.checkOn=!!t.value,at.optSelected=i.selected,at.enctype=!!mt.createElement("form").enctype,n.disabled=!0,at.optDisabled=!i.disabled,t=mt.createElement("input"),t.setAttribute("value",""),at.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),at.radioValue="t"===t.value}();var ke=/\r/g;st.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=st.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,st(this).val()):t,null==i?i="":"number"==typeof i?i+="":st.isArray(i)&&(i=st.map(i,function(t){return null==t?"":t+""})),(e=st.valHooks[this.type]||st.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))});if(i)return(e=st.valHooks[i.type]||st.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(ke,""):null==n?"":n)}}}),st.extend({valHooks:{option:{get:function(t){var e=st.find.attr(t,"value");return null!=e?e:st.trim(st.text(t))}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,o="select-one"===t.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u=0)try{r.selected=n=!0}catch(t){r.scrollHeight}else r.selected=!1;return n||(t.selectedIndex=-1),i}}}}),st.each(["radio","checkbox"],function(){st.valHooks[this]={set:function(t,e){if(st.isArray(e))return t.checked=st.inArray(st(t).val(),e)>=0}},at.checkOn||(st.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Oe,Ee,xe=st.expr.attrHandle,Ce=/^(?:checked|selected)$/i,je=at.getSetAttribute,Se=at.input;st.fn.extend({attr:function(t,e){return Nt(this,st.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){st.removeAttr(this,t)})}}),st.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===xt?st.prop(t,e,n):(1===o&&st.isXMLDoc(t)||(e=e.toLowerCase(),r=st.attrHooks[e]||(st.expr.match.bool.test(e)?Ee:Oe)),void 0===n?r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=st.find.attr(t,e),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):void st.removeAttr(t,e))},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(_t);if(o&&1===t.nodeType)for(;n=o[i++];)r=st.propFix[n]||n,st.expr.match.bool.test(n)?Se&&je||!Ce.test(n)?t[r]=!1:t[st.camelCase("default-"+n)]=t[r]=!1:st.attr(t,n,""),t.removeAttribute(je?n:r)},attrHooks:{type:{set:function(t,e){if(!at.radioValue&&"radio"===e&&st.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),Ee={set:function(t,e,n){return!1===e?st.removeAttr(t,n):Se&&je||!Ce.test(n)?t.setAttribute(!je&&st.propFix[n]||n,n):t[st.camelCase("default-"+n)]=t[n]=!0,n}},st.each(st.expr.match.bool.source.match(/\w+/g),function(t,e){var n=xe[e]||st.find.attr;xe[e]=Se&&je||!Ce.test(e)?function(t,e,r){var i,o;return r||(o=xe[e],xe[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,xe[e]=o),i}:function(t,e,n){if(!n)return t[st.camelCase("default-"+e)]?e.toLowerCase():null}}),Se&&je||(st.attrHooks.value={set:function(t,e,n){if(!st.nodeName(t,"input"))return Oe&&Oe.set(t,e,n);t.defaultValue=e}}),je||(Oe={set:function(t,e,n){var r=t.getAttributeNode(n);if(r||t.setAttributeNode(r=t.ownerDocument.createAttribute(n)),r.value=e+="","value"===n||e===t.getAttribute(n))return e}},xe.id=xe.name=xe.coords=function(t,e,n){var r;if(!n)return(r=t.getAttributeNode(e))&&""!==r.value?r.value:null},st.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);if(n&&n.specified)return n.value},set:Oe.set},st.attrHooks.contenteditable={set:function(t,e,n){Oe.set(t,""!==e&&e,n)}},st.each(["width","height"],function(t,e){st.attrHooks[e]={set:function(t,n){if(""===n)return t.setAttribute(e,"auto"),n}}})),at.style||(st.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var Ae=/^(?:input|select|textarea|button|object)$/i,Te=/^(?:a|area)$/i;st.fn.extend({prop:function(t,e){return Nt(this,st.prop,t,e,arguments.length>1)},removeProp:function(t){return t=st.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(t){}})}}),st.extend({propFix:{for:"htmlFor",class:"className"},prop:function(t,e,n){var r,i,o,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return o=1!==a||!st.isXMLDoc(t),o&&(e=st.propFix[e]||e,i=st.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=st.find.attr(t,"tabindex");return e?parseInt(e,10):Ae.test(t.nodeName)||Te.test(t.nodeName)&&t.href?0:-1}}}}),at.hrefNormalized||st.each(["href","src"],function(t,e){st.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),at.optSelected||(st.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),st.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){st.propFix[this.toLowerCase()]=this}),at.enctype||(st.propFix.enctype="encoding");var Ne=/[\t\r\n\f]/g;st.fn.extend({addClass:function(t){var e,n,r,i,o,a,s=0,u=this.length,c="string"==typeof t&&t;if(st.isFunction(t))return this.each(function(e){st(this).addClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(_t)||[];s=0;)r=r.replace(" "+i+" "," ");a=t?st.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):st.isFunction(t)?this.each(function(n){st(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var e,r=0,i=st(this),o=t.match(_t)||[];e=o[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else n!==xt&&"boolean"!==n||(this.className&&st._data(this,"__className__",this.className),this.className=this.className||!1===t?"":st._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,r=this.length;n=0)return!0;return!1}}),st.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){st.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),st.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var Pe=st.now(),Le=/\?/,Ie=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;st.parseJSON=function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t+"");var e,r=null,i=st.trim(t+"");return i&&!st.trim(i.replace(Ie,function(t,n,i,o){return e&&n&&(r=0),0===r?t:(e=i||n,r+=!o-!i,"")}))?Function("return "+i)():st.error("Invalid JSON: "+t)},st.parseXML=function(t){var e,r;if(!t||"string"!=typeof t)return null;try{n.DOMParser?(r=new DOMParser,e=r.parseFromString(t,"text/xml")):(e=new ActiveXObject("Microsoft.XMLDOM"),e.async="false",e.loadXML(t))}catch(t){e=void 0}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length||st.error("Invalid XML: "+t),e};var De,qe,Re=/#.*$/,Me=/([?&])_=[^&]*/,Be=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Fe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ze=/^(?:GET|HEAD)$/,Ue=/^\/\//,He=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,We={},Ke={},Ve="*/".concat("*");try{qe=location.href}catch(t){qe=mt.createElement("a"),qe.href="",qe=qe.href}De=He.exec(qe.toLowerCase())||[],st.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:qe,type:"GET",isLocal:Fe.test(De[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ve,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":st.parseJSON,"text xml":st.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?K(K(t,st.ajaxSettings),e):K(st.ajaxSettings,t)},ajaxPrefilter:H(We),ajaxTransport:H(Ke),ajax:function(t,e){function n(t,e,n,r){var i,l,m,b,w,k=e;2!==g&&(g=2,s&&clearTimeout(s),c=void 0,a=r||"",_.readyState=t>0?4:0,i=t>=200&&t<300||304===t,n&&(b=V(f,_,n)),b=Q(f,b,_,i),i?(f.ifModified&&(w=_.getResponseHeader("Last-Modified"),w&&(st.lastModified[o]=w),(w=_.getResponseHeader("etag"))&&(st.etag[o]=w)),204===t||"HEAD"===f.type?k="nocontent":304===t?k="notmodified":(k=b.state,l=b.data,m=b.error,i=!m)):(m=k,!t&&k||(k="error",t<0&&(t=0))),_.status=t,_.statusText=(e||k)+"",i?p.resolveWith(d,[l,k,_]):p.rejectWith(d,[_,k,m]),_.statusCode(y),y=void 0,u&&h.trigger(i?"ajaxSuccess":"ajaxError",[_,f,i?l:m]),v.fireWith(d,[_,k]),u&&(h.trigger("ajaxComplete",[_,f]),--st.active||st.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,a,s,u,c,l,f=st.ajaxSetup({},e),d=f.context||f,h=f.context&&(d.nodeType||d.jquery)?st(d):st.event,p=st.Deferred(),v=st.Callbacks("once memory"),y=f.statusCode||{},m={},b={},g=0,w="canceled",_={readyState:0,getResponseHeader:function(t){var e;if(2===g){if(!l)for(l={};e=Be.exec(a);)l[e[1].toLowerCase()]=e[2];e=l[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===g?a:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return g||(t=b[n]=b[n]||t,m[t]=e),this},overrideMimeType:function(t){return g||(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(g<2)for(e in t)y[e]=[y[e],t[e]];else _.always(t[_.status]);return this},abort:function(t){var e=t||w;return c&&c.abort(e),n(0,e),this}};if(p.promise(_).complete=v.add,_.success=_.done,_.error=_.fail,f.url=((t||f.url||qe)+"").replace(Re,"").replace(Ue,De[1]+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=st.trim(f.dataType||"*").toLowerCase().match(_t)||[""],null==f.crossDomain&&(r=He.exec(f.url.toLowerCase()),f.crossDomain=!(!r||r[1]===De[1]&&r[2]===De[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(De[3]||("http:"===De[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=st.param(f.data,f.traditional)),W(We,f,e,_),2===g)return _;u=f.global,u&&0==st.active++&&st.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!ze.test(f.type),o=f.url,f.hasContent||(f.data&&(o=f.url+=(Le.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=Me.test(o)?o.replace(Me,"$1_="+Pe++):o+(Le.test(o)?"&":"?")+"_="+Pe++)),f.ifModified&&(st.lastModified[o]&&_.setRequestHeader("If-Modified-Since",st.lastModified[o]),st.etag[o]&&_.setRequestHeader("If-None-Match",st.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&_.setRequestHeader("Content-Type",f.contentType),_.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ve+"; q=0.01":""):f.accepts["*"]);for(i in f.headers)_.setRequestHeader(i,f.headers[i]);if(f.beforeSend&&(!1===f.beforeSend.call(d,_,f)||2===g))return _.abort();w="abort";for(i in{success:1,error:1,complete:1})_[i](f[i]);if(c=W(Ke,f,e,_)){_.readyState=1,u&&h.trigger("ajaxSend",[_,f]),f.async&&f.timeout>0&&(s=setTimeout(function(){_.abort("timeout")},f.timeout));try{g=1,c.send(m,n)}catch(t){if(!(g<2))throw t;n(-1,t)}}else n(-1,"No Transport");return _},getJSON:function(t,e,n){return st.get(t,e,n,"json")},getScript:function(t,e){return st.get(t,void 0,e,"script")}}),st.each(["get","post"],function(t,e){st[e]=function(t,n,r,i){return st.isFunction(n)&&(i=i||r,r=n,n=void 0),st.ajax({url:t,type:e,dataType:i,data:n,success:r})}}),st.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){st.fn[e]=function(t){return this.on(e,t)}}),st._evalUrl=function(t){return st.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},st.fn.extend({wrapAll:function(t){if(st.isFunction(t))return this.each(function(e){st(this).wrapAll(t.call(this,e))});if(this[0]){var e=st(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return st.isFunction(t)?this.each(function(e){st(this).wrapInner(t.call(this,e))}):this.each(function(){var e=st(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=st.isFunction(t);return this.each(function(n){st(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){st.nodeName(this,"body")||st(this).replaceWith(this.childNodes)}).end()}}),st.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!at.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||st.css(t,"display"))},st.expr.filters.visible=function(t){return!st.expr.filters.hidden(t)};var Qe=/%20/g,Ye=/\[\]$/,$e=/\r?\n/g,Ze=/^(?:submit|button|image|reset|file)$/i,Ge=/^(?:input|select|textarea|keygen)/i;st.param=function(t,e){var n,r=[],i=function(t,e){e=st.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=st.ajaxSettings&&st.ajaxSettings.traditional),st.isArray(t)||t.jquery&&!st.isPlainObject(t))st.each(t,function(){i(this.name,this.value)});else for(n in t)Y(n,t[n],e,i);return r.join("&").replace(Qe,"+")},st.fn.extend({serialize:function(){return st.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=st.prop(this,"elements");return t?st.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!st(this).is(":disabled")&&Ge.test(this.nodeName)&&!Ze.test(t)&&(this.checked||!Pt.test(t))}).map(function(t,e){var n=st(this).val();return null==n?null:st.isArray(n)?st.map(n,function(t){return{name:e.name,value:t.replace($e,"\r\n")}}):{name:e.name,value:n.replace($e,"\r\n")}}).get()}}),st.ajaxSettings.xhr=void 0!==n.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&$()||Z()}:$;var Xe=0,Je={},tn=st.ajaxSettings.xhr();n.ActiveXObject&&st(n).on("unload",function(){for(var t in Je)Je[t](void 0,!0)}),at.cors=!!tn&&"withCredentials"in tn,tn=at.ajax=!!tn,tn&&st.ajaxTransport(function(t){if(!t.crossDomain||at.cors){var e;return{send:function(n,r){var i,o=t.xhr(),a=++Xe;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)o[i]=t.xhrFields[i];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");o.send(t.hasContent&&t.data||null),e=function(n,i){var s,u,c;if(e&&(i||4===o.readyState))if(delete Je[a],e=void 0,o.onreadystatechange=st.noop,i)4!==o.readyState&&o.abort();else{c={},s=o.status,"string"==typeof o.responseText&&(c.text=o.responseText);try{u=o.statusText}catch(t){u=""}s||!t.isLocal||t.crossDomain?1223===s&&(s=204):s=c.text?200:404}c&&r(s,u,c,o.getAllResponseHeaders())},t.async?4===o.readyState?setTimeout(e):o.onreadystatechange=Je[a]=e:e()},abort:function(){e&&e(void 0,!0)}}}}),st.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return st.globalEval(t),t}}}),st.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),st.ajaxTransport("script",function(t){if(t.crossDomain){var e,n=mt.head||st("head")[0]||mt.documentElement;return{send:function(r,i){e=mt.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||i(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var en=[],nn=/(=)\?(?=&|$)|\?\?/;st.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||st.expando+"_"+Pe++;return this[t]=!0,t}}),st.ajaxPrefilter("json jsonp",function(t,e,r){var i,o,a,s=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=st.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(nn,"$1"+i):!1!==t.jsonp&&(t.url+=(Le.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||st.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always(function(){n[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,en.push(i)),a&&st.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),st.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||mt;var r=pt.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=st.buildFragment([t],e,i),i&&i.length&&st(i).remove(),st.merge([],r.childNodes))};var rn=st.fn.load;st.fn.load=function(t,e,n){if("string"!=typeof t&&rn)return rn.apply(this,arguments);var r,i,o,a=this,s=t.indexOf(" ");return s>=0&&(r=st.trim(t.slice(s,t.length)),t=t.slice(0,s)),st.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),a.length>0&&st.ajax({url:t,type:o,dataType:"html",data:e}).done(function(t){i=arguments,a.html(r?st("
").append(st.parseHTML(t)).find(r):t)}).complete(n&&function(t,e){a.each(n,i||[t.responseText,e,t])}),this},st.expr.filters.animated=function(t){return st.grep(st.timers,function(e){return t===e.elem}).length};var on=n.document.documentElement;st.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,c,l=st.css(t,"position"),f=st(t),d={};"static"===l&&(t.style.position="relative"),s=f.offset(),o=st.css(t,"top"),u=st.css(t,"left"),c=("absolute"===l||"fixed"===l)&&st.inArray("auto",[o,u])>-1,c?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),st.isFunction(e)&&(e=e.call(t,n,s)),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+i),"using"in e?e.using.call(t,d):f.css(d)}},st.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){st.offset.setOffset(this,t,e)});var e,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;if(o)return e=o.documentElement,st.contains(e,i)?(typeof i.getBoundingClientRect!==xt&&(r=i.getBoundingClientRect()),n=G(o),{top:r.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:r.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):r},position:function(){if(this[0]){var t,e,n={top:0,left:0},r=this[0];return"fixed"===st.css(r,"position")?e=r.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),st.nodeName(t[0],"html")||(n=t.offset()),n.top+=st.css(t[0],"borderTopWidth",!0),n.left+=st.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-st.css(r,"marginTop",!0),left:e.left-n.left-st.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||on;t&&!st.nodeName(t,"html")&&"static"===st.css(t,"position");)t=t.offsetParent;return t||on})}}),st.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n=/Y/.test(e);st.fn[t]=function(r){return Nt(this,function(t,r,i){var o=G(t);if(void 0===i)return o?e in o?o[e]:o.document.documentElement[r]:t[r];o?o.scrollTo(n?st(o).scrollLeft():i,n?i:st(o).scrollTop()):t[r]=i},t,r,arguments.length,null)}}),st.each(["top","left"],function(t,e){st.cssHooks[e]=T(at.pixelPosition,function(t,n){if(n)return n=re(t,e),oe.test(n)?st(t).position()[e]+"px":n})}),st.each({Height:"height",Width:"width"},function(t,e){st.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){st.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return Nt(this,function(e,n,r){var i;return st.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===r?st.css(e,n,a):st.style(e,n,r,a)},e,o?r:void 0,o,null)}})}),st.fn.size=function(){return this.length},st.fn.andSelf=st.fn.addBack,r=[],void 0!==(i=function(){return st}.apply(e,r))&&(t.exports=i);var an=n.jQuery,sn=n.$;return st.noConflict=function(t){return n.$===st&&(n.$=sn),t&&n.jQuery===st&&(n.jQuery=an),st},typeof o===xt&&(n.jQuery=n.$=st),st})},function(t,e,n){var r=n(16);t.exports=r("Any",function(){return!0})},function(t,e,n){function r(t,e){return"{"+c(t)+" | "+l(e)+"}"}function i(t,e,n){function i(e,n){var r=s(t,e,n);return r}var c=n||r(t,e),l=a(t);return i.meta={kind:"subtype",type:t,predicate:e,name:n,identity:l},i.displayName=c,i.is=function(n){return u(n,t)&&e(n)},i.update=function(t,e){return i(o.update(t,e))},i}var o=n(5),a=(n(20),n(10),n(52),n(29)),s=n(30),u=n(31),c=n(8),l=n(51);i.getDefaultName=r,t.exports=i},function(t,e,n){var r=n(16),i=n(65);t.exports=r("String",i)},function(t,e,n){function r(t,e){return"{[key: "+a(t)+"]: "+a(e)+"}"}function i(t,e,n){function i(n,r){if(d)return n;var i=!0,o={};for(var a in n)if(n.hasOwnProperty(a)){a=c(t,a,null);var s=n[a],u=c(e,s,null);i=i&&s===u,o[a]=u}return i&&(o=n),o}var f=n||r(t,e),d=(a(t),a(e),s(t)&&s(e));return i.meta={kind:"dict",domain:t,codomain:e,name:n,identity:d},i.displayName=f,i.is=function(n){if(!u(n))return!1;for(var r in n)if(n.hasOwnProperty(r)&&(!l(r,t)||!l(n[r],e)))return!1;return!0},i.update=function(t,e){return i(o.update(t,e))},i}var o=n(5),a=(n(20),n(10),n(8)),s=n(29),u=n(27),c=n(30),l=n(31);i.getDefaultName=r,t.exports=i},function(t,e,n){var r=n(25);n(5);t.exports=function(t,e,n){if(r(e))return t;for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}},function(t,e,n){"use strict";function r(){return u||(u=new c.a,Object(f.a)(s)),u.promise}function i(){return h+=1,a()}function o(t){var e=i();return d.a(t,e)}function a(){var t=!1;return function(){if(t)throw new l.InternalError("Unregister must not be called twice");h-=1,t=!0,0===h&&Object(f.a)(s)}}function s(){u&&0===h&&(u.resolve(void 0),u=void 0)}e.a=r,e.c=i,e.b=o;var u,c=n(12),l=n(1),f=n(37),d=n(50),h=0},function(t,e,n){"use strict";function r(t,e){var n=u[t];if(n)return n[e]}function i(t,e){p(t,e),u[t]=e}n.d(e,"b",function(){return i}),n.d(e,"a",function(){return r});var o=n(24),a=n(39),s=n(59),u={},c=o.a.struct({value:o.a.String,title:o.a.String}),l=o.a.dict(o.a.String,o.a.struct({title:o.a.maybe(o.a.String),description:o.a.maybe(o.a.String),values:o.a.maybe(o.a.list(c))})),f=o.a.list(o.a.struct({title:o.a.String,component:o.a.maybe(o.a.String),properties:o.a.maybe(o.a.list(o.a.String))})),d=o.a.dict(o.a.String,o.a.union([s.b,o.a.Date,o.a.Function,o.a.Nil,o.a.Number,o.a.String,o.a.list(s.b),o.a.list(s.e),o.a.list(o.a.String)])),h=o.a.struct({attributes:o.a.maybe(l),propertiesGroups:o.a.maybe(f),title:o.a.maybe(o.a.String),description:o.a.maybe(o.a.String),thumbnail:o.a.maybe(o.a.String),titleForContent:o.a.maybe(o.a.Function),descriptionForContent:o.a.maybe(o.a.Function),hideInSelectionDialogs:o.a.maybe(o.a.Boolean),properties:o.a.maybe(o.a.list(o.a.String)),initialContent:o.a.maybe(d)}),p=Object(a.a)("provideEditingConfig",[["className",o.a.String],["editingConfig",h]],{docPermalink:"js-sdk/provideEditingConfig"})},function(t,e,n){"use strict";var r=function(){};t.exports=r},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"f",function(){return i}),n.d(e,"c",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"g",function(){return s}),n.d(e,"d",function(){return u}),n.d(e,"b",function(){return c});var r=function(t){return"/"===t.charAt(0)?t:"/"+t},i=function(t){return"/"===t.charAt(0)?t.substr(1):t},o=function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)},a=function(t,e){return o(t,e)?t.substr(e.length):t},s=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},u=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}},c=function(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}},function(t,e){t.exports=ReactDOM},function(t,e,n){"use strict";function r(t,e){u[t]=e}function i(t){return u[t]||null}function o(t,e){r(s(t),e)}function a(t){return i(s(t))}function s(t){return"appClass-".concat(t)}n.d(e,"a",function(){return a}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return o}),n.d(e,"d",function(){return r});var u={}},function(t,e,n){"use strict";function r(){return!!i.b&&i.b.isEditingMode()}e.a=r;var i=n(17)},function(t,e,n){"use strict";function r(t,e){return a(t)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function a(t){if(Array.isArray(t))return t}function s(t,e){if(!t)return e;if(!e)return null;var n={};return c(t,e,function(r,i,o){"_widget_pool"===r?n._widget_pool=f(i,o):e.hasOwnProperty(r)?o&&(n[r]=o):n[r]=t[r]}),n}function u(t,e){if(!t)return e;if(!e)return null;var n={};return c(t,e,function(t,e,r){if("_widget_pool"===t){var i=h(e,r);v.a.isEmpty(i)||(n._widget_pool=i)}else{var o=d(e,r,function(){if(!v.a.isEqual(e,r))return r});void 0!==o&&(n[t]=o)}}),n}function c(t,e,n){v.a.union(v.a.keys(t),v.a.keys(e)).forEach(function(r){return n(r,l(t[r]),l(e[r]))})}function l(t){if(v.a.isArray(t)){var e=r(t,2),n=e[0],i=e[1];return"binary"===n&&i?[n,v.a.omit(i,"url")]:t}return t}function f(t,e){if(!e||v.a.isEmpty(e))return t;var n={};return c(t||{},e||{},function(t,r,i){e.hasOwnProperty(t)?i&&!r?n[t]=i:i&&(n[t]=s(r,i)):n[t]=r}),n}function d(t,e,n){return!t&&e?e:t&&!e?null:t&&e?n():void 0}function h(t,e){if(t===e)return{};var n={};return c(t,e,function(t,e,r){var i=d(e,r,function(){var t=u(e,r);if(!v.a.isEmpty(t))return t});void 0!==i&&(n[t]=i)}),n}e.a=s,e.b=u;var p=n(0),v=n.n(p)},,,function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){v&&h&&(v=!1,h.length?p=h.concat(p):y=-1,p.length&&s())}function s(){if(!v){var t=i(a);v=!0;for(var e=p.length;e;){for(h=p,p=[];++y1)for(var n=1;n0?t:e}function l(t,e){return t?e?f(t._version,e._version):1:-1}function f(t,e){return t>e?1:e>t?-1:0}n.d(e,"a",function(){return _});var d=n(0),h=n.n(d),p=n(21),v=n(58),y=n(88),m=n(53),b=n(12),g=n(37),w=n(1),_=function(){function t(e){var n=this;i(this,t),this._id=e,this._replicationActive=!1,this._scheduledReplication=!1,this._currentRequestDeferred=null,this._nextRequestDeferred=null,this._performThrottledReplication=scrivito.throttle(function(){return n._performReplication()},1e3)}return a(t,[{key:"notifyLocalState",value:function(t){if(!m.a.isDisabled()){if(void 0===this._backendState)throw new w.InternalError("Can not set local state before backend state.");if(this._backendState&&this._backendState._deleted)throw new w.InternalError("Can not update a fully deleted obj.");this._localState=t,this._startReplication()}}},{key:"notifyBackendState",value:function(t){if(void 0===this._backendState)return this._backendState=t,void this._updateLocalState(t);if(l(t,this._bufferedBackendState||this._backendState)>0)if(this._replicationActive)this._bufferedBackendState=t;else{if(t._deleted)this._updateLocalState(null);else{var e=s(this._backendState,t);this._updateLocalState(u(this.localState,e))}this._backendState=t}}},{key:"finishSaving",value:function(){var t;if(this._nextRequestDeferred)t=this._nextRequestDeferred.promise;else{if(!this._currentRequestDeferred)return scrivito.Promise.resolve();t=this._currentRequestDeferred.promise}return t.catch(function(){return scrivito.Promise.reject()})}},{key:"_startReplication",value:function(){var t=this;h.a.isEmpty(s(this._backendState,this._localState))?this._nextRequestDeferred&&(this._nextRequestDeferred.resolve(),this._nextRequestDeferred=null):this._replicationActive?this._nextRequestDeferred||(this._nextRequestDeferred=new b.a):this._scheduledReplication||(this._scheduledReplication=!0,this._initDeferredForRequest(),m.a.writeStarted(this._currentRequestDeferred.promise),Object(g.a)(function(){return t._performThrottledReplication()}))}},{key:"_performReplication",value:function(){var t=this,e=this._localState,n=s(this._backendState,this._localState);this._scheduledReplication=!1,this._replicationActive=!0,this._replicatePatchToBackend(n).then(function(n){t._handleBackendUpdate(e,n),t._currentRequestDeferred.resolve(t._id),t._currentRequestDeferred=null,t._replicationActive=!1,t._startReplication()},function(e){t._currentRequestDeferred.reject(e),t._currentRequestDeferred=null,t._replicationActive=!1})}},{key:"_replicatePatchToBackend",value:function(t){if(h.a.isEmpty(t))return scrivito.Promise.resolve(this._backendState);var e=scrivito.currentWorkspaceId(),n="workspaces/".concat(e,"/objs/").concat(this._id);return p.a.put(n,{obj:t})}},{key:"_initDeferredForRequest",value:function(){if(this._nextRequestDeferred){var t=this._nextRequestDeferred;this._nextRequestDeferred=null,this._currentRequestDeferred=t}else this._currentRequestDeferred=new b.a}},{key:"_handleBackendUpdate",value:function(t,e){var n=s(t,this._localState);this._backendState=c(e,this._bufferedBackendState),this._bufferedBackendState=void 0,this._updateLocalState(u(this._backendState,n))}},{key:"_updateLocalState",value:function(t){this._localState=t,v.d(this._id,this._localState)}},{key:"isNotStoredInBackend",value:function(){return null===this._backendState}},{key:"isRequestInFlight",value:function(){return this._replicationActive}},{key:"backendState",get:function(){return this._backendState}},{key:"localState",get:function(){return this._localState}}]),t}()},function(t,e,n){(function(t,r){var i;!function(o){function a(t){throw new RangeError(P[t])}function s(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function u(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(N,"."),r+s(t.split("."),e).join(".")}function c(t){for(var e,n,r=[],i=0,o=t.length;i=55296&&e<=56319&&i65535&&(t-=65536,e+=D(t>>>10&1023|55296),t=56320|1023&t),e+=D(t)}).join("")}function f(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:_}function d(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function h(t,e,n){var r=0;for(t=n?I(t/x):t>>1,t+=I(t/e);t>L*O>>1;r+=_)t=I(t/L);return I(r+(L+1)*t/(t+E))}function p(t){var e,n,r,i,o,s,u,c,d,p,v=[],y=t.length,m=0,b=j,g=C;for(n=t.lastIndexOf(S),n<0&&(n=0),r=0;r=128&&a("not-basic"),v.push(t.charCodeAt(r));for(i=n>0?n+1:0;i=y&&a("invalid-input"),c=f(t.charCodeAt(i++)),(c>=_||c>I((w-m)/s))&&a("overflow"),m+=c*s,d=u<=g?k:u>=g+O?O:u-g,!(cI(w/p)&&a("overflow"),s*=p;e=v.length+1,g=h(m-o,e,0==o),I(m/e)>w-b&&a("overflow"),b+=I(m/e),m%=e,v.splice(m++,0,b)}return l(v)}function v(t){var e,n,r,i,o,s,u,l,f,p,v,y,m,b,g,E=[];for(t=c(t),y=t.length,e=j,n=0,o=C,s=0;s=e&&vI((w-n)/m)&&a("overflow"),n+=(u-e)*m,e=u,s=0;sw&&a("overflow"),v==e){for(l=n,f=_;p=f<=o?k:f>=o+O?O:f-o,!(l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=_-k,I=Math.floor,D=String.fromCharCode;g={version:"1.3.2",ucs2:{decode:c,encode:l},decode:p,encode:v,toASCII:m,toUnicode:y},void 0!==(i=function(){return g}.call(e,n,e,t))&&(t.exports=i)}()}).call(e,n(98)(t),n(40))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r,i;/*! * URI.js - Mutating URLs * IPv6 Support * * Version: 1.19.1 * * Author: Rodney Rehm * Web: http://medialize.github.io/URI.js/ * * Licensed under * MIT License http://www.opensource.org/licenses/mit-license * */ !function(o,a){"use strict";"object"==typeof t&&t.exports?t.exports=a():(r=a,void 0!==(i="function"==typeof r?r.call(e,n,e,t):r)&&(t.exports=i))}(0,function(t){"use strict";function e(t){var e=t.toLowerCase(),n=e.split(":"),r=n.length,i=8;""===n[0]&&""===n[1]&&""===n[2]?(n.shift(),n.shift()):""===n[0]&&""===n[1]?n.shift():""===n[r-1]&&""===n[r-2]&&n.pop(),r=n.length,-1!==n[r-1].indexOf(".")&&(i=7);var o;for(o=0;o1);u++)a.splice(0,1);n[s]=a.join("")}var c=-1,l=0,f=0,d=-1,h=!1;for(s=0;sl&&(c=d,l=f)):"0"===n[s]&&(h=!0,d=s,f=1);f>l&&(c=d,l=f),l>1&&n.splice(c,l,""),r=n.length;var p="";for(""===n[0]&&(p=":"),s=0;s=t.length-1)return!1;var r=t.lastIndexOf(".",e-1);if(r<=0||r>=e-1)return!1;var i=n.list[t.slice(e+1)];return!!i&&i.indexOf(" "+t.slice(r+1,e)+" ")>=0},is:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return!1;if(t.lastIndexOf(".",e-1)>=0)return!1;var r=n.list[t.slice(e+1)];return!!r&&r.indexOf(" "+t.slice(0,e)+" ")>=0},get:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return null;var r=t.lastIndexOf(".",e-1);if(r<=0||r>=e-1)return null;var i=n.list[t.slice(e+1)];return i?i.indexOf(" "+t.slice(r+1,e)+" ")<0?null:t.slice(r+1):null},noConflict:function(){return t.SecondLevelDomains===this&&(t.SecondLevelDomains=e),this}};return n})},function(t,e,n){"use strict";function r(){return f>0}function i(t,e,n){var r=n.params,i=n.authorization,a=n.forceVerification;return l?scrivito.Promise.resolve(new XMLHttpRequest):(f+=1,new scrivito.Promise(function(n,s){var u=o(t,e,n,s);i&&u.setRequestHeader("Authorization",i),u.setRequestHeader("Scrivito-Client","jssdk/1.2.0-rc2-8-gc9ddb6bb"),a&&u.setRequestHeader("Scrivito-Force-Verification","true"),u.setRequestHeader("Content-type","application/json; charset=utf-8"),u.send(JSON.stringify(r))}))}function o(t,e,n,r){function i(t){s(new c.RequestFailedError(t),r)}var o=new XMLHttpRequest;return o.open("POST"===t?"POST":"PUT",e),o.timeout=15e3,o.withCredentials=!0,o.onload=function(){return a(o,n,r)},o.onerror=function(){return i("XMLHttpRequest Error")},o.ontimeout=function(){return i("XMLHttpRequest Timeout")},o.onabort=function(){return i("XMLHttpRequest Aborted")},o}function a(t,e,n){f-=1;var r=t.status;if(!r||!Object(u.isNumber)(r)){var i="Unexpected response status: "+r+"; body: "+(0===r?t.statusText:t.responseText);n(new c.RequestFailedError(i))}e(t)}function s(t,e){f-=1,e(t)}e.b=r,e.a=i;var u=n(0),c=(n.n(u),n(1)),l=!1,f=0},function(t,e,n){"use strict";var r=n(169),i=n.n(r);scrivito.Promise=window.Promise||i.a},function(t,e,n){"use strict";function r(t){var e=[],n=c.runWith(e,t);return new f(e,n)}function i(t){var e=l();if(!e)throw t(),new s.ScrivitoError("Content not yet loaded. Forgot to use Scrivito.load or Scrivito.connect? See https://scrivito.com/content-not-yet-loaded-error");e.push({reason:"missing",loader:t})}function o(t){var e=l();e&&e.push({reason:"outdated",loader:t})}e.a=r,e.b=i,e.c=o;var a=n(0),s=(n.n(a),n(1)),u=n(69),c=new u.a,l=function(){return c.current()},f=function(){function t(t,e){this.captureList=t,this.result=e}return t.prototype.isAllDataLoaded=function(){return!Object(a.findWhere)(this.captureList,{reason:"missing"})},t.prototype.isAllDataUpToDate=function(){return 0===this.captureList.length},t.prototype.loadRequiredData=function(){if(0===this.captureList.length)return null;this.captureList.forEach(function(t){return t.loader()})},t}()},function(t,e,n){"use strict";var r=n(0),i=(n.n(r),n(12)),o=n(37),a=function(){function t(t,e){var n=(void 0===e?{}:e).batchSize;this.mget=t,this.batchSize=n||100,this.deferreds={}}return t.prototype.retrieve=function(t){var e=this;if(Object(r.isEmpty)(this.deferreds)&&Object(o.a)(function(){return e.performRetrieval()}),!this.deferreds[t]){var n=new i.a;this.deferreds[t]=n}return this.deferreds[t].promise},t.prototype.reset=function(){this.deferreds={}},t.prototype.performRetrieval=function(){var t=this,e=Object(r.keys)(this.deferreds).slice(0,this.batchSize);if(0!==e.length){var n={};e.forEach(function(e){n[e]=t.deferreds[e],delete t.deferreds[e]}),this.mget(e).then(function(r){e.forEach(function(e,i){var o=n[e],a=r[i];i"}function i(t,e){function n(e,n){if(f)return e;for(var r=!0,i=[],o=0,a=e.length;o"):">"}},{key:"id",value:function(){var t=this._dataForId(),e=t.name,n=t.objId,r=t.widgetId,i="".concat(e,"|").concat(n);return r&&(i+="|".concat(r)),i}},{key:"_assertValidTypes",value:function(t,e){if(!Object(c.include)(t,this.type()))throw new l.InternalError(e)}},{key:"_dataForId",value:function(){var t={name:this.name()},e=this.container();return r(e,u.default)?t.objId=e.id():(t.objId=e.obj().id(),t.widgetId=e.id()),t}},{key:"_sortValuesByLocalization",value:function(t){var e=this;return t?this.typeOptions().valuesLocalization?Object(c.sortBy)(t,function(n){var r=Object(c.findIndex)(e.typeOptions().valuesLocalization,{value:n});return-1===r?t.length:r}):t:[]}}]),t}()},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:window.document,n=e.createElement("link");n.rel="stylesheet",n.href=t,e.head.appendChild(n)}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document,n=e.createElement("script");n.src=t,e.head.appendChild(n)}e.a=r,e.b=i},function(t,e,n){"use strict";function r(t){var e=scrivito.currentWorkspaceId();if(t!==e)throw new i.InternalError("Requested and the actual current workspace differ! Expected "+e+", but saw "+t+".")}e.a=r;var i=n(1)},function(t,e,n){"use strict";function r(t,e){return a(t)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function a(t){if(Array.isArray(t))return t}function s(t,e){var n=u(t,e);if(n)return n;var r=t._widget_pool;return f.a.find(r,function(t,r){if(n=u(t,e))return n.parentWidgetId=r,!0}),n}function u(t,e){var n;return f.a.find(t,function(t,i){if(!Object(c.a)(i)){var o=r(t,2),a=o[0],s=o[1];if(s&&"widgetlist"===a){var u=s.indexOf(e);if(-1!==u)return n={attributeName:i,index:u},!0}}}),n}e.a=s;var c=n(47),l=n(0),f=n.n(l)},function(t,e,n){t.exports=n(212)},,,,,function(t,e,n){"use strict";function r(){if(window.parent!==window){var t=window.parent.connectAppDocument;return t?t(window.document):void 0}}e.a=r},function(t,e,n){"use strict";var r=n(127),i=(n.n(r),n(163),n(165),n(166),n(167));n.n(i),n(168),n(206),n(207),n(96),n(102),n(208),n(209)},function(t,e,n){"use strict";var r=n(37),i=n(4);!function(){function t(t){o()||Object(r.a)(function(){return Object(i.j)(function(){return e(n)})}),n.push(t)}function e(t){n=[];try{t.forEach(function(t){return t()})}finally{o()&&e(n)}}var n=[],o=function(){return n.length};scrivito.batchedStateUpdater={add:t}}()},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(1),o=n(0),a=(n.n(o),n(69)),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=0,c=Object.assign||o.extend,l=function(){function t(){}return t.prototype.get=function(){var t=this,e=this.untrackedGet();return this.recordDetector(function(){return e!==t.untrackedGet()}),e},t.prototype.recordDetector=function(t){this.getTree().recordDetector(t)},t.prototype.clear=function(){this.set(void 0)},t.prototype.subState=function(t){return new h(this,t)},t.prototype.reader=function(){return this},t.prototype.setSubState=function(t,e){var n=this.untrackedGet();if(void 0===n){var r=(o={},o[t]=e,o);this.set(r)}else{var i=c({},n);i[t]=e,this.set(i)}var o},t.prototype.getSubState=function(t){var e=this.untrackedGet();if(e)return e[t]},t}(),f=function(t){function e(){var e=t.call(this)||this;return e.treeId=(u++).toString(),e.listeners=[],e.detectorRecording=new a.a,e.batchUpdates=new a.a,e.version=0,e.frozenContextContainer=new a.a,e}return s(e,t),e.prototype.untrackedGet=function(){return this.state},e.prototype.withFrozenState=function(t,e){return this.frozenContextContainer.runWith(t,e)},e.prototype.failIfTracking=function(t){if(this.detectorRecording.current())throw new i.InternalError(t)},e.prototype.failIfFrozen=function(t){var e=this.frozenContextContainer.current();if(e){var n=t+" is not permitted inside '"+e.contextName+"'. "+(e.message||"");throw new d(n)}},e.prototype.set=function(t){this.failIfFrozen("Changing state"),this.state=t,this.version++,this.insideBatchUpdate()||this.notifyListeners()},e.prototype.trackChanges=function(t){var e=this,n=this.version,r=this.recordDetectors(t);return function(){return e.version!==n&&!!Object(o.find)(r,function(t){return t()})}},e.prototype.recordDetector=function(t){var e=this.detectorRecording.current();void 0!==e&&e.push(t)},e.prototype.getTree=function(){return this},e.prototype.id=function(){return this.treeId},e.prototype.subscribe=function(t){var e=this,n=!0,r=function(){n&&t()};return this.ensureCanMutateListeners(),this.listeners.push(r),function(){n=!1;var t=e.listeners.indexOf(r);e.ensureCanMutateListeners(),e.listeners.splice(t,1)}},e.prototype.withBatchedUpdates=function(t){var e=this.state;try{this.batchUpdates.runWith(!0,t)}finally{this.insideBatchUpdate()||e===this.state||this.notifyListeners()}},e.prototype.listenerCount=function(){return this.listeners.length},e.prototype.clearListeners=function(){this.listeners=[]},e.prototype.recordDetectors=function(t){if(void 0!==this.detectorRecording.current())throw new i.InternalError("no nested detector recording!");var e=[];return this.detectorRecording.runWith(e,t),e},e.prototype.notifyListeners=function(){this.listenersToNotify=this.listeners,this.listenersToNotify.forEach(function(t){return t()})},e.prototype.ensureCanMutateListeners=function(){this.listenersToNotify===this.listeners&&(this.listeners=this.listeners.slice())},e.prototype.insideBatchUpdate=function(){return!!this.batchUpdates.current()},e}(l);e.a=f;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(i.ScrivitoError),h=function(t){function e(e,n){var r=t.call(this)||this;return r.parentState=e,r.key=n,r.tree=e.getTree(),r}return s(e,t),e.prototype.getTree=function(){return this.tree},e.prototype.untrackedGet=function(){return this.parentState.getSubState(this.key)},e.prototype.set=function(t){this.parentState.setSubState(this.key,t)},e.prototype.id=function(){var t=this.key.replace(/\\/g,"\\\\").replace(/\//g,"\\/");return this.parentState.id()+"/"+t},e}(l)},function(t,e,n){"use strict";var r=n(0),i=n.n(r);!function(){function t(e){return i.a.isArray(e)?i.a.map(e,t):i.a.isObject(e)?i.a.chain(e).mapObject(t).pairs().sortBy(i.a.first):e}scrivito.computeCacheKey=function(e){var n=t(e);return JSON.stringify(n)}}()},function(t,e,n){"use strict";var r=n(17);!function(){scrivito.currentWorkspaceId=function(){return r.b?r.b.currentWorkspaceId():"published"}}()},function(t,e){!function(){function t(){if(window&&window.console&&!n){var t;(t=window.console).error.apply(t,arguments)}}function e(){n=!0}var n=!1;scrivito.logError=t,scrivito.disableConsoleError=e}()},function(t,e,n){"use strict";var r=n(4),i=n(53);!function(){function t(t){var e=t.clientModulesForExport();o.forEach(function(t){scrivito[t]=e[t]}),Object(i.b)(e.objReplicationPool)}function e(){var t={objReplicationPool:i.a};return o.forEach(function(e){t[e]=scrivito[e]}),t}function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.ui;n&&t(n),Object(r.f)(n)}var o=["BinaryRequest"];scrivito.client.init=n,scrivito.client.modulesForExport=e}()},function(t,e,n){"use strict";(function(e){function n(){}function r(t,e){return function(){t.apply(e,arguments)}}function i(t){if(!(this instanceof i))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(t,this)}function o(t,e){for(;3===t._state;)t=t._value;if(0===t._state)return void t._deferreds.push(e);t._handled=!0,i._immediateFn(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null===n)return void(1===t._state?a:s)(e.promise,t._value);var r;try{r=n(t._value)}catch(t){return void s(e.promise,t)}a(e.promise,r)})}function a(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof i)return t._state=3,t._value=e,void u(t);if("function"==typeof n)return void l(r(n,e),t)}t._state=1,t._value=e,u(t)}catch(e){s(t,e)}}function s(t,e){t._state=2,t._value=e,u(t)}function u(t){2===t._state&&0===t._deferreds.length&&i._immediateFn(function(){t._handled||i._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(171),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,n(40))},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;no)return{value:t,errors:[l.of(t,e,n,r.context)]};for(var u={value:[],errors:[]},c=0;c1&&s.errors.push(l.of(t,e,n,r.context)),s},d.interface=function(t,e,n,r){if(!s.Object.is(t))return{value:t,errors:[l.of(t,e,n,r.context)]};var i={value:{},errors:[]},o=e.meta.props;for(var u in o){var c=a(t[u],o[u],n.concat(u),r);i.value[u]=c.value,i.errors=i.errors.concat(c.errors)}if(r.hasOwnProperty("strict")?r.strict:e.meta.strict)for(var f in t)o.hasOwnProperty(f)||s.Nil.is(t[f])||i.errors.push(l.of(t[f],s.Nil,n.concat(f),r.context));return i},s.mixin(s,{ValidationError:l,ValidationResult:f,validate:o}),t.exports=s},function(t,e,n){/*! @preserve * * tcomb.js - Type checking and DDD for JavaScript * * The MIT License (MIT) * * Copyright (c) 2014-2016 Giulio Canti * */ var r=n(5);r.Any=n(76),r.Array=n(185),r.Boolean=n(106),r.Date=n(186),r.Error=n(187),r.Function=n(67),r.Nil=n(107),r.Number=n(108),r.Integer=n(188),r.IntegerT=r.Integer,r.Object=n(189),r.RegExp=n(190),r.String=n(78),r.Type=n(191),r.TypeT=r.Type,r.Arr=r.Array,r.Bool=r.Boolean,r.Dat=r.Date,r.Err=r.Error,r.Func=r.Function,r.Num=r.Number,r.Obj=r.Object,r.Re=r.RegExp,r.Str=r.String,r.dict=n(79),r.declare=n(192),r.enums=n(193),r.irreducible=n(16),r.list=n(111),r.maybe=n(194),r.refinement=n(77),r.struct=n(196),r.tuple=n(114),r.union=n(200),r.func=n(201),r.intersection=n(202),r.subtype=r.refinement,r.inter=n(203),r.interface=r.inter,r.assert=r,r.update=n(204),r.mixin=n(80),r.isType=n(11),r.is=n(31),r.getTypeName=n(8),r.match=n(205),t.exports=r},function(t,e){t.exports=function(t){throw new TypeError("[tcomb] "+t)}},function(t,e,n){var r=n(16),i=n(28);t.exports=r("Array",i)},function(t,e,n){var r=n(16);t.exports=r("Date",function(t){return t instanceof Date})},function(t,e,n){var r=n(16);t.exports=r("Error",function(t){return t instanceof Error})},function(t,e,n){var r=n(77),i=n(108);t.exports=r(i,function(t){return t%1==0},"Integer")},function(t,e,n){var r=n(16),i=n(27);t.exports=r("Object",i)},function(t,e,n){var r=n(16);t.exports=r("RegExp",function(t){return t instanceof RegExp})},function(t,e,n){var r=n(16),i=n(11);t.exports=r("Type",i)},function(t,e,n){var r=(n(5),n(20),n(11),n(25),n(80)),i=n(8),o=n(110),a=1;t.exports=function(t){function e(t,e){return n(t,e)}var n;return e.define=function(i){return o(i)&&e.hasOwnProperty("dispatch")&&(i.dispatch=e.dispatch),n=i,r(e,n,!0),t&&(n.displayName=e.displayName=t,e.meta.name=t),e.meta.identity=n.meta.identity,e.prototype=n.prototype,e},e.displayName=t||i(e)+"$"+a++,e.meta={identity:!1},e.prototype=null,e}},function(t,e,n){function r(t){return Object.keys(t).map(function(t){return o.stringify(t)}).join(" | ")}function i(t,e){function n(t,e){return t}var i=e||r(t);return n.meta={kind:"enums",map:t,name:e,identity:!0},n.displayName=i,n.is=function(e){return t.hasOwnProperty(e)},n}var o=n(5),a=(n(20),n(52),n(65));n(27);i.of=function(t,e){t=a(t)?t.split(" "):t;var n={};return t.forEach(function(t){n[t]=t}),i(n,e)},i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t){return"?"+f(t)}function i(t,e){function n(e,n){return c.is(e)?e:u(t,e,n)}if(o(t)||t===s||t===c)return t;var i=e||r(t),f=a(t);return n.meta={kind:"maybe",type:t,name:e,identity:f},n.displayName=i,n.is=function(e){return c.is(e)||l(e,t)},n}var o=(n(5),n(20),n(10),n(195)),a=n(29),s=n(76),u=n(30),c=n(107),l=(n(52),n(31)),f=n(8);i.getDefaultName=r,t.exports=i},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&"maybe"===t.meta.kind}},function(t,e,n){function r(t){return"Struct"+f(t)}function i(t,e){return d(a,t,e)}function o(t){return u(t)||(t=c(t)?{}:{name:t}),t.hasOwnProperty("strict")||(t.strict=a.strict),t.hasOwnProperty("defaultProps")||(t.defaultProps={}),t}function a(t,e){function n(e,r){if(n.is(e))return e;if(!(this instanceof n))return new n(e,r);for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],a=e[i];void 0===a&&(a=c[i]),this[i]=l(o,a,null)}}e=o(e);var a=e.name,u=e.strict,c=e.defaultProps,f=a||r(t);return n.meta={kind:"struct",props:t,name:a,identity:!1,strict:u,defaultProps:c},n.displayName=f,n.is=function(t){return t instanceof n},n.update=function(t,e){return new n(s.update(t,e))},n.extend=function(t,e){return i([n].concat(t),e)},n}var s=n(5),u=(n(20),n(78),n(67),n(66),n(27)),c=n(25),l=n(30),f=(n(8),n(79),n(112)),d=n(113);a.strict=!1,a.getOptions=o,a.getDefaultName=r,a.extend=i,t.exports=a},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&"struct"===t.meta.kind}},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&"interface"===t.meta.kind}},function(t,e,n){function r(t){return s(t)&&"subtype"===t.meta.kind}function i(t){return r(t)?[t.meta.predicate].concat(i(t.meta.type)):[]}function o(t){return r(t)?o(t.meta.type):t}function a(t){return{predicates:i(t),unrefinedType:o(t)}}var s=n(11);t.exports=a},function(t,e,n){function r(t){return t.map(a).join(" | ")}function i(t,e){function n(t,e){if(a)return t;var r=n.dispatch(t);return!r&&n.is(t)?t:u(r,t,e)}var i=e||r(t),a=t.every(s);return n.meta={kind:"union",types:t,name:e,identity:a},n.displayName=i,n.is=function(e){return t.some(function(t){return c(e,t)})},n.dispatch=function(e){for(var n=0,r=t.length;n "+d(e)}function i(t){return s.is(t)&&c(t.instrumentation)}function o(t){for(var e=t.length,n=!1,r=e-1;r>=0;r--){var i=t[r];if(!h(i)||"maybe"!==i.meta.kind)return r+1;n=!0}return n?0:e}function a(t,e,n){function s(t,e){return i(t)?t:s.of(t)}t=u(t)?t:[t];var c=n||r(t,e),d=t.length;o(t);return s.meta={kind:"func",domain:t,codomain:e,name:n,identity:!0},s.displayName=c,s.is=function(n){return i(n)&&n.instrumentation.domain.length===d&&n.instrumentation.domain.every(function(e,n){return e===t[n]})&&n.instrumentation.codomain===e},s.of=function(n,r){function i(){var i=Array.prototype.slice.call(arguments),o=i.length;if(r&&o0?e.concat(t):e}function c(t,e){if(t.length>0){e=r(e);for(var n=0,i=t.length;n0?(e=r(e),t.reduce(function(t,e){return t.splice.apply(t,e),t},e)):e}function d(t,e){if(t.from!==t.to){e=r(e);var n=e[t.to];e[t.to]=e[t.from],e[t.from]=n}return e}function h(t,e){return t.length>0?t.concat(e):e}function p(t,e){var n=!1,i=r(e);for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o],n=n||i[o]!==e[o]);return n?i:e}var v=(n(5),n(27)),y=(n(10),n(28)),m=(n(109),n(115));a.commands={$apply:s,$push:u,$remove:c,$set:l,$splice:f,$swap:d,$unshift:h,$merge:p},t.exports=a},function(t,e,n){var r=n(5),i=n(10),o=n(11),a=n(76);t.exports=function(t){for(var e,n,s,u=1,c=arguments.length;u":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},l=[";","?",":","@","&","=","+","$",",","/"].join(""),f=[";","?",":","@","&","=","+","$",","].join(""),d=[".","!","~","*","'","(",")"].join(""),h=function(t,e){var n,r,i,h,p,m,b,g,w,_,k,O,E,x,C="-",j="",S="",A=!0,T={},N="";if("string"!=typeof t)return"";if("string"==typeof e&&(C=e),b=c.en,g=u.en,"object"==typeof e){n=e.maintainCase||!1,T=e.custom&&"object"==typeof e.custom?e.custom:T,i=+e.truncate>1&&e.truncate||!1,h=e.uric||!1,p=e.uricNoSlash||!1,m=e.mark||!1,A=!1!==e.symbols&&!1!==e.lang,C=e.separator||C,h&&(N+=l),p&&(N+=f),m&&(N+=d),b=e.lang&&c[e.lang]&&A?c[e.lang]:A?c.en:{},g=e.lang&&u[e.lang]?u[e.lang]:!1===e.lang||!0===e.lang?{}:u.en,e.titleCase&&"number"==typeof e.titleCase.length&&Array.prototype.toString.call(e.titleCase)?(e.titleCase.forEach(function(t){T[t+""]=t+""}),r=!0):r=!!e.titleCase,e.custom&&"number"==typeof e.custom.length&&Array.prototype.toString.call(e.custom)&&e.custom.forEach(function(t){T[t+""]=t+""}),Object.keys(T).forEach(function(e){var n;n=e.length>1?new RegExp("\\b"+v(e)+"\\b","gi"):new RegExp(v(e),"gi"),t=t.replace(n,T[e])});for(k in T)N+=k}for(N+=C,N=v(N),t=t.replace(/(^\s+|\s+$)/g,""),E=!1,x=!1,_=0,O=t.length;_=0?(S+=k,k=""):!0===x?(k=s[S]+o[k],S=""):k=E&&o[k].match(/[A-Za-z0-9]/)?" "+o[k]:o[k],E=!1,x=!1):k in s?(S+=k,k="",_===O-1&&(k=s[S]),x=!0):!b[k]||h&&-1!==l.indexOf(k)||p&&-1!==f.indexOf(k)?(!0===x?(k=s[S]+k,S="",x=!1):E&&(/[A-Za-z0-9]/.test(k)||j.substr(-1).match(/A-Za-z0-9]/))&&(k=" "+k),E=!1):(k=E||j.substr(-1).match(/[A-Za-z0-9]/)?C+b[k]:b[k],k+=void 0!==t[_+1]&&t[_+1].match(/[A-Za-z0-9]/)?C:"",E=!0),j+=k.replace(new RegExp("[^\\w\\s"+N+"_-]","g"),C);return r&&(j=j.replace(/(\w)(\S*)/g,function(t,e,n){var r=e.toUpperCase()+(null!==n?n:"");return Object.keys(T).indexOf(r.toLowerCase())<0?r:r.toLowerCase()})),j=j.replace(/\s+/g,C).replace(new RegExp("\\"+C+"+","g"),C).replace(new RegExp("(^\\"+C+"+|\\"+C+"+$)","g"),""),i&&j.length>i&&(w=j.charAt(i)===C,j=j.slice(0,i),w||(j=j.slice(0,j.lastIndexOf(C)))),n||r||(j=j.toLowerCase()),j},p=function(t){return function(e){return h(e,t)}},v=function(t){return t.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},y=function(t,e){for(var n in e)if(e[n]===t)return!0};void 0!==t&&t.exports?(t.exports=h,t.exports.createSlug=p):(r=[],void 0!==(i=function(){return h}.apply(e,r))&&(t.exports=i))}()},function(t,e,n){"use strict";function r(t,e){return a(t)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function a(t){if(Array.isArray(t))return t}function s(t,e,n,i){var o=r(e,2),a=o[0],s=o[1];switch(n){case"binary":return u(a,s);case"date":return c(a,s);case"float":return h(a,s);case"enum":return f(a,s,i);case"html":return l(a,s);case"integer":return v(a,s);case"link":return y(a,s);case"linklist":return m(a,s);case"multienum":return d(a,s,i);case"reference":return w(a,s);case"referencelist":return _(a,s);case"string":return k(a,s);case"stringlist":return O(a,s);case"widgetlist":return E(a,s,t)}}function u(t,e){if("binary"===t&&e){var n=e.id,r="published"===scrivito.currentWorkspaceId();return new T.a(n,r).optimizeFor({})}return null}function c(t,e){return"date"!==t?null:Object(C.a)(e)}function l(t,e){return A.a.contains(["html","string"],t)&&A.a.isString(e)?e:""}function f(t,e,n){var r=n.values;return"string"===t&&A.a.contains(r,e)?e:null}function d(t,e,n){var r=n.values;return"stringlist"===t&&Array.isArray(e)?A.a.intersection(e,r):[]}function h(t,e){switch(t){case"string":return e.match(/^-?\d+(\.\d+)?$/)?p(e):null;case"number":return p(e);default:return null}}function p(t){var e=parseFloat(t);return Object(C.e)(e)?e:null}function v(t,e){switch(t){case"string":case"number":return Object(C.b)(e);default:return null}}function y(t,e){return"link"===t&&A.a.isObject(e)?b(e):null}function m(t,e){return A.a.isArray(e)?A.a.compact(e.map(b)):[]}function b(t){var e=A.a.pick(t,"title","query","fragment","target","url");e.hash=e.fragment,delete e.fragment,e.objId=t.obj_id;var n=j.a.build(e);return n.isBroken()?null:n}function g(t){var e=x.default.get(t);return e||null}function w(t,e){return"reference"===t&&e?g(e):null}function _(t,e){if("referencelist"!==t)return[];if(!e)return[];var n=e.map(g);return A.a.compact(n)}function k(t,e){return A.a.contains(["html","string"],t)&&A.a.isString(e)?e:""}function O(t,e){return"stringlist"===t&&Array.isArray(e)?e:[]}function E(t,e,n){return"widgetlist"!==t?[]:A.a.map(e,function(t){return n.widget(t)})}e.a=s;var x=n(3),C=n(48),j=n(34),S=n(0),A=n.n(S),T=n(26)},function(t,e,n){"use strict";function r(t){t.forEach(function(t){return u.c(t)})}function i(t,e){var n=v({},t,{index:e}),r=s.a(n);return s.c().subState(r)}function o(t){return function(){return t+"|"+Object(d.a)()}}function a(t){var e=Object(c.omit)({query:t.query,offset:t.offset,sort_by:t.sortBy,sort_order:t.sortDirection},c.isUndefined);return t.includeDeleted&&(e.options={include_deleted:!0}),e}var s=n(118),u=n(58),c=n(0),l=(n.n(c),n(7)),f=n(18),d=n(92),h=n(1),p=n(43),v=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n2?r-2:0),u=2;u3&&void 0!==arguments[3]?arguments[3]:null;if(r(t,e))this._scrivitoPrivateContent.and(t._scrivitoPrivateContent);else{var a=Object(f.d)(i);this._scrivitoPrivateContent.and(t,n,a,o)}return this}},{key:"andNot",value:function(t,e,n){var r=Object(f.d)(n);return this._scrivitoPrivateContent.andNot(t,e,r),this}},{key:"facet",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this._scrivitoPrivateContent.facet(e,n);return h.a.map(r,function(e){return new l.a(t,e)})}},{key:"take",value:function(e){return this._scrivitoPrivateContent.batchSize(e),Object(u.a)(this._scrivitoPrivateContent,e).map(function(e){return Object(f.e)(t,e)})}},{key:"offset",value:function(t){return this._scrivitoPrivateContent.offset(t),this}},{key:"order",value:function(t,e){return this._scrivitoPrivateContent.order(t,e),this}},{key:"count",value:function(){return this._scrivitoPrivateContent.count()}}]),e}();if("function"==typeof window.Symbol){var n=window.Symbol.iterator;if(n){e.prototype[n]=function(){var e=this._scrivitoPrivateContent.iterator();return{next:function(){var n=e.next(),r=n.done,i=n.value;return r?{done:r}:{done:r,value:Object(f.e)(t,i)}}}}}}return e}e.a=s;var u=n(121),c=n(54),l=n(218),f=n(22),d=n(0),h=n.n(d)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:null;return e(t.objClassNameFor(this)).and(n,r,i,o)}},{key:"create",value:function(t){var e=this._prepareAttributesForCreate(t);return n(y.default.create(e))}},{key:"_prepareAttributesForCreate",value:function(e){var n=t.objClassNameFor(this),r=m.a.forClass(this);p(e,n);var i=Object(O.a)(e,t,r,n),o={_objClass:n},a=Object(v.extend)({},e,i,o);return Object(w.b)(a,r,n)}}]),a(s,i),s}(Object(k.a)(r))}function p(t,e){if(!e)throw new b.ArgumentError("Creating CMS objects is not supported for the class Obj or abstract classes.");if(t.constructor!==Object)throw new b.ArgumentError("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(t._objClass)throw new b.ArgumentError('Invalid attribute "_objClass". '+'"'.concat(t._objClass,'.create" will automatically set the CMS object class ')+"correctly.")}e.a=h;var v=n(0),y=(n.n(v),n(3)),m=n(42),b=n(1),g=n(133),w=n(22),_=n(130),k=n(219),O=n(220)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(e.extend&&!f(e.extend,t.defaultClassForObjs))throw new h.ArgumentError('Invalid value for "extend": not a Scrivito Obj class');var n=e.extend||t.defaultClassForObjs,r=new p.a(e,n);return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),Object.defineProperty(e,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!0,configurable:!0}),e}(n)}function o(t,e){if(e.extend&&!f(e.extend,t.defaultClassForWidgets))throw new h.ArgumentError('Invalid value for "extend": not a Scrivito Widget class');var n=e.extend||t.defaultClassForWidgets,r=new p.a(e,n);return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),Object.defineProperty(e,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!0,configurable:!0}),e}(n)}function a(t,e,n){var r=s(t,e,n);return t.register(e,r),r}function s(t,e,n){return l(n)?n:i(t,Object(d.extend)({},n,{name:e}))}function u(t,e,n){var r=c(t,e,n);return t.register(e,r),r}function c(t,e,n){return l(n)?n:o(t,Object(d.extend)({},n,{name:e}))}function l(t){return!(!t||!t._scrivitoPrivateSchema)}function f(t,e){return!!t&&(t===e||r(t.prototype,e))}e.a=i,e.b=o,e.c=a,e.d=u;var d=n(0),h=(n.n(d),n(1)),p=n(42),v=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()},function(t,e,n){"use strict";function r(t){return/^[a-z](_+[A-Z0-9]|[A-Za-z0-9])*$/.test(t)}function i(t){return t&&t._scrivitoPrivateSchema}n.d(e,"a",function(){return d}),n.d(e,"b",function(){return h}),n.d(e,"c",function(){return v}),n.d(e,"d",function(){return m});var o=n(24),a=n(39),s=o.a.refinement(o.a.Function,i,"ObjClass"),u=o.a.interface({attributes:o.a.maybe(o.a.dict(o.a.refinement(o.a.String,r,"String (alphanumeric, starting with a lower-case character)"),o.a.union([o.a.enums.of(["binary","date","float","html","integer","link","linklist","reference","referencelist","string","stringlist","widgetlist"]),o.a.union([o.a.tuple([o.a.enums.of(["enum","multienum"]),o.a.interface({values:o.a.list(o.a.String)})]),o.a.tuple([o.a.enums.of(["widgetlist"]),o.a.interface({only:o.a.union([o.a.String,o.a.list(o.a.String)])})])])]),"Attributes Specification")),extend:o.a.maybe(s)}),c=u.meta.props.attributes,l=o.a.refinement(o.a.Function,i,"WidgetClass"),f=o.a.interface({attributes:c,extend:o.a.maybe(l),onlyInside:o.a.maybe(o.a.String)}),d=Object(a.a)("createObjClass",[["options",u]],{docPermalink:"js-sdk/createObjClass"}),h=Object(a.a)("createWidgetClass",[["options",f]],{docPermalink:"js-sdk/createWidgetClass"}),p=o.a.union([u,s]),v=Object(a.a)("provideObjClass",[["name",o.a.String],["objClassOrDefinition",p]],{docPermalink:"js-sdk/provideObjClass"}),y=o.a.union([f,l]),m=Object(a.a)("provideWidgetClass",[["name",o.a.String],["widgetClassOrDefinition",y]],{docPermalink:"js-sdk/provideWidgetClass"})},function(t,e,n){"use strict";var r=n(304);n.d(e,"a",function(){return r.a});n(307),n(308),n(93),n(84)},function(t,e,n){"use strict";var r=n(83),i=n.n(r),o=n(38),a=n.n(o),s=n(93),u=n(84),c=n(134),l=n(222),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};a()(l.b,"Browser history needs a DOM");var e=window.history,n=Object(l.g)(),r=!Object(l.h)(),o=t.forceRefresh,p=void 0!==o&&o,v=t.getUserConfirmation,y=void 0===v?l.c:v,m=t.keyLength,b=void 0===m?6:m,g=t.basename?Object(u.g)(Object(u.a)(t.basename)):"",w=function(t){var e=t||{},n=e.key,r=e.state,o=window.location,a=o.pathname,c=o.search,l=o.hash,f=a+c+l;return i()(!g||Object(u.c)(f,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+f+'" to begin with "'+g+'".'),g&&(f=Object(u.e)(f,g)),Object(s.a)(f,r,n)},_=function(){return Math.random().toString(36).substr(2,b)},k=Object(c.a)(),O=function(t){d(U,t),U.length=e.length,k.notifyListeners(U.location,U.action)},E=function(t){Object(l.d)(t)||j(w(t.state))},x=function(){j(w(h()))},C=!1,j=function(t){if(C)C=!1,O();else{k.confirmTransitionTo(t,"POP",y,function(e){e?O({action:"POP",location:t}):S(t)})}},S=function(t){var e=U.location,n=T.indexOf(e.key);-1===n&&(n=0);var r=T.indexOf(t.key);-1===r&&(r=0);var i=n-r;i&&(C=!0,I(i))},A=w(h()),T=[A.key],N=function(t){return g+Object(u.b)(t)},P=function(t,r){i()(!("object"===(void 0===t?"undefined":f(t))&&void 0!==t.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o=Object(s.a)(t,r,_(),U.location);k.confirmTransitionTo(o,"PUSH",y,function(t){if(t){var r=N(o),a=o.key,s=o.state;if(n)if(e.pushState({key:a,state:s},null,r),p)window.location.href=r;else{var u=T.indexOf(U.location.key),c=T.slice(0,-1===u?0:u+1);c.push(o.key),T=c,O({action:"PUSH",location:o})}else i()(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},L=function(t,r){i()(!("object"===(void 0===t?"undefined":f(t))&&void 0!==t.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o=Object(s.a)(t,r,_(),U.location);k.confirmTransitionTo(o,"REPLACE",y,function(t){if(t){var r=N(o),a=o.key,s=o.state;if(n)if(e.replaceState({key:a,state:s},null,r),p)window.location.replace(r);else{var u=T.indexOf(U.location.key);-1!==u&&(T[u]=o.key),O({action:"REPLACE",location:o})}else i()(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},I=function(t){e.go(t)},D=function(){return I(-1)},q=function(){return I(1)},R=0,M=function(t){R+=t,1===R?(Object(l.a)(window,"popstate",E),r&&Object(l.a)(window,"hashchange",x)):0===R&&(Object(l.e)(window,"popstate",E),r&&Object(l.e)(window,"hashchange",x))},B=!1,F=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=k.setPrompt(t);return B||(M(1),B=!0),function(){return B&&(B=!1,M(-1)),e()}},z=function(t){var e=k.appendListener(t);return M(1),function(){M(-1),e()}},U={length:e.length,action:"POP",location:A,createHref:N,push:P,replace:L,go:I,goBack:D,goForward:q,block:F,listen:z};return U};e.a=p},function(t,e,n){"use strict";function r(t){return"/"===t.charAt(0)}function i(t,e){for(var n=e,r=n+1,i=t.length;r1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],o=e&&e.split("/")||[],a=t&&r(t),s=e&&r(e),u=a||s;if(t&&r(t)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var c=void 0;if(o.length){var l=o[o.length-1];c="."===l||".."===l||""===l}else c=!1;for(var f=0,d=o.length;d>=0;d--){var h=o[d];"."===h?i(o,d):".."===h?(i(o,d),f++):f&&(i(o,d),f--)}if(!u)for(;f--;f)o.unshift("..");!u||""===o[0]||o[0]&&r(o[0])||o.unshift("");var p=o.join("/");return c&&"/"!==p.substr(-1)&&(p+="/"),p}e.a=o},function(t,e,n){"use strict";function r(t,e){if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(t,n){return r(t,e[n])});var n=void 0===t?"undefined":i(t);if(n!==(void 0===e?"undefined":i(e)))return!1;if("object"===n){var o=t.valueOf(),a=e.valueOf();if(o!==t||a!==e)return r(o,a);var s=Object.keys(t),u=Object.keys(e);return s.length===u.length&&s.every(function(n){return r(t[n],e[n])})}return!1}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a=r},function(t,e,n){"use strict";var r=n(83),i=(n.n(r),n(38)),o=(n.n(i),n(93),n(84));n(134),n(222),Object.assign,o.f,o.a,o.a,o.a},function(t,e,n){"use strict";var r=n(83);n.n(r),n(84),n(93),n(134),"function"==typeof Symbol&&Symbol.iterator,Object.assign},function(t,e,n){"use strict";function r(t,e){if(!y){var n=Object(f.b)(t);if(!n)throw new l.ArgumentError('Component with ID "'.concat(t,'" not found. ')+'Please make sure you registered it using "Scrivito.registerComponent".');var r,o,a=u.default.get(e.objId);if(e.widgetId){var s=a.widget(e.widgetId);o=Object(p.e)(Object(h.a)(),s)}else r=Object(p.e)(Object(h.a)(),a);y=!0;var m=i(Object(d.b)(),n,{obj:r,widget:o});Object(c.a)(m,function(){return v.b.notifyDocumentResize()}),v.b.notifyDocumentResize()}}function i(t,e,n){var r=t.createElement("div");return t.body.innerHTML="",t.body.appendChild(r),Object(s.render)(a.a.createElement(e,n),r),r}n.d(e,"a",function(){return r});var o=n(13),a=n.n(o),s=n(85),u=(n.n(s),n(3)),c=n(310),l=n(1),f=n(86),d=n(70),h=n(62),p=n(22),v=n(17),y=!1},function(t,e,n){"use strict";function r(t,e){if(!t._scrivitoResizeListeners){t._scrivitoResizeListeners=[],t.style.position="relative";var n=i();n.resizeElement=t,t._scrivitoResizeTrigger=n,Object(s.a)()&&t.appendChild(n),n.data="about:blank",Object(s.a)()||t.appendChild(n)}t._scrivitoResizeListeners.push(e)}function i(){var t=document.createElement("object");return t.type="text/html",t.onload=o,t.style.display="block",t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.height="100%",t.style.width="100%",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex=-1,t}function o(){this.contentDocument.defaultView._scrivitoResizeTrigger=this.resizeElement,this.contentDocument.defaultView.addEventListener("resize",a)}function a(t){var e=t.target||t.srcElement,n=e._scrivitoResizeTrigger;n._scrivitoResizeListeners.forEach(function(e){return e(n,t)})}e.a=r;var s=n(311)},function(t,e,n){"use strict";function r(){var t=window.navigator.userAgent;return t.indexOf("MSIE")>=0||t.indexOf("Trident")>=0}e.a=r},function(t,e,n){"use strict";function r(t){var e=o()(t);return Object(u.b)()?Object(s.a)(function(){return Object(c.h)(t)}).then(function(t){return t.path?Object(a.include)(["/",""],t.path)?null:{obj:t.obj,url:e}:null}):scrivito.Promise.resolve(null)}var i=n(33),o=n.n(i),a=n(0),s=(n.n(a),n(7)),u=n(225),c=n(63);e.a=r},function(t,e,n){"use strict";function r(t){var e=o.default.get(t);return i(e?Object(a.a)(e):Object(s.d)({path:t}))}e.a=r;var i=n(33),o=(n.n(i),n(3)),a=n(136),s=n(63)},function(t,e,n){"use strict";function r(t,e){i[t]=e}e.a=r;var i={}},function(t,e,n){"use strict";var r=n(17);!function(){function t(t){r.b?r.b.navigateToExternalUrl(t):scrivito.setWindowLocation(t)}function e(t){window.location.assign(t)}function n(t,e){window.open(t,e)}function i(t){n(t,"_blank")}scrivito.setWindowLocation=e,scrivito.changeLocation=t,scrivito.openLocation=n,scrivito.openInNewWindow=i}()},function(t,e,n){"use strict";var r=n(317),i=(n.n(r),n(318));n.n(i)},function(t,e){window.scrivito||(window.scrivito={})},function(t,e){!function(){var t,e=0,n={},r={subscribe:function(t){var r=t.onFocus,i=t.onBlur,o=e;return n[o]={onFocus:r,onBlur:i},e+=1,o},unsubscribe:function(t){delete n[t]},notifyFocus:function(e){t=e,n[t].onFocus()},notifyBlur:function(e){e===t&&n[e].onBlur()},get handlers(){return n},reset:function(){t=void 0,e=0,n={}}};scrivito.WidgetFocus=r}()},function(t,e,n){"use strict";function r(t){return s.b.openContentBrowser(Object(o.a)(Object(i.extend)({},Object(a.b)(),Object(i.pick)(t,"selection","selectionMode"))))}e.a=r;var i=n(0),o=(n.n(i),n(138)),a=n(137),s=n(17)},function(t,e,n){"use strict";function r(){scrivito.registerEditor(i.a),scrivito.registerEditor(o.a),scrivito.registerEditor(a.a)}e.a=r;var i=n(321),o=n(336),a=n(337)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n',init:function(){var t;return i.extensions.anchor.prototype.init.apply(this,arguments),this.targetCheckbox=null!=(t=this.getEditorOption("anchor"))?t.targetCheckbox:void 0},handleClick:function(t){var e,n,r,o,a;return t.preventDefault(),t.stopPropagation(),this.isDisplayed()||(o=i.selection.getSelectionRange(this.document),r=i.selection.getSelectedParentElement(o),n=i.util.getClosestTag(r,"a"),e=a=null,n&&(n=this.proxy.edQuery(n),e=n.attr("href")||null,a=n.attr("target")||null),this.showForm({value:e,target:a})),!1},getTemplate:function(){var t;return t="",this.targetCheckbox&&(t="
\n \n
"),("\n\n\n\n"+t).replace(/\n\s*/g,"")},attachFormEvents:function(t){var e;return i.extensions.anchor.prototype.attachFormEvents.call(this,t),t=this.proxy.edQuery(t),e=t.find(".medium-editor-toolbar-input"),t.find(".medium-editor-toolbar-browse").on("click",function(t){return function(){var n,r;return r=(n=t.proxy.idFromPath(e.val()))?[n]:[],scrivito.openContentBrowser({selection:r,selectionMode:"single"}).catch(function(t){throw e.focus(),t}).then(function(n){var r,i;if(r=n.isSelected,i=n.selection,r)return e.focus(),i.length?e.val(t.proxy.pathForId(i[0])):e.val("")}),!1}}(this))},completeFormSave:function(t){return this.base.restoreSelection(),t.value?this.execAction(this.action,t):this.execAction("unlink"),this.base.checkSelection()}}),s=function(){var t,e;return t=["bold","italic","scrivito_anchor","h2","h3","unorderedlist","orderedlist"],("undefined"!=typeof ScrivitoEditors&&null!==ScrivitoEditors&&null!=(e=ScrivitoEditors._config)?e.showHtmlEditorCodeButton:void 0)&&t.splice(2,0,"scrivito_code"),t},u=function(){return{anchor:{targetCheckbox:!0},anchorPreview:!1,extensions:{scrivito_anchor:new o,scrivito_code:new r({label:'',start:"",end:""}),imageDragging:{}},placeholder:!1,toolbar:{buttons:s(),standardizeSelectionStart:!0}}},a=function(t){var e,n,r;return e=t.jQueryElement(),n=u(),null!=(r=n.extensions.scrivito_anchor)&&(r.proxy=t),new i(e,n).subscribe("editableInput",function(){return t.save(e.html())})},t.exports=a},function(t,e,n){(function(r){var i;/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */ "classList"in document.createElement("_")||function(t){"use strict";if("Element"in t){var e=t.Element.prototype,n=Object,r=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},i=Array.prototype.indexOf||function(t){for(var e=0,n=this.length;e1?e:this.data.length),n,this.encoding)},o.toString=function(){return"[object Blob]"},o.close=function(){this.size=0,delete this.data},n}(t);t.Blob=function(t,n){var r=n?n.type||"":"",i=new e;if(t)for(var o=0,a=t.length;o-1,isMac:e.navigator.platform.toUpperCase().indexOf("MAC")>=0,keyCode:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,DELETE:46,K:75,M:77,V:86},isMetaCtrlKey:function(t){return!!(a.isMac&&t.metaKey||!a.isMac&&t.ctrlKey)},isKey:function(t,e){var n=a.getKeyCode(t);return!1===Array.isArray(e)?n===e:-1!==e.indexOf(n)},getKeyCode:function(t){var e=t.which;return null===e&&(e=null!==t.charCode?t.charCode:t.keyCode),e},blockContainerElementNames:["p","h1","h2","h3","h4","h5","h6","blockquote","pre","ul","li","ol","address","article","aside","audio","canvas","dd","dl","dt","fieldset","figcaption","figure","footer","form","header","hgroup","main","nav","noscript","output","section","video","table","thead","tbody","tfoot","tr","th","td"],emptyElementNames:["br","col","colgroup","hr","img","input","source","wbr"],extend:function(){var t=[!0].concat(Array.prototype.slice.call(arguments));return n.apply(this,t)},defaults:function(){var t=[!1].concat(Array.prototype.slice.call(arguments));return n.apply(this,t)},createLink:function(t,e,n,r){var i=t.createElement("a");return a.moveTextRangeIntoElement(e[0],e[e.length-1],i),i.setAttribute("href",n),r&&("_blank"===r&&i.setAttribute("rel","noopener noreferrer"),i.setAttribute("target",r)),i},findOrCreateMatchingTextNodes:function(t,e,n){for(var r=t.createTreeWalker(e,NodeFilter.SHOW_ALL,null,!1),i=[],o=0,s=!1,u=null,c=null;null!==(u=r.nextNode());)if(!(u.nodeType>3))if(3===u.nodeType){if(!s&&n.startn.end+1)throw new Error("PerformLinking overshot the target!");s&&i.push(c||u),o+=u.nodeValue.length,null!==c&&(o+=c.nodeValue.length,r.nextNode()),c=null}else"img"===u.tagName.toLowerCase()&&(!s&&n.start<=o&&(s=!0),s&&i.push(u));return i},splitStartNodeIfNeeded:function(t,e,n){return e!==n?t.splitText(e-n):null},splitEndNodeIfNeeded:function(t,e,n,r){var i,o;i=r+t.nodeValue.length+(e?e.nodeValue.length:0)-1,o=n-r-(e?t.nodeValue.length:0),i>=n&&r!==i&&0!==o&&(e||t).splitText(o)},splitByBlockElements:function(e){if(3!==e.nodeType&&1!==e.nodeType)return[];var n=[],r=t.util.blockContainerElementNames.join(",");if(3===e.nodeType||0===e.querySelectorAll(r).length)return[e];for(var i=0;i0)break;r=o.nextNode()}return r},findPreviousSibling:function(t){if(!t||a.isMediumEditorElement(t))return!1;for(var e=t.previousSibling;!e&&!a.isMediumEditorElement(t.parentNode);)t=t.parentNode,e=t.previousSibling;return e},isDescendant:function(t,e,n){if(!t||!e)return!1;if(t===e)return!!n;if(1!==t.nodeType)return!1;if(r||3!==e.nodeType)return t.contains(e);for(var i=e.parentNode;null!==i;){if(i===t)return!0;i=i.parentNode}return!1},isElement:function(t){return!(!t||1!==t.nodeType)},throttle:function(t,e){var n,r,i,o=null,a=0,s=function(){a=Date.now(),o=null,i=t.apply(n,r),o||(n=r=null)};return e||0===e||(e=50),function(){var u=Date.now(),c=e-(u-a);return n=this,r=arguments,c<=0||c>e?(o&&(clearTimeout(o),o=null),a=u,i=t.apply(n,r),o||(n=r=null)):o||(o=setTimeout(s,c)),i}},traverseUp:function(t,e){if(!t)return!1;do{if(1===t.nodeType){if(e(t))return t;if(a.isMediumEditorElement(t))return!1}t=t.parentNode}while(t);return!1},htmlEntities:function(t){return String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")},insertHTMLCommand:function(e,n){var r,i,o,s,u,c,l,f=!1,d=["insertHTML",!1,n];if(!t.util.isEdge&&e.queryCommandSupported("insertHTML"))try{return e.execCommand.apply(e,d)}catch(t){}if(r=e.getSelection(),r.rangeCount){if(i=r.getRangeAt(0),l=i.commonAncestorContainer,a.isMediumEditorElement(l)&&!l.firstChild)i.selectNode(l.appendChild(e.createTextNode("")));else if(3===l.nodeType&&0===i.startOffset&&i.endOffset===l.nodeValue.length||3!==l.nodeType&&l.innerHTML===i.toString()){for(;!a.isMediumEditorElement(l)&&l.parentNode&&1===l.parentNode.childNodes.length&&!a.isMediumEditorElement(l.parentNode);)l=l.parentNode;i.selectNode(l)}for(i.deleteContents(),o=e.createElement("div"),o.innerHTML=n,s=e.createDocumentFragment();o.firstChild;)u=o.firstChild,c=s.appendChild(u);i.insertNode(s),c&&(i=i.cloneRange(),i.setStartAfter(c),i.collapse(!0),t.selection.selectRange(e,i)),f=!0}return e.execCommand.callListeners&&e.execCommand.callListeners(d,f),f},execFormatBlock:function(e,n){var r,i=a.getTopBlockContainer(t.selection.getSelectionStart(e));if("blockquote"===n){if(i&&(r=Array.prototype.slice.call(i.childNodes),r.some(function(t){return a.isBlockContainer(t)})))return e.execCommand("outdent",!1,null);if(a.isIE)return e.execCommand("indent",!1,n)}if(i&&n===i.nodeName.toLowerCase()&&(n="p"),a.isIE&&(n="<"+n+">"),i&&"blockquote"===i.nodeName.toLowerCase()){if(a.isIE&&"

"===n)return e.execCommand("outdent",!1,n);if((a.isFF||a.isEdge)&&"p"===n)return r=Array.prototype.slice.call(i.childNodes),r.some(function(t){return!a.isBlockContainer(t)})&&e.execCommand("formatBlock",!1,n),e.execCommand("outdent",!1,n)}return e.execCommand("formatBlock",!1,n)},setTargetBlank:function(t,e){var n,r=e||!1;if("a"===t.nodeName.toLowerCase())t.target="_blank",t.rel="noopener noreferrer";else for(t=t.getElementsByTagName("a"),n=0;nr?(i=i.parentNode,n-=1):(o=o.parentNode,r-=1);for(;i!==o;)i=i.parentNode,o=o.parentNode;return i},isElementAtBeginningOfBlock:function(t){for(var e,n;!a.isBlockContainer(t)&&!a.isMediumEditorElement(t);){for(n=t;n=n.previousSibling;)if(e=3===n.nodeType?n.nodeValue:n.textContent,e.length>0)return!1;t=t.parentNode}return!0},isMediumEditorElement:function(t){return t&&t.getAttribute&&!!t.getAttribute("data-medium-editor-element")},getContainerEditorElement:function(t){return a.traverseUp(t,function(t){return a.isMediumEditorElement(t)})},isBlockContainer:function(t){return t&&3!==t.nodeType&&-1!==a.blockContainerElementNames.indexOf(t.nodeName.toLowerCase())},getClosestBlockContainer:function(t){return a.traverseUp(t,function(t){return a.isBlockContainer(t)||a.isMediumEditorElement(t)})},getTopBlockContainer:function(t){var e=!!a.isBlockContainer(t)&&t;return a.traverseUp(t,function(t){return a.isBlockContainer(t)&&(e=t),!(e||!a.isMediumEditorElement(t))&&(e=t,!0)}),e},getFirstSelectableLeafNode:function(t){for(;t&&t.firstChild;)t=t.firstChild;if(t=a.traverseUp(t,function(t){return-1===a.emptyElementNames.indexOf(t.nodeName.toLowerCase())}),"table"===t.nodeName.toLowerCase()){var e=t.querySelector("th, td");e&&(t=e)}return t},getFirstTextNode:function(t){return a.warn("getFirstTextNode is deprecated and will be removed in version 6.0.0"),a._getFirstTextNode(t)},_getFirstTextNode:function(t){if(3===t.nodeType)return t;for(var e=0;e0){var i,o=r.getRangeAt(0),a=o.cloneRange();a.selectNodeContents(t),a.setEnd(o.startContainer,o.startOffset),i=a.toString().length,n={start:i,end:i+o.toString().length},this.doesRangeStartWithImages(o,e)&&(n.startsWithImage=!0);var s=this.getTrailingImageCount(t,n,o.endContainer,o.endOffset);if(s&&(n.trailingImageCount=s),0!==i){var u=this.getIndexRelativeToAdjacentEmptyBlocks(e,t,o.startContainer,o.startOffset);-1!==u&&(n.emptyBlocksIndex=u)}}return n},importSelection:function(t,e,n,r){if(t&&e){var i=n.createRange();i.setStart(e,0),i.collapse(!0);var o,a=e,s=[],u=0,c=!1,l=!1,f=0,d=!1,h=!1,p=null;for((r||t.startsWithImage||void 0!==t.emptyBlocksIndex)&&(h=!0);!d&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||l){if(t.trailingImageCount&&l&&("img"===a.nodeName.toLowerCase()&&f++,f===t.trailingImageCount)){for(var v=0;a.parentNode.childNodes[v]!==a;)v++;i.setEnd(a.parentNode,v+1),d=!0}if(!d&&1===a.nodeType)for(var y=a.childNodes.length-1;y>=0;)s.push(a.childNodes[y]),y-=1}else o=u+a.length,!c&&t.start>=u&&t.start<=o&&(h||t.start=u&&t.end<=o&&(t.trailingImageCount?l=!0:(i.setEnd(a,t.end-u),d=!0)),u=o;d||(a=s.pop())}!c&&p&&(i.setStart(p,p.length),i.setEnd(p,p.length)),void 0!==t.emptyBlocksIndex&&(i=this.importSelectionMoveCursorPastBlocks(n,e,t.emptyBlocksIndex,i)),r&&(i=this.importSelectionMoveCursorPastAnchor(t,i)),this.selectRange(n,i)}},importSelectionMoveCursorPastAnchor:function(e,n){var r=function(t){return"a"===t.nodeName.toLowerCase()};if(e.start===e.end&&3===n.startContainer.nodeType&&n.startOffset===n.startContainer.nodeValue.length&&t.util.traverseUp(n.startContainer,r)){for(var i=n.startContainer,o=n.startContainer.parentNode;null!==o&&"a"!==o.nodeName.toLowerCase();)o.childNodes[o.childNodes.length-1]!==i?o=null:(i=o,o=o.parentNode);if(null!==o&&"a"===o.nodeName.toLowerCase()){for(var a=null,s=0;null===a&&s0)break}else a===u.currentNode&&(s=u.currentNode);return s||(s=a),o.setStart(t.util.getFirstSelectableLeafNode(s),0),o},getIndexRelativeToAdjacentEmptyBlocks:function(n,r,i,o){if(i.textContent.length>0&&o>0)return-1;var a=i;if(3!==a.nodeType&&(a=i.childNodes[o]),a){if(!t.util.isElementAtBeginningOfBlock(a))return-1;var s=t.util.findPreviousSibling(a);if(!s)return-1;if(s.nodeValue)return-1}for(var u=t.util.getClosestBlockContainer(i),c=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,e,!1),l=0;c.nextNode();){var f=""===c.currentNode.textContent;if((f||l>0)&&(l+=1),c.currentNode===u)return l;f||(l=0)}return l},doesRangeStartWithImages:function(t,e){if(0!==t.startOffset||1!==t.startContainer.nodeType)return!1;if("img"===t.startContainer.nodeName.toLowerCase())return!0;var n=t.startContainer.querySelector("img");if(!n)return!1;for(var r=e.createTreeWalker(t.startContainer,NodeFilter.SHOW_ALL,null,!1);r.nextNode();){var i=r.currentNode;if(i===n)break;if(i.nodeValue)return!1}return!0},getTrailingImageCount:function(t,e,n,r){if(0===r||1!==n.nodeType)return 0;if("img"!==n.nodeName.toLowerCase()&&!n.querySelector("img"))return 0;for(var i=n.childNodes[r-1];i.hasChildNodes();)i=i.lastChild;for(var o,a=t,s=[],u=0,c=!1,l=!1,f=!1,d=0;!f&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||l){if("img"===a.nodeName.toLowerCase()&&d++,a===i)f=!0;else if(1===a.nodeType)for(var h=a.childNodes.length-1;h>=0;)s.push(a.childNodes[h]),h-=1}else d=0,o=u+a.length,!c&&e.start>=u&&e.start<=o&&(c=!0),c&&e.end>=u&&e.end<=o&&(l=!0),u=o;f||(a=s.pop())}return d},selectionContainsContent:function(t){var e=t.getSelection();if(!e||e.isCollapsed||!e.rangeCount)return!1;if(""!==e.toString().trim())return!0;var n=this.getSelectedParentElement(e.getRangeAt(0));return!(!n||!("img"===n.nodeName.toLowerCase()||1===n.nodeType&&n.querySelector("img")))},selectionInContentEditableFalse:function(t){var e,n=this.findMatchingSelectionParent(function(t){var n=t&&t.getAttribute("contenteditable");return"true"===n&&(e=!0),"#text"!==t.nodeName&&"false"===n},t);return!e&&n},getSelectionHtml:function(t){var e,n,r,i="",o=t.getSelection();if(o.rangeCount){for(r=t.createElement("div"),e=0,n=o.rangeCount;e-1?[e]:e,Array.prototype.forEach.call(e,function(t){t.addEventListener(n,r,i),this.events.push([t,n,r,i])}.bind(this))},detachDOMEvent:function(e,n,r,i){var o,a,s=this.base.options.contentWindow,u=this.base.options.ownerDocument;null!==e&&(e=t.util.isElement(e)||[s,u].indexOf(e)>-1?[e]:e,Array.prototype.forEach.call(e,function(t){-1!==(o=this.indexOfListener(t,n,r,i))&&(a=this.events.splice(o,1)[0],a[0].removeEventListener(a[1],a[2],a[3]))}.bind(this)))},indexOfListener:function(t,e,n,r){var i,o,a;for(i=0,o=this.events.length;i0&&(r=-1!==i.indexOf(t.nodeName.toLowerCase())),!r&&this.style&&(e=this.style.value.split("|"),n=this.window.getComputedStyle(t,null).getPropertyValue(this.style.prop),e.forEach(function(t){this.knownState||((r=-1!==n.indexOf(t))||"text-decoration"!==this.style.prop)&&(this.knownState=r)},this)),r)}});e.isBuiltInButton=function(e){return"string"==typeof e&&t.extensions.button.prototype.defaults.hasOwnProperty(e)},t.extensions.button=e}(),function(){t.extensions.button.prototype.defaults={bold:{name:"bold",action:"bold",aria:"bold",tagNames:["b","strong"],style:{prop:"font-weight",value:"700|bold"},useQueryState:!0,contentDefault:"B",contentFA:''},italic:{name:"italic",action:"italic",aria:"italic",tagNames:["i","em"],style:{prop:"font-style",value:"italic"},useQueryState:!0,contentDefault:"I",contentFA:''},underline:{name:"underline",action:"underline",aria:"underline",tagNames:["u"],style:{prop:"text-decoration",value:"underline"},useQueryState:!0,contentDefault:"U",contentFA:''},strikethrough:{name:"strikethrough",action:"strikethrough",aria:"strike through",tagNames:["strike"],style:{prop:"text-decoration",value:"line-through"},useQueryState:!0,contentDefault:"A",contentFA:''},superscript:{name:"superscript",action:"superscript",aria:"superscript",tagNames:["sup"],contentDefault:"x1",contentFA:''},subscript:{name:"subscript",action:"subscript",aria:"subscript",tagNames:["sub"],contentDefault:"x1",contentFA:''},image:{name:"image",action:"image",aria:"image",tagNames:["img"],contentDefault:"image",contentFA:''},html:{name:"html",action:"html",aria:"evaluate html",tagNames:["iframe","object"],contentDefault:"html",contentFA:''},orderedlist:{name:"orderedlist",action:"insertorderedlist",aria:"ordered list",tagNames:["ol"],useQueryState:!0,contentDefault:"1.",contentFA:''},unorderedlist:{name:"unorderedlist",action:"insertunorderedlist",aria:"unordered list",tagNames:["ul"],useQueryState:!0,contentDefault:"",contentFA:''},indent:{name:"indent",action:"indent",aria:"indent",tagNames:[],contentDefault:"",contentFA:''},outdent:{name:"outdent",action:"outdent",aria:"outdent",tagNames:[],contentDefault:"",contentFA:''},justifyCenter:{name:"justifyCenter",action:"justifyCenter",aria:"center justify",tagNames:[],style:{prop:"text-align",value:"center"},contentDefault:"C",contentFA:''},justifyFull:{name:"justifyFull",action:"justifyFull",aria:"full justify",tagNames:[],style:{prop:"text-align",value:"justify"},contentDefault:"J",contentFA:''},justifyLeft:{name:"justifyLeft",action:"justifyLeft",aria:"left justify",tagNames:[],style:{prop:"text-align",value:"left"},contentDefault:"L",contentFA:''},justifyRight:{name:"justifyRight",action:"justifyRight",aria:"right justify",tagNames:[],style:{prop:"text-align",value:"right"},contentDefault:"R",contentFA:''},removeFormat:{name:"removeFormat",aria:"remove formatting",action:"removeFormat",contentDefault:"X",contentFA:''},quote:{name:"quote",action:"append-blockquote",aria:"blockquote",tagNames:["blockquote"],contentDefault:"",contentFA:''},pre:{name:"pre",action:"append-pre",aria:"preformatted text",tagNames:["pre"],contentDefault:"0101",contentFA:''},h1:{name:"h1",action:"append-h1",aria:"header type one",tagNames:["h1"],contentDefault:"H1",contentFA:'1'},h2:{name:"h2",action:"append-h2",aria:"header type two",tagNames:["h2"],contentDefault:"H2",contentFA:'2'},h3:{name:"h3",action:"append-h3",aria:"header type three",tagNames:["h3"],contentDefault:"H3",contentFA:'3'},h4:{name:"h4",action:"append-h4",aria:"header type four",tagNames:["h4"],contentDefault:"H4",contentFA:'4'},h5:{name:"h5",action:"append-h5",aria:"header type five",tagNames:["h5"],contentDefault:"H5",contentFA:'5'},h6:{name:"h6",action:"append-h6",aria:"header type six",tagNames:["h6"],contentDefault:"H6",contentFA:'6'}}}(),function(){var e=t.extensions.button.extend({init:function(){t.extensions.button.prototype.init.apply(this,arguments)},formSaveLabel:"✓",formCloseLabel:"×",activeClass:"medium-editor-toolbar-form-active",hasForm:!0,getForm:function(){},isDisplayed:function(){return!!this.hasForm&&this.getForm().classList.contains(this.activeClass)},showForm:function(){this.hasForm&&this.getForm().classList.add(this.activeClass)},hideForm:function(){this.hasForm&&this.getForm().classList.remove(this.activeClass)},showToolbarDefaultActions:function(){var t=this.base.getExtensionByName("toolbar");t&&t.showToolbarDefaultActions()},hideToolbarDefaultActions:function(){var t=this.base.getExtensionByName("toolbar");t&&t.hideToolbarDefaultActions()},setToolbarPosition:function(){var t=this.base.getExtensionByName("toolbar");t&&t.setToolbarPosition()}});t.extensions.form=e}(),function(){var e=t.extensions.form.extend({customClassOption:null,customClassOptionText:"Button",linkValidation:!1,placeholderText:"Paste or type a link",targetCheckbox:!1,targetCheckboxText:"Open in new window",name:"anchor",action:"createLink",aria:"link",tagNames:["a"],contentDefault:"#",contentFA:'',init:function(){t.extensions.form.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this))},handleClick:function(e){e.preventDefault(),e.stopPropagation();var n=t.selection.getSelectionRange(this.document);return"a"===n.startContainer.nodeName.toLowerCase()||"a"===n.endContainer.nodeName.toLowerCase()||t.util.getClosestTag(t.selection.getSelectedParentElement(n),"a")?this.execAction("unlink"):(this.isDisplayed()||this.showForm(),!1)},handleKeydown:function(e){t.util.isKey(e,t.util.keyCode.K)&&t.util.isMetaCtrlKey(e)&&!e.shiftKey&&this.handleClick(e)},getForm:function(){return this.form||(this.form=this.createForm()),this.form},getTemplate:function(){var t=[''];return t.push('',"fontawesome"===this.getEditorOption("buttonLabels")?'':this.formSaveLabel,""),t.push('',"fontawesome"===this.getEditorOption("buttonLabels")?'':this.formCloseLabel,""),this.targetCheckbox&&t.push('

','','","
"),this.customClassOption&&t.push('
','',"","
"),t.join("")},isDisplayed:function(){return t.extensions.form.prototype.isDisplayed.apply(this)},hideForm:function(){t.extensions.form.prototype.hideForm.apply(this),this.getInput().value=""},showForm:function(e){var n=this.getInput(),r=this.getAnchorTargetCheckbox(),i=this.getAnchorButtonCheckbox();if(e=e||{value:""},"string"==typeof e&&(e={value:e}),this.base.saveSelection(),this.hideToolbarDefaultActions(),t.extensions.form.prototype.showForm.apply(this),this.setToolbarPosition(),n.value=e.value,n.focus(),r&&(r.checked="_blank"===e.target),i){var o=e.buttonClass?e.buttonClass.split(" "):[];i.checked=-1!==o.indexOf(this.customClassOption)}},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},getFormOpts:function(){var t=this.getAnchorTargetCheckbox(),e=this.getAnchorButtonCheckbox(),n={value:this.getInput().value.trim()};return this.linkValidation&&(n.value=this.checkLinkFormat(n.value)),n.target="_self",t&&t.checked&&(n.target="_blank"),e&&e.checked&&(n.buttonClass=this.customClassOption),n},doFormSave:function(){var t=this.getFormOpts();this.completeFormSave(t)},completeFormSave:function(t){this.base.restoreSelection(),this.execAction(this.action,t),this.base.checkSelection()},ensureEncodedUri:function(t){return t===decodeURI(t)?encodeURI(t):t},ensureEncodedUriComponent:function(t){return t===decodeURIComponent(t)?encodeURIComponent(t):t},ensureEncodedParam:function(t){var e=t.split("="),n=e[0],r=e[1];return n+(void 0===r?"":"="+this.ensureEncodedUriComponent(r))},ensureEncodedQuery:function(t){return t.split("&").map(this.ensureEncodedParam.bind(this)).join("&")},checkLinkFormat:function(t){var e=/^([a-z]+:)?\/\/|^(mailto|tel|maps):|^\#/i,n=e.test(t),r="",i=/^\+?\s?\(?(?:\d\s?\-?\)?){3,20}$/,o=t.match(/^(.*?)(?:\?(.*?))?(?:#(.*))?$/),a=o[1],s=o[2],u=o[3];if(i.test(t))return"tel:"+t;if(!n){var c=a.split("/")[0];(c.match(/.+(\.|:).+/)||"localhost"===c)&&(r="http://")}return r+this.ensureEncodedUri(a)+(void 0===s?"":"?"+this.ensureEncodedQuery(s))+(void 0===u?"":"#"+u)},doFormCancel:function(){this.base.restoreSelection(),this.base.checkSelection()},attachFormEvents:function(t){var e=t.querySelector(".medium-editor-toolbar-close"),n=t.querySelector(".medium-editor-toolbar-save"),r=t.querySelector(".medium-editor-toolbar-input");this.on(t,"click",this.handleFormClick.bind(this)),this.on(r,"keyup",this.handleTextboxKeyup.bind(this)),this.on(e,"click",this.handleCloseClick.bind(this)),this.on(n,"click",this.handleSaveClick.bind(this),!0)},createForm:function(){var t=this.document,e=t.createElement("div");return e.className="medium-editor-toolbar-form",e.id="medium-editor-toolbar-form-anchor-"+this.getEditorId(),e.innerHTML=this.getTemplate(),this.attachFormEvents(e),e},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},getAnchorTargetCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-target")},getAnchorButtonCheckbox:function(){return this.getForm().querySelector(".medium-editor-toolbar-anchor-button")},handleTextboxKeyup:function(e){if(e.keyCode===t.util.keyCode.ENTER)return e.preventDefault(),void this.doFormSave();e.keyCode===t.util.keyCode.ESCAPE&&(e.preventDefault(),this.doFormCancel())},handleFormClick:function(t){t.stopPropagation()},handleSaveClick:function(t){t.preventDefault(),this.doFormSave()},handleCloseClick:function(t){t.preventDefault(),this.doFormCancel()}});t.extensions.anchor=e}(),function(){var e=t.Extension.extend({name:"anchor-preview",hideDelay:500,previewValueSelector:"a",showWhenToolbarIsVisible:!1,showOnEmptyLinks:!0,init:function(){this.anchorPreview=this.createPreview(),this.getEditorOption("elementsContainer").appendChild(this.anchorPreview),this.attachToEditables()},getInteractionElements:function(){return this.getPreviewElement()},getPreviewElement:function(){return this.anchorPreview},createPreview:function(){var t=this.document.createElement("div");return t.id="medium-editor-anchor-preview-"+this.getEditorId(),t.className="medium-editor-anchor-preview",t.innerHTML=this.getTemplate(),this.on(t,"click",this.handleClick.bind(this)),t},getTemplate:function(){return'
'},destroy:function(){this.anchorPreview&&(this.anchorPreview.parentNode&&this.anchorPreview.parentNode.removeChild(this.anchorPreview),delete this.anchorPreview)},hidePreview:function(){this.anchorPreview&&this.anchorPreview.classList.remove("medium-editor-anchor-preview-active"),this.activeAnchor=null},showPreview:function(t){return!(!this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")&&!t.getAttribute("data-disable-preview"))||(this.previewValueSelector&&(this.anchorPreview.querySelector(this.previewValueSelector).textContent=t.attributes.href.value,this.anchorPreview.querySelector(this.previewValueSelector).href=t.attributes.href.value),this.anchorPreview.classList.add("medium-toolbar-arrow-over"),this.anchorPreview.classList.remove("medium-toolbar-arrow-under"),this.anchorPreview.classList.contains("medium-editor-anchor-preview-active")||this.anchorPreview.classList.add("medium-editor-anchor-preview-active"),this.activeAnchor=t,this.positionPreview(),this.attachPreviewHandlers(),this)},positionPreview:function(t){t=t||this.activeAnchor;var e,n,r,i,o,a=this.window.innerWidth,s=this.anchorPreview.offsetHeight,u=t.getBoundingClientRect(),c=this.diffLeft,l=this.diffTop,f=this.getEditorOption("elementsContainer"),d=["absolute","fixed"].indexOf(window.getComputedStyle(f).getPropertyValue("position"))>-1,h={};e=this.anchorPreview.offsetWidth/2;var p=this.base.getExtensionByName("toolbar");p&&(c=p.diffLeft,l=p.diffTop),n=c-e,d?(i=f.getBoundingClientRect(),["top","left"].forEach(function(t){h[t]=u[t]-i[t]}),h.width=u.width,h.height=u.height,u=h,a=i.width,o=f.scrollTop):o=this.window.pageYOffset,r=u.left+u.width/2,o+=s+u.top+u.height-l-this.anchorPreview.offsetHeight,this.anchorPreview.style.top=Math.round(o)+"px",this.anchorPreview.style.right="initial",rthis.hideDelay&&this.detachPreviewHandlers()},detachPreviewHandlers:function(){clearInterval(this.intervalTimer),this.instanceHandlePreviewMouseover&&(this.off(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.activeAnchor&&(this.off(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout))),this.hidePreview(),this.hovering=this.instanceHandlePreviewMouseover=this.instanceHandlePreviewMouseout=null},attachPreviewHandlers:function(){this.lastOver=(new Date).getTime(),this.hovering=!0,this.instanceHandlePreviewMouseover=this.handlePreviewMouseover.bind(this),this.instanceHandlePreviewMouseout=this.handlePreviewMouseout.bind(this),this.intervalTimer=setInterval(this.updatePreview.bind(this),200),this.on(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.on(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout)}});t.extensions.anchorPreview=e}(),function(){function e(e){return!t.util.getClosestTag(e,"a")}var n,r,i,o,a;n=[" ","\t","\n","\r"," "," "," "," "," ","\u2028","\u2029"],r="com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|ja|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw",i="(((?:(https?://|ftps?://|nntp://)|www\\d{0,3}[.]|[a-z0-9.\\-]+[.]("+r+")\\/)\\S+(?:[^\\s`!\\[\\]{};:'\".,?«»“”‘’])))|(([a-z0-9\\-]+\\.)?[a-z0-9\\-]+\\.("+r+"))",o=new RegExp("^("+r+")$","i"),a=new RegExp(i,"gi");var s=t.Extension.extend({init:function(){t.Extension.prototype.init.apply(this,arguments),this.disableEventHandling=!1,this.subscribe("editableKeypress",this.onKeypress.bind(this)),this.subscribe("editableBlur",this.onBlur.bind(this)),this.document.execCommand("AutoUrlDetect",!1,!1)},isLastInstance:function(){for(var t=0,e=0;e0&&null!==a;)i=n.currentNode,o=i.nodeValue,o.length>e?(a=i.splitText(o.length-e),e=0):(a=n.previousNode(),e-=o.length);return a},performLinkingWithinElement:function(e){for(var n=this.findLinkableText(e),r=0;r1;)i.appendChild(r.childNodes[1])}});t.extensions.autoLink=s}(),function(){function e(e){var r=t.util.getContainerEditorElement(e);Array.prototype.slice.call(r.parentElement.querySelectorAll("."+n)).forEach(function(t){t.classList.remove(n)})}var n="medium-editor-dragover",r=t.Extension.extend({name:"fileDragging",allowedTypes:["image"],init:function(){t.Extension.prototype.init.apply(this,arguments),this.subscribe("editableDrag",this.handleDrag.bind(this)),this.subscribe("editableDrop",this.handleDrop.bind(this))},handleDrag:function(t){t.preventDefault(),t.dataTransfer.dropEffect="copy";var r=t.target.classList?t.target:t.target.parentElement;e(r),"dragover"===t.type&&r.classList.add(n)},handleDrop:function(t){t.preventDefault(),t.stopPropagation(),this.base.selectElement(t.target);var n=this.base.exportSelection();n.start=n.end,this.base.importSelection(n),t.dataTransfer.files&&Array.prototype.slice.call(t.dataTransfer.files).forEach(function(t){this.isAllowedFile(t)&&t.type.match("image")&&this.insertImageFile(t)},this),e(t.target)},isAllowedFile:function(t){return this.allowedTypes.some(function(e){return!!t.type.match(e)})},insertImageFile:function(e){if("function"==typeof FileReader){var n=new FileReader;n.readAsDataURL(e),n.addEventListener("load",function(e){var n=this.document.createElement("img");n.src=e.target.result,t.util.insertHTMLCommand(this.document,n.outerHTML)}.bind(this))}}});t.extensions.fileDragging=r}(),function(){var e=t.Extension.extend({name:"keyboard-commands",commands:[{command:"bold",key:"B",meta:!0,shift:!1,alt:!1},{command:"italic",key:"I",meta:!0,shift:!1,alt:!1},{command:"underline",key:"U",meta:!0,shift:!1,alt:!1}],init:function(){t.Extension.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.keys={},this.commands.forEach(function(t){var e=t.key.charCodeAt(0);this.keys[e]||(this.keys[e]=[]),this.keys[e].push(t)},this)},handleKeydown:function(e){var n=t.util.getKeyCode(e);if(this.keys[n]){var r=t.util.isMetaCtrlKey(e),i=!!e.shiftKey,o=!!e.altKey;this.keys[n].forEach(function(t){t.meta!==r||t.shift!==i||t.alt!==o&&void 0!==t.alt||(e.preventDefault(),e.stopPropagation(),"function"==typeof t.command?t.command.apply(this):!1!==t.command&&this.execAction(t.command))},this)}}});t.extensions.keyboardCommands=e}(),function(){var e=t.extensions.form.extend({name:"fontname",action:"fontName",aria:"change font name",contentDefault:"±",contentFA:'',fonts:["","Arial","Verdana","Times New Roman"],init:function(){t.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(t){if(t.preventDefault(),t.stopPropagation(),!this.isDisplayed()){var e=this.document.queryCommandValue("fontName")+"";this.showForm(e)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getSelect().value=""},showForm:function(t){var e=this.getSelect();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),e.value=t||"",e.focus()},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontName(),this.base.checkSelection()},createForm:function(){var t,e=this.document,n=e.createElement("div"),r=e.createElement("select"),i=e.createElement("a"),o=e.createElement("a");n.className="medium-editor-toolbar-form",n.id="medium-editor-toolbar-form-fontname-"+this.getEditorId(),this.on(n,"click",this.handleFormClick.bind(this));for(var a=0;a
':"✓",n.appendChild(o),this.on(o,"click",this.handleSaveClick.bind(this),!0),i.setAttribute("href","#"),i.className="medium-editor-toobar-close",i.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'':"×",n.appendChild(i),this.on(i,"click",this.handleCloseClick.bind(this)),n},getSelect:function(){return this.getForm().querySelector("select.medium-editor-toolbar-select")},clearFontName:function(){t.selection.getSelectedElements(this.document).forEach(function(t){"font"===t.nodeName.toLowerCase()&&t.hasAttribute("face")&&t.removeAttribute("face")})},handleFontChange:function(){var t=this.getSelect().value;""===t?this.clearFontName():this.execAction("fontName",{value:t})},handleFormClick:function(t){t.stopPropagation()},handleSaveClick:function(t){t.preventDefault(),this.doFormSave()},handleCloseClick:function(t){t.preventDefault(),this.doFormCancel()}});t.extensions.fontName=e}(),function(){var e=t.extensions.form.extend({name:"fontsize",action:"fontSize",aria:"increase/decrease font size",contentDefault:"±",contentFA:'',init:function(){t.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(t){if(t.preventDefault(),t.stopPropagation(),!this.isDisplayed()){var e=this.document.queryCommandValue("fontSize")+"";this.showForm(e)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getInput().value=""},showForm:function(t){var e=this.getInput();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),e.value=t||"",e.focus()},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontSize(),this.base.checkSelection()},createForm:function(){var t=this.document,e=t.createElement("div"),n=t.createElement("input"),r=t.createElement("a"),i=t.createElement("a");return e.className="medium-editor-toolbar-form",e.id="medium-editor-toolbar-form-fontsize-"+this.getEditorId(),this.on(e,"click",this.handleFormClick.bind(this)),n.setAttribute("type","range"),n.setAttribute("min","1"),n.setAttribute("max","7"),n.className="medium-editor-toolbar-input",e.appendChild(n),this.on(n,"change",this.handleSliderChange.bind(this)),i.setAttribute("href","#"),i.className="medium-editor-toobar-save",i.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'':"✓",e.appendChild(i),this.on(i,"click",this.handleSaveClick.bind(this),!0),r.setAttribute("href","#"),r.className="medium-editor-toobar-close",r.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'':"×",e.appendChild(r),this.on(r,"click",this.handleCloseClick.bind(this)),e},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},clearFontSize:function(){t.selection.getSelectedElements(this.document).forEach(function(t){"font"===t.nodeName.toLowerCase()&&t.hasAttribute("size")&&t.removeAttribute("size")})},handleSliderChange:function(){var t=this.getInput().value;"4"===t?this.clearFontSize():this.execAction("fontSize",{value:t})},handleFormClick:function(t){t.stopPropagation()},handleSaveClick:function(t){t.preventDefault(),this.doFormSave()},handleCloseClick:function(t){t.preventDefault(),this.doFormCancel()}});t.extensions.fontSize=e}(),function(){function e(){return[[new RegExp(/^[\s\S]*]*>\s*|\s*<\/body[^>]*>[\s\S]*$/g),""],[new RegExp(/|/g),""],[new RegExp(/
$/i),""],[new RegExp(/<[^>]*docs-internal-guid[^>]*>/gi),""],[new RegExp(/<\/b>(]*>)?$/gi),""],[new RegExp(/\s+<\/span>/g)," "],[new RegExp(/
/g),"
"],[new RegExp(/]*(font-style:italic;font-weight:(bold|700)|font-weight:(bold|700);font-style:italic)[^>]*>/gi),''],[new RegExp(/]*font-style:italic[^>]*>/gi),''],[new RegExp(/]*font-weight:(bold|700)[^>]*>/gi),''],[new RegExp(/<(\/?)(i|b|a)>/gi),"<$1$2>"],[new RegExp(/<a(?:(?!href).)+href=(?:"|”|“|"|“|”)(((?!"|”|“|"|“|”).)*)(?:"|”|“|"|“|”)(?:(?!>).)*>/gi),''],[new RegExp(/<\/p>\n+/gi),"

"],[new RegExp(/\n+

/gi),""],[new RegExp(/(((?!/gi),"$1"]]}function n(t,e,n){var r=t.clipboardData||e.clipboardData||n.dataTransfer,i={};if(!r)return i;if(r.getData){var o=r.getData("Text");o&&o.length>0&&(i["text/plain"]=o)}if(r.types)for(var a=0;a1)for(o=0;o"+t.util.htmlEntities(i[o])+"

");else a=t.util.htmlEntities(i[0]);t.util.insertHTMLCommand(this.document,a)},handlePasteBinPaste:function(t){if(t.defaultPrevented)return void this.removePasteBin();var e=n(t,this.window,this.document),r=e["text/html"],o=e["text/plain"],a=i;if(!this.cleanPastedHTML||r)return t.preventDefault(),this.removePasteBin(),this.doPaste(r,o,a),void this.trigger("editablePaste",{currentTarget:a,target:a},a);setTimeout(function(){this.cleanPastedHTML&&(r=this.getPasteBinHtml()),this.removePasteBin(),this.doPaste(r,o,a),this.trigger("editablePaste",{currentTarget:a,target:a},a)}.bind(this),0)},handleKeydown:function(e,n){t.util.isKey(e,t.util.keyCode.V)&&t.util.isMetaCtrlKey(e)&&(e.stopImmediatePropagation(),this.removePasteBin(),this.createPasteBin(n))},createPasteBin:function(e){var n,a=t.selection.getSelectionRange(this.document),s=this.window.pageYOffset;i=e,a&&(n=a.getClientRects(),n.length?s+=n[0].top:void 0!==a.startContainer.getBoundingClientRect?s+=a.startContainer.getBoundingClientRect().top:s+=a.getBoundingClientRect().top),r=a;var u=this.document.createElement("div");u.id=this.pasteBinId="medium-editor-pastebin-"+ +Date.now(),u.setAttribute("style","border: 1px red solid; position: absolute; top: "+s+"px; width: 10px; height: 10px; overflow: hidden; opacity: 0"),u.setAttribute("contentEditable",!0),u.innerHTML="%ME_PASTEBIN%",this.document.body.appendChild(u),this.on(u,"focus",o),this.on(u,"focusin",o),this.on(u,"focusout",o),u.focus(),t.selection.selectNode(u,this.document),this.boundHandlePaste||(this.boundHandlePaste=this.handlePasteBinPaste.bind(this)),this.on(u,"paste",this.boundHandlePaste)},removePasteBin:function(){null!==r&&(t.selection.selectRange(this.document,r),r=null),null!==i&&(i=null);var e=this.getPasteBin();e&&e&&(this.off(e,"focus",o),this.off(e,"focusin",o),this.off(e,"focusout",o),this.off(e,"paste",this.boundHandlePaste),e.parentElement.removeChild(e))},getPasteBin:function(){return this.document.getElementById(this.pasteBinId)},getPasteBinHtml:function(){var t=this.getPasteBin();if(!t)return!1;if(t.firstChild&&"mcepastebin"===t.firstChild.id)return!1;var e=t.innerHTML;return!(!e||"%ME_PASTEBIN%"===e)&&e},cleanPaste:function(t){var n,r,i,o,a=/"+t.split("

").join("

")+"

",r=i.querySelectorAll("a,p,div,br"),n=0;n"+r.innerHTML+"
":i.innerHTML=r.innerHTML,r.parentNode.replaceChild(i,r);for(o=e.querySelectorAll("span"),n=0;n0&&(r[0].classList.add(this.firstButtonClass),r[r.length-1].classList.add(this.lastButtonClass)),s},destroy:function(){this.toolbar&&(this.toolbar.parentNode&&this.toolbar.parentNode.removeChild(this.toolbar),delete this.toolbar)},getInteractionElements:function(){return this.getToolbarElement()},getToolbarElement:function(){return this.toolbar||(this.toolbar=this.createToolbar()),this.toolbar},getToolbarActionsElement:function(){return this.getToolbarElement().querySelector(".medium-editor-toolbar-actions")},initThrottledMethods:function(){this.throttledPositionToolbar=t.util.throttle(function(){this.base.isActive&&this.positionToolbarIfShown()}.bind(this))},attachEventHandlers:function(){this.subscribe("blur",this.handleBlur.bind(this)),this.subscribe("focus",this.handleFocus.bind(this)),this.subscribe("editableClick",this.handleEditableClick.bind(this)),this.subscribe("editableKeyup",this.handleEditableKeyup.bind(this)),this.on(this.document.documentElement,"mouseup",this.handleDocumentMouseup.bind(this)),this.static&&this.sticky&&this.on(this.window,"scroll",this.handleWindowScroll.bind(this),!0),this.on(this.window,"resize",this.handleWindowResize.bind(this))},handleWindowScroll:function(){this.positionToolbarIfShown()},handleWindowResize:function(){this.throttledPositionToolbar()},handleDocumentMouseup:function(e){if(e&&e.target&&t.util.isDescendant(this.getToolbarElement(),e.target))return!1;this.checkState()},handleEditableClick:function(){setTimeout(function(){this.checkState()}.bind(this),0)},handleEditableKeyup:function(){this.checkState()},handleBlur:function(){clearTimeout(this.hideTimeout),clearTimeout(this.delayShowTimeout),this.hideTimeout=setTimeout(function(){this.hideToolbar()}.bind(this),1)},handleFocus:function(){this.checkState()},isDisplayed:function(){return this.getToolbarElement().classList.contains("medium-editor-toolbar-active")},showToolbar:function(){clearTimeout(this.hideTimeout),this.isDisplayed()||(this.getToolbarElement().classList.add("medium-editor-toolbar-active"),this.trigger("showToolbar",{},this.base.getFocusedElement()))},hideToolbar:function(){this.isDisplayed()&&(this.getToolbarElement().classList.remove("medium-editor-toolbar-active"),this.trigger("hideToolbar",{},this.base.getFocusedElement()))},isToolbarDefaultActionsDisplayed:function(){return"block"===this.getToolbarActionsElement().style.display},hideToolbarDefaultActions:function(){this.isToolbarDefaultActionsDisplayed()&&(this.getToolbarActionsElement().style.display="none")},showToolbarDefaultActions:function(){this.hideExtensionForms(),this.isToolbarDefaultActionsDisplayed()||(this.getToolbarActionsElement().style.display="block"),this.delayShowTimeout=this.base.delay(function(){this.showToolbar()}.bind(this))},hideExtensionForms:function(){this.forEachExtension(function(t){t.hasForm&&t.isDisplayed()&&t.hideForm()})},multipleBlockElementsSelected:function(){var e=/<[^\/>][^>]*><\/[^>]+>/gim,n=new RegExp("<("+t.util.blockContainerElementNames.join("|")+")[^>]*>","g"),r=t.selection.getSelectionHtml(this.document).replace(e,""),i=r.match(n);return!!i&&i.length>1},modifySelection:function(){var e=this.window.getSelection(),n=e.getRangeAt(0);if(this.standardizeSelectionStart&&n.startContainer.nodeValue&&n.startOffset===n.startContainer.nodeValue.length){var r=t.util.findAdjacentTextNodeWithContent(t.selection.getSelectionElement(this.window),n.startContainer,this.document);if(r){for(var i=0;0===r.nodeValue.substr(i,1).trim().length;)i+=1;n=t.selection.select(this.document,r,i,n.endContainer,n.endOffset)}}},checkState:function(){if(!this.base.preventSelectionUpdates){if(!this.base.getFocusedElement()||t.selection.selectionInContentEditableFalse(this.window))return this.hideToolbar();var e=t.selection.getSelectionElement(this.window);return!e||-1===this.getEditorElements().indexOf(e)||e.getAttribute("data-disable-toolbar")?this.hideToolbar():this.updateOnEmptySelection&&this.static?this.showAndUpdateToolbar():!t.selection.selectionContainsContent(this.document)||!1===this.allowMultiParagraphSelection&&this.multipleBlockElementsSelected()?this.hideToolbar():void this.showAndUpdateToolbar()}},showAndUpdateToolbar:function(){this.modifySelection(),this.setToolbarButtonStates(),this.trigger("positionToolbar",{},this.base.getFocusedElement()),this.showToolbarDefaultActions(),this.setToolbarPosition()},setToolbarButtonStates:function(){this.forEachExtension(function(t){"function"==typeof t.isActive&&"function"==typeof t.setInactive&&t.setInactive()}),this.checkActiveButtons()},checkActiveButtons:function(){var e,n=[],r=null,i=t.selection.getSelectionRange(this.document),o=function(t){"function"==typeof t.checkState?t.checkState(e):"function"==typeof t.isActive&&"function"==typeof t.isAlreadyApplied&&"function"==typeof t.setActive&&!t.isActive()&&t.isAlreadyApplied(e)&&t.setActive()};if(i&&(this.forEachExtension(function(t){if("function"==typeof t.queryCommandState&&null!==(r=t.queryCommandState()))return void(r&&"function"==typeof t.setActive&&t.setActive());n.push(t)}),e=t.selection.getSelectedParentElement(i),this.getEditorElements().some(function(n){return t.util.isDescendant(n,e,!0)})))for(;e&&(n.forEach(o),!t.util.isMediumEditorElement(e));)e=e.parentNode},positionToolbarIfShown:function(){this.isDisplayed()&&this.setToolbarPosition()},setToolbarPosition:function(){var t=this.base.getFocusedElement(),e=this.window.getSelection();if(!t)return this;!this.static&&e.isCollapsed||(this.showToolbar(),this.relativeContainer||(this.static?this.positionStaticToolbar(t):this.positionToolbar(e)),this.trigger("positionedToolbar",{},this.base.getFocusedElement()))},positionStaticToolbar:function(t){this.getToolbarElement().style.left="0";var e,n=this.document.documentElement&&this.document.documentElement.scrollTop||this.document.body.scrollTop,r=this.window.innerWidth,i=this.getToolbarElement(),o=t.getBoundingClientRect(),a=o.top+n,s=o.left+o.width/2,u=i.offsetHeight,c=i.offsetWidth,l=c/2;switch(this.sticky?n>a+t.offsetHeight-u-this.stickyTopOffset?(i.style.top=a+t.offsetHeight-u+"px",i.classList.remove("medium-editor-sticky-toolbar")):n>a-u-this.stickyTopOffset?(i.classList.add("medium-editor-sticky-toolbar"),i.style.top=this.stickyTopOffset+"px"):(i.classList.remove("medium-editor-sticky-toolbar"),i.style.top=a-u+"px"):i.style.top=a-u+"px",this.align){case"left":e=o.left;break;case"right":e=o.right-c;break;case"center":e=s-l}e<0?e=0:e+c>r&&(e=r-Math.ceil(c)-1),i.style.left=e+"px"},positionToolbar:function(t){this.getToolbarElement().style.left="0",this.getToolbarElement().style.right="initial";var e=t.getRangeAt(0),n=e.getBoundingClientRect();(!n||0===n.height&&0===n.width&&e.startContainer===e.endContainer)&&(n=1===e.startContainer.nodeType&&e.startContainer.querySelector("img")?e.startContainer.querySelector("img").getBoundingClientRect():e.startContainer.getBoundingClientRect());var r,i,o=this.window.innerWidth,a=this.getToolbarElement(),s=a.offsetHeight,u=a.offsetWidth,c=u/2,l=this.diffLeft-c,f=this.getEditorOption("elementsContainer"),d=["absolute","fixed"].indexOf(window.getComputedStyle(f).getPropertyValue("position"))>-1,h={},p={};d?(i=f.getBoundingClientRect(),["top","left"].forEach(function(t){p[t]=n[t]-i[t]}),p.width=n.width,p.height=n.height,n=p,o=i.width,h.top=f.scrollTop):h.top=this.window.pageYOffset,r=n.left+n.width/2,h.top+=n.top-s,n.top<50?(a.classList.add("medium-toolbar-arrow-over"),a.classList.remove("medium-toolbar-arrow-under"),h.top+=50+n.height-this.diffTop):(a.classList.add("medium-toolbar-arrow-under"),a.classList.remove("medium-toolbar-arrow-over"),h.top+=this.diffTop),r'),n.onload=function(){var t=this.document.getElementById(r);t&&(t.removeAttribute("id"),t.removeAttribute("class"),t.src=n.result)}.bind(this)}}.bind(this))),e.target.classList.remove("medium-editor-dragover")}});t.extensions.imageDragging=e}(),function(){function e(e){var n=t.selection.getSelectionStart(this.options.ownerDocument),r=n.textContent,i=t.selection.getCaretOffsets(n);(void 0===r[i.left-1]||""===r[i.left-1].trim()||void 0!==r[i.left]&&""===r[i.left].trim())&&e.preventDefault()}function n(e,n){if(this.options.disableReturn||n.getAttribute("data-disable-return"))e.preventDefault();else if(this.options.disableDoubleReturn||n.getAttribute("data-disable-double-return")){var r=t.selection.getSelectionStart(this.options.ownerDocument);(r&&""===r.textContent.trim()&&"li"!==r.nodeName.toLowerCase()||r.previousElementSibling&&"br"!==r.previousElementSibling.nodeName.toLowerCase()&&""===r.previousElementSibling.textContent.trim())&&e.preventDefault()}}function r(e){var n=t.selection.getSelectionStart(this.options.ownerDocument);"pre"===(n&&n.nodeName.toLowerCase())&&(e.preventDefault(),t.util.insertHTMLCommand(this.options.ownerDocument," ")),t.util.isListItem(n)&&(e.preventDefault(),e.shiftKey?this.options.ownerDocument.execCommand("outdent",!1,null):this.options.ownerDocument.execCommand("indent",!1,null))}function i(e){var n,r=t.selection.getSelectionStart(this.options.ownerDocument),i=r.nodeName.toLowerCase(),o=/^(\s+|)?$/i,a=/h\d/i;t.util.isKey(e,[t.util.keyCode.BACKSPACE,t.util.keyCode.ENTER])&&r.previousElementSibling&&a.test(i)&&0===t.selection.getCaretOffsets(r).left?t.util.isKey(e,t.util.keyCode.BACKSPACE)&&o.test(r.previousElementSibling.innerHTML)?(r.previousElementSibling.parentNode.removeChild(r.previousElementSibling),e.preventDefault()):!this.options.disableDoubleReturn&&t.util.isKey(e,t.util.keyCode.ENTER)&&(n=this.options.ownerDocument.createElement("p"),n.innerHTML="
",r.previousElementSibling.parentNode.insertBefore(n,r),e.preventDefault()):t.util.isKey(e,t.util.keyCode.DELETE)&&r.nextElementSibling&&r.previousElementSibling&&!a.test(i)&&o.test(r.innerHTML)&&a.test(r.nextElementSibling.nodeName.toLowerCase())?(t.selection.moveCursor(this.options.ownerDocument,r.nextElementSibling),r.previousElementSibling.parentNode.removeChild(r),e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&"li"===i&&o.test(r.innerHTML)&&!r.previousElementSibling&&!r.parentElement.previousElementSibling&&r.nextElementSibling&&"li"===r.nextElementSibling.nodeName.toLowerCase()?(n=this.options.ownerDocument.createElement("p"),n.innerHTML="
",r.parentElement.parentElement.insertBefore(n,r.parentElement),t.selection.moveCursor(this.options.ownerDocument,n),r.parentElement.removeChild(r),e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&!1!==t.util.getClosestTag(r,"blockquote")&&0===t.selection.getCaretOffsets(r).left?(e.preventDefault(),t.util.execFormatBlock(this.options.ownerDocument,"p")):t.util.isKey(e,t.util.keyCode.ENTER)&&!1!==t.util.getClosestTag(r,"blockquote")&&0===t.selection.getCaretOffsets(r).right?(n=this.options.ownerDocument.createElement("p"),n.innerHTML="
",r.parentElement.insertBefore(n,r.nextSibling),t.selection.moveCursor(this.options.ownerDocument,n),e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&t.util.isMediumEditorElement(r.parentElement)&&!r.previousElementSibling&&r.nextElementSibling&&o.test(r.innerHTML)&&(e.preventDefault(),t.selection.moveCursor(this.options.ownerDocument,r.nextSibling),r.parentElement.removeChild(r))}function o(e){var n,r=t.selection.getSelectionStart(this.options.ownerDocument);r&&(t.util.isMediumEditorElement(r)&&0===r.children.length&&!t.util.isBlockContainer(r)&&this.options.ownerDocument.execCommand("formatBlock",!1,"p"),!t.util.isKey(e,t.util.keyCode.ENTER)||t.util.isListItem(r)||t.util.isBlockContainer(r)||(n=r.nodeName.toLowerCase(),"a"===n?this.options.ownerDocument.execCommand("unlink",!1,null):e.shiftKey||e.ctrlKey||this.options.ownerDocument.execCommand("formatBlock",!1,"p")))}function a(t,e){var n=e.parentNode.querySelector('textarea[medium-editor-textarea-id="'+e.getAttribute("medium-editor-textarea-id")+'"]');n&&(n.value=e.innerHTML.trim())}function s(t){t._mediumEditors||(t._mediumEditors=[null]),this.id||(this.id=t._mediumEditors.length),t._mediumEditors[this.id]=this}function u(t){t._mediumEditors&&t._mediumEditors[this.id]&&(t._mediumEditors[this.id]=null)}function c(e,n,r){var i=[];if(e||(e=[]),"string"==typeof e&&(e=n.querySelectorAll(e)),t.util.isElement(e)&&(e=[e]),r)for(var o=0;o=0&&(r=t.selection.exportSelection(e,this.options.ownerDocument)),null!==r&&0!==n&&(r.editableElementIndex=n),r},saveSelection:function(){this.selectionState=this.exportSelection()},importSelection:function(e,n){if(e){var r=this.elements[e.editableElementIndex||0];t.selection.importSelection(e,r,this.options.ownerDocument,n)}},restoreSelection:function(){this.importSelection(this.selectionState)},createLink:function(e){var n,r=t.selection.getSelectionElement(this.options.contentWindow),i={};if(-1!==this.elements.indexOf(r)){try{if(this.events.disableCustomEvent("editableInput"),e.url&&t.util.deprecated(".url option for createLink",".value","6.0.0"),(n=e.url||e.value)&&n.trim().length>0){var o=this.options.contentWindow.getSelection();if(o){var a,s,u,c,l=o.getRangeAt(0),f=l.commonAncestorContainer;if(3===l.endContainer.nodeType&&3!==l.startContainer.nodeType&&0===l.startOffset&&l.startContainer.firstChild===l.endContainer&&(f=l.endContainer),s=t.util.getClosestBlockContainer(l.startContainer),u=t.util.getClosestBlockContainer(l.endContainer),3!==f.nodeType&&0!==f.textContent.length&&s===u){var d=s||r,h=this.options.ownerDocument.createDocumentFragment();this.execAction("unlink"),a=this.exportSelection(),h.appendChild(d.cloneNode(!0)),r===d?t.selection.select(this.options.ownerDocument,d.firstChild,0,d.lastChild,3===d.lastChild.nodeType?d.lastChild.nodeValue.length:d.lastChild.childNodes.length):t.selection.select(this.options.ownerDocument,d,0,d,d.childNodes.length);var p=this.exportSelection();c=t.util.findOrCreateMatchingTextNodes(this.options.ownerDocument,h,{start:a.start-p.start,end:a.end-p.start,editableElementIndex:a.editableElementIndex}),0===c.length&&(h=this.options.ownerDocument.createDocumentFragment(),h.appendChild(f.cloneNode(!0)),c=[h.firstChild.firstChild,h.firstChild.lastChild]),t.util.createLink(this.options.ownerDocument,c,n.trim());var v=(h.firstChild.innerHTML.match(/^\s+/)||[""])[0].length;t.util.insertHTMLCommand(this.options.ownerDocument,h.firstChild.innerHTML.replace(/^\s+/,"")),a.start-=v,a.end-=v,this.importSelection(a)}else this.options.ownerDocument.execCommand("createLink",!1,n);this.options.targetBlank||"_blank"===e.target?t.util.setTargetBlank(t.selection.getSelectionStart(this.options.ownerDocument),n):t.util.removeTargetBlank(t.selection.getSelectionStart(this.options.ownerDocument),n),e.buttonClass&&t.util.addClassToAnchors(t.selection.getSelectionStart(this.options.ownerDocument),e.buttonClass)}}if(this.options.targetBlank||"_blank"===e.target||e.buttonClass){i=this.options.ownerDocument.createEvent("HTMLEvents"),i.initEvent("input",!0,!0,this.options.contentWindow);for(var y=0,m=this.elements.length;y1?e[1]:"";return{major:parseInt(n[0],10),minor:parseInt(n[1],10),revision:parseInt(n[2],10),preRelease:r,toString:function(){return[n[0],n[1],n[2]].join(".")+(r?"-"+r:"")}}},t.version=t.parseVersionString.call(this,{version:"5.23.2"}.version),t}())}).call(e,n(91))},function(t,e,n){"use strict";function r(t){if(!(void 0!==t.label&&/\S{1}/.test(t.label)&&void 0!==t.start&&/\S{1}/.test(t.start)&&void 0!==t.end&&/\S{1}/.test(t.end)||void 0!==t.label&&/\S{1}/.test(t.label)&&void 0!==t.action&&/\S{1}/.test(t.action)))return void console.error('[Custom-Button] You need to specify "label", "start" and "end" OR "label" and "action"');t.start=void 0===t.start?"":t.start,t.end=void 0===t.end?"":t.end;var e=this;this.options=t,this.button=document.createElement("button"),this.button.className="medium-editor-action",this.button.innerHTML=t.label,this.button.onclick=function(){var n=i(),r=window.getSelection(),o=r.anchorNode.parentElement;void 0===t.start||-1==n.indexOf(t.start)&&-1==n.indexOf(t.end)?(void 0!=t.action&&(n=t.action(n,!0,o)),n=t.start+n+t.end):(void 0!=t.action&&(n=t.action(n,!1,o)),n=String(n).split(t.start).join(""),n=String(n).split(t.end).join(""));var a,s;if(r.getRangeAt&&r.rangeCount){if(a=window.getSelection().getRangeAt(0),a.deleteContents(),a.createContextualFragment)s=a.createContextualFragment(n);else{var u=document.createElement("div");for(u.innerHTML=n,s=document.createDocumentFragment();child=u.firstChild;)s.appendChild(child)}var c=s.firstChild,l=s.lastChild;a.insertNode(s),c&&(a.setStartBefore(c),a.setEndAfter(l)),r.removeAllRanges(),r.addRange(a)}e.base.checkContentChanged()}}function i(){var t,e="";if(void 0!==window.getSelection){if(t=window.getSelection(),t.rangeCount){for(var n=document.createElement("div"),r=0,i=t.rangeCount;r-1&&e.indexOf(this.options.end)>-1?this.button.classList.add("medium-editor-button-active"):this.button.classList.remove("medium-editor-button-active")},void 0!==t&&t.exports&&(e=t.exports=r),e.MediumButton=r},function(t,e,n){"use strict";function r(t,e){var n=document.createElement("div");n.classList.add("ql-svt-container"),t.appendChild(n);var r=new a.a(n,i());return r.clipboard.dangerouslyPasteHTML(e.getContent()),r.history.clear(),r.on("text-change",function(){e.setContent(Object(s.a)(r))}),r.enable(),r}function i(){return{formats:["blockquote","bold","code","code-block","header","image","italic","link","list","script","strike","target","underline","video"],modules:{scrivitoApi:!0,scrivitoInternalLink:!0,scrivitoLinkTooltip:!0,toolbar:{container:["bold","italic",window.ScrivitoEditors&&window.ScrivitoEditors._config&&window.ScrivitoEditors._config.showHtmlEditorCodeButton?"code":void 0,"link",{header:2},{header:3},{list:"bullet"},{list:"ordered"}]}},placeholder:"Click to edit",readOnly:!0,theme:"scrivito"}}var o=n(73),a=n.n(o),s=n(330),u=n(331),c=(n(332),n(333));n(334),n(335);Object(u.a)(),Object(c.a)(),e.a=r},function(t,e,n){"use strict";(function(t){function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(r()=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function v(t){return+t!=t&&(t=0),o.alloc(+t)}function y(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(t).length;default:if(r)return W(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,n);case"utf8":case"utf-8":return S(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return N(this,e,n);case"base64":return j(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function b(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,i){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}var c;if(i){var l=-1;for(c=n;cs&&(n=s-u),c=n;c>=0;c--){for(var f=!0,d=0;di&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+s<=n){var u,c,l,f;switch(s){case 1:o<128&&(a=o);break;case 2:u=t[i+1],128==(192&u)&&(f=(31&o)<<6|63&u)>127&&(a=f);break;case 3:u=t[i+1],c=t[i+2],128==(192&u)&&128==(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(a=f);break;case 4:u=t[i+1],c=t[i+2],l=t[i+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(a=f)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return A(r)}function A(t){var e=t.length;if(e<=J)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,n,r,i,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function q(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function R(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function M(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(t,e,n,r,i){return i||M(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),G.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,i){return i||M(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),G.write(t,e,n,r,52,8),n+8}function z(t){if(t=U(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function U(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return t<16?"0"+t.toString(16):t.toString(16)}function W(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],a=0;a55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function K(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function Q(t){return Z.toByteArray(z(t))}function Y(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function $(t){return t!==t}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var Z=n(327),G=n(328),X=n(329);e.Buffer=o,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=r(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return u(null,t,e,n)},o.allocUnsafe=function(t){return c(null,t)},o.allocUnsafeSlow=function(t){return c(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,a=Math.min(n,r);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},o.prototype.compare=function(t,e,n,r,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var a=i-r,s=n-e,u=Math.min(a,s),c=this.slice(r,i),l=t.slice(e,n),f=0;fi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return k(this,t,e,n);case"ascii":return O(this,t,e,n);case"latin1":case"binary":return E(this,t,e,n);case"base64":return x(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||I(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||I(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||I(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||I(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||I(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||I(t,4,this.length),G.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||I(t,4,this.length),G.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||I(t,8,this.length),G.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||I(t,8,this.length),G.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){D(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):q(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):q(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):R(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);D(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);D(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):q(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):q(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):R(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return B(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return B(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=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),t.length-e=0;--i)t[i+e]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function i(t){var e=r(t),n=e[0],i=e[1];return 3*(n+i)/4-i}function o(t,e,n){return 3*(e+n)/4-n}function a(t){for(var e,n=r(t),i=n[0],a=n[1],s=new d(o(t,i,a)),u=0,c=a>0?i-4:i,l=0;l>16&255,s[u++]=e>>8&255,s[u++]=255&e;return 2===a&&(e=f[t.charCodeAt(l)]<<2|f[t.charCodeAt(l+1)]>>4,s[u++]=255&e),1===a&&(e=f[t.charCodeAt(l)]<<10|f[t.charCodeAt(l+1)]<<4|f[t.charCodeAt(l+2)]>>2,s[u++]=e>>8&255,s[u++]=255&e),s}function s(t){return l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}function u(t,e,n){for(var r,i=[],o=e;oa?a:o+16383));return 1===r?(e=t[n-1],i.push(l[e>>2]+l[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],i.push(l[e>>10]+l[e>>4&63]+l[e<<2&63]+"=")),i.join("")}e.byteLength=i,e.toByteArray=a,e.fromByteArray=c;for(var l=[],f=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,v=h.length;p>1,l=-7,f=n?i-1:0,d=n?-1:1,h=t[e+f];for(f+=d,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+t[e+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+f>=1?d/u:d*Math.pow(2,1-f),e*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;t[n+h]=255&a,h+=p,a/=256,c-=8);t[n+h-p]|=128*v}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";function r(t){return"\n"===t.getText()?"":t.root.innerHTML}e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(){s.a.register({"formats/target":o()}),s.a.register(c,!0)}function o(){var t=s.a.import("parchment");return new t.Attributor.Attribute("target","target",{scope:t.Scope.INLINE})}e.a=i;var a=n(73),s=n.n(a),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.create=function(e){var n=t.create.call(this,e);return n.removeAttribute("target"),n},e.prototype.format=function(e,n){return e!==this.statics.blotName||n||this.domNode.removeAttribute("target"),t.prototype.format.call(this,e,n)},e}(s.a.import("formats/link"))},function(t,e,n){"use strict";function r(t,e,n){t.linkRange=e,t.root.setAttribute("data-svt-target",n)}function i(t){t.root.setAttribute("data-mode",""),t.root.setAttribute("data-svt-target",""),delete t.linkRange}var o=n(73),a=n.n(o),s=function(){function t(t){t.on("selection-change",function(e){if(e){var n=t.getModule("scrivitoApi").getTooltip(),o=t.getFormat(e).link,a=t.getModule("scrivitoApi").getLinkRange(e);if(a&&o){r(n,a,t.getFormat(a).target||"")}else i(n)}}),t.on("text-change",function(){var e=t.getModule("scrivitoApi").getTooltip(),n=e.linkRange;n&&e.root.setAttribute("data-svt-target",t.getFormat(n).target||"")})}return t}();a.a.register("modules/scrivitoLinkTooltip",s)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(){a.a.register("modules/scrivitoApi",l)}e.a=i;var o=n(73),a=n.n(o),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=a.a.import("core/module"),c=a.a.import("formats/link"),l=function(t){function e(e){var n=t.call(this,e)||this;return n.getTooltip=function(){return e.theme.tooltip},n.getLinkRange=function(t){if(t){var n=e.scroll.scroll.descendant(c,t.index),r=n[0],i=n[1];return r?{index:t.index-i,length:r.length()}:void 0}},n}return s(e,t),e}(u)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){var e={selection:[],selectionMode:"single"};scrivito.openContentBrowser(e).then(function(e){if(e.selection&&e.selection.length){var n=e.selection[0];t.getModule("scrivitoApi").getTooltip().edit("link","/"+n)}})}var o=n(73),a=n.n(o),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=a.a.import("core/module"),c=function(t){function e(e){var n=t.call(this,e)||this;return n.fromContentBrowser=function(){return i(e)},n}return s(e,t),e}(u);a.a.register("modules/scrivitoInternalLink",c)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(73),o=n.n(i),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=o.a.import("themes/bubble"),u=o.a.import("themes/snow"),c=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.snowTheme=new u(e,n),r}return a(e,t),e.prototype.extendToolbar=function(e){var n=this;this.snowTheme.extendToolbar(e),this.snowTheme.tooltip.root.classList.add("ql-svt-tooltip-snow"),t.prototype.extendToolbar.call(this,e),this.tooltip=this.snowTheme.tooltip,this.tooltip.textbox.setAttribute("data-link","Paste or type a link"),this.tooltip.textbox.insertAdjacentHTML("beforebegin",l),this.tooltip.textbox.insertAdjacentHTML("afterend",f);var r=this.tooltip.root.querySelector("a.ql-svt-browse"),i=this.tooltip.root.querySelector("a.ql-svt-target");r.addEventListener("click",function(t){n.quill.getModule("scrivitoInternalLink").fromContentBrowser(),t.preventDefault()}),i.addEventListener("click",function(t){var e=n.tooltip.linkRange;if(e){var r=n.quill.getFormat(e).target;n.quill.formatText(e.index,e.length,"target",r?"":"_blank","user")}t.preventDefault()})},e}(s),l='\n
\n \n \n',f='\n \n \n \n \n';o.a.register("themes/scrivito",c)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n0&&(n.remove(),t.text(e.text()))}function f(t){var e=t.data("scrivito_editors_siblings_before_edit"),n=t.siblings();return!e||n.filter(e).length");e!==n&&t.html(n)}}function p(t){var e=t.jQueryElement();e.data("scrivito_editors_prepared_for_editing",!1),e.text(t.content())}function v(t){var e=document.getSelection();e.anchorNode&&e.focusNode&&(t.find(e.anchorNode).addBack(e.anchorNode).length&&t.find(e.focusNode).addBack(e.focusNode).length||e.selectAllChildren(t[0]))}function y(t){var e=t.jQueryElement();e.attr("contenteditable","true").blur(function(){return s(t)}).click(function(){return a(t)}).focus(function(){return o(t)}).keypress(function(e){return r(e,t)}).keyup(function(e){return r(e,t)}),"false"!==e.attr("data-scrivito-editors-autosave")&&e.on("cut input keypress keyup paste",function(){return i(t)}),h(e),e.on("click",function(t){e.attr("contenteditable","true"),l(e),t.timeStamp-e.data("scrivito_editors_last_click")>=m&&t.preventDefault(),e.data("scrivito_editors_last_click",t.timeStamp)})}var m=300;e.a=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"Link",function(){return P}),n.d(e,"Obj",function(){return L}),n.d(e,"ObjSearch",function(){return I}),n.d(e,"Widget",function(){return D}),n.d(e,"createObjClass",function(){return q}),n.d(e,"createWidgetClass",function(){return R}),n.d(e,"getClass",function(){return M}),n.d(e,"provideObjClass",function(){return B}),n.d(e,"provideWidgetClass",function(){return F});var r=n(26);n.d(e,"Binary",function(){return r.a});var i=n(71);n.d(e,"FutureBinary",function(){return i.a});var o=n(218);n.d(e,"ObjFacetValue",function(){return o.a});var a=n(7);n.d(e,"load",function(){return a.a});var s=n(1);n.d(e,"ArgumentError",function(){return s.ArgumentError}),n.d(e,"ScrivitoError",function(){return s.ScrivitoError});var u=n(225);n.d(e,"configure",function(){return u.a});var c=n(137);n.d(e,"configureContentBrowser",function(){return c.a});var l=n(60);n.d(e,"currentPage",function(){return l.a}),n.d(e,"currentPageParams",function(){return l.c});var f=n(340);n.d(e,"withPage",function(){return f.a});var d=n(81);n.d(e,"finishLoading",function(){return d.a});var h=n(341);n.d(e,"isInPlaceEditingActive",function(){return h.a});var p=n(129);n.d(e,"navigateTo",function(){return p.a});var v=n(82);n.d(e,"provideEditingConfig",function(){return v.b});var y=n(342);n.d(e,"urlFor",function(){return y.a});var m=n(72);n.d(e,"useHistory",function(){return m.f});var b=n(343);n.d(e,"BackgroundImageTag",function(){return b.a});var g=n(344);n.d(e,"ChildListTag",function(){return g.a});var w=n(234);n.d(e,"ContentTag",function(){return w.a});var _=n(356);n.d(e,"CurrentPage",function(){return _.a});var k=n(358);n.d(e,"ImageTag",function(){return k.a});var O=n(232);n.d(e,"LinkTag",function(){return O.a});var E=n(360);n.d(e,"NotFoundErrorPage",function(){return E.a});var x=n(140);n.d(e,"WidgetTag",function(){return x.b});var C=n(14);n.d(e,"connect",function(){return C.a});var j=n(361);n.d(e,"provideComponent",function(){return j.a});var S=n(362);n.d(e,"registerComponent",function(){return S.a});var A=n(61),T=n(363);n.d(e,"_internal",function(){return T});var N=Object(A.a)(),P=N.Link,L=N.Obj,I=N.ObjSearch,D=N.Widget,q=N.createObjClass,R=N.createWidgetClass,M=N.getClass,B=N.provideObjClass,F=N.provideWidgetClass},function(t,e,n){"use strict";function r(t,e){return Object(i.f)(t,e)}e.a=r;var i=n(60)},function(t,e,n){"use strict";function r(){return"published"!==scrivito.currentWorkspaceId()&&(!!i.b&&i.b.isEditingMode())}e.a=r;var i=n(17)},function(t,e,n){"use strict";function r(t,e){f(t,e);var n=e||{},r=n.query,a=n.fragment,s=Object(i.c)(t),u=r?"?".concat(r):"",c=a?"#".concat(a):"";return Object(o.a)(s).concat(u).concat(c)}e.a=r;var i=n(22),o=n(136),a=n(24),s=n(39),u=n(59),c=a.a.union([u.d,u.b,u.a]),l=a.a.struct({query:a.a.maybe(a.a.String),fragment:a.a.maybe(a.a.String)}),f=Object(s.a)("urlFor",[["target",c],["options",a.a.maybe(l)]],{docPermalink:"js-sdk/urlFor"})},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){var e=o(t),n=e.backgrounds,r=e.passThroughStyle,i=a(n);return Object(f.extend)(i,r)}function o(t){var e={backgrounds:[],passThroughStyle:{}};for(var n in t)if(0!==n.indexOf("background"))e.passThroughStyle[n]=t[n];else if("background"===n){var r=t[n];e.backgrounds=Object(f.isArray)(r)?r:[r]}return e}function a(t){var e=t.map(s);return{backgroundAttachment:Object(f.pluck)(e,"backgroundAttachment").join(", "),backgroundImage:Object(f.pluck)(e,"backgroundImage").join(", "),backgroundOrigin:Object(f.pluck)(e,"backgroundOrigin").join(", "),backgroundPosition:Object(f.pluck)(e,"backgroundPosition").join(", "),backgroundRepeat:Object(f.pluck)(e,"backgroundRepeat").join(", "),backgroundSize:Object(f.pluck)(e,"backgroundSize").join(", ")}}function s(t){if(u(t))return c(t.image);if(r(t.image,h.a))return l(t.image);if(Object(v.a)(t.image)){var e=Object(m.c)(t.image).get("blob","binary");if(e)return l(e)}return c("none")}function u(t){return Object(f.isString)(t.image)}function c(t){return{backgroundAttachment:"scroll",backgroundImage:t,backgroundOrigin:"padding-box",backgroundPosition:"0% 0%",backgroundRepeat:"repeat",backgroundSize:"auto"}}function l(t){return{backgroundAttachment:"scroll",backgroundImage:"url("+Object(y.a)(t).url()+")",backgroundOrigin:"padding-box",backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}}var f=n(0),d=(n.n(f),n(13)),h=(n.n(d),n(26)),p=n(14),v=n(226),y=n(231),m=n(22),b=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n0){var o=a.a.stringify(r);a.a.fail("Invalid additional prop(s):\n\n".concat(o,"\n\nsupplied to ").concat(n,"."))}})}else s.__generictype__=function(t,e,n){var i=a.a.validate(t,u);i.isValid()||a.a.fail(r(i.errors,"props",n,u))};return o&&(s.__subtype__=function(t,e,r){n.meta.predicate(t)||a.a.fail("Invalid props:\n\n ".concat(a.a.stringify(t),"\n\nsupplied to ").concat(r)+", should be a ".concat(a.a.getTypeName(n),"."))},s.__subtype__.predicate=n.meta.predicate),s}n.d(e,"a",function(){return s});var a=n(24),s=o},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n