scrivito_sdk 1.14.0.rc1 → 1.14.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fafea87f3b24b09dee6b1241a19baac8ff3c1a32e17e1758fc6b164839425622
4
- data.tar.gz: 006da0a3273cde28bbe6de6b9a04f2cc1d040e05b16de1d246758e27a77d4079
3
+ metadata.gz: aac92f26cf0303345e64b30536c9436dbd96f50d91a7cad8d3f2545ed70d1785
4
+ data.tar.gz: 9893a56d282760fbe3f94e3b857212d1ae874abe9c875b6f60b685b3446bed28
5
5
  SHA512:
6
- metadata.gz: 0c90e4ecd4931913dce340f7159bbe31b18cccacdc2faf3baa01e52f78755237217c557001f56aa1bae68b7bd3a0bef37ee299c60e903bfbdda8192e891122fe
7
- data.tar.gz: 03e3f4ee6b17cbb626faa07d23b9a8f92ad70c1238c3f5d15922232c0bad15703dfb24e3cb275e91ff5fc29199c6fd5350d77fbdf96d8a69b410be022df2855e
6
+ metadata.gz: f4dceee13c7c2a7ca1f2a610cf5fb5078ea6b419b279f0e4232f67e2cae3aeea61d4a92656196c5c7112238b24dbfe0e73801bd620be24df9b1e92a7db890c54
7
+ data.tar.gz: a1b7e9167bd0626fd1f21454d86dc8d8d7b7a3ead79f3ecd5694977d9688b7192b30256871066566c4bf7f4661dbb08e91b9f37f32d7fb5b737c1ce5f18436d1
@@ -1,7 +1,7 @@
1
1
  ##
2
2
  ## Bundle of CA Root Certificates
3
3
  ##
4
- ## Certificate data from Mozilla as of: Fri May 25 09:55:48 2018 GMT
4
+ ## Certificate data from Mozilla as of: Thu Jun 14 08:08:16 2018 GMT
5
5
  ##
6
6
  ## This is a bundle of X.509 certificates of public Certificate Authorities
7
7
  ## (CA). These were automatically extracted from Mozilla's root certificates
@@ -1,2 +1,2 @@
1
1
  /*! Copyright (c) 2018 Infopark AG (https://scrivito.com) */
2
- !function(n){function t(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var e={};t.m=n,t.c=e,t.d=function(n,e,i){t.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:i})},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=669)}({161:function(n,t,e){"use strict";function i(){if(window.parent!==window){var n=window.parent.connectAppDocument;return n?n(window.document):void 0}}t.a=i},290:function(n,t,e){"use strict";function i(){window.scrivito||(window.scrivito={}),window.scrivito.on||(window.scrivito.on=function(n,t){"content"===n&&document.addEventListener("DOMContentLoaded",function(){return t(window.document)})}),window.scrivito.in_editable_view||(window.scrivito.in_editable_view=function(){return!1})}t.a=i},669:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=e(290),o=e(161),r=Object(o.a)();r?r.installRailsApi():Object(i.a)()}});
2
+ !function(n){function t(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var e={};t.m=n,t.c=e,t.d=function(n,e,i){t.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:i})},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=669)}({161:function(n,t,e){"use strict";function i(){if(window.parent!==window){var n=window.parent.connectAppDocument;return n?n(window.document):void 0}}t.a=i},289:function(n,t,e){"use strict";function i(){window.scrivito||(window.scrivito={}),window.scrivito.on||(window.scrivito.on=function(n,t){"content"===n&&document.addEventListener("DOMContentLoaded",function(){return t(window.document)})}),window.scrivito.in_editable_view||(window.scrivito.in_editable_view=function(){return!1})}t.a=i},669:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=e(289),o=e(161),r=Object(o.a)();r?r.installRailsApi():Object(i.a)()}});
@@ -1,5 +1,5 @@
1
1
  /*! Copyright (c) 2018 Infopark AG (https://scrivito.com) */
2
- !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=670)}([function(t,e,n){var r,i;(function(){function n(t){function e(e,n,r,i,o,a){for(;o>=0&&o<a;o+=t){var s=i?i[o]:o;r=n(r,e[s],s,e)}return r}return function(n,r,i,o){r=O(r,o,4);var a=!T(n)&&k.keys(n),s=(a||n).length,u=t>0?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&&o<i;o+=t)if(n(e[o],o,e))return o;return-1}}function a(t,e,n){return function(r,i,o){var a=0,s=A(r);if("number"==typeof o)t>0?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<s;o+=t)if(r[o]===i)return o;return-1}}function s(t,e){var n=D.length,r=t.constructor,i=k.isFunction(r)&&r.prototype||f,o="constructor";for(k.has(t,o)&&!k.contains(e,o)&&e.push(o);n--;)(o=D[n])in t&&t[o]!==i[o]&&!k.contains(e,o)&&e.push(o)}var u=this,c=u._,l=Array.prototype,f=Object.prototype,d=Function.prototype,h=l.push,p=l.slice,v=f.toString,y=f.hasOwnProperty,m=Array.isArray,b=Object.keys,g=d.bind,w=Object.create,_=function(){},k=function(t){return t instanceof k?t:this instanceof k?void(this._wrapped=t):new k(t)};void 0!==t&&t.exports&&(e=t.exports=k),e._=k,k.VERSION="1.8.3";var O=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)}}return function(){return t.apply(e,arguments)}},E=function(t,e,n){return null==t?k.identity:k.isFunction(t)?O(t,e,n):k.isObject(t)?k.matcher(t):k.property(t)};k.iteratee=function(t,e){return E(t,e,1/0)};var x=function(t,e){return function(n){var r=arguments.length;if(r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=t(o),s=a.length,u=0;u<s;u++){var c=a[u];e&&void 0!==n[c]||(n[c]=o[c])}return n}},C=function(t){if(!k.isObject(t))return{};if(w)return w(t);_.prototype=t;var e=new _;return _.prototype=null,e},j=function(t){return function(e){return null==e?void 0:e[t]}},S=Math.pow(2,53)-1,A=j("length"),T=function(t){var e=A(t);return"number"==typeof e&&e>=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<i;r++)e(t[r],r,t);else{var o=k.keys(t);for(r=0,i=o.length;r<i;r++)e(t[o[r]],o[r],t)}return t},k.map=k.collect=function(t,e,n){e=E(e,n);for(var r=!T(t)&&k.keys(t),i=(r||t).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=e(t[s],s,t)}return o},k.reduce=k.foldl=k.inject=n(1),k.reduceRight=k.foldr=n(-1),k.find=k.detect=function(t,e,n){var r;if(void 0!==(r=T(t)?k.findIndex(t,e,n):k.findKey(t,e,n))&&-1!==r)return t[r]},k.filter=k.select=function(t,e,n){var r=[];return e=E(e,n),k.each(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r},k.reject=function(t,e,n){return k.filter(t,k.negate(E(e)),n)},k.every=k.all=function(t,e,n){e=E(e,n);for(var r=!T(t)&&k.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(!e(t[a],a,t))return!1}return!0},k.some=k.any=function(t,e,n){e=E(e,n);for(var r=!T(t)&&k.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(e(t[a],a,t))return!0}return!1},k.contains=k.includes=k.include=function(t,e,n,r){return T(t)||(t=k.values(t)),("number"!=typeof n||r)&&(n=0),k.indexOf(t,e,n)>=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;s<u;s++)(r=t[s])>o&&(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;s<u;s++)(r=t[s])<o&&(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.shuffle=function(t){for(var e,n=T(t)?t:k.values(t),r=n.length,i=Array(r),o=0;o<r;o++)e=k.random(0,o),e!==o&&(i[o]=i[e]),i[e]=n[o];return i},k.sample=function(t,e,n){return null==e||n?(T(t)||(t=k.values(t)),t[k.random(t.length-1)]):k.shuffle(t).slice(0,Math.max(0,e))},k.sortBy=function(t,e,n){return e=E(e,n),k.pluck(k.map(t,function(t,n,r){return{value:t,index:n,criteria:e(t,n,r)}}).sort(function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index-e.index}),"value")};var N=function(t){return function(e,n,r){var i={};return n=E(n,r),k.each(e,function(r,o){var a=n(r,o,e);t(i,r,a)}),i}};k.groupBy=N(function(t,e,n){k.has(t,n)?t[n].push(e):t[n]=[e]}),k.indexBy=N(function(t,e,n){t[n]=e}),k.countBy=N(function(t,e,n){k.has(t,n)?t[n]++:t[n]=1}),k.toArray=function(t){return t?k.isArray(t)?p.call(t):T(t)?k.map(t,k.identity):k.values(t):[]},k.size=function(t){return null==t?0:T(t)?t.length:k.keys(t).length},k.partition=function(t,e,n){e=E(e,n);var r=[],i=[];return k.each(t,function(t,n,o){(e(t,n,o)?r:i).push(t)}),[r,i]},k.first=k.head=k.take=function(t,e,n){if(null!=t)return null==e||n?t[0]:k.initial(t,t.length-e)},k.initial=function(t,e,n){return p.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},k.last=function(t,e,n){if(null!=t)return null==e||n?t[t.length-1]:k.rest(t,Math.max(0,t.length-e))},k.rest=k.tail=k.drop=function(t,e,n){return p.call(t,null==e||n?1:e)},k.compact=function(t){return k.filter(t,k.identity)};var P=function(t,e,n,r){for(var i=[],o=0,a=r||0,s=A(t);a<s;a++){var u=t[a];if(T(u)&&(k.isArray(u)||k.isArguments(u))){e||(u=P(u,e,n));var c=0,l=u.length;for(i.length+=l;c<l;)i[o++]=u[c++]}else n||(i[o++]=u)}return i};k.flatten=function(t,e){return P(t,e,!1)},k.without=function(t){return k.difference(t,p.call(arguments,1))},k.uniq=k.unique=function(t,e,n,r){k.isBoolean(e)||(r=n,n=e,e=!1),null!=n&&(n=E(n,r));for(var i=[],o=[],a=0,s=A(t);a<s;a++){var u=t[a],c=n?n(u,a,t):u;e?(a&&o===c||i.push(u),o=c):n?k.contains(o,c)||(o.push(c),i.push(u)):k.contains(i,u)||i.push(u)}return i},k.union=function(){return k.uniq(P(arguments,!0,!0))},k.intersection=function(t){for(var e=[],n=arguments.length,r=0,i=A(t);r<i;r++){var o=t[r];if(!k.contains(e,o)){for(var a=1;a<n&&k.contains(arguments[a],o);a++);a===n&&e.push(o)}}return e},k.difference=function(t){var e=P(arguments,!0,!0,1);return k.filter(t,function(t){return!k.contains(e,t)})},k.zip=function(){return k.unzip(arguments)},k.unzip=function(t){for(var e=t&&k.max(t,A).length||0,n=Array(e),r=0;r<e;r++)n[r]=k.pluck(t,r);return n},k.object=function(t,e){for(var n={},r=0,i=A(t);r<i;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n},k.findIndex=o(1),k.findLastIndex=o(-1),k.sortedIndex=function(t,e,n,r){n=E(n,r,1);for(var i=n(e),o=0,a=A(t);o<a;){var s=Math.floor((o+a)/2);n(t[s])<i?o=s+1:a=s}return o},k.indexOf=a(1,k.findIndex,k.sortedIndex),k.lastIndexOf=a(-1,k.findLastIndex),k.range=function(t,e,n){null==e&&(e=t||0,t=0),n=n||1;for(var r=Math.max(Math.ceil((e-t)/n),0),i=Array(r),o=0;o<r;o++,t+=n)i[o]=t;return i};var L=function(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);var o=C(t.prototype),a=t.apply(o,i);return k.isObject(a)?a:o};k.bind=function(t,e){if(g&&t.bind===g)return g.apply(t,p.call(arguments,1));if(!k.isFunction(t))throw new TypeError("Bind must be called on a function");var n=p.call(arguments,2),r=function(){return L(t,r,e,this,n.concat(p.call(arguments)))};return r},k.partial=function(t){var e=p.call(arguments,1),n=function(){for(var r=0,i=e.length,o=Array(i),a=0;a<i;a++)o[a]=e[a]===k?arguments[r++]:e[a];for(;r<arguments.length;)o.push(arguments[r++]);return L(t,n,this,this,o)};return n},k.bindAll=function(t){var e,n,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(e=1;e<r;e++)n=arguments[e],t[n]=k.bind(t[n],t);return t},k.memoize=function(t,e){var n=function(r){var i=n.cache,o=""+(e?e.apply(this,arguments):r);return k.has(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return n.cache={},n},k.delay=function(t,e){var n=p.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},k.defer=k.partial(k.delay,k,1),k.throttle=function(t,e,n){var r,i,o,a=null,s=0;n||(n={});var u=function(){s=!1===n.leading?0:k.now(),a=null,o=t.apply(r,i),a||(r=i=null)};return function(){var c=k.now();s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0||l>e?(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<e&&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<n;i++)r[i]=t[e[i]];return r},k.mapObject=function(t,e,n){e=E(e,n);for(var r,i=k.keys(t),o=i.length,a={},s=0;s<o;s++)r=i[s],a[r]=e(t[r],r,t);return a},k.pairs=function(t){for(var e=k.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=[e[i],t[e[i]]];return r},k.invert=function(t){for(var e={},n=k.keys(t),r=0,i=n.length;r<i;r++)e[t[n[r]]]=n[r];return e},k.functions=k.methods=function(t){var e=[];for(var n in t)k.isFunction(t[n])&&e.push(n);return e.sort()},k.extend=x(k.allKeys),k.extendOwn=k.assign=x(k.keys),k.findKey=function(t,e,n){e=E(e,n);for(var r,i=k.keys(t),o=0,a=i.length;o<a;o++)if(r=i[o],e(t[r],r,t))return r},k.pick=function(t,e,n){var r,i,o={},a=t;if(null==a)return o;k.isFunction(e)?(i=k.allKeys(a),r=O(e,n)):(i=P(arguments,!1,!1,1),r=function(t,e,n){return e in n},a=Object(a));for(var s=0,u=i.length;s<u;s++){var c=i[s],l=a[c];r(l,c,a)&&(o[c]=l)}return o},k.omit=function(t,e,n){if(k.isFunction(e))e=k.negate(e);else{var r=k.map(P(arguments,!1,!1,1),String);e=function(t,e){return!k.contains(r,e)}}return k.pick(t,e,n)},k.defaults=x(k.allKeys,!0),k.create=function(t,e){var n=C(t);return e&&k.extendOwn(n,e),n},k.clone=function(t){return k.isObject(t)?k.isArray(t)?t.slice():k.extend({},t):t},k.tap=function(t,e){return e(t),t},k.isMatch=function(t,e){var n=k.keys(e),r=n.length;if(null==t)return!r;for(var i=Object(t),o=0;o<r;o++){var a=n[o];if(e[a]!==i[a]||!(a in i))return!1}return!0};var q=function(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof k&&(t=t._wrapped),e instanceof k&&(e=e._wrapped);var i=v.call(t);if(i!==v.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e}var o="[object Array]"===i;if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(k.isFunction(a)&&a instanceof a&&k.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[],r=r||[];for(var u=n.length;u--;)if(n[u]===t)return r[u]===e;if(n.push(t),r.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!q(t[u],e[u],n,r))return!1}else{var c,l=k.keys(t);if(u=l.length,k.keys(e).length!==u)return!1;for(;u--;)if(c=l[u],!k.has(e,c)||!q(t[c],e[c],n,r))return!1}return n.pop(),r.pop(),!0};k.isEqual=function(t,e){return q(t,e)},k.isEmpty=function(t){return null==t||(T(t)&&(k.isArray(t)||k.isString(t)||k.isArguments(t))?0===t.length:0===k.keys(t).length)},k.isElement=function(t){return!(!t||1!==t.nodeType)},k.isArray=m||function(t){return"[object Array]"===v.call(t)},k.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},k.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){k["is"+t]=function(e){return v.call(e)==="[object "+t+"]"}}),k.isArguments(arguments)||(k.isArguments=function(t){return k.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(k.isFunction=function(t){return"function"==typeof t||!1}),k.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},k.isNaN=function(t){return k.isNumber(t)&&t!==+t},k.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===v.call(t)},k.isNull=function(t){return null===t},k.isUndefined=function(t){return void 0===t},k.has=function(t,e){return null!=t&&y.call(t,e)},k.noConflict=function(){return u._=c,this},k.identity=function(t){return t},k.constant=function(t){return function(){return t}},k.noop=function(){},k.property=j,k.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},k.matcher=k.matches=function(t){return t=k.extendOwn({},t),function(e){return k.isMatch(e,t)}},k.times=function(t,e,n){var r=Array(Math.max(0,t));e=O(e,n,1);for(var i=0;i<t;i++)r[i]=e(i);return r},k.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},k.now=Date.now||function(){return(new Date).getTime()};var R={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},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);e<t.length;e++)n[e]=t[e];return n}}function p(t,e){if(!u(t,e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");y(t.prototype,e&&e.prototype),e&&y(t,e)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?b(t):e}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t,e,n){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=w(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function w(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}function _(t){return(_=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function k(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O(t,e,n){return e&&k(t.prototype,e),n&&k(t,n),t}function E(t){if(!t)throw new F.ArgumentError('Please provide an obj class as the "_objClass" property.')}function x(t){var e={},n={};return B.a.each(t,function(t,r){if(B.a.isArray(t)&&"widgetlist"===B.a.first(t)){var i=B.a.map(B.a.last(t),function(t){return D.a.newWithSerializedAttributes(t)}),o=Object(H.a)(r);n[o]=[i,["widgetlist"]]}else e[r]=t}),e._id||(e._id=Y.generateId()),[e,n]}function C(t){return Y.all().and("_parentPath","equals",t)}function j(t){var e=arguments.length>1&&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(27),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(18),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(26),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(13),o=n(12),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(28);t.exports=function(t){return r(t)&&i(t.meta)}},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){"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(14),f=(n.n(l),n(12)),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){var r=n(26),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(13)),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(27),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,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(12),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){t.exports=function(t){return null===t||void 0===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 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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),t}function b(t){if(!t)throw new E.ArgumentError('Please provide a widget class as the "_objClass" property.')}n.d(e,"a",function(){return j});var g=n(116),w=n(117),_=n(0),k=n.n(_),O=n(23),E=n(1),x=n(4),C={_id:"id",_obj_class:"objClass"},j=function(t){function e(t){var n;return l(this,e),n=h(this,v(e).call(this)),n._attributesToBeSaved=scrivito.typeInfo.normalizeAttrs(t),b(t._objClass),n}return m(e,null,[{key:"build",value:function(t,n){var r=Object.create(e.prototype);return r._obj=n,r._id=t,r}},{key:"newWithSerializedAttributes",value:function(t){var n={},r={};k.a.each(t,function(t,i){if("_obj_class"===i)return void(n._objClass=[t]);if(k.a.isArray(t)&&"widgetlist"===k.a.first(t)){var o=k.a.map(k.a.last(t),function(t){return e.newWithSerializedAttributes(t)}),a=Object(O.a)(i);return void(n[a]=[o,["widgetlist"]])}r[i]=t});var i=new e(n);return i.preserializedAttributes=r,i}}]),m(e,[{key:"id",value:function(){return this._failIfNotPersisted(),this._id}},{key:"objClass",value:function(){return this.isPersisted()?this.getAttributeData("_obj_class"):this._attributesToBeSaved._objClass[0]}},{key:"obj",value:function(){return this._failIfNotPersisted(),this._obj}},{key:"widget",value:function(t){return this.obj().widget(t)}},{key:"update",value:function(t){var e=this,n=scrivito.typeInfo.normalizeAttrs(t);Object(x.j)(function(){e._persistWidgets(e.obj(),n);var t=g.a(n);e._updateSelf(t)})}},{key:"insertBefore",value:function(t){t.obj().insertWidget(this,{before:t})}},{key:"insertAfter",value:function(t){t.obj().insertWidget(this,{after:t})}},{key:"remove",value:function(){this.obj().removeWidget(this)}},{key:"copy",value:function(){return this.isPersisted()?this._copyPersisted():this._copyUnpersisted()}},{key:"persistInObj",value:function(t){this._persistWidgets(t,this._attributesToBeSaved);var e=g.a(this._attributesToBeSaved);k.a.extend(e,this.preserializedAttributes||{}),this._obj=t,this._id=t.generateWidgetId(),this._updateSelf(e),this._executeDidPersistCallback()}},{key:"isPersisted",value:function(){return!!this._obj}},{key:"onDidPersist",value:function(t){if(this.isPersisted())throw new E.ScrivitoError('Cannot call "onDidPersist" of an already persisted widget');this._onDidPersistCallback=t}},{key:"hasOnDidPersistCallback",value:function(){return!!this._onDidPersistCallback}},{key:"finishSaving",value:function(){return this.obj().finishSaving()}},{key:"equals",value:function(t){return!!c(t,e)&&(this.id()===t.id()&&this.obj().id()===t.obj().id())}},{key:"containingField",value:function(){return this.obj().fieldContainingWidget(this)}},{key:"toPrettyPrint",value:function(){return"[object ".concat(this.objClass(),' id="').concat(this.id(),'" objId="').concat(this.obj().id(),'"]')}},{key:"getAttributeData",value:function(t){return this.obj().getWidgetAttribute(this.id(),t)}},{key:"getData",value:function(){return this.obj().getWidgetData(this.id())}},{key:"_failIfNotPersisted",value:function(){if(!this.isPersisted())throw new E.ScrivitoError("Can not access a new widget before it has been saved.")}},{key:"_updateSelf",value:function(t){var e={_widgetPool:[u({},this.id(),t)]};this.obj().update(e)}},{key:"_executeDidPersistCallback",value:function(){this._onDidPersistCallback&&(this._onDidPersistCallback(this),delete this._onDidPersistCallback)}},{key:"_copyPersisted",value:function(){var t=this.serializeAttributes();return e.newWithSerializedAttributes(t)}},{key:"_copyUnpersisted",value:function(){var t=k.a.mapObject(this._attributesToBeSaved,function(t){var e=i(t,2),n=e[0],r=e[1];return r&&"widgetlist"===r[0]?[k.a.invoke(n,"copy"),r]:[n,r]}),n=new e(t);return this._onDidPersistCallback&&n.onDidPersist(this._onDidPersistCallback),n}},{key:"attributesToBeSaved",get:function(){return this._attributesToBeSaved}},{key:"_systemAttributes",get:function(){return C}}]),f(e,t),e}(w.a)},function(t,e,n){var r=n(26),i=n(29);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){var r,i,o;/*!
2
+ !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=670)}([function(t,e,n){var r,i;(function(){function n(t){function e(e,n,r,i,o,a){for(;o>=0&&o<a;o+=t){var s=i?i[o]:o;r=n(r,e[s],s,e)}return r}return function(n,r,i,o){r=O(r,o,4);var a=!T(n)&&k.keys(n),s=(a||n).length,u=t>0?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&&o<i;o+=t)if(n(e[o],o,e))return o;return-1}}function a(t,e,n){return function(r,i,o){var a=0,s=A(r);if("number"==typeof o)t>0?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<s;o+=t)if(r[o]===i)return o;return-1}}function s(t,e){var n=D.length,r=t.constructor,i=k.isFunction(r)&&r.prototype||f,o="constructor";for(k.has(t,o)&&!k.contains(e,o)&&e.push(o);n--;)(o=D[n])in t&&t[o]!==i[o]&&!k.contains(e,o)&&e.push(o)}var u=this,c=u._,l=Array.prototype,f=Object.prototype,d=Function.prototype,h=l.push,p=l.slice,v=f.toString,y=f.hasOwnProperty,m=Array.isArray,b=Object.keys,g=d.bind,w=Object.create,_=function(){},k=function(t){return t instanceof k?t:this instanceof k?void(this._wrapped=t):new k(t)};void 0!==t&&t.exports&&(e=t.exports=k),e._=k,k.VERSION="1.8.3";var O=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)}}return function(){return t.apply(e,arguments)}},E=function(t,e,n){return null==t?k.identity:k.isFunction(t)?O(t,e,n):k.isObject(t)?k.matcher(t):k.property(t)};k.iteratee=function(t,e){return E(t,e,1/0)};var x=function(t,e){return function(n){var r=arguments.length;if(r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=t(o),s=a.length,u=0;u<s;u++){var c=a[u];e&&void 0!==n[c]||(n[c]=o[c])}return n}},C=function(t){if(!k.isObject(t))return{};if(w)return w(t);_.prototype=t;var e=new _;return _.prototype=null,e},j=function(t){return function(e){return null==e?void 0:e[t]}},S=Math.pow(2,53)-1,A=j("length"),T=function(t){var e=A(t);return"number"==typeof e&&e>=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<i;r++)e(t[r],r,t);else{var o=k.keys(t);for(r=0,i=o.length;r<i;r++)e(t[o[r]],o[r],t)}return t},k.map=k.collect=function(t,e,n){e=E(e,n);for(var r=!T(t)&&k.keys(t),i=(r||t).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=e(t[s],s,t)}return o},k.reduce=k.foldl=k.inject=n(1),k.reduceRight=k.foldr=n(-1),k.find=k.detect=function(t,e,n){var r;if(void 0!==(r=T(t)?k.findIndex(t,e,n):k.findKey(t,e,n))&&-1!==r)return t[r]},k.filter=k.select=function(t,e,n){var r=[];return e=E(e,n),k.each(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r},k.reject=function(t,e,n){return k.filter(t,k.negate(E(e)),n)},k.every=k.all=function(t,e,n){e=E(e,n);for(var r=!T(t)&&k.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(!e(t[a],a,t))return!1}return!0},k.some=k.any=function(t,e,n){e=E(e,n);for(var r=!T(t)&&k.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(e(t[a],a,t))return!0}return!1},k.contains=k.includes=k.include=function(t,e,n,r){return T(t)||(t=k.values(t)),("number"!=typeof n||r)&&(n=0),k.indexOf(t,e,n)>=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;s<u;s++)(r=t[s])>o&&(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;s<u;s++)(r=t[s])<o&&(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.shuffle=function(t){for(var e,n=T(t)?t:k.values(t),r=n.length,i=Array(r),o=0;o<r;o++)e=k.random(0,o),e!==o&&(i[o]=i[e]),i[e]=n[o];return i},k.sample=function(t,e,n){return null==e||n?(T(t)||(t=k.values(t)),t[k.random(t.length-1)]):k.shuffle(t).slice(0,Math.max(0,e))},k.sortBy=function(t,e,n){return e=E(e,n),k.pluck(k.map(t,function(t,n,r){return{value:t,index:n,criteria:e(t,n,r)}}).sort(function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index-e.index}),"value")};var N=function(t){return function(e,n,r){var i={};return n=E(n,r),k.each(e,function(r,o){var a=n(r,o,e);t(i,r,a)}),i}};k.groupBy=N(function(t,e,n){k.has(t,n)?t[n].push(e):t[n]=[e]}),k.indexBy=N(function(t,e,n){t[n]=e}),k.countBy=N(function(t,e,n){k.has(t,n)?t[n]++:t[n]=1}),k.toArray=function(t){return t?k.isArray(t)?p.call(t):T(t)?k.map(t,k.identity):k.values(t):[]},k.size=function(t){return null==t?0:T(t)?t.length:k.keys(t).length},k.partition=function(t,e,n){e=E(e,n);var r=[],i=[];return k.each(t,function(t,n,o){(e(t,n,o)?r:i).push(t)}),[r,i]},k.first=k.head=k.take=function(t,e,n){if(null!=t)return null==e||n?t[0]:k.initial(t,t.length-e)},k.initial=function(t,e,n){return p.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},k.last=function(t,e,n){if(null!=t)return null==e||n?t[t.length-1]:k.rest(t,Math.max(0,t.length-e))},k.rest=k.tail=k.drop=function(t,e,n){return p.call(t,null==e||n?1:e)},k.compact=function(t){return k.filter(t,k.identity)};var P=function(t,e,n,r){for(var i=[],o=0,a=r||0,s=A(t);a<s;a++){var u=t[a];if(T(u)&&(k.isArray(u)||k.isArguments(u))){e||(u=P(u,e,n));var c=0,l=u.length;for(i.length+=l;c<l;)i[o++]=u[c++]}else n||(i[o++]=u)}return i};k.flatten=function(t,e){return P(t,e,!1)},k.without=function(t){return k.difference(t,p.call(arguments,1))},k.uniq=k.unique=function(t,e,n,r){k.isBoolean(e)||(r=n,n=e,e=!1),null!=n&&(n=E(n,r));for(var i=[],o=[],a=0,s=A(t);a<s;a++){var u=t[a],c=n?n(u,a,t):u;e?(a&&o===c||i.push(u),o=c):n?k.contains(o,c)||(o.push(c),i.push(u)):k.contains(i,u)||i.push(u)}return i},k.union=function(){return k.uniq(P(arguments,!0,!0))},k.intersection=function(t){for(var e=[],n=arguments.length,r=0,i=A(t);r<i;r++){var o=t[r];if(!k.contains(e,o)){for(var a=1;a<n&&k.contains(arguments[a],o);a++);a===n&&e.push(o)}}return e},k.difference=function(t){var e=P(arguments,!0,!0,1);return k.filter(t,function(t){return!k.contains(e,t)})},k.zip=function(){return k.unzip(arguments)},k.unzip=function(t){for(var e=t&&k.max(t,A).length||0,n=Array(e),r=0;r<e;r++)n[r]=k.pluck(t,r);return n},k.object=function(t,e){for(var n={},r=0,i=A(t);r<i;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n},k.findIndex=o(1),k.findLastIndex=o(-1),k.sortedIndex=function(t,e,n,r){n=E(n,r,1);for(var i=n(e),o=0,a=A(t);o<a;){var s=Math.floor((o+a)/2);n(t[s])<i?o=s+1:a=s}return o},k.indexOf=a(1,k.findIndex,k.sortedIndex),k.lastIndexOf=a(-1,k.findLastIndex),k.range=function(t,e,n){null==e&&(e=t||0,t=0),n=n||1;for(var r=Math.max(Math.ceil((e-t)/n),0),i=Array(r),o=0;o<r;o++,t+=n)i[o]=t;return i};var L=function(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);var o=C(t.prototype),a=t.apply(o,i);return k.isObject(a)?a:o};k.bind=function(t,e){if(g&&t.bind===g)return g.apply(t,p.call(arguments,1));if(!k.isFunction(t))throw new TypeError("Bind must be called on a function");var n=p.call(arguments,2),r=function(){return L(t,r,e,this,n.concat(p.call(arguments)))};return r},k.partial=function(t){var e=p.call(arguments,1),n=function(){for(var r=0,i=e.length,o=Array(i),a=0;a<i;a++)o[a]=e[a]===k?arguments[r++]:e[a];for(;r<arguments.length;)o.push(arguments[r++]);return L(t,n,this,this,o)};return n},k.bindAll=function(t){var e,n,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(e=1;e<r;e++)n=arguments[e],t[n]=k.bind(t[n],t);return t},k.memoize=function(t,e){var n=function(r){var i=n.cache,o=""+(e?e.apply(this,arguments):r);return k.has(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return n.cache={},n},k.delay=function(t,e){var n=p.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},k.defer=k.partial(k.delay,k,1),k.throttle=function(t,e,n){var r,i,o,a=null,s=0;n||(n={});var u=function(){s=!1===n.leading?0:k.now(),a=null,o=t.apply(r,i),a||(r=i=null)};return function(){var c=k.now();s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0||l>e?(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<e&&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<n;i++)r[i]=t[e[i]];return r},k.mapObject=function(t,e,n){e=E(e,n);for(var r,i=k.keys(t),o=i.length,a={},s=0;s<o;s++)r=i[s],a[r]=e(t[r],r,t);return a},k.pairs=function(t){for(var e=k.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=[e[i],t[e[i]]];return r},k.invert=function(t){for(var e={},n=k.keys(t),r=0,i=n.length;r<i;r++)e[t[n[r]]]=n[r];return e},k.functions=k.methods=function(t){var e=[];for(var n in t)k.isFunction(t[n])&&e.push(n);return e.sort()},k.extend=x(k.allKeys),k.extendOwn=k.assign=x(k.keys),k.findKey=function(t,e,n){e=E(e,n);for(var r,i=k.keys(t),o=0,a=i.length;o<a;o++)if(r=i[o],e(t[r],r,t))return r},k.pick=function(t,e,n){var r,i,o={},a=t;if(null==a)return o;k.isFunction(e)?(i=k.allKeys(a),r=O(e,n)):(i=P(arguments,!1,!1,1),r=function(t,e,n){return e in n},a=Object(a));for(var s=0,u=i.length;s<u;s++){var c=i[s],l=a[c];r(l,c,a)&&(o[c]=l)}return o},k.omit=function(t,e,n){if(k.isFunction(e))e=k.negate(e);else{var r=k.map(P(arguments,!1,!1,1),String);e=function(t,e){return!k.contains(r,e)}}return k.pick(t,e,n)},k.defaults=x(k.allKeys,!0),k.create=function(t,e){var n=C(t);return e&&k.extendOwn(n,e),n},k.clone=function(t){return k.isObject(t)?k.isArray(t)?t.slice():k.extend({},t):t},k.tap=function(t,e){return e(t),t},k.isMatch=function(t,e){var n=k.keys(e),r=n.length;if(null==t)return!r;for(var i=Object(t),o=0;o<r;o++){var a=n[o];if(e[a]!==i[a]||!(a in i))return!1}return!0};var q=function(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof k&&(t=t._wrapped),e instanceof k&&(e=e._wrapped);var i=v.call(t);if(i!==v.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e}var o="[object Array]"===i;if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(k.isFunction(a)&&a instanceof a&&k.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[],r=r||[];for(var u=n.length;u--;)if(n[u]===t)return r[u]===e;if(n.push(t),r.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!q(t[u],e[u],n,r))return!1}else{var c,l=k.keys(t);if(u=l.length,k.keys(e).length!==u)return!1;for(;u--;)if(c=l[u],!k.has(e,c)||!q(t[c],e[c],n,r))return!1}return n.pop(),r.pop(),!0};k.isEqual=function(t,e){return q(t,e)},k.isEmpty=function(t){return null==t||(T(t)&&(k.isArray(t)||k.isString(t)||k.isArguments(t))?0===t.length:0===k.keys(t).length)},k.isElement=function(t){return!(!t||1!==t.nodeType)},k.isArray=m||function(t){return"[object Array]"===v.call(t)},k.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},k.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){k["is"+t]=function(e){return v.call(e)==="[object "+t+"]"}}),k.isArguments(arguments)||(k.isArguments=function(t){return k.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(k.isFunction=function(t){return"function"==typeof t||!1}),k.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},k.isNaN=function(t){return k.isNumber(t)&&t!==+t},k.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===v.call(t)},k.isNull=function(t){return null===t},k.isUndefined=function(t){return void 0===t},k.has=function(t,e){return null!=t&&y.call(t,e)},k.noConflict=function(){return u._=c,this},k.identity=function(t){return t},k.constant=function(t){return function(){return t}},k.noop=function(){},k.property=j,k.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},k.matcher=k.matches=function(t){return t=k.extendOwn({},t),function(e){return k.isMatch(e,t)}},k.times=function(t,e,n){var r=Array(Math.max(0,t));e=O(e,n,1);for(var i=0;i<t;i++)r[i]=e(i);return r},k.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},k.now=Date.now||function(){return(new Date).getTime()};var R={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},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);e<t.length;e++)n[e]=t[e];return n}}function p(t,e){if(!u(t,e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");y(t.prototype,e&&e.prototype),e&&y(t,e)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?b(t):e}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t,e,n){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=w(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function w(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}function _(t){return(_=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function k(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O(t,e,n){return e&&k(t.prototype,e),n&&k(t,n),t}function E(t){if(!t)throw new F.ArgumentError('Please provide an obj class as the "_objClass" property.')}function x(t){var e={},n={};return B.a.each(t,function(t,r){if(B.a.isArray(t)&&"widgetlist"===B.a.first(t)){var i=B.a.map(B.a.last(t),function(t){return D.a.newWithSerializedAttributes(t)}),o=Object(H.a)(r);n[o]=[i,["widgetlist"]]}else e[r]=t}),e._id||(e._id=Y.generateId()),[e,n]}function C(t){return Y.all().and("_parentPath","equals",t)}function j(t){var e=arguments.length>1&&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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),t}function b(t){if(!t)throw new E.ArgumentError('Please provide a widget class as the "_objClass" property.')}n.d(e,"a",function(){return j});var g=n(116),w=n(117),_=n(0),k=n.n(_),O=n(23),E=n(1),x=n(4),C={_id:"id",_obj_class:"objClass"},j=function(t){function e(t){var n;return l(this,e),n=h(this,v(e).call(this)),n._attributesToBeSaved=scrivito.typeInfo.normalizeAttrs(t),b(t._objClass),n}return m(e,null,[{key:"build",value:function(t,n){var r=Object.create(e.prototype);return r._obj=n,r._id=t,r}},{key:"newWithSerializedAttributes",value:function(t){var n={},r={};k.a.each(t,function(t,i){if("_obj_class"===i)return void(n._objClass=[t]);if(k.a.isArray(t)&&"widgetlist"===k.a.first(t)){var o=k.a.map(k.a.last(t),function(t){return e.newWithSerializedAttributes(t)}),a=Object(O.a)(i);return void(n[a]=[o,["widgetlist"]])}r[i]=t});var i=new e(n);return i.preserializedAttributes=r,i}}]),m(e,[{key:"id",value:function(){return this._failIfNotPersisted(),this._id}},{key:"objClass",value:function(){return this.isPersisted()?this.getAttributeData("_obj_class"):this._attributesToBeSaved._objClass[0]}},{key:"obj",value:function(){return this._failIfNotPersisted(),this._obj}},{key:"widget",value:function(t){return this.obj().widget(t)}},{key:"update",value:function(t){var e=this,n=scrivito.typeInfo.normalizeAttrs(t);Object(x.j)(function(){e._persistWidgets(e.obj(),n);var t=g.a(n);e._updateSelf(t)})}},{key:"insertBefore",value:function(t){t.obj().insertWidget(this,{before:t})}},{key:"insertAfter",value:function(t){t.obj().insertWidget(this,{after:t})}},{key:"remove",value:function(){this.obj().removeWidget(this)}},{key:"copy",value:function(){return this.isPersisted()?this._copyPersisted():this._copyUnpersisted()}},{key:"persistInObj",value:function(t){this._persistWidgets(t,this._attributesToBeSaved);var e=g.a(this._attributesToBeSaved);k.a.extend(e,this.preserializedAttributes||{}),this._obj=t,this._id=t.generateWidgetId(),this._updateSelf(e),this._executeDidPersistCallback()}},{key:"isPersisted",value:function(){return!!this._obj}},{key:"onDidPersist",value:function(t){if(this.isPersisted())throw new E.ScrivitoError('Cannot call "onDidPersist" of an already persisted widget');this._onDidPersistCallback=t}},{key:"hasOnDidPersistCallback",value:function(){return!!this._onDidPersistCallback}},{key:"finishSaving",value:function(){return this.obj().finishSaving()}},{key:"equals",value:function(t){return!!c(t,e)&&(this.id()===t.id()&&this.obj().id()===t.obj().id())}},{key:"containingField",value:function(){return this.obj().fieldContainingWidget(this)}},{key:"toPrettyPrint",value:function(){return"[object ".concat(this.objClass(),' id="').concat(this.id(),'" objId="').concat(this.obj().id(),'"]')}},{key:"getAttributeData",value:function(t){return this.obj().getWidgetAttribute(this.id(),t)}},{key:"getData",value:function(){return this.obj().getWidgetData(this.id())}},{key:"_failIfNotPersisted",value:function(){if(!this.isPersisted())throw new E.ScrivitoError("Can not access a new widget before it has been saved.")}},{key:"_updateSelf",value:function(t){var e={_widgetPool:[u({},this.id(),t)]};this.obj().update(e)}},{key:"_executeDidPersistCallback",value:function(){this._onDidPersistCallback&&(this._onDidPersistCallback(this),delete this._onDidPersistCallback)}},{key:"_copyPersisted",value:function(){var t=this.serializeAttributes();return e.newWithSerializedAttributes(t)}},{key:"_copyUnpersisted",value:function(){var t=k.a.mapObject(this._attributesToBeSaved,function(t){var e=i(t,2),n=e[0],r=e[1];return r&&"widgetlist"===r[0]?[k.a.invoke(n,"copy"),r]:[n,r]}),n=new e(t);return this._onDidPersistCallback&&n.onDidPersist(this._onDidPersistCallback),n}},{key:"attributesToBeSaved",get:function(){return this._attributesToBeSaved}},{key:"_systemAttributes",get:function(){return C}}]),f(e,t),e}(w.a)},function(t,e,n){var r,i,o;/*!
3
3
  * URI.js - Mutating URLs
4
4
  *
5
5
  * Version: 1.19.1
@@ -11,13 +11,13 @@
11
11
  * MIT License http://www.opensource.org/licenses/mit-license
12
12
  *
13
13
  */
14
- !function(a,s){"use strict";"object"==typeof t&&t.exports?t.exports=s(n(97),n(99),n(100)):(i=[n(97),n(99),n(100)],r=s,void 0!==(o="function"==typeof r?r.apply(e,i):r)&&(t.exports=o))}(0,function(t,e,n,r){"use strict";function i(t,e){var n=arguments.length>=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<r;n++)i[e[n]]=!0;else i[e]=!0;for(n=0,r=t.length;n<r;n++){(i&&void 0!==i[t[n]]||!i&&e.test(t[n]))&&(t.splice(n,1),r--,n--)}return t}function l(t,e){var n,r;if(u(e)){for(n=0,r=e.length;n<r;n++)if(!l(t,e[n]))return!1;return!0}var i=s(e);for(n=0,r=t.length;n<r;n++)if("RegExp"===i){if("string"==typeof t[n]&&t[n].match(e))return!0}else if(t[n]===e)return!0;return!1}function f(t,e){if(!u(t)||!u(e))return!1;if(t.length!==e.length)return!1;t.sort(),e.sort();for(var n=0,r=t.length;n<r;n++)if(t[n]!==e[n])return!1;return!0}function d(t){var e=/^\/+|\/+$/g;return t.replace(e,"")}function h(t){return escape(t)}function p(t){return encodeURIComponent(t).replace(/[!'()*]/g,h).replace(/\*/g,"%2A")}function v(t){return function(e,n){return void 0===e?this._parts[t]||"":(this._parts[t]=e||null,this.build(!n),this)}}function y(t,e){return function(n,r){return void 0===n?this._parts[t]||"":(null!==n&&(n+="",n.charAt(0)===e&&(n=n.substring(1))),this._parts[t]=n,this.build(!r),this)}}var m=r&&r.URI;i.version="1.19.1";var b=i.prototype,g=Object.prototype.hasOwnProperty;i._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:i.preventInvalidHostname,duplicateQueryParameters:i.duplicateQueryParameters,escapeQuerySpace:i.escapeQuerySpace}},i.preventInvalidHostname=!1,i.duplicateQueryParameters=!1,i.escapeQuerySpace=!0,i.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,i.idn_expression=/[^a-z0-9\._-]/i,i.punycode_expression=/(xn--)/i,i.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,i.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,i.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\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<u;s++)a[s]=o(a[s]);return a.join(t)}};i.decodePath=O("/","decodePathSegment"),i.decodeUrnPath=O(":","decodeUrnPathSegment"),i.recodePath=O("/","encodePathSegment","decode"),i.recodeUrnPath=O(":","encodeUrnPathSegment","decode"),i.encodeReserved=k("reserved","encode"),i.parse=function(t,e){var n;return e||(e={preventInvalidHostname:i.preventInvalidHostname}),n=t.indexOf("#"),n>-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<s)?(e.hostname=t.substring(0,o)||null,e.port=null):(r=t.substring(0,o).split(":"),e.hostname=r[0]||null,e.port=r[1]||null)}return e.hostname&&"/"!==t.substring(o).charAt(0)&&(o++,t="/"+t),e.preventInvalidHostname&&i.ensureValidHostname(e.hostname,e.protocol),e.port&&i.ensureValidPort(e.port),t.substring(o)||"/"},i.parseAuthority=function(t,e){return t=i.parseUserinfo(t,e),i.parseHost(t,e)},i.parseUserinfo=function(t,e){var n,r=t.indexOf("/"),o=t.lastIndexOf("@",r>-1?r:t.length-1);return o>-1&&(-1===r||o<r)?(n=t.substring(0,o).split(":"),e.username=n[0]?i.decode(n[0]):null,n.shift(),e.password=n[0]?i.decode(n.join(":")):null,t=t.substring(o+1)):(e.username=null,e.password=null),t},i.parseQuery=function(t,e){if(!t)return{};if(!(t=t.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var n,r,o,a={},s=t.split("&"),u=s.length,c=0;c<u;c++)n=s[c].split("="),r=i.decodeQuery(n.shift(),e),o=n.length?i.decodeQuery(n.join("="),e):null,g.call(a,r)?("string"!=typeof a[r]&&null!==a[r]||(a[r]=[a[r]]),a[r].push(o)):a[r]=o;return a},i.build=function(t){var e="";return t.protocol&&(e+=t.protocol+":"),t.urn||!e&&!t.hostname||(e+="//"),e+=i.buildAuthority(t)||"","string"==typeof t.path&&("/"!==t.path.charAt(0)&&"string"==typeof t.hostname&&(e+="/"),e+=t.path),"string"==typeof t.query&&t.query&&(e+="?"+t.query),"string"==typeof t.fragment&&t.fragment&&(e+="#"+t.fragment),e},i.buildHost=function(t){var e="";return t.hostname?(i.ip6_expression.test(t.hostname)?e+="["+t.hostname+"]":e+=t.hostname,t.port&&(e+=":"+t.port),e):""},i.buildAuthority=function(t){return i.buildUserinfo(t)+i.buildHost(t)},i.buildUserinfo=function(t){var e="";return t.username&&(e+=i.encode(t.username)),t.password&&(e+=":"+i.encode(t.password)),e&&(e+="@"),e},i.buildQuery=function(t,e,n){var r,o,a,s,c="";for(o in t)if(g.call(t,o)&&o)if(u(t[o]))for(r={},a=0,s=t[o].length;a<s;a++)void 0!==t[o][a]&&void 0===r[t[o][a]+""]&&(c+="&"+i.buildQueryParameter(o,t[o][a],n),!0!==e&&(r[t[o][a]+""]=!0));else void 0!==t[o]&&(c+="&"+i.buildQueryParameter(o,t[o],n));return c.substring(1)},i.buildQueryParameter=function(t,e,n){return i.encodeQuery(t,n)+(null!==e?"="+i.encodeQuery(e,n):"")},i.addQuery=function(t,e,n){if("object"==typeof e)for(var r in e)g.call(e,r)&&i.addQuery(t,r,e[r]);else{if("string"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===t[e])return void(t[e]=n);"string"==typeof t[e]&&(t[e]=[t[e]]),u(n)||(n=[n]),t[e]=(t[e]||[]).concat(n)}},i.setQuery=function(t,e,n){if("object"==typeof e)for(var r in e)g.call(e,r)&&i.setQuery(t,r,e[r]);else{if("string"!=typeof e)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");t[e]=void 0===n?null:n}},i.removeQuery=function(t,e,n){var r,o,a;if(u(e))for(r=0,o=e.length;r<o;r++)t[e[r]]=void 0;else if("RegExp"===s(e))for(a in t)e.test(a)&&(t[a]=void 0);else if("object"==typeof e)for(a in e)g.call(e,a)&&i.removeQuery(t,a,e[a]);else{if("string"!=typeof e)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==n?"RegExp"===s(n)?!u(t[e])&&n.test(t[e])?t[e]=void 0:t[e]=c(t[e],n):t[e]!==String(n)||u(n)&&1!==n.length?u(t[e])&&(t[e]=c(t[e],n)):t[e]=void 0:t[e]=void 0}},i.hasQuery=function(t,e,n,r){switch(s(e)){case"String":break;case"RegExp":for(var o in t)if(g.call(t,o)&&e.test(o)&&(void 0===n||i.hasQuery(t,o,n)))return!0;return!1;case"Object":for(var a in e)if(g.call(e,a)&&!i.hasQuery(t,a,e[a]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(s(n)){case"Undefined":return e in t;case"Boolean":return n===Boolean(u(t[e])?t[e].length:t[e]);case"Function":return!!n(t[e],e,t);case"Array":if(!u(t[e]))return!1;return(r?l:f)(t[e],n);case"RegExp":return u(t[e])?!!r&&l(t[e],n):Boolean(t[e]&&t[e].match(n));case"Number":n=String(n);case"String":return u(t[e])?!!r&&l(t[e],n):t[e]===n;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},i.joinPaths=function(){for(var t=[],e=[],n=0,r=0;r<arguments.length;r++){var o=new i(arguments[r]);t.push(o);for(var a=o.segment(),s=0;s<a.length;s++)"string"==typeof a[s]&&e.push(a[s]),a[s]&&n++}if(!e.length||!n)return new i("");var u=new i("").segment(e);return""!==t[0].path()&&"/"!==t[0].path().slice(0,1)||u.path("/"+u.path()),u.normalize()},i.commonPath=function(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n++)if(t.charAt(n)!==e.charAt(n)){n--;break}return n<1?t.charAt(0)===e.charAt(0)&&"/"===t.charAt(0)?"/":"":("/"===t.charAt(n)&&"/"===e.charAt(n)||(n=t.substring(0,n).lastIndexOf("/")),t.substring(0,n+1))},i.withinString=function(t,e,n){n||(n={});var r=n.start||i.findUri.start,o=n.end||i.findUri.end,a=n.trim||i.findUri.trim,s=n.parens||i.findUri.parens,u=/[a-z0-9-]=["']?$/i;for(r.lastIndex=0;;){var c=r.exec(t);if(!c)break;var l=c.index;if(n.ignoreHtml){var f=t.slice(Math.max(l-3,0),l);if(f&&u.test(f))continue}for(var d=l+t.slice(l).search(o),h=t.slice(l,d),p=-1;;){var v=s.exec(h);if(!v)break;var y=v.index+v[0].length;p=Math.max(p,y)}if(h=p>-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;s<c;s++)(e[s].length||a.length&&a[a.length-1].length)&&(a.length&&!a[a.length-1].length&&a.pop(),a.push(d(e[s])))}else(e||"string"==typeof e)&&(e=d(e),""===a[a.length-1]?a[a.length-1]=e:a.push(e));else e?a[t]=d(e):a.splice(t,1);return o&&a.unshift(""),this.path(a.join(r),n)},b.segmentCoded=function(t,e,n){var r,o,a;if("number"!=typeof t&&(n=e,e=t,t=void 0),void 0===e){if(r=this.segment(t,e,n),u(r))for(o=0,a=r.length;o<a;o++)r[o]=i.decode(r[o]);else r=void 0!==r?i.decode(r):void 0;return r}if(u(e))for(o=0,a=e.length;o<a;o++)e[o]=i.encode(e[o]);else e="string"==typeof e||e instanceof String?i.encode(e):e;return this.segment(t,e,n)};var j=b.query;return b.query=function(t,e){if(!0===t)return i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof t){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r=t.call(this,n);return this._parts.query=i.buildQuery(r||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this}return void 0!==t&&"string"!=typeof t?(this._parts.query=i.buildQuery(t,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this):j.call(this,t,e)},b.setQuery=function(t,e,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof t||t instanceof String)r[t]=void 0!==e?e:null;else{if("object"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var o in t)g.call(t,o)&&(r[o]=t[o])}return this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},b.addQuery=function(t,e,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.addQuery(r,t,void 0===e?null:e),this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},b.removeQuery=function(t,e,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.removeQuery(r,t,e),this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},b.hasQuery=function(t,e,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.hasQuery(r,t,e,n)},b.setSearch=b.setQuery,b.addSearch=b.addQuery,b.removeSearch=b.removeQuery,b.hasSearch=b.hasQuery,b.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},b.normalizeProtocol=function(t){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!t)),this},b.normalizeHostname=function(n){return this._parts.hostname&&(this.is("IDN")&&t?this._parts.hostname=t.toASCII(this._parts.hostname):this.is("IPv6")&&e&&(this._parts.hostname=e.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},b.normalizePort=function(t){return"string"==typeof this._parts.protocol&&this._parts.port===i.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!t)),this},b.normalizePath=function(t){var e=this._parts.path;if(!e)return this;if(this._parts.urn)return this._parts.path=i.recodeUrnPath(this._parts.path),this.build(!t),this;if("/"===this._parts.path)return this;e=i.recodePath(e);var n,r,o,a="";for("/"!==e.charAt(0)&&(n=!0,e="/"+e),"/.."!==e.slice(-3)&&"/."!==e.slice(-2)||(e+="/"),e=e.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),n&&(a=e.substring(1).match(/^(\.\.\/)+/)||"")&&(a=a[0]);;){if(-1===(r=e.search(/\/\.\.(\/|$)/)))break;0!==r?(o=e.substring(0,r).lastIndexOf("/"),-1===o&&(o=r),e=e.substring(0,o)+e.substring(r+3)):e=e.substring(3)}return n&&this.is("relative")&&(e=a+e.substring(1)),this._parts.path=e,this.build(!t),this},b.normalizePathname=b.normalizePath,b.normalizeQuery=function(t){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(i.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!t)),this},b.normalizeFragment=function(t){return this._parts.fragment||(this._parts.fragment=null,this.build(!t)),this},b.normalizeSearch=b.normalizeQuery,b.normalizeHash=b.normalizeFragment,b.iso8859=function(){var t=i.encode,e=i.decode;i.encode=escape,i.decode=decodeURIComponent;try{this.normalize()}finally{i.encode=t,i.decode=e}return this},b.unicode=function(){var t=i.encode,e=i.decode;i.encode=p,i.decode=unescape;try{this.normalize()}finally{i.encode=t,i.decode=e}return this},b.readable=function(){var e=this.clone();e.username("").password("").normalize();var n="";if(e._parts.protocol&&(n+=e._parts.protocol+"://"),e._parts.hostname&&(e.is("punycode")&&t?(n+=t.toUnicode(e._parts.hostname),e._parts.port&&(n+=":"+e._parts.port)):n+=e.host()),e._parts.hostname&&e._parts.path&&"/"!==e._parts.path.charAt(0)&&(n+="/"),n+=e.path(!0),e._parts.query){for(var r="",o=0,a=e._parts.query.split("&"),s=a.length;o<s;o++){var u=(a[o]||"").split("=");r+="&"+i.decodeQuery(u[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==u[1]&&(r+="="+i.decodeQuery(u[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}n+="?"+r.substring(1)}return n+=i.decodeQuery(e.hash(),!0)},b.absoluteTo=function(t){var e,n,r,o=this.clone(),a=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t instanceof i||(t=new i(t)),o._parts.protocol)return o;if(o._parts.protocol=t._parts.protocol,this._parts.hostname)return o;for(n=0;r=a[n];n++)o._parts[r]=t._parts[r];return o._parts.path?(".."===o._parts.path.substring(-2)&&(o._parts.path+="/"),"/"!==o.path().charAt(0)&&(e=t.directory(),e=e||(0===t.path().indexOf("/")?"/":""),o._parts.path=(e?e+"/":"")+o._parts.path,o.normalizePath())):(o._parts.path=t._parts.path,o._parts.query||(o._parts.query=t._parts.query)),o.build(),o},b.relativeTo=function(t){var e,n,r,o,a,s=this.clone().normalize();if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t=new i(t).normalize(),e=s._parts,n=t._parts,o=s.path(),a=t.path(),"/"!==o.charAt(0))throw new Error("URI is already relative");if("/"!==a.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(e.protocol===n.protocol&&(e.protocol=null),e.username!==n.username||e.password!==n.password)return s.build();if(null!==e.protocol||null!==e.username||null!==e.password)return s.build();if(e.hostname!==n.hostname||e.port!==n.port)return s.build();if(e.hostname=null,e.port=null,o===a)return e.path="",s.build();if(!(r=i.commonPath(o,a)))return s.build();var u=n.path.substring(r.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return e.path=u+e.path.substring(r.length)||"./",s.build()},b.equals=function(t){var e,n,r,o=this.clone(),a=new i(t),s={},c={},l={};if(o.normalize(),a.normalize(),o.toString()===a.toString())return!0;if(e=o.query(),n=a.query(),o.query(""),a.query(""),o.toString()!==a.toString())return!1;if(e.length!==n.length)return!1;s=i.parseQuery(e,this._parts.escapeQuerySpace),c=i.parseQuery(n,this._parts.escapeQuerySpace);for(r in s)if(g.call(s,r)){if(u(s[r])){if(!f(s[r],c[r]))return!1}else if(s[r]!==c[r])return!1;l[r]=!0}for(r in c)if(g.call(c,r)&&!l[r])return!1;return!0},b.preventInvalidHostname=function(t){return this._parts.preventInvalidHostname=!!t,this},b.duplicateQueryParameters=function(t){return this._parts.duplicateQueryParameters=!!t,this},b.escapeQuerySpace=function(t){return this._parts.escapeQuerySpace=!!t,this},i})},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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t){var e=f.a.without.apply(f.a,[f.a.keys(t)].concat(y));if(!f.a.isEmpty(e))throw new v.ArgumentError("Unexpected attributes ".concat(Object(p.a)(e),".")+" Available attributes: ".concat(Object(p.a)(y)))}n.d(e,"a",function(){return m});var u=n(33),c=n.n(u),l=n(0),f=n.n(l),d=n(3),h=n(7),p=n(41),v=n(1),y=["hash","obj","query","target","title","url"],m=function(){function t(e){i(this,t),s(e),this._hash=e.hash||null,this._query=e.query||null,this._target=e.target||null,this._title=e.title||null,this._url=e.url||null,this._objId=null,e.obj&&(this._objId=e.obj.id())}return a(t,null,[{key:"build",value:function(t){var e=t.objId;delete t.objId;var n=new this(t);return e&&(n._objId=e),n}}]),a(t,[{key:"title",value:function(){return this._title}},{key:"query",value:function(){return this._query}},{key:"hash",value:function(){return this._hash}},{key:"target",value:function(){return this._target}},{key:"url",value:function(){return this._url}},{key:"objId",value:function(){return this._objId}},{key:"obj",value:function(){return this.objId()?d.default.get(this.objId()):null}},{key:"queryParameters",value:function(){return c.a.parseQuery(this.query())}},{key:"fetchObj",value:function(){var t=this;return this.isExternal()?scrivito.Promise.reject(new v.ScrivitoError("The link is external and does not reference an object.")):Object(h.a)(function(){return d.default.get(t.objId())})}},{key:"isExternal",value:function(){return!!this.url()}},{key:"isInternal",value:function(){return!this.isExternal()}},{key:"equals",value:function(e){return!!r(e,t)&&(this.isExternal()?this.hash()===e.hash()&&this.query()===e.query()&&this.target()===e.target()&&this.title()===e.title()&&this.url()===e.url():this.objId()===e.objId()&&this.title()===e.title())}},{key:"copy",value:function(t){s(t);var e=this.buildAttributes();return f.a.has(t,"obj")&&delete e.objId,f.a.extend(e,t),this.constructor.build(e)}},{key:"buildAttributes",value:function(){return{title:this.title(),query:this.query(),hash:this.hash(),target:this.target(),url:this.url(),objId:this.objId()}}},{key:"isBroken",value:function(){return!this.isExternal()&&!this.obj()}},{key:"toPrettyPrint",value:function(){return this.isInternal()?'[object Link objId="'.concat(this.objId(),'"]'):'[object Link url="'.concat(this.url(),'"]')}}]),t}()},,,function(t,e,n){"use strict";function r(t){o?s.push(t):setTimeout(t,0)}function i(t){r(function(){throw t})}e.a=r,e.b=i;var o,a=n(0),s=(n.n(a),[])},function(t,e,n){"use strict";var r=function(t,e,n,r,i,o,a,s){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],l=0;u=new Error(e.replace(/%s/g,function(){return c[l++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};t.exports=r},function(t,e,n){"use strict";function r(t,e,n){var r=n.docPermalink;return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var a=i(n,e);if(a){var s="Visit https://scrivito.com/"+r+" for more information.";throw new l.ArgumentError("Invalid arguments for '"+t+"': "+a+" "+s)}}}function i(t,e){var n=e.length,r=t.length;if(r>n)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.length+">"}},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);e<t.length;e++)n[e]=t[e];return n}}function s(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function u(t,e){if(!s(t,e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e,n){return{field:m(t),operator:y(e),value:p(n)}}function d(t){if(!Object(E.contains)(A,t))throw new C.ArgumentError('Boosting operator "'.concat(t,'" is invalid.'))}function h(t){if(!Object(E.contains)(S,t))throw new C.ArgumentError('Negating operator "'.concat(t,'" is invalid.'))}function p(t){return Object(E.isArray)(t)?Object(E.map)(t,v):v(t)}function v(t){return Object(E.isDate)(t)?Object(_.c)(t):s(t,w.default)?t.id():t}function y(t){if(!Object(E.contains)(j,t))throw new C.ArgumentError('Operator "'.concat(t,'" is invalid.'));return Object(x.e)(t)}function m(t){return Object(E.isArray)(t)?Object(E.map)(t,g):g(t)}function b(t){var e={};return Object(E.each)(t,function(t,n){var r=g(n);e[r]=t}),e}function g(t){if(!Object(x.c)(t))throw new C.ArgumentError('Attribute name "'.concat(t,'" is not camel case.'));return Object(x.e)(t)}n.d(e,"a",function(){return j}),n.d(e,"b",function(){return T});var w=n(3),_=n(48),k=n(118),O=n(217),E=n(0),x=(n.n(E),n(23)),C=n(1),j=["contains","containsPrefix","equals","startsWith","isGreaterThan","isLessThan","linksTo","refersTo"],S=["equals","startsWith","isGreaterThan","isLessThan"],A=["contains","containsPrefix"],T=function(){function t(){var e=arguments.length>0&&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(27),s=n(34),u=n(54),c=n(25),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(18),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(296),o=n(222),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(224)),_=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(17),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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}var s=n(25),u=n(39),c=n(59),l=n(4),f=function(){function t(e){var n=arguments.length>1&&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.e)(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(304)),w=n(3),_=n(1),k=n(63),O=n(60),E=!1,x=!1},function(t,e,n){(function(e){/*!
14
+ !function(a,s){"use strict";"object"==typeof t&&t.exports?t.exports=s(n(97),n(99),n(100)):(i=[n(97),n(99),n(100)],r=s,void 0!==(o="function"==typeof r?r.apply(e,i):r)&&(t.exports=o))}(0,function(t,e,n,r){"use strict";function i(t,e){var n=arguments.length>=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<r;n++)i[e[n]]=!0;else i[e]=!0;for(n=0,r=t.length;n<r;n++){(i&&void 0!==i[t[n]]||!i&&e.test(t[n]))&&(t.splice(n,1),r--,n--)}return t}function l(t,e){var n,r;if(u(e)){for(n=0,r=e.length;n<r;n++)if(!l(t,e[n]))return!1;return!0}var i=s(e);for(n=0,r=t.length;n<r;n++)if("RegExp"===i){if("string"==typeof t[n]&&t[n].match(e))return!0}else if(t[n]===e)return!0;return!1}function f(t,e){if(!u(t)||!u(e))return!1;if(t.length!==e.length)return!1;t.sort(),e.sort();for(var n=0,r=t.length;n<r;n++)if(t[n]!==e[n])return!1;return!0}function d(t){var e=/^\/+|\/+$/g;return t.replace(e,"")}function h(t){return escape(t)}function p(t){return encodeURIComponent(t).replace(/[!'()*]/g,h).replace(/\*/g,"%2A")}function v(t){return function(e,n){return void 0===e?this._parts[t]||"":(this._parts[t]=e||null,this.build(!n),this)}}function y(t,e){return function(n,r){return void 0===n?this._parts[t]||"":(null!==n&&(n+="",n.charAt(0)===e&&(n=n.substring(1))),this._parts[t]=n,this.build(!r),this)}}var m=r&&r.URI;i.version="1.19.1";var b=i.prototype,g=Object.prototype.hasOwnProperty;i._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:i.preventInvalidHostname,duplicateQueryParameters:i.duplicateQueryParameters,escapeQuerySpace:i.escapeQuerySpace}},i.preventInvalidHostname=!1,i.duplicateQueryParameters=!1,i.escapeQuerySpace=!0,i.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,i.idn_expression=/[^a-z0-9\._-]/i,i.punycode_expression=/(xn--)/i,i.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,i.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,i.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\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<u;s++)a[s]=o(a[s]);return a.join(t)}};i.decodePath=O("/","decodePathSegment"),i.decodeUrnPath=O(":","decodeUrnPathSegment"),i.recodePath=O("/","encodePathSegment","decode"),i.recodeUrnPath=O(":","encodeUrnPathSegment","decode"),i.encodeReserved=k("reserved","encode"),i.parse=function(t,e){var n;return e||(e={preventInvalidHostname:i.preventInvalidHostname}),n=t.indexOf("#"),n>-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<s)?(e.hostname=t.substring(0,o)||null,e.port=null):(r=t.substring(0,o).split(":"),e.hostname=r[0]||null,e.port=r[1]||null)}return e.hostname&&"/"!==t.substring(o).charAt(0)&&(o++,t="/"+t),e.preventInvalidHostname&&i.ensureValidHostname(e.hostname,e.protocol),e.port&&i.ensureValidPort(e.port),t.substring(o)||"/"},i.parseAuthority=function(t,e){return t=i.parseUserinfo(t,e),i.parseHost(t,e)},i.parseUserinfo=function(t,e){var n,r=t.indexOf("/"),o=t.lastIndexOf("@",r>-1?r:t.length-1);return o>-1&&(-1===r||o<r)?(n=t.substring(0,o).split(":"),e.username=n[0]?i.decode(n[0]):null,n.shift(),e.password=n[0]?i.decode(n.join(":")):null,t=t.substring(o+1)):(e.username=null,e.password=null),t},i.parseQuery=function(t,e){if(!t)return{};if(!(t=t.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var n,r,o,a={},s=t.split("&"),u=s.length,c=0;c<u;c++)n=s[c].split("="),r=i.decodeQuery(n.shift(),e),o=n.length?i.decodeQuery(n.join("="),e):null,g.call(a,r)?("string"!=typeof a[r]&&null!==a[r]||(a[r]=[a[r]]),a[r].push(o)):a[r]=o;return a},i.build=function(t){var e="";return t.protocol&&(e+=t.protocol+":"),t.urn||!e&&!t.hostname||(e+="//"),e+=i.buildAuthority(t)||"","string"==typeof t.path&&("/"!==t.path.charAt(0)&&"string"==typeof t.hostname&&(e+="/"),e+=t.path),"string"==typeof t.query&&t.query&&(e+="?"+t.query),"string"==typeof t.fragment&&t.fragment&&(e+="#"+t.fragment),e},i.buildHost=function(t){var e="";return t.hostname?(i.ip6_expression.test(t.hostname)?e+="["+t.hostname+"]":e+=t.hostname,t.port&&(e+=":"+t.port),e):""},i.buildAuthority=function(t){return i.buildUserinfo(t)+i.buildHost(t)},i.buildUserinfo=function(t){var e="";return t.username&&(e+=i.encode(t.username)),t.password&&(e+=":"+i.encode(t.password)),e&&(e+="@"),e},i.buildQuery=function(t,e,n){var r,o,a,s,c="";for(o in t)if(g.call(t,o)&&o)if(u(t[o]))for(r={},a=0,s=t[o].length;a<s;a++)void 0!==t[o][a]&&void 0===r[t[o][a]+""]&&(c+="&"+i.buildQueryParameter(o,t[o][a],n),!0!==e&&(r[t[o][a]+""]=!0));else void 0!==t[o]&&(c+="&"+i.buildQueryParameter(o,t[o],n));return c.substring(1)},i.buildQueryParameter=function(t,e,n){return i.encodeQuery(t,n)+(null!==e?"="+i.encodeQuery(e,n):"")},i.addQuery=function(t,e,n){if("object"==typeof e)for(var r in e)g.call(e,r)&&i.addQuery(t,r,e[r]);else{if("string"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===t[e])return void(t[e]=n);"string"==typeof t[e]&&(t[e]=[t[e]]),u(n)||(n=[n]),t[e]=(t[e]||[]).concat(n)}},i.setQuery=function(t,e,n){if("object"==typeof e)for(var r in e)g.call(e,r)&&i.setQuery(t,r,e[r]);else{if("string"!=typeof e)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");t[e]=void 0===n?null:n}},i.removeQuery=function(t,e,n){var r,o,a;if(u(e))for(r=0,o=e.length;r<o;r++)t[e[r]]=void 0;else if("RegExp"===s(e))for(a in t)e.test(a)&&(t[a]=void 0);else if("object"==typeof e)for(a in e)g.call(e,a)&&i.removeQuery(t,a,e[a]);else{if("string"!=typeof e)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==n?"RegExp"===s(n)?!u(t[e])&&n.test(t[e])?t[e]=void 0:t[e]=c(t[e],n):t[e]!==String(n)||u(n)&&1!==n.length?u(t[e])&&(t[e]=c(t[e],n)):t[e]=void 0:t[e]=void 0}},i.hasQuery=function(t,e,n,r){switch(s(e)){case"String":break;case"RegExp":for(var o in t)if(g.call(t,o)&&e.test(o)&&(void 0===n||i.hasQuery(t,o,n)))return!0;return!1;case"Object":for(var a in e)if(g.call(e,a)&&!i.hasQuery(t,a,e[a]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(s(n)){case"Undefined":return e in t;case"Boolean":return n===Boolean(u(t[e])?t[e].length:t[e]);case"Function":return!!n(t[e],e,t);case"Array":if(!u(t[e]))return!1;return(r?l:f)(t[e],n);case"RegExp":return u(t[e])?!!r&&l(t[e],n):Boolean(t[e]&&t[e].match(n));case"Number":n=String(n);case"String":return u(t[e])?!!r&&l(t[e],n):t[e]===n;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},i.joinPaths=function(){for(var t=[],e=[],n=0,r=0;r<arguments.length;r++){var o=new i(arguments[r]);t.push(o);for(var a=o.segment(),s=0;s<a.length;s++)"string"==typeof a[s]&&e.push(a[s]),a[s]&&n++}if(!e.length||!n)return new i("");var u=new i("").segment(e);return""!==t[0].path()&&"/"!==t[0].path().slice(0,1)||u.path("/"+u.path()),u.normalize()},i.commonPath=function(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n++)if(t.charAt(n)!==e.charAt(n)){n--;break}return n<1?t.charAt(0)===e.charAt(0)&&"/"===t.charAt(0)?"/":"":("/"===t.charAt(n)&&"/"===e.charAt(n)||(n=t.substring(0,n).lastIndexOf("/")),t.substring(0,n+1))},i.withinString=function(t,e,n){n||(n={});var r=n.start||i.findUri.start,o=n.end||i.findUri.end,a=n.trim||i.findUri.trim,s=n.parens||i.findUri.parens,u=/[a-z0-9-]=["']?$/i;for(r.lastIndex=0;;){var c=r.exec(t);if(!c)break;var l=c.index;if(n.ignoreHtml){var f=t.slice(Math.max(l-3,0),l);if(f&&u.test(f))continue}for(var d=l+t.slice(l).search(o),h=t.slice(l,d),p=-1;;){var v=s.exec(h);if(!v)break;var y=v.index+v[0].length;p=Math.max(p,y)}if(h=p>-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;s<c;s++)(e[s].length||a.length&&a[a.length-1].length)&&(a.length&&!a[a.length-1].length&&a.pop(),a.push(d(e[s])))}else(e||"string"==typeof e)&&(e=d(e),""===a[a.length-1]?a[a.length-1]=e:a.push(e));else e?a[t]=d(e):a.splice(t,1);return o&&a.unshift(""),this.path(a.join(r),n)},b.segmentCoded=function(t,e,n){var r,o,a;if("number"!=typeof t&&(n=e,e=t,t=void 0),void 0===e){if(r=this.segment(t,e,n),u(r))for(o=0,a=r.length;o<a;o++)r[o]=i.decode(r[o]);else r=void 0!==r?i.decode(r):void 0;return r}if(u(e))for(o=0,a=e.length;o<a;o++)e[o]=i.encode(e[o]);else e="string"==typeof e||e instanceof String?i.encode(e):e;return this.segment(t,e,n)};var j=b.query;return b.query=function(t,e){if(!0===t)return i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof t){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r=t.call(this,n);return this._parts.query=i.buildQuery(r||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this}return void 0!==t&&"string"!=typeof t?(this._parts.query=i.buildQuery(t,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this):j.call(this,t,e)},b.setQuery=function(t,e,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof t||t instanceof String)r[t]=void 0!==e?e:null;else{if("object"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var o in t)g.call(t,o)&&(r[o]=t[o])}return this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},b.addQuery=function(t,e,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.addQuery(r,t,void 0===e?null:e),this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},b.removeQuery=function(t,e,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.removeQuery(r,t,e),this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},b.hasQuery=function(t,e,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.hasQuery(r,t,e,n)},b.setSearch=b.setQuery,b.addSearch=b.addQuery,b.removeSearch=b.removeQuery,b.hasSearch=b.hasQuery,b.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},b.normalizeProtocol=function(t){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!t)),this},b.normalizeHostname=function(n){return this._parts.hostname&&(this.is("IDN")&&t?this._parts.hostname=t.toASCII(this._parts.hostname):this.is("IPv6")&&e&&(this._parts.hostname=e.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},b.normalizePort=function(t){return"string"==typeof this._parts.protocol&&this._parts.port===i.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!t)),this},b.normalizePath=function(t){var e=this._parts.path;if(!e)return this;if(this._parts.urn)return this._parts.path=i.recodeUrnPath(this._parts.path),this.build(!t),this;if("/"===this._parts.path)return this;e=i.recodePath(e);var n,r,o,a="";for("/"!==e.charAt(0)&&(n=!0,e="/"+e),"/.."!==e.slice(-3)&&"/."!==e.slice(-2)||(e+="/"),e=e.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),n&&(a=e.substring(1).match(/^(\.\.\/)+/)||"")&&(a=a[0]);;){if(-1===(r=e.search(/\/\.\.(\/|$)/)))break;0!==r?(o=e.substring(0,r).lastIndexOf("/"),-1===o&&(o=r),e=e.substring(0,o)+e.substring(r+3)):e=e.substring(3)}return n&&this.is("relative")&&(e=a+e.substring(1)),this._parts.path=e,this.build(!t),this},b.normalizePathname=b.normalizePath,b.normalizeQuery=function(t){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(i.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!t)),this},b.normalizeFragment=function(t){return this._parts.fragment||(this._parts.fragment=null,this.build(!t)),this},b.normalizeSearch=b.normalizeQuery,b.normalizeHash=b.normalizeFragment,b.iso8859=function(){var t=i.encode,e=i.decode;i.encode=escape,i.decode=decodeURIComponent;try{this.normalize()}finally{i.encode=t,i.decode=e}return this},b.unicode=function(){var t=i.encode,e=i.decode;i.encode=p,i.decode=unescape;try{this.normalize()}finally{i.encode=t,i.decode=e}return this},b.readable=function(){var e=this.clone();e.username("").password("").normalize();var n="";if(e._parts.protocol&&(n+=e._parts.protocol+"://"),e._parts.hostname&&(e.is("punycode")&&t?(n+=t.toUnicode(e._parts.hostname),e._parts.port&&(n+=":"+e._parts.port)):n+=e.host()),e._parts.hostname&&e._parts.path&&"/"!==e._parts.path.charAt(0)&&(n+="/"),n+=e.path(!0),e._parts.query){for(var r="",o=0,a=e._parts.query.split("&"),s=a.length;o<s;o++){var u=(a[o]||"").split("=");r+="&"+i.decodeQuery(u[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==u[1]&&(r+="="+i.decodeQuery(u[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}n+="?"+r.substring(1)}return n+=i.decodeQuery(e.hash(),!0)},b.absoluteTo=function(t){var e,n,r,o=this.clone(),a=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t instanceof i||(t=new i(t)),o._parts.protocol)return o;if(o._parts.protocol=t._parts.protocol,this._parts.hostname)return o;for(n=0;r=a[n];n++)o._parts[r]=t._parts[r];return o._parts.path?(".."===o._parts.path.substring(-2)&&(o._parts.path+="/"),"/"!==o.path().charAt(0)&&(e=t.directory(),e=e||(0===t.path().indexOf("/")?"/":""),o._parts.path=(e?e+"/":"")+o._parts.path,o.normalizePath())):(o._parts.path=t._parts.path,o._parts.query||(o._parts.query=t._parts.query)),o.build(),o},b.relativeTo=function(t){var e,n,r,o,a,s=this.clone().normalize();if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t=new i(t).normalize(),e=s._parts,n=t._parts,o=s.path(),a=t.path(),"/"!==o.charAt(0))throw new Error("URI is already relative");if("/"!==a.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(e.protocol===n.protocol&&(e.protocol=null),e.username!==n.username||e.password!==n.password)return s.build();if(null!==e.protocol||null!==e.username||null!==e.password)return s.build();if(e.hostname!==n.hostname||e.port!==n.port)return s.build();if(e.hostname=null,e.port=null,o===a)return e.path="",s.build();if(!(r=i.commonPath(o,a)))return s.build();var u=n.path.substring(r.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return e.path=u+e.path.substring(r.length)||"./",s.build()},b.equals=function(t){var e,n,r,o=this.clone(),a=new i(t),s={},c={},l={};if(o.normalize(),a.normalize(),o.toString()===a.toString())return!0;if(e=o.query(),n=a.query(),o.query(""),a.query(""),o.toString()!==a.toString())return!1;if(e.length!==n.length)return!1;s=i.parseQuery(e,this._parts.escapeQuerySpace),c=i.parseQuery(n,this._parts.escapeQuerySpace);for(r in s)if(g.call(s,r)){if(u(s[r])){if(!f(s[r],c[r]))return!1}else if(s[r]!==c[r])return!1;l[r]=!0}for(r in c)if(g.call(c,r)&&!l[r])return!1;return!0},b.preventInvalidHostname=function(t){return this._parts.preventInvalidHostname=!!t,this},b.duplicateQueryParameters=function(t){return this._parts.duplicateQueryParameters=!!t,this},b.escapeQuerySpace=function(t){return this._parts.escapeQuerySpace=!!t,this},i})},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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t){var e=f.a.without.apply(f.a,[f.a.keys(t)].concat(y));if(!f.a.isEmpty(e))throw new v.ArgumentError("Unexpected attributes ".concat(Object(p.a)(e),".")+" Available attributes: ".concat(Object(p.a)(y)))}n.d(e,"a",function(){return m});var u=n(33),c=n.n(u),l=n(0),f=n.n(l),d=n(3),h=n(7),p=n(41),v=n(1),y=["hash","obj","query","target","title","url"],m=function(){function t(e){i(this,t),s(e),this._hash=e.hash||null,this._query=e.query||null,this._target=e.target||null,this._title=e.title||null,this._url=e.url||null,this._objId=null,e.obj&&(this._objId=e.obj.id())}return a(t,null,[{key:"build",value:function(t){var e=t.objId;delete t.objId;var n=new this(t);return e&&(n._objId=e),n}}]),a(t,[{key:"title",value:function(){return this._title}},{key:"query",value:function(){return this._query}},{key:"hash",value:function(){return this._hash}},{key:"target",value:function(){return this._target}},{key:"url",value:function(){return this._url}},{key:"objId",value:function(){return this._objId}},{key:"obj",value:function(){return this.objId()?d.default.get(this.objId()):null}},{key:"queryParameters",value:function(){return c.a.parseQuery(this.query())}},{key:"fetchObj",value:function(){var t=this;return this.isExternal()?scrivito.Promise.reject(new v.ScrivitoError("The link is external and does not reference an object.")):Object(h.a)(function(){return d.default.get(t.objId())})}},{key:"isExternal",value:function(){return!!this.url()}},{key:"isInternal",value:function(){return!this.isExternal()}},{key:"equals",value:function(e){return!!r(e,t)&&(this.isExternal()?this.hash()===e.hash()&&this.query()===e.query()&&this.target()===e.target()&&this.title()===e.title()&&this.url()===e.url():this.objId()===e.objId()&&this.title()===e.title())}},{key:"copy",value:function(t){s(t);var e=this.buildAttributes();return f.a.has(t,"obj")&&delete e.objId,f.a.extend(e,t),this.constructor.build(e)}},{key:"buildAttributes",value:function(){return{title:this.title(),query:this.query(),hash:this.hash(),target:this.target(),url:this.url(),objId:this.objId()}}},{key:"isBroken",value:function(){return!this.isExternal()&&!this.obj()}},{key:"toPrettyPrint",value:function(){return this.isInternal()?'[object Link objId="'.concat(this.objId(),'"]'):'[object Link url="'.concat(this.url(),'"]')}}]),t}()},,,function(t,e,n){"use strict";function r(t){o?s.push(t):setTimeout(t,0)}function i(t){r(function(){throw t})}e.a=r,e.b=i;var o,a=n(0),s=(n.n(a),[])},function(t,e,n){"use strict";var r=function(t,e,n,r,i,o,a,s){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],l=0;u=new Error(e.replace(/%s/g,function(){return c[l++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};t.exports=r},function(t,e,n){"use strict";function r(t,e,n){var r=n.docPermalink;return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var a=i(n,e);if(a){var s="Visit https://scrivito.com/"+r+" for more information.";throw new l.ArgumentError("Invalid arguments for '"+t+"': "+a+" "+s)}}}function i(t,e){var n=e.length,r=t.length;if(r>n)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.length+">"}},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);e<t.length;e++)n[e]=t[e];return n}}function s(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function u(t,e){if(!s(t,e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e,n){return{field:m(t),operator:y(e),value:p(n)}}function d(t){if(!Object(E.contains)(A,t))throw new C.ArgumentError('Boosting operator "'.concat(t,'" is invalid.'))}function h(t){if(!Object(E.contains)(S,t))throw new C.ArgumentError('Negating operator "'.concat(t,'" is invalid.'))}function p(t){return Object(E.isArray)(t)?Object(E.map)(t,v):v(t)}function v(t){return Object(E.isDate)(t)?Object(_.c)(t):s(t,w.default)?t.id():t}function y(t){if(!Object(E.contains)(j,t))throw new C.ArgumentError('Operator "'.concat(t,'" is invalid.'));return Object(x.e)(t)}function m(t){return Object(E.isArray)(t)?Object(E.map)(t,g):g(t)}function b(t){var e={};return Object(E.each)(t,function(t,n){var r=g(n);e[r]=t}),e}function g(t){if(!Object(x.c)(t))throw new C.ArgumentError('Attribute name "'.concat(t,'" is not camel case.'));return Object(x.e)(t)}n.d(e,"a",function(){return j}),n.d(e,"b",function(){return T});var w=n(3),_=n(48),k=n(118),O=n(216),E=n(0),x=(n.n(E),n(23)),C=n(1),j=["contains","containsPrefix","equals","startsWith","isGreaterThan","isLessThan","linksTo","refersTo"],S=["equals","startsWith","isGreaterThan","isLessThan"],A=["contains","containsPrefix"],T=function(){function t(){var e=arguments.length>0&&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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}var s=n(26),u=n(39),c=n(59),l=n(4),f=function(){function t(e){var n=arguments.length>1&&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){/*!
15
15
  * Quill Editor v1.3.5
16
16
  * https://quilljs.com/
17
17
  * Copyright (c) 2014, Jason Chen
18
18
  * Copyright (c) 2013, salesforce.com
19
19
  */
20
- !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;e<arguments.length;e++)t[e]=arguments[e];if(t.length>1)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;i<e&&r.hasNext();){var o;i<t?o=r.next(t-i):(o=r.next(e-i),n.push(o)),i+=a.length(o)}return new u(n)},u.prototype.compose=function(t){for(var e=a.iterator(this.ops),n=a.iterator(t.ops),r=new u;e.hasNext()||n.hasNext();)if("insert"===n.peekType())r.push(n.next());else if("delete"===e.peekType())r.push(e.next());else{var i=Math.min(e.peekLength(),n.peekLength()),o=e.next(i),s=n.next(i);if("number"==typeof s.retain){var c={};"number"==typeof o.retain?c.retain=i:c.insert=o.insert;var l=a.attributes.compose(o.attributes,s.attributes,"number"==typeof o.retain);l&&(c.attributes=l),r.push(c)}else"number"==typeof s.delete&&"number"==typeof o.retain&&r.push(s)}return r.chop()},u.prototype.concat=function(t){var e=new u(this.ops.slice());return t.ops.length>0&&(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&&(r<t||!e)&&(t+=i),r+=i):t-=Math.min(i,t-r)}return t},t.exports=u},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},o=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e=n.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!e&&!i)return!1;var o;for(o in t);return void 0===o||n.call(t,o)};t.exports=function t(){var e,n,r,a,s,u,c=arguments[0],l=1,f=arguments.length,d=!1;for("boolean"==typeof c&&(d=c,c=arguments[1]||{},l=2),(null==c||"object"!=typeof c&&"function"!=typeof c)&&(c={});l<f;++l)if(null!=(e=arguments[l]))for(n in e)r=c[n],a=e[n],c!==a&&(d&&a&&(o(a)||(s=i(a)))?(s?(s=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},c[n]=t(d,u,a)):void 0!==a&&(c[n]=a));return c}},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=arguments.length>1&&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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=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)},l=n(3),f=r(l),d=n(2),h=r(d),p=n(0),v=r(p),y=n(16),m=r(y),b=n(6),g=r(b),w=n(7),_=r(w),k=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"attach",value:function(){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new v.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new h.default).insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=v.default.query(t,v.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"==typeof n&&n.endsWith("\n")){var i=v.default.create(O.blotName);this.parent.insertBefore(i,0===t?this:this.next),i.insertAt(0,n.slice(0,-1))}else c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(v.default.Embed);k.scope=v.default.Scope.BLOCK_BLOT;var O=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return a(e,t),u(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(v.default.Leaf).reduce(function(t,e){return 0===e.length()?t:t.insert(e.value(),s(e))},new h.default).insert("\n",s(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,i){n<=0||(v.default.query(r,v.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,i):c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,i),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var i=n.split("\n"),o=i.shift();o.length>0&&(t<this.length()-1||null==this.children.tail?c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});var a=this;i.reduce(function(t,e){return a=a.split(t,!0),a.insertAt(0,e),e.length},t+o.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof m.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,n){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&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<e||t===e&&r===b.default.sources.USER?t:n>=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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(50);var h=n(2),p=r(h),v=n(14),y=r(v),m=n(8),b=r(m),g=n(9),w=r(g),_=n(0),k=r(_),O=n(15),E=r(O),x=n(3),C=r(x),j=n(10),S=r(j),A=n(33),T=r(A),N=(0,S.default)("quill"),P=function(){function t(e){var n=this,r=arguments.length>1&&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("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(7),l=r(c),f=n(0),d=r(f),h=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"formatAt",value:function(t,n,r,i){if(e.compare(this.statics.blotName,r)<0&&d.default.query(r,d.default.Scope.BLOT)){var o=this.isolate(t,n);i&&o.wrap(r,i)}else u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i)}},{key:"optimize",value:function(t){if(u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){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:t<n?-1:1}}]),e}(d.default.Inline);h.allowedChildren=[h,d.default.Embed,l.default],h.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=h},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(0),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.Text);e.default=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)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(54),l=r(c),f=n(10),d=r(f),h=(0,d.default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(t){document.addEventListener(t,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(t){if(t.__quill&&t.__quill.emitter){var n;(n=t.__quill.emitter).handleDOM.apply(n,e)}})})});var p=function(t){function e(){i(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",h.error),t}return a(e,t),s(e,[{key:"emit",value:function(){h.log.apply(h,arguments),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach(function(e){var r=e.node,i=e.handler;(t.target===r||r.contains(t.target))&&i.apply(void 0,[t].concat(n))})}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(l.default);p.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},p.sources={API:"api",SILENT:"silent",USER:"user"},e.default=p},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 t(e){var n=arguments.length>1&&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;i<n;i++)r[i-1]=arguments[i];(e=console)[t].apply(e,r)}}function i(t){return o.reduce(function(e,n){return e[n]=r.bind(console,n,t),e},{})}Object.defineProperty(e,"__esModule",{value:!0});var o=["error","warn","log","info"],a="warn";r.level=i.level=function(t){a=t},e.default=i},function(t,e,n){function r(t){return null===t||void 0===t}function i(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}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<t.length;o++)if(t[o]!==e[o])return!1;return!0}try{var f=s(t),d=s(e)}catch(t){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),o=f.length-1;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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=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)},l=n(2),f=r(l),d=n(0),h=r(d),p=n(4),v=r(p),y=n(6),m=r(y),b=n(7),g=r(b),w=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(m.default);w.blotName="code",w.tagName="CODE";var _=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce(function(e,n){return e.insert(n).insert("\n",t.formats())},new f.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var r=this.descendant(g.default,this.length()-1),i=s(r,1),o=i[0];null!=o&&o.deleteAt(o.length()-1,1),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,i){if(0!==n&&null!=h.default.query(r,h.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(t);if(!(o<0||o>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),f=n(2),d=r(f),h=n(20),p=r(h),v=n(0),y=r(v),m=n(13),b=r(m),g=n(23),w=r(g),_=n(4),k=r(_),O=n(16),E=r(O),x=n(21),C=r(x),j=n(11),S=r(j),A=n(3),T=r(A),N=/^[ -~]*$/,P=function(){function t(e){o(this,t),this.scroll=e,this.delta=this.getDelta()}return l(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var r=this.scroll.length();return this.scroll.batchStart(),t=s(t),t.reduce(function(t,i){var o=i.retain||i.delete||i.insert.length||1,a=i.attributes||{};if(null!=i.insert){if("string"==typeof i.insert){var s=i.insert;s.endsWith("\n")&&n&&(n=!1,s=s.slice(0,-1)),t>=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);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(0),l=r(c),f=n(21),d=r(f),h=n(11),p=r(h),v=n(8),y=r(v),m=n(10),b=r(m),g=(0,b.default)("quill:selection"),w=function t(e){var n=arguments.length>1&&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?(u<r.data.length?(f.setStart(r,u),f.setEnd(r,u+1)):(f.setStart(r,u-1),f.setEnd(r,u),y="right"),m=f.getBoundingClientRect()):(m=a.domNode.getBoundingClientRect(),u>0&&(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.top<l.top?t.scrollTop-=l.top-n.top:n.bottom>l.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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(0),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"insertInto",value:function(t,n){0===t.children.length?s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(c.default.Embed);l.blotName="break",l.tagName="BR",e.default=l},function(t,e,n){"use strict";function r(t){var e=s.find(t);if(null==e)try{e=s.create(t)}catch(n){e=s.create(s.Scope.INLINE),[].slice.call(t.childNodes).forEach(function(t){e.domNode.appendChild(t)}),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return 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(44),a=n(29),s=n(1),u=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return i(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(e){try{var n=r(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof s.ParchmentError)return;throw t}})},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,function(t,e,n){t.deleteAt(e,n)})},e.prototype.descendant=function(t,n){var r=this.children.find(n),i=r[0],o=r[1];return null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t?[i,o]:i instanceof e?i.descendant(t,o):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,function(n,r,a){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&i.push(n),n instanceof e&&(i=i.concat(n.descendants(t,r,o))),o-=a}),i},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,function(t,e,i){t.formatAt(e,i,n,r)})},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),i=r[0],o=r[1];if(i)i.insertAt(o,e,n);else{var a=null==n?s.create("text",e):s.create(e,n);this.appendChild(a)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(e){return t instanceof e}))throw new s.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce(function(t,e){return t+e.length()},0)},e.prototype.moveChildren=function(t,e){this.children.forEach(function(n){t.insertBefore(n,e)})},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=s.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),i=r[0],o=r[1],a=[[this,t]];return i instanceof e?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},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=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),function(t,r,i){t=t.split(r,e),n.appendChild(t)}),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,i=[],o=[];t.forEach(function(t){t.target===n.domNode&&"childList"===t.type&&(i.push.apply(i,t.addedNodes),o.push.apply(o,t.removedNodes))}),o.forEach(function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=s.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}}),i.filter(function(t){return t.parentNode==n.domNode}).sort(function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(t){var e=null;null!=t.nextSibling&&(e=s.find(t.nextSibling));var i=r(t);i.next==e&&null!=i.next||(null!=i.parent&&i.parent.removeChild(n),n.insertBefore(i,e||void 0))})},e}(a.default);e.default=u},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(12),o=n(30),a=n(17),s=n(1),u=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new o.default(n.domNode),n}return r(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=s.query(t);n instanceof i.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some(function(t){return t.target===r.domNode&&"attributes"===t.type})&&this.attributes.build()},e.prototype.wrap=function(n,r){var i=t.prototype.wrap.call(this,n,r);return i instanceof e&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},e}(a.default);e.default=u},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(29),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(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;g<E.length;g++){var x=E[g],O=Object.getOwnPropertyDescriptor(r,x);O&&O.enumerable||(y[x]=d(r[x],o-1),Object.defineProperty(y,x,{enumerable:!1}))}return y}"object"==typeof i&&(o=i.depth,a=i.prototype,f=i.includeNonEnumerable,i=i.circular);var h=[],p=[],v=void 0!==e;return void 0===i&&(i=!0),void 0===o&&(o=1/0),d(r,o)}function r(t){return Object.prototype.toString.call(t)}function i(t){return"object"==typeof t&&"[object Date]"===r(t)}function o(t){return"object"==typeof t&&"[object Array]"===r(t)}function a(t){return"object"==typeof t&&"[object RegExp]"===r(t)}function s(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}var u;try{u=Map}catch(t){u=function(){}}var c;try{c=Set}catch(t){c=function(){}}var l;try{l=Promise}catch(t){l=function(){}}return n.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},n.__objToStr=r,n.__isDate=i,n.__isArray=o,n.__isRegExp=a,n.__getRegExpFlags=s,n}();"object"==typeof t&&t.exports&&(t.exports=r)},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){return t instanceof y.default||t instanceof v.BlockEmbed}Object.defineProperty(e,"__esModule",{value:!0});var u=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")}}(),c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=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)},f=n(0),d=r(f),h=n(8),p=r(h),v=n(4),y=r(v),m=n(16),b=r(m),g=n(13),w=r(g),_=n(24),k=r(_),O=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce(function(t,e){return t[e]=!0,t},{})),r.domNode.addEventListener("DOMNodeInserted",function(){}),r.optimize(),r.enable(),r}return a(e,t),c(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var r=this.line(t),i=u(r,2),o=i[0],a=i[1],s=this.line(t+n),c=u(s,1),f=c[0];if(l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=f&&o!==f&&a>0){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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(0),f=r(l),d=n(7),h=r(d),p=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return a(e,t),c(e,null,[{key:"value",value:function(){}}]),c(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var r=this,i=0;null!=r&&r.statics.scope!==f.default.Scope.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(i,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),r=void 0,i=void 0,o=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var a=[t,n.start.offset,n.end.offset];r=a[0],i=a[1],o=a[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var u=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof h.default?(r=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=e.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(f.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var c=[i,o].map(function(t){return Math.max(0,Math.min(r.data.length,t-1))}),l=s(c,2);return i=l[0],o=l[1],{startNode:r,startOffset:i,endNode:r,endOffset:o}}}}},{key:"update",value:function(t,e){var n=this;if(t.some(function(t){return"characterData"===t.type&&t.target===n.textNode})){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(f.default.Embed);p.blotName="cursor",p.className="ql-cursor",p.tagName="span",p.CONTENTS="\ufeff",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=n(0),u=r(s),c=n(4),l=r(c),f=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(u.default.Container);f.allowedChildren=[l.default,c.BlockEmbed,f],e.default=f},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.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(0),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"value",value:function(t){var n=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(t){return("00"+parseInt(t).toString(16)).slice(-2)}).join("")):n}}]),e}(c.default.Attributor.Style),f=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),d=new l("color","color",{scope:c.default.Scope.INLINE});e.ColorAttributor=l,e.ColorClass=f,e.ColorStyle=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)}function a(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(6),l=function(t){return t&&t.__esModule?t:{default:t}}(c),f=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),s(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return a(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(l.default);f.blotName="link",f.tagName="A",f.SANITIZED_URL="about:blank",f.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=f,e.sanitize=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"==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},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(107),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(){function t(e){var n=this;r(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){n.container.classList.toggle("ql-expanded")}),this.select.addEventListener("change",this.update.bind(this))}return o(t,[{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",function(){e.selectItem(n,!0)}),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=s.default,this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),[].slice.call(this.select.options).forEach(function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)}),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach(function(e){t.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"close",value:function(){this.container.classList.remove("ql-expanded")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(e,n){r(this,t),this.quill=e,this.options=n,this.modules={}}return i(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach(function(e){null==t.modules[e]&&t.addModule(e)})}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();o.DEFAULTS={modules:{}},o.themes={default:o},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(!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 s(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 u(t,e){var n,r=t===B.keys.LEFT?"prefix":"suffix";return n={key:t,shiftKey:e,altKey:null},i(n,r,/^$/),i(n,"handler",function(n){var r=n.index;t===B.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(m(i,1)[0]instanceof T.default.Embed)||(t===B.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,P.default.sources.USER):this.quill.setSelection(n.index-1,P.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,P.default.sources.USER):this.quill.setSelection(n.index+n.length+1,P.default.sources.USER),!1)}),n}function c(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=m(n,1),i=r[0],o={};if(0===e.offset){var a=this.quill.getLine(t.index-1),s=m(a,1),u=s[0];if(null!=u&&u.length()>1){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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),g=n(21),w=r(g),_=n(11),k=r(_),O=n(3),E=r(O),x=n(2),C=r(x),j=n(20),S=r(j),A=n(0),T=r(A),N=n(5),P=r(N),L=n(10),I=r(L),D=n(9),q=r(D),R=(0,I.default)("quill:keyboard"),M=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",B=function(t){function e(t,n){o(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach(function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])}),r.addBinding({key:e.keys.ENTER,shiftKey:null},d),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},c),r.addBinding({key:e.keys.DELETE},{collapsed:!0},l)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},c),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},l)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},f),r.addBinding({key:e.keys.DELETE},{collapsed:!1},f),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},c),r.listen(),r}return s(e,t),b(e,null,[{key:"match",value:function(t,e){return e=v(e),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(n){return!!e[n]!==t[n]&&null!==e[n]})&&e.key===(t.which||t.keyCode)}}]),b(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(0),l=r(c),f=n(7),d=r(f),h="\ufeff",p=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(t){n.contentNode.appendChild(t)}),n.leftGuard=document.createTextNode(h),n.rightGuard=document.createTextNode(h),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return a(e,t),s(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(h).join("");if(t===this.leftGuard)if(this.prev instanceof d.default){var i=this.prev.length();this.prev.insertAt(i,r),e={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(l.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(l.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=h,e}},{key:"update",value:function(t,e){var n=this;t.forEach(function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}})}}]),e}(l.default.Embed);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new i.default.Attributor.Attribute("align","align",o),s=new i.default.Attributor.Class("align","ql-align",o),u=new i.default.Attributor.Style("align","text-align",o);e.AlignAttribute=a,e.AlignClass=s,e.AlignStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=n(25),a=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),s=new o.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});e.BackgroundClass=a,e.BackgroundStyle=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},a=new i.default.Attributor.Attribute("direction","dir",o),s=new i.default.Attributor.Class("direction","ql-direction",o),u=new i.default.Attributor.Style("direction","direction",o);e.DirectionAttribute=a,e.DirectionClass=s,e.DirectionStyle=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}),e.FontClass=e.FontStyle=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(0),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},f=new c.default.Attributor.Class("font","ql-font",l),d=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"value",value:function(t){return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(c.default.Attributor.Style),h=new d("font","font-family",l);e.FontStyle=h,e.FontClass=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=o,e.SizeStyle=a},function(t,e,n){"use strict";t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},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.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some(function(t){return null!=f.default.query(t,f.default.Scope.BLOCK)}))}function u(t){var e=t.reduce(function(t,e){return t+=e.delete||0},0),n=t.length()-e;return s(t)&&(n-=1),n}Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(0),f=r(l),d=n(5),h=r(d),p=n(9),v=r(p),y=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(h.default.events.EDITOR_CHANGE,function(t,e,n,i){t!==h.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==h.default.sources.USER?r.transform(e):r.record(e,n))}),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return a(e,t),c(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],h.default.sources.USER),this.ignoreChange=!1;var r=u(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=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)},f=n(3),d=r(f),h=n(2),p=r(h),v=n(8),y=r(v),m=n(34),b=r(m),g=n(33),w=r(g),_=n(59),k=r(_),O=n(60),E=r(O),x=n(27),C=r(x),j=n(61),S=r(j),A=[!1,"center","right","justify"],T=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],N=[!1,"serif","monospace"],P=["1","2","3",!1],L=["small",!1,"large","huge"],I=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),a=function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach(function(t){t.container.contains(n.target)||t.close()})};return t.emitter.listenDOM("click",document.body,a),r}return a(e,t),c(e,[{key:"addModule",value:function(t){var n=l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach(function(t){(t.getAttribute("class")||"").split(/\s+/).forEach(function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n].rtl;else if("string"==typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}})})}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map(function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&u(t,A),new E.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&u(t,T,"background"===n?"#ffffff":"#000000"),new k.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?u(t,N):t.classList.contains("ql-header")?u(t,P):t.classList.contains("ql-size")&&u(t,L)),new C.default(t)});var r=function(){n.pickers.forEach(function(t){t.update()})};this.quill.on(y.default.events.EDITOR_CHANGE,r)}}]),e}(w.default);I.DEFAULTS=(0,d.default)(!0,{},w.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new p.default).retain(r.index).delete(r.length).insert({image:n.target.result}),y.default.sources.USER),t.quill.setSelection(r.index+1,y.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}}),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var D=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return a(e,t),c(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",function(e){b.default.match(e,"enter")?(t.save(),e.preventDefault()):b.default.match(e,"escape")&&(t.cancel(),e.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&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;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&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(t<i||e&&t===i&&(null==n.next||0!==n.next.length()))return[n,t];t-=i}return[null,0]},t.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var r,i=this.find(t),o=i[0],a=i[1],s=t-a,u=this.iterator(o);(r=u())&&s<t+e;){var c=r.length();t>s?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;o<r;o++)if(e=n[o],t.call(i,e,o,n))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(t,e){function n(t,e,n){if(t==e)return t?[[y,t]]:[];(n<0||t.length<n)&&(n=null);var i=a(t,e),o=t.substring(0,i);t=t.substring(i),e=e.substring(i),i=s(t,e);var u=t.substring(t.length-i);t=t.substring(0,t.length-i),e=e.substring(0,e.length-i);var l=r(t,e);return o&&l.unshift([y,o]),u&&l.push([y,u]),c(l),null!=n&&(l=f(l,n)),l=d(l)}function r(t,e){var r;if(!t)return[[v,e]];if(!e)return[[p,t]];var o=t.length>e.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;l<s;l++)u[l]=-1,c[l]=-1;u[a+1]=0,c[a+1]=0;for(var f=n-r,d=f%2!=0,h=0,y=0,m=0,b=0,g=0;g<i;g++){for(var w=-g+h;w<=g-y;w+=2){var _,k=a+w;_=w==-g||w!=g&&u[k-1]<u[k+1]?u[k+1]:u[k-1]+1;for(var O=_-w;_<n&&O<r&&t.charAt(_)==e.charAt(O);)_++,O++;if(u[k]=_,_>n)y+=2;else if(O>r)h+=2;else if(d){var E=a+f-w;if(E>=0&&E<s&&-1!=c[E]){var x=n-c[E];if(_>=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]<c[E+1]?c[E+1]:c[E-1]+1;for(var j=x-C;x<n&&j<r&&t.charAt(n-x-1)==e.charAt(r-j-1);)x++,j++;if(c[E]=x,x>n)b+=2;else if(j>r)m+=2;else if(!d){var k=a+f-C;if(k>=0&&k<s&&-1!=u[k]){var _=u[k],O=a+_-k;if(x=n-x,_>=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<i;)t.substring(o,i)==e.substring(o,i)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function s(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(t.length-i,t.length-o)==e.substring(e.length-i,e.length-o)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function u(t,e){function n(t,e,n){for(var r,i,o,u,c=t.substring(n,n+Math.floor(t.length/4)),l=-1,f="";-1!=(l=e.indexOf(c,l+1));){var d=a(t.substring(n),e.substring(l)),h=s(t.substring(0,n),e.substring(0,l));f.length<h+d&&(f=e.substring(l-h,l)+e.substring(l,l+d),r=t.substring(0,n-h),i=t.substring(n+d),o=e.substring(0,l-h),u=e.substring(l+d))}return 2*f.length>=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.length<r.length)return null;var o,u=n(r,i,Math.ceil(r.length/4)),c=n(r,i,Math.ceil(r.length/2));if(!u&&!c)return null;o=c?u&&u[4].length>c[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="";n<t.length;)switch(t[n][0]){case v:i++,u+=t[n][1],n++;break;case p:r++,o+=t[n][1],n++;break;case y:r+i>1?(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;n<t.length-1;)t[n-1][0]==y&&t[n+1][0]==y&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)==t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),l=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),l=!0)),n++;l&&c(t)}function l(t,e){if(0===e)return[y,t];for(var n=0,r=0;r<t.length;r++){var i=t[r];if(i[0]===p||i[0]===y){var o=n+i[1].length;if(e===o)return[r+1,t];if(e<o){t=t.slice();var a=e-n,s=[i[0],i[1].slice(0,a)],u=[i[0],i[1].slice(a)];return t.splice(r,1,s,u),[r+1,t]}n=o}}throw new Error("cursor_pos is out of bounds!")}function f(t,e){var n=l(t,e),r=n[1],i=n[0],o=r[i],a=r[i+1];if(null==o)return t;if(o[0]!==y)return t;if(null!=a&&o[1]+a[1]===a[1]+o[1])return r.splice(i,2,a,o),h(r,i,2);if(null!=a&&0===a[1].indexOf(o[1])){r.splice(i,2,[a[0],o[1]],[0,o[1]]);var s=a[1].slice(o[1].length);return s.length>0&&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<t.length;r+=1)t[r-2][0]===y&&function(t){return t.charCodeAt(t.length-1)>=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;r<t.length;r+=1)t[r][1].length>0&&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<t.length){var i=t[r],o=t[r+1];i[0]===o[1]&&t.splice(r,2,[i[0],i[1]+o[1]])}return t}var p=-1,v=1,y=0,m=n;m.INSERT=v,m.DELETE=p,m.EQUAL=y,t.exports=m},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"==typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function r(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=i?n:r,e.supported=n,e.unsupported=r},function(t,e){"use strict";function n(){}function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function i(){this._events=new n,this._eventsCount=0}var o=Object.prototype.hasOwnProperty,a="~";Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(a=!1)),i.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)o.call(t,e)&&n.push(a?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},i.prototype.listeners=function(t,e){var n=a?a+t:t,r=this._events[n];if(e)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,s=new Array(o);i<o;i++)s[i]=r[i].fn;return s},i.prototype.emit=function(t,e,n,r,i,o){var s=a?a+t:t;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,r),!0;case 5:return l.fn.call(l.context,e,n,r,i),!0;case 6:return l.fn.call(l.context,e,n,r,i,o),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var d,h=l.length;for(c=0;c<h;c++)switch(l[c].once&&this.removeListener(t,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,e);break;case 3:l[c].fn.call(l[c].context,e,n);break;case 4:l[c].fn.call(l[c].context,e,n,r);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];l[c].fn.apply(l[c].context,u)}}return!0},i.prototype.on=function(t,e,n){var i=new r(e,n||this),o=a?a+t:t;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],i]:this._events[o].push(i):(this._events[o]=i,this._eventsCount++),this},i.prototype.once=function(t,e,n){var i=new r(e,n||this,!0),o=a?a+t:t;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],i]:this._events[o].push(i):(this._events[o]=i,this._eventsCount++),this},i.prototype.removeListener=function(t,e,r,i){var o=a?a+t:t;if(!this._events[o])return this;if(!e)return 0==--this._eventsCount?this._events=new n:delete this._events[o],this;var s=this._events[o];if(s.fn)s.fn!==e||i&&!s.once||r&&s.context!==r||(0==--this._eventsCount?this._events=new n:delete this._events[o]);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==e||i&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:0==--this._eventsCount?this._events=new n:delete this._events[o]}return this},i.prototype.removeAllListeners=function(t){var e;return t?(e=a?a+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new n:delete this._events[e])):(this._events=new n,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prototype.setMaxListeners=function(){return this},i.prefixed=a,i.EventEmitter=i,void 0!==t&&(t.exports=i)},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(!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 s(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 u(t,e,n){return"object"===(void 0===e?"undefined":O(e))?Object.keys(e).reduce(function(t,n){return u(t,n,e[n])},t):t.reduce(function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,j.default)({},i({},e,n),r.attributes))},new A.default)}function c(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};return t["__ql-computed-style"]||(t["__ql-computed-style"]=window.getComputedStyle(t))}function l(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var i=t.ops[r];if("string"!=typeof i.insert)break;n=i.insert+n}return n.slice(-1*e.length)===e}function f(t){return 0!==t.childNodes.length&&["block","list-item"].indexOf(c(t).display)>-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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),C=n(3),j=r(C),S=n(2),A=r(S),T=n(0),N=r(T),P=n(5),L=r(P),I=n(10),D=r(I),q=n(9),R=r(q),M=n(36),B=n(37),F=n(13),z=r(F),U=n(25),H=n(38),W=n(39),K=n(40),V=(0,D.default)("quill:clipboard"),Q="__ql-matcher",Y=[[Node.TEXT_NODE,k],[Node.TEXT_NODE,g],["br",y],[Node.ELEMENT_NODE,g],[Node.ELEMENT_NODE,v],[Node.ELEMENT_NODE,w],[Node.ELEMENT_NODE,p],[Node.ELEMENT_NODE,_],["li",b],["b",h.bind(h,"bold")],["i",h.bind(h,"italic")],["style",m]],$=[M.AlignAttribute,H.DirectionAttribute].reduce(function(t,e){return t[e.keyName]=e,t},{}),Z=[M.AlignStyle,B.BackgroundStyle,U.ColorStyle,H.DirectionStyle,W.FontStyle,K.SizeStyle].reduce(function(t,e){return t[e.keyName]=e,t},{}),G=function(t){function e(t,n){o(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],Y.concat(r.options.matchers).forEach(function(t){var e=E(t,2),i=e[0],o=e[1];(n.matchVisual||o!==w)&&r.addMatcher(i,o)}),r}return s(e,t),x(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"==typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(6),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"optimize",value:function(t){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(c.default);l.blotName="bold",l.tagName=["STRONG","B"],e.default=l},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(!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 s(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 u(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function c(t,e){Array.isArray(e[0])||(e=[e]),e.forEach(function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach(function(t){if("string"==typeof t)u(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?l(n,e,r):u(n,e,r)}}),t.appendChild(n)})}function l(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach(function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)}),t.appendChild(r)}Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var 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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),h=n(2),p=r(h),v=n(0),y=r(v),m=n(5),b=r(m),g=n(10),w=r(g),_=n(9),k=r(_),O=(0,w.default)("quill:toolbar"),E=function(t){function e(t,n){o(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(r.options.container)){var i=document.createElement("div");c(i,r.options.container),t.container.parentNode.insertBefore(i,t.container),r.container=i}else"string"==typeof r.options.container?r.container=document.querySelector(r.options.container):r.container=r.options.container;if(!(r.container instanceof HTMLElement)){var s;return s=O.error("Container required for toolbar",r.options),a(r,s)}return r.container.classList.add("ql-toolbar"),r.controls=[],r.handlers={},Object.keys(r.options.handlers).forEach(function(t){r.addHandler(t,r.options.handlers[t])}),[].forEach.call(r.container.querySelectorAll("button, select"),function(t){r.attach(t)}),r.quill.on(b.default.events.EDITOR_CHANGE,function(t,e){t===b.default.events.SELECTION_CHANGE&&r.update(e)}),r.quill.on(b.default.events.SCROLL_OPTIMIZE,function(){var t=r.quill.selection.getRange(),e=f(t,1),n=e[0];r.update(n)}),r}return s(e,t),d(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,function(t){return 0===t.indexOf("ql-")});if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void O.warn("ignoring attaching to disabled format",n,t);if(null==y.default.query(n))return void O.warn("ignoring attaching to nonexistent format",n,t)}var r="SELECT"===t.tagName?"change":"click";t.addEventListener(r,function(r){var o=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var a=t.options[t.selectedIndex];o=!a.hasAttribute("selected")&&(a.value||!1)}else o=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),r.preventDefault();e.quill.focus();var s=e.quill.selection.getRange(),u=f(s,1),c=u[0];if(null!=e.handlers[n])e.handlers[n].call(e,o);else if(y.default.query(n).prototype instanceof y.default.Embed){if(!(o=prompt("Enter "+n)))return;e.quill.updateContents((new p.default).retain(c.index).delete(c.length).insert(i({},n,o)),b.default.sources.USER)}else e.quill.format(n,o,b.default.sources.USER);e.update(c)}),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach(function(n){var r=f(n,2),i=r[0],o=r[1];if("SELECT"===o.tagName){var a=void 0;if(null==t)a=null;else if(null==e[i])a=o.querySelector("option[selected]");else if(!Array.isArray(e[i])){var s=e[i];"string"==typeof s&&(s=s.replace(/\"/g,'\\"')),a=o.querySelector('option[value="'+s+'"]')}null==a?(o.value="",o.selectedIndex=-1):a.selected=!0}else if(null==t)o.classList.remove("ql-active");else if(o.hasAttribute("value")){var u=e[i]===o.getAttribute("value")||null!=e[i]&&e[i].toString()===o.getAttribute("value")||null==e[i]&&!o.getAttribute("value");o.classList.toggle("ql-active",u)}else o.classList.toggle("ql-active",null!=e[i])})}}]),e}(k.default);E.DEFAULTS={},E.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach(function(e){null!=y.default.query(e,y.default.Scope.INLINE)&&t.quill.format(e,!1)})}else this.quill.removeFormat(e,b.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",b.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,b.default.sources.USER),this.quill.format("direction",t,b.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if("+1"===t||"-1"===t){var i="+1"===t?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,b.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,b.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,b.default.sources.USER):this.quill.format("list","unchecked",b.default.sources.USER):this.quill.format("list",t,b.default.sources.USER)}}},e.default=E,e.addControls=c},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(27),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(t,n){r(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.label.innerHTML=n,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(t){t.classList.add("ql-primary")}),o}return o(e,t),a(e,[{key:"buildItem",value:function(t){var n=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),i=t?t.getAttribute("data-value")||"":"";r&&("line"===r.tagName?r.style.stroke=i:r.style.fill=i)}}]),e}(c.default);e.default=l},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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(27),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(t,n){r(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),function(t){t.innerHTML=n[t.getAttribute("data-value")||""]}),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return o(e,t),a(e,[{key:"selectItem",value:function(t,n){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(c.default);e.default=l},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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(e,n){var i=this;r(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){i.root.style.marginTop=-1*i.quill.root.scrollTop+"px"}),this.hide()}return i(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=e+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=e+o+"px"),i.bottom>r.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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(3),f=r(l),d=n(8),h=r(d),p=n(43),v=r(p),y=n(26),m=r(y),b=n(15),g=n(41),w=r(g),_=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],k=function(t){function e(t,n){i(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=_);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return a(e,t),c(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),w.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),w.default),this.tooltip=new O(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(e,n){t.handlers.link.call(t,!n.format.link)})}}]),e}(v.default);k.DEFAULTS=(0,f.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var O=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return a(e,t),c(e,[{key:"listen",value:function(){var t=this;u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,h.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()}),this.quill.on(h.default.events.SELECTION_CHANGE,function(e,n,r){if(null!=e){if(0===e.length&&r===h.default.sources.USER){var i=t.quill.scroll.descendant(m.default,e.index),o=s(i,2),a=o[0],u=o[1];if(null!=a){t.linkRange=new b.Range(e.index-u,a.length());var c=m.default.formats(a.domNode);return t.preview.textContent=c,t.preview.setAttribute("href",c),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}})}},{key:"show",value:function(){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(p.BaseTooltip);O.TEMPLATE=['<a class="ql-preview" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(0),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(c.default.Attributor.Class),f=new l("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=f},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(4),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="blockquote",u.tagName="blockquote",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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(4),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(u.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],e.default=c},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(!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 s(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.ListItem=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=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)},l=n(0),f=r(l),d=n(4),h=r(d),p=n(24),v=r(p),y=function(t){function e(){return o(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),u(e,[{key:"format",value:function(t,n){t!==m.blotName||n?c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(f.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:c(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(h.default);y.blotName="list-item",y.tagName="LI";var m=function(t){function e(t){o(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),i=f.default.find(e.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return s(e,t),u(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=c(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),u(e,[{key:"format",value:function(t,e){this.children.length>0&&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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(6),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(c.default);l.blotName="script",l.tagName=["SUB","SUP"],e.default=l},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(6),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="strike",u.tagName="S",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=n(6),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="underline",u.tagName="U",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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(0),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=n(26),f=["alt","height","width"],d=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"format",value:function(t,n){f.indexOf(t)>-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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(4),c=n(26),l=function(t){return t&&t.__esModule?t:{default:t}}(c),f=["height","width"],d=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"format",value:function(t,n){f.indexOf(t)>-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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(35),l=r(c),f=n(5),d=r(f),h=n(9),p=r(h),v=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,null,[{key:"create",value:function(t){var n=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(l.default);v.blotName="formula",v.className="ql-formula",v.tagName="SPAN";var y=function(t){function e(){i(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return a(e,t),s(e,null,[{key:"register",value:function(){d.default.register(v,!0)}}]),e}(p.default);e.FormulaBlot=v,e.default=y},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.CodeToken=e.CodeBlock=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(0),l=r(c),f=n(5),d=r(f),h=n(9),p=r(h),v=n(13),y=r(v),m=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||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='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(3),l=r(c),f=n(8),d=r(f),h=n(43),p=r(h),v=n(15),y=n(41),m=r(y),b=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(t){function e(t,n){i(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=b);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return a(e,t),u(e,[{key:"extendToolbar",value:function(t){this.tooltip=new w(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),m.default)}}]),e}(p.default);g.DEFAULTS=(0,l.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var w=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(d.default.events.EDITOR_CHANGE,function(t,e,n,i){if(t===d.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&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=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=w,e.default=g},function(t,e,n){t.exports=n(63)}]).default})}).call(e,n(327).Buffer)},,function(t,e,n){var r,i;/*!
20
+ !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;e<arguments.length;e++)t[e]=arguments[e];if(t.length>1)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;i<e&&r.hasNext();){var o;i<t?o=r.next(t-i):(o=r.next(e-i),n.push(o)),i+=a.length(o)}return new u(n)},u.prototype.compose=function(t){for(var e=a.iterator(this.ops),n=a.iterator(t.ops),r=new u;e.hasNext()||n.hasNext();)if("insert"===n.peekType())r.push(n.next());else if("delete"===e.peekType())r.push(e.next());else{var i=Math.min(e.peekLength(),n.peekLength()),o=e.next(i),s=n.next(i);if("number"==typeof s.retain){var c={};"number"==typeof o.retain?c.retain=i:c.insert=o.insert;var l=a.attributes.compose(o.attributes,s.attributes,"number"==typeof o.retain);l&&(c.attributes=l),r.push(c)}else"number"==typeof s.delete&&"number"==typeof o.retain&&r.push(s)}return r.chop()},u.prototype.concat=function(t){var e=new u(this.ops.slice());return t.ops.length>0&&(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&&(r<t||!e)&&(t+=i),r+=i):t-=Math.min(i,t-r)}return t},t.exports=u},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},o=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e=n.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!e&&!i)return!1;var o;for(o in t);return void 0===o||n.call(t,o)};t.exports=function t(){var e,n,r,a,s,u,c=arguments[0],l=1,f=arguments.length,d=!1;for("boolean"==typeof c&&(d=c,c=arguments[1]||{},l=2),(null==c||"object"!=typeof c&&"function"!=typeof c)&&(c={});l<f;++l)if(null!=(e=arguments[l]))for(n in e)r=c[n],a=e[n],c!==a&&(d&&a&&(o(a)||(s=i(a)))?(s?(s=!1,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},c[n]=t(d,u,a)):void 0!==a&&(c[n]=a));return c}},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=arguments.length>1&&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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=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)},l=n(3),f=r(l),d=n(2),h=r(d),p=n(0),v=r(p),y=n(16),m=r(y),b=n(6),g=r(b),w=n(7),_=r(w),k=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"attach",value:function(){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new v.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new h.default).insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=v.default.query(t,v.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"==typeof n&&n.endsWith("\n")){var i=v.default.create(O.blotName);this.parent.insertBefore(i,0===t?this:this.next),i.insertAt(0,n.slice(0,-1))}else c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(v.default.Embed);k.scope=v.default.Scope.BLOCK_BLOT;var O=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return a(e,t),u(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(v.default.Leaf).reduce(function(t,e){return 0===e.length()?t:t.insert(e.value(),s(e))},new h.default).insert("\n",s(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,i){n<=0||(v.default.query(r,v.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,i):c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,i),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var i=n.split("\n"),o=i.shift();o.length>0&&(t<this.length()-1||null==this.children.tail?c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});var a=this;i.reduce(function(t,e){return a=a.split(t,!0),a.insertAt(0,e),e.length},t+o.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof m.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,n){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&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<e||t===e&&r===b.default.sources.USER?t:n>=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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(50);var h=n(2),p=r(h),v=n(14),y=r(v),m=n(8),b=r(m),g=n(9),w=r(g),_=n(0),k=r(_),O=n(15),E=r(O),x=n(3),C=r(x),j=n(10),S=r(j),A=n(33),T=r(A),N=(0,S.default)("quill"),P=function(){function t(e){var n=this,r=arguments.length>1&&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("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(7),l=r(c),f=n(0),d=r(f),h=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"formatAt",value:function(t,n,r,i){if(e.compare(this.statics.blotName,r)<0&&d.default.query(r,d.default.Scope.BLOT)){var o=this.isolate(t,n);i&&o.wrap(r,i)}else u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i)}},{key:"optimize",value:function(t){if(u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){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:t<n?-1:1}}]),e}(d.default.Inline);h.allowedChildren=[h,d.default.Embed,l.default],h.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=h},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(0),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.Text);e.default=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)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(54),l=r(c),f=n(10),d=r(f),h=(0,d.default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(t){document.addEventListener(t,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(t){if(t.__quill&&t.__quill.emitter){var n;(n=t.__quill.emitter).handleDOM.apply(n,e)}})})});var p=function(t){function e(){i(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",h.error),t}return a(e,t),s(e,[{key:"emit",value:function(){h.log.apply(h,arguments),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach(function(e){var r=e.node,i=e.handler;(t.target===r||r.contains(t.target))&&i.apply(void 0,[t].concat(n))})}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(l.default);p.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},p.sources={API:"api",SILENT:"silent",USER:"user"},e.default=p},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 t(e){var n=arguments.length>1&&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;i<n;i++)r[i-1]=arguments[i];(e=console)[t].apply(e,r)}}function i(t){return o.reduce(function(e,n){return e[n]=r.bind(console,n,t),e},{})}Object.defineProperty(e,"__esModule",{value:!0});var o=["error","warn","log","info"],a="warn";r.level=i.level=function(t){a=t},e.default=i},function(t,e,n){function r(t){return null===t||void 0===t}function i(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}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<t.length;o++)if(t[o]!==e[o])return!1;return!0}try{var f=s(t),d=s(e)}catch(t){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),o=f.length-1;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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=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)},l=n(2),f=r(l),d=n(0),h=r(d),p=n(4),v=r(p),y=n(6),m=r(y),b=n(7),g=r(b),w=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(m.default);w.blotName="code",w.tagName="CODE";var _=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),u(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce(function(e,n){return e.insert(n).insert("\n",t.formats())},new f.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var r=this.descendant(g.default,this.length()-1),i=s(r,1),o=i[0];null!=o&&o.deleteAt(o.length()-1,1),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,i){if(0!==n&&null!=h.default.query(r,h.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(t);if(!(o<0||o>=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),f=n(2),d=r(f),h=n(20),p=r(h),v=n(0),y=r(v),m=n(13),b=r(m),g=n(23),w=r(g),_=n(4),k=r(_),O=n(16),E=r(O),x=n(21),C=r(x),j=n(11),S=r(j),A=n(3),T=r(A),N=/^[ -~]*$/,P=function(){function t(e){o(this,t),this.scroll=e,this.delta=this.getDelta()}return l(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var r=this.scroll.length();return this.scroll.batchStart(),t=s(t),t.reduce(function(t,i){var o=i.retain||i.delete||i.insert.length||1,a=i.attributes||{};if(null!=i.insert){if("string"==typeof i.insert){var s=i.insert;s.endsWith("\n")&&n&&(n=!1,s=s.slice(0,-1)),t>=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);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){try{e.parentNode}catch(t){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(0),l=r(c),f=n(21),d=r(f),h=n(11),p=r(h),v=n(8),y=r(v),m=n(10),b=r(m),g=(0,b.default)("quill:selection"),w=function t(e){var n=arguments.length>1&&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?(u<r.data.length?(f.setStart(r,u),f.setEnd(r,u+1)):(f.setStart(r,u-1),f.setEnd(r,u),y="right"),m=f.getBoundingClientRect()):(m=a.domNode.getBoundingClientRect(),u>0&&(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.top<l.top?t.scrollTop-=l.top-n.top:n.bottom>l.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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(0),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"insertInto",value:function(t,n){0===t.children.length?s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(c.default.Embed);l.blotName="break",l.tagName="BR",e.default=l},function(t,e,n){"use strict";function r(t){var e=s.find(t);if(null==e)try{e=s.create(t)}catch(n){e=s.create(s.Scope.INLINE),[].slice.call(t.childNodes).forEach(function(t){e.domNode.appendChild(t)}),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return 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(44),a=n(29),s=n(1),u=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return i(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(e){try{var n=r(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof s.ParchmentError)return;throw t}})},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,function(t,e,n){t.deleteAt(e,n)})},e.prototype.descendant=function(t,n){var r=this.children.find(n),i=r[0],o=r[1];return null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t?[i,o]:i instanceof e?i.descendant(t,o):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,function(n,r,a){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&i.push(n),n instanceof e&&(i=i.concat(n.descendants(t,r,o))),o-=a}),i},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,function(t,e,i){t.formatAt(e,i,n,r)})},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),i=r[0],o=r[1];if(i)i.insertAt(o,e,n);else{var a=null==n?s.create("text",e):s.create(e,n);this.appendChild(a)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(e){return t instanceof e}))throw new s.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce(function(t,e){return t+e.length()},0)},e.prototype.moveChildren=function(t,e){this.children.forEach(function(n){t.insertBefore(n,e)})},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=s.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),i=r[0],o=r[1],a=[[this,t]];return i instanceof e?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},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=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),function(t,r,i){t=t.split(r,e),n.appendChild(t)}),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,i=[],o=[];t.forEach(function(t){t.target===n.domNode&&"childList"===t.type&&(i.push.apply(i,t.addedNodes),o.push.apply(o,t.removedNodes))}),o.forEach(function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=s.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}}),i.filter(function(t){return t.parentNode==n.domNode}).sort(function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(t){var e=null;null!=t.nextSibling&&(e=s.find(t.nextSibling));var i=r(t);i.next==e&&null!=i.next||(null!=i.parent&&i.parent.removeChild(n),n.insertBefore(i,e||void 0))})},e}(a.default);e.default=u},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(12),o=n(30),a=n(17),s=n(1),u=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new o.default(n.domNode),n}return r(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=s.query(t);n instanceof i.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some(function(t){return t.target===r.domNode&&"attributes"===t.type})&&this.attributes.build()},e.prototype.wrap=function(n,r){var i=t.prototype.wrap.call(this,n,r);return i instanceof e&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},e}(a.default);e.default=u},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(29),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(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;g<E.length;g++){var x=E[g],O=Object.getOwnPropertyDescriptor(r,x);O&&O.enumerable||(y[x]=d(r[x],o-1),Object.defineProperty(y,x,{enumerable:!1}))}return y}"object"==typeof i&&(o=i.depth,a=i.prototype,f=i.includeNonEnumerable,i=i.circular);var h=[],p=[],v=void 0!==e;return void 0===i&&(i=!0),void 0===o&&(o=1/0),d(r,o)}function r(t){return Object.prototype.toString.call(t)}function i(t){return"object"==typeof t&&"[object Date]"===r(t)}function o(t){return"object"==typeof t&&"[object Array]"===r(t)}function a(t){return"object"==typeof t&&"[object RegExp]"===r(t)}function s(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}var u;try{u=Map}catch(t){u=function(){}}var c;try{c=Set}catch(t){c=function(){}}var l;try{l=Promise}catch(t){l=function(){}}return n.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},n.__objToStr=r,n.__isDate=i,n.__isArray=o,n.__isRegExp=a,n.__getRegExpFlags=s,n}();"object"==typeof t&&t.exports&&(t.exports=r)},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){return t instanceof y.default||t instanceof v.BlockEmbed}Object.defineProperty(e,"__esModule",{value:!0});var u=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")}}(),c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=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)},f=n(0),d=r(f),h=n(8),p=r(h),v=n(4),y=r(v),m=n(16),b=r(m),g=n(13),w=r(g),_=n(24),k=r(_),O=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce(function(t,e){return t[e]=!0,t},{})),r.domNode.addEventListener("DOMNodeInserted",function(){}),r.optimize(),r.enable(),r}return a(e,t),c(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var r=this.line(t),i=u(r,2),o=i[0],a=i[1],s=this.line(t+n),c=u(s,1),f=c[0];if(l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=f&&o!==f&&a>0){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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(0),f=r(l),d=n(7),h=r(d),p=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return a(e,t),c(e,null,[{key:"value",value:function(){}}]),c(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var r=this,i=0;null!=r&&r.statics.scope!==f.default.Scope.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(i,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),r=void 0,i=void 0,o=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var a=[t,n.start.offset,n.end.offset];r=a[0],i=a[1],o=a[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var u=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof h.default?(r=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=e.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(f.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var c=[i,o].map(function(t){return Math.max(0,Math.min(r.data.length,t-1))}),l=s(c,2);return i=l[0],o=l[1],{startNode:r,startOffset:i,endNode:r,endOffset:o}}}}},{key:"update",value:function(t,e){var n=this;if(t.some(function(t){return"characterData"===t.type&&t.target===n.textNode})){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(f.default.Embed);p.blotName="cursor",p.className="ql-cursor",p.tagName="span",p.CONTENTS="\ufeff",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=n(0),u=r(s),c=n(4),l=r(c),f=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),e}(u.default.Container);f.allowedChildren=[l.default,c.BlockEmbed,f],e.default=f},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.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(0),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"value",value:function(t){var n=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map(function(t){return("00"+parseInt(t).toString(16)).slice(-2)}).join("")):n}}]),e}(c.default.Attributor.Style),f=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),d=new l("color","color",{scope:c.default.Scope.INLINE});e.ColorAttributor=l,e.ColorClass=f,e.ColorStyle=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)}function a(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(6),l=function(t){return t&&t.__esModule?t:{default:t}}(c),f=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),s(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return a(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(l.default);f.blotName="link",f.tagName="A",f.SANITIZED_URL="about:blank",f.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=f,e.sanitize=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"==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},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(107),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(){function t(e){var n=this;r(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){n.container.classList.toggle("ql-expanded")}),this.select.addEventListener("change",this.update.bind(this))}return o(t,[{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",function(){e.selectItem(n,!0)}),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=s.default,this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),[].slice.call(this.select.options).forEach(function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)}),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach(function(e){t.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"close",value:function(){this.container.classList.remove("ql-expanded")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(e,n){r(this,t),this.quill=e,this.options=n,this.modules={}}return i(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach(function(e){null==t.modules[e]&&t.addModule(e)})}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();o.DEFAULTS={modules:{}},o.themes={default:o},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(!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 s(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 u(t,e){var n,r=t===B.keys.LEFT?"prefix":"suffix";return n={key:t,shiftKey:e,altKey:null},i(n,r,/^$/),i(n,"handler",function(n){var r=n.index;t===B.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(m(i,1)[0]instanceof T.default.Embed)||(t===B.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,P.default.sources.USER):this.quill.setSelection(n.index-1,P.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,P.default.sources.USER):this.quill.setSelection(n.index+n.length+1,P.default.sources.USER),!1)}),n}function c(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=m(n,1),i=r[0],o={};if(0===e.offset){var a=this.quill.getLine(t.index-1),s=m(a,1),u=s[0];if(null!=u&&u.length()>1){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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),g=n(21),w=r(g),_=n(11),k=r(_),O=n(3),E=r(O),x=n(2),C=r(x),j=n(20),S=r(j),A=n(0),T=r(A),N=n(5),P=r(N),L=n(10),I=r(L),D=n(9),q=r(D),R=(0,I.default)("quill:keyboard"),M=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",B=function(t){function e(t,n){o(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach(function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])}),r.addBinding({key:e.keys.ENTER,shiftKey:null},d),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},c),r.addBinding({key:e.keys.DELETE},{collapsed:!0},l)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},c),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},l)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},f),r.addBinding({key:e.keys.DELETE},{collapsed:!1},f),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},c),r.listen(),r}return s(e,t),b(e,null,[{key:"match",value:function(t,e){return e=v(e),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(n){return!!e[n]!==t[n]&&null!==e[n]})&&e.key===(t.which||t.keyCode)}}]),b(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(0),l=r(c),f=n(7),d=r(f),h="\ufeff",p=function(t){function e(t){i(this,e);var n=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(t){n.contentNode.appendChild(t)}),n.leftGuard=document.createTextNode(h),n.rightGuard=document.createTextNode(h),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return a(e,t),s(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(h).join("");if(t===this.leftGuard)if(this.prev instanceof d.default){var i=this.prev.length();this.prev.insertAt(i,r),e={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(l.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(l.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=h,e}},{key:"update",value:function(t,e){var n=this;t.forEach(function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}})}}]),e}(l.default.Embed);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new i.default.Attributor.Attribute("align","align",o),s=new i.default.Attributor.Class("align","ql-align",o),u=new i.default.Attributor.Style("align","text-align",o);e.AlignAttribute=a,e.AlignClass=s,e.AlignStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=n(25),a=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),s=new o.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});e.BackgroundClass=a,e.BackgroundStyle=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},a=new i.default.Attributor.Attribute("direction","dir",o),s=new i.default.Attributor.Class("direction","ql-direction",o),u=new i.default.Attributor.Style("direction","direction",o);e.DirectionAttribute=a,e.DirectionClass=s,e.DirectionStyle=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}),e.FontClass=e.FontStyle=void 0;var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(0),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},f=new c.default.Attributor.Class("font","ql-font",l),d=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"value",value:function(t){return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(c.default.Attributor.Style),h=new d("font","font-family",l);e.FontStyle=h,e.FontClass=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=o,e.SizeStyle=a},function(t,e,n){"use strict";t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},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.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some(function(t){return null!=f.default.query(t,f.default.Scope.BLOCK)}))}function u(t){var e=t.reduce(function(t,e){return t+=e.delete||0},0),n=t.length()-e;return s(t)&&(n-=1),n}Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(0),f=r(l),d=n(5),h=r(d),p=n(9),v=r(p),y=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(h.default.events.EDITOR_CHANGE,function(t,e,n,i){t!==h.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==h.default.sources.USER?r.transform(e):r.record(e,n))}),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return a(e,t),c(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],h.default.sources.USER),this.ignoreChange=!1;var r=u(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=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)},f=n(3),d=r(f),h=n(2),p=r(h),v=n(8),y=r(v),m=n(34),b=r(m),g=n(33),w=r(g),_=n(59),k=r(_),O=n(60),E=r(O),x=n(27),C=r(x),j=n(61),S=r(j),A=[!1,"center","right","justify"],T=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],N=[!1,"serif","monospace"],P=["1","2","3",!1],L=["small",!1,"large","huge"],I=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),a=function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach(function(t){t.container.contains(n.target)||t.close()})};return t.emitter.listenDOM("click",document.body,a),r}return a(e,t),c(e,[{key:"addModule",value:function(t){var n=l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach(function(t){(t.getAttribute("class")||"").split(/\s+/).forEach(function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n].rtl;else if("string"==typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}})})}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map(function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&u(t,A),new E.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&u(t,T,"background"===n?"#ffffff":"#000000"),new k.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?u(t,N):t.classList.contains("ql-header")?u(t,P):t.classList.contains("ql-size")&&u(t,L)),new C.default(t)});var r=function(){n.pickers.forEach(function(t){t.update()})};this.quill.on(y.default.events.EDITOR_CHANGE,r)}}]),e}(w.default);I.DEFAULTS=(0,d.default)(!0,{},w.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new p.default).retain(r.index).delete(r.length).insert({image:n.target.result}),y.default.sources.USER),t.quill.setSelection(r.index+1,y.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}}),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var D=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return a(e,t),c(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",function(e){b.default.match(e,"enter")?(t.save(),e.preventDefault()):b.default.match(e,"escape")&&(t.cancel(),e.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&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;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&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(t<i||e&&t===i&&(null==n.next||0!==n.next.length()))return[n,t];t-=i}return[null,0]},t.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var r,i=this.find(t),o=i[0],a=i[1],s=t-a,u=this.iterator(o);(r=u())&&s<t+e;){var c=r.length();t>s?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;o<r;o++)if(e=n[o],t.call(i,e,o,n))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(t,e){function n(t,e,n){if(t==e)return t?[[y,t]]:[];(n<0||t.length<n)&&(n=null);var i=a(t,e),o=t.substring(0,i);t=t.substring(i),e=e.substring(i),i=s(t,e);var u=t.substring(t.length-i);t=t.substring(0,t.length-i),e=e.substring(0,e.length-i);var l=r(t,e);return o&&l.unshift([y,o]),u&&l.push([y,u]),c(l),null!=n&&(l=f(l,n)),l=d(l)}function r(t,e){var r;if(!t)return[[v,e]];if(!e)return[[p,t]];var o=t.length>e.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;l<s;l++)u[l]=-1,c[l]=-1;u[a+1]=0,c[a+1]=0;for(var f=n-r,d=f%2!=0,h=0,y=0,m=0,b=0,g=0;g<i;g++){for(var w=-g+h;w<=g-y;w+=2){var _,k=a+w;_=w==-g||w!=g&&u[k-1]<u[k+1]?u[k+1]:u[k-1]+1;for(var O=_-w;_<n&&O<r&&t.charAt(_)==e.charAt(O);)_++,O++;if(u[k]=_,_>n)y+=2;else if(O>r)h+=2;else if(d){var E=a+f-w;if(E>=0&&E<s&&-1!=c[E]){var x=n-c[E];if(_>=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]<c[E+1]?c[E+1]:c[E-1]+1;for(var j=x-C;x<n&&j<r&&t.charAt(n-x-1)==e.charAt(r-j-1);)x++,j++;if(c[E]=x,x>n)b+=2;else if(j>r)m+=2;else if(!d){var k=a+f-C;if(k>=0&&k<s&&-1!=u[k]){var _=u[k],O=a+_-k;if(x=n-x,_>=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<i;)t.substring(o,i)==e.substring(o,i)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function s(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(t.length-i,t.length-o)==e.substring(e.length-i,e.length-o)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function u(t,e){function n(t,e,n){for(var r,i,o,u,c=t.substring(n,n+Math.floor(t.length/4)),l=-1,f="";-1!=(l=e.indexOf(c,l+1));){var d=a(t.substring(n),e.substring(l)),h=s(t.substring(0,n),e.substring(0,l));f.length<h+d&&(f=e.substring(l-h,l)+e.substring(l,l+d),r=t.substring(0,n-h),i=t.substring(n+d),o=e.substring(0,l-h),u=e.substring(l+d))}return 2*f.length>=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.length<r.length)return null;var o,u=n(r,i,Math.ceil(r.length/4)),c=n(r,i,Math.ceil(r.length/2));if(!u&&!c)return null;o=c?u&&u[4].length>c[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="";n<t.length;)switch(t[n][0]){case v:i++,u+=t[n][1],n++;break;case p:r++,o+=t[n][1],n++;break;case y:r+i>1?(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;n<t.length-1;)t[n-1][0]==y&&t[n+1][0]==y&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)==t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),l=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),l=!0)),n++;l&&c(t)}function l(t,e){if(0===e)return[y,t];for(var n=0,r=0;r<t.length;r++){var i=t[r];if(i[0]===p||i[0]===y){var o=n+i[1].length;if(e===o)return[r+1,t];if(e<o){t=t.slice();var a=e-n,s=[i[0],i[1].slice(0,a)],u=[i[0],i[1].slice(a)];return t.splice(r,1,s,u),[r+1,t]}n=o}}throw new Error("cursor_pos is out of bounds!")}function f(t,e){var n=l(t,e),r=n[1],i=n[0],o=r[i],a=r[i+1];if(null==o)return t;if(o[0]!==y)return t;if(null!=a&&o[1]+a[1]===a[1]+o[1])return r.splice(i,2,a,o),h(r,i,2);if(null!=a&&0===a[1].indexOf(o[1])){r.splice(i,2,[a[0],o[1]],[0,o[1]]);var s=a[1].slice(o[1].length);return s.length>0&&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<t.length;r+=1)t[r-2][0]===y&&function(t){return t.charCodeAt(t.length-1)>=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;r<t.length;r+=1)t[r][1].length>0&&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<t.length){var i=t[r],o=t[r+1];i[0]===o[1]&&t.splice(r,2,[i[0],i[1]+o[1]])}return t}var p=-1,v=1,y=0,m=n;m.INSERT=v,m.DELETE=p,m.EQUAL=y,t.exports=m},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"==typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function r(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=i?n:r,e.supported=n,e.unsupported=r},function(t,e){"use strict";function n(){}function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function i(){this._events=new n,this._eventsCount=0}var o=Object.prototype.hasOwnProperty,a="~";Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(a=!1)),i.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)o.call(t,e)&&n.push(a?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},i.prototype.listeners=function(t,e){var n=a?a+t:t,r=this._events[n];if(e)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,s=new Array(o);i<o;i++)s[i]=r[i].fn;return s},i.prototype.emit=function(t,e,n,r,i,o){var s=a?a+t:t;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,r),!0;case 5:return l.fn.call(l.context,e,n,r,i),!0;case 6:return l.fn.call(l.context,e,n,r,i,o),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var d,h=l.length;for(c=0;c<h;c++)switch(l[c].once&&this.removeListener(t,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,e);break;case 3:l[c].fn.call(l[c].context,e,n);break;case 4:l[c].fn.call(l[c].context,e,n,r);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];l[c].fn.apply(l[c].context,u)}}return!0},i.prototype.on=function(t,e,n){var i=new r(e,n||this),o=a?a+t:t;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],i]:this._events[o].push(i):(this._events[o]=i,this._eventsCount++),this},i.prototype.once=function(t,e,n){var i=new r(e,n||this,!0),o=a?a+t:t;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],i]:this._events[o].push(i):(this._events[o]=i,this._eventsCount++),this},i.prototype.removeListener=function(t,e,r,i){var o=a?a+t:t;if(!this._events[o])return this;if(!e)return 0==--this._eventsCount?this._events=new n:delete this._events[o],this;var s=this._events[o];if(s.fn)s.fn!==e||i&&!s.once||r&&s.context!==r||(0==--this._eventsCount?this._events=new n:delete this._events[o]);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==e||i&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:0==--this._eventsCount?this._events=new n:delete this._events[o]}return this},i.prototype.removeAllListeners=function(t){var e;return t?(e=a?a+t:t,this._events[e]&&(0==--this._eventsCount?this._events=new n:delete this._events[e])):(this._events=new n,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prototype.setMaxListeners=function(){return this},i.prefixed=a,i.EventEmitter=i,void 0!==t&&(t.exports=i)},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(!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 s(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 u(t,e,n){return"object"===(void 0===e?"undefined":O(e))?Object.keys(e).reduce(function(t,n){return u(t,n,e[n])},t):t.reduce(function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,j.default)({},i({},e,n),r.attributes))},new A.default)}function c(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};return t["__ql-computed-style"]||(t["__ql-computed-style"]=window.getComputedStyle(t))}function l(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var i=t.ops[r];if("string"!=typeof i.insert)break;n=i.insert+n}return n.slice(-1*e.length)===e}function f(t){return 0!==t.childNodes.length&&["block","list-item"].indexOf(c(t).display)>-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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),C=n(3),j=r(C),S=n(2),A=r(S),T=n(0),N=r(T),P=n(5),L=r(P),I=n(10),D=r(I),q=n(9),R=r(q),M=n(36),B=n(37),F=n(13),z=r(F),U=n(25),H=n(38),W=n(39),K=n(40),V=(0,D.default)("quill:clipboard"),Q="__ql-matcher",Y=[[Node.TEXT_NODE,k],[Node.TEXT_NODE,g],["br",y],[Node.ELEMENT_NODE,g],[Node.ELEMENT_NODE,v],[Node.ELEMENT_NODE,w],[Node.ELEMENT_NODE,p],[Node.ELEMENT_NODE,_],["li",b],["b",h.bind(h,"bold")],["i",h.bind(h,"italic")],["style",m]],$=[M.AlignAttribute,H.DirectionAttribute].reduce(function(t,e){return t[e.keyName]=e,t},{}),Z=[M.AlignStyle,B.BackgroundStyle,U.ColorStyle,H.DirectionStyle,W.FontStyle,K.SizeStyle].reduce(function(t,e){return t[e.keyName]=e,t},{}),G=function(t){function e(t,n){o(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],Y.concat(r.options.matchers).forEach(function(t){var e=E(t,2),i=e[0],o=e[1];(n.matchVisual||o!==w)&&r.addMatcher(i,o)}),r}return s(e,t),x(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"==typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(6),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"optimize",value:function(t){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(c.default);l.blotName="bold",l.tagName=["STRONG","B"],e.default=l},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(!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 s(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 u(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function c(t,e){Array.isArray(e[0])||(e=[e]),e.forEach(function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach(function(t){if("string"==typeof t)u(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?l(n,e,r):u(n,e,r)}}),t.appendChild(n)})}function l(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach(function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)}),t.appendChild(r)}Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var 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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),h=n(2),p=r(h),v=n(0),y=r(v),m=n(5),b=r(m),g=n(10),w=r(g),_=n(9),k=r(_),O=(0,w.default)("quill:toolbar"),E=function(t){function e(t,n){o(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(r.options.container)){var i=document.createElement("div");c(i,r.options.container),t.container.parentNode.insertBefore(i,t.container),r.container=i}else"string"==typeof r.options.container?r.container=document.querySelector(r.options.container):r.container=r.options.container;if(!(r.container instanceof HTMLElement)){var s;return s=O.error("Container required for toolbar",r.options),a(r,s)}return r.container.classList.add("ql-toolbar"),r.controls=[],r.handlers={},Object.keys(r.options.handlers).forEach(function(t){r.addHandler(t,r.options.handlers[t])}),[].forEach.call(r.container.querySelectorAll("button, select"),function(t){r.attach(t)}),r.quill.on(b.default.events.EDITOR_CHANGE,function(t,e){t===b.default.events.SELECTION_CHANGE&&r.update(e)}),r.quill.on(b.default.events.SCROLL_OPTIMIZE,function(){var t=r.quill.selection.getRange(),e=f(t,1),n=e[0];r.update(n)}),r}return s(e,t),d(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,function(t){return 0===t.indexOf("ql-")});if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void O.warn("ignoring attaching to disabled format",n,t);if(null==y.default.query(n))return void O.warn("ignoring attaching to nonexistent format",n,t)}var r="SELECT"===t.tagName?"change":"click";t.addEventListener(r,function(r){var o=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var a=t.options[t.selectedIndex];o=!a.hasAttribute("selected")&&(a.value||!1)}else o=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),r.preventDefault();e.quill.focus();var s=e.quill.selection.getRange(),u=f(s,1),c=u[0];if(null!=e.handlers[n])e.handlers[n].call(e,o);else if(y.default.query(n).prototype instanceof y.default.Embed){if(!(o=prompt("Enter "+n)))return;e.quill.updateContents((new p.default).retain(c.index).delete(c.length).insert(i({},n,o)),b.default.sources.USER)}else e.quill.format(n,o,b.default.sources.USER);e.update(c)}),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach(function(n){var r=f(n,2),i=r[0],o=r[1];if("SELECT"===o.tagName){var a=void 0;if(null==t)a=null;else if(null==e[i])a=o.querySelector("option[selected]");else if(!Array.isArray(e[i])){var s=e[i];"string"==typeof s&&(s=s.replace(/\"/g,'\\"')),a=o.querySelector('option[value="'+s+'"]')}null==a?(o.value="",o.selectedIndex=-1):a.selected=!0}else if(null==t)o.classList.remove("ql-active");else if(o.hasAttribute("value")){var u=e[i]===o.getAttribute("value")||null!=e[i]&&e[i].toString()===o.getAttribute("value")||null==e[i]&&!o.getAttribute("value");o.classList.toggle("ql-active",u)}else o.classList.toggle("ql-active",null!=e[i])})}}]),e}(k.default);E.DEFAULTS={},E.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach(function(e){null!=y.default.query(e,y.default.Scope.INLINE)&&t.quill.format(e,!1)})}else this.quill.removeFormat(e,b.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",b.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,b.default.sources.USER),this.quill.format("direction",t,b.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if("+1"===t||"-1"===t){var i="+1"===t?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,b.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,b.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,b.default.sources.USER):this.quill.format("list","unchecked",b.default.sources.USER):this.quill.format("list",t,b.default.sources.USER)}}},e.default=E,e.addControls=c},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(27),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(t,n){r(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.label.innerHTML=n,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(t){t.classList.add("ql-primary")}),o}return o(e,t),a(e,[{key:"buildItem",value:function(t){var n=s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),i=t?t.getAttribute("data-value")||"":"";r&&("line"===r.tagName?r.style.stroke=i:r.style.fill=i)}}]),e}(c.default);e.default=l},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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(27),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(t,n){r(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),function(t){t.innerHTML=n[t.getAttribute("data-value")||""]}),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return o(e,t),a(e,[{key:"selectItem",value:function(t,n){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(c.default);e.default=l},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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(){function t(e,n){var i=this;r(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){i.root.style.marginTop=-1*i.quill.root.scrollTop+"px"}),this.hide()}return i(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=e+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=e+o+"px"),i.bottom>r.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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(3),f=r(l),d=n(8),h=r(d),p=n(43),v=r(p),y=n(26),m=r(y),b=n(15),g=n(41),w=r(g),_=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],k=function(t){function e(t,n){i(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=_);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return a(e,t),c(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),w.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),w.default),this.tooltip=new O(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(e,n){t.handlers.link.call(t,!n.format.link)})}}]),e}(v.default);k.DEFAULTS=(0,f.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var O=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return a(e,t),c(e,[{key:"listen",value:function(){var t=this;u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,h.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()}),this.quill.on(h.default.events.SELECTION_CHANGE,function(e,n,r){if(null!=e){if(0===e.length&&r===h.default.sources.USER){var i=t.quill.scroll.descendant(m.default,e.index),o=s(i,2),a=o[0],u=o[1];if(null!=a){t.linkRange=new b.Range(e.index-u,a.length());var c=m.default.formats(a.domNode);return t.preview.textContent=c,t.preview.setAttribute("href",c),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}})}},{key:"show",value:function(){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(p.BaseTooltip);O.TEMPLATE=['<a class="ql-preview" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(0),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(c.default.Attributor.Class),f=new l("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=f},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(4),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="blockquote",u.tagName="blockquote",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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(4),u=function(t){return t&&t.__esModule?t:{default:t}}(s),c=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(u.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],e.default=c},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(!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 s(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.ListItem=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=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)},l=n(0),f=r(l),d=n(4),h=r(d),p=n(24),v=r(p),y=function(t){function e(){return o(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),u(e,[{key:"format",value:function(t,n){t!==m.blotName||n?c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(f.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:c(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(h.default);y.blotName="list-item",y.tagName="LI";var m=function(t){function e(t){o(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),i=f.default.find(e.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return s(e,t),u(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=c(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),u(e,[{key:"format",value:function(t,e){this.children.length>0&&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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(6),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):s(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(c.default);l.blotName="script",l.tagName=["SUB","SUP"],e.default=l},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(6),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="strike",u.tagName="S",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=n(6),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="underline",u.tagName="U",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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(0),c=function(t){return t&&t.__esModule?t:{default:t}}(u),l=n(26),f=["alt","height","width"],d=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"format",value:function(t,n){f.indexOf(t)>-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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(4),c=n(26),l=function(t){return t&&t.__esModule?t:{default:t}}(c),f=["height","width"],d=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),a(e,[{key:"format",value:function(t,n){f.indexOf(t)>-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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(35),l=r(c),f=n(5),d=r(f),h=n(9),p=r(h),v=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,null,[{key:"create",value:function(t){var n=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(l.default);v.blotName="formula",v.className="ql-formula",v.tagName="SPAN";var y=function(t){function e(){i(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return a(e,t),s(e,null,[{key:"register",value:function(){d.default.register(v,!0)}}]),e}(p.default);e.FormulaBlot=v,e.default=y},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.CodeToken=e.CodeBlock=void 0;var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),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=n(0),l=r(c),f=n(5),d=r(f),h=n(9),p=r(h),v=n(13),y=r(v),m=function(t){function e(){return i(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||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='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=n(3),l=r(c),f=n(8),d=r(f),h=n(43),p=r(h),v=n(15),y=n(41),m=r(y),b=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(t){function e(t,n){i(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=b);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return a(e,t),u(e,[{key:"extendToolbar",value:function(t){this.tooltip=new w(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),m.default)}}]),e}(p.default);g.DEFAULTS=(0,l.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var w=function(t){function e(t,n){i(this,e);var r=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(d.default.events.EDITOR_CHANGE,function(t,e,n,i){if(t===d.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&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=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].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;/*!
21
21
  * jQuery JavaScript Library v1.11.1
22
22
  * http://jquery.com/
23
23
  *
@@ -40,7 +40,7 @@
40
40
  *
41
41
  * Date: 2014-04-18
42
42
  */
43
- function(t){function e(t,e,n,r){var i,o,a,s,c,f,d,h,p,v;if((e?e.ownerDocument||e:M)!==T&&A(e),e=e||T,n=n||[],!t||"string"!=typeof t)return n;if(1!==(s=e.nodeType)&&9!==s)return[];if(P&&!r){if(i=yt.exec(t))if(a=i[1]){if(9===s){if(!(o=e.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(a))&&q(e,o)&&o.id===a)return n.push(o),n}else{if(i[2])return G.apply(n,e.getElementsByTagName(t)),n;if((a=i[3])&&g.getElementsByClassName&&e.getElementsByClassName)return G.apply(n,e.getElementsByClassName(a)),n}if(g.qsa&&(!L||!L.test(t))){if(h=d=R,p=e,v=9===s&&t,1===s&&"object"!==e.nodeName.toLowerCase()){for(f=O(t),(d=e.getAttribute("id"))?h=d.replace(bt,"\\$&"):e.setAttribute("id",h),h="[id='"+h+"'] ",c=f.length;c--;)f[c]=h+l(f[c]);p=mt.test(t)&&u(e.parentNode)||e,v=f.join(",")}if(v)try{return G.apply(n,p.querySelectorAll(v)),n}catch(t){}finally{d||e.removeAttribute("id")}}}return x(t.replace(at,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>w.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="";e<n;e++)r+=t[e].value;return r}function f(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=F++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,a){var s,u,c=[B,o];if(a){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,a))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if(u=e[R]||(e[R]={}),(s=u[r])&&s[0]===B&&s[1]===o)return c[2]=s[2];if(u[r]=c,c[2]=t(e,n,a))return!0}}}function d(t){return t.length>1?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<o;i++)e(t,n[i],r);return r}function p(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,c=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),c&&e.push(s)));return a}function v(t,e,n,i,o,a){return i&&!i[R]&&(i=v(i)),o&&!o[R]&&(o=v(o,a)),r(function(r,a,s,u){var c,l,f,d=[],v=[],y=a.length,m=r||h(e||"*",s.nodeType?[s]:s,[]),b=!t||!r&&e?m:p(m,d,t,s,u),g=n?o||(r?t:y||i)?[]:a:b;if(n&&n(b,g,s,u),i)for(c=p(g,v),i(c,[],s,u),l=c.length;l--;)(f=c[l])&&(g[v[l]]=!(b[v[l]]=f));if(r){if(o||t){if(o){for(c=[],l=g.length;l--;)(f=g[l])&&c.push(b[l]=f);o(null,g=[],c,u)}for(l=g.length;l--;)(f=g[l])&&(c=o?J.call(r,f):d[l])>-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))}];s<i;s++)if(n=w.relative[t[s].type])h=[f(d(h),n)];else{if(n=w.filter[t[s].type].apply(null,t[s].matches),n[R]){for(r=++s;r<i&&!w.relative[t[r].type];r++);return v(s>1&&d(h),s>1&&l(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(at,"$1"),n,s<r&&y(t.slice(s,r)),r<i&&y(t=t.slice(r)),r<i&&l(t))}h.push(n)}return d(h)}function m(t,n){var i=n.length>0,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<n;e++)if(this[e]===t)return e;return-1},tt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",et="[\\x20\\t\\r\\n\\f]",nt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",rt=nt.replace("w","w#"),it="\\["+et+"*("+nt+")(?:"+et+"*([*^$|!~]?=)"+et+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+et+"*\\]",ot=":("+nt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",at=new RegExp("^"+et+"+|((?:^|[^\\\\])(?:\\\\.)*)"+et+"+$","g"),st=new RegExp("^"+et+"*,"+et+"*"),ut=new RegExp("^"+et+"*([>+~]|"+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="<div class='a'></div><div class='a i'></div>",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="<select msallowclip=''><option selected=''></option></select>",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&&lt.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<e;n+=2)t.push(n);return t}),odd:s(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:s(function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t}),gt:s(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},w.pseudos.nth=w.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[b]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(b);for(b in{submit:!0,reset:!0})w.pseudos[b]=function(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}(b);return c.prototype=w.filters=w.pseudos,w.setFilters=new c,O=e.tokenize=function(t,n){var r,i,o,a,s,u,c,l=U[t+" "];if(l)return n?0:l.slice(0);for(s=t,u=[],c=w.preFilter;s;){r&&!(i=st.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=ut.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(at," ")}),s=s.slice(r.length));for(a in w.filter)!(i=dt[a].exec(s))||c[a]&&!(i=c[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?e.error(t):U(t,u).slice(0)},E=e.compile=function(t,e){var n,r=[],i=[],o=H[t+" "];if(!o){for(e||(e=O(t)),n=e.length;n--;)o=y(e[n]),o[R]?r.push(o):i.push(o);o=H(t,m(i,r)),o.selector=t}return o},x=e.select=function(t,e,n,r){var i,o,a,s,c,f="function"==typeof t&&t,d=!r&&O(t=f.selector||t);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"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="<a href='#'></a>","#"===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="<input/>",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;e<i;e++)if(st.contains(r[e],this))return!0}));for(e=0;e<i;e++)st.find(t,r[e],n);return n=this.pushStack(i>1?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<r;e++)if(st.contains(this,n[e]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=ht.test(t)||"string"!=typeof t?st(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-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<i;o++)if(!1===s[o].apply(c[0],c[1])&&t.stopOnFalse){n=!1;break}e=!1,s&&(u?u.length&&l(u.shift()):n?s=[]:f.disable())},f={add:function(){if(s){var r=s.length;!function e(n){st.each(n,function(n,r){var i=st.type(r);"function"===i?t.unique&&f.has(r)||s.push(r):r&&r.length&&"string"!==i&&e(r)})}(arguments),e?i=s.length:n&&(a=r,l(n))}return this},remove:function(){return s&&st.each(arguments,function(t,n){for(var r;(r=st.inArray(n,s,r))>-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);i<a;i++)o[i]&&st.isFunction(o[i].promise)?o[i].promise().done(c(i,r,o)).fail(u.reject).progress(c(i,n,e)):--s;return s||u.resolveWith(r,o),u.promise()}});var Ot;st.fn.ready=function(t){return st.ready.promise().done(t),this},st.extend({isReady:!1,readyWait:1,holdReady:function(t){t?st.readyWait++:st.ready(!0)},ready:function(t){if(!0===t?!--st.readyWait:!st.isReady){if(!mt.body)return setTimeout(st.ready);st.isReady=!0,!0!==t&&--st.readyWait>0||(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<n?st.queue(this[0],t):void 0===e?this:this.each(function(){var n=st.queue(this,t,e);st._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&st.dequeue(this,t)})},dequeue:function(t){return this.each(function(){st.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=st.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=st._data(o[a],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var St=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,At=["Top","Right","Bottom","Left"],Tt=function(t,e){return t=e||t,"none"===st.css(t,"display")||!st.contains(t.ownerDocument,t)},Nt=st.access=function(t,e,n,r,i,o,a){var s=0,u=t.length,c=null==n;if("object"===st.type(n)){i=!0;for(s in n)st.access(t,e,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,st.isFunction(r)||(a=!0),c&&(a?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(st(t),n)})),e))for(;s<u;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:c?e.call(t):u?e(t[0],n):o},Pt=/^(?:checkbox|radio)$/i;!function(){var t=mt.createElement("input"),e=mt.createElement("div"),n=mt.createDocumentFragment();if(e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",at.leadingWhitespace=3===e.firstChild.nodeType,at.tbody=!e.getElementsByTagName("tbody").length,at.htmlSerialize=!!e.getElementsByTagName("link").length,at.html5Clone="<:nav></:nav>"!==mt.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,n.appendChild(t),at.appendChecked=t.checked,e.innerHTML="<textarea>x</textarea>",at.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,n.appendChild(e),e.innerHTML="<input type='radio' checked='checked' name='t'/>",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<s;o++)r=e[o],n=r.selector+" ",void 0===i[n]&&(i[n]=r.needsContext?st(n,this).index(u)>=0:st.find(n,this,null,[u]).length),i[n]&&i.push(r);i.length&&a.push({elem:u,handlers:i})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},fix:function(t){if(t[st.expando])return t;var e,n,r,i=t.type,o=t,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Dt.test(i)?this.mouseHooks:It.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new st.Event(o),e=r.length;e--;)n=r[e],t[n]=o[n];return t.target||(t.target=o.srcElement||mt),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,a.filter?a.filter(t,o):t},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button,a=e.fromElement;return null==t.pageX&&null!=e.clientX&&(r=t.target.ownerDocument||mt,i=r.documentElement,n=r.body,t.pageX=e.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&a&&(t.relatedTarget=a===t.target?e.toElement:a),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==b()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===b()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(st.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(t){return st.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=st.extend(new st.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?st.event.trigger(i,null,e):st.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},st.removeEvent=mt.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){var r="on"+e;t.detachEvent&&(typeof t[r]===xt&&(t[r]=null),t.detachEvent(r,n))},st.Event=function(t,e){if(!(this instanceof st.Event))return new st.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?y:m):this.type=t,e&&st.extend(this,e),this.timeStamp=t&&t.timeStamp||st.now(),this[st.expando]=!0},st.Event.prototype={isDefaultPrevented:m,isPropagationStopped:m,isImmediatePropagationStopped:m,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=y,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=y,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=y,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},st.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){st.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||st.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),at.submitBubbles||(st.event.special.submit={setup:function(){if(st.nodeName(this,"form"))return!1;st.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,n=st.nodeName(e,"input")||st.nodeName(e,"button")?e.form:void 0;n&&!st._data(n,"submitBubbles")&&(st.event.add(n,"submit._submit",function(t){t._submit_bubble=!0}),st._data(n,"submitBubbles",!0))})},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&st.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){if(st.nodeName(this,"form"))return!1;st.event.remove(this,"._submit")}}),at.changeBubbles||(st.event.special.change={setup:function(){if(Lt.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(st.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),st.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),st.event.simulate("change",this,t,!0)})),!1;st.event.add(this,"beforeactivate._change",function(t){var e=t.target;Lt.test(e.nodeName)&&!st._data(e,"changeBubbles")&&(st.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||st.event.simulate("change",this.parentNode,t,!0)}),st._data(e,"changeBubbles",!0))})},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return st.event.remove(this,"._change"),!Lt.test(this.nodeName)}}),at.focusinBubbles||st.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){st.event.simulate(e,t.target,st.event.fix(t),!0)};st.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=st._data(r,e);i||r.addEventListener(t,n,!0),st._data(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=st._data(r,e)-1;i?st._data(r,e,i):(r.removeEventListener(t,n,!0),st._removeData(r,e))}}}),st.fn.extend({on:function(t,e,n,r,i){var o,a;if("object"==typeof t){"string"!=typeof e&&(n=n||e,e=void 0);for(o in t)this.on(o,e,n,t[o],i);return this}if(null==n&&null==r?(r=e,n=e=void 0):null==r&&("string"==typeof e?(r=n,n=void 0):(r=n,n=e,e=void 0)),!1===r)r=m;else if(!r)return this;return 1===i&&(a=r,r=function(t){return st().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=st.guid++)),this.each(function(){st.event.add(this,t,r,n,e)})},one:function(t,e,n,r){return this.on(t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,st(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=m),this.each(function(){st.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){st.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return st.event.trigger(t,e,n,!0)}});var Mt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Bt=/ jQuery\d+="(?:null|\d+)"/g,Ft=new RegExp("<(?:"+Mt+")[\\s/>]","i"),zt=/^\s+/,Ut=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ht=/<([\w:]+)/,Wt=/<tbody/i,Kt=/<|&#?\w+;/,Vt=/<(?:script|style|link)/i,Qt=/checked\s*(?:[^=]|=\s*.checked.)/i,Yt=/^$|\/(?:java|ecma)script/i,$t=/^true\/(.*)/,Zt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Gt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:at.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},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<f;p++)if((o=t[p])||0===o)if("object"===st.type(o))st.merge(h,o.nodeType?[o]:o);else if(Kt.test(o)){for(s=s||d.appendChild(e.createElement("div")),u=(Ht.exec(o)||["",""])[1].toLowerCase(),l=Gt[u]||Gt._default,s.innerHTML=l[1]+o.replace(Ut,"<$1></$2>")+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)?"<table>"!==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></$2>");try{for(;n<r;n++)e=this[n]||{},1===e.nodeType&&(st.cleanData(w(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,st.cleanData(w(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=tt.apply([],t);var n,r,i,o,a,s,u=0,c=this.length,l=this,f=c-1,d=t[0],h=st.isFunction(d);if(h||c>1&&"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<c;u++)r=s,u!==f&&(r=st.clone(r,!0,!0),i&&st.merge(o,w(r,"script"))),e.call(this[u],r,u);if(i)for(a=o[o.length-1].ownerDocument,st.map(o,E),u=0;u<i;u++)r=o[u],Yt.test(r.type||"")&&!st._data(r,"globalEval")&&st.contains(a,r)&&(r.src?st._evalUrl&&st._evalUrl(r.src):st.globalEval((r.text||r.textContent||r.innerHTML||"").replace(Zt,"")));s=n=null}return this}}),st.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){st.fn[t]=function(t){for(var n,r=0,i=[],o=st(t),a=o.length-1;r<=a;r++)n=r===a?this:this.clone(!0),st(o[r])[e](n),et.apply(i,n.get());return this.pushStack(i)}});var te,ee={};!function(){var t;at.shrinkWrapBlocks=function(){if(null!=t)return t;t=!1;var e,n,r;return(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="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(mt.createElement("div")).style.width="5px",t=3!==e.offsetWidth),n.removeChild(r),t):void 0}}();var ne,re,ie=/^margin/,oe=new RegExp("^("+St+")(?!px)[a-z%]+$","i"),ae=/^(top|right|bottom|left)$/;n.getComputedStyle?(ne=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)},re=function(t,e,n){var r,i,o,a,s=t.style;return n=n||ne(t),a=n?n.getPropertyValue(e)||n[e]:void 0,n&&(""!==a||st.contains(t.ownerDocument,t)||(a=st.style(t,e)),oe.test(a)&&ie.test(e)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0===a?a:a+""}):mt.documentElement.currentStyle&&(ne=function(t){return t.currentStyle},re=function(t,e,n){var r,i,o,a,s=t.style;return n=n||ne(t),a=n?n[e]:void 0,null==a&&s&&s[e]&&(a=s[e]),oe.test(a)&&!ae.test(e)&&(r=s.left,i=t.runtimeStyle,o=i&&i.left,o&&(i.left=t.currentStyle.left),s.left="fontSize"===e?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"}),function(){function t(){var t,e,r,i;(e=mt.getElementsByTagName("body")[0])&&e.style&&(t=mt.createElement("div"),r=mt.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(r).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=a=!1,u=!0,n.getComputedStyle&&(o="1%"!==(n.getComputedStyle(t,null)||{}).top,a="4px"===(n.getComputedStyle(t,null)||{width:"4px"}).width,i=t.appendChild(mt.createElement("div")),i.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",u=!parseFloat((n.getComputedStyle(i,null)||{}).marginRight)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",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=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",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;a<i;a++)o[e[a]]=st.css(t,e[a],!1,r);return o}return void 0!==n?st.style(t,e,n):st.css(t,e)},t,e,arguments.length>1)},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<i;r++)n=t[r],_e[n]=_e[n]||[],_e[n].unshift(e)},prefilter:function(t,e){e?we.unshift(t):we.push(t)}}),st.speed=function(t,e,n){var r=t&&"object"==typeof t?st.extend({},t):{complete:n||!n&&e||st.isFunction(t)&&t,duration:t,easing:n&&e||e&&!st.isFunction(e)&&e};return r.duration=st.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in st.fx.speeds?st.fx.speeds[r.duration]:st.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){st.isFunction(r.old)&&r.old.call(this),r.queue&&st.dequeue(this,r.queue)},r},st.fn.extend({fadeTo:function(t,e,n,r){return this.filter(Tt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=st.isEmptyObject(t),o=st.speed(e,n,r),a=function(){var e=U(this,st.extend({},t),o);(i||st._data(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=st.timers,a=st._data(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ge.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||st.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=st._data(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=st.timers,a=r?r.length:0;for(n.finish=!0,st.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),st.each(["toggle","show","hide"],function(t,e){var n=st.fn[e];st.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(M(e,!0),t,r,i)}}),st.each({slideDown:M("show"),slideUp:M("hide"),slideToggle:M("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){st.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),st.timers=[],st.fx.tick=function(){var t,e=st.timers,n=0;for(ve=st.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||st.fx.stop(),ve=void 0},st.fx.timer=function(t){st.timers.push(t),t()?st.fx.start():st.timers.pop()},st.fx.interval=13,st.fx.start=function(){ye||(ye=setInterval(st.fx.tick,st.fx.interval))},st.fx.stop=function(){clearInterval(ye),ye=null},st.fx.speeds={slow:600,fast:200,_default:400},st.fn.delay=function(t,e){return t=st.fx?st.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var r=setTimeout(e,t);n.stop=function(){clearTimeout(r)}})},function(){var t,e,n,r,i;e=mt.createElement("div"),e.setAttribute("className","t"),e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",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<s;u++)if(n=r[u],(n.selected||u===i)&&(at.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!st.nodeName(n.parentNode,"optgroup"))){if(e=st(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=st.makeArray(e),a=i.length;a--;)if(r=i[a],st.inArray(st.valHooks.option.get(r),o)>=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<u;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Ne," "):" ")){for(o=0;i=e[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=st.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(t){var e,n,r,i,o,a,s=0,u=this.length,c=0===arguments.length||"string"==typeof t&&t;if(st.isFunction(t))return this.each(function(e){st(this).removeClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(_t)||[];s<u;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Ne," "):"")){for(o=0;i=e[o++];)for(;r.indexOf(" "+i+" ")>=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<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Ne," ").indexOf(e)>=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("<div>").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(17);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(30)),s=n(31),u=n(32),c=n(8),l=n(51);i.getDefaultName=r,t.exports=i},function(t,e,n){var r=n(17),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(30),u=n(28),c=n(31),l=n(32);i.getDefaultName=r,t.exports=i},function(t,e,n){var r=n(26);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(13),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(18)},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=[];++y<e;)h&&h[y].run();y=-1,e=p.length}h=null,v=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var l,f,d=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var h,p=[],v=!1,y=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];p.push(new u(t,e)),1!==p.length||v||i(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.prependListener=c,d.prependOnceListener=c,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(t,e,n){"use strict";function r(){return o().get()}function i(t){o().set(t)}function o(){return a.b.subState("contentStateId")}e.a=r,e.b=i;var a=n(4)},function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return u});var r=n(306),i=n(307),o=n(84),a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=function(t,e,n,i){var s=void 0;"string"==typeof t?(s=Object(o.d)(t),s.state=e):(s=a({},t),void 0===s.pathname&&(s.pathname=""),s.search?"?"!==s.search.charAt(0)&&(s.search="?"+s.search):s.search="",s.hash?"#"!==s.hash.charAt(0)&&(s.hash="#"+s.hash):s.hash="",void 0!==e&&void 0===s.state&&(s.state=e));try{s.pathname=decodeURI(s.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+s.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(s.key=n),i?s.pathname?"/"!==s.pathname.charAt(0)&&(s.pathname=Object(r.a)(s.pathname,i.pathname)):s.pathname=i.pathname:s.pathname||(s.pathname="/"),s},u=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&Object(i.a)(t.state,e.state)}},,,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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t,e){return y.b(t,e)}function u(t,e){return y.a(t,e)}function c(t,e){return l(t,e)>0?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(13),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<o;)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<o?(n=t.charCodeAt(i++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--)):r.push(e);return r}function l(t){return s(t,function(t){var e="";return t>65535&&(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<n;++r)t.charCodeAt(r)>=128&&a("not-basic"),v.push(t.charCodeAt(r));for(i=n>0?n+1:0;i<y;){for(o=m,s=1,u=_;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,!(c<d);u+=_)p=_-d,s>I(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<y;++s)(v=t[s])<128&&E.push(D(v));for(r=i=E.length,i&&E.push(S);r<y;){for(u=w,s=0;s<y;++s)(v=t[s])>=e&&v<u&&(u=v);for(m=r+1,u-e>I((w-n)/m)&&a("overflow"),n+=(u-e)*m,e=u,s=0;s<y;++s)if(v=t[s],v<e&&++n>w&&a("overflow"),v==e){for(l=n,f=_;p=f<=o?k:f>=o+O?O:f-o,!(l<p);f+=_)g=l-p,b=_-p,E.push(D(d(p+g%b,0))),l=I(g/b);E.push(D(d(l,0))),o=h(n,m,r==i),n=0,++r}++n,++e}return E.join("")}function y(t){return u(t,function(t){return A.test(t)?p(t.slice(4).toLowerCase()):t})}function m(t){return u(t,function(t){return T.test(t)?"xn--"+v(t):t})}var b=("object"==typeof e&&e&&e.nodeType,"object"==typeof t&&t&&t.nodeType,"object"==typeof r&&r);var g,w=2147483647,_=36,k=1,O=26,E=38,x=700,C=72,j=128,S="-",A=/^xn--/,T=/[^\x20-\x7E]/,N=/[\x2E\u3002\uFF0E\uFF61]/g,P={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 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;/*!
43
+ function(t){function e(t,e,n,r){var i,o,a,s,c,f,d,h,p,v;if((e?e.ownerDocument||e:M)!==T&&A(e),e=e||T,n=n||[],!t||"string"!=typeof t)return n;if(1!==(s=e.nodeType)&&9!==s)return[];if(P&&!r){if(i=yt.exec(t))if(a=i[1]){if(9===s){if(!(o=e.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(a))&&q(e,o)&&o.id===a)return n.push(o),n}else{if(i[2])return G.apply(n,e.getElementsByTagName(t)),n;if((a=i[3])&&g.getElementsByClassName&&e.getElementsByClassName)return G.apply(n,e.getElementsByClassName(a)),n}if(g.qsa&&(!L||!L.test(t))){if(h=d=R,p=e,v=9===s&&t,1===s&&"object"!==e.nodeName.toLowerCase()){for(f=O(t),(d=e.getAttribute("id"))?h=d.replace(bt,"\\$&"):e.setAttribute("id",h),h="[id='"+h+"'] ",c=f.length;c--;)f[c]=h+l(f[c]);p=mt.test(t)&&u(e.parentNode)||e,v=f.join(",")}if(v)try{return G.apply(n,p.querySelectorAll(v)),n}catch(t){}finally{d||e.removeAttribute("id")}}}return x(t.replace(at,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>w.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="";e<n;e++)r+=t[e].value;return r}function f(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=F++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,a){var s,u,c=[B,o];if(a){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,a))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if(u=e[R]||(e[R]={}),(s=u[r])&&s[0]===B&&s[1]===o)return c[2]=s[2];if(u[r]=c,c[2]=t(e,n,a))return!0}}}function d(t){return t.length>1?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<o;i++)e(t,n[i],r);return r}function p(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,c=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),c&&e.push(s)));return a}function v(t,e,n,i,o,a){return i&&!i[R]&&(i=v(i)),o&&!o[R]&&(o=v(o,a)),r(function(r,a,s,u){var c,l,f,d=[],v=[],y=a.length,m=r||h(e||"*",s.nodeType?[s]:s,[]),b=!t||!r&&e?m:p(m,d,t,s,u),g=n?o||(r?t:y||i)?[]:a:b;if(n&&n(b,g,s,u),i)for(c=p(g,v),i(c,[],s,u),l=c.length;l--;)(f=c[l])&&(g[v[l]]=!(b[v[l]]=f));if(r){if(o||t){if(o){for(c=[],l=g.length;l--;)(f=g[l])&&c.push(b[l]=f);o(null,g=[],c,u)}for(l=g.length;l--;)(f=g[l])&&(c=o?J.call(r,f):d[l])>-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))}];s<i;s++)if(n=w.relative[t[s].type])h=[f(d(h),n)];else{if(n=w.filter[t[s].type].apply(null,t[s].matches),n[R]){for(r=++s;r<i&&!w.relative[t[r].type];r++);return v(s>1&&d(h),s>1&&l(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(at,"$1"),n,s<r&&y(t.slice(s,r)),r<i&&y(t=t.slice(r)),r<i&&l(t))}h.push(n)}return d(h)}function m(t,n){var i=n.length>0,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<n;e++)if(this[e]===t)return e;return-1},tt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",et="[\\x20\\t\\r\\n\\f]",nt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",rt=nt.replace("w","w#"),it="\\["+et+"*("+nt+")(?:"+et+"*([*^$|!~]?=)"+et+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+et+"*\\]",ot=":("+nt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",at=new RegExp("^"+et+"+|((?:^|[^\\\\])(?:\\\\.)*)"+et+"+$","g"),st=new RegExp("^"+et+"*,"+et+"*"),ut=new RegExp("^"+et+"*([>+~]|"+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="<div class='a'></div><div class='a i'></div>",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="<select msallowclip=''><option selected=''></option></select>",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&&lt.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<e;n+=2)t.push(n);return t}),odd:s(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:s(function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t}),gt:s(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}},w.pseudos.nth=w.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[b]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(b);for(b in{submit:!0,reset:!0})w.pseudos[b]=function(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}(b);return c.prototype=w.filters=w.pseudos,w.setFilters=new c,O=e.tokenize=function(t,n){var r,i,o,a,s,u,c,l=U[t+" "];if(l)return n?0:l.slice(0);for(s=t,u=[],c=w.preFilter;s;){r&&!(i=st.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=ut.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(at," ")}),s=s.slice(r.length));for(a in w.filter)!(i=dt[a].exec(s))||c[a]&&!(i=c[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?e.error(t):U(t,u).slice(0)},E=e.compile=function(t,e){var n,r=[],i=[],o=H[t+" "];if(!o){for(e||(e=O(t)),n=e.length;n--;)o=y(e[n]),o[R]?r.push(o):i.push(o);o=H(t,m(i,r)),o.selector=t}return o},x=e.select=function(t,e,n,r){var i,o,a,s,c,f="function"==typeof t&&t,d=!r&&O(t=f.selector||t);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&"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="<a href='#'></a>","#"===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="<input/>",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;e<i;e++)if(st.contains(r[e],this))return!0}));for(e=0;e<i;e++)st.find(t,r[e],n);return n=this.pushStack(i>1?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<r;e++)if(st.contains(this,n[e]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=ht.test(t)||"string"!=typeof t?st(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-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<i;o++)if(!1===s[o].apply(c[0],c[1])&&t.stopOnFalse){n=!1;break}e=!1,s&&(u?u.length&&l(u.shift()):n?s=[]:f.disable())},f={add:function(){if(s){var r=s.length;!function e(n){st.each(n,function(n,r){var i=st.type(r);"function"===i?t.unique&&f.has(r)||s.push(r):r&&r.length&&"string"!==i&&e(r)})}(arguments),e?i=s.length:n&&(a=r,l(n))}return this},remove:function(){return s&&st.each(arguments,function(t,n){for(var r;(r=st.inArray(n,s,r))>-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);i<a;i++)o[i]&&st.isFunction(o[i].promise)?o[i].promise().done(c(i,r,o)).fail(u.reject).progress(c(i,n,e)):--s;return s||u.resolveWith(r,o),u.promise()}});var Ot;st.fn.ready=function(t){return st.ready.promise().done(t),this},st.extend({isReady:!1,readyWait:1,holdReady:function(t){t?st.readyWait++:st.ready(!0)},ready:function(t){if(!0===t?!--st.readyWait:!st.isReady){if(!mt.body)return setTimeout(st.ready);st.isReady=!0,!0!==t&&--st.readyWait>0||(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<n?st.queue(this[0],t):void 0===e?this:this.each(function(){var n=st.queue(this,t,e);st._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&st.dequeue(this,t)})},dequeue:function(t){return this.each(function(){st.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=st.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=st._data(o[a],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var St=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,At=["Top","Right","Bottom","Left"],Tt=function(t,e){return t=e||t,"none"===st.css(t,"display")||!st.contains(t.ownerDocument,t)},Nt=st.access=function(t,e,n,r,i,o,a){var s=0,u=t.length,c=null==n;if("object"===st.type(n)){i=!0;for(s in n)st.access(t,e,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,st.isFunction(r)||(a=!0),c&&(a?(e.call(t,r),e=null):(c=e,e=function(t,e,n){return c.call(st(t),n)})),e))for(;s<u;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:c?e.call(t):u?e(t[0],n):o},Pt=/^(?:checkbox|radio)$/i;!function(){var t=mt.createElement("input"),e=mt.createElement("div"),n=mt.createDocumentFragment();if(e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",at.leadingWhitespace=3===e.firstChild.nodeType,at.tbody=!e.getElementsByTagName("tbody").length,at.htmlSerialize=!!e.getElementsByTagName("link").length,at.html5Clone="<:nav></:nav>"!==mt.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,n.appendChild(t),at.appendChecked=t.checked,e.innerHTML="<textarea>x</textarea>",at.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,n.appendChild(e),e.innerHTML="<input type='radio' checked='checked' name='t'/>",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<s;o++)r=e[o],n=r.selector+" ",void 0===i[n]&&(i[n]=r.needsContext?st(n,this).index(u)>=0:st.find(n,this,null,[u]).length),i[n]&&i.push(r);i.length&&a.push({elem:u,handlers:i})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},fix:function(t){if(t[st.expando])return t;var e,n,r,i=t.type,o=t,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Dt.test(i)?this.mouseHooks:It.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new st.Event(o),e=r.length;e--;)n=r[e],t[n]=o[n];return t.target||(t.target=o.srcElement||mt),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,a.filter?a.filter(t,o):t},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i,o=e.button,a=e.fromElement;return null==t.pageX&&null!=e.clientX&&(r=t.target.ownerDocument||mt,i=r.documentElement,n=r.body,t.pageX=e.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&a&&(t.relatedTarget=a===t.target?e.toElement:a),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==b()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===b()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(st.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(t){return st.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=st.extend(new st.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?st.event.trigger(i,null,e):st.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},st.removeEvent=mt.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){var r="on"+e;t.detachEvent&&(typeof t[r]===xt&&(t[r]=null),t.detachEvent(r,n))},st.Event=function(t,e){if(!(this instanceof st.Event))return new st.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?y:m):this.type=t,e&&st.extend(this,e),this.timeStamp=t&&t.timeStamp||st.now(),this[st.expando]=!0},st.Event.prototype={isDefaultPrevented:m,isPropagationStopped:m,isImmediatePropagationStopped:m,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=y,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=y,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=y,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},st.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){st.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||st.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}}),at.submitBubbles||(st.event.special.submit={setup:function(){if(st.nodeName(this,"form"))return!1;st.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,n=st.nodeName(e,"input")||st.nodeName(e,"button")?e.form:void 0;n&&!st._data(n,"submitBubbles")&&(st.event.add(n,"submit._submit",function(t){t._submit_bubble=!0}),st._data(n,"submitBubbles",!0))})},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&st.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){if(st.nodeName(this,"form"))return!1;st.event.remove(this,"._submit")}}),at.changeBubbles||(st.event.special.change={setup:function(){if(Lt.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(st.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),st.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),st.event.simulate("change",this,t,!0)})),!1;st.event.add(this,"beforeactivate._change",function(t){var e=t.target;Lt.test(e.nodeName)&&!st._data(e,"changeBubbles")&&(st.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||st.event.simulate("change",this.parentNode,t,!0)}),st._data(e,"changeBubbles",!0))})},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return st.event.remove(this,"._change"),!Lt.test(this.nodeName)}}),at.focusinBubbles||st.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){st.event.simulate(e,t.target,st.event.fix(t),!0)};st.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=st._data(r,e);i||r.addEventListener(t,n,!0),st._data(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=st._data(r,e)-1;i?st._data(r,e,i):(r.removeEventListener(t,n,!0),st._removeData(r,e))}}}),st.fn.extend({on:function(t,e,n,r,i){var o,a;if("object"==typeof t){"string"!=typeof e&&(n=n||e,e=void 0);for(o in t)this.on(o,e,n,t[o],i);return this}if(null==n&&null==r?(r=e,n=e=void 0):null==r&&("string"==typeof e?(r=n,n=void 0):(r=n,n=e,e=void 0)),!1===r)r=m;else if(!r)return this;return 1===i&&(a=r,r=function(t){return st().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=st.guid++)),this.each(function(){st.event.add(this,t,r,n,e)})},one:function(t,e,n,r){return this.on(t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,st(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=m),this.each(function(){st.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){st.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return st.event.trigger(t,e,n,!0)}});var Mt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Bt=/ jQuery\d+="(?:null|\d+)"/g,Ft=new RegExp("<(?:"+Mt+")[\\s/>]","i"),zt=/^\s+/,Ut=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ht=/<([\w:]+)/,Wt=/<tbody/i,Kt=/<|&#?\w+;/,Vt=/<(?:script|style|link)/i,Qt=/checked\s*(?:[^=]|=\s*.checked.)/i,Yt=/^$|\/(?:java|ecma)script/i,$t=/^true\/(.*)/,Zt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Gt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:at.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},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<f;p++)if((o=t[p])||0===o)if("object"===st.type(o))st.merge(h,o.nodeType?[o]:o);else if(Kt.test(o)){for(s=s||d.appendChild(e.createElement("div")),u=(Ht.exec(o)||["",""])[1].toLowerCase(),l=Gt[u]||Gt._default,s.innerHTML=l[1]+o.replace(Ut,"<$1></$2>")+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)?"<table>"!==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></$2>");try{for(;n<r;n++)e=this[n]||{},1===e.nodeType&&(st.cleanData(w(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,st.cleanData(w(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=tt.apply([],t);var n,r,i,o,a,s,u=0,c=this.length,l=this,f=c-1,d=t[0],h=st.isFunction(d);if(h||c>1&&"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<c;u++)r=s,u!==f&&(r=st.clone(r,!0,!0),i&&st.merge(o,w(r,"script"))),e.call(this[u],r,u);if(i)for(a=o[o.length-1].ownerDocument,st.map(o,E),u=0;u<i;u++)r=o[u],Yt.test(r.type||"")&&!st._data(r,"globalEval")&&st.contains(a,r)&&(r.src?st._evalUrl&&st._evalUrl(r.src):st.globalEval((r.text||r.textContent||r.innerHTML||"").replace(Zt,"")));s=n=null}return this}}),st.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){st.fn[t]=function(t){for(var n,r=0,i=[],o=st(t),a=o.length-1;r<=a;r++)n=r===a?this:this.clone(!0),st(o[r])[e](n),et.apply(i,n.get());return this.pushStack(i)}});var te,ee={};!function(){var t;at.shrinkWrapBlocks=function(){if(null!=t)return t;t=!1;var e,n,r;return(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="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(mt.createElement("div")).style.width="5px",t=3!==e.offsetWidth),n.removeChild(r),t):void 0}}();var ne,re,ie=/^margin/,oe=new RegExp("^("+St+")(?!px)[a-z%]+$","i"),ae=/^(top|right|bottom|left)$/;n.getComputedStyle?(ne=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)},re=function(t,e,n){var r,i,o,a,s=t.style;return n=n||ne(t),a=n?n.getPropertyValue(e)||n[e]:void 0,n&&(""!==a||st.contains(t.ownerDocument,t)||(a=st.style(t,e)),oe.test(a)&&ie.test(e)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0===a?a:a+""}):mt.documentElement.currentStyle&&(ne=function(t){return t.currentStyle},re=function(t,e,n){var r,i,o,a,s=t.style;return n=n||ne(t),a=n?n[e]:void 0,null==a&&s&&s[e]&&(a=s[e]),oe.test(a)&&!ae.test(e)&&(r=s.left,i=t.runtimeStyle,o=i&&i.left,o&&(i.left=t.currentStyle.left),s.left="fontSize"===e?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"}),function(){function t(){var t,e,r,i;(e=mt.getElementsByTagName("body")[0])&&e.style&&(t=mt.createElement("div"),r=mt.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",e.appendChild(r).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=a=!1,u=!0,n.getComputedStyle&&(o="1%"!==(n.getComputedStyle(t,null)||{}).top,a="4px"===(n.getComputedStyle(t,null)||{width:"4px"}).width,i=t.appendChild(mt.createElement("div")),i.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",u=!parseFloat((n.getComputedStyle(i,null)||{}).marginRight)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",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=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",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;a<i;a++)o[e[a]]=st.css(t,e[a],!1,r);return o}return void 0!==n?st.style(t,e,n):st.css(t,e)},t,e,arguments.length>1)},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<i;r++)n=t[r],_e[n]=_e[n]||[],_e[n].unshift(e)},prefilter:function(t,e){e?we.unshift(t):we.push(t)}}),st.speed=function(t,e,n){var r=t&&"object"==typeof t?st.extend({},t):{complete:n||!n&&e||st.isFunction(t)&&t,duration:t,easing:n&&e||e&&!st.isFunction(e)&&e};return r.duration=st.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in st.fx.speeds?st.fx.speeds[r.duration]:st.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){st.isFunction(r.old)&&r.old.call(this),r.queue&&st.dequeue(this,r.queue)},r},st.fn.extend({fadeTo:function(t,e,n,r){return this.filter(Tt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=st.isEmptyObject(t),o=st.speed(e,n,r),a=function(){var e=U(this,st.extend({},t),o);(i||st._data(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=st.timers,a=st._data(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ge.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||st.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=st._data(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=st.timers,a=r?r.length:0;for(n.finish=!0,st.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),st.each(["toggle","show","hide"],function(t,e){var n=st.fn[e];st.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(M(e,!0),t,r,i)}}),st.each({slideDown:M("show"),slideUp:M("hide"),slideToggle:M("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){st.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),st.timers=[],st.fx.tick=function(){var t,e=st.timers,n=0;for(ve=st.now();n<e.length;n++)(t=e[n])()||e[n]!==t||e.splice(n--,1);e.length||st.fx.stop(),ve=void 0},st.fx.timer=function(t){st.timers.push(t),t()?st.fx.start():st.timers.pop()},st.fx.interval=13,st.fx.start=function(){ye||(ye=setInterval(st.fx.tick,st.fx.interval))},st.fx.stop=function(){clearInterval(ye),ye=null},st.fx.speeds={slow:600,fast:200,_default:400},st.fn.delay=function(t,e){return t=st.fx?st.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var r=setTimeout(e,t);n.stop=function(){clearTimeout(r)}})},function(){var t,e,n,r,i;e=mt.createElement("div"),e.setAttribute("className","t"),e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",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<s;u++)if(n=r[u],(n.selected||u===i)&&(at.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!st.nodeName(n.parentNode,"optgroup"))){if(e=st(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,o=st.makeArray(e),a=i.length;a--;)if(r=i[a],st.inArray(st.valHooks.option.get(r),o)>=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<u;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Ne," "):" ")){for(o=0;i=e[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=st.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(t){var e,n,r,i,o,a,s=0,u=this.length,c=0===arguments.length||"string"==typeof t&&t;if(st.isFunction(t))return this.each(function(e){st(this).removeClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(_t)||[];s<u;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Ne," "):"")){for(o=0;i=e[o++];)for(;r.indexOf(" "+i+" ")>=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<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Ne," ").indexOf(e)>=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("<div>").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=[];++y<e;)h&&h[y].run();y=-1,e=p.length}h=null,v=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var l,f,d=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var h,p=[],v=!1,y=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];p.push(new u(t,e)),1!==p.length||v||i(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.prependListener=c,d.prependOnceListener=c,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(t,e,n){"use strict";function r(){return o().get()}function i(t){o().set(t)}function o(){return a.b.subState("contentStateId")}e.a=r,e.b=i;var a=n(4)},function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return u});var r=n(305),i=n(306),o=n(84),a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=function(t,e,n,i){var s=void 0;"string"==typeof t?(s=Object(o.d)(t),s.state=e):(s=a({},t),void 0===s.pathname&&(s.pathname=""),s.search?"?"!==s.search.charAt(0)&&(s.search="?"+s.search):s.search="",s.hash?"#"!==s.hash.charAt(0)&&(s.hash="#"+s.hash):s.hash="",void 0!==e&&void 0===s.state&&(s.state=e));try{s.pathname=decodeURI(s.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+s.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(s.key=n),i?s.pathname?"/"!==s.pathname.charAt(0)&&(s.pathname=Object(r.a)(s.pathname,i.pathname)):s.pathname=i.pathname:s.pathname||(s.pathname="/"),s},u=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&Object(i.a)(t.state,e.state)}},,,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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t,e){return y.b(t,e)}function u(t,e){return y.a(t,e)}function c(t,e){return l(t,e)>0?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<o;)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<o?(n=t.charCodeAt(i++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--)):r.push(e);return r}function l(t){return s(t,function(t){var e="";return t>65535&&(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<n;++r)t.charCodeAt(r)>=128&&a("not-basic"),v.push(t.charCodeAt(r));for(i=n>0?n+1:0;i<y;){for(o=m,s=1,u=_;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,!(c<d);u+=_)p=_-d,s>I(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<y;++s)(v=t[s])<128&&E.push(D(v));for(r=i=E.length,i&&E.push(S);r<y;){for(u=w,s=0;s<y;++s)(v=t[s])>=e&&v<u&&(u=v);for(m=r+1,u-e>I((w-n)/m)&&a("overflow"),n+=(u-e)*m,e=u,s=0;s<y;++s)if(v=t[s],v<e&&++n>w&&a("overflow"),v==e){for(l=n,f=_;p=f<=o?k:f>=o+O?O:f-o,!(l<p);f+=_)g=l-p,b=_-p,E.push(D(d(p+g%b,0))),l=I(g/b);E.push(D(d(l,0))),o=h(n,m,r==i),n=0,++r}++n,++e}return E.join("")}function y(t){return u(t,function(t){return A.test(t)?p(t.slice(4).toLowerCase()):t})}function m(t){return u(t,function(t){return T.test(t)?"xn--"+v(t):t})}var b=("object"==typeof e&&e&&e.nodeType,"object"==typeof t&&t&&t.nodeType,"object"==typeof r&&r);var g,w=2147483647,_=36,k=1,O=26,E=38,x=700,C=72,j=128,S="-",A=/^xn--/,T=/[^\x20-\x7E]/,N=/[\x2E\u3002\uFF0E\uFF61]/g,P={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 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;/*!
44
44
  * URI.js - Mutating URLs
45
45
  * IPv6 Support
46
46
  *
@@ -66,7 +66,7 @@ function(t){function e(t,e,n,r){var i,o,a,s,c,f,d,h,p,v;if((e?e.ownerDocument||e
66
66
  * MIT License http://www.opensource.org/licenses/mit-license
67
67
  *
68
68
  */
69
- !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";var e=t&&t.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=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-rc1"),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(13)),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<r.length?o.resolve(a):t.retrieve(e).then(o.resolve,o.reject)})},function(t){Object(r.each)(n,function(e){return e.reject(t)})}),this.performRetrieval()}},t}();e.a=a},function(t,e,n){function r(t,e){return"function"==typeof e?i(e):e}var i=n(51);t.exports=function(t){try{return JSON.stringify(t,r,2)}catch(e){return String(t)}}},function(t,e,n){var r=n(17),i=n(66);t.exports=r("Boolean",i)},function(t,e,n){var r=n(17),i=n(26);t.exports=r("Nil",i)},function(t,e,n){var r=n(17),i=n(109);t.exports=r("Number",i)},function(t,e){t.exports=function(t){return"number"==typeof t&&isFinite(t)&&!isNaN(t)}},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&"union"===t.meta.kind}},function(t,e,n){function r(t){return"Array<"+a(t)+">"}function i(t,e){function n(e,n){if(f)return e;for(var r=!0,i=[],o=0,a=e.length;o<a;o++){var s=e[o],c=u(t,s,null);r=r&&s===c,i.push(c)}return r&&(i=e),i}var i=e||r(t),f=(a(t),s(t));return n.meta={kind:"list",type:t,name:e,identity:f},n.displayName=i,n.is=function(e){return l(e)&&e.every(function(e){return c(e,t)})},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(8)),s=n(30),u=n(31),c=n(32),l=n(29);i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t){return"{"+Object.keys(t).map(function(e){return e+": "+i(t[e])}).join(", ")+"}"}var i=n(8);t.exports=r},function(t,e,n){function r(t,e,n){var r=t.reduce(function(t,e){return l(t,e)},e);return n&&(r.displayName=n,r.meta.name=n),r}function i(t){return c(t)?t:t.meta.props}function o(t){return c(t)?null:t.meta.defaultProps}function a(t,e){Array.prototype.push.apply(t,e)}function s(t,e,n){var s={},c={},l=[],d={};e.forEach(function(t,e){var n=f(t),r=n.unrefinedType;a(l,n.predicates),u(s,i(r)),u(c,r.prototype),u(d,o(r),!0)}),n=t.getOptions(n),n.defaultProps=u(d,n.defaultProps,!0);var h=r(l,t(s,{strict:n.strict,defaultProps:n.defaultProps}),n.name);return u(h.prototype,c),h}var u=(n(5),n(10),n(29),n(80)),c=(n(197),n(198),n(28)),l=n(77),f=n(199);t.exports=s},function(t,e,n){function r(t){return"["+t.map(a).join(", ")+"]"}function i(t,e){function n(e,n){if(a)return e;for(var r=!0,i=[],o=0,s=t.length;o<s;o++){var u=t[o],l=e[o],f=c(u,l,null);r=r&&l===f,i.push(f)}return r&&(i=e),i}var i=e||r(t),a=t.every(s);return n.meta={kind:"tuple",types:t,name:e,identity:a},n.displayName=i,n.is=function(e){return u(e)&&e.length===t.length&&t.every(function(t,n){return l(e[n],t)})},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(8)),s=n(30),u=n(29),c=n(31),l=n(32);i.getDefaultName=r,t.exports=i},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}t.exports=n},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){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){var e={};return F.a.each(t,function(t,n){var r=i(t,2),o=r[0],a=r[1],s=c(n);if(Object(D.a)(s))e[s]=o;else{var u=i(a,2),h=u[0],p=u[1];e[s]=[l(h,n),d(f(h,p,o,n))]}}),e}function c(t){if(!Object(H.c)(t))throw new z.ArgumentError("Attribute names have to be in camel case.");return Object(H.e)(t)}function l(t,e){switch(t){case"enum":return"string";case"float":case"integer":return"number";case"multienum":return"stringlist";case"binary":case"date":case"html":case"link":case"linklist":case"reference":case"referencelist":case"string":case"stringlist":case"widgetlist":return t;default:throw new z.ArgumentError('Attribute "'.concat(e,'" is of unsupported type "').concat(t,'".'))}}function f(t,e,n,r){if(null===n)return n;switch(t){case"binary":return p(n,r);case"date":return v(n,r);case"enum":return y(e,n,r);case"float":return m(n,r);case"html":return b(n,r);case"integer":return g(n,r);case"link":return w(n,r);case"linklist":return _(n,r);case"multienum":return E(e,n,r);case"reference":return x(n,r);case"referencelist":return C(n,r);case"string":return T(n,r);case"stringlist":return N(n,r);case"widgetlist":return L(n,r);default:throw new z.InternalError('serializeAttributeValue is not implemented for "'.concat(t,'".'))}}function d(t){return(F.a.isString(t)||F.a.isArray(t))&&F.a.isEmpty(t)?null:t}function h(t,e,n){throw new z.ArgumentError("Unexpected value ".concat(Object(U.a)(t)," for")+' attribute "'.concat(e,'". Expected: ').concat(n))}function p(t,e){if(r(t,W.a))return{id:t.id()};h(t,e,"A Binary.")}function v(t,e){return F.a.isDate(t)?Object(q.c)(t):Object(q.d)(t)?t:void h(t,e,"A Date.")}function y(t,e,n){var r=t.values;if(F.a.contains(r,e))return e;h(e,n,'Valid attribute values are contained in its "values" array ['.concat(r,"]."))}function m(t,e){if(Object(q.e)(t))return t;var n=t;F.a.isNumber(t)&&(n=String(t)),h(n,e,"A Number, that is #isFinite().")}function b(t,e){if(F.a.isString(t))return t;h(t,e,"A String.")}function g(t,e){if(Object(q.f)(t))return t;h(t,e,"A Number, that is #isSafeInteger().")}function w(t,e){if(k(t))return O(t);h(t,e,"A Link instance.")}function _(t,e){if(F.a.isArray(t)&&F.a.every(t,k))return F.a.map(t,O);h(t,e,"An array of Link instances.")}function k(t){if(r(t,M.a))return!0;if(!F.a.isObject(t))return!1;var e=F.a.without(F.a.keys(t),"hash","obj_id","query","target","title","url");return F.a.isEmpty(e)}function O(t){var e={fragment:"function"==typeof t.hash?t.hash():t.hash,query:"function"==typeof t.query?t.query():t.query,target:"function"==typeof t.target?t.target():t.target,title:"function"==typeof t.title?t.title():t.title,url:"function"==typeof t.url?t.url():t.url};return e.obj_id="function"==typeof t.objId?t.objId():t.obj_id,F.a.mapObject(e,function(t){return t||null})}function E(t,e,n){var r=t.values,i="An array with values from ".concat(Object(U.a)(r),".");F.a.isArray(e)&&F.a.every(e,F.a.isString)||h(e,n,i);var o=F.a.difference(e,r);if(o.length){h(e,n,"".concat(i," Forbidden values: ").concat(Object(U.a)(o),"."))}return e}function x(t,e){if(S(t))return j(t);h(t,e,"A BasicObj or a String ID.")}function C(t,e){if(A(t))return F.a.map(t,j);h(t,e,"An array with BasicObjs or String IDs.")}function j(t){return r(t,I.default)?t.id():t}function S(t){return F.a.isString(t)||r(t,I.default)}function A(t){return F.a.isArray(t)&&F.a.every(t,function(t){return S(t)})}function T(t,e){if(P(t))return t.toString();h(t,e,"A String.")}function N(t,e){if(F.a.isArray(t)&&F.a.every(t,function(t){return P(t)}))return F.a.invoke(t,"toString");h(t,e,"An array of strings.")}function P(t){return F.a.isString(t)||F.a.isNumber(t)}function L(t,e){if(F.a.isArray(t)&&F.a.every(t,function(t){return r(t,R.a)}))return F.a.invoke(t,"id");h(t,e,"An array of BasicWidget instances.")}e.a=u;var I=n(3),D=n(47),q=n(48),R=n(27),M=n(34),B=n(0),F=n.n(B),z=n(1),U=n(41),H=n(23),W=n(25)},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){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){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}n.d(e,"a",function(){return b});var f=n(213),d=n(47),h=n(132),p=n(0),v=n.n(p),y=n(1),m=n(23),b=function(){function t(){u(this,t)}return l(t,[{key:"get",value:function(t,e){if(!Object(m.c)(t))throw new y.ArgumentError("Attribute names have to be in camel case.");var n=Object(m.e)(t);{if(!Object(d.a)(n)){var r=scrivito.typeInfo.normalize(e),o=i(r,2),a=o[0],s=o[1],u=this.getAttributeData(n);return u&&v.a.isArray(u)||(u=[]),f.a(this,u,a,s)}if(v.a.has(this._systemAttributes,n)){var c=this._systemAttributes[n];return"function"==typeof this[c]?this[c]():this[c]}}}},{key:"field",value:function(t,e){return new h.a({container:this,attributeName:t,typeInfo:scrivito.typeInfo.normalize(e)})}},{key:"widget",value:function(t){throw new TypeError("Override in subclass.")}},{key:"serializeAttributes",value:function(){var t=this,e={};return v.a.each(this.getData(),function(n,r){if(v.a.isArray(n)&&"widgetlist"===v.a.first(n)){var i=Object(m.a)(r),o=v.a.invoke(t.get(i,["widgetlist"]),"serializeAttributes");return void(e[r]=["widgetlist",o])}e[r]=n}),e}},{key:"_persistWidgets",value:function(t,e){v.a.each(e,function(e){var n=i(e,2),r=n[0],o=n[1];o&&"widgetlist"===o[0]&&v.a.each(r,function(e){e.isPersisted()||e.persistInObj(t)})})}},{key:"getAttributeData",value:function(){throw new TypeError("Override in subclass.")}},{key:"getData",value:function(){throw new TypeError("Override in subclass.")}},{key:"_objClass",get:function(){throw new TypeError("Override in subclass.")}}]),t}()},function(t,e,n){"use strict";function r(t,e,n){s.a.store(t,e,n)}function i(t){return scrivito.computeCacheKey(t)}function o(t,e){return new u.a(t,e)}function a(){return c.b.subState("objQuery")}e.d=r,e.a=i,e.b=o,e.c=a;var s=n(119),u=n(216),c=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}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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return u});var s=n(215),u=function(){function t(e,n){i(this,t),this._params=e,this._batchSize=n}return a(t,null,[{key:"store",value:function(t,e,n){s.a.store(t,e,n)}},{key:"count",value:function(t){return s.a.countFor(t)}}]),a(t,[{key:"iterator",value:function(){function t(){if(!n)return{done:!0};var i=n.objIds();if(r<i.length){var o=i[r];return r++,e[o]?t():(e[o]=!0,{value:o,done:!1})}return n=n.nextBatch(),r=0,t()}var e={},n=s.a.firstBatchFor(this._params,this._batchSize),r=0;return{next:t}}}]),t}()},function(t,e,n){"use strict";function r(){for(var t=Math.floor(Math.random()*Math.pow(16,8)).toString(16);t.length<8;)t="0".concat(t);return t}function i(){return r()+r()}n.d(e,"b",function(){return i}),n.d(e,"a",function(){return r})},function(t,e,n){"use strict";function r(t,e){for(var n=t.iterator(),r=[];r.length!==e;){var i=n.next();if(i.done)return r;r.push(i.value)}return r}function i(t){return t.iterator().next().value||null}e.a=r,e.b=i},function(t,e,n){"use strict";function r(t){return t.displayName||t.name}e.a=r},,,,,function(t,e){window.scrivito||(window.scrivito={}),window.scrivito.client={}},function(t,e,n){"use strict";function r(t){return i(1e3*t)}function i(t){return new scrivito.Promise(function(e){setTimeout(e,t)})}e.a=r,e.b=i;n(102)},function(t,e,n){"use strict";function r(t,e){Object(c.d)("navigateTo"),y(t,e);var n,r;if(e){n=e.params||{},r=e.hash;var a=Object(o.omit)(e,"hash","params");m(t,a),n=Object(o.extend)(a,n)}Object(f.e)(function(){return{obj:Object(d.c)(Object(o.isFunction)(t)?t():t),queryParameters:n,hash:r}},i)}function i(t){var e=t.obj,n=t.queryParameters,r=t.hash;e&&(Object(s.a)(),Object(h.d)({obj:e,queryParameters:n,hash:r}))}e.a=r;var o=n(0),a=(n.n(o),n(24)),s=n(295),u=n(59),c=n(4),l=n(39),f=n(60),d=n(22),h=n(72),p=a.a.union([a.a.Function,a.a.irreducible("null",function(t){return null===t}),u.d,u.b]),v=a.a.dict(a.a.String,a.a.maybe(a.a.String)),y=Object(l.a)("navigateTo",[["target",p],["options",a.a.maybe(a.a.struct({hash:a.a.maybe(a.a.String),params:a.a.maybe(v)},{strict:!1}))]],{docPermalink:"js-sdk/navigateTo"}),m=Object(l.a)("navigateTo",[["target",p],["options",a.a.maybe(v)]],{docPermalink:"js-sdk/navigateTo"})},function(t,e,n){"use strict";function r(t){return function(){return d.a.retrieveBinaryMetadata(t).then(function(t){return o(t)})}}function i(t){return h.b.subState("metadataCollection").subState(t)}function o(t){for(var e=t.meta_data,n={},r=0,i=Object.keys(e);r<i.length;r++){var o=i[r],a=e[o],u=a[0],c=a[1];if(null===c||void 0===c)throw new l.InternalError('Invalid backend value "null" or "undefined" for metadata "'+o+'"');var f=void 0;if(u===s.Date){if("string"!=typeof c)throw new l.InternalError('Invalid non-string backend value for a date metadata "'+o+'"');f=Object(p.a)(c)}else f=c;n[o]=f}return n}function a(t){if(!Object(f.c)(t))throw new l.ArgumentError('Metadata key "'+t+'" is not in camel case.')}var s,u=n(0),c=(n.n(u),n(12)),l=n(1),f=n(23),d=n(43),h=n(4),p=n(48);!function(t){t.Date="date",t.Number="number",t.String="string",t.Stringlist="stringlist"}(s||(s={}));var v=function(){function t(t){this._binaryId=t,t&&(this._loadableData=new c.b({state:i(t),loader:r(t)}))}return t.store=function(t,e){new c.b({state:i(t),loader:r(t)}).set(o(e))},t.prototype.get=function(t){a(t);var e=this._getData();if(e)return e[Object(f.e)(t)]},t.prototype.keys=function(){var t=this._getData();return t?Object(u.map)(Object(u.keys)(t),f.a):[]},Object.defineProperty(t.prototype,"binaryId",{get:function(){return this._binaryId},enumerable:!0,configurable:!0}),t.prototype._getData=function(){if(this._loadableData)return this._loadableData.get()},t}();e.a=v},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var r=n(24),i=r.a.interface({size:r.a.Number,type:r.a.String},{name:"Blob",strict:!1}),o=i.extend({name:r.a.String},{name:"File",strict:!1})},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,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(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}n.d(e,"a",function(){return p});var u=n(3),c=n(214),l=n(4),f=n(12),d=n(0),h=(n.n(d),n(1)),p=function(){function t(e){var n=e.container,r=e.attributeName,i=e.typeInfo;o(this,t),this._container=n,this._attributeName=r,this._typeInfo=i}return s(t,[{key:"get",value:function(){return this._container.get(this.name(),this._typeInfo)}},{key:"getWithoutLoading",value:function(){var t=this;return Object(f.a)(function(){return t.get()}).result}},{key:"update",value:function(t){this._container.update(i({},this.name(),[t,this._typeInfo]))}},{key:"container",value:function(){return this._container}},{key:"obj",value:function(){return this.container().obj()}},{key:"name",value:function(){return this._attributeName}},{key:"type",value:function(){return this._typeInfo[0]}},{key:"typeOptions",value:function(){return this._typeInfo[1]||{}}},{key:"equals",value:function(e){return!!r(e,t)&&(this.container().equals(e.container())&&this.name()===e.name())}},{key:"values",value:function(){return this._assertValidTypes(["enum","multienum"],"Only enum and multienum attributes can have values"),this._sortValuesByLocalization(this.typeOptions().values)}},{key:"titleForValue",value:function(t){this._assertValidTypes(["enum","multienum"],"Only enum and multienum attributes can have localized values");var e=Object(d.findWhere)(this.typeOptions().valuesLocalization,{value:t});return e&&e.title||t}},{key:"toString",value:function(){var t=this._dataForId(),e=t.name,n=t.objId,r=t.widgetId,i="<BasicField name=".concat(e," objId=").concat(n);return i+=r?" widgetId=".concat(r,">"):">"}},{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:"subscribe",value:function(t){var e=this,n=this.getWithoutLoading();return l.g(function(){var r=e.getWithoutLoading();Object(c.a)(n,r)||(n=r,t())})}},{key:"_assertValidTypes",value:function(t,e){if(!Object(d.include)(t,this.type()))throw new h.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(d.sortBy)(t,function(n){var r=Object(d.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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return f});var s=n(3),u=n(42),c=n(1),l=n(22),f=function(){function t(e){i(this,t),this._registry=e}return a(t,[{key:"getObj",value:function(t,e){var n=s.default.get(e);return this._checkObjClassAndWrapInAppClass(t,n)}},{key:"getObjIncludingDeleted",value:function(t,e){var n=s.default.getIncludingDeleted(e);return this._checkObjClassAndWrapInAppClass(t,n)}},{key:"read",value:function(t,e){var n=u.a.basicFieldFor(t,e);if(n){var r=n.get();return Object(l.e)(this._registry,r)}}},{key:"update",value:function(t,e){var n=this._registry.objClassNameFor(t.constructor);if(!n){var r;throw r=t.constructor===this._registry.defaultClassForObjs?"Obj":"Widget",new c.ArgumentError('Updating is not supported on the base class "'.concat(r,'".'))}if(e.constructor!==Object)throw new c.ArgumentError("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");var i=u.a.forInstance(t),o=Object(l.b)(e,i,n);t._scrivitoPrivateContent.update(o)}},{key:"wrapInAppClass",value:function(t){return Object(l.e)(this._registry,t)}},{key:"_checkObjClassAndWrapInAppClass",value:function(t,e){var n=this._registry.objClassNameFor(t);if(n&&n!==e.objClass())throw new c.ResourceNotFoundError('Obj with id "'.concat(e.id(),'" is not of type "').concat(n,'".'));return this.wrapInAppClass(e)}}]),t}()},function(t,e,n){"use strict";var r=n(83),i=n.n(r),o=function(){var t=null,e=function(e){return i()(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},n=function(e,n,r,o){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof r?r(a,o):(i()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==a)}else o(!0)},r=[];return{setPrompt:e,confirmTransitionTo:n,appendListener:function(t){var e=!0,n=function(){e&&t.apply(void 0,arguments)};return r.push(n),function(){e=!1,r=r.filter(function(t){return t!==n})}},notifyListeners:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];r.forEach(function(t){return t.apply(void 0,e)})}}};e.a=o},function(t,e,n){"use strict";function r(t){return t.replace(s,function(t,e){var n=Object(i.a)(e),r=o.i(n);return r&&(Object(a.a)(r,e),o.g(r))?o.b(r,t):n.toString()})}e.a=r;var i=n(314),o=n(63),a=n(315),s=/\bobjid:([a-f0-9]{16})\b([^"']*)/g},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 o(t),r(t,l.a)?u(t):r(t,d.a)?a(t):Object(h.a)(t)?s(t):Object(p.a)({obj:t})}function o(t){if(!t)throw new f.ArgumentError("Missing target.");if(!r(t,l.a)&&!r(t,c.default)&&!r(t,d.a))throw new f.ArgumentError("Target is invalid. Valid targets are instances of Obj or Link.")}function a(t){return t.url()}function s(t){var e=t.get("blob",["binary"]);return e?a(e):Object(p.a)({obj:t})}function u(t){return t.isExternal()?t.url():i(t.obj())}e.a=i;var c=n(3),l=n(34),f=n(1),d=n(25),h=n(227),p=n(63)},function(t,e,n){"use strict";function r(){if(o)return{filters:o}}function i(t){if(d.b){j(t),t.filters&&(o=t.filters);var e=t.baseFilter;if(e){var n=e.query;n&&d.b.configureContentBrowser(Object(s.a)({baseQuery:n}))}}}e.b=r,e.a=i;var o,a=n(0),s=(n.n(a),n(138)),u=n(39),c=n(24),l=n(59),f=n(54),d=n(18),h=c.a.union([c.a.String,c.a.list(c.a.String)]),p=c.a.enums.of(Object(a.intersection)(f.a,["contains","containsPrefix","equals","startsWith","isGreaterThan","isLessThan"])),v=c.a.union([c.a.String,c.a.Date,c.a.Nil,c.a.Number,c.a.list(c.a.union([c.a.String,c.a.Nil])),c.a.list(c.a.union([c.a.Date,c.a.Nil])),c.a.list(c.a.union([c.a.Number,c.a.Nil]))],"SearchValue"),y=c.a.struct({title:c.a.maybe(c.a.String)}),m=y.extend({field:c.a.maybe(h),operator:c.a.maybe(p),expanded:c.a.maybe(c.a.Boolean)}),b=y.extend({value:c.a.maybe(v),query:c.a.maybe(l.c),selected:c.a.maybe(c.a.Boolean)}),g=m.extend({type:c.a.enums.of(["radioButton"]),options:c.a.dict(c.a.String,b)},"RadioFilterDefinition"),w=y.extend({value:c.a.maybe(v),selected:c.a.maybe(c.a.Boolean)}),_=m.extend({type:c.a.enums.of(["checkbox"]),options:c.a.dict(c.a.String,w)},"CheckboxFilterDefinition"),k=c.a.declare("TreeFilterDefinition");k.define(y.extend({type:c.a.maybe(c.a.enums.of("tree")),icon:c.a.maybe(c.a.String),query:c.a.maybe(l.c),expanded:c.a.maybe(c.a.Boolean),value:c.a.maybe(v),field:c.a.maybe(h),operator:c.a.maybe(p),selected:c.a.maybe(c.a.Boolean),options:c.a.maybe(c.a.dict(c.a.String,k))}));var O=c.a.union([k,_,g]);O.dispatch=function(t){switch(t.type||"tree"){case"tree":return k;case"radioButton":return g;case"checkbox":return _}};var E=c.a.dict(c.a.String,O),x=c.a.struct({query:l.c}),C=c.a.struct({filters:c.a.maybe(E),baseFilter:c.a.maybe(x)},"Configuration"),j=Object(u.a)("configureContentBrowser",[["configuration",C]],{docPermalink:"js-sdk/configureContentBrowser"})},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){if(!t)return t;switch(i(t)){case"string":case"number":case"boolean":return t;case"object":return r(t._scrivitoPrivateContent,c.b)?o(t._scrivitoPrivateContent.params()):Object(u.isDate)(t)?t:Object(u.isArray)(t)?a(t):s(t)}}function a(t){var e=[];return t.forEach(function(t){var n=o(t);void 0!==n&&e.push(n)}),e}function s(t){var e={};return Object(u.each)(t,function(t,n){var r=o(t);void 0!==r&&(e[n]=r)}),e}e.a=o;var u=n(0),c=(n.n(u),n(54))},function(t,e,n){"use strict";var r=function(){function t(t){var e=t.controller;this._controller=e}return t.canEdit=function(t){t.type,t.tag;return!1},t.prototype.onClick=function(t){},t.prototype.contentDidChange=function(){},t.prototype.editorWillBeActivated=function(){},t.prototype.editorWillBeDeactivated=function(){},t.prototype.editorDomWasMounted=function(t){},t.prototype.editorDomWasUnmounted=function(){},t}();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(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){return u(t)||s(t)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function s(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function u(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}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,e){if(!r(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){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t}function v(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?m(t):e}function y(t){return(y=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t,e){var n=Object(A.a)(t),r=n.objId,i=n.widgetId;P.b.insertWidget(r,i,e)}n.d(e,"a",function(){return q});var g=n(238),w=n.n(g),_=n(14),k=n.n(_),O=n(85),E=n.n(O),x=n(0),C=(n.n(x),n(87)),j=n(42),S=n(62),A=n(141),T=n(15),N=n(1),P=n(18),L=n(352),I=n(240),D=n(241),q="_scrivitoWidget",R=function(t){function e(t){var n;return l(this,e),n=v(this,y(e).call(this,t)),n.state={hasFocus:!1,isDragged:!1,isFocusFadedOut:!0},n._onMouseOver=n._onMouseOver.bind(m(m(n))),n._onMouseOut=n._onMouseOut.bind(m(m(n))),n._onWidgetFocus=n._onWidgetFocus.bind(m(m(n))),n._onWidgetBlur=n._onWidgetBlur.bind(m(m(n))),n._lockFocus=n._lockFocus.bind(m(m(n))),n._unlockFocus=n._unlockFocus.bind(m(m(n))),n._setDragState=n._setDragState.bind(m(m(n))),n}return p(e,[{key:"componentDidMount",value:function(){this._registerDropZone(),this._focusToken=scrivito.WidgetFocus.subscribe({onFocus:this._onWidgetFocus,onBlur:this._onWidgetBlur})}},{key:"componentDidUpdate",value:function(){this._widgetRef!==this._dropZoneWidgetRef&&this._registerDropZone()}},{key:"componentWillUnmount",value:function(){scrivito.WidgetFocus.unsubscribe(this._focusToken)}},{key:"getChildContext",value:function(){return c({},q,null)}},{key:"render",value:function(){var t=this,e=this.context[q];if(!e)throw new N.ScrivitoError("Detected inappropriate placing of Scrivito.WidgetTag: It is intended to be used exclusively as top-level element inside a Widget component.");return Object(C.a)()?k.a.createElement(this.props.tag,Object(x.extend)(Object(x.omit)(this.props,"tag","className","style"),{ref:function(e){return t._widgetRef=e},className:this._className(),style:this._style(),onMouseOver:this._onMouseOver,onMouseOut:this._onMouseOut,children:[k.a.createElement(L.a,{key:"menuMarker",widget:e,setDragState:this._setDragState,onMouseOver:this._lockFocus,onMouseOut:this._unlockFocus})].concat(o(k.a.Children.toArray(this.props.children)),[this._renderOptionMarker("top"),this._renderOptionMarker("bottom")])},this._dataProps())):k.a.createElement(this.props.tag,Object(x.omit)(this.props,"tag"))}},{key:"_setDragState",value:function(t){this.setState({isDragging:t})}},{key:"_className",value:function(){return this._hasVisibleFocus()?this.props.className?"".concat(this.props.className," scrivito_active scrivito_entered"):"scrivito_active scrivito_entered":this.props.className}},{key:"_hasVisibleFocus",value:function(){return this.state.hasFocus&&!this.state.isFocusFadedOut}},{key:"_dataProps",value:function(){var t={"data-scrivito-private-widget":"true","data-scrivito-private-dropzone":"true"};return this._isStructureMarker()&&(t["data-scrivito-private-structure-widget"]="true"),this.state.isDragging&&(t["data-scrivito-private-dropback"]="true"),t}},{key:"_style",value:function(){return this.state.isDragging?this.props.style?Object(x.extend)(this.props.style,{opacity:.5}):{opacity:.5}:this.props.style}},{key:"_isStructureMarker",value:function(){var t=Object(S.a)(),e=t.widgetClassFor(this.context[q].objClass()),n=j.a.forClass(e);return!!n&&Object(x.some)(n.attributes,function(t,e){return"widgetlist"===t[0]})}},{key:"_onMouseOver",value:function(t){t.stopPropagation(),scrivito.WidgetFocus.notifyFocus(this._focusToken)}},{key:"_onMouseOut",value:function(t){t.stopPropagation(),scrivito.WidgetFocus.notifyBlur(this._focusToken)}},{key:"_onWidgetFocus",value:function(){var t=this;this.setState({hasFocus:!0,isFocusFadedOut:!1}),this._fadeOutFocusTimeout&&clearTimeout(this._fadeOutFocusTimeout),this._isStructureMarker()||(this._fadeOutFocusTimeout=setTimeout(function(){return t._fadeOutFocus()},1e3))}},{key:"_fadeOutFocus",value:function(){this.state.isFocusFadedOut||this._isFocusLocked||this.setState({isFocusFadedOut:!0})}},{key:"_lockFocus",value:function(){this._isFocusLocked=!0}},{key:"_unlockFocus",value:function(){this._isFocusLocked=!1}},{key:"_onWidgetBlur",value:function(){this.setState({hasFocus:!1})}},{key:"_renderOptionMarker",value:function(t){return k.a.createElement(I.a,{key:"optionMarker-".concat(t),position:t,widget:this.context[q],insertWidget:b,isAlwaysShown:D.b,onMouseOver:this._lockFocus,onMouseOut:this._unlockFocus})}},{key:"_registerDropZone",value:function(){if(Object(C.a)()&&this._widgetRef){var t=Object(A.a)(this.context[q]),e=t.objId,n=t.widgetId,r=E.a.findDOMNode(this._widgetRef);P.b.registerWidgetDropZoneInDom(r,e,n),this._dropZoneWidgetRef=this._widgetRef}}}]),f(e,t),e}(k.a.Component);R.displayName="Scrivito.WidgetTag",R.defaultProps={tag:"div"},R.contextTypes=c({},q,w.a.object),R.childContextTypes=c({},q,w.a.object),e.b=Object(T.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(t){return r(t,o.default)?{objId:t.id()}:{objId:t.obj().id(),widgetId:t.id()}}e.a=i;var o=n(3)},,,,,,,,,,,function(t,e,n){"use strict";function r(t){i();var e=t.location,n=e.hash,r=n.indexOf(u);if(!(r<0)){var o=n.substr(r+u.length,3),a=n.substring(0,r);"#"===a&&(a="");var c=e.href.toString().replace(n,a);s=parseInt(o,10)||0,t.history.replaceState({},"",c)}}function i(){s=0}function o(t){var e=t.toString();return t.hash||(e="".concat(e,"#")),"".concat(e).concat(u).concat(s+1)}function a(){return s}var s,u="&scrivito.authFailedCount=";e.a={init:r,augmentedRedirectUrl:o,reset:i,currentFailureCount:a}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&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(18);!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<n;e++)o(t,t._deferreds[e]);t._deferreds=null}function c(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function l(t,e){var n=!1;try{t(function(t){n||(n=!0,a(e,t))},function(t){n||(n=!0,s(e,t))})}catch(t){if(n)return;n=!0,s(e,t)}}var f=setTimeout;i.prototype.catch=function(t){return this.then(null,t)},i.prototype.then=function(t,e){var r=new this.constructor(n);return o(this,new c(t,e,r)),r},i.prototype.finally=function(t){var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){return e.reject(n)})})},i.all=function(t){return new i(function(e,n){function r(t,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(e){r(t,e)},n)}i[t]=a,0==--o&&e(i)}catch(t){n(t)}}if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(t);if(0===i.length)return e([]);for(var o=i.length,a=0;a<i.length;a++)r(a,i[a])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(t){return new i(function(e,n){n(t)})},i.race=function(t){return new i(function(e,n){for(var r=0,i=t.length;r<i;r++)t[r].then(e,n)})},i._immediateFn="function"==typeof e&&function(t){e(t)}||function(t){f(t,0)},i._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},t.exports=i}).call(e,n(170).setImmediate)},function(t,e,n){(function(t){function r(t,e){this._id=t,this._clearFn=e}var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;e.setTimeout=function(){return new r(o.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new r(o.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;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;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return c[u]=r,s(u),u++}function i(t){delete c[t]}function o(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}function a(t){if(l)setTimeout(a,0,t);else{var e=c[t];if(e){l=!0;try{o(e)}finally{i(t),l=!1}}}}if(!t.setImmediate){var s,u=1,c={},l=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?function(){s=function(t){e.nextTick(function(){a(t)})}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&a(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),s=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){a(t.data)},s=function(e){t.port2.postMessage(e)}}():f&&"onreadystatechange"in f.createElement("script")?function(){var t=f.documentElement;s=function(e){var n=f.createElement("script");n.onreadystatechange=function(){a(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():function(){s=function(t){setTimeout(a,0,t)}}(),d.setImmediate=r,d.clearImmediate=i}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(40),n(91))},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){function e(e){if(!u(e))throw e;return o(e.details).then(t)}return t(s()).catch(e)}function o(t){if(!l){var e=t.verificator,n=t.data,r=Object(h.a)(e.id,e.url).then(function(t){return new scrivito.Promise(function(e){function r(t){f=t,e(f.authorization)}t(n,r)})});l={challenge:{verificator:e,data:n},promise:p.a(r,function(){l=void 0})}}return l.promise}function a(){l=void 0,f=void 0}function s(){if(f)return f.expiresAfter<new Date?void(f=void 0):f.authorization}function u(t){return r(t,d.UnauthorizedError)&&t.backendCode===y}function c(){var t=s();if(t)return"Authorization: "+t;if(l){var e=l.challenge;return"Pending computation: "+e.verificator.id+" with "+e.data}return null}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"ERROR_CODE_CLIENT_VERIFICATION_REQUIRED",function(){return y}),e.perform=i,e.reset=a,e.currentState=c;var l,f,d=n(1),h=n(173),p=n(50),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)}}(),y="client_verification_required";!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}v(e,t)}(d.UnauthorizedError)},function(t,e,n){"use strict";function r(t,e){var n=i[t];return n||(n=new o.a,i[t]=n,Object(a.b)(e)),n.promise}e.a=r;var i,o=n(13),a=n(153);!function(){i={}}(),window._scrivitoRegisterVerificator=function(t,e){i[t].resolve(e)}},function(t,e,n){"use strict";var r=n(88),i=n(53),o=n(12),a=n(4),s=n(1),u=n(43),c=function(){function t(t,e){var n=this;this._loadableData=new o.b({state:e,loader:function(t){var e=t.push;return u.a.retrieveObj(scrivito.currentWorkspaceId(),n._id).then(function(t){return e(function(){return n._replication().notifyBackendState(t)}),t})}}),this._id=t}return t.prototype.get=function(){return Object(a.e)("for performance reasons, avoid this method when rendering"),this._loadableData.get()},t.prototype.getWidget=function(t){return Object(a.e)("for performance reasons, avoid this method when rendering"),this.getWidgetState(t).get()},t.prototype.getAttribute=function(t){if("_widget_pool"===t)throw new s.InternalError("_widget_pool is not an attribute, use getWidget or getWidgetAttribute");return this.getSubReader(t).get()},t.prototype.getWidgetAttribute=function(t,e){return this.getWidgetState(t).subState(e).get()},t.prototype.isNonExistent=function(){return!!this.getSubReader("_deleted").get()||!this.getSubReader("_id").get()},t.prototype.set=function(t){Object(a.d)("Changing CMS content"),this._loadableData.set(t)},t.prototype.setError=function(t){this._loadableData.setError(t)},t.prototype.ensureAvailable=function(){return this._loadableData.ensureAvailable()},t.prototype.isAvailable=function(){return this._loadableData.isAvailable()},t.prototype.update=function(t){var e=r.a(this.get(),t);this.set(e),this._replication().notifyLocalState(e)},t.prototype.finishSaving=function(){return this._replication().finishSaving()},t.prototype._replication=function(){return i.a.get(this._id)},t.prototype.getWidgetState=function(t){return this.getSubReader("_widget_pool").subState(t)},t.prototype.getSubReader=function(t){return this._loadableData.reader().subState(t)},t}();e.a=c},function(t,e,n){"use strict";var r=function(){function t(t){this.container=t}return t.prototype.reader=function(){return this.container.reader().subState("value")},t.prototype.status=function(){return this.getStateKey("status")||"MISSING"},t.prototype.value=function(){return this.getStateKey("value")},t.prototype.error=function(){return this.getStateKey("error")},t.prototype.version=function(){return this.getStateKey("version")},t.prototype.transitionToMissing=function(){this.setState({status:void 0})},t.prototype.transitionToAvailable=function(t,e){this.setState({status:"AVAILABLE",value:t,version:e})},t.prototype.transitionToError=function(t,e){this.setState({status:"ERROR",error:t,version:e})},t.prototype.setState=function(t){this.container.set(t)},t.prototype.getStateKey=function(t){return this.container.subState(t).get()},t}();e.a=r},function(t,e,n){"use strict";function r(t){return void 0!==a[t]}function i(t){delete a[t]}function o(t,e,n,o){function u(t){l()&&t()}if(!r(t)){var c=s++,l=function(){return a[t]===c},f=[],d=function(t){return f.push(t)},h=function(){return f.forEach(function(t){return t()})};e({push:d,wasCancelled:function(){return!l()}}).then(function(e){return u(function(){return scrivito.batchedStateUpdater.add(function(){i(t),n(e),h()})})},function(e){return u(function(){return scrivito.batchedStateUpdater.add(function(){i(t),o(e),h()})})}),a[t]=c}}e.a=r,e.c=i,e.b=o;var a={},s=0},function(t,e,n){"use strict";function r(t){return i.a.get("blobs/"+encodeURIComponent(t||"")+"/meta_data")}e.a=r;var i=n(21)},function(t,e,n){"use strict";function r(t){var e=scrivito.currentWorkspaceId();return o.a.get("workspaces/"+e+"/objs/mget",{ids:t,include_deleted:!0}).then(function(t){return t.results})}function i(t){return s.retrieve(t).then(function(e){return e||{_deleted:t}})}e.a=i;var o=n(21),a=n(104),s=new a.a(r,{batchSize:17})},function(t,e,n){"use strict";function r(t){var e=scrivito.currentWorkspaceId(),n=a({consistent:!0},t);return o.a.get("workspaces/"+e+"/objs/search",n).then(function(t){var e=i(t);return{results:e.results.map(function(t){return t.id}),continuation:e.continuation,total:e.total,objs:e.objs}})}function i(t){var e={results:t.results,total:t.total},n=t.continuation;void 0!==n&&(e.continuation=n);var r=t.objs;return void 0!==r&&(e.objs=r),e}e.a=r;var o=n(21),a=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}},function(t,e,n){"use strict";function r(t,e){return i.a.get("workspaces/"+t+"/objs/search",e).then(function(t){return{facets:t.facets.map(function(t){return t.map(function(t){return{total:t.total,value:t.value,results:t.results}})})}})}e.a=r;var i=n(21)},function(t,e,n){"use strict";function r(t,e){var n,r="blobs/"+encodeURIComponent(t);return e&&(r+="/optimize",n={transformation:e}),a.a.get(r,n).then(function(e){return i(t,e)})}function i(t,e){var n=e.public_access,r=n.get;if(!r.url)throw new o.InternalError('Missing public access URL for binary "'+t+'"');var i={public_access:{get:{url:r.url}}},a=e.private_access;if(a){var s=a.get;s.url&&(i.private_access={get:{url:s.url}})}return i}e.a=r;var o=n(1),a=n(21)},function(t,e,n){"use strict";function r(t,e,n){var r=s.getTypeName(e),i=n.length?"/"+n.join("/")+": "+r:r;return"Invalid value "+u(t)+" supplied to "+i}function i(t,e,n,i){return s.Function.is(e.getValidationErrorMessage)?e.getValidationErrorMessage(t,n,i):r(t,e,n)}function o(t,e,n){n=n||{};var r=s.Array.is(n)?n:n.path||[];return new f(a(t,e,r,n))}function a(t,e,n,r){return s.isType(e)?d[e.meta.kind](t,e,n,r):d.es6classes(t,e,n,r)}var s=n(183),u=s.stringify,c={},l=s.struct({message:s.Any,actual:s.Any,expected:s.Any,path:s.list(s.union([s.String,s.Number]))},"ValidationError");l.of=function(t,e,n,r){return new l({message:i(t,e,n,r),actual:t,expected:e,path:n})};var f=s.struct({errors:s.list(l),value:s.Any},"ValidationResult");f.prototype.isValid=function(){return!this.errors.length},f.prototype.firstError=function(){return this.isValid()?null:this.errors[0]},f.prototype.toString=function(){return this.isValid()?"[ValidationResult, true, "+u(this.value)+"]":"[ValidationResult, false, ("+this.errors.map(function(t){return u(t.message)}).join(", ")+")]"};var d=o.validators={};d.es6classes=function(t,e,n,r){return{value:t,errors:t instanceof e?[]:[l.of(t,e,n,r.context)]}},d.irreducible=d.enums=function(t,e,n,r){return{value:t,errors:e.is(t)?[]:[l.of(t,e,n,r.context)]}},d.list=function(t,e,n,r){if(!s.Array.is(t))return{value:t,errors:[l.of(t,e,n,r.context)]};for(var i={value:[],errors:[]},o=0,u=t.length;o<u;o++){var c=a(t[o],e.meta.type,n.concat(o),r);i.value[o]=c.value,i.errors=i.errors.concat(c.errors)}return i},d.subtype=function(t,e,n,r){var i=a(t,e.meta.type,n,r);return i.errors.length?i:(e.meta.predicate(i.value)||(i.errors=[l.of(t,e,n,r.context)]),i)},d.maybe=function(t,e,n,r){return s.Nil.is(t)?{value:t,errors:[]}:a(t,e.meta.type,n,r)},d.struct=function(t,e,n,r){if(!s.Object.is(t))return{value:t,errors:[l.of(t,e,n,r.context)]};if(e.is(t))return{value:t,errors:[]};var i={value:{},errors:[]},o=e.meta.props,u=e.meta.defaultProps||c;for(var f in o)if(o.hasOwnProperty(f)){var d=t[f];void 0===d&&(d=u[f]);var h=a(d,o[f],n.concat(f),r);i.value[f]=h.value,i.errors=i.errors.concat(h.errors)}if(r.hasOwnProperty("strict")?r.strict:e.meta.strict)for(var p in t)t.hasOwnProperty(p)&&!o.hasOwnProperty(p)&&i.errors.push(l.of(t[p],s.Nil,n.concat(p),r.context));return i.errors.length||(i.value=new e(i.value)),i},d.tuple=function(t,e,n,r){var i=e.meta.types,o=i.length;if(!s.Array.is(t)||t.length>o)return{value:t,errors:[l.of(t,e,n,r.context)]};for(var u={value:[],errors:[]},c=0;c<o;c++){var f=a(t[c],i[c],n.concat(c),r);u.value[c]=f.value,u.errors=u.errors.concat(f.errors)}return u},d.dict=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:[]};for(var o in t)if(t.hasOwnProperty(o)){var u=n.concat(o),c=a(o,e.meta.domain,u,r),f=a(t[o],e.meta.codomain,u,r);i.value[o]=f.value,i.errors=i.errors.concat(c.errors,f.errors)}return i},d.union=function(t,e,n,r){var i=e.dispatch(t);return s.Function.is(i)?a(t,i,n.concat(e.meta.types.indexOf(i)),r):{value:t,errors:[l.of(t,e,n,r.context)]}},d.intersection=function(t,e,n,r){for(var i=e.meta.types,o=i.length,s={value:t,errors:[]},u=0,c=0;c<o;c++){"struct"===i[c].meta.kind&&u++;var f=a(t,i[c],n,r);s.errors=s.errors.concat(f.errors)}return u>1&&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
69
+ !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";var e=t&&t.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=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"),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<r.length?o.resolve(a):t.retrieve(e).then(o.resolve,o.reject)})},function(t){Object(r.each)(n,function(e){return e.reject(t)})}),this.performRetrieval()}},t}();e.a=a},function(t,e,n){function r(t,e){return"function"==typeof e?i(e):e}var i=n(51);t.exports=function(t){try{return JSON.stringify(t,r,2)}catch(e){return String(t)}}},function(t,e,n){var r=n(16),i=n(66);t.exports=r("Boolean",i)},function(t,e,n){var r=n(16),i=n(25);t.exports=r("Nil",i)},function(t,e,n){var r=n(16),i=n(109);t.exports=r("Number",i)},function(t,e){t.exports=function(t){return"number"==typeof t&&isFinite(t)&&!isNaN(t)}},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&"union"===t.meta.kind}},function(t,e,n){function r(t){return"Array<"+a(t)+">"}function i(t,e){function n(e,n){if(f)return e;for(var r=!0,i=[],o=0,a=e.length;o<a;o++){var s=e[o],c=u(t,s,null);r=r&&s===c,i.push(c)}return r&&(i=e),i}var i=e||r(t),f=(a(t),s(t));return n.meta={kind:"list",type:t,name:e,identity:f},n.displayName=i,n.is=function(e){return l(e)&&e.every(function(e){return c(e,t)})},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(8)),s=n(29),u=n(30),c=n(31),l=n(28);i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t){return"{"+Object.keys(t).map(function(e){return e+": "+i(t[e])}).join(", ")+"}"}var i=n(8);t.exports=r},function(t,e,n){function r(t,e,n){var r=t.reduce(function(t,e){return l(t,e)},e);return n&&(r.displayName=n,r.meta.name=n),r}function i(t){return c(t)?t:t.meta.props}function o(t){return c(t)?null:t.meta.defaultProps}function a(t,e){Array.prototype.push.apply(t,e)}function s(t,e,n){var s={},c={},l=[],d={};e.forEach(function(t,e){var n=f(t),r=n.unrefinedType;a(l,n.predicates),u(s,i(r)),u(c,r.prototype),u(d,o(r),!0)}),n=t.getOptions(n),n.defaultProps=u(d,n.defaultProps,!0);var h=r(l,t(s,{strict:n.strict,defaultProps:n.defaultProps}),n.name);return u(h.prototype,c),h}var u=(n(5),n(10),n(28),n(80)),c=(n(197),n(198),n(27)),l=n(77),f=n(199);t.exports=s},function(t,e,n){function r(t){return"["+t.map(a).join(", ")+"]"}function i(t,e){function n(e,n){if(a)return e;for(var r=!0,i=[],o=0,s=t.length;o<s;o++){var u=t[o],l=e[o],f=c(u,l,null);r=r&&l===f,i.push(f)}return r&&(i=e),i}var i=e||r(t),a=t.every(s);return n.meta={kind:"tuple",types:t,name:e,identity:a},n.displayName=i,n.is=function(e){return u(e)&&e.length===t.length&&t.every(function(t,n){return l(e[n],t)})},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(8)),s=n(29),u=n(28),c=n(30),l=n(31);i.getDefaultName=r,t.exports=i},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}t.exports=n},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){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){var e={};return F.a.each(t,function(t,n){var r=i(t,2),o=r[0],a=r[1],s=c(n);if(Object(D.a)(s))e[s]=o;else{var u=i(a,2),h=u[0],p=u[1];e[s]=[l(h,n),d(f(h,p,o,n))]}}),e}function c(t){if(!Object(H.c)(t))throw new z.ArgumentError("Attribute names have to be in camel case.");return Object(H.e)(t)}function l(t,e){switch(t){case"enum":return"string";case"float":case"integer":return"number";case"multienum":return"stringlist";case"binary":case"date":case"html":case"link":case"linklist":case"reference":case"referencelist":case"string":case"stringlist":case"widgetlist":return t;default:throw new z.ArgumentError('Attribute "'.concat(e,'" is of unsupported type "').concat(t,'".'))}}function f(t,e,n,r){if(null===n)return n;switch(t){case"binary":return p(n,r);case"date":return v(n,r);case"enum":return y(e,n,r);case"float":return m(n,r);case"html":return b(n,r);case"integer":return g(n,r);case"link":return w(n,r);case"linklist":return _(n,r);case"multienum":return E(e,n,r);case"reference":return x(n,r);case"referencelist":return C(n,r);case"string":return T(n,r);case"stringlist":return N(n,r);case"widgetlist":return L(n,r);default:throw new z.InternalError('serializeAttributeValue is not implemented for "'.concat(t,'".'))}}function d(t){return(F.a.isString(t)||F.a.isArray(t))&&F.a.isEmpty(t)?null:t}function h(t,e,n){throw new z.ArgumentError("Unexpected value ".concat(Object(U.a)(t)," for")+' attribute "'.concat(e,'". Expected: ').concat(n))}function p(t,e){if(r(t,W.a))return{id:t.id()};h(t,e,"A Binary.")}function v(t,e){return F.a.isDate(t)?Object(q.c)(t):Object(q.d)(t)?t:void h(t,e,"A Date.")}function y(t,e,n){var r=t.values;if(F.a.contains(r,e))return e;h(e,n,'Valid attribute values are contained in its "values" array ['.concat(r,"]."))}function m(t,e){if(Object(q.e)(t))return t;var n=t;F.a.isNumber(t)&&(n=String(t)),h(n,e,"A Number, that is #isFinite().")}function b(t,e){if(F.a.isString(t))return t;h(t,e,"A String.")}function g(t,e){if(Object(q.f)(t))return t;h(t,e,"A Number, that is #isSafeInteger().")}function w(t,e){if(k(t))return O(t);h(t,e,"A Link instance.")}function _(t,e){if(F.a.isArray(t)&&F.a.every(t,k))return F.a.map(t,O);h(t,e,"An array of Link instances.")}function k(t){if(r(t,M.a))return!0;if(!F.a.isObject(t))return!1;var e=F.a.without(F.a.keys(t),"hash","obj_id","query","target","title","url");return F.a.isEmpty(e)}function O(t){var e={fragment:"function"==typeof t.hash?t.hash():t.hash,query:"function"==typeof t.query?t.query():t.query,target:"function"==typeof t.target?t.target():t.target,title:"function"==typeof t.title?t.title():t.title,url:"function"==typeof t.url?t.url():t.url};return e.obj_id="function"==typeof t.objId?t.objId():t.obj_id,F.a.mapObject(e,function(t){return t||null})}function E(t,e,n){var r=t.values,i="An array with values from ".concat(Object(U.a)(r),".");F.a.isArray(e)&&F.a.every(e,F.a.isString)||h(e,n,i);var o=F.a.difference(e,r);if(o.length){h(e,n,"".concat(i," Forbidden values: ").concat(Object(U.a)(o),"."))}return e}function x(t,e){if(S(t))return j(t);h(t,e,"A BasicObj or a String ID.")}function C(t,e){if(A(t))return F.a.map(t,j);h(t,e,"An array with BasicObjs or String IDs.")}function j(t){return r(t,I.default)?t.id():t}function S(t){return F.a.isString(t)||r(t,I.default)}function A(t){return F.a.isArray(t)&&F.a.every(t,function(t){return S(t)})}function T(t,e){if(P(t))return t.toString();h(t,e,"A String.")}function N(t,e){if(F.a.isArray(t)&&F.a.every(t,function(t){return P(t)}))return F.a.invoke(t,"toString");h(t,e,"An array of strings.")}function P(t){return F.a.isString(t)||F.a.isNumber(t)}function L(t,e){if(F.a.isArray(t)&&F.a.every(t,function(t){return r(t,R.a)}))return F.a.invoke(t,"id");h(t,e,"An array of BasicWidget instances.")}e.a=u;var I=n(3),D=n(47),q=n(48),R=n(32),M=n(34),B=n(0),F=n.n(B),z=n(1),U=n(41),H=n(23),W=n(26)},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){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){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}n.d(e,"a",function(){return b});var f=n(213),d=n(47),h=n(132),p=n(0),v=n.n(p),y=n(1),m=n(23),b=function(){function t(){u(this,t)}return l(t,[{key:"get",value:function(t,e){if(!Object(m.c)(t))throw new y.ArgumentError("Attribute names have to be in camel case.");var n=Object(m.e)(t);{if(!Object(d.a)(n)){var r=scrivito.typeInfo.normalize(e),o=i(r,2),a=o[0],s=o[1],u=this.getAttributeData(n);return u&&v.a.isArray(u)||(u=[]),f.a(this,u,a,s)}if(v.a.has(this._systemAttributes,n)){var c=this._systemAttributes[n];return"function"==typeof this[c]?this[c]():this[c]}}}},{key:"field",value:function(t,e){return new h.a({container:this,attributeName:t,typeInfo:scrivito.typeInfo.normalize(e)})}},{key:"widget",value:function(t){throw new TypeError("Override in subclass.")}},{key:"serializeAttributes",value:function(){var t=this,e={};return v.a.each(this.getData(),function(n,r){if(v.a.isArray(n)&&"widgetlist"===v.a.first(n)){var i=Object(m.a)(r),o=v.a.invoke(t.get(i,["widgetlist"]),"serializeAttributes");return void(e[r]=["widgetlist",o])}e[r]=n}),e}},{key:"_persistWidgets",value:function(t,e){v.a.each(e,function(e){var n=i(e,2),r=n[0],o=n[1];o&&"widgetlist"===o[0]&&v.a.each(r,function(e){e.isPersisted()||e.persistInObj(t)})})}},{key:"getAttributeData",value:function(){throw new TypeError("Override in subclass.")}},{key:"getData",value:function(){throw new TypeError("Override in subclass.")}},{key:"_objClass",get:function(){throw new TypeError("Override in subclass.")}}]),t}()},function(t,e,n){"use strict";function r(t,e,n){s.a.store(t,e,n)}function i(t){return scrivito.computeCacheKey(t)}function o(t,e){return new u.a(t,e)}function a(){return c.b.subState("objQuery")}e.d=r,e.a=i,e.b=o,e.c=a;var s=n(119),u=n(215),c=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}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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return u});var s=n(214),u=function(){function t(e,n){i(this,t),this._params=e,this._batchSize=n}return a(t,null,[{key:"store",value:function(t,e,n){s.a.store(t,e,n)}},{key:"count",value:function(t){return s.a.countFor(t)}}]),a(t,[{key:"iterator",value:function(){function t(){if(!n)return{done:!0};var i=n.objIds();if(r<i.length){var o=i[r];return r++,e[o]?t():(e[o]=!0,{value:o,done:!1})}return n=n.nextBatch(),r=0,t()}var e={},n=s.a.firstBatchFor(this._params,this._batchSize),r=0;return{next:t}}}]),t}()},function(t,e,n){"use strict";function r(){for(var t=Math.floor(Math.random()*Math.pow(16,8)).toString(16);t.length<8;)t="0".concat(t);return t}function i(){return r()+r()}n.d(e,"b",function(){return i}),n.d(e,"a",function(){return r})},function(t,e,n){"use strict";function r(t,e){for(var n=t.iterator(),r=[];r.length!==e;){var i=n.next();if(i.done)return r;r.push(i.value)}return r}function i(t){return t.iterator().next().value||null}e.a=r,e.b=i},function(t,e,n){"use strict";function r(t){return t.displayName||t.name}e.a=r},,,,,function(t,e){window.scrivito||(window.scrivito={}),window.scrivito.client={}},function(t,e,n){"use strict";function r(t){return i(1e3*t)}function i(t){return new scrivito.Promise(function(e){setTimeout(e,t)})}e.a=r,e.b=i;n(102)},function(t,e,n){"use strict";function r(t,e){Object(c.d)("navigateTo"),y(t,e);var n,r;if(e){n=e.params||{},r=e.hash;var a=Object(o.omit)(e,"hash","params");m(t,a),n=Object(o.extend)(a,n)}Object(f.e)(function(){return{obj:Object(d.c)(Object(o.isFunction)(t)?t():t),queryParameters:n,hash:r}},i)}function i(t){var e=t.obj,n=t.queryParameters,r=t.hash;e&&(Object(s.a)(),Object(h.d)({obj:e,queryParameters:n,hash:r}))}e.a=r;var o=n(0),a=(n.n(o),n(24)),s=n(294),u=n(59),c=n(4),l=n(39),f=n(60),d=n(22),h=n(72),p=a.a.union([a.a.Function,a.a.irreducible("null",function(t){return null===t}),u.d,u.b]),v=a.a.dict(a.a.String,a.a.maybe(a.a.String)),y=Object(l.a)("navigateTo",[["target",p],["options",a.a.maybe(a.a.struct({hash:a.a.maybe(a.a.String),params:a.a.maybe(v)},{strict:!1}))]],{docPermalink:"js-sdk/navigateTo"}),m=Object(l.a)("navigateTo",[["target",p],["options",a.a.maybe(v)]],{docPermalink:"js-sdk/navigateTo"})},function(t,e,n){"use strict";function r(t){return function(){return d.a.retrieveBinaryMetadata(t).then(function(t){return o(t)})}}function i(t){return h.b.subState("metadataCollection").subState(t)}function o(t){for(var e=t.meta_data,n={},r=0,i=Object.keys(e);r<i.length;r++){var o=i[r],a=e[o],u=a[0],c=a[1];if(null===c||void 0===c)throw new l.InternalError('Invalid backend value "null" or "undefined" for metadata "'+o+'"');var f=void 0;if(u===s.Date){if("string"!=typeof c)throw new l.InternalError('Invalid non-string backend value for a date metadata "'+o+'"');f=Object(p.a)(c)}else f=c;n[o]=f}return n}function a(t){if(!Object(f.c)(t))throw new l.ArgumentError('Metadata key "'+t+'" is not in camel case.')}var s,u=n(0),c=(n.n(u),n(18)),l=n(1),f=n(23),d=n(43),h=n(4),p=n(48);!function(t){t.Date="date",t.Number="number",t.String="string",t.Stringlist="stringlist"}(s||(s={}));var v=function(){function t(t){this._binaryId=t,t&&(this._loadableData=new c.b({state:i(t),loader:r(t)}))}return t.store=function(t,e){new c.b({state:i(t),loader:r(t)}).set(o(e))},t.prototype.get=function(t){a(t);var e=this._getData();if(e)return e[Object(f.e)(t)]},t.prototype.keys=function(){var t=this._getData();return t?Object(u.map)(Object(u.keys)(t),f.a):[]},Object.defineProperty(t.prototype,"binaryId",{get:function(){return this._binaryId},enumerable:!0,configurable:!0}),t.prototype._getData=function(){if(this._loadableData)return this._loadableData.get()},t}();e.a=v},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var r=n(24),i=r.a.interface({size:r.a.Number,type:r.a.String},{name:"Blob",strict:!1}),o=i.extend({name:r.a.String},{name:"File",strict:!1})},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,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(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}n.d(e,"a",function(){return f});var u=n(3),c=n(0),l=(n.n(c),n(1)),f=function(){function t(e){var n=e.container,r=e.attributeName,i=e.typeInfo;o(this,t),this._container=n,this._attributeName=r,this._typeInfo=i}return s(t,[{key:"get",value:function(){return this._container.get(this.name(),this._typeInfo)}},{key:"update",value:function(t){this._container.update(i({},this.name(),[t,this._typeInfo]))}},{key:"container",value:function(){return this._container}},{key:"obj",value:function(){return this.container().obj()}},{key:"name",value:function(){return this._attributeName}},{key:"type",value:function(){return this._typeInfo[0]}},{key:"typeOptions",value:function(){return this._typeInfo[1]||{}}},{key:"equals",value:function(e){return!!r(e,t)&&(this.container().equals(e.container())&&this.name()===e.name())}},{key:"values",value:function(){return this._assertValidTypes(["enum","multienum"],"Only enum and multienum attributes can have values"),this._sortValuesByLocalization(this.typeOptions().values)}},{key:"titleForValue",value:function(t){this._assertValidTypes(["enum","multienum"],"Only enum and multienum attributes can have localized values");var e=Object(c.findWhere)(this.typeOptions().valuesLocalization,{value:t});return e&&e.title||t}},{key:"toString",value:function(){var t=this._dataForId(),e=t.name,n=t.objId,r=t.widgetId,i="<BasicField name=".concat(e," objId=").concat(n);return i+=r?" widgetId=".concat(r,">"):">"}},{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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return f});var s=n(3),u=n(42),c=n(1),l=n(22),f=function(){function t(e){i(this,t),this._registry=e}return a(t,[{key:"getObj",value:function(t,e){var n=s.default.get(e);return this._checkObjClassAndWrapInAppClass(t,n)}},{key:"getObjIncludingDeleted",value:function(t,e){var n=s.default.getIncludingDeleted(e);return this._checkObjClassAndWrapInAppClass(t,n)}},{key:"read",value:function(t,e){var n=u.a.basicFieldFor(t,e);if(n){var r=n.get();return Object(l.e)(this._registry,r)}}},{key:"update",value:function(t,e){var n=this._registry.objClassNameFor(t.constructor);if(!n){var r;throw r=t.constructor===this._registry.defaultClassForObjs?"Obj":"Widget",new c.ArgumentError('Updating is not supported on the base class "'.concat(r,'".'))}if(e.constructor!==Object)throw new c.ArgumentError("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");var i=u.a.forInstance(t),o=Object(l.b)(e,i,n);t._scrivitoPrivateContent.update(o)}},{key:"wrapInAppClass",value:function(t){return Object(l.e)(this._registry,t)}},{key:"_checkObjClassAndWrapInAppClass",value:function(t,e){var n=this._registry.objClassNameFor(t);if(n&&n!==e.objClass())throw new c.ResourceNotFoundError('Obj with id "'.concat(e.id(),'" is not of type "').concat(n,'".'));return this.wrapInAppClass(e)}}]),t}()},function(t,e,n){"use strict";var r=n(83),i=n.n(r),o=function(){var t=null,e=function(e){return i()(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},n=function(e,n,r,o){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof r?r(a,o):(i()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==a)}else o(!0)},r=[];return{setPrompt:e,confirmTransitionTo:n,appendListener:function(t){var e=!0,n=function(){e&&t.apply(void 0,arguments)};return r.push(n),function(){e=!1,r=r.filter(function(t){return t!==n})}},notifyListeners:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];r.forEach(function(t){return t.apply(void 0,e)})}}};e.a=o},function(t,e,n){"use strict";function r(t){return t.replace(s,function(t,e){var n=Object(i.a)(e),r=o.i(n);return r&&(Object(a.a)(r,e),o.g(r))?o.b(r,t):n.toString()})}e.a=r;var i=n(313),o=n(63),a=n(314),s=/\bobjid:([a-f0-9]{16})\b([^"']*)/g},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 o(t),r(t,l.a)?u(t):r(t,d.a)?a(t):Object(h.a)(t)?s(t):Object(p.a)({obj:t})}function o(t){if(!t)throw new f.ArgumentError("Missing target.");if(!r(t,l.a)&&!r(t,c.default)&&!r(t,d.a))throw new f.ArgumentError("Target is invalid. Valid targets are instances of Obj or Link.")}function a(t){return t.url()}function s(t){var e=t.get("blob",["binary"]);return e?a(e):Object(p.a)({obj:t})}function u(t){return t.isExternal()?t.url():i(t.obj())}e.a=i;var c=n(3),l=n(34),f=n(1),d=n(26),h=n(226),p=n(63)},function(t,e,n){"use strict";function r(){if(o)return{filters:o}}function i(t){if(d.b){j(t),t.filters&&(o=t.filters);var e=t.baseFilter;if(e){var n=e.query;n&&d.b.configureContentBrowser(Object(s.a)({baseQuery:n}))}}}e.b=r,e.a=i;var o,a=n(0),s=(n.n(a),n(138)),u=n(39),c=n(24),l=n(59),f=n(54),d=n(17),h=c.a.union([c.a.String,c.a.list(c.a.String)]),p=c.a.enums.of(Object(a.intersection)(f.a,["contains","containsPrefix","equals","startsWith","isGreaterThan","isLessThan"])),v=c.a.union([c.a.String,c.a.Date,c.a.Nil,c.a.Number,c.a.list(c.a.union([c.a.String,c.a.Nil])),c.a.list(c.a.union([c.a.Date,c.a.Nil])),c.a.list(c.a.union([c.a.Number,c.a.Nil]))],"SearchValue"),y=c.a.struct({title:c.a.maybe(c.a.String)}),m=y.extend({field:c.a.maybe(h),operator:c.a.maybe(p),expanded:c.a.maybe(c.a.Boolean)}),b=y.extend({value:c.a.maybe(v),query:c.a.maybe(l.c),selected:c.a.maybe(c.a.Boolean)}),g=m.extend({type:c.a.enums.of(["radioButton"]),options:c.a.dict(c.a.String,b)},"RadioFilterDefinition"),w=y.extend({value:c.a.maybe(v),selected:c.a.maybe(c.a.Boolean)}),_=m.extend({type:c.a.enums.of(["checkbox"]),options:c.a.dict(c.a.String,w)},"CheckboxFilterDefinition"),k=c.a.declare("TreeFilterDefinition");k.define(y.extend({type:c.a.maybe(c.a.enums.of("tree")),icon:c.a.maybe(c.a.String),query:c.a.maybe(l.c),expanded:c.a.maybe(c.a.Boolean),value:c.a.maybe(v),field:c.a.maybe(h),operator:c.a.maybe(p),selected:c.a.maybe(c.a.Boolean),options:c.a.maybe(c.a.dict(c.a.String,k))}));var O=c.a.union([k,_,g]);O.dispatch=function(t){switch(t.type||"tree"){case"tree":return k;case"radioButton":return g;case"checkbox":return _}};var E=c.a.dict(c.a.String,O),x=c.a.struct({query:l.c}),C=c.a.struct({filters:c.a.maybe(E),baseFilter:c.a.maybe(x)},"Configuration"),j=Object(u.a)("configureContentBrowser",[["configuration",C]],{docPermalink:"js-sdk/configureContentBrowser"})},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){if(!t)return t;switch(i(t)){case"string":case"number":case"boolean":return t;case"object":return r(t._scrivitoPrivateContent,c.b)?o(t._scrivitoPrivateContent.params()):Object(u.isDate)(t)?t:Object(u.isArray)(t)?a(t):s(t)}}function a(t){var e=[];return t.forEach(function(t){var n=o(t);void 0!==n&&e.push(n)}),e}function s(t){var e={};return Object(u.each)(t,function(t,n){var r=o(t);void 0!==r&&(e[n]=r)}),e}e.a=o;var u=n(0),c=(n.n(u),n(54))},function(t,e,n){"use strict";var r=function(){function t(t){var e=t.controller;this._controller=e}return t.canEdit=function(t){t.type,t.tag;return!1},t.prototype.onClick=function(t){},t.prototype.contentDidChange=function(){},t.prototype.editorWillBeActivated=function(){},t.prototype.editorWillBeDeactivated=function(){},t.prototype.editorDomWasMounted=function(t){},t.prototype.editorDomWasUnmounted=function(){},t}();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(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){return u(t)||s(t)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function s(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function u(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}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,e){if(!r(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){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t}function v(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?m(t):e}function y(t){return(y=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t,e){var n=Object(A.a)(t),r=n.objId,i=n.widgetId;P.b.insertWidget(r,i,e)}n.d(e,"a",function(){return q});var g=n(237),w=n.n(g),_=n(13),k=n.n(_),O=n(85),E=n.n(O),x=n(0),C=(n.n(x),n(87)),j=n(42),S=n(62),A=n(141),T=n(14),N=n(1),P=n(17),L=n(351),I=n(239),D=n(240),q="_scrivitoWidget",R=function(t){function e(t){var n;return l(this,e),n=v(this,y(e).call(this,t)),n.state={hasFocus:!1,isDragged:!1,isFocusFadedOut:!0},n._onMouseOver=n._onMouseOver.bind(m(m(n))),n._onMouseOut=n._onMouseOut.bind(m(m(n))),n._onWidgetFocus=n._onWidgetFocus.bind(m(m(n))),n._onWidgetBlur=n._onWidgetBlur.bind(m(m(n))),n._lockFocus=n._lockFocus.bind(m(m(n))),n._unlockFocus=n._unlockFocus.bind(m(m(n))),n._setDragState=n._setDragState.bind(m(m(n))),n}return p(e,[{key:"componentDidMount",value:function(){this._registerDropZone(),this._focusToken=scrivito.WidgetFocus.subscribe({onFocus:this._onWidgetFocus,onBlur:this._onWidgetBlur})}},{key:"componentDidUpdate",value:function(){this._widgetRef!==this._dropZoneWidgetRef&&this._registerDropZone()}},{key:"componentWillUnmount",value:function(){scrivito.WidgetFocus.unsubscribe(this._focusToken)}},{key:"getChildContext",value:function(){return c({},q,null)}},{key:"render",value:function(){var t=this,e=this.context[q];if(!e)throw new N.ScrivitoError("Detected inappropriate placing of Scrivito.WidgetTag: It is intended to be used exclusively as top-level element inside a Widget component.");return Object(C.a)()?k.a.createElement(this.props.tag,Object(x.extend)(Object(x.omit)(this.props,"tag","className","style"),{ref:function(e){return t._widgetRef=e},className:this._className(),style:this._style(),onMouseOver:this._onMouseOver,onMouseOut:this._onMouseOut,children:[k.a.createElement(L.a,{key:"menuMarker",widget:e,setDragState:this._setDragState,onMouseOver:this._lockFocus,onMouseOut:this._unlockFocus})].concat(o(k.a.Children.toArray(this.props.children)),[this._renderOptionMarker("top"),this._renderOptionMarker("bottom")])},this._dataProps())):k.a.createElement(this.props.tag,Object(x.omit)(this.props,"tag"))}},{key:"_setDragState",value:function(t){this.setState({isDragging:t})}},{key:"_className",value:function(){return this._hasVisibleFocus()?this.props.className?"".concat(this.props.className," scrivito_active scrivito_entered"):"scrivito_active scrivito_entered":this.props.className}},{key:"_hasVisibleFocus",value:function(){return this.state.hasFocus&&!this.state.isFocusFadedOut}},{key:"_dataProps",value:function(){var t={"data-scrivito-private-widget":"true","data-scrivito-private-dropzone":"true"};return this._isStructureMarker()&&(t["data-scrivito-private-structure-widget"]="true"),this.state.isDragging&&(t["data-scrivito-private-dropback"]="true"),t}},{key:"_style",value:function(){return this.state.isDragging?this.props.style?Object(x.extend)(this.props.style,{opacity:.5}):{opacity:.5}:this.props.style}},{key:"_isStructureMarker",value:function(){var t=Object(S.a)(),e=t.widgetClassFor(this.context[q].objClass()),n=j.a.forClass(e);return!!n&&Object(x.some)(n.attributes,function(t,e){return"widgetlist"===t[0]})}},{key:"_onMouseOver",value:function(t){t.stopPropagation(),scrivito.WidgetFocus.notifyFocus(this._focusToken)}},{key:"_onMouseOut",value:function(t){t.stopPropagation(),scrivito.WidgetFocus.notifyBlur(this._focusToken)}},{key:"_onWidgetFocus",value:function(){var t=this;this.setState({hasFocus:!0,isFocusFadedOut:!1}),this._fadeOutFocusTimeout&&clearTimeout(this._fadeOutFocusTimeout),this._isStructureMarker()||(this._fadeOutFocusTimeout=setTimeout(function(){return t._fadeOutFocus()},1e3))}},{key:"_fadeOutFocus",value:function(){this.state.isFocusFadedOut||this._isFocusLocked||this.setState({isFocusFadedOut:!0})}},{key:"_lockFocus",value:function(){this._isFocusLocked=!0}},{key:"_unlockFocus",value:function(){this._isFocusLocked=!1}},{key:"_onWidgetBlur",value:function(){this.setState({hasFocus:!1})}},{key:"_renderOptionMarker",value:function(t){return k.a.createElement(I.a,{key:"optionMarker-".concat(t),position:t,widget:this.context[q],insertWidget:b,isAlwaysShown:D.b,onMouseOver:this._lockFocus,onMouseOut:this._unlockFocus})}},{key:"_registerDropZone",value:function(){if(Object(C.a)()&&this._widgetRef){var t=Object(A.a)(this.context[q]),e=t.objId,n=t.widgetId,r=E.a.findDOMNode(this._widgetRef);P.b.registerWidgetDropZoneInDom(r,e,n),this._dropZoneWidgetRef=this._widgetRef}}}]),f(e,t),e}(k.a.Component);R.displayName="Scrivito.WidgetTag",R.defaultProps={tag:"div"},R.contextTypes=c({},q,w.a.object),R.childContextTypes=c({},q,w.a.object),e.b=Object(T.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(t){return r(t,o.default)?{objId:t.id()}:{objId:t.obj().id(),widgetId:t.id()}}e.a=i;var o=n(3)},,,,,,,,,,,function(t,e,n){"use strict";function r(t){i();var e=t.location,n=e.hash,r=n.indexOf(u);if(!(r<0)){var o=n.substr(r+u.length,3),a=n.substring(0,r);"#"===a&&(a="");var c=e.href.toString().replace(n,a);s=parseInt(o,10)||0,t.history.replaceState({},"",c)}}function i(){s=0}function o(t){var e=t.toString();return t.hash||(e="".concat(e,"#")),"".concat(e).concat(u).concat(s+1)}function a(){return s}var s,u="&scrivito.authFailedCount=";e.a={init:r,augmentedRedirectUrl:o,reset:i,currentFailureCount:a}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&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<n;e++)o(t,t._deferreds[e]);t._deferreds=null}function c(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function l(t,e){var n=!1;try{t(function(t){n||(n=!0,a(e,t))},function(t){n||(n=!0,s(e,t))})}catch(t){if(n)return;n=!0,s(e,t)}}var f=setTimeout;i.prototype.catch=function(t){return this.then(null,t)},i.prototype.then=function(t,e){var r=new this.constructor(n);return o(this,new c(t,e,r)),r},i.prototype.finally=function(t){var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){return e.reject(n)})})},i.all=function(t){return new i(function(e,n){function r(t,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(e){r(t,e)},n)}i[t]=a,0==--o&&e(i)}catch(t){n(t)}}if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(t);if(0===i.length)return e([]);for(var o=i.length,a=0;a<i.length;a++)r(a,i[a])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(t){return new i(function(e,n){n(t)})},i.race=function(t){return new i(function(e,n){for(var r=0,i=t.length;r<i;r++)t[r].then(e,n)})},i._immediateFn="function"==typeof e&&function(t){e(t)}||function(t){f(t,0)},i._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},t.exports=i}).call(e,n(170).setImmediate)},function(t,e,n){(function(t){function r(t,e){this._id=t,this._clearFn=e}var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;e.setTimeout=function(){return new r(o.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new r(o.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;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;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return c[u]=r,s(u),u++}function i(t){delete c[t]}function o(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}function a(t){if(l)setTimeout(a,0,t);else{var e=c[t];if(e){l=!0;try{o(e)}finally{i(t),l=!1}}}}if(!t.setImmediate){var s,u=1,c={},l=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?function(){s=function(t){e.nextTick(function(){a(t)})}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&a(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),s=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){a(t.data)},s=function(e){t.port2.postMessage(e)}}():f&&"onreadystatechange"in f.createElement("script")?function(){var t=f.documentElement;s=function(e){var n=f.createElement("script");n.onreadystatechange=function(){a(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():function(){s=function(t){setTimeout(a,0,t)}}(),d.setImmediate=r,d.clearImmediate=i}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(40),n(91))},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){function e(e){if(!u(e))throw e;return o(e.details).then(t)}return t(s()).catch(e)}function o(t){if(!l){var e=t.verificator,n=t.data,r=Object(h.a)(e.id,e.url).then(function(t){return new scrivito.Promise(function(e){function r(t){f=t,e(f.authorization)}t(n,r)})});l={challenge:{verificator:e,data:n},promise:p.a(r,function(){l=void 0})}}return l.promise}function a(){l=void 0,f=void 0}function s(){if(f)return f.expiresAfter<new Date?void(f=void 0):f.authorization}function u(t){return r(t,d.UnauthorizedError)&&t.backendCode===y}function c(){var t=s();if(t)return"Authorization: "+t;if(l){var e=l.challenge;return"Pending computation: "+e.verificator.id+" with "+e.data}return null}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"ERROR_CODE_CLIENT_VERIFICATION_REQUIRED",function(){return y}),e.perform=i,e.reset=a,e.currentState=c;var l,f,d=n(1),h=n(173),p=n(50),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)}}(),y="client_verification_required";!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}v(e,t)}(d.UnauthorizedError)},function(t,e,n){"use strict";function r(t,e){var n=i[t];return n||(n=new o.a,i[t]=n,Object(a.b)(e)),n.promise}e.a=r;var i,o=n(12),a=n(153);!function(){i={}}(),window._scrivitoRegisterVerificator=function(t,e){i[t].resolve(e)}},function(t,e,n){"use strict";var r=n(88),i=n(53),o=n(18),a=n(4),s=n(1),u=n(43),c=function(){function t(t,e){var n=this;this._loadableData=new o.b({state:e,loader:function(t){var e=t.push;return u.a.retrieveObj(scrivito.currentWorkspaceId(),n._id).then(function(t){return e(function(){return n._replication().notifyBackendState(t)}),t})}}),this._id=t}return t.prototype.get=function(){return Object(a.e)("for performance reasons, avoid this method when rendering"),this._loadableData.get()},t.prototype.getWidget=function(t){return Object(a.e)("for performance reasons, avoid this method when rendering"),this.getWidgetState(t).get()},t.prototype.getAttribute=function(t){if("_widget_pool"===t)throw new s.InternalError("_widget_pool is not an attribute, use getWidget or getWidgetAttribute");return this.getSubReader(t).get()},t.prototype.getWidgetAttribute=function(t,e){return this.getWidgetState(t).subState(e).get()},t.prototype.isNonExistent=function(){return!!this.getSubReader("_deleted").get()||!this.getSubReader("_id").get()},t.prototype.set=function(t){Object(a.d)("Changing CMS content"),this._loadableData.set(t)},t.prototype.setError=function(t){this._loadableData.setError(t)},t.prototype.ensureAvailable=function(){return this._loadableData.ensureAvailable()},t.prototype.isAvailable=function(){return this._loadableData.isAvailable()},t.prototype.update=function(t){var e=r.a(this.get(),t);this.set(e),this._replication().notifyLocalState(e)},t.prototype.finishSaving=function(){return this._replication().finishSaving()},t.prototype._replication=function(){return i.a.get(this._id)},t.prototype.getWidgetState=function(t){return this.getSubReader("_widget_pool").subState(t)},t.prototype.getSubReader=function(t){return this._loadableData.reader().subState(t)},t}();e.a=c},function(t,e,n){"use strict";var r=function(){function t(t){this.container=t}return t.prototype.reader=function(){return this.container.reader().subState("value")},t.prototype.status=function(){return this.getStateKey("status")||"MISSING"},t.prototype.value=function(){return this.getStateKey("value")},t.prototype.error=function(){return this.getStateKey("error")},t.prototype.version=function(){return this.getStateKey("version")},t.prototype.transitionToMissing=function(){this.setState({status:void 0})},t.prototype.transitionToAvailable=function(t,e){this.setState({status:"AVAILABLE",value:t,version:e})},t.prototype.transitionToError=function(t,e){this.setState({status:"ERROR",error:t,version:e})},t.prototype.setState=function(t){this.container.set(t)},t.prototype.getStateKey=function(t){return this.container.subState(t).get()},t}();e.a=r},function(t,e,n){"use strict";function r(t){return void 0!==a[t]}function i(t){delete a[t]}function o(t,e,n,o){function u(t){l()&&t()}if(!r(t)){var c=s++,l=function(){return a[t]===c},f=[],d=function(t){return f.push(t)},h=function(){return f.forEach(function(t){return t()})};e({push:d,wasCancelled:function(){return!l()}}).then(function(e){return u(function(){return scrivito.batchedStateUpdater.add(function(){i(t),n(e),h()})})},function(e){return u(function(){return scrivito.batchedStateUpdater.add(function(){i(t),o(e),h()})})}),a[t]=c}}e.a=r,e.c=i,e.b=o;var a={},s=0},function(t,e,n){"use strict";function r(t){return i.a.get("blobs/"+encodeURIComponent(t||"")+"/meta_data")}e.a=r;var i=n(21)},function(t,e,n){"use strict";function r(t){var e=scrivito.currentWorkspaceId();return o.a.get("workspaces/"+e+"/objs/mget",{ids:t,include_deleted:!0}).then(function(t){return t.results})}function i(t){return s.retrieve(t).then(function(e){return e||{_deleted:t}})}e.a=i;var o=n(21),a=n(104),s=new a.a(r,{batchSize:17})},function(t,e,n){"use strict";function r(t){var e=scrivito.currentWorkspaceId(),n=a({consistent:!0},t);return o.a.get("workspaces/"+e+"/objs/search",n).then(function(t){var e=i(t);return{results:e.results.map(function(t){return t.id}),continuation:e.continuation,total:e.total,objs:e.objs}})}function i(t){var e={results:t.results,total:t.total},n=t.continuation;void 0!==n&&(e.continuation=n);var r=t.objs;return void 0!==r&&(e.objs=r),e}e.a=r;var o=n(21),a=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}},function(t,e,n){"use strict";function r(t,e){return i.a.get("workspaces/"+t+"/objs/search",e).then(function(t){return{facets:t.facets.map(function(t){return t.map(function(t){return{total:t.total,value:t.value,results:t.results}})})}})}e.a=r;var i=n(21)},function(t,e,n){"use strict";function r(t,e){var n,r="blobs/"+encodeURIComponent(t);return e&&(r+="/optimize",n={transformation:e}),a.a.get(r,n).then(function(e){return i(t,e)})}function i(t,e){var n=e.public_access,r=n.get;if(!r.url)throw new o.InternalError('Missing public access URL for binary "'+t+'"');var i={public_access:{get:{url:r.url}}},a=e.private_access;if(a){var s=a.get;s.url&&(i.private_access={get:{url:s.url}})}return i}e.a=r;var o=n(1),a=n(21)},function(t,e,n){"use strict";function r(t,e,n){var r=s.getTypeName(e),i=n.length?"/"+n.join("/")+": "+r:r;return"Invalid value "+u(t)+" supplied to "+i}function i(t,e,n,i){return s.Function.is(e.getValidationErrorMessage)?e.getValidationErrorMessage(t,n,i):r(t,e,n)}function o(t,e,n){n=n||{};var r=s.Array.is(n)?n:n.path||[];return new f(a(t,e,r,n))}function a(t,e,n,r){return s.isType(e)?d[e.meta.kind](t,e,n,r):d.es6classes(t,e,n,r)}var s=n(183),u=s.stringify,c={},l=s.struct({message:s.Any,actual:s.Any,expected:s.Any,path:s.list(s.union([s.String,s.Number]))},"ValidationError");l.of=function(t,e,n,r){return new l({message:i(t,e,n,r),actual:t,expected:e,path:n})};var f=s.struct({errors:s.list(l),value:s.Any},"ValidationResult");f.prototype.isValid=function(){return!this.errors.length},f.prototype.firstError=function(){return this.isValid()?null:this.errors[0]},f.prototype.toString=function(){return this.isValid()?"[ValidationResult, true, "+u(this.value)+"]":"[ValidationResult, false, ("+this.errors.map(function(t){return u(t.message)}).join(", ")+")]"};var d=o.validators={};d.es6classes=function(t,e,n,r){return{value:t,errors:t instanceof e?[]:[l.of(t,e,n,r.context)]}},d.irreducible=d.enums=function(t,e,n,r){return{value:t,errors:e.is(t)?[]:[l.of(t,e,n,r.context)]}},d.list=function(t,e,n,r){if(!s.Array.is(t))return{value:t,errors:[l.of(t,e,n,r.context)]};for(var i={value:[],errors:[]},o=0,u=t.length;o<u;o++){var c=a(t[o],e.meta.type,n.concat(o),r);i.value[o]=c.value,i.errors=i.errors.concat(c.errors)}return i},d.subtype=function(t,e,n,r){var i=a(t,e.meta.type,n,r);return i.errors.length?i:(e.meta.predicate(i.value)||(i.errors=[l.of(t,e,n,r.context)]),i)},d.maybe=function(t,e,n,r){return s.Nil.is(t)?{value:t,errors:[]}:a(t,e.meta.type,n,r)},d.struct=function(t,e,n,r){if(!s.Object.is(t))return{value:t,errors:[l.of(t,e,n,r.context)]};if(e.is(t))return{value:t,errors:[]};var i={value:{},errors:[]},o=e.meta.props,u=e.meta.defaultProps||c;for(var f in o)if(o.hasOwnProperty(f)){var d=t[f];void 0===d&&(d=u[f]);var h=a(d,o[f],n.concat(f),r);i.value[f]=h.value,i.errors=i.errors.concat(h.errors)}if(r.hasOwnProperty("strict")?r.strict:e.meta.strict)for(var p in t)t.hasOwnProperty(p)&&!o.hasOwnProperty(p)&&i.errors.push(l.of(t[p],s.Nil,n.concat(p),r.context));return i.errors.length||(i.value=new e(i.value)),i},d.tuple=function(t,e,n,r){var i=e.meta.types,o=i.length;if(!s.Array.is(t)||t.length>o)return{value:t,errors:[l.of(t,e,n,r.context)]};for(var u={value:[],errors:[]},c=0;c<o;c++){var f=a(t[c],i[c],n.concat(c),r);u.value[c]=f.value,u.errors=u.errors.concat(f.errors)}return u},d.dict=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:[]};for(var o in t)if(t.hasOwnProperty(o)){var u=n.concat(o),c=a(o,e.meta.domain,u,r),f=a(t[o],e.meta.codomain,u,r);i.value[o]=f.value,i.errors=i.errors.concat(c.errors,f.errors)}return i},d.union=function(t,e,n,r){var i=e.dispatch(t);return s.Function.is(i)?a(t,i,n.concat(e.meta.types.indexOf(i)),r):{value:t,errors:[l.of(t,e,n,r.context)]}},d.intersection=function(t,e,n,r){for(var i=e.meta.types,o=i.length,s={value:t,errors:[]},u=0,c=0;c<o;c++){"struct"===i[c].meta.kind&&u++;var f=a(t,i[c],n,r);s.errors=s.errors.concat(f.errors)}return u>1&&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
70
70
  *
71
71
  * tcomb.js - Type checking and DDD for JavaScript
72
72
  *
@@ -75,12 +75,12 @@ function(t){function e(t,e,n,r){var i,o,a,s,c,f,d,h,p,v;if((e?e.ownerDocument||e
75
75
  * Copyright (c) 2014-2016 Giulio Canti
76
76
  *
77
77
  */
78
- 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(17),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(32),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(17),i=n(29);t.exports=r("Array",i)},function(t,e,n){var r=n(17);t.exports=r("Date",function(t){return t instanceof Date})},function(t,e,n){var r=n(17);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(17),i=n(28);t.exports=r("Object",i)},function(t,e,n){var r=n(17);t.exports=r("RegExp",function(t){return t instanceof RegExp})},function(t,e,n){var r=n(17),i=n(11);t.exports=r("Type",i)},function(t,e,n){var r=(n(5),n(20),n(11),n(26),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(28);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(30),s=n(76),u=n(31),c=n(107),l=(n(52),n(32)),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(28)),c=n(26),l=n(31),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<r;n++){var i=t[n];if(l(i)){var o=i.dispatch(e);if(!f(o))return o}else if(c(e,i))return i}},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(8)),s=n(30),u=(n(29),n(31)),c=n(32),l=(n(52),n(110)),f=n(26);i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t,e){return"("+t.map(d).join(", ")+") => "+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&&o<d){var s=Function.prototype.bind.apply(n,[this].concat(i));return a(t.slice(o),e).of(s,!0)}return l(e,n.apply(this,i))}return s.is(n)?n:(i.instrumentation={domain:t,codomain:e,f:n},i.displayName=f(n),i)},s}var s=(n(5),n(20),n(67)),u=n(29),c=(n(111),n(28)),l=n(31),f=(n(26),n(66),n(114),n(51)),d=n(8),h=n(11);a.getDefaultName=r,a.getOptionalArgumentsIndex=o,t.exports=a},function(t,e,n){function r(t){return t.map(s).join(" & ")}function i(t,e){function n(t,e){return t}var i=e||r(t),s=t.every(u);return n.meta={kind:"intersection",types:t,name:e,identity:s},n.displayName=i,n.is=function(e){return t.every(function(t){return a(e,t)})},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(29),n(30),n(32)),s=n(8),u=n(30);i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t,e){return h(o,t,e)}function i(t){return s(t)||(t=u(t)?{}:{name:t}),t.hasOwnProperty("strict")||(t.strict=o.strict),t}function o(t,e){function n(e,n){if(v)return e;var r=!0,i=v?{}:p({},e);for(var o in t){var a=t[o],s=e[o],u=c(a,s,null);r=r&&s===u,i[o]=u}return r&&(i=e),i}e=i(e);var o=e.name,s=e.strict,h=o||l(t),v=Object.keys(t).map(function(e){return t[e]}).every(f);return n.meta={kind:"interface",props:t,name:o,identity:v,strict:s},n.displayName=h,n.is=function(e){if(u(e))return!1;if(s)for(var n in e)if(!t.hasOwnProperty(n))return!1;for(var r in t)if(!d(e[r],t[r]))return!1;return!0},n.update=function(t,e){return n(a.update(t,e))},n.extend=function(t,e){return r([n].concat(t),e)},n}var a=n(5),s=(n(20),n(78),n(67),n(66),n(28)),u=n(26),c=n(31),l=(n(8),n(79),n(112)),f=n(30),d=n(32),h=n(113),p=n(115);o.strict=!1,o.getOptions=i,o.getDefaultName=l,o.extend=r,t.exports=o},function(t,e,n){function r(t){return v(t)?t instanceof Date||t instanceof RegExp?t:m({},t):y(t)?t.concat():t}function i(t){return a.commands.hasOwnProperty(t)}function o(t){return a.commands[t]}function a(t,e){var n,s=t,u=!1;for(var c in e)e.hasOwnProperty(c)&&(i(c)?(n=o(c)(e[c],s),n!==t?(u=!0,s=n):s=t):(s===t&&(s=r(t)),n=a(s[c],e[c]),u=u||n!==s[c],s[c]=n));return u?s:t}function s(t,e){return t(e)}function u(t,e){return t.length>0?e.concat(t):e}function c(t,e){if(t.length>0){e=r(e);for(var n=0,i=t.length;n<i;n++)delete e[t[n]]}return e}function l(t){return t}function f(t,e){return t.length>0?(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(28)),y=(n(10),n(29)),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<c;)if(e=arguments[u],n=arguments[u+1],s=arguments[u+2],i(s)&&!o(s)?u+=3:(s=n,n=a.is,u+=2),e.is(t)&&n(t))return s(t);r.fail("Match error")}},function(t,e,n){"use strict";var r=n(12);!function(){function t(t,e){var n=r.b.run(e);return n.allDataLoaded?n.result:t}scrivito.loadableWithDefault=t,scrivito.loadWithDefault=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){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){return!e||"object"!==i(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){return(l=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var f=n(1);!function(){var t=function(t){function e(t){return o(this,e),u(this,l(e).call(this,"Data is not yet loaded.",t))}return a(e,t),e}(f.ScrivitoError);scrivito.NotLoadedError=t}()},function(t,e,n){"use strict";var r=n(0),i=n.n(r);!function(){function t(t,e,r){return n?t:i.a.throttle(t,e,r)}function e(){n=!0}var n=!1;scrivito.throttle=t,scrivito.bypassThrottle=e}()},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}var s=n(0),u=n.n(s),c=n(47),l=n(1);!function(){scrivito.typeInfo={normalize:function(t){if(u.a.isString(t))return[t];if(u.a.isArray(t))return t;throw new l.InternalError("Type Info needs to be a string or an array containing a string and optionally a hash")},normalizeAttrs:function(t){var e=this;return u.a.mapObject(t,function(t,n){if(Object(c.a)(n))return u.a.isArray(t)?t:[t];if(!u.a.isArray(t))throw new l.InternalError("Value for ".concat(n," should be a tuple: [value, typeInfo]"));var i=r(t,2),o=i[0],a=i[1];return[o,e.normalize(a)]})},unwrapAttributes:function(t){return u.a.mapObject(t,function(t){return r(t,1)[0]})}}}()},function(t,e,n){"use strict";function r(t,e,n){var r=s.a.forClass(n);return Object(a.pick)({name:e,type:t,attributes:i(r.attributes,Object(c.a)(e,"attributes")),onlyInside:r.onlyInside,description:Object(c.a)(e,"description"),hideInSelectionDialogs:Object(c.a)(e,"hideInSelectionDialogs"),properties:Object(c.a)(e,"properties"),propertiesGroups:Object(c.a)(e,"propertiesGroups"),thumbnail:Object(c.a)(e,"thumbnail"),title:Object(c.a)(e,"title")},a.identity)}function i(t,e){var n=Object(a.map)(t,function(t,e){var n=t[0],r=t[1],i={name:e,type:n};return r.only&&(i.only=r.only),r.values&&(i.values=r.values),i});return e&&Object.keys(e).forEach(function(t){var r=Object(a.findWhere)(n,{name:t});if(r){var i=e[t],o=i.title,s=i.description,u=i.values;u?Object(a.extend)(r,{title:o,description:s,valuesLocalization:u}):Object(a.extend)(r,{title:o,description:s})}}),n}function o(t,e){var n=_.default.getIncludingDeleted(e);if(n){var r=Object(w.e)(Object(d.a)(),n);return Object(l.a)(n.objClass(),t,r)}}var a=n(0),s=(n.n(a),n(42)),u=n(129),c=n(82),l=n(225),f=n(61),d=n(62),h=n(310),p=n(313),v=n(70),y=n(135),m=n(137),b=n(138),g=n(222),w=n(22),_=n(3),k=n(228),O=function(){function t(){}return t.prototype.contentBrowserConfiguration=function(){return Object(b.a)(Object(m.b)())},t.prototype.titleForObj=function(t){return o("titleForContent",t)},t.prototype.descriptionForObj=function(t){return o("descriptionForContent",t)},t.prototype.titleForWidget=function(t,e){return Object(k.a)(t,e)},t.prototype.initializeContentForObj=function(t){Object(g.b)(t)},t.prototype.initializeContentForWidget=function(t,e){Object(g.c)(t,e)},t.prototype.getClasses=function(){var t=Object(f.a)(),e=[];return Object(a.each)(t.allObjClasses(),function(t,n){return e.push(r("Obj",n,t))}),Object(a.each)(t.allWidgetClasses(),function(t,n){return e.push(r("Widget",n,t))}),e},t.prototype.navigateTo=function(t){Object(u.a)(function(){var e=_.default.get(t);if(e)return Object(w.e)(Object(d.a)(),e)})},t.prototype.mountComponent=function(t,e){Object(h.a)(t,e)},t.prototype.resolveUrl=function(t){return Object(p.a)(t).then(function(t){if(!t||!t.obj)return null;var e=t.obj,n=t.url.fragment(),r=t.url.search(),i={obj_id:e.id()};return n&&(i.fragment=n),r&&(i.query=r),i})},t.prototype.getDocumentHeight=function(){return Object(v.b)().querySelector("html").getBoundingClientRect().height},t.prototype.replaceInternalLinks=function(t){return Object(y.a)(t)},t}();e.a=O},function(t,e,n){"use strict";function r(t){return o()(t)}e.a=r;var i=n(156),o=n.n(i)},function(t,e,n){var r,i;!function(n){"use strict";var o={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"Ae","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"Oe","Ő":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"Ue","Ű":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"ae","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"oe","ő":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"ue","ű":"u","ý":"y","þ":"th","ÿ":"y","ẞ":"SS","ا":"a","أ":"a","إ":"i","آ":"aa","ؤ":"u","ئ":"e","ء":"a","ب":"b","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ي":"y","ى":"a","ة":"h","ﻻ":"la","ﻷ":"laa","ﻹ":"lai","ﻵ":"laa","گ":"g","چ":"ch","پ":"p","ژ":"zh","ک":"k","ی":"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","က":"k","ခ":"kh","ဂ":"g","ဃ":"ga","င":"ng","စ":"s","ဆ":"sa","ဇ":"z","စျ":"za","ည":"ny","ဋ":"t","ဌ":"ta","ဍ":"d","ဎ":"da","ဏ":"na","တ":"t","ထ":"ta","ဒ":"d","ဓ":"da","န":"n","ပ":"p","ဖ":"pa","ဗ":"b","ဘ":"ba","မ":"m","ယ":"y","ရ":"ya","လ":"l","ဝ":"w","သ":"th","ဟ":"h","ဠ":"la","အ":"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h","ဧ":"e","၏":"-e","ဣ":"i","ဤ":"-i","ဉ":"u","ဦ":"-u","ဩ":"aw","သြော":"aw","ဪ":"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"","č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z","ހ":"h","ށ":"sh","ނ":"n","ރ":"r","ބ":"b","ޅ":"lh","ކ":"k","އ":"a","ވ":"v","މ":"m","ފ":"f","ދ":"dh","ތ":"th","ލ":"l","ގ":"g","ޏ":"gn","ސ":"s","ޑ":"d","ޒ":"z","ޓ":"t","ޔ":"y","ޕ":"p","ޖ":"j","ޗ":"ch","ޘ":"tt","ޙ":"hh","ޚ":"kh","ޛ":"th","ޜ":"z","ޝ":"sh","ޞ":"s","ޟ":"d","ޠ":"t","ޡ":"z","ޢ":"a","ޣ":"gh","ޤ":"q","ޥ":"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"p","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","α":"a","β":"v","γ":"g","δ":"d","ε":"e","ζ":"z","η":"i","θ":"th","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"ks","ο":"o","π":"p","ρ":"r","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"o","ά":"a","έ":"e","ί":"i","ό":"o","ύ":"y","ή":"i","ώ":"o","ς":"s","ϊ":"i","ΰ":"y","ϋ":"y","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"I","Θ":"TH","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"KS","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"O","Ά":"A","Έ":"E","Ί":"I","Ό":"O","Ύ":"Y","Ή":"I","Ώ":"O","Ϊ":"I","Ϋ":"Y","ā":"a","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","ū":"u","Ā":"A","Ē":"E","Ģ":"G","Ī":"I","Ķ":"k","Ļ":"L","Ņ":"N","Ū":"U","Ќ":"Kj","ќ":"kj","Љ":"Lj","љ":"lj","Њ":"Nj","њ":"nj","Тс":"Ts","тс":"ts","ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"E","Ł":"L","Ń":"N","Ś":"S","Ź":"Z","Ż":"Z","Є":"Ye","І":"I","Ї":"Yi","Ґ":"G","є":"ye","і":"i","ї":"yi","ґ":"g","ă":"a","Ă":"A","ș":"s","Ș":"S","ț":"t","Ț":"T","ţ":"t","Ţ":"T","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"yo","ж":"zh","з":"z","и":"i","й":"i","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"kh","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ё":"Yo","Ж":"Zh","З":"Z","И":"I","Й":"I","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"Kh","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","ђ":"dj","ј":"j","ћ":"c","џ":"dz","Ђ":"Dj","Ј":"j","Ћ":"C","Џ":"Dz","ľ":"l","ĺ":"l","ŕ":"r","Ľ":"L","Ĺ":"L","Ŕ":"R","ş":"s","Ş":"S","ı":"i","İ":"I","ğ":"g","Ğ":"G","ả":"a","Ả":"A","ẳ":"a","Ẳ":"A","ẩ":"a","Ẩ":"A","đ":"d","Đ":"D","ẹ":"e","Ẹ":"E","ẽ":"e","Ẽ":"E","ẻ":"e","Ẻ":"E","ế":"e","Ế":"E","ề":"e","Ề":"E","ệ":"e","Ệ":"E","ễ":"e","Ễ":"E","ể":"e","Ể":"E","ỏ":"o","ọ":"o","Ọ":"o","ố":"o","Ố":"O","ồ":"o","Ồ":"O","ổ":"o","Ổ":"O","ộ":"o","Ộ":"O","ỗ":"o","Ỗ":"O","ơ":"o","Ơ":"O","ớ":"o","Ớ":"O","ờ":"o","Ờ":"O","ợ":"o","Ợ":"O","ỡ":"o","Ỡ":"O","Ở":"o","ở":"o","ị":"i","Ị":"I","ĩ":"i","Ĩ":"I","ỉ":"i","Ỉ":"i","ủ":"u","Ủ":"U","ụ":"u","Ụ":"U","ũ":"u","Ũ":"U","ư":"u","Ư":"U","ứ":"u","Ứ":"U","ừ":"u","Ừ":"U","ự":"u","Ự":"U","ữ":"u","Ữ":"U","ử":"u","Ử":"ư","ỷ":"y","Ỷ":"y","ỳ":"y","Ỳ":"Y","ỵ":"y","Ỵ":"Y","ỹ":"y","Ỹ":"Y","ạ":"a","Ạ":"A","ấ":"a","Ấ":"A","ầ":"a","Ầ":"A","ậ":"a","Ậ":"A","ẫ":"a","Ẫ":"A","ắ":"a","Ắ":"A","ằ":"a","Ằ":"A","ặ":"a","Ặ":"A","ẵ":"a","Ẵ":"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d","ƒ":"f","™":"(TM)","©":"(C)","œ":"oe","Œ":"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o","º":"o","ª":"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY","元":"CNY","円":"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN","лв":"BGN","៛":"KHR","₡":"CRC","₸":"KZT","ден":"MKD","zł":"PLN","₽":"RUB","₾":"GEL"},a=["်","ް"],s={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},u={en:{},az:{"ç":"c","ə":"e","ğ":"g","ı":"i","ö":"o","ş":"s","ü":"u","Ç":"C","Ə":"E","Ğ":"G","İ":"I","Ö":"O","Ş":"S","Ü":"U"},cs:{"č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z"},fi:{"ä":"a","Ä":"A","ö":"o","Ö":"O"},hu:{"ä":"a","Ä":"A","ö":"o","Ö":"O","ü":"u","Ü":"U","ű":"u","Ű":"U"},lt:{"ą":"a","č":"c","ę":"e","ė":"e","į":"i","š":"s","ų":"u","ū":"u","ž":"z","Ą":"A","Č":"C","Ę":"E","Ė":"E","Į":"I","Š":"S","Ų":"U","Ū":"U"},lv:{"ā":"a","č":"c","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","š":"s","ū":"u","ž":"z","Ā":"A","Č":"C","Ē":"E","Ģ":"G","Ī":"i","Ķ":"k","Ļ":"L","Ņ":"N","Š":"S","Ū":"u","Ž":"Z"},pl:{"ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ó":"o","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"e","Ł":"L","Ń":"N","Ó":"O","Ś":"S","Ź":"Z","Ż":"Z"},sv:{"ä":"a","Ä":"A","ö":"o","Ö":"O"},sk:{"ä":"a","Ä":"A"},sr:{"љ":"lj","њ":"nj","Љ":"Lj","Њ":"Nj","đ":"dj","Đ":"Dj"},tr:{"Ü":"U","Ö":"O","ü":"u","ö":"o"}},c={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"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;_<O;_++)k=t[_],y(k,T)?E=!1:g[k]?(k=E&&g[k].match(/[A-Za-z0-9]/)?" "+g[k]:g[k],E=!1):k in o?(_+1<O&&a.indexOf(t[_+1])>=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(25)},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){return!!o(t,e)||!(!Array.isArray(t)||!Array.isArray(e))&&(t.length===e.length&&Object(a.every)(Object(a.zip)(t,e),function(t){return o(t[0],t[1])}))}function o(t,e){return!Array.isArray(t)&&!Array.isArray(e)&&(r(t,s.a)?t.equals(e):r(t,u.default)?t.equals(e):r(t,l.a)?t.equals(e):r(t,c.a)?t.equals(e):Object(a.isEqual)(t,e))}e.a=i;var a=n(0),s=(n.n(a),n(25)),u=n(3),c=n(34),l=n(27)},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(12),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;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},y={results:[],total:0},m=function(){function t(t,e,n){this._params=t,this._batchSize=e,n?(this._index=n.index+1,this._continuation=n.continuationForNextBatch(),this._previousBatch=n):this._index=0}return t.store=function(t,e,n){void 0===n&&(n=e.length);var r=i(a(t),0),s=o(void 0);new f.b({state:r,invalidation:s,loader:function(){throw new h.InternalError("this should never be called")}}).set({results:e,total:n})},t.firstBatchFor=function(e,n){return new t(a(e),n)},t.countFor=function(t){return this.firstBatchFor(t,0).count()},t.prototype.objIds=function(){return this._response().results},t.prototype.count=function(){return this._response().total||0},t.prototype.nextBatch=function(){if(this.continuationForNextBatch())return new t(this._params,this._batchSize,this)},Object.defineProperty(t.prototype,"index",{get:function(){return this._index},enumerable:!0,configurable:!0}),t.prototype.continuationForNextBatch=function(){return this._response().continuation},t.prototype._response=function(){return this._data().get()||y},t.prototype._data=function(){return new f.b({state:i(this._params,this._index),loader:this._load.bind(this),invalidation:o(this._continuation)})},t.prototype._load=function(t){var e=this,n=t.push,i=t.isReload,o=t.wasCancelled;return this._fetchContinuation().then(function(t){if(o())throw new Error;var a={size:e._batchSize,continuation:t,include_objs:!i()},s=v({},e._params,a);return p.a.retrieveObjQuery(scrivito.currentWorkspaceId(),s).then(function(t){var e=t.objs;return e&&n(function(){return e.forEach(function(t){return u.e(t)})}),r(t.results),t})})},t.prototype._fetchContinuation=function(){var t=this._previousBatch;return t?Object(l.a)(function(){return t.continuationForNextBatch()}):scrivito.Promise.resolve()},t}();e.a=m},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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return c});var s=n(58),u=n(119),c=function(){function t(e,n){i(this,t),this._params=e,this._batchSize=n}return a(t,[{key:"count",value:function(){return u.a.count(this._params)}},{key:"iterator",value:function(){return new l(this._params,this._batchSize)}}]),t}(),l=function(){function t(e,n){i(this,t),this._iterator=new u.a(e,n).iterator()}return a(t,[{key:"next",value:function(){if(!this._iterator)return{done:!0};var t=this._iterator.next().value;if(!t)return{done:!0};var e=s.b(t);return void 0===e?(this._iterator=void 0,{done:!0}):e.isNonExistent()?this.next():{value:e,done:!1}}}]),t}()},function(t,e,n){"use strict";function r(t){var e=scrivito.computeCacheKey(t);return h.b.subState("facetQuery").subState(e)}function i(t){return function(){return v.a.retrieveFacetQuery(scrivito.currentWorkspaceId(),t)}}function o(){return Object(p.a)()||""}function a(t){var e=u.without.apply(void 0,[Object.keys(t)].concat(y));if(e.length)throw new d.ArgumentError("Invalid options: "+Object(f.a)(e)+". Valid options: "+y)}function s(t,e,n){var r={facets:[{attribute:t,limit:e.limit||10,include_objs:e.includeObjs||0}],size:0};return Object(u.isEmpty)(n)||(r.query=n),r}var u=n(0),c=(n.n(u),n(218)),l=n(12),f=n(41),d=n(1),h=n(4),p=n(92),v=n(43),y=["limit","includeObjs"],m=function(){function t(t,e,n){a(e),this._requestParams=s(t,e,n),this._loadableData=new l.b({state:r(this._requestParams),loader:i(this._requestParams),invalidation:o})}return t.store=function(t,e,n,u){a(e);var c=s(t,e,n);new l.b({state:r(c),loader:i(c),invalidation:o,throwNotLoaded:!0}).set(u)},t.prototype.result=function(){var t=this._loadableData.get();return t?t.facets[0].map(function(t){var e=t.value,n=t.total,r=t.results.map(function(t){return t.id});return new c.a(e,n,r)}):[]},t}();e.a=m},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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return u});var s=n(3),u=function(){function t(e,n,r){i(this,t),this._name=e,this._count=n,this._includedObjs=r}return a(t,[{key:"name",value:function(){return this._name}},{key:"count",value:function(){return this._count}},{key:"includedObjs",value:function(){return this._includedObjs.map(function(t){return s.default.get(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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}var s=n(22),u=function(){function t(e,n){i(this,t),this._registry=e,this._basicObjFacetValue=n}return a(t,[{key:"name",value:function(){return this._basicObjFacetValue.name()}},{key:"count",value:function(){return this._basicObjFacetValue.count()}},{key:"includedObjs",value:function(){var t=this._basicObjFacetValue.includedObjs();return Object(s.e)(this._registry,t)}}]),t}();e.a=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,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t){return function(){function e(){i(this,e)}return a(e,[{key:"id",value:function(){return this._scrivitoPrivateContent.id()}},{key:"objClass",value:function(){return this._scrivitoPrivateContent.objClass()}},{key:"finishSaving",value:function(){return this._scrivitoPrivateContent.finishSaving()}},{key:"get",value:function(e){return t.read(this,e)}},{key:"update",value:function(e){t.update(this,e)}}]),e}()}e.a=s},function(t,e,n){"use strict";function r(t,e,n,r){var i={};return Object.keys(n.definition.attributes).forEach(function(n){if(!t.hasOwnProperty(n)){var o=e.initialContentFor(r,n);void 0!==o&&(i[n]=o)}}),i}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(t,e){var n=Object(h.a)(t,"initialContent");if(n){var r=n[e];if(Object(l.isFunction)(r))return r();if(o(r)){var i=Object(y.a)();return r.map(function(t){var e=t._scrivitoPrivateContent,n=e.copy();return Object(v.e)(i,n)})}return r}}function o(t){return Object(l.isArray)(t)&&Object(l.every)(t,a)}function a(t){return t._scrivitoPrivateContent&&r(t._scrivitoPrivateContent,d.a)}function s(t){c(f.default.get(t))}function u(t,e){c(f.default.get(t).widget(e))}function c(t){var e=t.objClass(),n=Object(p.a)().getClass(e)._scrivitoPrivateSchema,r={};Object(l.each)(n.attributes,function(n,o){var a=t.get(o,n);if(Object(l.isEmpty)(a)){var s=i(e,o);s&&(r[o]=s)}});var o=Object(v.b)(r,n,e);t.update(o)}e.a=i,e.b=s,e.c=u;var l=n(0),f=(n.n(l),n(3)),d=n(27),h=n(82),p=n(61),v=n(22),y=n(62)},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i}),n.d(e,"e",function(){return o}),n.d(e,"c",function(){return a}),n.d(e,"g",function(){return s}),n.d(e,"h",function(){return u}),n.d(e,"f",function(){return c}),n.d(e,"d",function(){return l});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},o=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},a=function(t,e){return e(window.confirm(t))},s=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},u=function(){return-1===window.navigator.userAgent.indexOf("Trident")},c=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},l=function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")}},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){d=t}function o(t){if(u(t),s(t))return"/";if(t.permalink())return"/".concat(t.permalink());var e=l(t);return e?"/".concat(e,"-").concat(t.id()):"/".concat(t.id())}function a(t){c(t);var e=t.replace(new RegExp("^/+|/+$","g"),"");if(""===e)return Object(b.c)(d());var n=v.default.getByPermalink(e);return n||v.default.get(f(e))}function s(t){if(!d)return!1;var e=scrivito.loadableWithDefault(null,d);return!!e&&e.id()===t.id()}function u(t){if(!r(t,v.default))throw new y.ArgumentError("Parameter obj needs to be a BasicObj.")}function c(t){if(!p.a.isString(t))throw new y.ArgumentError("Parameter path needs to be a String.")}function l(t){var e=Object(m.a)();return Object(b.e)(e,t).slug()}function f(t){var e=p.a.last(t.split("-"));return p.a.last(e.split("/"))}e.b=i,e.a=o,e.c=a;var d,h=n(0),p=n.n(h),v=n(3),y=n(1),m=n(62),b=n(22)},function(t,e,n){"use strict";function r(t,e){var n=Object(o.a)(t,e);if(Object(i.isFunction)(n))try{for(var r=arguments.length,s=new Array(r>2?r-2:0),u=2;u<r;u++)s[u-2]=arguments[u];return n.apply(null,s)}catch(t){Object(a.b)(t)}}e.a=r;var i=n(0),o=(n.n(i),n(82)),a=n(37)},function(t,e,n){"use strict";function r(t){p(t);var e=t.tenant,n=t.homepage,r=t.routingBasePath,i=t.unstable,o=t.endpoint||"api.scrivito.com";if(f.b){var u={tenant:e,endpoint:o};i&&i.useRailsAuth&&(u.useRailsAuth=i.useRailsAuth),f.b.configureTenant(u)}else s.a.init(o,e);Object(l.b)(n||function(){return a.default.root()}),Object(c.e)({routingBasePath:r}),d=!0}function i(){return d}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var o=n(24),a=n(3),s=n(21),u=n(39),c=n(63),l=n(224),f=n(18),d=!1,h=o.a.struct({tenant:o.a.String,endpoint:o.a.maybe(o.a.String),homepage:o.a.maybe(o.a.Function),routingBasePath:o.a.maybe(o.a.String),unstable:o.a.maybe(o.a.Object)}),p=Object(u.a)("configure",[["configuration",h]],{docPermalink:"js-sdk/configure"})},function(t,e,n){"use strict";function r(t){if(!t)return!1;var e=t.objClass();if(!e)return!1;var n=Object(o.a)().getClass(e);return!!n&&i.a.forClass(n).isBinary()}e.a=r;var i=n(42),o=n(61)},function(t,e,n){"use strict";function r(t,e){var n=a.default.getIncludingDeleted(t),r=n.widget(e);return i(r)||o(r.objClass())}function i(t){var e=Object(f.e)(Object(c.a)(),t),n=t.objClass();return Object(s.a)(n,"titleForContent",e)}function o(t){return Object(u.a)(t,"title")||Object(l.d)(t)}e.a=r;var a=n(3),s=n(225),u=n(82),c=n(62),l=n(23),f=n(22)},function(t,e,n){"use strict";function r(){return++c}function i(t){var e=r();l[e]=t;var n=a(),i=n.get()||[];n.set(i.concat([e]))}function o(t){var e=t.type,n=t.tag,r=a().get();if(r){var i=Object(s.find)(r,function(t){return l[t]&&l[t].canEdit({type:e,tag:n})});if(i){return{id:i,editorClass:l[i]}}}}function a(){return u.a.subState("editors")}n.d(e,"a",function(){return o}),n.d(e,"b",function(){return i});var s=n(0),u=(n.n(s),n(4)),c=0,l={}},function(t,e,n){"use strict";function r(t){t.getAttribute("data-scrivito-editors-placeholder")||t.setAttribute("data-scrivito-editors-placeholder","Click to edit")}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(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}var s=n(75),u=n.n(s),c=function(){function t(e,n){i(this,t),this.domNode=e,this.controller=n}return a(t,[{key:"content",value:function(){return this.controller.getContent()}},{key:"idFromPath",value:function(t){if(t.match(/^objid:/))return t.replace(/^objid:/,"")}},{key:"edQuery",value:function(){return u.a.apply(void 0,arguments)}},{key:"jQueryElement",value:function(){return this.edQuery(this.domNode)}},{key:"pathForId",value:function(t){return"objid:".concat(t)}},{key:"save",value:function(t){this.controller.setContent(t);var e={done:function(t){return t(),e}};return e}},{key:"trigger",value:function(){}}]),t}();e.a=c},function(t,e,n){"use strict";function r(t){return t.isRaw()||t.isExplicitlyTransformed()?t:t.optimizeFor({width:Object(i.e)().width*Object(i.a)()})}e.a=r;var i=n(70)},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){if(!i(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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(14),p=n.n(h),v=n(0),y=(n.n(v),n(22)),m=n(34),b=n(3),g=n(25),w=n(129),_=n(15),k=n(234),O=n(136),E=n(347),x=n(59),C=n(18),j=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){return p.a.createElement("a",this._linkProps(),this.props.children)}},{key:"_linkProps",value:function(){var t=Object(v.omit)(this.props,"to");return t.href=this._href(),t.onClick=this._onClick,t.target=this._target(),t}},{key:"_href",value:function(){return this._to()||"#"}},{key:"_onClick",value:function(t){t.preventDefault(),this.props.to&&(Object(v.isString)(this.props.to)?scrivito.openInNewWindow(this.props.to):this._openLink(t))}},{key:"_openLink",value:function(t){var e=this._to();if(e){var n=this._target();"_blank"===n||Object(k.a)(t)?this._openLinkInNewWindow(e):n?scrivito.openLocation(e,n):Object(w.a)(this.props.to)}}},{key:"_openLinkInNewWindow",value:function(t){C.b?C.b.openInNewWindow(t):scrivito.openInNewWindow(t)}},{key:"_target",value:function(){return this.props.target?this.props.target:this.props.to&&i(this.props.to._scrivitoPrivateContent,m.a)?this.props.to.target():void 0}},{key:"_to",value:function(){if(this.props.to){if(Object(v.isString)(this.props.to))return this.props.to;var t=Object(y.c)(this.props.to);if(i(t,m.a)||i(t,b.default)||i(t,g.a))return Object(O.a)(t)}}}]),a(e,t),e}(p.a.Component);j.displayName="Scrivito.LinkTag",j.propTypes=Object(E.a)({to:E.b.maybe(E.b.union([x.d,x.b,x.a,E.b.String]))},{strict:!1}),e.a=Object(_.a)(j)},function(t,e,n){"use strict";function r(t){return t.ctrlKey||t.metaKey||t.shiftKey||t.which===i}e.a=r;var i=2},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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(87),p=n(42),v=n(0),y=(n.n(v),n(14)),m=n.n(y),b=n(1),g=n(22),w=n(236),_=n(15),k=n(229),O=n(37),E=n(237),x=n(354),C=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"render",value:function(){if(!this.props.content)return null;var t=p.a.basicFieldFor(this.props.content,this.props.attribute);if(!t){var e=this.props.attribute;return Object(O.b)(new b.ArgumentError('Component "Scrivito.ContentTag" received prop "attribute" with invalid value: '+'Attribute "'.concat(e,'" is not defined for content specified in prop "content".'))),null}var n,r,i=Object(k.a)({type:t.type(),tag:this.props.tag});return i&&(n=i.id,r=i.editorClass),Object(h.a)()?m.a.createElement(x.a,{key:this._editorKey(n),field:t,editorClass:r,tag:this.props.tag,customProps:this._customProps(),content:this.props.content},this.props.children):m.a.createElement(E.a,{field:t,tag:this.props.tag,customProps:this._customProps()},this.props.children)}},{key:"_customProps",value:function(){return Object(v.omit)(this.props,"content","attribute","tag")}},{key:"_editorKey",value:function(t){var e=Object(g.c)(this.props.content);return[this.props.tag,Object(w.a)(e),this.props.attribute,t].join("|")}}]),a(e,t),e}(m.a.Component);C.displayName="Scrivito.ContentTag",C.defaultProps={tag:"div"},e.a=Object(_.a)(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){if(r(t,o.default))return t.id();if(r(t,a.a))return"".concat(t.obj().id(),"|").concat(t.id());var e=Object(u.a)(t).substr(0,100);throw new s.InternalError('keyForBasicContent called with "'.concat(e,'". Expected an instance of')+" BasicObj or BasicWidget.")}e.a=i;var o=n(3),a=n(27),s=n(1),u=n(41)},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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(0),p=(n.n(h),n(14)),v=n.n(p),y=n(87),m=n(135),b=n(18),g=n(72),w=n(15),_=n(350),k=n(351),O=n(353),E=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){switch(this.props.field.type()){case"html":return this._renderHtml();case"float":case"integer":case"string":return this._renderAsString();case"widgetlist":return this._renderWidgetlist();default:return this._renderContent({children:this.props.children})}}},{key:"_renderHtml",value:function(){if(this.props.children)return this._renderContent({children:this.props.children});var t=Object(m.a)(this._attributeValue()),e={dangerouslySetInnerHTML:{__html:t},onClick:this._onClick};return this._renderContent({props:e})}},{key:"_onClick",value:function(t){var e=Object(_.a)(t);e&&(e.openInNewWindow?this._openInNewWindow(t,e):this._openInCurrentWindow(t,e))}},{key:"_openInNewWindow",value:function(t,e){var n=e.openInNewWindow;b.b&&(t.preventDefault(),t.stopPropagation(),b.b.openInNewWindow(n))}},{key:"_openInCurrentWindow",value:function(t,e){var n=e.openInCurrentWindow;t.preventDefault(),t.stopPropagation(),Object(g.c)(n)}},{key:"_renderAsString",value:function(){var t=this.props.children||this._attributeValue();return this._renderContent({children:t})}},{key:"_renderWidgetlist",value:function(){var t,e=this._attributeValue();return e.length?t=e.map(function(t){return v.a.createElement(k.a,{key:t.id(),widget:t})}):Object(y.a)()&&(t=v.a.createElement(O.a,{field:this.props.field})),this._renderContent({children:t})}},{key:"_renderContent",value:function(t){var e=t.props,n=t.children,r=Object(h.extend)({},this.props.customProps,e,this._editingProps());return v.a.createElement(this.props.tag,r,n)}},{key:"_editingProps",value:function(){return this.props.onClick?{onClick:this.props.onClick,"data-scrivito-is-clickable":!0}:{}}},{key:"_attributeValue",value:function(){return this.props.field.get()}}]),a(e,t),e}(v.a.Component);E.displayName="Scrivito.ContentTag.AttributeValue",e.a=Object(w.a)(E)},function(t,e){t.exports=PropTypes},function(t,e,n){"use strict";function r(t){t.dataTransfer.effectAllowed="move";try{t.dataTransfer.setData("text/plain",t.target.id)}catch(t){}}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(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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(14),p=n.n(h),v=n(15),y=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){var t="scrivito_option_marker scrivito_".concat(this.props.position);return this.props.isAlwaysShown&&(t+=" scrivito_visible"),p.a.createElement("span",{className:t,onClick:this._onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut},p.a.createElement("i",{className:"scrivito_icon scrivito_icon_marker_plus"}))}},{key:"_onClick",value:function(t){t.preventDefault(),t.stopPropagation(),this.props.insertWidget(this.props.widget,this.props.position)}}]),a(e,t),e}(p.a.Component);y.displayName="Scrivito.OptionMarker",e.a=Object(v.a)(y)},function(t,e,n){"use strict";function r(){i=!0}n.d(e,"b",function(){return i}),e.a=r;var i=!1},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(){window.scrivito||(window.scrivito={}),window.scrivito.on||(window.scrivito.on=function(t,e){"content"===t&&document.addEventListener("DOMContentLoaded",function(){return e(window.document)})}),window.scrivito.in_editable_view||(window.scrivito.in_editable_view=function(){return!1})}e.a=r},function(t,e,n){"use strict";function r(t){if(t){t.setAppAdapter("1.2.0-rc1",new u.a);var e=t.uiAdapter();Object(l.a)(e),Object(c.b)(e)}scrivito.client.init({ui:t});var n=new i.a;Object(o.b)(n.promise),document.addEventListener("DOMContentLoaded",n.resolve)}e.a=r;var i=(n(162),n(292),n(293),n(317),n(13)),o=n(81),a=n(320),s=n(229),u=n(210),c=n(43),l=n(18);window.scrivito||(window.scrivito={}),window.scrivito.registerEditor=s.b,window.scrivito.openContentBrowser=a.a},function(t,e,n){"use strict";var r=n(127);n.n(r)},function(t,e,n){"use strict";var r=n(294);n.n(r),n(210),n(72),n(316)},function(t,e){window.scrivito||(window.scrivito={}),window.scrivito.AppSupport={}},function(t,e,n){"use strict";function r(){window.scrollTo(0,0)}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(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return h});var s=n(297),u=n(298),c=n(299),l=n(133),f=n(302),d=n(303),h=function(){function t(){i(this,t),this._registry=new c.a,this._registry.defaultClassForLinks=Object(u.a)(this._registry),this._registry.ObjSearch=Object(s.a)(this._registry),this.appModelAccessor=new l.a(this._registry)}return a(t,null,[{key:"init",value:function(e){var n=new t;return e.Obj=n.Obj,e.Widget=n.Widget,e.Link=n.Link,e.ObjSearch=n.ObjSearch,e.appModelAccessor=n.appModelAccessor,e.provideObjClass=function(){return n.provideObjClass.apply(n,arguments)},e.provideWidgetClass=function(){return n.provideWidgetClass.apply(n,arguments)},e.createObjClass=function(){return n.createObjClass.apply(n,arguments)},e.createWidgetClass=function(){return n.createWidgetClass.apply(n,arguments)},e.getClass=function(){return n.getClass.apply(n,arguments)},e.allObjClasses=function(){return n.allObjClasses()},e.allWidgetClasses=function(){return n.allWidgetClasses()},e._privateRealm=n,n}}]),a(t,[{key:"provideObjClass",value:function(t,e){return Object(d.c)(t,e),Object(f.c)(this._registry,t,e)}},{key:"provideWidgetClass",value:function(t,e){return Object(d.d)(t,e),Object(f.d)(this._registry,t,e)}},{key:"createObjClass",value:function(t){return Object(d.a)(t),Object(f.a)(this._registry,t)}},{key:"createWidgetClass",value:function(t){return Object(d.b)(t),Object(f.b)(this._registry,t)}},{key:"getClass",value:function(t){return this._registry.getClass(t)}},{key:"allObjClasses",value:function(){return this._registry.allObjClasses()}},{key:"allWidgetClasses",value:function(){return this._registry.allWidgetClasses()}},{key:"setInitialContentFor",value:function(t){this._registry.setInitialContentFor(t)}},{key:"Obj",get:function(){return this._registry.defaultClassForObjs}},{key:"Widget",get:function(){return this._registry.defaultClassForWidgets}},{key:"Link",get:function(){return this._registry.defaultClassForLinks}},{key:"ObjSearch",get:function(){return this._registry.ObjSearch}}]),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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t){var e=function(){function e(t){i(this,e),this._scrivitoPrivateContent=new c.b(t)}return a(e,[{key:"and",value:function(t,n,i){var o=arguments.length>3&&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(219),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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function p(t){return(p=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function v(t){return function(e){function n(t){return o(this,n),l(this,p(n).call(this,t))}return c(n,[{key:"obj",value:function(){return Object(m.e)(t,d(p(n.prototype),"obj",this).call(this))}},{key:"fetchObj",value:function(e){return d(p(n.prototype),"fetchObj",this).call(this,e).then(function(e){return Object(m.e)(t,e)})}},{key:"_scrivitoPrivateContent",get:function(){return y.a.build(this.buildAttributes())}}]),a(n,e),n}(y.a)}e.a=v;var y=n(34),m=n(22)},function(t,e,n){"use strict";var r=n(0),i=(n.n(r),n(300)),o=n(301),a=function(){function t(){this.mapping={},this.defaultClassForObjs=Object(o.a)(this),this.defaultClassForWidgets=Object(i.a)(this)}return t.prototype.register=function(t,e){this.mapping[t]=e},t.prototype.getClass=function(t){return this.mapping[t]},t.prototype.allObjClasses=function(){return this.allForBaseClass(this.defaultClassForObjs)},t.prototype.allWidgetClasses=function(){return this.allForBaseClass(this.defaultClassForWidgets)},t.prototype.objClassFor=function(t){return this.appClassFor(t,this.defaultClassForObjs)},t.prototype.widgetClassFor=function(t){return this.appClassFor(t,this.defaultClassForWidgets)},t.prototype.objClassNameFor=function(t){return r.findKey(this.mapping,function(e){return e===t})},t.prototype.setInitialContentFor=function(t){this.initialContentForFunction=t},t.prototype.initialContentFor=function(t,e){if(this.initialContentForFunction)return this.initialContentForFunction(t,e)},t.prototype.appClassFor=function(t,e){var n=this.getClass(t);return n&&e.isPrototypeOf(n)?n:e},t.prototype.allForBaseClass=function(t){return r.pick(this.mapping,function(e){return t.isPrototypeOf(e)})},t}();e.a=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(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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var e=new g.a(t);return function(e){function n(e){var r;o(this,n),r=l(this,f(n).call(this));var i=y.a.forInstance(d(d(r))),a=t.objClassNameFor(r.constructor),s=r._prepareAttributesForConstructor(e,i,a),u=new m.a(s);return u.onDidPersist(function(e){var n=Object(k.e)(t,e),r=Object(_.a)(s,t,i,a);n.update(r)}),r._scrivitoPrivateContent=u,r}return c(n,[{key:"obj",value:function(){var e=this._scrivitoPrivateContent.obj();return Object(k.e)(t,e)}},{key:"copy",value:function(){var e=t.widgetClassFor(this.objClass()),n=this._scrivitoPrivateContent.copy();return Object(k.a)(n,e)}},{key:"_prepareAttributesForConstructor",value:function(t,e,n){p(n,t);var r={_objClass:n},i=Object(v.extend)({},t,r);return Object(k.b)(i,e,n)}}]),a(n,e),n}(Object(w.a)(e))}function p(t,e){if(!t)throw new b.ArgumentError("Creating widgets is not supported for the class Widget or abstract classes.");if(e.constructor!==Object)throw new b.ArgumentError("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(e._objClass)throw new b.ArgumentError('Invalid attribute "_objClass". '+'"new '.concat(e._objClass,'" will automatically set the CMS object class correctly.'))}e.a=h;var v=n(0),y=(n.n(v),n(42)),m=n(27),b=n(1),g=n(133),w=n(220),_=n(221),k=n(22)},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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function h(t){function e(e,n){var r=new t.ObjSearch;return e&&r.and("_objClass","equals",e),n&&r._scrivitoPrivateContent.batchSize(n),r}function n(e){return Object(w.e)(t,e)}var r=new g.a(t);return function(i){function s(){return o(this,s),l(this,d(s).apply(this,arguments))}return c(s,[{key:"lastChanged",value:function(){return this._scrivitoPrivateContent.lastChanged()}},{key:"path",value:function(){return this._scrivitoPrivateContent.path()}},{key:"parent",value:function(){return n(this._scrivitoPrivateContent.parent())}},{key:"ancestors",value:function(){return n(this._scrivitoPrivateContent.ancestors())}},{key:"backlinks",value:function(){return n(this._scrivitoPrivateContent.backlinks())}},{key:"children",value:function(){return n(this._scrivitoPrivateContent.children())}},{key:"orderedChildren",value:function(){return n(this._scrivitoPrivateContent.orderedChildren())}},{key:"permalink",value:function(){return this._scrivitoPrivateContent.permalink()}},{key:"slug",value:function(){return this._scrivitoPrivateContent.slug()}},{key:"isBinary",value:function(){var t=m.a.forInstance(this);return!!t&&t.isBinary()}},{key:"contentLength",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentLength():0}},{key:"contentType",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentType():""}},{key:"contentUrl",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentUrl():""}},{key:"metadata",value:function(){return this.isBinary()?this._scrivitoPrivateContent.metadata():new _.a}},{key:"destroy",value:function(){this._scrivitoPrivateContent.destroy()}},{key:"widget",value:function(t){return n(this._scrivitoPrivateContent.widget(t))}},{key:"widgets",value:function(){return n(this._scrivitoPrivateContent.widgets())}}],[{key:"get",value:function(t){return r.getObj(this,t)}},{key:"getIncludingDeleted",value:function(t){return r.getObjIncludingDeleted(this,t)}},{key:"getByPath",value:function(t){return n(y.default.getByPath(t))}},{key:"getByPermalink",value:function(t){return n(y.default.getByPermalink(t))}},{key:"all",value:function(){return e(t.objClassNameFor(this),1e3)}},{key:"root",value:function(){return n(y.default.root())}},{key:"where",value:function(n,r,i){var o=arguments.length>3&&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(220),O=n(221)},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(305);n.d(e,"a",function(){return r.a});n(308),n(309),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(223),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;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},h=function(){try{return window.history.state||{}}catch(t){return{}}},p=function(){var t=arguments.length>0&&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;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}function o(t){var e=arguments.length>1&&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(223),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(14),a=n.n(o),s=n(85),u=(n.n(s),n(3)),c=n(311),l=n(1),f=n(86),d=n(70),h=n(62),p=n(22),v=n(18),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(312)},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(226),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(18);!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(318),i=(n.n(r),n(319));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(18)},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(322),o=n(337),a=n(338)},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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(139),p=n(323),v=n.n(p),y=n(326),m=n(230),b=n(231),g=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"contentDidChange",value:function(){this._updateContent&&this._updateContent()}},{key:"editorWillBeActivated",value:function(){this._controller.setDomMode("Replace")}},{key:"editorDomWasMounted",value:function(t){var e=this;if(Object(m.a)(t),"yes"===window.top.localStorage.getItem("__scrivito_enable_quill")){var n=Object(y.a)(t,this._controller);this._updateContent=function(){setTimeout(function(){var t=n.getSelection();n.clipboard.dangerouslyPasteHTML(e._controller.getContent()),n.setSelection(t)})}}else{t.innerHTML=this._controller.getContent();var r=new b.a(t,this._controller),i=v()(r);this._updateContent=function(){var n=i.exportSelection();t.innerHTML=e._controller.getContent(),i.importSelection(n)}}}},{key:"editorDomWasUnmounted",value:function(){this._updateContent=void 0}}],[{key:"canEdit",value:function(t){return"html"===t.type}}]),a(e,t),e}(h.a);e.a=g},function(t,e,n){var r,i,o,a,s,u;i=n(324),r=n(325),o=i.extensions.anchor.extend({name:"scrivito_anchor",proxy:null,contentDefault:'<i class="scrivito_customer_icon sci_link"></i>',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="<div class='medium-editor-toolbar-form-row medium-editor-toolbar-anchor-target-toggle'>\n <label>\n <input type='checkbox' class='medium-editor-toolbar-anchor-target'>\n <i class='scrivito_customer_icon sci_inv_check'></i>\n <i class='scrivito_customer_icon sci_rounded_square'></i>\n "+this.targetCheckboxText+"\n </label>\n</div>"),("<i class='medium-editor-toolbar-browse scrivito_customer_icon sci_collection'></i>\n<input type='text' class='medium-editor-toolbar-input' placeholder='"+this.placeholderText+"'>\n<i class='medium-editor-toolbar-save scrivito_customer_icon sci_check'></i>\n<i class='medium-editor-toolbar-close scrivito_customer_icon sci_cross'></i>\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:'<i class="scrivito_customer_icon sci_code"></i>',start:"<code>",end:"</code>"}),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 */
78
+ 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<r;n++){var i=t[n];if(l(i)){var o=i.dispatch(e);if(!f(o))return o}else if(c(e,i))return i}},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(8)),s=n(29),u=(n(28),n(30)),c=n(31),l=(n(52),n(110)),f=n(25);i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t,e){return"("+t.map(d).join(", ")+") => "+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&&o<d){var s=Function.prototype.bind.apply(n,[this].concat(i));return a(t.slice(o),e).of(s,!0)}return l(e,n.apply(this,i))}return s.is(n)?n:(i.instrumentation={domain:t,codomain:e,f:n},i.displayName=f(n),i)},s}var s=(n(5),n(20),n(67)),u=n(28),c=(n(111),n(27)),l=n(30),f=(n(25),n(66),n(114),n(51)),d=n(8),h=n(11);a.getDefaultName=r,a.getOptionalArgumentsIndex=o,t.exports=a},function(t,e,n){function r(t){return t.map(s).join(" & ")}function i(t,e){function n(t,e){return t}var i=e||r(t),s=t.every(u);return n.meta={kind:"intersection",types:t,name:e,identity:s},n.displayName=i,n.is=function(e){return t.every(function(t){return a(e,t)})},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(28),n(29),n(31)),s=n(8),u=n(29);i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t,e){return h(o,t,e)}function i(t){return s(t)||(t=u(t)?{}:{name:t}),t.hasOwnProperty("strict")||(t.strict=o.strict),t}function o(t,e){function n(e,n){if(v)return e;var r=!0,i=v?{}:p({},e);for(var o in t){var a=t[o],s=e[o],u=c(a,s,null);r=r&&s===u,i[o]=u}return r&&(i=e),i}e=i(e);var o=e.name,s=e.strict,h=o||l(t),v=Object.keys(t).map(function(e){return t[e]}).every(f);return n.meta={kind:"interface",props:t,name:o,identity:v,strict:s},n.displayName=h,n.is=function(e){if(u(e))return!1;if(s)for(var n in e)if(!t.hasOwnProperty(n))return!1;for(var r in t)if(!d(e[r],t[r]))return!1;return!0},n.update=function(t,e){return n(a.update(t,e))},n.extend=function(t,e){return r([n].concat(t),e)},n}var a=n(5),s=(n(20),n(78),n(67),n(66),n(27)),u=n(25),c=n(30),l=(n(8),n(79),n(112)),f=n(29),d=n(31),h=n(113),p=n(115);o.strict=!1,o.getOptions=i,o.getDefaultName=l,o.extend=r,t.exports=o},function(t,e,n){function r(t){return v(t)?t instanceof Date||t instanceof RegExp?t:m({},t):y(t)?t.concat():t}function i(t){return a.commands.hasOwnProperty(t)}function o(t){return a.commands[t]}function a(t,e){var n,s=t,u=!1;for(var c in e)e.hasOwnProperty(c)&&(i(c)?(n=o(c)(e[c],s),n!==t?(u=!0,s=n):s=t):(s===t&&(s=r(t)),n=a(s[c],e[c]),u=u||n!==s[c],s[c]=n));return u?s:t}function s(t,e){return t(e)}function u(t,e){return t.length>0?e.concat(t):e}function c(t,e){if(t.length>0){e=r(e);for(var n=0,i=t.length;n<i;n++)delete e[t[n]]}return e}function l(t){return t}function f(t,e){return t.length>0?(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<c;)if(e=arguments[u],n=arguments[u+1],s=arguments[u+2],i(s)&&!o(s)?u+=3:(s=n,n=a.is,u+=2),e.is(t)&&n(t))return s(t);r.fail("Match error")}},function(t,e,n){"use strict";var r=n(18);!function(){function t(t,e){var n=r.b.run(e);return n.allDataLoaded?n.result:t}scrivito.loadableWithDefault=t,scrivito.loadWithDefault=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){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){return!e||"object"!==i(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){return(l=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var f=n(1);!function(){var t=function(t){function e(t){return o(this,e),u(this,l(e).call(this,"Data is not yet loaded.",t))}return a(e,t),e}(f.ScrivitoError);scrivito.NotLoadedError=t}()},function(t,e,n){"use strict";var r=n(0),i=n.n(r);!function(){function t(t,e,r){return n?t:i.a.throttle(t,e,r)}function e(){n=!0}var n=!1;scrivito.throttle=t,scrivito.bypassThrottle=e}()},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}var s=n(0),u=n.n(s),c=n(47),l=n(1);!function(){scrivito.typeInfo={normalize:function(t){if(u.a.isString(t))return[t];if(u.a.isArray(t))return t;throw new l.InternalError("Type Info needs to be a string or an array containing a string and optionally a hash")},normalizeAttrs:function(t){var e=this;return u.a.mapObject(t,function(t,n){if(Object(c.a)(n))return u.a.isArray(t)?t:[t];if(!u.a.isArray(t))throw new l.InternalError("Value for ".concat(n," should be a tuple: [value, typeInfo]"));var i=r(t,2),o=i[0],a=i[1];return[o,e.normalize(a)]})},unwrapAttributes:function(t){return u.a.mapObject(t,function(t){return r(t,1)[0]})}}}()},function(t,e,n){"use strict";function r(t,e,n){var r=s.a.forClass(n);return Object(a.pick)({name:e,type:t,attributes:i(r.attributes,Object(c.a)(e,"attributes")),onlyInside:r.onlyInside,description:Object(c.a)(e,"description"),hideInSelectionDialogs:Object(c.a)(e,"hideInSelectionDialogs"),properties:Object(c.a)(e,"properties"),propertiesGroups:Object(c.a)(e,"propertiesGroups"),thumbnail:Object(c.a)(e,"thumbnail"),title:Object(c.a)(e,"title")},a.identity)}function i(t,e){var n=Object(a.map)(t,function(t,e){var n=t[0],r=t[1],i={name:e,type:n};return r.only&&(i.only=r.only),r.values&&(i.values=r.values),i});return e&&Object.keys(e).forEach(function(t){var r=Object(a.findWhere)(n,{name:t});if(r){var i=e[t],o=i.title,s=i.description,u=i.values;u?Object(a.extend)(r,{title:o,description:s,valuesLocalization:u}):Object(a.extend)(r,{title:o,description:s})}}),n}function o(t,e){var n=_.default.getIncludingDeleted(e);if(n){var r=Object(w.e)(Object(d.a)(),n);return Object(l.a)(n.objClass(),t,r)}}var a=n(0),s=(n.n(a),n(42)),u=n(129),c=n(82),l=n(224),f=n(61),d=n(62),h=n(309),p=n(312),v=n(70),y=n(135),m=n(137),b=n(138),g=n(221),w=n(22),_=n(3),k=n(227),O=function(){function t(){}return t.prototype.contentBrowserConfiguration=function(){return Object(b.a)(Object(m.b)())},t.prototype.titleForObj=function(t){return o("titleForContent",t)},t.prototype.descriptionForObj=function(t){return o("descriptionForContent",t)},t.prototype.titleForWidget=function(t,e){return Object(k.a)(t,e)},t.prototype.initializeContentForObj=function(t){Object(g.b)(t)},t.prototype.initializeContentForWidget=function(t,e){Object(g.c)(t,e)},t.prototype.getClasses=function(){var t=Object(f.a)(),e=[];return Object(a.each)(t.allObjClasses(),function(t,n){return e.push(r("Obj",n,t))}),Object(a.each)(t.allWidgetClasses(),function(t,n){return e.push(r("Widget",n,t))}),e},t.prototype.navigateTo=function(t){Object(u.a)(function(){var e=_.default.get(t);if(e)return Object(w.e)(Object(d.a)(),e)})},t.prototype.mountComponent=function(t,e){Object(h.a)(t,e)},t.prototype.resolveUrl=function(t){return Object(p.a)(t).then(function(t){if(!t||!t.obj)return null;var e=t.obj,n=t.url.fragment(),r=t.url.search(),i={obj_id:e.id()};return n&&(i.fragment=n),r&&(i.query=r),i})},t.prototype.getDocumentHeight=function(){return Object(v.b)().querySelector("html").getBoundingClientRect().height},t.prototype.replaceInternalLinks=function(t){return Object(y.a)(t)},t}();e.a=O},function(t,e,n){"use strict";function r(t){return o()(t)}e.a=r;var i=n(156),o=n.n(i)},function(t,e,n){var r,i;!function(n){"use strict";var o={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"Ae","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"Oe","Ő":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"Ue","Ű":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"ae","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"oe","ő":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"ue","ű":"u","ý":"y","þ":"th","ÿ":"y","ẞ":"SS","ا":"a","أ":"a","إ":"i","آ":"aa","ؤ":"u","ئ":"e","ء":"a","ب":"b","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ي":"y","ى":"a","ة":"h","ﻻ":"la","ﻷ":"laa","ﻹ":"lai","ﻵ":"laa","گ":"g","چ":"ch","پ":"p","ژ":"zh","ک":"k","ی":"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","က":"k","ခ":"kh","ဂ":"g","ဃ":"ga","င":"ng","စ":"s","ဆ":"sa","ဇ":"z","စျ":"za","ည":"ny","ဋ":"t","ဌ":"ta","ဍ":"d","ဎ":"da","ဏ":"na","တ":"t","ထ":"ta","ဒ":"d","ဓ":"da","န":"n","ပ":"p","ဖ":"pa","ဗ":"b","ဘ":"ba","မ":"m","ယ":"y","ရ":"ya","လ":"l","ဝ":"w","သ":"th","ဟ":"h","ဠ":"la","အ":"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h","ဧ":"e","၏":"-e","ဣ":"i","ဤ":"-i","ဉ":"u","ဦ":"-u","ဩ":"aw","သြော":"aw","ဪ":"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"","č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z","ހ":"h","ށ":"sh","ނ":"n","ރ":"r","ބ":"b","ޅ":"lh","ކ":"k","އ":"a","ވ":"v","މ":"m","ފ":"f","ދ":"dh","ތ":"th","ލ":"l","ގ":"g","ޏ":"gn","ސ":"s","ޑ":"d","ޒ":"z","ޓ":"t","ޔ":"y","ޕ":"p","ޖ":"j","ޗ":"ch","ޘ":"tt","ޙ":"hh","ޚ":"kh","ޛ":"th","ޜ":"z","ޝ":"sh","ޞ":"s","ޟ":"d","ޠ":"t","ޡ":"z","ޢ":"a","ޣ":"gh","ޤ":"q","ޥ":"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"p","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","α":"a","β":"v","γ":"g","δ":"d","ε":"e","ζ":"z","η":"i","θ":"th","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"ks","ο":"o","π":"p","ρ":"r","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"o","ά":"a","έ":"e","ί":"i","ό":"o","ύ":"y","ή":"i","ώ":"o","ς":"s","ϊ":"i","ΰ":"y","ϋ":"y","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"I","Θ":"TH","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"KS","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"O","Ά":"A","Έ":"E","Ί":"I","Ό":"O","Ύ":"Y","Ή":"I","Ώ":"O","Ϊ":"I","Ϋ":"Y","ā":"a","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","ū":"u","Ā":"A","Ē":"E","Ģ":"G","Ī":"I","Ķ":"k","Ļ":"L","Ņ":"N","Ū":"U","Ќ":"Kj","ќ":"kj","Љ":"Lj","љ":"lj","Њ":"Nj","њ":"nj","Тс":"Ts","тс":"ts","ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"E","Ł":"L","Ń":"N","Ś":"S","Ź":"Z","Ż":"Z","Є":"Ye","І":"I","Ї":"Yi","Ґ":"G","є":"ye","і":"i","ї":"yi","ґ":"g","ă":"a","Ă":"A","ș":"s","Ș":"S","ț":"t","Ț":"T","ţ":"t","Ţ":"T","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"yo","ж":"zh","з":"z","и":"i","й":"i","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"kh","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ё":"Yo","Ж":"Zh","З":"Z","И":"I","Й":"I","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"Kh","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","ђ":"dj","ј":"j","ћ":"c","џ":"dz","Ђ":"Dj","Ј":"j","Ћ":"C","Џ":"Dz","ľ":"l","ĺ":"l","ŕ":"r","Ľ":"L","Ĺ":"L","Ŕ":"R","ş":"s","Ş":"S","ı":"i","İ":"I","ğ":"g","Ğ":"G","ả":"a","Ả":"A","ẳ":"a","Ẳ":"A","ẩ":"a","Ẩ":"A","đ":"d","Đ":"D","ẹ":"e","Ẹ":"E","ẽ":"e","Ẽ":"E","ẻ":"e","Ẻ":"E","ế":"e","Ế":"E","ề":"e","Ề":"E","ệ":"e","Ệ":"E","ễ":"e","Ễ":"E","ể":"e","Ể":"E","ỏ":"o","ọ":"o","Ọ":"o","ố":"o","Ố":"O","ồ":"o","Ồ":"O","ổ":"o","Ổ":"O","ộ":"o","Ộ":"O","ỗ":"o","Ỗ":"O","ơ":"o","Ơ":"O","ớ":"o","Ớ":"O","ờ":"o","Ờ":"O","ợ":"o","Ợ":"O","ỡ":"o","Ỡ":"O","Ở":"o","ở":"o","ị":"i","Ị":"I","ĩ":"i","Ĩ":"I","ỉ":"i","Ỉ":"i","ủ":"u","Ủ":"U","ụ":"u","Ụ":"U","ũ":"u","Ũ":"U","ư":"u","Ư":"U","ứ":"u","Ứ":"U","ừ":"u","Ừ":"U","ự":"u","Ự":"U","ữ":"u","Ữ":"U","ử":"u","Ử":"ư","ỷ":"y","Ỷ":"y","ỳ":"y","Ỳ":"Y","ỵ":"y","Ỵ":"Y","ỹ":"y","Ỹ":"Y","ạ":"a","Ạ":"A","ấ":"a","Ấ":"A","ầ":"a","Ầ":"A","ậ":"a","Ậ":"A","ẫ":"a","Ẫ":"A","ắ":"a","Ắ":"A","ằ":"a","Ằ":"A","ặ":"a","Ặ":"A","ẵ":"a","Ẵ":"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d","ƒ":"f","™":"(TM)","©":"(C)","œ":"oe","Œ":"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o","º":"o","ª":"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY","元":"CNY","円":"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN","лв":"BGN","៛":"KHR","₡":"CRC","₸":"KZT","ден":"MKD","zł":"PLN","₽":"RUB","₾":"GEL"},a=["်","ް"],s={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},u={en:{},az:{"ç":"c","ə":"e","ğ":"g","ı":"i","ö":"o","ş":"s","ü":"u","Ç":"C","Ə":"E","Ğ":"G","İ":"I","Ö":"O","Ş":"S","Ü":"U"},cs:{"č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z"},fi:{"ä":"a","Ä":"A","ö":"o","Ö":"O"},hu:{"ä":"a","Ä":"A","ö":"o","Ö":"O","ü":"u","Ü":"U","ű":"u","Ű":"U"},lt:{"ą":"a","č":"c","ę":"e","ė":"e","į":"i","š":"s","ų":"u","ū":"u","ž":"z","Ą":"A","Č":"C","Ę":"E","Ė":"E","Į":"I","Š":"S","Ų":"U","Ū":"U"},lv:{"ā":"a","č":"c","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","š":"s","ū":"u","ž":"z","Ā":"A","Č":"C","Ē":"E","Ģ":"G","Ī":"i","Ķ":"k","Ļ":"L","Ņ":"N","Š":"S","Ū":"u","Ž":"Z"},pl:{"ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ó":"o","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"e","Ł":"L","Ń":"N","Ó":"O","Ś":"S","Ź":"Z","Ż":"Z"},sv:{"ä":"a","Ä":"A","ö":"o","Ö":"O"},sk:{"ä":"a","Ä":"A"},sr:{"љ":"lj","њ":"nj","Љ":"Lj","Њ":"Nj","đ":"dj","Đ":"Dj"},tr:{"Ü":"U","Ö":"O","ü":"u","ö":"o"}},c={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"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;_<O;_++)k=t[_],y(k,T)?E=!1:g[k]?(k=E&&g[k].match(/[A-Za-z0-9]/)?" "+g[k]:g[k],E=!1):k in o?(_+1<O&&a.indexOf(t[_+1])>=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;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},y={results:[],total:0},m=function(){function t(t,e,n){this._params=t,this._batchSize=e,n?(this._index=n.index+1,this._continuation=n.continuationForNextBatch(),this._previousBatch=n):this._index=0}return t.store=function(t,e,n){void 0===n&&(n=e.length);var r=i(a(t),0),s=o(void 0);new f.b({state:r,invalidation:s,loader:function(){throw new h.InternalError("this should never be called")}}).set({results:e,total:n})},t.firstBatchFor=function(e,n){return new t(a(e),n)},t.countFor=function(t){return this.firstBatchFor(t,0).count()},t.prototype.objIds=function(){return this._response().results},t.prototype.count=function(){return this._response().total||0},t.prototype.nextBatch=function(){if(this.continuationForNextBatch())return new t(this._params,this._batchSize,this)},Object.defineProperty(t.prototype,"index",{get:function(){return this._index},enumerable:!0,configurable:!0}),t.prototype.continuationForNextBatch=function(){return this._response().continuation},t.prototype._response=function(){return this._data().get()||y},t.prototype._data=function(){return new f.b({state:i(this._params,this._index),loader:this._load.bind(this),invalidation:o(this._continuation)})},t.prototype._load=function(t){var e=this,n=t.push,i=t.isReload,o=t.wasCancelled;return this._fetchContinuation().then(function(t){if(o())throw new Error;var a={size:e._batchSize,continuation:t,include_objs:!i()},s=v({},e._params,a);return p.a.retrieveObjQuery(scrivito.currentWorkspaceId(),s).then(function(t){var e=t.objs;return e&&n(function(){return e.forEach(function(t){return u.e(t)})}),r(t.results),t})})},t.prototype._fetchContinuation=function(){var t=this._previousBatch;return t?Object(l.a)(function(){return t.continuationForNextBatch()}):scrivito.Promise.resolve()},t}();e.a=m},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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return c});var s=n(58),u=n(119),c=function(){function t(e,n){i(this,t),this._params=e,this._batchSize=n}return a(t,[{key:"count",value:function(){return u.a.count(this._params)}},{key:"iterator",value:function(){return new l(this._params,this._batchSize)}}]),t}(),l=function(){function t(e,n){i(this,t),this._iterator=new u.a(e,n).iterator()}return a(t,[{key:"next",value:function(){if(!this._iterator)return{done:!0};var t=this._iterator.next().value;if(!t)return{done:!0};var e=s.b(t);return void 0===e?(this._iterator=void 0,{done:!0}):e.isNonExistent()?this.next():{value:e,done:!1}}}]),t}()},function(t,e,n){"use strict";function r(t){var e=scrivito.computeCacheKey(t);return h.b.subState("facetQuery").subState(e)}function i(t){return function(){return v.a.retrieveFacetQuery(scrivito.currentWorkspaceId(),t)}}function o(){return Object(p.a)()||""}function a(t){var e=u.without.apply(void 0,[Object.keys(t)].concat(y));if(e.length)throw new d.ArgumentError("Invalid options: "+Object(f.a)(e)+". Valid options: "+y)}function s(t,e,n){var r={facets:[{attribute:t,limit:e.limit||10,include_objs:e.includeObjs||0}],size:0};return Object(u.isEmpty)(n)||(r.query=n),r}var u=n(0),c=(n.n(u),n(217)),l=n(18),f=n(41),d=n(1),h=n(4),p=n(92),v=n(43),y=["limit","includeObjs"],m=function(){function t(t,e,n){a(e),this._requestParams=s(t,e,n),this._loadableData=new l.b({state:r(this._requestParams),loader:i(this._requestParams),invalidation:o})}return t.store=function(t,e,n,u){a(e);var c=s(t,e,n);new l.b({state:r(c),loader:i(c),invalidation:o,throwNotLoaded:!0}).set(u)},t.prototype.result=function(){var t=this._loadableData.get();return t?t.facets[0].map(function(t){var e=t.value,n=t.total,r=t.results.map(function(t){return t.id});return new c.a(e,n,r)}):[]},t}();e.a=m},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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return u});var s=n(3),u=function(){function t(e,n,r){i(this,t),this._name=e,this._count=n,this._includedObjs=r}return a(t,[{key:"name",value:function(){return this._name}},{key:"count",value:function(){return this._count}},{key:"includedObjs",value:function(){return this._includedObjs.map(function(t){return s.default.get(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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}var s=n(22),u=function(){function t(e,n){i(this,t),this._registry=e,this._basicObjFacetValue=n}return a(t,[{key:"name",value:function(){return this._basicObjFacetValue.name()}},{key:"count",value:function(){return this._basicObjFacetValue.count()}},{key:"includedObjs",value:function(){var t=this._basicObjFacetValue.includedObjs();return Object(s.e)(this._registry,t)}}]),t}();e.a=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,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t){return function(){function e(){i(this,e)}return a(e,[{key:"id",value:function(){return this._scrivitoPrivateContent.id()}},{key:"objClass",value:function(){return this._scrivitoPrivateContent.objClass()}},{key:"finishSaving",value:function(){return this._scrivitoPrivateContent.finishSaving()}},{key:"get",value:function(e){return t.read(this,e)}},{key:"update",value:function(e){t.update(this,e)}}]),e}()}e.a=s},function(t,e,n){"use strict";function r(t,e,n,r){var i={};return Object.keys(n.definition.attributes).forEach(function(n){if(!t.hasOwnProperty(n)){var o=e.initialContentFor(r,n);void 0!==o&&(i[n]=o)}}),i}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(t,e){var n=Object(h.a)(t,"initialContent");if(n){var r=n[e];if(Object(l.isFunction)(r))return r();if(o(r)){var i=Object(y.a)();return r.map(function(t){var e=t._scrivitoPrivateContent,n=e.copy();return Object(v.e)(i,n)})}return r}}function o(t){return Object(l.isArray)(t)&&Object(l.every)(t,a)}function a(t){return t._scrivitoPrivateContent&&r(t._scrivitoPrivateContent,d.a)}function s(t){c(f.default.get(t))}function u(t,e){c(f.default.get(t).widget(e))}function c(t){var e=t.objClass(),n=Object(p.a)().getClass(e)._scrivitoPrivateSchema,r={};Object(l.each)(n.attributes,function(n,o){var a=t.get(o,n);if(Object(l.isEmpty)(a)){var s=i(e,o);s&&(r[o]=s)}});var o=Object(v.b)(r,n,e);t.update(o)}e.a=i,e.b=s,e.c=u;var l=n(0),f=(n.n(l),n(3)),d=n(32),h=n(82),p=n(61),v=n(22),y=n(62)},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i}),n.d(e,"e",function(){return o}),n.d(e,"c",function(){return a}),n.d(e,"g",function(){return s}),n.d(e,"h",function(){return u}),n.d(e,"f",function(){return c}),n.d(e,"d",function(){return l});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},o=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},a=function(t,e){return e(window.confirm(t))},s=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},u=function(){return-1===window.navigator.userAgent.indexOf("Trident")},c=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},l=function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")}},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){d=t}function o(t){if(u(t),s(t))return"/";if(t.permalink())return"/".concat(t.permalink());var e=l(t);return e?"/".concat(e,"-").concat(t.id()):"/".concat(t.id())}function a(t){c(t);var e=t.replace(new RegExp("^/+|/+$","g"),"");if(""===e)return Object(b.c)(d());var n=v.default.getByPermalink(e);return n||v.default.get(f(e))}function s(t){if(!d)return!1;var e=scrivito.loadableWithDefault(null,d);return!!e&&e.id()===t.id()}function u(t){if(!r(t,v.default))throw new y.ArgumentError("Parameter obj needs to be a BasicObj.")}function c(t){if(!p.a.isString(t))throw new y.ArgumentError("Parameter path needs to be a String.")}function l(t){var e=Object(m.a)();return Object(b.e)(e,t).slug()}function f(t){var e=p.a.last(t.split("-"));return p.a.last(e.split("/"))}e.b=i,e.a=o,e.c=a;var d,h=n(0),p=n.n(h),v=n(3),y=n(1),m=n(62),b=n(22)},function(t,e,n){"use strict";function r(t,e){var n=Object(o.a)(t,e);if(Object(i.isFunction)(n))try{for(var r=arguments.length,s=new Array(r>2?r-2:0),u=2;u<r;u++)s[u-2]=arguments[u];return n.apply(null,s)}catch(t){Object(a.b)(t)}}e.a=r;var i=n(0),o=(n.n(i),n(82)),a=n(37)},function(t,e,n){"use strict";function r(t){p(t);var e=t.tenant,n=t.homepage,r=t.routingBasePath,i=t.unstable,o=t.endpoint||"api.scrivito.com";if(f.b){var u={tenant:e,endpoint:o};i&&i.useRailsAuth&&(u.useRailsAuth=i.useRailsAuth),f.b.configureTenant(u)}else s.a.init(o,e);Object(l.b)(n||function(){return a.default.root()}),Object(c.e)({routingBasePath:r}),d=!0}function i(){return d}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var o=n(24),a=n(3),s=n(21),u=n(39),c=n(63),l=n(223),f=n(17),d=!1,h=o.a.struct({tenant:o.a.String,endpoint:o.a.maybe(o.a.String),homepage:o.a.maybe(o.a.Function),routingBasePath:o.a.maybe(o.a.String),unstable:o.a.maybe(o.a.Object)}),p=Object(u.a)("configure",[["configuration",h]],{docPermalink:"js-sdk/configure"})},function(t,e,n){"use strict";function r(t){if(!t)return!1;var e=t.objClass();if(!e)return!1;var n=Object(o.a)().getClass(e);return!!n&&i.a.forClass(n).isBinary()}e.a=r;var i=n(42),o=n(61)},function(t,e,n){"use strict";function r(t,e){var n=a.default.getIncludingDeleted(t),r=n.widget(e);return i(r)||o(r.objClass())}function i(t){var e=Object(f.e)(Object(c.a)(),t),n=t.objClass();return Object(s.a)(n,"titleForContent",e)}function o(t){return Object(u.a)(t,"title")||Object(l.d)(t)}e.a=r;var a=n(3),s=n(224),u=n(82),c=n(62),l=n(23),f=n(22)},function(t,e,n){"use strict";function r(){return++c}function i(t){var e=r();l[e]=t;var n=a(),i=n.get()||[];n.set(i.concat([e]))}function o(t){var e=t.type,n=t.tag,r=a().get();if(r){var i=Object(s.find)(r,function(t){return l[t]&&l[t].canEdit({type:e,tag:n})});if(i){return{id:i,editorClass:l[i]}}}}function a(){return u.a.subState("editors")}n.d(e,"a",function(){return o}),n.d(e,"b",function(){return i});var s=n(0),u=(n.n(s),n(4)),c=0,l={}},function(t,e,n){"use strict";function r(t){t.getAttribute("data-scrivito-editors-placeholder")||t.setAttribute("data-scrivito-editors-placeholder","Click to edit")}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(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}var s=n(75),u=n.n(s),c=function(){function t(e,n){i(this,t),this.domNode=e,this.controller=n}return a(t,[{key:"content",value:function(){return this.controller.getContent()}},{key:"idFromPath",value:function(t){if(t.match(/^objid:/))return t.replace(/^objid:/,"")}},{key:"edQuery",value:function(){return u.a.apply(void 0,arguments)}},{key:"jQueryElement",value:function(){return this.edQuery(this.domNode)}},{key:"pathForId",value:function(t){return"objid:".concat(t)}},{key:"save",value:function(t){this.controller.setContent(t);var e={done:function(t){return t(),e}};return e}},{key:"trigger",value:function(){}}]),t}();e.a=c},function(t,e,n){"use strict";function r(t){return t.isRaw()||t.isExplicitlyTransformed()?t:t.optimizeFor({width:Object(i.e)().width*Object(i.a)()})}e.a=r;var i=n(70)},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){if(!i(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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(13),p=n.n(h),v=n(0),y=(n.n(v),n(22)),m=n(34),b=n(3),g=n(26),w=n(129),_=n(14),k=n(233),O=n(136),E=n(346),x=n(59),C=n(17),j=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){return p.a.createElement("a",this._linkProps(),this.props.children)}},{key:"_linkProps",value:function(){var t=Object(v.omit)(this.props,"to");return t.href=this._href(),t.onClick=this._onClick,t.target=this._target(),t}},{key:"_href",value:function(){return this._to()||"#"}},{key:"_onClick",value:function(t){t.preventDefault(),this.props.to&&(Object(v.isString)(this.props.to)?scrivito.openInNewWindow(this.props.to):this._openLink(t))}},{key:"_openLink",value:function(t){var e=this._to();if(e){var n=this._target();"_blank"===n||Object(k.a)(t)?this._openLinkInNewWindow(e):n?scrivito.openLocation(e,n):Object(w.a)(this.props.to)}}},{key:"_openLinkInNewWindow",value:function(t){C.b?C.b.openInNewWindow(t):scrivito.openInNewWindow(t)}},{key:"_target",value:function(){return this.props.target?this.props.target:this.props.to&&i(this.props.to._scrivitoPrivateContent,m.a)?this.props.to.target():void 0}},{key:"_to",value:function(){if(this.props.to){if(Object(v.isString)(this.props.to))return this.props.to;var t=Object(y.c)(this.props.to);if(i(t,m.a)||i(t,b.default)||i(t,g.a))return Object(O.a)(t)}}}]),a(e,t),e}(p.a.Component);j.displayName="Scrivito.LinkTag",j.propTypes=Object(E.a)({to:E.b.maybe(E.b.union([x.d,x.b,x.a,E.b.String]))},{strict:!1}),e.a=Object(_.a)(j)},function(t,e,n){"use strict";function r(t){return t.ctrlKey||t.metaKey||t.shiftKey||t.which===i}e.a=r;var i=2},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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(87),p=n(42),v=n(0),y=(n.n(v),n(13)),m=n.n(y),b=n(1),g=n(22),w=n(235),_=n(14),k=n(228),O=n(37),E=n(236),x=n(353),C=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"render",value:function(){if(!this.props.content)return null;var t=p.a.basicFieldFor(this.props.content,this.props.attribute);if(!t){var e=this.props.attribute;return Object(O.b)(new b.ArgumentError('Component "Scrivito.ContentTag" received prop "attribute" with invalid value: '+'Attribute "'.concat(e,'" is not defined for content specified in prop "content".'))),null}var n,r,i=Object(k.a)({type:t.type(),tag:this.props.tag});return i&&(n=i.id,r=i.editorClass),Object(h.a)()?m.a.createElement(x.a,{key:this._editorKey(n),field:t,editorClass:r,tag:this.props.tag,customProps:this._customProps(),content:this.props.content},this.props.children):m.a.createElement(E.a,{field:t,tag:this.props.tag,customProps:this._customProps()},this.props.children)}},{key:"_customProps",value:function(){return Object(v.omit)(this.props,"content","attribute","tag")}},{key:"_editorKey",value:function(t){var e=Object(g.c)(this.props.content);return[this.props.tag,Object(w.a)(e),this.props.attribute,t].join("|")}}]),a(e,t),e}(m.a.Component);C.displayName="Scrivito.ContentTag",C.defaultProps={tag:"div"},e.a=Object(_.a)(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){if(r(t,o.default))return t.id();if(r(t,a.a))return"".concat(t.obj().id(),"|").concat(t.id());var e=Object(u.a)(t).substr(0,100);throw new s.InternalError('keyForBasicContent called with "'.concat(e,'". Expected an instance of')+" BasicObj or BasicWidget.")}e.a=i;var o=n(3),a=n(32),s=n(1),u=n(41)},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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(0),p=(n.n(h),n(13)),v=n.n(p),y=n(87),m=n(135),b=n(17),g=n(72),w=n(14),_=n(349),k=n(350),O=n(352),E=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){switch(this.props.field.type()){case"html":return this._renderHtml();case"float":case"integer":case"string":return this._renderAsString();case"widgetlist":return this._renderWidgetlist();default:return this._renderContent({children:this.props.children})}}},{key:"_renderHtml",value:function(){if(this.props.children)return this._renderContent({children:this.props.children});var t=Object(m.a)(this._attributeValue()),e={dangerouslySetInnerHTML:{__html:t},onClick:this._onClick};return this._renderContent({props:e})}},{key:"_onClick",value:function(t){var e=Object(_.a)(t);e&&(e.openInNewWindow?this._openInNewWindow(t,e):this._openInCurrentWindow(t,e))}},{key:"_openInNewWindow",value:function(t,e){var n=e.openInNewWindow;b.b&&(t.preventDefault(),t.stopPropagation(),b.b.openInNewWindow(n))}},{key:"_openInCurrentWindow",value:function(t,e){var n=e.openInCurrentWindow;t.preventDefault(),t.stopPropagation(),Object(g.c)(n)}},{key:"_renderAsString",value:function(){var t=this.props.children||this._attributeValue();return this._renderContent({children:t})}},{key:"_renderWidgetlist",value:function(){var t,e=this._attributeValue();return e.length?t=e.map(function(t){return v.a.createElement(k.a,{key:t.id(),widget:t})}):Object(y.a)()&&(t=v.a.createElement(O.a,{field:this.props.field})),this._renderContent({children:t})}},{key:"_renderContent",value:function(t){var e=t.props,n=t.children,r=Object(h.extend)({},this.props.customProps,e,this._editingProps());return v.a.createElement(this.props.tag,r,n)}},{key:"_editingProps",value:function(){return this.props.onClick?{onClick:this.props.onClick,"data-scrivito-is-clickable":!0}:{}}},{key:"_attributeValue",value:function(){return this.props.field.get()}}]),a(e,t),e}(v.a.Component);E.displayName="Scrivito.ContentTag.AttributeValue",e.a=Object(w.a)(E)},function(t,e){t.exports=PropTypes},function(t,e,n){"use strict";function r(t){t.dataTransfer.effectAllowed="move";try{t.dataTransfer.setData("text/plain",t.target.id)}catch(t){}}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(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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(13),p=n.n(h),v=n(14),y=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){var t="scrivito_option_marker scrivito_".concat(this.props.position);return this.props.isAlwaysShown&&(t+=" scrivito_visible"),p.a.createElement("span",{className:t,onClick:this._onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut},p.a.createElement("i",{className:"scrivito_icon scrivito_icon_marker_plus"}))}},{key:"_onClick",value:function(t){t.preventDefault(),t.stopPropagation(),this.props.insertWidget(this.props.widget,this.props.position)}}]),a(e,t),e}(p.a.Component);y.displayName="Scrivito.OptionMarker",e.a=Object(v.a)(y)},function(t,e,n){"use strict";function r(){i=!0}n.d(e,"b",function(){return i}),e.a=r;var i=!1},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(){window.scrivito||(window.scrivito={}),window.scrivito.on||(window.scrivito.on=function(t,e){"content"===t&&document.addEventListener("DOMContentLoaded",function(){return e(window.document)})}),window.scrivito.in_editable_view||(window.scrivito.in_editable_view=function(){return!1})}e.a=r},function(t,e,n){"use strict";function r(t){if(t){t.setAppAdapter("1.2.0-rc2",new u.a);var e=t.uiAdapter();Object(l.a)(e),Object(c.b)(e)}scrivito.client.init({ui:t});var n=new i.a;Object(o.b)(n.promise),document.addEventListener("DOMContentLoaded",n.resolve)}e.a=r;var i=(n(162),n(291),n(292),n(316),n(12)),o=n(81),a=n(319),s=n(228),u=n(210),c=n(43),l=n(17);window.scrivito||(window.scrivito={}),window.scrivito.registerEditor=s.b,window.scrivito.openContentBrowser=a.a},function(t,e,n){"use strict";var r=n(127);n.n(r)},function(t,e,n){"use strict";var r=n(293);n.n(r),n(210),n(72),n(315)},function(t,e){window.scrivito||(window.scrivito={}),window.scrivito.AppSupport={}},function(t,e,n){"use strict";function r(){window.scrollTo(0,0)}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(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return h});var s=n(296),u=n(297),c=n(298),l=n(133),f=n(301),d=n(302),h=function(){function t(){i(this,t),this._registry=new c.a,this._registry.defaultClassForLinks=Object(u.a)(this._registry),this._registry.ObjSearch=Object(s.a)(this._registry),this.appModelAccessor=new l.a(this._registry)}return a(t,null,[{key:"init",value:function(e){var n=new t;return e.Obj=n.Obj,e.Widget=n.Widget,e.Link=n.Link,e.ObjSearch=n.ObjSearch,e.appModelAccessor=n.appModelAccessor,e.provideObjClass=function(){return n.provideObjClass.apply(n,arguments)},e.provideWidgetClass=function(){return n.provideWidgetClass.apply(n,arguments)},e.createObjClass=function(){return n.createObjClass.apply(n,arguments)},e.createWidgetClass=function(){return n.createWidgetClass.apply(n,arguments)},e.getClass=function(){return n.getClass.apply(n,arguments)},e.allObjClasses=function(){return n.allObjClasses()},e.allWidgetClasses=function(){return n.allWidgetClasses()},e._privateRealm=n,n}}]),a(t,[{key:"provideObjClass",value:function(t,e){return Object(d.c)(t,e),Object(f.c)(this._registry,t,e)}},{key:"provideWidgetClass",value:function(t,e){return Object(d.d)(t,e),Object(f.d)(this._registry,t,e)}},{key:"createObjClass",value:function(t){return Object(d.a)(t),Object(f.a)(this._registry,t)}},{key:"createWidgetClass",value:function(t){return Object(d.b)(t),Object(f.b)(this._registry,t)}},{key:"getClass",value:function(t){return this._registry.getClass(t)}},{key:"allObjClasses",value:function(){return this._registry.allObjClasses()}},{key:"allWidgetClasses",value:function(){return this._registry.allWidgetClasses()}},{key:"setInitialContentFor",value:function(t){this._registry.setInitialContentFor(t)}},{key:"Obj",get:function(){return this._registry.defaultClassForObjs}},{key:"Widget",get:function(){return this._registry.defaultClassForWidgets}},{key:"Link",get:function(){return this._registry.defaultClassForLinks}},{key:"ObjSearch",get:function(){return this._registry.ObjSearch}}]),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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t){var e=function(){function e(t){i(this,e),this._scrivitoPrivateContent=new c.b(t)}return a(e,[{key:"and",value:function(t,n,i){var o=arguments.length>3&&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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function p(t){return(p=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function v(t){return function(e){function n(t){return o(this,n),l(this,p(n).call(this,t))}return c(n,[{key:"obj",value:function(){return Object(m.e)(t,d(p(n.prototype),"obj",this).call(this))}},{key:"fetchObj",value:function(e){return d(p(n.prototype),"fetchObj",this).call(this,e).then(function(e){return Object(m.e)(t,e)})}},{key:"_scrivitoPrivateContent",get:function(){return y.a.build(this.buildAttributes())}}]),a(n,e),n}(y.a)}e.a=v;var y=n(34),m=n(22)},function(t,e,n){"use strict";var r=n(0),i=(n.n(r),n(299)),o=n(300),a=function(){function t(){this.mapping={},this.defaultClassForObjs=Object(o.a)(this),this.defaultClassForWidgets=Object(i.a)(this)}return t.prototype.register=function(t,e){this.mapping[t]=e},t.prototype.getClass=function(t){return this.mapping[t]},t.prototype.allObjClasses=function(){return this.allForBaseClass(this.defaultClassForObjs)},t.prototype.allWidgetClasses=function(){return this.allForBaseClass(this.defaultClassForWidgets)},t.prototype.objClassFor=function(t){return this.appClassFor(t,this.defaultClassForObjs)},t.prototype.widgetClassFor=function(t){return this.appClassFor(t,this.defaultClassForWidgets)},t.prototype.objClassNameFor=function(t){return r.findKey(this.mapping,function(e){return e===t})},t.prototype.setInitialContentFor=function(t){this.initialContentForFunction=t},t.prototype.initialContentFor=function(t,e){if(this.initialContentForFunction)return this.initialContentForFunction(t,e)},t.prototype.appClassFor=function(t,e){var n=this.getClass(t);return n&&e.isPrototypeOf(n)?n:e},t.prototype.allForBaseClass=function(t){return r.pick(this.mapping,function(e){return t.isPrototypeOf(e)})},t}();e.a=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(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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var e=new g.a(t);return function(e){function n(e){var r;o(this,n),r=l(this,f(n).call(this));var i=y.a.forInstance(d(d(r))),a=t.objClassNameFor(r.constructor),s=r._prepareAttributesForConstructor(e,i,a),u=new m.a(s);return u.onDidPersist(function(e){var n=Object(k.e)(t,e),r=Object(_.a)(s,t,i,a);n.update(r)}),r._scrivitoPrivateContent=u,r}return c(n,[{key:"obj",value:function(){var e=this._scrivitoPrivateContent.obj();return Object(k.e)(t,e)}},{key:"copy",value:function(){var e=t.widgetClassFor(this.objClass()),n=this._scrivitoPrivateContent.copy();return Object(k.a)(n,e)}},{key:"_prepareAttributesForConstructor",value:function(t,e,n){p(n,t);var r={_objClass:n},i=Object(v.extend)({},t,r);return Object(k.b)(i,e,n)}}]),a(n,e),n}(Object(w.a)(e))}function p(t,e){if(!t)throw new b.ArgumentError("Creating widgets is not supported for the class Widget or abstract classes.");if(e.constructor!==Object)throw new b.ArgumentError("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(e._objClass)throw new b.ArgumentError('Invalid attribute "_objClass". '+'"new '.concat(e._objClass,'" will automatically set the CMS object class correctly.'))}e.a=h;var v=n(0),y=(n.n(v),n(42)),m=n(32),b=n(1),g=n(133),w=n(219),_=n(220),k=n(22)},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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function h(t){function e(e,n){var r=new t.ObjSearch;return e&&r.and("_objClass","equals",e),n&&r._scrivitoPrivateContent.batchSize(n),r}function n(e){return Object(w.e)(t,e)}var r=new g.a(t);return function(i){function s(){return o(this,s),l(this,d(s).apply(this,arguments))}return c(s,[{key:"lastChanged",value:function(){return this._scrivitoPrivateContent.lastChanged()}},{key:"path",value:function(){return this._scrivitoPrivateContent.path()}},{key:"parent",value:function(){return n(this._scrivitoPrivateContent.parent())}},{key:"ancestors",value:function(){return n(this._scrivitoPrivateContent.ancestors())}},{key:"backlinks",value:function(){return n(this._scrivitoPrivateContent.backlinks())}},{key:"children",value:function(){return n(this._scrivitoPrivateContent.children())}},{key:"orderedChildren",value:function(){return n(this._scrivitoPrivateContent.orderedChildren())}},{key:"permalink",value:function(){return this._scrivitoPrivateContent.permalink()}},{key:"slug",value:function(){return this._scrivitoPrivateContent.slug()}},{key:"isBinary",value:function(){var t=m.a.forInstance(this);return!!t&&t.isBinary()}},{key:"contentLength",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentLength():0}},{key:"contentType",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentType():""}},{key:"contentUrl",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentUrl():""}},{key:"metadata",value:function(){return this.isBinary()?this._scrivitoPrivateContent.metadata():new _.a}},{key:"destroy",value:function(){this._scrivitoPrivateContent.destroy()}},{key:"widget",value:function(t){return n(this._scrivitoPrivateContent.widget(t))}},{key:"widgets",value:function(){return n(this._scrivitoPrivateContent.widgets())}}],[{key:"get",value:function(t){return r.getObj(this,t)}},{key:"getIncludingDeleted",value:function(t){return r.getObjIncludingDeleted(this,t)}},{key:"getByPath",value:function(t){return n(y.default.getByPath(t))}},{key:"getByPermalink",value:function(t){return n(y.default.getByPermalink(t))}},{key:"all",value:function(){return e(t.objClassNameFor(this),1e3)}},{key:"root",value:function(){return n(y.default.root())}},{key:"where",value:function(n,r,i){var o=arguments.length>3&&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;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},h=function(){try{return window.history.state||{}}catch(t){return{}}},p=function(){var t=arguments.length>0&&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;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}function o(t){var e=arguments.length>1&&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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(139),p=n(322),v=n.n(p),y=n(325),m=n(229),b=n(230),g=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"contentDidChange",value:function(){this._updateContent&&this._updateContent()}},{key:"editorWillBeActivated",value:function(){this._controller.setDomMode("Replace")}},{key:"editorDomWasMounted",value:function(t){var e=this;if(Object(m.a)(t),"yes"===window.top.localStorage.getItem("__scrivito_enable_quill")){var n=Object(y.a)(t,this._controller);this._updateContent=function(){var t=n.getSelection();n.clipboard.dangerouslyPasteHTML(e._controller.getContent()),n.setSelection(t)}}else{t.innerHTML=this._controller.getContent();var r=new b.a(t,this._controller),i=v()(r);this._updateContent=function(){var n=i.exportSelection();t.innerHTML=e._controller.getContent(),i.importSelection(n)}}}},{key:"editorDomWasUnmounted",value:function(){this._updateContent=void 0}}],[{key:"canEdit",value:function(t){return"html"===t.type}}]),a(e,t),e}(h.a);e.a=g},function(t,e,n){var r,i,o,a,s,u;i=n(323),r=n(324),o=i.extensions.anchor.extend({name:"scrivito_anchor",proxy:null,contentDefault:'<i class="scrivito_customer_icon sci_link"></i>',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="<div class='medium-editor-toolbar-form-row medium-editor-toolbar-anchor-target-toggle'>\n <label>\n <input type='checkbox' class='medium-editor-toolbar-anchor-target'>\n <i class='scrivito_customer_icon sci_inv_check'></i>\n <i class='scrivito_customer_icon sci_rounded_square'></i>\n "+this.targetCheckboxText+"\n </label>\n</div>"),("<i class='medium-editor-toolbar-browse scrivito_customer_icon sci_collection'></i>\n<input type='text' class='medium-editor-toolbar-input' placeholder='"+this.placeholderText+"'>\n<i class='medium-editor-toolbar-save scrivito_customer_icon sci_check'></i>\n<i class='medium-editor-toolbar-close scrivito_customer_icon sci_cross'></i>\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:'<i class="scrivito_customer_icon sci_code"></i>',start:"<code>",end:"</code>"}),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 */
79
79
  "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;e<n;e++)if(e in this&&this[e]===t)return e;return-1},o=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},a=function(t,e){if(""===e)throw new o("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new o("INVALID_CHARACTER_ERR","String contains an invalid character");return i.call(t,e)},s=function(t){for(var e=r.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],i=0,o=n.length;i<o;i++)this.push(n[i]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},u=s.prototype=[],c=function(){return new s(this)};if(o.prototype=Error.prototype,u.item=function(t){return this[t]||null},u.contains=function(t){return t+="",-1!==a(this,t)},u.add=function(){var t,e=arguments,n=0,r=e.length,i=!1;do{t=e[n]+"",-1===a(this,t)&&(this.push(t),i=!0)}while(++n<r);i&&this._updateClassName()},u.remove=function(){var t,e,n=arguments,r=0,i=n.length,o=!1;do{for(t=n[r]+"",e=a(this,t);-1!==e;)this.splice(e,1),o=!0,e=a(this,t)}while(++r<i);o&&this._updateClassName()},u.toggle=function(t,e){t+="";var n=this.contains(t),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},u.toString=function(){return this.join(" ")},n.defineProperty){var l={get:c,enumerable:!0,configurable:!0};try{n.defineProperty(e,"classList",l)}catch(t){-2146823252===t.number&&(l.enumerable=!1,n.defineProperty(e,"classList",l))}}else n.prototype.__defineGetter__&&e.__defineGetter__("classList",c)}}(self),/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
80
- function(t){"use strict";if(t.URL=t.URL||t.webkitURL,t.Blob&&t.URL)try{return void new Blob}catch(t){}var e=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||function(t){var e=function(t){return Object.prototype.toString.call(t).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},r=function(t,e,n){this.data=t,this.size=t.length,this.type=e,this.encoding=n},i=n.prototype,o=r.prototype,a=t.FileReaderSync,s=function(t){this.code=this[this.name=t]},u="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),c=u.length,l=t.URL||t.webkitURL||t,f=l.createObjectURL,d=l.revokeObjectURL,h=l,p=t.btoa,v=t.atob,y=t.ArrayBuffer,m=t.Uint8Array,b=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(r.fake=o.fake=!0;c--;)s.prototype[u[c]]=c+1;return l.createObjectURL||(h=t.URL=function(t){var e,n=document.createElementNS("http://www.w3.org/1999/xhtml","a");return n.href=t,"origin"in n||("data:"===n.protocol.toLowerCase()?n.origin=null:(e=t.match(b),n.origin=e&&e[1])),n}),h.createObjectURL=function(t){var e,n=t.type;return null===n&&(n="application/octet-stream"),t instanceof r?(e="data:"+n,"base64"===t.encoding?e+";base64,"+t.data:"URI"===t.encoding?e+","+decodeURIComponent(t.data):p?e+";base64,"+p(t.data):e+","+encodeURIComponent(t.data)):f?f.call(l,t):void 0},h.revokeObjectURL=function(t){"data:"!==t.substring(0,5)&&d&&d.call(l,t)},i.append=function(t){var n=this.data;if(m&&(t instanceof y||t instanceof m)){for(var i="",o=new m(t),u=0,c=o.length;u<c;u++)i+=String.fromCharCode(o[u]);n.push(i)}else if("Blob"===e(t)||"File"===e(t)){if(!a)throw new s("NOT_READABLE_ERR");var l=new a;n.push(l.readAsBinaryString(t))}else t instanceof r?"base64"===t.encoding&&v?n.push(v(t.data)):"URI"===t.encoding?n.push(decodeURIComponent(t.data)):"raw"===t.encoding&&n.push(t.data):("string"!=typeof t&&(t+=""),n.push(unescape(encodeURIComponent(t))))},i.getBlob=function(t){return arguments.length||(t=null),new r(this.data.join(""),t,"raw")},i.toString=function(){return"[object BlobBuilder]"},o.slice=function(t,e,n){var i=arguments.length;return i<3&&(n=null),new r(this.data.slice(t,i>1?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<a;o++)Uint8Array&&t[o]instanceof Uint8Array?i.append(t[o].buffer):i.append(t[o]);var s=i.getBlob(r);return!s.slice&&s.webkitSlice&&(s.slice=s.webkitSlice),s};var n=Object.getPrototypeOf||function(t){return t.__proto__};t.Blob.prototype=n(new t.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this),function(o,a){"use strict";"object"==typeof t&&void 0!==r&&r&&r.versions&&r.versions.electron||"object"!=typeof t?void 0!==(i=function(){return a}.call(e,n,e,t))&&(t.exports=i):t.exports=a}(0,function(){"use strict";function t(t,e){return this.init(t,e)}return t.extensions={},function(e){function n(t,e){var n,r=Array.prototype.slice.call(arguments,2);e=e||{};for(var i=0;i<r.length;i++){var o=r[i];if(o)for(n in o)o.hasOwnProperty(n)&&void 0!==o[n]&&(t||!1===e.hasOwnProperty(n))&&(e[n]=o[n])}return e}var r=!1;try{var i=document.createElement("div"),o=document.createTextNode(" ");i.appendChild(o),r=i.contains(o)}catch(t){}var a={isIE:"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&null!==new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent),isEdge:null!==/Edge\/\d+/.exec(navigator.userAgent),isFF:navigator.userAgent.toLowerCase().indexOf("firefox")>-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.start<o+u.nodeValue.length&&(s=!0,c=a.splitStartNodeIfNeeded(u,n.start,o)),s&&a.splitEndNodeIfNeeded(u,c,n.end,o),s&&o===n.end)break;if(s&&o>n.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;i<e.childNodes.length;i++){var o=e.childNodes[i];if(3===o.nodeType)n.push(o);else if(1===o.nodeType){var a=o.querySelectorAll(r);0===a.length?n.push(o):n=n.concat(t.util.splitByBlockElements(o))}}return n},findAdjacentTextNodeWithContent:function(t,e,n){var r,i=!1,o=n.createNodeIterator(t,NodeFilter.SHOW_TEXT,null,!1);for(r=o.nextNode();r;){if(r===e)i=!0;else if(i&&3===r.nodeType&&r.nodeValue&&r.nodeValue.trim().length>0)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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},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&&"<p>"===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;n<t.length;n+=1)!1!==r&&r!==t[n].attributes.href.value||(t[n].target="_blank",t[n].rel="noopener noreferrer")},removeTargetBlank:function(t,e){var n;if("a"===t.nodeName.toLowerCase())t.removeAttribute("target"),t.removeAttribute("rel");else for(t=t.getElementsByTagName("a"),n=0;n<t.length;n+=1)e===t[n].attributes.href.value&&(t[n].removeAttribute("target"),t[n].removeAttribute("rel"))},addClassToAnchors:function(t,e){var n,r,i=e.split(" ");if("a"===t.nodeName.toLowerCase())for(r=0;r<i.length;r+=1)t.classList.add(i[r]);else{var o=t.getElementsByTagName("a");if(0===o.length){var s=a.getClosestTag(t,"a");t=s?[s]:[]}else t=o;for(n=0;n<t.length;n+=1)for(r=0;r<i.length;r+=1)t[n].classList.add(i[r])}},isListItem:function(t){if(!t)return!1;if("li"===t.nodeName.toLowerCase())return!0;for(var e=t.parentNode,n=e.nodeName.toLowerCase();"li"===n||!a.isBlockContainer(e)&&"div"!==n;){if("li"===n)return!0;if(!(e=e.parentNode))return!1;n=e.nodeName.toLowerCase()}return!1},cleanListDOM:function(e,n){if("li"===n.nodeName.toLowerCase()){var r=n.parentElement;"p"===r.parentElement.nodeName.toLowerCase()&&(a.unwrap(r.parentElement,e),t.selection.moveCursor(e,n.firstChild,n.firstChild.textContent.length))}},splitOffDOMTree:function(t,e,n){for(var r=e,i=null,o=!n;r!==t;){var a,s=r.parentNode,u=s.cloneNode(!1),c=o?r:s.firstChild;for(i&&(o?u.appendChild(i):a=i),i=u;c;){var l=c.nextSibling;c===r?(c.hasChildNodes()?c=c.cloneNode(!1):c.parentNode.removeChild(c),c.textContent&&i.appendChild(c),c=o?l:null):(c.parentNode.removeChild(c),(c.hasChildNodes()||c.textContent)&&i.appendChild(c),c=l)}a&&i.appendChild(a),r=s}return i},moveTextRangeIntoElement:function(t,e,n){if(!t||!e)return!1;var r=a.findCommonRoot(t,e);if(!r)return!1;if(e===t){var i=t.parentNode,o=t.nextSibling;return i.removeChild(t),n.appendChild(t),o?i.insertBefore(n,o):i.appendChild(n),n.hasChildNodes()}for(var s,u,c,l=[],f=0;f<r.childNodes.length;f++)if(c=r.childNodes[f],s){if(a.isDescendant(c,e,!0)){u=c;break}l.push(c)}else a.isDescendant(c,t,!0)&&(s=c);var d=u.nextSibling,h=r.ownerDocument.createDocumentFragment();return s===t?(s.parentNode.removeChild(s),h.appendChild(s)):h.appendChild(a.splitOffDOMTree(s,t)),l.forEach(function(t){t.parentNode.removeChild(t),h.appendChild(t)}),u===e?(u.parentNode.removeChild(u),h.appendChild(u)):h.appendChild(a.splitOffDOMTree(u,e,!0)),n.appendChild(h),u.parentNode===r?r.insertBefore(n,u):d?r.insertBefore(n,d):r.appendChild(n),n.hasChildNodes()},depthOfNode:function(t){for(var e=0,n=t;null!==n.parentNode;)n=n.parentNode,e++;return e},findCommonRoot:function(t,e){for(var n=a.depthOfNode(t),r=a.depthOfNode(e),i=t,o=e;n!==r;)n>r?(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;e<t.childNodes.length;e++){var n=a._getFirstTextNode(t.childNodes[e]);if(null!==n)return n}return null},ensureUrlHasProtocol:function(t){return-1===t.indexOf("://")?"http://"+t:t},warn:function(){void 0!==e.console&&"function"==typeof e.console.warn&&e.console.warn.apply(e.console,arguments)},deprecated:function(t,e,n){var r=t+" is deprecated, please use "+e+" instead.";n&&(r+=" Will be removed in "+n),a.warn(r)},deprecatedMethod:function(t,e,n,r){a.deprecated(t,e,r),"function"==typeof this[e]&&this[e].apply(this,n)},cleanupAttrs:function(t,e){e.forEach(function(e){t.removeAttribute(e)})},cleanupTags:function(t,e){-1!==e.indexOf(t.nodeName.toLowerCase())&&t.parentNode.removeChild(t)},unwrapTags:function(e,n){-1!==n.indexOf(e.nodeName.toLowerCase())&&t.util.unwrap(e,document)},getClosestTag:function(t,e){return a.traverseUp(t,function(t){return t.nodeName.toLowerCase()===e.toLowerCase()})},unwrap:function(t,e){for(var n=e.createDocumentFragment(),r=Array.prototype.slice.call(t.childNodes),i=0;i<r.length;i++)n.appendChild(r[i]);n.childNodes.length?t.parentNode.replaceChild(n,t):t.parentNode.removeChild(t)},guid:function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}};t.util=a}(window),function(){var e=function(e){t.util.extend(this,e)};e.extend=function(e){var n,r=this;n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return r.apply(this,arguments)},t.util.extend(n,r);var i=function(){this.constructor=n};return i.prototype=r.prototype,n.prototype=new i,e&&t.util.extend(n.prototype,e),n},e.prototype={init:function(){},base:void 0,name:void 0,checkState:void 0,destroy:void 0,queryCommandState:void 0,isActive:void 0,isAlreadyApplied:void 0,setActive:void 0,setInactive:void 0,getInteractionElements:void 0,window:void 0,document:void 0,getEditorElements:function(){return this.base.elements},getEditorId:function(){return this.base.id},getEditorOption:function(t){return this.base.options[t]}},["execAction","on","off","subscribe","trigger"].forEach(function(t){e.prototype[t]=function(){return this.base[t].apply(this.base,arguments)}}),t.Extension=e}(),function(){function e(e){return t.util.isBlockContainer(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}var n={findMatchingSelectionParent:function(e,n){var r,i,o=n.getSelection();return 0!==o.rangeCount&&(r=o.getRangeAt(0),i=r.commonAncestorContainer,t.util.traverseUp(i,e))},getSelectionElement:function(e){return this.findMatchingSelectionParent(function(e){return t.util.isMediumEditorElement(e)},e)},exportSelection:function(t,e){if(!t)return null;var n=null,r=e.getSelection();if(r.rangeCount>0){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<o?(i.setStart(a,t.start-u),c=!0):p=a),c&&t.end>=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&&s<o.parentNode.childNodes.length;s++)o.parentNode.childNodes[s]===o&&(a=s);n.setStart(o.parentNode,a+1),n.collapse(!0)}}return n},importSelectionMoveCursorPastBlocks:function(n,r,i,o){var a,s,u=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,e,!1),c=o.startContainer,l=0;for(i=i||1,a=3===c.nodeType&&t.util.isBlockContainer(c.previousSibling)?c.previousSibling:t.util.getClosestBlockContainer(c);u.nextNode();)if(s){if(s=u.currentNode,++l===i)break;if(s.textContent.length>0)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<n;e+=1)r.appendChild(o.getRangeAt(e).cloneContents());i=r.innerHTML}return i},getCaretOffsets:function(t,e){var n,r;return e||(e=window.getSelection().getRangeAt(0)),n=e.cloneRange(),r=e.cloneRange(),n.selectNodeContents(t),n.setEnd(e.endContainer,e.endOffset),r.selectNodeContents(t),r.setStart(e.endContainer,e.endOffset),{left:n.toString().length,right:r.toString().length}},rangeSelectsSingleNode:function(t){var e=t.startContainer;return e===t.endContainer&&e.hasChildNodes()&&t.endOffset===t.startOffset+1},getSelectedParentElement:function(t){return t?this.rangeSelectsSingleNode(t)&&3!==t.startContainer.childNodes[t.startOffset].nodeType?t.startContainer.childNodes[t.startOffset]:3===t.startContainer.nodeType?t.startContainer.parentNode:t.startContainer:null},getSelectedElements:function(t){var e,n,r,i=t.getSelection();if(!i.rangeCount||i.isCollapsed||!i.getRangeAt(0).commonAncestorContainer)return[];if(e=i.getRangeAt(0),3===e.commonAncestorContainer.nodeType){for(n=[],r=e.commonAncestorContainer;r.parentNode&&1===r.parentNode.childNodes.length;)n.push(r.parentNode),r=r.parentNode;return n}return[].filter.call(e.commonAncestorContainer.getElementsByTagName("*"),function(t){return"function"!=typeof i.containsNode||i.containsNode(t,!0)})},selectNode:function(t,e){var n=e.createRange();n.selectNodeContents(t),this.selectRange(e,n)},select:function(t,e,n,r,i){var o=t.createRange();return o.setStart(e,n),r?o.setEnd(r,i):o.collapse(!0),this.selectRange(t,o),o},clearSelection:function(t,e){e?t.getSelection().collapseToStart():t.getSelection().collapseToEnd()},moveCursor:function(t,e,n){this.select(t,e,n)},getSelectionRange:function(t){var e=t.getSelection();return 0===e.rangeCount?null:e.getRangeAt(0)},selectRange:function(t,e){var n=t.getSelection();n.removeAllRanges(),n.addRange(e)},getSelectionStart:function(t){var e=t.getSelection().anchorNode;return e&&3===e.nodeType?e.parentNode:e}};t.selection=n}(),function(){function e(e,n){return e.some(function(e){if("function"!=typeof e.getInteractionElements)return!1;var r=e.getInteractionElements();return!!r&&(Array.isArray(r)||(r=[r]),r.some(function(e){return t.util.isDescendant(e,n,!0)}))})}var n=function(t){this.base=t,this.options=this.base.options,this.events=[],this.disabledEvents={},this.customEvents={},this.listeners={}};n.prototype={InputEventOnContenteditableSupported:!t.util.isIE&&!t.util.isEdge,attachDOMEvent:function(e,n,r,i){var o=this.base.options.contentWindow,a=this.base.options.ownerDocument;e=t.util.isElement(e)||[o,a].indexOf(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;i<o;i+=1)if(a=this.events[i],a[0]===t&&a[1]===e&&a[2]===n&&a[3]===r)return i;return-1},detachAllDOMEvents:function(){for(var t=this.events.pop();t;)t[0].removeEventListener(t[1],t[2],t[3]),t=this.events.pop()},detachAllEventsFromElement:function(t){for(var e=this.events.filter(function(e){return e&&e[0].getAttribute&&e[0].getAttribute("medium-editor-index")===t.getAttribute("medium-editor-index")}),n=0,r=e.length;n<r;n++){var i=e[n];this.detachDOMEvent(i[0],i[1],i[2],i[3])}},attachAllEventsToElement:function(t){this.listeners.editableInput&&(this.contentCache[t.getAttribute("medium-editor-index")]=t.innerHTML),this.eventsCache&&this.eventsCache.forEach(function(e){this.attachDOMEvent(t,e.name,e.handler.bind(this))},this)},enableCustomEvent:function(t){void 0!==this.disabledEvents[t]&&delete this.disabledEvents[t]},disableCustomEvent:function(t){this.disabledEvents[t]=!0},attachCustomEvent:function(t,e){this.setupListener(t),this.customEvents[t]||(this.customEvents[t]=[]),this.customEvents[t].push(e)},detachCustomEvent:function(t,e){var n=this.indexOfCustomListener(t,e);-1!==n&&this.customEvents[t].splice(n,1)},indexOfCustomListener:function(t,e){return this.customEvents[t]&&this.customEvents[t].length?this.customEvents[t].indexOf(e):-1},detachAllCustomEvents:function(){this.customEvents={}},triggerCustomEvent:function(t,e,n){this.customEvents[t]&&!this.disabledEvents[t]&&this.customEvents[t].forEach(function(t){t(e,n)})},destroy:function(){this.detachAllDOMEvents(),this.detachAllCustomEvents(),this.detachExecCommand(),this.base.elements&&this.base.elements.forEach(function(t){t.removeAttribute("data-medium-focused")})},attachToExecCommand:function(){this.execCommandListener||(this.execCommandListener=function(t){this.handleDocumentExecCommand(t)}.bind(this),this.wrapExecCommand(),this.options.ownerDocument.execCommand.listeners.push(this.execCommandListener))},detachExecCommand:function(){var t=this.options.ownerDocument;if(this.execCommandListener&&t.execCommand.listeners){var e=t.execCommand.listeners.indexOf(this.execCommandListener);-1!==e&&t.execCommand.listeners.splice(e,1),t.execCommand.listeners.length||this.unwrapExecCommand()}},wrapExecCommand:function(){var t=this.options.ownerDocument;if(!t.execCommand.listeners){var e=function(e,n){t.execCommand.listeners&&t.execCommand.listeners.forEach(function(t){t({command:e[0],value:e[2],args:e,result:n})})},n=function(){var n=t.execCommand.orig.apply(this,arguments);if(!t.execCommand.listeners)return n;var r=Array.prototype.slice.call(arguments);return e(r,n),n};n.orig=t.execCommand,n.listeners=[],n.callListeners=e,t.execCommand=n}},unwrapExecCommand:function(){var t=this.options.ownerDocument;t.execCommand.orig&&(t.execCommand=t.execCommand.orig)},setupListener:function(t){if(!this.listeners[t]){switch(t){case"externalInteraction":this.attachDOMEvent(this.options.ownerDocument.body,"mousedown",this.handleBodyMousedown.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"click",this.handleBodyClick.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"focus",this.handleBodyFocus.bind(this),!0);break;case"blur":case"focus":this.setupListener("externalInteraction");break;case"editableInput":this.contentCache={},this.base.elements.forEach(function(t){this.contentCache[t.getAttribute("medium-editor-index")]=t.innerHTML},this),this.InputEventOnContenteditableSupported&&this.attachToEachElement("input",this.handleInput),this.InputEventOnContenteditableSupported||(this.setupListener("editableKeypress"),this.keypressUpdateInput=!0,this.attachDOMEvent(document,"selectionchange",this.handleDocumentSelectionChange.bind(this)),this.attachToExecCommand());break;case"editableClick":this.attachToEachElement("click",this.handleClick);break;case"editableBlur":this.attachToEachElement("blur",this.handleBlur);break;case"editableKeypress":this.attachToEachElement("keypress",this.handleKeypress);break;case"editableKeyup":this.attachToEachElement("keyup",this.handleKeyup);break;case"editableKeydown":this.attachToEachElement("keydown",this.handleKeydown);break;case"editableKeydownSpace":case"editableKeydownEnter":case"editableKeydownTab":case"editableKeydownDelete":this.setupListener("editableKeydown");break;case"editableMouseover":this.attachToEachElement("mouseover",this.handleMouseover);break;case"editableDrag":this.attachToEachElement("dragover",this.handleDragging),this.attachToEachElement("dragleave",this.handleDragging);break;case"editableDrop":this.attachToEachElement("drop",this.handleDrop);break;case"editablePaste":this.attachToEachElement("paste",this.handlePaste)}this.listeners[t]=!0}},attachToEachElement:function(t,e){this.eventsCache||(this.eventsCache=[]),this.base.elements.forEach(function(n){this.attachDOMEvent(n,t,e.bind(this))},this),this.eventsCache.push({name:t,handler:e})},cleanupElement:function(t){var e=t.getAttribute("medium-editor-index");e&&(this.detachAllEventsFromElement(t),this.contentCache&&delete this.contentCache[e])},focusElement:function(t){t.focus(),this.updateFocus(t,{target:t,type:"focus"})},updateFocus:function(n,r){var i,o=this.base.getFocusedElement();o&&"click"===r.type&&this.lastMousedownTarget&&(t.util.isDescendant(o,this.lastMousedownTarget,!0)||e(this.base.extensions,this.lastMousedownTarget))&&(i=o),i||this.base.elements.some(function(e){return!i&&t.util.isDescendant(e,n,!0)&&(i=e),!!i},this);var a=!t.util.isDescendant(o,n,!0)&&!e(this.base.extensions,n);i!==o&&(o&&a&&(o.removeAttribute("data-medium-focused"),this.triggerCustomEvent("blur",r,o)),i&&(i.setAttribute("data-medium-focused",!0),this.triggerCustomEvent("focus",r,i))),a&&this.triggerCustomEvent("externalInteraction",r)},updateInput:function(t,e){if(this.contentCache){var n=t.getAttribute("medium-editor-index"),r=t.innerHTML;r!==this.contentCache[n]&&this.triggerCustomEvent("editableInput",e,t),this.contentCache[n]=r}},handleDocumentSelectionChange:function(e){if(e.currentTarget&&e.currentTarget.activeElement){var n,r=e.currentTarget.activeElement;this.base.elements.some(function(e){return!!t.util.isDescendant(e,r,!0)&&(n=e,!0)},this),n&&this.updateInput(n,{target:r,currentTarget:n})}},handleDocumentExecCommand:function(){var t=this.base.getFocusedElement();t&&this.updateInput(t,{target:t,currentTarget:t})},handleBodyClick:function(t){this.updateFocus(t.target,t)},handleBodyFocus:function(t){this.updateFocus(t.target,t)},handleBodyMousedown:function(t){this.lastMousedownTarget=t.target},handleInput:function(t){this.updateInput(t.currentTarget,t)},handleClick:function(t){this.triggerCustomEvent("editableClick",t,t.currentTarget)},handleBlur:function(t){this.triggerCustomEvent("editableBlur",t,t.currentTarget)},handleKeypress:function(t){if(this.triggerCustomEvent("editableKeypress",t,t.currentTarget),this.keypressUpdateInput){var e={target:t.target,currentTarget:t.currentTarget};setTimeout(function(){this.updateInput(e.currentTarget,e)}.bind(this),0)}},handleKeyup:function(t){this.triggerCustomEvent("editableKeyup",t,t.currentTarget)},handleMouseover:function(t){this.triggerCustomEvent("editableMouseover",t,t.currentTarget)},handleDragging:function(t){this.triggerCustomEvent("editableDrag",t,t.currentTarget)},handleDrop:function(t){this.triggerCustomEvent("editableDrop",t,t.currentTarget)},handlePaste:function(t){this.triggerCustomEvent("editablePaste",t,t.currentTarget)},handleKeydown:function(e){return this.triggerCustomEvent("editableKeydown",e,e.currentTarget),t.util.isKey(e,t.util.keyCode.SPACE)?this.triggerCustomEvent("editableKeydownSpace",e,e.currentTarget):t.util.isKey(e,t.util.keyCode.ENTER)||e.ctrlKey&&t.util.isKey(e,t.util.keyCode.M)?this.triggerCustomEvent("editableKeydownEnter",e,e.currentTarget):t.util.isKey(e,t.util.keyCode.TAB)?this.triggerCustomEvent("editableKeydownTab",e,e.currentTarget):t.util.isKey(e,[t.util.keyCode.DELETE,t.util.keyCode.BACKSPACE])?this.triggerCustomEvent("editableKeydownDelete",e,e.currentTarget):void 0}},t.Events=n}(),function(){var e=t.Extension.extend({action:void 0,aria:void 0,tagNames:void 0,style:void 0,useQueryState:void 0,contentDefault:void 0,contentFA:void 0,classList:void 0,attrs:void 0,constructor:function(n){e.isBuiltInButton(n)?t.Extension.call(this,this.defaults[n]):t.Extension.call(this,n)},init:function(){t.Extension.prototype.init.apply(this,arguments),this.button=this.createButton(),this.on(this.button,"click",this.handleClick.bind(this))},getButton:function(){return this.button},getAction:function(){return"function"==typeof this.action?this.action(this.base.options):this.action},getAria:function(){return"function"==typeof this.aria?this.aria(this.base.options):this.aria},getTagNames:function(){return"function"==typeof this.tagNames?this.tagNames(this.base.options):this.tagNames},createButton:function(){var t=this.document.createElement("button"),e=this.contentDefault,n=this.getAria(),r=this.getEditorOption("buttonLabels");return t.classList.add("medium-editor-action"),t.classList.add("medium-editor-action-"+this.name),this.classList&&this.classList.forEach(function(e){t.classList.add(e)}),t.setAttribute("data-action",this.getAction()),n&&(t.setAttribute("title",n),t.setAttribute("aria-label",n)),this.attrs&&Object.keys(this.attrs).forEach(function(e){t.setAttribute(e,this.attrs[e])},this),"fontawesome"===r&&this.contentFA&&(e=this.contentFA),t.innerHTML=e,t},handleClick:function(t){t.preventDefault(),t.stopPropagation();var e=this.getAction();e&&this.execAction(e)},isActive:function(){return this.button.classList.contains(this.getEditorOption("activeButtonClass"))},setInactive:function(){this.button.classList.remove(this.getEditorOption("activeButtonClass")),delete this.knownState},setActive:function(){this.button.classList.add(this.getEditorOption("activeButtonClass")),delete this.knownState},queryCommandState:function(){var t=null;return this.useQueryState&&(t=this.base.queryCommandState(this.getAction())),t},isAlreadyApplied:function(t){var e,n,r=!1,i=this.getTagNames();return!1===this.knownState||!0===this.knownState?this.knownState:(i&&i.length>0&&(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>B</b>",contentFA:'<i class="fa fa-bold"></i>'},italic:{name:"italic",action:"italic",aria:"italic",tagNames:["i","em"],style:{prop:"font-style",value:"italic"},useQueryState:!0,contentDefault:"<b><i>I</i></b>",contentFA:'<i class="fa fa-italic"></i>'},underline:{name:"underline",action:"underline",aria:"underline",tagNames:["u"],style:{prop:"text-decoration",value:"underline"},useQueryState:!0,contentDefault:"<b><u>U</u></b>",contentFA:'<i class="fa fa-underline"></i>'},strikethrough:{name:"strikethrough",action:"strikethrough",aria:"strike through",tagNames:["strike"],style:{prop:"text-decoration",value:"line-through"},useQueryState:!0,contentDefault:"<s>A</s>",contentFA:'<i class="fa fa-strikethrough"></i>'},superscript:{name:"superscript",action:"superscript",aria:"superscript",tagNames:["sup"],contentDefault:"<b>x<sup>1</sup></b>",contentFA:'<i class="fa fa-superscript"></i>'},subscript:{name:"subscript",action:"subscript",aria:"subscript",tagNames:["sub"],contentDefault:"<b>x<sub>1</sub></b>",contentFA:'<i class="fa fa-subscript"></i>'},image:{name:"image",action:"image",aria:"image",tagNames:["img"],contentDefault:"<b>image</b>",contentFA:'<i class="fa fa-picture-o"></i>'},html:{name:"html",action:"html",aria:"evaluate html",tagNames:["iframe","object"],contentDefault:"<b>html</b>",contentFA:'<i class="fa fa-code"></i>'},orderedlist:{name:"orderedlist",action:"insertorderedlist",aria:"ordered list",tagNames:["ol"],useQueryState:!0,contentDefault:"<b>1.</b>",contentFA:'<i class="fa fa-list-ol"></i>'},unorderedlist:{name:"unorderedlist",action:"insertunorderedlist",aria:"unordered list",tagNames:["ul"],useQueryState:!0,contentDefault:"<b>&bull;</b>",contentFA:'<i class="fa fa-list-ul"></i>'},indent:{name:"indent",action:"indent",aria:"indent",tagNames:[],contentDefault:"<b>&rarr;</b>",contentFA:'<i class="fa fa-indent"></i>'},outdent:{name:"outdent",action:"outdent",aria:"outdent",tagNames:[],contentDefault:"<b>&larr;</b>",contentFA:'<i class="fa fa-outdent"></i>'},justifyCenter:{name:"justifyCenter",action:"justifyCenter",aria:"center justify",tagNames:[],style:{prop:"text-align",value:"center"},contentDefault:"<b>C</b>",contentFA:'<i class="fa fa-align-center"></i>'},justifyFull:{name:"justifyFull",action:"justifyFull",aria:"full justify",tagNames:[],style:{prop:"text-align",value:"justify"},contentDefault:"<b>J</b>",contentFA:'<i class="fa fa-align-justify"></i>'},justifyLeft:{name:"justifyLeft",action:"justifyLeft",aria:"left justify",tagNames:[],style:{prop:"text-align",value:"left"},contentDefault:"<b>L</b>",contentFA:'<i class="fa fa-align-left"></i>'},justifyRight:{name:"justifyRight",action:"justifyRight",aria:"right justify",tagNames:[],style:{prop:"text-align",value:"right"},contentDefault:"<b>R</b>",contentFA:'<i class="fa fa-align-right"></i>'},removeFormat:{name:"removeFormat",aria:"remove formatting",action:"removeFormat",contentDefault:"<b>X</b>",contentFA:'<i class="fa fa-eraser"></i>'},quote:{name:"quote",action:"append-blockquote",aria:"blockquote",tagNames:["blockquote"],contentDefault:"<b>&ldquo;</b>",contentFA:'<i class="fa fa-quote-right"></i>'},pre:{name:"pre",action:"append-pre",aria:"preformatted text",tagNames:["pre"],contentDefault:"<b>0101</b>",contentFA:'<i class="fa fa-code fa-lg"></i>'},h1:{name:"h1",action:"append-h1",aria:"header type one",tagNames:["h1"],contentDefault:"<b>H1</b>",contentFA:'<i class="fa fa-header"><sup>1</sup>'},h2:{name:"h2",action:"append-h2",aria:"header type two",tagNames:["h2"],contentDefault:"<b>H2</b>",contentFA:'<i class="fa fa-header"><sup>2</sup>'},h3:{name:"h3",action:"append-h3",aria:"header type three",tagNames:["h3"],contentDefault:"<b>H3</b>",contentFA:'<i class="fa fa-header"><sup>3</sup>'},h4:{name:"h4",action:"append-h4",aria:"header type four",tagNames:["h4"],contentDefault:"<b>H4</b>",contentFA:'<i class="fa fa-header"><sup>4</sup>'},h5:{name:"h5",action:"append-h5",aria:"header type five",tagNames:["h5"],contentDefault:"<b>H5</b>",contentFA:'<i class="fa fa-header"><sup>5</sup>'},h6:{name:"h6",action:"append-h6",aria:"header type six",tagNames:["h6"],contentDefault:"<b>H6</b>",contentFA:'<i class="fa fa-header"><sup>6</sup>'}}}(),function(){var e=t.extensions.button.extend({init:function(){t.extensions.button.prototype.init.apply(this,arguments)},formSaveLabel:"&#10003;",formCloseLabel:"&times;",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:"<b>#</b>",contentFA:'<i class="fa fa-link"></i>',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=['<input type="text" class="medium-editor-toolbar-input" placeholder="',this.placeholderText,'">'];return t.push('<a href="#" class="medium-editor-toolbar-save">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':this.formSaveLabel,"</a>"),t.push('<a href="#" class="medium-editor-toolbar-close">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':this.formCloseLabel,"</a>"),this.targetCheckbox&&t.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-target" id="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">','<label for="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">',this.targetCheckboxText,"</label>","</div>"),this.customClassOption&&t.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-button">',"<label>",this.customClassOptionText,"</label>","</div>"),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'<div class="medium-editor-toolbar-anchor-preview" id="medium-editor-toolbar-anchor-preview"> <a class="medium-editor-toolbar-anchor-preview-inner"></a></div>'},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",r<e?(this.anchorPreview.style.left=n+e+"px",this.anchorPreview.style.right="initial"):a-r<e?(this.anchorPreview.style.left="auto",this.anchorPreview.style.right=0):(this.anchorPreview.style.left=n+r+"px",this.anchorPreview.style.right="initial")},attachToEditables:function(){this.subscribe("editableMouseover",this.handleEditableMouseover.bind(this)),this.subscribe("positionedToolbar",this.handlePositionedToolbar.bind(this))},handlePositionedToolbar:function(){this.showWhenToolbarIsVisible||this.hidePreview()},handleClick:function(t){var e=this.base.getExtensionByName("anchor"),n=this.activeAnchor;e&&n&&(t.preventDefault(),this.base.selectElement(this.activeAnchor),this.base.delay(function(){if(n){var t={value:n.attributes.href.value,target:n.getAttribute("target"),buttonClass:n.getAttribute("class")};e.showForm(t),n=null}}.bind(this))),this.hidePreview()},handleAnchorMouseout:function(){this.anchorToPreview=null,this.off(this.activeAnchor,"mouseout",this.instanceHandleAnchorMouseout),this.instanceHandleAnchorMouseout=null},handleEditableMouseover:function(e){var n=t.util.getClosestTag(e.target,"a");if(!1!==n){if(!this.showOnEmptyLinks&&(!/href=["']\S+["']/.test(n.outerHTML)||/href=["']#\S+["']/.test(n.outerHTML)))return!0;var r=this.base.getExtensionByName("toolbar");if(!this.showWhenToolbarIsVisible&&r&&r.isDisplayed&&r.isDisplayed())return!0;this.activeAnchor&&this.activeAnchor!==n&&this.detachPreviewHandlers(),this.anchorToPreview=n,this.instanceHandleAnchorMouseout=this.handleAnchorMouseout.bind(this),this.on(this.anchorToPreview,"mouseout",this.instanceHandleAnchorMouseout),this.base.delay(function(){this.anchorToPreview&&this.showPreview(this.anchorToPreview)}.bind(this))}},handlePreviewMouseover:function(){this.lastOver=(new Date).getTime(),this.hovering=!0},handlePreviewMouseout:function(t){t.relatedTarget&&/anchor-preview/.test(t.relatedTarget.className)||(this.hovering=!1)},updatePreview:function(){if(this.hovering)return!0;(new Date).getTime()-this.lastOver>this.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;e<this.window._mediumEditors.length;e++){var n=this.window._mediumEditors[e];null!==n&&void 0!==n.getExtensionByName("autoLink")&&t++}return 1===t},destroy:function(){this.document.queryCommandSupported("AutoUrlDetect")&&this.isLastInstance()&&this.document.execCommand("AutoUrlDetect",!1,!0)},onBlur:function(t,e){this.performLinking(e)},onKeypress:function(e){this.disableEventHandling||t.util.isKey(e,[t.util.keyCode.SPACE,t.util.keyCode.ENTER])&&(clearTimeout(this.performLinkingTimeout),this.performLinkingTimeout=setTimeout(function(){try{var t=this.base.exportSelection();this.performLinking(e.target)&&this.base.importSelection(t,!0)}catch(t){window.console&&window.console.error("Failed to perform linking",t),this.disableEventHandling=!0}}.bind(this),0))},performLinking:function(e){var n=t.util.splitByBlockElements(e),r=!1;0===n.length&&(n=[e]);for(var i=0;i<n.length;i++)r=this.removeObsoleteAutoLinkSpans(n[i])||r,r=this.performLinkingWithinElement(n[i])||r;return this.base.events.updateInput(e,{target:e,currentTarget:e}),r},removeObsoleteAutoLinkSpans:function(n){if(!n||3===n.nodeType)return!1;for(var r=n.querySelectorAll('span[data-auto-link="true"]'),i=!1,o=0;o<r.length;o++){var a=r[o].textContent;if(-1===a.indexOf("://")&&(a=t.util.ensureUrlHasProtocol(a)),r[o].getAttribute("data-href")!==a&&e(r[o])){i=!0;var s=a.replace(/\s+$/,"");if(r[o].getAttribute("data-href")===s){var u=a.length-s.length,c=t.util.splitOffDOMTree(r[o],this.splitTextBeforeEnd(r[o],u));r[o].parentNode.insertBefore(c,r[o].nextSibling)}else t.util.unwrap(r[o],this.document)}}return i},splitTextBeforeEnd:function(t,e){for(var n=this.document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1),r=!0;r;)r=null!==n.lastChild();for(var i,o,a;e>0&&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;r<n.length;r++){var i=t.util.findOrCreateMatchingTextNodes(this.document,e,n[r]);this.shouldNotLink(i)||this.createAutoLink(i,n[r].href)}return!1},shouldNotLink:function(e){for(var n=!1,r=0;r<e.length&&!1===n;r++)n=!!t.util.traverseUp(e[r],function(t){return"a"===t.nodeName.toLowerCase()||t.getAttribute&&"true"===t.getAttribute("data-auto-link")});return n},findLinkableText:function(t){for(var e=t.textContent,r=null,i=[];null!==(r=a.exec(e));){var s=!0,u=r.index+r[0].length;s=!(0!==r.index&&-1===n.indexOf(e[r.index-1])||u!==e.length&&-1===n.indexOf(e[u])),s=s&&(-1!==r[0].indexOf("/")||o.test(r[0].split(".").pop().split("?").shift())),s&&i.push({href:r[0],start:r.index,end:u})}return i},createAutoLink:function(e,n){n=t.util.ensureUrlHasProtocol(n);var r=t.util.createLink(this.document,e,n,this.getEditorOption("targetBlank")?"_blank":null),i=this.document.createElement("span");for(i.setAttribute("data-auto-link","true"),i.setAttribute("data-href",n),r.insertBefore(i,r.firstChild);r.childNodes.length>1;)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:"&#xB1;",contentFA:'<i class="fa fa-font"></i>',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<this.fonts.length;a++)t=e.createElement("option"),t.innerHTML=this.fonts[a],t.value=this.fonts[a],r.appendChild(t);return r.className="medium-editor-toolbar-select",n.appendChild(r),this.on(r,"change",this.handleFontChange.bind(this)),o.setAttribute("href","#"),o.className="medium-editor-toobar-save",o.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':"&#10003;",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")?'<i class="fa fa-times"></i>':"&times;",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:"&#xB1;",contentFA:'<i class="fa fa-text-height"></i>',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")?'<i class="fa fa-check"></i>':"&#10003;",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")?'<i class="fa fa-times"></i>':"&times;",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]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/g),""],[new RegExp(/<!--StartFragment-->|<!--EndFragment-->/g),""],[new RegExp(/<br>$/i),""],[new RegExp(/<[^>]*docs-internal-guid[^>]*>/gi),""],[new RegExp(/<\/b>(<br[^>]*>)?$/gi),""],[new RegExp(/<span class="Apple-converted-space">\s+<\/span>/g)," "],[new RegExp(/<br class="Apple-interchange-newline">/g),"<br>"],[new RegExp(/<span[^>]*(font-style:italic;font-weight:(bold|700)|font-weight:(bold|700);font-style:italic)[^>]*>/gi),'<span class="replace-with italic bold">'],[new RegExp(/<span[^>]*font-style:italic[^>]*>/gi),'<span class="replace-with italic">'],[new RegExp(/<span[^>]*font-weight:(bold|700)[^>]*>/gi),'<span class="replace-with bold">'],[new RegExp(/&lt;(\/?)(i|b|a)&gt;/gi),"<$1$2>"],[new RegExp(/&lt;a(?:(?!href).)+href=(?:&quot;|&rdquo;|&ldquo;|"|“|”)(((?!&quot;|&rdquo;|&ldquo;|"|“|”).)*)(?:&quot;|&rdquo;|&ldquo;|"|“|”)(?:(?!&gt;).)*&gt;/gi),'<a href="$1">'],[new RegExp(/<\/p>\n+/gi),"</p>"],[new RegExp(/\n+<p/gi),"<p"],[new RegExp(/<\/?o:[a-z]*>/gi),""],[new RegExp(/<!\[if !supportLists\]>(((?!<!).)*)<!\[endif]\>/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;a<r.types.length;a++){var s=r.types[a];i[s]=r.getData(s)}return i}var r=null,i=null,o=function(t){t.stopPropagation()},a=t.Extension.extend({forcePlainText:!0,cleanPastedHTML:!1,preCleanReplacements:[],cleanReplacements:[],cleanAttrs:["class","style","dir"],cleanTags:["meta"],unwrapTags:[],init:function(){t.Extension.prototype.init.apply(this,arguments),(this.forcePlainText||this.cleanPastedHTML)&&(this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.getEditorElements().forEach(function(t){this.on(t,"paste",this.handlePaste.bind(this))},this),this.subscribe("addElement",this.handleAddElement.bind(this)))},handleAddElement:function(t,e){this.on(e,"paste",this.handlePaste.bind(this))},destroy:function(){(this.forcePlainText||this.cleanPastedHTML)&&this.removePasteBin()},handlePaste:function(t,e){if(!t.defaultPrevented){var r=n(t,this.window,this.document),i=r["text/html"],o=r["text/plain"];this.window.clipboardData&&void 0===t.clipboardData&&!i&&(i=o),(i||o)&&(t.preventDefault(),this.doPaste(i,o,e))}},doPaste:function(e,n,r){var i,o,a="";if(this.cleanPastedHTML&&e)return this.cleanPaste(e);if(this.getEditorOption("disableReturn")||r&&r.getAttribute("data-disable-return"))a=t.util.htmlEntities(n);else if(i=n.split(/[\r\n]+/g),i.length>1)for(o=0;o<i.length;o+=1)""!==i[o]&&(a+="<p>"+t.util.htmlEntities(i[o])+"</p>");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=/<p|<br|<div/.test(t),s=[].concat(this.preCleanReplacements||[],e(),this.cleanReplacements||[]);for(n=0;n<s.length;n+=1)t=t.replace(s[n][0],s[n][1]);if(!a)return this.pasteHTML(t);for(i=this.document.createElement("div"),i.innerHTML="<p>"+t.split("<br><br>").join("</p><p>")+"</p>",r=i.querySelectorAll("a,p,div,br"),n=0;n<r.length;n+=1)switch(o=r[n],o.innerHTML=o.innerHTML.replace(/\n/gi," "),o.nodeName.toLowerCase()){case"p":case"div":this.filterCommonBlocks(o);break;case"br":this.filterLineBreak(o)}this.pasteHTML(i.innerHTML)},pasteHTML:function(e,n){n=t.util.defaults({},n,{cleanAttrs:this.cleanAttrs,cleanTags:this.cleanTags,unwrapTags:this.unwrapTags});var r,i,o,a,s=this.document.createDocumentFragment();for(s.appendChild(this.document.createElement("body")),a=s.querySelector("body"),a.innerHTML=e,this.cleanupSpans(a),r=a.querySelectorAll("*"),o=0;o<r.length;o+=1)i=r[o],"a"===i.nodeName.toLowerCase()&&this.getEditorOption("targetBlank")&&t.util.setTargetBlank(i),t.util.cleanupAttrs(i,n.cleanAttrs),t.util.cleanupTags(i,n.cleanTags),t.util.unwrapTags(i,n.unwrapTags);t.util.insertHTMLCommand(this.document,a.innerHTML.replace(/&nbsp;/g," "))},isCommonBlock:function(t){return t&&("p"===t.nodeName.toLowerCase()||"div"===t.nodeName.toLowerCase())},filterCommonBlocks:function(t){/^\s*$/.test(t.textContent)&&t.parentNode&&t.parentNode.removeChild(t)},filterLineBreak:function(t){this.isCommonBlock(t.previousElementSibling)?this.removeWithParent(t):!this.isCommonBlock(t.parentNode)||t.parentNode.firstChild!==t&&t.parentNode.lastChild!==t?t.parentNode&&1===t.parentNode.childElementCount&&""===t.parentNode.textContent&&this.removeWithParent(t):this.removeWithParent(t)},removeWithParent:function(t){t&&t.parentNode&&(t.parentNode.parentNode&&1===t.parentNode.childElementCount?t.parentNode.parentNode.removeChild(t.parentNode):t.parentNode.removeChild(t))},cleanupSpans:function(e){var n,r,i,o=e.querySelectorAll(".replace-with"),a=function(t){return t&&"#text"!==t.nodeName&&"false"===t.getAttribute("contenteditable")};for(n=0;n<o.length;n+=1)r=o[n],i=this.document.createElement(r.classList.contains("bold")?"b":"i"),r.classList.contains("bold")&&r.classList.contains("italic")?i.innerHTML="<i>"+r.innerHTML+"</i>":i.innerHTML=r.innerHTML,r.parentNode.replaceChild(i,r);for(o=e.querySelectorAll("span"),n=0;n<o.length;n+=1){if(r=o[n],t.util.traverseUp(r,a))return!1;t.util.unwrap(r,this.document)}}});t.extensions.paste=a}(),function(){var e=t.Extension.extend({name:"placeholder",text:"Type your text",hideOnClick:!0,init:function(){t.Extension.prototype.init.apply(this,arguments),this.initPlaceholders(),this.attachEventHandlers()},initPlaceholders:function(){this.getEditorElements().forEach(this.initElement,this)},handleAddElement:function(t,e){this.initElement(e)},initElement:function(t){t.getAttribute("data-placeholder")||t.setAttribute("data-placeholder",this.text),this.updatePlaceholder(t)},destroy:function(){this.getEditorElements().forEach(this.cleanupElement,this)},handleRemoveElement:function(t,e){this.cleanupElement(e)},cleanupElement:function(t){t.getAttribute("data-placeholder")===this.text&&t.removeAttribute("data-placeholder")},showPlaceholder:function(e){e&&(t.util.isFF&&0===e.childNodes.length?(e.classList.add("medium-editor-placeholder-relative"),e.classList.remove("medium-editor-placeholder")):(e.classList.add("medium-editor-placeholder"),e.classList.remove("medium-editor-placeholder-relative")))},hidePlaceholder:function(t){t&&(t.classList.remove("medium-editor-placeholder"),t.classList.remove("medium-editor-placeholder-relative"))},updatePlaceholder:function(t,e){if(t.querySelector("img, blockquote, ul, ol, table")||""!==t.textContent.replace(/^\s+|\s+$/g,""))return this.hidePlaceholder(t);e||this.showPlaceholder(t)},attachEventHandlers:function(){this.hideOnClick&&this.subscribe("focus",this.handleFocus.bind(this)),this.subscribe("editableInput",this.handleInput.bind(this)),this.subscribe("blur",this.handleBlur.bind(this)),this.subscribe("addElement",this.handleAddElement.bind(this)),this.subscribe("removeElement",this.handleRemoveElement.bind(this))},handleInput:function(t,e){var n=this.hideOnClick&&e===this.base.getFocusedElement();this.updatePlaceholder(e,n)},handleFocus:function(t,e){this.hidePlaceholder(e)},handleBlur:function(t,e){this.updatePlaceholder(e)}});t.extensions.placeholder=e}(),function(){var e=t.Extension.extend({name:"toolbar",align:"center",allowMultiParagraphSelection:!0,buttons:["bold","italic","underline","anchor","h2","h3","quote"],diffLeft:0,diffTop:-10,firstButtonClass:"medium-editor-button-first",lastButtonClass:"medium-editor-button-last",standardizeSelectionStart:!1,static:!1,sticky:!1,stickyTopOffset:0,updateOnEmptySelection:!1,relativeContainer:null,init:function(){t.Extension.prototype.init.apply(this,arguments),this.initThrottledMethods(),this.relativeContainer?this.relativeContainer.appendChild(this.getToolbarElement()):this.getEditorOption("elementsContainer").appendChild(this.getToolbarElement())},forEachExtension:function(t,e){return this.base.extensions.forEach(function(n){if(n!==this)return t.apply(e||this,arguments)},this)},createToolbar:function(){var t=this.document.createElement("div");return t.id="medium-editor-toolbar-"+this.getEditorId(),t.className="medium-editor-toolbar",this.static?t.className+=" static-toolbar":this.relativeContainer?t.className+=" medium-editor-relative-toolbar":t.className+=" medium-editor-stalker-toolbar",t.appendChild(this.createToolbarButtons()),this.forEachExtension(function(e){e.hasForm&&t.appendChild(e.getForm())}),this.attachEventHandlers(),t},createToolbarButtons:function(){var e,n,r,i,o,a,s=this.document.createElement("ul");return s.id="medium-editor-toolbar-actions"+this.getEditorId(),s.className="medium-editor-toolbar-actions",s.style.display="block",this.buttons.forEach(function(r){"string"==typeof r?(o=r,a=null):(o=r.name,a=r),(i=this.base.addBuiltInExtension(o,a))&&"function"==typeof i.getButton&&(n=i.getButton(this.base),e=this.document.createElement("li"),t.util.isElement(n)?e.appendChild(n):e.innerHTML=n,s.appendChild(e))},this),r=s.querySelectorAll("button"),r.length>0&&(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<c?(h.left=l+c,h.right="initial"):o-r<c?(h.left="auto",h.right=0):(h.left=l+r,h.right="initial"),["top","left","right"].forEach(function(t){a.style[t]=h[t]+(isNaN(h[t])?"":"px")})}});t.extensions.toolbar=e}(),function(){var e=t.Extension.extend({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","dragover"===t.type?t.target.classList.add("medium-editor-dragover"):"dragleave"===t.type&&t.target.classList.remove("medium-editor-dragover")},handleDrop:function(e){var n;e.preventDefault(),e.stopPropagation(),e.dataTransfer.files&&(n=Array.prototype.slice.call(e.dataTransfer.files,0),n.some(function(e){if(e.type.match("image")){var n,r;n=new FileReader,n.readAsDataURL(e),r="medium-img-"+ +new Date,t.util.insertHTMLCommand(this.document,'<img class="medium-editor-image-loading" id="'+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+|<br\/?>)?$/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="<br>",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="<br>",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="<br>",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<e.length;o++){var a=e[o];!t.util.isElement(a)||a.getAttribute("data-medium-editor-element")||a.getAttribute("medium-editor-textarea-id")||i.push(a)}else i=Array.prototype.slice.apply(e);return i}function l(t){var e=t.parentNode.querySelector('textarea[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]');e&&(e.classList.remove("medium-editor-hidden"),e.removeAttribute("medium-editor-textarea-id")),t.parentNode&&t.parentNode.removeChild(t)}function f(t,e){return Object.keys(e).forEach(function(n){void 0===t[n]&&(t[n]=e[n])}),t}function d(t,e,n){return t=f(t,{window:n.options.contentWindow,document:n.options.ownerDocument,base:n}),"function"==typeof t.init&&t.init(),t.name||(t.name=e),t}function h(){return!this.elements.every(function(t){return!!t.getAttribute("data-disable-toolbar")})&&!1!==this.options.toolbar}function p(){return!!h.call(this)&&!1!==this.options.anchorPreview}function v(){return!1!==this.options.placeholder}function y(){return!1!==this.options.autoLink}function m(){return!1!==this.options.imageDragging}function b(){return!1!==this.options.keyboardCommands}function g(){return!this.options.extensions.imageDragging}function w(t){for(var e=this.options.ownerDocument.createElement("div"),n=Date.now(),r="medium-editor-"+n,i=t.attributes;this.options.ownerDocument.getElementById(r);)n++,r="medium-editor-"+n;e.className=t.className,e.id=r,e.innerHTML=t.value,t.setAttribute("medium-editor-textarea-id",r);for(var o=0,a=i.length;o<a;o++)e.hasAttribute(i[o].nodeName)||e.setAttribute(i[o].nodeName,i[o].nodeValue);return t.form&&this.on(t.form,"reset",function(t){t.defaultPrevented||this.resetContent(this.options.ownerDocument.getElementById(r))}.bind(this)),t.classList.add("medium-editor-hidden"),t.parentNode.insertBefore(e,t),e}function _(e,r){if(!e.getAttribute("data-medium-editor-element")){"textarea"===e.nodeName.toLowerCase()&&(e=w.call(this,e),this.instanceHandleEditableInput||(this.instanceHandleEditableInput=a.bind(this),this.subscribe("editableInput",this.instanceHandleEditableInput))),this.options.disableEditing||e.getAttribute("data-disable-editing")||(e.setAttribute("contentEditable",!0),e.setAttribute("spellcheck",this.options.spellcheck)),this.instanceHandleEditableKeydownEnter||(e.getAttribute("data-disable-return")||e.getAttribute("data-disable-double-return"))&&(this.instanceHandleEditableKeydownEnter=n.bind(this),this.subscribe("editableKeydownEnter",this.instanceHandleEditableKeydownEnter)),this.options.disableReturn||e.getAttribute("data-disable-return")||this.on(e,"keyup",o.bind(this));var i=t.util.guid();e.setAttribute("data-medium-editor-element",!0),e.classList.add("medium-editor-element"),e.setAttribute("role","textbox"),e.setAttribute("aria-multiline",!0),e.setAttribute("data-medium-editor-editor-index",r),e.setAttribute("medium-editor-index",i),j[i]=e.innerHTML,this.events.attachAllEventsToElement(e)}return e}function k(){this.subscribe("editableKeydownTab",r.bind(this)),this.subscribe("editableKeydownDelete",i.bind(this)),this.subscribe("editableKeydownEnter",i.bind(this)),this.options.disableExtraSpaces&&this.subscribe("editableKeydownSpace",e.bind(this)),this.instanceHandleEditableKeydownEnter||(this.options.disableReturn||this.options.disableDoubleReturn)&&(this.instanceHandleEditableKeydownEnter=n.bind(this),this.subscribe("editableKeydownEnter",this.instanceHandleEditableKeydownEnter))}function O(){if(this.extensions=[],Object.keys(this.options.extensions).forEach(function(t){"toolbar"!==t&&this.options.extensions[t]&&this.extensions.push(d(this.options.extensions[t],t,this))},this),g.call(this)){var e=this.options.fileDragging;e||(e={},m.call(this)||(e.allowedTypes=[])),this.addBuiltInExtension("fileDragging",e)}var n={paste:!0,"anchor-preview":p.call(this),autoLink:y.call(this),keyboardCommands:b.call(this),placeholder:v.call(this)};Object.keys(n).forEach(function(t){n[t]&&this.addBuiltInExtension(t)},this);var r=this.options.extensions.toolbar;if(!r&&h.call(this)){var i=t.util.extend({},this.options.toolbar,{allowMultiParagraphSelection:this.options.allowMultiParagraphSelection});r=new t.extensions.toolbar(i)}r&&this.extensions.push(d(r,"toolbar",this))}function E(e,n){var r=[["allowMultiParagraphSelection","toolbar.allowMultiParagraphSelection"]];return n&&r.forEach(function(e){n.hasOwnProperty(e[0])&&void 0!==n[e[0]]&&t.util.deprecated(e[0],e[1],"v6.0.0")}),t.util.defaults({},n,e)}function x(e,n){var r,i,o=/^append-(.+)$/gi,a=/justify([A-Za-z]*)$/g;if(r=o.exec(e))return t.util.execFormatBlock(this.options.ownerDocument,r[1]);if("fontSize"===e)return n.size&&t.util.deprecated(".size option for fontSize command",".value","6.0.0"),i=n.value||n.size,this.options.ownerDocument.execCommand("fontSize",!1,i);if("fontName"===e)return n.name&&t.util.deprecated(".name option for fontName command",".value","6.0.0"),i=n.value||n.name,this.options.ownerDocument.execCommand("fontName",!1,i);if("createLink"===e)return this.createLink(n);if("image"===e){var s=this.options.contentWindow.getSelection().toString().trim();return this.options.ownerDocument.execCommand("insertImage",!1,s)}if("html"===e){var u=this.options.contentWindow.getSelection().toString().trim();return t.util.insertHTMLCommand(this.options.ownerDocument,u)}if(a.exec(e)){var c=this.options.ownerDocument.execCommand(e,!1,null),l=t.selection.getSelectedParentElement(t.selection.getSelectionRange(this.options.ownerDocument));return l&&C.call(this,t.util.getTopBlockContainer(l)),c}return i=n&&n.value,this.options.ownerDocument.execCommand(e,!1,i)}function C(e){if(e){var n,r=Array.prototype.slice.call(e.childNodes).filter(function(t){var e="div"===t.nodeName.toLowerCase();return e&&!n&&(n=t.style.textAlign),e});r.length&&(this.saveSelection(),r.forEach(function(e){if(e.style.textAlign===n){var r=e.lastChild;if(r){t.util.unwrap(e,this.options.ownerDocument);var i=this.options.ownerDocument.createElement("BR");r.parentNode.insertBefore(i,r.nextSibling)}}},this),e.style.textAlign=n,this.restoreSelection())}}var j={};t.prototype={init:function(t,e){return this.options=E.call(this,this.defaults,e),this.origElements=t,this.options.elementsContainer||(this.options.elementsContainer=this.options.ownerDocument.body),this.setup()},setup:function(){this.isActive||(s.call(this,this.options.contentWindow),this.events=new t.Events(this),this.elements=[],this.addElements(this.origElements),0!==this.elements.length&&(this.isActive=!0,O.call(this),k.call(this)))},destroy:function(){this.isActive&&(this.isActive=!1,this.extensions.forEach(function(t){"function"==typeof t.destroy&&t.destroy()},this),this.events.destroy(),this.elements.forEach(function(t){this.options.spellcheck&&(t.innerHTML=t.innerHTML),t.removeAttribute("contentEditable"),t.removeAttribute("spellcheck"),t.removeAttribute("data-medium-editor-element"),t.classList.remove("medium-editor-element"),t.removeAttribute("role"),t.removeAttribute("aria-multiline"),t.removeAttribute("medium-editor-index"),t.removeAttribute("data-medium-editor-editor-index"),t.getAttribute("medium-editor-textarea-id")&&l(t)},this),this.elements=[],this.instanceHandleEditableKeydownEnter=null,this.instanceHandleEditableInput=null,u.call(this,this.options.contentWindow))},on:function(t,e,n,r){return this.events.attachDOMEvent(t,e,n,r),this},off:function(t,e,n,r){return this.events.detachDOMEvent(t,e,n,r),this},subscribe:function(t,e){return this.events.attachCustomEvent(t,e),this},unsubscribe:function(t,e){return this.events.detachCustomEvent(t,e),this},trigger:function(t,e,n){return this.events.triggerCustomEvent(t,e,n),this},delay:function(t){var e=this;return setTimeout(function(){e.isActive&&t()},this.options.delay)},serialize:function(){var t,e,n={},r=this.elements.length;for(t=0;t<r;t+=1)e=""!==this.elements[t].id?this.elements[t].id:"element-"+t,n[e]={value:this.elements[t].innerHTML.trim()};return n},getExtensionByName:function(t){var e;return this.extensions&&this.extensions.length&&this.extensions.some(function(n){return n.name===t&&(e=n,!0)}),e},addBuiltInExtension:function(e,n){var r,i=this.getExtensionByName(e);if(i)return i;switch(e){case"anchor":r=t.util.extend({},this.options.anchor,n),i=new t.extensions.anchor(r);break;case"anchor-preview":i=new t.extensions.anchorPreview(this.options.anchorPreview);break;case"autoLink":i=new t.extensions.autoLink;break;case"fileDragging":i=new t.extensions.fileDragging(n);break;case"fontname":i=new t.extensions.fontName(this.options.fontName);break;case"fontsize":i=new t.extensions.fontSize(n);break;case"keyboardCommands":i=new t.extensions.keyboardCommands(this.options.keyboardCommands);break;case"paste":i=new t.extensions.paste(this.options.paste);break;case"placeholder":i=new t.extensions.placeholder(this.options.placeholder);break;default:t.extensions.button.isBuiltInButton(e)&&(n?(r=t.util.defaults({},n,t.extensions.button.prototype.defaults[e]),i=new t.extensions.button(r)):i=new t.extensions.button(e))}return i&&this.extensions.push(d(i,e,this)),i},stopSelectionUpdates:function(){this.preventSelectionUpdates=!0},startSelectionUpdates:function(){this.preventSelectionUpdates=!1},checkSelection:function(){var t=this.getExtensionByName("toolbar");return t&&t.checkState(),this},queryCommandState:function(t){var e,n=/^full-(.+)$/gi,r=null;(e=n.exec(t))&&(t=e[1]);try{r=this.options.ownerDocument.queryCommandState(t)}catch(t){r=null}return r},execAction:function(e,n){var r,i,o=/^full-(.+)$/gi;return r=o.exec(e),r?(this.saveSelection(),this.selectAllContents(),i=x.call(this,r[1],n),this.restoreSelection()):i=x.call(this,e,n),"insertunorderedlist"!==e&&"insertorderedlist"!==e||t.util.cleanListDOM(this.options.ownerDocument,this.getSelectedParentElement()),this.checkSelection(),i},getSelectedParentElement:function(e){return void 0===e&&(e=this.options.contentWindow.getSelection().getRangeAt(0)),t.selection.getSelectedParentElement(e)},selectAllContents:function(){var e=t.selection.getSelectionElement(this.options.contentWindow);if(e){for(;1===e.children.length;)e=e.children[0];this.selectElement(e)}},selectElement:function(e){t.selection.selectNode(e,this.options.ownerDocument);var n=t.selection.getSelectionElement(this.options.contentWindow);n&&this.events.focusElement(n)},getFocusedElement:function(){var t;return this.elements.some(function(e){return!t&&e.getAttribute("data-medium-focused")&&(t=e),!!t},this),t},exportSelection:function(){var e=t.selection.getSelectionElement(this.options.contentWindow),n=this.elements.indexOf(e),r=null;return n>=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;y<m;y+=1)this.elements[y].dispatchEvent(i)}}finally{this.events.enableCustomEvent("editableInput")}this.events.triggerCustomEvent("editableInput",i,r)}},cleanPaste:function(t){this.getExtensionByName("paste").cleanPaste(t)},pasteHTML:function(t,e){this.getExtensionByName("paste").pasteHTML(t,e)},setContent:function(t,e){if(e=e||0,this.elements[e]){var n=this.elements[e];n.innerHTML=t,this.checkContentChanged(n)}},getContent:function(t){return t=t||0,this.elements[t]?this.elements[t].innerHTML.trim():null},checkContentChanged:function(e){e=e||t.selection.getSelectionElement(this.options.contentWindow),this.events.updateInput(e,{target:e,currentTarget:e})},resetContent:function(t){if(t){var e=this.elements.indexOf(t);return void(-1!==e&&this.setContent(j[t.getAttribute("medium-editor-index")],e))}this.elements.forEach(function(t,e){this.setContent(j[t.getAttribute("medium-editor-index")],e)},this)},addElements:function(t){var e=c(t,this.options.ownerDocument,!0);if(0===e.length)return!1;e.forEach(function(t){t=_.call(this,t,this.id),this.elements.push(t),this.trigger("addElement",{target:t,currentTarget:t},t)},this)},removeElements:function(t){var e=c(t,this.options.ownerDocument),n=e.map(function(t){return t.getAttribute("medium-editor-textarea-id")&&t.parentNode?t.parentNode.querySelector('div[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]'):t});this.elements=this.elements.filter(function(t){return-1===n.indexOf(t)||(this.events.cleanupElement(t),t.getAttribute("medium-editor-textarea-id")&&l(t),this.trigger("removeElement",{target:t,currentTarget:t},t),!1)},this)}},t.getEditorFromElement=function(t){var e=t.getAttribute("data-medium-editor-editor-index"),n=t&&t.ownerDocument&&(t.ownerDocument.defaultView||t.ownerDocument.parentWindow);return n&&n._mediumEditors&&n._mediumEditors[e]?n._mediumEditors[e]:null}}(),function(){t.prototype.defaults={activeButtonClass:"medium-editor-button-active",buttonLabels:!1,delay:0,disableReturn:!1,disableDoubleReturn:!1,disableExtraSpaces:!1,disableEditing:!1,autoLink:!1,elementsContainer:!1,contentWindow:window,ownerDocument:document,targetBlank:!1,extensions:{},spellcheck:!0}}(),t.parseVersionString=function(t){var e=t.split("-"),n=e[0].split("."),r=e.length>1?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<i;++r)n.appendChild(t.getRangeAt(r).cloneContents());e=n.innerHTML}}else void 0!==document.selection&&"Text"==document.selection.type&&(e=document.selection.createRange().htmlText);return e}r.prototype.getButton=function(){return this.button},r.prototype.checkState=function(t){var e=i();""!=this.options.start&&e.indexOf(this.options.start)>-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(331),u=n(332),c=(n(333),n(334));n(335),n(336);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()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return a(this,t,e,n)}function a(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?d(t,e,n,r):"string"==typeof e?l(t,e,n):h(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function u(t,e,n,r){return s(e),e<=0?i(t,e):void 0!==n?"string"==typeof r?i(t,e).fill(n,r):i(t,e).fill(n):i(t,e)}function c(t,e){if(s(e),t=i(t,e<0?0:0|p(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function l(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|y(e,n);t=i(t,r);var a=t.write(e,n);return a!==r&&(t=t.slice(0,a)),t}function f(t,e){var n=e.length<0?0:0|p(e.length);t=i(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=f(t,e),t}function h(t,e){if(o.isBuffer(e)){var n=0|p(e.length);return t=i(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||$(e.length)?i(t,0):f(t,e);if("Buffer"===e.type&&X(e.data))return f(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p(t){if(t>=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;c<s;c++)if(o(t,c)===o(e,-1===l?0:c-l)){if(-1===l&&(l=c),c-l+1===u)return l*a}else-1!==l&&(c-=c-l),l=-1}else for(n+u>s&&(n=s-u),c=n;c>=0;c--){for(var f=!0,d=0;d<u;d++)if(o(t,c+d)!==o(e,d)){f=!1;break}if(f)return c}return-1}function _(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(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;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function k(t,e,n,r){return Y(W(e,t.length-n),t,n,r)}function O(t,e,n,r){return Y(K(e),t,n,r)}function E(t,e,n,r){return O(t,e,n,r)}function x(t,e,n,r){return Y(Q(e),t,n,r)}function C(t,e,n,r){return Y(V(e,t.length-n),t,n,r)}function j(t,e,n){return 0===e&&n===t.length?Z.fromByteArray(t):Z.fromByteArray(t.slice(e,n))}function S(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o=t[i],a=null,s=o>239?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;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=J));return n}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function N(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function P(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=H(t[o]);return i}function L(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)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||e<a)throw new RangeError('"value" argument is out of bounds');if(n+r>t.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<o;++i)t[n+i]=(e&255<<8*(r?i:1-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<o;++i)t[n+i]=e>>>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;a<r;++a){if((n=t.charCodeAt(a))>55295&&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<t.length;++n)e.push(255&t.charCodeAt(n));return e}function V(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=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<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function $(t){return t!==t}/*!
80
+ function(t){"use strict";if(t.URL=t.URL||t.webkitURL,t.Blob&&t.URL)try{return void new Blob}catch(t){}var e=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||function(t){var e=function(t){return Object.prototype.toString.call(t).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},r=function(t,e,n){this.data=t,this.size=t.length,this.type=e,this.encoding=n},i=n.prototype,o=r.prototype,a=t.FileReaderSync,s=function(t){this.code=this[this.name=t]},u="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),c=u.length,l=t.URL||t.webkitURL||t,f=l.createObjectURL,d=l.revokeObjectURL,h=l,p=t.btoa,v=t.atob,y=t.ArrayBuffer,m=t.Uint8Array,b=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(r.fake=o.fake=!0;c--;)s.prototype[u[c]]=c+1;return l.createObjectURL||(h=t.URL=function(t){var e,n=document.createElementNS("http://www.w3.org/1999/xhtml","a");return n.href=t,"origin"in n||("data:"===n.protocol.toLowerCase()?n.origin=null:(e=t.match(b),n.origin=e&&e[1])),n}),h.createObjectURL=function(t){var e,n=t.type;return null===n&&(n="application/octet-stream"),t instanceof r?(e="data:"+n,"base64"===t.encoding?e+";base64,"+t.data:"URI"===t.encoding?e+","+decodeURIComponent(t.data):p?e+";base64,"+p(t.data):e+","+encodeURIComponent(t.data)):f?f.call(l,t):void 0},h.revokeObjectURL=function(t){"data:"!==t.substring(0,5)&&d&&d.call(l,t)},i.append=function(t){var n=this.data;if(m&&(t instanceof y||t instanceof m)){for(var i="",o=new m(t),u=0,c=o.length;u<c;u++)i+=String.fromCharCode(o[u]);n.push(i)}else if("Blob"===e(t)||"File"===e(t)){if(!a)throw new s("NOT_READABLE_ERR");var l=new a;n.push(l.readAsBinaryString(t))}else t instanceof r?"base64"===t.encoding&&v?n.push(v(t.data)):"URI"===t.encoding?n.push(decodeURIComponent(t.data)):"raw"===t.encoding&&n.push(t.data):("string"!=typeof t&&(t+=""),n.push(unescape(encodeURIComponent(t))))},i.getBlob=function(t){return arguments.length||(t=null),new r(this.data.join(""),t,"raw")},i.toString=function(){return"[object BlobBuilder]"},o.slice=function(t,e,n){var i=arguments.length;return i<3&&(n=null),new r(this.data.slice(t,i>1?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<a;o++)Uint8Array&&t[o]instanceof Uint8Array?i.append(t[o].buffer):i.append(t[o]);var s=i.getBlob(r);return!s.slice&&s.webkitSlice&&(s.slice=s.webkitSlice),s};var n=Object.getPrototypeOf||function(t){return t.__proto__};t.Blob.prototype=n(new t.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this),function(o,a){"use strict";"object"==typeof t&&void 0!==r&&r&&r.versions&&r.versions.electron||"object"!=typeof t?void 0!==(i=function(){return a}.call(e,n,e,t))&&(t.exports=i):t.exports=a}(0,function(){"use strict";function t(t,e){return this.init(t,e)}return t.extensions={},function(e){function n(t,e){var n,r=Array.prototype.slice.call(arguments,2);e=e||{};for(var i=0;i<r.length;i++){var o=r[i];if(o)for(n in o)o.hasOwnProperty(n)&&void 0!==o[n]&&(t||!1===e.hasOwnProperty(n))&&(e[n]=o[n])}return e}var r=!1;try{var i=document.createElement("div"),o=document.createTextNode(" ");i.appendChild(o),r=i.contains(o)}catch(t){}var a={isIE:"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&null!==new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent),isEdge:null!==/Edge\/\d+/.exec(navigator.userAgent),isFF:navigator.userAgent.toLowerCase().indexOf("firefox")>-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.start<o+u.nodeValue.length&&(s=!0,c=a.splitStartNodeIfNeeded(u,n.start,o)),s&&a.splitEndNodeIfNeeded(u,c,n.end,o),s&&o===n.end)break;if(s&&o>n.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;i<e.childNodes.length;i++){var o=e.childNodes[i];if(3===o.nodeType)n.push(o);else if(1===o.nodeType){var a=o.querySelectorAll(r);0===a.length?n.push(o):n=n.concat(t.util.splitByBlockElements(o))}}return n},findAdjacentTextNodeWithContent:function(t,e,n){var r,i=!1,o=n.createNodeIterator(t,NodeFilter.SHOW_TEXT,null,!1);for(r=o.nextNode();r;){if(r===e)i=!0;else if(i&&3===r.nodeType&&r.nodeValue&&r.nodeValue.trim().length>0)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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},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&&"<p>"===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;n<t.length;n+=1)!1!==r&&r!==t[n].attributes.href.value||(t[n].target="_blank",t[n].rel="noopener noreferrer")},removeTargetBlank:function(t,e){var n;if("a"===t.nodeName.toLowerCase())t.removeAttribute("target"),t.removeAttribute("rel");else for(t=t.getElementsByTagName("a"),n=0;n<t.length;n+=1)e===t[n].attributes.href.value&&(t[n].removeAttribute("target"),t[n].removeAttribute("rel"))},addClassToAnchors:function(t,e){var n,r,i=e.split(" ");if("a"===t.nodeName.toLowerCase())for(r=0;r<i.length;r+=1)t.classList.add(i[r]);else{var o=t.getElementsByTagName("a");if(0===o.length){var s=a.getClosestTag(t,"a");t=s?[s]:[]}else t=o;for(n=0;n<t.length;n+=1)for(r=0;r<i.length;r+=1)t[n].classList.add(i[r])}},isListItem:function(t){if(!t)return!1;if("li"===t.nodeName.toLowerCase())return!0;for(var e=t.parentNode,n=e.nodeName.toLowerCase();"li"===n||!a.isBlockContainer(e)&&"div"!==n;){if("li"===n)return!0;if(!(e=e.parentNode))return!1;n=e.nodeName.toLowerCase()}return!1},cleanListDOM:function(e,n){if("li"===n.nodeName.toLowerCase()){var r=n.parentElement;"p"===r.parentElement.nodeName.toLowerCase()&&(a.unwrap(r.parentElement,e),t.selection.moveCursor(e,n.firstChild,n.firstChild.textContent.length))}},splitOffDOMTree:function(t,e,n){for(var r=e,i=null,o=!n;r!==t;){var a,s=r.parentNode,u=s.cloneNode(!1),c=o?r:s.firstChild;for(i&&(o?u.appendChild(i):a=i),i=u;c;){var l=c.nextSibling;c===r?(c.hasChildNodes()?c=c.cloneNode(!1):c.parentNode.removeChild(c),c.textContent&&i.appendChild(c),c=o?l:null):(c.parentNode.removeChild(c),(c.hasChildNodes()||c.textContent)&&i.appendChild(c),c=l)}a&&i.appendChild(a),r=s}return i},moveTextRangeIntoElement:function(t,e,n){if(!t||!e)return!1;var r=a.findCommonRoot(t,e);if(!r)return!1;if(e===t){var i=t.parentNode,o=t.nextSibling;return i.removeChild(t),n.appendChild(t),o?i.insertBefore(n,o):i.appendChild(n),n.hasChildNodes()}for(var s,u,c,l=[],f=0;f<r.childNodes.length;f++)if(c=r.childNodes[f],s){if(a.isDescendant(c,e,!0)){u=c;break}l.push(c)}else a.isDescendant(c,t,!0)&&(s=c);var d=u.nextSibling,h=r.ownerDocument.createDocumentFragment();return s===t?(s.parentNode.removeChild(s),h.appendChild(s)):h.appendChild(a.splitOffDOMTree(s,t)),l.forEach(function(t){t.parentNode.removeChild(t),h.appendChild(t)}),u===e?(u.parentNode.removeChild(u),h.appendChild(u)):h.appendChild(a.splitOffDOMTree(u,e,!0)),n.appendChild(h),u.parentNode===r?r.insertBefore(n,u):d?r.insertBefore(n,d):r.appendChild(n),n.hasChildNodes()},depthOfNode:function(t){for(var e=0,n=t;null!==n.parentNode;)n=n.parentNode,e++;return e},findCommonRoot:function(t,e){for(var n=a.depthOfNode(t),r=a.depthOfNode(e),i=t,o=e;n!==r;)n>r?(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;e<t.childNodes.length;e++){var n=a._getFirstTextNode(t.childNodes[e]);if(null!==n)return n}return null},ensureUrlHasProtocol:function(t){return-1===t.indexOf("://")?"http://"+t:t},warn:function(){void 0!==e.console&&"function"==typeof e.console.warn&&e.console.warn.apply(e.console,arguments)},deprecated:function(t,e,n){var r=t+" is deprecated, please use "+e+" instead.";n&&(r+=" Will be removed in "+n),a.warn(r)},deprecatedMethod:function(t,e,n,r){a.deprecated(t,e,r),"function"==typeof this[e]&&this[e].apply(this,n)},cleanupAttrs:function(t,e){e.forEach(function(e){t.removeAttribute(e)})},cleanupTags:function(t,e){-1!==e.indexOf(t.nodeName.toLowerCase())&&t.parentNode.removeChild(t)},unwrapTags:function(e,n){-1!==n.indexOf(e.nodeName.toLowerCase())&&t.util.unwrap(e,document)},getClosestTag:function(t,e){return a.traverseUp(t,function(t){return t.nodeName.toLowerCase()===e.toLowerCase()})},unwrap:function(t,e){for(var n=e.createDocumentFragment(),r=Array.prototype.slice.call(t.childNodes),i=0;i<r.length;i++)n.appendChild(r[i]);n.childNodes.length?t.parentNode.replaceChild(n,t):t.parentNode.removeChild(t)},guid:function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}};t.util=a}(window),function(){var e=function(e){t.util.extend(this,e)};e.extend=function(e){var n,r=this;n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return r.apply(this,arguments)},t.util.extend(n,r);var i=function(){this.constructor=n};return i.prototype=r.prototype,n.prototype=new i,e&&t.util.extend(n.prototype,e),n},e.prototype={init:function(){},base:void 0,name:void 0,checkState:void 0,destroy:void 0,queryCommandState:void 0,isActive:void 0,isAlreadyApplied:void 0,setActive:void 0,setInactive:void 0,getInteractionElements:void 0,window:void 0,document:void 0,getEditorElements:function(){return this.base.elements},getEditorId:function(){return this.base.id},getEditorOption:function(t){return this.base.options[t]}},["execAction","on","off","subscribe","trigger"].forEach(function(t){e.prototype[t]=function(){return this.base[t].apply(this.base,arguments)}}),t.Extension=e}(),function(){function e(e){return t.util.isBlockContainer(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}var n={findMatchingSelectionParent:function(e,n){var r,i,o=n.getSelection();return 0!==o.rangeCount&&(r=o.getRangeAt(0),i=r.commonAncestorContainer,t.util.traverseUp(i,e))},getSelectionElement:function(e){return this.findMatchingSelectionParent(function(e){return t.util.isMediumEditorElement(e)},e)},exportSelection:function(t,e){if(!t)return null;var n=null,r=e.getSelection();if(r.rangeCount>0){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<o?(i.setStart(a,t.start-u),c=!0):p=a),c&&t.end>=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&&s<o.parentNode.childNodes.length;s++)o.parentNode.childNodes[s]===o&&(a=s);n.setStart(o.parentNode,a+1),n.collapse(!0)}}return n},importSelectionMoveCursorPastBlocks:function(n,r,i,o){var a,s,u=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,e,!1),c=o.startContainer,l=0;for(i=i||1,a=3===c.nodeType&&t.util.isBlockContainer(c.previousSibling)?c.previousSibling:t.util.getClosestBlockContainer(c);u.nextNode();)if(s){if(s=u.currentNode,++l===i)break;if(s.textContent.length>0)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<n;e+=1)r.appendChild(o.getRangeAt(e).cloneContents());i=r.innerHTML}return i},getCaretOffsets:function(t,e){var n,r;return e||(e=window.getSelection().getRangeAt(0)),n=e.cloneRange(),r=e.cloneRange(),n.selectNodeContents(t),n.setEnd(e.endContainer,e.endOffset),r.selectNodeContents(t),r.setStart(e.endContainer,e.endOffset),{left:n.toString().length,right:r.toString().length}},rangeSelectsSingleNode:function(t){var e=t.startContainer;return e===t.endContainer&&e.hasChildNodes()&&t.endOffset===t.startOffset+1},getSelectedParentElement:function(t){return t?this.rangeSelectsSingleNode(t)&&3!==t.startContainer.childNodes[t.startOffset].nodeType?t.startContainer.childNodes[t.startOffset]:3===t.startContainer.nodeType?t.startContainer.parentNode:t.startContainer:null},getSelectedElements:function(t){var e,n,r,i=t.getSelection();if(!i.rangeCount||i.isCollapsed||!i.getRangeAt(0).commonAncestorContainer)return[];if(e=i.getRangeAt(0),3===e.commonAncestorContainer.nodeType){for(n=[],r=e.commonAncestorContainer;r.parentNode&&1===r.parentNode.childNodes.length;)n.push(r.parentNode),r=r.parentNode;return n}return[].filter.call(e.commonAncestorContainer.getElementsByTagName("*"),function(t){return"function"!=typeof i.containsNode||i.containsNode(t,!0)})},selectNode:function(t,e){var n=e.createRange();n.selectNodeContents(t),this.selectRange(e,n)},select:function(t,e,n,r,i){var o=t.createRange();return o.setStart(e,n),r?o.setEnd(r,i):o.collapse(!0),this.selectRange(t,o),o},clearSelection:function(t,e){e?t.getSelection().collapseToStart():t.getSelection().collapseToEnd()},moveCursor:function(t,e,n){this.select(t,e,n)},getSelectionRange:function(t){var e=t.getSelection();return 0===e.rangeCount?null:e.getRangeAt(0)},selectRange:function(t,e){var n=t.getSelection();n.removeAllRanges(),n.addRange(e)},getSelectionStart:function(t){var e=t.getSelection().anchorNode;return e&&3===e.nodeType?e.parentNode:e}};t.selection=n}(),function(){function e(e,n){return e.some(function(e){if("function"!=typeof e.getInteractionElements)return!1;var r=e.getInteractionElements();return!!r&&(Array.isArray(r)||(r=[r]),r.some(function(e){return t.util.isDescendant(e,n,!0)}))})}var n=function(t){this.base=t,this.options=this.base.options,this.events=[],this.disabledEvents={},this.customEvents={},this.listeners={}};n.prototype={InputEventOnContenteditableSupported:!t.util.isIE&&!t.util.isEdge,attachDOMEvent:function(e,n,r,i){var o=this.base.options.contentWindow,a=this.base.options.ownerDocument;e=t.util.isElement(e)||[o,a].indexOf(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;i<o;i+=1)if(a=this.events[i],a[0]===t&&a[1]===e&&a[2]===n&&a[3]===r)return i;return-1},detachAllDOMEvents:function(){for(var t=this.events.pop();t;)t[0].removeEventListener(t[1],t[2],t[3]),t=this.events.pop()},detachAllEventsFromElement:function(t){for(var e=this.events.filter(function(e){return e&&e[0].getAttribute&&e[0].getAttribute("medium-editor-index")===t.getAttribute("medium-editor-index")}),n=0,r=e.length;n<r;n++){var i=e[n];this.detachDOMEvent(i[0],i[1],i[2],i[3])}},attachAllEventsToElement:function(t){this.listeners.editableInput&&(this.contentCache[t.getAttribute("medium-editor-index")]=t.innerHTML),this.eventsCache&&this.eventsCache.forEach(function(e){this.attachDOMEvent(t,e.name,e.handler.bind(this))},this)},enableCustomEvent:function(t){void 0!==this.disabledEvents[t]&&delete this.disabledEvents[t]},disableCustomEvent:function(t){this.disabledEvents[t]=!0},attachCustomEvent:function(t,e){this.setupListener(t),this.customEvents[t]||(this.customEvents[t]=[]),this.customEvents[t].push(e)},detachCustomEvent:function(t,e){var n=this.indexOfCustomListener(t,e);-1!==n&&this.customEvents[t].splice(n,1)},indexOfCustomListener:function(t,e){return this.customEvents[t]&&this.customEvents[t].length?this.customEvents[t].indexOf(e):-1},detachAllCustomEvents:function(){this.customEvents={}},triggerCustomEvent:function(t,e,n){this.customEvents[t]&&!this.disabledEvents[t]&&this.customEvents[t].forEach(function(t){t(e,n)})},destroy:function(){this.detachAllDOMEvents(),this.detachAllCustomEvents(),this.detachExecCommand(),this.base.elements&&this.base.elements.forEach(function(t){t.removeAttribute("data-medium-focused")})},attachToExecCommand:function(){this.execCommandListener||(this.execCommandListener=function(t){this.handleDocumentExecCommand(t)}.bind(this),this.wrapExecCommand(),this.options.ownerDocument.execCommand.listeners.push(this.execCommandListener))},detachExecCommand:function(){var t=this.options.ownerDocument;if(this.execCommandListener&&t.execCommand.listeners){var e=t.execCommand.listeners.indexOf(this.execCommandListener);-1!==e&&t.execCommand.listeners.splice(e,1),t.execCommand.listeners.length||this.unwrapExecCommand()}},wrapExecCommand:function(){var t=this.options.ownerDocument;if(!t.execCommand.listeners){var e=function(e,n){t.execCommand.listeners&&t.execCommand.listeners.forEach(function(t){t({command:e[0],value:e[2],args:e,result:n})})},n=function(){var n=t.execCommand.orig.apply(this,arguments);if(!t.execCommand.listeners)return n;var r=Array.prototype.slice.call(arguments);return e(r,n),n};n.orig=t.execCommand,n.listeners=[],n.callListeners=e,t.execCommand=n}},unwrapExecCommand:function(){var t=this.options.ownerDocument;t.execCommand.orig&&(t.execCommand=t.execCommand.orig)},setupListener:function(t){if(!this.listeners[t]){switch(t){case"externalInteraction":this.attachDOMEvent(this.options.ownerDocument.body,"mousedown",this.handleBodyMousedown.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"click",this.handleBodyClick.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"focus",this.handleBodyFocus.bind(this),!0);break;case"blur":case"focus":this.setupListener("externalInteraction");break;case"editableInput":this.contentCache={},this.base.elements.forEach(function(t){this.contentCache[t.getAttribute("medium-editor-index")]=t.innerHTML},this),this.InputEventOnContenteditableSupported&&this.attachToEachElement("input",this.handleInput),this.InputEventOnContenteditableSupported||(this.setupListener("editableKeypress"),this.keypressUpdateInput=!0,this.attachDOMEvent(document,"selectionchange",this.handleDocumentSelectionChange.bind(this)),this.attachToExecCommand());break;case"editableClick":this.attachToEachElement("click",this.handleClick);break;case"editableBlur":this.attachToEachElement("blur",this.handleBlur);break;case"editableKeypress":this.attachToEachElement("keypress",this.handleKeypress);break;case"editableKeyup":this.attachToEachElement("keyup",this.handleKeyup);break;case"editableKeydown":this.attachToEachElement("keydown",this.handleKeydown);break;case"editableKeydownSpace":case"editableKeydownEnter":case"editableKeydownTab":case"editableKeydownDelete":this.setupListener("editableKeydown");break;case"editableMouseover":this.attachToEachElement("mouseover",this.handleMouseover);break;case"editableDrag":this.attachToEachElement("dragover",this.handleDragging),this.attachToEachElement("dragleave",this.handleDragging);break;case"editableDrop":this.attachToEachElement("drop",this.handleDrop);break;case"editablePaste":this.attachToEachElement("paste",this.handlePaste)}this.listeners[t]=!0}},attachToEachElement:function(t,e){this.eventsCache||(this.eventsCache=[]),this.base.elements.forEach(function(n){this.attachDOMEvent(n,t,e.bind(this))},this),this.eventsCache.push({name:t,handler:e})},cleanupElement:function(t){var e=t.getAttribute("medium-editor-index");e&&(this.detachAllEventsFromElement(t),this.contentCache&&delete this.contentCache[e])},focusElement:function(t){t.focus(),this.updateFocus(t,{target:t,type:"focus"})},updateFocus:function(n,r){var i,o=this.base.getFocusedElement();o&&"click"===r.type&&this.lastMousedownTarget&&(t.util.isDescendant(o,this.lastMousedownTarget,!0)||e(this.base.extensions,this.lastMousedownTarget))&&(i=o),i||this.base.elements.some(function(e){return!i&&t.util.isDescendant(e,n,!0)&&(i=e),!!i},this);var a=!t.util.isDescendant(o,n,!0)&&!e(this.base.extensions,n);i!==o&&(o&&a&&(o.removeAttribute("data-medium-focused"),this.triggerCustomEvent("blur",r,o)),i&&(i.setAttribute("data-medium-focused",!0),this.triggerCustomEvent("focus",r,i))),a&&this.triggerCustomEvent("externalInteraction",r)},updateInput:function(t,e){if(this.contentCache){var n=t.getAttribute("medium-editor-index"),r=t.innerHTML;r!==this.contentCache[n]&&this.triggerCustomEvent("editableInput",e,t),this.contentCache[n]=r}},handleDocumentSelectionChange:function(e){if(e.currentTarget&&e.currentTarget.activeElement){var n,r=e.currentTarget.activeElement;this.base.elements.some(function(e){return!!t.util.isDescendant(e,r,!0)&&(n=e,!0)},this),n&&this.updateInput(n,{target:r,currentTarget:n})}},handleDocumentExecCommand:function(){var t=this.base.getFocusedElement();t&&this.updateInput(t,{target:t,currentTarget:t})},handleBodyClick:function(t){this.updateFocus(t.target,t)},handleBodyFocus:function(t){this.updateFocus(t.target,t)},handleBodyMousedown:function(t){this.lastMousedownTarget=t.target},handleInput:function(t){this.updateInput(t.currentTarget,t)},handleClick:function(t){this.triggerCustomEvent("editableClick",t,t.currentTarget)},handleBlur:function(t){this.triggerCustomEvent("editableBlur",t,t.currentTarget)},handleKeypress:function(t){if(this.triggerCustomEvent("editableKeypress",t,t.currentTarget),this.keypressUpdateInput){var e={target:t.target,currentTarget:t.currentTarget};setTimeout(function(){this.updateInput(e.currentTarget,e)}.bind(this),0)}},handleKeyup:function(t){this.triggerCustomEvent("editableKeyup",t,t.currentTarget)},handleMouseover:function(t){this.triggerCustomEvent("editableMouseover",t,t.currentTarget)},handleDragging:function(t){this.triggerCustomEvent("editableDrag",t,t.currentTarget)},handleDrop:function(t){this.triggerCustomEvent("editableDrop",t,t.currentTarget)},handlePaste:function(t){this.triggerCustomEvent("editablePaste",t,t.currentTarget)},handleKeydown:function(e){return this.triggerCustomEvent("editableKeydown",e,e.currentTarget),t.util.isKey(e,t.util.keyCode.SPACE)?this.triggerCustomEvent("editableKeydownSpace",e,e.currentTarget):t.util.isKey(e,t.util.keyCode.ENTER)||e.ctrlKey&&t.util.isKey(e,t.util.keyCode.M)?this.triggerCustomEvent("editableKeydownEnter",e,e.currentTarget):t.util.isKey(e,t.util.keyCode.TAB)?this.triggerCustomEvent("editableKeydownTab",e,e.currentTarget):t.util.isKey(e,[t.util.keyCode.DELETE,t.util.keyCode.BACKSPACE])?this.triggerCustomEvent("editableKeydownDelete",e,e.currentTarget):void 0}},t.Events=n}(),function(){var e=t.Extension.extend({action:void 0,aria:void 0,tagNames:void 0,style:void 0,useQueryState:void 0,contentDefault:void 0,contentFA:void 0,classList:void 0,attrs:void 0,constructor:function(n){e.isBuiltInButton(n)?t.Extension.call(this,this.defaults[n]):t.Extension.call(this,n)},init:function(){t.Extension.prototype.init.apply(this,arguments),this.button=this.createButton(),this.on(this.button,"click",this.handleClick.bind(this))},getButton:function(){return this.button},getAction:function(){return"function"==typeof this.action?this.action(this.base.options):this.action},getAria:function(){return"function"==typeof this.aria?this.aria(this.base.options):this.aria},getTagNames:function(){return"function"==typeof this.tagNames?this.tagNames(this.base.options):this.tagNames},createButton:function(){var t=this.document.createElement("button"),e=this.contentDefault,n=this.getAria(),r=this.getEditorOption("buttonLabels");return t.classList.add("medium-editor-action"),t.classList.add("medium-editor-action-"+this.name),this.classList&&this.classList.forEach(function(e){t.classList.add(e)}),t.setAttribute("data-action",this.getAction()),n&&(t.setAttribute("title",n),t.setAttribute("aria-label",n)),this.attrs&&Object.keys(this.attrs).forEach(function(e){t.setAttribute(e,this.attrs[e])},this),"fontawesome"===r&&this.contentFA&&(e=this.contentFA),t.innerHTML=e,t},handleClick:function(t){t.preventDefault(),t.stopPropagation();var e=this.getAction();e&&this.execAction(e)},isActive:function(){return this.button.classList.contains(this.getEditorOption("activeButtonClass"))},setInactive:function(){this.button.classList.remove(this.getEditorOption("activeButtonClass")),delete this.knownState},setActive:function(){this.button.classList.add(this.getEditorOption("activeButtonClass")),delete this.knownState},queryCommandState:function(){var t=null;return this.useQueryState&&(t=this.base.queryCommandState(this.getAction())),t},isAlreadyApplied:function(t){var e,n,r=!1,i=this.getTagNames();return!1===this.knownState||!0===this.knownState?this.knownState:(i&&i.length>0&&(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>B</b>",contentFA:'<i class="fa fa-bold"></i>'},italic:{name:"italic",action:"italic",aria:"italic",tagNames:["i","em"],style:{prop:"font-style",value:"italic"},useQueryState:!0,contentDefault:"<b><i>I</i></b>",contentFA:'<i class="fa fa-italic"></i>'},underline:{name:"underline",action:"underline",aria:"underline",tagNames:["u"],style:{prop:"text-decoration",value:"underline"},useQueryState:!0,contentDefault:"<b><u>U</u></b>",contentFA:'<i class="fa fa-underline"></i>'},strikethrough:{name:"strikethrough",action:"strikethrough",aria:"strike through",tagNames:["strike"],style:{prop:"text-decoration",value:"line-through"},useQueryState:!0,contentDefault:"<s>A</s>",contentFA:'<i class="fa fa-strikethrough"></i>'},superscript:{name:"superscript",action:"superscript",aria:"superscript",tagNames:["sup"],contentDefault:"<b>x<sup>1</sup></b>",contentFA:'<i class="fa fa-superscript"></i>'},subscript:{name:"subscript",action:"subscript",aria:"subscript",tagNames:["sub"],contentDefault:"<b>x<sub>1</sub></b>",contentFA:'<i class="fa fa-subscript"></i>'},image:{name:"image",action:"image",aria:"image",tagNames:["img"],contentDefault:"<b>image</b>",contentFA:'<i class="fa fa-picture-o"></i>'},html:{name:"html",action:"html",aria:"evaluate html",tagNames:["iframe","object"],contentDefault:"<b>html</b>",contentFA:'<i class="fa fa-code"></i>'},orderedlist:{name:"orderedlist",action:"insertorderedlist",aria:"ordered list",tagNames:["ol"],useQueryState:!0,contentDefault:"<b>1.</b>",contentFA:'<i class="fa fa-list-ol"></i>'},unorderedlist:{name:"unorderedlist",action:"insertunorderedlist",aria:"unordered list",tagNames:["ul"],useQueryState:!0,contentDefault:"<b>&bull;</b>",contentFA:'<i class="fa fa-list-ul"></i>'},indent:{name:"indent",action:"indent",aria:"indent",tagNames:[],contentDefault:"<b>&rarr;</b>",contentFA:'<i class="fa fa-indent"></i>'},outdent:{name:"outdent",action:"outdent",aria:"outdent",tagNames:[],contentDefault:"<b>&larr;</b>",contentFA:'<i class="fa fa-outdent"></i>'},justifyCenter:{name:"justifyCenter",action:"justifyCenter",aria:"center justify",tagNames:[],style:{prop:"text-align",value:"center"},contentDefault:"<b>C</b>",contentFA:'<i class="fa fa-align-center"></i>'},justifyFull:{name:"justifyFull",action:"justifyFull",aria:"full justify",tagNames:[],style:{prop:"text-align",value:"justify"},contentDefault:"<b>J</b>",contentFA:'<i class="fa fa-align-justify"></i>'},justifyLeft:{name:"justifyLeft",action:"justifyLeft",aria:"left justify",tagNames:[],style:{prop:"text-align",value:"left"},contentDefault:"<b>L</b>",contentFA:'<i class="fa fa-align-left"></i>'},justifyRight:{name:"justifyRight",action:"justifyRight",aria:"right justify",tagNames:[],style:{prop:"text-align",value:"right"},contentDefault:"<b>R</b>",contentFA:'<i class="fa fa-align-right"></i>'},removeFormat:{name:"removeFormat",aria:"remove formatting",action:"removeFormat",contentDefault:"<b>X</b>",contentFA:'<i class="fa fa-eraser"></i>'},quote:{name:"quote",action:"append-blockquote",aria:"blockquote",tagNames:["blockquote"],contentDefault:"<b>&ldquo;</b>",contentFA:'<i class="fa fa-quote-right"></i>'},pre:{name:"pre",action:"append-pre",aria:"preformatted text",tagNames:["pre"],contentDefault:"<b>0101</b>",contentFA:'<i class="fa fa-code fa-lg"></i>'},h1:{name:"h1",action:"append-h1",aria:"header type one",tagNames:["h1"],contentDefault:"<b>H1</b>",contentFA:'<i class="fa fa-header"><sup>1</sup>'},h2:{name:"h2",action:"append-h2",aria:"header type two",tagNames:["h2"],contentDefault:"<b>H2</b>",contentFA:'<i class="fa fa-header"><sup>2</sup>'},h3:{name:"h3",action:"append-h3",aria:"header type three",tagNames:["h3"],contentDefault:"<b>H3</b>",contentFA:'<i class="fa fa-header"><sup>3</sup>'},h4:{name:"h4",action:"append-h4",aria:"header type four",tagNames:["h4"],contentDefault:"<b>H4</b>",contentFA:'<i class="fa fa-header"><sup>4</sup>'},h5:{name:"h5",action:"append-h5",aria:"header type five",tagNames:["h5"],contentDefault:"<b>H5</b>",contentFA:'<i class="fa fa-header"><sup>5</sup>'},h6:{name:"h6",action:"append-h6",aria:"header type six",tagNames:["h6"],contentDefault:"<b>H6</b>",contentFA:'<i class="fa fa-header"><sup>6</sup>'}}}(),function(){var e=t.extensions.button.extend({init:function(){t.extensions.button.prototype.init.apply(this,arguments)},formSaveLabel:"&#10003;",formCloseLabel:"&times;",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:"<b>#</b>",contentFA:'<i class="fa fa-link"></i>',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=['<input type="text" class="medium-editor-toolbar-input" placeholder="',this.placeholderText,'">'];return t.push('<a href="#" class="medium-editor-toolbar-save">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':this.formSaveLabel,"</a>"),t.push('<a href="#" class="medium-editor-toolbar-close">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':this.formCloseLabel,"</a>"),this.targetCheckbox&&t.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-target" id="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">','<label for="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">',this.targetCheckboxText,"</label>","</div>"),this.customClassOption&&t.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-button">',"<label>",this.customClassOptionText,"</label>","</div>"),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'<div class="medium-editor-toolbar-anchor-preview" id="medium-editor-toolbar-anchor-preview"> <a class="medium-editor-toolbar-anchor-preview-inner"></a></div>'},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",r<e?(this.anchorPreview.style.left=n+e+"px",this.anchorPreview.style.right="initial"):a-r<e?(this.anchorPreview.style.left="auto",this.anchorPreview.style.right=0):(this.anchorPreview.style.left=n+r+"px",this.anchorPreview.style.right="initial")},attachToEditables:function(){this.subscribe("editableMouseover",this.handleEditableMouseover.bind(this)),this.subscribe("positionedToolbar",this.handlePositionedToolbar.bind(this))},handlePositionedToolbar:function(){this.showWhenToolbarIsVisible||this.hidePreview()},handleClick:function(t){var e=this.base.getExtensionByName("anchor"),n=this.activeAnchor;e&&n&&(t.preventDefault(),this.base.selectElement(this.activeAnchor),this.base.delay(function(){if(n){var t={value:n.attributes.href.value,target:n.getAttribute("target"),buttonClass:n.getAttribute("class")};e.showForm(t),n=null}}.bind(this))),this.hidePreview()},handleAnchorMouseout:function(){this.anchorToPreview=null,this.off(this.activeAnchor,"mouseout",this.instanceHandleAnchorMouseout),this.instanceHandleAnchorMouseout=null},handleEditableMouseover:function(e){var n=t.util.getClosestTag(e.target,"a");if(!1!==n){if(!this.showOnEmptyLinks&&(!/href=["']\S+["']/.test(n.outerHTML)||/href=["']#\S+["']/.test(n.outerHTML)))return!0;var r=this.base.getExtensionByName("toolbar");if(!this.showWhenToolbarIsVisible&&r&&r.isDisplayed&&r.isDisplayed())return!0;this.activeAnchor&&this.activeAnchor!==n&&this.detachPreviewHandlers(),this.anchorToPreview=n,this.instanceHandleAnchorMouseout=this.handleAnchorMouseout.bind(this),this.on(this.anchorToPreview,"mouseout",this.instanceHandleAnchorMouseout),this.base.delay(function(){this.anchorToPreview&&this.showPreview(this.anchorToPreview)}.bind(this))}},handlePreviewMouseover:function(){this.lastOver=(new Date).getTime(),this.hovering=!0},handlePreviewMouseout:function(t){t.relatedTarget&&/anchor-preview/.test(t.relatedTarget.className)||(this.hovering=!1)},updatePreview:function(){if(this.hovering)return!0;(new Date).getTime()-this.lastOver>this.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;e<this.window._mediumEditors.length;e++){var n=this.window._mediumEditors[e];null!==n&&void 0!==n.getExtensionByName("autoLink")&&t++}return 1===t},destroy:function(){this.document.queryCommandSupported("AutoUrlDetect")&&this.isLastInstance()&&this.document.execCommand("AutoUrlDetect",!1,!0)},onBlur:function(t,e){this.performLinking(e)},onKeypress:function(e){this.disableEventHandling||t.util.isKey(e,[t.util.keyCode.SPACE,t.util.keyCode.ENTER])&&(clearTimeout(this.performLinkingTimeout),this.performLinkingTimeout=setTimeout(function(){try{var t=this.base.exportSelection();this.performLinking(e.target)&&this.base.importSelection(t,!0)}catch(t){window.console&&window.console.error("Failed to perform linking",t),this.disableEventHandling=!0}}.bind(this),0))},performLinking:function(e){var n=t.util.splitByBlockElements(e),r=!1;0===n.length&&(n=[e]);for(var i=0;i<n.length;i++)r=this.removeObsoleteAutoLinkSpans(n[i])||r,r=this.performLinkingWithinElement(n[i])||r;return this.base.events.updateInput(e,{target:e,currentTarget:e}),r},removeObsoleteAutoLinkSpans:function(n){if(!n||3===n.nodeType)return!1;for(var r=n.querySelectorAll('span[data-auto-link="true"]'),i=!1,o=0;o<r.length;o++){var a=r[o].textContent;if(-1===a.indexOf("://")&&(a=t.util.ensureUrlHasProtocol(a)),r[o].getAttribute("data-href")!==a&&e(r[o])){i=!0;var s=a.replace(/\s+$/,"");if(r[o].getAttribute("data-href")===s){var u=a.length-s.length,c=t.util.splitOffDOMTree(r[o],this.splitTextBeforeEnd(r[o],u));r[o].parentNode.insertBefore(c,r[o].nextSibling)}else t.util.unwrap(r[o],this.document)}}return i},splitTextBeforeEnd:function(t,e){for(var n=this.document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1),r=!0;r;)r=null!==n.lastChild();for(var i,o,a;e>0&&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;r<n.length;r++){var i=t.util.findOrCreateMatchingTextNodes(this.document,e,n[r]);this.shouldNotLink(i)||this.createAutoLink(i,n[r].href)}return!1},shouldNotLink:function(e){for(var n=!1,r=0;r<e.length&&!1===n;r++)n=!!t.util.traverseUp(e[r],function(t){return"a"===t.nodeName.toLowerCase()||t.getAttribute&&"true"===t.getAttribute("data-auto-link")});return n},findLinkableText:function(t){for(var e=t.textContent,r=null,i=[];null!==(r=a.exec(e));){var s=!0,u=r.index+r[0].length;s=!(0!==r.index&&-1===n.indexOf(e[r.index-1])||u!==e.length&&-1===n.indexOf(e[u])),s=s&&(-1!==r[0].indexOf("/")||o.test(r[0].split(".").pop().split("?").shift())),s&&i.push({href:r[0],start:r.index,end:u})}return i},createAutoLink:function(e,n){n=t.util.ensureUrlHasProtocol(n);var r=t.util.createLink(this.document,e,n,this.getEditorOption("targetBlank")?"_blank":null),i=this.document.createElement("span");for(i.setAttribute("data-auto-link","true"),i.setAttribute("data-href",n),r.insertBefore(i,r.firstChild);r.childNodes.length>1;)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:"&#xB1;",contentFA:'<i class="fa fa-font"></i>',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<this.fonts.length;a++)t=e.createElement("option"),t.innerHTML=this.fonts[a],t.value=this.fonts[a],r.appendChild(t);return r.className="medium-editor-toolbar-select",n.appendChild(r),this.on(r,"change",this.handleFontChange.bind(this)),o.setAttribute("href","#"),o.className="medium-editor-toobar-save",o.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':"&#10003;",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")?'<i class="fa fa-times"></i>':"&times;",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:"&#xB1;",contentFA:'<i class="fa fa-text-height"></i>',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")?'<i class="fa fa-check"></i>':"&#10003;",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")?'<i class="fa fa-times"></i>':"&times;",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]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/g),""],[new RegExp(/<!--StartFragment-->|<!--EndFragment-->/g),""],[new RegExp(/<br>$/i),""],[new RegExp(/<[^>]*docs-internal-guid[^>]*>/gi),""],[new RegExp(/<\/b>(<br[^>]*>)?$/gi),""],[new RegExp(/<span class="Apple-converted-space">\s+<\/span>/g)," "],[new RegExp(/<br class="Apple-interchange-newline">/g),"<br>"],[new RegExp(/<span[^>]*(font-style:italic;font-weight:(bold|700)|font-weight:(bold|700);font-style:italic)[^>]*>/gi),'<span class="replace-with italic bold">'],[new RegExp(/<span[^>]*font-style:italic[^>]*>/gi),'<span class="replace-with italic">'],[new RegExp(/<span[^>]*font-weight:(bold|700)[^>]*>/gi),'<span class="replace-with bold">'],[new RegExp(/&lt;(\/?)(i|b|a)&gt;/gi),"<$1$2>"],[new RegExp(/&lt;a(?:(?!href).)+href=(?:&quot;|&rdquo;|&ldquo;|"|“|”)(((?!&quot;|&rdquo;|&ldquo;|"|“|”).)*)(?:&quot;|&rdquo;|&ldquo;|"|“|”)(?:(?!&gt;).)*&gt;/gi),'<a href="$1">'],[new RegExp(/<\/p>\n+/gi),"</p>"],[new RegExp(/\n+<p/gi),"<p"],[new RegExp(/<\/?o:[a-z]*>/gi),""],[new RegExp(/<!\[if !supportLists\]>(((?!<!).)*)<!\[endif]\>/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;a<r.types.length;a++){var s=r.types[a];i[s]=r.getData(s)}return i}var r=null,i=null,o=function(t){t.stopPropagation()},a=t.Extension.extend({forcePlainText:!0,cleanPastedHTML:!1,preCleanReplacements:[],cleanReplacements:[],cleanAttrs:["class","style","dir"],cleanTags:["meta"],unwrapTags:[],init:function(){t.Extension.prototype.init.apply(this,arguments),(this.forcePlainText||this.cleanPastedHTML)&&(this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.getEditorElements().forEach(function(t){this.on(t,"paste",this.handlePaste.bind(this))},this),this.subscribe("addElement",this.handleAddElement.bind(this)))},handleAddElement:function(t,e){this.on(e,"paste",this.handlePaste.bind(this))},destroy:function(){(this.forcePlainText||this.cleanPastedHTML)&&this.removePasteBin()},handlePaste:function(t,e){if(!t.defaultPrevented){var r=n(t,this.window,this.document),i=r["text/html"],o=r["text/plain"];this.window.clipboardData&&void 0===t.clipboardData&&!i&&(i=o),(i||o)&&(t.preventDefault(),this.doPaste(i,o,e))}},doPaste:function(e,n,r){var i,o,a="";if(this.cleanPastedHTML&&e)return this.cleanPaste(e);if(this.getEditorOption("disableReturn")||r&&r.getAttribute("data-disable-return"))a=t.util.htmlEntities(n);else if(i=n.split(/[\r\n]+/g),i.length>1)for(o=0;o<i.length;o+=1)""!==i[o]&&(a+="<p>"+t.util.htmlEntities(i[o])+"</p>");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=/<p|<br|<div/.test(t),s=[].concat(this.preCleanReplacements||[],e(),this.cleanReplacements||[]);for(n=0;n<s.length;n+=1)t=t.replace(s[n][0],s[n][1]);if(!a)return this.pasteHTML(t);for(i=this.document.createElement("div"),i.innerHTML="<p>"+t.split("<br><br>").join("</p><p>")+"</p>",r=i.querySelectorAll("a,p,div,br"),n=0;n<r.length;n+=1)switch(o=r[n],o.innerHTML=o.innerHTML.replace(/\n/gi," "),o.nodeName.toLowerCase()){case"p":case"div":this.filterCommonBlocks(o);break;case"br":this.filterLineBreak(o)}this.pasteHTML(i.innerHTML)},pasteHTML:function(e,n){n=t.util.defaults({},n,{cleanAttrs:this.cleanAttrs,cleanTags:this.cleanTags,unwrapTags:this.unwrapTags});var r,i,o,a,s=this.document.createDocumentFragment();for(s.appendChild(this.document.createElement("body")),a=s.querySelector("body"),a.innerHTML=e,this.cleanupSpans(a),r=a.querySelectorAll("*"),o=0;o<r.length;o+=1)i=r[o],"a"===i.nodeName.toLowerCase()&&this.getEditorOption("targetBlank")&&t.util.setTargetBlank(i),t.util.cleanupAttrs(i,n.cleanAttrs),t.util.cleanupTags(i,n.cleanTags),t.util.unwrapTags(i,n.unwrapTags);t.util.insertHTMLCommand(this.document,a.innerHTML.replace(/&nbsp;/g," "))},isCommonBlock:function(t){return t&&("p"===t.nodeName.toLowerCase()||"div"===t.nodeName.toLowerCase())},filterCommonBlocks:function(t){/^\s*$/.test(t.textContent)&&t.parentNode&&t.parentNode.removeChild(t)},filterLineBreak:function(t){this.isCommonBlock(t.previousElementSibling)?this.removeWithParent(t):!this.isCommonBlock(t.parentNode)||t.parentNode.firstChild!==t&&t.parentNode.lastChild!==t?t.parentNode&&1===t.parentNode.childElementCount&&""===t.parentNode.textContent&&this.removeWithParent(t):this.removeWithParent(t)},removeWithParent:function(t){t&&t.parentNode&&(t.parentNode.parentNode&&1===t.parentNode.childElementCount?t.parentNode.parentNode.removeChild(t.parentNode):t.parentNode.removeChild(t))},cleanupSpans:function(e){var n,r,i,o=e.querySelectorAll(".replace-with"),a=function(t){return t&&"#text"!==t.nodeName&&"false"===t.getAttribute("contenteditable")};for(n=0;n<o.length;n+=1)r=o[n],i=this.document.createElement(r.classList.contains("bold")?"b":"i"),r.classList.contains("bold")&&r.classList.contains("italic")?i.innerHTML="<i>"+r.innerHTML+"</i>":i.innerHTML=r.innerHTML,r.parentNode.replaceChild(i,r);for(o=e.querySelectorAll("span"),n=0;n<o.length;n+=1){if(r=o[n],t.util.traverseUp(r,a))return!1;t.util.unwrap(r,this.document)}}});t.extensions.paste=a}(),function(){var e=t.Extension.extend({name:"placeholder",text:"Type your text",hideOnClick:!0,init:function(){t.Extension.prototype.init.apply(this,arguments),this.initPlaceholders(),this.attachEventHandlers()},initPlaceholders:function(){this.getEditorElements().forEach(this.initElement,this)},handleAddElement:function(t,e){this.initElement(e)},initElement:function(t){t.getAttribute("data-placeholder")||t.setAttribute("data-placeholder",this.text),this.updatePlaceholder(t)},destroy:function(){this.getEditorElements().forEach(this.cleanupElement,this)},handleRemoveElement:function(t,e){this.cleanupElement(e)},cleanupElement:function(t){t.getAttribute("data-placeholder")===this.text&&t.removeAttribute("data-placeholder")},showPlaceholder:function(e){e&&(t.util.isFF&&0===e.childNodes.length?(e.classList.add("medium-editor-placeholder-relative"),e.classList.remove("medium-editor-placeholder")):(e.classList.add("medium-editor-placeholder"),e.classList.remove("medium-editor-placeholder-relative")))},hidePlaceholder:function(t){t&&(t.classList.remove("medium-editor-placeholder"),t.classList.remove("medium-editor-placeholder-relative"))},updatePlaceholder:function(t,e){if(t.querySelector("img, blockquote, ul, ol, table")||""!==t.textContent.replace(/^\s+|\s+$/g,""))return this.hidePlaceholder(t);e||this.showPlaceholder(t)},attachEventHandlers:function(){this.hideOnClick&&this.subscribe("focus",this.handleFocus.bind(this)),this.subscribe("editableInput",this.handleInput.bind(this)),this.subscribe("blur",this.handleBlur.bind(this)),this.subscribe("addElement",this.handleAddElement.bind(this)),this.subscribe("removeElement",this.handleRemoveElement.bind(this))},handleInput:function(t,e){var n=this.hideOnClick&&e===this.base.getFocusedElement();this.updatePlaceholder(e,n)},handleFocus:function(t,e){this.hidePlaceholder(e)},handleBlur:function(t,e){this.updatePlaceholder(e)}});t.extensions.placeholder=e}(),function(){var e=t.Extension.extend({name:"toolbar",align:"center",allowMultiParagraphSelection:!0,buttons:["bold","italic","underline","anchor","h2","h3","quote"],diffLeft:0,diffTop:-10,firstButtonClass:"medium-editor-button-first",lastButtonClass:"medium-editor-button-last",standardizeSelectionStart:!1,static:!1,sticky:!1,stickyTopOffset:0,updateOnEmptySelection:!1,relativeContainer:null,init:function(){t.Extension.prototype.init.apply(this,arguments),this.initThrottledMethods(),this.relativeContainer?this.relativeContainer.appendChild(this.getToolbarElement()):this.getEditorOption("elementsContainer").appendChild(this.getToolbarElement())},forEachExtension:function(t,e){return this.base.extensions.forEach(function(n){if(n!==this)return t.apply(e||this,arguments)},this)},createToolbar:function(){var t=this.document.createElement("div");return t.id="medium-editor-toolbar-"+this.getEditorId(),t.className="medium-editor-toolbar",this.static?t.className+=" static-toolbar":this.relativeContainer?t.className+=" medium-editor-relative-toolbar":t.className+=" medium-editor-stalker-toolbar",t.appendChild(this.createToolbarButtons()),this.forEachExtension(function(e){e.hasForm&&t.appendChild(e.getForm())}),this.attachEventHandlers(),t},createToolbarButtons:function(){var e,n,r,i,o,a,s=this.document.createElement("ul");return s.id="medium-editor-toolbar-actions"+this.getEditorId(),s.className="medium-editor-toolbar-actions",s.style.display="block",this.buttons.forEach(function(r){"string"==typeof r?(o=r,a=null):(o=r.name,a=r),(i=this.base.addBuiltInExtension(o,a))&&"function"==typeof i.getButton&&(n=i.getButton(this.base),e=this.document.createElement("li"),t.util.isElement(n)?e.appendChild(n):e.innerHTML=n,s.appendChild(e))},this),r=s.querySelectorAll("button"),r.length>0&&(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<c?(h.left=l+c,h.right="initial"):o-r<c?(h.left="auto",h.right=0):(h.left=l+r,h.right="initial"),["top","left","right"].forEach(function(t){a.style[t]=h[t]+(isNaN(h[t])?"":"px")})}});t.extensions.toolbar=e}(),function(){var e=t.Extension.extend({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","dragover"===t.type?t.target.classList.add("medium-editor-dragover"):"dragleave"===t.type&&t.target.classList.remove("medium-editor-dragover")},handleDrop:function(e){var n;e.preventDefault(),e.stopPropagation(),e.dataTransfer.files&&(n=Array.prototype.slice.call(e.dataTransfer.files,0),n.some(function(e){if(e.type.match("image")){var n,r;n=new FileReader,n.readAsDataURL(e),r="medium-img-"+ +new Date,t.util.insertHTMLCommand(this.document,'<img class="medium-editor-image-loading" id="'+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+|<br\/?>)?$/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="<br>",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="<br>",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="<br>",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<e.length;o++){var a=e[o];!t.util.isElement(a)||a.getAttribute("data-medium-editor-element")||a.getAttribute("medium-editor-textarea-id")||i.push(a)}else i=Array.prototype.slice.apply(e);return i}function l(t){var e=t.parentNode.querySelector('textarea[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]');e&&(e.classList.remove("medium-editor-hidden"),e.removeAttribute("medium-editor-textarea-id")),t.parentNode&&t.parentNode.removeChild(t)}function f(t,e){return Object.keys(e).forEach(function(n){void 0===t[n]&&(t[n]=e[n])}),t}function d(t,e,n){return t=f(t,{window:n.options.contentWindow,document:n.options.ownerDocument,base:n}),"function"==typeof t.init&&t.init(),t.name||(t.name=e),t}function h(){return!this.elements.every(function(t){return!!t.getAttribute("data-disable-toolbar")})&&!1!==this.options.toolbar}function p(){return!!h.call(this)&&!1!==this.options.anchorPreview}function v(){return!1!==this.options.placeholder}function y(){return!1!==this.options.autoLink}function m(){return!1!==this.options.imageDragging}function b(){return!1!==this.options.keyboardCommands}function g(){return!this.options.extensions.imageDragging}function w(t){for(var e=this.options.ownerDocument.createElement("div"),n=Date.now(),r="medium-editor-"+n,i=t.attributes;this.options.ownerDocument.getElementById(r);)n++,r="medium-editor-"+n;e.className=t.className,e.id=r,e.innerHTML=t.value,t.setAttribute("medium-editor-textarea-id",r);for(var o=0,a=i.length;o<a;o++)e.hasAttribute(i[o].nodeName)||e.setAttribute(i[o].nodeName,i[o].nodeValue);return t.form&&this.on(t.form,"reset",function(t){t.defaultPrevented||this.resetContent(this.options.ownerDocument.getElementById(r))}.bind(this)),t.classList.add("medium-editor-hidden"),t.parentNode.insertBefore(e,t),e}function _(e,r){if(!e.getAttribute("data-medium-editor-element")){"textarea"===e.nodeName.toLowerCase()&&(e=w.call(this,e),this.instanceHandleEditableInput||(this.instanceHandleEditableInput=a.bind(this),this.subscribe("editableInput",this.instanceHandleEditableInput))),this.options.disableEditing||e.getAttribute("data-disable-editing")||(e.setAttribute("contentEditable",!0),e.setAttribute("spellcheck",this.options.spellcheck)),this.instanceHandleEditableKeydownEnter||(e.getAttribute("data-disable-return")||e.getAttribute("data-disable-double-return"))&&(this.instanceHandleEditableKeydownEnter=n.bind(this),this.subscribe("editableKeydownEnter",this.instanceHandleEditableKeydownEnter)),this.options.disableReturn||e.getAttribute("data-disable-return")||this.on(e,"keyup",o.bind(this));var i=t.util.guid();e.setAttribute("data-medium-editor-element",!0),e.classList.add("medium-editor-element"),e.setAttribute("role","textbox"),e.setAttribute("aria-multiline",!0),e.setAttribute("data-medium-editor-editor-index",r),e.setAttribute("medium-editor-index",i),j[i]=e.innerHTML,this.events.attachAllEventsToElement(e)}return e}function k(){this.subscribe("editableKeydownTab",r.bind(this)),this.subscribe("editableKeydownDelete",i.bind(this)),this.subscribe("editableKeydownEnter",i.bind(this)),this.options.disableExtraSpaces&&this.subscribe("editableKeydownSpace",e.bind(this)),this.instanceHandleEditableKeydownEnter||(this.options.disableReturn||this.options.disableDoubleReturn)&&(this.instanceHandleEditableKeydownEnter=n.bind(this),this.subscribe("editableKeydownEnter",this.instanceHandleEditableKeydownEnter))}function O(){if(this.extensions=[],Object.keys(this.options.extensions).forEach(function(t){"toolbar"!==t&&this.options.extensions[t]&&this.extensions.push(d(this.options.extensions[t],t,this))},this),g.call(this)){var e=this.options.fileDragging;e||(e={},m.call(this)||(e.allowedTypes=[])),this.addBuiltInExtension("fileDragging",e)}var n={paste:!0,"anchor-preview":p.call(this),autoLink:y.call(this),keyboardCommands:b.call(this),placeholder:v.call(this)};Object.keys(n).forEach(function(t){n[t]&&this.addBuiltInExtension(t)},this);var r=this.options.extensions.toolbar;if(!r&&h.call(this)){var i=t.util.extend({},this.options.toolbar,{allowMultiParagraphSelection:this.options.allowMultiParagraphSelection});r=new t.extensions.toolbar(i)}r&&this.extensions.push(d(r,"toolbar",this))}function E(e,n){var r=[["allowMultiParagraphSelection","toolbar.allowMultiParagraphSelection"]];return n&&r.forEach(function(e){n.hasOwnProperty(e[0])&&void 0!==n[e[0]]&&t.util.deprecated(e[0],e[1],"v6.0.0")}),t.util.defaults({},n,e)}function x(e,n){var r,i,o=/^append-(.+)$/gi,a=/justify([A-Za-z]*)$/g;if(r=o.exec(e))return t.util.execFormatBlock(this.options.ownerDocument,r[1]);if("fontSize"===e)return n.size&&t.util.deprecated(".size option for fontSize command",".value","6.0.0"),i=n.value||n.size,this.options.ownerDocument.execCommand("fontSize",!1,i);if("fontName"===e)return n.name&&t.util.deprecated(".name option for fontName command",".value","6.0.0"),i=n.value||n.name,this.options.ownerDocument.execCommand("fontName",!1,i);if("createLink"===e)return this.createLink(n);if("image"===e){var s=this.options.contentWindow.getSelection().toString().trim();return this.options.ownerDocument.execCommand("insertImage",!1,s)}if("html"===e){var u=this.options.contentWindow.getSelection().toString().trim();return t.util.insertHTMLCommand(this.options.ownerDocument,u)}if(a.exec(e)){var c=this.options.ownerDocument.execCommand(e,!1,null),l=t.selection.getSelectedParentElement(t.selection.getSelectionRange(this.options.ownerDocument));return l&&C.call(this,t.util.getTopBlockContainer(l)),c}return i=n&&n.value,this.options.ownerDocument.execCommand(e,!1,i)}function C(e){if(e){var n,r=Array.prototype.slice.call(e.childNodes).filter(function(t){var e="div"===t.nodeName.toLowerCase();return e&&!n&&(n=t.style.textAlign),e});r.length&&(this.saveSelection(),r.forEach(function(e){if(e.style.textAlign===n){var r=e.lastChild;if(r){t.util.unwrap(e,this.options.ownerDocument);var i=this.options.ownerDocument.createElement("BR");r.parentNode.insertBefore(i,r.nextSibling)}}},this),e.style.textAlign=n,this.restoreSelection())}}var j={};t.prototype={init:function(t,e){return this.options=E.call(this,this.defaults,e),this.origElements=t,this.options.elementsContainer||(this.options.elementsContainer=this.options.ownerDocument.body),this.setup()},setup:function(){this.isActive||(s.call(this,this.options.contentWindow),this.events=new t.Events(this),this.elements=[],this.addElements(this.origElements),0!==this.elements.length&&(this.isActive=!0,O.call(this),k.call(this)))},destroy:function(){this.isActive&&(this.isActive=!1,this.extensions.forEach(function(t){"function"==typeof t.destroy&&t.destroy()},this),this.events.destroy(),this.elements.forEach(function(t){this.options.spellcheck&&(t.innerHTML=t.innerHTML),t.removeAttribute("contentEditable"),t.removeAttribute("spellcheck"),t.removeAttribute("data-medium-editor-element"),t.classList.remove("medium-editor-element"),t.removeAttribute("role"),t.removeAttribute("aria-multiline"),t.removeAttribute("medium-editor-index"),t.removeAttribute("data-medium-editor-editor-index"),t.getAttribute("medium-editor-textarea-id")&&l(t)},this),this.elements=[],this.instanceHandleEditableKeydownEnter=null,this.instanceHandleEditableInput=null,u.call(this,this.options.contentWindow))},on:function(t,e,n,r){return this.events.attachDOMEvent(t,e,n,r),this},off:function(t,e,n,r){return this.events.detachDOMEvent(t,e,n,r),this},subscribe:function(t,e){return this.events.attachCustomEvent(t,e),this},unsubscribe:function(t,e){return this.events.detachCustomEvent(t,e),this},trigger:function(t,e,n){return this.events.triggerCustomEvent(t,e,n),this},delay:function(t){var e=this;return setTimeout(function(){e.isActive&&t()},this.options.delay)},serialize:function(){var t,e,n={},r=this.elements.length;for(t=0;t<r;t+=1)e=""!==this.elements[t].id?this.elements[t].id:"element-"+t,n[e]={value:this.elements[t].innerHTML.trim()};return n},getExtensionByName:function(t){var e;return this.extensions&&this.extensions.length&&this.extensions.some(function(n){return n.name===t&&(e=n,!0)}),e},addBuiltInExtension:function(e,n){var r,i=this.getExtensionByName(e);if(i)return i;switch(e){case"anchor":r=t.util.extend({},this.options.anchor,n),i=new t.extensions.anchor(r);break;case"anchor-preview":i=new t.extensions.anchorPreview(this.options.anchorPreview);break;case"autoLink":i=new t.extensions.autoLink;break;case"fileDragging":i=new t.extensions.fileDragging(n);break;case"fontname":i=new t.extensions.fontName(this.options.fontName);break;case"fontsize":i=new t.extensions.fontSize(n);break;case"keyboardCommands":i=new t.extensions.keyboardCommands(this.options.keyboardCommands);break;case"paste":i=new t.extensions.paste(this.options.paste);break;case"placeholder":i=new t.extensions.placeholder(this.options.placeholder);break;default:t.extensions.button.isBuiltInButton(e)&&(n?(r=t.util.defaults({},n,t.extensions.button.prototype.defaults[e]),i=new t.extensions.button(r)):i=new t.extensions.button(e))}return i&&this.extensions.push(d(i,e,this)),i},stopSelectionUpdates:function(){this.preventSelectionUpdates=!0},startSelectionUpdates:function(){this.preventSelectionUpdates=!1},checkSelection:function(){var t=this.getExtensionByName("toolbar");return t&&t.checkState(),this},queryCommandState:function(t){var e,n=/^full-(.+)$/gi,r=null;(e=n.exec(t))&&(t=e[1]);try{r=this.options.ownerDocument.queryCommandState(t)}catch(t){r=null}return r},execAction:function(e,n){var r,i,o=/^full-(.+)$/gi;return r=o.exec(e),r?(this.saveSelection(),this.selectAllContents(),i=x.call(this,r[1],n),this.restoreSelection()):i=x.call(this,e,n),"insertunorderedlist"!==e&&"insertorderedlist"!==e||t.util.cleanListDOM(this.options.ownerDocument,this.getSelectedParentElement()),this.checkSelection(),i},getSelectedParentElement:function(e){return void 0===e&&(e=this.options.contentWindow.getSelection().getRangeAt(0)),t.selection.getSelectedParentElement(e)},selectAllContents:function(){var e=t.selection.getSelectionElement(this.options.contentWindow);if(e){for(;1===e.children.length;)e=e.children[0];this.selectElement(e)}},selectElement:function(e){t.selection.selectNode(e,this.options.ownerDocument);var n=t.selection.getSelectionElement(this.options.contentWindow);n&&this.events.focusElement(n)},getFocusedElement:function(){var t;return this.elements.some(function(e){return!t&&e.getAttribute("data-medium-focused")&&(t=e),!!t},this),t},exportSelection:function(){var e=t.selection.getSelectionElement(this.options.contentWindow),n=this.elements.indexOf(e),r=null;return n>=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;y<m;y+=1)this.elements[y].dispatchEvent(i)}}finally{this.events.enableCustomEvent("editableInput")}this.events.triggerCustomEvent("editableInput",i,r)}},cleanPaste:function(t){this.getExtensionByName("paste").cleanPaste(t)},pasteHTML:function(t,e){this.getExtensionByName("paste").pasteHTML(t,e)},setContent:function(t,e){if(e=e||0,this.elements[e]){var n=this.elements[e];n.innerHTML=t,this.checkContentChanged(n)}},getContent:function(t){return t=t||0,this.elements[t]?this.elements[t].innerHTML.trim():null},checkContentChanged:function(e){e=e||t.selection.getSelectionElement(this.options.contentWindow),this.events.updateInput(e,{target:e,currentTarget:e})},resetContent:function(t){if(t){var e=this.elements.indexOf(t);return void(-1!==e&&this.setContent(j[t.getAttribute("medium-editor-index")],e))}this.elements.forEach(function(t,e){this.setContent(j[t.getAttribute("medium-editor-index")],e)},this)},addElements:function(t){var e=c(t,this.options.ownerDocument,!0);if(0===e.length)return!1;e.forEach(function(t){t=_.call(this,t,this.id),this.elements.push(t),this.trigger("addElement",{target:t,currentTarget:t},t)},this)},removeElements:function(t){var e=c(t,this.options.ownerDocument),n=e.map(function(t){return t.getAttribute("medium-editor-textarea-id")&&t.parentNode?t.parentNode.querySelector('div[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]'):t});this.elements=this.elements.filter(function(t){return-1===n.indexOf(t)||(this.events.cleanupElement(t),t.getAttribute("medium-editor-textarea-id")&&l(t),this.trigger("removeElement",{target:t,currentTarget:t},t),!1)},this)}},t.getEditorFromElement=function(t){var e=t.getAttribute("data-medium-editor-editor-index"),n=t&&t.ownerDocument&&(t.ownerDocument.defaultView||t.ownerDocument.parentWindow);return n&&n._mediumEditors&&n._mediumEditors[e]?n._mediumEditors[e]:null}}(),function(){t.prototype.defaults={activeButtonClass:"medium-editor-button-active",buttonLabels:!1,delay:0,disableReturn:!1,disableDoubleReturn:!1,disableExtraSpaces:!1,disableEditing:!1,autoLink:!1,elementsContainer:!1,contentWindow:window,ownerDocument:document,targetBlank:!1,extensions:{},spellcheck:!0}}(),t.parseVersionString=function(t){var e=t.split("-"),n=e[0].split("."),r=e.length>1?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<i;++r)n.appendChild(t.getRangeAt(r).cloneContents());e=n.innerHTML}}else void 0!==document.selection&&"Text"==document.selection.type&&(e=document.selection.createRange().htmlText);return e}r.prototype.getButton=function(){return this.button},r.prototype.checkState=function(t){var e=i();""!=this.options.start&&e.indexOf(this.options.start)>-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()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return a(this,t,e,n)}function a(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?d(t,e,n,r):"string"==typeof e?l(t,e,n):h(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function u(t,e,n,r){return s(e),e<=0?i(t,e):void 0!==n?"string"==typeof r?i(t,e).fill(n,r):i(t,e).fill(n):i(t,e)}function c(t,e){if(s(e),t=i(t,e<0?0:0|p(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function l(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|y(e,n);t=i(t,r);var a=t.write(e,n);return a!==r&&(t=t.slice(0,a)),t}function f(t,e){var n=e.length<0?0:0|p(e.length);t=i(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=f(t,e),t}function h(t,e){if(o.isBuffer(e)){var n=0|p(e.length);return t=i(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||$(e.length)?i(t,0):f(t,e);if("Buffer"===e.type&&X(e.data))return f(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p(t){if(t>=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;c<s;c++)if(o(t,c)===o(e,-1===l?0:c-l)){if(-1===l&&(l=c),c-l+1===u)return l*a}else-1!==l&&(c-=c-l),l=-1}else for(n+u>s&&(n=s-u),c=n;c>=0;c--){for(var f=!0,d=0;d<u;d++)if(o(t,c+d)!==o(e,d)){f=!1;break}if(f)return c}return-1}function _(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(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;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function k(t,e,n,r){return Y(W(e,t.length-n),t,n,r)}function O(t,e,n,r){return Y(K(e),t,n,r)}function E(t,e,n,r){return O(t,e,n,r)}function x(t,e,n,r){return Y(Q(e),t,n,r)}function C(t,e,n,r){return Y(V(e,t.length-n),t,n,r)}function j(t,e,n){return 0===e&&n===t.length?Z.fromByteArray(t):Z.fromByteArray(t.slice(e,n))}function S(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o=t[i],a=null,s=o>239?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;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=J));return n}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function N(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function P(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=H(t[o]);return i}function L(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)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||e<a)throw new RangeError('"value" argument is out of bounds');if(n+r>t.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<o;++i)t[n+i]=(e&255<<8*(r?i:1-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<o;++i)t[n+i]=e>>>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;a<r;++a){if((n=t.charCodeAt(a))>55295&&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<t.length;++n)e.push(255&t.charCodeAt(n));return e}function V(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=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<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function $(t){return t!==t}/*!
81
81
  * The buffer module from node.js, for the browser.
82
82
  *
83
83
  * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
84
84
  * @license MIT
85
85
  */
86
- var Z=n(328),G=n(329),X=n(330);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);i<a;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!X(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=o.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},o.byteLength=y,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?S(this,0,t):m.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+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;f<u;++f)if(c[f]!==l[f]){a=c[f],s=l[f];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},o.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(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),e<t&&(e=t);var r;if(o.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=o.prototype;else{var i=e-t;r=new o(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(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<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=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<n&&(i*=256);)this[e+o]=t/i&255;return e+n},o.prototype.writeUIntBE=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=n-1,o=1;for(this[e+i]=255&t;--i>=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<n&&(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.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<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=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<r-n&&(r=t.length-e+n);var i,a=r-n;if(this===t&&n<e&&e<r)for(i=a-1;i>=0;--i)t[i+e]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},o.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var s=o.isBuffer(t)?t:W(new o(t,r).toString()),u=s.length;for(a=0;a<n-e;++a)this[a+e]=s[a%u]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(40))},function(t,e,n){"use strict";function r(t){var e=t.length;if(e%4>0)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<c;l+=4)e=f[t.charCodeAt(l)]<<18|f[t.charCodeAt(l+1)]<<12|f[t.charCodeAt(l+2)]<<6|f[t.charCodeAt(l+3)],s[u++]=e>>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;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(s(r));return i.join("")}function c(t){for(var e,n=t.length,r=n%3,i=[],o=0,a=n-r;o<a;o+=16383)i.push(u(t,o,o+16383>a?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<v;++p)l[p]=h[p],f[h.charCodeAt(p)]=p;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>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<<c)-1,f=l>>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<<i|s,c+=i;c>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 <a class="ql-svt ql-svt-browse" title="Browse">\n <i class="scrivito_icon scrivito_icon_content_browser"></i>\n </a>\n',f='\n <a class="ql-svt ql-svt-target" title="Open link in new tab">\n <i class="scrivito_icon scrivito_icon_new_window"></i>\n <i class="scrivito_icon scrivito_icon_ok"></i>\n </a>\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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(139),p=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"onClick",value:function(){var t=this;scrivito.openContentBrowser({selection:this._currentSelection(),selectionMode:"single"}).then(function(e){var n=e.isSelected,r=e.selection;n&&t._saveContentBrowserSelection(r)})}},{key:"_currentSelection",value:function(){var t=this._controller.getContent();return t?[t.id()]:[]}},{key:"_saveContentBrowserSelection",value:function(t){this._controller.setContent(t[0]||null)}}],[{key:"canEdit",value:function(t){return"reference"===t.type}}]),a(e,t),e}(h.a);e.a=p},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(139),o=n(339),a=n(230),s=n(231),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.canEdit=function(t){return"string"===t.type},e.prototype.contentDidChange=function(){this._setCurrentContent()},e.prototype.editorWillBeActivated=function(){this._controller.setDomMode("Replace")},e.prototype.editorDomWasMounted=function(t){this._currentDomNode=t,Object(a.a)(t);var e=new s.a(t,this._controller);this._setCurrentContent(),Object(o.a)(e)},e.prototype.editorDomWasUnmounted=function(){this._currentDomNode=void 0},e.prototype._setCurrentContent=function(){this._currentDomNode&&(this._currentDomNode.textContent=this._controller.getContent())},e}(i.a);e.a=c},function(t,e,n){"use strict";function r(t,e){var n=e.jQueryElement();switch(t.keyCode||t.which){case 13:d(n)||(t.preventDefault(),n.blur());break;case 27:t.stopPropagation(),n.blur()}}function i(t){u(t)}function o(t){h(t.jQueryElement())}function a(t){v(t.jQueryElement())}function s(t){u(t).done(function(){return t.trigger("scrivito_editors:blur")}),p(t),h(t.jQueryElement())}function u(t){var e=c(t.jQueryElement());return t.save(e).done(function(){return t.trigger("scrivito_editors:save")})}function c(t){return l(t),t[0].innerText.replace(/\r\n/g,"\n").replace(/\n+$/,"")}function l(t){var e=f(t),n=e.not(t);n.length>0&&(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.length?t.data("scrivito_editors_siblings_before_edit",n):t.siblings().addBack().not(e)}function d(t){return!0===t.data("scrivitoEditorsMultiline")||!1!==t.data("scrivitoEditorsMultiline")&&t.css("white-space").match(/pre/)}function h(t){if(d(t)&&!t.data("scrivito_editors_prepared_for_editing")){t.data("scrivito_editors_prepared_for_editing",!0);var e=t.html(),n=e.replace(/\r?\n/g,"<br />");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(25);n.d(e,"Binary",function(){return r.a});var i=n(71);n.d(e,"FutureBinary",function(){return i.a});var o=n(219);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(226);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(341);n.d(e,"withPage",function(){return f.a});var d=n(81);n.d(e,"finishLoading",function(){return d.a});var h=n(342);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(343);n.d(e,"urlFor",function(){return y.a});var m=n(72);n.d(e,"useHistory",function(){return m.f});var b=n(344);n.d(e,"BackgroundImageTag",function(){return b.a});var g=n(345);n.d(e,"ChildListTag",function(){return g.a});var w=n(235);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(233);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(15);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(18)},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(14)),h=(n.n(d),n(25)),p=n(15),v=n(227),y=n(232),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;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.render=function(){var t=this.props.style,e=this.props.tag||"div",n=Object(f.omit)(this.props,"style","tag");return d.createElement(e,g({},n,{style:i(t)}))},e.displayName="Scrivito.BackgroundImageTag",e}(d.Component);e.a=Object(p.a)(w)},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){return u(t)||s(t)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function s(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function u(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function c(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");f(t.prototype,e&&e.prototype),e&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t}function p(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?y(t):e}function v(t){return(v=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var m=n(87),b=n(0),g=(n.n(b),n(14)),w=n.n(g),_=n(60),k=n(15),O=n(346),E=n(349),x=function(t){function e(t){var n;return c(this,e),n=p(this,v(e).call(this,t)),n.state={hasFocus:!1},n._onMouseOver=n._onMouseOver.bind(y(y(n))),n._onMouseOut=n._onMouseOut.bind(y(y(n))),n}return h(e,[{key:"render",value:function(){var t=this,e=this.props.parent||Object(_.a)();if(!e)return null;e=e._scrivitoPrivateContent;var n,r=Object(b.omit)(this.props,"parent","tag","renderChild");return Object(m.a)()&&(r.onMouseOver=this._onMouseOver,r.onMouseOut=this._onMouseOut,r["data-scrivito-private-child-list-path"]=!0,this.state.hasFocus&&(r.className="scrivito_active scrivito_entered ".concat(r.className)),n=w.a.createElement(E.a,{key:"menuMarker",parent:e})),w.a.createElement(this.props.tag,r,[n].concat(o(e.orderedChildren().map(function(e){return w.a.createElement(O.a,{key:e.id(),child:e,renderChild:t.props.renderChild})}))))}},{key:"_onMouseOver",value:function(t){t.stopPropagation(),this.setState({hasFocus:!0})}},{key:"_onMouseOut",value:function(t){t.stopPropagation(),this.setState({hasFocus:!1})}}]),l(e,t),e}(w.a.Component);x.displayName="Scrivito.ChildListTag",x.defaultProps={tag:"ul"},e.a=Object(k.a)(x)},function(t,e,n){"use strict";function r(t){var e=t.child,n=t.renderChild,r=Object(a.a)().appModelAccessor.wrapInAppClass(e);return n?n(r):o.a.createElement("li",null,o.a.createElement(u.a,{to:r},e.get("title","string")))}var i=n(14),o=n.n(i),a=n(61),s=n(15),u=n(233);r.displayName="Scrivito.ChildListTag.ChildItem",e.a=Object(s.a)(r)},function(t,e,n){"use strict";var r=n(24),i=n(348);n.d(e,"b",function(){return r.a}),n.d(e,"a",function(){return i.a})},function(t,e,n){"use strict";function r(t,e,n,r){return["Invalid ".concat(e," supplied to ").concat(n,", should be a ").concat(a.a.getTypeName(r),"."),"Detected errors (".concat(t.length,"):")].concat(t.map(function(t,e){return" ".concat(e+1,". ").concat(t.message)})).join("\n")}function i(t){return a.a.Object.is(t)?a.a.struct(t):t}function o(t,e){var n=i(t),o="subtype"===n.meta.kind;a.a.assert(a.a.isType(n),"Invalid argument type supplied to propTypes()");var s={},u=o?n.meta.type:n;if("struct"===u.meta.kind||"interface"===u.meta.kind){var c=u.meta.props;Object.keys(c).forEach(function(t){var e=c[t],n=function t(n,i,o){var s=n[i],u=a.a.validate(s,e);if(!u.isValid()){var c=r(u.errors,"prop ".concat(a.a.stringify(i)),o,e);t.displayName=c,a.a.fail(c)}};n.tcomb=e,s[t]=n}),e&&!1===e.strict||(s.__strict__=function(t,e,n){var r=[];for(var i in t)"__strict__"!==i&&"__subtype__"!==i&&t.hasOwnProperty(i)&&!c.hasOwnProperty(i)&&r.push(i);if(r.length>0){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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(14),p=n.n(h),v=n(85),y=(n.n(v),n(15)),m=n(18),b=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){var t=this;return p.a.createElement("span",{ref:function(e){return t._menuMarker=e},className:"scrivito_editing_marker",onClick:this._onClick},p.a.createElement("i",{className:"scrivito_icon"}),p.a.createElement("span",{className:"scrivito_editing_marker_title"},this.props.parent.objClass()))}},{key:"_onClick",value:function(t){t.preventDefault(),t.stopPropagation(),this._menuMarker&&m.b.showChildListMenu(Object(v.findDOMNode)(this._menuMarker),this.props.parent.id())}}]),a(e,t),e}(p.a.Component);b.displayName="Scrivito.ChildListTag.MenuMarker",e.a=Object(y.a)(b)},function(t,e,n){"use strict";function r(t){return i(t.target,t.currentTarget,Object(s.a)(t))}function i(t,e,n){if(t===e)return null;if("A"===t.nodeName){var r=t.href;if(n||"_blank"===t.getAttribute("target"))return{openInNewWindow:r};var s=o(r);return Object(a.f)(s)?{openInCurrentWindow:s.resource()}:null}return i(t.parentNode,e,n)}e.a=r;var o=n(33),a=(n.n(o),n(63)),s=n(234)},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,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");u(t.prototype,e&&e.prototype),e&&u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var p=n(238),v=n.n(p),y=n(14),m=n.n(y),b=n(1),g=n(22),w=n(87),_=n(62),k=n(86),O=n(15),E=n(140),x=function(t){function e(t){var n;return a(this,e),n=f(this,h(e).call(this,t)),n.state={hasError:!1},n}return l(e,[{key:"componentDidCatch",value:function(){this.setState({hasError:!0})}},{key:"shouldComponentUpdate",value:function(t){return this.props.widget.equals(t.widget)}},{key:"getChildContext",value:function(){return o({},E.a,this.props.widget)}},{key:"render",value:function(){return this.state.hasError?Object(w.a)()?m.a.createElement(E.b,null,m.a.createElement("div",{className:"content_error"},"Widget could not be rendered due to application error.")):m.a.createElement(E.b,null):m.a.createElement(C,{widget:this.props.widget})}}]),s(e,t),e}(m.a.Component),C=function(t){function e(){return a(this,e),f(this,h(e).apply(this,arguments))}return l(e,[{key:"render",value:function(){var t=Object(g.e)(Object(_.a)(),this.props.widget);return m.a.createElement(this._getAppWidgetComponent(),{widget:t})}},{key:"_getAppWidgetComponent",value:function(){var t=this.props.widget.objClass(),e=Object(k.a)(t);if(!e)throw new b.ArgumentError('No component registered for widget class "'.concat(t,'"'));return e}}]),s(e,t),e}(m.a.Component);x.displayName="Scrivito.ContentTag.WidgetContent",x.childContextTypes=o({},E.a,v.a.object),e.a=Object(O.a)(x)},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(14),o=(n.n(i),n(15)),a=n(141),s=n(239),u=n(228),c=n(18),l=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)}}(),f=function(t){function e(e){var n=t.call(this,e)||this;return n._onClick=n._onClick.bind(n),n._onDragStart=n._onDragStart.bind(n),n._onDragEnd=n._onDragEnd.bind(n),n}return l(e,t),e.prototype.render=function(){var t=this;return i.createElement("span",{ref:function(e){return t._menuMarker=e},className:"scrivito_editing_marker",onClick:this._onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut,onDragStart:this._onDragStart,onDragEnd:this._onDragEnd,draggable:!0},i.createElement("i",{className:"scrivito_icon"}),i.createElement("span",{className:"scrivito_editing_marker_title"},this._title()))},e.prototype._onClick=function(t){if(t.preventDefault(),t.stopPropagation(),this._menuMarker){var e=Object(a.a)(this.props.widget),n=e.objId,r=e.widgetId;c.b.showWidgetMenu(this._menuMarker,n,r)}},e.prototype._onDragStart=function(t){Object(s.a)(t);var e=Object(a.a)(this.props.widget),n=e.objId,r=e.widgetId;c.b.onDragStart(n,r),this.props.setDragState(!0)},e.prototype._onDragEnd=function(){c.b.onDragEnd(),this.props.setDragState(!1)},e.prototype._title=function(){var t=Object(a.a)(this.props.widget),e=t.objId,n=t.widgetId;return Object(u.a)(e,n)},e.displayName="Scrivito.ContentTag.MenuMarker",e}(i.Component);e.a=Object(o.a)(f)},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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(14),p=n.n(h),v=n(85),y=(n.n(v),n(141)),m=n(15),b=n(18),g=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"componentDidMount",value:function(){if(this._widgetPlaceholder){var t=Object(v.findDOMNode)(this._widgetPlaceholder),e=Object(y.a)(this.props.field.container()),n=e.objId,r=e.widgetId,i=this.props.field.name();b.b.registerEmptyWidgetlistDropZoneInDom({domNode:t,objId:n,widgetId:r,attributeName:i})}}},{key:"render",value:function(){var t=this;return p.a.createElement("div",{ref:function(e){return t._widgetPlaceholder=e},className:"scrivito_empty_widget_field","data-scrivito-private-dropzone":"true",onClick:this._onClick})}},{key:"_onClick",value:function(t){if(t.preventDefault(),t.stopPropagation(),this._widgetPlaceholder){var e=this.props.field.name(),n=Object(y.a)(this.props.field.container()),r=n.objId,i=n.widgetId;b.b.showWidgetlistMenu(Object(v.findDOMNode)(this._widgetPlaceholder),{objId:r,widgetId:i,attributeName:e,mousePosition:{x:t.pageX,y:t.pageY}})}}}]),a(e,t),e}(p.a.Component);g.displayName="Scrivito.ContentTag.WidgetlistPlaceholder",e.a=Object(m.a)(g)},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(14),o=(n.n(i),n(85)),a=(n.n(o),n(0)),s=(n.n(a),n(237)),u=n(12),c=n(15),l=n(355),f=n(135),d=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)}}(),h=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},p=function(t){function e(e){var n=t.call(this,e)||this;return n._field=n.props.field,n.state={domMode:"None"},n._isPendingUpdate=!1,n._getContent=n._getContent.bind(n),n._setContent=n._setContent.bind(n),n._setDomMode=n._setDomMode.bind(n),n}return d(e,t),e.prototype.componentWillMount=function(){var t=this,e=this.props.editorClass;if(e){var n={getContent:this._getContent,setContent:this._setContent,setDomMode:this._setDomMode};this._editor=new e({controller:n}),this._editorWillBeActivated(),this._unsubscribe=this._field.subscribe(function(){if(t._isPendingUpdate&&t._pendingUpdateValue===t._field.getWithoutLoading())return t._isPendingUpdate=!1,void(t._pendingUpdateValue=void 0);t._contentDidChange()})}},e.prototype.componentDidMount=function(){"Replace"===this.state.domMode&&this._editorDomWasMounted()},e.prototype.componentDidUpdate=function(t,e){var n=e.domMode,r=this.state.domMode;n!==r&&("Replace"===r?this._editorDomWasMounted():this._editorDomWasUnmounted())},e.prototype.componentWillUnmount=function(){this._editorWillBeDeactivated(),this._unsubscribe&&this._unsubscribe()},e.prototype.render=function(){var t=this;if("Replace"===this.state.domMode)return i.createElement(this.props.tag,h({},Object(a.omit)(this.props.customProps,"children"),{ref:function(e){t._editorComponent=e}}));var e,n=this._editor;n&&n.onClick&&(e=function(t){return n.onClick(new l.a(t))});var r={ref:function(e){t._editorComponent=e},children:this.props.children,customProps:this.props.customProps,field:this.props.field,key:this.state.domMode,tag:this.props.tag,onClick:e};return i.createElement(s.a,r)},e.prototype._contentDidChange=function(){this._editor&&this._editor.contentDidChange()},e.prototype._editorWillBeActivated=function(){this._editor&&this._editor.editorWillBeActivated()},e.prototype._editorWillBeDeactivated=function(){this._editor&&this._editor.editorWillBeDeactivated()},e.prototype._editorDomWasMounted=function(){if(this._editor&&this._editorComponent){var t=Object(o.findDOMNode)(this._editorComponent);this._editor.editorDomWasMounted(t)}},e.prototype._editorDomWasUnmounted=function(){this._editor&&this._editor.editorDomWasUnmounted()},e.prototype._setDomMode=function(t){this.setState({domMode:t})},e.prototype._getContent=function(){var t=this;return"html"===this._field.type()?Object(u.a)(function(){return Object(f.a)(t._field.get())}).result:this._field.get()},e.prototype._setContent=function(t){this._isPendingUpdate=!0,this._pendingUpdateValue=t,this._field.update(t)},e.displayName="Scrivito.ContentTag.Editor",e}(i.Component);e.a=Object(c.a)(p)},function(t,e,n){"use strict";var r=function(){function t(t){this._internalEvent=t}return t.prototype.preventDefault=function(){this._internalEvent.preventDefault()},t.prototype.stopPropagation=function(){this._internalEvent.stopPropagation()},t}();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(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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(14),p=n.n(h),v=n(60),y=n(357),m=n(1),b=n(86),g=n(15),w=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"componentDidMount",value:function(){Object(y.a)()}},{key:"componentWillUnmount",value:function(){Object(y.b)()}},{key:"render",value:function(){var t=Object(v.a)(),e=Object(v.c)();if(!t)return null;var n=t.objClass(),r=Object(b.a)(n);if(!r)throw new m.ArgumentError('No component registered for obj class "'.concat(n,'"'));return p.a.createElement(r,{page:t,params:e})}}]),a(e,t),e}(p.a.Component);w.displayName="Scrivito.CurrentPage",e.a=Object(g.a)(w)},function(t,e,n){"use strict";function r(){a+=1,Object(o.a)()}function i(){0!==a&&0===(a-=1)&&Object(o.b)()}e.a=r,e.b=i;var o=n(72),a=0},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(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function a(t,e){if(!o(t,e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");u(t.prototype,e&&e.prototype),e&&u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var p=n(14),v=n.n(p),y=n(0),m=(n.n(y),n(25)),b=n(235),g=n(42),w=n(15),_=n(359),k=n(232),O=n(1),E=n(37),x=function(t){function e(){return a(this,e),f(this,h(e).apply(this,arguments))}return l(e,[{key:"render",value:function(){if(!this.props.content)return null;var t=Object(y.omit)(this.props,"content","attribute");if(o(this.props.content,m.a))return v.a.createElement("img",i({src:Object(k.a)(this.props.content).url()},t));var e=this._getBinary();if(void 0===e)return null;var n;return null===e?(n=_.a,t["data-scrivito-image-placeholder"]=!0):n=Object(k.a)(e).url(),v.a.createElement(b.a,i({attribute:this.props.attribute,content:this.props.content,tag:"img",src:n},t))}},{key:"_getBinary",value:function(){var t=g.a.forInstance(this.props.content);if(t){var e=t.attributes[this.props.attribute];if(!e)return void Object(E.b)(new O.ArgumentError('Component "Scrivito.ImageTag" received prop "content"'+' with an object missing attribute "'.concat(this.props.attribute,'".')));var n=e[0];return"binary"===n?this.props.content.get(this.props.attribute):"reference"===n?this._getReferencedBinary():void Object(E.b)(new O.ArgumentError('Component "Scrivito.ImageTag" received prop "content"'+' with an object, whose attribute "'.concat(this.props.attribute,'"')+' is of unexpected type "'.concat(n,'".')+' Valid attribute types are "binary" and "reference".'))}}},{key:"_getReferencedBinary",value:function(){var t=this.props.content.get(this.props.attribute);if(t){var e=t.get("blob");if(e)return e}return null}}]),s(e,t),e}(v.a.Component);x.displayName="Scrivito.ImageTag",x.defaultProps={attribute:"blob"},e.a=Object(w.a)(x)},function(t,e,n){"use strict";e.a="data:image/gif;base64,R0lGODlhyADIAIAAAP///wAAACH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS41LWMwMjEgNzkuMTU0OTExLCAyMDEzLzEwLzI5LTExOjQ3OjE2ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDBEQjBEMDdFODMzMTFFNTg0QzY4MUNBMUVCQUU2MjciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDBEQjBEMDhFODMzMTFFNTg0QzY4MUNBMUVCQUU2MjciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowMERCMEQwNUU4MzMxMUU1ODRDNjgxQ0ExRUJBRTYyNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMERCMEQwNkU4MzMxMUU1ODRDNjgxQ0ExRUJBRTYyNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAEAAAAALAAAAADIAMgAAAL/hI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8YhMKpfMpvMJjUqn1Kr1is1qt9yu9wsOi8fksvmMTqvX7Lb7DY/L5/S6/Y7P6/f8vv8PGCg4SFhoeIiYqLjI2Oj4CBkpOUlZaXmJmam5ydnp+QkaKjpKWmp6ipqqusra6voKGys7S1tre4ubq7vL2+v7CxwsPExcbHyMnKy8zNzs/AwdLT1NXW19jZ2tvc3d7f0NHi4+Tl5ufo6err7O3u7+Dh8vP09fb3+Pn6+/z9/v/w8woMCBBAsaPIgwocKFDBs6fAgxosSJFCtavIgxo8aNBhw7eixTAAA7"},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(14),o=(n.n(i),n(60)),a=n(1),s=n(15),u=function(t){var e=t.children;return r(Object(o.b)(),a.CurrentPageNotFoundError)?e?i.createElement("div",null,e):i.createElement("div",null,i.createElement("h1",null,"The page you were looking for doesn't exist."),i.createElement("p",null,"You may have mistyped the address or the page may have moved.")):null};u.displayName="Scrivito.NotFoundErrorPage",e.a=Object(s.a)(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){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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function p(t){return(p=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function v(t,e){y(e),m(e),g(e)&&(e.displayName=t);var n=Object(x.a)(e),r=b(n);Object(E.c)(t,r)}function y(t){if("function"!=typeof t)throw new O.ArgumentError("Scrivito.provideComponent expected a valid React component"+", but received ".concat(Object(C.a)(t)))}function m(t){if(t.propTypes)throw new O.ArgumentError("Custom props are not allowed when providing a component.")}function b(t){var e=function(t){function e(){return o(this,e),l(this,p(e).apply(this,arguments))}return c(e,[{key:"render",value:function(){if(this.props.widget){var t=d(p(e.prototype),"render",this).call(this);return Object(k.isArray)(t)||Object(k.isBoolean)(t)||Object(k.isNumber)(t)||Object(k.isString)(t)||null===t||t&&t.type!==j.b?_.a.createElement(j.b,{children:t}):t}return d(p(e.prototype),"render",this).call(this)}}]),a(e,t),e}(t);return e.displayName=Object(S.a)(t),e}function g(t){return!(t.displayName||t.name&&"_class"!==t.name)}e.a=v;var w=n(14),_=n.n(w),k=n(0),O=(n.n(k),n(1)),E=n(86),x=n(15),C=n(41),j=n(140),S=n(122)},function(t,e,n){"use strict";function r(t,e){Object(o.d)(t,Object(i.a)(e))}e.a=r;var i=n(15),o=n(86)},function(t,e,n){"use strict";function r(){o.a.enableForceVerification()}function i(){return o.a.currentPublicAuthorizationState()}Object.defineProperty(e,"__esModule",{value:!0}),e.enableForceVerification=r,e.currentPublicAuthorizationState=i;var o=n(21),a=n(241);n.d(e,"alwaysShowOptionMarkers",function(){return a.a});var s=n(101);n.d(e,"isFetchingActive",function(){return s.b})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(290),i=n(291),o=n(161),a=n(321),s=n(340);window.Scrivito=s;var u=Object(o.a)();u?u.installRailsApi():Object(r.a)(),Object(i.a)(u),Object(a.a)()}]);
86
+ 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);i<a;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!X(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=o.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},o.byteLength=y,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?S(this,0,t):m.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+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;f<u;++f)if(c[f]!==l[f]){a=c[f],s=l[f];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},o.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(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),e<t&&(e=t);var r;if(o.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=o.prototype;else{var i=e-t;r=new o(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(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<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=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<n&&(i*=256);)this[e+o]=t/i&255;return e+n},o.prototype.writeUIntBE=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=n-1,o=1;for(this[e+i]=255&t;--i>=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<n&&(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.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<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=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<r-n&&(r=t.length-e+n);var i,a=r-n;if(this===t&&n<e&&e<r)for(i=a-1;i>=0;--i)t[i+e]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},o.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var s=o.isBuffer(t)?t:W(new o(t,r).toString()),u=s.length;for(a=0;a<n-e;++a)this[a+e]=s[a%u]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(40))},function(t,e,n){"use strict";function r(t){var e=t.length;if(e%4>0)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<c;l+=4)e=f[t.charCodeAt(l)]<<18|f[t.charCodeAt(l+1)]<<12|f[t.charCodeAt(l+2)]<<6|f[t.charCodeAt(l+3)],s[u++]=e>>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;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(s(r));return i.join("")}function c(t){for(var e,n=t.length,r=n%3,i=[],o=0,a=n-r;o<a;o+=16383)i.push(u(t,o,o+16383>a?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<v;++p)l[p]=h[p],f[h.charCodeAt(p)]=p;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>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<<c)-1,f=l>>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<<i|s,c+=i;c>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 <a class="ql-svt ql-svt-browse" title="Browse">\n <i class="scrivito_icon scrivito_icon_content_browser"></i>\n </a>\n',f='\n <a class="ql-svt ql-svt-target" title="Open link in new tab">\n <i class="scrivito_icon scrivito_icon_new_window"></i>\n <i class="scrivito_icon scrivito_icon_ok"></i>\n </a>\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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(139),p=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"onClick",value:function(){var t=this;scrivito.openContentBrowser({selection:this._currentSelection(),selectionMode:"single"}).then(function(e){var n=e.isSelected,r=e.selection;n&&t._saveContentBrowserSelection(r)})}},{key:"_currentSelection",value:function(){var t=this._controller.getContent();return t?[t.id()]:[]}},{key:"_saveContentBrowserSelection",value:function(t){this._controller.setContent(t[0]||null)}}],[{key:"canEdit",value:function(t){return"reference"===t.type}}]),a(e,t),e}(h.a);e.a=p},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(139),o=n(338),a=n(229),s=n(230),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.canEdit=function(t){return"string"===t.type},e.prototype.contentDidChange=function(){this._setCurrentContent()},e.prototype.editorWillBeActivated=function(){this._controller.setDomMode("Replace")},e.prototype.editorDomWasMounted=function(t){this._currentDomNode=t,Object(a.a)(t);var e=new s.a(t,this._controller);this._setCurrentContent(),Object(o.a)(e)},e.prototype.editorDomWasUnmounted=function(){this._currentDomNode=void 0},e.prototype._setCurrentContent=function(){this._currentDomNode&&(this._currentDomNode.textContent=this._controller.getContent())},e}(i.a);e.a=c},function(t,e,n){"use strict";function r(t,e){var n=e.jQueryElement();switch(t.keyCode||t.which){case 13:d(n)||(t.preventDefault(),n.blur());break;case 27:t.stopPropagation(),n.blur()}}function i(t){u(t)}function o(t){h(t.jQueryElement())}function a(t){v(t.jQueryElement())}function s(t){u(t).done(function(){return t.trigger("scrivito_editors:blur")}),p(t),h(t.jQueryElement())}function u(t){var e=c(t.jQueryElement());return t.save(e).done(function(){return t.trigger("scrivito_editors:save")})}function c(t){return l(t),t[0].innerText.replace(/\r\n/g,"\n").replace(/\n+$/,"")}function l(t){var e=f(t),n=e.not(t);n.length>0&&(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.length?t.data("scrivito_editors_siblings_before_edit",n):t.siblings().addBack().not(e)}function d(t){return!0===t.data("scrivitoEditorsMultiline")||!1!==t.data("scrivitoEditorsMultiline")&&t.css("white-space").match(/pre/)}function h(t){if(d(t)&&!t.data("scrivito_editors_prepared_for_editing")){t.data("scrivito_editors_prepared_for_editing",!0);var e=t.html(),n=e.replace(/\r?\n/g,"<br />");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;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.render=function(){var t=this.props.style,e=this.props.tag||"div",n=Object(f.omit)(this.props,"style","tag");return d.createElement(e,g({},n,{style:i(t)}))},e.displayName="Scrivito.BackgroundImageTag",e}(d.Component);e.a=Object(p.a)(w)},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){return u(t)||s(t)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function s(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function u(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function c(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");f(t.prototype,e&&e.prototype),e&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t}function p(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?y(t):e}function v(t){return(v=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var m=n(87),b=n(0),g=(n.n(b),n(13)),w=n.n(g),_=n(60),k=n(14),O=n(345),E=n(348),x=function(t){function e(t){var n;return c(this,e),n=p(this,v(e).call(this,t)),n.state={hasFocus:!1},n._onMouseOver=n._onMouseOver.bind(y(y(n))),n._onMouseOut=n._onMouseOut.bind(y(y(n))),n}return h(e,[{key:"render",value:function(){var t=this,e=this.props.parent||Object(_.a)();if(!e)return null;e=e._scrivitoPrivateContent;var n,r=Object(b.omit)(this.props,"parent","tag","renderChild");return Object(m.a)()&&(r.onMouseOver=this._onMouseOver,r.onMouseOut=this._onMouseOut,r["data-scrivito-private-child-list-path"]=!0,this.state.hasFocus&&(r.className="scrivito_active scrivito_entered ".concat(r.className)),n=w.a.createElement(E.a,{key:"menuMarker",parent:e})),w.a.createElement(this.props.tag,r,[n].concat(o(e.orderedChildren().map(function(e){return w.a.createElement(O.a,{key:e.id(),child:e,renderChild:t.props.renderChild})}))))}},{key:"_onMouseOver",value:function(t){t.stopPropagation(),this.setState({hasFocus:!0})}},{key:"_onMouseOut",value:function(t){t.stopPropagation(),this.setState({hasFocus:!1})}}]),l(e,t),e}(w.a.Component);x.displayName="Scrivito.ChildListTag",x.defaultProps={tag:"ul"},e.a=Object(k.a)(x)},function(t,e,n){"use strict";function r(t){var e=t.child,n=t.renderChild,r=Object(a.a)().appModelAccessor.wrapInAppClass(e);return n?n(r):o.a.createElement("li",null,o.a.createElement(u.a,{to:r},e.get("title","string")))}var i=n(13),o=n.n(i),a=n(61),s=n(14),u=n(232);r.displayName="Scrivito.ChildListTag.ChildItem",e.a=Object(s.a)(r)},function(t,e,n){"use strict";var r=n(24),i=n(347);n.d(e,"b",function(){return r.a}),n.d(e,"a",function(){return i.a})},function(t,e,n){"use strict";function r(t,e,n,r){return["Invalid ".concat(e," supplied to ").concat(n,", should be a ").concat(a.a.getTypeName(r),"."),"Detected errors (".concat(t.length,"):")].concat(t.map(function(t,e){return" ".concat(e+1,". ").concat(t.message)})).join("\n")}function i(t){return a.a.Object.is(t)?a.a.struct(t):t}function o(t,e){var n=i(t),o="subtype"===n.meta.kind;a.a.assert(a.a.isType(n),"Invalid argument type supplied to propTypes()");var s={},u=o?n.meta.type:n;if("struct"===u.meta.kind||"interface"===u.meta.kind){var c=u.meta.props;Object.keys(c).forEach(function(t){var e=c[t],n=function t(n,i,o){var s=n[i],u=a.a.validate(s,e);if(!u.isValid()){var c=r(u.errors,"prop ".concat(a.a.stringify(i)),o,e);t.displayName=c,a.a.fail(c)}};n.tcomb=e,s[t]=n}),e&&!1===e.strict||(s.__strict__=function(t,e,n){var r=[];for(var i in t)"__strict__"!==i&&"__subtype__"!==i&&t.hasOwnProperty(i)&&!c.hasOwnProperty(i)&&r.push(i);if(r.length>0){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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(13),p=n.n(h),v=n(85),y=(n.n(v),n(14)),m=n(17),b=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){var t=this;return p.a.createElement("span",{ref:function(e){return t._menuMarker=e},className:"scrivito_editing_marker",onClick:this._onClick},p.a.createElement("i",{className:"scrivito_icon"}),p.a.createElement("span",{className:"scrivito_editing_marker_title"},this.props.parent.objClass()))}},{key:"_onClick",value:function(t){t.preventDefault(),t.stopPropagation(),this._menuMarker&&m.b.showChildListMenu(Object(v.findDOMNode)(this._menuMarker),this.props.parent.id())}}]),a(e,t),e}(p.a.Component);b.displayName="Scrivito.ChildListTag.MenuMarker",e.a=Object(y.a)(b)},function(t,e,n){"use strict";function r(t){return i(t.target,t.currentTarget,Object(s.a)(t))}function i(t,e,n){if(t===e)return null;if("A"===t.nodeName){var r=t.href;if(n||"_blank"===t.getAttribute("target"))return{openInNewWindow:r};var s=o(r);return Object(a.f)(s)?{openInCurrentWindow:s.resource()}:null}return i(t.parentNode,e,n)}e.a=r;var o=n(33),a=(n.n(o),n(63)),s=n(233)},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,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");u(t.prototype,e&&e.prototype),e&&u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var p=n(237),v=n.n(p),y=n(13),m=n.n(y),b=n(1),g=n(22),w=n(87),_=n(62),k=n(86),O=n(14),E=n(140),x=function(t){function e(t){var n;return a(this,e),n=f(this,h(e).call(this,t)),n.state={hasError:!1},n}return l(e,[{key:"componentDidCatch",value:function(){this.setState({hasError:!0})}},{key:"shouldComponentUpdate",value:function(t){return this.props.widget.equals(t.widget)}},{key:"getChildContext",value:function(){return o({},E.a,this.props.widget)}},{key:"render",value:function(){return this.state.hasError?Object(w.a)()?m.a.createElement(E.b,null,m.a.createElement("div",{className:"content_error"},"Widget could not be rendered due to application error.")):m.a.createElement(E.b,null):m.a.createElement(C,{widget:this.props.widget})}}]),s(e,t),e}(m.a.Component),C=function(t){function e(){return a(this,e),f(this,h(e).apply(this,arguments))}return l(e,[{key:"render",value:function(){var t=Object(g.e)(Object(_.a)(),this.props.widget);return m.a.createElement(this._getAppWidgetComponent(),{widget:t})}},{key:"_getAppWidgetComponent",value:function(){var t=this.props.widget.objClass(),e=Object(k.a)(t);if(!e)throw new b.ArgumentError('No component registered for widget class "'.concat(t,'"'));return e}}]),s(e,t),e}(m.a.Component);x.displayName="Scrivito.ContentTag.WidgetContent",x.childContextTypes=o({},E.a,v.a.object),e.a=Object(O.a)(x)},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(13),o=(n.n(i),n(14)),a=n(141),s=n(238),u=n(227),c=n(17),l=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)}}(),f=function(t){function e(e){var n=t.call(this,e)||this;return n._onClick=n._onClick.bind(n),n._onDragStart=n._onDragStart.bind(n),n._onDragEnd=n._onDragEnd.bind(n),n}return l(e,t),e.prototype.render=function(){var t=this;return i.createElement("span",{ref:function(e){return t._menuMarker=e},className:"scrivito_editing_marker",onClick:this._onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut,onDragStart:this._onDragStart,onDragEnd:this._onDragEnd,draggable:!0},i.createElement("i",{className:"scrivito_icon"}),i.createElement("span",{className:"scrivito_editing_marker_title"},this._title()))},e.prototype._onClick=function(t){if(t.preventDefault(),t.stopPropagation(),this._menuMarker){var e=Object(a.a)(this.props.widget),n=e.objId,r=e.widgetId;c.b.showWidgetMenu(this._menuMarker,n,r)}},e.prototype._onDragStart=function(t){Object(s.a)(t);var e=Object(a.a)(this.props.widget),n=e.objId,r=e.widgetId;c.b.onDragStart(n,r),this.props.setDragState(!0)},e.prototype._onDragEnd=function(){c.b.onDragEnd(),this.props.setDragState(!1)},e.prototype._title=function(){var t=Object(a.a)(this.props.widget),e=t.objId,n=t.widgetId;return Object(u.a)(e,n)},e.displayName="Scrivito.ContentTag.MenuMarker",e}(i.Component);e.a=Object(o.a)(f)},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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(13),p=n.n(h),v=n(85),y=(n.n(v),n(141)),m=n(14),b=n(17),g=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"componentDidMount",value:function(){if(this._widgetPlaceholder){var t=Object(v.findDOMNode)(this._widgetPlaceholder),e=Object(y.a)(this.props.field.container()),n=e.objId,r=e.widgetId,i=this.props.field.name();b.b.registerEmptyWidgetlistDropZoneInDom({domNode:t,objId:n,widgetId:r,attributeName:i})}}},{key:"render",value:function(){var t=this;return p.a.createElement("div",{ref:function(e){return t._widgetPlaceholder=e},className:"scrivito_empty_widget_field","data-scrivito-private-dropzone":"true",onClick:this._onClick})}},{key:"_onClick",value:function(t){if(t.preventDefault(),t.stopPropagation(),this._widgetPlaceholder){var e=this.props.field.name(),n=Object(y.a)(this.props.field.container()),r=n.objId,i=n.widgetId;b.b.showWidgetlistMenu(Object(v.findDOMNode)(this._widgetPlaceholder),{objId:r,widgetId:i,attributeName:e,mousePosition:{x:t.pageX,y:t.pageY}})}}}]),a(e,t),e}(p.a.Component);g.displayName="Scrivito.ContentTag.WidgetlistPlaceholder",e.a=Object(m.a)(g)},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(13),o=(n.n(i),n(85)),a=(n.n(o),n(0)),s=(n.n(a),n(236)),u=n(18),c=n(14),l=n(354),f=n(355),d=n(4),h=n(135),p=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)}}(),v=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},y=function(t){function e(e){var n=t.call(this,e)||this;return n._field=n.props.field,n.state={domMode:"None"},n._isPendingUpdate=!1,n._getContent=n._getContent.bind(n),n._setContent=n._setContent.bind(n),n._setDomMode=n._setDomMode.bind(n),n}return p(e,t),e.prototype.componentWillMount=function(){var t=this,e=this.props.editorClass;if(e){var n={getContent:this._getContent,setContent:this._setContent,setDomMode:this._setDomMode};this._editor=new e({controller:n}),this._editorWillBeActivated();var r=this._getContent();this._unsubscribe=d.g(function(){var e=t._getContent();if(!Object(f.a)(r,e)){if(r=e,t._isPendingUpdate&&t._pendingUpdateValue===e)return t._isPendingUpdate=!1,void(t._pendingUpdateValue=void 0);t._contentDidChange()}})}},e.prototype.componentDidMount=function(){"Replace"===this.state.domMode&&this._editorDomWasMounted()},e.prototype.componentDidUpdate=function(t,e){var n=e.domMode,r=this.state.domMode;n!==r&&("Replace"===r?this._editorDomWasMounted():this._editorDomWasUnmounted())},e.prototype.componentWillUnmount=function(){this._editorWillBeDeactivated(),this._unsubscribe&&this._unsubscribe()},e.prototype.render=function(){var t=this;if("Replace"===this.state.domMode)return i.createElement(this.props.tag,v({},Object(a.omit)(this.props.customProps,"children"),{ref:function(e){t._editorComponent=e}}));var e,n=this._editor;n&&n.onClick&&(e=function(t){return n.onClick(new l.a(t))});var r={ref:function(e){t._editorComponent=e},children:this.props.children,customProps:this.props.customProps,field:this.props.field,key:this.state.domMode,tag:this.props.tag,onClick:e};return i.createElement(s.a,r)},e.prototype._contentDidChange=function(){this._editor&&this._editor.contentDidChange()},e.prototype._editorWillBeActivated=function(){this._editor&&this._editor.editorWillBeActivated()},e.prototype._editorWillBeDeactivated=function(){this._editor&&this._editor.editorWillBeDeactivated()},e.prototype._editorDomWasMounted=function(){if(this._editor&&this._editorComponent){var t=Object(o.findDOMNode)(this._editorComponent);this._editor.editorDomWasMounted(t)}},e.prototype._editorDomWasUnmounted=function(){this._editor&&this._editor.editorDomWasUnmounted()},e.prototype._setDomMode=function(t){this.setState({domMode:t})},e.prototype._getContent=function(){var t=this;return Object(u.a)(function(){var e=t._field.get();if("html"===t._field.type()){var n=e;e=Object(h.a)(n)}return e}).result},e.prototype._setContent=function(t){this._isPendingUpdate=!0,this._pendingUpdateValue=t,this._field.update(t)},e.displayName="Scrivito.ContentTag.Editor",e}(i.Component);e.a=Object(c.a)(y)},function(t,e,n){"use strict";var r=function(){function t(t){this._internalEvent=t}return t.prototype.preventDefault=function(){this._internalEvent.preventDefault()},t.prototype.stopPropagation=function(){this._internalEvent.stopPropagation()},t}();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(t,e){return!!o(t,e)||!(!Array.isArray(t)||!Array.isArray(e))&&(t.length===e.length&&Object(a.every)(Object(a.zip)(t,e),function(t){return o(t[0],t[1])}))}function o(t,e){return!Array.isArray(t)&&!Array.isArray(e)&&(r(t,s.a)?t.equals(e):r(t,u.default)?t.equals(e):r(t,l.a)?t.equals(e):r(t,c.a)?t.equals(e):Object(a.isEqual)(t,e))}e.a=i;var a=n(0),s=(n.n(a),n(26)),u=n(3),c=n(34),l=n(32)},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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(13),p=n.n(h),v=n(60),y=n(357),m=n(1),b=n(86),g=n(14),w=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"componentDidMount",value:function(){Object(y.a)()}},{key:"componentWillUnmount",value:function(){Object(y.b)()}},{key:"render",value:function(){var t=Object(v.a)(),e=Object(v.c)();if(!t)return null;var n=t.objClass(),r=Object(b.a)(n);if(!r)throw new m.ArgumentError('No component registered for obj class "'.concat(n,'"'));return p.a.createElement(r,{page:t,params:e})}}]),a(e,t),e}(p.a.Component);w.displayName="Scrivito.CurrentPage",e.a=Object(g.a)(w)},function(t,e,n){"use strict";function r(){a+=1,Object(o.a)()}function i(){0!==a&&0===(a-=1)&&Object(o.b)()}e.a=r,e.b=i;var o=n(72),a=0},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(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}function o(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function a(t,e){if(!o(t,e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");u(t.prototype,e&&e.prototype),e&&u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var p=n(13),v=n.n(p),y=n(0),m=(n.n(y),n(26)),b=n(234),g=n(42),w=n(14),_=n(359),k=n(231),O=n(1),E=n(37),x=function(t){function e(){return a(this,e),f(this,h(e).apply(this,arguments))}return l(e,[{key:"render",value:function(){if(!this.props.content)return null;var t=Object(y.omit)(this.props,"content","attribute");if(o(this.props.content,m.a))return v.a.createElement("img",i({src:Object(k.a)(this.props.content).url()},t));var e=this._getBinary();if(void 0===e)return null;var n;return null===e?(n=_.a,t["data-scrivito-image-placeholder"]=!0):n=Object(k.a)(e).url(),v.a.createElement(b.a,i({attribute:this.props.attribute,content:this.props.content,tag:"img",src:n},t))}},{key:"_getBinary",value:function(){var t=g.a.forInstance(this.props.content);if(t){var e=t.attributes[this.props.attribute];if(!e)return void Object(E.b)(new O.ArgumentError('Component "Scrivito.ImageTag" received prop "content"'+' with an object missing attribute "'.concat(this.props.attribute,'".')));var n=e[0];return"binary"===n?this.props.content.get(this.props.attribute):"reference"===n?this._getReferencedBinary():void Object(E.b)(new O.ArgumentError('Component "Scrivito.ImageTag" received prop "content"'+' with an object, whose attribute "'.concat(this.props.attribute,'"')+' is of unexpected type "'.concat(n,'".')+' Valid attribute types are "binary" and "reference".'))}}},{key:"_getReferencedBinary",value:function(){var t=this.props.content.get(this.props.attribute);if(t){var e=t.get("blob");if(e)return e}return null}}]),s(e,t),e}(v.a.Component);x.displayName="Scrivito.ImageTag",x.defaultProps={attribute:"blob"},e.a=Object(w.a)(x)},function(t,e,n){"use strict";e.a="data:image/gif;base64,R0lGODlhyADIAIAAAP///wAAACH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS41LWMwMjEgNzkuMTU0OTExLCAyMDEzLzEwLzI5LTExOjQ3OjE2ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDBEQjBEMDdFODMzMTFFNTg0QzY4MUNBMUVCQUU2MjciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDBEQjBEMDhFODMzMTFFNTg0QzY4MUNBMUVCQUU2MjciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowMERCMEQwNUU4MzMxMUU1ODRDNjgxQ0ExRUJBRTYyNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMERCMEQwNkU4MzMxMUU1ODRDNjgxQ0ExRUJBRTYyNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAEAAAAALAAAAADIAMgAAAL/hI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8YhMKpfMpvMJjUqn1Kr1is1qt9yu9wsOi8fksvmMTqvX7Lb7DY/L5/S6/Y7P6/f8vv8PGCg4SFhoeIiYqLjI2Oj4CBkpOUlZaXmJmam5ydnp+QkaKjpKWmp6ipqqusra6voKGys7S1tre4ubq7vL2+v7CxwsPExcbHyMnKy8zNzs/AwdLT1NXW19jZ2tvc3d7f0NHi4+Tl5ufo6err7O3u7+Dh8vP09fb3+Pn6+/z9/v/w8woMCBBAsaPIgwocKFDBs6fAgxosSJFCtavIgxo8aNBhw7eixTAAA7"},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(13),o=(n.n(i),n(60)),a=n(1),s=n(14),u=function(t){var e=t.children;return r(Object(o.b)(),a.CurrentPageNotFoundError)?e?i.createElement("div",null,e):i.createElement("div",null,i.createElement("h1",null,"The page you were looking for doesn't exist."),i.createElement("p",null,"You may have mistyped the address or the page may have moved.")):null};u.displayName="Scrivito.NotFoundErrorPage",e.a=Object(s.a)(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){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<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function p(t){return(p=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function v(t,e){y(e),m(e),g(e)&&(e.displayName=t);var n=Object(x.a)(e),r=b(n);Object(E.c)(t,r)}function y(t){if("function"!=typeof t)throw new O.ArgumentError("Scrivito.provideComponent expected a valid React component"+", but received ".concat(Object(C.a)(t)))}function m(t){if(t.propTypes)throw new O.ArgumentError("Custom props are not allowed when providing a component.")}function b(t){var e=function(t){function e(){return o(this,e),l(this,p(e).apply(this,arguments))}return c(e,[{key:"render",value:function(){if(this.props.widget){var t=d(p(e.prototype),"render",this).call(this);return Object(k.isArray)(t)||Object(k.isBoolean)(t)||Object(k.isNumber)(t)||Object(k.isString)(t)||null===t||t&&t.type!==j.b?_.a.createElement(j.b,{children:t}):t}return d(p(e.prototype),"render",this).call(this)}}]),a(e,t),e}(t);return e.displayName=Object(S.a)(t),e}function g(t){return!(t.displayName||t.name&&"_class"!==t.name)}e.a=v;var w=n(13),_=n.n(w),k=n(0),O=(n.n(k),n(1)),E=n(86),x=n(14),C=n(41),j=n(140),S=n(122)},function(t,e,n){"use strict";function r(t,e){Object(o.d)(t,Object(i.a)(e))}e.a=r;var i=n(14),o=n(86)},function(t,e,n){"use strict";function r(){o.a.enableForceVerification()}function i(){return o.a.currentPublicAuthorizationState()}Object.defineProperty(e,"__esModule",{value:!0}),e.enableForceVerification=r,e.currentPublicAuthorizationState=i;var o=n(21),a=n(240);n.d(e,"alwaysShowOptionMarkers",function(){return a.a});var s=n(101);n.d(e,"isFetchingActive",function(){return s.b})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(289),i=n(290),o=n(161),a=n(320),s=n(339);window.Scrivito=s;var u=Object(o.a)();u?u.installRailsApi():Object(r.a)(),Object(i.a)(u),Object(a.a)()}]);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0.rc1
4
+ version: 1.14.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infopark AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-25 00:00:00.000000000 Z
11
+ date: 2018-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable