--- /dev/null
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-common"],{"0042":function(e,t,i){"use strict";i("d525")},"030e":function(e,t,i){"use strict";i("5440")},"0429":function(e,t,i){"use strict";i.d(t,"h",(function(){return n["g"]})),i.d(t,"j",(function(){return a["a"]})),i.d(t,"f",(function(){return r["i"]})),i.d(t,"c",(function(){return s["e"]})),i.d(t,"b",(function(){return m})),i.d(t,"l",(function(){return y})),i.d(t,"i",(function(){return O})),i.d(t,"g",(function(){return b["b"]})),i.d(t,"d",(function(){return I})),i.d(t,"n",(function(){return $})),i.d(t,"m",(function(){return G})),i.d(t,"e",(function(){return me})),i.d(t,"k",(function(){return ge})),i.d(t,"a",(function(){return _e}));var n=i("5589"),a=i("22f7"),r=i("9788"),s=i("d675"),o="addBlock",l="moveBlock",c="deleteBlock",u="duplicateBlock",d="reorderBlocks",f="activateBlock",h="addBlockPreview",p="updateBlockPreviewLoading",m={ADD_BLOCK:o,MOVE_BLOCK:l,DELETE_BLOCK:c,DUPLICATE_BLOCK:u,REORDER_BLOCKS:d,ACTIVATE_BLOCK:f,ADD_BLOCK_PREVIEW:h,UPDATE_PREVIEW_LOADING:p},b=i("9aba"),g=[r["f"],r["d"],r["a"],r["b"],r["c"],r["e"],b["a"],n["e"],n["f"],n["d"],n["a"],n["b"],n["c"],s["d"],s["b"],s["a"],s["c"]],v=[b["a"]],y={REFRESH_BLOCK_PREVIEW:g,REFRESH_BLOCK_PREVIEW_ALL:v},_="updateModalAction",w="updateModalMode",O={UPDATE_MODAL_ACTION:_,UPDATE_MODAL_MODE:w},E="addToBucket",T="deleteFromBucket",S="toggleFeaturedInBucket",A="reorderBucketList",D="updateBucketsDataSource",C="updateBucketsData",P="updateBucketsFilter",x="updateBucketsDataOffset",k="updateBucketsDataPage",M="updateBucketsMaxPage",I={ADD_TO_BUCKET:E,DELETE_FROM_BUCKET:T,TOGGLE_FEATURED_IN_BUCKET:S,REORDER_BUCKET_LIST:A,UPDATE_BUCKETS_DATASOURCE:D,UPDATE_BUCKETS_DATA:C,UPDATE_BUCKETS_FILTER:P,UPDATE_BUCKETS_DATA_OFFSET:x,UPDATE_BUCKETS_DATA_PAGE:k,UPDATE_BUCKETS_MAX_PAGE:M},L="loadingRevision",j="updateRevision",R="updateRevisionContent",N="updatePreviewContent",B="updateAllRevision",$={LOADING_REV:L,UPDATE_REV:j,UPDATE_REV_CONTENT:R,UPDATE_REV_CURRENT_CONTENT:N,UPDATE_REV_ALL:B},F="updatePublishStartDate",U="updatePublishEndDate",V="updatePublishState",q="updatePublishSubmit",W="updatePublishVisibility",H="updateReviewProcess",z="updateSaveType",K="updateHasUnsavedChanges",G={UPDATE_PUBLISH_START_DATE:F,UPDATE_PUBLISH_END_DATE:U,UPDATE_PUBLISH_STATE:V,UPDATE_PUBLISH_VISIBILITY:W,UPDATE_REVIEW_PROCESS:H,UPDATE_PUBLISH_SUBMIT:q,UPDATE_SAVE_TYPE:z,UPDATE_HAS_UNSAVED_CHANGES:K},Y="updateDatableData",X="updateDatableBulk",J="replaceDatableBulk",Q="addDatableColumn",Z="removeDatableColumn",ee="updateDatableOffset",te="updateDatablePage",ie="updateDatableMaxPage",ne="updateDatableNavigation",ae="updateDatableVisibility",re="updateDatableSort",se="publishDatatable",oe="featureDatatable",le="updateDatableFilter",ce="updateDatableFilterStatus",ue="clearDatableFilter",de="updateDatableMessage",fe="updateDatableLoading",he="updateDatatableNestedDatas",pe="updateDatableTracker",me={UPDATE_DATATABLE_DATA:Y,UPDATE_DATATABLE_BULK:X,REPLACE_DATATABLE_BULK:J,ADD_DATATABLE_COLUMN:Q,REMOVE_DATATABLE_COLUMN:Z,UPDATE_DATATABLE_OFFSET:ee,UPDATE_DATATABLE_PAGE:te,UPDATE_DATATABLE_MAXPAGE:ie,UPDATE_DATATABLE_NAV:ne,UPDATE_DATATABLE_VISIBLITY:ae,UPDATE_DATATABLE_SORT:re,PUBLISH_DATATABLE:se,FEATURE_DATATABLE:oe,UPDATE_DATATABLE_FILTER:le,UPDATE_DATATABLE_FILTER_STATUS:ce,CLEAR_DATATABLE_FILTER:ue,UPDATE_DATATABLE_MESSAGE:de,UPDATE_DATATABLE_LOADING:fe,UPDATE_DATATABLE_NESTED:he,UPDATE_DATATABLE_TRACKER:pe},be="updateParent",ge={UPDATE_PARENT:be},ve=(i("f99e"),"emptyAttributes"),ye="updateAttributes",_e={EMPTY_OPTIONS:ve,UPDATE_OPTIONS:ye}},"05a8":function(e,t,i){},"069c":function(e,t,i){},"0a8f":function(e,t,i){"use strict";t["a"]={modal:"s--modal",overlay:"s--overlay",editor:"s--in-editor",search:"s--search"}},"0de3":function(e,t,i){},"0e7b":function(e,t,i){},1071:function(e,t,i){"use strict";i("fc07")},"10ba":function(e,t,i){"use strict";i("858a")},"11ed":function(e,t,i){},1249:function(e,t,i){"use strict";var n=i("63ea"),a=i.n(n);t["a"]={props:{min:{type:Number,default:0},max:{type:Number,default:0},disabled:{type:Boolean,default:!1},selected:{type:Array,default:function(){return[]}}},data:function(){return{currentValue:this.selected}},watch:{selected:function(e){this.currentValue=e}},computed:{checkedValue:{get:function(){return this.currentValue},set:function(e){a()(e,this.currentValue)||(this.currentValue=e,"undefined"!==typeof this.saveIntoStore&&this.saveIntoStore(e),this.$emit("change",e))}}},methods:{isMax:function(e){return e.length>this.max&&this.max>0},isMin:function(e){return e.length<this.min&&this.min>0}}}},1282:function(e,t,i){},"12ae":function(e,t,i){},"14bd":function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dropdown",class:e.dropdownClasses,attrs:{"aria-title":e.title}},[e.fixed?i("div",{ref:"dropdown__cta"},[e._t("default")],2):e._t("default"),i("transition",{attrs:{name:"fade_move_dropdown"}},[e.active?i("div",{ref:"dropdown__position",staticClass:"dropdown__position"},[i("div",{staticClass:"dropdown__content",style:e.offsetStyle,attrs:{"data-dropdown-content":""}},[i("div",{staticClass:"dropdown__inner"},[e.arrow?i("span",{staticClass:"dropdown__arrow"}):e._e(),i("div",{staticClass:"dropdown__scroller",style:e.innerStyle},[e.title?i("span",{staticClass:"dropdown__title f--small"},[e._v(e._s(e.title))]):e._e(),e._t("dropdown__content")],2)])])]):e._e()])],2)},a=[],r={name:"A17Dropdown",props:{title:{type:String,default:""},position:{type:String,default:"bottom"},width:{type:String,default:"auto"},maxWidth:{type:Number,default:300},maxHeight:{type:Number,default:0},minWidth:{type:Number,default:0},arrow:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1},offset:{type:Number,default:5},sideOffset:{type:Number,default:0},fixed:{type:Boolean,default:!1}},data:function(){return{currentPosition:this.position,currentHeight:100,currentMaxWidth:this.maxWidth,active:!1,originScrollPostion:null,scrollOffset:75}},computed:{dropdownClasses:function(){return{"dropdown--active":this.active,"dropdown--arrow":this.arrow,"dropdown--bottom":this.isPosition("bottom"),"dropdown--top":this.isPosition("top"),"dropdown--left":this.isPosition("left"),"dropdown--right":this.isPosition("right"),"dropdown--center":this.isPosition("center"),"dropdown--full":"full"===this.width,"dropdown--fixed":this.fixed}},offsetStyle:function(){return{"margin-top":this.isPosition("bottom")?this.offset+"px":"","margin-bottom":this.isPosition("top")?this.offset+"px":"",transform:this.sideOffset?"translateX("+this.sideOffset+"px)":"","max-width":this.currentMaxWidth>0&&"full"!==this.width?this.currentMaxWidth+"px":"","min-width":this.minWidth>0?this.minWidth+"px":""}},innerStyle:function(){return{"max-height":this.maxHeight>0?this.maxHeight+"px":"",overflow:this.maxHeight>0?"hidden":"","overflow-y":this.maxHeight>0?"scroll":""}}},methods:{isPosition:function(e){return-1!==this.currentPosition.indexOf(e)},reposition:function(){var e=this.$el.getBoundingClientRect().top+this.$el.offsetHeight+window.pageYOffset+this.offset,t=this.$el.getBoundingClientRect().top+window.pageYOffset-this.offset,i=window.pageYOffset+window.innerHeight;this.currentPosition!==this.position&&(this.currentPosition=this.position),this.isPosition("bottom")?e+this.currentHeight>i&&(this.currentPosition=this.currentPosition.replace(/bottom/i,"top")):this.isPosition("top")&&t-this.currentHeight<window.pageYOffset&&(this.currentPosition=this.currentPosition.replace(/top/i,"bottom"))},getHeight:function(){this.currentHeight=this.$el.querySelector("[data-dropdown-content]")?this.$el.querySelector("[data-dropdown-content]").offsetHeight:100},setMaxWidth:function(){var e=this.$el.getBoundingClientRect();this.isPosition("left")?this.currentMaxWidth=this.maxWidth+e.left>window.innerWidth?window.innerWidth-e.left:this.maxWidth:this.isPosition("right")?this.currentMaxWidth=this.maxWidth+(window.innerWidth-e.right)>window.innerWidth?window.innerWidth-(window.innerWidth-e.right):this.maxWidth:this.currentMaxWidth=this.maxWidth>window.innerWidth?window.innerWidth:this.maxWidth},setFixedPosition:function(){var e=this.$refs.dropdown__cta.getBoundingClientRect();this.isPosition("top")?this.$refs.dropdown__position.style.bottom=Math.round(window.innerHeight-e.bottom+e.height)+"px":this.$refs.dropdown__position.style.top=Math.round(e.top+e.height)+"px",this.isPosition("left")?this.$refs.dropdown__position.style.left=Math.round(e.left)+"px":this.isPosition("right")?this.$refs.dropdown__position.style.right=Math.round(window.innerWidth-e.right)+"px":this.$refs.dropdown__position.style.left=Math.round(e.left+e.width/2)+"px"},closeFromDoc:function(e){var t=e.target;if("scroll"===e.type){if(this.$el.querySelector("[data-dropdown-content]").contains(t))return;var i=window.pageYOffset||document.documentElement.scrollTop;if(i>this.originScrollPostion-this.scrollOffset&&i<this.originScrollPostion+this.scrollOffset)return void this.setFixedPosition()}this.clickable?!this.$el.querySelector("[data-dropdown-content]").contains(t)&&this.clickable&&this.close():this.close()},open:function(e){var t=this;this.active||(document.body.click(),this.timer=setTimeout((function(){t.timer=null,t.active=!0,document.addEventListener("click",t.closeFromDoc,!0),document.addEventListener("touchend",t.closeFromDoc,!0),t.fixed&&(window.addEventListener("scroll",t.closeFromDoc,!0),t.originScrollPostion=window.pageYOffset||document.documentElement.scrollTop),t.$nextTick((function(){this.getHeight(),this.reposition(),this.setMaxWidth(),this.fixed&&this.setFixedPosition()})),t.$emit("open")}),1))},close:function(e){var t=this;if(this.active){if(clearTimeout(this.timer),document.removeEventListener("click",this.closeFromDoc,!0),document.removeEventListener("touchend",this.closeFromDoc,!0),this.fixed)return window.removeEventListener("scroll",this.closeFromDoc,!0),this.originScrollPostion=null,this.active=!1,void this.$emit("close");setTimeout((function(){t.active=!1,t.$emit("close")}),0)}},toggle:function(e){this.active?this.close():this.open()}}},s=r,o=(i("7eaf"),i("8740"),i("2877")),l=Object(o["a"])(s,n,a,!1,null,"0e7b000c",null);t["a"]=l.exports},"14ed":function(e,t,i){"use strict";i("d6a9")},1539:function(e,t,i){"use strict";var n,a=i("a026"),r=i("2f62"),s=i("a34a"),o=i.n(s),l=i("0644"),c=i.n(l),u=i("0429"),d=i("f1af");function f(e){return b(e)||m(e)||p(e)||h()}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(e,t){if(e){if("string"===typeof e)return g(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?g(e,t):void 0}}function m(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function b(e){if(Array.isArray(e))return g(e)}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function v(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function y(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?v(Object(i),!0).forEach((function(t){O(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):v(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function _(e,t,i,n,a,r,s){try{var o=e[r](s),l=o.value}catch(c){return void i(c)}o.done?t(l):Promise.resolve(l).then(n,a)}function w(e){return function(){var t=this,i=arguments;return new Promise((function(n,a){var r=e.apply(t,i);function s(e){_(r,n,a,s,o,"next",e)}function o(e){_(r,n,a,s,o,"throw",e)}s(void 0)}))}}function O(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var E,T={crops:window["TWILL"].STORE.medias.crops||{},showFileName:window["TWILL"].STORE.medias.showFileName||!1,types:window["TWILL"].STORE.medias.types||[],type:"image",connector:null,max:0,filesizeMax:0,widthMin:0,heightMin:0,strict:!0,selected:window["TWILL"].STORE.medias.selected||{},config:window["TWILL"].STORE.medias.config||{useWysiwyg:!1,wysiwygOptions:{}},loading:[],uploadProgress:0,indexToReplace:-1},S={mediasByBlockId:function(e){return function(t){var i=Object.keys(e.selected).filter((function(e){return e.startsWith("blocks[".concat(t,"]"))})),n={};return i.forEach((function(t){return n[t]=e.selected[t]})),n}}},A=(n={},O(n,u["h"].UPDATE_MEDIA_TYPE_TOTAL,(function(e,t){e.types=e.types.map((function(e){return e.value===t.type&&(e.total=t.total),e}))})),O(n,u["h"].UPDATE_REPLACE_INDEX,(function(e,t){e.indexToReplace=t})),O(n,u["h"].INCREMENT_MEDIA_TYPE_TOTAL,(function(e,t){e.types=e.types.map((function(e){return e.value===t&&(e.total=e.total+1),e}))})),O(n,u["h"].DECREMENT_MEDIA_TYPE_TOTAL,(function(e,t){e.types=e.types.map((function(e){return e.value===t&&(e.total=e.total-1),e}))})),O(n,u["h"].UPDATE_MEDIAS,(function(e,t){var i=t.mediaRole,n=t.index,r=t.media;a["a"].set(e.selected[i],n,r)})),O(n,u["h"].SAVE_MEDIAS,(function(e,t){if(e.connector){var i=e.connector,n=e.selected[i]&&e.selected[i].length;if(n&&e.indexToReplace>-1)e.selected[i].splice(e.indexToReplace,1,c()(t[0]));else if(n)t.forEach((function(t){e.selected[i].push(c()(t))}));else{var a={};a[i]=t,e.selected=Object.assign({},e.selected,a)}e.indexToReplace=-1}})),O(n,u["h"].DESTROY_SPECIFIC_MEDIA,(function(e,t){e.selected[t.name]&&(e.selected[t.name].splice(t.index,1),0===e.selected[t.name].length&&a["a"].delete(e.selected,t.name)),e.connector=null})),O(n,u["h"].DESTROY_MEDIAS,(function(e,t){e.selected[t]&&a["a"].delete(e.selected,t),e.connector=null})),O(n,u["h"].REORDER_MEDIAS,(function(e,t){var i={};i[t.name]=t.medias,e.selected=Object.assign({},e.selected,i)})),O(n,u["h"].PROGRESS_UPLOAD_MEDIA,(function(e,t){var i=e.loading.filter((function(e){return e.id===t.id}));i.length?(i[0].error=!1,i[0].progress=t.progress):e.loading.unshift({id:t.id,name:t.name,progress:t.progress,replacementId:t.replacementId,isReplacement:t.isReplacement})})),O(n,u["h"].PROGRESS_UPLOAD,(function(e,t){e.uploadProgress=t})),O(n,u["h"].DONE_UPLOAD_MEDIA,(function(e,t){e.loading.forEach((function(i,n){i.id===t.id&&e.loading.splice(n,1)}))})),O(n,u["h"].ERROR_UPLOAD_MEDIA,(function(e,t){e.loading.forEach((function(i,n){i.id===t.id&&(a["a"].set(e.loading[n],"progress",0),a["a"].set(e.loading[n],"error",!0),a["a"].set(e.loading[n],"errorMessage",t.errorMessage))}))})),O(n,u["h"].UPDATE_MEDIA_CONNECTOR,(function(e,t){e.connector=t&&""!==t?t:null})),O(n,u["h"].UPDATE_MEDIA_MODE,(function(e,t){e.strict=t})),O(n,u["h"].UPDATE_MEDIA_TYPE,(function(e,t){t&&""!==t&&(e.type=t)})),O(n,u["h"].RESET_MEDIA_TYPE,(function(e){e.type=e.types[0].value})),O(n,u["h"].UPDATE_MEDIA_MAX,(function(e,t){e.max=Math.max(0,t)})),O(n,u["h"].UPDATE_MEDIA_FILESIZE_MAX,(function(e,t){e.filesizeMax=Math.max(0,t)})),O(n,u["h"].UPDATE_MEDIA_WIDTH_MIN,(function(e,t){e.widthMin=Math.max(0,t)})),O(n,u["h"].UPDATE_MEDIA_HEIGHT_MIN,(function(e,t){e.heightMin=Math.max(0,t)})),O(n,u["h"].SET_MEDIA_METADATAS,(function(e,t){var i=t.media.context,n=e.selected[i],r=t.value;function s(e){return r.locale?(e.metadatas.custom[r.id]||(e.metadatas.custom[r.id]={}),e.metadatas.custom[r.id][r.locale]=r.value):e.metadatas.custom[r.id]=r.value,e}if(t.media.hasOwnProperty("index")){var o=s(c()(n[t.media.index]));a["a"].set(n,t.media.index,o)}})),O(n,u["h"].DESTROY_MEDIA_CONNECTOR,(function(e){e.connector=null})),O(n,u["h"].SET_MEDIA_CROP,(function(e,t){var i=t.key,n=t.index,r=e.selected[i][n];function s(e){for(var i in e.crops||(e.crops={}),t.values){var n={};n.name=t.values[i].name||i,n.x=t.values[i].x,n.y=t.values[i].y,n.width=t.values[i].width,n.height=t.values[i].height,e.crops[i]=n}return e}var o=s(c()(r));a["a"].set(e.selected[i],n,o)})),O(n,u["h"].ADD_MEDIAS,(function(e,t){var i=t.medias;e.selected=Object.assign({},e.selected,i)})),n),D=O({},d["a"].DUPLICATE_BLOCK,(function(e,t){return w(o.a.mark((function i(){var n,a,r,s,l,c,d;return o.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:n=e.commit,a=e.getters,r=t.block,s=t.id,l=y({},a.mediasByBlockId(r.id)),c=Object.keys(l),d={},c.forEach((function(e){return d[e.replace(r.id,s)]=f(l[e])})),n(u["h"].ADD_MEDIAS,{medias:d});case 7:case"end":return i.stop()}}),i)})))()})),C={state:T,getters:S,mutations:A,actions:D};function P(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var x={success:null,info:null,warning:null,error:null},k={notifByVariant:function(e){return function(t){return e[t]}},notified:function(e){return 0===Object.keys(e).filter((function(t){return null!==e[t]})).length}},M=(E={},P(E,u["j"].SET_NOTIF,(function(e,t){e[t.variant]=t.message})),P(E,u["j"].CLEAR_NOTIF,(function(e,t){e[t]&&(e[t]=null)})),E),I={state:x,getters:k,mutations:M};a["a"].use(r["a"]);var L=!1;t["a"]=new r["a"].Store({modules:{notification:I,mediaLibrary:C},strict:L})},"159c":function(e,t,i){"use strict";t["a"]={methods:{openEditor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$root.$refs.editor&&this.$root.$refs.editor.open(e,t)}}}},"16f9":function(e,t,i){"use strict";var n=i("bfa9"),a=function(){var e=document.querySelectorAll("[data-medialib-btn]");function t(){window["TWILL"].vm&&window["TWILL"].vm.openFreeMediaLibrary()}e.length&&Object(n["a"])(e,(function(e){e.addEventListener("click",(function(i){i.preventDefault(),t(),e.blur()}))}))};t["a"]=a},1800:function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"itemlist"},[i("table",{staticClass:"itemlist__table"},[i("tbody",[e._l(e.itemsLoading,(function(t,n){return i("tr",{directives:[{name:"show",rawName:"v-show",value:!t.isReplacement,expression:"!item.isReplacement"}],key:t.id,staticClass:"itemlist__row"},[i("td",{staticClass:"itemlist__cell itemlist__cell--loading",class:{"itemlist__cell--error":t.error},attrs:{colspan:e.columnsNumber}},[t.error?i("span",{staticClass:"itemlist__progressError"},[e._v("Upload Error")]):i("span",{staticClass:"itemlist__progress"},[i("span",{staticClass:"itemlist__progressBar",style:e.loadingProgress(n)})])])])})),e._l(e.allItems,(function(t,n){return i("tr",{key:t.endpointType+"_"+t.id,staticClass:"itemlist__row",class:{"s--picked":e.isSelected(t,e.keysToCheck),"s--disabled":t.disabled||!!e.replacingMediaIds[t.id]},on:{click:[function(i){return i.ctrlKey||i.shiftKey||i.altKey||i.metaKey?null:(i.preventDefault(),e.toggleSelection(t))},function(i){return i.shiftKey?i.ctrlKey||i.altKey||i.metaKey?null:(i.preventDefault(),e.shiftToggleSelection(t)):null}]}},[t.isReplacement?t.isReplacement?[i("td",{staticClass:"itemlist__cell itemlist__cell--loading",class:{"itemlist__cell--error":t.error},attrs:{colspan:e.columnsNumber}},[t.error?i("span",{staticClass:"itemlist__progressError"},[e._v("Upload Error")]):i("span",{staticClass:"itemlist__progress"},[i("span",{staticClass:"itemlist__progressBar",style:e.loadingProgress(n,"allItems")})])])]:e._e():[t.hasOwnProperty("id")?i("td",{staticClass:"itemlist__cell itemlist__cell--btn"},[i("a17-checkbox",{attrs:{name:"item_list",value:t.endpointType+"_"+t.id,initialValue:e.checkedItems,theme:"bold",disabled:t.disabled}})],1):e._e(),t.hasOwnProperty("thumbnail")?i("td",{staticClass:"itemlist__cell itemlist__cell--thumb"},[i("img",{attrs:{src:t.thumbnail}})]):e._e(),t.hasOwnProperty("name")?i("td",{staticClass:"itemlist__cell itemlist__cell--name"},[t.hasOwnProperty("renderHtml")?i("div",{domProps:{innerHTML:e._s(t.name)}}):i("div",[e._v(e._s(t.name))])]):e._e(),e._l(e.extraColumns,(function(n,a){return i("td",{key:a,staticClass:"itemlist__cell",class:e.rowClass(n)},["size"===n?[e._v(e._s(e._f("uppercase")(t[n])))]:[e._v(e._s(t[n]))]],2)}))]],2)}))],2)])])},a=[],r=i("4e53"),s=i("df63"),o={name:"A17Itemlist",props:{keysToCheck:{type:Array,default:function(){return["id"]}}},mixins:[s["a"]],filters:r["a"],computed:{allItems:function(){var e=this;return this.items.map((function(t){if(e.replacingMediaIds[t.id]){var i=e.itemsLoading.find((function(e){return e.replacementId===t.id}));return i||t}return t}))},columnsNumber:function(){if(!this.items.length)return 0;var e=this.extraColumns.length,t=this.items[0];return t.hasOwnProperty("id")&&e++,t.hasOwnProperty("name")&&e++,t.hasOwnProperty("thumbnail")&&e++,e},extraColumns:function(){if(!this.items.length)return[];var e=this.items[0];return Object.keys(e).filter((function(t){return!["id","name","thumbnail","src","original","edit","crop","deleteUrl","updateUrl","updateBulkUrl","deleteBulkUrl","endpointType","filesizeInMb"].includes(t)&&"string"===typeof e[t]}))},checkedItems:function(){var e=[];return this.selectedItems.length&&this.selectedItems.forEach((function(t){e.push(t.endpointType+"_"+t.id)})),e}},methods:{rowClass:function(e){return"itemlist__cell--"+e},loadingProgress:function(e,t){var i=t?this[t]:this.itemsLoading;return{width:i[e].progress?i[e].progress+"%":"0%"}}}},l=o,c=(i("72f9"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"1df2ac14",null);t["a"]=u.exports},"1a47":function(e,t,i){"use strict";i("f0e3")},"1a8d":function(e,t,i){"use strict";var n=i("0429");t["a"]={props:{type:{type:String,default:"image"}},methods:{openMediaLibrary:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.name,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;this.$store.commit(n["h"].UPDATE_MEDIA_CONNECTOR,t),this.$store.commit(n["h"].UPDATE_MEDIA_TYPE,this.type),this.$store.commit(n["h"].UPDATE_REPLACE_INDEX,i),this.$store.commit(n["h"].UPDATE_MEDIA_MAX,e),this.$store.commit(n["h"].UPDATE_MEDIA_MODE,!0),this.$store.commit(n["h"].UPDATE_MEDIA_FILESIZE_MAX,this.filesizeMax||0),this.$store.commit(n["h"].UPDATE_MEDIA_WIDTH_MIN,this.widthMin||0),this.$store.commit(n["h"].UPDATE_MEDIA_HEIGHT_MIN,this.heightMin||0),this.$root.$refs.mediaLibrary&&this.$root.$refs.mediaLibrary.open()}}}},"1ad4":function(e,t,i){},"1c33":function(e,t,i){"use strict";i("b4c0")},"1d38":function(e,t,i){"use strict";i("afcd")},"1df8":function(e,t,i){},"22f7":function(e,t,i){"use strict";var n="setNotification",a="clearNotification";t["a"]={SET_NOTIF:n,CLEAR_NOTIF:a}},2569:function(e,t,i){"use strict";i.d(t,"d",(function(){return d})),i.d(t,"a",(function(){return f})),i.d(t,"c",(function(){return h})),i.d(t,"b",(function(){return p}));var n=i("dc1c"),a=i("6ffc"),r=i("0227"),s=i("b579"),o=i("26df"),l=i("dee5"),c=i("228d"),u=i("f80c"),d={en:{"date-fns":i("52cf")},"zh-Hans":{"date-fns":i("f2d3"),flatpickr:n["Mandarin"]},ru:{"date-fns":i("9f3f"),flatpickr:a["Russian"]},fr:{"date-fns":i("2ca0"),flatpickr:r["French"]},pl:{"date-fns":i("07ac"),flatpickr:s["Polish"]},de:{"date-fns":i("6e0c"),flatpickr:o["German"]},nl:{"date-fns":i("8424"),flatpickr:l["Dutch"]},pt:{"date-fns":i("81d9"),flatpickr:c["Portuguese"]},tr:{"date-fns":i("dd95"),flatpickr:u["Turkish"]}};function f(){return window["TWILL"].twillLocalization.locale}function h(){return 2===new Intl.DateTimeFormat(f(),{hour:"numeric"}).formatToParts(new Date(2020,0,1,13)).find((function(e){return"hour"===e.type})).value.length}function p(){return h()?"HH:mm":"hh:mm A"}},2732:function(e,t,i){"use strict";i("b057")},2881:function(e,t,i){"use strict";i("753c")},"2c83":function(e,t,i){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var a=function(e){var t,i={el:document,offset:0,duration:250,easing:"linear"},a=Date.now(),r=0,s=!1,o={linear:function(e){return e},easeIn:function(e){return e*e*e},easeOut:function(e){return--e*e*e+1},easeInOut:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1}},l=window.requestAnimationFrame;for(var c in e)"undefined"!==typeof e[c]&&(i[c]=e[c]);function u(e,t){return e<t?e:t}function d(){if(l)try{cancelAnimationFrame(t)}catch(e){}else clearTimeout(t)}function f(){if(s&&0===r)document.documentElement.scrollTop=1,document.body.scrollTop=1,r=1,i.el=document.documentElement.scrollTop?document.documentElement:document.body,requestAnimationFrame(f);else{var e=Date.now(),t=u(1,(e-a)/i.duration),l=o[i.easing](t);i.el.scrollTop=l*(i.offset-r)+r,t<1?h():(d(),"function"===n(i.onComplete).toLowerCase()&&i.onComplete.call(this))}}function h(){t=l?requestAnimationFrame(f):setTimeout((function(){f()}),1e3/60)}i.el===document&&(s=!0,i.el=document.documentElement.scrollTop?document.documentElement:document.body),r=i.el.scrollTop,r!==i.offset&&h()};t["a"]=a},"2d74":function(e,t,i){},"2e01":function(e,t,i){"use strict";var n,a,r=i("0429"),s={name:"A17Button",props:{el:{type:String,default:"button"},type:{type:String,default:"button"},href:{type:String,default:""},target:{type:String,default:""},download:{type:String,default:""},rel:{type:String,default:""},variant:{type:String,default:""},icon:{default:""},disabled:{type:Boolean,default:!1},size:{type:String,default:""}},computed:{buttonClasses:function(){var e=["button",this.size?"button--".concat(this.size):""];return this.variant&&this.variant.split(" ").forEach((function(t){e.push("button--".concat(t))})),this.icon&&e.push("button--icon button--".concat(this.icon)),e}},methods:{onClick:function(e){this.$emit("click")}},render:function(e){var t=this,i={class:this.buttonClasses,attrs:{},on:{click:function(e){t.onClick(e)}}};return"button"===this.el&&(i.attrs.type=this.type,this.disabled&&(i.attrs.disabled=this.disabled)),"a"===this.el&&this.href&&(i.attrs.href=this.href,this.target&&(i.attrs.target=this.target),this.download&&(i.attrs.download=this.download),this.rel&&(i.attrs.rel=this.rel)),e(this.el,i,this.$slots.default)}},o=s,l=(i("a568"),i("2877")),c=Object(l["a"])(o,n,a,!1,null,"0194845b",null),u=c.exports,d=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a17-button",{directives:[{name:"tooltip",rawName:"v-tooltip"}],attrs:{variant:"icon",size:"smallIcon","data-tooltip-title":e.text,"data-tooltip-theme":"large","data-tooltip-placement":"right"}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"info"}})])},f=[],h={name:"A17Infotip",props:{text:{default:""}},computed:{},methods:{onClick:function(){this.$emit("click")}}},p=h,m=(i("6cf8"),Object(l["a"])(p,d,f,!1,null,"2da324be",null)),b=m.exports,g=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("a17-inputframe",{attrs:{error:e.error,note:e.note,label:e.label,locale:e.locale,name:e.name,"label-for":e.uniqId,required:e.required,"add-new":e.addNew},on:{localize:e.updateLocale}},[i("span",{staticClass:"select__input",class:e.selectClasses},[i("select",{directives:[{name:"model",rawName:"v-model",value:e.selectedValue,expression:"selectedValue"}],attrs:{name:e.name,id:e.uniqId,disabled:e.disabled,required:e.required,readonly:e.readonly},on:{change:function(t){var i=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.selectedValue=t.target.multiple?i:i[0]}}},e._l(e.fullOptions,(function(t,n){return i("option",{key:n,domProps:{value:t.value,innerHTML:e._s(t.label)}})})),0)])]),e.addNew?[i("a17-modal-add",{ref:"addModal",attrs:{name:e.name,"form-create":e.addNew,"modal-title":"Add new "+e.label}},[e._t("addModal")],2)]:e._e()],2)},v=[],y=i("825f"),_=i("da6f"),w=i("67ff"),O=i("f03e"),E=i("ed28"),T=i("7d9f"),S={name:"A17Select",mixins:[y["a"],_["a"],O["a"],T["a"],w["a"],E["a"]],props:{size:{type:String,default:""},selected:{default:""},options:{default:function(){return[]}}},data:function(){return{value:this.selected}},computed:{uniqId:function(e){return this.name+"-"+this.randKey},selectClasses:function(){return["small"===this.size?"select__input--small":"","large"===this.size?"select__input--large":""]},selectedValue:{get:function(){return this.value},set:function(e){this.value=e,this.saveIntoStore(e),this.$emit("change",e)}}},methods:{updateFromStore:function(e){this.value=e}},mounted:function(){this.$emit("change",this.value)}},A=S,D=(i("7c45"),Object(l["a"])(A,g,v,!1,null,"47b63144",null)),C=D.exports,P=i("7b5e"),x=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"show",rawName:"v-show",value:e.isCurrentLocale,expression:"isCurrentLocale"}],staticClass:"input",class:e.textfieldClasses,attrs:{hidden:!e.isCurrentLocale||null}},[e.label?i("label",{staticClass:"input__label",attrs:{for:e.labelFor||e.name}},[e._v(" "+e._s(e.label)),e.required?i("span",{staticClass:"input__required"},[e._v("*")]):e._e(),e.hasLocale&&e.languages.length>1?i("span",{directives:[{name:"tooltip",rawName:"v-tooltip"}],staticClass:"input__lang",attrs:{"data-tooltip-title":e.$trans("fields.generic.switch-language")},on:{click:e.onClickLocale}},[e._v(e._s(e.displayedLocale))]):e._e(),e.note?i("span",{staticClass:"input__note f--small"},[e._v(e._s(e.note))]):e._e()]):e._e(),e.addNew?i("a",{staticClass:"input__add",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.openAddModal(t)}}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"add"}}),e._v(" "),i("span",{staticClass:"f--link-underlined--o"},[e._v("Add New")])]):e._e(),e._t("default"),e.error&&e.errorMessage?i("span",{staticClass:"input__errorMessage f--small",domProps:{innerHTML:e._s(e.errorMessage)}}):e._e(),e.otherLocalesError?i("span",{staticClass:"input__errorMessage f--small"},[e._v(e._s(e.errorMessageLocales))]):e._e()],2)},k=[],M={name:"A17InputFrame",mixins:[_["a"],O["a"],T["a"]],props:{addNew:{type:String,default:""}},computed:{textfieldClasses:function(){return{"input--error":this.error,"input--small":"small"===this.size}}},methods:{openAddModal:function(){this.$parent.$refs.addModal&&this.$parent.$refs.addModal.open()}}},I=M,L=(i("dcef"),Object(l["a"])(I,x,k,!1,null,"74021712",null)),j=L.exports,R=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a17-inputframe",{attrs:{error:e.error,note:e.note,label:e.label,name:e.name,required:e.required}},[i("div",{staticClass:"form__field",class:e.textfieldClasses},[i("input",{attrs:{type:"text",placeholder:e.placeholder,name:e.name,id:e.name,disabled:e.disabled,required:e.required,readonly:e.readonly,autofocus:e.autofocus,autocomplete:e.autocomplete,maxlength:"7"},domProps:{value:e.value},on:{focus:e.onFocus,blur:e.onBlur,input:e.onInput}}),i("a17-dropdown",{ref:"colorDropdown",staticClass:"form__field--color",attrs:{position:"bottom-right",arrow:!0,offset:15,minWidth:300,clickable:!0,sideOffset:15},on:{close:e.saveIntoStore}},[i("span",{staticClass:"form__field--colorBtn",style:e.bcgStyle,on:{click:function(t){return e.$refs.colorDropdown.toggle()}}}),i("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},[i("a17-colorpicker",{attrs:{color:e.value},on:{change:e.updateValueFromPicker}})],1)])],1)])},N=[],B=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"colorpicker"},[i("div",{staticClass:"colorpicker__color"},[i("div",{ref:"satContainer",staticClass:"colorpicker__saturation",style:{background:e.bgColor},on:{mousedown:function(t){return e.handleMouseDown("saturation")}}},[i("div",{staticClass:"colorpicker__saturation--white"}),i("div",{staticClass:"colorpicker__saturation--black"}),i("div",{staticClass:"colorpicker__saturation-pointer",style:{top:e.satPointerTop,left:e.satPointerLeft}},[i("div",{staticClass:"colorpicker__saturation-circle"})])]),i("div",{staticClass:"colorpicker__hue colorpicker__hue--vertical"},[i("div",{ref:"hueContainer",staticClass:"colorpicker__hue-container",on:{mousedown:function(t){return e.handleMouseDown("hue")}}},[i("div",{staticClass:"colorpicker__hue-pointer",style:{top:e.huePointerTop,left:e.huePointerLeft}},[i("div",{staticClass:"colorpicker__hue-picker"})])])])])])},$=[],F=i("66cb"),U=i.n(F),V=i("0f32"),q=i.n(V),W={name:"a17ColorPicker",props:{color:{type:String,required:!0},direction:{type:String,default:"vertical"}},data:function(){return{currentColor:U()(this.color),currentColorHue:U()(this.color).toHsv().h,currentTarget:"",pullDirection:""}},computed:{bgColor:function(){return"hsl(".concat(this.currentColorHue,", 100%, 50%)")},satPointerTop:function(){return-100*this.currentColor.toHsv().v+1+100+"%"},satPointerLeft:function(){return 100*this.currentColor.toHsv().s+"%"},huePointerTop:function(){return"vertical"===this.direction?0===this.currentColorHue&&"right"===this.pullDirection?0:-100*this.currentColorHue/360+100+"%":0},huePointerLeft:function(){return"vertical"===this.direction?0:0===this.currentColorHue&&"right"===this.pullDirection?"100%":100*this.currentColorHue/360+"%"}},methods:{throttle:q()((function(e,t){e(t)}),20,{leading:!0,trailing:!1}),satHandleChange:function(e,t){!t&&e.preventDefault();var i=this.$refs.satContainer;if(i){var n=i.clientWidth,a=i.clientHeight,r=i.getBoundingClientRect().left+window.pageXOffset,s=i.getBoundingClientRect().top+window.pageYOffset,o=e.pageX||(e.touches?e.touches[0].pageX:0),l=e.pageY||(e.touches?e.touches[0].pageY:0),c=o-r,u=l-s;c<0?c=0:c>n?c=n:u<0?u=0:u>a&&(u=a);var d=c/n,f=-u/a+1;f=f>0?f:0,f=f>1?1:f,this.throttle(this.onChange,{h:this.currentColorHue,s:d,v:f,a:this.currentColor.toHsv().a})}},hueHandleChange:function(e,t){!t&&e.preventDefault();var i,n,a=this.$refs.hueContainer,r=a.clientWidth,s=a.clientHeight,o=a.getBoundingClientRect().left+window.pageXOffset,l=a.getBoundingClientRect().top+window.pageYOffset,c=e.pageX||(e.touches?e.touches[0].pageX:0),u=e.pageY||(e.touches?e.touches[0].pageY:0),d=c-o,f=u-l;"vertical"===this.direction?f<0?i=360:f>s?i=0:(n=-100*f/s+100,i=360*n/100):d<0?i=0:d>r?i=360:(n=100*d/r,i=360*n/100),this.currentColorHue!==i&&this.throttle(this.onChange,{h:i,s:this.currentColor.toHsl().s,l:this.currentColor.toHsl().l,a:this.currentColor.toHsl().a,source:"hsl"})},handleMouseDown:function(e){this.currentTarget=e,"saturation"===this.currentTarget?(window.addEventListener("mousemove",this.satHandleChange),window.addEventListener("mouseup",this.satHandleChange)):(window.addEventListener("mousemove",this.hueHandleChange),window.addEventListener("mouseup",this.hueHandleChange)),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp:function(e){this.unbindEventListeners()},unbindEventListeners:function(){"saturation"===this.currentTarget?(window.removeEventListener("mousemove",this.satHandleChange),window.removeEventListener("mouseup",this.satHandleChange)):(window.removeEventListener("mousemove",this.hueHandleChange),window.removeEventListener("mouseup",this.hueHandleChange)),window.removeEventListener("mouseup",this.handleMouseUp)},onChange:function(e){this.currentColor=U()(e),this.currentColorHue=e.h,this.$emit("change",this.currentColor.toHexString())}}},H=W,z=(i("b773"),Object(l["a"])(H,B,$,!1,null,null,null)),K=z.exports,G={name:"a17ColorField",mixins:[_["a"],O["a"],w["a"]],props:{name:{type:String,required:!0},initialValue:{default:""},defaultValue:{default:""}},components:{"a17-colorpicker":K},data:function(){return{focused:!1,value:this.initialValue}},mounted:function(){""===this.value&&""!==this.defaultValue&&this.updateValue(this.defaultValue)},computed:{bcgStyle:function(){return{"background-color":""!==this.value?this.value:"transparent"}},textfieldClasses:function(){return{"s--focus":this.focused,"s--disabled":this.disabled}}},methods:{updateFromStore:function(e){"undefined"===typeof e&&(e=""),this.value!==e&&(this.value=e)},updateValueFromPicker:function(e){this.value!==e&&(this.value=e)},updateValue:function(e){this.value!==e&&(this.value=e,this.saveIntoStore())},onBlur:function(e){var t=e.target.value;this.updateValue(t),this.focused=!1},onFocus:function(){this.focused=!0},onInput:function(){}}},Y=G,X=(i("60d1"),Object(l["a"])(Y,R,N,!1,null,"2b36e193",null)),J=X.exports,Q=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a17-inputframe",{attrs:{error:e.error,note:e.note,label:e.label,locale:e.locale,size:e.size,name:e.name,"label-for":e.uniqId,required:e.required},on:{localize:e.updateLocale}},[i("div",{staticClass:"input__field",class:e.textfieldClasses,attrs:{dir:e.dirLocale}},[e.hasPrefix?i("span",{staticClass:"input__prefix"},[e._v(e._s(e.prefix))]):e._e(),"textarea"===e.type?i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],ref:"clone",staticClass:"input__clone",attrs:{rows:e.rows,disabled:"true"},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}}):e._e(),"textarea"===e.type?i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],ref:"input",attrs:{name:e.name,id:e.uniqId,placeholder:e.placeholder,disabled:e.disabled,required:e.required,readonly:e.readonly,rows:e.rows,autofocus:e.autofocus},domProps:{value:e.value},on:{focus:e.onFocus,blur:e.onBlur,input:[function(t){t.target.composing||(e.value=t.target.value)},e.onInput]}}):e._e(),"number"==e.type?i("input",{ref:"input",attrs:{type:"number",placeholder:e.placeholder,name:e.name,id:e.uniqId,disabled:e.disabled,maxlength:e.displayedMaxlength,required:e.required,readonly:e.readonly,autofocus:e.autofocus,autocomplete:e.autocomplete},domProps:{value:e.value},on:{focus:e.onFocus,blur:e.onBlur,input:e.onInput}}):e._e(),"text"==e.type?i("input",{ref:"input",attrs:{type:"text",placeholder:e.placeholder,name:e.name,id:e.uniqId,disabled:e.disabled,maxlength:e.displayedMaxlength,required:e.required,readonly:e.readonly,autofocus:e.autofocus,autocomplete:e.autocomplete},domProps:{value:e.value},on:{focus:e.onFocus,blur:e.onBlur,input:e.onInput}}):e._e(),"email"==e.type?i("input",{ref:"input",attrs:{type:"email",placeholder:e.placeholder,name:e.name,id:e.uniqId,disabled:e.disabled,maxlength:e.displayedMaxlength,required:e.required,readonly:e.readonly,autofocus:e.autofocus,autocomplete:e.autocomplete,pattern:"[^@\\s]+@[^@\\s]+\\.[^@\\s]+"},domProps:{value:e.value},on:{focus:e.onFocus,blur:e.onBlur,input:e.onInput}}):e._e(),"password"==e.type?i("input",{ref:"input",attrs:{type:"password",placeholder:e.placeholder,name:e.name,id:e.uniqId,disabled:e.disabled,maxlength:e.displayedMaxlength,required:e.required,readonly:e.readonly,autofocus:e.autofocus,autocomplete:e.autocomplete},domProps:{value:e.value},on:{focus:e.onFocus,blur:e.onBlur,input:e.onInput}}):e._e(),"url"===e.type?i("input",{ref:"input",attrs:{type:"url",placeholder:e.placeholder,name:e.name,id:e.uniqId,disabled:e.disabled,maxlength:e.displayedMaxlength,required:e.required,readonly:e.readonly,autofocus:e.autofocus,autocomplete:e.autocomplete},domProps:{value:e.value},on:{focus:e.onFocus,blur:e.onBlur,input:e.onInput}}):e._e(),e.hasMaxlength?i("span",{staticClass:"input__limit f--tiny",class:e.limitClasses},[e._v(e._s(e.counter))]):e._e()])])},Z=[],ee=i("b047"),te=i.n(ee),ie={name:"A17Textfield",mixins:[y["a"],_["a"],O["a"],T["a"],w["a"]],props:{name:{type:String,required:!0},type:{type:String,default:"text"},prefix:{type:String,default:""},maxlength:{type:Number,default:0},initialValue:{default:""},rows:{type:Number,default:5}},computed:{uniqId:function(e){return this.name+"-"+this.randKey},textfieldClasses:function(){return{"input__field--textarea":"textarea"===this.type,"input__field--small":"small"===this.size&&"textarea"===!this.type,"s--focus":this.focused,"s--disabled":this.disabled}},hasMaxlength:function(){return this.maxlength>0},hasPrefix:function(){return""!==this.prefix},displayedMaxlength:function(){return!!this.hasMaxlength&&this.maxlength},limitClasses:function(){return{"input__limit--red":this.counter<.1*this.maxlength}}},data:function(){return{value:this.initialValue,lastSavedValue:this.initialValue,focused:!1,counter:0}},watch:{initialValue:function(){this.updateValue(this.initialValue)}},methods:{updateFromStore:function(e){"undefined"===typeof e&&(e=""),this.value!==e&&this.updateValue(e)},updateValue:function(e){this.value=e,this.updateCounter(e)},updateAndSaveValue:function(e){this.updateValue(e),this.lastSavedValue=this.value,this.saveIntoStore()},updateCounter:function(e){this.maxlength>0&&(this.counter=this.maxlength-(e?e.toString().length:0))},onFocus:function(e){this.focused=!0,this.resizeTextarea(),this.$emit("focus")},onBlur:function(e){var t=e.target.value;this.updateAndSaveValue(t),this.focused=!1,this.$emit("blur",t)},onInput:function(e){this.preventSubmit(),this._onInputInternal(e)},_onInputInternal:te()((function(e){var t=e.target.value;this.updateAndSaveValue(t),this.$emit("change",t),this.allowSubmit()}),250),resizeTextarea:function(){if("textarea"===this.type){var e=this.$refs.clone,t=15;if(e){var i=e.scrollHeight;this.$refs.input.style.minHeight="".concat(i+t,"px")}}}},mounted:function(){this.updateCounter(this.value),"textarea"===this.type&&(this.resizeTextarea(),this.$watch("value",this.resizeTextarea),this.$nextTick((function(){window.addEventListener("resize",this.resizeTextarea)})))},beforeDestroy:function(){"textarea"===this.type&&window.removeEventListener("resize",this.resizeTextarea)}},ne=ie,ae=(i("7f29"),Object(l["a"])(ne,Q,Z,!1,null,"71218911",null)),re=ae.exports,se=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"form__input form__input--hidden"},[i("input",{attrs:{type:"hidden",name:e.name,id:e.uniqId},domProps:{value:e.value}})])},oe=[],le={name:"A17HiddenField",mixins:[y["a"],_["a"],w["a"]],props:{name:{type:String,required:!0},initialValue:{default:""}},computed:{uniqId:function(){return this.name+"-"+this.randKey}},data:function(){return{value:this.initialValue}},watch:{initialValue:function(){this.value=this.initialValue}},methods:{updateFromStore:function(e){"undefined"===typeof e&&(e=""),this.value!==e&&(this.value=e)}}},ce=le,ue=Object(l["a"])(ce,se,oe,!1,null,null,null),de=ue.exports,fe=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a17-inputframe",{attrs:{error:e.error,note:e.note,label:e.label,locale:e.locale,size:e.size,name:e.name,required:e.required},on:{localize:e.updateLocale}},[i("div",{staticClass:"wysiwyg__outer",class:e.textfieldClasses},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],attrs:{name:e.name,type:"hidden"},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}}),e.editSource?[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.activeSource,expression:"!activeSource"}],staticClass:"wysiwyg",class:e.textfieldClasses,attrs:{dir:e.dirLocale}},[i("div",{ref:"editorcontainer",staticClass:"wysiwyg__editor",class:{"wysiwyg__editor--limitHeight":e.limitHeight}},[i("div",{ref:"editor",staticClass:"wysiwyg__editor-inner"})]),e.shouldShowCounter?i("span",{staticClass:"wysiwyg__limit f--tiny",class:e.limitClasses},[e._v(e._s(e.counter))]):e._e()]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.activeSource,expression:"activeSource"}],staticClass:"form__field form__field--textarea",attrs:{dir:e.dirLocale}},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],style:e.textareaHeight,attrs:{placeholder:e.placeholder,autofocus:e.autofocus},domProps:{value:e.value},on:{change:e.updateSourcecode,input:function(t){t.target.composing||(e.value=t.target.value)}}})]),i("a17-button",{staticClass:"wysiwyg__button",attrs:{variant:"ghost"},on:{click:e.toggleSourcecode}},[e._v("Source code")])]:[i("div",{staticClass:"wysiwyg",class:e.textfieldClasses,attrs:{dir:e.dirLocale}},[i("div",{ref:"editorcontainer",staticClass:"wysiwyg__editor",class:{"wysiwyg__editor--limitHeight":e.limitHeight}},[i("div",{ref:"editor",staticClass:"wysiwyg__editor-inner"})]),e.shouldShowCounter?i("span",{staticClass:"wysiwyg__limit f--tiny",class:e.limitClasses},[e._v(e._s(e.counter))]):e._e()])]],2)])},he=[],pe=i("2f62"),me=(i("8096"),i("14e1"),i("a753"),i("9339")),be=i.n(me);function ge(e){return ge="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ge(e)}function ve(e,t,i){return ve="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var n=ye(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(i):a.value}},ve(e,t,i||e)}function ye(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=xe(e),null===e)break;return e}function _e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function we(e,t,i){return t&&_e(e.prototype,t),i&&_e(e,i),e}function Oe(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Te(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Se(e,t)}function Se(e,t){return Se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Se(e,t)}function Ae(e){var t=Pe();return function(){var i,n=xe(e);if(t){var a=xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return De(this,i)}}function De(e,t){return!t||"object"!==ge(t)&&"function"!==typeof t?Ce(e):t}function Ce(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pe(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function xe(e){return xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xe(e)}be.a.debug("error");var ke=be.a.import("delta"),Me=be.a.import("blots/embed"),Ie=be.a.import("blots/inline"),Le=be.a.import("formats/link"),je=be.a.import("blots/block/embed"),Re=function(e){Te(i,e);var t=Ae(i);function i(){return Ee(this,i),t.apply(this,arguments)}return i}(je);Re.blotName="divider",Re.tagName="hr",be.a.register(Re);var Ne=function(e){Te(i,e);var t=Ae(i);function i(){return Ee(this,i),t.apply(this,arguments)}return we(i,[{key:"length",value:function(){return 1}},{key:"value",value:function(){return"\n"}},{key:"insertInto",value:function(e,t){Me.prototype.insertInto.call(this,e,t)}}]),i}(Me);Oe(Ne,"blotName","softbreak"),Oe(Ne,"tagName","br"),Oe(Ne,"className","softbreak"),be.a.register(Ne);var Be={key:13,shiftKey:!0,handler:function(e){var t=this.quill.getLeaf(e.index)[0],i=this.quill.getLeaf(e.index+1)[0];this.quill.insertEmbed(e.index,"softbreak",!0,"user"),null!==i&&t.parent===i.parent||this.quill.insertEmbed(e.index,"softbreak",!0,"user"),this.quill.setSelection(e.index+1,be.a.sources.SILENT)}};function $e(){var e=new ke;return e.insert({softbreak:""}),e}var Fe={blotName:"anchor",tagName:"SPAN"},Ue=function(e){Te(i,e);var t=Ae(i);function i(){return Ee(this,i),t.apply(this,arguments)}return we(i,[{key:"format",value:function(e,t){if(e!==this.statics.blotName||!t)return ve(xe(i.prototype),"format",this).call(this,e,t);t=this.constructor.sanitize(t),this.domNode.setAttribute("id",t)}}],[{key:"create",value:function(e){var t=ve(xe(i),"create",this).call(this,e);return e=this.sanitize(e),t.setAttribute("id",e),t.className="ql-anchor",t}},{key:"sanitize",value:function(e){return e.replace(/\s+/g,"-").toLowerCase()}},{key:"formats",value:function(e){return e.getAttribute("id")}}]),i}(Ie);Ue.blotName=Fe.blotName,Ue.tagName=Fe.tagName,be.a.register(Ue);var Ve=function(e){Te(i,e);var t=Ae(i);function i(){return Ee(this,i),t.apply(this,arguments)}return we(i,[{key:"format",value:function(e,t){if(ve(xe(i.prototype),"format",this).call(this,e,t),e===this.statics.blotName&&t){var n=/^((http|https|ftp):\/\/)/;n.test(t)?window["TWILL"].STORE.form.baseUrl&&t.startsWith(window["TWILL"].STORE.form.baseUrl)?this.domNode.removeAttribute("target"):this.domNode.setAttribute("target","_blank"):this.domNode.removeAttribute("target")}}}],[{key:"create",value:function(e){var t=ve(xe(i),"create",this).call(this,e);e=this.sanitize(e),t.setAttribute("href",e);var n=/^((http|https|ftp):\/\/)/;if(n.test(e)||t.removeAttribute("target"),window["TWILL"].STORE.form.baseUrl){var a=new URL(window["TWILL"].STORE.form.baseUrl);e.startsWith(a.origin)&&t.removeAttribute("target")}return t}}]),i}(Le);function qe(e){return'<span class="icon icon--wysiwyg_'+e+'" aria-hidden="true"><svg><title>'+e+'</title><use xlink:href="#icon--wysiwyg_'+e+'"></use></svg></span>'}be.a.register(Ve);var We=be.a.import("ui/icons");We.bold=qe("bold"),We.italic=qe("italic"),We.anchor=qe("anchor"),We.link=qe("link"),We.header["1"]=qe("header"),We.header["2"]=qe("header-2"),We.header["3"]=qe("header-3"),We.header["4"]=qe("header-4"),We.header["5"]=qe("header-5"),We.header["6"]=qe("header-6"),We.divider=qe("hr");var He=["background","bold","color","font","code","italic","link","size","strike","script","underline","blockquote","header","indent","list","align","direction","code-block","formula","image","video","divider"];function ze(e){var t=[Ne.blotName,Fe.blotName];function i(e){t.indexOf(e)>-1||-1===He.indexOf(e)||t.push(e)}return e.forEach((function(e){if("object"===ge(e))for(var t in e)i(t);"string"===typeof e&&i(e)})),t}var Ke={Quill:be.a,lineBreak:{handle:Be,clipboard:[Ne.tagName,$e]},getFormats:ze},Ge=i("7a77");function Ye(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Xe(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(i),!0).forEach((function(t){Je(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ye(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Je(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var Qe="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.12.0/build/highlight.min.js",Ze={name:"A17Wysiwyg",mixins:[_["a"],O["a"],T["a"],w["a"]],props:{editSource:{type:Boolean,default:!1},showCounter:{type:Boolean,default:!0},type:{type:String,default:"text"},prefix:{type:String,default:""},maxlength:{type:Number,default:0},initialValue:{default:""},limitHeight:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}}},computed:Xe({textareaHeight:function(){return{height:this.editorHeight}},textfieldClasses:function(){return{"wysiwyg__outer--limitHeight":this.limitHeight,"s--disabled":this.disabled,"s--focus":this.focused}},hasMaxlength:function(){return this.maxlength>0},shouldShowCounter:function(){return this.hasMaxlength&&this.showCounter},limitClasses:function(){return{"wysiwyg__limit--red":this.counter<.1*this.maxlength}}},Object(pe["c"])({baseUrl:function(e){return e.form.baseUrl}})),data:function(){return{value:this.initialValue,editorHeight:50,toolbarHeight:52,focused:!1,activeSource:!1,quill:null,counter:0,localOptions:{},defaultModules:{toolbar:["bold","italic","underline","link"],clipboard:{matchVisual:!1,matchers:[Ke.lineBreak.clipboard]},keyboard:{bindings:{lineBreak:Ke.lineBreak.handle}},syntax:!1}}},methods:{initQuill:function(e){var t=this;if(this.quill=new Ke.Quill(this.$refs.editor,e),this.value&&this.updateEditor(this.value),this.quill.on("text-change",(function(e,i,n){var a=t.$refs.editor.children[0].innerHTML;"<p><br></p>"===a&&(a=""),t.value=a,t.$emit("input",t.value),t.$emit("change",t.value),t.updateCounter(t.getTextLength()),"user"===n&&t.textUpdate()})),this.quill.on("selection-change",(function(e,i,n){e?(t.focused=!0,t.$emit("focus")):(t.focused=!1,"user"===n&&t.saveIntoStore(),t.$emit("blur"))})),this.disabled&&this.quill.enable(!1),this.baseUrl){var i=this.quill.theme.tooltip,n=i.root;if(n){var a=n.querySelector("input[data-link]");a&&a.setAttribute("data-link",this.baseUrl)}}"rtl"===this.dirLocale&&(this.quill.format("direction","rtl"),this.quill.format("align","right")),this.hasMaxlength&&this.showCounter&&this.updateCounter(this.getTextLength()),this.$emit("ready",this.quill)},insertDivider:function(){var e=this.quill.getSelection(!0);e&&(this.quill.insertText(e.index,"\n"),this.quill.insertEmbed(e.index+1,"divider",!0),this.quill.setSelection(e.index+2))},anchorHandler:function(e){if(!0===e)e=prompt("Enter anchor:");else{var t=this.quill.getSelection(),i=this.quill.getFormat(t).anchor||"";e=prompt("Edit anchor:",i)}this.quill.format("anchor",e)},updateEditor:function(e){var t=this.quill.clipboard.convert(e);this.quill.setContents(t,"silent")},updateFromStore:function(e){"undefined"===typeof e&&(e=""),this.value!==e&&(this.value=e,this.updateEditor(e))},textUpdate:function(){this.preventSubmit(),this._textUpdateInternal()},_textUpdateInternal:te()((function(){this.saveIntoStore(),this.allowSubmit()}),600),toggleSourcecode:function(){this.editorHeight=Math.max(50,this.$refs.editor.clientHeight)+this.toolbarHeight-1+"px",this.activeSource=!this.activeSource,this.updateSourcecode()},updateSourcecode:function(){this.updateEditor(this.value),this.saveIntoStore()},updateCounter:function(e){this.showCounter&&this.hasMaxlength&&(this.counter=this.maxlength-e)},getTextLength:function(){return this.quill.getLength()-(0===this.value.length?2:1)}},mounted:function(){var e=this;if(!this.quill){var t=JSON.parse(JSON.stringify(this.options));t.theme=t.theme||"snow",t.boundary=t.boundary||document.body,t.modules=t.modules||this.defaultModules;var i={container:void 0!==t.modules.toolbar?t.modules.toolbar:this.defaultModules.toolbar,handlers:{}};if(t.modules.clipboard=void 0!==t.modules.clipboard?t.modules.clipboard:this.defaultModules.clipboard,t.modules.keyboard=void 0!==t.modules.keyboard?t.modules.keyboard:this.defaultModules.keyboard,t.modules.syntax=void 0!==t.modules.syntax&&t.modules.syntax?{highlight:function(e){return hljs.highlightAuto(e).value}}:this.defaultModules.syntax,t.placeholder=t.placeholder||this.placeholder,t.readOnly=void 0!==t.readOnly?t.readOnly:this.readonly,t.formats=Ke.getFormats(t.modules.toolbar),t.bounds=this.$refs.editor,t.scrollingContainer="html",i.container.includes("anchor")&&(i.handlers.anchor=this.anchorHandler),i.container.includes("divider")&&(i.handlers.divider=this.insertDivider),t.modules.toolbar=i,this.localOptions=t,t.modules.syntax&&"undefined"===typeof hljs){var n="highlight-js-script";Object(Ge["a"])(n,Qe,"text/javascript").then((function(){e.initQuill(t)}))}else this.initQuill(t)}},beforeDestroy:function(){this.quill=null}},et=Ze,tt=(i("f3a8"),i("a91e"),i("42bd"),Object(l["a"])(et,fe,he,!1,null,"13fbb58d",null)),it=tt.exports,nt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a17-inputframe",{attrs:{error:e.error,note:e.note,label:e.label,locale:e.locale,size:e.size,name:e.name,required:e.required},on:{localize:e.updateLocale}},[i("div",{staticClass:"wysiwyg__outer"},[i("div",{directives:[{name:"show",rawName:"v-show",value:!e.activeSource,expression:"!activeSource"}],staticClass:"wysiwyg",class:e.textfieldClasses,attrs:{dir:e.dirLocale}},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],attrs:{name:e.name,type:"hidden"},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}}),i("div",{ref:"editor",staticClass:"wysiwyg__editor"},[i("editor-menu-bar",{attrs:{editor:e.editor},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.commands,a=t.isActive;return[i("div",{staticClass:"wysiwyg__menubar"},[e.toolbar.header?[e.toolbar.header?i("wysiwyg-menu-bar-btn",{attrs:{icon:"paragraph",isActive:a.paragraph()},on:{"btn:click":n.paragraph}}):e._e(),e._l(e.headingOptions,(function(e){return i("wysiwyg-menu-bar-btn",{key:e,attrs:{icon:e>1?"header-"+e:"header",isActive:a.heading({level:e})},on:{"btn:click":function(t){return n.heading({level:e})}}})}))]:e._e(),e.toolbar.bold?i("wysiwyg-menu-bar-btn",{attrs:{icon:"bold",isActive:a.bold()},on:{"btn:click":n.bold}}):e._e(),e.toolbar.italic?i("wysiwyg-menu-bar-btn",{attrs:{icon:"italic",isActive:a.italic()},on:{"btn:click":n.italic}}):e._e(),e.toolbar.strike?i("wysiwyg-menu-bar-btn",{attrs:{icon:"strike",isActive:a.strike()},on:{"btn:click":n.strike}}):e._e(),e.toolbar.underline?i("wysiwyg-menu-bar-btn",{attrs:{icon:"underline",isActive:a.underline()},on:{"btn:click":n.underline}}):e._e(),e.toolbar.bullet?i("wysiwyg-menu-bar-btn",{attrs:{icon:"ul",isActive:a.bullet_list()},on:{"btn:click":n.bullet_list}}):e._e(),e.toolbar.ordered?i("wysiwyg-menu-bar-btn",{attrs:{icon:"ol",isActive:a.ordered_list()},on:{"btn:click":n.ordered_list}}):e._e(),e.toolbar.blockquote?i("wysiwyg-menu-bar-btn",{attrs:{icon:"quote",isActive:a.blockquote()},on:{"btn:click":n.blockquote}}):e._e(),e.toolbar["code-block"]?i("wysiwyg-menu-bar-btn",{attrs:{icon:"code",isActive:a.code_block()},on:{"btn:click":n.code_block}}):e._e(),e.toolbar["code"]?i("wysiwyg-menu-bar-btn",{attrs:{icon:"code",isActive:a.code()},on:{"btn:click":n.code}}):e._e(),e.toolbar.table?[i("wysiwyg-menu-bar-btn",{attrs:{icon:"table"},on:{"btn:click":function(e){return n.createTable({rowsCount:3,colsCount:3,withHeaderRow:!0})}}}),a.table()?i("div",{staticClass:"wysiwyg__menubar-table-buttons"},[i("wysiwyg-menu-bar-btn",{attrs:{icon:"delete_table"},on:{"btn:click":n.deleteTable}}),i("wysiwyg-menu-bar-btn",{attrs:{icon:"add_col_before"},on:{"btn:click":n.addColumnBefore}}),i("wysiwyg-menu-bar-btn",{attrs:{icon:"add_col_after"},on:{"btn:click":n.addColumnAfter}}),i("wysiwyg-menu-bar-btn",{attrs:{icon:"delete_col"},on:{"btn:click":n.deleteColumn}}),i("wysiwyg-menu-bar-btn",{attrs:{icon:"add_row_before"},on:{"btn:click":n.addRowBefore}}),i("wysiwyg-menu-bar-btn",{attrs:{icon:"add_row_after"},on:{"btn:click":n.addRowAfter}}),i("wysiwyg-menu-bar-btn",{attrs:{icon:"delete_row"},on:{"btn:click":n.deleteRow}}),i("wysiwyg-menu-bar-btn",{attrs:{icon:"combine_cells"},on:{"btn:click":n.toggleCellMerge}})],1):e._e()]:e._e(),i("wysiwyg-menu-bar-btn",{attrs:{icon:"undo"},on:{"btn:click":n.undo}}),i("wysiwyg-menu-bar-btn",{attrs:{icon:"redo"},on:{"btn:click":n.redo}})],2)]}}])}),i("div",{staticClass:"wysiwyg__contentWrapper",class:{"wysiwyg__contentWrapper--limitHeight":e.limitHeight}},[i("editor-content",{staticClass:"wysiwyg__content",attrs:{editor:e.editor}})],1)],1),e.shouldShowCounter?i("span",{staticClass:"input__limit f--tiny",class:e.limitClasses},[e._v(e._s(e.counter))]):e._e()]),e.editSource?[i("div",{directives:[{name:"show",rawName:"v-show",value:e.activeSource,expression:"activeSource"}],staticClass:"form__field form__field--textarea"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],style:e.textareaHeight,attrs:{placeholder:e.placeholder,autofocus:e.autofocus},domProps:{value:e.value},on:{change:e.updateSourcecode,input:function(t){t.target.composing||(e.value=t.target.value)}}})]),i("a17-button",{staticClass:"wysiwyg__button",attrs:{variant:"ghost"},on:{click:e.toggleSourcecode}},[e._v("Source code ")])]:e._e()],2)])},at=[],rt=i("cd42"),st=i("f23d"),ot=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("button",{staticClass:"wysiwyg__menubar-button",class:{"is-active":e.isActive},attrs:{type:"button"},on:{click:e.handleClick}},[i("span",{staticClass:"icon",class:"icon--wysiwyg_"+e.icon,attrs:{"aria-hidden":"true"}},[i("svg",[i("title",[e._v(e._s(e.icon))]),i("use",{attrs:{"xlink:href":"#icon--wysiwyg_"+e.icon}})])])])},lt=[],ct={name:"WysiwygMenuBarButton",props:{icon:{type:String,required:!0},isActive:{type:Boolean,default:!1}},methods:{handleClick:function(){this.$emit("btn:click")}}},ut=ct,dt=(i("9f00"),i("7bf9"),Object(l["a"])(ut,ot,lt,!1,null,"f7f0e9b2",null)),ft=dt.exports;function ht(e){return ht="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ht(e)}function pt(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function mt(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?pt(Object(i),!0).forEach((function(t){bt(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):pt(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function bt(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var gt={name:"A17Wysiwyg",mixins:[_["a"],O["a"],T["a"],w["a"]],props:{editSource:{type:Boolean,default:!1},showCounter:{type:Boolean,default:!0},type:{type:String,default:"text"},prefix:{type:String,default:""},maxlength:{type:Number,default:0},initialValue:{default:""},limitHeight:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{modules:{}}}}},computed:mt({textareaHeight:function(){return{height:this.editorHeight}},textfieldClasses:function(){return{"s--disabled":this.disabled,"s--focus":this.focused}},hasMaxlength:function(){return this.maxlength>0},shouldShowCounter:function(){return this.hasMaxlength&&this.showCounter},limitClasses:function(){return{"input__limit--red":this.counter<.1*this.maxlength}}},Object(pe["c"])({baseUrl:function(e){return e.form.baseUrl}})),components:{EditorContent:rt["b"],EditorMenuBar:rt["c"],"wysiwyg-menu-bar-btn":ft},data:function(){return{value:this.initialValue,editorHeight:50,toolbarHeight:52,toolbar:this.options.modules.toolbar?this.options.modules.toolbar.reduce((function(e,t){return t.list?(e[t.list]=!0,e):"object"===ht(t)?mt(mt({},e),t):(e[t]=!0,e)}),{}):{bold:!0,italic:!0,underline:!0,link:!0},headingOptions:[],focused:!1,activeSource:!1,counter:0,editor:null}},methods:{updateEditor:function(e){this.editor&&this.editor.setContent(e)},updateFromStore:function(e){"undefined"===typeof e&&(e=""),this.value!==e&&(this.value=e,this.updateEditor(e))},textUpdate:function(){this.preventSubmit(),this._textUpdateInternal()},_textUpdateInternal:te()((function(){this.saveIntoStore(),this.allowSubmit()}),600),toggleSourcecode:function(){this.editorHeight=Math.max(50,this.$refs.editor.clientHeight)+this.toolbarHeight-1+"px",this.activeSource=!this.activeSource,this.updateSourcecode()},updateSourcecode:function(){this.updateEditor(this.value),this.saveIntoStore()},updateCounter:function(){this.showCounter&&this.hasMaxlength&&(this.counter=this.maxlength-this.getTextLength())},getTextLength:function(){return this.editor.getHTML().replace(/<[^>]+>/g,"").length}},beforeMount:function(){var e=this,t=this.value||"",i=[new st["h"],new st["f"]];this.placeholder&&this.placeholder.length>0&&i.push(new st["m"]({emptyNodeClass:"is-empty",emptyNodeText:this.placeHolder,showOnlyWhenEditable:!0})),(this.toolbar.ordered||this.toolbar.bullet)&&i.push(new st["k"]),Object.keys(this.toolbar).forEach((function(t){switch(t){case"header":var n=e.toolbar[t].filter((function(e){return"number"===typeof e}));n.forEach((function(t){e.headingOptions.push(t)})),i.push(new st["g"]({levels:n}));break;case"bold":i.push(new st["b"]);break;case"italic":i.push(new st["i"]);break;case"strike":i.push(new st["n"]);break;case"underline":i.push(new st["s"]);break;case"link":i.push(new st["j"]);break;case"blockquote":i.push(new st["a"]);break;case"bullet":i.push(new st["c"]);break;case"ordered":i.push(new st["l"]);break;case"code":i.push(new st["d"]);break;case"code-block":i.push(new st["e"]);break;case"table":i.push(new st["o"]({resizable:!1})),i.push(new st["q"]),i.push(new st["p"]),i.push(new st["r"]);break}})),this.editor=new rt["a"]({extensions:i,content:t,onUpdate:function(t){var i=t.getHTML;e.value=i(),e.textUpdate(),e.updateCounter()}}),this.updateCounter()},beforeDestroy:function(){this.editor.destroy()}},vt=gt,yt=(i("1c33"),i("ba2c"),Object(l["a"])(vt,nt,at,!1,null,"bd551124",null)),_t=yt.exports,wt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"media",class:{"media--hoverable":e.hover,"media--slide":e.isSlide}},[i("div",{staticClass:"media__field"},[e.hasMedia?i("div",{staticClass:"media__info"},[i("div",{staticClass:"media__img"},[i("div",{staticClass:"media__imgFrame"},[i("div",{staticClass:"media__imgCentered",style:e.cropThumbnailStyle},[e.cropSrc&&e.showImg?i("img",{ref:"mediaImg",class:e.cropThumbnailClass,attrs:{src:e.cropSrc}}):e._e()]),e.disabled?e._e():i("div",{staticClass:"media__edit",on:{click:function(t){return e.openMediaLibrary(1,e.mediaKey,e.index)}}},[i("span",{staticClass:"media__edit--button"},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"edit"}})])])])]),e.disabled?e._e():i("ul",{staticClass:"media__metadatas"},[i("li",{staticClass:"media__name",on:{click:function(t){return e.openMediaLibrary(1,e.mediaKey,e.index)}}},[i("strong",{attrs:{title:e.media.name}},[e._v(e._s(e.media.name))])]),e.media.size?i("li",{staticClass:"f--small"},[e._v("File size: "+e._s(e._f("uppercase")(e.media.size)))]):e._e(),e.media.width+e.media.height?i("li",{staticClass:"f--small"},[e._v(e._s(e.$trans("fields.medias.original-dimensions"))+": "+e._s(e.media.width)+" × "+e._s(e.media.height)+" ")]):e._e(),e.cropInfos&&e.activeCrop?i("li",{staticClass:"f--small media__crop-link",on:{click:e.openCropMedia}},e._l(e.cropInfos,(function(t,n){return i("p",{key:n,staticClass:"f--small f--note hide--xsmall"},[i("span",{domProps:{innerHTML:e._s(t)}})])})),0):e._e(),i("li",{staticClass:"f--small"},[e.withAddInfo?i("a",{staticClass:"f--link-underlined--o",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.metadatasInfos(t)}}},[e._v(e._s(e.metadatas.text))]):e._e()])]),e.disabled?e._e():i("a17-buttonbar",{staticClass:"media__actions"},[i("a",{attrs:{href:e.media.original,download:""}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"download"}})]),e.activeCrop?i("button",{attrs:{type:"button"},on:{click:e.openCropMedia}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"crop"}})]):e._e(),i("button",{attrs:{type:"button"},on:{click:e.deleteMediaClick}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"trash"}})])]),i("div",{staticClass:"media__actions-dropDown"},[i("a17-dropdown",{ref:"dropDown",attrs:{position:"right"}},[i("a17-button",{attrs:{size:"icon",variant:"icon"},on:{click:function(t){return e.$refs.dropDown.toggle()}}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"more-dots"}})]),i("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},[i("a",{attrs:{href:e.media.original,download:""}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"download"}}),e._v(e._s(e.$trans("fields.medias.download")))]),e.activeCrop?i("button",{attrs:{type:"button"},on:{click:e.openCropMedia}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"crop"}}),e._v(e._s(e.$trans("fields.medias.crop"))+" ")]):e._e(),i("button",{attrs:{type:"button"},on:{click:e.deleteMediaClick}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"trash"}}),e._v(e._s(e.$trans("fields.medias.delete")))])])],1)],1)],1):e._e(),e.hasMedia?e._e():i("a17-button",{attrs:{variant:"ghost",disabled:e.disabled},on:{click:e.openMediaLibrary}},[e._v(e._s(e.btnLabel))]),this.$slots.default?i("p",{staticClass:"media__note f--small"},[e._t("default")],2):e._e(),e.hasMedia&&e.withAddInfo?i("div",{staticClass:"media__metadatas--options",class:{"s--active":e.metadatas.active}},[i("a17-mediametadata",{attrs:{name:e.metadataName,label:e.$trans("fields.medias.alt-text","Alt Text"),id:"altText",media:e.media,maxlength:e.altTextMaxLength},on:{change:e.updateMetadata}}),e.withCaption?i("a17-mediametadata",{attrs:{wysiwyg:e.useWysiwyg,"wysiwyg-options":e.wysiwygOptions,type:"text",name:e.metadataName,label:e.$trans("fields.medias.caption","Caption"),id:"caption",media:e.media,maxlength:e.captionMaxLength},on:{change:e.updateMetadata}}):e._e(),e.withVideoUrl?i("a17-mediametadata",{attrs:{name:e.metadataName,label:e.$trans("fields.medias.video-url","Video URL (optional)"),id:"video",media:e.media},on:{change:e.updateMetadata}}):e._e(),e._l(e.extraMetadatas,(function(t){return[e.extraMetadatas.length>0?i("a17-mediametadata",{key:t.name,attrs:{type:t.type,name:e.metadataName,wysiwyg:t.wysiwyg||!1,"wysiwyg-options":t.wysiwygOptions||e.wysiwygOptions,label:t.label,id:t.name,media:e.media,maxlength:t.maxlength||0},on:{change:e.updateMetadata}}):e._e()]}))],2):e._e()],1),e.hasMedia&&e.activeCrop?i("a17-modal",{ref:e.cropModalName,staticClass:"modal--cropper",attrs:{forceClose:!0,title:e.$trans("fields.medias.crop-edit"),mode:"medium"}},[i("a17-cropper",{key:e.cropperKey,attrs:{media:e.media,aspectRatio:16/9,context:e.cropContext},on:{"crop-end":e.cropMedia}},[i("a17-button",{staticClass:"cropper__button",attrs:{variant:"action"},on:{click:function(t){return e.$refs[e.cropModalName].close()}}},[e._v(e._s(e.$trans("fields.medias.crop-save")))])],1)],1):e._e(),i("input",{attrs:{name:e.inputName,type:"hidden"},domProps:{value:JSON.stringify(e.media)}})],1)},Ot=[],Et=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"cropper"},[i("header",{staticClass:"cropper__header"},[e.multiCrops?i("ul",{staticClass:"cropper__breakpoints"},e._l(e.cropOptions,(function(t,n,a){return i("li",{key:n,class:{"s--active":e.toggleBreakpoint===a},on:{click:function(t){return e.changeCrop(n,a)}}},[e._v(e._s(e._f("capitalize")(n)))])})),0):e._e()]),i("div",{staticClass:"cropper__content"},[i("div",{ref:"cropWrapper",staticClass:"cropper__wrapper"},[i("img",{ref:"cropImage",staticClass:"cropper__img",attrs:{src:e.currentMedia.medium||e.currentMedia.original,alt:e.currentMedia.name}})])]),i("footer",{staticClass:"cropper__footer"},[e.ratiosByContext.length>1?i("ul",{staticClass:"cropper__ratios"},e._l(e.ratiosByContext,(function(t){return i("li",{key:t.name,staticClass:"f--small",class:{"s--active":e.currentRatioName===t.name},on:{click:function(i){return e.changeRatio(t)}}},[e._v(e._s(e._f("capitalize")(t.name)))])})),0):e._e(),i("span",{staticClass:"cropper__values f--small hide--xsmall",class:e.cropperWarning},[e._v(e._s(e.cropValues.original.width)+" × "+e._s(e.cropValues.original.height))]),e._t("default")],2)])},Tt=[],St=i("4e53"),At=i("bab4"),Dt=i.n(At),Ct=(i("4604"),i("605f")),Pt=function(e,t,i){return{x:Math.round(e.x*t.width/i.width),y:Math.round(e.y*t.height/i.height),width:Math.round(e.width*t.width/i.width),height:Math.round(e.height*t.height/i.height)}};function xt(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function kt(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(i),!0).forEach((function(t){Mt(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):xt(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Mt(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var It={name:"a17Cropper",props:{media:{type:Object,default:function(){}},context:{type:String,default:""}},mixins:[Ct["a"]],data:function(){return{cropper:null,currentMedia:this.media,currentCrop:Object.keys(this.media.crops)[0],toggleBreakpoint:0,cropValues:{natural:{width:null,height:null},original:{width:this.media.crops[Object.keys(this.media.crops)[0]].width,height:this.media.crops[Object.keys(this.media.crops)[0]].height}},minCropValues:{width:0,height:0},currentRatioName:this.media.crops[Object.keys(this.media.crops)[0]].name}},watch:{media:function(e){this.currentMedia=e}},computed:kt({cropOptions:function(){return this.allCrops.hasOwnProperty(this.context)?this.allCrops[this.context]:{}},crop:function(){return this.currentMedia.crops[this.currentCrop]||{}},multiCrops:function(){return Object.keys(this.cropOptions).length>1},ratiosByContext:function(){var e=this.cropOptions[this.currentCrop];return e||[]},cropperOpts:function(){var e=this;return kt(kt({},this.defaultCropsOpts),{},{cropmove:function(){e.updateCropperValues()},cropend:function(){e.sendCropperValues()}})},cropperWarning:function(){return{cropper__warning:this.cropValues.original.width<this.minCropValues.width||this.cropValues.original.height<this.minCropValues.height}}},Object(pe["c"])({allCrops:function(e){return e.mediaLibrary.crops}})),filters:St["a"],mounted:function(){var e=this,t=this.cropperOpts,i=this.$refs.cropImage,n=this.$refs.cropWrapper,a=new Image;a.addEventListener("load",(function(){n.style.maxWidth=n.getBoundingClientRect().width+"px",n.style.minHeight=n.getBoundingClientRect().height+"px",e.cropper=new Dt.a(i,t)}),{once:!0,passive:!0,capture:!0}),a.src=this.currentMedia.medium||this.currentMedia.original,i.addEventListener("ready",(function(){e.cropValues.natural.width=a.naturalWidth,e.cropValues.natural.height=a.naturalHeight,e.updateCrop()}),{once:!0,passive:!0,capture:!0})},methods:{initAspectRatio:function(){var e=this,t=this.ratiosByContext,i=t.find((function(t){return t.name===e.currentRatioName}));if("undefined"!==typeof i&&i)return this.minCropValues.width=i.minValues?i.minValues.width:0,this.minCropValues.height=i.minValues?i.minValues.height:0,void this.cropper.setAspectRatio(i.ratio);this.cropper.setAspectRatio(this.aspectRatio)},changeCrop:function(e,t){this.currentCrop=e,this.currentRatioName=this.crop.name||this.cropOptions[e][0].name,this.toggleBreakpoint=t,this.updateCrop(),this.sendCropperValues()},changeRatio:function(e){this.currentRatioName=e.name,this.updateCrop(),this.sendCropperValues()},updateCrop:function(){this.initAspectRatio(),this.initCrop(),this.updateCropperValues()},updateCropperValues:function(){var e=this.cropper.getData(!0),t=this.toOriginalCrop(e);this.cropValues.original.width=t.width,this.cropValues.original.height=t.height},initCrop:function(){var e=this.toNaturalCrop(this.crop);this.cropper.setData(e)},test:function(){var e=this.toNaturalCrop({x:0,y:0,width:380,height:475});this.cropper.setAspectRatio(.8),this.cropper.setData(e)},sendCropperValues:function(){var e={values:{}};e.values[this.currentCrop]=this.toOriginalCrop(this.cropper.getData(!0)),e.values[this.currentCrop].name=this.currentRatioName,this.$emit("crop-end",e)},toNaturalCrop:function(e){return Pt(e,this.cropValues.natural,this.currentMedia)},toOriginalCrop:function(e){return Pt(e,this.currentMedia,this.cropValues.natural)}},beforeDestroy:function(){this.cropper.destroy()}},Lt=It,jt=(i("8a3c"),Object(l["a"])(Lt,Et,Tt,!1,null,"8851f8b4",null)),Rt=jt.exports,Nt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.languages.length>1&&"text"===e.fieldType?i("a17-locale",{attrs:{type:e.wysiwyg?"a17-wysiwyg":"a17-textfield",initialValues:e.initialValues,attributes:e.attributes},on:{change:e.saveMetadata}}):"text"===e.fieldType&&e.wysiwyg?i("div",[i("a17-wysiwyg",{attrs:{options:e.wysiwygOptions,label:e.label,name:e.fieldName,type:e.fieldType,initialValue:e.initialValue,"in-store":"value",maxlength:e.maxlength},on:{change:e.saveMetadata}}),i("p",{staticClass:"f--note f--small",domProps:{innerHTML:e._s(e.placeholder)}})],1):"text"===e.fieldType?i("a17-textfield",{attrs:{label:e.label,name:e.fieldName,type:"text",placeholder:e.placeholder,initialValue:e.initialValue,"in-store":"value",maxlength:e.maxlength},on:{change:e.saveMetadata}}):"checkbox"===e.fieldType?i("div",{staticClass:"mediaMetadata__checkbox"},[i("a17-checkbox",{attrs:{label:e.label,name:e.fieldName,initialValue:e.initialValue,value:1,inStore:"value"},on:{change:e.saveMetadata}})],1):e._e()},Bt=[];function $t(e){return $t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$t(e)}function Ft(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Ut(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(i),!0).forEach((function(t){Vt(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ft(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Vt(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var qt={name:"A17MediaMetadata",props:{media:{type:Object,default:function(){}},name:{type:String,required:!0},id:{type:String,required:!0},label:{type:String,required:!0},wysiwyg:{type:Boolean,default:!1},wysiwygOptions:{type:Object,required:!1,default:function(){return{}}},type:{type:String,required:!1},maxlength:{type:Number,required:!1,default:0}},data:function(){return{initialValues:{},initialValue:""}},computed:Ut({fieldName:function(){return"".concat(this.name,"[").concat(this.id,"]")},fieldType:function(){return this.type?this.type:"text"},defaultMetadatas:function(){return this.media.hasOwnProperty("metadatas")&&this.media.metadatas.default[this.id]||!1},customMetadatas:function(){return this.media.hasOwnProperty("metadatas")&&this.media.metadatas.custom[this.id]||!1},attributes:function(){return{label:this.label,name:this.fieldName,type:"text",placeholder:this.placeholder,options:this.wysiwygOptions,inStore:"value",maxlength:this.maxlength}},placeholder:function(){return this.defaultMetadatas?"object"===$t(this.defaultMetadatas)?this.defaultMetadatas.hasOwnProperty(this.currentLocale)?this.defaultMetadatas[this.currentLocale]:"":null!==this.defaultMetadatas?this.defaultMetadatas:"":""}},Object(pe["c"])({languages:function(e){return e.language.all},currentLocale:function(e){return e.language.active.value}})),methods:{saveMetadata:function(e){if(!e.locale){var t=e;e={value:t}}e.id=this.id,this.$emit("change",e)}},mounted:function(){var e=this,t={},i="",n=0;this.languages.forEach((function(a){var s=a.value;if(e.customMetadatas){e.customMetadatas[s]?t[s]=e.customMetadatas[s]:!0!==e.customMetadatas&&"string"!==typeof e.customMetadatas||0!==n?t[s]="":(t[s]=e.customMetadatas,i=e.customMetadatas);var o={};o.name=e.fieldName,o.value=t[s],e.languages.length>1&&(o.locale=s),e.$store.commit(r["f"].UPDATE_FORM_FIELD,o)}n++})),this.initialValues=t,this.initialValue=i}},Wt=qt,Ht=(i("ac64"),Object(l["a"])(Wt,Nt,Bt,!1,null,"07ead92b",null)),zt=Ht.exports,Kt=i("1a8d"),Gt={props:{withAddInfo:{type:Boolean,default:!0},withVideoUrl:{type:Boolean,default:!0},withCaption:{type:Boolean,default:!0},altTextMaxLength:{type:Number,default:0},captionMaxLength:{type:Number,default:0},note:{type:String,default:""},cropContext:{type:String,default:""},extraMetadatas:{type:Array,default:function(){return[]}}}},Yt=i("4e9d"),Xt=i.n(Yt);function Jt(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Qt(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(i),!0).forEach((function(t){Zt(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Jt(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Zt(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var ei=-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome"),ti={name:"A17Mediafield",components:{"a17-cropper":Rt,"a17-mediametadata":zt},mixins:[Kt["a"],Gt],props:{name:{type:String,required:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},btnLabel:{type:String,default:function(){return this.$trans("fields.medias.btn-label","Attach image")}},hover:{type:Boolean,default:!1},isSlide:{type:Boolean,default:!1},index:{type:Number,default:0},mediaContext:{type:String,default:""},activeCrop:{type:Boolean,default:!0},widthMin:{type:Number,default:0},heightMin:{type:Number,default:0}},data:function(){return{canvas:null,img:null,ctx:null,imgLoaded:!1,cropSrc:"",showImg:!1,isDestroyed:!1,naturalDim:{width:null,height:null},originalDim:{width:null,height:null},hasMediaChanged:!1,metadatas:{text:this.$trans("fields.medias.edit-info"),textOpen:this.$trans("fields.medias.edit-info"),textClose:this.$trans("fields.medias.edit-close"),active:!1}}},filters:St["a"],computed:Qt(Qt({},Object(pe["c"])({useWysiwyg:function(e){return e.mediaLibrary.config.useWysiwyg},wysiwygOptions:function(e){return e.mediaLibrary.config.wysiwygOptions}})),{},{cropThumbnailStyle:function(){return this.showImg?{}:this.hasMedia&&this.media.crops?0===this.cropSrc.length?{}:{backgroundImage:"url(".concat(this.cropSrc,")")}:{}},cropThumbnailClass:function(){if(!this.hasMedia)return{};if(!this.media.crops)return{};var e=this.media.crops[Object.keys(this.media.crops)[0]];return{"media__img--landscape":e.width/e.height>=1,"media__img--portrait":e.width/e.height<1}},mediaKey:function(){return this.mediaContext.length>0?this.mediaContext:this.name},inputName:function(){var e=this.name;return this.name.indexOf("[")&&(e=this.name.replace("]","").replace("[","][")),"medias["+e+"]["+this.index+"]"},metadataName:function(){return"mediaMeta["+this.name+"]["+this.media.id+"]"},media:function(){return this.selectedMedias.hasOwnProperty(this.mediaKey)&&this.selectedMedias[this.mediaKey][this.index]||{}},cropInfos:function(){var e=[];if(this.media.crops)for(var t in this.media.crops)if(this.media.crops[t].width+this.media.crops[t].height){var i="";i+=this.media.crops[t].name+" "+this.$trans("fields.medias.crop-list")+": ",i+=this.media.crops[t].width+" × "+this.media.crops[t].height,e.push(i)}return e.length>0?e:null},hasMedia:function(){return Object.keys(this.media).length>0},cropperKey:function(){return"".concat(this.mediaKey,"-").concat(this.index,"_").concat(this.cropContext)},mediaHasCrop:function(){return this.media.crops},cropModalName:function(){return"".concat(name,"Modal")}},Object(pe["c"])({selectedMedias:function(e){return e.mediaLibrary.selected},allCrops:function(e){return e.mediaLibrary.crops}})),watch:{media:function(e,t){this.hasMediaChanged=e!==t,this.selectedMedias.hasOwnProperty(this.mediaKey)&&this.selectedMedias[this.mediaKey][this.index]&&(this.isDestroyed=!1)}},methods:{canvasCrop:function(){var e=this,t=this.media.crops[Object.keys(this.media.crops)[0]];if(t)if(t.width+t.height!==0){var i=this.media.thumbnail;this.$nextTick((function(){try{var n=Pt(t,e.naturalDim,e.originalDim),a=n.width,r=n.height;e.canvas.width=a,e.canvas.height=r,e.ctx.drawImage(e.img,n.x,n.y,a,r,0,0,a,r),i=e.canvas.toDataURL("image/png"),e.cropSrc!==i&&(e.showImg=!1,e.cropSrc=i)}catch(s){console.error(s),e.cropSrc!==i&&(e.showImg=!0,e.cropSrc=i)}}))}else this.showDefaultThumbnail()},setDefaultCrops:function(){var e=this,t={},i=[];if(this.allCrops.hasOwnProperty(this.cropContext)){for(var n in this.allCrops[this.cropContext]){var a=this.allCrops[this.cropContext][n][0].ratio,r=this.media.width,s=this.media.height,o={x:r/2,y:s/2},l=r,c=s;a>0&&a<1?(l=Math.floor(Math.min(s*a,r)),c=Math.floor(l/a)):a>=1&&(c=Math.floor(Math.min(r/a,s)),l=Math.floor(c*a));var u={x:0,y:0,width:l,height:c};u=Pt(u,this.naturalDim,this.originalDim),i.push(Xt.a.crop(this.img,{width:u.width,height:u.height,minScale:1}));var d=Math.floor(o.x-l/2),f=Math.floor(o.y-c/2);t[n]={},t[n].name=this.allCrops[this.cropContext][n][0].name||n,t[n].x=d,t[n].y=f,t[n].width=l,t[n].height=c}Promise.all(i).then((function(i){var n=0;i.forEach((function(i){var a={x:i.topCrop.x,y:i.topCrop.y,width:i.topCrop.width,height:i.topCrop.height},r=t[Object.keys(t)[n]],s=Pt(a,e.originalDim,e.naturalDim);r.x=s.x,r.y=s.y,r.width=s.width,r.height=s.height,n++})),e.cropMedia({values:t})}),(function(i){console.error(i),e.cropMedia({values:t})}))}else this.cropMedia({values:t})},cropMedia:function(e){e.key=this.mediaKey,e.index=this.index,this.$store.commit(r["h"].SET_MEDIA_CROP,e),this.img&&this.canvasCrop()},setNaturalDimensions:function(){this.img&&(this.naturalDim.width=this.img.naturalWidth,this.naturalDim.height=this.img.naturalHeight)},setOriginalDimensions:function(){this.media&&(this.originalDim.width=this.media.width,this.originalDim.height=this.media.height)},init:function(){var e=this;this.showImg=!1;var t=function(){e.setNaturalDimensions(),e.setOriginalDimensions(),e.mediaHasCrop?e.canvasCrop():e.setDefaultCrops()};this.hasMedia&&(this.cropSrc=this.media.thumbnail,this.initImg().then((function(){t()}),(function(i){console.error(i),e.showDefaultThumbnail(),e.$nextTick((function(){var i=e.$refs.mediaImg;i?(i.addEventListener("load",(function(){e.img=i,t()}),{once:!0,passive:!0,capture:!0}),i.addEventListener("error",(function(t){console.error(t),e.showDefaultThumbnail()}))):(e.showImg=!1,e.cropSrc=e.media.thumbnail)}))})),this.hasMediaChanged=!1)},initImg:function(){var e=this;return new Promise((function(t,i){e.img=new Image,ei||(e.img.crossOrigin="Anonymous"),e.canvas=document.createElement("canvas"),e.ctx=e.canvas.getContext("2d"),e.img.addEventListener("load",(function(){t()}),{once:!0,passive:!0,capture:!0}),e.img.addEventListener("error",(function(e){i(e)}));var n="?";e.media.thumbnail.indexOf("?")>-1&&(n="&"),e.img.src=e.media.thumbnail+n+"no-cache"}))},showDefaultThumbnail:function(){this.showImg=!0,this.hasMedia&&(this.cropSrc=this.media.thumbnail)},openCropMedia:function(){this.$refs[this.cropModalName].open()},deleteMediaClick:function(){this.isDestroyed=!0,this.deleteMedia()},deleteMedia:function(){this.$store.commit(r["h"].DESTROY_SPECIFIC_MEDIA,{name:this.mediaKey,index:this.index})},updateMetadata:function(e){this.$store.commit(r["h"].SET_MEDIA_METADATAS,{media:{context:this.mediaKey,index:this.index},value:e})},metadatasInfos:function(){this.metadatas.active=!this.metadatas.active,this.metadatas.text=this.metadatas.active?this.metadatas.textClose:this.metadatas.textOpen},destroyValue:function(){this.isSlide||this.isDestroyed||this.deleteMedia()}},beforeMount:function(){this.init()},beforeUpdate:function(){this.hasMediaChanged&&this.init()}},ii=ti,ni=(i("d066"),i("95ca"),Object(l["a"])(ii,wt,Ot,!1,null,"4eab462a",null)),ai=ni.exports,ri=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a17-inputframe",{attrs:{error:e.error,label:e.label,locale:e.locale,size:e.size,note:e.note,name:e.name},on:{localize:e.updateLocale}},[e.max>1||0===e.max?i("a17-slideshow",{attrs:{name:e.name,cropContext:e.cropContext,max:e.max,required:e.required,buttonOnTop:e.buttonOnTop,withAddInfo:e.withAddInfo,withVideoUrl:e.withVideoUrl,withCaption:e.withCaption,altTextMaxLength:e.altTextMaxLength,captionMaxLength:e.captionMaxLength,extraMetadatas:e.extraMetadatas,disabled:e.disabled}},[e._t("default")],2):i("a17-mediafield",{attrs:{name:e.name,cropContext:e.cropContext,required:e.required,withAddInfo:e.withAddInfo,withVideoUrl:e.withVideoUrl,withCaption:e.withCaption,altTextMaxLength:e.altTextMaxLength,captionMaxLength:e.captionMaxLength,extraMetadatas:e.extraMetadatas,disabled:e.disabled}},[e._t("default")],2)],1)},si=[],oi={name:"A17MediafieldTranslated",mixins:[T["a"],O["a"],Gt],props:{name:{type:String,required:!0},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},max:{type:Number,default:1},buttonOnTop:{type:Boolean,default:!1}}},li=oi,ci=Object(l["a"])(li,ri,si,!1,null,null,null),ui=ci.exports,di=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",{staticClass:"radio",class:e.customClass},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedValue,expression:"selectedValue"}],staticClass:"radio__input",attrs:{type:"radio",name:e.name,id:e.uniqId(e.value),disabled:e.disabled},domProps:{value:e.value,checked:e._q(e.selectedValue,e.value)},on:{change:function(t){e.selectedValue=e.value}}}),i("label",{staticClass:"radio__label",attrs:{for:e.uniqId(e.value)}},[e._v(e._s(e.label))])])},fi=[],hi={name:"A17Radio",mixins:[y["a"]],props:{customClass:{type:String,default:""},value:{default:""},name:{type:String,default:""},label:{type:String,default:""},initialValue:{default:""},disabled:{type:Boolean,default:!1}},data:function(){return{currentValue:this.initialValue}},computed:{selectedValue:{get:function(){return this.currentValue},set:function(e){this.currentValue=e,this.$emit("change",e)}}},methods:{uniqId:function(e){return this.name+"_"+e+"-"+this.randKey}}},pi=hi,mi=(i("85cf"),Object(l["a"])(pi,di,fi,!1,null,"6de2145c",null)),bi=mi.exports,gi=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a17-inputframe",{attrs:{error:e.error,note:e.note,label:e.label,name:e.name,"label-for":e.uniqId}},[i("ul",{staticClass:"radioGroup",class:e.radioClasses},e._l(e.radios,(function(t,n){return i("li",{key:n,staticClass:"radioGroup__item"},[i("a17-radio",{attrs:{customClass:"radio__"+e.radioClass+"--"+(n+1),name:e.name,value:t.value,label:t.label,initialValue:e.currentValue,disabled:t.disabled},on:{change:e.changeValue}})],1)})),0)])},vi=[],yi={name:"A17CheckboxGroup",mixins:[y["a"],O["a"],w["a"]],props:{radioClass:{type:String,default:""},inline:{type:Boolean,default:!1},name:{type:String,default:""},label:{default:""},initialValue:{default:""},radios:{default:function(){return[]}}},data:function(){return{currentValue:this.initialValue}},computed:{uniqId:function(e){return this.name+"-"+this.randKey},radioClasses:function(){return[this.inline?"radioGroup--inline":""]}},methods:{updateFromStore:function(e){e!==this.currentValue&&this.updateValue(e)},updateValue:function(e){this.currentValue=e},changeValue:function(e){e!==this.currentValue&&(this.updateValue(e),this.$emit("change",this.currentValue),this.saveIntoStore(e))}}},_i=yi,wi=(i("4828"),Object(l["a"])(_i,gi,vi,!1,null,"5c97c7f2",null)),Oi=wi.exports,Ei=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",{staticClass:"checkbox"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.checkedValue,expression:"checkedValue"}],staticClass:"checkbox__input",class:e.checkboxClasses,attrs:{type:"checkbox",name:e.name,id:e.uniqId,disabled:e.disabled},domProps:{value:e.value,checked:Array.isArray(e.checkedValue)?e._i(e.checkedValue,e.value)>-1:e.checkedValue},on:{change:function(t){var i=e.checkedValue,n=t.target,a=!!n.checked;if(Array.isArray(i)){var r=e.value,s=e._i(i,r);n.checked?s<0&&(e.checkedValue=i.concat([r])):s>-1&&(e.checkedValue=i.slice(0,s).concat(i.slice(s+1)))}else e.checkedValue=a}}}),i("label",{staticClass:"checkbox__label",attrs:{for:e.uniqId}},[e._v(e._s(e.label)+" "),i("span",{staticClass:"checkbox__icon"},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"check"}})])])])},Ti=[],Si={name:"A17Checkbox",mixins:[y["a"]],props:{value:{default:""},initialValue:{default:function(){return[]}},name:{type:String,default:""},theme:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1}},computed:{uniqId:function(e){return this.name+"_"+this.value+"-"+this.randKey},checkboxClasses:function(){return[this.theme?"checkbox__input--".concat(this.theme):""]},checkedValue:{get:function(){return this.initialValue},set:function(e){this.$emit("change",e)}}}},Ai=Si,Di=(i("8aa1"),Object(l["a"])(Ai,Ei,Ti,!1,null,"a7a2c0e2",null)),Ci=Di.exports,Pi=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a17-inputframe",{attrs:{error:e.error,note:e.note,name:e.name}},[i("div",{staticClass:"singleCheckbox",class:e.wrapperClasses},[i("span",{staticClass:"checkbox"},[i("input",{staticClass:"checkbox__input",class:e.checkboxClasses,attrs:{type:"checkbox",value:"true",name:e.name+"["+e.randKey+"]",id:e.uniqId,disabled:e.disabled},domProps:{checked:e.checkedValue}}),i("label",{staticClass:"checkbox__label",attrs:{for:e.uniqId},on:{click:function(t){return t.preventDefault(),e.changeCheckbox(t)}}},[e._v(e._s(e.label)+" "),i("span",{staticClass:"checkbox__icon"},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"check"}})]),e.note?i("span",{staticClass:"f--small checkbox__note"},[e._v(e._s(e.note))]):e._e()])])]),e.requireConfirmation?[i("a17-dialog",{ref:"warningConfirm",attrs:{"modal-title":"Confirm","confirm-label":"Confirm"}},[i("p",{staticClass:"modal--tiny-title"},[i("strong",[e._v(e._s(e.confirmTitleText))])]),i("p",[e._v(e._s(e.confirmMessageText))])])]:e._e()],2)},xi=[],ki={props:{requireConfirmation:{type:Boolean,default:!1},confirmMessageText:{type:String,default:"Are you sure you want to change this option ?"},confirmTitleText:{type:String,default:"Confirm selection"}}},Mi={name:"A17SingleCheckbox",mixins:[y["a"],O["a"],w["a"],ki],props:{name:{type:String,default:""},initialValue:{type:Boolean,default:!0},theme:{type:String,default:""},disabled:{type:Boolean,default:!1},border:{type:Boolean,default:!1}},data:function(){return{currentValue:this.initialValue}},computed:{uniqId:function(){return this.name+"_"+this.randKey},wrapperClasses:function(){return[this.border?"singleCheckbox--border":""]},checkboxClasses:function(){return[this.theme?"checkbox__input--".concat(this.theme):"",this.checkedValue?"checkbox__input--checked":""]},checkedValue:{get:function(){return this.currentValue},set:function(e){e!==this.currentValue&&(this.currentValue=e,"undefined"!==typeof this.saveIntoStore&&this.saveIntoStore(e),this.$emit("change",e))}}},methods:{updateFromStore:function(e){this.checkedValue=e},changeCheckbox:function(){var e=this;this.requireConfirmation?this.$refs.warningConfirm.open((function(){e.checkedValue=!e.checkedValue})):this.checkedValue=!this.checkedValue}}},Ii=Mi,Li=(i("c8c6"),Object(l["a"])(Ii,Pi,xi,!1,null,"665234c1",null)),ji=Li.exports,Ri=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a17-inputframe",{attrs:{error:e.error,note:e.note,label:e.label,name:e.name}},[i("ul",{staticClass:"checkboxGroup",class:e.checkboxClasses},e._l(e.options,(function(t){return i("li",{key:t.value,staticClass:"checkboxGroup__item"},[i("a17-checkbox",{attrs:{name:e.name,value:t.value,label:t.label,initialValue:e.currentValue,disabled:t.disabled||e.disabled},on:{change:e.changeValue}})],1)})),0)])},Ni=[],Bi=i("63ea"),$i=i.n(Bi),Fi=i("1249"),Ui={name:"A17CheckboxGroup",props:{name:{type:String,default:""},inline:{type:Boolean,default:!1},options:{type:Array,default:function(){return[]}}},mixins:[O["a"],Fi["a"],w["a"]],computed:{checkboxClasses:function(){return[this.inline?"checkboxGroup--inline":""]}},methods:{formatValue:function(e,t){var i=this;if(e&&t){var n=this.isMax(e),a=this.isMin(e);(n||a)&&($i()(t,i.checkedValue)||(i.checkedValue=t))}},updateFromStore:function(e){this.updateValue(e)},updateValue:function(e){this.checkedValue=e},changeValue:function(e){$i()(e,this.currentValue)||this.updateValue(e)}},mounted:function(){this.max+this.min>0&&this.$watch("currentValue",this.formatValue,{immediate:!0})}},Vi=Ui,qi=(i("fa4a"),Object(l["a"])(Vi,Ri,Ni,!1,null,"c42094e6",null)),Wi=qi.exports,Hi=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"multiselectorOuter"},[i("a17-inputframe",{attrs:{error:e.error,note:e.note,label:e.label,name:e.name,"add-new":e.addNew}},[i("div",{staticClass:"multiselector",class:e.gridClasses},[i("div",{staticClass:"multiselector__outer"},e._l(e.fullOptions,(function(t,n){return i("div",{key:n,staticClass:"multiselector__item",style:e.itemStyle},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.checkedValue,expression:"checkedValue"}],staticClass:"multiselector__checkbox",class:{"multiselector__checkbox--checked":e.checkedValue.includes(t.value)},attrs:{type:"checkbox",name:e.name+"["+e.randKey+"]",id:e.uniqId(t.value,n),disabled:t.disabled||e.disabled},domProps:{value:t.value,checked:Array.isArray(e.checkedValue)?e._i(e.checkedValue,t.value)>-1:e.checkedValue},on:{change:function(i){var n=e.checkedValue,a=i.target,r=!!a.checked;if(Array.isArray(n)){var s=t.value,o=e._i(n,s);a.checked?o<0&&(e.checkedValue=n.concat([s])):o>-1&&(e.checkedValue=n.slice(0,o).concat(n.slice(o+1)))}else e.checkedValue=r}}}),i("label",{staticClass:"multiselector__label",attrs:{for:e.uniqId(t.value,n)},on:{click:function(i){return i.preventDefault(),e.changeCheckbox(t.value)}}},[i("span",{staticClass:"multiselector__icon"},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"check"}})]),e._v(" "+e._s(t.label)+" ")]),i("span",{staticClass:"multiselector__bg"})])})),0)])]),e.addNew?[i("a17-modal-add",{ref:"addModal",attrs:{name:e.name,"form-create":e.addNew,"modal-title":"Add new "+e.label}},[e._t("addModal")],2)]:e._e()],2)},zi=[],Ki={name:"A17Multiselect",mixins:[y["a"],O["a"],Fi["a"],w["a"],E["a"]],props:{grid:{type:Boolean,default:!0},columns:{type:Number,default:0},inline:{type:Boolean,default:!1},border:{type:Boolean,default:!1}},computed:{gridClasses:function(){return this.columns>=1?["multiselector--columns",this.grid?"multiselector--grid":""]:[this.grid?"multiselector--grid":"",this.inline?"multiselector--inline":"",this.border?"multiselector--border":""]},itemStyle:function(){return this.columns>=1?{width:"".concat(100/this.columns,"%")}:{}}},methods:{updateFromStore:function(e){$i()(e,this.checkedValue)||(this.checkedValue=e)},changeCheckbox:function(e){var t=this.checkedValue.indexOf(e),i=this.checkedValue.slice();t>-1?i.splice(t,1):i.push(e);var n=this.isMax(i),a=this.isMin(i);n||a||(this.checkedValue=i)},uniqId:function(e,t){return this.name+"_"+e+"-"+this.randKey*(t+1)}}},Gi=Ki,Yi=(i("9f30"),Object(l["a"])(Gi,Hi,zi,!1,null,"361441ba",null)),Xi=Yi.exports,Ji=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"multiselectorOuter"},[i("a17-inputframe",{attrs:{error:e.error,note:e.note,label:e.label,name:e.name,"add-new":e.addNew}},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],attrs:{type:"hidden",name:e.name},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}}),i("div",{staticClass:"singleselector",class:e.gridClasses},[i("div",{staticClass:"singleselector__outer"},e._l(e.fullOptions,(function(t,n){return i("div",{key:n,staticClass:"singleselector__item",style:e.itemStyle},[i("input",{staticClass:"singleselector__radio",class:{"singleselector__radio--checked":t.value==e.selectedValue},attrs:{type:"radio",name:e.name+"["+e.randKey+"]",id:e.uniqId(t.value,n),disabled:t.disabled||e.disabled},domProps:{value:t.value}}),i("label",{staticClass:"singleselector__label",attrs:{for:e.uniqId(t.value,n)},on:{click:function(i){return i.preventDefault(),e.changeRadio(t.value)}}},[e._v(e._s(t.label))]),i("span",{staticClass:"singleselector__bg"})])})),0)])]),e.addNew?[i("a17-modal-add",{ref:"addModal",attrs:{name:e.name,"form-create":e.addNew,"modal-title":"Add new "+e.label}},[e._t("addModal")],2)]:e._e(),e.requireConfirmation?[i("a17-dialog",{ref:"warningConfirm",attrs:{"modal-title":"Confirm","confirm-label":"Confirm"}},[i("p",{staticClass:"modal--tiny-title"},[i("strong",[e._v(e._s(e.confirmTitleText))])]),i("p",[e._v(e._s(e.confirmMessageText))])])]:e._e()],2)},Qi=[],Zi={name:"A17Singleselect",mixins:[y["a"],O["a"],w["a"],E["a"],ki],props:{name:{type:String,default:""},grid:{type:Boolean,default:!0},columns:{type:Number,default:0},inline:{type:Boolean,default:!1},border:{type:Boolean,default:!1},selected:{default:""},options:{default:function(){return[]}},disabled:{type:Boolean,default:!1}},data:function(){return{value:this.selected}},computed:{gridClasses:function(){return this.columns>=1?["singleselector--columns",this.grid?"singleselector--grid":""]:[this.grid?"singleselector--grid":"",this.inline?"singleselector--inline":"",this.border?"singleselector--border":""]},itemStyle:function(){return this.columns>=1?{width:"".concat(100/this.columns,"%")}:{}},selectedValue:{get:function(){return this.value},set:function(e){e!==this.value&&(this.value=e,this.saveIntoStore(e),this.$emit("change",e))}}},methods:{updateFromStore:function(e){e!==this.value&&(this.value=e)},changeRadio:function(e){var t=this;this.requireConfirmation?this.$refs.warningConfirm.open((function(){t.selectedValue=e})):this.selectedValue=e},uniqId:function(e,t){return this.name+"_"+e+"-"+this.randKey*(t+1)}}},en=Zi,tn=(i("9c70"),Object(l["a"])(en,Ji,Qi,!1,null,"2eb96d85",null)),nn=tn.exports,an=i("14bd"),rn=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:e.barClasses},[e._t("default")],2)},sn=[],on={name:"A17Buttonbar",props:{type:{type:String,default:"button"},variant:{type:String,default:""}},computed:{barClasses:function(){return["buttonbar",this.variant?"buttonbar--".concat(this.variant):""]}}},ln=on,cn=(i("4086"),i("2732"),Object(l["a"])(ln,rn,sn,!1,null,"7223fc6a",null)),un=cn.exports,dn=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"locale"},[e.languages&&e.languages.length&&e.languages.length>0?e._l(e.languages,(function(t){return i("div",{key:t.value,staticClass:"locale__item"},[t.value===e.currentLocale.value||e.isCustomForm||e.keepInDom?i(""+e.type,e._b({ref:"field",refInFor:!0,tag:"component",attrs:{"data-lang":t.value,name:e.attributes.name+"["+t.value+"]",fieldName:e.attributes.name,locale:t},on:{localize:e.updateLocale,change:function(i){var n=arguments.length,a=Array(n);while(n--)a[n]=arguments[n];return e.updateValue.apply(void 0,[t.value].concat(a))},blur:function(t){return e.$emit("blur")},focus:function(t){return e.$emit("focus")}}},"component",e.attributesPerLang(t.value),!1),[e._t("default")],2):e._e()],1)})):[i(""+e.type,e._b({ref:"field",tag:"component",attrs:{name:e.attributes.name},on:{change:function(t){var i=arguments.length,n=Array(i);while(i--)n[i]=arguments[i];return e.updateValue.apply(void 0,[!1].concat(n))},blur:function(t){return e.$emit("blur")},focus:function(t){return e.$emit("focus")}}},"component",e.attributesNoLang(),!1),[e._t("default")],2)]],2)},fn=[],hn=i("0644"),pn=i.n(hn);function mn(e){return mn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mn(e)}function bn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function gn(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(i),!0).forEach((function(t){vn(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):bn(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function vn(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var yn={name:"A17Locale",props:{type:{type:String,default:"text"},keepInDom:{type:Boolean,default:!1},attributes:{type:Object,default:function(){return{}}},initialValues:{type:Object,default:function(){return{}}},isRequired:{type:Boolean,default:function(){return this.attributes.required||!1}}},computed:gn({},Object(pe["c"])({currentLocale:function(e){return e.language.active},languages:function(e){return e.language.all}})),data:function(){return{isCustomForm:!1}},mounted:function(){this.isCustomForm=void 0!==this.$root.$refs.customForm},methods:{attributesPerLang:function(e){var t=this.languages.find((function(t){return t.value===e})),i=pn()(this.attributes);return this.initialValues&&"object"===mn(this.initialValues)&&this.initialValues[e]?i.initialValue=this.initialValues[e]:i.initialValue||(i.initialValue=""),i.required=!!t.published&&this.isRequired,i},attributesNoLang:function(){var e=pn()(this.attributes);return this.initialValue&&(e.initialValue=this.initialValue),e},updateLocale:function(e){this.$store.commit(r["g"].SWITCH_LANG,{oldValue:e}),this.$nextTick((function(){var e=this.$el.querySelector('[data-lang="'+this.currentLocale.value+'"]');if(e){var t=e.querySelector("input:not([disabled]), textarea:not([disabled]), select:not([disabled])");t&&t.focus()}})),this.$emit("localize",this.currentLocale)},updateValue:function(e,t){e?this.$emit("change",{locale:e,value:t}):this.$emit("change",{value:t})}}},_n=yn,wn=Object(l["a"])(_n,dn,fn,!1,null,null,null),On=wn.exports,En=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"modal",class:e.modalClasses,on:{mousedown:e.hide,touchend:function(t){return t.preventDefault(),e.hide(t)}}},[i("transition",{attrs:{name:"fade_scale_modal"}},[e.active?i("div",{directives:[{name:"show",rawName:"v-show",value:!e.hidden,expression:"!hidden"}],staticClass:"modal__window",on:{mousedown:function(e){e.stopPropagation()},touchend:function(e){e.stopPropagation()}}},[e.modalTitle?i("header",{staticClass:"modal__header"},[e._v(" "+e._s(e.modalTitle)+" "),i("button",{staticClass:"modal__close",attrs:{type:"button"},on:{click:e.hide}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"close_modal"}})])]):e._e(),i("div",{staticClass:"modal__content"},[e._t("default")],2)]):e._e()])],1)},Tn=[],Sn=i("0a8f");function An(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Dn(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?An(Object(i),!0).forEach((function(t){Cn(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):An(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Cn(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var Pn=document.documentElement,xn=Sn["a"].modal,kn={name:"A17Modal",props:{title:{type:String,default:""},mode:{type:String,default:""},forceClose:{type:Boolean,default:!1},forceLock:{type:Boolean,default:!1}},data:function(){return{active:!1,hidden:!0,locked:!1,firstFocusableEl:null,lastFocusableEl:null}},computed:Dn({modalTitle:function(){return""!==this.title?this.title:this.browserTitle},modalClasses:function(){return{"modal--active":this.active,"modal--hidden":this.hidden,"modal--tiny":"tiny"===this.mode,"modal--medium":"medium"===this.mode,"modal--wide":"wide"===this.mode}}},Object(pe["c"])({browserTitle:function(e){return e.browser.title}})),watch:{forceLock:function(){this.locked=this.forceLock}},methods:{open:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.active&&!this.hidden||(this.active=!0,this.hidden=!1,Pn.classList.add(xn),this.bindKeyboard(),this.$nextTick((function(){if(e){var t='textarea, input:not([type="hidden"]), select, button[type="submit"]',i=this.$el.querySelectorAll(t),n=this.$el.querySelectorAll(t+', a, button[type="button"]');this.firstFocusableEl=this.$el.querySelector(".modal__close"),this.lastFocusableEl=n[n.length-1],i.length&&i[0].focus()}this.$emit("open")})))},mask:function(){Pn.classList.remove(xn),this.unbindKeyboard(),this.$emit("close")},hide:function(){this.active&&(this.locked||(this.forceClose?this.close():(this.hidden=!0,this.mask())))},close:function(e){this.active&&(this.locked||(this.active=!1,this.mask()))},bindKeyboard:function(){window.addEventListener("keyup",this.keyPressed),document.addEventListener("keydown",this.keyDown,!1)},unbindKeyboard:function(){window.removeEventListener("keyup",this.keyPressed),document.removeEventListener("keydown",this.keyDown)},keyPressed:function(e){27!==e.which&&27!==e.keyCode||(this.hide(),this.$emit("esc-key"))},keyDown:function(e){e.keyCode&&9===e.keyCode&&(e.shiftKey?document.activeElement.isEqualNode(this.firstFocusableEl)&&(this.lastFocusableEl.focus(),e.preventDefault()):document.activeElement.isEqualNode(this.lastFocusableEl)&&(this.firstFocusableEl.focus(),e.preventDefault()))}},beforeDestroy:function(){this.$el.parentNode&&(this.active&&this.unbindKeyboard(),this.$el.parentNode.removeChild(this.$el))}},Mn=kn,In=(i("453b"),i("5da2"),Object(l["a"])(Mn,En,Tn,!1,null,"f75160e8",null)),Ln=In.exports,jn=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a17-modal",{ref:"modal",staticClass:"modal--tiny modal--form modal--withintro",attrs:{title:e.modalTitle,forceClose:!0}},[e._t("default"),i("a17-inputframe",[i("a17-button",{staticClass:"dialog-confirm",attrs:{variant:"validate"}},[e._v(e._s(e.confirmLabel))]),e._v(" "),i("a17-button",{staticClass:"dialog-cancel",attrs:{variant:"aslink"}},[i("span",[e._v(e._s(e.cancelLabel))])])],1)],2)},Rn=[],Nn={name:"A17Dialog",props:{name:{type:String,default:""},modalTitle:{type:String,default:function(){return this.$trans("dialog.title")}},confirmLabel:{type:String,default:function(){return this.$trans("dialog.ok")}},cancelLabel:{type:String,default:function(){return this.$trans("dialog.cancel")}}},methods:{open:function(e){var t=this;this.$refs.modal&&this.$refs.modal.open(),this.$nextTick((function(){t.$el.querySelector(".dialog-confirm").addEventListener("click",(function(i){e(),t.close()})),t.$el.querySelector(".dialog-cancel").addEventListener("click",(function(e){t.close()}))}))},close:function(){this.$refs.modal&&this.$refs.modal.close()}}},Bn=Nn,$n=Object(l["a"])(Bn,jn,Rn,!1,null,null,null),Fn=$n.exports,Un=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"slideshow"},[e.buttonOnTop&&e.remainingSlides>0?i("div",{staticClass:"slideshow__trigger"},[i("a17-button",{attrs:{disabled:e.disabled,type:"button",variant:"ghost"},on:{click:function(t){return e.openMediaLibrary(e.remainingSlides)}}},[e._v(e._s(e.addLabel))]),i("span",{staticClass:"slideshow__note f--small"},[e._t("default")],2)],1):e._e(),e.slides.length?i("draggable",{staticClass:"slideshow__content",attrs:{options:e.dragOptions},model:{value:e.slides,callback:function(t){e.slides=t},expression:"slides"}},[i("transition-group",{attrs:{name:"draggable_list",tag:"div"}},e._l(e.slides,(function(t,n){return i("div",{key:t.id,staticClass:"slide"},[e.disabled?e._e():i("div",{staticClass:"slide__handle"},[i("div",{staticClass:"slide__handle--drag"})]),i("a17-mediafield",{staticClass:"slide__content",attrs:{name:e.name+"_"+t.id,index:n,mediaContext:e.name,cropContext:e.cropContext,hover:e.hoverable,isSlide:!0,withAddInfo:e.withAddInfo,withCaption:e.withCaption,withVideoUrl:e.withVideoUrl,altTextMaxLength:e.altTextMaxLength,captionMaxLength:e.captionMaxLength,extraMetadatas:e.extraMetadatas,disabled:e.disabled}})],1)})),0)],1):e._e(),!e.buttonOnTop&&e.remainingSlides>0?i("div",{staticClass:"slideshow__trigger"},[i("a17-button",{attrs:{disabled:e.disabled,type:"button",variant:"ghost"},on:{click:function(t){return e.openMediaLibrary(e.remainingSlides)}}},[e._v(e._s(e.addLabel))]),i("span",{staticClass:"slideshow__note f--small"},[e._t("default")],2)],1):e._e()],1)},Vn=[],qn=i("5420"),Wn=i("1980"),Hn=i.n(Wn);function zn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Kn(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?zn(Object(i),!0).forEach((function(t){Gn(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):zn(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Gn(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var Yn={name:"A17Slideshow",components:{draggable:Hn.a},mixins:[qn["a"],Kt["a"],Gt],props:{name:{type:String,required:!0},itemLabel:{type:String,default:"image"},max:{type:Number,default:10},buttonOnTop:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{handle:".slide__handle",hoverable:!0}},computed:Kn({remainingSlides:function(){return Math.max(0,this.max-this.slides.length)},addLabel:function(){var e=this.itemLabel+"s";return"Attach "+e},slides:{get:function(){return this.selectedMedias.hasOwnProperty(this.name)&&this.selectedMedias[this.name]||[]},set:function(e){this.$store.commit(r["h"].REORDER_MEDIAS,{name:this.name,medias:e})}}},Object(pe["c"])({selectedMedias:function(e){return e.mediaLibrary.selected}})),methods:{deleteSlideshow:function(){this.$store.commit(r["h"].DESTROY_MEDIAS,this.name)},destroyValue:function(){this.isSlide||this.isDestroyed||this.deleteMedia()}}},Xn=Yn,Jn=(i("84d7"),Object(l["a"])(Xn,Un,Vn,!1,null,"13eda46a",null)),Qn=Jn.exports,Zn=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"browserField"},[e.buttonOnTop&&e.remainingItems?i("div",{staticClass:"browserField__trigger"},[i("a17-button",{attrs:{type:"button",disabled:e.disabled||e.connectedBrowserField&&0===e.connectedBrowserFieldItems.length,variant:"ghost"},on:{click:e.openBrowser}},[e._v(" "+e._s(e.addLabel)+" ")]),i("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.itemsIds}}),i("span",{staticClass:"browserField__note f--small"},[e._t("default")],2)],1):e._e(),e.items.length?i("table",{staticClass:"browserField__table"},[i("draggable",{attrs:{tag:"tbody",disabled:e.disabled},model:{value:e.items,callback:function(t){e.items=t},expression:"items"}},e._l(e.items,(function(t,n){return i("a17-browseritem",{key:t.endpointType+"_"+t.id,staticClass:"item__content",attrs:{name:e.name+"_"+t.id,draggable:!e.disabled&&e.draggable,item:t,disabled:e.disabled,max:e.max,showType:e.endpoints.length>0},on:{delete:function(t){return e.deleteItem(n)}}})})),1)],1):e._e(),!e.buttonOnTop&&e.remainingItems?i("div",{staticClass:"browserField__trigger"},[i("a17-button",{attrs:{type:"button",disabled:e.disabled||e.connectedBrowserField&&0===e.connectedBrowserFieldItems.length,variant:"ghost"},on:{click:e.openBrowser}},[e._v(" "+e._s(e.addLabel)+" ")]),i("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.itemsIds}}),i("span",{staticClass:"browserField__note f--small"},[e._t("default")],2)],1):e._e()])},ea=[],ta=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("tr",{staticClass:"browserItem"},[e.draggable&&e.max>1?i("td",{staticClass:"browserItem__cell browserItem__cell--drag"},[i("div",{staticClass:"drag__handle--drag"})]):e._e(),e.currentItem.hasOwnProperty("thumbnail")?i("td",{staticClass:"browserItem__cell browserItem__cell--thumb"},[i("a",{attrs:{href:"#",target:"_blank"}},[i("img",{attrs:{src:e.currentItem.thumbnail}})])]):e._e(),i("td",{staticClass:"browserItem__cell browserItem__cell--name"},[i("a",{attrs:{href:e.currentItem.edit,target:"_blank"}},[e.currentItem.hasOwnProperty("renderHtml")?i("span",{staticClass:"f--link-underlined--o",domProps:{innerHTML:e._s(e.currentItem.name)}}):i("span",{staticClass:"f--link-underlined--o"},[e._v(e._s(e.currentItem.name))])]),i("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.currentItem.id}})]),e.currentItem.hasOwnProperty("endpointType")&&e.showType?i("td",{staticClass:"browserItem__cell browserItem__cell--type"},[i("span",[e._v(e._s(e.currentItem.endpointType))])]):e._e(),i("td",{staticClass:"browserItem__cell browserItem__cell--icon"},[e.disabled?e._e():i("a17-button",{staticClass:"bucket__action",attrs:{icon:"close"},on:{click:function(t){return e.deleteItem()}}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"close_icon"}})])],1)])},ia=[],na={name:"A17BrowserItem",props:{name:{type:String,required:!0},draggable:{type:Boolean,default:!1},item:{type:Object,default:function(){return{}}},max:{type:Number,default:10},showType:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{handle:".item__handle"}},computed:{currentItem:function(){return this.item}},methods:{deleteItem:function(){this.$emit("delete")}}},aa=na,ra=(i("b919"),Object(l["a"])(aa,ta,ia,!1,null,"65f24c65",null)),sa=ra.exports;function oa(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function la(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(i),!0).forEach((function(t){ca(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):oa(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function ca(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var ua={name:"A17BrowserField",components:{"a17-browseritem":sa,draggable:Hn.a},mixins:[qn["a"]],props:{name:{type:String,required:!0},modalTitle:{type:String,default:""},browserNote:{type:String,default:""},itemLabel:{type:String,default:"Item"},endpoint:{type:String,default:""},endpoints:{type:Array,default:function(){return[]}},draggable:{type:Boolean,default:!0},max:{type:Number,default:10},wide:{type:Boolean,default:!1},buttonOnTop:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},connectedBrowserField:{type:String,defautl:null}},data:function(){return{handle:".item__handle"}},computed:la(la({remainingItems:function(){return this.max-this.items.length},addLabel:function(){return this.$trans("fields.browser.add-label","Add")+" "+this.itemLabel},browserTitle:function(){return""!==this.modalTitle?this.modalTitle:this.addLabel},items:{get:function(){return this.selectedBrowser.hasOwnProperty(this.name)&&this.selectedBrowser[this.name]||[]},set:function(e){this.$store.commit(r["c"].REORDER_ITEMS,{name:this.name,items:e})}},itemsIds:function(){return this.selectedItemsByIds[this.name]?this.selectedItemsByIds[this.name].join():""},connectedBrowserFieldItems:function(){return this.selectedBrowser[this.connectedBrowserField]||[]}},Object(pe["c"])({selectedBrowser:function(e){return e.browser.selected}})),Object(pe["b"])(["selectedItemsByIds"])),methods:{deleteAll:function(){this.$store.commit(r["c"].DESTROY_ITEMS,{name:this.name})},deleteItem:function(e){this.$store.commit(r["c"].DESTROY_ITEM,{name:this.name,index:e})},openBrowser:function(){if(this.$store.commit(r["c"].UPDATE_BROWSER_CONNECTOR,this.name),this.endpoints.length>0)this.$store.commit(r["c"].UPDATE_BROWSER_ENDPOINTS,this.endpoints);else{this.$store.commit(r["c"].DESTROY_BROWSER_ENDPOINTS);var e=this.endpoint;if(this.connectedBrowserFieldItems.length){var t="?";e.indexOf("?")>-1&&(t="&"),e=e+t+"connectedBrowserIds= "+encodeURIComponent(JSON.stringify(this.connectedBrowserFieldItems.map((function(e){return e.id}))))}this.$store.commit(r["c"].UPDATE_BROWSER_ENDPOINT,{value:e,label:this.name})}this.$store.commit(r["c"].UPDATE_BROWSER_MAX,this.max),this.$store.commit(r["c"].UPDATE_BROWSER_TITLE,this.browserTitle),this.$store.commit(r["c"].UPDATE_BROWSER_NOTE,this.browserNote),this.wide?this.$root.$refs.browserWide.open(this.endpoints.length<=0):this.$root.$refs.browser.open(this.endpoints.length<=0)},destroyValue:function(){this.deleteAll()}},watch:{connectedBrowserFieldItems:function(e){this.connectedBrowserField&&0===e.length&&this.deleteAll()}}},da=ua,fa=(i("4863"),Object(l["a"])(da,Zn,ea,!1,null,"1bc3ecbd",null)),ha=fa.exports,pa=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a17-inputframe",{attrs:{error:e.error,label:e.label,locale:e.locale,size:e.size,name:e.name,note:e.fieldNote},on:{localize:e.updateLocale}},[i("div",{staticClass:"fileField"},[e.buttonOnTop&&e.remainingItems?i("div",{staticClass:"fileField__trigger"},[i("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.itemsIds}}),i("a17-button",{attrs:{type:"button",variant:"ghost"},on:{click:function(t){return e.openMediaLibrary(e.remainingItems)}}},[e._v(e._s(e.addLabel))]),i("span",{staticClass:"fileField__note f--small"},[e._v(e._s(e.note))])],1):e._e(),e.items.length?i("table",{staticClass:"fileField__list"},[i("draggable",{attrs:{tag:"tbody"},model:{value:e.items,callback:function(t){e.items=t},expression:"items"}},e._l(e.items,(function(t,n){return i("a17-fileitem",{key:t.id,staticClass:"item__content",attrs:{name:e.name+"_"+t.id,draggable:e.isDraggable,item:t},on:{delete:function(t){return e.deleteItem(n)}}})})),1)],1):e._e(),!e.buttonOnTop&&e.remainingItems?i("div",{staticClass:"fileField__trigger"},[i("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.itemsIds}}),i("a17-button",{attrs:{type:"button",variant:"ghost"},on:{click:function(t){return e.openMediaLibrary(e.remainingItems)}}},[e._v(e._s(e.addLabel))]),i("span",{staticClass:"fileField__note f--small"},[e._v(e._s(e.note))])],1):e._e()])])},ma=[],ba=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("tr",{staticClass:"fileItem"},[e.draggable?i("td",{staticClass:"fileItem__cell fileItem__cell--drag"},[i("div",{staticClass:"drag__handle--drag"})]):e._e(),e.currentItem.hasOwnProperty("extension")?i("td",{staticClass:"fileItem__cell fileItem__cell--extension"},[i("a",{attrs:{href:"#",target:"_blank"}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:e.getSvgIconName()}})])]):e._e(),i("td",{staticClass:"fileItem__cell fileItem__cell--name"},[e.currentItem.hasOwnProperty("thumbnail")?i("span",[i("img",{attrs:{src:e.currentItem.thumbnail}})]):e._e(),i("a",{attrs:{href:e.currentItem.hasOwnProperty("original")?e.currentItem.original:"#",download:""}},[i("span",{staticClass:"f--link-underlined--o"},[e._v(e._s(e.currentItem.name))])]),i("input",{attrs:{type:"hidden",name:e.name},domProps:{value:e.currentItem.id}})]),e.currentItem.hasOwnProperty("size")?i("td",{staticClass:" fileItem__cell fileItem__cell--size"},[e._v(e._s(e.currentItem.size))]):e._e(),i("td",{staticClass:"fileItem__cell"},[i("a17-button",{staticClass:"bucket__action",attrs:{icon:"close"},on:{click:function(t){return e.deleteItem()}}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"close_icon"}})])],1)])},ga=[],va={img:{extensions:["gif","png","jpg"],icon:"img",display:"Image File",instructions:"Most Image files are natively recognized by your computer."},tiff:{extensions:["tiff","tif"],icon:"img",display:"TIFF Image",instructions:"To read TIFF images, you need <a href='http://www.adobe.com/products/photoshop/' target='_blank'>Adobe Photoshop</a> or similar."},eps:{extensions:["eps","ps"],icon:"eps",display:"Postscript File",instructions:"To read Postscript files, you need <a href='http://www.adobe.com/products/illustrator/' target='_blank'>Adobe Illustrator</a> or similar."},bmp:{extensions:["bmp"],icon:"img",display:"Bitmap Image",instructions:"To read Bitmap images, you need <a href='http://www.adobe.com/products/photoshop/' target='_blank'>Adobe Photoshop</a> or similar."},raw:{extensions:["3fr","arw","srf","sr2","bay","crw","cr2","cap","iiq","eip","dng","erf","fff","mef","mos","mrw","nef","nrw","orf","ptx","pef","pxn","r3d","raf","raw","rw2","rwz","k25","kdc","dcs","drf","x3f"],icon:"img",display:"RAW Image",instructions:"To read RAW images, you need <a href='http://www.adobe.com/products/photoshop/' target='_blank'>Adobe Photoshop</a> or similar."},indd:{extensions:["indd"],icon:"indd",display:"InDesign Document",instructions:"To read InDesign documents, you need <a href='http://www.adobe.com/products/indesign/' target='_blank'>Adobe InDesign</a> or similar."},psd:{extensions:["psd"],icon:"psd",display:"Photoshop File",instructions:"To read Photoshop files, you need <a href='http://www.adobe.com/products/photoshop/' target='_blank'>Adobe Photoshop</a> or similar."},ai:{extensions:["ai"],icon:"ai",display:"Illustrator File",instructions:"To read Illustrator files, you need <a href='http://www.adobe.com/products/illustrator/' target='_blank'>Adobe Illustrator</a> or similar."},indb:{extensions:["indb"],icon:"indd",display:"InDesign Book",instructions:"To read InDesign books, you need <a href='http://www.adobe.com/products/indesign/' target='_blank'>Adobe InDesign</a> or similar."},ase:{extensions:["ase"],icon:"ase",display:"Adobe Swatch File",instructions:"To read Swatch files, you need <a href='http://www.adobe.com/products/creativesuite/' target='_blank'>Adobe Creative Suite</a> or similar."},snd:{extensions:["mp3","wav"],icon:"snd",display:"Audio File",instructions:"To listen to Audio files, you need Apple QuickTime, Windows Media Player or similar."},vid:{extensions:["avi","mov","mp4","mpg","mpeg","wmv","flv"],icon:"vid",display:"Movie File",instructions:"To watch Movie files, you need Apple QuickTime, Windows Media Player or similar."},fla:{extensions:["fla"],icon:"fla",display:"Flash Document",instructions:"To read Flash documents, you need <a href='http://get.adobe.com/flashplayer/' target='_blank'>Adobe Flash player</a>."},swf:{extensions:["swf"],icon:"swf",display:"Flash Movie",instructions:"To read Flash movies, you need <a href='http://get.adobe.com/flashplayer/' target='_blank'>Adobe Flash player</a>."},dcr:{extensions:["dcr"],icon:"dcr",display:"Shockwave Movie",instructions:"To read Shockwave movies, you need <a href='http://get.adobe.com/flashplayer/' target='_blank'>Adobe Flash player</a>."},ae:{extensions:["ae","aep"],icon:"ae",display:"After Effect File",instructions:"To read After Effect files, you need <a href='http://www.adobe.com/products/aftereffects/' target='_blank'>Adobe After Effects</a>."},pdf:{extensions:["pdf"],icon:"pdf",display:"PDF Document",instructions:"To read PDF documents, You need the free <a href='http://get.adobe.com/reader/' target='_blank'>Adobe Acrobat Reader</a> or similar."},doc:{extensions:["doc","docx"],icon:"doc",display:"Word Document",instructions:"To read Word documents, you need <a href='http://office.microsoft.com/en-us/word/' target='_blank'>Microsoft Word</a> or similar."},xls:{extensions:["xls","xlsx"],icon:"xls",display:"Excel Document",instructions:"To read Excel documents, you need <a href='http://office.microsoft.com/en-us/excel/' target='_blank'>Microsoft Excel</a>, or similar."},ppt:{extensions:["ppt","pptx","pps"],icon:"ppt",display:"Powerpoint Document",instructions:"To read PowerPoint documents, you need <a href='http://office.microsoft.com/en-us/powerpoint/' target='_blank'>Microsoft PowerPoint</a>, or similar."},pages:{extensions:["pages"],icon:"pages",display:"Pages Document",instructions:"To read Pages documents, you need <a href='http://www.apple.com/iwork/pages/' target='_blank'>Apple iWorks</a>."},numbers:{extensions:["numbers"],icon:"numbers",display:"Numbers Document",instructions:"To read Numbers documents, you need <a href='http://www.apple.com/iwork/numbers/' target='_blank'>Apple iWorks</a>."},key:{extensions:["key"],icon:"key",display:"Keynote Document",instructions:"To read Keynote Documents, you need <a href='http://www.apple.com/iwork/keynote/' target='_blank'>Apple iWorks</a>."},csv:{extensions:["csv"],icon:"sql",display:"CSV File",instructions:"CSV files can be opened with a spreadsheet application such as Microsoft Excel or similar."},txt:{extensions:["txt"],icon:"txt",display:"Text File",instructions:"To read TXT files, you need any standard text editor."},rtf:{extensions:["rtf"],icon:"txt",display:"Rich Text File",instructions:"To read RTF files, you need any standard text editor."},merlin:{extensions:["merlin","merlin2"],icon:"merlin",display:"Merlin File",instructions:"To read Merlin files, you need <a href='http://projectwizards.net/' target='_blank'>Merlin</a>."},oplx:{extensions:["oplx"],icon:"merlin",display:"OmniPlan File",instructions:"To read OmniPlan files, you need <a href='https://www.omnigroup.com/omniplan' target='_blank'>OmniPlan</a>."},zip:{extensions:["zip","str","tar","gz"],icon:"zip",display:"Archive",instructions:"Most archive formats are natively recognized by your computer."},dmg:{extensions:["dmg"],icon:"dmg",display:"DMG Installer",instructions:"DMG installers are disc images for Mac used for the installation of applications."},fnt:{extensions:["fnt","ttf","bmap","afm","otf"],icon:"fnt",display:"Font",instructions:"To open Font packages, you need a font manager application such as FontCreator on a PC or Font Book on a Mac."},suit:{extensions:["suit"],icon:"fnt",display:"Font Suitcase",instructions:"To open Font Suitcase, you need a Mac."},html:{extensions:["htm","html","rhtml"],icon:"html",display:"HTML File",instructions:"To read HTML files, you need a standard text editor."},css:{extensions:["css"],icon:"gen",display:"Stylesheet",instructions:"To read CSS files, you need a standard text editor."},php:{extensions:["php"],icon:"gen",display:"PHP File",instructions:"To read PHP files, you need a standard text editor."},yml:{extensions:["yml"],icon:"sql",display:"YAML File",instructions:"To read YAML files, you need a standard text editor."},sql:{extensions:["sql"],icon:"sql",display:"MySql Dump",instructions:"To read MySql Dump files, you need <a href='http://www.mysql.com/' target='_blank'>MySQL</a>."},dir:{extensions:["dir"],icon:"dir",display:"Folder"},cut:{extensions:["cut"],icon:"cut",display:"Shortcut"},ftr:{extensions:["ftr"],icon:"ftr",display:"Feature"},pop:{extensions:["pop"],icon:"pop",display:"Popup Window"},link:{extensions:["net","link","com","fr","net","org","me","us","biz","mobi","info","es","de"],icon:"net",display:"Internet Location"},site:{extensions:["site"],icon:"site",display:"Mini Site"},slide:{extensions:["slide"],icon:"slide",display:"Slideshow"},rss:{extensions:["rss"],icon:"txt",display:"RSS Feed"}},ya=va,_a={name:"a17FileItem",props:{name:{type:String,required:!0},draggable:{type:Boolean,default:!1},item:{type:Object,default:function(){return{}}},itemLabel:{type:String,default:"Item"},endpoint:{type:String,default:""},max:{type:Number,default:10}},data:function(){return{handle:".item__handle"}},computed:{currentItem:function(){return this.item}},methods:{deleteItem:function(){this.$emit("delete")},getSvgIconName:function(){var e=this.currentItem.extension;if(ya.hasOwnProperty(e))return ya[e].icon;for(var t in ya){var i=ya[t].extensions.findIndex((function(t){return t===e}));if(i>-1)return ya[t].icon}return"gen"}}},wa=_a,Oa=(i("c391"),Object(l["a"])(wa,ba,ga,!1,null,"5c6d6a95",null)),Ea=Oa.exports;function Ta(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Sa(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ta(Object(i),!0).forEach((function(t){Aa(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ta(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Aa(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var Da={name:"A17FileField",components:{"a17-fileitem":Ea,draggable:Hn.a},mixins:[qn["a"],Kt["a"],T["a"],O["a"]],props:{type:{type:String,default:"file"},name:{type:String,required:!0},itemLabel:{type:String,default:"Item"},endpoint:{type:String,default:""},draggable:{type:Boolean,default:!0},max:{type:Number,default:1},note:{type:String,default:""},fieldNote:{type:String,default:""},filesizeMax:{type:Number,default:0},buttonOnTop:{type:Boolean,default:!1}},data:function(){return{handle:".item__handle"}},computed:Sa(Sa({remainingItems:function(){return this.max-this.items.length},items:{get:function(){return this.selectedFiles.hasOwnProperty(this.name)&&this.selectedFiles[this.name]||[]},set:function(e){this.$store.commit(r["h"].REORDER_MEDIAS,{name:this.name,medias:e})}},isDraggable:function(){return this.draggable&&this.items.length>1},itemsIds:function(){return this.selectedItemsByIds[this.name]?this.selectedItemsByIds[this.name].join():""},addLabel:function(){return this.$trans("fields.files.add-label","Add")+" "+this.itemLabel}},Object(pe["c"])({selectedFiles:function(e){return e.mediaLibrary.selected}})),Object(pe["b"])(["selectedItemsByIds"])),methods:{deleteAll:function(e){this.$store.commit(r["h"].DESTROY_MEDIAS,{name:this.name})},deleteItem:function(e){this.$store.commit(r["h"].DESTROY_SPECIFIC_MEDIA,{name:this.name,index:e})},destroyValue:function(){this.deleteAll()}}},Ca=Da,Pa=(i("4c38"),Object(l["a"])(Ca,pa,ma,!1,null,"5570116a",null)),xa=Pa.exports,ka=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a17-inputframe",{staticClass:"datePicker",class:{"datePicker--static":e.staticMode,"datePicker--mobile":e.isMobile},attrs:{name:e.name,error:e.error,note:e.note,label:e.label,"label-for":e.uniqId,required:e.required}},[i("div",{ref:e.refs.flatPicker,staticClass:"datePicker__group"},[i("div",{staticClass:"form__field datePicker__field"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.date,expression:"date"}],attrs:{type:"text",name:e.name,id:e.uniqId,required:e.required,placeholder:e.placeHolder,"data-input":"",disabled:e.disabled},domProps:{value:e.date},on:{blur:e.onBlur,input:function(t){t.target.composing||(e.date=t.target.value)}}}),e.clear?i("a",{staticClass:"datePicker__reset",class:{"datePicker__reset--cleared":!e.date},attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.onClear(t)}}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"close_icon"}})]):e._e()])])])},Ma=[],Ia=i("2569"),La=i("cf063"),ja=i.n(La),Ra=(i("0952"),{name:"A17DatePicker",mixins:[y["a"],O["a"],w["a"]],props:{name:{type:String,default:"date"},required:{type:Boolean,default:!1},placeHolder:{type:String,default:""},allowInput:{type:Boolean,default:!1},enableTime:{type:Boolean,default:!1},noCalendar:{type:Boolean,default:!1},time_24hr:{type:Boolean,default:Object(Ia["c"])()},altFormat:{type:String,default:null},inline:{type:Boolean,default:!1},initialValue:{type:String,default:null},hourIncrement:{type:Number,default:1},minuteIncrement:{type:Number,default:30},staticMode:{type:Boolean,default:!1},minDate:{type:String,default:null},maxDate:{type:String,default:null},disabled:{type:Boolean,default:!1},mode:{type:String,default:"single",validator:function(e){return"single"===e||"multiple"===e||"range"===e}},clear:{type:Boolean,default:!1}},data:function(){return{date:this.initialValue,isMobile:!1,flatPicker:null,refs:{flatPicker:"flatPicker"}}},computed:{uniqId:function(e){return this.name+"-"+this.randKey},altFormatComputed:function(){return null!==this.altFormat?this.altFormat:"F j, Y"+(this.enableTime?this.time_24hr||Object(Ia["c"])()?" H:i":" h:i K":"")}},methods:{config:function(){var e=this,t={wrap:!0,altInput:!0,altFormat:e.altFormatComputed,static:e.staticMode,appendTo:e.staticMode?e.$refs[e.refs.flatPicker]:void 0,enableTime:e.enableTime,noCalendar:e.noCalendar,time_24hr:e.time_24hr,inline:e.inline,allowInput:e.allowInput,mode:e.mode,minuteIncrement:e.minuteIncrement,hourIncrement:e.hourIncrement,minDate:e.minDate,maxDate:e.maxDate,onOpen:function(){setTimeout((function(){e.flatPicker.set("maxDate",e.maxDate),e.flatPicker.set("minDate",e.minDate)}),10),e.$emit("open",e.date)},onClose:function(t,i,n){e.$nextTick((function(){e.$emit("input",e.date),e.$emit("close",e.date),e.saveIntoStore()}))}},i=Ia["d"][Object(Ia["a"])()];return void 0!==i&&i.hasOwnProperty("flatpickr")&&(t.locale=i.flatpickr),t},updateFromStore:function(e){e!==this.date&&(this.date=e,this.flatPicker.setDate(e))},onInput:function(e){this.$emit("input",this.date)},onBlur:function(){this.$emit("blur",this.date)},onClear:function(){this.flatPicker.clear(),this.saveIntoStore(),this.$emit("input",this.date)}},mounted:function(){var e=this,t=e.$refs[e.refs.flatPicker],i=e.config();e.flatPicker=new ja.a(t,i),this.isMobile=e.flatPicker.isMobile},beforeDestroy:function(){var e=this;e.flatPicker.destroy()}}),Na=Ra,Ba=(i("10ba"),i("8d2b"),Object(l["a"])(Na,ka,Ma,!1,null,"30e5459d",null)),$a=Ba.exports,Fa=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a17-modal",{ref:"modal",attrs:{title:e.modalTitle,mode:"wide"},on:{open:e.opened}},[i("div",{staticClass:"medialibrary"},[i("div",{staticClass:"medialibrary__frame"},[i("div",{ref:"form",staticClass:"medialibrary__header"},[i("a17-filter",{attrs:{clearOption:!0},on:{submit:e.submitFilter,clear:e.clearFilters}},[e.types.length?i("ul",{staticClass:"secondarynav secondarynav--desktop",attrs:{slot:"navigation"},slot:"navigation"},e._l(e.types,(function(t){return i("li",{key:t.value,staticClass:"secondarynav__item",class:{"s--on":e.type===t.value,"s--disabled":e.type!==t.value&&e.strict}},[i("a",{attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),e.updateType(t.value)}}},[i("span",{staticClass:"secondarynav__link"},[e._v(e._s(t.text))]),t.total>0?i("span",{staticClass:"secondarynav__number"},[e._v("("+e._s(t.total)+")")]):e._e()])])})),0):e._e(),i("div",{staticClass:"secondarynav secondarynav--mobile secondarynav--dropdown",attrs:{slot:"navigation"},slot:"navigation"},[i("a17-dropdown",{ref:"secondaryNavDropdown",attrs:{position:"bottom-left",width:"full",offset:0}},[e.selectedType?i("a17-button",{staticClass:"secondarynav__button",attrs:{variant:"dropdown-transparent",size:"small"},on:{click:function(t){return e.$refs.secondaryNavDropdown.toggle()}}},[i("span",{staticClass:"secondarynav__link"},[e._v(e._s(e.selectedType.text))]),i("span",{staticClass:"secondarynav__number"},[e._v(e._s(e.selectedType.total))])]):e._e(),i("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},[i("ul",e._l(e.types,(function(t){return i("li",{key:t.value,staticClass:"secondarynav__item"},[i("a",{attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),e.updateType(t.value)}}},[i("span",{staticClass:"secondarynav__link"},[e._v(e._s(t.text))]),i("span",{staticClass:"secondarynav__number"},[e._v(e._s(t.total))])])])})),0)])],1)],1),i("div",{attrs:{slot:"hidden-filters"},slot:"hidden-filters"},[i("a17-vselect",{ref:"filter",staticClass:"medialibrary__filter-item",attrs:{name:"tag",options:e.tags,placeholder:e.$trans("media-library.filter-select-label","Filter by tag"),searchable:!0,maxHeight:"175px"}}),i("a17-checkbox",{ref:"unused",staticClass:"medialibrary__filter-item",attrs:{name:"unused","initial-value":0,value:1,label:e.$trans("media-library.unused-filter-label","Show unused only")}})],1)])],1),i("div",{staticClass:"medialibrary__inner"},[i("div",{staticClass:"medialibrary__grid"},[i("aside",{staticClass:"medialibrary__sidebar"},[i("a17-mediasidebar",{attrs:{medias:e.selectedMedias,authorized:e.authorized,extraMetadatas:e.extraMetadatas,type:e.currentTypeObject,translatableMetadatas:e.translatableMetadatas},on:{clear:e.clearSelectedMedias,delete:e.deleteSelectedMedias,tagUpdated:e.reloadTags,triggerMediaReplace:e.replaceMedia}})],1),e.selectedMedias.length&&e.showInsert&&e.connector?i("footer",{staticClass:"medialibrary__footer"},[e.canInsert?i("a17-button",{attrs:{variant:"action"},on:{click:e.saveAndClose}},[e._v(e._s(e.btnLabel))]):i("a17-button",{attrs:{variant:"action",disabled:!0}},[e._v(e._s(e.btnLabel))])],1):e._e(),i("div",{ref:"list",staticClass:"medialibrary__list"},[e.authorized?i("a17-uploader",{ref:"uploader",attrs:{type:e.currentTypeObject},on:{loaded:e.addMedia,clear:e.clearSelectedMedias}}):e._e(),i("div",{staticClass:"medialibrary__list-items"},["file"===e.type?i("a17-itemlist",{attrs:{items:e.renderedMediaItems,"selected-items":e.selectedMedias,"used-items":e.usedMedias},on:{change:e.updateSelectedMedias,shiftChange:e.updateSelectedMedias}}):i("a17-mediagrid",{attrs:{items:e.renderedMediaItems,"selected-items":e.selectedMedias,"used-items":e.usedMedias},on:{change:e.updateSelectedMedias,shiftChange:e.updateSelectedMedias}}),e.loading?i("a17-spinner",{staticClass:"medialibrary__spinner"},[e._v("Loading…")]):e._e()],1)],1)])])])])])},Ua=[],Va=i("bc3a"),qa=i.n(Va),Wa=i("727d"),Ha="MEDIA-LIBRARY",za={get:function(e,t,i,n){qa.a.get(e,{params:t}).then((function(e){i&&"function"===typeof i&&i(e)}),(function(e){var t={message:"Media library get error.",value:e};Object(Wa["a"])(Ha,t),n&&"function"===typeof n&&n(e)}))},update:function(e,t,i,n){qa.a.put(e,t).then((function(e){i&&"function"===typeof i&&i(e)}),(function(e){var t={message:"Media library update error.",value:e};Object(Wa["a"])(Ha,t),n&&"function"===typeof n&&n(e)}))},delete:function(e,t,i){qa.a.delete(e).then((function(e){t&&"function"===typeof t&&t(e)}),(function(e){var t={message:"Media library delete error.",value:e};Object(Wa["a"])(Ha,t),i&&"function"===typeof i&&i(e)}))},bulkDelete:function(e,t,i,n){qa.a.put(e,t).then((function(e){i&&"function"===typeof i&&i(e)}),(function(e){var t={message:"Media library bulk delete error.",value:e};Object(Wa["a"])(Ha,t),n&&"function"===typeof n&&n(e)}))}},Ka=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"mediasidebar"},[e.mediasLoading.length?i("a17-mediasidebar-upload"):[i("div",{staticClass:"mediasidebar__inner",class:e.containerClasses},[e.hasMedia?e._e():i("p",{staticClass:"f--note"},[e._v(e._s(e.$trans("media-library.sidebar.empty-text","No file selected")))]),e.hasMultipleMedias?i("p",{staticClass:"mediasidebar__info"},[e._v(" "+e._s(e.medias.length)+" "+e._s(e.$trans("media-library.sidebar.files-selected","files selected"))+" "),i("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.clear(t)}}},[e._v(e._s(e.$trans("media-library.sidebar.clear","Clear")))])]):e._e(),e.hasSingleMedia?[e.isImage?i("img",{staticClass:"mediasidebar__img",attrs:{src:e.firstMedia.thumbnail,alt:e.firstMedia.original}}):e._e(),i("p",{staticClass:"mediasidebar__name"},[e._v(e._s(e.firstMedia.name))]),i("ul",{staticClass:"mediasidebar__metadatas"},[e.firstMedia.size?i("li",{staticClass:"f--small"},[e._v("File size: "+e._s(e._f("uppercase")(e.firstMedia.size)))]):e._e(),e.isImage&&e.firstMedia.width+e.firstMedia.height?i("li",{staticClass:"f--small"},[e._v(" "+e._s(e.$trans("media-library.sidebar.dimensions","Dimensions"))+": "+e._s(e.firstMedia.width)+" × "+e._s(e.firstMedia.height)+" ")]):e._e()])]:e._e(),e.hasMedia?i("a17-buttonbar",{staticClass:"mediasidebar__buttonbar"},[e.hasSingleMedia?i("a",{attrs:{href:e.firstMedia.original,download:""}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"download"}})]):e._e(),e.allowDelete&&e.authorized?i("button",{attrs:{type:"button"},on:{click:e.deleteSelectedMediasValidation}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"trash"}})]):i("button",{directives:[{name:"tooltip",rawName:"v-tooltip"}],staticClass:"button--disabled",attrs:{type:"button","data-tooltip-title":e.warningDeleteMessage}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"trash"}})]),e.hasSingleMedia?i("button",{attrs:{type:"button"},on:{click:e.replaceMedia}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"replace"}})]):e._e()]):e._e()],2),e.hasMedia?i("form",{ref:"form",staticClass:"mediasidebar__inner mediasidebar__form",on:{submit:e.submit}},[e.loading?i("span",{staticClass:"mediasidebar__loader"},[i("span",{staticClass:"loader loader--small"},[i("span")])]):e._e(),e.fieldsRemovedFromBulkEditing.includes("tags")?e._e():i("a17-vselect",{key:e.firstMedia.id+"-"+e.medias.length,attrs:{label:e.$trans("media-library.sidebar.tags"),name:"tags",multiple:!0,selected:e.hasMultipleMedias?e.sharedTags:e.firstMedia.tags,searchable:!0,emptyText:e.$trans("media-library.no-tags-found","Sorry, no tags found."),taggable:!0,pushTags:!0,size:"small",endpoint:e.type.tagsEndpoint,maxHeight:"175px"},on:{change:e.save}}),e.extraMetadatas.length&&e.isImage&&e.hasMultipleMedias&&!e.fieldsRemovedFromBulkEditing.includes("tags")?i("span",{directives:[{name:"tooltip",rawName:"v-tooltip"}],staticClass:"f--tiny f--note f--underlined",attrs:{"data-tooltip-title":"Remove this field if you do not want to update it on all selected medias","data-tooltip-theme":"default","data-tooltip-placement":"top"},on:{click:function(t){return e.removeFieldFromBulkEditing("tags")}}},[e._v("Remove from bulk edit")]):e._e(),e.hasMultipleMedias?[i("input",{attrs:{type:"hidden",name:"ids"},domProps:{value:e.mediasIds}})]:[i("input",{attrs:{type:"hidden",name:"id"},domProps:{value:e.firstMedia.id}}),e.translatableMetadatas.length>0?i("div",{staticClass:"mediasidebar__langswitcher"},[i("a17-langswitcher",{attrs:{"in-modal":!0,"all-published":!0}})],1):e._e(),e.isImage&&e.translatableMetadatas.includes("alt_text")?i("a17-locale",{attrs:{type:"a17-textfield",attributes:{label:e.$trans("media-library.sidebar.alt-text","Alt text"),name:"alt_text",type:"text",size:"small"},keepInDom:!0,initialValues:e.altValues},on:{focus:e.focus,blur:e.blur}}):e.isImage?i("a17-textfield",{attrs:{label:e.$trans("media-library.sidebar.alt-text","Alt text"),name:"alt_text",initialValue:e.firstMedia.metadatas.default.altText,size:"small"},on:{focus:e.focus,blur:e.blur}}):e._e(),e.useWysiwyg?[e.isImage&&e.translatableMetadatas.includes("caption")?i("a17-locale",{attrs:{type:"a17-wysiwyg",attributes:{options:e.wysiwygOptions,label:e.$trans("media-library.sidebar.caption","Caption"),name:"caption",size:"small"},keepInDom:!0,initialValues:e.captionValues},on:{focus:e.focus,blur:e.blur}}):e.isImage?i("a17-wysiwyg",{attrs:{type:"textarea",rows:1,size:"small",label:e.$trans("media-library.sidebar.caption","Caption"),name:"caption",options:e.wysiwygOptions,initialValue:e.firstMedia.metadatas.default.caption},on:{focus:e.focus,blur:e.blur}}):e._e()]:[e.isImage&&e.translatableMetadatas.includes("caption")?i("a17-locale",{attrs:{type:"a17-textfield",attributes:{type:"textarea",rows:1,label:e.$trans("media-library.sidebar.caption","Caption"),name:"caption",size:"small"},keepInDom:!0,initialValues:e.captionValues},on:{focus:e.focus,blur:e.blur}}):e.isImage?i("a17-textfield",{attrs:{type:"textarea",rows:1,size:"small",label:e.$trans("media-library.sidebar.caption","Caption"),name:"caption",initialValue:e.firstMedia.metadatas.default.caption},on:{focus:e.focus,blur:e.blur}}):e._e()],e._l(e.singleOnlyMetadatas,(function(t){return[!e.isImage||"text"!==t.type&&t.type||!e.translatableMetadatas.includes(t.name)?!e.isImage||"text"!==t.type&&t.type?e._e():i("a17-textfield",{key:t.name,attrs:{label:t.label,name:t.name,size:"small",initialValue:e.firstMedia.metadatas.default[t.name],type:"textarea",rows:1},on:{focus:e.focus,blur:e.blur}}):i("a17-locale",{key:t.name,attrs:{type:"a17-textfield",keepInDom:!0,attributes:{label:t.label,name:t.name,type:"textarea",rows:1,size:"small"},initialValues:e.firstMedia.metadatas.default[t.name]},on:{focus:e.focus,blur:e.blur}}),e.isImage&&"checkbox"===t.type?i("div",{key:t.name,staticClass:"mediasidebar__checkbox"},[i("a17-checkbox",{attrs:{label:t.label,name:t.name,initialValue:e.firstMedia.metadatas.default[t.name],value:1},on:{change:e.blur}})],1):e._e()]}))],e._l(e.singleAndMultipleMetadatas,(function(t){return[e.isImage&&("text"===t.type||!t.type)&&(e.hasMultipleMedias&&!e.fieldsRemovedFromBulkEditing.includes(t.name)||e.hasSingleMedia)&&e.translatableMetadatas.includes(t.name)?i("a17-locale",{key:t.name,attrs:{type:"a17-textfield",keepInDom:!0,attributes:{label:t.label,name:t.name,type:"textarea",rows:1,size:"small"},initialValues:e.sharedMetadata(t.name,"object")},on:{focus:e.focus,blur:e.blur}}):!e.isImage||"text"!==t.type&&t.type||!(e.hasMultipleMedias&&!e.fieldsRemovedFromBulkEditing.includes(t.name)||e.hasSingleMedia)?e._e():i("a17-textfield",{key:t.name,attrs:{label:t.label,name:t.name,size:"small",initialValue:e.sharedMetadata(t.name),type:"textarea",rows:1},on:{focus:e.focus,blur:e.blur}}),e.isImage&&"checkbox"===t.type&&(e.hasMultipleMedias&&!e.fieldsRemovedFromBulkEditing.includes(t.name)||e.hasSingleMedia)?i("div",{key:t.name,staticClass:"mediasidebar__checkbox"},[i("a17-checkbox",{key:t.name,attrs:{label:t.label,name:t.name,initialValue:e.sharedMetadata(t.name,"boolean"),value:1},on:{change:e.blur}})],1):e._e(),e.isImage&&e.hasMultipleMedias&&!e.fieldsRemovedFromBulkEditing.includes(t.name)?i("span",{directives:[{name:"tooltip",rawName:"v-tooltip"}],key:t.name,staticClass:"f--tiny f--note f--underlined",attrs:{"data-tooltip-title":"Remove this field if you do not want to update it on all selected medias","data-tooltip-theme":"default","data-tooltip-placement":"top"},on:{click:function(i){return e.removeFieldFromBulkEditing(t.name)}}},[e._v("Remove from bulk edit")]):e._e()]}))],2):e._e()],i("a17-modal",{ref:"warningDelete",staticClass:"modal--tiny modal--form modal--withintro",attrs:{title:"Warning Delete"}},[i("p",{staticClass:"modal--tiny-title"},[i("strong",[e._v(e._s(e.$trans("media-library.dialogs.delete.title","Are you sure ?")))])]),i("p",[e._v(e._s(e.warningDeleteMessage))]),i("a17-inputframe",[i("a17-button",{attrs:{variant:"validate"},on:{click:e.deleteSelectedMedias}},[e._v("Delete ("+e._s(e.mediasIdsToDelete.length)+") ")]),i("a17-button",{attrs:{variant:"aslink"},on:{click:function(t){return e.$refs.warningDelete.close()}}},[i("span",[e._v("Cancel")])])],1)],1)],2)},Ga=[],Ya=i("4fee"),Xa=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"mediasidebar__inner mediasidebar__inner--single"},[i("p",{staticClass:"f--note"},[e._v("Uploading "+e._s(e.mediasLoading.length)+" file"+e._s(e.mediasLoading.length>1?"s":""))]),i("div",{staticClass:"mediasidebar__progress"},[i("span",{staticClass:"mediasidebar__progressBar",style:e.loadingProgress})]),i("div",{staticClass:"mediasidebar__loading"},e._l(e.mediasLoading,(function(t){return i("p",{key:t.id,staticClass:"f--small",class:{"s--error":t.error}},[t.error?i("span",{staticClass:"mediasidebar__errorMessage"},[e._v(e._s(t.errorMessage))]):e._e(),i("span",[e._v(e._s(t.name))]),e._v(" "),t.error?i("a",{attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),e.cancelUpload(t)}}},[e._v("Cancel")]):e._e()])})),0)])},Ja=[];function Qa(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Za(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Qa(Object(i),!0).forEach((function(t){er(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Qa(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function er(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var tr={name:"A17MediaSidebarUpload",props:{selectedMedias:{default:function(){return[]}}},data:function(){return{updateInProgress:!1}},computed:Za({loadingProgress:function(){var e=-100+this.uploadProgress;return{transform:"translateX("+e+"%)"}}},Object(pe["c"])({mediasLoading:function(e){return e.mediaLibrary.loading},uploadProgress:function(e){return e.mediaLibrary.uploadProgress}})),methods:{cancelUpload:function(e){this.$store.commit(r["h"].DONE_UPLOAD_MEDIA,e)}}},ir=tr,nr=(i("e45c"),Object(l["a"])(ir,Xa,Ja,!1,null,"2ae92735",null)),ar=nr.exports,rr=i("4168");function sr(e){return sr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sr(e)}function or(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function lr(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?or(Object(i),!0).forEach((function(t){cr(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):or(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function cr(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}for(var ur={name:"A17MediaSidebar",components:{"a17-mediasidebar-upload":ar,"a17-langswitcher":rr["a"]},props:{medias:{default:function(){return[]}},authorized:{type:Boolean,default:!1},type:{type:Object,required:!0},extraMetadatas:{type:Array,default:function(){return[]}},translatableMetadatas:{type:Array,default:function(){return[]}}},data:function(){return{loading:!1,focused:!1,previousSavedData:{},fieldsRemovedFromBulkEditing:[]}},filters:St["a"],watch:{medias:function(){this.fieldsRemovedFromBulkEditing=[]}},computed:lr({firstMedia:function(){return this.hasMedia?this.medias[0]:null},hasMultipleMedias:function(){return this.medias.length>1},hasSingleMedia:function(){return 1===this.medias.length},hasMedia:function(){return this.medias.length>0},isImage:function(){return"image"===this.type.value},sharedTags:function(){return this.medias.map((function(e){return e.tags})).reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))},sharedMetadata:function(){var e=this;return function(t,i){return e.hasMultipleMedias?e.medias.map((function(e){return e.metadatas.default[t]})).every((function(e,t,i){return Array.isArray(e)?e[0]==i[0]:e==i[0]}))?e.firstMedia.metadatas.default[t]:"object"===i?{}:"boolean"!==i&&"":"object"===sr(e.firstMedia.metadatas.default[t])||"boolean"===i?e.firstMedia.metadatas.default[t]:{}}},captionValues:function(){return"object"===sr(this.firstMedia.metadatas.default.caption)?this.firstMedia.metadatas.default.caption:{}},altValues:function(){return"object"===sr(this.firstMedia.metadatas.default.altText)?this.firstMedia.metadatas.default.altText:{}},mediasIds:function(){return this.medias.map((function(e){return e.id})).join(",")},mediasIdsToDelete:function(){return this.medias.filter((function(e){return e.deleteUrl})).map((function(e){return e.id}))},mediasIdsToDeleteString:function(){return this.mediasIdsToDelete.join(",")},allowDelete:function(){return this.medias.every((function(e){return e.deleteUrl}))||this.hasMultipleMedias&&!this.medias.every((function(e){return!e.deleteUrl}))},warningDeleteMessage:function(){return this.allowDelete?this.hasMultipleMedias?this.$trans("media-library.dialogs.delete.allow-delete-multiple-medias","Some files are used and can't be deleted. Do you want to delete the others ?"):this.$trans("media-library.dialogs.delete.allow-delete-one-media","This file is used and can't be deleted. Do you want to delete the others ?"):this.hasMultipleMedias?this.$trans("media-library.dialogs.delete.dont-allow-delete-multiple-medias","This files are used and can't be deleted."):this.$trans("media-library.dialogs.delete.dont-allow-delete-one-media","This file is used and can't be deleted.")},containerClasses:function(){return{"mediasidebar__inner--multi":this.hasMultipleMedias,"mediasidebar__inner--single":this.hasSingleMedia}},singleAndMultipleMetadatas:function(){var e=this;return this.extraMetadatas.filter((function(t){return t.multiple&&!e.translatableMetadatas.includes(t.name)}))},singleOnlyMetadatas:function(){var e=this;return this.extraMetadatas.filter((function(t){return!t.multiple||t.multiple&&e.translatableMetadatas.includes(t.name)}))}},Object(pe["c"])({mediasLoading:function(e){return e.mediaLibrary.loading},useWysiwyg:function(e){return e.mediaLibrary.config.useWysiwyg},wysiwygOptions:function(e){return e.mediaLibrary.config.wysiwygOptions}})),methods:{replaceMedia:function(){var e=this;this.$root.$refs.replaceWarningMediaLibrary?this.$root.$refs.replaceWarningMediaLibrary.open((function(){e.triggerMediaReplace()})):this.triggerMediaReplace()},triggerMediaReplace:function(){this.$emit("triggerMediaReplace",{id:this.getMediaToReplaceId()})},deleteSelectedMediasValidation:function(){var e=this;if(this.loading)return!1;this.mediasIdsToDelete.length===this.medias.length?this.$root.$refs.deleteWarningMediaLibrary?this.$root.$refs.deleteWarningMediaLibrary.open((function(){e.deleteSelectedMedias()})):this.deleteSelectedMedias():this.$refs.warningDelete.open()},deleteSelectedMedias:function(){var e=this;if(this.loading)return!1;this.loading=!0,this.hasMultipleMedias?za.bulkDelete(this.firstMedia.deleteBulkUrl,{ids:this.mediasIdsToDeleteString},(function(t){e.loading=!1,e.$emit("delete",e.mediasIdsToDelete),e.$refs.warningDelete.close()}),(function(t){e.$store.commit(r["j"].SET_NOTIF,{message:t.data.message,variant:"error"})})):za.delete(this.firstMedia.deleteUrl,(function(t){e.loading=!1,e.$emit("delete",e.mediasIdsToDelete),e.$refs.warningDelete.close()}),(function(t){e.$store.commit(r["j"].SET_NOTIF,{message:t.data.message,variant:"error"})}))},clear:function(){this.$emit("clear")},getFormData:function(e){return Object(Ya["a"])(e)},getMediaToReplaceId:function(){return this.firstMedia.id},removeFieldFromBulkEditing:function(e){this.fieldsRemovedFromBulkEditing.push(e)},focus:function(){this.focused=!0},blur:function(){var e=this;this.focused=!1,this.save();var t=this.$refs.form,i=this.getFormData(t);this.hasSingleMedia?(i.hasOwnProperty("alt_text")?this.firstMedia.metadatas.default.altText=i.alt_text:this.firstMedia.metadatas.default.altText="",i.hasOwnProperty("caption")?this.firstMedia.metadatas.default.caption=i.caption:this.firstMedia.metadatas.default.caption="",this.extraMetadatas.forEach((function(t){i.hasOwnProperty(t.name)?e.firstMedia.metadatas.default[t.name]=i[t.name]:e.firstMedia.metadatas.default[t.name]=""}))):this.singleAndMultipleMetadatas.forEach((function(t){i.hasOwnProperty(t.name)&&e.medias.forEach((function(e){e.metadatas.default[t.name]=i[t.name]}))}))},save:function(){var e=this.$refs.form;if(e){var t=this.getFormData(e);$i()(t,this.previousSavedData)||this.loading||(this.previousSavedData=t,this.update(e))}},submit:function(e){e.preventDefault(),this.save()},update:function(e){var t=this;if(!this.loading){this.loading=!0;var i=this.getFormData(e);i.fieldsRemovedFromBulkEditing=this.fieldsRemovedFromBulkEditing;var n=this.hasMultipleMedias?this.firstMedia.updateBulkUrl:this.firstMedia.updateUrl;za.update(n,i,(function(e){t.loading=!1,e.data.tags&&t.$emit("tagUpdated",e.data.tags),t.hasMultipleMedias&&e.data.items&&t.medias.forEach((function(t){e.data.items.some((function(e){return e.id===t.id&&(t.tags=e.tags),e.id===t.id}))}))}),(function(e){t.loading=!1,e.data.message&&t.$store.commit(r["j"].SET_NOTIF,{message:e.data.message,variant:"error"})}))}}}},dr=ur,fr=(i("56c7"),Object(l["a"])(dr,Ka,Ga,!1,null,"307b99e1",null)),hr=fr.exports,pr=i("5d16"),mr=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"uploader"},[i("div",{ref:"uploaderDropzone",staticClass:"uploader__dropzone"},[i("div",{ref:"uploaderBrowseButton",staticClass:"button"},[e._v(e._s(e.$trans("uploader.upload-btn-label","Add new")))]),i("div",{staticClass:"uploader__dropzone--desktop"},[e._v(e._s(e.$trans("uploader.dropzone-text","or drop new files here")))])])])},br=[],gr=i("c565"),vr=i.n(gr),yr=i("2b58"),_r=i.n(yr),wr=i("6572"),Or=i.n(wr),Er=i("03a5"),Tr=i.n(Er),Sr=i("6d6b"),Ar=/[\/\?<>\\:\*\|":]/g,Dr=/[\x00-\x1f\x80-\x9f]/g,Cr=/^\.+$/,Pr=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,xr=/[\. ]+$/,kr=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"\8cŒ"},{base:"oe",letters:"\9cœ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Mr={},Ir=0;Ir<kr.length;Ir++)for(var Lr=kr[Ir].letters.split(""),jr=0;jr<Lr.length;jr++)Mr[Lr[jr]]=kr[Ir].base;function Rr(e,t,i){var n=e.replace(/[^\u0000-\u007E]/g,(function(e){return Mr[e]||e}));return i=i||"",t&&(n=n.replace(/[^\u0000-\u007E]/g,i)),n}function Nr(e,t){var i=Rr(e,!0).replace(Ar,t).replace(Dr,t).replace(Cr,t).replace(Pr,t).replace(xr,t),n=/[^0-9a-zA-Z-.,;_]/g;return i=i.replace(n,""),Sr(i,255)}var Br=function(e,t){var i=t&&t.replacement||"",n=Nr(e,i);return""===i?n:Nr(n,"")};function $r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Fr(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?$r(Object(i),!0).forEach((function(t){Ur(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):$r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Ur(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var Vr={name:"A17Uploader",props:{type:{type:Object,required:!0}},data:function(){return{loadingMedias:[]}},computed:{uploaderConfig:function(){return this.type.uploaderConfig},uploaderValidation:function(){var e=this.uploaderConfig.allowedExtensions;return{allowedExtensions:e,acceptFiles:"."+e.join(", ."),stopOnFirstInvalidFile:!1}}},methods:{initUploader:function(){var e=this,t=this.$refs.uploaderBrowseButton,i={debug:!0,maxConnections:5,button:t,retry:{enableAuto:!1},callbacks:{onSubmit:this._onSubmitCallback.bind(this),onProgress:this._onProgressCallback.bind(this),onError:this._onErrorCallback.bind(this),onComplete:this._onCompleteCallback.bind(this),onAllComplete:this._onAllCompleteCallback.bind(this),onStatusChange:this._onStatusChangeCallback.bind(this),onTotalProgress:this._onTotalProgressCallback.bind(this)},text:{fileInputTitle:"Browse..."},messages:{retryFailTooManyItemsError:"Retry failed - you have reached your file limit.",sizeError:"{file} is too large, maximum file size is {sizeLimit}.",tooManyItemsError:"Too many items ({netItems}) would be uploaded. Item limit is {itemLimit}.",typeError:"{file} has an invalid extension. Valid extension(s): {extensions}."}};this._uploader="s3"===this.uploaderConfig.endpointType?new _r.a({options:Fr(Fr({},i),{},{validation:Fr({},this.uploaderValidation),objectProperties:{key:function(t){return e.unique_folder_name+"/"+Br(e._uploader.methods.getName(t))},region:this.uploaderConfig.endpointRegion,bucket:this.uploaderConfig.endpointBucket,acl:this.uploaderConfig.acl},request:{endpoint:this.uploaderConfig.endpoint,accessKey:this.uploaderConfig.accessKey},signature:{endpoint:this.uploaderConfig.signatureEndpoint,version:4,customHeaders:{"X-CSRF-TOKEN":this.uploaderConfig.csrfToken}},uploadSuccess:{endpoint:this.uploaderConfig.successEndpoint,customHeaders:{"X-CSRF-TOKEN":this.uploaderConfig.csrfToken}}})}):"azure"===this.uploaderConfig.endpointType?new Or.a({options:Fr(Fr({},i),{},{validation:Fr({},this.uploaderValidation),cors:{expected:!0,sendCredentials:!0},blobProperties:{name:function(t){return new Promise((function(i){i(e.unique_folder_name+"/"+Br(e._uploader.methods.getName(t)))}))}},request:{endpoint:this.uploaderConfig.endpoint},signature:{endpoint:this.uploaderConfig.signatureEndpoint,version:4,customHeaders:{"X-CSRF-TOKEN":this.uploaderConfig.csrfToken}},uploadSuccess:{endpoint:this.uploaderConfig.successEndpoint,customHeaders:{"X-CSRF-TOKEN":this.uploaderConfig.csrfToken}}})}):new Tr.a({options:Fr(Fr({},i),{},{validation:Fr(Fr({},this.uploaderValidation),{},{sizeLimit:1048576*this.uploaderConfig.filesizeLimit}),request:{endpoint:this.uploaderConfig.endpoint,customHeaders:{"X-CSRF-TOKEN":this.uploaderConfig.csrfToken}}})})},replaceMedia:function(e){this.media_to_replace_id=e;var t=this.$refs.uploaderBrowseButton.querySelectorAll('[name = "qqfile"]');t[Array.from(t).length-1].click()},loadingProgress:function(e){this.$store.commit(r["h"].PROGRESS_UPLOAD_MEDIA,e)},loadingFinished:function(e,t){this.$emit("loaded",t),this.$store.commit(r["h"].DONE_UPLOAD_MEDIA,e)},loadingError:function(e){this.$store.commit(r["h"].ERROR_UPLOAD_MEDIA,e)},uploadProgress:function(e){this.$store.commit(r["h"].PROGRESS_UPLOAD,e)},_onCompleteCallback:function(e,t,i,n){var a=this,r=this.loadingMedias.findIndex((function(t){return t.id===a._uploader.methods.getUuid(e)}));i.success?this.loadingFinished(this.loadingMedias[r],i.media):this.loadingError(this.loadingMedias[r])},_onAllCompleteCallback:function(e,t){this.unique_folder_name=null,this.uploadProgress(0)},_onSubmitCallback:function(e,t){var i=this;this.$emit("clear"),this.unique_folder_name=this.unique_folder_name||this.uploaderConfig.endpointRoot+vr.a.getUniqueId(),this._uploader.methods.setParams({unique_folder_name:this.unique_folder_name,media_to_replace_id:this.media_to_replace_id},e);var n=URL.createObjectURL(this._uploader.methods.getFile(e)),a=new Image;a.onload=function(){i._uploader.methods.setParams({width:a.width,height:a.height,unique_folder_name:i.unique_folder_name,media_to_replace_id:i.media_to_replace_id},e),i.media_to_replace_id=null},a.src=n;var r={id:this._uploader.methods.getUuid(e),name:Br(t),progress:0,error:!1,errorMessage:null,isReplacement:!!this.media_to_replace_id,replacementId:this.media_to_replace_id};"file"===this.type.value&&(this.media_to_replace_id=null),this.loadingMedias.push(r),this.loadingProgress(r)},_onProgressCallback:function(e,t,i,n){var a=this,r=this.loadingMedias.findIndex((function(t){return t.id===a._uploader.methods.getUuid(e)}));if(r>=0){var s=this.loadingMedias[r];s.progress=i/n*100||0,s.error=!1,this.loadingProgress(s)}},_onErrorCallback:function(e,t,i,n){var a=this,r=e?this.loadingMedias.findIndex((function(t){return t.id===a._uploader.methods.getUuid(e)})):-1;if(r>=0)this.loadingMedias[r].errorMessage=i,this.loadingError(this.loadingMedias[r]);else{var s={id:e?this._uploader.methods.getUuid(e):Math.floor(1e3*Math.random()),name:Br(t),progress:0,error:!0,errorMessage:i};this.loadingMedias.push(s),this.loadingProgress(s),this.loadingError(this.loadingMedias[this.loadingMedias.length-1])}},_onStatusChangeCallback:function(e,t,i){if("retrying upload"===i){var n=this.loadingMedias.findIndex((function(t){return t.id===e}));if(n>=0){var a=this.loadingMedias[n];a.progress=0,a.error=!1,this.loadingProgress(a)}}},_onTotalProgressCallback:function(e,t){var i=Math.floor(e/t*100);this.uploadProgress(i)},_onDropError:function(e,t){console.error(e,t)},_onProcessingDroppedFilesComplete:function(e){this._uploader.methods.addFiles(e)}},watch:{type:function(){this._uploader&&this.initUploader()}},mounted:function(){this.initUploader();var e=this.$refs.uploaderDropzone;this._qqDropzone&&this._qqDropzone.dispose(),this._qqDropzone=new vr.a.DragAndDrop({dropZoneElements:[e],allowMultipleItems:!0,callbacks:{dropError:this._onDropError.bind(this),processingDroppedFilesComplete:this._onProcessingDroppedFilesComplete.bind(this)}})},beforeDestroy:function(){this._qqDropzone&&this._qqDropzone.dispose()}},qr=Vr,Wr=(i("c3fe"),Object(l["a"])(qr,mr,br,!1,null,"5faf32cf",null)),Hr=Wr.exports,zr=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"mediagrid"},[e._l(e.itemsLoading,(function(t,n){return i("div",{directives:[{name:"show",rawName:"v-show",value:!t.isReplacement,expression:"!item.isReplacement"}],key:"mediaLoading_"+t.id,staticClass:"mediagrid__item"},[i("span",{staticClass:"mediagrid__button s--loading"},[t.error?i("span",{staticClass:"mediagrid__progressError"},[e._v("Upload Error")]):i("span",{staticClass:"mediagrid__progress"},[i("span",{staticClass:"mediagrid__progressBar",style:e.loadingProgress(n)})])])])})),e._l(e.items,(function(t){return i("div",{key:t.id,staticClass:"mediagrid__item",class:{"s--hasFilename":e.showFileName}},[i("span",{staticClass:"mediagrid__button",class:{"s--picked":e.isSelected(t),"s--used":e.isUsed(t)||!!e.replacingMediaIds[t.id],"s--disabled":t.disabled},on:{click:[function(i){return i.ctrlKey||i.shiftKey||i.altKey||i.metaKey?null:e.toggleSelection(t)},function(i){return i.shiftKey?i.ctrlKey||i.altKey||i.metaKey?null:e.shiftToggleSelection(t):null}]}},[i("img",{staticClass:"mediagrid__img",attrs:{src:t.thumbnail}})]),e.showFileName?i("p",{staticClass:"mediagrid__name",attrs:{title:t.name}},[e._v(e._s(t.name))]):e._e()])}))],2)},Kr=[],Gr=i("df63");function Yr(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Xr(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Yr(Object(i),!0).forEach((function(t){Jr(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Yr(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Jr(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var Qr={name:"A17Mediagrid",mixins:[Gr["a"]],computed:Xr({},Object(pe["c"])({showFileName:function(e){return e.mediaLibrary.showFileName}})),methods:{loadingProgress:function(e){return{width:this.itemsLoading[e].progress?this.itemsLoading[e].progress+"%":"0%"}}}},Zr=Qr,es=(i("030e"),Object(l["a"])(Zr,zr,Kr,!1,null,"414f2238",null)),ts=es.exports,is=i("1800"),ns=i("64e5"),as=i("2c83");function rs(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function ss(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?rs(Object(i),!0).forEach((function(t){os(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):rs(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function os(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var ls={name:"A17Medialibrary",components:{"a17-filter":pr["a"],"a17-mediasidebar":hr,"a17-uploader":Hr,"a17-mediagrid":ts,"a17-itemlist":is["a"],"a17-spinner":ns["a"],"a17-checkbox":Ci},props:{modalTitlePrefix:{type:String,default:function(){return this.$trans("media-library.title","Media Library")}},btnLabelSingle:{type:String,default:function(){return this.$trans("media-library.insert","Insert")}},btnLabelUpdate:{type:String,default:function(){return this.$trans("media-library.update","Update")}},btnLabelMulti:{type:String,default:function(){return this.$trans("media-library.insert","Insert")}},initialPage:{type:Number,default:1},authorized:{type:Boolean,default:!1},showInsert:{type:Boolean,default:!0},extraMetadatas:{type:Array,default:function(){return[]}},translatableMetadatas:{type:Array,default:function(){return[]}}},data:function(){return{loading:!1,maxPage:20,mediaItems:[],selectedMedias:[],gridHeight:0,page:this.initialPage,tags:[],lastScrollTop:0,gridLoaded:!1}},computed:ss({renderedMediaItems:function(){var e=this;return this.mediaItems.map((function(t){return t.disabled=e.filesizeMax>0&&t.filesizeInMb>e.filesizeMax||e.widthMin>0&&t.width<e.widthMin||e.heightMin>0&&t.height<e.heightMin,t}))},currentTypeObject:function(){var e=this;return this.types.find((function(t){return t.value===e.type}))},endpoint:function(){return this.currentTypeObject.endpoint},modalTitle:function(){return this.connector?this.indexToReplace>-1?this.modalTitlePrefix+" – "+this.btnLabelUpdate:this.selectedMedias.length>1?this.modalTitlePrefix+" – "+this.btnLabelMulti:this.modalTitlePrefix+" – "+this.btnLabelSingle:this.modalTitlePrefix},btnLabel:function(){var e=this.$trans("media-library.types.single."+this.type,this.type);return this.indexToReplace>-1?this.btnLabelUpdate+" "+e:(this.selectedMedias.length>1&&(e=this.$trans("media-library.types.multiple."+this.type,this.type)),this.btnLabelSingle+" "+e)},usedMedias:function(){return this.selected[this.connector]||[]},selectedType:function(){var e=this,t=e.types.filter((function(t){return t.value===e.type}));return t[0]},canInsert:function(){var e=this;return!this.selectedMedias.some((function(t){return!!e.usedMedias.find((function(e){return e.id===t.id}))}))}},Object(pe["c"])({connector:function(e){return e.mediaLibrary.connector},max:function(e){return e.mediaLibrary.max},filesizeMax:function(e){return e.mediaLibrary.filesizeMax},widthMin:function(e){return e.mediaLibrary.widthMin},heightMin:function(e){return e.mediaLibrary.heightMin},type:function(e){return e.mediaLibrary.type},types:function(e){return e.mediaLibrary.types},strict:function(e){return e.mediaLibrary.strict},selected:function(e){return e.mediaLibrary.selected},indexToReplace:function(e){return e.mediaLibrary.indexToReplace}})),watch:{type:function(){this.clearMediaItems(),this.gridLoaded=!1}},methods:{replaceMedia:function(e){var t=e.id;this.$refs.uploader.replaceMedia(t)},open:function(){this.$refs.modal.open()},close:function(){this.$refs.modal.hide()},opened:function(){if(this.gridLoaded||this.reloadGrid(),this.listenScrollPosition(),this.selectedMedias=[],this.connector&&this.indexToReplace>-1){var e=this.selected[this.connector][this.indexToReplace];e&&this.selectedMedias.push(e)}},updateType:function(e){this.loading||this.strict||this.type!==e&&(this.$store.commit(r["h"].UPDATE_MEDIA_TYPE,e),this.submitFilter())},addMedia:function(e){var t=this,i=this.mediaItems.findIndex((function(t){return t.id===e.id}));if(i>-1){var n=function(i){t.selected[i].forEach((function(n,a){if(e.id===n.id){var s=[];for(var o in n.crops)s[o]={height:e.height===n.height?n.crops[o].height:e.height,name:o,width:e.width===n.width?n.crops[o].width:e.width,x:e.width===n.width?n.crops[o].x:0,y:e.height===n.height?n.crops[o].y:0};t.$store.commit(r["h"].UPDATE_MEDIAS,{index:a,media:ss(ss({},e),{},{width:e.width===n.width?n.width:e.width,height:e.height===n.height?n.height:e.height,crops:s}),mediaRole:i})}}))};for(var a in this.selected)n(a);this.$set(this.mediaItems,i,e),this.selectedMedias.unshift(e)}else this.mediaItems.unshift(e),this.$store.commit(r["h"].INCREMENT_MEDIA_TYPE_TOTAL,this.type),this.updateSelectedMedias(e.id)},updateSelectedMedias:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.id,a=this.selectedMedias.filter((function(e){return e.id===n}));if(0===a.length){if(1===this.max&&this.clearSelectedMedias(),this.selectedMedias.length>=this.max&&this.max>0)return;if(i&&this.selectedMedias.length>0){var r=this.selectedMedias[this.selectedMedias.length-1],s=this.mediaItems.findIndex((function(e){return e.id===r.id})),o=this.mediaItems.findIndex((function(e){return e.id===n}));if(-1===o&&-1===s)return;var l=null,c=null;s<o?(l=s+1,c=o+1):(l=o,c=s);var u=this.mediaItems.slice(l,c);u.forEach((function(e){if(!(t.selectedMedias.length>=t.max&&t.max>0)){var i=t.selectedMedias.findIndex((function(t){return t.id===e.id}));-1===i&&t.selectedMedias.push(e)}}))}else{var d=this.mediaItems.filter((function(e){return e.id===n}));d.length&&this.selectedMedias.push(d[0])}}else this.selectedMedias=this.selectedMedias.filter((function(e){return e.id!==n}))},getFormData:function(e){var t=Object(Ya["a"])(e);return t?t.page=this.page:t={page:this.page},t.type=this.type,Array.isArray(t.unused)&&t.unused.length&&(t.unused=t.unused[0]),t},clearFilters:function(){var e=this;if(this.$refs.filter&&(this.$refs.filter.value=null),this.$refs.unused){var t=this.$refs.unused.$el.querySelector("input");t&&t.checked&&t.click()}this.$nextTick((function(){e.submitFilter()}))},clearSelectedMedias:function(){this.selectedMedias.splice(0)},deleteSelectedMedias:function(e){var t=this,i=[];e&&e.length!==this.selectedMedias.length&&(i=this.selectedMedias.filter((function(e){return!e.deleteUrl}))),e.forEach((function(){t.$store.commit(r["h"].DECREMENT_MEDIA_TYPE_TOTAL,t.type)})),this.mediaItems=this.mediaItems.filter((function(e){return!t.selectedMedias.includes(e)||i.includes(e)})),this.selectedMedias=i,this.mediaItems.length<=40&&this.reloadGrid()},clearMediaItems:function(){this.mediaItems.splice(0)},reloadGrid:function(){var e=this;this.loading=!0;var t=this.$refs.form,i=this.getFormData(t);za.get(this.endpoint,i,(function(t){t.data.items.forEach((function(t){e.mediaItems.find((function(e){return e.id===t.id}))||e.mediaItems.push(t)})),e.maxPage=t.data.maxPage||1,e.tags=t.data.tags||[],e.$store.commit(r["h"].UPDATE_MEDIA_TYPE_TOTAL,{type:e.type,total:t.data.total}),e.loading=!1,e.listenScrollPosition(),e.gridLoaded=!0}),(function(t){e.$store.commit(r["j"].SET_NOTIF,{message:t.data.message,variant:"error"})}))},reloadTags:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.tags=e},submitFilter:function(e){var t=this,i=this.$refs.list;this.page=1,this.clearMediaItems(),this.clearSelectedMedias(),0!==i.scrollTop?Object(as["a"])({el:i,offset:0,easing:"easeOut",onComplete:function(){t.reloadGrid()}}):t.reloadGrid()},listenScrollPosition:function(){this.$nextTick((function(){if(this.gridLoaded){var e=this.$refs.list;this.gridHeight!==e.scrollHeight&&e.addEventListener("scroll",this.scrollToPaginate)}}))},scrollToPaginate:function(){if(this.gridLoaded){var e=this.$refs.list,t=10;e.scrollTop>this.lastScrollTop&&e.scrollTop+e.offsetHeight>e.scrollHeight-t&&(e.removeEventListener("scroll",this.scrollToPaginate),this.maxPage>this.page?(this.page=this.page+1,this.reloadGrid()):this.gridHeight=e.scrollHeight),this.lastScrollTop=e.scrollTop}},saveAndClose:function(){this.$store.commit(r["h"].SAVE_MEDIAS,this.selectedMedias),this.close()}}},cs=ls,us=(i("e5c1"),i("7231"),Object(l["a"])(cs,Fa,Ua,!1,null,"4cb358ae",null)),ds=us.exports,fs=i("8682"),hs=i("9b02"),ps=i.n(hs),ms=i("9e86"),bs=i.n(ms);function gs(e,t,i){var n=["icon"],a=t.expression||i.data.attrs.symbol,r=e;"span"===i.tag&&(r=document.createElementNS("http://www.w3.org/2000/svg","svg"),e.appendChild(r)),n.push("icon--".concat(a)),n.forEach((function(t){e.classList.add(t)}));var s=document.createElementNS("http://www.w3.org/2000/svg","title");s.textContent=a,r.appendChild(s);var o="#icon--".concat(a),l=document.createElementNS("http://www.w3.org/2000/svg","use");l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),r.appendChild(l)}function vs(e){var t=e.querySelector("svg");t&&t.parentNode.removeChild(t);var i=e.className.split(" ").filter((function(e){return 0===e.indexOf("icon")}));i.forEach((function(t){e.classList.remove(t)}))}var ys={install:function(e){var t={bind:function(e,t,i){gs(e,t,i)},componentUpdated:function(e,t,i,n){vs(e),gs(e,t,i)},inserted:function(e,t,i){},unbind:function(e,t,i){}};e.directive("svg",t)}};function _s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function ws(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?_s(Object(i),!0).forEach((function(t){Ss(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):_s(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Os(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Es(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ts(e,t,i){return t&&Es(e.prototype,t),i&&Es(e,i),e}function Ss(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var As={container:!1,delay:0,html:!1,budge:15,placement:"top",theme:"default",title:"",template:'<div class="tooltip" role="tooltip"><div class="tooltip__arrow"></div><div class="tooltip__inner"></div></div>',trigger:"hover focus",offset:0},Ds=function(){function e(t,i){var n=this;Os(this,e),Ss(this,"show",(function(){return n._show(n.reference,n.options)})),Ss(this,"hide",(function(){return n._hide()})),Ss(this,"dispose",(function(){return n._dispose()})),Ss(this,"toggle",(function(){return n._isOpen?n.hide():n.show()})),Ss(this,"innerSelector",".tooltip__inner"),Ss(this,"_events",[]),Ss(this,"_setTooltipNodeEvent",(function(e,t,i,a){var r=e.relatedreference||e.toElement,s=function i(r){var s=r.relatedreference||r.toElement;n._tooltipNode.removeEventListener(e.type,i),t.contains(s)||n._scheduleHide(t,a.delay,a,r)};return!!n._tooltipNode.contains(r)&&(n._tooltipNode.addEventListener(e.type,s),!0)})),i=ws(ws({},As),i),this.reference=t,this.options=i;var a="string"===typeof i.trigger?i.trigger.split(" ").filter((function(e){return-1!==["click","hover","focus"].indexOf(e)})):[];this._isOpen=!1,this._setEventListeners(t,a,i)}return Ts(e,[{key:"_create",value:function(e,t,i,n,a){if(this._tooltipNode)return this;var r=window.document.createElement("div");r.innerHTML=t.trim();var s=r.childNodes[0];s.id="tooltip--".concat(Math.random().toString(36).substr(2,10)),s.setAttribute("aria-hidden","false"),s.classList.add("tooltip--"+i);var o=r.querySelector(this.innerSelector);return 1===n.nodeType?a&&o.appendChild(n):a?o.innerHTML=n:o.innerText=n,s}},{key:"_position",value:function(e,t,i){var n=0,a=0,r=t,s=e.getBoundingClientRect();this._tooltipNode.classList.remove("tooltip--"+r);var o=Math.round(s.top-this._tooltipNode.offsetHeight-i),l=Math.round(s.top+s.height/2-this._tooltipNode.offsetHeight/2),c=Math.round(s.left+s.width+i),u=Math.round(s.top+s.height+i),d=Math.round(s.left-this._tooltipNode.offsetWidth-i),f=Math.round(s.left+s.width/2-this._tooltipNode.offsetWidth/2);"top"===t&&(n=f,a=o,r="top",n<10&&(n=10),a<0&&(a=u,r="bottom")),"top-right"===t&&(n=c,a=o,r="top",a<0&&(a=u,r="bottom")),"bottom"===t&&(n=f,a=u,r="bottom",n<10&&(n=10),a>0&&(a=o,r="top")),"right"===t&&(n=c,a=l,r="right"),"left"===t&&(n=d,a=l,r="left",n<0&&(n=c,r="right")),this._tooltipNode.style.left=n+"px",this._tooltipNode.style.top=a+"px",this._tooltipNode.classList.add("tooltip--"+r)}},{key:"_show",value:function(e,t){if(this._isOpen&&!this._isOpening)return this;this._isOpen=!0;var i=e.getAttribute("data-tooltip-budge")||t.budge,n=e.getAttribute("data-tooltip-theme")||t.theme,a=e.getAttribute("data-tooltip-placement")||t.placement;if(this._tooltipNode)return this._tooltipNode.style.opacity="",this._tooltipNode.style.visibility="",this._tooltipNode.style.transition="opacity 0.3s",this._tooltipNode.setAttribute("aria-hidden","false"),this._position(e,a,i),this;var r=e.getAttribute("data-tooltip-title")||t.title,s=this._create(e,t.template,n,r,t.html);e.setAttribute("aria-describedby",s.id);var o=this._findContainer(t.container,e);return this._append(s,o),this._tooltipNode=s,this._position(e,a,i),this}},{key:"_hide",value:function(){return this._isOpen?(this._isOpen=!1,this._tooltipNode.style.opacity="0",this._tooltipNode.style.visibility="hidden",this._tooltipNode.style.transition="",this._tooltipNode.setAttribute("aria-hidden","true"),this):this}},{key:"_dispose",value:function(){var e=this;return this._events.length&&(this._events.forEach((function(t){var i=t.func,n=t.event;e.reference.removeEventListener(n,i)})),this._events=[]),this._tooltipNode&&(this._hide(),this._tooltipNode.parentNode.removeChild(this._tooltipNode),this._tooltipNode=null),this}},{key:"_findContainer",value:function(e,t){return"string"===typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e}},{key:"_append",value:function(e,t){t.appendChild(e)}},{key:"_setEventListeners",value:function(e,t,i){var n=this,a=[],r=[];t.forEach((function(e){switch(e){case"hover":a.push("mouseenter"),r.push("mouseleave");break;case"focus":a.push("focus"),r.push("blur");break;case"click":a.push("click"),r.push("click");break}})),a.forEach((function(t){var a=function(t){!0!==n._isOpening&&(t.usedByTooltip=!0,n._scheduleShow(e,i.delay,i,t))};n._events.push({event:t,func:a}),e.addEventListener(t,a)})),r.forEach((function(t){var a=function(t){!0!==t.usedByTooltip&&n._scheduleHide(e,i.delay,i,t)};n._events.push({event:t,func:a}),e.addEventListener(t,a)}))}},{key:"_scheduleShow",value:function(e,t,i){var n=this;this._isOpening=!0;var a=t&&t.show||t||0;a>0?window.setTimeout((function(){return n._show(e,i)}),a):this._show(e,i)}},{key:"_scheduleHide",value:function(e,t,i,n){var a=this;this._isOpening=!1;var r=t&&t.hide||t||0;window.setTimeout((function(){if(!1!==a._isOpen&&document.body.contains(a._tooltipNode)){if("mouseleave"===n.type){var r=a._setTooltipNodeEvent(n,e,t,i);if(r)return}a._hide()}}),r)}}]),e}(),Cs={},Ps={install:function(e){var t={options:Cs,bind:function(e,i,n){if(!e._tooltip){var a=e._tooltip=new Ds(e,t.options);a._vueEl=e}},componentUpdated:function(e,i,n,a){if(e._tooltip){e._tooltip.dispose();var r=e._tooltip=new Ds(e,t.options);r._vueEl=e}},inserted:function(e,t,i){},unbind:function(e,t,i){e._tooltip&&e._tooltip.dispose()}};e.directive("tooltip",t)}};function xs(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function ks(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?xs(Object(i),!0).forEach((function(t){js(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):xs(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Ms(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Is(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ls(e,t,i){return t&&Is(e.prototype,t),i&&Is(e,i),e}function js(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var Rs={target:"data-sticky-target",toptarget:"data-sticky-top",classContainer:"sticky",classFixed:"sticky__fixed",classAbs:"sticky__abs",classEnd:"sticky__scrolled",topOffset:0,offset:20},Ns=function(){function e(t,i){var n=this;Ms(this,e),js(this,"refresh",(function(){return n._refresh()})),js(this,"dispose",(function(){return n._dispose()})),js(this,"status","top"),js(this,"ticking",!1),js(this,"anchors",["Top","Bottom"]),js(this,"lastScrollPos",0),js(this,"prevScrollPos",-1),i=ks(ks({},Rs),i),this.target=null,this.toptarget=null,this.container=t,this.containerID=this.container.getAttribute("data-sticky-id"),this.options=i,this.options.target&&(this.target=this.container.querySelector("["+this.options.target+'="'+this.containerID+'"]')),this.options.toptarget&&(this.toptarget=this.container.querySelector("["+this.options.toptarget+'="'+this.containerID+'"]')),this.topMargin=this.container.hasAttribute("data-sticky-offset")?parseInt(this.container.getAttribute("data-sticky-offset")):this.options.offset,this.topOffset=this.container.hasAttribute("data-sticky-topoffset")?parseInt(this.container.getAttribute("data-sticky-topoffset")):this.options.topOffset,t.classList.add(this.options.classContainer),this._setEventListeners(),this._refresh()}return Ls(e,[{key:"_refresh",value:function(){if(!this.target)return!1;var e=this.lastScrollPos,t=this.target.offsetHeight,i=this.container.offsetHeight,n=t+this.topMargin<window.innerHeight?0:1,a=this.toptarget?this.toptarget.getBoundingClientRect().top+this.topOffset:this.container.getBoundingClientRect().top+this.topOffset,r=a+i-t;return a=a-this.topMargin+Math.max(0,t+this.topMargin-window.innerHeight)+e,this.toptarget&&(r=a+i-t-Math.max(0,this.toptarget.getBoundingClientRect().top-this.container.getBoundingClientRect().top)),this.target.offsetHeight<i&&("top"!==this.status&&e<a&&(this._removePositionClass(),this.status="top"),"scrolling"!==this.status&&e>=a&&e<r&&(this._removePositionClass(),this.target.classList.add(this.options.classFixed+this.anchors[n]),this.status="scrolling"),"bottom"!==this.status&&e>=r&&(this._removePositionClass(),this.target.classList.add(this.options.classAbs),this.status="bottom"),e+window.innerHeight>=this.container.getBoundingClientRect().top+e+i?this.target.classList.add(this.options.classEnd):this.target.classList.remove(this.options.classEnd)),this}},{key:"_removePositionClass",value:function(){for(var e=0;e<this.anchors.length;e++)this.target.classList.remove(this.options.classFixed+this.anchors[e]);this.target.classList.remove(this.options.classAbs)}},{key:"_scroll",value:function(){var e=this;return e.lastScrollPos=window.pageYOffset,e.ticking||window.requestAnimationFrame((function(){e._refresh(),e.prevScrollPos=e.lastScrollPos,e.ticking=!1})),e.ticking=!0,this}},{key:"_resize",value:function(){return this.lastScrollPos=window.pageYOffset,this.status="",this._refresh(),this}},{key:"_dispose",value:function(){var e=this;return window.removeEventListener("scroll",(function(){return e._scroll()})),window.removeEventListener("resize",(function(){return e._resize()})),this}},{key:"_setEventListeners",value:function(){var e=this;window.addEventListener("scroll",(function(){return e._scroll()})),window.addEventListener("resize",(function(){return e._resize()})),this._resize()}}]),e}(),Bs={},$s={install:function(e){var t={options:Bs,bind:function(e,i,n){var a=e._sticky=new Ns(e,t.options);a._vueEl=e},componentUpdated:function(e,t,i){e._sticky.refresh()},inserted:function(e,t,i){},unbind:function(e,t,i){e._sticky.dispose()}};e.directive("sticky",t)}},Fs=!0,Us={install:function(e,t){e.component("a17-button",u),e.component("a17-infotip",b),e.component("a17-slideshow",Qn),e.component("a17-browserfield",ha),e.component("a17-textfield",re),e.component("a17-hiddenfield",de),e.component("a17-wysiwyg",it),e.component("a17-wysiwyg-tiptap",_t),e.component("a17-inputframe",j),e.component("a17-mediafield",ai),e.component("a17-mediafield-translated",ui),e.component("a17-radio",bi),e.component("a17-radiogroup",Oi),e.component("a17-checkbox",Ci),e.component("a17-singlecheckbox",ji),e.component("a17-checkboxgroup",Wi),e.component("a17-multiselect",Xi),e.component("a17-singleselect",nn),e.component("a17-select",C),e.component("a17-vselect",P["a"]),e.component("a17-locale",On),e.component("a17-dropdown",an["a"]),e.component("a17-buttonbar",un),e.component("a17-modal",Ln),e.component("a17-dialog",Fn),e.component("a17-datepicker",$a),e.component("a17-filefield",xa),e.component("a17-colorfield",J),e.component("a17-medialibrary",ds),e.mixin({methods:{openFreeMediaLibrary:function(){this.$store.commit(r["h"].UPDATE_MEDIA_CONNECTOR,null),this.$store.commit(r["h"].RESET_MEDIA_TYPE),this.$store.commit(r["h"].UPDATE_REPLACE_INDEX,-1),this.$store.commit(r["h"].UPDATE_MEDIA_MAX,0),this.$store.commit(r["h"].UPDATE_MEDIA_FILESIZE_MAX,0),this.$store.commit(r["h"].UPDATE_MEDIA_WIDTH_MIN,0),this.$store.commit(r["h"].UPDATE_MEDIA_HEIGHT_MIN,0),this.$store.commit(r["h"].UPDATE_MEDIA_MODE,!1),this.$root.$refs.mediaLibrary&&this.$root.$refs.mediaLibrary.open()}}}),e.config.productionTip=Fs,e.config.devtools=!0,e.prototype.$http=qa.a,window.$trans=e.prototype.$trans=function(e,t){return ps()(window["TWILL"].twillLocalization.lang,e,t)},qa.a.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",qa.a.interceptors.response.use((function(e){return e}),(function(e){return Object(Wa["a"])("CONTENT",e),Promise.reject(e)})),e.use(fs["a"],{name:"timeago",locale:window["TWILL"].twillLocalization.locale,locales:bs()(Ia["d"],"date-fns")}),e.use(ys),e.use(Ps),e.use($s)}};t["a"]=Us},"2ec1":function(e,t,i){},3417:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return s})),i.d(t,"c",(function(){return h})),i.d(t,"d",(function(){return y})),i.d(t,"e",(function(){return _["a"]})),i.d(t,"f",(function(){return w["a"]})),i.d(t,"g",(function(){return O["a"]})),i.d(t,"h",(function(){return E})),i.d(t,"i",(function(){return T}));i("ed28"),i("f0f8");var n={props:{block:{type:Object,default:function(){}},blockIndex:{type:Number,default:0},blocksLength:{type:Number,default:0}},methods:{selectBlock:function(){this.$emit("block:select")},unselectBlock:function(){this.$emit("block:unselect")},deleteBlock:function(){this.$emit("block:delete")},moveBlock:function(e){this.$emit("block:move",e)},cloneBlock:function(){this.$emit("block:clone")},toggleBlockDropdown:function(){this.blocksLength>1&&this.$refs.blockDropdown&&this.$refs.blockDropdown.toggle()}}},a=i("0644"),r=i.n(a),s={props:{editorName:{type:String,required:!0},blocks:{type:Array,default:function(){return[]}},savedBlocksLength:{type:Number,default:0}},methods:{addAndEditBlock:function(e,t,i){var n=i.block,a=i.index;window["TWILL"].PREVSTATE=r()(this.$store.state),e(n,a),t(a)},saveBlock:function(e,t){window["TWILL"].hasOwnProperty("PREVSTATE")&&delete window["TWILL"].PREVSTATE,this.unselectBlock(e,t),this.$emit("block:save",t)},cancelBlock:function(e,t){window["TWILL"].hasOwnProperty("PREVSTATE")&&(console.warn("Store - Restore previous Store state"),this.$store.replaceState(window["TWILL"].PREVSTATE)),this.unselectBlock(e,t),this.$emit("block:cancel",t)},selectBlock:function(e,t){window["TWILL"].PREVSTATE=r()(this.$store.state),e(),this.$emit("block:select",t)},unselectBlock:function(e,t){e(),window["TWILL"].hasOwnProperty("PREVSTATE")&&delete window["TWILL"].PREVSTATE,this.$emit("block:unselect",t)},moveBlock:function(e){this.$emit("block:move",e)},cloneBlock:function(e){e(),this.$emit("block:clone")},deleteBlock:function(e){var t=this;this.$root.$refs.warningContentEditor?this.$root.$refs.warningContentEditor.open((function(){e(),t.$emit("block:delete")})):(e(),this.$emit("block:delete"))}}},o=(i("3a52"),i("1249"),i("605f"),i("2f62")),l=i("0429"),c=i("f1af");function u(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function d(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?u(Object(i),!0).forEach((function(t){f(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function f(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var h={props:{nested:{type:Boolean,default:!1},bulkeditable:{type:Boolean,default:!0},emptyMessage:{type:String,default:""}},computed:d(d({rows:{get:function(){return this.$store.state.datatable.data},set:function(e){var t=this.rows.length!==e.length;this.$store.commit(l["e"].UPDATE_DATATABLE_DATA,e),this.saveNewTree(t)}},isEmpty:function(){return this.rows.length<=0},isEmptyDatable:function(){return{"datatable__table--empty":this.isEmpty}}},Object(o["c"])({columns:function(e){return e.datatable.columns}})),Object(o["b"])(["visibleColumns","hideableColumns","visibleColumnsNames"])),methods:{saveNewTree:function(e){var t=this,i=!!e||this.nested,n=i?c["a"].SET_DATATABLE_NESTED:c["a"].SET_DATATABLE,a=function(){t.$store.commit(l["e"].UPDATE_DATATABLE_TRACKER,0),t.$store.dispatch(n)};e?(this.$store.commit(l["e"].UPDATE_DATATABLE_TRACKER,1),this.updateTracker>=2&&a()):a()}}},p=i("22f7"),m=i("98d2");function b(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function g(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?b(Object(i),!0).forEach((function(t){v(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):b(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function v(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var y={props:{index:{type:Number,default:0},row:{type:Object,default:function(){return{}}},columns:{type:Array,default:function(){return[]}}},computed:g({editInModal:function(){return!!this.row.hasOwnProperty("editInModal")&&this.row.editInModal},editUrl:function(){return this.row.hasOwnProperty("edit")?this.row.edit:"#"},updateUrl:function(){return this.row.updateUrl?this.row.updateUrl:"#"}},Object(o["c"])({bulkIds:function(e){return e.datatable.bulk}})),methods:{currentComponent:function(e){return m["b"]+e.toLowerCase()},currentComponentProps:function(e){var t={col:e||{},row:this.row,editUrl:this.editUrl,editInModal:Boolean(this.editInModal)};if(!e)return t;switch(e.name){case"bulk":t.value=this.row.id,t.initialValue=this.bulkIds;break;case"languages":t.languages=this.row.hasOwnProperty("languages")?this.row.languages:[],t.editUrl=this.editUrl;break;case"publish_start_date":t.startDate="",t.endDate="";break;default:break}return t},editInPlace:function(e){var t=this;if(e.lang){var i=e.lang;this.$store.commit(l["g"].UPDATE_LANG,i.value)}if(this.editInModal){var n=this.editInModal;this.$store.commit(l["i"].UPDATE_MODAL_MODE,"update"),this.$store.commit(l["i"].UPDATE_MODAL_ACTION,this.updateUrl),this.$store.commit(l["f"].UPDATE_FORM_LOADING,!0),this.$store.dispatch(c["a"].REPLACE_FORM,n).then((function(){t.$nextTick((function(){this.$root.$refs.editionModal&&this.$root.$refs.editionModal.open()}))}),(function(e){t.$store.commit(p["a"].SET_NOTIF,{message:"Your content can not be edited, please retry",variant:"error"})}))}},cellClasses:function(e,t){var i;return i={},v(i,t+"--icon","featured"===e.name||"published"===e.name),v(i,t+"--bulk","bulk"===e.name),v(i,t+"--thumb","thumbnail"===e.name),v(i,t+"--draggable","draggable"===e.name),v(i,t+"--languages","languages"===e.name),v(i,t+"--nested","nested"===e.name),v(i,t+"--nested--parent","nested"===e.name&&0===this.nestedDepth),v(i,t+"--name","name"===e.name),i},isSpecificColumn:function(e){return m["c"].includes(e.name)},tableCellUpdate:function(e){switch(e.col){case"published":this.togglePublish(e.row);break;case"bulk":this.toggleBulk(e.row);break;case"featured":this.toggleFeatured(e.row);break}},toggleFeatured:function(e){e.hasOwnProperty("deleted")?this.$store.commit(p["a"].SET_NOTIF,{message:"You can’t feature/unfeature a deleted item, please restore it first.",variant:"error"}):this.$store.dispatch(c["a"].TOGGLE_FEATURE,e)},toggleBulk:function(e){this.$store.commit(l["e"].UPDATE_DATATABLE_BULK,e.id)},togglePublish:function(e){e.hasOwnProperty("deleted")?this.$store.commit(p["a"].SET_NOTIF,{message:"You can’t publish/unpublish a deleted item, please restore it first.",variant:"error"}):this.$store.dispatch(c["a"].TOGGLE_PUBLISH,e)},restoreRow:function(e){this.$store.dispatch(c["a"].RESTORE_ROW,e)},destroyRow:function(e){var t=this;this.$root.$refs.warningDestroyRow?this.$root.$refs.warningDestroyRow.open((function(){t.$store.dispatch(c["a"].DESTROY_ROW,e)})):this.$store.dispatch(c["a"].DESTROY_ROW,e)},deleteRow:function(e){var t=this;this.$root.$refs.warningDeleteRow?this.$root.$refs.warningDeleteRow.open((function(){t.$store.dispatch(c["a"].DELETE_ROW,e)})):this.$store.dispatch(c["a"].DELETE_ROW,e)},duplicateRow:function(e){this.$store.dispatch(c["a"].DUPLICATE_ROW,e)}}},_=i("5420"),w=i("159c"),O=i("4868"),E=(i("67ff"),i("da6f"),i("f03e"),i("7d9f"),i("df63"),i("1a8d"),{props:{nested:{type:Boolean,default:!1},maxDepth:{type:Number,default:1},depth:{type:Number,default:0},name:{type:String,default:"group1"},parentId:{type:Number,default:-1}},data:function(){return{currentElDepth:void 0}},computed:{updateTracker:function(){return this.$store.state.datatable.updateTracker},draggableGetComponentData:function(){return{props:{depth:this.depth}}}}}),T=(i("825f"),{props:{col:{type:Object,default:function(){}},row:{type:Object,default:function(){}},editUrl:{type:String,default:"#"},editInModal:{type:Boolean,default:!1}},computed:{colName:function(){return this.col.hasOwnProperty("name")?this.col.name:""}},methods:{update:function(){this.$emit("update",{row:this.row,col:this.colName})},preventEditInPlace:function(e){this.editInModal&&e.preventDefault(),this.editInPlace()},editInPlace:function(e,t){this.$emit("editInPlace",{event:e,lang:t})},restoreRow:function(){this.$emit("restoreRow",this.row)},destroyRow:function(){this.$emit("destroyRow",this.row)},deleteRow:function(){this.$emit("deleteRow",this.row)},duplicateRow:function(){this.$emit("duplicateRow",this.row)}}});i("5a57")},3464:function(e,t,i){},"34a6":function(e,t,i){},3702:function(e,t,i){"use strict";i("e725")},3718:function(e,t,i){},"38a4":function(e,t,i){},"38c2":function(e,t,i){"use strict";var n,a=i("a34a"),r=i.n(a),s=i("a026"),o=i("0429"),l=i("f1af");function c(e){return h(e)||f(e)||d(e)||u()}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){if(e){if("string"===typeof e)return p(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?p(e,t):void 0}}function f(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function h(e){if(Array.isArray(e))return p(e)}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function m(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function b(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?m(Object(i),!0).forEach((function(t){y(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):m(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function g(e,t,i,n,a,r,s){try{var o=e[r](s),l=o.value}catch(c){return void i(c)}o.done?t(l):Promise.resolve(l).then(n,a)}function v(e){return function(){var t=this,i=arguments;return new Promise((function(n,a){var r=e.apply(t,i);function s(e){g(r,n,a,s,o,"next",e)}function o(e){g(r,n,a,s,o,"throw",e)}s(void 0)}))}}function y(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var _={connector:null,title:"Attach related resources",note:"",endpoint:"",endpointName:"",endpoints:[],max:0,selected:window["TWILL"].STORE.browser.selected||{}},w={selectedItemsByIds:function(e){var t=[];for(var i in e.selected)t[i]=e.selected[i].map((function(e){return"".concat(e.endpointType,"_").concat(e.id)}));return t},browsersByBlockId:function(e){return function(t){var i=Object.keys(e.selected).filter((function(e){return e.startsWith("blocks[".concat(t,"]"))})),n={};return i.forEach((function(t){return n[t]=e.selected[t]})),n}}},O=(n={},y(n,o["c"].SAVE_ITEMS,(function(e,t){if(e.connector)if(e.selected[e.connector]&&e.selected[e.connector].length)e.selected[e.connector]=t;else{var i={};i[e.connector]=t,e.selected=Object.assign({},e.selected,i)}})),y(n,o["c"].DESTROY_ITEMS,(function(e,t){e.selected[t.name]&&s["a"].delete(e.selected,t.name)})),y(n,o["c"].DESTROY_ITEM,(function(e,t){e.selected[t.name]&&(e.selected[t.name].splice(t.index,1),0===e.selected[t.name].length&&s["a"].delete(e.selected,t.name),e.connector=null)})),y(n,o["c"].REORDER_ITEMS,(function(e,t){var i={};i[t.name]=t.items,e.selected=Object.assign({},e.selected,i)})),y(n,o["c"].UPDATE_BROWSER_MAX,(function(e,t){e.max=Math.max(0,t)})),y(n,o["c"].UPDATE_BROWSER_CONNECTOR,(function(e,t){t&&""!==t&&(e.connector=t)})),y(n,o["c"].UPDATE_BROWSER_TITLE,(function(e,t){t&&""!==t&&(e.title=t)})),y(n,o["c"].UPDATE_BROWSER_NOTE,(function(e,t){e.note=t})),y(n,o["c"].DESTROY_BROWSER_CONNECTOR,(function(e){e.connector=null})),y(n,o["c"].UPDATE_BROWSER_ENDPOINT,(function(e,t){t&&""!==t&&(e.endpoint=t.value,e.endpointName=t.label||"")})),y(n,o["c"].DESTROY_BROWSER_ENDPOINT,(function(e){e.endpoint="",e.endpointName=""})),y(n,o["c"].UPDATE_BROWSER_ENDPOINTS,(function(e,t){!t&&!t.length>0||(e.endpoints=t,e.endpoint=t[0].value,e.endpointName=t[0].label)})),y(n,o["c"].DESTROY_BROWSER_ENDPOINTS,(function(e){e.endpoints=[]})),y(n,o["c"].ADD_BROWSERS,(function(e,t){var i=t.browsers;e.selected=Object.assign({},e.selected,i)})),n),E=y({},l["a"].DUPLICATE_BLOCK,(function(e,t){return v(r.a.mark((function i(){var n,a,s,l,u,d,f;return r.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:n=e.commit,a=e.getters,s=t.block,l=t.id,u=b({},a.browsersByBlockId(s.id)),d=Object.keys(u),f={},d.forEach((function(e){return f[e.replace(s.id,l)]=c(u[e])})),n(o["c"].ADD_BROWSERS,{browsers:f});case 7:case"end":return i.stop()}}),i)})))()}));t["a"]={state:_,getters:w,mutations:O,actions:E}},"3a52":function(e,t,i){"use strict";t["a"]={props:{buckets:{type:Array,default:function(){return[]}},item:{type:Object},singleBucket:{type:Boolean,default:!0}},computed:{bucketClasses:function(){return{selected:"bucket"!==this.type&&this.inBuckets,single:this.singleBucket}}},methods:{addToBucket:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.bucket;this.$emit("add-to-bucket",this.item,e)},inBucketById:function(e){var t=this,i=this.buckets.findIndex((function(t){return t.id===e}));if(-1!==i){var n=this.buckets[i].children.find((function(e){return e.id===t.item.id&&e.content_type.value===t.item.content_type.value}));return!!n}},restrictedBySource:function(e){var t=this.buckets.find((function(t){return t.id===e}));if(!t)return!1;if(!t.hasOwnProperty("acceptedSources"))return!0;if(0===t.acceptedSources.length)return!0;var i=this.item.content_type.value;return-1!==t.acceptedSources.findIndex((function(e){return e===i}))}}}},"3b37":function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.languages.length>1?i("div",{staticClass:"languageManager"},[i("div",{staticClass:"languageManager__switcher"},[i("a17-langswitcher",{attrs:{"in-modal":!0,"all-published":!e.controlPublication}})],1),e.controlPublication?i("a17-dropdown",{ref:"languageManagerDropdown",staticClass:"languageManager__dropdown",attrs:{position:"bottom-right",clickable:!0}},[i("button",{staticClass:"languageManager__button",attrs:{type:"button"},on:{click:function(t){return e.$refs.languageManagerDropdown.toggle()}}},[e._v(" "+e._s(e.currentValue.length)+" "+e._s(e.$trans("lang-manager.published"))+" "),i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"dropdown_module"}})]),i("div",{staticClass:"languageManager__dropdown-content",attrs:{slot:"dropdown__content"},slot:"dropdown__content"},[i("a17-checkboxgroup",{attrs:{name:"langManager",options:e.languages,selected:e.currentValue,min:1},on:{change:e.changeValue}})],1)]):e._e()],1):e._e()},a=[],r=i("4168"),s=i("5a57"),o=i("7d9f"),l=i("2f62"),c=i("0429");function u(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function d(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?u(Object(i),!0).forEach((function(t){f(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function f(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var h={name:"A17LangManager",mixins:[s["a"],o["a"]],components:{"a17-langswitcher":r["a"]},props:{controlPublication:{type:Boolean,default:!0},value:{default:function(){return[]}}},computed:d(d({currentValue:{get:function(){var e=[];return this.publishedLanguages.length&&this.publishedLanguages.forEach((function(t){e.push(t.value)})),e}}},Object(l["c"])({languages:function(e){return e.language.all}})),Object(l["b"])(["publishedLanguages"])),methods:{changeValue:function(e){this.$store.commit(c["g"].PUBLISH_LANG,e)}}},p=h,m=(i("cf98"),i("2877")),b=Object(m["a"])(p,n,a,!1,null,"48b9bff0",null);t["a"]=b.exports},"3c2e":function(e,t,i){"use strict";i("0e7b")},"3daa":function(e,t,i){},4086:function(e,t,i){"use strict";i("ba26")},4168:function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.languages.length>1?i("div",{staticClass:"language",class:e.languageClass},[e.inModal?e._e():i("span",{staticClass:"language__label f--small"},[e._v(e._s(e.$trans("lang-switcher.edit-in")))]),i("span",{staticClass:"language__toolbar"},e._l(e.languages,(function(t){return i("button",{key:t.value,staticClass:"language__button",class:{selected:t.value===e.localeValue.value,published:t.published,"no-state":e.allPublished},attrs:{type:"button"},on:{click:function(i){return e.onClick(t.value)}}},[e._v(e._s(t.shortlabel))])})),0)]):e._e()},a=[],r=i("7d9f"),s=i("2f62"),o=i("0429");function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function c(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){u(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function u(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var d={name:"A17Langswitcher",mixins:[r["a"]],props:{inModal:{type:Boolean,default:!1},toggleOnClick:{type:Boolean,default:!1},allPublished:{type:Boolean,default:!1}},computed:c({languageClass:function(){return{"language--in-modal":this.inModal}},localeValue:function(){return this.$store.state.language.active}},Object(s["b"])(["publishedLanguages"])),methods:{onClick:function(e){this.$store.commit(o["g"].UPDATE_LANG,e)}}},f=d,h=(i("0042"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"3e5a2b70",null);t["a"]=p.exports},"42bd":function(e,t,i){"use strict";i("ac00")},"442c":function(e,t,i){},"44d3":function(e,t,i){},"453b":function(e,t,i){"use strict";i("63da")},"45b6":function(e,t,i){"use strict";i("2ec1")},4828:function(e,t,i){"use strict";i("7873")},4863:function(e,t,i){"use strict";i("069c")},4868:function(e,t,i){"use strict";var n=i("2f62"),a=i("0429"),r=i("4e53");function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach((function(t){l(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function l(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}t["a"]={filters:r["a"],computed:o({},Object(n["c"])({currentLocale:function(e){return e.language.active}})),methods:{formatPermalink:function(e){var t=this.$refs.permalink;if(t&&e){var i="";e.value&&"string"===typeof e.value?i=e.value:"string"===typeof e&&(i=e);var n=this.$options.filters.slugify(i),r={name:t.attributes?t.attributes.name:t.name,value:n};e.locale?r.locale=e.locale:r.locale=this.currentLocale.value,this.$store.commit(a["f"].UPDATE_FORM_FIELD,r)}}}}},"4c38":function(e,t,i){"use strict";i("9196")},"4e53":function(e,t,i){"use strict";var n={publishDateDisplayFormat:window["TWILL"].STORE.config.publishDateDisplayFormat},a={},r={},s={},o={state:n,getters:a,mutations:r,actions:s},l=i("70f2"),c=i.n(l),u=i("2569");function d(e,t){var n=u["d"][Object(u["a"])()];return c()(e,t,{locale:void 0!==n&&n.hasOwnProperty("date-fns")?n["date-fns"]:i("52cf")})}var f={slugify:function(e){var t={",":"-","/":"-",":":"-",";":"-",_:"-","©":"(c)","·":"-","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","ā":"a","ă":"a","ą":"a","ć":"c","č":"c","ď":"d","ē":"e","ę":"e","ě":"e","ğ":"g","ģ":"g","ī":"i","ı":"i","ķ":"k","ļ":"l","ł":"l","ń":"n","ņ":"n","ň":"n","ő":"o","œ":"oe","ŕ":"r","ř":"r","ś":"s","ş":"s","š":"s","ť":"t","ū":"u","ů":"u","ű":"u","ź":"z","ż":"z","ž":"z","ǘ":"u","ǵ":"g","ǹ":"n","ș":"s","ț":"t","ΐ":"i","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","є":"ye","і":"i","ї":"yi","ґ":"g","ḧ":"h","ḿ":"m","ṕ":"p","ẃ":"w","ẍ":"x","ә":"a","ғ":"g","қ":"q","ң":"n","ө":"o","ұ":"u"},i=new RegExp(Object.keys(t).join("|"),"g");return e.toString().toLowerCase().trim().replace(/\s+/g,"-").replace(i,(function(e){return t[e]})).replace(/&/g,"-and-").replace(/[^\w-]+/g,"-").replace(/--+/g,"-").replace(/(^-+)|(-+$)/,"")},prettierUrl:function(e){return e.replace(/^\/\/|^.*?:(\/\/)?/,"")},uppercase:function(e){return e||0===e?e.toString().toUpperCase():""},lowercase:function(e){return e||0===e?e.toString().toLowerCase():""},capitalize:function(e){return e?(e=e.toString(),e.charAt(0).toUpperCase()+e.slice(1)):""},formatDate:function(e){return e?d(e,"MMM, DD, YYYY, "+Object(u["b"])()):""},formatDateWithFormat:function(e,t){return e||(e=new Date),d(e,t)},formatDatatableDate:function(e){var t=o.state.publishDateDisplayFormat.length>0?o.state.publishDateDisplayFormat:"MMM DD, YYYY";return e||(e=new Date),d(e,t)},formatCalendarDate:function(e){var t="MMM, DD, YYYY, "+Object(u["b"])();return e||(e=new Date),d(e,t)}};t["a"]=f},"4fa2":function(e,t,i){},"4fcf":function(e,t,i){},"4fee":function(e,t,i){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t["a"]=function(e){var t=null,i=!1,a=/[^\[\]]+|\[\]/g,r=null,s=[];function o(e){return!(!e||"object"!==n(e)||!("nodeType"in e)||1!==e.nodeType)}function l(e){if(e&&"object"===n(e))return Object.keys(e).filter((function(e){return!isNaN(parseInt(e,10))})).splice(-1)[0]}function c(e){var t=l(e);return"string"===typeof t?parseInt(t,10):0}function u(e){var t=l(e);return"string"===typeof t?parseInt(t,10)+1:0}function d(e){if("object"!==n(e)||null===e)return 0;var t,i=0;if("function"===typeof Object.keys)i=Object.keys(e).length;else for(t in e)e.hasOwnProperty(t)&&i++;return i}function f(e,t){if([].forEach)return[].forEach.call(e,t);var i;for(i=0;i<e.length;i++)t.call(e,e[i],i)}function h(e){return!!e&&(t=e,!!p()&&(!!b()&&P()))}function p(){switch(n(t)){case"string":r=document.getElementById(t);break;case"object":o(t)&&(r=t);break}return r}function m(){return!(!r.enctype||"multipart/form-data"!==r.enctype)}function b(){return s=r.querySelectorAll("input, textarea, select"),s.length}function g(e){return"INPUT"===e.nodeName&&"radio"===e.type}function v(e){return"INPUT"===e.nodeName&&"checkbox"===e.type}function y(e){return"INPUT"===e.nodeName&&"file"===e.type}function _(e){return"TEXTAREA"===e.nodeName}function w(e){return"SELECT"===e.nodeName&&"select-one"===e.type}function O(e){return"SELECT"===e.nodeName&&"select-multiple"===e.type}function E(e){return"BUTTON"===e.nodeName&&"submit"===e.type}function T(e){return e.checked}function S(e){return window.FileList&&e.files instanceof window.FileList}function A(e){if(g(e))return!!T(e)&&e.value;if(v(e))return!!T(e)&&e.value;if(y(e))return!!m()&&(S(e)&&e.files.length>0?e.files:!(!e.value||""===e.value)&&e.value);if(_(e))return!(!e.value||""===e.value)&&e.value;if(w(e))return e.value&&""!==e.value?e.value:!(!e.options||!e.options.length||""===e.options[0].value)&&e.options[0].value;if(O(e)){if(e.options&&e.options.length>0){var t=[];return f(e.options,(function(e){e.selected&&t.push(e.value)})),(i||!!t.length)&&t}return!1}return E(e)?e.value&&""!==e.value?e.value:!(!e.innerText||""===e.innerText)&&e.innerText:"undefined"!==typeof e.value&&((i||""!==e.value)&&e.value)}function D(e,t,i,n){var a=t[0];if(g(e))return!1!==i?(n[a]=i,i):void 0;if(v(e))return!1!==i?(n[a]||(n[a]=[]),n[a].push(i)):void 0;if(O(e)){if(!1===i)return;n[a]=i}return n[a]=i,i}function C(e,t,i,n){var a=t[0];return t.length>1?"[]"===a?(n[u(n)]={},C(e,t.splice(1,t.length),i,n[c(n)])):(n[a]&&d(n[a])>0||(n[a]={}),C(e,t.splice(1,t.length),i,n[a])):1===t.length?"[]"===a?(n[u(n)]=i,n):(D(e,t,i,n),n):void 0}function P(){var e,t,n,r=0,o={};for(r=0;r<s.length;r++)t=s[r],!t.name||""===t.name||t.disabled||g(t)&&!T(t)||(n=A(t),(!1!==n||i)&&(e=t.name.match(a),1===e.length&&D(t,e,n||"",o),e.length>1&&C(t,e,n||"",o)));var l=d(o);return l>0&&o}return h(e)}},5420:function(e,t,i){"use strict";t["a"]={props:{draggable:{type:Boolean,default:!0}},data:function(){return{animation:150,handle:".drag__handle",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",scrollSensitivity:30}},computed:{dragOptions:function(){return{animation:this.animation,handle:this.handle,ghostClass:this.ghostClass,chosenClass:this.chosenClass,dragClass:this.dragClass,scrollSensitivity:this.scrollSensitivity,disabled:!this.draggable}}}}},5440:function(e,t,i){},"54d3":function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("transition",{attrs:{name:"move_down_notif"}},[e.show?i("div",{class:e.notifClasses,attrs:{role:"alert","aria-live":"polite","aria-atomic":"true"}},[i("div",{staticClass:"notif__inner"},[e.important?e._e():i("button",{staticClass:"notif__close",attrs:{type:"button","data-dismiss":"alert","aria-label":"alertClose"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.closeNotif(t)}}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"close_modal"}})]),i("span",{domProps:{innerHTML:e._s(e.message)}})])]):e._e()])},a=[],r=i("0429");function s(e){return u(e)||c(e)||l(e)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){if(e){if("string"===typeof e)return d(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?d(e,t):void 0}}function c(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function u(e){if(Array.isArray(e))return d(e)}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var f={name:"A17Notification",props:{variant:{type:String,default:"success"},duration:{type:Number,default:3e3},important:{type:Boolean,default:!0},autoHide:{type:Boolean,default:!0}},data:function(){return{closed:!1,timer:null,css:"notif"}},computed:{message:function(){return this.$store.getters.notifByVariant(this.variant)},variantClass:function(){return"notif--".concat(this.variant)},notifClasses:function(){return this.css&&Array.isArray(this.css)?[].concat(s(this.css),[this.variantClass]):["notif",this.variantClass]},show:function(){return!this.closed&&!!this.message}},methods:{closeNotif:function(){this.closed=!0,this.clearNotification(),this.timer&&(clearTimeout(this.timer),this.timer=null)},clearNotification:function(){this.$store.commit(r["j"].CLEAR_NOTIF,this.variant)},autoClose:function(){var e=this;null===this.timer&&(this.timer=setTimeout((function(){e.closeNotif()}),this.duration))}},watch:{message:function(){this.message&&(this.closed=!1,this.autoHide&&this.autoClose())}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null),b=m.exports,g={install:function(e,t){e.mixin({methods:{notif:function(e){this.$store.commit(r["j"].SET_NOTIF,e)}}}),e.component("a17-notif",b)}};t["a"]=g},5589:function(e,t,i){"use strict";i.d(t,"d",(function(){return s})),i.d(t,"a",(function(){return l})),i.d(t,"c",(function(){return c})),i.d(t,"b",(function(){return p})),i.d(t,"e",(function(){return w})),i.d(t,"f",(function(){return O}));var n="updateMediaTypeTotal",a="incrementMediaTypeTotal",r="decrementMediaTypeTotal",s="saveSelectedMedias",o="updateMedias",l="destroySelectedMedias",c="reorderSelectedMedias",u="progressUpload",d="progressUploadMedia",f="doneUploadMedia",h="errorUploadMedia",p="destroyMediasInSelected",m="updateMediaMax",b="updateMediaFilesizeMax",g="updateMediaWidthMin",v="updateMediaHeightMin",y="updateMediaType",_="resetMediaType",w="setMediaCrop",O="setMediaMetadatas",E="updateMediaConnector",T="updateMediaMode",S="destroyMediaConnector",A="updateReplaceIndex",D="addMedias";t["g"]={UPDATE_MEDIA_TYPE_TOTAL:n,INCREMENT_MEDIA_TYPE_TOTAL:a,DECREMENT_MEDIA_TYPE_TOTAL:r,SAVE_MEDIAS:s,DESTROY_MEDIAS:l,REORDER_MEDIAS:c,PROGRESS_UPLOAD:u,PROGRESS_UPLOAD_MEDIA:d,DONE_UPLOAD_MEDIA:f,ERROR_UPLOAD_MEDIA:h,DESTROY_SPECIFIC_MEDIA:p,UPDATE_MEDIA_MAX:m,UPDATE_MEDIA_FILESIZE_MAX:b,UPDATE_MEDIA_WIDTH_MIN:g,UPDATE_MEDIA_HEIGHT_MIN:v,UPDATE_MEDIA_TYPE:y,RESET_MEDIA_TYPE:_,SET_MEDIA_CROP:w,SET_MEDIA_METADATAS:O,UPDATE_MEDIA_CONNECTOR:E,UPDATE_MEDIA_MODE:T,DESTROY_MEDIA_CONNECTOR:S,UPDATE_REPLACE_INDEX:A,UPDATE_MEDIAS:o,ADD_MEDIAS:D}},"55d2":function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"paginate"},[i("p",{staticClass:"paginate__offset f--small"},[e._v(e._s(e.$trans("listing.paginate.rows-per-page"))+" "),i("a17-dropdown",{ref:"paginateDropdown",attrs:{position:"bottom-right"}},[i("button",{staticClass:"paginate__button",on:{click:function(t){return e.$refs.paginateDropdown.toggle()}}},[e._v(e._s(e.newOffset))]),i("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},e._l(e.availableOffsets,(function(t){return i("button",{key:t,class:{dropdown__active:t===e.newOffset},attrs:{type:"button"},on:{click:function(i){return e.changeOffset(t)}}},[e._v(e._s(t))])})),0)])],1),e.max>1?i("div",{staticClass:"paginate__pages"},[i("p",{staticClass:"paginate__current f--small"},[i("input",{directives:[{name:"model",rawName:"v-model",value:e.newPageFormat,expression:"newPageFormat"}],staticClass:"form__input paginate__input",attrs:{type:"number",maxlength:"4"},domProps:{value:e.newPageFormat},on:{blur:e.formatPage,input:function(t){t.target.composing||(e.newPageFormat=t.target.value)}}}),e._v(" of "+e._s(e.max))]),i("button",{staticClass:"paginate__prev",attrs:{type:"button",disabled:e.value<=e.min},on:{click:e.previousPage}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"pagination_left"}})]),i("button",{staticClass:"paginate__next",attrs:{type:"button",disabled:e.value>=e.max},on:{click:e.nextPage}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"pagination_right"}})])]):e._e()])},a=[],r={name:"A17Paginate",props:{value:{type:Number,required:!0},offset:{type:Number,default:60},availableOffsets:{type:Array,default:function(){return[]}},min:{type:Number,default:1},max:{type:Number,required:!0}},data:function(){return{newOffset:this.offset}},computed:{newPageFormat:{get:function(){return this.value},set:function(e){return parseInt(e)}}},methods:{formatPage:function(e){var t=e.target.value;t=""!==t?parseInt(t):1,t>this.max&&(t=this.max),t<1&&(t=1),e.target.value=t,t!==this.value&&this.$emit("changePage",t)},changeOffset:function(e){this.newOffset=e,this.$emit("changeOffset",parseInt(this.newOffset))},previousPage:function(){this.$emit("changePage",parseInt(this.value-1))},nextPage:function(){this.$emit("changePage",parseInt(this.value+1))}}},s=r,o=(i("3702"),i("2877")),l=Object(o["a"])(s,n,a,!1,null,"8b22867a",null);t["a"]=l.exports},"564f":function(e,t,i){},"56c7":function(e,t,i){"use strict";i("8a61")},"5a57":function(e,t,i){"use strict";t["a"]={props:{open:{type:Boolean,default:!1}},data:function(){return{visible:this.open}},computed:{visibilityClasses:function(){return{"s--open":this.visible}}},methods:{onClickVisibility:function(){this.visible=!this.visible,this.$emit("toggleVisibility",this.visible)}}}},"5ac4":function(e,t,i){},"5b51":function(e,t,i){"use strict";i.d(t,"b",(function(){return l})),i.d(t,"a",(function(){return c}));var n="undefined"!==typeof window,a=(n&&function(){var e=window.navigator.userAgent;(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&window.history)}(),n&&window.performance&&window.performance.now?window.performance:Date),r=s();function s(){return a.now().toFixed(3)}function o(e,t){var i=window.history;try{t?i.replaceState({key:r},"",e):(r=s(),i.pushState({key:r},"",e))}catch(n){window.location[t?"replace":"assign"](e)}}function l(e){o(e,!0)}function c(){return location.protocol+"//"+location.host+location.pathname}},"5d16":function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("form",{ref:"form",staticClass:"filter",class:{"filter--opened":e.opened,"filter--single":!e.withNavigation,"filter--withHiddenFilters":e.withHiddenFilters},on:{submit:function(t){return t.preventDefault(),e.submitFilter(t)}}},[i("div",{staticClass:"filter__inner"},[i("div",{staticClass:"filter__navigation"},[e._t("navigation")],2),i("div",{staticClass:"filter__search"},[i("input",{staticClass:"form__input form__input--small",attrs:{type:"search",name:"search",placeholder:e.placeholder},domProps:{value:e.searchValue},on:{input:e.onSearchInput}}),e.withHiddenFilters?i("a17-button",{staticClass:"filter__toggle",attrs:{variant:"ghost","aria-expanded":e.opened?"true":"false"},on:{click:e.toggleFilter}},[e._v(e._s(e.$trans("filter.toggle-label","Filter"))+" "),i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"dropdown_module"}})]):e._e(),e._t("additional-actions"),i("button",{staticClass:"visually-hidden",attrs:{"aria-hidden":"true",type:"submit"}},[e._v(e._s(e.$trans("filter.apply-btn","Apply")))])],2)]),i("transition",{attrs:{css:!1,duration:275},on:{"before-enter":e.beforeEnter,enter:e.enter,"before-leave":e.beforeLeave,leave:e.leave}},[e.withHiddenFilters?i("div",{directives:[{name:"show",rawName:"v-show",value:e.opened,expression:"opened"}],ref:"more",staticClass:"filter__more",attrs:{"aria-hidden":!e.opened||null}},[i("div",{ref:"moreInner",staticClass:"filter__moreInner"},[e._t("hidden-filters"),i("a17-button",{attrs:{variant:"ghost",type:"submit"}},[e._v(e._s(e.$trans("filter.apply-btn","Apply")))]),e.clearOption?i("a17-button",{attrs:{variant:"ghost",type:"button"},on:{click:e.clear}},[e._v(e._s(e.$trans("filter.clear-btn","Clear")))]):e._e()],2)]):e._e()])],1)},a=[],r=i("b047"),s=i.n(r),o=i("4fee"),l={name:"A17Filter",props:{initialSearchValue:{type:String,default:""},placeholder:{type:String,default:function(){return this.$trans("filter.search-placeholder","Search")}},closed:{type:Boolean,default:!1},clearOption:{type:Boolean,default:!1}},data:function(){return{openable:!this.closed,open:!1,withHiddenFilters:!0,withNavigation:!0,searchValue:this.initialSearchValue,transitionTimeout:null}},computed:{opened:function(){return this.open&&this.openable}},watch:{closed:function(){this.openable=!this.closed},initialSearchValue:function(){this.searchValue=this.initialSearchValue}},methods:{getHeight:function(){return this.$refs.moreInner.clientHeight},beforeEnter:function(e){e.style.height="0px",e.style.overflow="hidden"},enter:function(e,t){this.resetHeight(),this.transitionTimeout&&clearTimeout(this.transitionTimeout),this.transitionTimeout=setTimeout((function(){e.style.overflow="visible"}),275),window.addEventListener("resize",this._resize,!1)},beforeLeave:function(e){this.transitionTimeout&&clearTimeout(this.transitionTimeout),this.resetHeight(),e.style.overflow="hidden",window.removeEventListener("resize",this._resize)},leave:function(e,t){e.style.height="0px"},toggleFilter:function(){this.openable=!0,this.open=!this.open},submitFilter:function(){var e=Object(o["a"])(this.$refs.form);this.$emit("submit",e)},onSearchInput:function(e){this.searchValue=e.target.value},clear:function(){this.searchValue="",this.$emit("clear")},resetHeight:function(){this.$refs.more&&(this.$refs.more.style.height=this.getHeight()+"px")},_resize:s()((function(){this.resetHeight()}),50)},beforeMount:function(){this.$slots.navigation||(this.withNavigation=!1),this.$slots["hidden-filters"]||(this.withHiddenFilters=!1)}},c=l,u=(i("1a47"),i("1071"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"2c5a543c",null);t["a"]=d.exports},"5da2":function(e,t,i){"use strict";i("bb7b")},"605f":function(e,t,i){"use strict";t["a"]={props:{aspectRatio:{type:Number,default:null},viewMode:{type:Number,default:2},cropBoxMovable:{type:Boolean,default:!0},cropBoxResizable:{type:Boolean,default:!0},dragMode:{type:String,default:"crop"},rotatable:{type:Boolean,default:!1},scalable:{type:Boolean,default:!1},zoomable:{type:Boolean,default:!1}},computed:{defaultCropsOpts:function(){return{aspectRatio:this.initAspectRatio,viewMode:this.viewMode,cropBoxResizable:this.cropBoxResizable,cropBoxMovable:this.cropBoxMovable,dragMode:this.dragMode,rotatable:this.rotatable,scalable:this.scalable,zoomable:this.zoomable,guides:!1,center:!1,checkCrossOrigin:!1,background:!1}}}}},"609f":function(e,t,i){},"60d1":function(e,t,i){"use strict";i("2d74")},"633a":function(e,t,i){"use strict";i("7745")},"63da":function(e,t,i){},"64e5":function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("transition",{attrs:{name:"fade_spinner"},on:{"before-enter":e.beforeEnter,"after-enter":e.afterEnter,"before-leave":e.beforeLeave}},[i("div",{staticClass:"a17spinner"},[i("div",{staticClass:"a17spinner__anim",class:{"a17spinner__anim--visible":e.isVisible}},[i("span",{staticClass:"loader"},[i("span")])])])])},a=[],r={name:"A17Spinner",props:{visible:{type:Boolean,default:!1}},data:function(){return{isVisible:this.visible}},methods:{beforeEnter:function(e){this.isVisible=this.visible},afterEnter:function(e){this.isVisible=!0},beforeLeave:function(e){this.isVisible=!1}}},s=r,o=(i("cfc1"),i("2877")),l=Object(o["a"])(s,n,a,!1,null,null,null);t["a"]=l.exports},6665:function(e,t,i){"use strict";i("4fa2")},"67ff":function(e,t,i){"use strict";var n=i("63ea"),a=i.n(n),r=i("2f62"),s=i("0429");function o(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function l(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?o(Object(i),!0).forEach((function(t){c(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function c(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}t["a"]={props:{hasDefaultStore:{type:Boolean,default:!1},inModal:{type:Boolean,default:!1},inStore:{type:String,default:""},fieldName:{type:String,default:""}},computed:l(l({storedValue:function(){return this.inModal?this.modalFieldValueByName(this.getFieldName()):this.fieldValueByName(this.getFieldName())}},Object(r["b"])(["fieldValueByName","modalFieldValueByName"])),Object(r["c"])({submitting:function(e){return e.form.loading},fields:function(e){return e.form.fields},modalFields:function(e){return e.form.modalFields}})),watch:{storedValue:function(e){if(""!==this.inStore){var t=this[this.inStore],i=this.locale?e[this.locale.value]:e;a()(t,i)||"undefined"!==typeof this.updateFromStore&&this.updateFromStore(i)}}},methods:{getFieldName:function(){return""!==this.fieldName?this.fieldName:this.name},saveIntoStore:function(e){if(""!==this.inStore){var t="";t=e||this[this.inStore];var i={};i.name=this.getFieldName(),i.value=t,this.locale&&(i.locale=this.locale.value),this.inModal?this.$store.commit(s["f"].UPDATE_MODAL_FIELD,i):this.$store.commit(s["f"].UPDATE_FORM_FIELD,i)}},preventSubmit:function(){this.$store.commit(s["f"].PREVENT_SUBMIT)},allowSubmit:function(){this.$store.commit(s["f"].ALLOW_SUBMIT)},destroyValue:function(){""!==this.inStore&&(this.inModal?this.$store.commit(s["f"].REMOVE_MODAL_FIELD,this.getFieldName()):this.$store.commit(s["f"].REMOVE_FORM_FIELD,this.getFieldName()))}},beforeMount:function(){var e=this.getFieldName();if(""!==this.inStore&&""!==e){var t=this.inModal?this.modalFields:this.fields,i=t.filter((function(t){return t.name===e}));i.length?this.locale?this[this.inStore]=i[0].value[this.locale.value]:this[this.inStore]=i[0].value:this.hasDefaultStore&&this.saveIntoStore()}}}},"6cf8":function(e,t,i){"use strict";i("1ad4")},"6d94":function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"modalValidation"},[i("a17-inputframe",["create"===e.mode?[i("a17-button",{attrs:{type:"submit",name:"create",variant:"validate",disabled:e.isDisabled}},[e._v(e._s(e.$trans("modal.create.button","Create")))]),e.isDisabled?e._e():i("a17-button",{attrs:{type:"submit",name:"create-another",variant:"aslink-grey"},nativeOn:{click:function(e){return e.currentTarget.focus()}}},[i("span",[e._v(e._s(e.$trans("modal.create.create-another","Create and add another")))])])]:"update"===e.mode?i("a17-button",{attrs:{type:"submit",name:"update",variant:"validate",disabled:e.isDisabled}},[e._v(e._s(e.$trans("modal.update.button","Update")))]):i("a17-button",{attrs:{type:"submit",name:"done",variant:"validate",disabled:e.isDisabled}},[e._v(e._s(e.$trans("modal.done.button","Done")))])],2),e.activePublishState?i("label",{staticClass:"switcher__button",class:e.switcherClasses,attrs:{for:e.publishedName}},[e.isChecked?i("span",{staticClass:"switcher__label"},[e._v(e._s(e.textEnabled))]):e._e(),e.isChecked?e._e():i("span",{staticClass:"switcher__label"},[e._v(e._s(e.textDisabled))]),i("input",{directives:[{name:"model",rawName:"v-model",value:e.published,expression:"published"}],attrs:{type:"checkbox",disabled:e.disabled,name:e.publishedName,id:e.publishedName},domProps:{value:1,checked:Array.isArray(e.published)?e._i(e.published,1)>-1:e.published},on:{change:function(t){var i=e.published,n=t.target,a=!!n.checked;if(Array.isArray(i)){var r=1,s=e._i(i,r);n.checked?s<0&&(e.published=i.concat([r])):s>-1&&(e.published=i.slice(0,s).concat(i.slice(s+1)))}else e.published=a}}}),i("span",{staticClass:"switcher__switcher"})]):e._e()],1)},a=[],r=i("0429");function s(e){return u(e)||c(e)||l(e)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){if(e){if("string"===typeof e)return d(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?d(e,t):void 0}}function c(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function u(e){if(Array.isArray(e))return d(e)}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var f={name:"A17ModalValidationButtons",props:{publishedName:{type:String,required:!1},disabled:{type:Boolean,default:!1},activePublishState:{type:Boolean,default:!1},isPublish:{type:Boolean,default:!1},isDisable:{type:Boolean,default:!1},mode:{type:String,default:"create"},textEnabled:{type:String,default:"Live"},textDisabled:{type:String,default:"Draft"}},data:function(){return{fields:!1,isDisabled:this.isDisable,published:this.isPublish}},watch:{published:function(e){this.$store.commit(r["f"].UPDATE_FORM_FIELD,{name:"published",value:e})}},computed:{switcherClasses:function(){return[this.isChecked?"switcher--active":""]},isChecked:function(){return this.published},checkedValue:{get:function(){return this.published},set:function(e){this.published=e}}},methods:{addListeners:function(){var e=this;this.$nextTick((function(){e.fields.forEach((function(t){t.removeEventListener("input",e.disable)})),e.fields=s(e.$parent.$el.querySelectorAll("input, textarea, select")),e.fields.forEach((function(t){t.addEventListener("input",(function(){e.disable()}))}))}))},disable:function(){if(!this.fields)return this.isDisabled=!0,void this.$emit("disable",!0);var e=this.fields.filter((function(e){return e.getAttribute("required")}));if(0===e.length)return this.isDisabled=!1,void this.$emit("disable",!1);var t=e.filter((function(e){return e.value.length>0}));if(t.length===e.length)return this.isDisabled=!1,void this.$emit("disable",!1);this.isDisabled=!0,this.$emit("disable",!0)}},mounted:function(){var e=this;this.fields=s(this.$parent.$el.querySelectorAll("input, textarea, select")),e.disable(),this.fields.length&&this.addListeners()},beforeDestroy:function(){var e=this;this.fields.length&&this.fields.forEach((function(t){t.removeEventListener("input",e.disable)}))}},h=f,p=(i("f908"),i("7ce9"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"69e3ef5e",null);t["a"]=m.exports},"6f52":function(e,t,i){},7231:function(e,t,i){"use strict";i("7783")},"727d":function(e,t,i){"use strict";function n(){var e,t,i,n,a,r,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{message:"",value:null},l="";s&&"string"===typeof s&&(l="".concat("TWILL"," - [").concat(s,"]: "));var c,u=l+o.message,d=null!==(e=null!==(t=null===o||void 0===o||null===(i=o.value)||void 0===i||null===(n=i.response)||void 0===n?void 0:n.status)&&void 0!==t?t:null===o||void 0===o||null===(a=o.response)||void 0===a?void 0:a.status)&&void 0!==e?e:null;(console.error(u),null!==o&&void 0!==o&&o.value&&null!==(r=o.value)&&void 0!==r&&r.response)&&console.error(null===(c=o.value.response)||void 0===c?void 0:c.data);401!==d&&419!==d||window["TWILL"].vm.notif({message:'Your session has expired, please <a href="'+document.location+'" target="_blank">login in another tab</a>. You can then continue working here.',variant:"warning"})}i.d(t,"a",(function(){return n}))},"72f9":function(e,t,i){"use strict";i("3718")},"74ac":function(e,t,i){},"753c":function(e,t,i){},"75fb":function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"fieldset",class:e.visibilityClasses},[e.title?i("header",{staticClass:"fieldset__header",class:e.activeClasses},[e.activeToggle?i("h3",{attrs:{role:"button","aria-expanded":e.visible?"true":"false"},on:{click:e.onClickVisibility}},[e._v(e._s(e.title)+" "),i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"dropdown_module"}})]):i("h3",[e._v(e._s(e.title))])]):i("header",{staticClass:"fieldset__header",class:e.activeClasses},[e._t("header")],2),i("div",{staticClass:"fieldset__content",attrs:{hidden:!e.visible||null,"aria-hidden":!e.visible||null}},[e._t("default")],2)])},a=[],r=i("5a57"),s={name:"A17Fieldset",mixins:[r["a"]],props:{open:{type:Boolean,default:!0},title:{default:""},activeToggle:{type:Boolean,default:!0}},computed:{activeClasses:function(){return{"fieldset--hoverable":this.activeToggle}}}},o=s,l=(i("1d38"),i("2877")),c=Object(l["a"])(o,n,a,!1,null,"0793316e",null);t["a"]=c.exports},7745:function(e,t,i){},7783:function(e,t,i){},7873:function(e,t,i){},"78ad":function(e,t,i){},7949:function(e,t,i){"use strict";i("609f")},"7a77":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var n=function(e,t,i){return new Promise((function(n,a){var r=document.getElementById(e),s=function e(){r.removeEventListener("load",e),n()};r?r.addEventListener("load",s):(r=document.createElement("script"),r.setAttribute("id",e),r.type=i,r.onload=s,r.onerror=a,document.getElementsByTagName("head")[0].appendChild(r),r.src=t)}))}},"7b5e":function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"vselectOuter"},[i("a17-inputframe",{attrs:{error:e.error,label:e.label,note:e.note,size:e.size,name:e.name,"label-for":e.uniqId,required:e.required,"add-new":e.addNew}},[i("div",{staticClass:"vselect",class:e.vselectClasses},[i("div",{staticClass:"vselect__field"},[i("input",{attrs:{type:"hidden",name:e.name,id:e.uniqId},domProps:{value:e.inputValue}}),i("v-select",{attrs:{multiple:e.multiple,placeholder:e.placeholder,value:e.value,options:e.currentOptions,searchable:e.searchable,clearSearchOnSelect:e.clearSearchOnSelect,label:e.optionsLabel,"on-search":e.getOptions,taggable:e.taggable,pushTags:e.pushTags,transition:e.transition,requiredValue:e.required,maxHeight:e.maxHeight,disabled:e.disabled},on:{input:e.updateValue}},[i("span",{attrs:{slot:"no-options"},slot:"no-options"},[e._v(e._s(e.emptyText))])])],1)])]),e.addNew?[i("a17-modal-add",{ref:"addModal",attrs:{name:e.name,"form-create":e.addNew,"modal-title":"Add new "+e.label}},[e._t("addModal")],2)]:e._e()],2)},a=[],r=i("b047"),s=i.n(r),o=i("825f"),l=i("67ff"),c=i("f03e"),u=i("ed28"),d=i("4a7a"),f=i.n(d);function h(e){return h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}var p,m,b={extends:f.a,props:{toggleSelectOption:{type:Boolean,default:!1},requiredValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{mutableValue:this.value}},computed:{showClearButton:function(){return!1}},watch:{search:function(){this.onSearch(this.search,this.toggleLoading),this.$emit("search",this.search,this.toggleLoading)}},methods:{toggleDropdown:function(e){this.disabled||e.target!==this.$refs.openIndicator&&e.target!==this.$refs.search&&e.target!==this.$refs.toggle&&e.target!==this.$refs.selectedOptions&&e.target!==this.$el||(this.open?this.$refs.search.blur():(this.open=!0,this.$refs.search.focus()))},maybeDeleteValue:function(){if(!this.requiredValue&&!this.$refs.search.value.length&&this.mutableValue)return this.multiple?this.mutableValue.pop():this.mutableValue=null},isOptionSelected:function(e){var t=this;return this.valueAsArray.some((function(i){return"object"===h(i)?t.optionObjectComparator(i,e):i===e||i===e[t.index]}))}},mounted:function(){this.taggable&&this.onSearch(this.search,this.toggleLoading)}},g=b,v=i("2877"),y=Object(v["a"])(g,p,m,!1,null,null,null),_=y.exports;function w(e){return w="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var O={name:"A17VueSelect",mixins:[o["a"],c["a"],l["a"],u["a"]],props:{placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:String,default:""},transition:{type:String,default:"fade_move_dropdown"},multiple:{type:Boolean,default:!1},taggable:{type:Boolean,default:!1},pushTags:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},clearSearchOnSelect:{type:Boolean,default:!0},selected:{default:null},emptyText:{default:function(){return this.$trans("select.empty-text","Sorry, no matching options.")}},options:{default:function(){return[]}},optionsLabel:{type:String,default:"label"},endpoint:{type:String,default:""},size:{type:String,default:""},required:{type:Boolean,default:!1},maxHeight:{type:String,default:"400px"}},components:{"v-select":_},data:function(){return{value:this.selected,currentOptions:this.options,ajaxUrl:this.endpoint}},watch:{options:function(e){this.currentOptions=this.options}},computed:{uniqId:function(e){return this.name+"-"+this.randKey},inputValue:{get:function(){if(this.value){if(this.multiple){if(Array.isArray(this.value))return"object"===w(this.value[0])?this.value.map((function(e){return e.value})):this.value.join(",")}else if("object"===w(this.value))return this.value.value;return this.value}return""},set:function(e){Array.isArray(e)?this.taggable?this.value=e:this.value=this.options.filter((function(t){return e.includes(t.value)})):this.value=this.options.find((function(t){return"number"===typeof t.value?t.value%1!==0?t.value===parseFloat(e):t.value===parseInt(e):t.value===String(e)}))}},vselectClasses:function(){return[this.value?"vselect--has-value":"",this.multiple?"vselect--multiple":"vselect--single","small"===this.size?"vselect--small":"","large"===this.size?"vselect--large":"",this.error?"vselect--error":""]}},methods:{updateFromStore:function(e){this.inputValue=e},isAjax:function(){return""!==this.ajaxUrl},updateValue:function(e){this.value=e,this.saveIntoStore(),this.$emit("change",e)},getOptions:s()((function(e,t){var i=this;if(!this.isAjax())return!0;t(!0),this.$http.get(this.ajaxUrl,{params:{q:e}}).then((function(e){e.data.items&&e.data.items.length&&(i.taggable&&Array.isArray(i.value)?i.currentOptions=e.data.items.filter((function(e){return!i.value.includes(e)})):i.currentOptions=e.data.items),t(!1)}),(function(e){t(!1)}))}),500)}},E=O,T=Object(v["a"])(E,n,a,!1,null,null,null);t["a"]=T.exports},"7bf9":function(e,t,i){"use strict";i("44d3")},"7c45":function(e,t,i){"use strict";i("da1e")},"7ce9":function(e,t,i){"use strict";i("38a4")},"7d9f":function(e,t,i){"use strict";var n=i("2f62");function a(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function r(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?a(Object(i),!0).forEach((function(t){s(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function s(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}t["a"]={props:{locale:{default:null}},computed:r({hasLocale:function(){return null!=this.locale},hasCurrentLocale:function(){return null!=this.currentLocale},isCurrentLocale:function(){return!this.hasLocale||!this.hasCurrentLocale||this.locale.value===this.currentLocale.value},isLocaleRTL:function(){var e=["ar","arc","dv","fa","ha","he","khw","ks","ku","ps","ur","yi"];return!!this.hasLocale&&e.includes(this.locale.shortlabel.toLowerCase())},dirLocale:function(){return this.isLocaleRTL?"rtl":"auto"},displayedLocale:function(){return!!this.hasLocale&&this.locale.shortlabel}},Object(n["c"])({currentLocale:function(e){return e.language.active},languages:function(e){return e.language.all}})),methods:{onClickLocale:function(){this.$emit("localize",this.locale)},updateLocale:function(e){this.$emit("localize",e)}}}},"7eaf":function(e,t,i){"use strict";i("cf06")},"7f29":function(e,t,i){"use strict";i("b720")},"825f":function(e,t,i){"use strict";t["a"]={data:function(){return{randKey:Date.now()+Math.floor(9999*Math.random())}}}},8268:function(e,t,i){},"82dc":function(e,t,i){"use strict";i("74ac")},"84d7":function(e,t,i){"use strict";i("564f")},"858a":function(e,t,i){},"85cf":function(e,t,i){"use strict";i("11ed")},8740:function(e,t,i){"use strict";i("c917")},"878a":function(e,t,i){"use strict";var n,a=i("a026"),r=i("2e01"),s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"container search",class:{"search--dashboard":"dashboard"===e.type}},["dashboard"===e.type?i("transition",{attrs:{name:"fade_search-overlay"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.readyToShowResult,expression:"readyToShowResult"}],staticClass:"search__overlay",on:{click:e.toggleSearch}})]):e._e(),i("div",{staticClass:"search__input"},[i("input",{ref:"search",staticClass:"form__input",attrs:{type:"search",name:"search",autocomplete:"off",placeholder:e.placeholder},on:{input:e.onSearchInput}}),i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"search"}})]),i("transition",{attrs:{name:"fade_search-overlay"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.readyToShowResult,expression:"readyToShowResult"}],staticClass:"search__results"},[i("ul",[e._l(e.searchResults,(function(t){return i("li",{key:t.id},[i("a",{staticClass:"search__result",attrs:{href:t.href}},[i("div",{staticClass:"search__cell search__cell--thumb hide--xsmall"},[i("figure",{staticClass:"search__thumb"},[i("img",{attrs:{src:t.thumbnail}})])]),i("div",{staticClass:"search__cell search__cell--pubstate hide--xsmall"},[i("span",{staticClass:"search__pubstate",class:{"search__pubstate--live":t.published}})]),i("div",{staticClass:"search__cell"},[i("span",{staticClass:"search__title"},[e._v(e._s(t.title))]),t.date?i("p",{staticClass:"f--note"},[e._v(" "+e._s(t.activity)+" "),i("timeago",{attrs:{"auto-update":1,datetime:new Date(t.date)}}),e._v(" by "+e._s(t.author)+" "),i("span",{staticClass:"search__type"},[e._v(e._s(t.type))])],1):e._e()])])])})),i("li",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"search__no-result"},[e._v(" "+e._s(e.$trans("dashboard.search.loading","Loading…"))+" ")]),i("li",{directives:[{name:"show",rawName:"v-show",value:e.readyToShowResult&&!e.searchResults.length&&!e.loading,expression:"readyToShowResult && !searchResults.length && !loading"}],staticClass:"search__no-result"},[e._v(" "+e._s(e.$trans("dashboard.search.no-result","No results found."))+" ")])],2)])])],1)},o=[],l=i("b047"),c=i.n(l),u=i("bc3a"),d=i.n(u),f=i("0a8f"),h=document.documentElement,p=[f["a"].search,f["a"].overlay],m=d.a.CancelToken,b=m.source(),g=document.querySelector(".header .header__title > a"),v={name:"A17Search",props:{open:{type:Boolean,default:!1},opened:{type:Boolean,default:!1},placeholder:{type:String,default:function(){return this.$trans("dashboard.search-placeholder","Search everything…")}},endpoint:{type:String,default:null},type:{type:String,default:"header"}},data:function(){return{searchValue:"",loading:!1,readyToShowResult:!1,searchResults:[]}},watch:{open:function(){this.toggleSearch()},opened:function(){this.opened&&(n=this.$refs.search,n.focus())}},methods:{toggleSearch:function(){p.forEach((function(e){h.classList.toggle(e)})),this.open?document.addEventListener("keydown",this.handleKeyDown,!1):(this.$refs.search.blur(),this.searchResults=[],this.searchValue="",this.readyToShowResult=!1,document.removeEventListener("keydown",this.handleKeyDown,!1))},handleKeyDown:function(e){e.keyCode&&9===e.keyCode&&(e.shiftKey?document.activeElement.isEqualNode(g)&&(n.focus(),e.preventDefault()):document.activeElement.isEqualNode(n)&&(g.focus(),e.preventDefault()))},setLastFocusElement:function(){var e=this.searchResults.length;e?setTimeout((function(){n=document.querySelectorAll(".search__result")[e-1]}),1):n=this.$refs.search},fetchSearchResults:function(){var e=this,t={search:this.searchValue};this.loading?(b.cancel(),b=m.source()):this.loading=!0,this.readyToShowResult=!0,this.$http.get(this.endpoint,{params:t,cancelToken:b.token}).then((function(t){e.searchResults=t.data,e.loading=!1,e.setLastFocusElement()}),(function(t){d.a.isCancel(t)||(e.loading=!1)}))},onSearchInput:c()((function(e){this.searchValue=e.target.value,this.searchValue&&this.searchValue.length>0?("dashboard"===this.type&&p.forEach((function(e){h.classList.add(e)})),this.fetchSearchResults()):("dashboard"===this.type&&p.forEach((function(e){h.classList.remove(e)})),this.readyToShowResult=!1,this.searchResults=[],this.setLastFocusElement())}),300)}},y=v,_=(i("6665"),i("2877")),w=Object(_["a"])(y,s,o,!1,null,"5bed9097",null),O=w.exports;a["a"].use(r["a"]);var E="searchApp",T={el:"#searchApp",components:{"a17-search":O},props:{topSpacing:{type:Number,default:60}},data:function(){return{open:!1,opened:!1,top:this.topSpacing}},computed:{positionStyle:function(){return{top:this.top+"px"}}},methods:{afterAnimate:function(){this.opened=!0},toggleSearch:function(){this.open=!this.open,this.top=this.topSpacing-(window.pageYOffset||document.documentElement.scrollTop),this.open?document.addEventListener("keydown",this.handleKeyDown,!1):(this.opened=!1,document.removeEventListener("keydown",this.handleKeyDown,!1))},handleKeyDown:function(e){e.keyCode&&27===e.keyCode&&this.toggleSearch()}}},S=!!document.getElementById(E)&&new a["a"](T);t["a"]=S},"892e":function(e,t,i){},"8a3c":function(e,t,i){"use strict";i("1df8")},"8a61":function(e,t,i){},"8aa1":function(e,t,i){"use strict";i("90d3")},"8b44":function(e,t,i){},"8d2b":function(e,t,i){"use strict";i("5ac4")},"8e95":function(e,t,i){},"8f79":function(e,t,i){},"90cf":function(e,t,i){},"90d3":function(e,t,i){},9170:function(e,t,i){"use strict";i.d(t,"a",(function(){return g})),i.d(t,"e",(function(){return v})),i.d(t,"c",(function(){return w})),i.d(t,"d",(function(){return O})),i.d(t,"b",(function(){return E}));var n=i("13ea"),a=i.n(n);function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function s(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){o(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function o(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function l(e){return f(e)||d(e)||u(e)||c()}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"===typeof e)return h(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?h(e,t):void 0}}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function f(e){if(Array.isArray(e))return h(e)}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Object.assign.apply(Object,[{}].concat(l(Object.keys(e).map((function(i){if(t){if(m(i,t.id))return o({},b(i,t.id),e[i])}else if(!i.startsWith("blocks["))return o({},i,e[i]);return null})).filter((function(e){return e})))))},m=function(e,t){return e.startsWith("blocks["+t+"]")},b=function(e,t){var i=e.replace("blocks["+t+"][","");return i.match(/]/gi).length>1?i.replace("]",""):i.slice(0,-1)},g=function e(t,i){return{id:t.id,type:t.type,editor_name:t.name,content:i.form.fields.filter((function(e){return m(e.name,t.id)})).map((function(e){return{name:b(e.name,t.id),value:e.value}})).reduce((function(e,t){return e[t.name]=t.value,e}),{}),medias:p(i.mediaLibrary.selected,t),browsers:p(i.browser.selected,t),blocks:Object.assign.apply(Object,[{}].concat(l(Object.keys(i.repeaters.repeaters).filter((function(e){return e.startsWith("blocks-"+t.id+"_")})).map((function(n){return o({},n.replace("blocks-"+t.id+"_",""),i.repeaters.repeaters[n].map((function(t){return e(t,i)})))})))))}},v=function(e){return a()(e.content)&&a()(e.browsers)&&a()(e.medias)&&a()(e.blocks)},y=function(e){return Object.assign.apply(Object,[{}].concat(l(Object.keys(e.repeaters.repeaters).filter((function(e){return!e.startsWith("blocks-")})).map((function(t){return o({},t,e.repeaters.repeaters[t].map((function(t){var i=g(t,e),n=i.content;return delete i.content,delete i.type,n.id=t.id,Object.assign(i,n)})))})))))},_=function(e){var t=s({},e.blocks.blocks);return Object.keys(t).map((function(i){return t[i].map((function(t){return t.name=i,g(t,e)}))})).flat()},w=function(e){var t=e.form.fields.filter((function(e){return!e.name.startsWith("blocks[")&&!e.name.startsWith("mediaMeta[")})).reduce((function(e,t){return e[t.name]=t.value,e}),{});return t},O=function(e){var t=e.form.modalFields.filter((function(e){return!e.name.startsWith("blocks[")&&!e.name.startsWith("mediaMeta[")})).reduce((function(e,t){return e[t.name]=t.value,e}),{});return t},E=function(e){var t=w(e),i=Object.assign(t,{cmsSaveType:e.form.type,published:e.publication.published,public:"public"===e.publication.visibility,publish_start_date:e.publication.startDate,publish_end_date:e.publication.endDate,languages:e.language.all,parent_id:e.parents.active,medias:p(e.mediaLibrary.selected),browsers:p(e.browser.selected),blocks:_(e),repeaters:y(e)});return i}},9196:function(e,t,i){},"91b4":function(e,t,i){},9462:function(e,t,i){"use strict";i("4fcf")},"94af":function(e,t,i){"use strict";var n=i("2f62");function a(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function r(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?a(Object(i),!0).forEach((function(t){s(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function s(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}t["a"]={data:function(){return{shouldRetrySubmitWhenAllowed:!1}},computed:r({},Object(n["c"])({isSubmitPrevented:function(e){return e.form.isSubmitPrevented}})),watch:{isSubmitPrevented:function(e){!e&&this.shouldRetrySubmitWhenAllowed&&(this.shouldRetrySubmitWhenAllowed=!1,this.retrySubmit())}},methods:{retrySubmit:function(){this.submitForm?this.submitForm():this.submit&&this.submit()}}}},"95ca":function(e,t,i){"use strict";i("0de3")},9788:function(e,t,i){"use strict";i.d(t,"g",(function(){return r})),i.d(t,"f",(function(){return s})),i.d(t,"d",(function(){return o})),i.d(t,"a",(function(){return l})),i.d(t,"b",(function(){return c})),i.d(t,"c",(function(){return u})),i.d(t,"e",(function(){return h})),i.d(t,"h",(function(){return O}));var n="preventSubmit",a="allowSubmit",r="updateFormPermalink",s="updateFormField",o="removeFormField",l="addFormBlock",c="deleteFormBlock",u="duplicateFormBlock",d="duplicateBlockFormFields",f="duplicateBlockRepeaters",h="reorderFormBlocks",p="updateFormLoading",m="setFormErrors",b="clearFormErrors",g="updateFormSaveType",v="replaceFormField",y="addFormField",_="emptyFormField",w="emptyModalField",O="updateModalField",E="removeModalField",T="replaceModalField";t["i"]={PREVENT_SUBMIT:n,ALLOW_SUBMIT:a,UPDATE_FORM_PERMALINK:r,UPDATE_FORM_FIELD:s,REMOVE_FORM_FIELD:o,ADD_FORM_BLOCK:l,DELETE_FORM_BLOCK:c,DUPLICATE_FORM_BLOCK:u,DUPLICATE_BLOCK_FORM_FIELDS:d,ADD_REPEATERS:f,REORDER_FORM_BLOCKS:h,UPDATE_FORM_LOADING:p,SET_FORM_ERRORS:m,CLEAR_FORM_ERRORS:b,UPDATE_FORM_SAVE_TYPE:g,REPLACE_FORM_FIELDS:v,ADD_FORM_FIELDS:y,EMPTY_FORM_FIELDS:_,EMPTY_MODAL_FIELDS:w,UPDATE_MODAL_FIELD:O,REMOVE_MODAL_FIELD:E,REPLACE_MODAL_FIELDS:T}},"98d2":function(e,t,i){"use strict";i.d(t,"c",(function(){return Ce})),i.d(t,"b",(function(){return Pe})),i.d(t,"a",(function(){return je}));var n,a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a17-dropdown",{ref:"rowSetupDropdown",attrs:{position:"bottom-right",fixed:!0}},[i("a17-button",{attrs:{variant:"icon"},on:{click:function(t){return e.$refs.rowSetupDropdown.toggle()}}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"more-dots"}})]),i("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},[e.row.hasOwnProperty("permalink")?i("a",{attrs:{href:e.row["permalink"],target:"_blank"}},[e._v("View permalink")]):e._e(),e.row.hasOwnProperty("edit")&&!e.row.hasOwnProperty("deleted")&&e.row["edit"]?i("a",{attrs:{href:e.editUrl},on:{click:function(t){return e.preventEditInPlace(t)}}},[e._v(e._s(e.$trans("listing.dropdown.edit","Edit")))]):e._e(),e.row.hasOwnProperty("published")&&!e.row.hasOwnProperty("deleted")?i("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.update("published")}}},[e._v(e._s(e.row["published"]?e.$trans("listing.dropdown.unpublish","Unpublish"):e.$trans("listing.dropdown.publish","Publish")))]):e._e(),e.row.hasOwnProperty("featured")&&!e.row.hasOwnProperty("deleted")?i("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.update("featured")}}},[e._v(e._s(e.row["featured"]?e.$trans("listing.dropdown.unfeature","Unfeature"):e.$trans("listing.dropdown.feature","Feature")))]):e._e(),e.row.duplicate&&!e.row.hasOwnProperty("deleted")?i("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.duplicateRow(t)}}},[e._v(e._s(e.$trans("listing.dropdown.duplicate","Duplicate")))]):e._e(),e.row.hasOwnProperty("deleted")?i("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.restoreRow(t)}}},[e._v(e._s(e.$trans("listing.dropdown.restore","Restore")))]):e._e(),e.row.hasOwnProperty("deleted")&&e.row.hasOwnProperty("destroyable")?i("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.destroyRow(t)}}},[e._v(e._s(e.$trans("listing.dropdown.destroy","Destroy")))]):e.row.delete&&!e.row.hasOwnProperty("deleted")?i("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.deleteRow(t)}}},[e._v(e._s(e.$trans("listing.dropdown.delete","Delete")))]):e._e()])],1)},r=[],s=i("3417"),o={name:"TableCellActions",mixins:[s["i"]],methods:{update:function(e){this.$emit("update",{row:this.row,col:e})}}},l=o,c=i("2877"),u=Object(c["a"])(l,a,r,!1,null,"d181c362",null),d=u.exports,f=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.toggleBulk(t)}}},[i("a17-checkbox",{attrs:{name:"bulkEdit",value:e.value,initialValue:e.initialValue}})],1)},h=[],p={name:"A17TableCellBulk",mixins:[s["i"]],components:{},props:{value:{type:Number,required:!0},initialValue:{type:Array,required:!0}},methods:{toggleBulk:function(){this.update()}}},m=p,b=(i("ba21"),Object(c["a"])(m,f,h,!1,null,"f6f9ab32",null)),g=b.exports,v=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",[e.formatDateLabel.length>0?i("span",{staticClass:"tablecell__datePub",class:{"s--expired":e.formatDateLabel===e.textExpired}},[e._v(" "+e._s(e._f("formatDatatableDate")(e.startDate))+" "),e.endDate?[e._v("- "+e._s(e._f("formatDatatableDate")(e.endDate)))]:e._e(),i("br"),i("span",[e._v(e._s(e.formatDateLabel))])],2):i("span",[e.startDate?[e._v(" "+e._s(e._f("formatDatatableDate")(e.startDate))+" ")]:[e._v(" — ")]],2)])},y=[],_=i("4e53"),w=i("0d3e"),O=i.n(w),E={name:"A17TableCellDates",mixins:[s["i"]],data:function(){return{textExpired:this.$trans("publisher.expired"),textScheduled:this.$trans("publisher.scheduled")}},computed:{formatDateLabel:function(){var e="",t=O()(this.startDate,new Date),i=this.endDate?O()(this.endDate,new Date):1;return this.startDate&&i<0?e=this.textExpired:t>0&&(e=this.textScheduled),e},startDate:function(){return this.row.hasOwnProperty("publish_start_date")?this.row.publish_start_date:""},endDate:function(){return this.row.hasOwnProperty("publish_end_date")?this.row.publish_end_date:""}},filters:_["a"]},T=E,S=(i("14ed"),Object(c["a"])(T,v,y,!1,null,"efdf589a",null)),A=S.exports,D=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.row.hasOwnProperty("featured")?i("span",{directives:[{name:"tooltip",rawName:"v-tooltip"}],staticClass:"tablecell__feature",class:{"tablecell__feature--active":e.row[e.colName]},attrs:{"data-tooltip-title":e.row.featured?"Unfeature":"Feature"},on:{click:function(t){return t.preventDefault(),e.toggleFeatured(t)}}},[i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"star-feature_active"}}),i("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"star-feature"}})]):e._e()},C=[],P={name:"A17TableCellFeatured",mixins:[s["i"]],methods:{toggleFeatured:function(){this.update()}}},x=P,k=(i("2881"),Object(c["a"])(x,D,C,!1,null,"933e4642",null)),M=k.exports,I=function(e,t){var i=t._c;return i("span",{staticClass:"tablecell__handle"})},L=[],j={name:"A17TableCellDraggable",mixins:[s["i"]]},R=j,N=(i("45b6"),Object(c["a"])(R,I,L,!0,null,"dc279052",null)),B=N.exports,$=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",[e._l(e.displayedLanguages,(function(t){return i("a",{key:t.value,staticClass:"tag tag--disabled",class:{"tag--enabled":t.published},attrs:{href:e.editWithLanguage(t)},on:{click:function(i){return e.editInPlace(i,t)}}},[e._v(" "+e._s(t.shortlabel)+" ")])})),e.languages.length>4?i("a",{staticClass:"more__languages f--small",attrs:{href:e.editWithLanguage(e.languages[0])},on:{click:function(t){return e.editInPlace(t,e.languages[0])}}},[e._v(" + "+e._s(e.languages.length-4)+" more ")]):e._e()],2)},F=[],U={name:"A17TableCellLanguages",mixins:[s["i"]],props:{languages:{type:Array,default:function(){return[]}}},computed:{displayedLanguages:function(){return this.languages.slice(0,4)}},methods:{editWithLanguage:function(e){var t={};return t.lang=e.value,this.editWithQuery(t)},editWithQuery:function(e){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));var n=t.length?"?"+t.join("&"):"";return"#"!==this.editUrl?this.editUrl+n:this.editUrl},editInPlace:function(e,t){this.$emit("editInPlace",e,t)}}},V=U,q=(i("3c2e"),Object(c["a"])(V,$,F,!1,null,"1f660d22",null)),W=q.exports,H=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.row.hasOwnProperty("published")?i("span",{directives:[{name:"tooltip",rawName:"v-tooltip"}],staticClass:"tablecell__pubstate",class:{"tablecell__pubstate--live":e.row[e.colName]},attrs:{"data-tooltip-title":e.row.published?"Unpublish":"Publish"},on:{click:function(t){return t.preventDefault(),e.togglePublish(t)}}}):e._e()},z=[],K={name:"A17TableCellPublished",mixins:[s["i"]],methods:{togglePublish:function(){this.update()}}},G=K,Y=(i("9462"),Object(c["a"])(G,H,z,!1,null,"c7179774",null)),X=Y.exports,J=function(){var e=this,t=e.$createElement,i=e._self._c||t;return"name"===e.colName?i("a17-table-cell-name",e._b({on:{update:e.update,editInPlace:e.editInPlace}},"a17-table-cell-name",e.childProps,!1)):e.col.hasOwnProperty("html")?i("a17-table-cell-html",e._b({on:{update:e.update,editInPlace:e.editInPlace}},"a17-table-cell-html",e.childProps,!1)):i("span",[e._v(e._s(e.row[e.colName]))])},Q=[],Z=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.row.hasOwnProperty("deleted")?i("span",[e._v(e._s(e.row[e.colName]))]):i("a",{staticClass:"tablecell__name",attrs:{href:e.editUrl},on:{click:function(t){return e.preventEditInPlace(t)}}},[i("span",{staticClass:"f--link-underlined--o"},[e._v(e._s(e.row[e.colName]))])])},ee=[],te={name:"A1TableCellName",mixins:[s["i"]]},ie=te,ne=(i("82dc"),Object(c["a"])(ie,Z,ee,!1,null,"0c40a3f2",null)),ae=ne.exports,re=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",{staticClass:"tablecell__raw",domProps:{innerHTML:e._s(e.row[e.colName])}})},se=[],oe={name:"A1TableCellHtml",mixins:[s["i"]]},le=oe,ce=(i("7949"),Object(c["a"])(le,re,se,!1,null,null,null)),ue=ce.exports,de={name:"A17TableCellGeneric",mixins:[s["i"]],computed:{childProps:function(){return this.$props}},components:{"a17-table-cell-name":ae,"a17-table-cell-html":ue}},fe=de,he=Object(c["a"])(fe,J,Q,!1,null,"0290614d",null),pe=he.exports,me=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("span",{staticClass:"tablecell__nested-depth",style:e.cellWidth})},be=[],ge={name:"A17TableCellNested",mixins:[s["i"]],props:{depth:{type:Number,default:0},offset:{type:Number,default:0}},computed:{cellWidth:function(){return this.depth>0?{width:80*this.depth-20-this.offset+"px"}:""}}},ve=ge,ye=(i("c397"),Object(c["a"])(ve,me,be,!1,null,"453028cc",null)),_e=ye.exports,we=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.row.hasOwnProperty("deleted")?i("a",{staticClass:"tablecell__thumb"},[i("img",{attrs:{src:e.row[e.colName]}})]):i("a",{staticClass:"tablecell__thumb",attrs:{href:e.editUrl},on:{click:function(t){return e.preventEditInPlace(t)}}},[i("img",{attrs:{src:e.row[e.colName]}})])},Oe=[],Ee={name:"A17TableCellThumbNail",mixins:[s["i"]]},Te=Ee,Se=(i("633a"),Object(c["a"])(Te,we,Oe,!1,null,"0ec0f270",null)),Ae=Se.exports;function De(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var Ce=["draggable","bulk","languages","featured","published","thumbnail","publish_start_date","nested"],Pe="a17-table-cell-",xe=d,ke=g,Me=A,Ie=M,Le=B,je=W,Re=X,Ne=pe,Be=_e,$e=Ae;t["d"]=(n={},De(n,Pe+"actions",xe),De(n,Pe+"bulk",ke),De(n,Pe+"publish_start_date",Me),De(n,Pe+"featured",Ie),De(n,Pe+"draggable",Le),De(n,Pe+"generic",Ne),De(n,Pe+"languages",je),De(n,Pe+"published",Re),De(n,Pe+"nested",Be),De(n,Pe+"thumbnail",$e),n)},"9aba":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var n="switchLanguage",a="updateLanguage",r="updatePublishedLanguage",s="publishLanguage",o="replaceLanguages",l="resetLanguages";t["b"]={SWITCH_LANG:n,UPDATE_LANG:a,PUBLISH_LANG:r,PUBLISH_SINGLE_LANG:s,REPLACE_LANGUAGES:o,RESET_LANGUAGES:l}},"9c70":function(e,t,i){"use strict";i("1282")},"9f00":function(e,t,i){"use strict";i("f39e")},"9f30":function(e,t,i){"use strict";i("ea72")},a568:function(e,t,i){"use strict";i("3464")},a852:function(e,t,i){},a91e:function(e,t,i){"use strict";i("d557")},ac00:function(e,t,i){},ac64:function(e,t,i){"use strict";i("8b44")},aeaa:function(e,t,i){},afcd:function(e,t,i){},b057:function(e,t,i){},b0ae:function(e,t,i){"use strict";var n,a,r=i("bc3a"),s=i.n(r),o=i("5b51"),l=i("727d"),c="DATATABLE",u={get:function(e,t){s.a.get(window["TWILL"].CMS_URLS.index,{params:e}).then((function(e){if(e.data.replaceUrl){var i=e.request.responseURL;Object(o["b"])(i)}if(t&&"function"===typeof t){var n={data:e.data.tableData?e.data.tableData:[],nav:e.data.tableMainFilters?e.data.tableMainFilters:[],maxPage:e.data.maxPage?e.data.maxPage:1};t(n)}}),(function(e){var t={message:"Get request error.",value:e};Object(l["a"])(c,t)}))},togglePublished:function(e,t,i){s.a.put(window["TWILL"].CMS_URLS.publish,{id:e.id,active:e.published}).then((function(e){t&&"function"===typeof t&&t(e)}),(function(e){var t={message:"Publish request error.",value:e};Object(l["a"])(c,t),i&&"function"===typeof i&&i(e.response)}))},toggleFeatured:function(e,t){s.a.put(window["TWILL"].CMS_URLS.feature,{id:e.id,active:e.featured}).then((function(e){t&&"function"===typeof t&&t(e)}),(function(e){var t={message:"Feature request error.",value:e};Object(l["a"])(c,t)}))},delete:function(e,t){s.a.delete(e.delete).then((function(e){t&&"function"===typeof t&&t(e)}),(function(e){var t={message:"Delete request error.",value:e};Object(l["a"])(c,t)}))},restore:function(e,t){s.a.put(window["TWILL"].CMS_URLS.restore,{id:e.id}).then((function(e){t&&"function"===typeof t&&t(e)}),(function(e){var t={message:"Restore request error.",value:e};Object(l["a"])(c,t)}))},destroy:function(e,t){s.a.put(window["TWILL"].CMS_URLS.forceDelete,{id:e.id}).then((function(e){t&&"function"===typeof t&&t(e)}),(function(e){var t={message:"Destroy request error.",value:e};Object(l["a"])(c,t)}))},duplicate:function(e,t){s.a.put(e.duplicate).then((function(e){t&&"function"===typeof t&&t(e)}),(function(e){var t={message:"Duplicate request error.",value:e};Object(l["a"])(c,t)}))},reorder:function(e,t){s.a.post(window["TWILL"].CMS_URLS.reorder,{ids:e}).then((function(e){t&&"function"===typeof t&&t(e)}),(function(e){var t={message:"Reorder request error.",value:e};Object(l["a"])(c,t)}))},bulkPublish:function(e,t){s.a.post(window["TWILL"].CMS_URLS.bulkPublish,{ids:e.ids,publish:e.toPublish}).then((function(e){t&&"function"===typeof t&&t(e)}),(function(e){var t={message:"Bulk publish request error.",value:e};Object(l["a"])(c,t)}))},bulkFeature:function(e,t){s.a.post(window["TWILL"].CMS_URLS.bulkFeature,{ids:e.ids,feature:e.toFeature}).then((function(e){t&&"function"===typeof t&&t(e)}),(function(e){var t={message:"Bulk feature request error.",value:e};Object(l["a"])(c,t)}))},bulkDelete:function(e,t){s.a.post(window["TWILL"].CMS_URLS.bulkDelete,{ids:e}).then((function(e){t&&"function"===typeof t&&t(e)}),(function(e){var t={message:"Bulk delete request error.",value:e};Object(l["a"])(c,t)}))},bulkRestore:function(e,t){s.a.post(window["TWILL"].CMS_URLS.bulkRestore,{ids:e}).then((function(e){t&&"function"===typeof t&&t(e)}),(function(e){var t={message:"Bulk restore request error.",value:e};Object(l["a"])(c,t)}))},bulkDestroy:function(e,t){s.a.post(window["TWILL"].CMS_URLS.bulkForceDelete,{ids:e}).then((function(e){t&&"function"===typeof t&&t(e)}),(function(e){var t={message:"Bulk destroy request error.",value:e};Object(l["a"])(c,t)}))}},d=i("0429"),f=i("f1af"),h=i("f930");function p(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var m=function e(t,i,n){t.forEach((function(t){t.id===i&&n(t),t.children&&e(t.children,i,n)}))},b=function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["id","children"],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",a=JSON.parse(JSON.stringify(t));return a.forEach((function(t){for(var a in t)i.includes(a)||delete t[a],a===n&&(t[a]=e(t[a]))})),a},g={baseUrl:window["TWILL"].STORE.datatable.baseUrl||"",data:window["TWILL"].STORE.datatable.data||[],columns:window["TWILL"].STORE.datatable.columns||[],filter:window["TWILL"].STORE.datatable.filter||{},filtersNav:window["TWILL"].STORE.datatable.navigation||[],page:Number(window["TWILL"].STORE.datatable.page||1),maxPage:Number(window["TWILL"].STORE.datatable.maxPage||1),defaultMaxPage:Number(window["TWILL"].STORE.datatable.defaultMaxPage||1),offset:Number(window["TWILL"].STORE.datatable.offset||60),defaultOffset:Number(window["TWILL"].STORE.datatable.defaultOffset||60),sortKey:window["TWILL"].STORE.datatable.sortKey||"",sortDir:window["TWILL"].STORE.datatable.sortDir||"asc",bulk:[],localStorageKey:window["TWILL"].STORE.datatable.localStorageKey||window.location.pathname,loading:!1,updateTracker:0},v={dataIds:function(e){return e.data.map((function(e){return e.id}))},hideableColumns:function(e){return e.columns.filter((function(e){return e.optional}))},visibleColumns:function(e){return e.columns.filter((function(e){return e.visible}))},visibleColumnsNames:function(e){var t=[];return e.columns.length&&e.columns.forEach((function(e){e.visible&&t.push(e.name)})),t}},y=(n={},p(n,d["e"].UPDATE_DATATABLE_DATA,(function(e,t){e.bulk=[],e.data=t})),p(n,d["e"].UPDATE_DATATABLE_BULK,(function(e,t){e.bulk.indexOf(t)>-1?e.bulk=e.bulk.filter((function(e){return e!==t})):e.bulk.push(t)})),p(n,d["e"].REPLACE_DATATABLE_BULK,(function(e,t){e.bulk=t})),p(n,d["e"].ADD_DATATABLE_COLUMN,(function(e,t){e.columns.splice(t.index,0,t.data)})),p(n,d["e"].REMOVE_DATATABLE_COLUMN,(function(e,t){e.columns.forEach((function(i,n){i.name===t&&e.columns.splice(n,1)}))})),p(n,d["e"].UPDATE_DATATABLE_FILTER,(function(e,t){e.filter=Object.assign({},e.filter,t)})),p(n,d["e"].CLEAR_DATATABLE_FILTER,(function(e){e.filter=Object.assign({},{search:"",status:e.filter.status})})),p(n,d["e"].UPDATE_DATATABLE_FILTER_STATUS,(function(e,t){e.filter.status=t})),p(n,d["e"].UPDATE_DATATABLE_OFFSET,(function(e,t){e.offset=t,Object(h["b"])(e.localStorageKey+"_page-offset",e.offset)})),p(n,d["e"].UPDATE_DATATABLE_PAGE,(function(e,t){e.page=t})),p(n,d["e"].UPDATE_DATATABLE_MAXPAGE,(function(e,t){e.page>t&&(e.page=t),e.maxPage=t})),p(n,d["e"].UPDATE_DATATABLE_VISIBLITY,(function(e,t){Object(h["b"])(e.localStorageKey+"_columns-visible",JSON.stringify(t)),e.columns.forEach((function(e){for(var i=0;i<t.length;i++){if(t[i]===e.name){e.visible=!0;break}e.visible=!1}}))})),p(n,d["e"].UPDATE_DATATABLE_SORT,(function(e,t){var i="asc";e.sortKey===t.name?e.sortDir=e.sortDir===i?"desc":i:e.sortDir=i,e.sortKey=t.name})),p(n,d["e"].UPDATE_DATATABLE_NAV,(function(e,t){t.forEach((function(t){e.filtersNav.forEach((function(e){e.name===t.name&&(e.number=t.number)}))}))})),p(n,d["e"].PUBLISH_DATATABLE,(function(e,t){var i=t.id,n=t.value;function a(t){t>=0&&(e.data[t].published="toggle"===n?!e.data[t].published:n)}function r(t){return e.data.findIndex((function(e,i){return e.id===t}))}if(Array.isArray(i))i.forEach((function(e){var t=r(e);a(t)})),e.bulk=[];else{var s=r(i);a(s)}})),p(n,d["e"].FEATURE_DATATABLE,(function(e,t){var i=t.id,n=t.value;function a(t){t>=0&&(e.data[t].featured="toggle"===n?!e.data[t].featured:n)}function r(t){return e.data.findIndex((function(e,i){return e.id===t}))}if(Array.isArray(i))i.forEach((function(e){var t=r(e);a(t)})),e.bulk=[];else{var s=r(i);a(s)}})),p(n,d["e"].UPDATE_DATATABLE_LOADING,(function(e,t){e.loading=!e.loading})),p(n,d["e"].UPDATE_DATATABLE_NESTED,(function(e,t){m(e.data,t.parentId,(function(e){e.children=t.val}))})),p(n,d["e"].UPDATE_DATATABLE_TRACKER,(function(e,t){e.updateTracker=t?e.updateTracker+1:0})),n),_=(a={},p(a,f["a"].GET_DATATABLE,(function(e){var t=e.commit,i=e.state,n=e.getters;if(!i.loading){t(d["e"].UPDATE_DATATABLE_LOADING,!0);var a={sortKey:i.sortKey,sortDir:i.sortDir,page:i.page,offset:i.offset,columns:n.visibleColumnsNames,filter:i.filter};u.get(a,(function(e){t(d["e"].UPDATE_DATATABLE_DATA,e.data),t(d["e"].UPDATE_DATATABLE_MAXPAGE,e.maxPage),t(d["e"].UPDATE_DATATABLE_NAV,e.nav),t(d["e"].UPDATE_DATATABLE_LOADING,!1)}))}})),p(a,f["a"].SET_DATATABLE_NESTED,(function(e){var t=e.commit,i=e.state,n=(e.dispatch,b(i.data));u.reorder(n,(function(e){t(d["j"].SET_NOTIF,{message:e.data.message,variant:e.data.variant})}))})),p(a,f["a"].SET_DATATABLE,(function(e){var t=e.commit,i=e.state,n=(e.dispatch,i.data.map((function(e){return e.id})));u.reorder(n,(function(e){t(d["j"].SET_NOTIF,{message:e.data.message,variant:e.data.variant})}))})),p(a,f["a"].TOGGLE_PUBLISH,(function(e,t){var i=e.commit,n=(e.state,e.dispatch);u.togglePublished(t,(function(e){i(d["j"].SET_NOTIF,{message:e.data.message,variant:e.data.variant}),n(f["a"].GET_DATATABLE)}),(function(e){i(d["j"].SET_NOTIF,{message:e.data.error.message,variant:"error"})}))})),p(a,f["a"].DELETE_ROW,(function(e,t){var i=e.commit,n=(e.state,e.dispatch);u.delete(t,(function(e){i(d["j"].SET_NOTIF,{message:e.data.message,variant:e.data.variant}),n(f["a"].GET_DATATABLE)}))})),p(a,f["a"].DUPLICATE_ROW,(function(e,t){var i=e.commit;e.state,e.dispatch;u.duplicate(t,(function(e){i(d["j"].SET_NOTIF,{message:e.data.message,variant:e.data.variant}),e.data.hasOwnProperty("redirect")&&window.location.replace(e.data.redirect)}))})),p(a,f["a"].RESTORE_ROW,(function(e,t){var i=e.commit,n=(e.state,e.dispatch);u.restore(t,(function(e){i(d["j"].SET_NOTIF,{message:e.data.message,variant:e.data.variant}),n(f["a"].GET_DATATABLE)}))})),p(a,f["a"].DESTROY_ROW,(function(e,t){var i=e.commit,n=(e.state,e.dispatch);u.destroy(t,(function(e){i(d["j"].SET_NOTIF,{message:e.data.message,variant:e.data.variant}),n(f["a"].GET_DATATABLE)}))})),p(a,f["a"].BULK_PUBLISH,(function(e,t){var i=e.commit,n=e.state,a=e.dispatch;u.bulkPublish({ids:n.bulk.join(),toPublish:t.toPublish},(function(e){i(d["j"].SET_NOTIF,{message:e.data.message,variant:e.data.variant}),a(f["a"].GET_DATATABLE)}))})),p(a,f["a"].TOGGLE_FEATURE,(function(e,t){var i=e.commit;e.state;u.toggleFeatured(t,(function(e){i(d["e"].FEATURE_DATATABLE,{id:t.id,value:"toggle"}),i(d["j"].SET_NOTIF,{message:e.data.message,variant:e.data.variant})}))})),p(a,f["a"].BULK_FEATURE,(function(e,t){var i=e.commit,n=e.state;u.bulkFeature({ids:n.bulk.join(),toFeature:t.toFeature},(function(e){i(d["e"].FEATURE_DATATABLE,{id:n.bulk,value:!0}),i(d["j"].SET_NOTIF,{message:e.data.message,variant:e.data.variant})}))})),p(a,f["a"].BULK_DELETE,(function(e){var t=e.commit,i=e.state,n=e.dispatch;u.bulkDelete(i.bulk.join(),(function(e){t(d["j"].SET_NOTIF,{message:e.data.message,variant:e.data.variant}),n(f["a"].GET_DATATABLE)}))})),p(a,f["a"].BULK_RESTORE,(function(e){var t=e.commit,i=e.state,n=e.dispatch;u.bulkRestore(i.bulk.join(),(function(e){t(d["j"].SET_NOTIF,{message:e.data.message,variant:e.data.variant}),n(f["a"].GET_DATATABLE)}))})),p(a,f["a"].BULK_DESTROY,(function(e){var t=e.commit,i=e.state,n=e.dispatch;u.bulkDestroy(i.bulk.join(),(function(e){t(d["j"].SET_NOTIF,{message:e.data.message,variant:e.data.variant}),n(f["a"].GET_DATATABLE)}))})),a);t["a"]={state:g,getters:v,actions:_,mutations:y}},b171:function(e,t,i){"use strict";i("78ad");var n=i("a026"),a=i("bfa9"),r=function(){var e=!1,t=!1,i=0,n=document.documentElement,r=document.querySelector("[data-header-mobile]"),s=document.querySelector(".ham"),o=document.querySelectorAll("[data-ham-btn]"),l=document.querySelectorAll("[data-closenav-btn]"),c=document.querySelector(".a17"),u="s--nav";function d(){return!e&&(!t&&(e=!0,i=window.pageYOffset,n.classList.add(u),c.style.top="-"+i+"px",s.style.top="-"+i+"px",r.style.top="-"+i+"px",document.addEventListener("keydown",h,!1),t=!0,void(e=!1)))}function f(){return!e&&(!!t&&(e=!0,n.classList.remove(u),c.style.top="",s.style.top="",r.style.top="",document.removeEventListener("keydown",h,!1),window.scrollTo(0,i),i=0,t=!1,void(e=!1)))}function h(e){27===e.keyCode&&t&&f()}o.length&&Object(a["a"])(o,(function(e){e.addEventListener("click",(function(i){t?f():d(),e.blur()}))})),l.length&&Object(a["a"])(l,(function(e){e.addEventListener("click",(function(i){t&&f(),e.blur()}))}))},s=r,o=i("b047"),l=i.n(o),c=function(){var e=0,t=!1,i=167,n=document.documentElement,a="s--env";function r(){e=window.pageYOffset,t||window.requestAnimationFrame((function(){s()})),t=!0}function s(){e>i?n.classList.add(a):n.classList.remove(a),t=!1}window.addEventListener("scroll",(function(){r()})),window.addEventListener("resize",l()((function(){r()}))),r()},u=c,d=function(){var e=document.querySelector("[data-logout-form]");e&&document.body.addEventListener("click",(function(t){t.target.hasAttribute("data-logout-btn")&&(t.preventDefault(),e.submit())}))},f=d,h=i("878a"),p=i("42454"),m=i.n(p),b=function(){s(),u(),f()};window["TWILL"]||(window["TWILL"]={}),window["TWILL"].vheader=new n["a"]({el:"#headerUser"}),window["TWILL"].vsearch=h["a"],console.log("\e[32m","Made with ".concat("TWILL"," - v").concat(window["TWILL"].version)),m()(window["TWILL"].STORE,window.STORE);t["a"]=b},b4c0:function(e,t,i){},b720:function(e,t,i){},b773:function(e,t,i){"use strict";i("8f79")},b919:function(e,t,i){"use strict";i("f273")},ba21:function(e,t,i){"use strict";i("e6ea")},ba26:function(e,t,i){},ba2c:function(e,t,i){"use strict";i("34a6")},bb7b:function(e,t,i){},bfa9:function(e,t,i){"use strict";t["a"]=function(e,t,i){for(var n=0;n<e.length;n++)t.call(i,e[n],n)}},c391:function(e,t,i){"use strict";i("d545")},c397:function(e,t,i){"use strict";i("892e")},c3fe:function(e,t,i){"use strict";i("05a8")},c5ec:function(e,t,i){"use strict";var n,a=i("0429");function r(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var s={all:window["TWILL"].STORE.languages.all||[],initialAll:window["TWILL"].STORE.languages.all||[],active:window["TWILL"].STORE.languages.active||window["TWILL"].STORE.languages.all[0]||{}},o={publishedLanguages:function(e){return e.all.filter((function(e){return e.published}))}},l=(n={},r(n,a["g"].SWITCH_LANG,(function(e,t){var i=t.oldValue;function n(e){return e.value===i.value}var a=e.all.findIndex(n),r=a<e.all.length-1?a+1:0;e.active=e.all[r]})),r(n,a["g"].UPDATE_LANG,(function(e,t){function i(e){return e.value===t}var n=e.all.findIndex(i);e.active=e.all[n]})),r(n,a["g"].PUBLISH_LANG,(function(e,t){e.all.forEach((function(e){e.published=!!t.includes(e.value)}))})),r(n,a["g"].PUBLISH_SINGLE_LANG,(function(e,t){function i(e){return e.value===t}var n=e.all.findIndex(i);e.all[n].published=!e.all[n].published})),r(n,a["g"].REPLACE_LANGUAGES,(function(e,t){e.all=t})),r(n,a["g"].RESET_LANGUAGES,(function(e){e.all=e.initialAll})),n);t["a"]={state:s,getters:o,mutations:l}},c8c6:function(e,t,i){"use strict";i("8e95")},c917:function(e,t,i){},ce72:function(e,t,i){"use strict";var n,a,r=i("a34a"),s=i.n(r),o=i("bc3a"),l=i.n(o),c=i("727d"),u="FORM",d={get:function(e,t,i){l.a.get(e).then((function(e){t&&"function"===typeof t&&t(e)}),(function(e){var t={message:"Get request error.",value:e};Object(c["a"])(u,t),i&&"function"===typeof i&&i(e)}))},post:function(e,t,i,n){l.a.post(e,t).then((function(e){i&&"function"===typeof i&&i(e)}),(function(e){var t={message:"Post request error.",value:e};Object(c["a"])(u,t),n&&"function"===typeof n&&n(e)}))},put:function(e,t,i,n){l.a.put(e,t).then((function(e){i&&"function"===typeof i&&i(e)}),(function(e){var t={message:"Save request error.",value:e};Object(c["a"])(u,t),n&&"function"===typeof n&&n(e)}))}},f=i("9170"),h=i("0429"),p=i("f1af"),m=i("0644"),b=i.n(m);function g(e,t,i,n,a,r,s){try{var o=e[r](s),l=o.value}catch(c){return void i(c)}o.done?t(l):Promise.resolve(l).then(n,a)}function v(e){return function(){var t=this,i=arguments;return new Promise((function(n,a){var r=e.apply(t,i);function s(e){g(r,n,a,s,o,"next",e)}function o(e){g(r,n,a,s,o,"throw",e)}s(void 0)}))}}function y(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _(e){return T(e)||E(e)||O(e)||w()}function w(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(e,t){if(e){if("string"===typeof e)return S(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?S(e,t):void 0}}function E(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function T(e){if(Array.isArray(e))return S(e)}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var A=function(e,t){return e.findIndex((function(e){return e.name===t.name}))},D={loading:!1,type:"save",baseUrl:window["TWILL"].STORE.form.baseUrl||"",fields:window["TWILL"].STORE.form.fields||[],modalFields:[],saveUrl:window["TWILL"].STORE.form.saveUrl||"",previewUrl:window["TWILL"].STORE.form.previewUrl||"",restoreUrl:window["TWILL"].STORE.form.restoreUrl||"",blockPreviewUrl:window["TWILL"].STORE.form.blockPreviewUrl||"",errors:{},isCustom:window["TWILL"].STORE.form.isCustom||!1,reloadOnSuccess:window["TWILL"].STORE.form.reloadOnSuccess||!1,isSubmitPrevented:!1},C={fieldsByName:function(e){return function(t){return e.fields.filter((function(e){return e.name===t}))}},fieldValueByName:function(e,t){return function(e){return t.fieldsByName(e).length?t.fieldsByName(e)[0].value:""}},modalFieldsByName:function(e){return function(t){return e.modalFields.filter((function(e){return e.name===t}))}},modalFieldValueByName:function(e,t){return function(e){return t.modalFieldsByName(e).length?t.modalFieldsByName(e)[0].value:""}},fieldsByBlockId:function(e){return function(t){return e.fields.filter((function(e){return e.name.startsWith("blocks[".concat(t,"]"))}))}}},P=(n={},y(n,h["f"].UPDATE_FORM_PERMALINK,(function(e,t){t&&""!==t&&(e.permalink=t)})),y(n,h["f"].PREVENT_SUBMIT,(function(e){e.isSubmitPrevented=!0})),y(n,h["f"].ALLOW_SUBMIT,(function(e){e.isSubmitPrevented=!1})),y(n,h["f"].EMPTY_FORM_FIELDS,(function(e,t){e.fields=[]})),y(n,h["f"].ADD_FORM_FIELDS,(function(e,t){e.fields=[].concat(_(e.fields),_(t))})),y(n,h["f"].REPLACE_FORM_FIELDS,(function(e,t){e.fields=t})),y(n,h["f"].UPDATE_FORM_FIELD,(function(e,t){var i=t.locale?{}:null,n=A(e.fields,t);-1!==n&&(t.locale&&(i=e.fields[n].value||{}),e.fields.splice(n,1)),t.locale?i[t.locale]=t.value:i=t.value,e.fields.push({name:t.name,value:i})})),y(n,h["f"].REMOVE_FORM_FIELD,(function(e,t){e.fields.forEach((function(i,n){i.name===t&&e.fields.splice(n,1)}))})),y(n,h["f"].DUPLICATE_BLOCK_FORM_FIELDS,(function(e,t){var i=t.fields,n=t.oldId,a=t.newId,r=[];i.forEach((function(e){r.push({name:e.name.replace(n,a),value:b()(e.value)})})),e.fields=[].concat(_(e.fields),r)})),y(n,h["f"].EMPTY_MODAL_FIELDS,(function(e,t){e.modalFields=[]})),y(n,h["f"].REPLACE_MODAL_FIELDS,(function(e,t){e.modalFields=t})),y(n,h["f"].UPDATE_MODAL_FIELD,(function(e,t){var i=t.locale?{}:null,n=A(e.modalFields,t);-1!==n&&(t.locale&&(i=e.modalFields[n].value),e.modalFields.splice(n,1)),t.locale?i[t.locale]=t.value:i=t.value,e.modalFields.push({name:t.name,value:i})})),y(n,h["f"].REMOVE_MODAL_FIELD,(function(e,t){e.modalFields.forEach((function(i,n){i.name===t&&e.modalFields.splice(n,1)}))})),y(n,h["f"].UPDATE_FORM_LOADING,(function(e,t){e.loading=t||!e.loading})),y(n,h["f"].SET_FORM_ERRORS,(function(e,t){e.errors=t})),y(n,h["f"].CLEAR_FORM_ERRORS,(function(e){e.errors=[]})),y(n,h["f"].UPDATE_FORM_SAVE_TYPE,(function(e,t){e.type=t})),n),x=(a={},y(a,p["a"].HANDLE_ERRORS,(function(e,t){var i=e.commit,n=(e.state,e.getters,e.rootState),a=n.repeaters.repeaters;Object.keys(t).forEach((function(e){var i=e.split(".");if(i.length>=4){var n=i[0],r=i[1],s=i[2],o=i[3];if("repeaters"===n){var l=a[r][s].id,c="blocks[".concat(l,"][").concat(o,"]");t[c]=t[e]}}})),i(h["f"].SET_FORM_ERRORS,t)})),y(a,p["a"].REPLACE_FORM,(function(e,t){var i=e.commit,n=(e.state,e.getters,e.rootState,e.dispatch);return new Promise((function(e,a){i(h["f"].CLEAR_FORM_ERRORS),i(h["j"].CLEAR_NOTIF,"error"),d.get(t,(function(t){i(h["f"].UPDATE_FORM_LOADING,!1);var n=t.data;n.hasOwnProperty("languages")&&(i(h["g"].REPLACE_LANGUAGES,n.languages),delete n.languages),n.hasOwnProperty("revisions")&&(i(h["n"].UPDATE_REV_ALL,n.revisions),delete n.revisions),i(h["f"].REPLACE_FORM_FIELDS,n.fields),e()}),(function(e){i(h["f"].UPDATE_FORM_LOADING,!1),n(p["a"].HANDLE_ERRORS,e.response.data),a(e)}))}))})),y(a,p["a"].UPDATE_FORM_IN_LISTING,(function(e,t){var i=e.commit,n=(e.state,e.getters,e.rootState);return new Promise((function(e,a){i(h["f"].CLEAR_FORM_ERRORS),i(h["j"].CLEAR_NOTIF,"error");var r=Object.assign(Object(f["c"])(n),{languages:n.language.all});d[t.method](t.endpoint,r,(function(n){i(h["f"].UPDATE_FORM_LOADING,!1),n.data.hasOwnProperty("redirect")&&t.redirect&&window.location.replace(n.data.redirect),i(h["j"].SET_NOTIF,{message:n.data.message,variant:n.data.variant}),e()}),(function(e){i(h["f"].UPDATE_FORM_LOADING,!1),i(h["f"].SET_FORM_ERRORS,e.response.data),i(h["j"].SET_NOTIF,{message:"Your submission could not be validated, please fix and retry",variant:"error"}),a(e)}))}))})),y(a,p["a"].CREATE_FORM_IN_MODAL,(function(e,t){var i=e.commit,n=(e.state,e.getters,e.rootState);return new Promise((function(e,a){i(h["f"].CLEAR_FORM_ERRORS),i(h["j"].CLEAR_NOTIF,"error");var r=Object.assign(Object(f["d"])(n),{languages:n.language.all});d[t.method](t.endpoint,r,(function(n){i(h["f"].UPDATE_FORM_LOADING,!1),i(h["a"].UPDATE_OPTIONS,{name:t.name,options:n.data}),e()}),(function(e){i(h["f"].UPDATE_FORM_LOADING,!1),i(h["f"].SET_FORM_ERRORS,e.response.data),i(h["j"].SET_NOTIF,{message:"Your submission could not be validated, please fix and retry",variant:"error"}),a(e)}))}))})),y(a,p["a"].SAVE_FORM,(function(e,t){var i=e.commit,n=e.state,a=(e.getters,e.rootState),r=e.dispatch;i(h["f"].CLEAR_FORM_ERRORS),i(h["j"].CLEAR_NOTIF,"error"),i(h["f"].UPDATE_FORM_SAVE_TYPE,t);var s=Object(f["b"])(a),o=a.publication.createWithoutModal?"post":"put";d[o](n.saveUrl,s,(function(e){i(h["f"].UPDATE_FORM_LOADING,!1),e.data.hasOwnProperty("redirect")&&window.location.replace(e.data.redirect),n.reloadOnSuccess&&window.location.reload(),i(h["j"].SET_NOTIF,{message:e.data.message,variant:e.data.variant}),i(h["m"].UPDATE_PUBLISH_SUBMIT),e.data.hasOwnProperty("revisions")&&i(h["n"].UPDATE_REV_ALL,e.data.revisions)}),(function(e){i(h["f"].UPDATE_FORM_LOADING,!1),e.response.data.hasOwnProperty("exception")?i(h["j"].SET_NOTIF,{message:"Your submission could not be processed.",variant:"error"}):(r(p["a"].HANDLE_ERRORS,e.response.data),i(h["j"].SET_NOTIF,{message:"Your submission could not be validated, please fix and retry",variant:"error"}))}))})),y(a,p["a"].DUPLICATE_BLOCK,(function(e,t){return v(s.a.mark((function i(){var n,a,r,o,l;return s.a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:n=e.commit,a=e.getters,r=t.block,o=t.id,l=a.fieldsByBlockId(r.id),n(h["f"].DUPLICATE_BLOCK_FORM_FIELDS,{fields:l,oldId:r.id,newId:o});case 4:case"end":return i.stop()}}),i)})))()})),a);t["a"]={state:D,getters:C,mutations:P,actions:x}},cf05:function(e,t,i){"use strict";i("aeaa")},cf06:function(e,t,i){},cf98:function(e,t,i){"use strict";i("f369")},cfc1:function(e,t,i){"use strict";i("6f52")},d066:function(e,t,i){"use strict";i("90cf")},d525:function(e,t,i){},d545:function(e,t,i){},d557:function(e,t,i){},d675:function(e,t,i){"use strict";i.d(t,"d",(function(){return n})),i.d(t,"b",(function(){return a})),i.d(t,"a",(function(){return r})),i.d(t,"c",(function(){return s}));var n="saveSelectedItems",a="destroyAllItems",r="destroySelectedItem",s="reorderSelectedItems",o="updateBrowserMax",l="updateBrowserTitle",c="updateBrowserNote",u="updateBrowserConnector",d="destroyBrowserConnector",f="updateBrowserEndpoint",h="updateBrowserEndpoints",p="destroyBrowserEndpoint",m="destroyBrowserEndpoints",b="addBrowsers";t["e"]={SAVE_ITEMS:n,DESTROY_ITEMS:a,DESTROY_ITEM:r,REORDER_ITEMS:s,UPDATE_BROWSER_MAX:o,UPDATE_BROWSER_TITLE:l,UPDATE_BROWSER_NOTE:c,UPDATE_BROWSER_CONNECTOR:u,DESTROY_BROWSER_CONNECTOR:d,UPDATE_BROWSER_ENDPOINT:f,DESTROY_BROWSER_ENDPOINT:p,UPDATE_BROWSER_ENDPOINTS:h,DESTROY_BROWSER_ENDPOINTS:m,ADD_BROWSERS:b}},d6a9:function(e,t,i){},da1e:function(e,t,i){},da6f:function(e,t,i){"use strict";t["a"]={props:{autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},name:{default:""},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},autocomplete:{type:String,default:"on"}}}},dcef:function(e,t,i){"use strict";i("3daa")},dd45:function(e,t,i){"use strict";i("dd97")},dd97:function(e,t,i){},df63:function(e,t,i){"use strict";var n=i("2f62");function a(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function r(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?a(Object(i),!0).forEach((function(t){s(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function s(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}t["a"]={props:{items:{type:Array,default:function(){return[]}},selectedItems:{type:Array,default:function(){return[]}},usedItems:{type:Array,default:function(){return[]}}},computed:r(r({},Object(n["c"])({itemsLoading:function(e){return e.mediaLibrary.loading}})),{},{replacingMediaIds:function(){return this.itemsLoading.reduce((function(e,t){return t.isReplacement&&(e[t.replacementId]=t.id),e}),{})}}),methods:{isSelected:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["id"];return Boolean(this.selectedItems.find((function(i){return t.every((function(t){return i[t]===e[t]}))})))},isUsed:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["id"];return Boolean(this.usedItems.find((function(i){return t.every((function(t){return i[t]===e[t]}))})))},toggleSelection:function(e){this.$emit("change",e)},shiftToggleSelection:function(e){this.$emit("shiftChange",e,!0)}}}},e45c:function(e,t,i){"use strict";i("8268")},e5c1:function(e,t,i){"use strict";i("a852")},e6ea:function(e,t,i){},e725:function(e,t,i){},ea72:function(e,t,i){},ed28:function(e,t,i){"use strict";var n=i("2f62");function a(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function r(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?a(Object(i),!0).forEach((function(t){s(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function s(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}t["a"]={props:{name:{type:String,default:""},addNew:{type:String,default:""},options:{type:Array,default:function(){return[]}}},computed:r({fullOptions:function(){var e=this.optionsByName(this.name),t=this.options;return Array.isArray(e)&&e.forEach((function(e){var i=t.findIndex((function(t){return t.value===e.value}));-1===i&&t.push(e)})),e.length?t:this.options}},Object(n["b"])(["optionsByName"]))}},f03e:function(e,t,i){"use strict";function n(e){var t=e.length;return e.reduce((function(e,i,n){return e+(n-1===t?", ":" and ")+i}))}t["a"]={props:{label:{type:String,default:""},labelFor:{type:String,default:""},size:{type:String,default:"large"},fixedErrorKey:{type:String},note:{type:String,default:""}},computed:{errorKey:function(){return this.fixedErrorKey?this.hasLocale?this.fixedErrorKey.replace("[",".").replace("]",""):this.fixedErrorKey:this.hasLocale?this.name.replace("[",".").replace("]",""):this.name},errorLocales:function(){if(!this.hasLocale)return[];var e=this.errorKey.substr(0,this.errorKey.indexOf(".")),t=[],i=this.$store.state.language.all.map((function(e){return e.value}));return Object.keys(this.$store.state.form.errors).forEach((function(n){if(n.substr(0,n.indexOf("."))===e){var a=n.substr(n.indexOf(".")+1,n.length);i.includes(a)&&t.push(a)}}),[]),t},otherLocalesError:function(){var e=this;return this.errorLocales.filter((function(t){return t!==e.currentLocale.value})).length},errorMessageLocales:function(){var e=this;return n(this.errorLocales.map((function(t){return e.languages.find((function(e){return e.value===t})).label})))+" language"+(this.errorLocales.length>1?"s":"")+" missing details."},errorMessage:function(){return this.error?this.$store.state.form.errors[this.errorKey][0]:""},error:function(){return!!this.$store.state.form&&Object.keys(this.$store.state.form.errors).includes(this.errorKey)}}}},f0e3:function(e,t,i){},f0f8:function(e,t,i){"use strict";t["a"]={props:{name:{type:String,required:!0},isOpen:{type:Boolean,default:!1}},data:function(){return{opened:this.isOpen}},methods:{open:function(){this.opened=!0},fieldName:function(e){return this.name+"["+e+"]"},repeaterName:function(e){return this.name.replace("[","-").replace("]","")+"_"+e}}}},f1af:function(e,t,i){"use strict";var n="moveBlockToEditor",a="duplicateBlock",r="getBucketsData",s="saveBuckets",o="getDatatableDatas",l="setDatatableNestedDatas",c="setDatatableDatas",u="togglePublishedData",d="deleteData",f="duplicateData",h="restoreData",p="destroyData",m="toggleFeaturedData",b="bulkPublishData",g="bulkFeatureData",v="bulkExportData",y="bulkDeleteData",_="bulkRestoreData",w="bulkDestroyData",O="replaceFormData",E="saveFormData",T="updateFormInListing",S="createFormInModal",A="getAllPreviews",D="getPreview",C="getRevisionContent",P="getCurrentContent",x="handleErrors";t["a"]={HANDLE_ERRORS:x,GET_BUCKETS:r,SAVE_BUCKETS:s,GET_DATATABLE:o,SET_DATATABLE_NESTED:l,SET_DATATABLE:c,TOGGLE_PUBLISH:u,DELETE_ROW:d,DUPLICATE_ROW:f,RESTORE_ROW:h,DESTROY_ROW:p,TOGGLE_FEATURE:m,BULK_PUBLISH:b,BULK_FEATURE:g,BULK_EXPORT:v,BULK_DELETE:y,BULK_RESTORE:_,BULK_DESTROY:w,REPLACE_FORM:O,SAVE_FORM:E,UPDATE_FORM_IN_LISTING:T,CREATE_FORM_IN_MODAL:S,GET_ALL_PREVIEWS:A,GET_PREVIEW:D,GET_REVISION:C,GET_CURRENT:P,MOVE_BLOCK_TO_EDITOR:n,DUPLICATE_BLOCK:a}},f273:function(e,t,i){},f369:function(e,t,i){},f389:function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"browser"},[i("div",{staticClass:"browser__frame"},[i("div",{ref:"form",staticClass:"browser__header"},[e.multiSources?i("div",{staticClass:"browser__sources"},[i("a17-vselect",{staticClass:"browser__sources-select",attrs:{name:"sources",selected:e.currentEndpoint,options:e.endpoints,required:!0},on:{change:e.changeBrowserSource}})],1):e._e(),i("div",{staticClass:"browser__search"},[i("a17-filter",{on:{submit:e.submitFilter}},[e.browserNote?i("div",{attrs:{slot:"additional-actions"},slot:"additional-actions"},[i("span",{staticClass:"browser__note f--small"},[e._v(" "+e._s(e.browserNote)+" ")])]):e._e()])],1)]),i("div",{staticClass:"browser__inner"},[i("div",{ref:"list",staticClass:"browser__list"},[i("a17-itemlist",{attrs:{items:e.fullItems,keysToCheck:["id","edit"],selectedItems:e.selectedItems},on:{change:e.updateSelectedItems}})],1)]),i("div",{staticClass:"browser__footer"},[i("a17-button",{attrs:{type:"button",variant:"action"},on:{click:e.saveAndClose}},[e._v(e._s(e.browserTitle))]),i("span",{staticClass:"browser__size-infos"},[e._v(e._s(e.selectedItems.length)+" / "+e._s(e.max))])],1)])])},a=[],r=i("2f62"),s=i("0429"),o=i("5d16"),l=i("1800"),c=i("4fee");function u(e){return p(e)||h(e)||f(e)||d()}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e,t){if(e){if("string"===typeof e)return m(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?m(e,t):void 0}}function h(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function p(e){if(Array.isArray(e))return m(e)}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function b(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function g(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?b(Object(i),!0).forEach((function(t){v(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):b(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function v(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var y={name:"A17Browser",components:{"a17-filter":o["a"],"a17-itemlist":l["a"]},props:{btnLabel:{type:String,default:"Insert"},btnMultiLabel:{type:String,default:"Insert files"},initialPage:{type:Number,default:1}},data:function(){return{maxPage:20,fullItems:[],listHeight:0,page:this.initialPage}},computed:g({currentEndpoint:function(){var e=this;return this.endpoints.find((function(t){return t.value===e.endpoint}))},multiSources:function(){return this.endpoints.length>0},selectedItems:{get:function(){return this.selected[this.connector]||[]},set:function(e){this.$store.commit(s["c"].SAVE_ITEMS,e)}}},Object(r["c"])({connector:function(e){return e.browser.connector},max:function(e){return e.browser.max},endpoint:function(e){return e.browser.endpoint},endpointName:function(e){return e.browser.endpointName},endpoints:function(e){return e.browser.endpoints},browserTitle:function(e){return e.browser.title},browserNote:function(e){return e.browser.note},selected:function(e){return e.browser.selected}})),methods:{updateSelectedItems:function(e){var t=this.multiSources?["id","endpointType"]:["id"],i=this.fullItems.some((function(i){return t.every((function(t){return i[t]===e[t]}))}));if(i){var n=this.selectedItems.some((function(i){return t.every((function(t){return i[t]===e[t]}))}));if(n){var a=this.selectedItems.findIndex((function(i){return t.every((function(t){return i[t]===e[t]}))}));if(a<0)return;var r=u(this.selectedItems);r.splice(a,1),this.selectedItems=r}else{if(1===this.max&&this.clearSelectedItems(),this.selectedItems.length>=this.max&&this.max>0)return;this.selectedItems=[].concat(u(this.selectedItems),[e])}}},getFormData:function(e){var t=Object(c["a"])(e);return t?t.page=this.page:t={page:this.page},t},clearSelectedItems:function(){this.selectedItems=[]},clearFullItems:function(){this.fullItems.splice(0)},reloadList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t&&(this.page=1);var i=this.$refs.form,n=this.$refs.list,a=this.getFormData(i);this.$http.get(this.endpoint,{params:a}).then((function(i){var a;t&&e.clearFullItems(),(a=e.fullItems).push.apply(a,u(i.data.data)),e.$nextTick((function(){e.listHeight!==n.scrollHeight&&(e.listHeight=n.scrollHeight,n.addEventListener("scroll",e.scrollToPaginate))}))}),(function(e){}))},submitFilter:function(){this.page=1,this.clearFullItems(),this.reloadList()},scrollToPaginate:function(){var e=this.$refs.list;e.scrollTop+e.clientHeight>this.listHeight-10&&(e.removeEventListener("scroll",this.scrollToPaginate),this.maxPage>this.page&&(this.page=this.page+1,this.reloadList()))},saveAndClose:function(){this.$store.commit(s["c"].SAVE_ITEMS,this.selectedItems),this.$parent.close()},changeBrowserSource:function(e){this.$store.commit(s["c"].UPDATE_BROWSER_ENDPOINT,e),this.reloadList(!0)}},mounted:function(){this.reloadList()}},_=y,w=(i("dd45"),i("cf05"),i("2877")),O=Object(w["a"])(_,n,a,!1,null,"106aee41",null);t["a"]=O.exports},f39e:function(e,t,i){},f3a8:function(e,t,i){"use strict";i("12ae")},f451:function(e,t,i){"use strict";var n,a=i("a026"),r=i("0429");function s(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var o={options:{}},l={optionsByName:function(e){return function(t){return e.options[t]||[]}}},c=(n={},s(n,r["a"].EMPTY_OPTIONS,(function(e,t){e.options[t]&&a["a"].delete(e.options,t)})),s(n,r["a"].UPDATE_OPTIONS,(function(e,t){var i=t.name,n=t.options,r=[];e.options[i]&&(r=e.options[i],a["a"].delete(e.options,i)),Array.isArray(n)&&n.forEach((function(e){var t=r.findIndex((function(t){return t.value===e.value}));-1===t&&r.push(e)})),a["a"].set(e.options,i,r)})),n),u={};t["a"]={state:o,getters:l,mutations:c,actions:u}},f908:function(e,t,i){"use strict";i("91b4")},f930:function(e,t,i){"use strict";function n(){var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(t){return!1}}function a(e,t){var i="";n()?localStorage.setItem(e,t):document.cookie=e+"="+t+i+"; path=/"}function r(e){if(n())return localStorage.getItem(e);for(var t=e+"=",i=document.cookie.split(";"),a=0;a<i.length;a++){var r=i[a];while(" "===r.charAt(0))r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null}i.d(t,"b",(function(){return a})),i.d(t,"a",(function(){return r}))},f99e:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i("9788"),a=i("5589"),r=i("9aba"),s=i("d675"),o=[n["g"],n["f"],n["d"],n["a"],n["b"],n["c"],n["e"],n["h"],r["a"],a["e"],a["f"],a["d"],a["a"],a["b"],a["c"],s["d"],s["b"],s["a"],s["c"]]},fa4a:function(e,t,i){"use strict";i("442c")},fc07:function(e,t,i){}}]);
\ No newline at end of file
--- /dev/null
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"0010":function(e,t,n){"use strict";n.d(t,"a",(function(){return F})),n.d(t,"b",(function(){return T})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return O})),n.d(t,"f",(function(){return D})),n.d(t,"g",(function(){return E}));var r=n("2eae"),i=n("304a"),o=n("65e8");function a(e,t){return!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0)}function s(e,t,n){var a=e.selection,s=a.$cursor;if(!s||(n?!n.endOfTextblock("backward",e):s.parentOffset>0))return!1;var l=c(s);if(!l){var f=s.blockRange(),d=f&&Object(r["k"])(f);return null!=d&&(t&&t(e.tr.lift(f,d).scrollIntoView()),!0)}var h=l.nodeBefore;if(!h.type.spec.isolating&&x(e,l,t))return!0;if(0==s.parent.content.size&&(u(h,"end")||o["c"].isSelectable(h))){var p=Object(r["l"])(e.doc,s.before(),s.after(),i["j"].empty);if(p.slice.size<p.to-p.from){if(t){var m=e.tr.step(p);m.setSelection(u(h,"end")?o["f"].findFrom(m.doc.resolve(m.mapping.map(l.pos,-1)),-1):o["c"].create(m.doc,l.pos-h.nodeSize)),t(m.scrollIntoView())}return!0}}return!(!h.isAtom||l.depth!=s.depth-1)&&(t&&t(e.tr.delete(l.pos-h.nodeSize,l.pos).scrollIntoView()),!0)}function u(e,t,n){for(;e;e="start"==t?e.firstChild:e.lastChild){if(e.isTextblock)return!0;if(n&&1!=e.childCount)return!1}return!1}function l(e,t,n){var r=e.selection,i=r.$head,a=r.empty,s=i;if(!a)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):i.parentOffset>0)return!1;s=c(i)}var u=s&&s.nodeBefore;return!(!u||!o["c"].isSelectable(u))&&(t&&t(e.tr.setSelection(o["c"].create(e.doc,s.pos-u.nodeSize)).scrollIntoView()),!0)}function c(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function f(e,t,n){var a=e.selection,s=a.$cursor;if(!s||(n?!n.endOfTextblock("forward",e):s.parentOffset<s.parent.content.size))return!1;var l=h(s);if(!l)return!1;var c=l.nodeAfter;if(x(e,l,t))return!0;if(0==s.parent.content.size&&(u(c,"start")||o["c"].isSelectable(c))){var f=Object(r["l"])(e.doc,s.before(),s.after(),i["j"].empty);if(f.slice.size<f.to-f.from){if(t){var d=e.tr.step(f);d.setSelection(u(c,"start")?o["f"].findFrom(d.doc.resolve(d.mapping.map(l.pos)),1):o["c"].create(d.doc,d.mapping.map(l.pos))),t(d.scrollIntoView())}return!0}}return!(!c.isAtom||l.depth!=s.depth-1)&&(t&&t(e.tr.delete(l.pos,l.pos+c.nodeSize).scrollIntoView()),!0)}function d(e,t,n){var r=e.selection,i=r.$head,a=r.empty,s=i;if(!a)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):i.parentOffset<i.parent.content.size)return!1;s=h(i)}var u=s&&s.nodeAfter;return!(!u||!o["c"].isSelectable(u))&&(t&&t(e.tr.setSelection(o["c"].create(e.doc,s.pos)).scrollIntoView()),!0)}function h(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){var n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}function p(e,t){var n=e.selection,i=n.$from,o=n.$to,a=i.blockRange(o),s=a&&Object(r["k"])(a);return null!=s&&(t&&t(e.tr.lift(a,s).scrollIntoView()),!0)}function m(e,t){var n=e.selection,r=n.$head,i=n.$anchor;return!(!r.parent.type.spec.code||!r.sameParent(i))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)}function g(e){for(var t=0;t<e.edgeCount;t++){var n=e.edge(t),r=n.type;if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}function v(e,t){var n=e.selection,r=n.$head,i=n.$anchor;if(!r.parent.type.spec.code||!r.sameParent(i))return!1;var a=r.node(-1),s=r.indexAfter(-1),u=g(a.contentMatchAt(s));if(!a.canReplaceWith(s,s,u))return!1;if(t){var l=r.after(),c=e.tr.replaceWith(l,l,u.createAndFill());c.setSelection(o["f"].near(c.doc.resolve(l),1)),t(c.scrollIntoView())}return!0}function y(e,t){var n=e.selection,r=n.$from,i=n.$to;if(n instanceof o["a"]||r.parent.inlineContent||i.parent.inlineContent)return!1;var a=g(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){var s=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,u=e.tr.insert(s,a.createAndFill());u.setSelection(o["h"].create(u.doc,s+1)),t(u.scrollIntoView())}return!0}function b(e,t){var n=e.selection,i=n.$cursor;if(!i||i.parent.content.size)return!1;if(i.depth>1&&i.after()!=i.end(-1)){var o=i.before();if(Object(r["g"])(e.doc,o))return t&&t(e.tr.split(o).scrollIntoView()),!0}var a=i.blockRange(),s=a&&Object(r["k"])(a);return null!=s&&(t&&t(e.tr.lift(a,s).scrollIntoView()),!0)}function q(e,t){var n=e.selection,i=n.$from,a=n.$to;if(e.selection instanceof o["c"]&&e.selection.node.isBlock)return!(!i.parentOffset||!Object(r["g"])(e.doc,i.pos))&&(t&&t(e.tr.split(i.pos).scrollIntoView()),!0);if(!i.parent.isBlock)return!1;if(t){var s=a.parentOffset==a.parent.content.size,u=e.tr;(e.selection instanceof o["h"]||e.selection instanceof o["a"])&&u.deleteSelection();var l=0==i.depth?null:g(i.node(-1).contentMatchAt(i.indexAfter(-1))),c=s&&l?[{type:l}]:null,f=Object(r["g"])(u.doc,u.mapping.map(i.pos),1,c);if(c||f||!Object(r["g"])(u.doc,u.mapping.map(i.pos),1,l&&[{type:l}])||(c=[{type:l}],f=!0),f&&(u.split(u.mapping.map(i.pos),1,c),!s&&!i.parentOffset&&i.parent.type!=l)){var d=u.mapping.map(i.before()),h=u.doc.resolve(d);i.node(-1).canReplaceWith(h.index(),h.index()+1,l)&&u.setNodeMarkup(u.mapping.map(i.before()),l)}t(u.scrollIntoView())}return!0}function w(e,t){return t&&t(e.tr.setSelection(new o["a"](e.doc))),!0}function _(e,t,n){var i=t.nodeBefore,o=t.nodeAfter,a=t.index();return!!(i&&o&&i.type.compatibleContent(o.type))&&(!i.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(a,a+1)||!o.isTextblock&&!Object(r["f"])(e.doc,t.pos))&&(n&&n(e.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),!0))}function x(e,t,n){var a,s,l=t.nodeBefore,c=t.nodeAfter;if(l.type.spec.isolating||c.type.spec.isolating)return!1;if(_(e,t,n))return!0;var f=t.parent.canReplace(t.index(),t.index()+1);if(f&&(a=(s=l.contentMatchAt(l.childCount)).findWrapping(c.type))&&s.matchType(a[0]||c.type).validEnd){if(n){for(var d=t.pos+c.nodeSize,h=i["c"].empty,p=a.length-1;p>=0;p--)h=i["c"].from(a[p].create(null,h));h=i["c"].from(l.copy(h));var m=e.tr.step(new r["b"](t.pos-1,d,t.pos,d,new i["j"](h,1,0),a.length,!0)),g=d+2*a.length;Object(r["f"])(m.doc,g)&&m.join(g),n(m.scrollIntoView())}return!0}var v=o["f"].findFrom(t,1),y=v&&v.$from.blockRange(v.$to),b=y&&Object(r["k"])(y);if(null!=b&&b>=t.depth)return n&&n(e.tr.lift(y,b).scrollIntoView()),!0;if(f&&u(c,"start",!0)&&u(l,"end")){for(var q=l,w=[];;){if(w.push(q),q.isTextblock)break;q=q.lastChild}for(var x=c,S=1;!x.isTextblock;x=x.firstChild)S++;if(q.canReplace(q.childCount,q.childCount,x.content)){if(n){for(var k=i["c"].empty,C=w.length-1;C>=0;C--)k=i["c"].from(w[C].copy(k));var E=e.tr.step(new r["b"](t.pos-w.length,t.pos+c.nodeSize,t.pos+S,t.pos+c.nodeSize-S,new i["j"](k,w.length,0),0,!0));n(E.scrollIntoView())}return!0}}return!1}function S(e){return function(t,n){var r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;while(i.node(a).isInline){if(!a)return!1;a--}return!!i.node(a).isTextblock&&(n&&n(t.tr.setSelection(o["h"].create(t.doc,e<0?i.start(a):i.end(a)))),!0)}}var k=S(-1),C=S(1);function E(e,t){return function(n,i){var o=n.selection,a=o.$from,s=o.$to,u=a.blockRange(s),l=u&&Object(r["i"])(u,e,t);return!!l&&(i&&i(n.tr.wrap(u,l).scrollIntoView()),!0)}}function O(e,t){return function(n,r){var i=n.selection,o=i.from,a=i.to,s=!1;return n.doc.nodesBetween(o,a,(function(r,i){if(s)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)s=!0;else{var o=n.doc.resolve(i),a=o.index();s=o.parent.canReplaceWith(a,a+1,e)}})),!!s&&(r&&r(n.tr.setBlockType(o,a,e,t).scrollIntoView()),!0)}}function A(e,t,n){for(var r=function(r){var i=t[r],o=i.$from,a=i.$to,s=0==o.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(o.pos,a.pos,(function(e){if(s)return!1;s=e.inlineContent&&e.type.allowsMarkType(n)})),s)return{v:!0}},i=0;i<t.length;i++){var o=r(i);if(o)return o.v}return!1}function D(e,t){return function(n,r){var i=n.selection,o=i.empty,a=i.$cursor,s=i.ranges;if(o&&!a||!A(n.doc,s,e))return!1;if(r)if(a)e.isInSet(n.storedMarks||a.marks())?r(n.tr.removeStoredMark(e)):r(n.tr.addStoredMark(e.create(t)));else{for(var u=!1,l=n.tr,c=0;!u&&c<s.length;c++){var f=s[c],d=f.$from,h=f.$to;u=n.doc.rangeHasMark(d.pos,h.pos,e)}for(var p=0;p<s.length;p++){var m=s[p],g=m.$from,v=m.$to;if(u)l.removeMark(g.pos,v.pos,e);else{var y=g.pos,b=v.pos,q=g.nodeAfter,w=v.nodeBefore,_=q&&q.isText?/^\s*/.exec(q.text)[0].length:0,x=w&&w.isText?/\s*$/.exec(w.text)[0].length:0;y+_<b&&(y+=_,b-=x),l.addMark(y,b,e.create(t))}}r(l.scrollIntoView())}return!0}}function T(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];return function(t,n,r){for(var i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}var P=T(a,s,l),M=T(a,f,d),N={Enter:T(m,y,b,q),"Mod-Enter":v,Backspace:P,"Mod-Backspace":P,"Shift-Backspace":P,Delete:M,"Mod-Delete":M,"Mod-a":w},I={"Ctrl-h":N["Backspace"],"Alt-Backspace":N["Mod-Backspace"],"Ctrl-d":N["Delete"],"Ctrl-Alt-Backspace":N["Mod-Delete"],"Alt-Delete":N["Mod-Delete"],"Alt-d":N["Mod-Delete"],"Ctrl-a":k,"Ctrl-e":C};for(var R in N)I[R]=N[R];var j="undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&"darwin"==os.platform(),F=j?I:N},"00fd":function(e,t,n){var r=n("9e69"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;function u(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(u){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}e.exports=u},"0227":function(e,t,n){
+/* flatpickr v4.3.2, @license MIT */
+(function(e,n){n(t)})(0,(function(e){"use strict";var t="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={firstDayOfWeek:1,weekdays:{shorthand:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],longhand:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"]},months:{shorthand:["Janv","Févr","Mars","Avr","Mai","Juin","Juil","Août","Sept","Oct","Nov","Déc"],longhand:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"]},ordinal:function(e){return e>1?"ème":"er"},rangeSeparator:" au ",weekAbbreviation:"Sem",scrollTitle:"Défiler pour augmenter la valeur",toggleTitle:"Cliquer pour basculer"};t.l10ns.fr=n;var r=t.l10ns;e.French=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}))},"03a5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.qq=void 0;var r=n("9925"),i=u(r),o=n("94b2"),a=u(o),s=n("5ab1");function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(e){var n=e.options;return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{callbackNames:s.traditional,options:n,qq:a.default,type:"traditional"}))}return f(t,e),t}(i.default);t.default=d,t.qq=a.default},"03dd":function(e,t,n){var r=n("eac5"),i=n("57a5"),o=Object.prototype,a=o.hasOwnProperty;function s(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=s},"0644":function(e,t,n){var r=n("3818"),i=1,o=4;function a(e){return r(e,i|o)}e.exports=a},"073e":function(e,t,n){"use strict";var r=n("5dbe"),i=o(Error);function o(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&(t=r.apply(null,arguments)),new e(t)}}e.exports=i,i.eval=o(EvalError),i.range=o(RangeError),i.reference=o(ReferenceError),i.syntax=o(SyntaxError),i.type=o(TypeError),i.uri=o(URIError),i.create=o},"07ac":function(e,t,n){var r=n("1540"),i=n("9ce6");e.exports={distanceInWords:r(),format:i()}},"07c7":function(e,t){function n(){return!1}e.exports=n},"087d":function(e,t){function n(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}e.exports=n},"08cc":function(e,t,n){var r=n("1a8c");function i(e){return e===e&&!r(e)}e.exports=i},"0952":function(e,t,n){},"0978":function(e,t,n){var r=n("c8d5");function i(e){var t=r(e);return t.setHours(0,0,0,0),t}e.exports=i},"0a06":function(e,t,n){"use strict";var r=n("c532"),i=n("30b5"),o=n("f6b4"),a=n("5270"),s=n("4a7b"),u=n("848b"),l=u.validators;function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&u.assertOptions(t,{silentJSONParsing:l.transitional(l.boolean,"1.0.0"),forcedJSONParsing:l.transitional(l.boolean,"1.0.0"),clarifyTimeoutError:l.transitional(l.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var c=[a,void 0];Array.prototype.unshift.apply(c,n),c.concat(o),i=Promise.resolve(e);while(c.length)i=i.then(c.shift(),c.shift());return i}var f=e;while(n.length){var d=n.shift(),h=n.shift();try{f=d(f)}catch(p){h(p);break}}try{i=a(f)}catch(p){return Promise.reject(p)}while(o.length)i=i.then(o.shift(),o.shift());return i},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=c},"0b07":function(e,t,n){var r=n("34ac"),i=n("3698");function o(e,t){var n=i(e,t);return r(n)?n:void 0}e.exports=o},"0d24":function(e,t,n){(function(e){var r=n("2b3e"),i=n("07c7"),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o,u=s?r.Buffer:void 0,l=u?u.isBuffer:void 0,c=l||i;e.exports=c}).call(this,n("62e4")(e))},"0d3e":function(e,t,n){var r=n("c8d5");function i(e,t){var n=r(e),i=n.getTime(),o=r(t),a=o.getTime();return i<a?-1:i>a?1:0}e.exports=i},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0f0f":function(e,t,n){var r=n("8eeb"),i=n("9934");function o(e,t){return e&&r(t,i(t),e)}e.exports=o},"0f32":function(e,t,n){var r=n("b047"),i=n("1a8c"),o="Expected a function";function a(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(o);return i(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:t,trailing:s})}e.exports=a},"100e":function(e,t,n){var r=n("cd9d"),i=n("2286"),o=n("c1c9");function a(e,t){return o(i(e,t,r),e+"")}e.exports=a},1020:function(e,t){function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var r=e[t];"object"!=typeof r||Object.isFrozen(r)||n(r)})),e}var r=n,i=n;r.default=i;class o{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function a(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const u="</span>",l=e=>!!e.kind;class c{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=a(e)}openNode(e){if(!l(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){l(e)&&(this.buffer+=u)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class f{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){while(this.closeNode());}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"===typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!==typeof e&&e.children&&(e.children.every(e=>"string"===typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{f._collapse(e)}))}}class d extends f{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){const e=new c(this,this.options);return e.value()}finalize(){return!0}}function h(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function p(e){return e?"string"===typeof e?e:e.source:null}function m(...e){const t=e.map(e=>p(e)).join("");return t}function g(...e){const t="("+e.map(e=>p(e)).join("|")+")";return t}function v(e){return new RegExp(e.toString()+"|").exec("").length-1}function y(e,t){const n=e&&e.exec(t);return n&&0===n.index}const b=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function q(e,t="|"){let n=0;return e.map(e=>{n+=1;const t=n;let r=p(e),i="";while(r.length>0){const e=b.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?i+="\\"+String(Number(e[1])+t):(i+=e[0],"("===e[0]&&n++)}return i}).map(e=>`(${e})`).join(t)}const w=/\b\B/,_="[a-zA-Z]\\w*",x="[a-zA-Z_]\\w*",S="\\b\\d+(\\.\\d+)?",k="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",C="\\b(0b[01]+)",E="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",O=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=m(t,/.*\b/,e.binary,/\b.*/)),s({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},A={begin:"\\\\[\\s\\S]",relevance:0},D={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[A]},T={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[A]},P={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},M=function(e,t,n={}){const r=s({className:"comment",begin:e,end:t,contains:[]},n);return r.contains.push(P),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),r},N=M("//","$"),I=M("/\\*","\\*/"),R=M("#","$"),j={className:"number",begin:S,relevance:0},F={className:"number",begin:k,relevance:0},L={className:"number",begin:C,relevance:0},B={className:"number",begin:S+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},U={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[A,{begin:/\[/,end:/\]/,relevance:0,contains:[A]}]}]},z={className:"title",begin:_,relevance:0},H={className:"title",begin:x,relevance:0},$={begin:"\\.\\s*"+x,relevance:0},V=function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var W=Object.freeze({__proto__:null,MATCH_NOTHING_RE:w,IDENT_RE:_,UNDERSCORE_IDENT_RE:x,NUMBER_RE:S,C_NUMBER_RE:k,BINARY_NUMBER_RE:C,RE_STARTERS_RE:E,SHEBANG:O,BACKSLASH_ESCAPE:A,APOS_STRING_MODE:D,QUOTE_STRING_MODE:T,PHRASAL_WORDS_MODE:P,COMMENT:M,C_LINE_COMMENT_MODE:N,C_BLOCK_COMMENT_MODE:I,HASH_COMMENT_MODE:R,NUMBER_MODE:j,C_NUMBER_MODE:F,BINARY_NUMBER_MODE:L,CSS_NUMBER_MODE:B,REGEXP_MODE:U,TITLE_MODE:z,UNDERSCORE_TITLE_MODE:H,METHOD_GUARD:$,END_SAME_AS_BEGIN:V});function X(e,t){const n=e.input[e.index-1];"."===n&&t.ignoreMatch()}function G(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=X,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function Y(e,t){Array.isArray(e.illegal)&&(e.illegal=g(...e.illegal))}function K(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function J(e,t){void 0===e.relevance&&(e.relevance=1)}const Z=["of","and","for","in","not","or","if","then","parent","list","value"],Q="keyword";function ee(e,t,n=Q){const r={};return"string"===typeof e?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach((function(n){Object.assign(r,ee(e[n],t,n))})),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach((function(t){const n=t.split("|");r[n[0]]=[e,te(n[0],n[1])]}))}}function te(e,t){return t?Number(t):ne(e)?0:1}function ne(e){return Z.includes(e.toLowerCase())}function re(e,{plugins:t}){function n(t,n){return new RegExp(p(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=v(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=n(q(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex((e,t)=>t>0&&void 0!==e),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new r;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function o(e){const t=new i;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}function a(t,r){const i=t;if(t.isCompiled)return i;[K].forEach(e=>e(t,r)),e.compilerExtensions.forEach(e=>e(t,r)),t.__beforeBegin=null,[G,Y,J].forEach(e=>e(t,r)),t.isCompiled=!0;let s=null;if("object"===typeof t.keywords&&(s=t.keywords.$pattern,delete t.keywords.$pattern),t.keywords&&(t.keywords=ee(t.keywords,e.case_insensitive)),t.lexemes&&s)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return s=s||t.lexemes||/\w+/,i.keywordPatternRe=n(s,!0),r&&(t.begin||(t.begin=/\B|\b/),i.beginRe=n(t.begin),t.endSameAsBegin&&(t.end=t.begin),t.end||t.endsWithParent||(t.end=/\B|\b/),t.end&&(i.endRe=n(t.end)),i.terminatorEnd=p(t.end)||"",t.endsWithParent&&r.terminatorEnd&&(i.terminatorEnd+=(t.end?"|":"")+r.terminatorEnd)),t.illegal&&(i.illegalRe=n(t.illegal)),t.contains||(t.contains=[]),t.contains=[].concat(...t.contains.map((function(e){return oe("self"===e?t:e)}))),t.contains.forEach((function(e){a(e,i)})),t.starts&&a(t.starts,r),i.matcher=o(i),i}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=s(e.classNameAliases||{}),a(e)}function ie(e){return!!e&&(e.endsWithParent||ie(e.starts))}function oe(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return s(e,{variants:null},t)}))),e.cachedVariants?e.cachedVariants:ie(e)?s(e,{starts:e.starts?s(e.starts):null}):Object.isFrozen(e)?s(e):e}var ae="10.7.1";function se(e){return Boolean(e||""===e)}function ue(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,a(this.code);let t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||se(this.autodetect)},ignoreIllegals(){return!0}},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}},n={install(e){e.component("highlightjs",t)}};return{Component:t,VuePlugin:n}}const le={"after:highlightElement":({el:e,result:t,text:n})=>{const r=fe(e);if(!r.length)return;const i=document.createElement("div");i.innerHTML=t.value,t.value=de(r,fe(i),n)}};function ce(e){return e.nodeName.toLowerCase()}function fe(e){const t=[];return function e(n,r){for(let i=n.firstChild;i;i=i.nextSibling)3===i.nodeType?r+=i.nodeValue.length:1===i.nodeType&&(t.push({event:"start",offset:r,node:i}),r=e(i,r),ce(i).match(/br|hr|img|input/)||t.push({event:"stop",offset:r,node:i}));return r}(e,0),t}function de(e,t,n){let r=0,i="";const o=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function u(e){function t(e){return" "+e.nodeName+'="'+a(e.value)+'"'}i+="<"+ce(e)+[].map.call(e.attributes,t).join("")+">"}function l(e){i+="</"+ce(e)+">"}function c(e){("start"===e.event?u:l)(e.node)}while(e.length||t.length){let t=s();if(i+=a(n.substring(r,t[0].offset)),r=t[0].offset,t===e){o.reverse().forEach(l);do{c(t.splice(0,1)[0]),t=s()}while(t===e&&t.length&&t[0].offset===r);o.reverse().forEach(u)}else"start"===t[0].event?o.push(t[0].node):o.pop(),c(t.splice(0,1)[0])}return i+a(n.substr(r))}const he=e=>{console.error(e)},pe=(e,...t)=>{console.log("WARN: "+e,...t)},me=(e,t)=>{console.log(`Deprecated as of ${e}. ${t}`)},ge=a,ve=s,ye=Symbol("nomatch"),be=function(e){const t=Object.create(null),n=Object.create(null),i=[];let a=!0;const s=/(^(<[^>]+>|\t|)+|\n)/gm,u="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let c={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:d};function f(e){return c.noHighlightRe.test(e)}function p(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=c.languageDetectRe.exec(t);if(n){const t=R(n[1]);return t||(pe(u.replace("{}",n[1])),pe("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>f(e)||R(e))}function m(e,t,n,r){let i="",o="";"object"===typeof t?(i=e,n=t.ignoreIllegals,o=t.language,r=void 0):(me("10.7.0","highlight(lang, code, ...args) has been deprecated."),me("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),o=e,i=t);const a={code:i,language:o};U("before:highlight",a);const s=a.result?a.result:g(a.language,a.code,n,r);return s.code=a.code,U("after:highlight",s),s}function g(e,n,r,s){function l(e,t){const n=C.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}function f(){if(!A.keywords)return void T.addText(P);let e=0;A.keywordPatternRe.lastIndex=0;let t=A.keywordPatternRe.exec(P),n="";while(t){n+=P.substring(e,t.index);const r=l(A,t);if(r){const[e,i]=r;if(T.addText(n),n="",M+=i,e.startsWith("_"))n+=t[0];else{const n=C.classNameAliases[e]||e;T.addKeyword(t[0],n)}}else n+=t[0];e=A.keywordPatternRe.lastIndex,t=A.keywordPatternRe.exec(P)}n+=P.substr(e),T.addText(n)}function d(){if(""===P)return;let e=null;if("string"===typeof A.subLanguage){if(!t[A.subLanguage])return void T.addText(P);e=g(A.subLanguage,P,!0,D[A.subLanguage]),D[A.subLanguage]=e.top}else e=b(P,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(M+=e.relevance),T.addSublanguage(e.emitter,e.language)}function p(){null!=A.subLanguage?d():f(),P=""}function m(e){return e.className&&T.openNode(C.classNameAliases[e.className]||e.className),A=Object.create(e,{parent:{value:A}}),A}function v(e,t,n){let r=y(e.endRe,n);if(r){if(e["on:end"]){const n=new o(e);e["on:end"](t,n),n.isMatchIgnored&&(r=!1)}if(r){while(e.endsParent&&e.parent)e=e.parent;return e}}if(e.endsWithParent)return v(e.parent,t,n)}function q(e){return 0===A.matcher.regexIndex?(P+=e[0],1):(j=!0,0)}function w(e){const t=e[0],n=e.rule,r=new o(n),i=[n.__beforeBegin,n["on:begin"]];for(const o of i)if(o&&(o(e,r),r.isMatchIgnored))return q(t);return n&&n.endSameAsBegin&&(n.endRe=h(t)),n.skip?P+=t:(n.excludeBegin&&(P+=t),p(),n.returnBegin||n.excludeBegin||(P=t)),m(n),n.returnBegin?0:t.length}function _(e){const t=e[0],r=n.substr(e.index),i=v(A,e,r);if(!i)return ye;const o=A;o.skip?P+=t:(o.returnEnd||o.excludeEnd||(P+=t),p(),o.excludeEnd&&(P=t));do{A.className&&T.closeNode(),A.skip||A.subLanguage||(M+=A.relevance),A=A.parent}while(A!==i.parent);return i.starts&&(i.endSameAsBegin&&(i.starts.endRe=i.endRe),m(i.starts)),o.returnEnd?0:t.length}function x(){const e=[];for(let t=A;t!==C;t=t.parent)t.className&&e.unshift(t.className);e.forEach(e=>T.openNode(e))}let S={};function k(t,i){const o=i&&i[0];if(P+=t,null==o)return p(),0;if("begin"===S.type&&"end"===i.type&&S.index===i.index&&""===o){if(P+=n.slice(i.index,i.index+1),!a){const t=new Error("0 width match regex");throw t.languageName=e,t.badRule=S.rule,t}return 1}if(S=i,"begin"===i.type)return w(i);if("illegal"===i.type&&!r){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(A.className||"<unnamed>")+'"');throw e.mode=A,e}if("end"===i.type){const e=_(i);if(e!==ye)return e}if("illegal"===i.type&&""===o)return 1;if(I>1e5&&I>3*i.index){const e=new Error("potential infinite loop, way more iterations than matches");throw e}return P+=o,o.length}const C=R(e);if(!C)throw he(u.replace("{}",e)),new Error('Unknown language: "'+e+'"');const E=re(C,{plugins:i});let O="",A=s||E;const D={},T=new c.__emitter(c);x();let P="",M=0,N=0,I=0,j=!1;try{for(A.matcher.considerAll();;){I++,j?j=!1:A.matcher.considerAll(),A.matcher.lastIndex=N;const e=A.matcher.exec(n);if(!e)break;const t=n.substring(N,e.index),r=k(t,e);N=e.index+r}return k(n.substr(N)),T.closeAllNodes(),T.finalize(),O=T.toHTML(),{relevance:Math.floor(M),value:O,language:e,illegal:!1,emitter:T,top:A}}catch(F){if(F.message&&F.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:F.message,context:n.slice(N-100,N+100),mode:F.mode},sofar:O,relevance:0,value:ge(n),emitter:T};if(a)return{illegal:!1,relevance:0,value:ge(n),emitter:T,language:e,top:A,errorRaised:F};throw F}}function v(e){const t={relevance:0,emitter:new c.__emitter(c),value:ge(e),illegal:!1,top:l};return t.emitter.addText(e),t}function b(e,n){n=n||c.languages||Object.keys(t);const r=v(e),i=n.filter(R).filter(F).map(t=>g(t,e,!1));i.unshift(r);const o=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(R(e.language).supersetOf===t.language)return 1;if(R(t.language).supersetOf===e.language)return-1}return 0}),[a,s]=o,u=a;return u.second_best=s,u}function q(e){return c.tabReplace||c.useBR?e.replace(s,e=>"\n"===e?c.useBR?"<br>":e:c.tabReplace?e.replace(/\t/g,c.tabReplace):e):e}function w(e,t,r){const i=t?n[t]:r;e.classList.add("hljs"),i&&e.classList.add(i)}const _={"before:highlightElement":({el:e})=>{c.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightElement":({result:e})=>{c.useBR&&(e.value=e.value.replace(/\n/g,"<br>"))}},x=/^(<[^>]+>|\t)+/gm,S={"after:highlightElement":({result:e})=>{c.tabReplace&&(e.value=e.value.replace(x,e=>e.replace(/\t/g,c.tabReplace)))}};function k(e){let t=null;const n=p(e);if(f(n))return;U("before:highlightElement",{el:e,language:n}),t=e;const r=t.textContent,i=n?m(r,{language:n,ignoreIllegals:!0}):b(r);U("after:highlightElement",{el:e,result:i,text:r}),e.innerHTML=i.value,w(e,n,i.language),e.result={language:i.language,re:i.relevance,relavance:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance,relavance:i.second_best.relevance})}function C(e){e.useBR&&(me("10.3.0","'useBR' will be removed entirely in v11.0"),me("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),c=ve(c,e)}const E=()=>{if(E.called)return;E.called=!0,me("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead.");const e=document.querySelectorAll("pre code");e.forEach(k)};function O(){me("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),A=!0}let A=!1;function D(){if("loading"===document.readyState)return void(A=!0);const e=document.querySelectorAll("pre code");e.forEach(k)}function T(){A&&D()}function P(n,r){let i=null;try{i=r(e)}catch(o){if(he("Language definition for '{}' could not be registered.".replace("{}",n)),!a)throw o;he(o),i=l}i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&j(i.aliases,{languageName:n})}function M(e){delete t[e];for(const t of Object.keys(n))n[t]===e&&delete n[t]}function N(){return Object.keys(t)}function I(e){me("10.4.0","requireLanguage will be removed entirely in v11."),me("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const t=R(e);if(t)return t;const n=new Error("The '{}' language is required, but not loaded.".replace("{}",e));throw n}function R(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function j(e,{languageName:t}){"string"===typeof e&&(e=[e]),e.forEach(e=>{n[e.toLowerCase()]=t})}function F(e){const t=R(e);return t&&!t.disableAutodetect}function L(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}function B(e){L(e),i.push(e)}function U(e,t){const n=e;i.forEach((function(e){e[n]&&e[n](t)}))}function z(e){return me("10.2.0","fixMarkup will be removed entirely in v11.0"),me("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),q(e)}function H(e){return me("10.7.0","highlightBlock will be removed entirely in v12.0"),me("10.7.0","Please use highlightElement now."),k(e)}"undefined"!==typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",T,!1),Object.assign(e,{highlight:m,highlightAuto:b,highlightAll:D,fixMarkup:z,highlightElement:k,highlightBlock:H,configure:C,initHighlighting:E,initHighlightingOnLoad:O,registerLanguage:P,unregisterLanguage:M,listLanguages:N,getLanguage:R,registerAliases:j,requireLanguage:I,autoDetection:F,inherit:ve,addPlugin:B,vuePlugin:ue(e).VuePlugin}),e.debugMode=function(){a=!1},e.safeMode=function(){a=!0},e.versionString=ae;for(const o in W)"object"===typeof W[o]&&r(W[o]);return Object.assign(e,W),e.addPlugin(_),e.addPlugin(le),e.addPlugin(S),e};var qe=be({});e.exports=qe},1041:function(e,t,n){var r=n("8eeb"),i=n("a029");function o(e,t){return r(e,i(e),t)}e.exports=o},1290:function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},1310:function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},1368:function(e,t,n){var r=n("da03"),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o(e){return!!i&&i in e}e.exports=o},"13ea":function(e,t,n){var r=n("03dd"),i=n("42a2"),o=n("d370"),a=n("6747"),s=n("30c9"),u=n("0d24"),l=n("eac5"),c=n("73ac"),f="[object Map]",d="[object Set]",h=Object.prototype,p=h.hasOwnProperty;function m(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||c(e)||o(e)))return!e.length;var t=i(e);if(t==f||t==d)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}e.exports=m},"14e1":function(e,t,n){},1540:function(e,t){function n(e,t){if(1===t)return e.one;var n=t%100;if(n<=20&&n>10)return e.other;var r=n%10;return r>=2&&r<=4?e.twoFour:e.other}function r(e,t,r){r=r||"regular";var i=n(e,t),o=i[r]||i;return o.replace("{{count}}",t)}function i(){var e={lessThanXSeconds:{one:{regular:"mniej niż sekunda",past:"mniej niż sekundę",future:"mniej niż sekundę"},twoFour:"mniej niż {{count}} sekundy",other:"mniej niż {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekundę",future:"sekundę"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"pół minuty",twoFour:"pół minuty",other:"pół minuty"},lessThanXMinutes:{one:{regular:"mniej niż minuta",past:"mniej niż minutę",future:"mniej niż minutę"},twoFour:"mniej niż {{count}} minuty",other:"mniej niż {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minutę",future:"minutę"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"około godzina",past:"około godziny",future:"około godzinę"},twoFour:"około {{count}} godziny",other:"około {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzinę",future:"godzinę"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzień",past:"dzień",future:"1 dzień"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXMonths:{one:"około miesiąc",twoFour:"około {{count}} miesiące",other:"około {{count}} miesięcy"},xMonths:{one:"miesiąc",twoFour:"{{count}} miesiące",other:"{{count}} miesięcy"},aboutXYears:{one:"około rok",twoFour:"około {{count}} lata",other:"około {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function t(t,n,i){i=i||{};var o=e[t];return i.addSuffix?i.comparison>0?"za "+r(o,n,"future"):r(o,n,"past")+" temu":r(o,n)}return{localize:t}}e.exports=i},"17cd":function(e,t,n){var r=n("c8d5"),i=n("b2e9"),o=n("0d3e");function a(e,t){var n=r(e),a=r(t),s=o(n,a),u=Math.abs(i(n,a));n.setMonth(n.getMonth()-s*u);var l=o(n,a)===-s;return s*(u-l)}e.exports=a},1838:function(e,t,n){var r=n("c05f"),i=n("9b02"),o=n("8604"),a=n("f608"),s=n("08cc"),u=n("20ec"),l=n("f4d6"),c=1,f=2;function d(e,t){return a(e)&&s(t)?u(l(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,c|f)}}e.exports=d},"18d8":function(e,t,n){var r=n("234d"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},1980:function(e,t,n){(function(t,r){e.exports=r(n("aa47"))})("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"02f4":function(e,t,n){var r=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0fc9":function(e,t,n){var r=n("3a38"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},1654:function(e,t,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(e,t,n){var r=n("63b6");r(r.S,"Array",{isArray:n("9003")})},"1bc3":function(e,t,n){var r=n("f772");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,n){var r=n("f772"),i=n("e53d").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"20fd":function(e,t,n){"use strict";var r=n("d9f6"),i=n("aebd");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),u=n("520a"),l=s("species"),c=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var d=s(e),h=!o((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),p=h?!o((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[l]=function(){return n}),n[d](""),!t})):void 0;if(!h||!p||"replace"===e&&!c||"split"===e&&!f){var m=/./[d],g=n(a,d,""[e],(function(e,t,n,r,i){return t.exec===u?h&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=g[0],y=g[1];r(String.prototype,e,v),i(RegExp.prototype,d,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"23c6":function(e,t,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},"241e":function(e,t,n){var r=n("25eb");e.exports=function(e){return Object(r(e))}},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),u="toString",l=(""+s).split(u);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(o(n,a)||i(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"30f1":function(e,t,n){"use strict";var r=n("b8e3"),i=n("63b6"),o=n("9138"),a=n("35e8"),s=n("481b"),u=n("8f60"),l=n("45f2"),c=n("53e2"),f=n("5168")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,y,b,q){u(n,t,v);var w,_,x,S=function(e){if(!d&&e in O)return O[e];switch(e){case p:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",C=y==m,E=!1,O=e.prototype,A=O[f]||O[h]||y&&O[y],D=A||S(y),T=y?C?S("entries"):D:void 0,P="Array"==t&&O.entries||A;if(P&&(x=c(P.call(new e)),x!==Object.prototype&&x.next&&(l(x,k,!0),r||"function"==typeof x[f]||a(x,f,g))),C&&A&&A.name!==m&&(E=!0,D=function(){return A.call(this)}),r&&!q||!d&&!E&&O[f]||a(O,f,D),s[t]=D,s[k]=g,y)if(w={values:C?D:S(m),keys:b?D:S(p),entries:T},q)for(_ in w)_ in O||o(O,_,w[_]);else i(i.P+i.F*(d||E),t,w);return w}},"32a6":function(e,t,n){var r=n("241e"),i=n("c3a1");n("ce7e")("keys",(function(){return function(e){return i(r(e))}}))},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"32fc":function(e,t,n){var r=n("e53d").document;e.exports=r&&r.documentElement},"335c":function(e,t,n){var r=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var r=n("d9f6"),i=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"36c3":function(e,t,n){var r=n("335c"),i=n("25eb");e.exports=function(e){return r(i(e))}},3702:function(e,t,n){var r=n("481b"),i=n("5168")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},"3a38":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"40c3":function(e,t,n){var r=n("6b4c"),i=n("5168")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"45f2":function(e,t,n){var r=n("d9f6").f,i=n("07e3"),o=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"469f":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("7d7b")},"481b":function(e,t){e.exports={}},"4aa6":function(e,t,n){e.exports=n("dc62")},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4ee1":function(e,t,n){var r=n("5168")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(a){}return n}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(i){}}return!0}},5168:function(e,t,n){var r=n("dbdb")("wks"),i=n("62a0"),o=n("e53d").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},5176:function(e,t,n){e.exports=n("51b6")},"51b6":function(e,t,n){n("a3c3"),e.exports=n("584a").Object.assign},"520a":function(e,t,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s="lastIndex",u=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),l=void 0!==/()??/.exec("")[1],c=u||l;c&&(a=function(e){var t,n,a,c,f=this;return l&&(n=new RegExp("^"+f.source+"$(?!\\s)",r.call(f))),u&&(t=f[s]),a=i.call(f,e),u&&a&&(f[s]=f.global?a.index+a[0].length:t),l&&a&&a.length>1&&o.call(a[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(a[c]=void 0)})),a}),e.exports=a},"53e2":function(e,t,n){var r=n("07e3"),i=n("241e"),o=n("5559")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"549b":function(e,t,n){"use strict";var r=n("d864"),i=n("63b6"),o=n("241e"),a=n("b0dc"),s=n("3702"),u=n("b447"),l=n("20fd"),c=n("7cd6");i(i.S+i.F*!n("4ee1")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,f,d=o(e),h="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,y=c(d);if(g&&(m=r(m,p>2?arguments[2]:void 0,2)),void 0==y||h==Array&&s(y))for(t=u(d.length),n=new h(t);t>v;v++)l(n,v,g?m(d[v],v):d[v]);else for(f=y.call(d),n=new h;!(i=f.next()).done;v++)l(n,v,g?a(f,m,[i.value,v],!0):i.value);return n.length=v,n}})},"54a1":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("95d5")},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,n){var r=n("dbdb")("keys"),i=n("62a0");e.exports=function(e){return r[e]||(r[e]=i(e))}},"584a":function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"5b4e":function(e,t,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");e.exports=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){while(l>c)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),u="prototype",l=function(e,t,n){var c,f,d,h,p=e&l.F,m=e&l.G,g=e&l.S,v=e&l.P,y=e&l.B,b=m?r:g?r[t]||(r[t]={}):(r[t]||{})[u],q=m?i:i[t]||(i[t]={}),w=q[u]||(q[u]={});for(c in m&&(n=t),n)f=!p&&b&&void 0!==b[c],d=(f?b:n)[c],h=y&&f?s(d,r):v&&"function"==typeof d?s(Function.call,d):d,b&&a(b,c,d,e&l.U),q[c]!=d&&o(q,c,h),v&&w[c]!=d&&(w[c]=d)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},"5d73":function(e,t,n){e.exports=n("469f")},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"62a0":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"63b6":function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),u="prototype",l=function(e,t,n){var c,f,d,h=e&l.F,p=e&l.G,m=e&l.S,g=e&l.P,v=e&l.B,y=e&l.W,b=p?i:i[t]||(i[t]={}),q=b[u],w=p?r:m?r[t]:(r[t]||{})[u];for(c in p&&(n=t),n)f=!h&&w&&void 0!==w[c],f&&s(b,c)||(d=f?w[c]:n[c],b[c]=p&&"function"!=typeof w[c]?n[c]:v&&f?o(d,r):y&&w[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[u]=e[u],t}(d):g&&"function"==typeof d?o(Function.call,d):d,g&&((b.virtual||(b.virtual={}))[c]=d,e&l.R&&q&&!q[c]&&a(q,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6c1c":function(e,t,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),a=n("5168")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var l=s[u],c=r[l],f=c&&c.prototype;f&&!f[a]&&i(f,a,l),o[l]=o.Array}},"71c1":function(e,t,n){var r=n("3a38"),i=n("25eb");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(e,t,n){e.exports=n("d2d5")},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7cd6":function(e,t,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");e.exports=n("584a").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},"7d7b":function(e,t,n){var r=n("e4ae"),i=n("7cd6");e.exports=n("584a").getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},"7e90":function(e,t,n){var r=n("d9f6"),i=n("e4ae"),o=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,u=0;while(s>u)r.f(e,n=a[u++],t[n]);return e}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},8436:function(e,t){e.exports=function(){}},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"8aae":function(e,t,n){n("32a6"),e.exports=n("584a").Object.keys},"8e60":function(e,t,n){e.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8f60":function(e,t,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},9003:function(e,t,n){var r=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},9138:function(e,t,n){e.exports=n("35e8")},9306:function(e,t,n){"use strict";var r=n("c3a1"),i=n("9aa9"),o=n("355d"),a=n("241e"),s=n("335c"),u=Object.assign;e.exports=!u||n("294c")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r}))?function(e,t){var n=a(e),u=arguments.length,l=1,c=i.f,f=o.f;while(u>l){var d,h=s(arguments[l++]),p=c?r(h).concat(c(h)):r(h),m=p.length,g=0;while(m>g)f.call(h,d=p[g++])&&(n[d]=h[d])}return n}:u},9427:function(e,t,n){var r=n("63b6");r(r.S,"Object",{create:n("a159")})},"95d5":function(e,t,n){var r=n("40c3"),i=n("5168")("iterator"),o=n("481b");e.exports=n("584a").isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a159:function(e,t,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n("1ec9")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),l=e.F;while(r--)delete l[u][o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},a352:function(t,n){t.exports=e},a3c3:function(e,t,n){var r=n("63b6");r(r.S+r.F,"Object",{assign:n("9306")})},a481:function(e,t,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),u=n("5f1b"),l=Math.max,c=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,m){return[function(r,i){var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=m(n,e,this,t);if(i.done)return i.value;var f=r(e),d=String(this),h="function"===typeof t;h||(t=String(t));var v=f.global;if(v){var y=f.unicode;f.lastIndex=0}var b=[];while(1){var q=u(f,d);if(null===q)break;if(b.push(q),!v)break;var w=String(q[0]);""===w&&(f.lastIndex=s(d,o(f.lastIndex),y))}for(var _="",x=0,S=0;S<b.length;S++){q=b[S];for(var k=String(q[0]),C=l(c(a(q.index),d.length),0),E=[],O=1;O<q.length;O++)E.push(p(q[O]));var A=q.groups;if(h){var D=[k].concat(E,C,d);void 0!==A&&D.push(A);var T=String(t.apply(void 0,D))}else T=g(k,d,C,E,A,t);C>=x&&(_+=d.slice(x,C)+T,x=C+k.length)}return _+d.slice(x)}];function g(e,t,r,o,a,s){var u=r+e.length,l=o.length,c=h;return void 0!==a&&(a=i(a),c=d),n.call(s,c,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return n;if(c>l){var d=f(c/10);return 0===d?n:d<=l?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):n}s=o[c-1]}return void 0===s?"":s}))}}))},a4bb:function(e,t,n){e.exports=n("8aae")},a745:function(e,t,n){e.exports=n("f410")},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b0dc:function(e,t,n){var r=n("e4ae");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(a){var o=e["return"];throw void 0!==o&&r(o.call(e)),a}}},b447:function(e,t,n){var r=n("3a38"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},b8e3:function(e,t){e.exports=!0},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){while(l>c)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},c367:function(e,t,n){"use strict";var r=n("8436"),i=n("50ed"),o=n("481b"),a=n("36c3");e.exports=n("30f1")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},c3a1:function(e,t,n){var r=n("e6f3"),i=n("1691");e.exports=Object.keys||function(e){return r(e,i)}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return c})),n("a481");var r=n("4aa6"),i=n.n(r);function o(){return"undefined"!==typeof window?window.console:e.console}var a=o();function s(e){var t=i()(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var u=/-(\w)/g,l=s((function(e){return e.replace(u,(function(e,t){return t?t.toUpperCase():""}))}));function c(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function f(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8bb:function(e,t,n){e.exports=n("54a1")},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ce7e:function(e,t,n){var r=n("63b6"),i=n("584a"),o=n("294c");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d2d5:function(e,t,n){n("1654"),n("549b"),e.exports=n("584a").Array.from},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d864:function(e,t,n){var r=n("79aa");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d9f6:function(e,t,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),a=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},dbdb:function(e,t,n){var r=n("584a"),i=n("e53d"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},dc62:function(e,t,n){n("9427");var r=n("584a").Object;e.exports=function(e,t){return r.create(e,t)}},e4ae:function(e,t,n){var r=n("f772");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(e,t,n){var r=n("07e3"),i=n("36c3"),o=n("5b4e")(!1),a=n("5559")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);while(t.length>u)r(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},f410:function(e,t,n){n("1af6"),e.exports=n("584a").Array.isArray},f559:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];r(r.P+r.F*n("5147")(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fb15:function(e,t,n){"use strict";var r;n.r(t),"undefined"!==typeof window&&(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=r[1]);var i=n("5176"),o=n.n(i),a=(n("f559"),n("a4bb")),s=n.n(a),u=(n("6762"),n("2fdb"),n("a745")),l=n.n(u);function c(e){if(l()(e))return e}var f=n("5d73"),d=n.n(f);function h(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=d()(e);!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(u){i=!0,o=u}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function m(e,t){return c(e)||h(e,t)||p()}function g(e){if(l()(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}var v=n("774e"),y=n.n(v),b=n("c8bb"),q=n.n(b);function w(e){if(q()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return y()(e)}function _(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function x(e){return g(e)||w(e)||_()}var S=n("a352"),k=n.n(S),C=n("c649");function E(e,t,n){return void 0===n||(e=e||{},e[t]=n),e}function O(e,t){return e.map((function(e){return e.elm})).indexOf(t)}function A(e,t,n,r){if(!e)return[];var i=e.map((function(e){return e.elm})),o=t.length-r,a=x(t).map((function(e,t){return t>=o?i.length:i.indexOf(e)}));return n?a.filter((function(e){return-1!==e})):a}function D(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function T(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),D.call(t,e,n)}}function P(e){if(!e||1!==e.length)return!1;var t=m(e,1),n=t[0].componentOptions;return!!n&&["transition-group","TransitionGroup"].includes(n.tag)}function M(e,t){var n=t.header,r=t.footer,i=0,o=0;return n&&(i=n.length,e=e?[].concat(x(n),x(e)):x(n)),r&&(o=r.length,e=e?[].concat(x(e),x(r)):x(r)),{children:e,headerOffset:i,footerOffset:o}}function N(e,t){var n=null,r=function(e,t){n=E(n,e,t)},i=s()(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{});if(r("attrs",i),!t)return n;var a=t.on,u=t.props,l=t.attrs;return r("on",a),r("props",u),o()(n.attrs,l),n}var I=["Start","Add","Remove","Update","End"],R=["Choose","Sort","Filter","Clone"],j=["Move"].concat(I,R).map((function(e){return"on"+e})),F=null,L={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},B={name:"draggable",inheritAttrs:!1,props:L,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1,init:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=P(t);var n=M(t,this.$slots),r=n.children,i=n.headerOffset,o=n.footerOffset;this.headerOffset=i,this.footerOffset=o;var a=N(this.$attrs,this.componentData);return e(this.getTag(),a,r)},created:function(){null!==this.list&&null!==this.value&&C["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&C["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&C["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};I.forEach((function(n){t["on"+n]=T.call(e,n)})),R.forEach((function(n){t["on"+n]=D.bind(e,n)}));var n=s()(this.$attrs).reduce((function(t,n){return t[Object(C["a"])(n)]=e.$attrs[n],t}),{}),r=o()({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new k.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(C["a"])(t);-1===j.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.init||(this.noneFunctionalComponentMode=this.noneFunctionalComponentMode&&1===this.$children.length,this.init=!0),this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=A(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=O(this.getChildrenNodes()||[],e);if(-1===t)return null;var n=this.realList[t];return{index:t,element:n}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&"transition-group"===t.$options._componentTag?t.$parent:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=x(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,x(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var i=r.realList,a={list:i,component:r};if(t!==n&&i&&r.getUnderlyingVm){var s=r.getUnderlyingVm(n);if(s)return o()(s,a)}return a},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){var t=this.getChildrenNodes();t[e].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),F=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(C["d"])(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(Object(C["c"])(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(C["d"])(e.clone)},onDragUpdate:function(e){Object(C["d"])(e.item),Object(C["c"])(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=x(t.to.children).filter((function(e){return"none"!==e.style["display"]})),r=n.indexOf(t.related),i=e.component.getVmIndex(r),o=-1!==n.indexOf(F);return o||!t.willInsertAfter?i:i+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(e),i=this.context,a=this.computeFutureIndex(r,e);o()(i,{futureIndex:a});var s=o()({},e,{relatedContext:r,draggedContext:i});return n(s,t)},onDragEnd:function(){this.computeIndexes(),F=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",B);var U=B;t["default"]=U}})["default"]}))},"1a2d":function(e,t,n){var r=n("42a2"),i=n("1310"),o="[object Map]";function a(e){return i(e)&&r(e)==o}e.exports=a},"1a8c":function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},"1bac":function(e,t,n){var r=n("7d1f"),i=n("a029"),o=n("9934");function a(e){return r(e,o,i)}e.exports=a},"1c3c":function(e,t,n){var r=n("9e69"),i=n("2474"),o=n("9638"),a=n("a2be"),s=n("edfa"),u=n("ac41"),l=1,c=2,f="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Map]",m="[object Number]",g="[object RegExp]",v="[object Set]",y="[object String]",b="[object Symbol]",q="[object ArrayBuffer]",w="[object DataView]",_=r?r.prototype:void 0,x=_?_.valueOf:void 0;function S(e,t,n,r,_,S,k){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case q:return!(e.byteLength!=t.byteLength||!S(new i(e),new i(t)));case f:case d:case m:return o(+e,+t);case h:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case p:var C=s;case v:var E=r&l;if(C||(C=u),e.size!=t.size&&!E)return!1;var O=k.get(e);if(O)return O==t;r|=c,k.set(e,t);var A=a(C(e),C(t),r,_,S,k);return k["delete"](e),A;case b:if(x)return x.call(e)==x.call(t)}return!1}e.exports=S},"1cec":function(e,t,n){var r=n("0b07"),i=n("2b3e"),o=r(i,"Promise");e.exports=o},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},"1efc":function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},"1fb5":function(e,t,n){"use strict";t.byteLength=c,t.toByteArray=d,t.fromByteArray=m;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,r=l(e),a=r[0],s=r[1],u=new o(f(e,a,s)),c=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u}function h(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(h(r));return i.join("")}function m(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,u=n-i;s<u;s+=a)o.push(p(e,s,s+a>u?u:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"1fc8":function(e,t,n){var r=n("4245");function i(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}e.exports=i},"20ec":function(e,t){function n(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=n},2286:function(e,t,n){var r=n("85e3"),i=Math.max;function o(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);while(++a<s)u[a]=o[t+a];a=-1;var l=Array(t+1);while(++a<t)l[a]=o[a];return l[t]=n(u),r(e,this,l)}}e.exports=o},"228d":function(e,t,n){
+/* flatpickr v4.3.2, @license MIT */
+(function(e,n){n(t)})(0,(function(e){"use strict";var t="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],longhand:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"]},months:{shorthand:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],longhand:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},rangeSeparator:" até "};t.l10ns.pt=n;var r=t.l10ns;e.Portuguese=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}))},2333:function(e,t){function n(){var e={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}};function t(t,n,r){var i;return r=r||{},i="string"===typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"dans "+i:"il y a "+i:i}return{localize:t}}e.exports=n},"234d":function(e,t,n){var r=n("e380"),i=500;function o(e){var t=r(e,(function(e){return n.size===i&&n.clear(),e})),n=t.cache;return t}e.exports=o},2376:function(e,t,n){var r=n("90e5");function i(){var e=["janv.","févr.","mars","avr.","mai","juin","juill.","août","sept.","oct.","nov.","déc."],t=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],n=["di","lu","ma","me","je","ve","sa"],i=["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],s=["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],u=["AM","PM"],l=["am","pm"],c=["du matin","de l’après-midi","du soir"],f={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return i[e.getDay()]},dddd:function(e){return s[e.getDay()]},A:function(e){return e.getHours()/12>=1?u[1]:u[0]},a:function(e){return e.getHours()/12>=1?l[1]:l[0]},aa:function(e){var t=e.getHours();return t<=12?c[0]:t<=16?c[1]:c[2]},Wo:function(e,t){return a(t.W(e))}},d=["M","D","DDD","d","Q"];d.forEach((function(e){f[e+"o"]=function(t,n){return o(n[e](t))}}));var h=["MMM","MMMM"];return h.forEach((function(e){f["Do "+e]=function(t,n){var r=1===t.getDate()?"Do":"D",i=f[r]||n[r];return i(t,n)+" "+f[e](t)}})),{formatters:f,formattingTokensRegExp:r(f)}}function o(e){return 1===e?"1er":e+"e"}function a(e){return 1===e?"1re":e+"e"}e.exports=i},"242e":function(e,t,n){var r=n("72af"),i=n("ec69");function o(e,t){return e&&r(e,t,i)}e.exports=o},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),i=n("c8af"),o=n("387f"),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function u(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:u(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),JSON.stringify(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw o(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(a)})),e.exports=l}).call(this,n("4362"))},2474:function(e,t,n){var r=n("2b3e"),i=r.Uint8Array;e.exports=i},2478:function(e,t,n){var r=n("4245");function i(e){return r(this,e).get(e)}e.exports=i},2524:function(e,t,n){var r=n("6044"),i="__lodash_hash_undefined__";function o(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}e.exports=o},"253c":function(e,t,n){var r=n("3729"),i=n("1310"),o="[object Arguments]";function a(e){return i(e)&&r(e)==o}e.exports=a},"26df":function(e,t,n){
+/* flatpickr v4.3.2, @license MIT */
+(function(e,n){n(t)})(0,(function(e){"use strict";var t="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum Ändern scrollen",toggleTitle:"Zum Umschalten klicken"};t.l10ns.de=n;var r=t.l10ns;e.German=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}))},"26e8":function(e,t){function n(e,t){return null!=e&&t in Object(e)}e.exports=n},2877:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(e,t){return u.call(t),c(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:l}}n.d(t,"a",(function(){return r}))},"28c9":function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},"29d0":function(e,t){function n(){var e={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}};function t(t,n,r){var i;return r=r||{},i="string"===typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?i+"内":i+"前":i}return{localize:t}}e.exports=n},"29f3":function(e,t){var n=Object.prototype,r=n.toString;function i(e){return r.call(e)}e.exports=i},"2a63":function(e,t){function n(e,t){if(void 0!==e.one&&1===t)return e.one;var n=t%10,r=t%100;return 1===n&&11!==r?e.singularNominative.replace("{{count}}",t):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",t):e.pluralGenitive.replace("{{count}}",t)}function r(e){return function(t,r){return r.addSuffix?r.comparison>0?e.future?n(e.future,t):"через "+n(e.regular,t):e.past?n(e.past,t):n(e.regular,t)+" назад":n(e.regular,t)}}function i(){var e={lessThanXSeconds:r({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:r({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:function(e,t){return t.addSuffix?t.comparison>0?"через полминуты":"полминуты назад":"полминуты"},lessThanXMinutes:r({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:r({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:r({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:r({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:r({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXMonths:r({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:r({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:r({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:r({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:r({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:r({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})};function t(t,n,r){return r=r||{},e[t](n,r)}return{localize:t}}e.exports=i},"2b3e":function(e,t,n){var r=n("585a"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},"2b58":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.qq=void 0;var r=n("9925"),i=u(r),o=n("7d8c"),a=u(o),s=n("5ab1");function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(e){var n=e.options;return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{callbackNames:s.s3,options:n,qq:a.default,type:"s3"}))}return f(t,e),t}(i.default);t.default=d,t.qq=a.default},"2ca0":function(e,t,n){var r=n("2333"),i=n("2376");e.exports={distanceInWords:r(),format:i()}},"2d7c":function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}e.exports=n},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},"2d96":function(e,t){function n(){var e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function t(t,n,r){var i;return r=r||{},i="string"===typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"in "+i:i+" ago":i}return{localize:t}}e.exports=n},"2dcb":function(e,t,n){var r=n("91e9"),i=r(Object.getPrototypeOf,Object);e.exports=i},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2eae":function(e,t,n){"use strict";n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return g})),n.d(t,"j",(function(){return T})),n.d(t,"f",(function(){return A})),n.d(t,"g",(function(){return O})),n.d(t,"h",(function(){return M})),n.d(t,"k",(function(){return _})),n.d(t,"i",(function(){return x})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return b})),n.d(t,"l",(function(){return j}));const r=65535,i=Math.pow(2,16);function o(e,t){return e+t*i}function a(e){return e&r}function s(e){return(e-(e&r))/i}class u{constructor(e,t=!1,n=null){this.pos=e,this.deleted=t,this.recover=n}}class l{constructor(e,t=!1){if(!e.length&&l.empty)return l.empty;this.ranges=e,this.inverted=t}recover(e){let t=0,n=a(e);if(!this.inverted)for(let r=0;r<n;r++)t+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*n]+t+s(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let l=this.ranges[s]-(this.inverted?r:0);if(l>e)break;let c=this.ranges[s+i],f=this.ranges[s+a],d=l+c;if(e<=d){let i=c?e==l?-1:e==d?1:t:t,a=l+r+(i<0?0:f);if(n)return a;let h=e==(t<0?l:d)?null:o(s/3,e-l);return new u(a,t<0?e!=l:e!=d,h)}r+=f-c}return n?e+r:new u(e+r)}touches(e,t){let n=0,r=a(t),i=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let t=this.ranges[a]-(this.inverted?n:0);if(t>e)break;let s=this.ranges[a+i],u=t+s;if(e<=u&&a==3*r)return!0;n+=this.ranges[a+o]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let o=this.ranges[r],a=o-(this.inverted?i:0),s=o+(this.inverted?0:i),u=this.ranges[r+t],l=this.ranges[r+n];e(a,a+u,s,s+l),i+=l-u}}invert(){return new l(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?l.empty:new l(e<0?[0,-e,0]:[0,0,e])}}l.empty=new l([]);class c{constructor(e,t,n,r){this.maps=e||[],this.from=n||0,this.to=null==r?this.maps.length:r,this.mirror=t}slice(e=0,t=this.maps.length){return new c(this.maps,this.mirror,e,t)}copy(){return new c(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,n=this.maps.length;t<e.maps.length;t++){let r=e.getMirror(t);this.appendMap(e.maps[t],null!=r&&r<t?n+r:null)}}getMirror(e){if(this.mirror)for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:null)}}invert(){let e=new c;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=!1;for(let i=this.from;i<this.to;i++){let n=this.maps[i],o=n.mapResult(e,t);if(null!=o.recover){let t=this.getMirror(i);if(null!=t&&t>i&&t<this.to){i=t,e=this.maps[t].recover(o.recover);continue}}o.deleted&&(r=!0),e=o.pos}return n?e:new u(e,r)}}function f(e){let t=Error.call(this,e);return t.__proto__=f.prototype,t}f.prototype=Object.create(Error.prototype),f.prototype.constructor=f,f.prototype.name="TransformError";class d{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new c}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new f(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}}var h=n("304a");function p(){throw new Error("Override me")}const m=Object.create(null);class g{apply(e){return p()}getMap(){return l.empty}invert(e){return p()}map(e){return p()}merge(e){return null}toJSON(){return p()}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=m[t.stepType];if(!n)throw new RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in m)throw new RangeError("Duplicate use of step JSON ID "+e);return m[e]=t,t.prototype.jsonID=e,t}}class v{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new v(e,null)}static fail(e){return new v(null,e)}static fromReplace(e,t,n,r){try{return v.ok(e.replace(t,n,r))}catch(i){if(i instanceof h["h"])return v.fail(i.message);throw i}}}class y extends g{constructor(e,t,n,r){super(),this.from=e,this.to=t,this.slice=n,this.structure=!!r}apply(e){return this.structure&&q(e,this.from,this.to)?v.fail("Structure replace would overwrite content"):v.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new l([this.from,this.to-this.from,this.slice.size])}invert(e){return new y(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted?null:new y(t.pos,Math.max(t.pos,n.pos),this.slice)}merge(e){if(!(e instanceof y)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?h["j"].empty:new h["j"](e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new y(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?h["j"].empty:new h["j"](this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new y(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new y(t.from,t.to,h["j"].fromJSON(e,t.slice),!!t.structure)}}g.jsonID("replace",y);class b extends g{constructor(e,t,n,r,i,o,a){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=o,this.structure=!!a}apply(e){if(this.structure&&(q(e,this.from,this.gapFrom)||q(e,this.gapTo,this.to)))return v.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return v.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?v.fromReplace(e,this.from,this.to,n):v.fail("Content does not fit in gap")}getMap(){return new l([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new b(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return t.deleted&&n.deleted||r<t.pos||i>n.pos?null:new b(t.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new b(t.from,t.to,t.gapFrom,t.gapTo,h["j"].fromJSON(e,t.slice),t.insert,!!t.structure)}}function q(e,t,n){let r=e.resolve(t),i=n-t,o=r.depth;while(i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount)o--,i--;if(i>0){let e=r.node(o).maybeChild(r.indexAfter(o));while(i>0){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function w(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function _(e){let t=e.parent,n=t.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let t=e.$from.node(r),i=e.$from.index(r),o=e.$to.indexAfter(r);if(r<e.depth&&t.canReplace(i,o,n))return r;if(0==r||t.type.spec.isolating||!w(t,i,o))break}}function x(e,t,n,r=e){let i=k(e,t),o=i&&C(r,t);return o?i.map(S).concat({type:t,attrs:n}).concat(o.map(S)):null}function S(e){return{type:e,attrs:null}}function k(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.contentMatchAt(r).findWrapping(t);if(!o)return null;let a=o.length?o[0]:t;return n.canReplaceWith(r,i,a)?o:null}function C(e,t){let{parent:n,startIndex:r,endIndex:i}=e,o=n.child(r),a=t.contentMatch.findWrapping(o.type);if(!a)return null;let s=a.length?a[a.length-1]:t,u=s.contentMatch;for(let l=r;u&&l<i;l++)u=u.matchType(n.child(l).type);return u&&u.validEnd?a:null}function E(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function O(e,t,n=1,r){let i=e.resolve(t),o=i.depth-n,a=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let l=i.depth-1,c=n-2;l>o;l--,c--){let e=i.node(l),t=i.index(l);if(e.type.spec.isolating)return!1;let n=e.content.cutByIndex(t,e.childCount),o=r&&r[c]||e;if(o!=e&&(n=n.replaceChild(0,o.type.create(o.attrs))),!e.canReplace(t+1,e.childCount)||!o.type.validContent(n))return!1}let s=i.indexAfter(o),u=r&&r[0];return i.node(o).canReplaceWith(s,s,u?u.type:i.node(o+1).type)}function A(e,t){let n=e.resolve(t),r=n.index();return D(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function D(e,t){return e&&t&&!e.isLeaf&&e.canAppend(t)}function T(e,t,n=-1){let r=e.resolve(t);for(let i=r.depth;;i--){let e,o,a=r.index(i);if(i==r.depth?(e=r.nodeBefore,o=r.nodeAfter):n>0?(e=r.node(i+1),a++,o=r.node(i).maybeChild(a)):(e=r.node(i).maybeChild(a-1),o=r.node(i+1)),e&&!e.isTextblock&&D(e,o)&&r.node(i).canReplace(a,a+1))return t;if(0==i)break;t=n<0?r.before(i):r.after(i)}}function P(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let i=r.depth-1;i>=0;i--){let e=r.index(i);if(r.node(i).canReplaceWith(e,e,n))return r.before(i+1);if(e>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let e=r.indexAfter(i);if(r.node(i).canReplaceWith(e,e,n))return r.after(i+1);if(e<r.node(i).childCount)return null}}function M(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let o=0;o<n.openStart;o++)i=i.firstChild.content;for(let o=1;o<=(0==n.openStart&&n.size?2:1);o++)for(let e=r.depth;e>=0;e--){let t=e==r.depth?0:r.pos<=(r.start(e+1)+r.end(e+1))/2?-1:1,n=r.index(e)+(t>0?1:0),a=r.node(e),s=!1;if(1==o)s=a.canReplace(n,n,i);else{let e=a.contentMatchAt(n).findWrapping(i.firstChild.type);s=e&&a.canReplaceWith(n,n,e[0])}if(s)return 0==t?r.pos:t<0?r.before(e+1):r.after(e+1)}return null}function N(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let o=e.child(i);o.content.size&&(o=o.copy(N(o.content,t,o))),o.isInline&&(o=t(o,n,i)),r.push(o)}return h["c"].fromArray(r)}g.jsonID("replaceAround",b),d.prototype.lift=function(e,t){let{$from:n,$to:r,depth:i}=e,o=n.before(i+1),a=r.after(i+1),s=o,u=a,l=h["c"].empty,c=0;for(let p=i,m=!1;p>t;p--)m||n.index(p)>0?(m=!0,l=h["c"].from(n.node(p).copy(l)),c++):s--;let f=h["c"].empty,d=0;for(let p=i,m=!1;p>t;p--)m||r.after(p+1)<r.end(p)?(m=!0,f=h["c"].from(r.node(p).copy(f)),d++):u++;return this.step(new b(s,u,o,a,new h["j"](l.append(f),c,d),l.size-c,!0))},d.prototype.wrap=function(e,t){let n=h["c"].empty;for(let o=t.length-1;o>=0;o--){if(n.size){let e=t[o].type.contentMatch.matchFragment(n);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=h["c"].from(t[o].type.create(t[o].attrs,n))}let r=e.start,i=e.end;return this.step(new b(r,i,r,i,new h["j"](n,0,0),t.length,!0))},d.prototype.setBlockType=function(e,t=e,n,r){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=this.steps.length;return this.doc.nodesBetween(e,t,(e,t)=>{if(e.isTextblock&&!e.hasMarkup(n,r)&&E(this.doc,this.mapping.slice(i).map(t),n)){this.clearIncompatible(this.mapping.slice(i).map(t,1),n);let o=this.mapping.slice(i),a=o.map(t,1),s=o.map(t+e.nodeSize,1);return this.step(new b(a,s,a+1,s-1,new h["j"](h["c"].from(n.create(r,null,e.marks)),0,0),1,!0)),!1}}),this},d.prototype.setNodeMarkup=function(e,t,n,r){let i=this.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");t||(t=i.type);let o=t.create(n,null,r||i.marks);if(i.isLeaf)return this.replaceWith(e,e+i.nodeSize,o);if(!t.validContent(i.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new b(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new h["j"](h["c"].from(o),0,0),1,!0))},d.prototype.split=function(e,t=1,n){let r=this.doc.resolve(e),i=h["c"].empty,o=h["c"].empty;for(let a=r.depth,s=r.depth-t,u=t-1;a>s;a--,u--){i=h["c"].from(r.node(a).copy(i));let e=n&&n[u];o=h["c"].from(e?e.type.create(e.attrs,o):r.node(a).copy(o))}return this.step(new y(e,e,new h["j"](i.append(o),t,t),!0))},d.prototype.join=function(e,t=1){let n=new y(e-t,e+t,h["j"].empty,!0);return this.step(n)};class I extends g{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new h["j"](N(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,r),t.openStart,t.openEnd);return v.fromReplace(e,this.from,this.to,i)}invert(){return new R(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new I(t.pos,n.pos,this.mark)}merge(e){if(e instanceof I&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new I(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new I(t.from,t.to,e.markFromJSON(t.mark))}}g.jsonID("addMark",I);class R extends g{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new h["j"](N(t.content,e=>e.mark(this.mark.removeFromSet(e.marks))),t.openStart,t.openEnd);return v.fromReplace(e,this.from,this.to,n)}invert(){return new I(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new R(t.pos,n.pos,this.mark)}merge(e){if(e instanceof R&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new R(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new R(t.from,t.to,e.markFromJSON(t.mark))}}function j(e,t,n=t,r=h["j"].empty){if(t==n&&!r.size)return null;let i=e.resolve(t),o=e.resolve(n);return F(i,o,r)?new y(t,n,r):new L(i,o,r).fit()}function F(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}g.jsonID("removeMark",R),d.prototype.addMark=function(e,t,n){let r=[],i=[],o=null,a=null;return this.doc.nodesBetween(e,t,(s,u,l)=>{if(!s.isInline)return;let c=s.marks;if(!n.isInSet(c)&&l.type.allowsMarkType(n.type)){let l=Math.max(u,e),f=Math.min(u+s.nodeSize,t),d=n.addToSet(c);for(let e=0;e<c.length;e++)c[e].isInSet(d)||(o&&o.to==l&&o.mark.eq(c[e])?o.to=f:r.push(o=new R(l,f,c[e])));a&&a.to==l?a.to=f:i.push(a=new I(l,f,n))}}),r.forEach(e=>this.step(e)),i.forEach(e=>this.step(e)),this},d.prototype.removeMark=function(e,t,n=null){let r=[],i=0;return this.doc.nodesBetween(e,t,(o,a)=>{if(!o.isInline)return;i++;let s=null;if(n instanceof h["e"]){let e,t=o.marks;while(e=n.isInSet(t))(s||(s=[])).push(e),t=e.removeFromSet(t)}else n?n.isInSet(o.marks)&&(s=[n]):s=o.marks;if(s&&s.length){let n=Math.min(a+o.nodeSize,t);for(let t=0;t<s.length;t++){let o,u=s[t];for(let e=0;e<r.length;e++){let t=r[e];t.step==i-1&&u.eq(r[e].style)&&(o=t)}o?(o.to=n,o.step=i):r.push({style:u,from:Math.max(a,e),to:n,step:i})}}}),r.forEach(e=>this.step(new R(e.from,e.to,e.style))),this},d.prototype.clearIncompatible=function(e,t,n=t.contentMatch){let r=this.doc.nodeAt(e),i=[],o=e+1;for(let a=0;a<r.childCount;a++){let e=r.child(a),s=o+e.nodeSize,u=n.matchType(e.type,e.attrs);if(u){n=u;for(let n=0;n<e.marks.length;n++)t.allowsMarkType(e.marks[n].type)||this.step(new R(o,s,e.marks[n]))}else i.push(new y(o,s,h["j"].empty));o=s}if(!n.validEnd){let e=n.fillBefore(h["c"].empty,!0);this.replace(o,o,new h["j"](e,0,0))}for(let a=i.length-1;a>=0;a--)this.step(i[a]);return this},d.prototype.replace=function(e,t=e,n=h["j"].empty){let r=j(this.doc,e,t,n);return r&&this.step(r),this},d.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new h["j"](h["c"].from(n),0,0))},d.prototype.delete=function(e,t){return this.replace(e,t,h["j"].empty)},d.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};class L{constructor(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(let r=0;r<=e.depth;r++){let t=e.node(r);this.frontier.push({type:t.type,match:t.contentMatchAt(e.indexAfter(r))})}this.placed=h["c"].empty;for(let r=e.depth;r>0;r--)this.placed=h["c"].from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){while(this.unplaced.size){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let i=this.placed,o=n.depth,a=r.depth;while(o&&a&&1==i.childCount)i=i.firstChild.content,o--,a--;let s=new h["j"](i,o,a);return e>-1?new b(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new y(n.pos,r.pos,s):void 0}findFittable(){for(let e=1;e<=2;e++)for(let t=this.unplaced.openStart;t>=0;t--){let n,r;t?(r=z(this.unplaced.content,t-1).firstChild,n=r.content):n=this.unplaced.content;let i=n.firstChild;for(let o=this.depth;o>=0;o--){let n,a,{type:s,match:u}=this.frontier[o];if(1==e&&(i?u.matchType(i.type)||(a=u.fillBefore(h["c"].from(i),!1)):s.compatibleContent(r.type)))return{sliceDepth:t,frontierDepth:o,parent:r,inject:a};if(2==e&&i&&(n=u.findWrapping(i.type)))return{sliceDepth:t,frontierDepth:o,parent:r,wrap:n};if(r&&u.matchType(r.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=z(e,t);return!(!r.childCount||r.firstChild.isLeaf)&&(this.unplaced=new h["j"](e,t+1,Math.max(n,r.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=z(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new h["j"](B(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new h["j"](B(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:i}){while(this.depth>t)this.closeFrontierNode();if(i)for(let h=0;h<i.length;h++)this.openFrontierNode(i[h]);let o=this.unplaced,a=n?n.content:o.content,s=o.openStart-e,u=0,l=[],{match:c,type:f}=this.frontier[t];if(r){for(let e=0;e<r.childCount;e++)l.push(r.child(e));c=c.matchFragment(r)}let d=a.size+e-(o.content.size-o.openEnd);while(u<a.childCount){let e=a.child(u),t=c.matchType(e.type);if(!t)break;u++,(u>1||0==s||e.content.size)&&(c=t,l.push(H(e.mark(f.allowedMarks(e.marks)),1==u?s:0,u==a.childCount?d:-1)))}let p=u==a.childCount;p||(d=-1),this.placed=U(this.placed,t,h["c"].from(l)),this.frontier[t].match=c,p&&d<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let h=0,m=a;h<d;h++){let e=m.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),m=e.content}this.unplaced=p?0==e?h["j"].empty:new h["j"](B(o.content,e-1,1),e-1,d<0?o.openEnd:e-1):new h["j"](B(o.content,e,u),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e,t=this.frontier[this.depth];if(!t.type.isTextblock||!$(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);while(n>1&&r==this.$to.end(--n))++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=$(e,t,r,n,i);if(o){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=$(e,n,r,t,!0);if(!i||i.childCount)continue e}return{depth:t,fit:o,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;while(this.depth>t.depth)this.closeFrontierNode();t.fit.childCount&&(this.placed=U(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=U(this.placed,this.depth,h["c"].from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop(),t=e.match.fillBefore(h["c"].empty,!0);t.childCount&&(this.placed=U(this.placed,this.frontier.length,t))}}function B(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy(B(e.firstChild.content,t-1,n)))}function U(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(U(e.lastChild.content,t-1,n)))}function z(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function H(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,H(r.firstChild,t-1,1==r.childCount?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(h["c"].empty,!0)))),e.copy(r)}function $(e,t,n,r,i){let o=e.node(t),a=i?e.indexAfter(t):e.index(t);if(a==o.childCount&&!n.compatibleContent(o.type))return null;let s=r.fillBefore(o.content,!0,a);return s&&!V(n,o.content,a)?s:null}function V(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function W(e){return e.spec.defining||e.spec.definingForContent}function X(e,t,n,r,i){if(t<n){let i=e.firstChild;e=e.replaceChild(0,i.copy(X(i.content,t+1,n,r,i)))}if(t>r){let t=i.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(h["c"].empty,!0))}return e}function G(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}d.prototype.replaceRange=function(e,t,n){if(!n.size)return this.deleteRange(e,t);let r=this.doc.resolve(e),i=this.doc.resolve(t);if(F(r,i,n))return this.step(new y(e,t,n));let o=G(r,this.doc.resolve(t));0==o[o.length-1]&&o.pop();let a=-(r.depth+1);o.unshift(a);for(let f=r.depth,d=r.pos-1;f>0;f--,d--){let e=r.node(f).type.spec;if(e.defining||e.definingAsContext||e.isolating)break;o.indexOf(f)>-1?a=f:r.before(f)==d&&o.splice(1,0,-f)}let s=o.indexOf(a),u=[],l=n.openStart;for(let f=n.content,d=0;;d++){let e=f.firstChild;if(u.push(e),d==n.openStart)break;f=e.content}for(let f=l-1;f>=0;f--){let e=u[f].type,t=W(e);if(t&&r.node(s).type!=e)l=f;else if(t||!e.isTextblock)break}for(let f=n.openStart;f>=0;f--){let e=(f+l+1)%(n.openStart+1),a=u[e];if(a)for(let u=0;u<o.length;u++){let l=o[(u+s)%o.length],c=!0;l<0&&(c=!1,l=-l);let f=r.node(l-1),d=r.index(l-1);if(f.canReplaceWith(d,d,a.type,a.marks))return this.replace(r.before(l),c?i.after(l):t,new h["j"](X(n.content,0,n.openStart,e),e,n.openEnd))}}let c=this.steps.length;for(let f=o.length-1;f>=0;f--){if(this.replace(e,t,n),this.steps.length>c)break;let a=o[f];a<0||(e=r.before(a),t=i.after(a))}return this},d.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){let r=P(this.doc,e,n.type);null!=r&&(e=t=r)}return this.replaceRange(e,t,new h["j"](h["c"].from(n),0,0))},d.prototype.deleteRange=function(e,t){let n=this.doc.resolve(e),r=this.doc.resolve(t),i=G(n,r);for(let o=0;o<i.length;o++){let e=i[o],t=o==i.length-1;if(t&&0==e||n.node(e).type.contentMatch.validEnd)return this.delete(n.start(e),r.end(e));if(e>0&&(t||n.node(e-1).canReplace(n.index(e-1),r.indexAfter(e-1))))return this.delete(n.before(e),r.after(e))}for(let o=1;o<=n.depth&&o<=r.depth;o++)if(e-n.start(o)==n.depth-o&&t>n.end(o)&&r.end(o)-t!=r.depth-o)return this.delete(n.before(o),t);return this.delete(e,t)}},"2ec1d":function(e,t,n){var r=n("100e"),i=n("9aff");function o(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);while(++r<o){var u=n[r];u&&e(t,u,r,a)}return t}))}e.exports=o},"2ef0":function(e,t,n){(function(e,r){var i;
+/**
+ * @license
+ * Lodash <https://lodash.com/>
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
+ * Released under MIT license <https://lodash.com/license>
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+ */(function(){var o,a="4.17.21",s=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",p=1,m=2,g=4,v=1,y=2,b=1,q=2,w=4,_=8,x=16,S=32,k=64,C=128,E=256,O=512,A=30,D="...",T=800,P=16,M=1,N=2,I=3,R=1/0,j=9007199254740991,F=17976931348623157e292,L=NaN,B=4294967295,U=B-1,z=B>>>1,H=[["ary",C],["bind",b],["bindKey",q],["curry",_],["curryRight",x],["flip",O],["partial",S],["partialRight",k],["rearg",E]],$="[object Arguments]",V="[object Array]",W="[object AsyncFunction]",X="[object Boolean]",G="[object Date]",Y="[object DOMException]",K="[object Error]",J="[object Function]",Z="[object GeneratorFunction]",Q="[object Map]",ee="[object Number]",te="[object Null]",ne="[object Object]",re="[object Promise]",ie="[object Proxy]",oe="[object RegExp]",ae="[object Set]",se="[object String]",ue="[object Symbol]",le="[object Undefined]",ce="[object WeakMap]",fe="[object WeakSet]",de="[object ArrayBuffer]",he="[object DataView]",pe="[object Float32Array]",me="[object Float64Array]",ge="[object Int8Array]",ve="[object Int16Array]",ye="[object Int32Array]",be="[object Uint8Array]",qe="[object Uint8ClampedArray]",we="[object Uint16Array]",_e="[object Uint32Array]",xe=/\b__p \+= '';/g,Se=/\b(__p \+=) '' \+/g,ke=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ce=/&(?:amp|lt|gt|quot|#39);/g,Ee=/[&<>"']/g,Oe=RegExp(Ce.source),Ae=RegExp(Ee.source),De=/<%-([\s\S]+?)%>/g,Te=/<%([\s\S]+?)%>/g,Pe=/<%=([\s\S]+?)%>/g,Me=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ne=/^\w*$/,Ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Re=/[\\^$.*+?()[\]{}|]/g,je=RegExp(Re.source),Fe=/^\s+/,Le=/\s/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,ze=/,? & /,He=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$e=/[()=,{}\[\]\/\s]/,Ve=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Xe=/\w*$/,Ge=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,Ke=/^\[object .+?Constructor\]$/,Je=/^0o[0-7]+$/i,Ze=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,et=/($^)/,tt=/['\n\r\u2028\u2029\\]/g,nt="\\ud800-\\udfff",rt="\\u0300-\\u036f",it="\\ufe20-\\ufe2f",ot="\\u20d0-\\u20ff",at=rt+it+ot,st="\\u2700-\\u27bf",ut="a-z\\xdf-\\xf6\\xf8-\\xff",lt="\\xac\\xb1\\xd7\\xf7",ct="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ft="\\u2000-\\u206f",dt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ht="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",mt=lt+ct+ft+dt,gt="['’]",vt="["+nt+"]",yt="["+mt+"]",bt="["+at+"]",qt="\\d+",wt="["+st+"]",_t="["+ut+"]",xt="[^"+nt+mt+qt+st+ut+ht+"]",St="\\ud83c[\\udffb-\\udfff]",kt="(?:"+bt+"|"+St+")",Ct="[^"+nt+"]",Et="(?:\\ud83c[\\udde6-\\uddff]){2}",Ot="[\\ud800-\\udbff][\\udc00-\\udfff]",At="["+ht+"]",Dt="\\u200d",Tt="(?:"+_t+"|"+xt+")",Pt="(?:"+At+"|"+xt+")",Mt="(?:"+gt+"(?:d|ll|m|re|s|t|ve))?",Nt="(?:"+gt+"(?:D|LL|M|RE|S|T|VE))?",It=kt+"?",Rt="["+pt+"]?",jt="(?:"+Dt+"(?:"+[Ct,Et,Ot].join("|")+")"+Rt+It+")*",Ft="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Bt=Rt+It+jt,Ut="(?:"+[wt,Et,Ot].join("|")+")"+Bt,zt="(?:"+[Ct+bt+"?",bt,Et,Ot,vt].join("|")+")",Ht=RegExp(gt,"g"),$t=RegExp(bt,"g"),Vt=RegExp(St+"(?="+St+")|"+zt+Bt,"g"),Wt=RegExp([At+"?"+_t+"+"+Mt+"(?="+[yt,At,"$"].join("|")+")",Pt+"+"+Nt+"(?="+[yt,At+Tt,"$"].join("|")+")",At+"?"+Tt+"+"+Mt,At+"+"+Nt,Lt,Ft,qt,Ut].join("|"),"g"),Xt=RegExp("["+Dt+nt+at+pt+"]"),Gt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Kt=-1,Jt={};Jt[pe]=Jt[me]=Jt[ge]=Jt[ve]=Jt[ye]=Jt[be]=Jt[qe]=Jt[we]=Jt[_e]=!0,Jt[$]=Jt[V]=Jt[de]=Jt[X]=Jt[he]=Jt[G]=Jt[K]=Jt[J]=Jt[Q]=Jt[ee]=Jt[ne]=Jt[oe]=Jt[ae]=Jt[se]=Jt[ce]=!1;var Zt={};Zt[$]=Zt[V]=Zt[de]=Zt[he]=Zt[X]=Zt[G]=Zt[pe]=Zt[me]=Zt[ge]=Zt[ve]=Zt[ye]=Zt[Q]=Zt[ee]=Zt[ne]=Zt[oe]=Zt[ae]=Zt[se]=Zt[ue]=Zt[be]=Zt[qe]=Zt[we]=Zt[_e]=!0,Zt[K]=Zt[J]=Zt[ce]=!1;var Qt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},en={"&":"&","<":"<",">":">",'"':""","'":"'"},tn={"&":"&","<":"<",">":">",""":'"',"'":"'"},nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rn=parseFloat,on=parseInt,an="object"==typeof e&&e&&e.Object===Object&&e,sn="object"==typeof self&&self&&self.Object===Object&&self,un=an||sn||Function("return this")(),ln=t&&!t.nodeType&&t,cn=ln&&"object"==typeof r&&r&&!r.nodeType&&r,fn=cn&&cn.exports===ln,dn=fn&&an.process,hn=function(){try{var e=cn&&cn.require&&cn.require("util").types;return e||dn&&dn.binding&&dn.binding("util")}catch(t){}}(),pn=hn&&hn.isArrayBuffer,mn=hn&&hn.isDate,gn=hn&&hn.isMap,vn=hn&&hn.isRegExp,yn=hn&&hn.isSet,bn=hn&&hn.isTypedArray;function qn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function wn(e,t,n,r){var i=-1,o=null==e?0:e.length;while(++i<o){var a=e[i];t(r,a,n(a),e)}return r}function _n(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}function xn(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function Sn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function kn(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Cn(e,t){var n=null==e?0:e.length;return!!n&&Fn(e,t,0)>-1}function En(e,t,n){var r=-1,i=null==e?0:e.length;while(++r<i)if(n(t,e[r]))return!0;return!1}function On(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}function An(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}function Dn(e,t,n,r){var i=-1,o=null==e?0:e.length;r&&o&&(n=e[++i]);while(++i<o)n=t(n,e[i],i,e);return n}function Tn(e,t,n,r){var i=null==e?0:e.length;r&&i&&(n=e[--i]);while(i--)n=t(n,e[i],i,e);return n}function Pn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var Mn=zn("length");function Nn(e){return e.split("")}function In(e){return e.match(He)||[]}function Rn(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function jn(e,t,n,r){var i=e.length,o=n+(r?1:-1);while(r?o--:++o<i)if(t(e[o],o,e))return o;return-1}function Fn(e,t,n){return t===t?pr(e,t,n):jn(e,Bn,n)}function Ln(e,t,n,r){var i=n-1,o=e.length;while(++i<o)if(r(e[i],t))return i;return-1}function Bn(e){return e!==e}function Un(e,t){var n=null==e?0:e.length;return n?Wn(e,t)/n:L}function zn(e){return function(t){return null==t?o:t[e]}}function Hn(e){return function(t){return null==e?o:e[t]}}function $n(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Vn(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Wn(e,t){var n,r=-1,i=e.length;while(++r<i){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Xn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Gn(e,t){return On(t,(function(t){return[t,e[t]]}))}function Yn(e){return e?e.slice(0,yr(e)+1).replace(Fe,""):e}function Kn(e){return function(t){return e(t)}}function Jn(e,t){return On(t,(function(t){return e[t]}))}function Zn(e,t){return e.has(t)}function Qn(e,t){var n=-1,r=e.length;while(++n<r&&Fn(t,e[n],0)>-1);return n}function er(e,t){var n=e.length;while(n--&&Fn(t,e[n],0)>-1);return n}function tr(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var nr=Hn(Qt),rr=Hn(en);function ir(e){return"\\"+nn[e]}function or(e,t){return null==e?o:e[t]}function ar(e){return Xt.test(e)}function sr(e){return Gt.test(e)}function ur(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function lr(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cr(e,t){return function(n){return e(t(n))}}function fr(e,t){var n=-1,r=e.length,i=0,o=[];while(++n<r){var a=e[n];a!==t&&a!==h||(e[n]=h,o[i++]=n)}return o}function dr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pr(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}function mr(e,t,n){var r=n+1;while(r--)if(e[r]===t)return r;return r}function gr(e){return ar(e)?qr(e):Mn(e)}function vr(e){return ar(e)?wr(e):Nn(e)}function yr(e){var t=e.length;while(t--&&Le.test(e.charAt(t)));return t}var br=Hn(tn);function qr(e){var t=Vt.lastIndex=0;while(Vt.test(e))++t;return t}function wr(e){return e.match(Vt)||[]}function _r(e){return e.match(Wt)||[]}var xr=function e(t){t=null==t?un:Sr.defaults(un.Object(),t,Sr.pick(un,Yt));var n=t.Array,r=t.Date,i=t.Error,Le=t.Function,He=t.Math,nt=t.Object,rt=t.RegExp,it=t.String,ot=t.TypeError,at=n.prototype,st=Le.prototype,ut=nt.prototype,lt=t["__core-js_shared__"],ct=st.toString,ft=ut.hasOwnProperty,dt=0,ht=function(){var e=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),pt=ut.toString,mt=ct.call(nt),gt=un._,vt=rt("^"+ct.call(ft).replace(Re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=fn?t.Buffer:o,bt=t.Symbol,qt=t.Uint8Array,wt=yt?yt.allocUnsafe:o,_t=cr(nt.getPrototypeOf,nt),xt=nt.create,St=ut.propertyIsEnumerable,kt=at.splice,Ct=bt?bt.isConcatSpreadable:o,Et=bt?bt.iterator:o,Ot=bt?bt.toStringTag:o,At=function(){try{var e=Xa(nt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Dt=t.clearTimeout!==un.clearTimeout&&t.clearTimeout,Tt=r&&r.now!==un.Date.now&&r.now,Pt=t.setTimeout!==un.setTimeout&&t.setTimeout,Mt=He.ceil,Nt=He.floor,It=nt.getOwnPropertySymbols,Rt=yt?yt.isBuffer:o,jt=t.isFinite,Ft=at.join,Lt=cr(nt.keys,nt),Bt=He.max,Ut=He.min,zt=r.now,Vt=t.parseInt,Wt=He.random,Xt=at.reverse,Gt=Xa(t,"DataView"),Qt=Xa(t,"Map"),en=Xa(t,"Promise"),tn=Xa(t,"Set"),nn=Xa(t,"WeakMap"),an=Xa(nt,"create"),sn=nn&&new nn,ln={},cn=Ps(Gt),dn=Ps(Qt),hn=Ps(en),Mn=Ps(tn),Nn=Ps(nn),Hn=bt?bt.prototype:o,pr=Hn?Hn.valueOf:o,qr=Hn?Hn.toString:o;function wr(e){if(kc(e)&&!uc(e)&&!(e instanceof Er)){if(e instanceof Cr)return e;if(ft.call(e,"__wrapped__"))return Ns(e)}return new Cr(e)}var xr=function(){function e(){}return function(t){if(!Sc(t))return{};if(xt)return xt(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function kr(){}function Cr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Er(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B,this.__views__=[]}function Or(){var e=new Er(this.__wrapped__);return e.__actions__=ia(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ia(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ia(this.__views__),e}function Ar(){if(this.__filtered__){var e=new Er(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Dr(){var e=this.__wrapped__.value(),t=this.__dir__,n=uc(e),r=t<0,i=n?e.length:0,o=Za(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,d=0,h=Ut(u,this.__takeCount__);if(!n||!r&&i==u&&h==u)return Lo(e,this.__actions__);var p=[];e:while(u--&&d<h){l+=t;var m=-1,g=e[l];while(++m<f){var v=c[m],y=v.iteratee,b=v.type,q=y(g);if(b==N)g=q;else if(!q){if(b==M)continue e;break e}}p[d++]=g}return p}function Tr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Pr(){this.__data__=an?an(null):{},this.size=0}function Mr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Nr(e){var t=this.__data__;if(an){var n=t[e];return n===f?o:n}return ft.call(t,e)?t[e]:o}function Ir(e){var t=this.__data__;return an?t[e]!==o:ft.call(t,e)}function Rr(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=an&&t===o?f:t,this}function jr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Fr(){this.__data__=[],this.size=0}function Lr(e){var t=this.__data__,n=ci(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():kt.call(t,n,1),--this.size,!0}function Br(e){var t=this.__data__,n=ci(t,e);return n<0?o:t[n][1]}function Ur(e){return ci(this.__data__,e)>-1}function zr(e,t){var n=this.__data__,r=ci(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Hr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function $r(){this.size=0,this.__data__={hash:new Tr,map:new(Qt||jr),string:new Tr}}function Vr(e){var t=Va(this,e)["delete"](e);return this.size-=t?1:0,t}function Wr(e){return Va(this,e).get(e)}function Xr(e){return Va(this,e).has(e)}function Gr(e,t){var n=Va(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Yr(e){var t=-1,n=null==e?0:e.length;this.__data__=new Hr;while(++t<n)this.add(e[t])}function Kr(e){return this.__data__.set(e,f),this}function Jr(e){return this.__data__.has(e)}function Zr(e){var t=this.__data__=new jr(e);this.size=t.size}function Qr(){this.__data__=new jr,this.size=0}function ei(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function ti(e){return this.__data__.get(e)}function ni(e){return this.__data__.has(e)}function ri(e,t){var n=this.__data__;if(n instanceof jr){var r=n.__data__;if(!Qt||r.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hr(r)}return n.set(e,t),this.size=n.size,this}function ii(e,t){var n=uc(e),r=!n&&sc(e),i=!n&&!r&&hc(e),o=!n&&!r&&!i&&Bc(e),a=n||r||i||o,s=a?Xn(e.length,it):[],u=s.length;for(var l in e)!t&&!ft.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||as(l,u))||s.push(l);return s}function oi(e){var t=e.length;return t?e[yo(0,t-1)]:o}function ai(e,t){return As(ia(e),gi(t,0,e.length))}function si(e){return As(ia(e))}function ui(e,t,n){(n!==o&&!ic(e[t],n)||n===o&&!(t in e))&&pi(e,t,n)}function li(e,t,n){var r=e[t];ft.call(e,t)&&ic(r,n)&&(n!==o||t in e)||pi(e,t,n)}function ci(e,t){var n=e.length;while(n--)if(ic(e[n][0],t))return n;return-1}function fi(e,t,n,r){return _i(e,(function(e,i,o){t(r,e,n(e),o)})),r}function di(e,t){return e&&oa(t,xf(t),e)}function hi(e,t){return e&&oa(t,Sf(t),e)}function pi(e,t,n){"__proto__"==t&&At?At(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function mi(e,t){var r=-1,i=t.length,a=n(i),s=null==e;while(++r<i)a[r]=s?o:vf(e,t[r]);return a}function gi(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function vi(e,t,n,r,i,a){var s,u=t&p,l=t&m,c=t&g;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!Sc(e))return e;var f=uc(e);if(f){if(s=ts(e),!u)return ia(e,s)}else{var d=Ja(e),h=d==J||d==Z;if(hc(e))return Go(e,u);if(d==ne||d==$||h&&!i){if(s=l||h?{}:ns(e),!u)return l?sa(e,hi(s,e)):aa(e,di(s,e))}else{if(!Zt[d])return i?e:{};s=rs(e,d,u)}}a||(a=new Zr);var v=a.get(e);if(v)return v;a.set(e,s),jc(e)?e.forEach((function(r){s.add(vi(r,t,n,r,e,a))})):Cc(e)&&e.forEach((function(r,i){s.set(i,vi(r,t,n,i,e,a))}));var y=c?l?Ba:La:l?Sf:xf,b=f?o:y(e);return _n(b||e,(function(r,i){b&&(i=r,r=e[i]),li(s,i,vi(r,t,n,i,e,a))})),s}function yi(e){var t=xf(e);return function(n){return bi(n,e,t)}}function bi(e,t,n){var r=n.length;if(null==e)return!r;e=nt(e);while(r--){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function qi(e,t,n){if("function"!=typeof e)throw new ot(l);return ks((function(){e.apply(o,n)}),t)}function wi(e,t,n,r){var i=-1,o=Cn,a=!0,u=e.length,l=[],c=t.length;if(!u)return l;n&&(t=On(t,Kn(n))),r?(o=En,a=!1):t.length>=s&&(o=Zn,a=!1,t=new Yr(t));e:while(++i<u){var f=e[i],d=null==n?f:n(f);if(f=r||0!==f?f:0,a&&d===d){var h=c;while(h--)if(t[h]===d)continue e;l.push(f)}else o(t,d,r)||l.push(f)}return l}wr.templateSettings={escape:De,evaluate:Te,interpolate:Pe,variable:"",imports:{_:wr}},wr.prototype=kr.prototype,wr.prototype.constructor=wr,Cr.prototype=xr(kr.prototype),Cr.prototype.constructor=Cr,Er.prototype=xr(kr.prototype),Er.prototype.constructor=Er,Tr.prototype.clear=Pr,Tr.prototype["delete"]=Mr,Tr.prototype.get=Nr,Tr.prototype.has=Ir,Tr.prototype.set=Rr,jr.prototype.clear=Fr,jr.prototype["delete"]=Lr,jr.prototype.get=Br,jr.prototype.has=Ur,jr.prototype.set=zr,Hr.prototype.clear=$r,Hr.prototype["delete"]=Vr,Hr.prototype.get=Wr,Hr.prototype.has=Xr,Hr.prototype.set=Gr,Yr.prototype.add=Yr.prototype.push=Kr,Yr.prototype.has=Jr,Zr.prototype.clear=Qr,Zr.prototype["delete"]=ei,Zr.prototype.get=ti,Zr.prototype.has=ni,Zr.prototype.set=ri;var _i=ca(Ti),xi=ca(Pi,!0);function Si(e,t){var n=!0;return _i(e,(function(e,r,i){return n=!!t(e,r,i),n})),n}function ki(e,t,n){var r=-1,i=e.length;while(++r<i){var a=e[r],s=t(a);if(null!=s&&(u===o?s===s&&!Lc(s):n(s,u)))var u=s,l=a}return l}function Ci(e,t,n,r){var i=e.length;n=Gc(n),n<0&&(n=-n>i?0:i+n),r=r===o||r>i?i:Gc(r),r<0&&(r+=i),r=n>r?0:Yc(r);while(n<r)e[n++]=t;return e}function Ei(e,t){var n=[];return _i(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Oi(e,t,n,r,i){var o=-1,a=e.length;n||(n=os),i||(i=[]);while(++o<a){var s=e[o];t>0&&n(s)?t>1?Oi(s,t-1,n,r,i):An(i,s):r||(i[i.length]=s)}return i}var Ai=fa(),Di=fa(!0);function Ti(e,t){return e&&Ai(e,t,xf)}function Pi(e,t){return e&&Di(e,t,xf)}function Mi(e,t){return kn(t,(function(t){return wc(e[t])}))}function Ni(e,t){t=$o(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[Ts(t[n++])];return n&&n==r?e:o}function Ii(e,t,n){var r=t(e);return uc(e)?r:An(r,n(e))}function Ri(e){return null==e?e===o?le:te:Ot&&Ot in nt(e)?Ga(e):bs(e)}function ji(e,t){return e>t}function Fi(e,t){return null!=e&&ft.call(e,t)}function Li(e,t){return null!=e&&t in nt(e)}function Bi(e,t,n){return e>=Ut(t,n)&&e<Bt(t,n)}function Ui(e,t,r){var i=r?En:Cn,a=e[0].length,s=e.length,u=s,l=n(s),c=1/0,f=[];while(u--){var d=e[u];u&&t&&(d=On(d,Kn(t))),c=Ut(d.length,c),l[u]=!r&&(t||a>=120&&d.length>=120)?new Yr(u&&d):o}d=e[0];var h=-1,p=l[0];e:while(++h<a&&f.length<c){var m=d[h],g=t?t(m):m;if(m=r||0!==m?m:0,!(p?Zn(p,g):i(f,g,r))){u=s;while(--u){var v=l[u];if(!(v?Zn(v,g):i(e[u],g,r)))continue e}p&&p.push(g),f.push(m)}}return f}function zi(e,t,n,r){return Ti(e,(function(e,i,o){t(r,n(e),i,o)})),r}function Hi(e,t,n){t=$o(t,e),e=ws(e,t);var r=null==e?e:e[Ts(ou(t))];return null==r?o:qn(r,e,n)}function $i(e){return kc(e)&&Ri(e)==$}function Vi(e){return kc(e)&&Ri(e)==de}function Wi(e){return kc(e)&&Ri(e)==G}function Xi(e,t,n,r,i){return e===t||(null==e||null==t||!kc(e)&&!kc(t)?e!==e&&t!==t:Gi(e,t,n,r,Xi,i))}function Gi(e,t,n,r,i,o){var a=uc(e),s=uc(t),u=a?V:Ja(e),l=s?V:Ja(t);u=u==$?ne:u,l=l==$?ne:l;var c=u==ne,f=l==ne,d=u==l;if(d&&hc(e)){if(!hc(t))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Zr),a||Bc(e)?Ia(e,t,n,r,i,o):Ra(e,t,u,n,r,i,o);if(!(n&v)){var h=c&&ft.call(e,"__wrapped__"),p=f&&ft.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,g=p?t.value():t;return o||(o=new Zr),i(m,g,n,r,o)}}return!!d&&(o||(o=new Zr),ja(e,t,n,r,i,o))}function Yi(e){return kc(e)&&Ja(e)==Q}function Ki(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;e=nt(e);while(i--){var u=n[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}while(++i<a){u=n[i];var l=u[0],c=e[l],f=u[1];if(s&&u[2]){if(c===o&&!(l in e))return!1}else{var d=new Zr;if(r)var h=r(c,f,l,e,t,d);if(!(h===o?Xi(f,c,v|y,r,d):h))return!1}}return!0}function Ji(e){if(!Sc(e)||fs(e))return!1;var t=wc(e)?vt:Ke;return t.test(Ps(e))}function Zi(e){return kc(e)&&Ri(e)==oe}function Qi(e){return kc(e)&&Ja(e)==ae}function eo(e){return kc(e)&&xc(e.length)&&!!Jt[Ri(e)]}function to(e){return"function"==typeof e?e:null==e?Td:"object"==typeof e?uc(e)?so(e[0],e[1]):ao(e):$d(e)}function no(e){if(!hs(e))return Lt(e);var t=[];for(var n in nt(e))ft.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ro(e){if(!Sc(e))return ys(e);var t=hs(e),n=[];for(var r in e)("constructor"!=r||!t&&ft.call(e,r))&&n.push(r);return n}function io(e,t){return e<t}function oo(e,t){var r=-1,i=cc(e)?n(e.length):[];return _i(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function ao(e){var t=Wa(e);return 1==t.length&&t[0][2]?ms(t[0][0],t[0][1]):function(n){return n===e||Ki(n,e,t)}}function so(e,t){return us(e)&&ps(t)?ms(Ts(e),t):function(n){var r=vf(n,e);return r===o&&r===t?bf(n,e):Xi(t,r,v|y)}}function uo(e,t,n,r,i){e!==t&&Ai(t,(function(a,s){if(i||(i=new Zr),Sc(a))lo(e,t,s,n,uo,r,i);else{var u=r?r(xs(e,s),a,s+"",e,t,i):o;u===o&&(u=a),ui(e,s,u)}}),Sf)}function lo(e,t,n,r,i,a,s){var u=xs(e,n),l=xs(t,n),c=s.get(l);if(c)ui(e,n,c);else{var f=a?a(u,l,n+"",e,t,s):o,d=f===o;if(d){var h=uc(l),p=!h&&hc(l),m=!h&&!p&&Bc(l);f=l,h||p||m?uc(u)?f=u:fc(u)?f=ia(u):p?(d=!1,f=Go(l,!0)):m?(d=!1,f=Qo(l,!0)):f=[]:Nc(l)||sc(l)?(f=u,sc(u)?f=Jc(u):Sc(u)&&!wc(u)||(f=ns(l))):d=!1}d&&(s.set(l,f),i(f,l,r,a,s),s["delete"](l)),ui(e,n,f)}}function co(e,t){var n=e.length;if(n)return t+=t<0?n:0,as(t,n)?e[t]:o}function fo(e,t,n){t=t.length?On(t,(function(e){return uc(e)?function(t){return Ni(t,1===e.length?e[0]:e)}:e})):[Td];var r=-1;t=On(t,Kn($a()));var i=oo(e,(function(e,n,i){var o=On(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return Vn(i,(function(e,t){return ta(e,t,n)}))}function ho(e,t){return po(e,t,(function(t,n){return bf(e,n)}))}function po(e,t,n){var r=-1,i=t.length,o={};while(++r<i){var a=t[r],s=Ni(e,a);n(s,a)&&So(o,$o(a,e),s)}return o}function mo(e){return function(t){return Ni(t,e)}}function go(e,t,n,r){var i=r?Ln:Fn,o=-1,a=t.length,s=e;e===t&&(t=ia(t)),n&&(s=On(e,Kn(n)));while(++o<a){var u=0,l=t[o],c=n?n(l):l;while((u=i(s,c,u,r))>-1)s!==e&&kt.call(s,u,1),kt.call(e,u,1)}return e}function vo(e,t){var n=e?t.length:0,r=n-1;while(n--){var i=t[n];if(n==r||i!==o){var o=i;as(i)?kt.call(e,i,1):Ro(e,i)}}return e}function yo(e,t){return e+Nt(Wt()*(t-e+1))}function bo(e,t,r,i){var o=-1,a=Bt(Mt((t-e)/(r||1)),0),s=n(a);while(a--)s[i?a:++o]=e,e+=r;return s}function qo(e,t){var n="";if(!e||t<1||t>j)return n;do{t%2&&(n+=e),t=Nt(t/2),t&&(e+=e)}while(t);return n}function wo(e,t){return Cs(qs(e,t,Td),e+"")}function _o(e){return oi(zf(e))}function xo(e,t){var n=zf(e);return As(n,gi(t,0,n.length))}function So(e,t,n,r){if(!Sc(e))return e;t=$o(t,e);var i=-1,a=t.length,s=a-1,u=e;while(null!=u&&++i<a){var l=Ts(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=s){var f=u[l];c=r?r(f,l,u):o,c===o&&(c=Sc(f)?f:as(t[i+1])?[]:{})}li(u,l,c),u=u[l]}return e}var ko=sn?function(e,t){return sn.set(e,t),e}:Td,Co=At?function(e,t){return At(e,"toString",{configurable:!0,enumerable:!1,value:Ed(t),writable:!0})}:Td;function Eo(e){return As(zf(e))}function Oo(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;var a=n(o);while(++i<o)a[i]=e[i+t];return a}function Ao(e,t){var n;return _i(e,(function(e,r,i){return n=t(e,r,i),!n})),!!n}function Do(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=z){while(r<i){var o=r+i>>>1,a=e[o];null!==a&&!Lc(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return To(e,t,Td,n)}function To(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;t=n(t);var s=t!==t,u=null===t,l=Lc(t),c=t===o;while(i<a){var f=Nt((i+a)/2),d=n(e[f]),h=d!==o,p=null===d,m=d===d,g=Lc(d);if(s)var v=r||m;else v=c?m&&(r||h):u?m&&h&&(r||!p):l?m&&h&&!p&&(r||!g):!p&&!g&&(r?d<=t:d<t);v?i=f+1:a=f}return Ut(a,U)}function Po(e,t){var n=-1,r=e.length,i=0,o=[];while(++n<r){var a=e[n],s=t?t(a):a;if(!n||!ic(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function Mo(e){return"number"==typeof e?e:Lc(e)?L:+e}function No(e){if("string"==typeof e)return e;if(uc(e))return On(e,No)+"";if(Lc(e))return qr?qr.call(e):"";var t=e+"";return"0"==t&&1/e==-R?"-0":t}function Io(e,t,n){var r=-1,i=Cn,o=e.length,a=!0,u=[],l=u;if(n)a=!1,i=En;else if(o>=s){var c=t?null:Aa(e);if(c)return dr(c);a=!1,i=Zn,l=new Yr}else l=t?[]:u;e:while(++r<o){var f=e[r],d=t?t(f):f;if(f=n||0!==f?f:0,a&&d===d){var h=l.length;while(h--)if(l[h]===d)continue e;t&&l.push(d),u.push(f)}else i(l,d,n)||(l!==u&&l.push(d),u.push(f))}return u}function Ro(e,t){return t=$o(t,e),e=ws(e,t),null==e||delete e[Ts(ou(t))]}function jo(e,t,n,r){return So(e,t,n(Ni(e,t)),r)}function Fo(e,t,n,r){var i=e.length,o=r?i:-1;while((r?o--:++o<i)&&t(e[o],o,e));return n?Oo(e,r?0:o,r?o+1:i):Oo(e,r?o+1:0,r?i:o)}function Lo(e,t){var n=e;return n instanceof Er&&(n=n.value()),Dn(t,(function(e,t){return t.func.apply(t.thisArg,An([e],t.args))}),n)}function Bo(e,t,r){var i=e.length;if(i<2)return i?Io(e[0]):[];var o=-1,a=n(i);while(++o<i){var s=e[o],u=-1;while(++u<i)u!=o&&(a[o]=wi(a[o]||s,e[u],t,r))}return Io(Oi(a,1),t,r)}function Uo(e,t,n){var r=-1,i=e.length,a=t.length,s={};while(++r<i){var u=r<a?t[r]:o;n(s,e[r],u)}return s}function zo(e){return fc(e)?e:[]}function Ho(e){return"function"==typeof e?e:Td}function $o(e,t){return uc(e)?e:us(e,t)?[e]:Ds(Qc(e))}var Vo=wo;function Wo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:Oo(e,t,n)}var Xo=Dt||function(e){return un.clearTimeout(e)};function Go(e,t){if(t)return e.slice();var n=e.length,r=wt?wt(n):new e.constructor(n);return e.copy(r),r}function Yo(e){var t=new e.constructor(e.byteLength);return new qt(t).set(new qt(e)),t}function Ko(e,t){var n=t?Yo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Jo(e){var t=new e.constructor(e.source,Xe.exec(e));return t.lastIndex=e.lastIndex,t}function Zo(e){return pr?nt(pr.call(e)):{}}function Qo(e,t){var n=t?Yo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,a=Lc(e),s=t!==o,u=null===t,l=t===t,c=Lc(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||u&&n&&i||!s&&i||!l)return-1}return 0}function ta(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;while(++r<a){var u=ea(i[r],o[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.index-t.index}function na(e,t,r,i){var o=-1,a=e.length,s=r.length,u=-1,l=t.length,c=Bt(a-s,0),f=n(l+c),d=!i;while(++u<l)f[u]=t[u];while(++o<s)(d||o<a)&&(f[r[o]]=e[o]);while(c--)f[u++]=e[o++];return f}function ra(e,t,r,i){var o=-1,a=e.length,s=-1,u=r.length,l=-1,c=t.length,f=Bt(a-u,0),d=n(f+c),h=!i;while(++o<f)d[o]=e[o];var p=o;while(++l<c)d[p+l]=t[l];while(++s<u)(h||o<a)&&(d[p+r[s]]=e[o++]);return d}function ia(e,t){var r=-1,i=e.length;t||(t=n(i));while(++r<i)t[r]=e[r];return t}function oa(e,t,n,r){var i=!n;n||(n={});var a=-1,s=t.length;while(++a<s){var u=t[a],l=r?r(n[u],e[u],u,n,e):o;l===o&&(l=e[u]),i?pi(n,u,l):li(n,u,l)}return n}function aa(e,t){return oa(e,Ya(e),t)}function sa(e,t){return oa(e,Ka(e),t)}function ua(e,t){return function(n,r){var i=uc(n)?wn:fi,o=t?t():{};return i(n,e,$a(r,2),o)}}function la(e){return wo((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;a=e.length>3&&"function"==typeof a?(i--,a):o,s&&ss(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=nt(t);while(++r<i){var u=n[r];u&&e(t,u,r,a)}return t}))}function ca(e,t){return function(n,r){if(null==n)return n;if(!cc(n))return e(n,r);var i=n.length,o=t?i:-1,a=nt(n);while(t?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}function fa(e){return function(t,n,r){var i=-1,o=nt(t),a=r(t),s=a.length;while(s--){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function da(e,t,n){var r=t&b,i=ma(e);function o(){var t=this&&this!==un&&this instanceof o?i:e;return t.apply(r?n:this,arguments)}return o}function ha(e){return function(t){t=Qc(t);var n=ar(t)?vr(t):o,r=n?n[0]:t.charAt(0),i=n?Wo(n,1).join(""):t.slice(1);return r[e]()+i}}function pa(e){return function(t){return Dn(_d(Yf(t).replace(Ht,"")),e,"")}}function ma(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=xr(e.prototype),r=e.apply(n,t);return Sc(r)?r:n}}function ga(e,t,r){var i=ma(e);function a(){var s=arguments.length,u=n(s),l=s,c=Ha(a);while(l--)u[l]=arguments[l];var f=s<3&&u[0]!==c&&u[s-1]!==c?[]:fr(u,c);if(s-=f.length,s<r)return Ea(e,t,ba,a.placeholder,o,u,f,o,o,r-s);var d=this&&this!==un&&this instanceof a?i:e;return qn(d,this,u)}return a}function va(e){return function(t,n,r){var i=nt(t);if(!cc(t)){var a=$a(n,3);t=xf(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function ya(e){return Fa((function(t){var n=t.length,r=n,i=Cr.prototype.thru;e&&t.reverse();while(r--){var a=t[r];if("function"!=typeof a)throw new ot(l);if(i&&!s&&"wrapper"==za(a))var s=new Cr([],!0)}r=s?r:n;while(++r<n){a=t[r];var u=za(a),c="wrapper"==u?Ua(a):o;s=c&&cs(c[0])&&c[1]==(C|_|S|E)&&!c[4].length&&1==c[9]?s[za(c[0])].apply(s,c[3]):1==a.length&&cs(a)?s[u]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&uc(r))return s.plant(r).value();var i=0,o=n?t[i].apply(this,e):r;while(++i<n)o=t[i].call(this,o);return o}}))}function ba(e,t,r,i,a,s,u,l,c,f){var d=t&C,h=t&b,p=t&q,m=t&(_|x),g=t&O,v=p?o:ma(e);function y(){var o=arguments.length,b=n(o),q=o;while(q--)b[q]=arguments[q];if(m)var w=Ha(y),_=tr(b,w);if(i&&(b=na(b,i,a,m)),s&&(b=ra(b,s,u,m)),o-=_,m&&o<f){var x=fr(b,w);return Ea(e,t,ba,y.placeholder,r,b,x,l,c,f-o)}var S=h?r:this,k=p?S[e]:e;return o=b.length,l?b=_s(b,l):g&&o>1&&b.reverse(),d&&c<o&&(b.length=c),this&&this!==un&&this instanceof y&&(k=v||ma(k)),k.apply(S,b)}return y}function qa(e,t){return function(n,r){return zi(n,e,t(r),{})}}function wa(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=No(n),r=No(r)):(n=Mo(n),r=Mo(r)),i=e(n,r)}return i}}function _a(e){return Fa((function(t){return t=On(t,Kn($a())),wo((function(n){var r=this;return e(t,(function(e){return qn(e,r,n)}))}))}))}function xa(e,t){t=t===o?" ":No(t);var n=t.length;if(n<2)return n?qo(t,e):t;var r=qo(t,Mt(e/gr(t)));return ar(t)?Wo(vr(r),0,e).join(""):r.slice(0,e)}function Sa(e,t,r,i){var o=t&b,a=ma(e);function s(){var t=-1,u=arguments.length,l=-1,c=i.length,f=n(c+u),d=this&&this!==un&&this instanceof s?a:e;while(++l<c)f[l]=i[l];while(u--)f[l++]=arguments[++t];return qn(d,o?r:this,f)}return s}function ka(e){return function(t,n,r){return r&&"number"!=typeof r&&ss(t,n,r)&&(n=r=o),t=Xc(t),n===o?(n=t,t=0):n=Xc(n),r=r===o?t<n?1:-1:Xc(r),bo(t,n,r,e)}}function Ca(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Kc(t),n=Kc(n)),e(t,n)}}function Ea(e,t,n,r,i,a,s,u,l,c){var f=t&_,d=f?s:o,h=f?o:s,p=f?a:o,m=f?o:a;t|=f?S:k,t&=~(f?k:S),t&w||(t&=~(b|q));var g=[e,t,i,p,d,m,h,u,l,c],v=n.apply(o,g);return cs(e)&&Ss(v,g),v.placeholder=r,Es(v,e,t)}function Oa(e){var t=He[e];return function(e,n){if(e=Kc(e),n=null==n?0:Ut(Gc(n),292),n&&jt(e)){var r=(Qc(e)+"e").split("e"),i=t(r[0]+"e"+(+r[1]+n));return r=(Qc(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}var Aa=tn&&1/dr(new tn([,-0]))[1]==R?function(e){return new tn(e)}:Ld;function Da(e){return function(t){var n=Ja(t);return n==Q?lr(t):n==ae?hr(t):Gn(t,e(t))}}function Ta(e,t,n,r,i,a,s,u){var c=t&q;if(!c&&"function"!=typeof e)throw new ot(l);var f=r?r.length:0;if(f||(t&=~(S|k),r=i=o),s=s===o?s:Bt(Gc(s),0),u=u===o?u:Gc(u),f-=i?i.length:0,t&k){var d=r,h=i;r=i=o}var p=c?o:Ua(e),m=[e,t,n,r,i,d,h,a,s,u];if(p&&vs(m,p),e=m[0],t=m[1],n=m[2],r=m[3],i=m[4],u=m[9]=m[9]===o?c?0:e.length:Bt(m[9]-f,0),!u&&t&(_|x)&&(t&=~(_|x)),t&&t!=b)g=t==_||t==x?ga(e,t,u):t!=S&&t!=(b|S)||i.length?ba.apply(o,m):Sa(e,t,n,r);else var g=da(e,t,n);var v=p?ko:Ss;return Es(v(g,m),e,t)}function Pa(e,t,n,r){return e===o||ic(e,ut[n])&&!ft.call(r,n)?t:e}function Ma(e,t,n,r,i,a){return Sc(e)&&Sc(t)&&(a.set(t,e),uo(e,t,o,Ma,a),a["delete"](t)),e}function Na(e){return Nc(e)?o:e}function Ia(e,t,n,r,i,a){var s=n&v,u=e.length,l=t.length;if(u!=l&&!(s&&l>u))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,h=!0,p=n&y?new Yr:o;a.set(e,t),a.set(t,e);while(++d<u){var m=e[d],g=t[d];if(r)var b=s?r(g,m,d,t,e,a):r(m,g,d,e,t,a);if(b!==o){if(b)continue;h=!1;break}if(p){if(!Pn(t,(function(e,t){if(!Zn(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(m!==g&&!i(m,g,n,r,a)){h=!1;break}}return a["delete"](e),a["delete"](t),h}function Ra(e,t,n,r,i,o,a){switch(n){case he:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case de:return!(e.byteLength!=t.byteLength||!o(new qt(e),new qt(t)));case X:case G:case ee:return ic(+e,+t);case K:return e.name==t.name&&e.message==t.message;case oe:case se:return e==t+"";case Q:var s=lr;case ae:var u=r&v;if(s||(s=dr),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=y,a.set(e,t);var c=Ia(s(e),s(t),r,i,o,a);return a["delete"](e),c;case ue:if(pr)return pr.call(e)==pr.call(t)}return!1}function ja(e,t,n,r,i,a){var s=n&v,u=La(e),l=u.length,c=La(t),f=c.length;if(l!=f&&!s)return!1;var d=l;while(d--){var h=u[d];if(!(s?h in t:ft.call(t,h)))return!1}var p=a.get(e),m=a.get(t);if(p&&m)return p==t&&m==e;var g=!0;a.set(e,t),a.set(t,e);var y=s;while(++d<l){h=u[d];var b=e[h],q=t[h];if(r)var w=s?r(q,b,h,t,e,a):r(b,q,h,e,t,a);if(!(w===o?b===q||i(b,q,n,r,a):w)){g=!1;break}y||(y="constructor"==h)}if(g&&!y){var _=e.constructor,x=t.constructor;_==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x||(g=!1)}return a["delete"](e),a["delete"](t),g}function Fa(e){return Cs(qs(e,o,Gs),e+"")}function La(e){return Ii(e,xf,Ya)}function Ba(e){return Ii(e,Sf,Ka)}var Ua=sn?function(e){return sn.get(e)}:Ld;function za(e){var t=e.name+"",n=ln[t],r=ft.call(ln,t)?n.length:0;while(r--){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Ha(e){var t=ft.call(wr,"placeholder")?wr:e;return t.placeholder}function $a(){var e=wr.iteratee||Pd;return e=e===Pd?to:e,arguments.length?e(arguments[0],arguments[1]):e}function Va(e,t){var n=e.__data__;return ls(t)?n["string"==typeof t?"string":"hash"]:n.map}function Wa(e){var t=xf(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,ps(i)]}return t}function Xa(e,t){var n=or(e,t);return Ji(n)?n:o}function Ga(e){var t=ft.call(e,Ot),n=e[Ot];try{e[Ot]=o;var r=!0}catch(a){}var i=pt.call(e);return r&&(t?e[Ot]=n:delete e[Ot]),i}var Ya=It?function(e){return null==e?[]:(e=nt(e),kn(It(e),(function(t){return St.call(e,t)})))}:Gd,Ka=It?function(e){var t=[];while(e)An(t,Ya(e)),e=_t(e);return t}:Gd,Ja=Ri;function Za(e,t,n){var r=-1,i=n.length;while(++r<i){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Ut(t,e+a);break;case"takeRight":e=Bt(e,t-a);break}}return{start:e,end:t}}function Qa(e){var t=e.match(Ue);return t?t[1].split(ze):[]}function es(e,t,n){t=$o(t,e);var r=-1,i=t.length,o=!1;while(++r<i){var a=Ts(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=null==e?0:e.length,!!i&&xc(i)&&as(a,i)&&(uc(e)||sc(e)))}function ts(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ft.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ns(e){return"function"!=typeof e.constructor||hs(e)?{}:xr(_t(e))}function rs(e,t,n){var r=e.constructor;switch(t){case de:return Yo(e);case X:case G:return new r(+e);case he:return Ko(e,n);case pe:case me:case ge:case ve:case ye:case be:case qe:case we:case _e:return Qo(e,n);case Q:return new r;case ee:case se:return new r(e);case oe:return Jo(e);case ae:return new r;case ue:return Zo(e)}}function is(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Be,"{\n/* [wrapped with "+t+"] */\n")}function os(e){return uc(e)||sc(e)||!!(Ct&&e&&e[Ct])}function as(e,t){var n=typeof e;return t=null==t?j:t,!!t&&("number"==n||"symbol"!=n&&Ze.test(e))&&e>-1&&e%1==0&&e<t}function ss(e,t,n){if(!Sc(n))return!1;var r=typeof t;return!!("number"==r?cc(n)&&as(t,n.length):"string"==r&&t in n)&&ic(n[t],e)}function us(e,t){if(uc(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Lc(e))||(Ne.test(e)||!Me.test(e)||null!=t&&e in nt(t))}function ls(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function cs(e){var t=za(e),n=wr[t];if("function"!=typeof n||!(t in Er.prototype))return!1;if(e===n)return!0;var r=Ua(n);return!!r&&e===r[0]}function fs(e){return!!ht&&ht in e}(Gt&&Ja(new Gt(new ArrayBuffer(1)))!=he||Qt&&Ja(new Qt)!=Q||en&&Ja(en.resolve())!=re||tn&&Ja(new tn)!=ae||nn&&Ja(new nn)!=ce)&&(Ja=function(e){var t=Ri(e),n=t==ne?e.constructor:o,r=n?Ps(n):"";if(r)switch(r){case cn:return he;case dn:return Q;case hn:return re;case Mn:return ae;case Nn:return ce}return t});var ds=lt?wc:Yd;function hs(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||ut;return e===n}function ps(e){return e===e&&!Sc(e)}function ms(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in nt(n)))}}function gs(e){var t=Bl(e,(function(e){return n.size===d&&n.clear(),e})),n=t.cache;return t}function vs(e,t){var n=e[1],r=t[1],i=n|r,o=i<(b|q|C),a=r==C&&n==_||r==C&&n==E&&e[7].length<=t[8]||r==(C|E)&&t[7].length<=t[8]&&n==_;if(!o&&!a)return e;r&b&&(e[2]=t[2],i|=n&b?0:w);var s=t[3];if(s){var u=e[3];e[3]=u?na(u,s,t[4]):s,e[4]=u?fr(e[3],h):t[4]}return s=t[5],s&&(u=e[5],e[5]=u?ra(u,s,t[6]):s,e[6]=u?fr(e[5],h):t[6]),s=t[7],s&&(e[7]=s),r&C&&(e[8]=null==e[8]?t[8]:Ut(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function ys(e){var t=[];if(null!=e)for(var n in nt(e))t.push(n);return t}function bs(e){return pt.call(e)}function qs(e,t,r){return t=Bt(t===o?e.length-1:t,0),function(){var i=arguments,o=-1,a=Bt(i.length-t,0),s=n(a);while(++o<a)s[o]=i[t+o];o=-1;var u=n(t+1);while(++o<t)u[o]=i[o];return u[t]=r(s),qn(e,this,u)}}function ws(e,t){return t.length<2?e:Ni(e,Oo(t,0,-1))}function _s(e,t){var n=e.length,r=Ut(t.length,n),i=ia(e);while(r--){var a=t[r];e[r]=as(a,n)?i[a]:o}return e}function xs(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Ss=Os(ko),ks=Pt||function(e,t){return un.setTimeout(e,t)},Cs=Os(Co);function Es(e,t,n){var r=t+"";return Cs(e,is(r,Ms(Qa(r),n)))}function Os(e){var t=0,n=0;return function(){var r=zt(),i=P-(r-n);if(n=r,i>0){if(++t>=T)return arguments[0]}else t=0;return e.apply(o,arguments)}}function As(e,t){var n=-1,r=e.length,i=r-1;t=t===o?r:t;while(++n<t){var a=yo(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Ds=gs((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ie,(function(e,n,r,i){t.push(r?i.replace(Ve,"$1"):n||e)})),t}));function Ts(e){if("string"==typeof e||Lc(e))return e;var t=e+"";return"0"==t&&1/e==-R?"-0":t}function Ps(e){if(null!=e){try{return ct.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ms(e,t){return _n(H,(function(n){var r="_."+n[0];t&n[1]&&!Cn(e,r)&&e.push(r)})),e.sort()}function Ns(e){if(e instanceof Er)return e.clone();var t=new Cr(e.__wrapped__,e.__chain__);return t.__actions__=ia(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Is(e,t,r){t=(r?ss(e,t,r):t===o)?1:Bt(Gc(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];var a=0,s=0,u=n(Mt(i/t));while(a<i)u[s++]=Oo(e,a,a+=t);return u}function Rs(e){var t=-1,n=null==e?0:e.length,r=0,i=[];while(++t<n){var o=e[t];o&&(i[r++]=o)}return i}function js(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],i=e;while(i--)t[i-1]=arguments[i];return An(uc(r)?ia(r):[r],Oi(t,1))}var Fs=wo((function(e,t){return fc(e)?wi(e,Oi(t,1,fc,!0)):[]})),Ls=wo((function(e,t){var n=ou(t);return fc(n)&&(n=o),fc(e)?wi(e,Oi(t,1,fc,!0),$a(n,2)):[]})),Bs=wo((function(e,t){var n=ou(t);return fc(n)&&(n=o),fc(e)?wi(e,Oi(t,1,fc,!0),o,n):[]}));function Us(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Gc(t),Oo(e,t<0?0:t,r)):[]}function zs(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Gc(t),t=r-t,Oo(e,0,t<0?0:t)):[]}function Hs(e,t){return e&&e.length?Fo(e,$a(t,3),!0,!0):[]}function $s(e,t){return e&&e.length?Fo(e,$a(t,3),!0):[]}function Vs(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ss(e,t,n)&&(n=0,r=i),Ci(e,t,n,r)):[]}function Ws(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Gc(n);return i<0&&(i=Bt(r+i,0)),jn(e,$a(t,3),i)}function Xs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=Gc(n),i=n<0?Bt(r+i,0):Ut(i,r-1)),jn(e,$a(t,3),i,!0)}function Gs(e){var t=null==e?0:e.length;return t?Oi(e,1):[]}function Ys(e){var t=null==e?0:e.length;return t?Oi(e,R):[]}function Ks(e,t){var n=null==e?0:e.length;return n?(t=t===o?1:Gc(t),Oi(e,t)):[]}function Js(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var i=e[t];r[i[0]]=i[1]}return r}function Zs(e){return e&&e.length?e[0]:o}function Qs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Gc(n);return i<0&&(i=Bt(r+i,0)),Fn(e,t,i)}function eu(e){var t=null==e?0:e.length;return t?Oo(e,0,-1):[]}var tu=wo((function(e){var t=On(e,zo);return t.length&&t[0]===e[0]?Ui(t):[]})),nu=wo((function(e){var t=ou(e),n=On(e,zo);return t===ou(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Ui(n,$a(t,2)):[]})),ru=wo((function(e){var t=ou(e),n=On(e,zo);return t="function"==typeof t?t:o,t&&n.pop(),n.length&&n[0]===e[0]?Ui(n,o,t):[]}));function iu(e,t){return null==e?"":Ft.call(e,t)}function ou(e){var t=null==e?0:e.length;return t?e[t-1]:o}function au(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=Gc(n),i=i<0?Bt(r+i,0):Ut(i,r-1)),t===t?mr(e,t,i):jn(e,Bn,i,!0)}function su(e,t){return e&&e.length?co(e,Gc(t)):o}var uu=wo(lu);function lu(e,t){return e&&e.length&&t&&t.length?go(e,t):e}function cu(e,t,n){return e&&e.length&&t&&t.length?go(e,t,$a(n,2)):e}function fu(e,t,n){return e&&e.length&&t&&t.length?go(e,t,o,n):e}var du=Fa((function(e,t){var n=null==e?0:e.length,r=mi(e,t);return vo(e,On(t,(function(e){return as(e,n)?+e:e})).sort(ea)),r}));function hu(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;t=$a(t,3);while(++r<o){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return vo(e,i),n}function pu(e){return null==e?e:Xt.call(e)}function mu(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ss(e,t,n)?(t=0,n=r):(t=null==t?0:Gc(t),n=n===o?r:Gc(n)),Oo(e,t,n)):[]}function gu(e,t){return Do(e,t)}function vu(e,t,n){return To(e,t,$a(n,2))}function yu(e,t){var n=null==e?0:e.length;if(n){var r=Do(e,t);if(r<n&&ic(e[r],t))return r}return-1}function bu(e,t){return Do(e,t,!0)}function qu(e,t,n){return To(e,t,$a(n,2),!0)}function wu(e,t){var n=null==e?0:e.length;if(n){var r=Do(e,t,!0)-1;if(ic(e[r],t))return r}return-1}function _u(e){return e&&e.length?Po(e):[]}function xu(e,t){return e&&e.length?Po(e,$a(t,2)):[]}function Su(e){var t=null==e?0:e.length;return t?Oo(e,1,t):[]}function ku(e,t,n){return e&&e.length?(t=n||t===o?1:Gc(t),Oo(e,0,t<0?0:t)):[]}function Cu(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Gc(t),t=r-t,Oo(e,t<0?0:t,r)):[]}function Eu(e,t){return e&&e.length?Fo(e,$a(t,3),!1,!0):[]}function Ou(e,t){return e&&e.length?Fo(e,$a(t,3)):[]}var Au=wo((function(e){return Io(Oi(e,1,fc,!0))})),Du=wo((function(e){var t=ou(e);return fc(t)&&(t=o),Io(Oi(e,1,fc,!0),$a(t,2))})),Tu=wo((function(e){var t=ou(e);return t="function"==typeof t?t:o,Io(Oi(e,1,fc,!0),o,t)}));function Pu(e){return e&&e.length?Io(e):[]}function Mu(e,t){return e&&e.length?Io(e,$a(t,2)):[]}function Nu(e,t){return t="function"==typeof t?t:o,e&&e.length?Io(e,o,t):[]}function Iu(e){if(!e||!e.length)return[];var t=0;return e=kn(e,(function(e){if(fc(e))return t=Bt(e.length,t),!0})),Xn(t,(function(t){return On(e,zn(t))}))}function Ru(e,t){if(!e||!e.length)return[];var n=Iu(e);return null==t?n:On(n,(function(e){return qn(t,o,e)}))}var ju=wo((function(e,t){return fc(e)?wi(e,t):[]})),Fu=wo((function(e){return Bo(kn(e,fc))})),Lu=wo((function(e){var t=ou(e);return fc(t)&&(t=o),Bo(kn(e,fc),$a(t,2))})),Bu=wo((function(e){var t=ou(e);return t="function"==typeof t?t:o,Bo(kn(e,fc),o,t)})),Uu=wo(Iu);function zu(e,t){return Uo(e||[],t||[],li)}function Hu(e,t){return Uo(e||[],t||[],So)}var $u=wo((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,Ru(e,n)}));function Vu(e){var t=wr(e);return t.__chain__=!0,t}function Wu(e,t){return t(e),e}function Xu(e,t){return t(e)}var Gu=Fa((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return mi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Er&&as(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Xu,args:[i],thisArg:o}),new Cr(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));function Yu(){return Vu(this)}function Ku(){return new Cr(this.value(),this.__chain__)}function Ju(){this.__values__===o&&(this.__values__=Wc(this.value()));var e=this.__index__>=this.__values__.length,t=e?o:this.__values__[this.__index__++];return{done:e,value:t}}function Zu(){return this}function Qu(e){var t,n=this;while(n instanceof kr){var r=Ns(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function el(){var e=this.__wrapped__;if(e instanceof Er){var t=e;return this.__actions__.length&&(t=new Er(this)),t=t.reverse(),t.__actions__.push({func:Xu,args:[pu],thisArg:o}),new Cr(t,this.__chain__)}return this.thru(pu)}function tl(){return Lo(this.__wrapped__,this.__actions__)}var nl=ua((function(e,t,n){ft.call(e,n)?++e[n]:pi(e,n,1)}));function rl(e,t,n){var r=uc(e)?Sn:Si;return n&&ss(e,t,n)&&(t=o),r(e,$a(t,3))}function il(e,t){var n=uc(e)?kn:Ei;return n(e,$a(t,3))}var ol=va(Ws),al=va(Xs);function sl(e,t){return Oi(gl(e,t),1)}function ul(e,t){return Oi(gl(e,t),R)}function ll(e,t,n){return n=n===o?1:Gc(n),Oi(gl(e,t),n)}function cl(e,t){var n=uc(e)?_n:_i;return n(e,$a(t,3))}function fl(e,t){var n=uc(e)?xn:xi;return n(e,$a(t,3))}var dl=ua((function(e,t,n){ft.call(e,n)?e[n].push(t):pi(e,n,[t])}));function hl(e,t,n,r){e=cc(e)?e:zf(e),n=n&&!r?Gc(n):0;var i=e.length;return n<0&&(n=Bt(i+n,0)),Fc(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Fn(e,t,n)>-1}var pl=wo((function(e,t,r){var i=-1,o="function"==typeof t,a=cc(e)?n(e.length):[];return _i(e,(function(e){a[++i]=o?qn(t,e,r):Hi(e,t,r)})),a})),ml=ua((function(e,t,n){pi(e,n,t)}));function gl(e,t){var n=uc(e)?On:oo;return n(e,$a(t,3))}function vl(e,t,n,r){return null==e?[]:(uc(t)||(t=null==t?[]:[t]),n=r?o:n,uc(n)||(n=null==n?[]:[n]),fo(e,t,n))}var yl=ua((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function bl(e,t,n){var r=uc(e)?Dn:$n,i=arguments.length<3;return r(e,$a(t,4),n,i,_i)}function ql(e,t,n){var r=uc(e)?Tn:$n,i=arguments.length<3;return r(e,$a(t,4),n,i,xi)}function wl(e,t){var n=uc(e)?kn:Ei;return n(e,Ul($a(t,3)))}function _l(e){var t=uc(e)?oi:_o;return t(e)}function xl(e,t,n){t=(n?ss(e,t,n):t===o)?1:Gc(t);var r=uc(e)?ai:xo;return r(e,t)}function Sl(e){var t=uc(e)?si:Eo;return t(e)}function kl(e){if(null==e)return 0;if(cc(e))return Fc(e)?gr(e):e.length;var t=Ja(e);return t==Q||t==ae?e.size:no(e).length}function Cl(e,t,n){var r=uc(e)?Pn:Ao;return n&&ss(e,t,n)&&(t=o),r(e,$a(t,3))}var El=wo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ss(e,t[0],t[1])?t=[]:n>2&&ss(t[0],t[1],t[2])&&(t=[t[0]]),fo(e,Oi(t,1),[])})),Ol=Tt||function(){return un.Date.now()};function Al(e,t){if("function"!=typeof t)throw new ot(l);return e=Gc(e),function(){if(--e<1)return t.apply(this,arguments)}}function Dl(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Ta(e,C,o,o,o,o,t)}function Tl(e,t){var n;if("function"!=typeof t)throw new ot(l);return e=Gc(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Pl=wo((function(e,t,n){var r=b;if(n.length){var i=fr(n,Ha(Pl));r|=S}return Ta(e,r,t,n,i)})),Ml=wo((function(e,t,n){var r=b|q;if(n.length){var i=fr(n,Ha(Ml));r|=S}return Ta(t,r,e,n,i)}));function Nl(e,t,n){t=n?o:t;var r=Ta(e,_,o,o,o,o,o,t);return r.placeholder=Nl.placeholder,r}function Il(e,t,n){t=n?o:t;var r=Ta(e,x,o,o,o,o,o,t);return r.placeholder=Il.placeholder,r}function Rl(e,t,n){var r,i,a,s,u,c,f=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new ot(l);function m(t){var n=r,a=i;return r=i=o,f=t,s=e.apply(a,n),s}function g(e){return f=e,u=ks(b,t),d?m(e):s}function v(e){var n=e-c,r=e-f,i=t-n;return h?Ut(i,a-r):i}function y(e){var n=e-c,r=e-f;return c===o||n>=t||n<0||h&&r>=a}function b(){var e=Ol();if(y(e))return q(e);u=ks(b,v(e))}function q(e){return u=o,p&&r?m(e):(r=i=o,s)}function w(){u!==o&&Xo(u),f=0,r=c=i=u=o}function _(){return u===o?s:q(Ol())}function x(){var e=Ol(),n=y(e);if(r=arguments,i=this,c=e,n){if(u===o)return g(c);if(h)return Xo(u),u=ks(b,t),m(c)}return u===o&&(u=ks(b,t)),s}return t=Kc(t)||0,Sc(n)&&(d=!!n.leading,h="maxWait"in n,a=h?Bt(Kc(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),x.cancel=w,x.flush=_,x}var jl=wo((function(e,t){return qi(e,1,t)})),Fl=wo((function(e,t,n){return qi(e,Kc(t)||0,n)}));function Ll(e){return Ta(e,O)}function Bl(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(l);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Bl.Cache||Hr),n}function Ul(e){if("function"!=typeof e)throw new ot(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function zl(e){return Tl(2,e)}Bl.Cache=Hr;var Hl=Vo((function(e,t){t=1==t.length&&uc(t[0])?On(t[0],Kn($a())):On(Oi(t,1),Kn($a()));var n=t.length;return wo((function(r){var i=-1,o=Ut(r.length,n);while(++i<o)r[i]=t[i].call(this,r[i]);return qn(e,this,r)}))})),$l=wo((function(e,t){var n=fr(t,Ha($l));return Ta(e,S,o,t,n)})),Vl=wo((function(e,t){var n=fr(t,Ha(Vl));return Ta(e,k,o,t,n)})),Wl=Fa((function(e,t){return Ta(e,E,o,o,o,t)}));function Xl(e,t){if("function"!=typeof e)throw new ot(l);return t=t===o?t:Gc(t),wo(e,t)}function Gl(e,t){if("function"!=typeof e)throw new ot(l);return t=null==t?0:Bt(Gc(t),0),wo((function(n){var r=n[t],i=Wo(n,0,t);return r&&An(i,r),qn(e,this,i)}))}function Yl(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ot(l);return Sc(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Rl(e,t,{leading:r,maxWait:t,trailing:i})}function Kl(e){return Dl(e,1)}function Jl(e,t){return $l(Ho(t),e)}function Zl(){if(!arguments.length)return[];var e=arguments[0];return uc(e)?e:[e]}function Ql(e){return vi(e,g)}function ec(e,t){return t="function"==typeof t?t:o,vi(e,g,t)}function tc(e){return vi(e,p|g)}function nc(e,t){return t="function"==typeof t?t:o,vi(e,p|g,t)}function rc(e,t){return null==t||bi(e,t,xf(t))}function ic(e,t){return e===t||e!==e&&t!==t}var oc=Ca(ji),ac=Ca((function(e,t){return e>=t})),sc=$i(function(){return arguments}())?$i:function(e){return kc(e)&&ft.call(e,"callee")&&!St.call(e,"callee")},uc=n.isArray,lc=pn?Kn(pn):Vi;function cc(e){return null!=e&&xc(e.length)&&!wc(e)}function fc(e){return kc(e)&&cc(e)}function dc(e){return!0===e||!1===e||kc(e)&&Ri(e)==X}var hc=Rt||Yd,pc=mn?Kn(mn):Wi;function mc(e){return kc(e)&&1===e.nodeType&&!Nc(e)}function gc(e){if(null==e)return!0;if(cc(e)&&(uc(e)||"string"==typeof e||"function"==typeof e.splice||hc(e)||Bc(e)||sc(e)))return!e.length;var t=Ja(e);if(t==Q||t==ae)return!e.size;if(hs(e))return!no(e).length;for(var n in e)if(ft.call(e,n))return!1;return!0}function vc(e,t){return Xi(e,t)}function yc(e,t,n){n="function"==typeof n?n:o;var r=n?n(e,t):o;return r===o?Xi(e,t,o,n):!!r}function bc(e){if(!kc(e))return!1;var t=Ri(e);return t==K||t==Y||"string"==typeof e.message&&"string"==typeof e.name&&!Nc(e)}function qc(e){return"number"==typeof e&&jt(e)}function wc(e){if(!Sc(e))return!1;var t=Ri(e);return t==J||t==Z||t==W||t==ie}function _c(e){return"number"==typeof e&&e==Gc(e)}function xc(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=j}function Sc(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function kc(e){return null!=e&&"object"==typeof e}var Cc=gn?Kn(gn):Yi;function Ec(e,t){return e===t||Ki(e,t,Wa(t))}function Oc(e,t,n){return n="function"==typeof n?n:o,Ki(e,t,Wa(t),n)}function Ac(e){return Mc(e)&&e!=+e}function Dc(e){if(ds(e))throw new i(u);return Ji(e)}function Tc(e){return null===e}function Pc(e){return null==e}function Mc(e){return"number"==typeof e||kc(e)&&Ri(e)==ee}function Nc(e){if(!kc(e)||Ri(e)!=ne)return!1;var t=_t(e);if(null===t)return!0;var n=ft.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==mt}var Ic=vn?Kn(vn):Zi;function Rc(e){return _c(e)&&e>=-j&&e<=j}var jc=yn?Kn(yn):Qi;function Fc(e){return"string"==typeof e||!uc(e)&&kc(e)&&Ri(e)==se}function Lc(e){return"symbol"==typeof e||kc(e)&&Ri(e)==ue}var Bc=bn?Kn(bn):eo;function Uc(e){return e===o}function zc(e){return kc(e)&&Ja(e)==ce}function Hc(e){return kc(e)&&Ri(e)==fe}var $c=Ca(io),Vc=Ca((function(e,t){return e<=t}));function Wc(e){if(!e)return[];if(cc(e))return Fc(e)?vr(e):ia(e);if(Et&&e[Et])return ur(e[Et]());var t=Ja(e),n=t==Q?lr:t==ae?dr:zf;return n(e)}function Xc(e){if(!e)return 0===e?e:0;if(e=Kc(e),e===R||e===-R){var t=e<0?-1:1;return t*F}return e===e?e:0}function Gc(e){var t=Xc(e),n=t%1;return t===t?n?t-n:t:0}function Yc(e){return e?gi(Gc(e),0,B):0}function Kc(e){if("number"==typeof e)return e;if(Lc(e))return L;if(Sc(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Sc(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yn(e);var n=Ye.test(e);return n||Je.test(e)?on(e.slice(2),n?2:8):Ge.test(e)?L:+e}function Jc(e){return oa(e,Sf(e))}function Zc(e){return e?gi(Gc(e),-j,j):0===e?e:0}function Qc(e){return null==e?"":No(e)}var ef=la((function(e,t){if(hs(t)||cc(t))oa(t,xf(t),e);else for(var n in t)ft.call(t,n)&&li(e,n,t[n])})),tf=la((function(e,t){oa(t,Sf(t),e)})),nf=la((function(e,t,n,r){oa(t,Sf(t),e,r)})),rf=la((function(e,t,n,r){oa(t,xf(t),e,r)})),of=Fa(mi);function af(e,t){var n=xr(e);return null==t?n:di(n,t)}var sf=wo((function(e,t){e=nt(e);var n=-1,r=t.length,i=r>2?t[2]:o;i&&ss(t[0],t[1],i)&&(r=1);while(++n<r){var a=t[n],s=Sf(a),u=-1,l=s.length;while(++u<l){var c=s[u],f=e[c];(f===o||ic(f,ut[c])&&!ft.call(e,c))&&(e[c]=a[c])}}return e})),uf=wo((function(e){return e.push(o,Ma),qn(Of,o,e)}));function lf(e,t){return Rn(e,$a(t,3),Ti)}function cf(e,t){return Rn(e,$a(t,3),Pi)}function ff(e,t){return null==e?e:Ai(e,$a(t,3),Sf)}function df(e,t){return null==e?e:Di(e,$a(t,3),Sf)}function hf(e,t){return e&&Ti(e,$a(t,3))}function pf(e,t){return e&&Pi(e,$a(t,3))}function mf(e){return null==e?[]:Mi(e,xf(e))}function gf(e){return null==e?[]:Mi(e,Sf(e))}function vf(e,t,n){var r=null==e?o:Ni(e,t);return r===o?n:r}function yf(e,t){return null!=e&&es(e,t,Fi)}function bf(e,t){return null!=e&&es(e,t,Li)}var qf=qa((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),e[t]=n}),Ed(Td)),wf=qa((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),ft.call(e,t)?e[t].push(n):e[t]=[n]}),$a),_f=wo(Hi);function xf(e){return cc(e)?ii(e):no(e)}function Sf(e){return cc(e)?ii(e,!0):ro(e)}function kf(e,t){var n={};return t=$a(t,3),Ti(e,(function(e,r,i){pi(n,t(e,r,i),e)})),n}function Cf(e,t){var n={};return t=$a(t,3),Ti(e,(function(e,r,i){pi(n,r,t(e,r,i))})),n}var Ef=la((function(e,t,n){uo(e,t,n)})),Of=la((function(e,t,n,r){uo(e,t,n,r)})),Af=Fa((function(e,t){var n={};if(null==e)return n;var r=!1;t=On(t,(function(t){return t=$o(t,e),r||(r=t.length>1),t})),oa(e,Ba(e),n),r&&(n=vi(n,p|m|g,Na));var i=t.length;while(i--)Ro(n,t[i]);return n}));function Df(e,t){return Pf(e,Ul($a(t)))}var Tf=Fa((function(e,t){return null==e?{}:ho(e,t)}));function Pf(e,t){if(null==e)return{};var n=On(Ba(e),(function(e){return[e]}));return t=$a(t),po(e,n,(function(e,n){return t(e,n[0])}))}function Mf(e,t,n){t=$o(t,e);var r=-1,i=t.length;i||(i=1,e=o);while(++r<i){var a=null==e?o:e[Ts(t[r])];a===o&&(r=i,a=n),e=wc(a)?a.call(e):a}return e}function Nf(e,t,n){return null==e?e:So(e,t,n)}function If(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:So(e,t,n,r)}var Rf=Da(xf),jf=Da(Sf);function Ff(e,t,n){var r=uc(e),i=r||hc(e)||Bc(e);if(t=$a(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Sc(e)&&wc(o)?xr(_t(e)):{}}return(i?_n:Ti)(e,(function(e,r,i){return t(n,e,r,i)})),n}function Lf(e,t){return null==e||Ro(e,t)}function Bf(e,t,n){return null==e?e:jo(e,t,Ho(n))}function Uf(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:jo(e,t,Ho(n),r)}function zf(e){return null==e?[]:Jn(e,xf(e))}function Hf(e){return null==e?[]:Jn(e,Sf(e))}function $f(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=Kc(n),n=n===n?n:0),t!==o&&(t=Kc(t),t=t===t?t:0),gi(Kc(e),t,n)}function Vf(e,t,n){return t=Xc(t),n===o?(n=t,t=0):n=Xc(n),e=Kc(e),Bi(e,t,n)}function Wf(e,t,n){if(n&&"boolean"!=typeof n&&ss(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=Xc(e),t===o?(t=e,e=0):t=Xc(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Wt();return Ut(e+i*(t-e+rn("1e-"+((i+"").length-1))),t)}return yo(e,t)}var Xf=pa((function(e,t,n){return t=t.toLowerCase(),e+(n?Gf(t):t)}));function Gf(e){return wd(Qc(e).toLowerCase())}function Yf(e){return e=Qc(e),e&&e.replace(Qe,nr).replace($t,"")}function Kf(e,t,n){e=Qc(e),t=No(t);var r=e.length;n=n===o?r:gi(Gc(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function Jf(e){return e=Qc(e),e&&Ae.test(e)?e.replace(Ee,rr):e}function Zf(e){return e=Qc(e),e&&je.test(e)?e.replace(Re,"\\$&"):e}var Qf=pa((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),ed=pa((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),td=ha("toLowerCase");function nd(e,t,n){e=Qc(e),t=Gc(t);var r=t?gr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return xa(Nt(i),n)+e+xa(Mt(i),n)}function rd(e,t,n){e=Qc(e),t=Gc(t);var r=t?gr(e):0;return t&&r<t?e+xa(t-r,n):e}function id(e,t,n){e=Qc(e),t=Gc(t);var r=t?gr(e):0;return t&&r<t?xa(t-r,n)+e:e}function od(e,t,n){return n||null==t?t=0:t&&(t=+t),Vt(Qc(e).replace(Fe,""),t||0)}function ad(e,t,n){return t=(n?ss(e,t,n):t===o)?1:Gc(t),qo(Qc(e),t)}function sd(){var e=arguments,t=Qc(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ud=pa((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function ld(e,t,n){return n&&"number"!=typeof n&&ss(e,t,n)&&(t=n=o),n=n===o?B:n>>>0,n?(e=Qc(e),e&&("string"==typeof t||null!=t&&!Ic(t))&&(t=No(t),!t&&ar(e))?Wo(vr(e),0,n):e.split(t,n)):[]}var cd=pa((function(e,t,n){return e+(n?" ":"")+wd(t)}));function fd(e,t,n){return e=Qc(e),n=null==n?0:gi(Gc(n),0,e.length),t=No(t),e.slice(n,n+t.length)==t}function dd(e,t,n){var r=wr.templateSettings;n&&ss(e,t,n)&&(t=o),e=Qc(e),t=nf({},t,r,Pa);var a,s,u=nf({},t.imports,r.imports,Pa),l=xf(u),f=Jn(u,l),d=0,h=t.interpolate||et,p="__p += '",m=rt((t.escape||et).source+"|"+h.source+"|"+(h===Pe?We:et).source+"|"+(t.evaluate||et).source+"|$","g"),g="//# sourceURL="+(ft.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Kt+"]")+"\n";e.replace(m,(function(t,n,r,i,o,u){return r||(r=i),p+=e.slice(d,u).replace(tt,ir),n&&(a=!0,p+="' +\n__e("+n+") +\n'"),o&&(s=!0,p+="';\n"+o+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=u+t.length,t})),p+="';\n";var v=ft.call(t,"variable")&&t.variable;if(v){if($e.test(v))throw new i(c)}else p="with (obj) {\n"+p+"\n}\n";p=(s?p.replace(xe,""):p).replace(Se,"$1").replace(ke,"$1;"),p="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=xd((function(){return Le(l,g+"return "+p).apply(o,f)}));if(y.source=p,bc(y))throw y;return y}function hd(e){return Qc(e).toLowerCase()}function pd(e){return Qc(e).toUpperCase()}function md(e,t,n){if(e=Qc(e),e&&(n||t===o))return Yn(e);if(!e||!(t=No(t)))return e;var r=vr(e),i=vr(t),a=Qn(r,i),s=er(r,i)+1;return Wo(r,a,s).join("")}function gd(e,t,n){if(e=Qc(e),e&&(n||t===o))return e.slice(0,yr(e)+1);if(!e||!(t=No(t)))return e;var r=vr(e),i=er(r,vr(t))+1;return Wo(r,0,i).join("")}function vd(e,t,n){if(e=Qc(e),e&&(n||t===o))return e.replace(Fe,"");if(!e||!(t=No(t)))return e;var r=vr(e),i=Qn(r,vr(t));return Wo(r,i).join("")}function yd(e,t){var n=A,r=D;if(Sc(t)){var i="separator"in t?t.separator:i;n="length"in t?Gc(t.length):n,r="omission"in t?No(t.omission):r}e=Qc(e);var a=e.length;if(ar(e)){var s=vr(e);a=s.length}if(n>=a)return e;var u=n-gr(r);if(u<1)return r;var l=s?Wo(s,0,u).join(""):e.slice(0,u);if(i===o)return l+r;if(s&&(u+=l.length-u),Ic(i)){if(e.slice(u).search(i)){var c,f=l;i.global||(i=rt(i.source,Qc(Xe.exec(i))+"g")),i.lastIndex=0;while(c=i.exec(f))var d=c.index;l=l.slice(0,d===o?u:d)}}else if(e.indexOf(No(i),u)!=u){var h=l.lastIndexOf(i);h>-1&&(l=l.slice(0,h))}return l+r}function bd(e){return e=Qc(e),e&&Oe.test(e)?e.replace(Ce,br):e}var qd=pa((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),wd=ha("toUpperCase");function _d(e,t,n){return e=Qc(e),t=n?o:t,t===o?sr(e)?_r(e):In(e):e.match(t)||[]}var xd=wo((function(e,t){try{return qn(e,o,t)}catch(n){return bc(n)?n:new i(n)}})),Sd=Fa((function(e,t){return _n(t,(function(t){t=Ts(t),pi(e,t,Pl(e[t],e))})),e}));function kd(e){var t=null==e?0:e.length,n=$a();return e=t?On(e,(function(e){if("function"!=typeof e[1])throw new ot(l);return[n(e[0]),e[1]]})):[],wo((function(n){var r=-1;while(++r<t){var i=e[r];if(qn(i[0],this,n))return qn(i[1],this,n)}}))}function Cd(e){return yi(vi(e,p))}function Ed(e){return function(){return e}}function Od(e,t){return null==e||e!==e?t:e}var Ad=ya(),Dd=ya(!0);function Td(e){return e}function Pd(e){return to("function"==typeof e?e:vi(e,p))}function Md(e){return ao(vi(e,p))}function Nd(e,t){return so(e,vi(t,p))}var Id=wo((function(e,t){return function(n){return Hi(n,e,t)}})),Rd=wo((function(e,t){return function(n){return Hi(e,n,t)}}));function jd(e,t,n){var r=xf(t),i=Mi(t,r);null!=n||Sc(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Mi(t,xf(t)));var o=!(Sc(n)&&"chain"in n)||!!n.chain,a=wc(e);return _n(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=ia(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,An([this.value()],arguments))})})),e}function Fd(){return un._===this&&(un._=gt),this}function Ld(){}function Bd(e){return e=Gc(e),wo((function(t){return co(t,e)}))}var Ud=_a(On),zd=_a(Sn),Hd=_a(Pn);function $d(e){return us(e)?zn(Ts(e)):mo(e)}function Vd(e){return function(t){return null==e?o:Ni(e,t)}}var Wd=ka(),Xd=ka(!0);function Gd(){return[]}function Yd(){return!1}function Kd(){return{}}function Jd(){return""}function Zd(){return!0}function Qd(e,t){if(e=Gc(e),e<1||e>j)return[];var n=B,r=Ut(e,B);t=$a(t),e-=B;var i=Xn(r,t);while(++n<e)t(n);return i}function eh(e){return uc(e)?On(e,Ts):Lc(e)?[e]:ia(Ds(Qc(e)))}function th(e){var t=++dt;return Qc(e)+t}var nh=wa((function(e,t){return e+t}),0),rh=Oa("ceil"),ih=wa((function(e,t){return e/t}),1),oh=Oa("floor");function ah(e){return e&&e.length?ki(e,Td,ji):o}function sh(e,t){return e&&e.length?ki(e,$a(t,2),ji):o}function uh(e){return Un(e,Td)}function lh(e,t){return Un(e,$a(t,2))}function ch(e){return e&&e.length?ki(e,Td,io):o}function fh(e,t){return e&&e.length?ki(e,$a(t,2),io):o}var dh=wa((function(e,t){return e*t}),1),hh=Oa("round"),ph=wa((function(e,t){return e-t}),0);function mh(e){return e&&e.length?Wn(e,Td):0}function gh(e,t){return e&&e.length?Wn(e,$a(t,2)):0}return wr.after=Al,wr.ary=Dl,wr.assign=ef,wr.assignIn=tf,wr.assignInWith=nf,wr.assignWith=rf,wr.at=of,wr.before=Tl,wr.bind=Pl,wr.bindAll=Sd,wr.bindKey=Ml,wr.castArray=Zl,wr.chain=Vu,wr.chunk=Is,wr.compact=Rs,wr.concat=js,wr.cond=kd,wr.conforms=Cd,wr.constant=Ed,wr.countBy=nl,wr.create=af,wr.curry=Nl,wr.curryRight=Il,wr.debounce=Rl,wr.defaults=sf,wr.defaultsDeep=uf,wr.defer=jl,wr.delay=Fl,wr.difference=Fs,wr.differenceBy=Ls,wr.differenceWith=Bs,wr.drop=Us,wr.dropRight=zs,wr.dropRightWhile=Hs,wr.dropWhile=$s,wr.fill=Vs,wr.filter=il,wr.flatMap=sl,wr.flatMapDeep=ul,wr.flatMapDepth=ll,wr.flatten=Gs,wr.flattenDeep=Ys,wr.flattenDepth=Ks,wr.flip=Ll,wr.flow=Ad,wr.flowRight=Dd,wr.fromPairs=Js,wr.functions=mf,wr.functionsIn=gf,wr.groupBy=dl,wr.initial=eu,wr.intersection=tu,wr.intersectionBy=nu,wr.intersectionWith=ru,wr.invert=qf,wr.invertBy=wf,wr.invokeMap=pl,wr.iteratee=Pd,wr.keyBy=ml,wr.keys=xf,wr.keysIn=Sf,wr.map=gl,wr.mapKeys=kf,wr.mapValues=Cf,wr.matches=Md,wr.matchesProperty=Nd,wr.memoize=Bl,wr.merge=Ef,wr.mergeWith=Of,wr.method=Id,wr.methodOf=Rd,wr.mixin=jd,wr.negate=Ul,wr.nthArg=Bd,wr.omit=Af,wr.omitBy=Df,wr.once=zl,wr.orderBy=vl,wr.over=Ud,wr.overArgs=Hl,wr.overEvery=zd,wr.overSome=Hd,wr.partial=$l,wr.partialRight=Vl,wr.partition=yl,wr.pick=Tf,wr.pickBy=Pf,wr.property=$d,wr.propertyOf=Vd,wr.pull=uu,wr.pullAll=lu,wr.pullAllBy=cu,wr.pullAllWith=fu,wr.pullAt=du,wr.range=Wd,wr.rangeRight=Xd,wr.rearg=Wl,wr.reject=wl,wr.remove=hu,wr.rest=Xl,wr.reverse=pu,wr.sampleSize=xl,wr.set=Nf,wr.setWith=If,wr.shuffle=Sl,wr.slice=mu,wr.sortBy=El,wr.sortedUniq=_u,wr.sortedUniqBy=xu,wr.split=ld,wr.spread=Gl,wr.tail=Su,wr.take=ku,wr.takeRight=Cu,wr.takeRightWhile=Eu,wr.takeWhile=Ou,wr.tap=Wu,wr.throttle=Yl,wr.thru=Xu,wr.toArray=Wc,wr.toPairs=Rf,wr.toPairsIn=jf,wr.toPath=eh,wr.toPlainObject=Jc,wr.transform=Ff,wr.unary=Kl,wr.union=Au,wr.unionBy=Du,wr.unionWith=Tu,wr.uniq=Pu,wr.uniqBy=Mu,wr.uniqWith=Nu,wr.unset=Lf,wr.unzip=Iu,wr.unzipWith=Ru,wr.update=Bf,wr.updateWith=Uf,wr.values=zf,wr.valuesIn=Hf,wr.without=ju,wr.words=_d,wr.wrap=Jl,wr.xor=Fu,wr.xorBy=Lu,wr.xorWith=Bu,wr.zip=Uu,wr.zipObject=zu,wr.zipObjectDeep=Hu,wr.zipWith=$u,wr.entries=Rf,wr.entriesIn=jf,wr.extend=tf,wr.extendWith=nf,jd(wr,wr),wr.add=nh,wr.attempt=xd,wr.camelCase=Xf,wr.capitalize=Gf,wr.ceil=rh,wr.clamp=$f,wr.clone=Ql,wr.cloneDeep=tc,wr.cloneDeepWith=nc,wr.cloneWith=ec,wr.conformsTo=rc,wr.deburr=Yf,wr.defaultTo=Od,wr.divide=ih,wr.endsWith=Kf,wr.eq=ic,wr.escape=Jf,wr.escapeRegExp=Zf,wr.every=rl,wr.find=ol,wr.findIndex=Ws,wr.findKey=lf,wr.findLast=al,wr.findLastIndex=Xs,wr.findLastKey=cf,wr.floor=oh,wr.forEach=cl,wr.forEachRight=fl,wr.forIn=ff,wr.forInRight=df,wr.forOwn=hf,wr.forOwnRight=pf,wr.get=vf,wr.gt=oc,wr.gte=ac,wr.has=yf,wr.hasIn=bf,wr.head=Zs,wr.identity=Td,wr.includes=hl,wr.indexOf=Qs,wr.inRange=Vf,wr.invoke=_f,wr.isArguments=sc,wr.isArray=uc,wr.isArrayBuffer=lc,wr.isArrayLike=cc,wr.isArrayLikeObject=fc,wr.isBoolean=dc,wr.isBuffer=hc,wr.isDate=pc,wr.isElement=mc,wr.isEmpty=gc,wr.isEqual=vc,wr.isEqualWith=yc,wr.isError=bc,wr.isFinite=qc,wr.isFunction=wc,wr.isInteger=_c,wr.isLength=xc,wr.isMap=Cc,wr.isMatch=Ec,wr.isMatchWith=Oc,wr.isNaN=Ac,wr.isNative=Dc,wr.isNil=Pc,wr.isNull=Tc,wr.isNumber=Mc,wr.isObject=Sc,wr.isObjectLike=kc,wr.isPlainObject=Nc,wr.isRegExp=Ic,wr.isSafeInteger=Rc,wr.isSet=jc,wr.isString=Fc,wr.isSymbol=Lc,wr.isTypedArray=Bc,wr.isUndefined=Uc,wr.isWeakMap=zc,wr.isWeakSet=Hc,wr.join=iu,wr.kebabCase=Qf,wr.last=ou,wr.lastIndexOf=au,wr.lowerCase=ed,wr.lowerFirst=td,wr.lt=$c,wr.lte=Vc,wr.max=ah,wr.maxBy=sh,wr.mean=uh,wr.meanBy=lh,wr.min=ch,wr.minBy=fh,wr.stubArray=Gd,wr.stubFalse=Yd,wr.stubObject=Kd,wr.stubString=Jd,wr.stubTrue=Zd,wr.multiply=dh,wr.nth=su,wr.noConflict=Fd,wr.noop=Ld,wr.now=Ol,wr.pad=nd,wr.padEnd=rd,wr.padStart=id,wr.parseInt=od,wr.random=Wf,wr.reduce=bl,wr.reduceRight=ql,wr.repeat=ad,wr.replace=sd,wr.result=Mf,wr.round=hh,wr.runInContext=e,wr.sample=_l,wr.size=kl,wr.snakeCase=ud,wr.some=Cl,wr.sortedIndex=gu,wr.sortedIndexBy=vu,wr.sortedIndexOf=yu,wr.sortedLastIndex=bu,wr.sortedLastIndexBy=qu,wr.sortedLastIndexOf=wu,wr.startCase=cd,wr.startsWith=fd,wr.subtract=ph,wr.sum=mh,wr.sumBy=gh,wr.template=dd,wr.times=Qd,wr.toFinite=Xc,wr.toInteger=Gc,wr.toLength=Yc,wr.toLower=hd,wr.toNumber=Kc,wr.toSafeInteger=Zc,wr.toString=Qc,wr.toUpper=pd,wr.trim=md,wr.trimEnd=gd,wr.trimStart=vd,wr.truncate=yd,wr.unescape=bd,wr.uniqueId=th,wr.upperCase=qd,wr.upperFirst=wd,wr.each=cl,wr.eachRight=fl,wr.first=Zs,jd(wr,function(){var e={};return Ti(wr,(function(t,n){ft.call(wr.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),wr.VERSION=a,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){wr[e].placeholder=wr})),_n(["drop","take"],(function(e,t){Er.prototype[e]=function(n){n=n===o?1:Bt(Gc(n),0);var r=this.__filtered__&&!t?new Er(this):this.clone();return r.__filtered__?r.__takeCount__=Ut(n,r.__takeCount__):r.__views__.push({size:Ut(n,B),type:e+(r.__dir__<0?"Right":"")}),r},Er.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),_n(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==M||n==I;Er.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:$a(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),_n(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Er.prototype[e]=function(){return this[n](1).value()[0]}})),_n(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Er.prototype[e]=function(){return this.__filtered__?new Er(this):this[n](1)}})),Er.prototype.compact=function(){return this.filter(Td)},Er.prototype.find=function(e){return this.filter(e).head()},Er.prototype.findLast=function(e){return this.reverse().find(e)},Er.prototype.invokeMap=wo((function(e,t){return"function"==typeof e?new Er(this):this.map((function(n){return Hi(n,e,t)}))})),Er.prototype.reject=function(e){return this.filter(Ul($a(e)))},Er.prototype.slice=function(e,t){e=Gc(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Er(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(t=Gc(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Er.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Er.prototype.toArray=function(){return this.take(B)},Ti(Er.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=wr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(wr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Er,l=s[0],c=u||uc(t),f=function(e){var t=i.apply(wr,An([e],s));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var d=this.__chain__,h=!!this.__actions__.length,p=a&&!d,m=u&&!h;if(!a&&c){t=m?t:new Er(this);var g=e.apply(t,s);return g.__actions__.push({func:Xu,args:[f],thisArg:o}),new Cr(g,d)}return p&&m?e.apply(this,s):(g=this.thru(f),p?r?g.value()[0]:g.value():g)})})),_n(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);wr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(uc(i)?i:[],e)}return this[n]((function(n){return t.apply(uc(n)?n:[],e)}))}})),Ti(Er.prototype,(function(e,t){var n=wr[t];if(n){var r=n.name+"";ft.call(ln,r)||(ln[r]=[]),ln[r].push({name:t,func:n})}})),ln[ba(o,q).name]=[{name:"wrapper",func:o}],Er.prototype.clone=Or,Er.prototype.reverse=Ar,Er.prototype.value=Dr,wr.prototype.at=Gu,wr.prototype.chain=Yu,wr.prototype.commit=Ku,wr.prototype.next=Ju,wr.prototype.plant=Qu,wr.prototype.reverse=el,wr.prototype.toJSON=wr.prototype.valueOf=wr.prototype.value=tl,wr.prototype.first=wr.prototype.head,Et&&(wr.prototype[Et]=Zu),wr},Sr=xr();un._=Sr,i=function(){return Sr}.call(t,n,t,r),i===o||(r.exports=i)}).call(this)}).call(this,n("c8ba"),n("62e4")(e))},"2f62":function(e,t,n){"use strict";(function(e){
+/*!
+ * vuex v3.6.2
+ * (c) 2021 Evan You
+ * @license MIT
+ */
+function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"b",(function(){return I})),n.d(t,"c",(function(){return M}));var i="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},o=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function s(e,t){return e.filter(t)[0]}function u(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=s(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=u(e[n],t)})),r}function l(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function c(e){return null!==e&&"object"===typeof e}function f(e){return e&&"function"===typeof e.then}function d(e,t){return function(){return e(t)}}var h=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(e,t){this._children[e]=t},h.prototype.removeChild=function(e){delete this._children[e]},h.prototype.getChild=function(e){return this._children[e]},h.prototype.hasChild=function(e){return e in this._children},h.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},h.prototype.forEachChild=function(e){l(this._children,e)},h.prototype.forEachGetter=function(e){this._rawModule.getters&&l(this._rawModule.getters,e)},h.prototype.forEachAction=function(e){this._rawModule.actions&&l(this._rawModule.actions,e)},h.prototype.forEachMutation=function(e){this._rawModule.mutations&&l(this._rawModule.mutations,e)},Object.defineProperties(h.prototype,p);var m=function(e){this.register([],e,!1)};function g(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;g(e.concat(r),t.getChild(r),n.modules[r])}}m.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},m.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},m.prototype.update=function(e){g([],this.root,e)},m.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new h(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&l(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},m.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},m.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var v;var y=function(e){var t=this;void 0===e&&(e={}),!v&&"undefined"!==typeof window&&window.Vue&&P(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new m(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,s=o.dispatch,u=o.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return u.call(i,e,t,n)},this.strict=r;var l=this._modules.root.state;x(this,l,[],this._modules.root),_(this,l),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:v.config.devtools;c&&a(this)},b={state:{configurable:!0}};function q(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function w(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;x(e,n,[],e._modules.root,!0),_(e,n,t)}function _(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};l(i,(function(t,n){o[n]=d(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=v.config.silent;v.config.silent=!0,e._vm=new v({data:{$$state:t},computed:o}),v.config.silent=a,e.strict&&A(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),v.nextTick((function(){return r.$destroy()})))}function x(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=D(t,n.slice(0,-1)),u=n[n.length-1];e._withCommit((function(){v.set(s,u,r.state)}))}var l=r.context=S(e,a,n);r.forEachMutation((function(t,n){var r=a+n;C(e,r,t,l)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;E(e,r,i,l)})),r.forEachGetter((function(t,n){var r=a+n;O(e,r,t,l)})),r.forEachChild((function(r,o){x(e,t,n.concat(o),r,i)}))}function S(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=T(n,r,i),a=o.payload,s=o.options,u=o.type;return s&&s.root||(u=t+u),e.dispatch(u,a)},commit:r?e.commit:function(n,r,i){var o=T(n,r,i),a=o.payload,s=o.options,u=o.type;s&&s.root||(u=t+u),e.commit(u,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return k(e,t)}},state:{get:function(){return D(e.state,n)}}}),i}function k(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function C(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function E(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return f(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function O(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function A(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function D(e,t){return t.reduce((function(e,t){return e[t]}),e)}function T(e,t,n){return c(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function P(e){v&&e===v||(v=e,r(v))}b.state.get=function(){return this._vm._data.$$state},b.state.set=function(e){0},y.prototype.commit=function(e,t,n){var r=this,i=T(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),u=this._mutations[o];u&&(this._withCommit((function(){u.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},y.prototype.dispatch=function(e,t){var n=this,r=T(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(l){0}var u=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){u.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(l){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(l){0}t(e)}))}))}},y.prototype.subscribe=function(e,t){return q(e,this._subscribers,t)},y.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return q(n,this._actionSubscribers,t)},y.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},y.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},y.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),x(this,this.state,e,this._modules.get(e),n.preserveState),_(this,this.state)},y.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=D(t.state,e.slice(0,-1));v.delete(n,e[e.length-1])})),w(this)},y.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},y.prototype.hotUpdate=function(e){this._modules.update(e),w(this,!0)},y.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(y.prototype,b);var M=B((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=U(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),N=B((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=U(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),I=B((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||U(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),R=B((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=U(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),j=function(e){return{mapState:M.bind(null,e),mapGetters:I.bind(null,e),mapMutations:N.bind(null,e),mapActions:R.bind(null,e)}};function F(e){return L(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function L(e){return Array.isArray(e)||c(e)}function B(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function U(e,t,n){var r=e._modulesNamespaceMap[n];return r}function z(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var s=e.logMutations;void 0===s&&(s=!0);var l=e.logActions;void 0===l&&(l=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var f=u(e.state);"undefined"!==typeof c&&(s&&e.subscribe((function(e,o){var a=u(o);if(n(e,f,a)){var s=V(),l=i(e),d="mutation "+e.type+s;H(c,d,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),c.log("%c mutation","color: #03A9F4; font-weight: bold",l),c.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),$(c)}f=a})),l&&e.subscribeAction((function(e,n){if(o(e,n)){var r=V(),i=a(e),s="action "+e.type+r;H(c,s,t),c.log("%c action","color: #03A9F4; font-weight: bold",i),$(c)}})))}}function H(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(i){e.log(t)}}function $(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function V(){var e=new Date;return" @ "+X(e.getHours(),2)+":"+X(e.getMinutes(),2)+":"+X(e.getSeconds(),2)+"."+X(e.getMilliseconds(),3)}function W(e,t){return new Array(t+1).join(e)}function X(e,t){return W("0",t-e.toString().length)+e}var G={Store:y,install:P,version:"3.6.2",mapState:M,mapMutations:N,mapGetters:I,mapActions:R,createNamespacedHelpers:j,createLogger:z};t["a"]=G}).call(this,n("c8ba"))},"2fcc":function(e,t){function n(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=n},"304a":function(e,t,n){"use strict";function r(e){this.content=e}n.d(t,"a",(function(){return he})),n.d(t,"b",(function(){return De})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return ce})),n.d(t,"f",(function(){return j})),n.d(t,"g",(function(){return N})),n.d(t,"h",(function(){return p})),n.d(t,"i",(function(){return fe})),n.d(t,"j",(function(){return m})),r.prototype={constructor:r,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var i=n&&n!=e?this.remove(n):this,o=i.find(e),a=i.content.slice();return-1==o?a.push(n||e,t):(a[o+1]=t,n&&(a[o]=n)),new r(a)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new r(n)},addToStart:function(e,t){return new r([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new r(n)},addBefore:function(e,t,n){var i=this.remove(t),o=i.content.slice(),a=i.find(e);return o.splice(-1==a?o.length:a,0,t,n),new r(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=r.from(e),e.size?new r(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=r.from(e),e.size?new r(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=r.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},get size(){return this.content.length>>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};var i=r,o=i;function a(e,t,n){for(var r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;var i=e.child(r),o=t.child(r);if(i!=o){if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(var s=0;i.text[s]==o.text[s];s++)n++;return n}if(i.content.size||o.content.size){var u=a(i.content,o.content,n+1);if(null!=u)return u}n+=i.nodeSize}else n+=i.nodeSize}}function s(e,t,n,r){for(var i=e.childCount,o=t.childCount;;){if(0==i||0==o)return i==o?null:{a:n,b:r};var a=e.child(--i),u=t.child(--o),l=a.nodeSize;if(a!=u){if(!a.sameMarkup(u))return{a:n,b:r};if(a.isText&&a.text!=u.text){var c=0,f=Math.min(a.text.length,u.text.length);while(c<f&&a.text[a.text.length-c-1]==u.text[u.text.length-c-1])c++,n--,r--;return{a:n,b:r}}if(a.content.size||u.content.size){var d=s(a.content,u.content,n-1,r-1);if(d)return d}n-=l,r-=l}else n-=l,r-=l}}var u=function(e,t){if(this.content=e,this.size=t||0,null==t)for(var n=0;n<e.length;n++)this.size+=e[n].nodeSize},l={firstChild:{configurable:!0},lastChild:{configurable:!0},childCount:{configurable:!0}};u.prototype.nodesBetween=function(e,t,n,r,i){void 0===r&&(r=0);for(var o=0,a=0;a<t;o++){var s=this.content[o],u=a+s.nodeSize;if(u>e&&!1!==n(s,r+a,i,o)&&s.content.size){var l=a+1;s.nodesBetween(Math.max(0,e-l),Math.min(s.content.size,t-l),n,r+l)}a=u}},u.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)},u.prototype.textBetween=function(e,t,n,r){var i="",o=!0;return this.nodesBetween(e,t,(function(a,s){a.isText?(i+=a.text.slice(Math.max(e,s)-s,t-s),o=!n):a.isLeaf&&r?(i+="function"===typeof r?r(a):r,o=!n):!o&&a.isBlock&&(i+=n,o=!0)}),0),i},u.prototype.append=function(e){if(!e.size)return this;if(!this.size)return e;var t=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new u(r,this.size+e.size)},u.prototype.cut=function(e,t){if(null==t&&(t=this.size),0==e&&t==this.size)return this;var n=[],r=0;if(t>e)for(var i=0,o=0;o<t;i++){var a=this.content[i],s=o+a.nodeSize;s>e&&((o<e||s>t)&&(a=a.isText?a.cut(Math.max(0,e-o),Math.min(a.text.length,t-o)):a.cut(Math.max(0,e-o-1),Math.min(a.content.size,t-o-1))),n.push(a),r+=a.nodeSize),o=s}return new u(n,r)},u.prototype.cutByIndex=function(e,t){return e==t?u.empty:0==e&&t==this.content.length?this:new u(this.content.slice(e,t))},u.prototype.replaceChild=function(e,t){var n=this.content[e];if(n==t)return this;var r=this.content.slice(),i=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new u(r,i)},u.prototype.addToStart=function(e){return new u([e].concat(this.content),this.size+e.nodeSize)},u.prototype.addToEnd=function(e){return new u(this.content.concat(e),this.size+e.nodeSize)},u.prototype.eq=function(e){if(this.content.length!=e.content.length)return!1;for(var t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0},l.firstChild.get=function(){return this.content.length?this.content[0]:null},l.lastChild.get=function(){return this.content.length?this.content[this.content.length-1]:null},l.childCount.get=function(){return this.content.length},u.prototype.child=function(e){var t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t},u.prototype.maybeChild=function(e){return this.content[e]},u.prototype.forEach=function(e){for(var t=0,n=0;t<this.content.length;t++){var r=this.content[t];e(r,n,t),n+=r.nodeSize}},u.prototype.findDiffStart=function(e,t){return void 0===t&&(t=0),a(this,e,t)},u.prototype.findDiffEnd=function(e,t,n){return void 0===t&&(t=this.size),void 0===n&&(n=e.size),s(this,e,t,n)},u.prototype.findIndex=function(e,t){if(void 0===t&&(t=-1),0==e)return f(0,e);if(e==this.size)return f(this.content.length,e);if(e>this.size||e<0)throw new RangeError("Position "+e+" outside of fragment ("+this+")");for(var n=0,r=0;;n++){var i=this.child(n),o=r+i.nodeSize;if(o>=e)return o==e||t>0?f(n+1,o):f(n,r);r=o}},u.prototype.toString=function(){return"<"+this.toStringInner()+">"},u.prototype.toStringInner=function(){return this.content.join(", ")},u.prototype.toJSON=function(){return this.content.length?this.content.map((function(e){return e.toJSON()})):null},u.fromJSON=function(e,t){if(!t)return u.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new u(t.map(e.nodeFromJSON))},u.fromArray=function(e){if(!e.length)return u.empty;for(var t,n=0,r=0;r<e.length;r++){var i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(t||(t=e.slice(0,r)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new u(t||e,n)},u.from=function(e){if(!e)return u.empty;if(e instanceof u)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new u([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))},Object.defineProperties(u.prototype,l);var c={index:0,offset:0};function f(e,t){return c.index=e,c.offset=t,c}function d(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(!d(e[r],t[r]))return!1}else{for(var i in e)if(!(i in t)||!d(e[i],t[i]))return!1;for(var o in t)if(!(o in e))return!1}return!0}u.empty=new u([],0);var h=function(e,t){this.type=e,this.attrs=t};function p(e){var t=Error.call(this,e);return t.__proto__=p.prototype,t}h.prototype.addToSet=function(e){for(var t,n=!1,r=0;r<e.length;r++){var i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(i)}}return t||(t=e.slice()),n||t.push(this),t},h.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e},h.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1},h.prototype.eq=function(e){return this==e||this.type==e.type&&d(this.attrs,e.attrs)},h.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return e},h.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");var n=e.marks[t.type];if(!n)throw new RangeError("There is no mark type "+t.type+" in this schema");return n.create(t.attrs)},h.sameSet=function(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0},h.setFrom=function(e){if(!e||0==e.length)return h.none;if(e instanceof h)return[e];var t=e.slice();return t.sort((function(e,t){return e.type.rank-t.type.rank})),t},h.none=[],p.prototype=Object.create(Error.prototype),p.prototype.constructor=p,p.prototype.name="ReplaceError";var m=function(e,t,n){this.content=e,this.openStart=t,this.openEnd=n},g={size:{configurable:!0}};function v(e,t,n){var r=e.findIndex(t),i=r.index,o=r.offset,a=e.maybeChild(i),s=e.findIndex(n),u=s.index,l=s.offset;if(o==t||a.isText){if(l!=n&&!e.child(u).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(i!=u)throw new RangeError("Removing non-flat range");return e.replaceChild(i,a.copy(v(a.content,t-o-1,n-o-1)))}function y(e,t,n,r){var i=e.findIndex(t),o=i.index,a=i.offset,s=e.maybeChild(o);if(a==t||s.isText)return r&&!r.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));var u=y(s.content,t-a-1,n);return u&&e.replaceChild(o,s.copy(u))}function b(e,t,n){if(n.openStart>e.depth)throw new p("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new p("Inconsistent open depths");return q(e,t,n,0)}function q(e,t,n,r){var i=e.index(r),o=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){var a=q(e,t,n,r+1);return o.copy(o.content.replaceChild(i,a))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=r||t.depth!=r){var s=O(n,e),u=s.start,l=s.end;return k(o,C(e,u,l,t,r))}var c=e.parent,f=c.content;return k(c,f.cut(0,e.parentOffset).append(n.content).append(f.cut(t.parentOffset)))}return k(o,E(e,t,r))}function w(e,t){if(!t.type.compatibleContent(e.type))throw new p("Cannot join "+t.type.name+" onto "+e.type.name)}function _(e,t,n){var r=e.node(n);return w(r,t.node(n)),r}function x(e,t){var n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function S(e,t,n,r){var i=(t||e).node(n),o=0,a=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(x(e.nodeAfter,r),o++));for(var s=o;s<a;s++)x(i.child(s),r);t&&t.depth==n&&t.textOffset&&x(t.nodeBefore,r)}function k(e,t){if(!e.type.validContent(t))throw new p("Invalid content for node "+e.type.name);return e.copy(t)}function C(e,t,n,r,i){var o=e.depth>i&&_(e,t,i+1),a=r.depth>i&&_(n,r,i+1),s=[];return S(null,e,i,s),o&&a&&t.index(i)==n.index(i)?(w(o,a),x(k(o,C(e,t,n,r,i+1)),s)):(o&&x(k(o,E(e,t,i+1)),s),S(t,n,i,s),a&&x(k(a,E(n,r,i+1)),s)),S(r,null,i,s),new u(s)}function E(e,t,n){var r=[];if(S(null,e,n,r),e.depth>n){var i=_(e,t,n+1);x(k(i,E(e,t,n+1)),r)}return S(t,null,n,r),new u(r)}function O(e,t){for(var n=t.depth-e.openStart,r=t.node(n),i=r.copy(e.content),o=n-1;o>=0;o--)i=t.node(o).copy(u.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}g.size.get=function(){return this.content.size-this.openStart-this.openEnd},m.prototype.insertAt=function(e,t){var n=y(this.content,e+this.openStart,t,null);return n&&new m(n,this.openStart,this.openEnd)},m.prototype.removeBetween=function(e,t){return new m(v(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)},m.prototype.eq=function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd},m.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"},m.prototype.toJSON=function(){if(!this.content.size)return null;var e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e},m.fromJSON=function(e,t){if(!t)return m.empty;var n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new m(u.fromJSON(e,t.content),n,r)},m.maxOpen=function(e,t){void 0===t&&(t=!0);for(var n=0,r=0,i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)n++;for(var o=e.lastChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.lastChild)r++;return new m(e,n,r)},Object.defineProperties(m.prototype,g),m.empty=new m(u.empty,0,0);var A=function(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n},D={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};A.prototype.resolveDepth=function(e){return null==e?this.depth:e<0?this.depth+e:e},D.parent.get=function(){return this.node(this.depth)},D.doc.get=function(){return this.node(0)},A.prototype.node=function(e){return this.path[3*this.resolveDepth(e)]},A.prototype.index=function(e){return this.path[3*this.resolveDepth(e)+1]},A.prototype.indexAfter=function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)},A.prototype.start=function(e){return e=this.resolveDepth(e),0==e?0:this.path[3*e-1]+1},A.prototype.end=function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size},A.prototype.before=function(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]},A.prototype.after=function(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize},D.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},D.nodeAfter.get=function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r},D.nodeBefore.get=function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)},A.prototype.posAtIndex=function(e,t){t=this.resolveDepth(t);for(var n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1,i=0;i<e;i++)r+=n.child(i).nodeSize;return r},A.prototype.marks=function(){var e=this.parent,t=this.index();if(0==e.content.size)return h.none;if(this.textOffset)return e.child(t).marks;var n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){var i=n;n=r,r=i}for(var o=n.marks,a=0;a<o.length;a++)!1!==o[a].type.spec.inclusive||r&&o[a].isInSet(r.marks)||(o=o[a--].removeFromSet(o));return o},A.prototype.marksAcross=function(e){var t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;for(var n=t.marks,r=e.parent.maybeChild(e.index()),i=0;i<n.length;i++)!1!==n[i].type.spec.inclusive||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n},A.prototype.sharedDepth=function(e){for(var t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0},A.prototype.blockRange=function(e,t){if(void 0===e&&(e=this),e.pos<this.pos)return e.blockRange(this);for(var n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new N(this,e,n)},A.prototype.sameParent=function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset},A.prototype.max=function(e){return e.pos>this.pos?e:this},A.prototype.min=function(e){return e.pos<this.pos?e:this},A.prototype.toString=function(){for(var e="",t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset},A.resolve=function(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");for(var n=[],r=0,i=t,o=e;;){var a=o.content.findIndex(i),s=a.index,u=a.offset,l=i-u;if(n.push(o,s,r+u),!l)break;if(o=o.child(s),o.isText)break;i=l-1,r+=u+1}return new A(t,n,i)},A.resolveCached=function(e,t){for(var n=0;n<T.length;n++){var r=T[n];if(r.pos==t&&r.doc==e)return r}var i=T[P]=A.resolve(e,t);return P=(P+1)%M,i},Object.defineProperties(A.prototype,D);var T=[],P=0,M=12,N=function(e,t,n){this.$from=e,this.$to=t,this.depth=n},I={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};I.start.get=function(){return this.$from.before(this.depth+1)},I.end.get=function(){return this.$to.after(this.depth+1)},I.parent.get=function(){return this.$from.node(this.depth)},I.startIndex.get=function(){return this.$from.index(this.depth)},I.endIndex.get=function(){return this.$to.indexAfter(this.depth)},Object.defineProperties(N.prototype,I);var R=Object.create(null),j=function(e,t,n,r){this.type=e,this.attrs=t,this.content=n||u.empty,this.marks=r||h.none},F={nodeSize:{configurable:!0},childCount:{configurable:!0},textContent:{configurable:!0},firstChild:{configurable:!0},lastChild:{configurable:!0},isBlock:{configurable:!0},isTextblock:{configurable:!0},inlineContent:{configurable:!0},isInline:{configurable:!0},isText:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};F.nodeSize.get=function(){return this.isLeaf?1:2+this.content.size},F.childCount.get=function(){return this.content.childCount},j.prototype.child=function(e){return this.content.child(e)},j.prototype.maybeChild=function(e){return this.content.maybeChild(e)},j.prototype.forEach=function(e){this.content.forEach(e)},j.prototype.nodesBetween=function(e,t,n,r){void 0===r&&(r=0),this.content.nodesBetween(e,t,n,r,this)},j.prototype.descendants=function(e){this.nodesBetween(0,this.content.size,e)},F.textContent.get=function(){return this.textBetween(0,this.content.size,"")},j.prototype.textBetween=function(e,t,n,r){return this.content.textBetween(e,t,n,r)},F.firstChild.get=function(){return this.content.firstChild},F.lastChild.get=function(){return this.content.lastChild},j.prototype.eq=function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)},j.prototype.sameMarkup=function(e){return this.hasMarkup(e.type,e.attrs,e.marks)},j.prototype.hasMarkup=function(e,t,n){return this.type==e&&d(this.attrs,t||e.defaultAttrs||R)&&h.sameSet(this.marks,n||h.none)},j.prototype.copy=function(e){return void 0===e&&(e=null),e==this.content?this:new this.constructor(this.type,this.attrs,e,this.marks)},j.prototype.mark=function(e){return e==this.marks?this:new this.constructor(this.type,this.attrs,this.content,e)},j.prototype.cut=function(e,t){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))},j.prototype.slice=function(e,t,n){if(void 0===t&&(t=this.content.size),void 0===n&&(n=!1),e==t)return m.empty;var r=this.resolve(e),i=this.resolve(t),o=n?0:r.sharedDepth(t),a=r.start(o),s=r.node(o),u=s.content.cut(r.pos-a,i.pos-a);return new m(u,r.depth-o,i.depth-o)},j.prototype.replace=function(e,t,n){return b(this.resolve(e),this.resolve(t),n)},j.prototype.nodeAt=function(e){for(var t=this;;){var n=t.content.findIndex(e),r=n.index,i=n.offset;if(t=t.maybeChild(r),!t)return null;if(i==e||t.isText)return t;e-=i+1}},j.prototype.childAfter=function(e){var t=this.content.findIndex(e),n=t.index,r=t.offset;return{node:this.content.maybeChild(n),index:n,offset:r}},j.prototype.childBefore=function(e){if(0==e)return{node:null,index:0,offset:0};var t=this.content.findIndex(e),n=t.index,r=t.offset;if(r<e)return{node:this.content.child(n),index:n,offset:r};var i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}},j.prototype.resolve=function(e){return A.resolveCached(this,e)},j.prototype.resolveNoCache=function(e){return A.resolve(this,e)},j.prototype.rangeHasMark=function(e,t,n){var r=!1;return t>e&&this.nodesBetween(e,t,(function(e){return n.isInSet(e.marks)&&(r=!0),!r})),r},F.isBlock.get=function(){return this.type.isBlock},F.isTextblock.get=function(){return this.type.isTextblock},F.inlineContent.get=function(){return this.type.inlineContent},F.isInline.get=function(){return this.type.isInline},F.isText.get=function(){return this.type.isText},F.isLeaf.get=function(){return this.type.isLeaf},F.isAtom.get=function(){return this.type.isAtom},j.prototype.toString=function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),B(this.marks,e)},j.prototype.contentMatchAt=function(e){var t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t},j.prototype.canReplace=function(e,t,n,r,i){void 0===n&&(n=u.empty),void 0===r&&(r=0),void 0===i&&(i=n.childCount);var o=this.contentMatchAt(e).matchFragment(n,r,i),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(var s=r;s<i;s++)if(!this.type.allowsMarks(n.child(s).marks))return!1;return!0},j.prototype.canReplaceWith=function(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;var i=this.contentMatchAt(e).matchType(n),o=i&&i.matchFragment(this.content,t);return!!o&&o.validEnd},j.prototype.canAppend=function(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)},j.prototype.check=function(){if(!this.type.validContent(this.content))throw new RangeError("Invalid content for node "+this.type.name+": "+this.content.toString().slice(0,50));for(var e=h.none,t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!h.sameSet(e,this.marks))throw new RangeError("Invalid collection of marks for node "+this.type.name+": "+this.marks.map((function(e){return e.type.name})));this.content.forEach((function(e){return e.check()}))},j.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((function(e){return e.toJSON()}))),e},j.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");var n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}var r=u.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)},Object.defineProperties(j.prototype,F);var L=function(e){function t(t,n,r,i){if(e.call(this,t,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={textContent:{configurable:!0},nodeSize:{configurable:!0}};return t.prototype.toString=function(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):B(this.marks,JSON.stringify(this.text))},n.textContent.get=function(){return this.text},t.prototype.textBetween=function(e,t){return this.text.slice(e,t)},n.nodeSize.get=function(){return this.text.length},t.prototype.mark=function(e){return e==this.marks?this:new t(this.type,this.attrs,this.text,e)},t.prototype.withText=function(e){return e==this.text?this:new t(this.type,this.attrs,e,this.marks)},t.prototype.cut=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.text.length),0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))},t.prototype.eq=function(e){return this.sameMarkup(e)&&this.text==e.text},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.text=this.text,t},Object.defineProperties(t.prototype,n),t}(j);function B(e,t){for(var n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}var U=function(e){this.validEnd=e,this.next=[],this.wrapCache=[]},z={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};U.parse=function(e,t){var n=new H(e,t);if(null==n.next)return U.empty;var r=V(n);n.next&&n.err("Unexpected trailing text");var i=te(Z(r));return ne(i,n),i},U.prototype.matchType=function(e){for(var t=0;t<this.next.length;t+=2)if(this.next[t]==e)return this.next[t+1];return null},U.prototype.matchFragment=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.childCount);for(var r=this,i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r},z.inlineContent.get=function(){var e=this.next[0];return!!e&&e.isInline},z.defaultType.get=function(){for(var e=0;e<this.next.length;e+=2){var t=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}},U.prototype.compatible=function(e){for(var t=0;t<this.next.length;t+=2)for(var n=0;n<e.next.length;n+=2)if(this.next[t]==e.next[n])return!0;return!1},U.prototype.fillBefore=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=0);var r=[this];function i(o,a){var s=o.matchFragment(e,n);if(s&&(!t||s.validEnd))return u.from(a.map((function(e){return e.createAndFill()})));for(var l=0;l<o.next.length;l+=2){var c=o.next[l],f=o.next[l+1];if(!c.isText&&!c.hasRequiredAttrs()&&-1==r.indexOf(f)){r.push(f);var d=i(f,a.concat(c));if(d)return d}}}return i(this,[])},U.prototype.findWrapping=function(e){for(var t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];var n=this.computeWrapping(e);return this.wrapCache.push(e,n),n},U.prototype.computeWrapping=function(e){var t=Object.create(null),n=[{match:this,type:null,via:null}];while(n.length){var r=n.shift(),i=r.match;if(i.matchType(e)){for(var o=[],a=r;a.type;a=a.via)o.push(a.type);return o.reverse()}for(var s=0;s<i.next.length;s+=2){var u=i.next[s];u.isLeaf||u.hasRequiredAttrs()||u.name in t||r.type&&!i.next[s+1].validEnd||(n.push({match:u.contentMatch,type:u,via:r}),t[u.name]=!0)}}},z.edgeCount.get=function(){return this.next.length>>1},U.prototype.edge=function(e){var t=e<<1;if(t>=this.next.length)throw new RangeError("There's no "+e+"th edge in this content match");return{type:this.next[t],next:this.next[t+1]}},U.prototype.toString=function(){var e=[];function t(n){e.push(n);for(var r=1;r<n.next.length;r+=2)-1==e.indexOf(n.next[r])&&t(n.next[r])}return t(this),e.map((function(t,n){for(var r=n+(t.validEnd?"*":" ")+" ",i=0;i<t.next.length;i+=2)r+=(i?", ":"")+t.next[i].name+"->"+e.indexOf(t.next[i+1]);return r})).join("\n")},Object.defineProperties(U.prototype,z),U.empty=new U(!0);var H=function(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()},$={next:{configurable:!0}};function V(e){var t=[];do{t.push(W(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function W(e){var t=[];do{t.push(X(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function X(e){for(var t=J(e);;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=Y(e,t)}return t}function G(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function Y(e,t){var n=G(e),r=n;return e.eat(",")&&(r="}"!=e.next?G(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function K(e,t){var n=e.nodeTypes,r=n[t];if(r)return[r];var i=[];for(var o in n){var a=n[o];a.groups.indexOf(t)>-1&&i.push(a)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i}function J(e){if(e.eat("(")){var t=V(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){var n=K(e,e.next).map((function(t){return null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}}));return e.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}e.err("Unexpected token '"+e.next+"'")}function Z(e){var t=[[]];return i(o(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){var i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach((function(e){return e.to=t}))}function o(e,t){if("choice"==e.type)return e.exprs.reduce((function(e,n){return e.concat(o(n,t))}),[]);if("seq"==e.type)for(var a=0;;a++){var s=o(e.exprs[a],t);if(a==e.exprs.length-1)return s;i(s,t=n())}else{if("star"==e.type){var u=n();return r(t,u),i(o(e.expr,u),u),[r(u)]}if("plus"==e.type){var l=n();return i(o(e.expr,t),l),i(o(e.expr,l),l),[r(l)]}if("opt"==e.type)return[r(t)].concat(o(e.expr,t));if("range"==e.type){for(var c=t,f=0;f<e.min;f++){var d=n();i(o(e.expr,c),d),c=d}if(-1==e.max)i(o(e.expr,c),c);else for(var h=e.min;h<e.max;h++){var p=n();r(c,p),i(o(e.expr,c),p),c=p}return[r(c)]}if("name"==e.type)return[r(t,null,e.value)]}}}function Q(e,t){return t-e}function ee(e,t){var n=[];return r(t),n.sort(Q);function r(t){var i=e[t];if(1==i.length&&!i[0].term)return r(i[0].to);n.push(t);for(var o=0;o<i.length;o++){var a=i[o],s=a.term,u=a.to;s||-1!=n.indexOf(u)||r(u)}}}function te(e){var t=Object.create(null);return n(ee(e,0));function n(r){var i=[];r.forEach((function(t){e[t].forEach((function(t){var n=t.term,r=t.to;if(n){var o=i.indexOf(n),a=o>-1&&i[o+1];ee(e,r).forEach((function(e){a||i.push(n,a=[]),-1==a.indexOf(e)&&a.push(e)}))}}))}));for(var o=t[r.join(",")]=new U(r.indexOf(e.length-1)>-1),a=0;a<i.length;a+=2){var s=i[a+1].sort(Q);o.next.push(i[a],t[s.join(",")]||n(s))}return o}}function ne(e,t){for(var n=0,r=[e];n<r.length;n++){for(var i=r[n],o=!i.validEnd,a=[],s=0;s<i.next.length;s+=2){var u=i.next[s],l=i.next[s+1];a.push(u.name),!o||u.isText||u.hasRequiredAttrs()||(o=!1),-1==r.indexOf(l)&&r.push(l)}o&&t.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function re(e){var t=Object.create(null);for(var n in e){var r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function ie(e,t){var n=Object.create(null);for(var r in e){var i=t&&t[r];if(void 0===i){var o=e[r];if(!o.hasDefault)throw new RangeError("No value supplied for attribute "+r);i=o.default}n[r]=i}return n}function oe(e){var t=Object.create(null);if(e)for(var n in e)t[n]=new ue(e[n]);return t}$.next.get=function(){return this.tokens[this.pos]},H.prototype.eat=function(e){return this.next==e&&(this.pos++||!0)},H.prototype.err=function(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")},Object.defineProperties(H.prototype,$);var ae=function(e,t,n){this.name=e,this.schema=t,this.spec=n,this.groups=n.group?n.group.split(" "):[],this.attrs=oe(n.attrs),this.defaultAttrs=re(this.attrs),this.contentMatch=null,this.markSet=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e},se={isInline:{configurable:!0},isTextblock:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0},whitespace:{configurable:!0}};se.isInline.get=function(){return!this.isBlock},se.isTextblock.get=function(){return this.isBlock&&this.inlineContent},se.isLeaf.get=function(){return this.contentMatch==U.empty},se.isAtom.get=function(){return this.isLeaf||this.spec.atom},se.whitespace.get=function(){return this.spec.whitespace||(this.spec.code?"pre":"normal")},ae.prototype.hasRequiredAttrs=function(){for(var e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1},ae.prototype.compatibleContent=function(e){return this==e||this.contentMatch.compatible(e.contentMatch)},ae.prototype.computeAttrs=function(e){return!e&&this.defaultAttrs?this.defaultAttrs:ie(this.attrs,e)},ae.prototype.create=function(e,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new j(this,this.computeAttrs(e),u.from(t),h.setFrom(n))},ae.prototype.createChecked=function(e,t,n){if(t=u.from(t),!this.validContent(t))throw new RangeError("Invalid content for node "+this.name);return new j(this,this.computeAttrs(e),t,h.setFrom(n))},ae.prototype.createAndFill=function(e,t,n){if(e=this.computeAttrs(e),t=u.from(t),t.size){var r=this.contentMatch.fillBefore(t);if(!r)return null;t=r.append(t)}var i=this.contentMatch.matchFragment(t).fillBefore(u.empty,!0);return i?new j(this,e,t.append(i),h.setFrom(n)):null},ae.prototype.validContent=function(e){var t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(var n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0},ae.prototype.allowsMarkType=function(e){return null==this.markSet||this.markSet.indexOf(e)>-1},ae.prototype.allowsMarks=function(e){if(null==this.markSet)return!0;for(var t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0},ae.prototype.allowedMarks=function(e){if(null==this.markSet)return e;for(var t,n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:h.empty:e},ae.compile=function(e,t){var n=Object.create(null);e.forEach((function(e,r){return n[e]=new ae(e,t,r)}));var r=t.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(var i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n},Object.defineProperties(ae.prototype,se);var ue=function(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default},le={isRequired:{configurable:!0}};le.isRequired.get=function(){return!this.hasDefault},Object.defineProperties(ue.prototype,le);var ce=function(e,t,n,r){this.name=e,this.schema=n,this.spec=r,this.attrs=oe(r.attrs),this.rank=t,this.excluded=null;var i=re(this.attrs);this.instance=i&&new h(this,i)};ce.prototype.create=function(e){return!e&&this.instance?this.instance:new h(this,ie(this.attrs,e))},ce.compile=function(e,t){var n=Object.create(null),r=0;return e.forEach((function(e,i){return n[e]=new ce(e,r++,t,i)})),n},ce.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e},ce.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(e[t].type==this)return e[t]},ce.prototype.excludes=function(e){return this.excluded.indexOf(e)>-1};var fe=function(e){for(var t in this.spec={},e)this.spec[t]=e[t];this.spec.nodes=o.from(e.nodes),this.spec.marks=o.from(e.marks),this.nodes=ae.compile(this.spec.nodes,this),this.marks=ce.compile(this.spec.marks,this);var n=Object.create(null);for(var r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");var i=this.nodes[r],a=i.spec.content||"",s=i.spec.marks;i.contentMatch=n[a]||(n[a]=U.parse(a,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet="_"==s?null:s?de(this,s.split(" ")):""!=s&&i.inlineContent?null:[]}for(var u in this.marks){var l=this.marks[u],c=l.spec.excludes;l.excluded=null==c?[l]:""==c?[]:de(this,c.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached=Object.create(null),this.cached.wrappings=Object.create(null)};function de(e,t){for(var n=[],r=0;r<t.length;r++){var i=t[r],o=e.marks[i],a=o;if(o)n.push(o);else for(var s in e.marks){var u=e.marks[s];("_"==i||u.spec.group&&u.spec.group.split(" ").indexOf(i)>-1)&&n.push(a=u)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}fe.prototype.node=function(e,t,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof ae))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)},fe.prototype.text=function(e,t){var n=this.nodes.text;return new L(n,n.defaultAttrs,e,h.setFrom(t))},fe.prototype.mark=function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)},fe.prototype.nodeFromJSON=function(e){return j.fromJSON(this,e)},fe.prototype.markFromJSON=function(e){return h.fromJSON(this,e)},fe.prototype.nodeType=function(e){var t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t};var he=function(e,t){var n=this;this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach((function(e){e.tag?n.tags.push(e):e.style&&n.styles.push(e)})),this.normalizeLists=!this.tags.some((function(t){if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;var n=e.nodes[t.node];return n.contentMatch.matchType(n)}))};he.prototype.parse=function(e,t){void 0===t&&(t={});var n=new _e(this,t,!1);return n.addAll(e,null,t.from,t.to),n.finish()},he.prototype.parseSlice=function(e,t){void 0===t&&(t={});var n=new _e(this,t,!0);return n.addAll(e,null,t.from,t.to),m.maxOpen(n.finish())},he.prototype.matchTag=function(e,t,n){for(var r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){var i=this.tags[r];if(ke(e,i.tag)&&(void 0===i.namespace||e.namespaceURI==i.namespace)&&(!i.context||t.matchesContext(i.context))){if(i.getAttrs){var o=i.getAttrs(e);if(!1===o)continue;i.attrs=o}return i}}},he.prototype.matchStyle=function(e,t,n,r){for(var i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){var o=this.styles[i];if(!(0!=o.style.indexOf(e)||o.context&&!n.matchesContext(o.context)||o.style.length>e.length&&(61!=o.style.charCodeAt(e.length)||o.style.slice(e.length+1)!=t))){if(o.getAttrs){var a=o.getAttrs(t);if(!1===a)continue;o.attrs=a}return o}}},he.schemaRules=function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,r=0;r<t.length;r++){var i=t[r],o=null==i.priority?50:i.priority;if(o<n)break}t.splice(r,0,e)}var r=function(t){var r=e.marks[t].spec.parseDOM;r&&r.forEach((function(e){n(e=Ee(e)),e.mark=t}))};for(var i in e.marks)r(i);var o=function(t){var r=e.nodes[a].spec.parseDOM;r&&r.forEach((function(e){n(e=Ee(e)),e.node=a}))};for(var a in e.nodes)o();return t},he.fromSchema=function(e){return e.cached.domParser||(e.cached.domParser=new he(e,he.schemaRules(e)))};var pe={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},me={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ge={ol:!0,ul:!0},ve=1,ye=2,be=4;function qe(e,t,n){return null!=t?(t?ve:0)|("full"===t?ye:0):e&&"pre"==e.whitespace?ve|ye:n&~be}var we=function(e,t,n,r,i,o,a){this.type=e,this.attrs=t,this.solid=i,this.match=o||(a&be?null:e.contentMatch),this.options=a,this.content=[],this.marks=n,this.activeMarks=h.none,this.pendingMarks=r,this.stashMarks=[]};we.prototype.findWrapping=function(e){if(!this.match){if(!this.type)return[];var t=this.type.contentMatch.fillBefore(u.from(e));if(!t){var n,r=this.type.contentMatch;return(n=r.findWrapping(e.type))?(this.match=r,n):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)},we.prototype.finish=function(e){if(!(this.options&ve)){var t,n=this.content[this.content.length-1];n&&n.isText&&(t=/[ \t\r\n\u000c]+$/.exec(n.text))&&(n.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length)))}var r=u.from(this.content);return!e&&this.match&&(r=r.append(this.match.fillBefore(u.empty,!0))),this.type?this.type.create(this.attrs,r,this.marks):r},we.prototype.popFromStashMark=function(e){for(var t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]},we.prototype.applyPending=function(e){for(var t=0,n=this.pendingMarks;t<n.length;t++){var r=n[t];(this.type?this.type.allowsMarkType(r.type):Oe(r.type,e))&&!r.isInSet(this.activeMarks)&&(this.activeMarks=r.addToSet(this.activeMarks),this.pendingMarks=r.removeFromSet(this.pendingMarks))}},we.prototype.inlineContext=function(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!pe.hasOwnProperty(e.parentNode.nodeName.toLowerCase())};var _e=function(e,t,n){this.parser=e,this.options=t,this.isOpen=n;var r,i=t.topNode,o=qe(null,t.preserveWhitespace,0)|(n?be:0);r=i?new we(i.type,i.attrs,h.none,h.none,!0,t.topMatch||i.type.contentMatch,o):new we(n?null:e.schema.topNodeType,null,h.none,h.none,!0,null,o),this.nodes=[r],this.open=0,this.find=t.findPositions,this.needsBlock=!1},xe={top:{configurable:!0},currentPos:{configurable:!0}};function Se(e){for(var t=e.firstChild,n=null;t;t=t.nextSibling){var r=1==t.nodeType?t.nodeName.toLowerCase():null;r&&ge.hasOwnProperty(r)&&n?(n.appendChild(t),t=n):"li"==r?n=t:r&&(n=null)}}function ke(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Ce(e){var t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,r=[];while(t=n.exec(e))r.push(t[1],t[2].trim());return r}function Ee(e){var t={};for(var n in e)t[n]=e[n];return t}function Oe(e,t){var n=t.schema.nodes,r=function(r){var i=n[r];if(i.allowsMarkType(e)){var o=[],a=function(e){o.push(e);for(var n=0;n<e.edgeCount;n++){var r=e.edge(n),i=r.type,s=r.next;if(i==t)return!0;if(o.indexOf(s)<0&&a(s))return!0}};return a(i.contentMatch)?{v:!0}:void 0}};for(var i in n){var o=r(i);if(o)return o.v}}function Ae(e,t){for(var n=0;n<t.length;n++)if(e.eq(t[n]))return t[n]}xe.top.get=function(){return this.nodes[this.open]},_e.prototype.addDOM=function(e){if(3==e.nodeType)this.addTextNode(e);else if(1==e.nodeType){var t=e.getAttribute("style"),n=t?this.readStyles(Ce(t)):null,r=this.top;if(null!=n)for(var i=0;i<n.length;i++)this.addPendingMark(n[i]);if(this.addElement(e),null!=n)for(var o=0;o<n.length;o++)this.removePendingMark(n[o],r)}},_e.prototype.addTextNode=function(e){var t=e.nodeValue,n=this.top;if(n.options&ye||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(n.options&ve)t=n.options&ye?t.replace(/\r\n?/g,"\n"):t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){var r=n.content[n.content.length-1],i=e.previousSibling;(!r||i&&"BR"==i.nodeName||r.isText&&/[ \t\r\n\u000c]$/.test(r.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)},_e.prototype.addElement=function(e,t){var n,r=e.nodeName.toLowerCase();ge.hasOwnProperty(r)&&this.parser.normalizeLists&&Se(e);var i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(n=this.parser.matchTag(e,this,t));if(i?i.ignore:me.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);var o,a=this.top,s=this.needsBlock;if(pe.hasOwnProperty(r))o=!0,a.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);this.addAll(e),o&&this.sync(a),this.needsBlock=s}else this.addElementByRule(e,i,!1===i.consuming?n:null)},_e.prototype.leafFallback=function(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))},_e.prototype.ignoreFallback=function(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))},_e.prototype.readStyles=function(e){var t=h.none;e:for(var n=0;n<e.length;n+=2)for(var r=null;;){var i=this.parser.matchStyle(e[n],e[n+1],this,r);if(!i)continue e;if(i.ignore)return null;if(t=this.parser.schema.marks[i.mark].create(i.attrs).addToSet(t),!1!==i.consuming)break;r=i}return t},_e.prototype.addElementByRule=function(e,t,n){var r,i,o,a,s=this;t.node?(i=this.parser.schema.nodes[t.node],i.isLeaf?this.insertNode(i.create(t.attrs))||this.leafFallback(e):r=this.enter(i,t.attrs,t.preserveWhitespace)):(o=this.parser.schema.marks[t.mark],a=o.create(t.attrs),this.addPendingMark(a));var u=this.top;if(i&&i.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((function(e){return s.insertNode(e)}));else{var l=t.contentElement;"string"==typeof l?l=e.querySelector(l):"function"==typeof l&&(l=l(e)),l||(l=e),this.findAround(e,l,!0),this.addAll(l,r)}r&&(this.sync(u),this.open--),a&&this.removePendingMark(a,u)},_e.prototype.addAll=function(e,t,n,r){for(var i=n||0,o=n?e.childNodes[n]:e.firstChild,a=null==r?null:e.childNodes[r];o!=a;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o),t&&pe.hasOwnProperty(o.nodeName.toLowerCase())&&this.sync(t);this.findAtPoint(e,i)},_e.prototype.findPlace=function(e){for(var t,n,r=this.open;r>=0;r--){var i=this.nodes[r],o=i.findWrapping(e);if(o&&(!t||t.length>o.length)&&(t=o,n=i,!o.length))break;if(i.solid)break}if(!t)return!1;this.sync(n);for(var a=0;a<t.length;a++)this.enterInner(t[a],null,!1);return!0},_e.prototype.insertNode=function(e){if(e.isInline&&this.needsBlock&&!this.top.type){var t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();var n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));for(var r=n.activeMarks,i=0;i<e.marks.length;i++)n.type&&!n.type.allowsMarkType(e.marks[i].type)||(r=e.marks[i].addToSet(r));return n.content.push(e.mark(r)),!0}return!1},_e.prototype.enter=function(e,t,n){var r=this.findPlace(e.create(t));return r&&this.enterInner(e,t,!0,n),r},_e.prototype.enterInner=function(e,t,n,r){this.closeExtra();var i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e,t);var o=qe(e,r,i.options);i.options&be&&0==i.content.length&&(o|=be),this.nodes.push(new we(e,t,i.activeMarks,i.pendingMarks,n,null,o)),this.open++},_e.prototype.closeExtra=function(e){var t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}},_e.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},_e.prototype.sync=function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return void(this.open=t)},xe.currentPos.get=function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,r=n.length-1;r>=0;r--)e+=n[r].nodeSize;t&&e++}return e},_e.prototype.findAtPoint=function(e,t){if(this.find)for(var n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)},_e.prototype.findInside=function(e){if(this.find)for(var t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)},_e.prototype.findAround=function(e,t,n){if(e!=t&&this.find)for(var r=0;r<this.find.length;r++)if(null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)){var i=t.compareDocumentPosition(this.find[r].node);i&(n?2:4)&&(this.find[r].pos=this.currentPos)}},_e.prototype.findInText=function(e){if(this.find)for(var t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))},_e.prototype.matchesContext=function(e){var t=this;if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1),a=function(e,s){for(;e>=0;e--){var u=n[e];if(""==u){if(e==n.length-1||0==e)continue;for(;s>=o;s--)if(a(e-1,s))return!0;return!1}var l=s>0||0==s&&i?t.nodes[s].type:r&&s>=o?r.node(s-o).type:null;if(!l||l.name!=u&&-1==l.groups.indexOf(u))return!1;s--}return!0};return a(n.length-1,this.open)},_e.prototype.textblockFromContext=function(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var r in this.parser.schema.nodes){var i=this.parser.schema.nodes[r];if(i.isTextblock&&i.defaultAttrs)return i}},_e.prototype.addPendingMark=function(e){var t=Ae(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)},_e.prototype.removePendingMark=function(e,t){for(var n=this.open;n>=0;n--){var r=this.nodes[n],i=r.pendingMarks.lastIndexOf(e);if(i>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);var o=r.popFromStashMark(e);o&&r.type&&r.type.allowsMarkType(o.type)&&(r.activeMarks=o.addToSet(r.activeMarks))}if(r==t)break}},Object.defineProperties(_e.prototype,xe);var De=function(e,t){this.nodes=e||{},this.marks=t||{}};function Te(e){var t={};for(var n in e){var r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function Pe(e){return e.document||window.document}De.prototype.serializeFragment=function(e,t,n){var r=this;void 0===t&&(t={}),n||(n=Pe(t).createDocumentFragment());var i=n,o=null;return e.forEach((function(e){if(o||e.marks.length){o||(o=[]);var n=0,a=0;while(n<o.length&&a<e.marks.length){var s=e.marks[a];if(r.marks[s.type.name]){if(!s.eq(o[n])||!1===s.type.spec.spanning)break;n+=2,a++}else a++}while(n<o.length)i=o.pop(),o.pop();while(a<e.marks.length){var u=e.marks[a++],l=r.serializeMark(u,e.isInline,t);l&&(o.push(u,i),i.appendChild(l.dom),i=l.contentDOM||l.dom)}}i.appendChild(r.serializeNodeInner(e,t))})),n},De.prototype.serializeNodeInner=function(e,t){void 0===t&&(t={});var n=De.renderSpec(Pe(t),this.nodes[e.type.name](e)),r=n.dom,i=n.contentDOM;if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");t.onContent?t.onContent(e,i,t):this.serializeFragment(e.content,t,i)}return r},De.prototype.serializeNode=function(e,t){void 0===t&&(t={});for(var n=this.serializeNodeInner(e,t),r=e.marks.length-1;r>=0;r--){var i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n},De.prototype.serializeMark=function(e,t,n){void 0===n&&(n={});var r=this.marks[e.type.name];return r&&De.renderSpec(Pe(n),r(e,t))},De.renderSpec=function(e,t,n){if(void 0===n&&(n=null),"string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;var r=t[0],i=r.indexOf(" ");i>0&&(n=r.slice(0,i),r=r.slice(i+1));var o=null,a=n?e.createElementNS(n,r):e.createElement(r),s=t[1],u=1;if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s))for(var l in u=2,s)if(null!=s[l]){var c=l.indexOf(" ");c>0?a.setAttributeNS(l.slice(0,c),l.slice(c+1),s[l]):a.setAttribute(l,s[l])}for(var f=u;f<t.length;f++){var d=t[f];if(0===d){if(f<t.length-1||f>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}var h=De.renderSpec(e,d,n),p=h.dom,m=h.contentDOM;if(a.appendChild(p),m){if(o)throw new RangeError("Multiple content holes");o=m}}return{dom:a,contentDOM:o}},De.fromSchema=function(e){return e.cached.domSerializer||(e.cached.domSerializer=new De(this.nodesFromSchema(e),this.marksFromSchema(e)))},De.nodesFromSchema=function(e){var t=Te(e.nodes);return t.text||(t.text=function(e){return e.text}),t},De.marksFromSchema=function(e){return Te(e.marks)}},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"30c9":function(e,t,n){var r=n("9520"),i=n("b218");function o(e){return null!=e&&i(e.length)&&!r(e)}e.exports=o},"320c":function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function a(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(o){return!1}}e.exports=a()?Object.assign:function(e,t){for(var n,a,s=o(e),u=1;u<arguments.length;u++){for(var l in n=Object(arguments[u]),n)r.call(n,l)&&(s[l]=n[l]);if(Object.getOwnPropertySymbols){a=Object.getOwnPropertySymbols(n);for(var c=0;c<a.length;c++)i.call(n,a[c])&&(s[a[c]]=n[a[c]])}}return s}},"32b3":function(e,t,n){var r=n("872a"),i=n("9638"),o=Object.prototype,a=o.hasOwnProperty;function s(e,t,n){var o=e[t];a.call(e,t)&&i(o,n)&&(void 0!==n||t in e)||r(e,t,n)}e.exports=s},"32f4":function(e,t,n){var r=n("2d7c"),i=n("d327"),o=Object.prototype,a=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,u=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return a.call(e,t)})))}:i;e.exports=u},"34ac":function(e,t,n){var r=n("9520"),i=n("1368"),o=n("1a8c"),a=n("dc57"),s=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,f=l.toString,d=c.hasOwnProperty,h=RegExp("^"+f.call(d).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(e){if(!o(e)||i(e))return!1;var t=r(e)?h:u;return t.test(a(e))}e.exports=p},"366b":function(e,t,n){var r=n("c873"),i=n("c8d5"),o=n("e13a"),a=n("17cd"),s=n("52cf"),u=1440,l=2520,c=43200,f=86400;function d(e,t,n){var d=n||{},h=r(e,t),p=d.locale,m=s.distanceInWords.localize;p&&p.distanceInWords&&p.distanceInWords.localize&&(m=p.distanceInWords.localize);var g,v,y={addSuffix:Boolean(d.addSuffix),comparison:h};h>0?(g=i(e),v=i(t)):(g=i(t),v=i(e));var b,q=o(v,g),w=v.getTimezoneOffset()-g.getTimezoneOffset(),_=Math.round(q/60)-w;if(_<2)return d.includeSeconds?q<5?m("lessThanXSeconds",5,y):q<10?m("lessThanXSeconds",10,y):q<20?m("lessThanXSeconds",20,y):q<40?m("halfAMinute",null,y):m(q<60?"lessThanXMinutes":"xMinutes",1,y):0===_?m("lessThanXMinutes",1,y):m("xMinutes",_,y);if(_<45)return m("xMinutes",_,y);if(_<90)return m("aboutXHours",1,y);if(_<u){var x=Math.round(_/60);return m("aboutXHours",x,y)}if(_<l)return m("xDays",1,y);if(_<c){var S=Math.round(_/u);return m("xDays",S,y)}if(_<f)return b=Math.round(_/c),m("aboutXMonths",b,y);if(b=a(v,g),b<12){var k=Math.round(_/c);return m("xMonths",k,y)}var C=b%12,E=Math.floor(b/12);return C<3?m("aboutXYears",E,y):C<9?m("overXYears",E,y):m("almostXYears",E+1,y)}e.exports=d},3698:function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},3729:function(e,t,n){var r=n("9e69"),i=n("00fd"),o=n("29f3"),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;function l(e){return null==e?void 0===e?s:a:u&&u in Object(e)?i(e):o(e)}e.exports=l},3818:function(e,t,n){var r=n("7e64"),i=n("8057"),o=n("32b3"),a=n("5b01"),s=n("0f0f"),u=n("e538"),l=n("4359"),c=n("54eb"),f=n("1041"),d=n("a994"),h=n("1bac"),p=n("42a2"),m=n("c87c"),g=n("c2b6"),v=n("fa21"),y=n("6747"),b=n("0d24"),q=n("cc45"),w=n("1a8c"),_=n("d7ee"),x=n("ec69"),S=n("9934"),k=1,C=2,E=4,O="[object Arguments]",A="[object Array]",D="[object Boolean]",T="[object Date]",P="[object Error]",M="[object Function]",N="[object GeneratorFunction]",I="[object Map]",R="[object Number]",j="[object Object]",F="[object RegExp]",L="[object Set]",B="[object String]",U="[object Symbol]",z="[object WeakMap]",H="[object ArrayBuffer]",$="[object DataView]",V="[object Float32Array]",W="[object Float64Array]",X="[object Int8Array]",G="[object Int16Array]",Y="[object Int32Array]",K="[object Uint8Array]",J="[object Uint8ClampedArray]",Z="[object Uint16Array]",Q="[object Uint32Array]",ee={};function te(e,t,n,A,D,T){var P,I=t&k,R=t&C,F=t&E;if(n&&(P=D?n(e,A,D,T):n(e)),void 0!==P)return P;if(!w(e))return e;var L=y(e);if(L){if(P=m(e),!I)return l(e,P)}else{var B=p(e),U=B==M||B==N;if(b(e))return u(e,I);if(B==j||B==O||U&&!D){if(P=R||U?{}:v(e),!I)return R?f(e,s(P,e)):c(e,a(P,e))}else{if(!ee[B])return D?e:{};P=g(e,B,I)}}T||(T=new r);var z=T.get(e);if(z)return z;T.set(e,P),_(e)?e.forEach((function(r){P.add(te(r,t,n,r,e,T))})):q(e)&&e.forEach((function(r,i){P.set(i,te(r,t,n,i,e,T))}));var H=F?R?h:d:R?S:x,$=L?void 0:H(e);return i($||e,(function(r,i){$&&(i=r,r=e[i]),o(P,i,te(r,t,n,i,e,T))})),P}ee[O]=ee[A]=ee[H]=ee[$]=ee[D]=ee[T]=ee[V]=ee[W]=ee[X]=ee[G]=ee[Y]=ee[I]=ee[R]=ee[j]=ee[F]=ee[L]=ee[B]=ee[U]=ee[K]=ee[J]=ee[Z]=ee[Q]=!0,ee[P]=ee[M]=ee[z]=!1,e.exports=te},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"39ff":function(e,t,n){var r=n("0b07"),i=n("2b3e"),o=r(i,"WeakMap");e.exports=o},"3b4a":function(e,t,n){var r=n("0b07"),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},"3bb4":function(e,t,n){var r=n("08cc"),i=n("ec69");function o(e){var t=i(e),n=t.length;while(n--){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}e.exports=o},"3ce4":function(e,t,n){"use strict";var r=n("1020"),i=n("073e");t.highlight=a,t.highlightAuto=s,t.registerLanguage=u,t.listLanguages=l,t.registerAlias=c,f.prototype.addText=p,f.prototype.addKeyword=d,f.prototype.addSublanguage=h,f.prototype.openNode=m,f.prototype.closeNode=g,f.prototype.closeAllNodes=y,f.prototype.finalize=y,f.prototype.toHTML=v;var o="hljs-";function a(e,t,n){var a,s=r.configure({}),u=n||{},l=u.prefix;if("string"!==typeof e)throw i("Expected `string` for name, got `%s`",e);if(!r.getLanguage(e))throw i("Unknown language: `%s` is not registered",e);if("string"!==typeof t)throw i("Expected `string` for value, got `%s`",t);if(null!==l&&void 0!==l||(l=o),r.configure({__emitter:f,classPrefix:l}),a=r.highlight(t,{language:e,ignoreIllegals:!0}),r.configure(s||{}),a.errorRaised)throw a.errorRaised;return{relevance:a.relevance,language:a.language,value:a.emitter.rootNode.children}}function s(e,t){var n,s,u,l,c=t||{},f=c.subset||r.listLanguages(),d=c.prefix,h=f.length,p=-1;if(null!==d&&void 0!==d||(d=o),"string"!==typeof e)throw i("Expected `string` for value, got `%s`",e);s={relevance:0,language:null,value:[]},n={relevance:0,language:null,value:[]};while(++p<h)l=f[p],r.getLanguage(l)&&(u=a(l,e,t),u.language=l,u.relevance>s.relevance&&(s=u),u.relevance>n.relevance&&(s=n,n=u));return s.language&&(n.secondBest=s),n}function u(e,t){r.registerLanguage(e,t)}function l(){return r.listLanguages()}function c(e,t){var n,i=e;for(n in t&&(i={},i[e]=t),i)r.registerAliases(i[n],{languageName:n})}function f(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function d(e,t){this.openNode(t),this.addText(e),this.closeNode()}function h(e,t){var n=this.stack,r=n[n.length-1],i=e.rootNode.children,o=t?{type:"element",tagName:"span",properties:{className:[t]},children:i}:i;r.children=r.children.concat(o)}function p(e){var t,n,r=this.stack;""!==e&&(t=r[r.length-1],n=t.children[t.children.length-1],n&&"text"===n.type?n.value+=e:t.children.push({type:"text",value:e}))}function m(e){var t=this.stack,n=this.options.classPrefix+e,r=t[t.length-1],i={type:"element",tagName:"span",properties:{className:[n]},children:[]};r.children.push(i),t.push(i)}function g(){this.stack.pop()}function v(){return""}function y(){}},"408c":function(e,t,n){var r=n("2b3e"),i=function(){return r.Date.now()};e.exports=i},"41c3":function(e,t,n){var r=n("1a8c"),i=n("eac5"),o=n("ec8c"),a=Object.prototype,s=a.hasOwnProperty;function u(e){if(!r(e))return o(e);var t=i(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}e.exports=u},"41e5":function(e,t,n){"use strict";n.d(t,"a",(function(){return bn})),n.d(t,"b",(function(){return _n})),n.d(t,"c",(function(){return In}));var r=n("65e8");const i={};var o=i;if("undefined"!=typeof navigator&&"undefined"!=typeof document){const e=/Edge\/(\d+)/.exec(navigator.userAgent),t=/MSIE \d/.test(navigator.userAgent),n=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);let r=i.ie=!!(t||n||e);i.ie_version=t?document.documentMode||6:n?+n[1]:e?+e[1]:null,i.gecko=!r&&/gecko\/(\d+)/i.test(navigator.userAgent),i.gecko_version=i.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];let o=!r&&/Chrome\/(\d+)/.exec(navigator.userAgent);i.chrome=!!o,i.chrome_version=o&&+o[1],i.safari=!r&&/Apple Computer/.test(navigator.vendor),i.ios=i.safari&&(/Mobile\/\w+/.test(navigator.userAgent)||navigator.maxTouchPoints>2),i.mac=i.ios||/Mac/.test(navigator.platform),i.android=/Android \d/.test(navigator.userAgent),i.webkit="webkitFontSmoothing"in document.documentElement.style,i.webkit_version=i.webkit&&+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]}const a=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},s=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t};let u=null;const l=function(e,t,n){let r=u||(u=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},c=function(e,t,n,r){return n&&(d(e,t,n,r,-1)||d(e,t,n,r,1))},f=/^(img|br|input|textarea|hr)$/i;function d(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:h(e))){let n=e.parentNode;if(!n||1!=n.nodeType||m(e)||f.test(e.nodeName)||"false"==e.contentEditable)return!1;t=a(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(e=e.childNodes[t+(i<0?-1:0)],"false"==e.contentEditable)return!1;t=i<0?h(e):0}}}function h(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function p(e,t,n){for(let r=0==t,i=t==h(e);r||i;){if(e==n)return!0;let t=a(e);if(e=e.parentNode,!e)return!1;r=r&&0==t,i=i&&t==h(e)}}function m(e){let t;for(let n=e;n;n=n.parentNode)if(t=n.pmViewDesc)break;return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const g=function(e){let t=e.isCollapsed;return t&&o.chrome&&e.rangeCount&&!e.getRangeAt(0).collapsed&&(t=!1),t};function v(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function y(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function b(e,t){return"number"==typeof e?e:e[t]}function q(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function w(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let a=n||e.dom;;a=s(a)){if(!a)break;if(1!=a.nodeType)continue;let e=a==o.body||1!=a.nodeType,n=e?y(o):q(a),s=0,u=0;if(t.top<n.top+b(r,"top")?u=-(n.top-t.top+b(i,"top")):t.bottom>n.bottom-b(r,"bottom")&&(u=t.bottom-n.bottom+b(i,"bottom")),t.left<n.left+b(r,"left")?s=-(n.left-t.left+b(i,"left")):t.right>n.right-b(r,"right")&&(s=t.right-n.right+b(i,"right")),s||u)if(e)o.defaultView.scrollBy(s,u);else{let e=a.scrollLeft,n=a.scrollTop;u&&(a.scrollTop+=u),s&&(a.scrollLeft+=s);let r=a.scrollLeft-e,i=a.scrollTop-n;t={left:t.left-r,top:t.top-i,right:t.right-r,bottom:t.bottom-i}}if(e)break}}function _(e){let t,n,r=e.dom.getBoundingClientRect(),i=Math.max(0,r.top);for(let o=(r.left+r.right)/2,a=i+1;a<Math.min(innerHeight,r.bottom);a+=5){let r=e.root.elementFromPoint(o,a);if(r==e.dom||!e.dom.contains(r))continue;let s=r.getBoundingClientRect();if(s.top>=i-20){t=r,n=s.top;break}}return{refDOM:t,refTop:n,stack:x(e.dom)}}function x(e){let t=[],n=e.ownerDocument;for(;e;e=s(e))if(t.push({dom:e,top:e.scrollTop,left:e.scrollLeft}),e==n)break;return t}function S({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;k(n,0==r?0:r-t)}function k(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:o}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=o&&(r.scrollLeft=o)}}let C=null;function E(e){if(e.setActive)return e.setActive();if(C)return e.focus(C);let t=x(e);e.focus(null==C?{get preventScroll(){return C={preventScroll:!0},!0}}:void 0),C||(C=!1,k(t,0))}function O(e,t){let n,r,i=2e8,o=0,a=t.top,s=t.top;for(let u=e.firstChild,c=0;u;u=u.nextSibling,c++){let e;if(1==u.nodeType)e=u.getClientRects();else{if(3!=u.nodeType)continue;e=l(u).getClientRects()}for(let l=0;l<e.length;l++){let f=e[l];if(f.top<=a&&f.bottom>=s){a=Math.max(f.bottom,a),s=Math.min(f.top,s);let e=f.left>t.left?f.left-t.left:f.right<t.left?t.left-f.right:0;if(e<i){n=u,i=e,r=e&&3==n.nodeType?{left:f.right<t.left?f.right:f.left,top:t.top}:t,1==u.nodeType&&e&&(o=c+(t.left>=(f.left+f.right)/2?1:0));continue}}!n&&(t.left>=f.right&&t.top>=f.top||t.left>=f.left&&t.top>=f.bottom)&&(o=c+1)}}return n&&3==n.nodeType?A(n,r):!n||i&&1==n.nodeType?{node:e,offset:o}:O(n,r)}function A(e,t){let n=e.nodeValue.length,r=document.createRange();for(let i=0;i<n;i++){r.setEnd(e,i+1),r.setStart(e,i);let n=R(r,1);if(n.top!=n.bottom&&D(t,n))return{node:e,offset:i+(t.left>=(n.left+n.right)/2?1:0)}}return{node:e,offset:0}}function D(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function T(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function P(e,t,n){let{node:r,offset:i}=O(t,n),o=-1;if(1==r.nodeType&&!r.firstChild){let e=r.getBoundingClientRect();o=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}function M(e,t,n,r){let i=-1;for(let o=t;;){if(o==e.dom)break;let t=e.docView.nearestDesc(o,!0);if(!t)return null;if(t.node.isBlock&&t.parent){let e=t.dom.getBoundingClientRect();if(e.left>r.left||e.top>r.top)i=t.posBefore;else{if(!(e.right<r.left||e.bottom<r.top))break;i=t.posAfter}}o=t.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n)}function N(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),o=i;;){let n=e.childNodes[o];if(1==n.nodeType){let e=n.getClientRects();for(let r=0;r<e.length;r++){let i=e[r];if(D(t,i))return N(n,t,i)}}if((o=(o+1)%r)==i)break}return e}function I(e,t){let n,r,i=e.dom.ownerDocument;if(i.caretPositionFromPoint)try{let e=i.caretPositionFromPoint(t.left,t.top);e&&({offsetNode:n,offset:r}=e)}catch(c){}if(!n&&i.caretRangeFromPoint){let e=i.caretRangeFromPoint(t.left,t.top);e&&({startContainer:n,startOffset:r}=e)}let a,u=(e.root.elementFromPoint?e.root:i).elementFromPoint(t.left,t.top+1);if(!u||!e.dom.contains(1!=u.nodeType?u.parentNode:u)){let n=e.dom.getBoundingClientRect();if(!D(t,n))return null;if(u=N(e.dom,t,n),!u)return null}if(o.safari)for(let o=u;n&&o;o=s(o))o.draggable&&(n=r=null);if(u=T(u,t),n){if(o.gecko&&1==n.nodeType&&(r=Math.min(r,n.childNodes.length),r<n.childNodes.length)){let e,i=n.childNodes[r];"IMG"==i.nodeName&&(e=i.getBoundingClientRect()).right<=t.left&&e.bottom>t.top&&r++}n==e.dom&&r==n.childNodes.length-1&&1==n.lastChild.nodeType&&t.top>n.lastChild.getBoundingClientRect().bottom?a=e.state.doc.content.size:0!=r&&1==n.nodeType&&"BR"==n.childNodes[r-1].nodeName||(a=M(e,n,r,t))}null==a&&(a=P(e,u,t));let l=e.docView.nearestDesc(u,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function R(e,t){let n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}const j=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function F(e,t,n){let{node:r,offset:i}=e.docView.domFromPos(t,n<0?-1:1),a=o.webkit||o.gecko;if(3==r.nodeType){if(!a||!j.test(r.nodeValue)&&(n<0?i:i!=r.nodeValue.length)){let e=i,t=i,o=n<0?1:-1;return n<0&&!i?(t++,o=-1):n>=0&&i==r.nodeValue.length?(e--,o=1):n<0?e--:t++,L(R(l(r,e,t),o),o<0)}{let e=R(l(r,i,i),n);if(o.gecko&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let t=R(l(r,i-1,i-1),-1);if(t.top==e.top){let n=R(l(r,i,i+1),-1);if(n.top!=e.top)return L(n,n.left<t.left)}}return e}}if(!e.state.doc.resolve(t).parent.inlineContent){if(i&&(n<0||i==h(r))){let e=r.childNodes[i-1];if(1==e.nodeType)return B(e.getBoundingClientRect(),!1)}if(i<h(r)){let e=r.childNodes[i];if(1==e.nodeType)return B(e.getBoundingClientRect(),!0)}return B(r.getBoundingClientRect(),n>=0)}if(i&&(n<0||i==h(r))){let e=r.childNodes[i-1],t=3==e.nodeType?l(e,h(e)-(a?0:1)):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return L(R(t,1),!1)}if(i<h(r)){let e=r.childNodes[i];while(e.pmViewDesc&&e.pmViewDesc.ignoreForCoords)e=e.nextSibling;let t=e?3==e.nodeType?l(e,0,a?0:1):1==e.nodeType?e:null:null;if(t)return L(R(t,-1),!0)}return L(R(3==r.nodeType?l(r):r,-n),n>=0)}function L(e,t){if(0==e.width)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function B(e,t){if(0==e.height)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function U(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function z(e,t,n){let r=t.selection,i="up"==n?r.$from:r.$to;return U(e,t,()=>{let{node:t}=e.docView.domFromPos(i.pos,"up"==n?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.dom;break}t=n.dom.parentNode}let r=F(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=l(e,0,e.nodeValue.length).getClientRects()}for(let e=0;e<t.length;e++){let i=t[e];if(i.bottom>i.top+1&&("up"==n?r.top-i.top>2*(i.bottom-r.top):i.bottom-r.bottom>2*(r.bottom-i.top)))return!1}}return!0})}const H=/[\u0590-\u08ac]/;function $(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,a=i==r.parent.content.size,s=e.root.getSelection();return H.test(r.parent.textContent)&&s.modify?U(e,t,()=>{let t=s.getRangeAt(0),i=s.focusNode,o=s.focusOffset,a=s.caretBidiLevel;s.modify("move",n,"character");let u=r.depth?e.docView.domAfterPos(r.before()):e.dom,l=!u.contains(1==s.focusNode.nodeType?s.focusNode:s.focusNode.parentNode)||i==s.focusNode&&o==s.focusOffset;return s.removeAllRanges(),s.addRange(t),null!=a&&(s.caretBidiLevel=a),l}):"left"==n||"backward"==n?o:a}let V=null,W=null,X=!1;function G(e,t,n){return V==t&&W==n?X:(V=t,W=n,X="up"==n||"down"==n?z(e,t,n):$(e,t,n))}var Y=n("304a");const K=0,J=1,Z=2,Q=3;class ee{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=r,this.dirty=K}matchesWidget(){return!1}matchesMark(){return!1}matchesNode(){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=null,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=null);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;t<this.children.length;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{while(e.parentNode!=this.contentDOM)e=e.parentNode;n=e.previousSibling}while(n&&(!(r=n.pmViewDesc)||r.parent!=this))n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{while(e.parentNode!=this.contentDOM)e=e.parentNode;n=e.nextSibling}while(n&&(!(r=n.pmViewDesc)||r.parent!=this))n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}}let r;if(e==this.dom&&this.contentDOM)r=t>a(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.parentNode.firstChild!=t)break}if(null==r&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.parentNode.lastChild!=t)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(e,t){for(let n=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i&&(!t||i.node)){if(!n||!i.nodeDOM||(1==i.nodeDOM.nodeType?i.nodeDOM.contains(1==e.nodeType?e:e.parentNode):i.nodeDOM==e))return i;n=!1}}}getDesc(e){let t=e.pmViewDesc;for(let n=t;n;n=n.parent)if(n==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],i=n+r.size;if(n==e&&i!=n){while(!r.border&&r.children.length)r=r.children[0];return r}if(e<i)return r.descAt(e-n-r.border);n=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0};let n,r=0,i=0;for(let o=0;r<this.children.length;r++){let t=this.children[r],n=o+t.size;if(n>e||t instanceof ue){i=e-o;break}o=n}if(i)return this.children[r].domFromPos(i-this.children[r].border,t);for(;r&&!(n=this.children[r-1]).size&&n instanceof ne&&n.widget.type.side>=0;r--);if(t<=0){let e,n=!0;for(;;r--,n=!1)if(e=r?this.children[r-1]:null,!e||e.dom.parentNode==this.contentDOM)break;return e&&t&&n&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?a(e.dom)+1:0}}{let e,n=!0;for(;;r++,n=!1)if(e=r<this.children.length?this.children[r]:null,!e||e.dom.parentNode==this.contentDOM)break;return e&&n&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?a(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let o=n,s=0;;s++){let n=this.children[s],u=o+n.size;if(-1==r&&e<=u){let i=o+n.border;if(e>=i&&t<=u-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=o;for(let t=s;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=a(n.dom)+1;break}e-=n.size}-1==r&&(r=0)}if(r>-1&&(u>t||s==this.children.length-1)){t=u;for(let e=s+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){i=a(n.dom);break}t+=n.size}-1==i&&(i=this.contentDOM.childNodes.length);break}o=u}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(1!=t.nodeType||n==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[n]}setSelection(e,t,n,r){let i=Math.min(e,t),s=Math.max(e,t);for(let o=0,a=0;o<this.children.length;o++){let u=this.children[o],l=a+u.size;if(i>a&&s<l)return u.setSelection(e-a-u.border,t-a-u.border,n,r);a=l}let u=this.domFromPos(e,e?-1:1),l=t==e?u:this.domFromPos(t,t?-1:1),f=n.getSelection(),d=!1;if((o.gecko||o.safari)&&e==t){let{node:e,offset:t}=u;if(3==e.nodeType){if(d=t&&"\n"==e.nodeValue[t-1],d&&t==e.nodeValue.length)for(let n,r=e;r;r=r.parentNode){if(n=r.nextSibling){"BR"==n.nodeName&&(u=l={node:n.parentNode,offset:a(n)+1});break}let e=r.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];d=n&&("BR"==n.nodeName||"false"==n.contentEditable)}}if(o.gecko&&f.focusNode&&f.focusNode!=l.node&&1==f.focusNode.nodeType){let e=f.focusNode.childNodes[f.focusOffset];e&&"false"==e.contentEditable&&(r=!0)}if(!(r||d&&o.safari)&&c(u.node,u.offset,f.anchorNode,f.anchorOffset)&&c(l.node,l.offset,f.focusNode,f.focusOffset))return;let h=!1;if((f.extend||e==t)&&!d){f.collapse(u.node,u.offset);try{e!=t&&f.extend(l.node,l.offset),h=!0}catch(p){if(!(p instanceof DOMException))throw p}}if(!h){if(e>t){let e=u;u=l,l=e}let n=document.createRange();n.setEnd(l.node,l.offset),n.setStart(u.node,u.offset),f.removeAllRanges(),f.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],o=n+i.size;if(n==o?e<=o&&t>=n:e<o&&t>n){let r=n+i.border,a=o-i.border;if(e>=r&&t<=a)return this.dirty=e==n||t==o?Z:J,void(e!=r||t!=a||!i.contentLost&&i.dom.parentNode==this.contentDOM?i.markDirty(e-r,t-r):i.dirty=Q);i.dirty=i.dom!=i.contentDOM||i.dom.parentNode!=this.contentDOM||i.children.length?Q:Z}n=o}this.dirty=Z}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?Z:J;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}const te=[];class ne extends ee{constructor(e,t,n,r){let i,o=t.type.toDOM;if("function"==typeof o&&(o=o(n,()=>i?i.parent?i.parent.posBeforeChild(i):void 0:r)),!t.type.spec.raw){if(1!=o.nodeType){let e=document.createElement("span");e.appendChild(o),o=e}o.contentEditable=!1,o.classList.add("ProseMirror-widget")}super(e,te,o,null),this.widget=t,i=this}matchesWidget(e){return this.dirty==K&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}}class re extends ee{constructor(e,t,n,r){super(e,te,t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class ie extends ee{constructor(e,t,n,r){super(e,[],n,r),this.mark=t}static create(e,t,n,r){let i=r.nodeViews[t.type.name],o=i&&i(t,r,n);return o&&o.dom||(o=Y["b"].renderSpec(document,t.type.spec.toDOM(t,n))),new ie(e,t,o.dom,o.contentDOM||o.dom)}parseRule(){return this.dirty&Q||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Q&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=K){let e=this.parent;while(!e.node)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=K}}slice(e,t,n){let r=ie.create(this.parent,this.mark,!0,n),i=this.children,o=this.size;t<o&&(i=Ce(i,t,o,n)),e>0&&(i=Ce(i,0,e,n));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}}class oe extends ee{constructor(e,t,n,r,i,o,a,s,u){super(e,t.isLeaf?te:[],i,o),this.nodeDOM=a,this.node=t,this.outerDeco=n,this.innerDeco=r,o&&this.updateChildren(s,u)}static create(e,t,n,r,i,o){let a,s=i.nodeViews[t.type.name],u=s&&s(t,i,()=>a?a.parent?a.parent.posBeforeChild(a):void 0:o,n,r),l=u&&u.dom,c=u&&u.contentDOM;if(t.isText)if(l){if(3!=l.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else l=document.createTextNode(t.text);else l||({dom:l,contentDOM:c}=Y["b"].renderSpec(document,t.type.spec.toDOM(t)));c||t.isText||"BR"==l.nodeName||(l.hasAttribute("contenteditable")||(l.contentEditable=!1),t.type.spec.draggable&&(l.draggable=!0));let f=l;return l=ge(l,n,t),u?a=new le(e,t,n,r,l,c,f,u,i,o+1):t.isText?new se(e,t,n,r,l,f,i):new oe(e,t,n,r,l,c,f,i,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>Y["c"].empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,n){return this.dirty==K&&e.eq(this.node)&&ve(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let n=this.node.inlineContent,r=t,i=e.composing&&this.localCompositionInfo(e,t),a=i&&i.pos>-1?i:null,s=i&&i.pos<0,u=new be(this,a&&a.node);_e(this.node,this.innerDeco,(t,i,o)=>{t.spec.marks?u.syncToMarks(t.spec.marks,n,e):t.type.side>=0&&!o&&u.syncToMarks(i==this.node.childCount?Y["d"].none:this.node.child(i).marks,n,e),u.placeWidget(t,e,r)},(t,o,a,l)=>{let c;u.syncToMarks(t.marks,n,e),u.findNodeMatch(t,o,a,l)||s&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(c=u.findIndexWithChild(i.node))>-1&&u.updateNodeAt(t,o,a,c,e)||u.updateNextNode(t,o,a,e,l)||u.addNode(t,o,a,e,r),r+=t.nodeSize}),u.syncToMarks(te,n,e),this.node.isTextblock&&u.addTextblockHacks(),u.destroyRest(),(u.changed||this.dirty==Z)&&(a&&this.protectLocalComposition(e,a),ce(this.contentDOM,this.children,e),o.ios&&xe(this.dom))}localCompositionInfo(e,t){let{from:n,to:i}=e.state.selection;if(!(e.state.selection instanceof r["h"])||n<t||i>t+this.node.content.size)return;let o=e.root.getSelection(),a=Se(o.focusNode,o.focusOffset);if(a&&this.dom.contains(a.parentNode)){if(this.node.inlineContent){let e=a.nodeValue,r=ke(this.node.content,e,n-t,i-t);return r<0?null:{node:a,pos:r,text:e}}return{node:a,pos:-1}}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let i=t;for(;;i=i.parentNode){if(i.parentNode==this.contentDOM)break;while(i.previousSibling)i.parentNode.removeChild(i.previousSibling);while(i.nextSibling)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=null)}let o=new re(this,i,t,r);e.compositionNodes.push(o),this.children=Ce(this.children,n,n+r.length,e,o)}update(e,t,n,r){return!(this.dirty==Q||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=K}updateOuterDeco(e){if(ve(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=pe(this.dom,this.nodeDOM,he(this.outerDeco,this.node,t),he(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=null,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function ae(e,t,n,r,i){return ge(r,t,e),new oe(null,e,t,n,r,r,r,i,0)}class se extends oe{constructor(e,t,n,r,i,o,a){super(e,t,n,r,i,null,o,a)}parseRule(){let e=this.nodeDOM.parentNode;while(e&&e!=this.dom&&!e.pmIsDeco)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return!(this.dirty==Q||this.dirty!=K&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),this.dirty==K&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=K,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,n){let r=this.node.cut(e,t),i=document.createTextNode(r.text);return new se(this.parent,r,this.outerDeco,this.innerDeco,i,i,n)}markDirty(e,t){super.markDirty(e,t),this.dom==this.nodeDOM||0!=e&&t!=this.nodeDOM.nodeValue.length||(this.dirty=Q)}get domAtom(){return!1}}class ue extends ee{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==K&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class le extends oe{constructor(e,t,n,r,i,o,a,s,u,l){super(e,t,n,r,i,o,a,u,l),this.spec=s}update(e,t,n,r){if(this.dirty==Q)return!1;if(this.spec.update){let i=this.spec.update(e,t,n);return i&&this.updateInner(e,t,n,r),i}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function ce(e,t,n){let r=e.firstChild,i=!1;for(let o=0;o<t.length;o++){let a=t[o],s=a.dom;if(s.parentNode==e){while(s!=r)r=ye(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(a instanceof ie){let t=r?r.previousSibling:e.lastChild;ce(a.contentDOM,a.children,n),r=t?t.nextSibling:e.firstChild}}while(r)r=ye(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}function fe(e){e&&(this.nodeName=e)}fe.prototype=Object.create(null);const de=[new fe];function he(e,t,n){if(0==e.length)return de;let r=n?de[0]:new fe,i=[r];for(let o=0;o<e.length;o++){let a=e[o].type.attrs;if(a){a.nodeName&&i.push(r=new fe(a.nodeName));for(let e in a){let o=a[e];null!=o&&(n&&1==i.length&&i.push(r=new fe(t.isInline?"span":"div")),"class"==e?r.class=(r.class?r.class+" ":"")+o:"style"==e?r.style=(r.style?r.style+";":"")+o:"nodeName"!=e&&(r[e]=o))}}}return i}function pe(e,t,n,r){if(n==de&&r==de)return t;let i=t;for(let o=0;o<r.length;o++){let t=r[o],a=n[o];if(o){let n;a&&a.nodeName==t.nodeName&&i!=e&&(n=i.parentNode)&&n.tagName.toLowerCase()==t.nodeName||(n=document.createElement(t.nodeName),n.pmIsDeco=!0,n.appendChild(i),a=de[0]),i=n}me(i,a||de[0],t)}return i}function me(e,t,n){for(let r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(let r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(" ").filter(Boolean):te,i=n.class?n.class.split(" ").filter(Boolean):te;for(let t=0;t<r.length;t++)-1==i.indexOf(r[t])&&e.classList.remove(r[t]);for(let t=0;t<i.length;t++)-1==r.indexOf(i[t])&&e.classList.add(i[t]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let n,r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;while(n=r.exec(t.style))e.style.removeProperty(n[1])}n.style&&(e.style.cssText+=n.style)}}function ge(e,t,n){return pe(e,e,de,he(t,n,1!=e.nodeType))}function ve(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function ye(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class be{constructor(e,t){this.top=e,this.lock=t,this.index=0,this.stack=[],this.changed=!1,this.preMatch=qe(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n){let r=0,i=this.stack.length>>1,o=Math.min(i,e.length);while(r<o&&(r==i-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&!1!==e[r].type.spec.spanning)r++;while(r<i)this.destroyRest(),this.top.dirty=K,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;while(i<e.length){this.stack.push(this.top,this.index+1);let r=-1;for(let t=this.index;t<Math.min(this.index+3,this.top.children.length);t++)if(this.top.children[t].matchesMark(e[i])){r=t;break}if(r>-1)r>this.index&&(this.changed=!0,this.destroyBetween(this.index,r)),this.top=this.top.children[this.index];else{let r=ie.create(this.top,e[i],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,i++}}findNodeMatch(e,t,n,r){let i,o=-1;if(r>=this.preMatch.index&&(i=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&i.matchesNode(e,t,n))o=this.top.children.indexOf(i,this.index);else for(let a=this.index,s=Math.min(this.top.children.length,a+5);a<s;a++){let r=this.top.children[a];if(r.matchesNode(e,t,n)&&!this.preMatch.matched.has(r)){o=a;break}}return!(o<0)&&(this.destroyBetween(this.index,o),this.index++,!0)}updateNodeAt(e,t,n,r,i){let o=this.top.children[r];return!!o.update(e,t,n,i)&&(this.destroyBetween(this.index,r),this.index=r+1,!0)}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t)for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e;return-1}e=t}}updateNextNode(e,t,n,r,i){for(let o=this.index;o<this.top.children.length;o++){let a=this.top.children[o];if(a instanceof oe){let s=this.preMatch.matched.get(a);if(null!=s&&s!=i)return!1;let u=a.dom,l=this.lock&&(u==this.lock||1==u.nodeType&&u.contains(this.lock.parentNode))&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&a.dirty!=Q&&ve(t,a.outerDeco));if(!l&&a.update(e,t,n,r))return this.destroyBetween(this.index,o),a.dom!=u&&(this.changed=!0),this.index++,!0;break}}return!1}addNode(e,t,n,r,i){this.top.children.splice(this.index++,0,oe.create(this.top,e,t,n,r,i)),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(e)||e!=r.widget&&r.widget.type.toDOM.parentNode){let r=new ne(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}else this.index++}addTextblockHacks(){let e=this.top.children[this.index-1];while(e instanceof ie)e=e.children[e.children.length-1];e&&e instanceof se&&!/\n$/.test(e.node.text)||((o.safari||o.chrome)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG"),this.addHackNode("BR"))}addHackNode(e){if(this.index<this.top.children.length&&this.top.children[this.index].matchesHack(e))this.index++;else{let t=document.createElement(e);"IMG"==e&&(t.className="ProseMirror-separator",t.alt=""),"BR"==e&&(t.className="ProseMirror-trailingBreak"),this.top.children.splice(this.index++,0,new ue(this.top,te,t,null)),this.changed=!0}}}function qe(e,t){let n=t,r=n.children.length,i=e.childCount,o=new Map,a=[];e:while(i>0){let s;for(;;)if(r){let e=n.children[r-1];if(!(e instanceof ie)){s=e,r--;break}n=e,r=e.children.length}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let u=s.node;if(u){if(u!=e.child(i-1))break;--i,o.set(s,i),a.push(s)}}return{index:i,matched:o,matches:a.reverse()}}function we(e,t){return e.type.side-t.type.side}function _e(e,t,n,r){let i=t.locals(e),o=0;if(0==i.length){for(let n=0;n<e.childCount;n++){let a=e.child(n);r(a,i,t.forChild(o,a),n),o+=a.nodeSize}return}let a=0,s=[],u=null;for(let l=0;;){if(a<i.length&&i[a].to==o){let e,t=i[a++];while(a<i.length&&i[a].to==o)(e||(e=[t])).push(i[a++]);if(e){e.sort(we);for(let t=0;t<e.length;t++)n(e[t],l,!!u)}else n(t,l,!!u)}let c,f;if(u)f=-1,c=u,u=null;else{if(!(l<e.childCount))break;f=l,c=e.child(l++)}for(let e=0;e<s.length;e++)s[e].to<=o&&s.splice(e--,1);while(a<i.length&&i[a].from<=o&&i[a].to>o)s.push(i[a++]);let d=o+c.nodeSize;if(c.isText){let e=d;a<i.length&&i[a].from<e&&(e=i[a].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<d&&(u=c.cut(e-o),c=c.cut(0,e-o),d=e,f=-1)}let h=s.length?c.isInline&&!c.isLeaf?s.filter(e=>!e.inline):s.slice():te;r(c,h,t.forChild(o,c),f),o=d}}function xe(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function Se(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];e=e.childNodes[t-1],t=h(e)}else{if(!(1==e.nodeType&&t<e.childNodes.length))return null;e=e.childNodes[t],t=0}}}function ke(e,t,n,r){for(let i=0,o=0;i<e.childCount&&o<=r;){let a=e.child(i++),s=o;if(o+=a.nodeSize,!a.isText)continue;let u=a.text;while(i<e.childCount){let t=e.child(i++);if(o+=t.nodeSize,!t.isText)break;u+=t.text}if(o>=n){let e=s<r?u.lastIndexOf(t,r-s-1):-1;if(e>=0&&e+t.length+s>=n)return s+e;if(n==r&&u.length>=r+t.length-s&&u.slice(r-s,r-s+t.length)==t)return r}}return-1}function Ce(e,t,n,r,i){let o=[];for(let a=0,s=0;a<e.length;a++){let u=e[a],l=s,c=s+=u.size;l>=n||c<=t?o.push(u):(l<t&&o.push(u.slice(0,t-l,r)),i&&(o.push(i),i=null),c>n&&o.push(u.slice(n-l,u.size,r)))}return o}var Ee=n("2eae");function Oe(e,t){let n=e.root.getSelection(),i=e.state.doc;if(!n.focusNode)return null;let o=e.docView.nearestDesc(n.focusNode),a=o&&0==o.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset);if(s<0)return null;let u,l,c=i.resolve(s);if(g(n)){u=c;while(o&&!o.node)o=o.parent;if(o&&o.node.isAtom&&r["c"].isSelectable(o.node)&&o.parent&&(!o.node.isInline||!p(n.focusNode,n.focusOffset,o.dom))){let e=o.posBefore;l=new r["c"](s==e?c:i.resolve(e))}}else{let t=e.docView.posFromDOM(n.anchorNode,n.anchorOffset);if(t<0)return null;u=i.resolve(t)}if(!l){let n="pointer"==t||e.state.selection.head<c.pos&&!a?1:-1;l=Le(e,u,c,n)}return l}function Ae(e){return e.editable?e.hasFocus():Ue(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function De(e,t){let n=e.state.selection;if(je(e,n),Ae(e)){if(!t&&e.mouseDown&&e.mouseDown.allowDefault&&o.chrome){let t=e.root.getSelection(),n=e.domObserver.currentSelection;if(t.anchorNode&&c(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset))return e.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)Re(e);else{let i,o,{anchor:a,head:s}=n;!Te||n instanceof r["h"]||(n.$from.parent.inlineContent||(i=Pe(e,n.from)),n.empty||n.$from.parent.inlineContent||(o=Pe(e,n.to))),e.docView.setSelection(a,s,e.root,t),Te&&(i&&Ne(i),o&&Ne(o)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&Ie(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const Te=o.safari||o.chrome&&o.chrome_version<63;function Pe(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,a=r?n.childNodes[r-1]:null;if(o.safari&&i&&"false"==i.contentEditable)return Me(i);if((!i||"false"==i.contentEditable)&&(!a||"false"==a.contentEditable)){if(i)return Me(i);if(a)return Me(a)}}function Me(e){return e.contentEditable="true",o.safari&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Ne(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function Ie(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.hideSelectionGuard);let n=e.root.getSelection(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener("selectionchange",e.hideSelectionGuard=()=>{n.anchorNode==r&&n.anchorOffset==i||(t.removeEventListener("selectionchange",e.hideSelectionGuard),setTimeout(()=>{Ae(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")},20))})}function Re(e){let t=e.root.getSelection(),n=document.createRange(),r=e.cursorWrapper.dom,i="IMG"==r.nodeName;i?n.setEnd(r.parentNode,a(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!i&&!e.state.selection.visible&&o.ie&&o.ie_version<=11&&(r.disabled=!0,r.disabled=!1)}function je(e,t){if(t instanceof r["c"]){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Fe(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Fe(e)}function Fe(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=null)}function Le(e,t,n,i){return e.someProp("createSelectionBetween",r=>r(e,t,n))||r["h"].between(t,n,i)}function Be(e){return(!e.editable||e.root.activeElement==e.dom)&&Ue(e)}function Ue(e){let t=e.root.getSelection();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(n){return!1}}function ze(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.root.getSelection();return c(t.node,t.offset,n.anchorNode,n.anchorOffset)}function He(e,t){let{$anchor:n,$head:i}=e.selection,o=t>0?n.max(i):n.min(i),a=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return a&&r["f"].findFrom(a,t)}function $e(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Ve(e,t,n){let i=e.state.selection;if(!(i instanceof r["h"])){if(i instanceof r["c"]&&i.node.isInline)return $e(e,new r["h"](t>0?i.$to:i.$from));{let n=He(e.state,t);return!!n&&$e(e,n)}}if(!i.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){let n=He(e.state,t);return!!(n&&n instanceof r["c"])&&$e(e,n)}if(!(o.mac&&n.indexOf("m")>-1)){let n,a=i.$head,s=a.textOffset?null:t<0?a.nodeBefore:a.nodeAfter;if(!s||s.isText)return!1;let u=t<0?a.pos-s.nodeSize:a.pos;return!!(s.isAtom||(n=e.docView.descAt(u))&&!n.contentDOM)&&(r["c"].isSelectable(s)?$e(e,new r["c"](t<0?e.state.doc.resolve(a.pos-s.nodeSize):a)):!!o.webkit&&$e(e,new r["h"](e.state.doc.resolve(t<0?u:u+s.nodeSize))))}}function We(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Xe(e){let t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function Ge(e){let t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,s,u=!1;for(o.gecko&&1==n.nodeType&&r<We(n)&&Xe(n.childNodes[r])&&(u=!0);;)if(r>0){if(1!=n.nodeType)break;{let e=n.childNodes[r-1];if(Xe(e))i=n,s=--r;else{if(3!=e.nodeType)break;n=e,r=n.nodeValue.length}}}else{if(Ke(n))break;{let t=n.previousSibling;while(t&&Xe(t))i=n.parentNode,s=a(t),t=t.previousSibling;if(t)n=t,r=We(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}u?Je(e,t,n,r):i&&Je(e,t,i,s)}function Ye(e){let t=e.root.getSelection(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,s=We(n);for(;;)if(r<s){if(1!=n.nodeType)break;let e=n.childNodes[r];if(!Xe(e))break;i=n,o=++r}else{if(Ke(n))break;{let t=n.nextSibling;while(t&&Xe(t))i=t.parentNode,o=a(t)+1,t=t.nextSibling;if(t)n=t,r=0,s=We(n);else{if(n=n.parentNode,n==e.dom)break;r=s=0}}}i&&Je(e,t,i,o)}function Ke(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Je(e,t,n,r){if(g(t)){let e=document.createRange();e.setEnd(n,r),e.setStart(n,r),t.removeAllRanges(),t.addRange(e)}else t.extend&&t.extend(n,r);e.domObserver.setCurSelection();let{state:i}=e;setTimeout(()=>{e.state==i&&De(e)},50)}function Ze(e,t,n){let i=e.state.selection;if(i instanceof r["h"]&&!i.empty||n.indexOf("s")>-1)return!1;if(o.mac&&n.indexOf("m")>-1)return!1;let{$from:a,$to:s}=i;if(!a.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=He(e.state,t);if(n&&n instanceof r["c"])return $e(e,n)}if(!a.parent.inlineContent){let n=t<0?a:s,o=i instanceof r["a"]?r["f"].near(n,t):r["f"].findFrom(n,t);return!!o&&$e(e,o)}return!1}function Qe(e,t){if(!(e.state.selection instanceof r["h"]))return!0;let{$head:n,$anchor:i,empty:o}=e.state.selection;if(!n.sameParent(i))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let r=e.state.tr;return t<0?r.delete(n.pos-a.nodeSize,n.pos):r.delete(n.pos,n.pos+a.nodeSize),e.dispatch(r),!0}return!1}function et(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function tt(e){if(!o.safari||e.state.selection.$head.parentOffset>0)return;let{focusNode:t,focusOffset:n}=e.root.getSelection();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;et(e,n,!0),setTimeout(()=>et(e,n,!1),20)}}function nt(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function rt(e,t){let n=t.keyCode,r=nt(t);return 8==n||o.mac&&72==n&&"c"==r?Qe(e,-1)||Ge(e):46==n||o.mac&&68==n&&"c"==r?Qe(e,1)||Ye(e):13==n||27==n||(37==n?Ve(e,-1,r)||Ge(e):39==n?Ve(e,1,r)||Ye(e):38==n?Ze(e,-1,r)||Ge(e):40==n?tt(e)||Ze(e,1,r)||Ye(e):r==(o.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}function it(e,t,n){let{node:r,fromOffset:i,toOffset:a,from:s,to:u}=e.docView.parseRange(t,n),l=e.root.getSelection(),c=null,f=l.anchorNode;if(f&&e.dom.contains(1==f.nodeType?f:f.parentNode)&&(c=[{node:f,offset:l.anchorOffset}],g(l)||c.push({node:l.focusNode,offset:l.focusOffset})),o.chrome&&8===e.lastKeyCode)for(let o=a;o>i;o--){let e=r.childNodes[o-1],t=e.pmViewDesc;if("BR"==e.nodeName&&!t){a=o;break}if(!t||t.size)break}let d=e.state.doc,h=e.someProp("domParser")||Y["a"].fromSchema(e.state.schema),p=d.resolve(s),m=null,v=h.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:i,to:a,preserveWhitespace:"pre"!=p.parent.type.whitespace||"full",editableContent:!0,findPositions:c,ruleFromNode:ot,context:p});if(c&&null!=c[0].pos){let e=c[0].pos,t=c[1]&&c[1].pos;null==t&&(t=e),m={anchor:e+s,head:t+s}}return{doc:v,sel:m,from:s,to:u}}function ot(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(o.safari&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}if(e.parentNode.lastChild==e||o.safari&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0}}function at(e,t,n,i,a){if(t<0){let t=e.lastSelectionTime>Date.now()-50?e.lastSelectionOrigin:null,n=Oe(e,t);if(n&&!e.state.selection.eq(n)){let r=e.state.tr.setSelection(n);"pointer"==t?r.setMeta("pointer",!0):"key"==t&&r.scrollIntoView(),e.dispatch(r)}return}let s=e.state.doc.resolve(t),u=s.sharedDepth(n);t=s.before(u+1),n=e.state.doc.resolve(n).after(u+1);let l=e.state.selection,c=it(e,t,n);if(o.chrome&&e.cursorWrapper&&c.sel&&c.sel.anchor==e.cursorWrapper.deco.from){let t=e.cursorWrapper.deco.type.toDOM.nextSibling,n=t&&t.nodeValue?t.nodeValue.length:1;c.sel={anchor:c.sel.anchor+n,head:c.sel.anchor+n}}let f,d,h=e.state.doc,p=h.slice(c.from,c.to);8===e.lastKeyCode&&Date.now()-100<e.lastKeyCodeTime?(f=e.state.selection.to,d="end"):(f=e.state.selection.from,d="start"),e.lastKeyCode=null;let m=ft(p.content,c.doc.content,c.from,f,d);if(!m){if(!(i&&l instanceof r["h"]&&!l.empty&&l.$head.sameParent(l.$anchor))||e.composing||c.sel&&c.sel.anchor!=c.sel.head){if((o.ios&&e.lastIOSEnter>Date.now()-225||o.android)&&a.some(e=>"DIV"==e.nodeName||"P"==e.nodeName)&&e.someProp("handleKeyDown",t=>t(e,v(13,"Enter"))))return void(e.lastIOSEnter=0);if(c.sel){let t=st(e,e.state.doc,c.sel);t&&!t.eq(e.state.selection)&&e.dispatch(e.state.tr.setSelection(t))}return}m={start:l.from,endA:l.to,endB:l.to}}e.domChangeCount++,e.state.selection.from<e.state.selection.to&&m.start==m.endB&&e.state.selection instanceof r["h"]&&(m.start>e.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=c.from?m.start=e.state.selection.from:m.endA<e.state.selection.to&&m.endA>=e.state.selection.to-2&&e.state.selection.to<=c.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),o.ie&&o.ie_version<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>c.from&&" "==c.doc.textBetween(m.start-c.from-1,m.start-c.from+1)&&(m.start--,m.endA--,m.endB--);let g,y=c.doc.resolveNoCache(m.start-c.from),b=c.doc.resolveNoCache(m.endB-c.from),q=y.sameParent(b)&&y.parent.inlineContent;if((o.ios&&e.lastIOSEnter>Date.now()-225&&(!q||a.some(e=>"DIV"==e.nodeName||"P"==e.nodeName))||!q&&y.pos<c.doc.content.size&&(g=r["f"].findFrom(c.doc.resolve(y.pos+1),1,!0))&&g.head==b.pos)&&e.someProp("handleKeyDown",t=>t(e,v(13,"Enter"))))return void(e.lastIOSEnter=0);if(e.state.selection.anchor>m.start&<(h,m.start,m.endA,y,b)&&e.someProp("handleKeyDown",t=>t(e,v(8,"Backspace"))))return void(o.android&&o.chrome&&e.domObserver.suppressSelectionUpdates());o.chrome&&o.android&&m.toB==m.from&&(e.lastAndroidDelete=Date.now()),o.android&&!q&&y.start()!=b.start()&&0==b.parentOffset&&y.depth==b.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==m.endA&&(m.endB-=2,b=c.doc.resolveNoCache(m.endB-c.from),setTimeout(()=>{e.someProp("handleKeyDown",(function(t){return t(e,v(13,"Enter"))}))},20));let w,_,x,S,k=m.start,C=m.endA;if(q)if(y.pos==b.pos)o.ie&&o.ie_version<=11&&0==y.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>De(e),20)),w=e.state.tr.delete(k,C),_=h.resolve(m.start).marksAcross(h.resolve(m.endA));else if(m.endA==m.endB&&(S=h.resolve(m.start))&&(x=ut(y.parent.content.cut(y.parentOffset,b.parentOffset),S.parent.content.cut(S.parentOffset,m.endA-S.start()))))w=e.state.tr,"add"==x.type?w.addMark(k,C,x.mark):w.removeMark(k,C,x.mark);else if(y.parent.child(y.index()).isText&&y.index()==b.index()-(b.textOffset?0:1)){let t=y.parent.textBetween(y.parentOffset,b.parentOffset);if(e.someProp("handleTextInput",n=>n(e,k,C,t)))return;w=e.state.tr.insertText(t,k,C)}if(w||(w=e.state.tr.replace(k,C,c.doc.slice(m.start-c.from,m.endB-c.from))),c.sel){let t=st(e,w.doc,c.sel);t&&!(o.chrome&&o.android&&e.composing&&t.empty&&(m.start!=m.endB||e.lastAndroidDelete<Date.now()-100)&&(t.head==k||t.head==w.mapping.map(C)-1)||o.ie&&t.empty&&t.head==k)&&w.setSelection(t)}_&&w.ensureMarks(_),e.dispatch(w.scrollIntoView())}function st(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Le(e,t.resolve(n.anchor),t.resolve(n.head))}function ut(e,t){let n,r,i,o=e.firstChild.marks,a=t.firstChild.marks,s=o,u=a;for(let c=0;c<a.length;c++)s=a[c].removeFromSet(s);for(let c=0;c<o.length;c++)u=o[c].removeFromSet(u);if(1==s.length&&0==u.length)r=s[0],n="add",i=e=>e.mark(r.addToSet(e.marks));else{if(0!=s.length||1!=u.length)return null;r=u[0],n="remove",i=e=>e.mark(r.removeFromSet(e.marks))}let l=[];for(let c=0;c<t.childCount;c++)l.push(i(t.child(c)));if(Y["c"].from(l).eq(e))return{mark:r,type:n}}function lt(e,t,n,r,i){if(!r.parent.isTextblock||n-t<=i.pos-r.pos||ct(r,!0,!1)<i.pos)return!1;let o=e.resolve(t);if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;let a=e.resolve(ct(o,!0,!0));return!(!a.parent.isTextblock||a.pos>n||ct(a,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(a.parent.content)}function ct(e,t,n){let r=e.depth,i=t?e.end():e.pos;while(r>0&&(t||e.indexAfter(r)==e.node(r).childCount))r--,i++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));while(t&&!t.isLeaf)t=t.firstChild,i++}return i}function ft(e,t,n,r,i){let o=e.findDiffStart(t,n);if(null==o)return null;let{a:a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if("end"==i){let e=Math.max(0,o-Math.min(a,s));r-=a+e-o}if(a<o&&e.size<t.size){let e=r<=o&&r>=a?o-r:0;o-=e,s=o+(s-a),a=o}else if(s<o){let e=r<=o&&r>=s?o-r:0;o-=e,a=o+(a-s),s=o}return{start:o,endA:a,endB:s}}function dt(e,t){let n=[],{content:r,openStart:i,openEnd:o}=t;while(i>1&&o>1&&1==r.childCount&&1==r.firstChild.childCount){i--,o--;let e=r.firstChild;n.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),r=e.content}let a=e.someProp("clipboardSerializer")||Y["b"].fromSchema(e.state.schema),s=xt(),u=s.createElement("div");u.appendChild(a.serializeFragment(r,{document:s}));let l,c=u.firstChild;while(c&&1==c.nodeType&&(l=wt[c.nodeName.toLowerCase()])){for(let e=l.length-1;e>=0;e--){let t=s.createElement(l[e]);while(u.firstChild)t.appendChild(u.firstChild);u.appendChild(t),"tbody"!=l[e]&&(i++,o++)}c=u.firstChild}c&&1==c.nodeType&&c.setAttribute("data-pm-slice",`${i} ${o} ${JSON.stringify(n)}`);let f=e.someProp("clipboardTextSerializer",e=>e(t))||t.content.textBetween(0,t.content.size,"\n\n");return{dom:u,text:f}}function ht(e,t,n,r,i){let a,s,u=i.parent.type.spec.code;if(!n&&!t)return null;let l=t&&(r||u||!n);if(l){if(e.someProp("transformPastedText",e=>{t=e(t,u||r)}),u)return t?new Y["j"](Y["c"].from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):Y["j"].empty;let n=e.someProp("clipboardTextParser",e=>e(t,i,r));if(n)s=n;else{let n=i.marks(),{schema:r}=e.state,o=Y["b"].fromSchema(r);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=a.appendChild(document.createElement("p"));e&&t.appendChild(o.serializeNode(r.text(e,n)))})}}else e.someProp("transformPastedHTML",e=>{n=e(n)}),a=St(n),o.webkit&&kt(a);let c=a&&a.querySelector("[data-pm-slice]"),f=c&&/^(\d+) (\d+) (.*)/.exec(c.getAttribute("data-pm-slice"));if(!s){let t=e.someProp("clipboardParser")||e.someProp("domParser")||Y["a"].fromSchema(e.state.schema);s=t.parseSlice(a,{preserveWhitespace:!(!l&&!f),context:i,ruleFromNode(e){if("BR"==e.nodeName&&!e.nextSibling&&e.parentNode&&!pt.test(e.parentNode.nodeName))return{ignore:!0}}})}if(f)s=Ct(qt(s,+f[1],+f[2]),f[3]);else if(s=Y["j"].maxOpen(mt(s.content,i),!0),s.openStart||s.openEnd){let e=0,t=0;for(let n=s.content.firstChild;e<s.openStart&&!n.type.spec.isolating;e++,n=n.firstChild);for(let n=s.content.lastChild;t<s.openEnd&&!n.type.spec.isolating;t++,n=n.lastChild);s=qt(s,e,t)}return e.someProp("transformPasted",e=>{s=e(s)}),s}const pt=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function mt(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r,i=t.node(n),o=i.contentMatchAt(t.index(n)),a=[];if(e.forEach(e=>{if(!a)return;let t,n=o.findWrapping(e.type);if(!n)return a=null;if(t=a.length&&r.length&&vt(n,r,e,a[a.length-1],0))a[a.length-1]=t;else{a.length&&(a[a.length-1]=yt(a[a.length-1],r.length));let t=gt(e,n);a.push(t),o=o.matchType(t.type,t.attrs),r=n}}),a)return Y["c"].from(a)}return e}function gt(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,Y["c"].from(e));return e}function vt(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let o=vt(e,t,n,r.lastChild,i+1);if(o)return r.copy(r.content.replaceChild(r.childCount-1,o));let a=r.contentMatchAt(r.childCount);if(a.matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(Y["c"].from(gt(n,e,i+1))))}}function yt(e,t){if(0==t)return e;let n=e.content.replaceChild(e.childCount-1,yt(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(Y["c"].empty,!0);return e.copy(n.append(r))}function bt(e,t,n,r,i,o){let a=t<0?e.firstChild:e.lastChild,s=a.content;return i<r-1&&(s=bt(s,t,n,r,i+1,o)),i>=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,e.childCount>1||o<=i).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(Y["c"].empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function qt(e,t,n){return t<e.openStart&&(e=new Y["j"](bt(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new Y["j"](bt(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const wt={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let _t=null;function xt(){return _t||(_t=document.implementation.createHTMLDocument("title"))}function St(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n,r=xt().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(e);if((n=i&&wt[i[1].toLowerCase()])&&(e=n.map(e=>"<"+e+">").join("")+e+n.map(e=>"</"+e+">").reverse().join("")),r.innerHTML=e,n)for(let o=0;o<n.length;o++)r=r.querySelector(n[o])||r;return r}function kt(e){let t=e.querySelectorAll(o.chrome?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];1==r.childNodes.length&&" "==r.textContent&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}function Ct(e,t){if(!e.size)return e;let n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(s){return e}let{content:i,openStart:o,openEnd:a}=e;for(let u=n.length-2;u>=0;u-=2){let e=r.nodes[n[u]];if(!e||e.hasRequiredAttrs())break;i=Y["c"].from(e.create(n[u+1],i)),o++,a++}return new Y["j"](i,o,a)}const Et={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Ot=o.ie&&o.ie_version<=11;class At{constructor(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class Dt{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=window.MutationObserver&&new window.MutationObserver(e=>{for(let t=0;t<e.length;t++)this.queue.push(e[t]);o.ie&&o.ie_version<=11&&e.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),this.currentSelection=new At,Ot&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.suppressingSelectionUpdates=!1}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&this.observer.observe(this.view.dom,Et),Ot&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}Ot&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Be(this.view)){if(this.suppressingSelectionUpdates)return De(this.view);if(o.ie&&o.ie_version<=11&&!this.view.state.selection.empty){let e=this.view.root.getSelection();if(e.focusNode&&c(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.root.getSelection())}ignoreSelectionChange(e){if(0==e.rangeCount)return!0;let t=e.getRangeAt(0).commonAncestorContainer,n=this.view.docView.nearestDesc(t);return n&&n.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}flush(){if(!this.view.docView||this.flushingSoon>-1)return;let e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);let t=this.view.root.getSelection(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(t)&&Ue(this.view)&&!this.ignoreSelectionChange(t),r=-1,i=-1,a=!1,s=[];if(this.view.editable)for(let o=0;o<e.length;o++){let t=this.registerMutation(e[o],s);t&&(r=r<0?t.from:Math.min(t.from,r),i=i<0?t.to:Math.max(t.to,i),t.typeOver&&(a=!0))}if(o.gecko&&s.length>1){let e=s.filter(e=>"BR"==e.nodeName);if(2==e.length){let[t,n]=e;t.parentNode&&t.parentNode.parentNode==n.parentNode?n.remove():t.remove()}}(r>-1||n)&&(r>-1&&(this.view.docView.markDirty(r,i),Pt(this.view)),this.handleDOMChange(r,i,a,s),this.view.docView&&this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(t)||De(this.view),this.currentSelection.set(t))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(let n=0;n<e.addedNodes.length;n++)t.push(e.addedNodes[n]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,i=e.nextSibling;if(o.ie&&o.ie_version<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:o}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!o||Array.prototype.indexOf.call(e.addedNodes,o)<0)&&(i=o)}let s=r&&r.parentNode==e.target?a(r)+1:0,u=n.localPosFromDOM(e.target,s,-1),l=i&&i.parentNode==e.target?a(i):e.target.childNodes.length,c=n.localPosFromDOM(e.target,l,1);return{from:u,to:c}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let Tt=!1;function Pt(e){Tt||(Tt=!0,"normal"==getComputedStyle(e.dom).whiteSpace&&console["warn"]("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."))}const Mt={},Nt={};function It(e){e.shiftKey=!1,e.mouseDown=null,e.lastKeyCode=null,e.lastKeyCodeTime=0,e.lastClick={time:0,x:0,y:0,type:""},e.lastSelectionOrigin=null,e.lastSelectionTime=0,e.lastIOSEnter=0,e.lastIOSEnterFallbackTimeout=null,e.lastAndroidDelete=0,e.composing=!1,e.composingTimeout=null,e.compositionNodes=[],e.compositionEndedAt=-2e8,e.domObserver=new Dt(e,(t,n,r,i)=>at(e,t,n,r,i)),e.domObserver.start(),e.domChangeCount=0,e.eventHandlers=Object.create(null);for(let t in Mt){let n=Mt[t];e.dom.addEventListener(t,e.eventHandlers[t]=t=>{!Bt(e,t)||Lt(e,t)||!e.editable&&t.type in Nt||n(e,t)})}o.safari&&e.dom.addEventListener("input",()=>null),Ft(e)}function Rt(e,t){e.lastSelectionOrigin=t,e.lastSelectionTime=Date.now()}function jt(e){e.domObserver.stop();for(let t in e.eventHandlers)e.dom.removeEventListener(t,e.eventHandlers[t]);clearTimeout(e.composingTimeout),clearTimeout(e.lastIOSEnterFallbackTimeout)}function Ft(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.eventHandlers[n]||e.dom.addEventListener(n,e.eventHandlers[n]=t=>Lt(e,t))})}function Lt(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)})}function Bt(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function Ut(e,t){Lt(e,t)||!Mt[t.type]||!e.editable&&t.type in Nt||Mt[t.type](e,t)}function zt(e){return{left:e.clientX,top:e.clientY}}function Ht(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function $t(e,t,n,r,i){if(-1==r)return!1;let o=e.state.doc.resolve(r);for(let a=o.depth+1;a>0;a--)if(e.someProp(t,t=>a>o.depth?t(e,n,o.nodeAfter,o.before(a),i,!0):t(e,n,o.node(a),o.before(a),i,!1)))return!0;return!1}function Vt(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function Wt(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),i=n.nodeAfter;return!!(i&&i.isAtom&&r["c"].isSelectable(i))&&(Vt(e,new r["c"](n),"pointer"),!0)}function Xt(e,t){if(-1==t)return!1;let n,i,o=e.state.selection;o instanceof r["c"]&&(n=o.node);let a=e.state.doc.resolve(t);for(let s=a.depth+1;s>0;s--){let e=s>a.depth?a.nodeAfter:a.node(s);if(r["c"].isSelectable(e)){i=n&&o.$from.depth>0&&s>=o.$from.depth&&a.before(o.$from.depth+1)==o.$from.pos?a.before(o.$from.depth):a.before(s);break}}return null!=i&&(Vt(e,r["c"].create(e.state.doc,i),"pointer"),!0)}function Gt(e,t,n,r,i){return $t(e,"handleClickOn",t,n,r)||e.someProp("handleClick",n=>n(e,t,r))||(i?Xt(e,n):Wt(e,n))}function Yt(e,t,n,r){return $t(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",n=>n(e,t,r))}function Kt(e,t,n,r){return $t(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",n=>n(e,t,r))||Jt(e,n,r)}function Jt(e,t,n){if(0!=n.button)return!1;let i=e.state.doc;if(-1==t)return!!i.inlineContent&&(Vt(e,r["h"].create(i,0,i.content.size),"pointer"),!0);let o=i.resolve(t);for(let a=o.depth+1;a>0;a--){let t=a>o.depth?o.nodeAfter:o.node(a),n=o.before(a);if(t.inlineContent)Vt(e,r["h"].create(i,n+1,n+1+t.content.size),"pointer");else{if(!r["c"].isSelectable(t))continue;Vt(e,r["c"].create(i,n),"pointer")}return!0}}function Zt(e){return sn(e)}Nt.keydown=(e,t)=>{if(e.shiftKey=16==t.keyCode||t.shiftKey,!tn(e,t)&&(e.lastKeyCode=t.keyCode,e.lastKeyCodeTime=Date.now(),!o.android||!o.chrome||13!=t.keyCode))if(229!=t.keyCode&&e.domObserver.forceFlush(),!o.ios||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",n=>n(e,t))||rt(e,t)?t.preventDefault():Rt(e,"key");else{let t=Date.now();e.lastIOSEnter=t,e.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,v(13,"Enter"))),e.lastIOSEnter=0)},200)}},Nt.keyup=(e,t)=>{16==t.keyCode&&(e.shiftKey=!1)},Nt.keypress=(e,t)=>{if(tn(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||o.mac&&t.metaKey)return;if(e.someProp("handleKeyPress",n=>n(e,t)))return void t.preventDefault();let n=e.state.selection;if(!(n instanceof r["h"])||!n.$from.sameParent(n.$to)){let r=String.fromCharCode(t.charCode);e.someProp("handleTextInput",t=>t(e,n.$from.pos,n.$to.pos,r))||e.dispatch(e.state.tr.insertText(r).scrollIntoView()),t.preventDefault()}};const Qt=o.mac?"metaKey":"ctrlKey";Mt.mousedown=(e,t)=>{e.shiftKey=t.shiftKey;let n=Zt(e),r=Date.now(),i="singleClick";r-e.lastClick.time<500&&Ht(t,e.lastClick)&&!t[Qt]&&("singleClick"==e.lastClick.type?i="doubleClick":"doubleClick"==e.lastClick.type&&(i="tripleClick")),e.lastClick={time:r,x:t.clientX,y:t.clientY,type:i};let o=e.posAtCoords(zt(t));o&&("singleClick"==i?(e.mouseDown&&e.mouseDown.done(),e.mouseDown=new en(e,o,t,n)):("doubleClick"==i?Yt:Kt)(e,o.pos,o.inside,t)?t.preventDefault():Rt(e,"pointer"))};class en{constructor(e,t,n,i){let a,s;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=i,this.selectNode=n[Qt],this.allowDefault=n.shiftKey,this.delayedSelectionSync=!1,t.inside>-1)a=e.state.doc.nodeAt(t.inside),s=t.inside;else{let n=e.state.doc.resolve(t.pos);a=n.parent,s=n.depth?n.before():0}this.mightDrag=null;const u=i?null:n.target,l=u?e.docView.nearestDesc(u,!0):null;this.target=l?l.dom:null;let{selection:c}=e.state;(0==n.button&&a.type.spec.draggable&&!1!==a.type.spec.selectable||c instanceof r["c"]&&c.from<=s&&c.to>s)&&(this.mightDrag={node:a,pos:s,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&o.gecko&&!this.target.hasAttribute("contentEditable")}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Rt(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>De(this.view)),this.view.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(3==e.target.nodeType?e.target.parentNode:e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(zt(e))),this.allowDefault||!t?Rt(this.view,"pointer"):Gt(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||o.safari&&this.mightDrag&&!this.mightDrag.node.isAtom||o.chrome&&!(this.view.state.selection instanceof r["h"])&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Vt(this.view,r["f"].near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):Rt(this.view,"pointer")}move(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0),Rt(this.view,"pointer"),0==e.buttons&&this.done()}}function tn(e,t){return!!e.composing||!!(o.safari&&Math.abs(t.timeStamp-e.compositionEndedAt)<500)&&(e.compositionEndedAt=-2e8,!0)}Mt.touchdown=e=>{Zt(e),Rt(e,"pointer")},Mt.contextmenu=e=>Zt(e);const nn=o.android?5e3:-1;function rn(e,t){clearTimeout(e.composingTimeout),t>-1&&(e.composingTimeout=setTimeout(()=>sn(e),t))}function on(e){e.composing&&(e.composing=!1,e.compositionEndedAt=an());while(e.compositionNodes.length>0)e.compositionNodes.pop().markParentsDirty()}function an(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function sn(e,t){if(!(o.android&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),on(e),t||e.docView&&e.docView.dirty){let t=Oe(e);return t&&!t.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(t)):e.updateState(e.state),!0}return!1}}function un(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}Nt.compositionstart=Nt.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)))e.markCursor=e.state.storedMarks||n.marks(),sn(e,!0),e.markCursor=null;else if(sn(e),o.gecko&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.root.getSelection();for(let e=t.focusNode,n=t.focusOffset;e&&1==e.nodeType&&0!=n;){let r=n<0?e.lastChild:e.childNodes[n-1];if(!r)break;if(3==r.nodeType){t.collapse(r,r.nodeValue.length);break}e=r,n=-1}}e.composing=!0}rn(e,nn)},Nt.compositionend=(e,t)=>{e.composing&&(e.composing=!1,e.compositionEndedAt=t.timeStamp,rn(e,20))};const ln=o.ie&&o.ie_version<15||o.ios&&o.webkit_version<604;function cn(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}function fn(e,t){if(!e.dom.parentNode)return;let n=e.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?dn(e,r.value,null,t):dn(e,r.textContent,r.innerHTML,t)},50)}function dn(e,t,n,r){let i=ht(e,t,n,e.shiftKey,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,r,i||Y["j"].empty)))return!0;if(!i)return!1;let o=cn(i),a=o?e.state.tr.replaceSelectionWith(o,e.shiftKey):e.state.tr.replaceSelection(i);return e.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}Mt.copy=Nt.cut=(e,t)=>{let n=e.state.selection,r="cut"==t.type;if(n.empty)return;let i=ln?null:t.clipboardData,o=n.content(),{dom:a,text:s}=dt(e,o);i?(t.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",s)):un(e,a),r&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},Nt.paste=(e,t)=>{if(e.composing&&!o.android)return;let n=ln?null:t.clipboardData;n&&dn(e,n.getData("text/plain"),n.getData("text/html"),t)?t.preventDefault():fn(e,t)};class hn{constructor(e,t){this.slice=e,this.move=t}}const pn=o.mac?"altKey":"ctrlKey";Mt.dragstart=(e,t)=>{let n=e.mouseDown;if(n&&n.done(),!t.dataTransfer)return;let i=e.state.selection,o=i.empty?null:e.posAtCoords(zt(t));if(o&&o.pos>=i.from&&o.pos<=(i instanceof r["c"]?i.to-1:i.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(r["c"].create(e.state.doc,n.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){let n=e.docView.nearestDesc(t.target,!0);n&&n.node.type.spec.draggable&&n!=e.docView&&e.dispatch(e.state.tr.setSelection(r["c"].create(e.state.doc,n.posBefore)))}let a=e.state.selection.content(),{dom:s,text:u}=dt(e,a);t.dataTransfer.clearData(),t.dataTransfer.setData(ln?"Text":"text/html",s.innerHTML),t.dataTransfer.effectAllowed="copyMove",ln||t.dataTransfer.setData("text/plain",u),e.dragging=new hn(a,!t[pn])},Mt.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},Nt.dragover=Nt.dragenter=(e,t)=>t.preventDefault(),Nt.drop=(e,t)=>{let n=e.dragging;if(e.dragging=null,!t.dataTransfer)return;let i=e.posAtCoords(zt(t));if(!i)return;let o=e.state.doc.resolve(i.pos);if(!o)return;let a=n&&n.slice;a?e.someProp("transformPasted",e=>{a=e(a)}):a=ht(e,t.dataTransfer.getData(ln?"Text":"text/plain"),ln?null:t.dataTransfer.getData("text/html"),!1,o);let s=n&&!t[pn];if(e.someProp("handleDrop",n=>n(e,t,a||Y["j"].empty,s)))return void t.preventDefault();if(!a)return;t.preventDefault();let u=a?Object(Ee["h"])(e.state.doc,o.pos,a):o.pos;null==u&&(u=o.pos);let l=e.state.tr;s&&l.deleteSelection();let c=l.mapping.map(u),f=0==a.openStart&&0==a.openEnd&&1==a.content.childCount,d=l.doc;if(f?l.replaceRangeWith(c,c,a.content.firstChild):l.replaceRange(c,c,a),l.doc.eq(d))return;let h=l.doc.resolve(c);if(f&&r["c"].isSelectable(a.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(a.content.firstChild))l.setSelection(new r["c"](h));else{let t=l.mapping.map(u);l.mapping.maps[l.mapping.maps.length-1].forEach((e,n,r,i)=>t=i),l.setSelection(Le(e,h,l.doc.resolve(t)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))},Mt.focus=e=>{e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.root.getSelection())&&De(e)},20))},Mt.blur=(e,t)=>{e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),t.relatedTarget&&e.dom.contains(t.relatedTarget)&&e.domObserver.currentSelection.set({}),e.focused=!1)},Mt.beforeinput=(e,t)=>{if(o.chrome&&o.android&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e;setTimeout(()=>{if(e.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,v(8,"Backspace"))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let Hn in Nt)Mt[Hn]=Nt[Hn];function mn(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class gn{constructor(e,t){this.spec=t||wn,this.side=this.spec.side||0,this.toDOM=e}map(e,t,n,r){let{pos:i,deleted:o}=e.mapResult(t.from+r,this.side<0?-1:1);return o?null:new bn(i-n,i-n,this)}valid(){return!0}eq(e){return this==e||e instanceof gn&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&mn(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class vn{constructor(e,t){this.spec=t||wn,this.attrs=e}map(e,t,n,r){let i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,o=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=o?null:new bn(i,o,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof vn&&mn(this.attrs,e.attrs)&&mn(this.spec,e.spec)}static is(e){return e.type instanceof vn}}class yn{constructor(e,t){this.spec=t||wn,this.attrs=e}map(e,t,n,r){let i=e.mapResult(t.from+r,1);if(i.deleted)return null;let o=e.mapResult(t.to+r,-1);return o.deleted||o.pos<=i.pos?null:new bn(i.pos-n,o.pos-n,this)}valid(e,t){let n,{index:r,offset:i}=e.content.findIndex(t.from);return i==t.from&&!(n=e.child(r)).isText&&i+n.nodeSize==t.to}eq(e){return this==e||e instanceof yn&&mn(this.attrs,e.attrs)&&mn(this.spec,e.spec)}}class bn{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(e,t){return new bn(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(e,t,n){return new bn(e,e,new gn(t,n))}static inline(e,t,n,r){return new bn(e,t,new vn(n,r))}static node(e,t,n,r){return new bn(e,t,new yn(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof vn}}const qn=[],wn={};class _n{constructor(e,t){this.local=e&&e.length?e:qn,this.children=t&&t.length?t:qn}static create(e,t){return t.length?Dn(t,e,0,wn):xn}find(e,t,n){let r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r}findInner(e,t,n,r,i){for(let o=0;o<this.local.length;o++){let a=this.local[o];a.from<=t&&a.to>=e&&(!i||i(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(let o=0;o<this.children.length;o+=3)if(this.children[o]<t&&this.children[o+1]>e){let a=this.children[o]+1;this.children[o+2].findInner(e-a,t-a,n,r+a,i)}}map(e,t,n){return this==xn||0==e.maps.length?this:this.mapInner(e,t,0,0,n||wn)}mapInner(e,t,n,r,i){let o;for(let a=0;a<this.local.length;a++){let s=this.local[a].map(e,n,r);s&&s.type.valid(t,s)?(o||(o=[])).push(s):i.onRemove&&i.onRemove(this.local[a].spec)}return this.children.length?kn(this.children,o,e,t,n,r,i):o?new _n(o.sort(Tn)):xn}add(e,t){return t.length?this==xn?_n.create(e,t):this.addInner(e,t,0):this}addInner(e,t,n){let r,i=0;e.forEach((e,o)=>{let a,s=o+n;if(a=On(t,e,s)){r||(r=this.children.slice());while(i<r.length&&r[i]<o)i+=3;r[i]==o?r[i+2]=r[i+2].addInner(e,a,s+1):r.splice(i,0,o,o+e.nodeSize,Dn(a,e,s+1,wn)),i+=3}});let o=Cn(i?An(t):t,-n);for(let a=0;a<o.length;a++)o[a].type.valid(e,o[a])||o.splice(a--,1);return new _n(o.length?this.local.concat(o).sort(Tn):this.local,r||this.children)}remove(e){return 0==e.length||this==xn?this:this.removeInner(e,0)}removeInner(e,t){let n=this.children,r=this.local;for(let i=0;i<n.length;i+=3){let r,o=n[i]+t,a=n[i+1]+t;for(let t,n=0;n<e.length;n++)(t=e[n])&&t.from>o&&t.to<a&&(e[n]=null,(r||(r=[])).push(t));if(!r)continue;n==this.children&&(n=this.children.slice());let s=n[i+2].removeInner(r,o+1);s!=xn?n[i+2]=s:(n.splice(i,3),i-=3)}if(r.length)for(let i,o=0;o<e.length;o++)if(i=e[o])for(let e=0;e<r.length;e++)r[e].eq(i,t)&&(r==this.local&&(r=this.local.slice()),r.splice(e--,1));return n==this.children&&r==this.local?this:r.length||n.length?new _n(r,n):xn}forChild(e,t){if(this==xn)return this;if(t.isLeaf)return _n.empty;let n,r;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(n=this.children[a+2]);break}let i=e+1,o=i+t.content.size;for(let a=0;a<this.local.length;a++){let e=this.local[a];if(e.from<o&&e.to>i&&e.type instanceof vn){let t=Math.max(i,e.from)-i,n=Math.min(o,e.to)-i;t<n&&(r||(r=[])).push(e.copy(t,n))}}if(r){let e=new _n(r.sort(Tn));return n?new Sn([e,n]):e}return n||xn}eq(e){if(this==e)return!0;if(!(e instanceof _n)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return Pn(this.localsInner(e))}localsInner(e){if(this==xn)return qn;if(e.inlineContent||!this.local.some(vn.is))return this.local;let t=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof vn||t.push(this.local[n]);return t}}const xn=new _n;_n.empty=xn,_n.removeOverlap=Pn;class Sn{constructor(e){this.members=e}map(e,t){const n=this.members.map(n=>n.map(e,t,wn));return Sn.from(n)}forChild(e,t){if(t.isLeaf)return _n.empty;let n=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(e,t);i!=xn&&(i instanceof Sn?n=n.concat(i.members):n.push(i))}return Sn.from(n)}eq(e){if(!(e instanceof Sn)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length)if(t){n&&(t=t.slice(),n=!1);for(let e=0;e<i.length;e++)t.push(i[e])}else t=i}return t?Pn(n?t:t.sort(Tn)):qn}static from(e){switch(e.length){case 0:return xn;case 1:return e[0];default:return new Sn(e)}}}function kn(e,t,n,r,i,o,a){let s=e.slice(),u=(e,t,n,r)=>{for(let a=0;a<s.length;a+=3){let u,l=s[a+1];if(l<0||e>l+o)continue;let c=s[a]+o;t>=c?s[a+1]=e<=c?-2:-1:n>=i&&(u=r-n-(t-e))&&(s[a]+=u,s[a+1]+=u)}};for(let c=0;c<n.maps.length;c++)n.maps[c].forEach(u);let l=!1;for(let c=0;c<s.length;c+=3)if(s[c+1]<0){if(-2==s[c+1]){l=!0,s[c+1]=-1;continue}let t=n.map(e[c]+o),u=t-i;if(u<0||u>=r.content.size){l=!0;continue}let f=n.map(e[c+1]+o,-1),d=f-i,{index:h,offset:p}=r.content.findIndex(u),m=r.maybeChild(h);if(m&&p==u&&p+m.nodeSize==d){let r=s[c+2].mapInner(n,m,t+1,e[c]+o+1,a);r!=xn?(s[c]=u,s[c+1]=d,s[c+2]=r):(s[c+1]=-2,l=!0)}else l=!0}if(l){let u=En(s,e,t||[],n,i,o,a),l=Dn(u,r,0,a);t=l.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<l.children.length;e+=3){let n=l.children[e];while(t<s.length&&s[t]<n)t+=3;s.splice(t,0,l.children[e],l.children[e+1],l.children[e+2])}}return new _n(t&&t.sort(Tn),s)}function Cn(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new bn(i.from+t,i.to+t,i.type))}return n}function En(e,t,n,r,i,o,a){function s(e,t){for(let o=0;o<e.local.length;o++){let s=e.local[o].map(r,i,t);s?n.push(s):a.onRemove&&a.onRemove(e.local[o].spec)}for(let n=0;n<e.children.length;n+=3)s(e.children[n+2],e.children[n]+t+1)}for(let u=0;u<e.length;u+=3)-1==e[u+1]&&s(e[u+2],t[u]+o+1);return n}function On(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let o,a=0;a<e.length;a++)(o=e[a])&&o.from>n&&o.to<r&&((i||(i=[])).push(o),e[a]=null);return i}function An(e){let t=[];for(let n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function Dn(e,t,n,r){let i=[],o=!1;t.forEach((t,a)=>{let s=On(e,t,a+n);if(s){o=!0;let e=Dn(s,t,n+a+1,r);e!=xn&&i.push(a,a+t.nodeSize,e)}});let a=Cn(o?An(e):e,-n).sort(Tn);for(let s=0;s<a.length;s++)a[s].type.valid(t,a[s])||(r.onRemove&&r.onRemove(a[s].spec),a.splice(s--,1));return a.length||i.length?new _n(a,i):xn}function Tn(e,t){return e.from-t.from||e.to-t.to}function Pn(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let o=t[i];if(o.from!=r.from){o.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,o.from),Mn(t,i,r.copy(o.from,r.to)));break}o.to!=r.to&&(t==e&&(t=e.slice()),t[i]=o.copy(o.from,r.to),Mn(t,i+1,o.copy(r.to,o.to)))}}return t}function Mn(e,t,n){while(t<e.length&&Tn(n,e[t])>0)t++;e.splice(t,0,n)}function Nn(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=xn&&t.push(r)}),e.cursorWrapper&&t.push(_n.create(e.state.doc,[e.cursorWrapper.deco])),Sn.from(t)}class In{constructor(e,t){this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(zn),this.dispatch=this.dispatch.bind(this),this._root=null,this.focused=!1,this.trackWrites=null,this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):e.apply?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Fn(this),this.markCursor=null,this.cursorWrapper=null,jn(this),this.nodeViews=Bn(this),this.docView=ae(this.state.doc,Rn(this),Nn(this),this.dom,this),this.lastSelectedViewDesc=null,this.dragging=null,It(this),this.prevDirectPlugins=[],this.pluginViews=[],this.updatePluginViews()}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Ft(this),this._props=e,e.plugins&&(e.plugins.forEach(zn),this.directPlugins=e.plugins),this.updateStateInner(e.state,!0)}setProps(e){let t={};for(let n in this._props)t[n]=this._props[n];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this.state.plugins!=e.plugins)}updateStateInner(e,t){let n=this.state,i=!1,a=!1;if(e.storedMarks&&this.composing&&(on(this),a=!0),this.state=e,t){let e=Bn(this);Un(e,this.nodeViews)&&(this.nodeViews=e,i=!0),Ft(this)}this.editable=Fn(this),jn(this);let s=Nn(this),u=Rn(this),l=t?"reset":e.scrollToSelection>n.scrollToSelection?"to selection":"preserve",c=i||!this.docView.matchesNode(e.doc,u,s);!c&&e.selection.eq(n.selection)||(a=!0);let f="preserve"==l&&a&&null==this.dom.style.overflowAnchor&&_(this);if(a){this.domObserver.stop();let t=c&&(o.ie||o.chrome)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&Ln(n.selection,e.selection);if(c){let n=o.chrome?this.trackWrites=this.root.getSelection().focusNode:null;!i&&this.docView.update(e.doc,u,s,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=ae(e.doc,u,s,this.dom,this)),n&&!this.trackWrites&&(t=!0)}t||!(this.mouseDown&&this.domObserver.currentSelection.eq(this.root.getSelection())&&ze(this))?De(this,t):(je(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(n),"reset"==l)this.dom.scrollTop=0;else if("to selection"==l){let t=this.root.getSelection().focusNode;this.someProp("handleScrollToSelection",e=>e(this))||(e.selection instanceof r["c"]?w(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),t):w(this,this.coordsAtPos(e.selection.head,1),t))}else f&&S(f)}destroyPluginViews(){let e;while(e=this.pluginViews.pop())e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}}someProp(e,t){let n,r=this._props&&this._props[e];if(null!=r&&(n=t?t(r):r))return n;for(let o=0;o<this.directPlugins.length;o++){let r=this.directPlugins[o].props[e];if(null!=r&&(n=t?t(r):r))return n}let i=this.state.plugins;if(i)for(let o=0;o<i.length;o++){let r=i[o].props[e];if(null!=r&&(n=t?t(r):r))return n}}hasFocus(){return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&E(this.dom),De(this),this.domObserver.start()}get root(){let e=this._root;if(null==e)for(let t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>document.getSelection()),this._root=t;return e||document}posAtCoords(e){return I(this,e)}coordsAtPos(e,t=1){return F(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,t){return G(this,t||this.state,e)}destroy(){this.docView&&(jt(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Nn(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(e){return Ut(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}}function Rn(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),t.translate="no",e.someProp("attributes",n=>{if("function"==typeof n&&(n=n(e.state)),n)for(let e in n)"class"==e&&(t.class+=" "+n[e]),"style"==e?t.style=(t.style?t.style+";":"")+n[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(n[e]))}),[bn.node(0,e.state.doc.content.size,t)]}function jn(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:bn.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Fn(e){return!e.someProp("editable",t=>!1===t(e.state))}function Ln(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function Bn(e){let t={};return e.someProp("nodeViews",e=>{for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}),t}function Un(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function zn(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}},4245:function(e,t,n){var r=n("1290");function i(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}e.exports=i},42454:function(e,t,n){var r=n("f909"),i=n("2ec1d"),o=i((function(e,t,n){r(e,t,n)}));e.exports=o},4284:function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}e.exports=n},"42a2":function(e,t,n){var r=n("b5a7"),i=n("79bc"),o=n("1cec"),a=n("c869"),s=n("39ff"),u=n("3729"),l=n("dc57"),c="[object Map]",f="[object Object]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",m="[object DataView]",g=l(r),v=l(i),y=l(o),b=l(a),q=l(s),w=u;(r&&w(new r(new ArrayBuffer(1)))!=m||i&&w(new i)!=c||o&&w(o.resolve())!=d||a&&w(new a)!=h||s&&w(new s)!=p)&&(w=function(e){var t=u(e),n=t==f?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case g:return m;case v:return c;case y:return d;case b:return h;case q:return p}return t}),e.exports=w},4359:function(e,t){function n(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}e.exports=n},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},4497:function(e,t,n){var r=n("8964"),i=n("b4c7");function o(e){var t=r(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var o=i(n);return o}e.exports=o},4604:function(e,t,n){},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"49f4":function(e,t,n){var r=n("6044");function i(){this.__data__=r?r(null):{},this.size=0}e.exports=i},"4a0c":function(e){e.exports=JSON.parse('{"name":"axios","version":"0.21.2","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},"4a7a":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="/",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.mixins=t.VueSelect=void 0;var i=n(85),o=r(i),a=n(42),s=r(a);t.default=o.default,t.VueSelect=o.default,t.mixins=s.default},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t,n){e.exports=!n(9)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(11),i=n(33),o=n(25),a=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(5),i=n(14);e.exports=n(3)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(61),i=n(16);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(23)("wks"),i=n(15),o=n(1).Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(10);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(1),i=n(2),o=n(58),a=n(6),s="prototype",u=function(e,t,n){var l,c,f,d=e&u.F,h=e&u.G,p=e&u.S,m=e&u.P,g=e&u.B,v=e&u.W,y=h?i:i[t]||(i[t]={}),b=y[s],q=h?r:p?r[t]:(r[t]||{})[s];for(l in h&&(n=t),n)c=!d&&q&&void 0!==q[l],c&&l in y||(f=c?q[l]:n[l],y[l]=h&&"function"!=typeof q[l]?n[l]:g&&c?o(f,r):v&&q[l]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[s]=e[s],t}(f):m&&"function"==typeof f?o(Function.call,f):f,m&&((y.virtual||(y.virtual={}))[l]=f,e&u.R&&b&&!b[l]&&a(b,l,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var r=n(38),i=n(17);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(5).f,i=n(4),o=n(8)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(23)("keys"),i=n(15);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(1),i="__core-js_shared__",o=r[i]||(r[i]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(10);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(1),i=n(2),o=n(19),a=n(27),s=n(5).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(8)},function(e,t){"use strict";e.exports={props:{loading:{type:Boolean,default:!1},onSearch:{type:Function,default:function(e,t){}}},data:function(){return{mutableLoading:!1}},watch:{search:function(){this.search.length>0&&(this.onSearch(this.search,this.toggleLoading),this.$emit("search",this.search,this.toggleLoading))},loading:function(e){this.mutableLoading=e}},methods:{toggleLoading:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.mutableLoading=null==e?!this.mutableLoading:e}}}},function(e,t){"use strict";e.exports={watch:{typeAheadPointer:function(){this.maybeAdjustScroll()}},methods:{maybeAdjustScroll:function(){var e=this.pixelsToPointerTop(),t=this.pixelsToPointerBottom();return e<=this.viewport().top?this.scrollTo(e):t>=this.viewport().bottom?this.scrollTo(this.viewport().top+this.pointerHeight()):void 0},pixelsToPointerTop:function(){var e=0;if(this.$refs.dropdownMenu)for(var t=0;t<this.typeAheadPointer;t++)e+=this.$refs.dropdownMenu.children[t].offsetHeight;return e},pixelsToPointerBottom:function(){return this.pixelsToPointerTop()+this.pointerHeight()},pointerHeight:function(){var e=!!this.$refs.dropdownMenu&&this.$refs.dropdownMenu.children[this.typeAheadPointer];return e?e.offsetHeight:0},viewport:function(){return{top:this.$refs.dropdownMenu?this.$refs.dropdownMenu.scrollTop:0,bottom:this.$refs.dropdownMenu?this.$refs.dropdownMenu.offsetHeight+this.$refs.dropdownMenu.scrollTop:0}},scrollTo:function(e){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.scrollTop=e:null}}}},function(e,t){"use strict";e.exports={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){this.typeAheadPointer=0}},methods:{typeAheadUp:function(){this.typeAheadPointer>0&&(this.typeAheadPointer--,this.maybeAdjustScroll&&this.maybeAdjustScroll())},typeAheadDown:function(){this.typeAheadPointer<this.filteredOptions.length-1&&(this.typeAheadPointer++,this.maybeAdjustScroll&&this.maybeAdjustScroll())},typeAheadSelect:function(){this.filteredOptions[this.typeAheadPointer]?this.select(this.filteredOptions[this.typeAheadPointer]):this.taggable&&this.search.length&&this.select(this.search),this.clearSearchOnSelect&&(this.search="")}}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(10),i=n(1).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){e.exports=!n(3)&&!n(9)((function(){return 7!=Object.defineProperty(n(32)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(19),i=n(12),o=n(39),a=n(6),s=n(4),u=n(18),l=n(63),c=n(21),f=n(69),d=n(8)("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",m="keys",g="values",v=function(){return this};e.exports=function(e,t,n,y,b,q,w){l(n,t,y);var _,x,S,k=function(e){if(!h&&e in A)return A[e];switch(e){case m:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",E=b==g,O=!1,A=e.prototype,D=A[d]||A[p]||b&&A[b],T=!h&&D||k(b),P=b?E?k("entries"):T:void 0,M="Array"==t&&A.entries||D;if(M&&(S=f(M.call(new e)),S!==Object.prototype&&S.next&&(c(S,C,!0),r||s(S,d)||a(S,d,v))),E&&D&&D.name!==g&&(O=!0,T=function(){return D.call(this)}),r&&!w||!h&&!O&&A[d]||a(A,d,T),u[t]=T,u[C]=v,b)if(_={values:E?T:k(g),keys:q?T:k(m),entries:P},w)for(x in _)x in A||o(A,x,_[x]);else i(i.P+i.F*(h||O),t,_);return _}},function(e,t,n){var r=n(11),i=n(66),o=n(17),a=n(22)("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n(32)("iframe"),r=o.length,i="<",a=">";for(t.style.display="none",n(60).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),l=e.F;r--;)delete l[u][o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(38),i=n(17).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(4),i=n(7),o=n(57)(!1),a=n(22)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){e.exports=n(6)},function(e,t,n){var r=n(16);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(45),o=r(i),a=n(48),s=r(a),u=n(43),l=r(u),c=n(49),f=r(c),d=n(29),h=r(d),p=n(30),m=r(p),g=n(28),v=r(g);t.default={mixins:[h.default,m.default,v.default],props:{value:{default:null},options:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},maxHeight:{type:String,default:"400px"},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},index:{type:String,default:null},getOptionLabel:{type:Function,default:function(e){return this.index&&(e=this.findOptionByIndexValue(e)),"object"===("undefined"==typeof e?"undefined":(0,f.default)(e))?e.hasOwnProperty(this.label)?e[this.label]:console.warn('[vue-select warn]: Label key "option.'+this.label+'" does not exist in options object '+(0,l.default)(e)+".\nhttp://sagalbot.github.io/vue-select/#ex-labels"):e}},onChange:{type:Function,default:function(e){this.$emit("input",e)}},onTab:{type:Function,default:function(){this.selectOnTab&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default:function(e,t,n){return(t||"").toLowerCase().indexOf(n.toLowerCase())>-1}},filter:{type:Function,default:function(e,t){var n=this;return e.filter((function(e){var r=n.getOptionLabel(e);return"number"==typeof r&&(r=r.toString()),n.filterBy(e,r,t)}))}},createOption:{type:Function,default:function(e){return"object"===(0,f.default)(this.mutableOptions[0])&&(e=(0,s.default)({},this.label,e)),this.$emit("option:created",e),e}},resetOnOptionsChange:{type:Boolean,default:!1},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1}},data:function(){return{search:"",open:!1,mutableValue:null,mutableOptions:[]}},watch:{value:function(e){this.mutableValue=e},mutableValue:function(e,t){this.multiple?this.onChange&&this.onChange(e):this.onChange&&e!==t&&this.onChange(e)},options:function(e){this.mutableOptions=e},mutableOptions:function(){!this.taggable&&this.resetOnOptionsChange&&(this.mutableValue=this.multiple?[]:null)},multiple:function(e){this.mutableValue=e?[]:null}},created:function(){this.mutableValue=this.value,this.mutableOptions=this.options.slice(0),this.mutableLoading=this.loading,this.$on("option:created",this.maybePushTag)},methods:{select:function(e){if(!this.isOptionSelected(e)){if(this.taggable&&!this.optionExists(e)&&(e=this.createOption(e)),this.index){if(!e.hasOwnProperty(this.index))return console.warn('[vue-select warn]: Index key "option.'+this.index+'" does not exist in options object '+(0,l.default)(e)+".");e=e[this.index]}this.multiple&&!this.mutableValue?this.mutableValue=[e]:this.multiple?this.mutableValue.push(e):this.mutableValue=e}this.onAfterSelect(e)},deselect:function(e){var t=this;if(this.multiple){var n=-1;this.mutableValue.forEach((function(r){(r===e||t.index&&r===e[t.index]||"object"===("undefined"==typeof r?"undefined":(0,f.default)(r))&&r[t.label]===e[t.label])&&(n=r)}));var r=this.mutableValue.indexOf(n);this.mutableValue.splice(r,1)}else this.mutableValue=null},clearSelection:function(){this.mutableValue=this.multiple?[]:null},onAfterSelect:function(e){this.closeOnSelect&&(this.open=!this.open,this.$refs.search.blur()),this.clearSearchOnSelect&&(this.search="")},toggleDropdown:function(e){(e.target===this.$refs.openIndicator||e.target===this.$refs.search||e.target===this.$refs.toggle||e.target.classList.contains("selected-tag")||e.target===this.$el)&&(this.open?this.$refs.search.blur():this.disabled||(this.open=!0,this.$refs.search.focus()))},isOptionSelected:function(e){var t=this,n=!1;return this.valueAsArray.forEach((function(r){"object"===("undefined"==typeof r?"undefined":(0,f.default)(r))?n=t.optionObjectComparator(r,e):r!==e&&r!==e[t.index]||(n=!0)})),n},optionObjectComparator:function(e,t){return!(!this.index||e!==t[this.index])||e[this.label]===t[this.label]||e[this.label]===t||!(!this.index||e[this.index]!==t[this.index])},findOptionByIndexValue:function(e){var t=this;return this.options.forEach((function(n){(0,l.default)(n[t.index])===(0,l.default)(e)&&(e=n)})),e},onEscape:function(){this.search.length?this.search="":this.$refs.search.blur()},onSearchBlur:function(){this.mousedown&&!this.searching?this.mousedown=!1:(this.clearSearchOnBlur&&(this.search=""),this.open=!1,this.$emit("search:blur"))},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},maybeDeleteValue:function(){if(!this.$refs.search.value.length&&this.mutableValue)return this.multiple?this.mutableValue.pop():this.mutableValue=null},optionExists:function(e){var t=this,n=!1;return this.mutableOptions.forEach((function(r){("object"===("undefined"==typeof r?"undefined":(0,f.default)(r))&&r[t.label]===e||r===e)&&(n=!0)})),n},maybePushTag:function(e){this.pushTags&&this.mutableOptions.push(e)},onMousedown:function(){this.mousedown=!0}},computed:{dropdownClasses:function(){return{open:this.dropdownOpen,single:!this.multiple,searching:this.searching,searchable:this.searchable,unsearchable:!this.searchable,loading:this.mutableLoading,rtl:"rtl"===this.dir,disabled:this.disabled}},clearSearchOnBlur:function(){return this.clearSearchOnSelect&&!this.multiple},searching:function(){return!!this.search},dropdownOpen:function(){return!this.noDrop&&this.open&&!this.mutableLoading},searchPlaceholder:function(){if(this.isValueEmpty&&this.placeholder)return this.placeholder},filteredOptions:function(){if(!this.filterable&&!this.taggable)return this.mutableOptions.slice();var e=this.search.length?this.filter(this.mutableOptions,this.search,this):this.mutableOptions;return this.taggable&&this.search.length&&!this.optionExists(this.search)&&e.unshift(this.search),e},isValueEmpty:function(){return!this.mutableValue||("object"===(0,f.default)(this.mutableValue)?!(0,o.default)(this.mutableValue).length:!this.valueAsArray.length)},valueAsArray:function(){return this.multiple&&this.mutableValue?this.mutableValue:this.mutableValue?[].concat(this.mutableValue):[]},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&null!=this.mutableValue}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(28),o=r(i),a=n(30),s=r(a),u=n(29),l=r(u);t.default={ajax:o.default,pointer:s.default,pointerScroll:l.default}},function(e,t,n){e.exports={default:n(50),__esModule:!0}},function(e,t,n){e.exports={default:n(51),__esModule:!0}},function(e,t,n){e.exports={default:n(52),__esModule:!0}},function(e,t,n){e.exports={default:n(53),__esModule:!0}},function(e,t,n){e.exports={default:n(54),__esModule:!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(44),o=r(i);t.default=function(e,t,n){return t in e?(0,o.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(47),o=r(i),a=n(46),s=r(a),u="function"==typeof s.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===u(o.default)?function(e){return"undefined"==typeof e?"undefined":u(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"==typeof e?"undefined":u(e)}},function(e,t,n){var r=n(2),i=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return i.stringify.apply(i,arguments)}},function(e,t,n){n(75);var r=n(2).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){n(76),e.exports=n(2).Object.keys},function(e,t,n){n(79),n(77),n(80),n(81),e.exports=n(2).Symbol},function(e,t,n){n(78),n(82),e.exports=n(27).f("iterator")},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(7),i=n(73),o=n(72);e.exports=function(e){return function(t,n,a){var s,u=r(t),l=i(u.length),c=o(a,l);if(e&&n!=n){for(;l>c;)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(55);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(13),i=n(37),o=n(20);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},function(e,t,n){var r=n(1).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(31);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(31);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(35),i=n(14),o=n(21),a={};n(6)(a,n(8)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(15)("meta"),i=n(10),o=n(4),a=n(5).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(9)((function(){return u(Object.preventExtensions({}))})),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},d=function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},h=function(e){return l&&p.NEED&&u(e)&&!o(e,r)&&c(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},function(e,t,n){var r=n(5),i=n(11),o=n(13);e.exports=n(3)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(20),i=n(14),o=n(7),a=n(25),s=n(4),u=n(33),l=Object.getOwnPropertyDescriptor;t.f=n(3)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(7),i=n(36).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},function(e,t,n){var r=n(4),i=n(40),o=n(22)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(12),i=n(2),o=n(9);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},function(e,t,n){var r=n(24),i=n(16);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}}},function(e,t,n){var r=n(24),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(24),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r=n(56),i=n(64),o=n(18),a=n(7);e.exports=n(34)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(12);r(r.S+r.F*!n(3),"Object",{defineProperty:n(5).f})},function(e,t,n){var r=n(40),i=n(13);n(70)("keys",(function(){return function(e){return i(r(e))}}))},function(e,t){},function(e,t,n){"use strict";var r=n(71)(!0);n(34)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var r=n(1),i=n(4),o=n(3),a=n(12),s=n(39),u=n(65).KEY,l=n(9),c=n(23),f=n(21),d=n(15),h=n(8),p=n(27),m=n(26),g=n(59),v=n(62),y=n(11),b=n(10),q=n(7),w=n(25),_=n(14),x=n(35),S=n(68),k=n(67),C=n(5),E=n(13),O=k.f,A=C.f,D=S.f,T=r.Symbol,P=r.JSON,M=P&&P.stringify,N="prototype",I=h("_hidden"),R=h("toPrimitive"),j={}.propertyIsEnumerable,F=c("symbol-registry"),L=c("symbols"),B=c("op-symbols"),U=Object[N],z="function"==typeof T,H=r.QObject,$=!H||!H[N]||!H[N].findChild,V=o&&l((function(){return 7!=x(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=O(U,t);r&&delete U[t],A(e,t,n),r&&e!==U&&A(U,t,r)}:A,W=function(e){var t=L[e]=x(T[N]);return t._k=e,t},X=z&&"symbol"==typeof T.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof T},G=function(e,t,n){return e===U&&G(B,t,n),y(e),t=w(t,!0),y(n),i(L,t)?(n.enumerable?(i(e,I)&&e[I][t]&&(e[I][t]=!1),n=x(n,{enumerable:_(0,!1)})):(i(e,I)||A(e,I,_(1,{})),e[I][t]=!0),V(e,t,n)):A(e,t,n)},Y=function(e,t){y(e);for(var n,r=g(t=q(t)),i=0,o=r.length;o>i;)G(e,n=r[i++],t[n]);return e},K=function(e,t){return void 0===t?x(e):Y(x(e),t)},J=function(e){var t=j.call(this,e=w(e,!0));return!(this===U&&i(L,e)&&!i(B,e))&&(!(t||!i(this,e)||!i(L,e)||i(this,I)&&this[I][e])||t)},Z=function(e,t){if(e=q(e),t=w(t,!0),e!==U||!i(L,t)||i(B,t)){var n=O(e,t);return!n||!i(L,t)||i(e,I)&&e[I][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=D(q(e)),r=[],o=0;n.length>o;)i(L,t=n[o++])||t==I||t==u||r.push(t);return r},ee=function(e){for(var t,n=e===U,r=D(n?B:q(e)),o=[],a=0;r.length>a;)!i(L,t=r[a++])||n&&!i(U,t)||o.push(L[t]);return o};z||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===U&&t.call(B,n),i(this,I)&&i(this[I],e)&&(this[I][e]=!1),V(this,e,_(1,n))};return o&&$&&V(U,e,{configurable:!0,set:t}),W(e)},s(T[N],"toString",(function(){return this._k})),k.f=Z,C.f=G,n(36).f=S.f=Q,n(20).f=J,n(37).f=ee,o&&!n(19)&&s(U,"propertyIsEnumerable",J,!0),p.f=function(e){return W(h(e))}),a(a.G+a.W+a.F*!z,{Symbol:T});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)h(te[ne++]);for(var re=E(h.store),ie=0;re.length>ie;)m(re[ie++]);a(a.S+a.F*!z,"Symbol",{for:function(e){return i(F,e+="")?F[e]:F[e]=T(e)},keyFor:function(e){if(!X(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){$=!0},useSimple:function(){$=!1}}),a(a.S+a.F*!z,"Object",{create:K,defineProperty:G,defineProperties:Y,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:ee}),P&&a(a.S+a.F*(!z||l((function(){var e=T();return"[null]"!=M([e])||"{}"!=M({a:e})||"{}"!=M(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!X(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!X(t))return t}),r[1]=t,M.apply(P,r)}}),T[N][R]||n(6)(T[N],R,T[N].valueOf),f(T,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){n(26)("asyncIterator")},function(e,t,n){n(26)("observable")},function(e,t,n){n(74);for(var r=n(1),i=n(6),o=n(18),a=n(8)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var l=s[u],c=r[l],f=c&&c.prototype;f&&!f[a]&&i(f,a,l),o[l]=o.Array}},function(e,t,n){t=e.exports=n(84)(),t.push([e.id,'.v-select{position:relative;font-family:inherit}.v-select,.v-select *{box-sizing:border-box}.v-select[dir=rtl] .vs__actions{padding:0 3px 0 6px}.v-select[dir=rtl] .dropdown-toggle .clear{margin-left:6px;margin-right:0}.v-select[dir=rtl] .selected-tag .close{margin-left:0;margin-right:2px}.v-select[dir=rtl] .dropdown-menu{text-align:right}.v-select .open-indicator{display:flex;align-items:center;cursor:pointer;pointer-events:all;opacity:1;width:12px}.v-select .open-indicator,.v-select .open-indicator:before{transition:all .15s cubic-bezier(1,-.115,.975,.855);transition-timing-function:cubic-bezier(1,-.115,.975,.855)}.v-select .open-indicator:before{border-color:rgba(60,60,60,.5);border-style:solid;border-width:3px 3px 0 0;content:"";display:inline-block;height:10px;width:10px;vertical-align:text-top;transform:rotate(133deg);box-sizing:inherit}.v-select.open .open-indicator:before{transform:rotate(315deg)}.v-select.loading .open-indicator{opacity:0}.v-select .dropdown-toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;padding:0 0 4px;background:none;border:1px solid rgba(60,60,60,.26);border-radius:4px;white-space:normal}.v-select .vs__selected-options{display:flex;flex-basis:100%;flex-grow:1;flex-wrap:wrap;padding:0 2px;position:relative}.v-select .vs__actions{display:flex;align-items:stretch;padding:0 6px 0 3px}.v-select .dropdown-toggle .clear{font-size:23px;font-weight:700;line-height:1;color:rgba(60,60,60,.5);padding:0;border:0;background-color:transparent;cursor:pointer;margin-right:6px}.v-select.searchable .dropdown-toggle{cursor:text}.v-select.unsearchable .dropdown-toggle{cursor:pointer}.v-select.open .dropdown-toggle{border-bottom-color:transparent;border-bottom-left-radius:0;border-bottom-right-radius:0}.v-select .dropdown-menu{display:block;position:absolute;top:100%;left:0;z-index:1000;min-width:160px;padding:5px 0;margin:0;width:100%;overflow-y:scroll;border:1px solid rgba(0,0,0,.26);box-shadow:0 3px 6px 0 rgba(0,0,0,.15);border-top:none;border-radius:0 0 4px 4px;text-align:left;list-style:none;background:#fff}.v-select .no-options{text-align:center}.v-select .selected-tag{display:flex;align-items:center;background-color:#f0f0f0;border:1px solid #ccc;border-radius:4px;color:#333;line-height:1.42857143;margin:4px 2px 0;padding:0 .25em;transition:opacity .25s}.v-select.single .selected-tag{background-color:transparent;border-color:transparent}.v-select.single.open .selected-tag{position:absolute;opacity:.4}.v-select.single.searching .selected-tag{display:none}.v-select .selected-tag .close{margin-left:2px;font-size:1.25em;appearance:none;padding:0;cursor:pointer;background:0 0;border:0;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.v-select.single.searching:not(.open):not(.loading) input[type=search]{opacity:.2}.v-select input[type=search]::-webkit-search-cancel-button,.v-select input[type=search]::-webkit-search-decoration,.v-select input[type=search]::-webkit-search-results-button,.v-select input[type=search]::-webkit-search-results-decoration{display:none}.v-select input[type=search]::-ms-clear{display:none}.v-select input[type=search],.v-select input[type=search]:focus{appearance:none;-webkit-appearance:none;-moz-appearance:none;line-height:1.42857143;font-size:1em;display:inline-block;border:1px solid transparent;border-left:none;outline:none;margin:4px 0 0;padding:0 7px;max-width:100%;background:none;box-shadow:none;flex-grow:1;width:0}.v-select.unsearchable input[type=search]{opacity:0}.v-select.unsearchable input[type=search]:hover{cursor:pointer}.v-select li{line-height:1.42857143}.v-select li>a{display:block;padding:3px 20px;clear:both;color:#333;white-space:nowrap}.v-select li:hover{cursor:pointer}.v-select .dropdown-menu .active>a{color:#333;background:rgba(50,50,50,.1)}.v-select .dropdown-menu>.highlight>a{background:#5897fb;color:#fff}.v-select .highlight:not(:last-child){margin-bottom:0}.v-select .spinner{align-self:center;opacity:0;font-size:5px;text-indent:-9999em;overflow:hidden;border-top:.9em solid hsla(0,0%,39%,.1);border-right:.9em solid hsla(0,0%,39%,.1);border-bottom:.9em solid hsla(0,0%,39%,.1);border-left:.9em solid rgba(60,60,60,.45);transform:translateZ(0);animation:vSelectSpinner 1.1s infinite linear;transition:opacity .1s}.v-select .spinner,.v-select .spinner:after{border-radius:50%;width:5em;height:5em}.v-select.disabled .dropdown-toggle,.v-select.disabled .dropdown-toggle .clear,.v-select.disabled .dropdown-toggle input,.v-select.disabled .open-indicator,.v-select.disabled .selected-tag .close{cursor:not-allowed;background-color:#f8f8f8}.v-select.loading .spinner{opacity:1}@-webkit-keyframes vSelectSpinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes vSelectSpinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fade-enter-active,.fade-leave-active{transition:opacity .15s cubic-bezier(1,.5,.8,1)}.fade-enter,.fade-leave-to{opacity:0}',""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){n(89);var r=n(86)(n(41),n(87),null,null);e.exports=r.exports},function(e,t){e.exports=function(e,t,n,r){var i,o=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(i=e,o=e.default);var s="function"==typeof o?o.options:o;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),r){var u=s.computed||(s.computed={});Object.keys(r).forEach((function(e){var t=r[e];u[e]=function(){return t}}))}return{esModule:i,exports:o,options:s}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dropdown v-select",class:e.dropdownClasses,attrs:{dir:e.dir}},[n("div",{ref:"toggle",staticClass:"dropdown-toggle",on:{mousedown:function(t){t.preventDefault(),e.toggleDropdown(t)}}},[n("div",{ref:"selectedOptions",staticClass:"vs__selected-options"},[e._l(e.valueAsArray,(function(t){return e._t("selected-option-container",[n("span",{key:t.index,staticClass:"selected-tag"},[e._t("selected-option",[e._v("\n "+e._s(e.getOptionLabel(t))+"\n ")],null,"object"==typeof t?t:(r={},r[e.label]=t,r)),e._v(" "),e.multiple?n("button",{staticClass:"close",attrs:{disabled:e.disabled,type:"button","aria-label":"Remove option"},on:{click:function(n){e.deselect(t)}}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v("×")])]):e._e()],2)],{option:"object"==typeof t?t:(i={},i[e.label]=t,i),deselect:e.deselect,multiple:e.multiple,disabled:e.disabled});var r,i})),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],ref:"search",staticClass:"form-control",attrs:{type:"search",autocomplete:"off",disabled:e.disabled,placeholder:e.searchPlaceholder,tabindex:e.tabindex,readonly:!e.searchable,id:e.inputId,role:"combobox","aria-expanded":e.dropdownOpen,"aria-label":"Search for option"},domProps:{value:e.search},on:{keydown:[function(t){return"button"in t||!e._k(t.keyCode,"delete",[8,46],t.key)?void e.maybeDeleteValue(t):null},function(t){return"button"in t||!e._k(t.keyCode,"up",38,t.key)?(t.preventDefault(),void e.typeAheadUp(t)):null},function(t){return"button"in t||!e._k(t.keyCode,"down",40,t.key)?(t.preventDefault(),void e.typeAheadDown(t)):null},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key)?(t.preventDefault(),void e.typeAheadSelect(t)):null},function(t){return"button"in t||!e._k(t.keyCode,"tab",9,t.key)?void e.onTab(t):null}],keyup:function(t){return"button"in t||!e._k(t.keyCode,"esc",27,t.key)?void e.onEscape(t):null},blur:e.onSearchBlur,focus:e.onSearchFocus,input:function(t){t.target.composing||(e.search=t.target.value)}}})],2),e._v(" "),n("div",{staticClass:"vs__actions"},[n("button",{directives:[{name:"show",rawName:"v-show",value:e.showClearButton,expression:"showClearButton"}],staticClass:"clear",attrs:{disabled:e.disabled,type:"button",title:"Clear selection"},on:{click:e.clearSelection}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v("×")])]),e._v(" "),e.noDrop?e._e():n("i",{ref:"openIndicator",staticClass:"open-indicator",attrs:{role:"presentation"}}),e._v(" "),e._t("spinner",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.mutableLoading,expression:"mutableLoading"}],staticClass:"spinner"},[e._v("Loading...")])])],2)]),e._v(" "),n("transition",{attrs:{name:e.transition}},[e.dropdownOpen?n("ul",{ref:"dropdownMenu",staticClass:"dropdown-menu",style:{"max-height":e.maxHeight},attrs:{role:"listbox"},on:{mousedown:e.onMousedown}},[e._l(e.filteredOptions,(function(t,r){return n("li",{key:r,class:{active:e.isOptionSelected(t),highlight:r===e.typeAheadPointer},attrs:{role:"option"},on:{mouseover:function(t){e.typeAheadPointer=r}}},[n("a",{on:{mousedown:function(n){n.preventDefault(),n.stopPropagation(),e.select(t)}}},[e._t("option",[e._v("\n "+e._s(e.getOptionLabel(t))+"\n ")],null,"object"==typeof t?t:(i={},i[e.label]=t,i))],2)]);var i})),e._v(" "),e.filteredOptions.length?e._e():n("li",{staticClass:"no-options"},[e._t("no-options",[e._v("Sorry, no matching options.")])],2)],2):e._e()])],1)},staticRenderFns:[]}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=f[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(u(r.parts[o],t))}else{var a=[];for(o=0;o<r.parts.length;o++)a.push(u(r.parts[o],t));f[r.id]={id:r.id,refs:1,parts:a}}}}function i(e){for(var t=[],n={},r=0;r<e.length;r++){var i=e[r],o=i[0],a=i[1],s=i[2],u=i[3],l={css:a,media:s,sourceMap:u};n[o]?n[o].parts.push(l):t.push(n[o]={id:o,parts:[l]})}return t}function o(e,t){var n=p(),r=v[v.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),v.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=v.indexOf(e);t>=0&&v.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function u(e,t){var n,r,i;if(t.singleton){var o=g++;n=m||(m=s(t)),r=l.bind(null,n,o,!1),i=l.bind(null,n,o,!0)}else n=s(t),r=c.bind(null,n),i=function(){a(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function l(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function c(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var f={},d=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},h=d((function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())})),p=d((function(){return document.head||document.getElementsByTagName("head")[0]})),m=null,g=0,v=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=h()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=i(e);return r(n,t),function(e){for(var o=[],a=0;a<n.length;a++){var s=n[a],u=f[s.id];u.refs--,o.push(u)}if(e){var l=i(e);r(l,t)}for(a=0;a<o.length;a++){u=o[a];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete f[u.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){var r=n(83);"string"==typeof r&&(r=[[e.id,r,""]]),n(88)(r,{}),r.locals&&(e.exports=r.locals)}])}))},"4a7b":function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function l(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=u(void 0,e[i])):n[i]=u(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=u(void 0,t[e]))})),r.forEach(o,l),r.forEach(a,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=u(void 0,e[i])):n[i]=u(void 0,t[i])})),r.forEach(s,(function(r){r in t?n[r]=u(e[r],t[r]):r in e&&(n[r]=u(void 0,e[r]))}));var c=i.concat(o).concat(a).concat(s),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,l),n}},"4c70":function(e,t,n){var r=n("90e5");function i(){var e=["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],t=["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],n=["So","Mo","Di","Mi","Do","Fr","Sa"],i=["Son","Mon","Die","Mit","Don","Fre","Sam"],a=["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],s=["AM","PM"],u=["am","pm"],l=["a.m.","p.m."],c={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return i[e.getDay()]},dddd:function(e){return a[e.getDay()]},A:function(e){return e.getHours()/12>=1?s[1]:s[0]},a:function(e){return e.getHours()/12>=1?u[1]:u[0]},aa:function(e){return e.getHours()/12>=1?l[1]:l[0]}},f=["M","D","DDD","d","Q","W"];return f.forEach((function(e){c[e+"o"]=function(t,n){return o(n[e](t))}})),{formatters:c,formattingTokensRegExp:r(c)}}function o(e){return e+"."}e.exports=i},"4cef":function(e,t){var n=/\s/;function r(e){var t=e.length;while(t--&&n.test(e.charAt(t)));return t}e.exports=r},"4d34":function(e,t,n){var r=n("90e5");function i(){var e=["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],t=["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],n=["do","se","te","qa","qi","se","sa"],i=["dom","seg","ter","qua","qui","sex","sáb"],a=["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],s=["AM","PM"],u=["am","pm"],l=["a.m.","p.m."],c={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return i[e.getDay()]},dddd:function(e){return a[e.getDay()]},A:function(e){return e.getHours()/12>=1?s[1]:s[0]},a:function(e){return e.getHours()/12>=1?u[1]:u[0]},aa:function(e){return e.getHours()/12>=1?l[1]:l[0]}},f=["M","D","DDD","d","Q","W"];return f.forEach((function(e){c[e+"o"]=function(t,n){return o(n[e](t))}})),{formatters:c,formattingTokensRegExp:r(c)}}function o(e){return e+"º"}e.exports=i},"4e9d":function(e,t,n){var r;(function(){"use strict";var i={};function o(e,t){for(var n=e.data,r=t.data,i=e.width,o=e.height,a=0;a<o;a++)for(var s=0;s<i;s++){var u,l=4*(a*i+s);u=0===s||s>=i-1||0===a||a>=o-1?C(n,l):4*C(n,l)-C(n,l-4*i)-C(n,l-4)-C(n,l+4)-C(n,l+4*i),r[l+1]=u}}function a(e,t,n){for(var r=t.data,i=n.data,o=t.width,a=t.height,s=0;s<a;s++)for(var u=0;u<o;u++){var l=4*(s*o+u),c=k(r[l],r[l+1],r[l+2])/255,f=h(e,r[l],r[l+1],r[l+2]),d=f>e.skinThreshold,p=c>=e.skinBrightnessMin&&c<=e.skinBrightnessMax;i[l]=d&&p?(f-e.skinThreshold)*(255/(1-e.skinThreshold)):0}}function s(e,t,n){for(var r=t.data,i=n.data,o=t.width,a=t.height,s=0;s<a;s++)for(var u=0;u<o;u++){var l=4*(s*o+u),c=k(r[l],r[l+1],r[l+2])/255,f=E(r[l],r[l+1],r[l+2]),d=f>e.saturationThreshold,h=c>=e.saturationBrightnessMin&&c<=e.saturationBrightnessMax;i[l+2]=h&&d?(f-e.saturationThreshold)*(255/(1-e.saturationThreshold)):0}}function u(e,t){if(e.boost){for(var n=t.data,r=0;r<t.width;r+=4)n[r+3]=0;for(r=0;r<e.boost.length;r++)l(e.boost[r],e,t)}}function l(e,t,n){for(var r=n.data,i=n.width,o=~~e.x,a=~~(e.x+e.width),s=~~e.y,u=~~(e.y+e.height),l=255*e.weight,c=s;c<u;c++)for(var f=o;f<a;f++){var d=4*(c*i+f);r[d+3]+=l}}function c(e,t,n){for(var r=[],i=b(t,n),o=e.cropWidth||i,a=e.cropHeight||i,s=e.maxScale;s>=e.minScale;s-=e.scaleStep)for(var u=0;u+a*s<=n;u+=e.step)for(var l=0;l+o*s<=t;l+=e.step)r.push({x:l,y:u,width:o*s,height:a*s});return r}function f(e,t,n){for(var r={detail:0,saturation:0,skin:0,boost:0,total:0},i=t.data,o=e.scoreDownSample,a=1/o,s=t.height*o,u=t.width*o,l=t.width,c=0;c<s;c+=o)for(var f=0;f<u;f+=o){var h=4*(~~(c*a)*l+~~(f*a)),p=d(e,n,f,c),m=i[h+1]/255;r.skin+=i[h]/255*(m+e.skinBias)*p,r.detail+=m*p,r.saturation+=i[h+2]/255*(m+e.saturationBias)*p,r.boost+=i[h+3]/255*p}return r.total=(r.detail*e.detailWeight+r.skin*e.skinWeight+r.saturation*e.saturationWeight+r.boost*e.boostWeight)/(n.width*n.height),r}function d(e,t,n,r){if(t.x>n||n>=t.x+t.width||t.y>r||r>=t.y+t.height)return e.outsideImportance;n=(n-t.x)/t.width,r=(r-t.y)/t.height;var i=2*w(.5-n),o=2*w(.5-r),a=Math.max(i-1+e.edgeRadius,0),s=Math.max(o-1+e.edgeRadius,0),u=(a*a+s*s)*e.edgeWeight,l=1.41-_(i*i+o*o);return e.ruleOfThirds&&(l+=1.2*Math.max(0,l+u+.5)*(S(i)+S(o))),l+u}function h(e,t,n,r){var i=_(t*t+n*n+r*r),o=t/i-e.skinColor[0],a=n/i-e.skinColor[1],s=r/i-e.skinColor[2],u=_(o*o+a*a+s*s);return 1-u}function p(e,t){var n={},r=new m(t.width,t.height);o(t,r),a(e,t,r),s(e,t,r),u(e,r);for(var i=g(r,e.scoreDownSample),l=-1/0,d=null,h=c(e,t.width,t.height),p=0,v=h.length;p<v;p++){var y=h[p];y.score=f(e,i,y),y.score.total>l&&(d=y,l=y.score.total)}return n.topCrop=d,e.debug&&d&&(n.crops=h,n.debugOutput=r,n.debugOptions=e,n.debugTopCrop=x({},n.topCrop)),n}function m(e,t,n){this.width=e,this.height=t,this.data=n?new Uint8ClampedArray(n):new Uint8ClampedArray(e*t*4)}function g(e,t){for(var n=e.data,r=e.width,i=Math.floor(e.width/t),o=Math.floor(e.height/t),a=new m(i,o),s=a.data,u=1/(t*t),l=0;l<o;l++)for(var c=0;c<i;c++){for(var f=4*(l*i+c),d=0,h=0,p=0,g=0,v=0,y=0,b=0;b<t;b++)for(var q=0;q<t;q++){var w=4*((l*t+b)*r+(c*t+q));d+=n[w],h+=n[w+1],p+=n[w+2],g+=n[w+3],v=Math.max(v,n[w]),y=Math.max(y,n[w+1])}s[f]=d*u*.5+.5*v,s[f+1]=h*u*.7+.3*y,s[f+2]=p*u,s[f+3]=g*u}return a}function v(e,t){var n=document.createElement("canvas");return n.width=e,n.height=t,n}function y(e){return{open:function(t){var n=t.naturalWidth||t.width,r=t.naturalHeight||t.height,o=e(n,r),a=o.getContext("2d");return!t.naturalWidth||t.naturalWidth==t.width&&t.naturalHeight==t.height?(o.width=t.width,o.height=t.height):(o.width=t.naturalWidth,o.height=t.naturalHeight),a.drawImage(t,0,0),i.Promise.resolve(o)},resample:function(t,n,r){return Promise.resolve(t).then((function(t){var o=e(~~n,~~r),a=o.getContext("2d");return a.drawImage(t,0,0,t.width,t.height,0,0,o.width,o.height),i.Promise.resolve(o)}))},getData:function(e){return Promise.resolve(e).then((function(e){var t=e.getContext("2d"),n=t.getImageData(0,0,e.width,e.height);return new m(e.width,e.height,n.data)}))}}}i.Promise="undefined"!==typeof Promise?Promise:function(){throw new Error("No native promises and smartcrop.Promise not set.")},i.DEFAULTS={width:0,height:0,aspect:0,cropWidth:0,cropHeight:0,detailWeight:.2,skinColor:[.78,.57,.44],skinBias:.01,skinBrightnessMin:.2,skinBrightnessMax:1,skinThreshold:.8,skinWeight:1.8,saturationBrightnessMin:.05,saturationBrightnessMax:.9,saturationThreshold:.4,saturationBias:.2,saturationWeight:.1,scoreDownSample:8,step:8,scaleStep:.1,minScale:1,maxScale:1,edgeRadius:.4,edgeWeight:-20,outsideImportance:-.5,boostWeight:100,ruleOfThirds:!0,prescale:!0,imageOperations:null,canvasFactory:v,debug:!1},i.crop=function(e,t,n){var r=x({},i.DEFAULTS,t);r.aspect&&(r.width=r.aspect,r.height=1),null===r.imageOperations&&(r.imageOperations=y(r.canvasFactory));var o=r.imageOperations,a=1,s=1;return o.open(e,r.input).then((function(e){return r.width&&r.height&&(a=b(e.width/r.width,e.height/r.height),r.cropWidth=~~(r.width*a),r.cropHeight=~~(r.height*a),r.minScale=b(r.maxScale,q(1/a,r.minScale)),!1!==r.prescale&&(s=b(q(256/e.width,256/e.height),1),s<1?(e=o.resample(e,e.width*s,e.height*s),r.cropWidth=~~(r.cropWidth*s),r.cropHeight=~~(r.cropHeight*s),r.boost&&(r.boost=r.boost.map((function(e){return{x:~~(e.x*s),y:~~(e.y*s),width:~~(e.width*s),height:~~(e.height*s),weight:e.weight}})))):s=1)),e})).then((function(e){return o.getData(e).then((function(e){for(var t=p(r,e),i=t.crops||[t.topCrop],o=0,a=i.length;o<a;o++){var u=i[o];u.x=~~(u.x/s),u.y=~~(u.y/s),u.width=~~(u.width/s),u.height=~~(u.height/s)}return n&&n(t),t}))}))},i.isAvailable=function(e){if(!i.Promise)return!1;var t=e?e.canvasFactory:v;if(t===v){var n=document.createElement("canvas");if(!n.getContext("2d"))return!1}return!0},i.importance=d,i.ImgData=m,i._downSample=g,i._canvasImageOperations=y;var b=Math.min,q=Math.max,w=Math.abs,_=Math.sqrt;function x(e){for(var t=1,n=arguments.length;t<n;t++){var r=arguments[t];if(r)for(var i in r)e[i]=r[i]}return e}function S(e){return e=16*((e-1/3+1)%2*.5-.5),Math.max(1-e*e,0)}function k(e,t,n){return.5126*n+.7152*t+.0722*e}function C(e,t){return k(e[t],e[t+1],e[t+2])}function E(e,t,n){var r=q(e/255,t/255,n/255),i=b(e/255,t/255,n/255);if(r===i)return 0;var o=(r+i)/2,a=r-i;return o>.5?a/(2-r-i):a/(r+i)}r=function(){return i}.call(t,n,t,e),void 0===r||(e.exports=r),t.smartcrop=i,e.exports=i})()},"4f50":function(e,t,n){var r=n("b760"),i=n("e538"),o=n("c8fe"),a=n("4359"),s=n("fa21"),u=n("d370"),l=n("6747"),c=n("dcbe"),f=n("0d24"),d=n("9520"),h=n("1a8c"),p=n("60ed"),m=n("73ac"),g=n("8adb"),v=n("8de2");function y(e,t,n,y,b,q,w){var _=g(e,n),x=g(t,n),S=w.get(x);if(S)r(e,n,S);else{var k=q?q(_,x,n+"",e,t,w):void 0,C=void 0===k;if(C){var E=l(x),O=!E&&f(x),A=!E&&!O&&m(x);k=x,E||O||A?l(_)?k=_:c(_)?k=a(_):O?(C=!1,k=i(x,!0)):A?(C=!1,k=o(x,!0)):k=[]:p(x)||u(x)?(k=_,u(_)?k=v(_):h(_)&&!d(_)||(k=s(x))):C=!1}C&&(w.set(x,k),b(k,x,y,q,w),w["delete"](x)),r(e,n,k)}}e.exports=y},"50d8":function(e,t){function n(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}e.exports=n},5140:function(e,t,n){var r=n("90e5");function i(){var e=["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],t=["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"],n=["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"],i=["вс","пн","вт","ср","чт","пт","сб"],o=["вск","пнд","втр","срд","чтв","птн","суб"],a=["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],s=["ночи","утра","дня","вечера"],u={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return i[e.getDay()]},ddd:function(e){return o[e.getDay()]},dddd:function(e){return a[e.getDay()]},A:function(e){var t=e.getHours();return t>=17?s[3]:t>=12?s[2]:t>=4?s[1]:s[0]},Do:function(e,t){return t.D(e)+"-е"},Wo:function(e,t){return t.W(e)+"-я"}};u.a=u.A,u.aa=u.A;var l=["M","DDD","d","Q"];l.forEach((function(e){u[e+"o"]=function(t,n){return n[e](t)+"-й"}}));var c=["D","Do","DD"];return c.forEach((function(e){u[e+" MMMM"]=function(t,r){var i=u[e]||r[e];return i(t,r)+" "+n[t.getMonth()]}})),{formatters:u,formattingTokensRegExp:r(u)}}e.exports=i},5270:function(e,t,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){s(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return s(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"52cf":function(e,t,n){var r=n("2d96"),i=n("e830");e.exports={distanceInWords:r(),format:i()}},"532b":function(e,t){function n(){var e={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}};function t(t,n,r){var i;return r=r||{},i="string"===typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"over "+i:i+" geleden":i}return{localize:t}}e.exports=n},"54eb":function(e,t,n){var r=n("8eeb"),i=n("32f4");function o(e,t){return r(e,i(e),t)}e.exports=o},"55a3":function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},"57a5":function(e,t,n){var r=n("91e9"),i=r(Object.keys,Object);e.exports=i},"580f":function(e,t,n){var r=n("c8d5"),i=n("a4b7"),o=n("d420");function a(e){var t=r(e),n=o(t,i(t)),a=n+1;return a}e.exports=a},"585a":function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))},"59dc":function(e,t,n){"use strict";e.exports=n("96ae")},"5ab1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.s3=t.traditional=t.thenable=void 0;var r=n("320c"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.thenable=["onCancel","onPasteReceived","onSubmit","onSubmitDelete","onUpload","onUploadChunk","onValidate","onValidateBatch"];var a=t.traditional=["onAutoRetry","onCancel","onComplete","onAllComplete","onDelete","onDeleteComplete","onError","onManualRetry","onPasteReceived","onProgress","onResume","onSessionRequestComplete","onStatusChange","onSubmit","onSubmitDelete","onSubmitted","onTotalProgress","onUpload","onUploadChunk","onUploadChunkSuccess","onValidate","onValidateBatch"];t.s3=(0,i.default)([],a,["onCredentialsExpired"])},"5b01":function(e,t,n){var r=n("8eeb"),i=n("ec69");function o(e,t){return e&&r(t,i(t),e)}e.exports=o},"5d89":function(e,t,n){var r=n("f8af");function i(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}e.exports=i},"5dbe":function(e,t,n){(function(){var t;function n(){console.log(i.apply(null,arguments))}function r(e,t){return i.apply(null,[e].concat(t))}function i(e){for(var t,n,r,i,o=1,a=[].slice.call(arguments),s=0,u=e.length,l="",c=!1,f=!1,d=function(){return a[o++]},h=function(){var n="";while(/\d/.test(e[s]))n+=e[s++],t=e[s];return n.length>0?parseInt(n):null};s<u;++s)if(t=e[s],c)switch(c=!1,"."==t?(f=!1,t=e[++s]):"0"==t&&"."==e[s+1]?(f=!0,s+=2,t=e[s]):f=!0,i=h(),t){case"b":l+=parseInt(d(),10).toString(2);break;case"c":n=d(),l+="string"===typeof n||n instanceof String?n:String.fromCharCode(parseInt(n,10));break;case"d":l+=parseInt(d(),10);break;case"f":r=String(parseFloat(d()).toFixed(i||6)),l+=f?r:r.replace(/^0/,"");break;case"j":l+=JSON.stringify(d());break;case"o":l+="0"+parseInt(d(),10).toString(8);break;case"s":l+=d();break;case"x":l+="0x"+parseInt(d(),10).toString(16);break;case"X":l+="0x"+parseInt(d(),10).toString(16).toUpperCase();break;default:l+=t;break}else"%"===t?c=!0:l+=t;return l}t=e.exports=i,t.format=i,t.vsprintf=r,"undefined"!==typeof console&&"function"===typeof console.log&&(t.printf=n)})()},"5e2e":function(e,t,n){var r=n("28c9"),i=n("69d5"),o=n("b4c07"),a=n("fba5"),s=n("67ca");function u(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},"5f02":function(e,t,n){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},6044:function(e,t,n){var r=n("0b07"),i=r(Object,"create");e.exports=i},"60ed":function(e,t,n){var r=n("3729"),i=n("2dcb"),o=n("1310"),a="[object Object]",s=Function.prototype,u=Object.prototype,l=s.toString,c=u.hasOwnProperty,f=l.call(Object);function d(e){if(!o(e)||r(e)!=a)return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==f}e.exports=d},6254:function(e,t,n){var r=n("366b");function i(e,t){return r(Date.now(),e,t)}e.exports=i},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"63ea":function(e,t,n){var r=n("c05f");function i(e,t){return r(e,t)}e.exports=i},"642a":function(e,t,n){var r=n("966f"),i=n("3bb4"),o=n("20ec");function a(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}e.exports=a},"656b":function(e,t,n){var r=n("e2e4"),i=n("f4d6");function o(e,t){t=r(t,e);var n=0,o=t.length;while(null!=e&&n<o)e=e[i(t[n++])];return n&&n==o?e:void 0}e.exports=o},6572:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.qq=void 0;var r=n("9925"),i=u(r),o=n("59dc"),a=u(o),s=n("5ab1");function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(e){var n=e.options;return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,{callbackNames:s.traditional,options:n,qq:a.default,type:"azure"}))}return f(t,e),t}(i.default);t.default=d,t.qq=a.default},"65e8":function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"h",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return S})),n.d(t,"d",(function(){return E})),n.d(t,"e",(function(){return D}));var r=n("304a"),i=n("2eae");const o=Object.create(null);class a{constructor(e,t,n){this.ranges=n||[new s(e.min(t),e.max(t))],this.$anchor=e,this.$head=t}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.node(0).slice(this.from,this.to,!0)}replace(e,t=r["j"].empty){let n=t.content.lastChild,i=null;for(let r=0;r<t.openEnd;r++)i=n,n=n.lastChild;let o=e.steps.length,a=this.ranges;for(let s=0;s<a.length;s++){let{$from:u,$to:l}=a[s],c=e.mapping.slice(o);e.replaceRange(c.map(u.pos),c.map(l.pos),s?r["j"].empty:t),0==s&&m(e,o,(n?n.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:o,$to:a}=r[i],s=e.mapping.slice(n),u=s.map(o.pos),l=s.map(a.pos);i?e.deleteRange(u,l):(e.replaceRangeWith(u,l,t),m(e,n,t.isInline?-1:1))}}static findFrom(e,t,n){let r=e.parent.inlineContent?new u(e):p(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let i=e.depth-1;i>=0;i--){let r=t<0?p(e.node(0),e.node(i),e.before(i+1),e.index(i),t,n):p(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,n);if(r)return r}}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new d(e.node(0))}static atStart(e){return p(e,e,0,0,1)||new d(e)}static atEnd(e){return p(e,e,e.content.size,e.childCount,-1)||new d(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=o[t.type];if(!n)throw new RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in o)throw new RangeError("Duplicate use of selection JSON ID "+e);return o[e]=t,t.prototype.jsonID=e,t}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}a.prototype.visible=!0;class s{constructor(e,t){this.$from=e,this.$to=t}}class u extends a{constructor(e,t=e){super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return a.near(n);let r=e.resolve(t.map(this.anchor));return new u(r.parent.inlineContent?r:n,n)}replace(e,t=r["j"].empty){if(super.replace(e,t),t==r["j"].empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof u&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new l(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new u(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if(n&&!r||(n=r>=0?1:-1),!t.parent.inlineContent){let e=a.findFrom(t,n,!0)||a.findFrom(t,-n,!0);if(!e)return a.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r?e=t:(e=(a.findFrom(e,-n,!0)||a.findFrom(e,n,!0)).$anchor,e.pos<t.pos!=r<0&&(e=t))),new u(e,t)}}a.jsonID("text",u);class l{constructor(e,t){this.anchor=e,this.head=t}map(e){return new l(e.map(this.anchor),e.map(this.head))}resolve(e){return u.between(e.resolve(this.anchor),e.resolve(this.head))}}class c extends a{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),i=e.resolve(r);return n?a.near(i):new c(i)}content(){return new r["j"](r["c"].from(this.node),0,0)}eq(e){return e instanceof c&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new f(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new c(e.resolve(t.anchor))}static create(e,t){return new this(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}c.prototype.visible=!1,a.jsonID("node",c);class f{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new l(n,n):new f(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&c.isSelectable(n)?new c(t):a.near(t)}}class d extends a{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=r["j"].empty){if(t==r["j"].empty){e.delete(0,e.doc.content.size);let t=a.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new d(e)}map(e){return new d(e)}eq(e){return e instanceof d}getBookmark(){return h}}a.jsonID("all",d);const h={map(){return this},resolve(e){return new d(e)}};function p(e,t,n,r,i,o){if(t.inlineContent)return u.create(e,n);for(let a=r-(i>0?0:1);i>0?a<t.childCount:a>=0;a+=i){let r=t.child(a);if(r.isAtom){if(!o&&c.isSelectable(r))return c.create(e,n-(i<0?r.nodeSize:0))}else{let t=p(e,r,n+i,i<0?r.childCount:0,i,o);if(t)return t}n+=r.nodeSize*i}}function m(e,t,n){let r=e.steps.length-1;if(r<t)return;let o=e.steps[r];if(!(o instanceof i["c"]||o instanceof i["b"]))return;let s,u=e.mapping.maps[r];u.forEach((e,t,n,r)=>{null==s&&(s=r)}),e.setSelection(a.near(e.doc.resolve(s),n))}const g=1,v=2,y=4;class b extends i["e"]{constructor(e){super(e.doc),this.time=Date.now(),this.curSelection=e.selection,this.curSelectionFor=0,this.storedMarks=e.storedMarks,this.updated=0,this.meta=Object.create(null)}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|g)&~v,this.storedMarks=null,this}get selectionSet(){return(this.updated&g)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=v,this}ensureMarks(e){return r["d"].sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&v)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~v,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t){let n=this.selection;return!1!==t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r["d"].none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n=t){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),this.selection.empty||this.setSelection(a.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=y,this}get scrolledIntoView(){return(this.updated&y)>0}}function q(e,t){return t&&e?e.bind(t):e}class w{constructor(e,t,n){this.name=e,this.init=q(t.init,n),this.apply=q(t.apply,n)}}const _=[new w("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new w("selection",{init(e,t){return e.selection||a.atStart(t.doc)},apply(e){return e.selection}}),new w("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new w("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class x{constructor(e,t){this.schema=e,this.fields=_.concat(),this.plugins=[],this.pluginsByKey=Object.create(null),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new w(e.key,e.spec.state,e))})}}class S{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let o=0;o<this.config.plugins.length;o++){let a=this.config.plugins[o];if(a.spec.appendTransaction){let s=r?r[o].n:0,u=r?r[o].state:this,l=s<t.length&&a.spec.appendTransaction.call(a,s?t.slice(s):t,u,n);if(l&&n.filterTransaction(l,o)){if(l.setMeta("appendedTransaction",e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<o?{state:n,n:t.length}:{state:this,n:0})}t.push(l),n=n.applyInner(l),i=!0}r&&(r[o]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new S(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let i=n[r];t[i.name]=i.apply(e,this[i.name],this,t)}for(let r=0;r<k.length;r++)k[r](this,e,t);return t}get tr(){return new b(this)}static create(e){let t=new x(e.schema||e.doc.type.schema,e.plugins),n=new S(t);for(let r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n}reconfigure(e){let t=new x(e.schema||this.schema,e.plugins),n=t.fields,r=new S(t);for(let i=0;i<n.length;i++){let t=n[i].name;r[t]=this.hasOwnProperty(t)?this[t]:n[i].init(e,r)}return r}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new x(e.schema,e.plugins),o=new S(i);return i.fields.forEach(i=>{if("doc"==i.name)o.doc=r["f"].fromJSON(e.schema,t.doc);else if("selection"==i.name)o.selection=a.fromJSON(o.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let r in n){let a=n[r],s=a.spec.state;if(a.key==i.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(t,r))return void(o[i.name]=s.fromJSON.call(a,e,t[r],o))}o[i.name]=i.init(e,o)}}),o}static addApplyListener(e){k.push(e)}static removeApplyListener(e){let t=k.indexOf(e);t>-1&&k.splice(t,1)}}const k=[];function C(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):"handleDOMEvents"==r&&(i=C(i,t,{})),n[r]=i}return n}class E{constructor(e){this.props={},e.props&&C(e.props,this,this.props),this.spec=e,this.key=e.key?e.key.key:A("plugin")}getState(e){return e[this.key]}}const O=Object.create(null);function A(e){return e in O?e+"$"+ ++O[e]:(O[e]=0,e+"$")}class D{constructor(e="key"){this.key=A(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},"66cb":function(e,t,n){var r;(function(i){var o=/^\s+/,a=/\s+$/,s=0,u=i.round,l=i.min,c=i.max,f=i.random;function d(e,t){if(e=e||"",t=t||{},e instanceof d)return e;if(!(this instanceof d))return new d(e,t);var n=h(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=u(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=u(this._r)),this._g<1&&(this._g=u(this._g)),this._b<1&&(this._b=u(this._b)),this._ok=n.ok,this._tc_id=s++}function h(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return"string"==typeof e&&(e=K(e)),"object"==typeof e&&(Y(e.r)&&Y(e.g)&&Y(e.b)?(t=p(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):Y(e.h)&&Y(e.s)&&Y(e.v)?(r=V(e.s),i=V(e.v),t=y(e.h,r,i),a=!0,s="hsv"):Y(e.h)&&Y(e.s)&&Y(e.l)&&(r=V(e.s),o=V(e.l),t=g(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=F(n),{ok:a,format:e.format||s,r:l(255,c(t.r,0)),g:l(255,c(t.g,0)),b:l(255,c(t.b,0)),a:n}}function p(e,t,n){return{r:255*L(e,255),g:255*L(t,255),b:255*L(n,255)}}function m(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var r,i,o=c(e,t,n),a=l(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4;break}r/=6}return{h:r,s:i,l:s}}function g(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=L(e,360),t=L(t,100),n=L(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=a(u,s,e+1/3),i=a(u,s,e),o=a(u,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}function v(e,t,n){e=L(e,255),t=L(t,255),n=L(n,255);var r,i,o=c(e,t,n),a=l(e,t,n),s=o,u=o-a;if(i=0===o?0:u/o,o==a)r=0;else{switch(o){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4;break}r/=6}return{h:r,s:i,v:s}}function y(e,t,n){e=6*L(e,360),t=L(t,100),n=L(n,100);var r=i.floor(e),o=e-r,a=n*(1-t),s=n*(1-o*t),u=n*(1-(1-o)*t),l=r%6,c=[n,s,a,a,u,n][l],f=[u,n,n,s,a,a][l],d=[a,a,u,n,n,s][l];return{r:255*c,g:255*f,b:255*d}}function b(e,t,n,r){var i=[$(u(e).toString(16)),$(u(t).toString(16)),$(u(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function q(e,t,n,r,i){var o=[$(u(e).toString(16)),$(u(t).toString(16)),$(u(n).toString(16)),$(W(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function w(e,t,n,r){var i=[$(W(r)),$(u(e).toString(16)),$(u(t).toString(16)),$(u(n).toString(16))];return i.join("")}function _(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.s-=t/100,n.s=B(n.s),d(n)}function x(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.s+=t/100,n.s=B(n.s),d(n)}function S(e){return d(e).desaturate(100)}function k(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.l+=t/100,n.l=B(n.l),d(n)}function C(e,t){t=0===t?0:t||10;var n=d(e).toRgb();return n.r=c(0,l(255,n.r-u(-t/100*255))),n.g=c(0,l(255,n.g-u(-t/100*255))),n.b=c(0,l(255,n.b-u(-t/100*255))),d(n)}function E(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.l-=t/100,n.l=B(n.l),d(n)}function O(e,t){var n=d(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,d(n)}function A(e){var t=d(e).toHsl();return t.h=(t.h+180)%360,d(t)}function D(e){var t=d(e).toHsl(),n=t.h;return[d(e),d({h:(n+120)%360,s:t.s,l:t.l}),d({h:(n+240)%360,s:t.s,l:t.l})]}function T(e){var t=d(e).toHsl(),n=t.h;return[d(e),d({h:(n+90)%360,s:t.s,l:t.l}),d({h:(n+180)%360,s:t.s,l:t.l}),d({h:(n+270)%360,s:t.s,l:t.l})]}function P(e){var t=d(e).toHsl(),n=t.h;return[d(e),d({h:(n+72)%360,s:t.s,l:t.l}),d({h:(n+216)%360,s:t.s,l:t.l})]}function M(e,t,n){t=t||6,n=n||30;var r=d(e).toHsl(),i=360/n,o=[d(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(d(r));return o}function N(e,t){t=t||6;var n=d(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;while(t--)a.push(d({h:r,s:i,v:o})),o=(o+s)%1;return a}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r,o,a,s=this.toRgb();return e=s.r/255,t=s.g/255,n=s.b/255,r=e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4),o=t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4),a=n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4),.2126*r+.7152*o+.0722*a},setAlpha:function(e){return this._a=F(e),this._roundA=u(100*this._a)/100,this},toHsv:function(){var e=v(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=v(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=m(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=m(this._r,this._g,this._b),t=u(360*e.h),n=u(100*e.s),r=u(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return q(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:u(this._r),g:u(this._g),b:u(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+u(this._r)+", "+u(this._g)+", "+u(this._b)+")":"rgba("+u(this._r)+", "+u(this._g)+", "+u(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:u(100*L(this._r,255))+"%",g:u(100*L(this._g,255))+"%",b:u(100*L(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+u(100*L(this._r,255))+"%, "+u(100*L(this._g,255))+"%, "+u(100*L(this._b,255))+"%)":"rgba("+u(100*L(this._r,255))+"%, "+u(100*L(this._g,255))+"%, "+u(100*L(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(R[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+w(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=d(e);n="#"+w(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0,i=!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e);return i?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return d(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(k,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(x,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(A,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(P,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:V(e[r]));e=n}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),i=d(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return d(a)},d.readability=function(e,t){var n=d(e),r=d(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,i,o=d.readability(e,t);switch(i=!1,r=J(n),r.level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7;break}return i},d.mostReadable=function(e,t,n){var r,i,o,a,s=null,u=0;n=n||{},i=n.includeFallbackColors,o=n.level,a=n.size;for(var l=0;l<t.length;l++)r=d.readability(e,t[l]),r>u&&(u=r,s=d(t[l]));return d.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var I=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},R=d.hexNames=j(I);function j(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function F(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function L(e,t){z(e)&&(e="100%");var n=H(e);return e=l(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function B(e){return l(1,c(0,e))}function U(e){return parseInt(e,16)}function z(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function H(e){return"string"===typeof e&&-1!=e.indexOf("%")}function $(e){return 1==e.length?"0"+e:""+e}function V(e){return e<=1&&(e=100*e+"%"),e}function W(e){return i.round(255*parseFloat(e)).toString(16)}function X(e){return U(e)/255}var G=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Y(e){return!!G.CSS_UNIT.exec(e)}function K(e){e=e.replace(o,"").replace(a,"").toLowerCase();var t,n=!1;if(I[e])e=I[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=G.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=G.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=G.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=G.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=G.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=G.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=G.hex8.exec(e))?{r:U(t[1]),g:U(t[2]),b:U(t[3]),a:X(t[4]),format:n?"name":"hex8"}:(t=G.hex6.exec(e))?{r:U(t[1]),g:U(t[2]),b:U(t[3]),format:n?"name":"hex"}:(t=G.hex4.exec(e))?{r:U(t[1]+""+t[1]),g:U(t[2]+""+t[2]),b:U(t[3]+""+t[3]),a:X(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=G.hex3.exec(e))&&{r:U(t[1]+""+t[1]),g:U(t[2]+""+t[2]),b:U(t[3]+""+t[3]),format:n?"name":"hex"}}function J(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:t,size:n}}e.exports?e.exports=d:(r=function(){return d}.call(t,n,t,e),void 0===r||(e.exports=r))})(Math)},6747:function(e,t){var n=Array.isArray;e.exports=n},"67ca":function(e,t,n){var r=n("cb5a");function i(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}e.exports=i},6856:function(e,t){function n(){var e={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},t=["lessThanXSeconds","lessThanXMinutes","overXYears"];function n(n,r,i){var o;if(i=i||{},o="string"===typeof e[n]?e[n]:1===r?e[n].one:e[n].other.replace("{{count}}",r),i.addSuffix){var a="";return t.indexOf(n)>-1&&(a=" bir süre"),i.comparison>0?o+a+" içinde":o+a+" önce"}return o}return{localize:n}}e.exports=n},6933:function(e,t){function n(){var e={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}};function t(t,n,r){var i;return r=r||{},i="string"===typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"daqui a "+i:"há "+i:i}return{localize:t}}e.exports=n},"69d5":function(e,t,n){var r=n("cb5a"),i=Array.prototype,o=i.splice;function a(e){var t=this.__data__,n=r(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():o.call(t,n,1),--this.size,!0}e.exports=a},"6d6b":function(e,t,n){"use strict";var r=n("aefd"),i=n("b726");e.exports=r.bind(null,i)},"6e0c":function(e,t,n){var r=n("e485"),i=n("4c70");e.exports={distanceInWords:r(),format:i()}},"6f6c":function(e,t){var n=/\w*$/;function r(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}e.exports=r},"6fcd":function(e,t,n){var r=n("50d8"),i=n("d370"),o=n("6747"),a=n("0d24"),s=n("c098"),u=n("73ac"),l=Object.prototype,c=l.hasOwnProperty;function f(e,t){var n=o(e),l=!n&&i(e),f=!n&&!l&&a(e),d=!n&&!l&&!f&&u(e),h=n||l||f||d,p=h?r(e.length,String):[],m=p.length;for(var g in e)!t&&!c.call(e,g)||h&&("length"==g||f&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||p.push(g);return p}e.exports=f},"6ffc":function(e,t,n){
+/* flatpickr v4.3.2, @license MIT */
+(function(e,n){n(t)})(0,(function(e){"use strict";var t="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={firstDayOfWeek:1,weekdays:{shorthand:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},months:{shorthand:["Янв","Фев","Март","Апр","Май","Июнь","Июль","Авг","Сен","Окт","Ноя","Дек"],longhand:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]},rangeSeparator:" — ",scrollTitle:"Прокрутите для увеличения",toggleTitle:"Нажмите для переключения"};t.l10ns.ru=n;var r=t.l10ns;e.Russian=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}))},"70f2":function(e,t,n){var r=n("580f"),i=n("81fc"),o=n("8964"),a=n("c8d5"),s=n("7eea"),u=n("52cf");function l(e,t,n){var r=t?String(t):"YYYY-MM-DDTHH:mm:ss.SSSZ",i=n||{},o=i.locale,l=u.format.formatters,c=u.format.formattingTokensRegExp;o&&o.format&&o.format.formatters&&(l=o.format.formatters,o.format.formattingTokensRegExp&&(c=o.format.formattingTokensRegExp));var d=a(e);if(!s(d))return"Invalid Date";var h=f(r,l,c);return h(d)}var c={M:function(e){return e.getMonth()+1},MM:function(e){return p(e.getMonth()+1,2)},Q:function(e){return Math.ceil((e.getMonth()+1)/3)},D:function(e){return e.getDate()},DD:function(e){return p(e.getDate(),2)},DDD:function(e){return r(e)},DDDD:function(e){return p(r(e),3)},d:function(e){return e.getDay()},E:function(e){return e.getDay()||7},W:function(e){return i(e)},WW:function(e){return p(i(e),2)},YY:function(e){return p(e.getFullYear(),4).substr(2)},YYYY:function(e){return p(e.getFullYear(),4)},GG:function(e){return String(o(e)).substr(2)},GGGG:function(e){return o(e)},H:function(e){return e.getHours()},HH:function(e){return p(e.getHours(),2)},h:function(e){var t=e.getHours();return 0===t?12:t>12?t%12:t},hh:function(e){return p(c["h"](e),2)},m:function(e){return e.getMinutes()},mm:function(e){return p(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return p(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return p(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return p(e.getMilliseconds(),3)},Z:function(e){return h(e.getTimezoneOffset(),":")},ZZ:function(e){return h(e.getTimezoneOffset())},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()}};function f(e,t,n){var r,i,o=e.match(n),a=o.length;for(r=0;r<a;r++)i=t[o[r]]||c[o[r]],o[r]=i||d(o[r]);return function(e){for(var t="",n=0;n<a;n++)o[n]instanceof Function?t+=o[n](e,c):t+=o[n];return t}}function d(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|]$/g,""):e.replace(/\\/g,"")}function h(e,t){t=t||"";var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;return n+p(i,2)+t+p(o,2)}function p(e,t){var n=Math.abs(e).toString();while(n.length<t)n="0"+n;return n}e.exports=l},"72af":function(e,t,n){var r=n("99cd"),i=r();e.exports=i},"72f0":function(e,t){function n(e){return function(){return e}}e.exports=n},"73ac":function(e,t,n){var r=n("743f"),i=n("b047f"),o=n("99d3"),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},"743f":function(e,t,n){var r=n("3729"),i=n("b218"),o=n("1310"),a="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",h="[object Number]",p="[object Object]",m="[object RegExp]",g="[object Set]",v="[object String]",y="[object WeakMap]",b="[object ArrayBuffer]",q="[object DataView]",w="[object Float32Array]",_="[object Float64Array]",x="[object Int8Array]",S="[object Int16Array]",k="[object Int32Array]",C="[object Uint8Array]",E="[object Uint8ClampedArray]",O="[object Uint16Array]",A="[object Uint32Array]",D={};function T(e){return o(e)&&i(e.length)&&!!D[r(e)]}D[w]=D[_]=D[x]=D[S]=D[k]=D[C]=D[E]=D[O]=D[A]=!0,D[a]=D[s]=D[b]=D[u]=D[q]=D[l]=D[c]=D[f]=D[d]=D[h]=D[p]=D[m]=D[g]=D[v]=D[y]=!1,e.exports=T},7530:function(e,t,n){var r=n("1a8c"),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},7680:function(e,t,n){var r=n("90e5");function i(){var e=["jan","feb","mar","apr","mei","jun","jul","aug","sep","okt","nov","dec"],t=["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],n=["zo","ma","di","wo","do","vr","za"],i=["zon","maa","din","woe","don","vri","zat"],a=["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],s=["AM","PM"],u=["am","pm"],l=["a.m.","p.m."],c={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return i[e.getDay()]},dddd:function(e){return a[e.getDay()]},A:function(e){return e.getHours()/12>=1?s[1]:s[0]},a:function(e){return e.getHours()/12>=1?u[1]:u[0]},aa:function(e){return e.getHours()/12>=1?l[1]:l[0]}},f=["M","D","DDD","d","Q","W"];return f.forEach((function(e){c[e+"o"]=function(t,n){return o(n[e](t))}})),{formatters:c,formattingTokensRegExp:r(c)}}function o(e){return e+"e"}e.exports=i},"76dd":function(e,t,n){var r=n("ce86");function i(e){return null==e?"":r(e)}e.exports=i},7948:function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}e.exports=n},"79bc":function(e,t,n){var r=n("0b07"),i=n("2b3e"),o=r(i,"Map");e.exports=o},"7a48":function(e,t,n){var r=n("6044"),i=Object.prototype,o=i.hasOwnProperty;function a(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}e.exports=a},"7a775":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"7aac":function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b83":function(e,t,n){var r=n("7c64"),i=n("93ed"),o=n("2478"),a=n("a524"),s=n("1fc8");function u(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},"7b97":function(e,t,n){var r=n("7e64"),i=n("a2be"),o=n("1c3c"),a=n("b1e5"),s=n("42a2"),u=n("6747"),l=n("0d24"),c=n("73ac"),f=1,d="[object Arguments]",h="[object Array]",p="[object Object]",m=Object.prototype,g=m.hasOwnProperty;function v(e,t,n,m,v,y){var b=u(e),q=u(t),w=b?h:s(e),_=q?h:s(t);w=w==d?p:w,_=_==d?p:_;var x=w==p,S=_==p,k=w==_;if(k&&l(e)){if(!l(t))return!1;b=!0,x=!1}if(k&&!x)return y||(y=new r),b||c(e)?i(e,t,n,m,v,y):o(e,t,w,n,m,v,y);if(!(n&f)){var C=x&&g.call(e,"__wrapped__"),E=S&&g.call(t,"__wrapped__");if(C||E){var O=C?e.value():e,A=E?t.value():t;return y||(y=new r),v(O,A,n,m,y)}}return!!k&&(y||(y=new r),a(e,t,n,m,v,y))}e.exports=v},"7c64":function(e,t,n){var r=n("e24b"),i=n("5e2e"),o=n("79bc");function a(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}e.exports=a},"7d1f":function(e,t,n){var r=n("087d"),i=n("6747");function o(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}e.exports=o},"7d8c":function(e,t,n){"use strict";e.exports=n("dce1")},"7e64":function(e,t,n){var r=n("5e2e"),i=n("efb6"),o=n("2fcc"),a=n("802a"),s=n("55a3"),u=n("d02c");function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=i,l.prototype["delete"]=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,e.exports=l},"7ed2":function(e,t){var n="__lodash_hash_undefined__";function r(e){return this.__data__.set(e,n),this}e.exports=r},"7eea":function(e,t,n){var r=n("a735");function i(e){if(r(e))return!isNaN(e);throw new TypeError(toString.call(e)+" is not an instance of Date")}e.exports=i},"7f06":function(e,t,n){"use strict";n.d(t,"a",(function(){return q})),n.d(t,"b",(function(){return b}));for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",229:"q"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},o="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),a="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),s="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),u="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),l="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),c=o&&(u||+o[1]<57)||s&&u,f=0;f<10;f++)r[48+f]=r[96+f]=String(f);for(f=1;f<=24;f++)r[f+111]="F"+f;for(f=65;f<=90;f++)r[f]=String.fromCharCode(f+32),i[f]=String.fromCharCode(f);for(var d in r)i.hasOwnProperty(d)||(i[d]=r[d]);function h(e){var t=c&&(e.ctrlKey||e.altKey||e.metaKey)||(a||l)&&e.shiftKey&&e.key&&1==e.key.length,n=!t&&e.key||(e.shiftKey?i:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==n&&(n="Escape"),"Del"==n&&(n="Delete"),"Left"==n&&(n="ArrowLeft"),"Up"==n&&(n="ArrowUp"),"Right"==n&&(n="ArrowRight"),"Down"==n&&(n="ArrowDown"),n}var p=n("65e8"),m="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function g(e){var t,n,r,i,o=e.split(/-(?!$)/),a=o[o.length-1];"Space"==a&&(a=" ");for(var s=0;s<o.length-1;s++){var u=o[s];if(/^(cmd|meta|m)$/i.test(u))i=!0;else if(/^a(lt)?$/i.test(u))t=!0;else if(/^(c|ctrl|control)$/i.test(u))n=!0;else if(/^s(hift)?$/i.test(u))r=!0;else{if(!/^mod$/i.test(u))throw new Error("Unrecognized modifier name: "+u);m?i=!0:n=!0}}return t&&(a="Alt-"+a),n&&(a="Ctrl-"+a),i&&(a="Meta-"+a),r&&(a="Shift-"+a),a}function v(e){var t=Object.create(null);for(var n in e)t[g(n)]=e[n];return t}function y(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}function b(e){return new p["d"]({props:{handleKeyDown:q(e)}})}function q(e){var t=v(e);return function(e,n){var i,o=h(n),a=1==o.length&&" "!=o,s=t[y(o,n,!a)];if(s&&s(e.state,e.dispatch,e))return!0;if(a&&(n.shiftKey||n.altKey||n.metaKey||o.charCodeAt(0)>127)&&(i=r[n.keyCode])&&i!=o){var u=t[y(i,n,!0)];if(u&&u(e.state,e.dispatch,e))return!0}else if(a&&n.shiftKey){var l=t[y(o,n,!0)];if(l&&l(e.state,e.dispatch,e))return!0}return!1}}},"802a":function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},8057:function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}e.exports=n},8096:function(e,t,n){},"81d9":function(e,t,n){var r=n("6933"),i=n("4d34");e.exports={distanceInWords:r(),format:i()}},"81fc":function(e,t,n){var r=n("c8d5"),i=n("b4c7"),o=n("4497"),a=6048e5;function s(e){var t=r(e),n=i(t).getTime()-o(t).getTime();return Math.round(n/a)+1}e.exports=s},"83b9":function(e,t,n){"use strict";var r=n("d925"),i=n("e683");e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},8424:function(e,t,n){var r=n("532b"),i=n("7680");e.exports={distanceInWords:r(),format:i()}},"848b":function(e,t,n){"use strict";var r=n("4a0c"),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={},a=r.version.split(".");function s(e,t){for(var n=t?t.split("."):a,r=e.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}function u(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var r=Object.keys(e),i=r.length;while(i-- >0){var o=r[i],a=t[o];if(a){var s=e[o],u=void 0===s||a(s,o,e);if(!0!==u)throw new TypeError("option "+o+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+o)}}i.transitional=function(e,t,n){var i=t&&s(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(a(r," has been removed in "+t));return i&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={isOlderVersion:s,assertOptions:u,validators:i}},"85e3":function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=n},8604:function(e,t,n){var r=n("26e8"),i=n("e2c0");function o(e,t){return null!=e&&i(e,t,r)}e.exports=o},8682:function(e,t,n){"use strict";var r=n("6254"),i=n.n(r),o=function(e,t,n){var r=n.includeSeconds,o=n.addSuffix;return void 0===o&&(o=!0),i()(e,{locale:t,includeSeconds:r,addSuffix:o})},a=function(e){void 0===e&&(e={});var t=e.locales||{},n=e.name||"Timeago";return{name:n,props:{datetime:{required:!0},title:{type:[String,Boolean]},locale:{type:String},autoUpdate:{type:[Number,Boolean]},converter:{type:Function},converterOptions:{type:Object}},data:function(){return{timeago:this.getTimeago()}},computed:{localeName:function(){return this.locale||this.$timeago.locale}},mounted:function(){this.startUpdater()},beforeDestroy:function(){this.stopUpdater()},render:function(e){return e("time",{attrs:{datetime:new Date(this.datetime),title:"string"===typeof this.title?this.title:!1===this.title?null:this.timeago}},[this.timeago])},methods:{getTimeago:function(n){var r=this.converter||e.converter||o;return r(n||this.datetime,t[this.locale||this.$timeago.locale],this.converterOptions||{})},convert:function(e){this.timeago=this.getTimeago(e)},startUpdater:function(){var e=this;if(this.autoUpdate){var t=!0===this.autoUpdate?60:this.autoUpdate;this.updater=setInterval((function(){e.convert()}),1e3*t)}},stopUpdater:function(){this.updater&&(clearInterval(this.updater),this.updater=null)}},watch:{autoUpdate:function(e){this.stopUpdater(),e&&this.startUpdater()},datetime:function(){this.convert()},localeName:function(){this.convert()},converter:function(){this.convert()},converterOptions:{handler:function(){this.convert()},deep:!0}}}},s=function(e,t){if(!e.prototype.$timeago){0;var n={locale:t.locale};e.prototype.$timeago=e.observable?e.observable(n):new e({data:n});var r=a(t);e.component(r.name,r)}};t["a"]=s},"872a":function(e,t,n){var r=n("3b4a");function i(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}e.exports=i},8964:function(e,t,n){var r=n("c8d5"),i=n("b4c7");function o(e){var t=r(e),n=t.getFullYear(),o=new Date(0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);var a=i(o),s=new Date(0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);var u=i(s);return t.getTime()>=a.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}e.exports=o},"8adb":function(e,t){function n(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}e.exports=n},"8c74":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;(function(global){var qq=function(e){"use strict";return{hide:function(){return e.style.display="none",this},attach:function(t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n),function(){qq(e).detach(t,n)}},detach:function(t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.attachEvent&&e.detachEvent("on"+t,n),this},contains:function(t){return!!t&&(e===t||(e.contains?e.contains(t):!!(8&t.compareDocumentPosition(e))))},insertBefore:function(t){return t.parentNode.insertBefore(e,t),this},remove:function(){return e.parentNode.removeChild(e),this},css:function(t){if(null==e.style)throw new qq.Error("Can't apply style to node as it is not on the HTMLElement prototype chain!");return null!=t.opacity&&"string"!==typeof e.style.opacity&&"undefined"!==typeof e.filters&&(t.filter="alpha(opacity="+Math.round(100*t.opacity)+")"),qq.extend(e.style,t),this},hasClass:function(t,n){var r=new RegExp("(^| )"+t+"( |$)");return r.test(e.className)||!(!n||!r.test(e.parentNode.className))},addClass:function(t){return qq(e).hasClass(t)||(e.className+=" "+t),this},removeClass:function(t){var n=new RegExp("(^| )"+t+"( |$)");return e.className=e.className.replace(n," ").replace(/^\s+|\s+$/g,""),this},getByClass:function(t,n){var r,i=[];return n&&e.querySelector?e.querySelector("."+t):e.querySelectorAll?e.querySelectorAll("."+t):(r=e.getElementsByTagName("*"),qq.each(r,(function(e,n){qq(n).hasClass(t)&&i.push(n)})),n?i[0]:i)},getFirstByClass:function(t){return qq(e).getByClass(t,!0)},children:function(){var t=[],n=e.firstChild;while(n)1===n.nodeType&&t.push(n),n=n.nextSibling;return t},setText:function(t){return e.innerText=t,e.textContent=t,this},clearText:function(){return qq(e).setText("")},hasAttribute:function(t){var n;return e.hasAttribute?!!e.hasAttribute(t)&&null==/^false$/i.exec(e.getAttribute(t)):(n=e[t],void 0!==n&&null==/^false$/i.exec(n))}}};(function(){"use strict";qq.canvasToBlob=function(e,t,n){return qq.dataUriToBlob(e.toDataURL(t,n))},qq.dataUriToBlob=function(e){var t,n,r,i,o=function(e,t){var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,r=n&&new n;return r?(r.append(e),r.getBlob(t)):new Blob([e],{type:t})};return n=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):decodeURI(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],t=new ArrayBuffer(n.length),r=new Uint8Array(t),qq.each(n,(function(e,t){r[e]=t.charCodeAt(0)})),o(t,i)},qq.log=function(e,t){window.console&&(t&&"info"!==t?window.console[t]?window.console[t](e):window.console.log("<"+t+"> "+e):window.console.log(e))},qq.isObject=function(e){return e&&!e.nodeType&&"[object Object]"===Object.prototype.toString.call(e)},qq.isFunction=function(e){return"function"===typeof e},qq.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)||e&&window.ArrayBuffer&&e.buffer&&e.buffer.constructor===ArrayBuffer},qq.isItemList=function(e){return"[object DataTransferItemList]"===Object.prototype.toString.call(e)},qq.isNodeList=function(e){return"[object NodeList]"===Object.prototype.toString.call(e)||e.item&&e.namedItem},qq.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},qq.trimStr=function(e){return String.prototype.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},qq.format=function(e){var t=Array.prototype.slice.call(arguments,1),n=e,r=n.indexOf("{}");return qq.each(t,(function(e,t){var i=n.substring(0,r),o=n.substring(r+2);if(n=i+t+o,r=n.indexOf("{}",r+t.length),r<0)return!1})),n},qq.isFile=function(e){return window.File&&"[object File]"===Object.prototype.toString.call(e)},qq.isFileList=function(e){return window.FileList&&"[object FileList]"===Object.prototype.toString.call(e)},qq.isFileOrInput=function(e){return qq.isFile(e)||qq.isInput(e)},qq.isInput=function(e,t){var n=function(e){var n=e.toLowerCase();return t?"file"!==n:"file"===n};return!!(window.HTMLInputElement&&"[object HTMLInputElement]"===Object.prototype.toString.call(e)&&e.type&&n(e.type))||!!(e.tagName&&"input"===e.tagName.toLowerCase()&&e.type&&n(e.type))},qq.isBlob=function(e){if(window.Blob&&"[object Blob]"===Object.prototype.toString.call(e))return!0},qq.isXhrUploadSupported=function(){var e=document.createElement("input");return e.type="file",void 0!==e.multiple&&"undefined"!==typeof File&&"undefined"!==typeof FormData&&"undefined"!==typeof qq.createXhrInstance().upload},qq.createXhrInstance=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(e){return qq.log("Neither XHR or ActiveX are supported!","error"),null}},qq.isFolderDropSupported=function(e){return e.items&&e.items.length>0&&e.items[0].webkitGetAsEntry},qq.isFileChunkingSupported=function(){return!qq.androidStock()&&qq.isXhrUploadSupported()&&(void 0!==File.prototype.slice||void 0!==File.prototype.webkitSlice||void 0!==File.prototype.mozSlice)},qq.sliceBlob=function(e,t,n){var r=e.slice||e.mozSlice||e.webkitSlice;return r.call(e,t,n)},qq.arrayBufferToHex=function(e){var t="",n=new Uint8Array(e);return qq.each(n,(function(e,n){var r=n.toString(16);r.length<2&&(r="0"+r),t+=r})),t},qq.readBlobToHex=function(e,t,n){var r=qq.sliceBlob(e,t,t+n),i=new FileReader,o=new qq.Promise;return i.onload=function(){o.success(qq.arrayBufferToHex(i.result))},i.onerror=o.failure,i.readAsArrayBuffer(r),o},qq.extend=function(e,t,n){return qq.each(t,(function(t,r){n&&qq.isObject(r)?(void 0===e[t]&&(e[t]={}),qq.extend(e[t],r,!0)):e[t]=r})),e},qq.override=function(e,t){var n={},r=t(n);return qq.each(r,(function(t,r){void 0!==e[t]&&(n[t]=e[t]),e[t]=r})),e},qq.indexOf=function(e,t,n){if(e.indexOf)return e.indexOf(t,n);n=n||0;var r=e.length;for(n<0&&(n+=r);n<r;n+=1)if(e.hasOwnProperty(n)&&e[n]===t)return n;return-1},qq.getUniqueId=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)}))},qq.ie=function(){return-1!==navigator.userAgent.indexOf("MSIE")||-1!==navigator.userAgent.indexOf("Trident")},qq.ie7=function(){return-1!==navigator.userAgent.indexOf("MSIE 7")},qq.ie8=function(){return-1!==navigator.userAgent.indexOf("MSIE 8")},qq.ie10=function(){return-1!==navigator.userAgent.indexOf("MSIE 10")},qq.ie11=function(){return qq.ie()&&-1!==navigator.userAgent.indexOf("rv:11")},qq.edge=function(){return navigator.userAgent.indexOf("Edge")>=0},qq.safari=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Apple")},qq.chrome=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Google")},qq.opera=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Opera")},qq.firefox=function(){return!qq.edge()&&!qq.ie11()&&-1!==navigator.userAgent.indexOf("Mozilla")&&void 0!==navigator.vendor&&""===navigator.vendor},qq.windows=function(){return"Win32"===navigator.platform},qq.android=function(){return-1!==navigator.userAgent.toLowerCase().indexOf("android")},qq.androidStock=function(){return qq.android()&&navigator.userAgent.toLowerCase().indexOf("chrome")<0},qq.ios6=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 6_")},qq.ios7=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 7_")},qq.ios8=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 8_")},qq.ios800=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 8_0 ")},qq.ios=function(){return-1!==navigator.userAgent.indexOf("iPad")||-1!==navigator.userAgent.indexOf("iPod")||-1!==navigator.userAgent.indexOf("iPhone")},qq.iosChrome=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf("CriOS")},qq.iosSafari=function(){return qq.ios()&&!qq.iosChrome()&&-1!==navigator.userAgent.indexOf("Safari")},qq.iosSafariWebView=function(){return qq.ios()&&!qq.iosChrome()&&!qq.iosSafari()},qq.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},qq.toElement=function(){var e=document.createElement("div");return function(t){e.innerHTML=t;var n=e.firstChild;return e.removeChild(n),n}}(),qq.each=function(e,t){var n,r;if(e)if(window.Storage&&e.constructor===window.Storage){for(n=0;n<e.length;n++)if(r=t(e.key(n),e.getItem(e.key(n))),!1===r)break}else if(qq.isArray(e)||qq.isItemList(e)||qq.isNodeList(e)){for(n=0;n<e.length;n++)if(r=t(n,e[n]),!1===r)break}else if(qq.isString(e)){for(n=0;n<e.length;n++)if(r=t(n,e.charAt(n)),!1===r)break}else for(n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&(r=t(n,e[n]),!1===r))break},qq.bind=function(e,t){if(qq.isFunction(e)){var n=Array.prototype.slice.call(arguments,2);return function(){var r=qq.extend([],n);return arguments.length&&(r=r.concat(Array.prototype.slice.call(arguments))),e.apply(t,r)}}throw new Error("first parameter must be a function!")},qq.obj2url=function(e,t,n){var r=[],i="&",o=function(e,n){var i=t?/\[\]$/.test(t)?t:t+"["+n+"]":n;"undefined"!==i&&"undefined"!==n&&r.push("object"===typeof e?qq.obj2url(e,i,!0):"[object Function]"===Object.prototype.toString.call(e)?encodeURIComponent(i)+"="+encodeURIComponent(e()):encodeURIComponent(i)+"="+encodeURIComponent(e))};return!n&&t?(i=/\?/.test(t)?/\?$/.test(t)?"":"&":"?",r.push(t),r.push(qq.obj2url(e))):"[object Array]"===Object.prototype.toString.call(e)&&"undefined"!==typeof e?qq.each(e,(function(e,t){o(t,e)})):"undefined"!==typeof e&&null!==e&&"object"===typeof e?qq.each(e,(function(e,t){o(t,e)})):r.push(encodeURIComponent(t)+"="+encodeURIComponent(e)),t?r.join(i):r.join(i).replace(/^&/,"").replace(/%20/g,"+")},qq.obj2FormData=function(e,t,n){return t||(t=new FormData),qq.each(e,(function(e,r){e=n?n+"["+e+"]":e,qq.isObject(r)?qq.obj2FormData(r,t,e):qq.isFunction(r)?t.append(e,r()):t.append(e,r)})),t},qq.obj2Inputs=function(e,t){var n;return t||(t=document.createElement("form")),qq.obj2FormData(e,{append:function(e,r){n=document.createElement("input"),n.setAttribute("name",e),n.setAttribute("value",r),t.appendChild(n)}}),t},qq.parseJson=function(json){return window.JSON&&qq.isFunction(JSON.parse)?JSON.parse(json):eval("("+json+")")},qq.getExtension=function(e){var t=e.lastIndexOf(".")+1;if(t>0)return e.substr(t,e.length-t)},qq.getFilename=function(e){return qq.isInput(e)?e.value.replace(/.*(\/|\\)/,""):qq.isFile(e)&&null!==e.fileName&&void 0!==e.fileName?e.fileName:e.name},qq.DisposeSupport=function(){var e=[];return{dispose:function(){var t;do{t=e.shift(),t&&t()}while(t)},attach:function(){var e=arguments;this.addDisposer(qq(e[0]).attach.apply(this,Array.prototype.slice.call(arguments,1)))},addDisposer:function(t){e.push(t)}}}})(),function(){"use strict";__WEBPACK_AMD_DEFINE_RESULT__=function(){return qq}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(),qq.version="5.16.2",qq.supportedFeatures=function(){"use strict";var e,t,n,r,i,o,a,s,u,l,c,f,d,h,p;function m(){var e,t=!0;try{e=document.createElement("input"),e.type="file",qq(e).hide(),e.disabled&&(t=!1)}catch(n){t=!1}return t}function g(){return(qq.chrome()||qq.opera())&&void 0!==navigator.userAgent.match(/Chrome\/[1][4-9]|Chrome\/[2-9][0-9]/)}function v(){if(window.XMLHttpRequest){var e=qq.createXhrInstance();return void 0!==e.withCredentials}return!1}function y(){return void 0!==window.XDomainRequest}function b(){return!!v()||y()}function q(){return void 0!==document.createElement("input").webkitdirectory}function w(){try{return!!window.localStorage&&qq.isFunction(window.localStorage.setItem)}catch(e){return!1}}function _(){var e=document.createElement("span");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&!qq.android()&&!qq.ios()}return e=m(),r=e&&qq.isXhrUploadSupported(),t=r&&!qq.androidStock(),n=r&&_(),i=n&&function(){var e=document.createElement("input");return e.type="file",!!("webkitdirectory"in(e||document.querySelectorAll("input[type=file]")[0]))}(),o=r&&qq.isFileChunkingSupported(),a=r&&o&&w(),s=r&&g(),u=e&&(void 0!==window.postMessage||r),c=v(),l=y(),f=b(),d=q(),h=r&&void 0!==window.FileReader,p=function(){return!!r&&(!qq.androidStock()&&!qq.iosChrome())}(),{ajaxUploading:r,blobUploading:t,canDetermineSize:r,chunking:o,deleteFileCors:f,deleteFileCorsXdr:l,deleteFileCorsXhr:c,dialogElement:!!window.HTMLDialogElement,fileDrop:n,folderDrop:i,folderSelection:d,imagePreviews:h,imageValidation:h,itemSizeValidation:r,pause:o,progressBar:p,resume:a,scaling:h&&t,tiffPreviews:qq.safari(),unlimitedScaledImageSize:!qq.ios(),uploading:e,uploadCors:u,uploadCustomHeaders:r,uploadNonMultipart:r,uploadViaPaste:s}}(),qq.isGenericPromise=function(e){"use strict";return!!(e&&e.then&&qq.isFunction(e.then))},qq.Promise=function(){"use strict";var e,t,n=[],r=[],i=[],o=0;qq.extend(this,{then:function(i,a){return 0===o?(i&&n.push(i),a&&r.push(a)):-1===o?a&&a.apply(null,t):i&&i.apply(null,e),this},done:function(n){return 0===o?i.push(n):n.apply(null,void 0===t?e:t),this},success:function(){return o=1,e=arguments,n.length&&qq.each(n,(function(t,n){n.apply(null,e)})),i.length&&qq.each(i,(function(t,n){n.apply(null,e)})),this},failure:function(){return o=-1,t=arguments,r.length&&qq.each(r,(function(e,n){n.apply(null,t)})),i.length&&qq.each(i,(function(e,n){n.apply(null,t)})),this}})},qq.DragAndDrop=function(e){"use strict";var t,n="qq-hidezones",r="qq-hide-dropzone",i=[],o=[],a=new qq.DisposeSupport;function s(e,n){var r=Array.prototype.slice.call(e);t.callbacks.dropLog("Grabbed "+e.length+" dropped files."),n.dropDisabled(!1),t.callbacks.processingDroppedFilesComplete(r,n.getElement())}function u(e){var n=new qq.Promise;return e.isFile?e.file((function(t){t.qqPath=l(e),o.push(t),n.success()}),(function(r){t.callbacks.dropLog("Problem parsing '"+e.fullPath+"'. FileError code "+r.code+".","error"),n.failure()})):e.isDirectory&&c(e).then((function(e){var t=e.length;qq.each(e,(function(e,r){u(r).done((function(){t-=1,0===t&&n.success()}))})),e.length||n.success()}),(function(r){t.callbacks.dropLog("Problem parsing '"+e.fullPath+"'. FileError code "+r.code+".","error"),n.failure()})),n}function l(e){var t=e.name,n=e.fullPath,r=n.lastIndexOf(t);return n=n.substr(0,r),"/"===n.charAt(0)&&(n=n.substr(1)),n}function c(e,t,n,r){var i=r||new qq.Promise,o=t||e.createReader();return o.readEntries((function(t){var r=n?n.concat(t):t;t.length?setTimeout((function(){c(e,o,r,i)}),0):i.success(r)}),i.failure),i}function f(e,n){var r=[],i=new qq.Promise;return t.callbacks.processingDroppedFiles(),n.dropDisabled(!0),e.files.length>1&&!t.allowMultipleItems?(t.callbacks.processingDroppedFilesComplete([]),t.callbacks.dropError("tooManyFilesError",""),n.dropDisabled(!1),i.failure()):(o=[],qq.isFolderDropSupported(e)?qq.each(e.items,(function(e,t){var n=t.webkitGetAsEntry();n&&(n.isFile?o.push(t.getAsFile()):r.push(u(n).done((function(){r.pop(),0===r.length&&i.success()}))))})):o=e.files,0===r.length&&i.success()),i}function d(e){var u=new qq.UploadDropZone({HIDE_ZONES_EVENT_NAME:n,element:e,onEnter:function(n){qq(e).addClass(t.classes.dropActive),n.stopPropagation()},onLeaveNotDescendants:function(n){qq(e).removeClass(t.classes.dropActive)},onDrop:function(e){f(e.dataTransfer,u).then((function(){s(o,u)}),(function(){t.callbacks.dropLog("Drop event DataTransfer parsing failed. No files will be uploaded.","error")}))}});return a.addDisposer((function(){u.dispose()})),qq(e).hasAttribute(r)&&qq(e).hide(),i.push(u),u}function h(e){var t;return qq.each(e.dataTransfer.types,(function(e,n){if("Files"===n)return t=!0,!1})),t}function p(e){return qq.safari()?e.x<0||e.y<0:0===e.x&&0===e.y}function m(){var e=t.dropZoneElements,i=function(){setTimeout((function(){qq.each(e,(function(e,n){qq(n).hasAttribute(r)&&qq(n).hide(),qq(n).removeClass(t.classes.dropActive)}))}),10)};qq.each(e,(function(t,n){var i=d(n);e.length&&qq.supportedFeatures.fileDrop&&a.attach(document,"dragenter",(function(t){!i.dropDisabled()&&h(t)&&qq.each(e,(function(e,t){t instanceof HTMLElement&&qq(t).hasAttribute(r)&&qq(t).css({display:"block"})}))}))})),a.attach(document,"dragleave",(function(e){p(e)&&i()})),a.attach(qq(document).children()[0],"mouseenter",(function(e){i()})),a.attach(document,"drop",(function(e){h(e)&&(e.preventDefault(),i())})),a.attach(document,n,i)}t={dropZoneElements:[],allowMultipleItems:!0,classes:{dropActive:null},callbacks:new qq.DragAndDrop.callbacks},qq.extend(t,e,!0),m(),qq.extend(this,{setupExtraDropzone:function(e){t.dropZoneElements.push(e),d(e)},removeDropzone:function(e){var n,r=t.dropZoneElements;for(n in r)if(r[n]===e)return r.splice(n,1)},dispose:function(){a.dispose(),qq.each(i,(function(e,t){t.dispose()}))}}),this._testing={},this._testing.extractDirectoryPath=l},qq.DragAndDrop.callbacks=function(){"use strict";return{processingDroppedFiles:function(){},processingDroppedFilesComplete:function(e,t){},dropError:function(e,t){qq.log("Drag & drop error code '"+e+" with these specifics: '"+t+"'","error")},dropLog:function(e,t){qq.log(e,t)}}},qq.UploadDropZone=function(e){"use strict";var t,n,r,i,o=new qq.DisposeSupport;function a(){return qq.safari()||qq.firefox()&&qq.windows()}function s(e){i||(a?o.attach(document,"dragover",(function(e){e.preventDefault()})):o.attach(document,"dragover",(function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="none",e.preventDefault())})),i=!0)}function u(e){if(!qq.supportedFeatures.fileDrop)return!1;var t,n=e.dataTransfer,r=qq.safari();return t=!(!qq.ie()||!qq.supportedFeatures.fileDrop)||"none"!==n.effectAllowed,n&&t&&(n.files&&n.files.length||!r&&n.types.contains&&n.types.contains("Files")||n.types.includes&&n.types.includes("Files"))}function l(e){return void 0!==e&&(r=e),r}function c(){var e;function n(){e=document.createEvent("Event"),e.initEvent(t.HIDE_ZONES_EVENT_NAME,!0,!0)}if(window.CustomEvent)try{e=new CustomEvent(t.HIDE_ZONES_EVENT_NAME)}catch(r){n()}else n();document.dispatchEvent(e)}function f(){o.attach(n,"dragover",(function(e){if(u(e)){var t=qq.ie()&&qq.supportedFeatures.fileDrop?null:e.dataTransfer.effectAllowed;e.dataTransfer.dropEffect="move"===t||"linkMove"===t?"move":"copy",e.stopPropagation(),e.preventDefault()}})),o.attach(n,"dragenter",(function(e){if(!l()){if(!u(e))return;t.onEnter(e)}})),o.attach(n,"dragleave",(function(e){if(u(e)){t.onLeave(e);var n=document.elementFromPoint(e.clientX,e.clientY);qq(this).contains(n)||t.onLeaveNotDescendants(e)}})),o.attach(n,"drop",(function(e){if(!l()){if(!u(e))return;e.preventDefault(),e.stopPropagation(),t.onDrop(e),c()}}))}t={element:null,onEnter:function(e){},onLeave:function(e){},onLeaveNotDescendants:function(e){},onDrop:function(e){}},qq.extend(t,e),n=t.element,s(),f(),qq.extend(this,{dropDisabled:function(e){return l(e)},dispose:function(){o.dispose()},getElement:function(){return n}}),this._testing={},this._testing.isValidFileDrag=u}})(window)},"8d74":function(e,t,n){var r=n("4cef"),i=/^\s+/;function o(e){return e?e.slice(0,r(e)+1).replace(i,""):e}e.exports=o},"8db5":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;(function(global){var qq=function(e){"use strict";return{hide:function(){return e.style.display="none",this},attach:function(t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n),function(){qq(e).detach(t,n)}},detach:function(t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.attachEvent&&e.detachEvent("on"+t,n),this},contains:function(t){return!!t&&(e===t||(e.contains?e.contains(t):!!(8&t.compareDocumentPosition(e))))},insertBefore:function(t){return t.parentNode.insertBefore(e,t),this},remove:function(){return e.parentNode.removeChild(e),this},css:function(t){if(null==e.style)throw new qq.Error("Can't apply style to node as it is not on the HTMLElement prototype chain!");return null!=t.opacity&&"string"!==typeof e.style.opacity&&"undefined"!==typeof e.filters&&(t.filter="alpha(opacity="+Math.round(100*t.opacity)+")"),qq.extend(e.style,t),this},hasClass:function(t,n){var r=new RegExp("(^| )"+t+"( |$)");return r.test(e.className)||!(!n||!r.test(e.parentNode.className))},addClass:function(t){return qq(e).hasClass(t)||(e.className+=" "+t),this},removeClass:function(t){var n=new RegExp("(^| )"+t+"( |$)");return e.className=e.className.replace(n," ").replace(/^\s+|\s+$/g,""),this},getByClass:function(t,n){var r,i=[];return n&&e.querySelector?e.querySelector("."+t):e.querySelectorAll?e.querySelectorAll("."+t):(r=e.getElementsByTagName("*"),qq.each(r,(function(e,n){qq(n).hasClass(t)&&i.push(n)})),n?i[0]:i)},getFirstByClass:function(t){return qq(e).getByClass(t,!0)},children:function(){var t=[],n=e.firstChild;while(n)1===n.nodeType&&t.push(n),n=n.nextSibling;return t},setText:function(t){return e.innerText=t,e.textContent=t,this},clearText:function(){return qq(e).setText("")},hasAttribute:function(t){var n;return e.hasAttribute?!!e.hasAttribute(t)&&null==/^false$/i.exec(e.getAttribute(t)):(n=e[t],void 0!==n&&null==/^false$/i.exec(n))}}};(function(){"use strict";qq.canvasToBlob=function(e,t,n){return qq.dataUriToBlob(e.toDataURL(t,n))},qq.dataUriToBlob=function(e){var t,n,r,i,o=function(e,t){var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,r=n&&new n;return r?(r.append(e),r.getBlob(t)):new Blob([e],{type:t})};return n=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):decodeURI(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],t=new ArrayBuffer(n.length),r=new Uint8Array(t),qq.each(n,(function(e,t){r[e]=t.charCodeAt(0)})),o(t,i)},qq.log=function(e,t){window.console&&(t&&"info"!==t?window.console[t]?window.console[t](e):window.console.log("<"+t+"> "+e):window.console.log(e))},qq.isObject=function(e){return e&&!e.nodeType&&"[object Object]"===Object.prototype.toString.call(e)},qq.isFunction=function(e){return"function"===typeof e},qq.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)||e&&window.ArrayBuffer&&e.buffer&&e.buffer.constructor===ArrayBuffer},qq.isItemList=function(e){return"[object DataTransferItemList]"===Object.prototype.toString.call(e)},qq.isNodeList=function(e){return"[object NodeList]"===Object.prototype.toString.call(e)||e.item&&e.namedItem},qq.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},qq.trimStr=function(e){return String.prototype.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},qq.format=function(e){var t=Array.prototype.slice.call(arguments,1),n=e,r=n.indexOf("{}");return qq.each(t,(function(e,t){var i=n.substring(0,r),o=n.substring(r+2);if(n=i+t+o,r=n.indexOf("{}",r+t.length),r<0)return!1})),n},qq.isFile=function(e){return window.File&&"[object File]"===Object.prototype.toString.call(e)},qq.isFileList=function(e){return window.FileList&&"[object FileList]"===Object.prototype.toString.call(e)},qq.isFileOrInput=function(e){return qq.isFile(e)||qq.isInput(e)},qq.isInput=function(e,t){var n=function(e){var n=e.toLowerCase();return t?"file"!==n:"file"===n};return!!(window.HTMLInputElement&&"[object HTMLInputElement]"===Object.prototype.toString.call(e)&&e.type&&n(e.type))||!!(e.tagName&&"input"===e.tagName.toLowerCase()&&e.type&&n(e.type))},qq.isBlob=function(e){if(window.Blob&&"[object Blob]"===Object.prototype.toString.call(e))return!0},qq.isXhrUploadSupported=function(){var e=document.createElement("input");return e.type="file",void 0!==e.multiple&&"undefined"!==typeof File&&"undefined"!==typeof FormData&&"undefined"!==typeof qq.createXhrInstance().upload},qq.createXhrInstance=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(e){return qq.log("Neither XHR or ActiveX are supported!","error"),null}},qq.isFolderDropSupported=function(e){return e.items&&e.items.length>0&&e.items[0].webkitGetAsEntry},qq.isFileChunkingSupported=function(){return!qq.androidStock()&&qq.isXhrUploadSupported()&&(void 0!==File.prototype.slice||void 0!==File.prototype.webkitSlice||void 0!==File.prototype.mozSlice)},qq.sliceBlob=function(e,t,n){var r=e.slice||e.mozSlice||e.webkitSlice;return r.call(e,t,n)},qq.arrayBufferToHex=function(e){var t="",n=new Uint8Array(e);return qq.each(n,(function(e,n){var r=n.toString(16);r.length<2&&(r="0"+r),t+=r})),t},qq.readBlobToHex=function(e,t,n){var r=qq.sliceBlob(e,t,t+n),i=new FileReader,o=new qq.Promise;return i.onload=function(){o.success(qq.arrayBufferToHex(i.result))},i.onerror=o.failure,i.readAsArrayBuffer(r),o},qq.extend=function(e,t,n){return qq.each(t,(function(t,r){n&&qq.isObject(r)?(void 0===e[t]&&(e[t]={}),qq.extend(e[t],r,!0)):e[t]=r})),e},qq.override=function(e,t){var n={},r=t(n);return qq.each(r,(function(t,r){void 0!==e[t]&&(n[t]=e[t]),e[t]=r})),e},qq.indexOf=function(e,t,n){if(e.indexOf)return e.indexOf(t,n);n=n||0;var r=e.length;for(n<0&&(n+=r);n<r;n+=1)if(e.hasOwnProperty(n)&&e[n]===t)return n;return-1},qq.getUniqueId=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)}))},qq.ie=function(){return-1!==navigator.userAgent.indexOf("MSIE")||-1!==navigator.userAgent.indexOf("Trident")},qq.ie7=function(){return-1!==navigator.userAgent.indexOf("MSIE 7")},qq.ie8=function(){return-1!==navigator.userAgent.indexOf("MSIE 8")},qq.ie10=function(){return-1!==navigator.userAgent.indexOf("MSIE 10")},qq.ie11=function(){return qq.ie()&&-1!==navigator.userAgent.indexOf("rv:11")},qq.edge=function(){return navigator.userAgent.indexOf("Edge")>=0},qq.safari=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Apple")},qq.chrome=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Google")},qq.opera=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Opera")},qq.firefox=function(){return!qq.edge()&&!qq.ie11()&&-1!==navigator.userAgent.indexOf("Mozilla")&&void 0!==navigator.vendor&&""===navigator.vendor},qq.windows=function(){return"Win32"===navigator.platform},qq.android=function(){return-1!==navigator.userAgent.toLowerCase().indexOf("android")},qq.androidStock=function(){return qq.android()&&navigator.userAgent.toLowerCase().indexOf("chrome")<0},qq.ios6=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 6_")},qq.ios7=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 7_")},qq.ios8=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 8_")},qq.ios800=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 8_0 ")},qq.ios=function(){return-1!==navigator.userAgent.indexOf("iPad")||-1!==navigator.userAgent.indexOf("iPod")||-1!==navigator.userAgent.indexOf("iPhone")},qq.iosChrome=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf("CriOS")},qq.iosSafari=function(){return qq.ios()&&!qq.iosChrome()&&-1!==navigator.userAgent.indexOf("Safari")},qq.iosSafariWebView=function(){return qq.ios()&&!qq.iosChrome()&&!qq.iosSafari()},qq.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},qq.toElement=function(){var e=document.createElement("div");return function(t){e.innerHTML=t;var n=e.firstChild;return e.removeChild(n),n}}(),qq.each=function(e,t){var n,r;if(e)if(window.Storage&&e.constructor===window.Storage){for(n=0;n<e.length;n++)if(r=t(e.key(n),e.getItem(e.key(n))),!1===r)break}else if(qq.isArray(e)||qq.isItemList(e)||qq.isNodeList(e)){for(n=0;n<e.length;n++)if(r=t(n,e[n]),!1===r)break}else if(qq.isString(e)){for(n=0;n<e.length;n++)if(r=t(n,e.charAt(n)),!1===r)break}else for(n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&(r=t(n,e[n]),!1===r))break},qq.bind=function(e,t){if(qq.isFunction(e)){var n=Array.prototype.slice.call(arguments,2);return function(){var r=qq.extend([],n);return arguments.length&&(r=r.concat(Array.prototype.slice.call(arguments))),e.apply(t,r)}}throw new Error("first parameter must be a function!")},qq.obj2url=function(e,t,n){var r=[],i="&",o=function(e,n){var i=t?/\[\]$/.test(t)?t:t+"["+n+"]":n;"undefined"!==i&&"undefined"!==n&&r.push("object"===typeof e?qq.obj2url(e,i,!0):"[object Function]"===Object.prototype.toString.call(e)?encodeURIComponent(i)+"="+encodeURIComponent(e()):encodeURIComponent(i)+"="+encodeURIComponent(e))};return!n&&t?(i=/\?/.test(t)?/\?$/.test(t)?"":"&":"?",r.push(t),r.push(qq.obj2url(e))):"[object Array]"===Object.prototype.toString.call(e)&&"undefined"!==typeof e?qq.each(e,(function(e,t){o(t,e)})):"undefined"!==typeof e&&null!==e&&"object"===typeof e?qq.each(e,(function(e,t){o(t,e)})):r.push(encodeURIComponent(t)+"="+encodeURIComponent(e)),t?r.join(i):r.join(i).replace(/^&/,"").replace(/%20/g,"+")},qq.obj2FormData=function(e,t,n){return t||(t=new FormData),qq.each(e,(function(e,r){e=n?n+"["+e+"]":e,qq.isObject(r)?qq.obj2FormData(r,t,e):qq.isFunction(r)?t.append(e,r()):t.append(e,r)})),t},qq.obj2Inputs=function(e,t){var n;return t||(t=document.createElement("form")),qq.obj2FormData(e,{append:function(e,r){n=document.createElement("input"),n.setAttribute("name",e),n.setAttribute("value",r),t.appendChild(n)}}),t},qq.parseJson=function(json){return window.JSON&&qq.isFunction(JSON.parse)?JSON.parse(json):eval("("+json+")")},qq.getExtension=function(e){var t=e.lastIndexOf(".")+1;if(t>0)return e.substr(t,e.length-t)},qq.getFilename=function(e){return qq.isInput(e)?e.value.replace(/.*(\/|\\)/,""):qq.isFile(e)&&null!==e.fileName&&void 0!==e.fileName?e.fileName:e.name},qq.DisposeSupport=function(){var e=[];return{dispose:function(){var t;do{t=e.shift(),t&&t()}while(t)},attach:function(){var e=arguments;this.addDisposer(qq(e[0]).attach.apply(this,Array.prototype.slice.call(arguments,1)))},addDisposer:function(t){e.push(t)}}}})(),function(){"use strict";__WEBPACK_AMD_DEFINE_RESULT__=function(){return qq}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(),function(){"use strict";qq.Error=function(e){this.message="[Fine Uploader "+qq.version+"] "+e},qq.Error.prototype=new Error}(),qq.version="5.16.2",qq.supportedFeatures=function(){"use strict";var e,t,n,r,i,o,a,s,u,l,c,f,d,h,p;function m(){var e,t=!0;try{e=document.createElement("input"),e.type="file",qq(e).hide(),e.disabled&&(t=!1)}catch(n){t=!1}return t}function g(){return(qq.chrome()||qq.opera())&&void 0!==navigator.userAgent.match(/Chrome\/[1][4-9]|Chrome\/[2-9][0-9]/)}function v(){if(window.XMLHttpRequest){var e=qq.createXhrInstance();return void 0!==e.withCredentials}return!1}function y(){return void 0!==window.XDomainRequest}function b(){return!!v()||y()}function q(){return void 0!==document.createElement("input").webkitdirectory}function w(){try{return!!window.localStorage&&qq.isFunction(window.localStorage.setItem)}catch(e){return!1}}function _(){var e=document.createElement("span");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&!qq.android()&&!qq.ios()}return e=m(),r=e&&qq.isXhrUploadSupported(),t=r&&!qq.androidStock(),n=r&&_(),i=n&&function(){var e=document.createElement("input");return e.type="file",!!("webkitdirectory"in(e||document.querySelectorAll("input[type=file]")[0]))}(),o=r&&qq.isFileChunkingSupported(),a=r&&o&&w(),s=r&&g(),u=e&&(void 0!==window.postMessage||r),c=v(),l=y(),f=b(),d=q(),h=r&&void 0!==window.FileReader,p=function(){return!!r&&(!qq.androidStock()&&!qq.iosChrome())}(),{ajaxUploading:r,blobUploading:t,canDetermineSize:r,chunking:o,deleteFileCors:f,deleteFileCorsXdr:l,deleteFileCorsXhr:c,dialogElement:!!window.HTMLDialogElement,fileDrop:n,folderDrop:i,folderSelection:d,imagePreviews:h,imageValidation:h,itemSizeValidation:r,pause:o,progressBar:p,resume:a,scaling:h&&t,tiffPreviews:qq.safari(),unlimitedScaledImageSize:!qq.ios(),uploading:e,uploadCors:u,uploadCustomHeaders:r,uploadNonMultipart:r,uploadViaPaste:s}}(),qq.isGenericPromise=function(e){"use strict";return!!(e&&e.then&&qq.isFunction(e.then))},qq.Promise=function(){"use strict";var e,t,n=[],r=[],i=[],o=0;qq.extend(this,{then:function(i,a){return 0===o?(i&&n.push(i),a&&r.push(a)):-1===o?a&&a.apply(null,t):i&&i.apply(null,e),this},done:function(n){return 0===o?i.push(n):n.apply(null,void 0===t?e:t),this},success:function(){return o=1,e=arguments,n.length&&qq.each(n,(function(t,n){n.apply(null,e)})),i.length&&qq.each(i,(function(t,n){n.apply(null,e)})),this},failure:function(){return o=-1,t=arguments,r.length&&qq.each(r,(function(e,n){n.apply(null,t)})),i.length&&qq.each(i,(function(e,n){n.apply(null,t)})),this}})},qq.BlobProxy=function(e,t){"use strict";qq.extend(this,{referenceBlob:e,create:function(){return t(e)}})},qq.UploadButton=function(e){"use strict";var t,n,r=this,i=new qq.DisposeSupport,o={acceptFiles:null,element:null,focusClass:"qq-upload-button-focus",folders:!1,hoverClass:"qq-upload-button-hover",ios8BrowserCrashWorkaround:!1,multiple:!1,name:"qqfile",onChange:function(e){},title:null};function a(){var e=document.createElement("input");return e.setAttribute(qq.UploadButton.BUTTON_ID_ATTR_NAME,n),e.setAttribute("title",o.title),r.setMultiple(o.multiple,e),o.folders&&qq.supportedFeatures.folderSelection&&e.setAttribute("webkitdirectory",""),o.acceptFiles&&e.setAttribute("accept",o.acceptFiles),e.setAttribute("type","file"),e.setAttribute("name",o.name),qq(e).css({position:"absolute",right:0,top:0,fontFamily:"Arial",fontSize:qq.ie()&&!qq.ie8()?"3500px":"118px",margin:0,padding:0,cursor:"pointer",opacity:0}),!qq.ie7()&&qq(e).css({height:"100%"}),o.element.appendChild(e),i.attach(e,"change",(function(){o.onChange(e)})),i.attach(e,"mouseover",(function(){qq(o.element).addClass(o.hoverClass)})),i.attach(e,"mouseout",(function(){qq(o.element).removeClass(o.hoverClass)})),i.attach(e,"focus",(function(){qq(o.element).addClass(o.focusClass)})),i.attach(e,"blur",(function(){qq(o.element).removeClass(o.focusClass)})),e}qq.extend(o,e),n=qq.getUniqueId(),qq(o.element).css({position:"relative",overflow:"hidden",direction:"ltr"}),qq.extend(this,{getInput:function(){return t},getButtonId:function(){return n},setMultiple:function(e,t){var n=t||this.getInput();o.ios8BrowserCrashWorkaround&&qq.ios8()&&(qq.iosChrome()||qq.iosSafariWebView())||e?n.setAttribute("multiple",""):n.removeAttribute("multiple")},setAcceptFiles:function(e){e!==o.acceptFiles&&t.setAttribute("accept",e)},reset:function(){t.parentNode&&qq(t).remove(),qq(o.element).removeClass(o.focusClass),t=null,t=a()}}),t=a()},qq.UploadButton.BUTTON_ID_ATTR_NAME="qq-button-id",qq.UploadData=function(e){"use strict";var t=[],n={},r={},i={},o={};function a(e){if(qq.isArray(e)){var n=[];return qq.each(e,(function(e,r){n.push(t[r])})),n}return t[e]}function s(e){if(qq.isArray(e)){var r=[];return qq.each(e,(function(e,i){r.push(t[n[i]])})),r}return t[n[e]]}function u(e){var n=[],i=[].concat(e);return qq.each(i,(function(e,i){var o=r[i];void 0!==o&&qq.each(o,(function(e,r){n.push(t[r])}))})),n}qq.extend(this,{addFile:function(a){var s=a.status||qq.status.SUBMITTING,u=t.push({name:a.name,originalName:a.name,uuid:a.uuid,size:null==a.size?-1:a.size,status:s,file:a.file})-1;return a.batchId&&(t[u].batchId=a.batchId,void 0===o[a.batchId]&&(o[a.batchId]=[]),o[a.batchId].push(u)),a.proxyGroupId&&(t[u].proxyGroupId=a.proxyGroupId,void 0===i[a.proxyGroupId]&&(i[a.proxyGroupId]=[]),i[a.proxyGroupId].push(u)),t[u].id=u,n[a.uuid]=u,void 0===r[s]&&(r[s]=[]),r[s].push(u),a.onBeforeStatusChange&&a.onBeforeStatusChange(u),e.onStatusChange(u,null,s),u},retrieve:function(e){return qq.isObject(e)&&t.length?void 0!==e.id?a(e.id):void 0!==e.uuid?s(e.uuid):e.status?u(e.status):void 0:qq.extend([],t,!0)},removeFileRef:function(e){var t=a(e);t&&delete t.file},reset:function(){t=[],n={},r={},o={}},setStatus:function(n,i){var o=t[n].status,a=qq.indexOf(r[o],n);r[o].splice(a,1),t[n].status=i,void 0===r[i]&&(r[i]=[]),r[i].push(n),e.onStatusChange(n,o,i)},uuidChanged:function(e,r){var i=t[e].uuid;t[e].uuid=r,n[r]=e,delete n[i]},updateName:function(e,n){t[e].name=n},updateSize:function(e,n){t[e].size=n},setParentId:function(e,n){t[e].parentId=n},getIdsInProxyGroup:function(e){var n=t[e].proxyGroupId;return n?i[n]:[]},getIdsInBatch:function(e){var n=t[e].batchId;return o[n]}})},qq.status={SUBMITTING:"submitting",SUBMITTED:"submitted",REJECTED:"rejected",QUEUED:"queued",CANCELED:"canceled",PAUSED:"paused",UPLOADING:"uploading",UPLOAD_FINALIZING:"upload finalizing",UPLOAD_RETRYING:"retrying upload",UPLOAD_SUCCESSFUL:"upload successful",UPLOAD_FAILED:"upload failed",DELETE_FAILED:"delete failed",DELETING:"deleting",DELETED:"deleted"},function(){"use strict";qq.basePublicApi={addBlobs:function(e,t,n){this.addFiles(e,t,n)},addInitialFiles:function(e){var t=this;qq.each(e,(function(e,n){t._addCannedFile(n)}))},addFiles:function(e,t,n){this._maybeHandleIos8SafariWorkaround();var r=0===this._storedIds.length?qq.getUniqueId():this._currentBatchId,i=qq.bind((function(e){this._handleNewFile({blob:e,name:this._options.blobs.defaultName},r,f)}),this),o=qq.bind((function(e){this._handleNewFile(e,r,f)}),this),a=qq.bind((function(e){var t=qq.canvasToBlob(e);this._handleNewFile({blob:t,name:this._options.blobs.defaultName+".png"},r,f)}),this),s=qq.bind((function(e){var t=e.quality&&e.quality/100,n=qq.canvasToBlob(e.canvas,e.type,t);this._handleNewFile({blob:n,name:e.name},r,f)}),this),u=qq.bind((function(e){if(qq.isInput(e)&&qq.supportedFeatures.ajaxUploading){var t=Array.prototype.slice.call(e.files),n=this;qq.each(t,(function(e,t){n._handleNewFile(t,r,f)}))}else this._handleNewFile(e,r,f)}),this),l=function(){qq.isFileList(e)&&(e=Array.prototype.slice.call(e)),e=[].concat(e)},c=this,f=[];this._currentBatchId=r,e&&(l(),qq.each(e,(function(e,t){qq.isFileOrInput(t)?u(t):qq.isBlob(t)?i(t):qq.isObject(t)?t.blob&&t.name?o(t):t.canvas&&t.name&&s(t):t.tagName&&"canvas"===t.tagName.toLowerCase()?a(t):c.log(t+" is not a valid file container! Ignoring!","warn")})),this.log("Received "+f.length+" files."),this._prepareItemsForUpload(f,t,n))},cancel:function(e){var t=this._uploadData.retrieve({id:e});t&&t.status===qq.status.UPLOAD_FINALIZING?this.log(qq.format("Ignoring cancel for file ID {} ({}). Finalizing upload.",e,this.getName(e)),"error"):this._handler.cancel(e)},cancelAll:function(){var e=[],t=this;qq.extend(e,this._storedIds),qq.each(e,(function(e,n){t.cancel(n)})),this._handler.cancelAll()},clearStoredFiles:function(){this._storedIds=[]},continueUpload:function(e){var t=this._uploadData.retrieve({id:e});return!(!qq.supportedFeatures.pause||!this._options.chunking.enabled)&&(t.status===qq.status.PAUSED?(this.log(qq.format("Paused file ID {} ({}) will be continued. Not paused.",e,this.getName(e))),this._uploadFile(e),!0):(this.log(qq.format("Ignoring continue for file ID {} ({}). Not paused.",e,this.getName(e)),"error"),!1))},deleteFile:function(e){return this._onSubmitDelete(e)},doesExist:function(e){return this._handler.isValid(e)},drawThumbnail:function(e,t,n,r,i){var o,a,s=new qq.Promise;return this._imageGenerator?(o=this._thumbnailUrls[e],a={customResizeFunction:i,maxSize:n>0?n:null,scale:n>0},!r&&qq.supportedFeatures.imagePreviews&&(o=this.getFile(e)),null==o?s.failure({container:t,error:"File or URL not found."}):this._imageGenerator.generate(o,t,a).then((function(e){s.success(e)}),(function(e,t){s.failure({container:e,error:t||"Problem generating thumbnail"})}))):s.failure({container:t,error:"Missing image generator module"}),s},getButton:function(e){return this._getButton(this._buttonIdsForFileIds[e])},getEndpoint:function(e){return this._endpointStore.get(e)},getFile:function(e){var t,n=this._handler.getFile(e);return n||(t=this._uploadData.retrieve({id:e}),t&&(n=t.file)),n||null},getInProgress:function(){return this._uploadData.retrieve({status:[qq.status.UPLOADING,qq.status.UPLOAD_RETRYING,qq.status.QUEUED]}).length},getName:function(e){return this._uploadData.retrieve({id:e}).name},getParentId:function(e){var t=this.getUploads({id:e}),n=null;return t&&void 0!==t.parentId&&(n=t.parentId),n},getResumableFilesData:function(){return this._handler.getResumableFilesData()},getSize:function(e){return this._uploadData.retrieve({id:e}).size},getNetUploads:function(){return this._netUploaded},getRemainingAllowedItems:function(){var e=this._currentItemLimit;return e>0?e-this._netUploadedOrQueued:null},getUploads:function(e){return this._uploadData.retrieve(e)},getUuid:function(e){return this._uploadData.retrieve({id:e}).uuid},isResumable:function(e){return this._handler.hasResumeRecord(e)},log:function(e,t){!this._options.debug||t&&"info"!==t?t&&"info"!==t&&qq.log("[Fine Uploader "+qq.version+"] "+e,t):qq.log("[Fine Uploader "+qq.version+"] "+e)},pauseUpload:function(e){var t=this._uploadData.retrieve({id:e});if(!qq.supportedFeatures.pause||!this._options.chunking.enabled)return!1;if(qq.indexOf([qq.status.UPLOADING,qq.status.UPLOAD_RETRYING],t.status)>=0){if(this._handler.pause(e))return this._uploadData.setStatus(e,qq.status.PAUSED),!0;this.log(qq.format("Unable to pause file ID {} ({}).",e,this.getName(e)),"error")}else this.log(qq.format("Ignoring pause for file ID {} ({}). Not in progress.",e,this.getName(e)),"error");return!1},removeFileRef:function(e){this._handler.expunge(e),this._uploadData.removeFileRef(e)},reset:function(){this.log("Resetting uploader..."),this._handler.reset(),this._storedIds=[],this._autoRetries=[],this._retryTimeouts=[],this._preventRetries=[],this._thumbnailUrls=[],qq.each(this._buttons,(function(e,t){t.reset()})),this._paramsStore.reset(),this._endpointStore.reset(),this._netUploadedOrQueued=0,this._netUploaded=0,this._uploadData.reset(),this._buttonIdsForFileIds=[],this._pasteHandler&&this._pasteHandler.reset(),this._options.session.refreshOnReset&&this._refreshSessionData(),this._succeededSinceLastAllComplete=[],this._failedSinceLastAllComplete=[],this._totalProgress&&this._totalProgress.reset(),this._customResumeDataStore.reset()},retry:function(e){return this._manualRetry(e)},scaleImage:function(e,t){var n=this;return qq.Scaler.prototype.scaleImage(e,t,{log:qq.bind(n.log,n),getFile:qq.bind(n.getFile,n),uploadData:n._uploadData})},setCustomHeaders:function(e,t){this._customHeadersStore.set(e,t)},setCustomResumeData:function(e,t){this._customResumeDataStore.set(t,e)},setDeleteFileCustomHeaders:function(e,t){this._deleteFileCustomHeadersStore.set(e,t)},setDeleteFileEndpoint:function(e,t){this._deleteFileEndpointStore.set(e,t)},setDeleteFileParams:function(e,t){this._deleteFileParamsStore.set(e,t)},setEndpoint:function(e,t){this._endpointStore.set(e,t)},setForm:function(e){this._updateFormSupportAndParams(e)},setItemLimit:function(e){this._currentItemLimit=e},setName:function(e,t){this._uploadData.updateName(e,t)},setParams:function(e,t){this._paramsStore.set(e,t)},setUuid:function(e,t){return this._uploadData.uuidChanged(e,t)},setStatus:function(e,t){var n=this.getUploads({id:e});if(!n)throw new qq.Error(e+" is not a valid file ID.");switch(t){case qq.status.DELETED:this._onDeleteComplete(e,null,!1);break;case qq.status.DELETE_FAILED:this._onDeleteComplete(e,null,!0);break;default:var r="Method setStatus called on '"+name+"' not implemented yet for "+t;throw this.log(r),new qq.Error(r)}},uploadStoredFiles:function(){0===this._storedIds.length?this._itemError("noFilesError"):this._uploadStoredFiles()}},qq.basePrivateApi={_addCannedFile:function(e){var t=this;return this._uploadData.addFile({uuid:e.uuid,name:e.name,size:e.size,status:qq.status.UPLOAD_SUCCESSFUL,onBeforeStatusChange:function(n){e.deleteFileEndpoint&&t.setDeleteFileEndpoint(e.deleteFileEndpoint,n),e.deleteFileParams&&t.setDeleteFileParams(e.deleteFileParams,n),e.thumbnailUrl&&(t._thumbnailUrls[n]=e.thumbnailUrl),t._netUploaded++,t._netUploadedOrQueued++}})},_annotateWithButtonId:function(e,t){qq.isFile(e)&&(e.qqButtonId=this._getButtonId(t))},_batchError:function(e){this._options.callbacks.onError(null,null,e,void 0)},_createDeleteHandler:function(){var e=this;return new qq.DeleteFileAjaxRequester({method:this._options.deleteFile.method.toUpperCase(),maxConnections:this._options.maxConnections,uuidParamName:this._options.request.uuidName,customHeaders:this._deleteFileCustomHeadersStore,paramsStore:this._deleteFileParamsStore,endpointStore:this._deleteFileEndpointStore,cors:this._options.cors,log:qq.bind(e.log,e),onDelete:function(t){e._onDelete(t),e._options.callbacks.onDelete(t)},onDeleteComplete:function(t,n,r){e._onDeleteComplete(t,n,r),e._options.callbacks.onDeleteComplete(t,n,r)}})},_createPasteHandler:function(){var e=this;return new qq.PasteSupport({targetElement:this._options.paste.targetElement,callbacks:{log:qq.bind(e.log,e),pasteReceived:function(t){e._handleCheckedCallback({name:"onPasteReceived",callback:qq.bind(e._options.callbacks.onPasteReceived,e,t),onSuccess:qq.bind(e._handlePasteSuccess,e,t),identifier:"pasted image"})}}})},_createStore:function(e,t){var n={},r=e,i={},o=t,a=function(e){return qq.isObject(e)?qq.extend({},e):e},s=function(){return qq.isFunction(o)?o():o},u=function(e,t){o&&qq.isObject(t)&&qq.extend(t,s()),i[e]&&qq.extend(t,i[e])};return{set:function(e,t){null==t?(n={},r=a(e)):n[t]=a(e)},get:function(e){var t;return t=null!=e&&n[e]?n[e]:a(r),u(e,t),a(t)},addReadOnly:function(e,t){qq.isObject(n)&&(null===e?qq.isFunction(t)?o=t:(o=o||{},qq.extend(o,t)):(i[e]=i[e]||{},qq.extend(i[e],t)))},remove:function(e){return delete n[e]},reset:function(){n={},i={},r=e}}},_createUploadDataTracker:function(){var e=this;return new qq.UploadData({getName:function(t){return e.getName(t)},getUuid:function(t){return e.getUuid(t)},getSize:function(t){return e.getSize(t)},onStatusChange:function(t,n,r){e._onUploadStatusChange(t,n,r),e._options.callbacks.onStatusChange(t,n,r),e._maybeAllComplete(t,r),e._totalProgress&&setTimeout((function(){e._totalProgress.onStatusChange(t,n,r)}),0)}})},_createUploadButton:function(e){var t,n=this,r=e.accept||this._options.validation.acceptFiles,i=e.allowedExtensions||this._options.validation.allowedExtensions;function o(){return!!qq.supportedFeatures.ajaxUploading&&(!(n._options.workarounds.iosEmptyVideos&&qq.ios()&&!qq.ios6()&&n._isAllowedExtension(i,".mov"))&&(void 0===e.multiple?n._options.multiple:e.multiple))}return t=new qq.UploadButton({acceptFiles:r,element:e.element,focusClass:this._options.classes.buttonFocus,folders:e.folders,hoverClass:this._options.classes.buttonHover,ios8BrowserCrashWorkaround:this._options.workarounds.ios8BrowserCrash,multiple:o(),name:this._options.request.inputName,onChange:function(e){n._onInputChange(e)},title:null==e.title?this._options.text.fileInputTitle:e.title}),this._disposeSupport.addDisposer((function(){t.dispose()})),n._buttons.push(t),t},_createUploadHandler:function(e,t){var n=this,r={},i={debug:this._options.debug,maxConnections:this._options.maxConnections,cors:this._options.cors,paramsStore:this._paramsStore,endpointStore:this._endpointStore,chunking:this._options.chunking,resume:this._options.resume,blobs:this._options.blobs,log:qq.bind(n.log,n),preventRetryParam:this._options.retry.preventRetryResponseProperty,onProgress:function(e,t,i,o){i<0||o<0||(r[e]&&r[e].loaded===i&&r[e].total===o||(n._onProgress(e,t,i,o),n._options.callbacks.onProgress(e,t,i,o)),r[e]={loaded:i,total:o})},onComplete:function(e,t,i,o){delete r[e];var a,s=n.getUploads({id:e}).status;s!==qq.status.UPLOAD_SUCCESSFUL&&s!==qq.status.UPLOAD_FAILED&&(a=n._onComplete(e,t,i,o),a instanceof qq.Promise?a.done((function(){n._options.callbacks.onComplete(e,t,i,o)})):n._options.callbacks.onComplete(e,t,i,o))},onCancel:function(e,t,r){var i=new qq.Promise;return n._handleCheckedCallback({name:"onCancel",callback:qq.bind(n._options.callbacks.onCancel,n,e,t),onFailure:i.failure,onSuccess:function(){r.then((function(){n._onCancel(e,t)})),i.success()},identifier:e}),i},onUploadPrep:qq.bind(this._onUploadPrep,this),onUpload:function(e,t){n._onUpload(e,t);var r=n._options.callbacks.onUpload(e,t);return qq.isGenericPromise(r)?(n.log(qq.format("onUpload for {} returned a Promise - waiting for resolution.",e)),r):(new qq.Promise).success()},onUploadChunk:function(e,t,r){n._onUploadChunk(e,r);var i=n._options.callbacks.onUploadChunk(e,t,r);return qq.isGenericPromise(i)?(n.log(qq.format("onUploadChunk for {}.{} returned a Promise - waiting for resolution.",e,r.partIndex)),i):(new qq.Promise).success()},onUploadChunkSuccess:function(e,t,r,i){n._onUploadChunkSuccess(e,t),n._options.callbacks.onUploadChunkSuccess.apply(n,arguments)},onResume:function(e,t,r,i){return n._options.callbacks.onResume(e,t,r,i)},onAutoRetry:function(e,t,r,i){return n._onAutoRetry.apply(n,arguments)},onUuidChanged:function(e,t){n.log("Server requested UUID change from '"+n.getUuid(e)+"' to '"+t+"'"),n.setUuid(e,t)},getName:qq.bind(n.getName,n),getUuid:qq.bind(n.getUuid,n),getSize:qq.bind(n.getSize,n),setSize:qq.bind(n._setSize,n),getDataByUuid:function(e){return n.getUploads({uuid:e})},isQueued:function(e){var t=n.getUploads({id:e}).status;return t===qq.status.QUEUED||t===qq.status.SUBMITTED||t===qq.status.UPLOAD_RETRYING||t===qq.status.PAUSED},getIdsInProxyGroup:n._uploadData.getIdsInProxyGroup,getIdsInBatch:n._uploadData.getIdsInBatch,isInProgress:function(e){return n.getUploads({id:e}).status===qq.status.UPLOADING},getCustomResumeData:qq.bind(n._getCustomResumeData,n),setStatus:function(e,t){n._uploadData.setStatus(e,t)}};return qq.each(this._options.request,(function(e,t){i[e]=t})),i.customHeaders=this._customHeadersStore,e&&qq.each(e,(function(e,t){i[e]=t})),new qq.UploadHandlerController(i,t)},_fileOrBlobRejected:function(e){this._netUploadedOrQueued--,this._uploadData.setStatus(e,qq.status.REJECTED)},_formatSize:function(e){if(0===e)return e+this._options.text.sizeSymbols[0];var t=-1;do{e/=1e3,t++}while(e>999);return Math.max(e,.1).toFixed(1)+this._options.text.sizeSymbols[t]},_generateExtraButtonSpecs:function(){var e=this;this._extraButtonSpecs={},qq.each(this._options.extraButtons,(function(t,n){var r=n.multiple,i=qq.extend({},e._options.validation,!0),o=qq.extend({},n);void 0===r&&(r=e._options.multiple),o.validation&&qq.extend(i,n.validation,!0),qq.extend(o,{multiple:r,validation:i},!0),e._initExtraButton(o)}))},_getButton:function(e){var t=this._extraButtonSpecs[e];return t?t.element:e===this._defaultButtonId?this._options.button:void 0},_getButtonId:function(e){var t,n,r=e;if(r instanceof qq.BlobProxy&&(r=r.referenceBlob),r&&!qq.isBlob(r)){if(qq.isFile(r))return r.qqButtonId;if("input"===r.tagName.toLowerCase()&&"file"===r.type.toLowerCase())return r.getAttribute(qq.UploadButton.BUTTON_ID_ATTR_NAME);if(t=r.getElementsByTagName("input"),qq.each(t,(function(e,t){if("file"===t.getAttribute("type"))return n=t,!1})),n)return n.getAttribute(qq.UploadButton.BUTTON_ID_ATTR_NAME)}},_getCustomResumeData:function(e){return this._customResumeDataStore.get(e)},_getNotFinished:function(){return this._uploadData.retrieve({status:[qq.status.UPLOADING,qq.status.UPLOAD_RETRYING,qq.status.QUEUED,qq.status.SUBMITTING,qq.status.SUBMITTED,qq.status.PAUSED]}).length},_getValidationBase:function(e){var t=this._extraButtonSpecs[e];return t?t.validation:this._options.validation},_getValidationDescriptor:function(e){return e.file instanceof qq.BlobProxy?{name:qq.getFilename(e.file.referenceBlob),size:e.file.referenceBlob.size}:{name:this.getUploads({id:e.id}).name,size:this.getUploads({id:e.id}).size}},_getValidationDescriptors:function(e){var t=this,n=[];return qq.each(e,(function(e,r){n.push(t._getValidationDescriptor(r))})),n},_handleCameraAccess:function(){if(this._options.camera.ios&&qq.ios()){var e="image/*;capture=camera",t=this._options.camera.button,n=t?this._getButtonId(t):this._defaultButtonId,r=this._options;n&&n!==this._defaultButtonId&&(r=this._extraButtonSpecs[n]),r.multiple=!1,null===r.validation.acceptFiles?r.validation.acceptFiles=e:r.validation.acceptFiles+=","+e,qq.each(this._buttons,(function(e,t){if(t.getButtonId()===n)return t.setMultiple(r.multiple),t.setAcceptFiles(r.acceptFiles),!1}))}},_handleCheckedCallback:function(e){var t=this,n=e.callback();return qq.isGenericPromise(n)?(this.log(e.name+" - waiting for "+e.name+" promise to be fulfilled for "+e.identifier),n.then((function(n){t.log(e.name+" promise success for "+e.identifier),e.onSuccess(n)}),(function(){e.onFailure?(t.log(e.name+" promise failure for "+e.identifier),e.onFailure()):t.log(e.name+" promise failure for "+e.identifier)}))):(!1!==n?e.onSuccess(n):e.onFailure?(this.log(e.name+" - return value was 'false' for "+e.identifier+". Invoking failure callback."),e.onFailure()):this.log(e.name+" - return value was 'false' for "+e.identifier+". Will not proceed."),n)},_handleNewFile:function(e,t,n){var r=this,i=qq.getUniqueId(),o=-1,a=qq.getFilename(e),s=e.blob||e,u=this._customNewFileHandler?this._customNewFileHandler:qq.bind(r._handleNewFileGeneric,r);!qq.isInput(s)&&s.size>=0&&(o=s.size),u(s,a,i,o,n,t,this._options.request.uuidName,{uploadData:r._uploadData,paramsStore:r._paramsStore,addFileToHandler:function(e,t){r._handler.add(e,t),r._netUploadedOrQueued++,r._trackButton(e)}})},_handleNewFileGeneric:function(e,t,n,r,i,o){var a=this._uploadData.addFile({uuid:n,name:t,size:r,batchId:o,file:e});this._handler.add(a,e),this._trackButton(a),this._netUploadedOrQueued++,i.push({id:a,file:e})},_handlePasteSuccess:function(e,t){var n=e.type.split("/")[1],r=t;null==r&&(r=this._options.paste.defaultName),r+="."+n,this.addFiles({name:r,blob:e})},_handleDeleteSuccess:function(e){if(this.getUploads({id:e}).status!==qq.status.DELETED){var t=this.getName(e);this._netUploadedOrQueued--,this._netUploaded--,this._handler.expunge(e),this._uploadData.setStatus(e,qq.status.DELETED),this.log("Delete request for '"+t+"' has succeeded.")}},_handleDeleteFailed:function(e,t){var n=this.getName(e);this._uploadData.setStatus(e,qq.status.DELETE_FAILED),this.log("Delete request for '"+n+"' has failed.","error"),t&&void 0!==t.withCredentials?this._options.callbacks.onError(e,n,"Delete request failed with response code "+t.status,t):this._options.callbacks.onError(e,n,"Delete request failed",t)},_initExtraButton:function(e){var t=this._createUploadButton({accept:e.validation.acceptFiles,allowedExtensions:e.validation.allowedExtensions,element:e.element,folders:e.folders,multiple:e.multiple,title:e.fileInputTitle});this._extraButtonSpecs[t.getButtonId()]=e},_initFormSupportAndParams:function(){this._formSupport=qq.FormSupport&&new qq.FormSupport(this._options.form,qq.bind(this.uploadStoredFiles,this),qq.bind(this.log,this)),this._formSupport&&this._formSupport.attachedToForm?(this._paramsStore=this._createStore(this._options.request.params,this._formSupport.getFormInputsAsObject),this._options.autoUpload=this._formSupport.newAutoUpload,this._formSupport.newEndpoint&&(this._options.request.endpoint=this._formSupport.newEndpoint)):this._paramsStore=this._createStore(this._options.request.params)},_isDeletePossible:function(){return!(!qq.DeleteFileAjaxRequester||!this._options.deleteFile.enabled)&&(!this._options.cors.expected||(!!qq.supportedFeatures.deleteFileCorsXhr||!(!qq.supportedFeatures.deleteFileCorsXdr||!this._options.cors.allowXdr)))},_isAllowedExtension:function(e,t){var n=!1;return!e.length||(qq.each(e,(function(e,r){if(qq.isString(r)){var i=new RegExp("\\."+r+"$","i");if(null!=t.match(i))return n=!0,!1}})),n)},_itemError:function(e,t,n){var r,i,o=this._options.messages[e],a=[],s=[].concat(t),u=s[0],l=this._getButtonId(n),c=this._getValidationBase(l);function f(e,t){o=o.replace(e,t)}return qq.each(c.allowedExtensions,(function(e,t){qq.isString(t)&&a.push(t)})),r=a.join(", ").toLowerCase(),f("{file}",this._options.formatFileName(u)),f("{extensions}",r),f("{sizeLimit}",this._formatSize(c.sizeLimit)),f("{minSizeLimit}",this._formatSize(c.minSizeLimit)),i=o.match(/(\{\w+\})/g),null!==i&&qq.each(i,(function(e,t){f(t,s[e])})),this._options.callbacks.onError(null,u,o,void 0),o},_manualRetry:function(e,t){if(this._onBeforeManualRetry(e))return this._netUploadedOrQueued++,this._uploadData.setStatus(e,qq.status.UPLOAD_RETRYING),t?t(e):this._handler.retry(e),!0},_maybeAllComplete:function(e,t){var n=this,r=this._getNotFinished();t===qq.status.UPLOAD_SUCCESSFUL?this._succeededSinceLastAllComplete.push(e):t===qq.status.UPLOAD_FAILED&&this._failedSinceLastAllComplete.push(e),0===r&&(this._succeededSinceLastAllComplete.length||this._failedSinceLastAllComplete.length)&&setTimeout((function(){n._onAllComplete(n._succeededSinceLastAllComplete,n._failedSinceLastAllComplete)}),0)},_maybeHandleIos8SafariWorkaround:function(){var e=this;if(this._options.workarounds.ios8SafariUploads&&qq.ios800()&&qq.iosSafari())throw setTimeout((function(){window.alert(e._options.messages.unsupportedBrowserIos8Safari)}),0),new qq.Error(this._options.messages.unsupportedBrowserIos8Safari)},_maybeParseAndSendUploadError:function(e,t,n,r){if(!n.success)if(r&&200!==r.status&&!n.error)this._options.callbacks.onError(e,t,"XHR returned response code "+r.status,r);else{var i=n.error?n.error:this._options.text.defaultResponseError;this._options.callbacks.onError(e,t,i,r)}},_maybeProcessNextItemAfterOnValidateCallback:function(e,t,n,r,i){var o=this;if(t.length>n)if(e||!this._options.validation.stopOnFirstInvalidFile)setTimeout((function(){var e=o._getValidationDescriptor(t[n]),a=o._getButtonId(t[n].file),s=o._getButton(a);o._handleCheckedCallback({name:"onValidate",callback:qq.bind(o._options.callbacks.onValidate,o,e,s),onSuccess:qq.bind(o._onValidateCallbackSuccess,o,t,n,r,i),onFailure:qq.bind(o._onValidateCallbackFailure,o,t,n,r,i),identifier:"Item '"+e.name+"', size: "+e.size})}),0);else if(!e)for(;n<t.length;n++)o._fileOrBlobRejected(t[n].id)},_onAllComplete:function(e,t){this._totalProgress&&this._totalProgress.onAllComplete(e,t,this._preventRetries),this._options.callbacks.onAllComplete(qq.extend([],e),qq.extend([],t)),this._succeededSinceLastAllComplete=[],this._failedSinceLastAllComplete=[]},_onAutoRetry:function(e,t,n,r,i){var o=this;if(o._preventRetries[e]=n[o._options.retry.preventRetryResponseProperty],o._shouldAutoRetry(e)){var a=1e3*o._options.retry.autoAttemptDelay;return o._maybeParseAndSendUploadError.apply(o,arguments),o._options.callbacks.onAutoRetry(e,t,o._autoRetries[e]),o._onBeforeAutoRetry(e,t),o._uploadData.setStatus(e,qq.status.UPLOAD_RETRYING),o._retryTimeouts[e]=setTimeout((function(){o.log("Starting retry for "+t+"..."),i?i(e):o._handler.retry(e)}),a),!0}},_onBeforeAutoRetry:function(e,t){this.log("Waiting "+this._options.retry.autoAttemptDelay+" seconds before retrying "+t+"...")},_onBeforeManualRetry:function(e){var t,n=this._currentItemLimit;return this._preventRetries[e]?(this.log("Retries are forbidden for id "+e,"warn"),!1):this._handler.isValid(e)?(t=this.getName(e),!1!==this._options.callbacks.onManualRetry(e,t)&&(n>0&&this._netUploadedOrQueued+1>n?(this._itemError("retryFailTooManyItems"),!1):(this.log("Retrying upload for '"+t+"' (id: "+e+")..."),!0))):(this.log("'"+e+"' is not a valid file ID","error"),!1)},_onCancel:function(e,t){this._netUploadedOrQueued--,clearTimeout(this._retryTimeouts[e]);var n=qq.indexOf(this._storedIds,e);!this._options.autoUpload&&n>=0&&this._storedIds.splice(n,1),this._uploadData.setStatus(e,qq.status.CANCELED)},_onComplete:function(e,t,n,r){return n.success?(n.thumbnailUrl&&(this._thumbnailUrls[e]=n.thumbnailUrl),this._netUploaded++,this._uploadData.setStatus(e,qq.status.UPLOAD_SUCCESSFUL)):(this._netUploadedOrQueued--,this._uploadData.setStatus(e,qq.status.UPLOAD_FAILED),!0===n[this._options.retry.preventRetryResponseProperty]&&(this._preventRetries[e]=!0)),this._maybeParseAndSendUploadError(e,t,n,r),!!n.success},_onDelete:function(e){this._uploadData.setStatus(e,qq.status.DELETING)},_onDeleteComplete:function(e,t,n){this.getName(e);n?this._handleDeleteFailed(e,t):this._handleDeleteSuccess(e)},_onInputChange:function(e){var t;if(qq.supportedFeatures.ajaxUploading){for(t=0;t<e.files.length;t++)this._annotateWithButtonId(e.files[t],e);this.addFiles(e.files)}else e.value.length>0&&this.addFiles(e);qq.each(this._buttons,(function(e,t){t.reset()}))},_onProgress:function(e,t,n,r){this._totalProgress&&this._totalProgress.onIndividualProgress(e,n,r)},_onSubmit:function(e,t){},_onSubmitCallbackSuccess:function(e,t){this._onSubmit.apply(this,arguments),this._uploadData.setStatus(e,qq.status.SUBMITTED),this._onSubmitted.apply(this,arguments),this._options.autoUpload?(this._options.callbacks.onSubmitted.apply(this,arguments),this._uploadFile(e)):(this._storeForLater(e),this._options.callbacks.onSubmitted.apply(this,arguments))},_onSubmitDelete:function(e,t,n){var r,i=this.getUuid(e);return t&&(r=qq.bind(t,this,e,i,n)),this._isDeletePossible()?(this._handleCheckedCallback({name:"onSubmitDelete",callback:qq.bind(this._options.callbacks.onSubmitDelete,this,e),onSuccess:r||qq.bind(this._deleteHandler.sendDelete,this,e,i,n),identifier:e}),!0):(this.log("Delete request ignored for ID "+e+", delete feature is disabled or request not possible due to CORS on a user agent that does not support pre-flighting.","warn"),!1)},_onSubmitted:function(e){},_onTotalProgress:function(e,t){this._options.callbacks.onTotalProgress(e,t)},_onUploadPrep:function(e){},_onUpload:function(e,t){this._uploadData.setStatus(e,qq.status.UPLOADING)},_onUploadChunk:function(e,t){},_onUploadChunkSuccess:function(e,t){!this._preventRetries[e]&&this._options.retry.enableAuto&&(this._autoRetries[e]=0)},_onUploadStatusChange:function(e,t,n){n===qq.status.PAUSED&&clearTimeout(this._retryTimeouts[e])},_onValidateBatchCallbackFailure:function(e){var t=this;qq.each(e,(function(e,n){t._fileOrBlobRejected(n.id)}))},_onValidateBatchCallbackSuccess:function(e,t,n,r,i){var o,a=this._currentItemLimit,s=this._netUploadedOrQueued;0===a||s<=a?t.length>0?this._handleCheckedCallback({name:"onValidate",callback:qq.bind(this._options.callbacks.onValidate,this,e[0],i),onSuccess:qq.bind(this._onValidateCallbackSuccess,this,t,0,n,r),onFailure:qq.bind(this._onValidateCallbackFailure,this,t,0,n,r),identifier:"Item '"+t[0].file.name+"', size: "+t[0].file.size}):this._itemError("noFilesError"):(this._onValidateBatchCallbackFailure(t),o=this._options.messages.tooManyItemsError.replace(/\{netItems\}/g,s).replace(/\{itemLimit\}/g,a),this._batchError(o))},_onValidateCallbackFailure:function(e,t,n,r){var i=t+1;this._fileOrBlobRejected(e[t].id,e[t].file.name),this._maybeProcessNextItemAfterOnValidateCallback(!1,e,i,n,r)},_onValidateCallbackSuccess:function(e,t,n,r){var i=this,o=t+1,a=this._getValidationDescriptor(e[t]);this._validateFileOrBlobData(e[t],a).then((function(){i._upload(e[t].id,n,r),i._maybeProcessNextItemAfterOnValidateCallback(!0,e,o,n,r)}),(function(){i._maybeProcessNextItemAfterOnValidateCallback(!1,e,o,n,r)}))},_prepareItemsForUpload:function(e,t,n){if(0!==e.length){var r=this._getValidationDescriptors(e),i=this._getButtonId(e[0].file),o=this._getButton(i);this._handleCheckedCallback({name:"onValidateBatch",callback:qq.bind(this._options.callbacks.onValidateBatch,this,r,o),onSuccess:qq.bind(this._onValidateBatchCallbackSuccess,this,r,e,t,n,o),onFailure:qq.bind(this._onValidateBatchCallbackFailure,this,e),identifier:"batch validation"})}else this._itemError("noFilesError")},_preventLeaveInProgress:function(){var e=this;this._disposeSupport.attach(window,"beforeunload",(function(t){if(e.getInProgress())return t=t||window.event,t.returnValue=e._options.messages.onLeave,e._options.messages.onLeave}))},_refreshSessionData:function(){var e=this,t=this._options.session;qq.Session&&null!=this._options.session.endpoint&&(this._session||(qq.extend(t,{cors:this._options.cors}),t.log=qq.bind(this.log,this),t.addFileRecord=qq.bind(this._addCannedFile,this),this._session=new qq.Session(t)),setTimeout((function(){e._session.refresh().then((function(t,n){e._sessionRequestComplete(),e._options.callbacks.onSessionRequestComplete(t,!0,n)}),(function(t,n){e._options.callbacks.onSessionRequestComplete(t,!1,n)}))}),0))},_sessionRequestComplete:function(){},_setSize:function(e,t){this._uploadData.updateSize(e,t),this._totalProgress&&this._totalProgress.onNewSize(e)},_shouldAutoRetry:function(e){var t=this._uploadData.retrieve({id:e});return!!(!this._preventRetries[e]&&this._options.retry.enableAuto&&t.status!==qq.status.PAUSED&&(void 0===this._autoRetries[e]&&(this._autoRetries[e]=0),this._autoRetries[e]<this._options.retry.maxAutoAttempts))&&(this._autoRetries[e]+=1,!0)},_storeForLater:function(e){this._storedIds.push(e)},_trackButton:function(e){var t;t=qq.supportedFeatures.ajaxUploading?this._handler.getFile(e).qqButtonId:this._getButtonId(this._handler.getInput(e)),t&&(this._buttonIdsForFileIds[e]=t)},_updateFormSupportAndParams:function(e){this._options.form.element=e,this._formSupport=qq.FormSupport&&new qq.FormSupport(this._options.form,qq.bind(this.uploadStoredFiles,this),qq.bind(this.log,this)),this._formSupport&&this._formSupport.attachedToForm&&(this._paramsStore.addReadOnly(null,this._formSupport.getFormInputsAsObject),this._options.autoUpload=this._formSupport.newAutoUpload,this._formSupport.newEndpoint&&this.setEndpoint(this._formSupport.newEndpoint))},_upload:function(e,t,n){var r=this.getName(e);t&&this.setParams(t,e),n&&this.setEndpoint(n,e),this._handleCheckedCallback({name:"onSubmit",callback:qq.bind(this._options.callbacks.onSubmit,this,e,r),onSuccess:qq.bind(this._onSubmitCallbackSuccess,this,e,r),onFailure:qq.bind(this._fileOrBlobRejected,this,e,r),identifier:e})},_uploadFile:function(e){this._handler.upload(e)||this._uploadData.setStatus(e,qq.status.QUEUED)},_uploadStoredFiles:function(){var e,t,n=this;while(this._storedIds.length)e=this._storedIds.shift(),this._uploadFile(e);t=this.getUploads({status:qq.status.SUBMITTING}).length,t&&(qq.log("Still waiting for "+t+" files to clear submit queue. Will re-parse stored IDs array shortly."),setTimeout((function(){n._uploadStoredFiles()}),1e3))},_validateFileOrBlobData:function(e,t){var n=this,r=function(){return e.file instanceof qq.BlobProxy?e.file.referenceBlob:e.file}(),i=t.name,o=t.size,a=this._getButtonId(e.file),s=this._getValidationBase(a),u=new qq.Promise;return u.then((function(){}),(function(){n._fileOrBlobRejected(e.id,i)})),qq.isFileOrInput(r)&&!this._isAllowedExtension(s.allowedExtensions,i)?(this._itemError("typeError",i,r),u.failure()):this._options.validation.allowEmpty||0!==o?o>0&&s.sizeLimit&&o>s.sizeLimit?(this._itemError("sizeError",i,r),u.failure()):o>0&&o<s.minSizeLimit?(this._itemError("minSizeError",i,r),u.failure()):(qq.ImageValidation&&qq.supportedFeatures.imagePreviews&&qq.isFile(r)?new qq.ImageValidation(r,qq.bind(n.log,n)).validate(s.image).then(u.success,(function(e){n._itemError(e+"ImageError",i,r),u.failure()})):u.success(),u):(this._itemError("emptyError",i,r),u.failure())},_wrapCallbacks:function(){var e,t,n;for(n in e=this,t=function(t,n,r){var i;try{return n.apply(e,r)}catch(o){i=o.message||o.toString(),e.log("Caught exception in '"+t+"' callback - "+i,"error")}},this._options.callbacks)(function(){var r,i;r=n,i=e._options.callbacks[r],e._options.callbacks[r]=function(){return t(r,i,arguments)}})()}}}(),function(){"use strict";qq.FineUploaderBasic=function(e){var t=this;this._options={debug:!1,button:null,multiple:!0,maxConnections:3,disableCancelForFormUploads:!1,autoUpload:!0,warnBeforeUnload:!0,request:{customHeaders:{},endpoint:"/server/upload",filenameParam:"qqfilename",forceMultipart:!0,inputName:"qqfile",method:"POST",omitDefaultParams:!1,params:{},paramsInBody:!0,requireSuccessJson:!0,totalFileSizeName:"qqtotalfilesize",uuidName:"qquuid"},validation:{allowedExtensions:[],sizeLimit:0,minSizeLimit:0,itemLimit:0,stopOnFirstInvalidFile:!0,acceptFiles:null,image:{maxHeight:0,maxWidth:0,minHeight:0,minWidth:0},allowEmpty:!1},callbacks:{onSubmit:function(e,t){},onSubmitted:function(e,t){},onComplete:function(e,t,n,r){},onAllComplete:function(e,t){},onCancel:function(e,t){},onUpload:function(e,t){},onUploadChunk:function(e,t,n){},onUploadChunkSuccess:function(e,t,n,r){},onResume:function(e,t,n,r){},onProgress:function(e,t,n,r){},onTotalProgress:function(e,t){},onError:function(e,t,n,r){},onAutoRetry:function(e,t,n){},onManualRetry:function(e,t){},onValidateBatch:function(e){},onValidate:function(e){},onSubmitDelete:function(e){},onDelete:function(e){},onDeleteComplete:function(e,t,n){},onPasteReceived:function(e){},onStatusChange:function(e,t,n){},onSessionRequestComplete:function(e,t,n){}},messages:{typeError:"{file} has an invalid extension. Valid extension(s): {extensions}.",sizeError:"{file} is too large, maximum file size is {sizeLimit}.",minSizeError:"{file} is too small, minimum file size is {minSizeLimit}.",emptyError:"{file} is empty, please select files again without it.",noFilesError:"No files to upload.",tooManyItemsError:"Too many items ({netItems}) would be uploaded. Item limit is {itemLimit}.",maxHeightImageError:"Image is too tall.",maxWidthImageError:"Image is too wide.",minHeightImageError:"Image is not tall enough.",minWidthImageError:"Image is not wide enough.",retryFailTooManyItems:"Retry failed - you have reached your file limit.",onLeave:"The files are being uploaded, if you leave now the upload will be canceled.",unsupportedBrowserIos8Safari:"Unrecoverable error - this browser does not permit file uploading of any kind due to serious bugs in iOS8 Safari. Please use iOS8 Chrome until Apple fixes these issues."},retry:{enableAuto:!1,maxAutoAttempts:3,autoAttemptDelay:5,preventRetryResponseProperty:"preventRetry"},classes:{buttonHover:"qq-upload-button-hover",buttonFocus:"qq-upload-button-focus"},chunking:{enabled:!1,concurrent:{enabled:!1},mandatory:!1,paramNames:{partIndex:"qqpartindex",partByteOffset:"qqpartbyteoffset",chunkSize:"qqchunksize",totalFileSize:"qqtotalfilesize",totalParts:"qqtotalparts"},partSize:function(e){return 2e6},success:{endpoint:null,headers:function(e){return null},jsonPayload:!1,method:"POST",params:function(e){return null},resetOnStatus:[]}},resume:{enabled:!1,recordsExpireIn:7,paramNames:{resuming:"qqresume"},customKeys:function(e){return[]}},formatFileName:function(e){return e},text:{defaultResponseError:"Upload failure reason unknown",fileInputTitle:"file input",sizeSymbols:["kB","MB","GB","TB","PB","EB"]},deleteFile:{enabled:!1,method:"DELETE",endpoint:"/server/upload",customHeaders:{},params:{}},cors:{expected:!1,sendCredentials:!1,allowXdr:!1},blobs:{defaultName:"misc_data"},paste:{targetElement:null,defaultName:"pasted_image"},camera:{ios:!1,button:null},extraButtons:[],session:{endpoint:null,params:{},customHeaders:{},refreshOnReset:!0},form:{element:"qq-form",autoUpload:!1,interceptSubmit:!0},scaling:{customResizer:null,sendOriginal:!0,orient:!0,defaultType:null,defaultQuality:80,failureText:"Failed to scale",includeExif:!1,sizes:[]},workarounds:{iosEmptyVideos:!0,ios8SafariUploads:!0,ios8BrowserCrash:!1}},qq.extend(this._options,e,!0),this._buttons=[],this._extraButtonSpecs={},this._buttonIdsForFileIds=[],this._wrapCallbacks(),this._disposeSupport=new qq.DisposeSupport,this._storedIds=[],this._autoRetries=[],this._retryTimeouts=[],this._preventRetries=[],this._thumbnailUrls=[],this._netUploadedOrQueued=0,this._netUploaded=0,this._uploadData=this._createUploadDataTracker(),this._initFormSupportAndParams(),this._customHeadersStore=this._createStore(this._options.request.customHeaders),this._deleteFileCustomHeadersStore=this._createStore(this._options.deleteFile.customHeaders),this._deleteFileParamsStore=this._createStore(this._options.deleteFile.params),this._endpointStore=this._createStore(this._options.request.endpoint),this._deleteFileEndpointStore=this._createStore(this._options.deleteFile.endpoint),this._handler=this._createUploadHandler(),this._deleteHandler=qq.DeleteFileAjaxRequester&&this._createDeleteHandler(),this._options.button&&(this._defaultButtonId=this._createUploadButton({element:this._options.button,title:this._options.text.fileInputTitle}).getButtonId()),this._generateExtraButtonSpecs(),this._handleCameraAccess(),this._options.paste.targetElement&&(qq.PasteSupport?this._pasteHandler=this._createPasteHandler():this.log("Paste support module not found","error")),this._options.warnBeforeUnload&&this._preventLeaveInProgress(),this._imageGenerator=qq.ImageGenerator&&new qq.ImageGenerator(qq.bind(this.log,this)),this._refreshSessionData(),this._succeededSinceLastAllComplete=[],this._failedSinceLastAllComplete=[],this._scaler=qq.Scaler&&new qq.Scaler(this._options.scaling,qq.bind(this.log,this))||{},this._scaler.enabled&&(this._customNewFileHandler=qq.bind(this._scaler.handleNewFile,this._scaler)),qq.TotalProgress&&qq.supportedFeatures.progressBar&&(this._totalProgress=new qq.TotalProgress(qq.bind(this._onTotalProgress,this),(function(e){var n=t._uploadData.retrieve({id:e});return n&&n.size||0}))),this._currentItemLimit=this._options.validation.itemLimit,this._customResumeDataStore=this._createStore()},qq.FineUploaderBasic.prototype=qq.basePublicApi,qq.extend(qq.FineUploaderBasic.prototype,qq.basePrivateApi)}(),qq.AjaxRequester=function(e){"use strict";var t,n,r=[],i={},o={acceptHeader:null,validMethods:["PATCH","POST","PUT"],method:"POST",contentType:"application/x-www-form-urlencoded",maxConnections:3,customHeaders:{},endpointStore:{},paramsStore:{},mandatedParams:{},allowXRequestedWithAndCacheControl:!0,successfulResponseCodes:{DELETE:[200,202,204],PATCH:[200,201,202,203,204],POST:[200,201,202,203,204],PUT:[200,201,202,203,204],GET:[200]},cors:{expected:!1,sendCredentials:!1},log:function(e,t){},onSend:function(e){},onComplete:function(e,t,n){},onProgress:null};if(qq.extend(o,e),t=o.log,qq.indexOf(o.validMethods,o.method)<0)throw new Error("'"+o.method+"' is not a supported method for this type of request!");function a(){return qq.indexOf(["GET","POST","HEAD"],o.method)>=0}function s(e){var t=!1;return qq.each(t,(function(e,n){if(qq.indexOf(["Accept","Accept-Language","Content-Language","Content-Type"],n)<0)return t=!0,!1})),t}function u(e){return o.cors.expected&&void 0===e.withCredentials}function l(){var e;return(window.XMLHttpRequest||window.ActiveXObject)&&(e=qq.createXhrInstance(),void 0===e.withCredentials&&(e=new XDomainRequest,e.onload=function(){},e.onerror=function(){},e.ontimeout=function(){},e.onprogress=function(){})),e}function c(e,t){var n=i[e]&&i[e].xhr;return n||(n=t||(o.cors.expected?l():qq.createXhrInstance()),i[e].xhr=n),n}function f(e){var t,n=qq.indexOf(r,e),a=o.maxConnections;delete i[e],r.splice(n,1),r.length>=a&&n<a&&(t=r[a-1],p(t))}function d(e,n){var r=c(e),i=o.method,a=!0===n;f(e),a?t(i+" request for "+e+" has failed","error"):u(r)||w(r.status)||(a=!0,t(i+" request for "+e+" has failed - response code "+r.status,"error")),o.onComplete(e,r,a)}function h(e){var t,n=i[e].additionalParams,r=o.mandatedParams;return o.paramsStore.get&&(t=o.paramsStore.get(e)),n&&qq.each(n,(function(e,n){t=t||{},t[e]=n})),r&&qq.each(r,(function(e,n){t=t||{},t[e]=n})),t}function p(e,r){var a,s=c(e,r),l=o.method,f=h(e),d=i[e].payload;return o.onSend(e),a=m(e,f,i[e].additionalQueryParams),u(s)?(s.onload=y(e),s.onerror=b(e)):s.onreadystatechange=g(e),v(e),s.open(l,a,!0),o.cors.expected&&o.cors.sendCredentials&&!u(s)&&(s.withCredentials=!0),q(e),t("Sending "+l+" request for "+e),d?s.send(d):n||!f?s.send():f&&o.contentType&&o.contentType.toLowerCase().indexOf("application/x-www-form-urlencoded")>=0?s.send(qq.obj2url(f,"")):f&&o.contentType&&o.contentType.toLowerCase().indexOf("application/json")>=0?s.send(JSON.stringify(f)):s.send(f),s}function m(e,t,r){var a=o.endpointStore.get(e),s=i[e].addToPath;return void 0!=s&&(a+="/"+s),n&&t&&(a=qq.obj2url(t,a)),r&&(a=qq.obj2url(r,a)),a}function g(e){return function(){4===c(e).readyState&&d(e)}}function v(e){var t=o.onProgress;t&&(c(e).upload.onprogress=function(n){n.lengthComputable&&t(e,n.loaded,n.total)})}function y(e){return function(){d(e)}}function b(e){return function(){d(e,!0)}}function q(e){var t=c(e),n=o.customHeaders,r=i[e].additionalHeaders||{},l=o.method,f={};u(t)||(o.acceptHeader&&t.setRequestHeader("Accept",o.acceptHeader),o.allowXRequestedWithAndCacheControl&&(o.cors.expected&&a()&&!s(n)||(t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.setRequestHeader("Cache-Control","no-cache"))),!o.contentType||"POST"!==l&&"PUT"!==l||t.setRequestHeader("Content-Type",o.contentType),qq.extend(f,qq.isFunction(n)?n(e):n),qq.extend(f,r),qq.each(f,(function(e,n){t.setRequestHeader(e,n)})))}function w(e){return qq.indexOf(o.successfulResponseCodes[o.method],e)>=0}function _(e,t,n,a,s,u,l){i[e]={addToPath:n,additionalParams:a,additionalQueryParams:s,additionalHeaders:u,payload:l};var c=r.push(e);if(c<=o.maxConnections)return p(e,t)}n="GET"===o.method||"DELETE"===o.method,qq.extend(this,{initTransport:function(e){var t,n,r,i,a,s;return{withPath:function(e){return t=e,this},withParams:function(e){return n=e,this},withQueryParams:function(e){return s=e,this},withHeaders:function(e){return r=e,this},withPayload:function(e){return i=e,this},withCacheBuster:function(){return a=!0,this},send:function(u){return a&&qq.indexOf(["GET","DELETE"],o.method)>=0&&(n.qqtimestamp=(new Date).getTime()),_(e,u,t,n,s,r,i)}}},canceled:function(e){f(e)}})},qq.UploadHandler=function(e){"use strict";var t=e.proxy,n={},r=t.onCancel,i=t.getName;qq.extend(this,{add:function(e,t){n[e]=t,n[e].temp={}},cancel:function(e){var t=this,o=new qq.Promise,a=r(e,i(e),o);a.then((function(){t.isValid(e)&&(n[e].canceled=!0,t.expunge(e)),o.success()}))},expunge:function(e){delete n[e]},getThirdPartyFileId:function(e){return n[e].key},isValid:function(e){return void 0!==n[e]},reset:function(){n={}},_getFileState:function(e){return n[e]},_setThirdPartyFileId:function(e,t){n[e].key=t},_wasCanceled:function(e){return!!n[e].canceled}})},qq.UploadHandlerController=function(e,t){"use strict";var n,r,i,o=this,a=!1,s=!1,u={paramsStore:{},maxConnections:3,chunking:{enabled:!1,multiple:{enabled:!1}},log:function(e,t){},onProgress:function(e,t,n,r){},onComplete:function(e,t,n,r){},onCancel:function(e,t){},onUploadPrep:function(e){},onUpload:function(e,t){},onUploadChunk:function(e,t,n){},onUploadChunkSuccess:function(e,t,n,r){},onAutoRetry:function(e,t,n,r){},onResume:function(e,t,n,r){},onUuidChanged:function(e,t){},getName:function(e){},setSize:function(e,t){},isQueued:function(e){},getIdsInProxyGroup:function(e){},getIdsInBatch:function(e){},isInProgress:function(e){}},l={done:function(e,t,n,r){var o=i._getChunkData(e,t);i._getFileState(e).attemptingResume=!1,delete i._getFileState(e).temp.chunkProgress[t],i._getFileState(e).loaded+=o.size,u.onUploadChunkSuccess(e,i._getChunkDataForCallback(o),n,r)},finalize:function(e){var t=u.getSize(e),n=u.getName(e);r("All chunks have been uploaded for "+e+" - finalizing...."),i.finalizeChunks(e).then((function(o,a){r("Finalize successful for "+e);var s=d.normalizeResponse(o,!0);u.onProgress(e,n,t,t),i._maybeDeletePersistedChunkData(e),d.cleanup(e,s,a)}),(function(t,i){var o=d.normalizeResponse(t,!1);r("Problem finalizing chunks for file ID "+e+" - "+o.error,"error"),(o.reset||i&&u.chunking.success.resetOnStatus.indexOf(i.status)>=0)&&l.reset(e),u.onAutoRetry(e,n,o,i)||d.cleanup(e,o,i)}))},handleFailure:function(e,t,n,o){var a=u.getName(t);r("Chunked upload request failed for "+t+", chunk "+e),i.clearCachedChunk(t,e);var f,h=d.normalizeResponse(n,!1);if(h.reset)l.reset(t);else{var p=i._getFileState(t).chunking.inProgress;f=p?qq.indexOf(p,e):-1,f>=0&&(i._getFileState(t).chunking.inProgress.splice(f,1),i._getFileState(t).chunking.remaining.unshift(e))}i._getFileState(t).temp.ignoreFailure||(s&&(i._getFileState(t).temp.ignoreFailure=!0,r(qq.format("Going to attempt to abort these chunks: {}. These are currently in-progress: {}.",JSON.stringify(Object.keys(i._getXhrs(t))),JSON.stringify(i._getFileState(t).chunking.inProgress))),qq.each(i._getXhrs(t),(function(e,n){r(qq.format("Attempting to abort file {}.{}. XHR readyState {}. ",t,e,n.readyState)),n.abort(),n._cancelled=!0})),i.moveInProgressToRemaining(t),c.free(t,!0)),u.onAutoRetry(t,a,h,o)||d.cleanup(t,h,o))},hasMoreParts:function(e){return!!i._getFileState(e).chunking.remaining.length},nextPart:function(e){var t=i._getFileState(e).chunking.remaining.shift();return t>=i._getTotalChunks(e)&&(t=null),t},reset:function(e){r("Server or callback has ordered chunking effort to be restarted on next attempt for item ID "+e,"error"),i._maybeDeletePersistedChunkData(e),i.reevaluateChunking(e),i._getFileState(e).loaded=0,i._getFileState(e).attemptingResume=!1},sendNext:function(e){var t=u.getSize(e),n=u.getName(e),o=l.nextPart(e),a=i._getChunkData(e,o),f=i._getFileState(e),h=f.attemptingResume,p=f.chunking.inProgress||[];if(null==f.loaded&&(f.loaded=0),h&&!1===u.onResume(e,n,a,f.customResumeData)&&(l.reset(e),o=l.nextPart(e),a=i._getChunkData(e,o),h=!1),null==o&&0===p.length)l.finalize(e);else{p.push(o),i._getFileState(e).chunking.inProgress=p,s&&c.open(e,o),s&&c.available()&&i._getFileState(e).chunking.remaining.length&&l.sendNext(e),0===a.blob.size&&(r(qq.format("Chunk {} for file {} will not be uploaded, zero sized chunk.",o,e),"error"),l.handleFailure(o,e,"File is no longer available",null));var m=u.onUploadChunk(e,n,i._getChunkDataForCallback(a));m.then((function(n){if(u.isInProgress(e)){r(qq.format("Sending chunked upload request for item {}.{}, bytes {}-{} of {}.",e,o,a.start+1,a.end,t));var s={chunkIdx:o,id:e,overrides:n,resuming:h};i.uploadChunk(s).then((function(t,n){r("Chunked upload request succeeded for "+e+", chunk "+o),i.clearCachedChunk(e,o);var a=i._getFileState(e).chunking.inProgress||[],s=d.normalizeResponse(t,!0),u=qq.indexOf(a,o);r(qq.format("Chunk {} for file {} uploaded successfully.",o,e)),l.done(e,o,s,n),u>=0&&a.splice(u,1),i._maybePersistChunkedState(e),l.hasMoreParts(e)||0!==a.length?l.hasMoreParts(e)?l.sendNext(e):r(qq.format("File ID {} has no more chunks to send and these chunk indexes are still marked as in-progress: {}",e,JSON.stringify(a))):l.finalize(e)}),(function(t,n){l.handleFailure(o,e,t,n)})).done((function(){i.clearXhr(e,o)}))}else r(qq.format("Not sending chunked upload request for item {}.{} - no longer in progress.",e,o))}),(function(t){l.handleFailure(o,e,t,null)}))}}},c={_open:[],_openChunks:{},_waiting:[],available:function(){var e=u.maxConnections,t=0,n=0;return qq.each(c._openChunks,(function(e,r){t++,n+=r.length})),e-(c._open.length-t+n)},free:function(e,t){var n,o=!t,a=qq.indexOf(c._waiting,e),s=qq.indexOf(c._open,e);delete c._openChunks[e],d.getProxyOrBlob(e)instanceof qq.BlobProxy&&(r("Generated blob upload has ended for "+e+", disposing generated blob."),delete i._getFileState(e).file),a>=0?c._waiting.splice(a,1):o&&s>=0&&(c._open.splice(s,1),n=c._waiting.shift(),n>=0&&(c._open.push(n),d.start(n)))},getWaitingOrConnected:function(){var e=[];return qq.each(c._openChunks,(function(t,n){n&&n.length&&e.push(parseInt(t))})),qq.each(c._open,(function(t,n){c._openChunks[n]||e.push(parseInt(n))})),e=e.concat(c._waiting),e},isUsingConnection:function(e){return qq.indexOf(c._open,e)>=0},open:function(e,t){return null==t&&c._waiting.push(e),!!c.available()&&(null==t?(c._waiting.pop(),c._open.push(e)):function(){var n=c._openChunks[e]||[];n.push(t),c._openChunks[e]=n}(),!0)},reset:function(){c._waiting=[],c._open=[]}},f={send:function(e,t){var n=i._getFileState(e);n?(n.loaded=0,r("Sending simple upload request for "+e),i.uploadFile(e).then((function(n,i){r("Simple upload request succeeded for "+e);var o=d.normalizeResponse(n,!0),a=u.getSize(e);u.onProgress(e,t,a,a),d.maybeNewUuid(e,o),d.cleanup(e,o,i)}),(function(n,i){r("Simple upload request failed for "+e);var o=d.normalizeResponse(n,!1);u.onAutoRetry(e,t,o,i)||d.cleanup(e,o,i)}))):r("Ignoring send request as this upload may have been cancelled, File ID "+e,"warn")}},d={cancel:function(e){r("Cancelling "+e),u.paramsStore.remove(e),c.free(e)},cleanup:function(e,t,n){var r=u.getName(e);u.onComplete(e,r,t,n),i._getFileState(e)&&i._clearXhrs&&i._clearXhrs(e),c.free(e)},getProxyOrBlob:function(e){return i.getProxy&&i.getProxy(e)||i.getFile&&i.getFile(e)},initHandler:function(){var e=t?qq[t]:qq.traditional,n=qq.supportedFeatures.ajaxUploading?"Xhr":"Form";i=new e[n+"UploadHandler"](u,{getCustomResumeData:u.getCustomResumeData,getDataByUuid:u.getDataByUuid,getName:u.getName,getSize:u.getSize,getUuid:u.getUuid,log:r,onCancel:u.onCancel,onProgress:u.onProgress,onUuidChanged:u.onUuidChanged,onFinalizing:function(e){u.setStatus(e,qq.status.UPLOAD_FINALIZING)}}),i._removeExpiredChunkingRecords&&i._removeExpiredChunkingRecords()},isDeferredEligibleForUpload:function(e){return u.isQueued(e)},maybeDefer:function(e,t){return t&&!i.getFile(e)&&t instanceof qq.BlobProxy?(u.onUploadPrep(e),r("Attempting to generate a blob on-demand for "+e),t.create().then((function(t){r("Generated an on-demand blob for "+e),i.updateBlob(e,t),u.setSize(e,t.size),i.reevaluateChunking(e),d.maybeSendDeferredFiles(e)}),(function(t){var i={};t&&(i.error=t),r(qq.format("Failed to generate blob for ID {}. Error message: {}.",e,t),"error"),u.onComplete(e,u.getName(e),qq.extend(i,n),null),d.maybeSendDeferredFiles(e),c.free(e)})),!1):d.maybeSendDeferredFiles(e)},maybeSendDeferredFiles:function(e){var t=u.getIdsInProxyGroup(e),n=!1;return t&&t.length?(r("Maybe ready to upload proxy group file "+e),qq.each(t,(function(t,r){if(d.isDeferredEligibleForUpload(r)&&i.getFile(r))n=r===e,d.now(r);else if(d.isDeferredEligibleForUpload(r))return!1}))):(n=!0,d.now(e)),n},maybeNewUuid:function(e,t){void 0!==t.newUuid&&u.onUuidChanged(e,t.newUuid)},normalizeResponse:function(e,t){var n=e;return qq.isObject(e)||(n={},qq.isString(e)&&!t&&(n.error=e)),n.success=t,n},now:function(e){var t=u.getName(e);if(!o.isValid(e))throw new qq.Error(e+" is not a valid file ID to upload!");u.onUpload(e,t).then((function(n){n&&n.pause?(u.setStatus(e,qq.status.PAUSED),i.pause(e),c.free(e)):a&&i._shouldChunkThisFile(e)?l.sendNext(e):f.send(e,t)}),(function(n){if(n=n||{},r(e+" upload start aborted due to rejected onUpload Promise - details: "+n,"error"),!u.onAutoRetry(e,t,n.responseJSON||{})){var i=d.normalizeResponse(n.responseJSON,!1);d.cleanup(e,i)}}))},start:function(e){var t=d.getProxyOrBlob(e);return t?d.maybeDefer(e,t):(d.now(e),!0)}};qq.extend(this,{add:function(e,t){i.add.apply(this,arguments)},upload:function(e){return!!c.open(e)&&d.start(e)},retry:function(e){return s&&(i._getFileState(e).temp.ignoreFailure=!1),c.isUsingConnection(e)?d.start(e):o.upload(e)},cancel:function(e){var t=i.cancel(e);qq.isGenericPromise(t)?t.then((function(){d.cancel(e)})):!1!==t&&d.cancel(e)},cancelAll:function(){var e,t=c.getWaitingOrConnected();if(t.length)for(e=t.length-1;e>=0;e--)o.cancel(t[e]);c.reset()},getFile:function(e){return i.getProxy&&i.getProxy(e)?i.getProxy(e).referenceBlob:i.getFile&&i.getFile(e)},isProxied:function(e){return!(!i.getProxy||!i.getProxy(e))},getInput:function(e){if(i.getInput)return i.getInput(e)},reset:function(){r("Resetting upload handler"),o.cancelAll(),c.reset(),i.reset()},expunge:function(e){if(o.isValid(e))return i.expunge(e)},isValid:function(e){return i.isValid(e)},hasResumeRecord:function(e){var t=i.isValid(e)&&i._getLocalStorageId&&i._getLocalStorageId(e);return!!t&&!!localStorage.getItem(t)},getResumableFilesData:function(){return i.getResumableFilesData?i.getResumableFilesData():[]},getThirdPartyFileId:function(e){if(o.isValid(e))return i.getThirdPartyFileId(e)},pause:function(e){return!!(o.isResumable(e)&&i.pause&&o.isValid(e)&&i.pause(e))&&(c.free(e),i.moveInProgressToRemaining(e),!0)},isAttemptingResume:function(e){return!!i.isAttemptingResume&&i.isAttemptingResume(e)},isResumable:function(e){return!!i.isResumable&&i.isResumable(e)}}),qq.extend(u,e),r=u.log,a=u.chunking.enabled&&qq.supportedFeatures.chunking,s=a&&u.chunking.concurrent.enabled,n=function(){var e={};return e[u.preventRetryParam]=!0,e}(),d.initHandler()},qq.WindowReceiveMessage=function(e){"use strict";var t={log:function(e,t){}},n={};qq.extend(t,e),qq.extend(this,{receiveMessage:function(e,t){var r=function(e){t(e.data)};window.postMessage?n[e]=qq(window).attach("message",r):log("iframe message passing not supported in this browser!","error")},stopReceivingMessages:function(e){if(window.postMessage){var t=n[e];t&&t()}}})},qq.FormUploadHandler=function(e){"use strict";var t=e.options,n=this,r=e.proxy,i=qq.getUniqueId(),o={},a={},s={},u=t.isCors,l=t.inputName,c=r.getUuid,f=r.log,d=new qq.WindowReceiveMessage({log:f});function h(e){delete a[e],u&&(clearTimeout(s[e]),delete s[e],d.stopReceivingMessages(e));var t=document.getElementById(n._getIframeName(e));t&&(t.setAttribute("src","javascript:false;"),qq(t).remove())}function p(e){return e.split("_")[0]}function m(e){var t=qq.toElement("<iframe src='javascript:false;' name='"+e+"' />");return t.setAttribute("id",e),t.style.display="none",document.body.appendChild(t),t}function g(e,t){var r=e.id,i=p(r),u=c(i);o[u]=t,a[i]=qq(e).attach("load",(function(){n.getInput(i)&&(f("Received iframe load event for CORS upload request (iframe name "+r+")"),s[r]=setTimeout((function(){var e="No valid message received from loaded iframe for iframe name "+r;f(e,"error"),t({error:e})}),1e3))})),d.receiveMessage(r,(function(e){f("Received the following window message: '"+e+"'");p(r);var t,i=n._parseJsonResponse(e),a=i.uuid;a&&o[a]?(f("Handling response for iframe name "+r),clearTimeout(s[r]),delete s[r],n._detachLoadEvent(r),t=o[a],delete o[a],d.stopReceivingMessages(r),t(i)):a||f("'"+e+"' does not contain a UUID - ignoring.")}))}qq.extend(this,new qq.UploadHandler(e)),qq.override(this,(function(e){return{add:function(t,n){e.add(t,{input:n}),n.setAttribute("name",l),n.parentNode&&qq(n).remove()},expunge:function(t){h(t),e.expunge(t)},isValid:function(t){return e.isValid(t)&&void 0!==n._getFileState(t).input}}})),qq.extend(this,{getInput:function(e){return n._getFileState(e).input},_attachLoadEvent:function(e,t){var n;u?g(e,t):a[e.id]=qq(e).attach("load",(function(){if(f("Received response for "+e.id),e.parentNode){try{if(e.contentDocument&&e.contentDocument.body&&"false"==e.contentDocument.body.innerHTML)return}catch(r){f("Error when attempting to access iframe during handling of upload response ("+r.message+")","error"),n={success:!1}}t(n)}}))},_createIframe:function(e){var t=n._getIframeName(e);return m(t)},_detachLoadEvent:function(e){void 0!==a[e]&&(a[e](),delete a[e])},_getIframeName:function(e){return e+"_"+i},_initFormForUpload:function(e){var t=e.method,n=e.endpoint,r=e.params,i=e.paramsInBody,o=e.targetName,a=qq.toElement("<form method='"+t+"' enctype='multipart/form-data'></form>"),s=n;return i?qq.obj2Inputs(r,a):s=qq.obj2url(r,n),a.setAttribute("action",s),a.setAttribute("target",o),a.style.display="none",document.body.appendChild(a),a},_parseJsonResponse:function(e){var t={};try{t=qq.parseJson(e)}catch(n){f("Error when attempting to parse iframe upload response ("+n.message+")","error")}return t}})},qq.XhrUploadHandler=function(e){"use strict";var t=this,n=e.options.namespace,r=e.proxy,i=e.options.chunking,o=function(e){var n=t._getFileState(e);if(n.chunkSize)return n.chunkSize;var r=i.partSize;return qq.isFunction(r)&&(r=r(e,c(e))),n.chunkSize=r,r},a=e.options.resume,s=i&&e.options.chunking.enabled&&qq.supportedFeatures.chunking,u=a&&e.options.resume.enabled&&s&&qq.supportedFeatures.resume,l=r.getName,c=r.getSize,f=r.getUuid,d=r.getEndpoint,h=r.getDataByUuid,p=r.onUuidChanged,m=r.onProgress,g=r.log,v=r.getCustomResumeData;function y(e){qq.each(t._getXhrs(e),(function(n,r){var i=t._getAjaxRequester(e,n);r.onreadystatechange=null,r.upload.onprogress=null,r.abort(),i&&i.canceled&&i.canceled(e)}))}qq.extend(this,new qq.UploadHandler(e)),qq.override(this,(function(e){return{add:function(n,r){if(qq.isFile(r)||qq.isBlob(r))e.add(n,{file:r});else{if(!(r instanceof qq.BlobProxy))throw new Error("Passed obj is not a File, Blob, or proxy");e.add(n,{proxy:r})}t._initTempState(n),u&&t._maybePrepareForResume(n)},expunge:function(n){y(n),t._maybeDeletePersistedChunkData(n),t._clearXhrs(n),e.expunge(n)}}})),qq.extend(this,{clearCachedChunk:function(e,n){var r=t._getFileState(e);r&&delete r.temp.cachedChunks[n]},clearXhr:function(e,n){var r=t._getFileState(e).temp;r.xhrs&&delete r.xhrs[n],r.ajaxRequesters&&delete r.ajaxRequesters[n]},finalizeChunks:function(e,n){var r=t._getTotalChunks(e)-1,i=t._getXhr(e,r);return n?(new qq.Promise).success(n(i),i):(new qq.Promise).success({},i)},getFile:function(e){return t.isValid(e)&&t._getFileState(e).file},getProxy:function(e){return t.isValid(e)&&t._getFileState(e).proxy},getResumableFilesData:function(){var e=[];return t._iterateResumeRecords((function(n,r){t.moveInProgressToRemaining(null,r.chunking.inProgress,r.chunking.remaining);var i={name:r.name,remaining:r.chunking.remaining,size:r.size,uuid:r.uuid};r.key&&(i.key=r.key),r.customResumeData&&(i.customResumeData=r.customResumeData),e.push(i)})),e},isAttemptingResume:function(e){return t._getFileState(e).attemptingResume},isResumable:function(e){return!!i&&t.isValid(e)&&!t._getFileState(e).notResumable},moveInProgressToRemaining:function(e,n,r){var i=t._getFileState(e)||{},o=i.chunking||{},a=n||o.inProgress,s=r||o.remaining;a&&(g(qq.format("Moving these chunks from in-progress {}, to remaining.",JSON.stringify(a))),a.reverse(),qq.each(a,(function(e,t){s.unshift(t)})),a.length=0)},pause:function(e){if(t.isValid(e))return g(qq.format("Aborting XHR upload for {} '{}' due to pause instruction.",e,l(e))),t._getFileState(e).paused=!0,y(e),!0},reevaluateChunking:function(e){if(i&&t.isValid(e)){var n,r,o=t._getFileState(e);if(delete o.chunking,o.chunking={},n=t._getTotalChunks(e),n>1||i.mandatory){for(o.chunking.enabled=!0,o.chunking.parts=n,o.chunking.remaining=[],r=0;r<n;r++)o.chunking.remaining.push(r);t._initTempState(e)}else o.chunking.enabled=!1}},updateBlob:function(e,n){t.isValid(e)&&(t._getFileState(e).file=n)},_clearXhrs:function(e){var n=t._getFileState(e).temp;qq.each(n.ajaxRequesters,(function(e){delete n.ajaxRequesters[e]})),qq.each(n.xhrs,(function(e){delete n.xhrs[e]}))},_createXhr:function(e,n){return t._registerXhr(e,n,qq.createXhrInstance())},_getAjaxRequester:function(e,n){var r=null==n?-1:n;return t._getFileState(e).temp.ajaxRequesters[r]},_getChunkData:function(e,n){var r=o(e),i=c(e),a=t.getFile(e),s=r*n,u=s+r>=i?i:s+r,l=t._getTotalChunks(e),f=this._getFileState(e).temp.cachedChunks,d=f[n]||qq.sliceBlob(a,s,u);return f[n]=d,{part:n,start:s,end:u,count:l,blob:d,size:u-s}},_getChunkDataForCallback:function(e){return{partIndex:e.part,startByte:e.start+1,endByte:e.end,totalParts:e.count}},_getLocalStorageId:function(e){var t="5.0",r=l(e),i=c(e),s=o(e),u=d(e),f=a.customKeys(e),h=qq.format("qq{}resume{}-{}-{}-{}-{}",n,t,r,i,s,u);return f.forEach((function(e){h+="-"+e})),h},_getMimeType:function(e){return t.getFile(e).type},_getPersistableData:function(e){return t._getFileState(e).chunking},_getTotalChunks:function(e){if(i){var t=c(e),n=o(e);return Math.ceil(t/n)}},_getXhr:function(e,n){var r=null==n?-1:n;return t._getFileState(e).temp.xhrs[r]},_getXhrs:function(e){return t._getFileState(e).temp.xhrs},_iterateResumeRecords:function(e){u&&qq.each(localStorage,(function(t,r){if(0===t.indexOf(qq.format("qq{}resume",n))){var i=JSON.parse(r);e(t,i)}}))},_initTempState:function(e){t._getFileState(e).temp={ajaxRequesters:{},chunkProgress:{},xhrs:{},cachedChunks:{}}},_markNotResumable:function(e){t._getFileState(e).notResumable=!0},_maybeDeletePersistedChunkData:function(e){var n;return!!(u&&t.isResumable(e)&&(n=t._getLocalStorageId(e),n&&localStorage.getItem(n)))&&(localStorage.removeItem(n),!0)},_maybePrepareForResume:function(e){var n,r,i=t._getFileState(e);u&&void 0===i.key&&(n=t._getLocalStorageId(e),r=localStorage.getItem(n),r&&(r=JSON.parse(r),h(r.uuid)?t._markNotResumable(e):(g(qq.format("Identified file with ID {} and name of {} as resumable.",e,l(e))),p(e,r.uuid),i.key=r.key,i.chunking=r.chunking,i.loaded=r.loaded,i.customResumeData=r.customResumeData,i.attemptingResume=!0,t.moveInProgressToRemaining(e))))},_maybePersistChunkedState:function(e){var n,r,i=t._getFileState(e);if(u&&t.isResumable(e)){var o=v(e);n=t._getLocalStorageId(e),r={name:l(e),size:c(e),uuid:f(e),key:i.key,chunking:i.chunking,loaded:i.loaded,lastUpdated:Date.now()},o&&(r.customResumeData=o);try{localStorage.setItem(n,JSON.stringify(r))}catch(a){g(qq.format("Unable to save resume data for '{}' due to error: '{}'.",e,a.toString()),"warn")}}},_registerProgressHandler:function(e,n,r){var i=t._getXhr(e,n),o=l(e),a={simple:function(t,n){var r=c(e);m(e,o,t===n?r:t>=r?r-1:t,r)},chunked:function(i,a){var s=t._getFileState(e).temp.chunkProgress,u=t._getFileState(e).loaded,l=i,f=a,d=c(e),h=l-(f-r),p=u;s[n]=h,qq.each(s,(function(e,t){p+=t})),m(e,o,p,d)}};i.upload.onprogress=function(e){if(e.lengthComputable){var t=null==r?"simple":"chunked";a[t](e.loaded,e.total)}}},_registerXhr:function(e,n,r,i){var o=null==n?-1:n,a=t._getFileState(e).temp;return a.xhrs=a.xhrs||{},a.ajaxRequesters=a.ajaxRequesters||{},a.xhrs[o]=r,i&&(a.ajaxRequesters[o]=i),r},_removeExpiredChunkingRecords:function(){var e=a.recordsExpireIn;t._iterateResumeRecords((function(t,n){var r=new Date(n.lastUpdated);r.setDate(r.getDate()+e),r.getTime()<=Date.now()&&(g("Removing expired resume record with key "+t),localStorage.removeItem(t))}))},_shouldChunkThisFile:function(e){var n=t._getFileState(e);if(n)return n.chunking||t.reevaluateChunking(e),n.chunking.enabled}})},qq.DeleteFileAjaxRequester=function(e){"use strict";var t,n={method:"DELETE",uuidParamName:"qquuid",endpointStore:{},maxConnections:3,customHeaders:function(e){return{}},paramsStore:{},cors:{expected:!1,sendCredentials:!1},log:function(e,t){},onDelete:function(e){},onDeleteComplete:function(e,t,n){}};function r(){return"POST"===n.method.toUpperCase()?{_method:"DELETE"}:{}}qq.extend(n,e),t=qq.extend(this,new qq.AjaxRequester({acceptHeader:"application/json",validMethods:["POST","DELETE"],method:n.method,endpointStore:n.endpointStore,paramsStore:n.paramsStore,mandatedParams:r(),maxConnections:n.maxConnections,customHeaders:function(e){return n.customHeaders.get(e)},log:n.log,onSend:n.onDelete,onComplete:n.onDeleteComplete,cors:n.cors})),qq.extend(this,{sendDelete:function(e,r,i){var o=i||{};n.log("Submitting delete file request for "+e),"DELETE"===n.method?t.initTransport(e).withPath(r).withParams(o).send():(o[n.uuidParamName]=r,t.initTransport(e).withParams(o).send())}})},function(){function e(e){var t,n=e.naturalWidth,r=e.naturalHeight,i=document.createElement("canvas");return n*r>1048576&&(i.width=i.height=1,t=i.getContext("2d"),t.drawImage(e,1-n,0),0===t.getImageData(0,0,1,1).data[3])}function t(e,t,n){var r,i,o,a,s=document.createElement("canvas"),u=0,l=n,c=n;s.width=1,s.height=n,r=s.getContext("2d"),r.drawImage(e,0,0),i=r.getImageData(0,0,1,n).data;while(c>u)o=i[4*(c-1)+3],0===o?l=c:u=c,c=l+u>>1;return a=c/n,0===a?1:a}function n(e,t,n,r){var o=document.createElement("canvas"),a=n.mime||"image/jpeg",s=new qq.Promise;return i(e,t,o,n,r).then((function(){s.success(o.toDataURL(a,n.quality||.8))})),s}function r(e){var t=5241e3;if(!qq.ios())throw new qq.Error("Downsampled dimensions can only be reliably calculated for iOS!");if(e.origHeight*e.origWidth>t)return{newHeight:Math.round(Math.sqrt(t*(e.origHeight/e.origWidth))),newWidth:Math.round(Math.sqrt(t*(e.origWidth/e.origHeight)))}}function i(n,i,s,u,l){var c,f=n.naturalWidth,d=n.naturalHeight,h=u.width,p=u.height,m=s.getContext("2d"),g=new qq.Promise;return m.save(),u.resize?o({blob:i,canvas:s,image:n,imageHeight:d,imageWidth:f,orientation:u.orientation,resize:u.resize,targetHeight:p,targetWidth:h}):(qq.supportedFeatures.unlimitedScaledImageSize||(c=r({origWidth:h,origHeight:p}),c&&(qq.log(qq.format("Had to reduce dimensions due to device limitations from {}w / {}h to {}w / {}h",h,p,c.newWidth,c.newHeight),"warn"),h=c.newWidth,p=c.newHeight)),a(s,h,p,u.orientation),qq.ios()?function(){e(n)&&(f/=2,d/=2);var r,i,o,a=1024,s=document.createElement("canvas"),u=l?t(n,f,d):1,c=Math.ceil(a*h/f),g=Math.ceil(a*p/d/u),v=0,y=0;s.width=s.height=a,r=s.getContext("2d");while(v<d){i=0,o=0;while(i<f)r.clearRect(0,0,a,a),r.drawImage(n,-i,-v),m.drawImage(s,0,0,a,a,o,y,c,g),i+=a,o+=c;v+=a,y+=g}m.restore(),s=r=null}():m.drawImage(n,0,0,h,p),s.qqImageRendered&&s.qqImageRendered(),g.success(),g)}function o(e){var t=e.blob,n=e.image,r=e.imageHeight,i=e.imageWidth,o=e.orientation,s=new qq.Promise,u=e.resize,l=document.createElement("canvas"),c=l.getContext("2d"),f=e.canvas,d=e.targetHeight,h=e.targetWidth;return a(l,i,r,o),f.height=d,f.width=h,c.drawImage(n,0,0),u({blob:t,height:d,image:n,sourceCanvas:l,targetCanvas:f,width:h}).then((function(){f.qqImageRendered&&f.qqImageRendered(),s.success()}),s.failure),s}function a(e,t,n,r){switch(r){case 5:case 6:case 7:case 8:e.width=n,e.height=t;break;default:e.width=t,e.height=n}var i=e.getContext("2d");switch(r){case 2:i.translate(t,0),i.scale(-1,1);break;case 3:i.translate(t,n),i.rotate(Math.PI);break;case 4:i.translate(0,n),i.scale(1,-1);break;case 5:i.rotate(.5*Math.PI),i.scale(1,-1);break;case 6:i.rotate(.5*Math.PI),i.translate(0,-n);break;case 7:i.rotate(.5*Math.PI),i.translate(t,-n),i.scale(-1,1);break;case 8:i.rotate(-.5*Math.PI),i.translate(-t,0);break;default:break}}function s(e,t){var n=this;window.Blob&&e instanceof Blob&&function(){var t=new Image,r=window.URL&&window.URL.createObjectURL?window.URL:window.webkitURL&&window.webkitURL.createObjectURL?window.webkitURL:null;if(!r)throw Error("No createObjectURL function found to create blob url");t.src=r.createObjectURL(e),n.blob=e,e=t}(),e.naturalWidth||e.naturalHeight||(e.onload=function(){var e=n.imageLoadListeners;e&&(n.imageLoadListeners=null,setTimeout((function(){for(var t=0,n=e.length;t<n;t++)e[t]()}),0))},e.onerror=t,this.imageLoadListeners=[]),this.srcImage=e}s.prototype.render=function(e,t){t=t||{};var r,o=this,a=this.srcImage.naturalWidth,s=this.srcImage.naturalHeight,u=t.width,l=t.height,c=t.maxWidth,f=t.maxHeight,d=!this.blob||"image/jpeg"===this.blob.type,h=e.tagName.toLowerCase();this.imageLoadListeners?this.imageLoadListeners.push((function(){o.render(e,t)})):(u&&!l?l=s*u/a<<0:l&&!u?u=a*l/s<<0:(u=a,l=s),c&&u>c&&(u=c,l=s*u/a<<0),f&&l>f&&(l=f,u=a*l/s<<0),r={width:u,height:l},qq.each(t,(function(e,t){r[e]=t})),"img"===h?function(){var t=e.src;n(o.srcImage,o.blob,r,d).then((function(n){e.src=n,t===e.src&&e.onload()}))}():"canvas"===h&&i(this.srcImage,this.blob,e,r,d),"function"===typeof this.onrender&&this.onrender(e))},qq.MegaPixImage=s}(),qq.ImageGenerator=function(e){"use strict";function t(e){return"img"===e.tagName.toLowerCase()}function n(e){return"canvas"===e.tagName.toLowerCase()}function r(){return void 0!==(new Image).crossOrigin}function i(){var e=document.createElement("canvas");return e.getContext&&e.getContext("2d")}function o(e){var t=e.split("/"),n=t[t.length-1].split("?")[0],r=qq.getExtension(n);switch(r=r&&r.toLowerCase(),r){case"jpeg":case"jpg":return"image/jpeg";case"png":return"image/png";case"bmp":return"image/bmp";case"gif":return"image/gif";case"tiff":case"tif":return"image/tiff"}}function a(e){var t,n,r,i=document.createElement("a");return i.href=e,t=i.protocol,r=i.port,n=i.hostname,t.toLowerCase()!==window.location.protocol.toLowerCase()||(n.toLowerCase()!==window.location.hostname.toLowerCase()||r!==window.location.port&&!qq.ie())}function s(t,n){t.onload=function(){t.onload=null,t.onerror=null,n.success(t)},t.onerror=function(){t.onload=null,t.onerror=null,e("Problem drawing thumbnail!","error"),n.failure(t,"Problem drawing thumbnail!")}}function u(e,t){e.qqImageRendered=function(){t.success(e)}}function l(r,i){var o=t(r)||n(r);return t(r)?s(r,i):n(r)?u(r,i):(i.failure(r),e(qq.format("Element container of type {} is not supported!",r.tagName),"error")),o}function c(t,n,r){var i=new qq.Promise,o=new qq.Identify(t,e),a=r.maxSize,s=null==r.orient||r.orient,u=function(){n.onerror=null,n.onload=null,e("Could not render preview, file may be too large!","error"),i.failure(n,"Browser cannot render image!")};return o.isPreviewable().then((function(o){var c={parse:function(){return(new qq.Promise).success()}},f=s?new qq.Exif(t,e):c,d=new qq.MegaPixImage(t,u);l(n,i)&&f.parse().then((function(e){var t=e&&e.Orientation;d.render(n,{maxWidth:a,maxHeight:a,orientation:t,mime:o,resize:r.customResizeFunction})}),(function(t){e(qq.format("EXIF data could not be parsed ({}). Assuming orientation = 1.",t)),d.render(n,{maxWidth:a,maxHeight:a,mime:o,resize:r.customResizeFunction})}))}),(function(){e("Not previewable"),i.failure(n,"Not previewable")})),i}function f(e,t,n,r,i){var s=new Image,u=new qq.Promise;l(s,u),a(e)&&(s.crossOrigin="anonymous"),s.src=e,u.then((function(){l(t,n);var a=new qq.MegaPixImage(s);a.render(t,{maxWidth:r,maxHeight:r,mime:o(e),resize:i})}),n.failure)}function d(e,t,n,r){l(t,n),qq(t).css({maxWidth:r+"px",maxHeight:r+"px"}),t.src=e}function h(e,o,s){var u=new qq.Promise,c=s.scale,h=c?s.maxSize:null;return c&&t(o)?i()?a(e)&&!r()?d(e,o,u,h):f(e,o,u,h):d(e,o,u,h):n(o)?f(e,o,u,h):l(o,u)&&(o.src=e),u}qq.extend(this,{generate:function(t,n,r){return qq.isString(t)?(e("Attempting to update thumbnail based on server response."),h(t,n,r||{})):(e("Attempting to draw client-side image preview."),c(t,n,r||{}))}}),this._testing={},this._testing.isImg=t,this._testing.isCanvas=n,this._testing.isCrossOrigin=a,this._testing.determineMimeOfFileName=o},qq.Exif=function(e,t){"use strict";var n=[274],r={274:{name:"Orientation",bytes:2}};function i(e){var t=0,n=0;while(e.length>0)t+=parseInt(e.substring(0,2),16)*Math.pow(2,n),e=e.substring(2,e.length),n+=8;return t}function o(t,n){var r=t,i=n;return void 0===r&&(r=2,i=new qq.Promise),qq.readBlobToHex(e,r,4).then((function(e){var t,n=/^ffe([0-9])/.exec(e);n?"1"!==n[1]?(t=parseInt(e.slice(4,8),16),o(r+t+2,i)):i.success(r):i.failure("No EXIF header to be found!")})),i}function a(){var t=new qq.Promise;return qq.readBlobToHex(e,0,6).then((function(e){0!==e.indexOf("ffd8")?t.failure("Not a valid JPEG!"):o().then((function(e){t.success(e)}),(function(e){t.failure(e)}))})),t}function s(t){var n=new qq.Promise;return qq.readBlobToHex(e,t+10,2).then((function(e){n.success("4949"===e)})),n}function u(t,n){var r=new qq.Promise;return qq.readBlobToHex(e,t+18,2).then((function(e){if(n)return r.success(i(e));r.success(parseInt(e,16))})),r}function l(t,n){var r=t+20,i=12*n;return qq.readBlobToHex(e,r,i)}function c(e){var t=[],n=0;while(n+24<=e.length)t.push(e.slice(n,n+24)),n+=24;return t}function f(e,t){var o=16,a=qq.extend([],n),s={};return qq.each(t,(function(t,n){var u,l,c,f=n.slice(0,4),d=e?i(f):parseInt(f,16),h=a.indexOf(d);if(h>=0&&(l=r[d].name,c=r[d].bytes,u=n.slice(o,o+2*c),s[l]=e?i(u):parseInt(u,16),a.splice(h,1)),0===a.length)return!1})),s}qq.extend(this,{parse:function(){var n=new qq.Promise,r=function(e){t(qq.format("EXIF header parse failed: '{}' ",e)),n.failure(e)};return a().then((function(i){t(qq.format("Moving forward with EXIF header parsing for '{}'",void 0===e.name?"blob":e.name)),s(i).then((function(e){t(qq.format("EXIF Byte order is {} endian",e?"little":"big")),u(i,e).then((function(o){t(qq.format("Found {} APP1 directory entries",o)),l(i,o).then((function(r){var i=c(r),o=f(e,i);t("Successfully parsed some EXIF tags"),n.success(o)}),r)}),r)}),r)}),r),n}}),this._testing={},this._testing.parseLittleEndian=i},qq.Identify=function(e,t){"use strict";function n(e,t){var n=!1,r=[].concat(e);return qq.each(r,(function(e,r){if(0===t.indexOf(r))return n=!0,!1})),n}qq.extend(this,{isPreviewable:function(){var r=this,i=new qq.Promise,o=!1,a=void 0===e.name?"blob":e.name;return t(qq.format("Attempting to determine if {} can be rendered in this browser",a)),t("First pass: check type attribute of blob object."),this.isPreviewableSync()?(t("Second pass: check for magic bytes in file header."),qq.readBlobToHex(e,0,4).then((function(e){qq.each(r.PREVIEWABLE_MIME_TYPES,(function(t,r){if(n(r,e))return("image/tiff"!==t||qq.supportedFeatures.tiffPreviews)&&(o=!0,i.success(t)),!1})),t(qq.format("'{}' is {} able to be rendered in this browser",a,o?"":"NOT")),o||i.failure()}),(function(){t("Error reading file w/ name '"+a+"'. Not able to be rendered in this browser."),i.failure()}))):i.failure(),i},isPreviewableSync:function(){var n=e.type,r=qq.indexOf(Object.keys(this.PREVIEWABLE_MIME_TYPES),n)>=0,i=!1,o=void 0===e.name?"blob":e.name;return r&&(i="image/tiff"!==n||qq.supportedFeatures.tiffPreviews),!i&&t(o+" is not previewable in this browser per the blob's type attr"),i}})},qq.Identify.prototype.PREVIEWABLE_MIME_TYPES={"image/jpeg":"ffd8ff","image/gif":"474946","image/png":"89504e","image/bmp":"424d","image/tiff":["49492a00","4d4d002a"]},qq.ImageValidation=function(e,t){"use strict";function n(e){var t=!1;return qq.each(e,(function(e,n){if(n>0)return t=!0,!1})),t}function r(){var n=new qq.Promise;return new qq.Identify(e,t).isPreviewable().then((function(){var r=new Image,i=window.URL&&window.URL.createObjectURL?window.URL:window.webkitURL&&window.webkitURL.createObjectURL?window.webkitURL:null;i?(r.onerror=function(){t("Cannot determine dimensions for image. May be too large.","error"),n.failure()},r.onload=function(){n.success({width:this.width,height:this.height})},r.src=i.createObjectURL(e)):(t("No createObjectURL function available to generate image URL!","error"),n.failure())}),n.failure),n}function i(e,t){var n;return qq.each(e,(function(e,r){if(r>0){var i=/(max|min)(Width|Height)/.exec(e),o=i[2].charAt(0).toLowerCase()+i[2].slice(1),a=t[o];switch(i[1]){case"min":if(a<r)return n=e,!1;break;case"max":if(a>r)return n=e,!1;break}}})),n}this.validate=function(e){var o=new qq.Promise;return t("Attempting to validate image."),n(e)?r().then((function(t){var n=i(e,t);n?o.failure(n):o.success()}),o.success):o.success(),o}},qq.Session=function(e){"use strict";var t={endpoint:null,params:{},customHeaders:{},cors:{},addFileRecord:function(e){},log:function(e,t){}};function n(e){if(qq.isArray(e))return!0;t.log("Session response is not an array.","error")}function r(e,r,i,o){var a=!1;r=r&&n(e),r&&qq.each(e,(function(e,n){if(null==n.uuid)a=!0,t.log(qq.format("Session response item {} did not include a valid UUID - ignoring.",e),"error");else if(null==n.name)a=!0,t.log(qq.format("Session response item {} did not include a valid name - ignoring.",e),"error");else try{return t.addFileRecord(n),!0}catch(r){a=!0,t.log(r.message,"error")}return!1})),o[r&&!a?"success":"failure"](e,i)}qq.extend(t,e,!0),this.refresh=function(){var e=new qq.Promise,n=function(t,n,i){r(t,n,i,e)},i=qq.extend({},t),o=new qq.SessionAjaxRequester(qq.extend(i,{onComplete:n}));return o.queryServer(),e}},qq.SessionAjaxRequester=function(e){"use strict";var t,n={endpoint:null,customHeaders:{},params:{},cors:{expected:!1,sendCredentials:!1},onComplete:function(e,t,n){},log:function(e,t){}};function r(e,t,r){var i=null;if(null!=t.responseText)try{i=qq.parseJson(t.responseText)}catch(o){n.log("Problem parsing session response: "+o.message,"error"),r=!0}n.onComplete(i,!r,t)}qq.extend(n,e),t=qq.extend(this,new qq.AjaxRequester({acceptHeader:"application/json",validMethods:["GET"],method:"GET",endpointStore:{get:function(){return n.endpoint}},customHeaders:n.customHeaders,log:n.log,onComplete:r,cors:n.cors})),qq.extend(this,{queryServer:function(){var e=qq.extend({},n.params);n.log("Session query request."),t.initTransport("sessionRefresh").withParams(e).withCacheBuster().send()}})},qq.Scaler=function(e,t){"use strict";var n=e.customResizer,r=e.sendOriginal,i=e.orient,o=e.defaultType,a=e.defaultQuality/100,s=e.failureText,u=e.includeExif,l=this._getSortedSizes(e.sizes);qq.extend(this,{enabled:qq.supportedFeatures.scaling&&l.length>0,getFileRecords:function(e,c,f){var d=this,h=[],p=f.blob?f.blob:f,m=new qq.Identify(p,t);return m.isPreviewableSync()?(qq.each(l,(function(e,r){var l=d._determineOutputType({defaultType:o,requestedType:r.type,refType:p.type});h.push({uuid:qq.getUniqueId(),name:d._getName(c,{name:r.name,type:l,refType:p.type}),blob:new qq.BlobProxy(p,qq.bind(d._generateScaledImage,d,{customResizeFunction:n,maxSize:r.maxSize,orient:i,type:l,quality:a,failedText:s,includeExif:u,log:t}))})})),h.push({uuid:e,name:c,size:p.size,blob:r?p:null})):h.push({uuid:e,name:c,size:p.size,blob:p}),h},handleNewFile:function(e,t,n,r,i,o,a,s){var u=this,l=(e.qqButtonId||e.blob&&e.blob.qqButtonId,[]),c=null,f=s.addFileToHandler,d=s.uploadData,h=s.paramsStore,p=qq.getUniqueId();qq.each(u.getFileRecords(n,t,e),(function(e,t){var n,r=t.size;t.blob instanceof qq.BlobProxy&&(r=-1),n=d.addFile({uuid:t.uuid,name:t.name,size:r,batchId:o,proxyGroupId:p}),t.blob instanceof qq.BlobProxy?l.push(n):c=n,t.blob?(f(n,t.blob),i.push({id:n,file:t.blob})):d.setStatus(n,qq.status.REJECTED)})),null!==c&&(qq.each(l,(function(e,t){var n={qqparentuuid:d.retrieve({id:c}).uuid,qqparentsize:d.retrieve({id:c}).size};n[a]=d.retrieve({id:t}).uuid,d.setParentId(t,c),h.addReadOnly(t,n)})),l.length&&function(){var e={};e[a]=d.retrieve({id:c}).uuid,h.addReadOnly(c,e)}())}})},qq.extend(qq.Scaler.prototype,{scaleImage:function(e,t,n){"use strict";if(!qq.supportedFeatures.scaling)throw new qq.Error("Scaling is not supported in this browser!");var r=new qq.Promise,i=n.log,o=n.getFile(e),a=n.uploadData.retrieve({id:e}),s=a&&a.name,u=a&&a.uuid,l={customResizer:t.customResizer,sendOriginal:!1,orient:t.orient,defaultType:t.type||null,defaultQuality:t.quality,failedToScaleText:"Unable to scale",sizes:[{name:"",maxSize:t.maxSize}]},c=new qq.Scaler(l,i);return qq.Scaler&&qq.supportedFeatures.imagePreviews&&o?qq.bind((function(){var t=c.getFileRecords(u,s,o)[0];t&&t.blob instanceof qq.BlobProxy?t.blob.create().then(r.success,r.failure):(i(e+" is not a scalable image!","error"),r.failure())}),this)():(r.failure(),i("Could not generate requested scaled image for "+e+". Scaling is either not possible in this browser, or the file could not be located.","error")),r},_determineOutputType:function(e){"use strict";var t=e.requestedType,n=e.defaultType,r=e.refType;return n||t?t&&qq.indexOf(Object.keys(qq.Identify.prototype.PREVIEWABLE_MIME_TYPES),t)>=0?"image/tiff"===t?qq.supportedFeatures.tiffPreviews?t:n:t:n:"image/jpeg"!==r?"image/png":r},_getName:function(e,t){"use strict";var n=e.lastIndexOf("."),r=t.type||"image/png",i=t.refType,o="",a=qq.getExtension(e),s="";return t.name&&t.name.trim().length&&(s=" ("+t.name+")"),n>=0?(o=e.substr(0,n),i!==r&&(a=r.split("/")[1]),o+=s+"."+a):o=e+s,o},_getSortedSizes:function(e){"use strict";return e=qq.extend([],e),e.sort((function(e,t){return e.maxSize>t.maxSize?1:e.maxSize<t.maxSize?-1:0}))},_generateScaledImage:function(e,t){"use strict";var n=this,r=e.customResizeFunction,i=e.log,o=e.maxSize,a=e.orient,s=e.type,u=e.quality,l=e.failedText,c=e.includeExif&&"image/jpeg"===t.type&&"image/jpeg"===s,f=new qq.Promise,d=new qq.ImageGenerator(i),h=document.createElement("canvas");return i("Attempting to generate scaled version for "+t.name),d.generate(t,h,{maxSize:o,orient:a,customResizeFunction:r}).then((function(){var e=h.toDataURL(s,u),r=function(){i("Success generating scaled version for "+t.name);var n=qq.dataUriToBlob(e);f.success(n)};c?n._insertExifHeader(t,e,i).then((function(t){e=t,r()}),(function(){i("Problem inserting EXIF header into scaled image. Using scaled image w/out EXIF data.","error"),r()})):r()}),(function(){i("Failed attempt to generate scaled version for "+t.name,"error"),f.failure(l)})),f},_insertExifHeader:function(e,t,n){"use strict";var r=new FileReader,i=new qq.Promise,o="";return r.onload=function(){o=r.result,i.success(qq.ExifRestorer.restore(o,t))},r.onerror=function(){n("Problem reading "+e.name+" during attempt to transfer EXIF data to scaled version.","error"),i.failure()},r.readAsDataURL(e),i},_dataUriToBlob:function(e){"use strict";var t,n,r,i;return t=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):decodeURI(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),i=new Uint8Array(r),qq.each(t,(function(e,t){i[e]=t.charCodeAt(0)})),this._createBlob(r,n)},_createBlob:function(e,t){"use strict";var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,r=n&&new n;return r?(r.append(e),r.getBlob(t)):new Blob([e],{type:t})}}),qq.ExifRestorer=function(){var e={KEY_STR:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode64:function(e){var t,n,r,i,o,a="",s="",u="",l=0;do{t=e[l++],n=e[l++],s=e[l++],r=t>>2,i=(3&t)<<4|n>>4,o=(15&n)<<2|s>>6,u=63&s,isNaN(n)?o=u=64:isNaN(s)&&(u=64),a=a+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(u),t=n=s="",r=i=o=u=""}while(l<e.length);return a},restore:function(e,t){var n="data:image/jpeg;base64,";if(!e.match(n))return t;var r=this.decode64(e.replace(n,"")),i=this.slice2Segments(r),o=this.exifManipulation(t,i);return n+this.encode64(o)},exifManipulation:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n),i=new Uint8Array(r);return i},getExifArray:function(e){for(var t,n=0;n<e.length;n++)if(t=e[n],255==t[0]&225==t[1])return t;return[]},insertExif:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),i=r.indexOf(255,3),o=r.slice(0,i),a=r.slice(i),s=o;return s=s.concat(t),s=s.concat(a),s},slice2Segments:function(e){var t=0,n=[];while(1){if(255==e[t]&218==e[t+1])break;if(255==e[t]&216==e[t+1])t+=2;else{var r=256*e[t+2]+e[t+3],i=t+r+2,o=e.slice(t,i);n.push(o),t=i}if(t>e.length)break}return n},decode64:function(e){var t,n,r,i,o,a="",s="",u=0,l=[],c=/[^A-Za-z0-9\+\/\=]/g;if(c.exec(e))throw new Error("There were invalid base64 characters in the input text. Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='");e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{r=this.KEY_STR.indexOf(e.charAt(u++)),i=this.KEY_STR.indexOf(e.charAt(u++)),o=this.KEY_STR.indexOf(e.charAt(u++)),s=this.KEY_STR.indexOf(e.charAt(u++)),t=r<<2|i>>4,n=(15&i)<<4|o>>2,a=(3&o)<<6|s,l.push(t),64!=o&&l.push(n),64!=s&&l.push(a),t=n=a="",r=i=o=s=""}while(u<e.length);return l}};return e}(),qq.TotalProgress=function(e,t){"use strict";var n={},r=0,i=0,o=-1,a=-1,s=function(t,n){t===o&&n===a||e(t,n),o=t,a=n},u=function(e,t){var n=!0;return qq.each(e,(function(e,r){if(qq.indexOf(t,r)>=0)return n=!1,!1})),n},l=function(e){d(e,-1,-1),delete n[e]},c=function(e,t,n){(0===t.length||u(t,n))&&(s(i,i),this.reset())},f=function(e){var r=t(e);r>0&&(d(e,0,r),n[e]={loaded:0,total:r})},d=function(e,t,o){var a=n[e]?n[e].loaded:0,u=n[e]?n[e].total:0;-1===t&&-1===o?(r-=a,i-=u):(t&&(r+=t-a),o&&(i+=o-u)),s(r,i)};qq.extend(this,{onAllComplete:c,onStatusChange:function(e,t,n){n===qq.status.CANCELED||n===qq.status.REJECTED?l(e):n===qq.status.SUBMITTING&&f(e)},onIndividualProgress:function(e,t,r){d(e,t,r),n[e]={loaded:t,total:r}},onNewSize:function(e){f(e)},reset:function(){n={},r=0,i=0}})},qq.PasteSupport=function(e){"use strict";var t,n;function r(e){return e.type&&0===e.type.indexOf("image/")}function i(){n=qq(t.targetElement).attach("paste",(function(e){var n=e.clipboardData;n&&qq.each(n.items,(function(e,n){if(r(n)){var i=n.getAsFile();t.callbacks.pasteReceived(i)}}))}))}function o(){n&&n()}t={targetElement:null,callbacks:{log:function(e,t){},pasteReceived:function(e){}}},qq.extend(t,e),i(),qq.extend(this,{reset:function(){o()}})},qq.FormSupport=function(e,t,n){"use strict";var r=this,i=e.interceptSubmit,o=e.element,a=e.autoUpload;function s(e){e.getAttribute("action")&&(r.newEndpoint=e.getAttribute("action"))}function u(e,t){if(!e.checkValidity||e.checkValidity())return!0;n("Form did not pass validation checks - will not upload.","error"),t()}function l(e){var n=e.submit;qq(e).attach("submit",(function(r){r=r||window.event,r.preventDefault?r.preventDefault():r.returnValue=!1,u(e,n)&&t()})),e.submit=function(){u(e,n)&&t()}}function c(e){return e&&(qq.isString(e)&&(e=document.getElementById(e)),e&&(n("Attaching to form element."),s(e),i&&l(e))),e}qq.extend(this,{newEndpoint:null,newAutoUpload:a,attachedToForm:!1,getFormInputsAsObject:function(){return null==o?null:r._form2Obj(o)}}),o=c(o),this.attachedToForm=!!o},qq.extend(qq.FormSupport.prototype,{_form2Obj:function(e){"use strict";var t={},n=function(e){var t=["button","image","reset","submit"];return qq.indexOf(t,e.toLowerCase())<0},r=function(e){return qq.indexOf(["checkbox","radio"],e.toLowerCase())>=0},i=function(e){return!(!r(e.type)||e.checked)||e.disabled&&"hidden"!==e.type.toLowerCase()},o=function(e){var t=null;return qq.each(qq(e).children(),(function(e,n){if("option"===n.tagName.toLowerCase()&&n.selected)return t=n.value,!1})),t};return qq.each(e.elements,(function(e,r){if(!qq.isInput(r,!0)&&"textarea"!==r.tagName.toLowerCase()||!n(r.type)||i(r)){if("select"===r.tagName.toLowerCase()&&!i(r)){var a=o(r);null!==a&&(t[r.name]=a)}}else t[r.name]=r.value})),t}}),qq.traditional=qq.traditional||{},qq.traditional.FormUploadHandler=function(e,t){"use strict";var n=this,r=t.getName,i=t.getUuid,o=t.log;function a(e,t){var r,i,a;try{i=t.contentDocument||t.contentWindow.document,a=i.body.innerHTML,o("converting iframe's innerHTML to JSON"),o("innerHTML = "+a),a&&a.match(/^<pre/i)&&(a=i.body.firstChild.firstChild.nodeValue),r=n._parseJsonResponse(a)}catch(s){o("Error when attempting to parse form upload response ("+s.message+")","error"),r={success:!1}}return r}function s(t,o){var a=e.paramsStore.get(t),s="get"===e.method.toLowerCase()?"GET":"POST",u=e.endpointStore.get(t),l=r(t);return a[e.uuidName]=i(t),a[e.filenameParam]=l,n._initFormForUpload({method:s,endpoint:u,params:a,paramsInBody:e.paramsInBody,targetName:o.name})}this.uploadFile=function(t){var r,i=n.getInput(t),u=n._createIframe(t),l=new qq.Promise;return r=s(t,u),r.appendChild(i),n._attachLoadEvent(u,(function(r){o("iframe loaded");var i=r||a(t,u);n._detachLoadEvent(t),e.cors.expected||qq(u).remove(),i.success?l.success(i):l.failure(i)})),o("Sending upload request for "+t),r.submit(),qq(r).remove(),l},qq.extend(this,new qq.FormUploadHandler({options:{isCors:e.cors.expected,inputName:e.inputName},proxy:{onCancel:e.onCancel,getName:r,getUuid:i,log:o}}))},qq.traditional=qq.traditional||{},qq.traditional.XhrUploadHandler=function(e,t){"use strict";var n=this,r=t.getName,i=t.getSize,o=t.getUuid,a=t.log,s=e.forceMultipart||e.paramsInBody,u=function(t,n,o){var a=i(t),u=r(t);e.omitDefaultParams||(n[e.chunking.paramNames.partIndex]=o.part,n[e.chunking.paramNames.partByteOffset]=o.start,n[e.chunking.paramNames.chunkSize]=o.size,n[e.chunking.paramNames.totalParts]=o.count,n[e.totalFileSizeName]=a),s&&!e.omitDefaultParams&&(n[e.filenameParam]=u)},l=new qq.traditional.AllChunksDoneAjaxRequester({cors:e.cors,endpoint:e.chunking.success.endpoint,headers:e.chunking.success.headers,jsonPayload:e.chunking.success.jsonPayload,log:a,method:e.chunking.success.method,params:e.chunking.success.params}),c=function(e,t){var n=new qq.Promise;return t.onreadystatechange=function(){if(4===t.readyState){var r=h(e,t);r.success?n.success(r.response,t):n.failure(r.response,t)}},n},f=function(t){var a=e.paramsStore.get(t),s=r(t),u=i(t);return a[e.uuidName]=o(t),a[e.filenameParam]=s,a[e.totalFileSizeName]=u,a[e.chunking.paramNames.totalParts]=n._getTotalChunks(t),a},d=function(t,n){return qq.indexOf([200,201,202,203,204],t.status)<0||e.requireSuccessJson&&!n.success||n.reset},h=function(e,t){var n;return a("xhr - server response received for "+e),a("responseText = "+t.responseText),n=p(!0,t),{success:!d(t,n),response:n}},p=function(t,n){var r={};try{a(qq.format("Received response status {} with body: {}",n.status,n.responseText)),r=qq.parseJson(n.responseText)}catch(i){t&&e.requireSuccessJson&&a("Error when attempting to parse xhr response text ("+i.message+")","error")}return r},m=function(t){var r=new qq.Promise;return l.complete(t,n._createXhr(t),f(t),e.customHeaders.get(t)).then((function(e){r.success(p(!1,e),e)}),(function(e){r.failure(p(!1,e),e)})),r},g=function(t){var n,a=t.fileOrBlob,u=t.id,l=t.xhr,c=t.xhrOverrides||{},f=t.customParams||{},d=t.params||{},h=c.params||{},p=s?new FormData:null,m=c.method||e.method,g=c.endpoint||e.endpointStore.get(u),v=r(u),y=i(u);return e.omitDefaultParams?(n=qq.extend({},f),qq.extend(n,h)):(n=qq.extend({},f),qq.extend(n,h),qq.extend(n,d),n[e.uuidName]=o(u),n[e.filenameParam]=v,s?n[e.totalFileSizeName]=y:e.paramsInBody||(n[e.inputName]=v)),e.paramsInBody||(g=qq.obj2url(n,g)),l.open(m,g,!0),e.cors.expected&&e.cors.sendCredentials&&(l.withCredentials=!0),s?(e.paramsInBody&&qq.obj2FormData(n,p),p.append(e.inputName,a),p):a},v=function(t){var r=t.headerOverrides,i=t.id,o=t.xhr;if(r)qq.each(r,(function(e,t){o.setRequestHeader(e,t)}));else{var a=e.customHeaders.get(i),u=n.getFile(i);o.setRequestHeader("Accept","application/json"),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.setRequestHeader("Cache-Control","no-cache"),s||(o.setRequestHeader("Content-Type","application/octet-stream"),o.setRequestHeader("X-Mime-Type",u.type)),qq.each(a,(function(e,t){o.setRequestHeader(e,t)}))}};qq.extend(this,{uploadChunk:function(t){var r,i,o,a=t.id,s=t.chunkIdx,l=t.overrides||{},f=t.resuming,d=n._getChunkData(a,s),h=n._createXhr(a,s),p={};return r=c(a,h),n._registerProgressHandler(a,s,d.size),o=e.paramsStore.get(a),u(a,p,d),f&&(p[e.resume.paramNames.resuming]=!0),i=g({fileOrBlob:d.blob,id:a,customParams:o,params:p,xhr:h,xhrOverrides:l}),v({headerOverrides:l.headers,id:a,xhr:h}),h.send(i),r},uploadFile:function(t){var r,i,o,a,s=n.getFile(t);return i=n._createXhr(t),n._registerProgressHandler(t),r=c(t,i),o=e.paramsStore.get(t),a=g({fileOrBlob:s,id:t,customParams:o,xhr:i}),v({id:t,xhr:i}),i.send(a),r}}),qq.extend(this,new qq.XhrUploadHandler({options:qq.extend({namespace:"traditional"},e),proxy:qq.extend({getEndpoint:e.endpointStore.get},t)})),qq.override(this,(function(n){return{finalizeChunks:function(r){return t.onFinalizing(r),e.chunking.success.endpoint?m(r):n.finalizeChunks(r,qq.bind(p,this,!0))}}}))},qq.traditional.AllChunksDoneAjaxRequester=function(e){"use strict";var t,n={cors:{allowXdr:!1,expected:!1,sendCredentials:!1},endpoint:null,log:function(e,t){},method:"POST"},r={},i={get:function(e){return qq.isFunction(n.endpoint)?n.endpoint(e):n.endpoint}};qq.extend(n,e),t=qq.extend(this,new qq.AjaxRequester({acceptHeader:"application/json",contentType:n.jsonPayload?"application/json":"application/x-www-form-urlencoded",validMethods:[n.method],method:n.method,endpointStore:i,allowXRequestedWithAndCacheControl:!1,cors:n.cors,log:n.log,onComplete:function(e,t,n){var i=r[e];delete r[e],n?i.failure(t):i.success(t)}})),qq.extend(this,{complete:function(e,i,o,a){var s=new qq.Promise;return n.log("Submitting All Chunks Done request for "+e),r[e]=s,t.initTransport(e).withParams(n.params(e)||o).withHeaders(n.headers(e)||a).send(i),s}})}})(window)},"8de2":function(e,t,n){var r=n("8eeb"),i=n("9934");function o(e){return r(e,i(e))}e.exports=o},"8df4":function(e,t,n){"use strict";var r=n("7a775");function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e,t=new i((function(t){e=t}));return{token:t,cancel:e}},e.exports=i},"8e1e":function(e,t,n){var r=n("90e5");function i(){var e=["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],t=["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],n=["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],i=["Paz","Pts","Sal","Çar","Per","Cum","Cts"],a=["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],s=["ÖÖ","ÖS"],u=["öö","ös"],l=["ö.ö.","ö.s."],c={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return i[e.getDay()]},dddd:function(e){return a[e.getDay()]},A:function(e){return e.getHours()/12>=1?s[1]:s[0]},a:function(e){return e.getHours()/12>=1?u[1]:u[0]},aa:function(e){return e.getHours()/12>=1?l[1]:l[0]}},f=["M","D","DDD","d","Q","W"];return f.forEach((function(e){c[e+"o"]=function(t,n){return o(n[e](t))}})),{formatters:c,formattingTokensRegExp:r(c)}}function o(e){var t={1:"'inci",2:"'inci",3:"'üncü",4:"'üncü",5:"'inci",6:"'ıncı",7:"'inci",8:"'inci",9:"'uncu",10:"'uncu",20:"'inci",30:"'uncu",50:"'inci",60:"'ıncı",70:"'inci",80:"'inci",90:"'ıncı",100:"'üncü"};if(0===e)return"0'ıncı";var n=e%10,r=e%100-n,i=e>=100?100:null;return e+(t[n]||t[r]||t[i])}e.exports=i},"8eeb":function(e,t,n){var r=n("32b3"),i=n("872a");function o(e,t,n,o){var a=!n;n||(n={});var s=-1,u=t.length;while(++s<u){var l=t[s],c=o?o(n[l],e[l],l,n,e):void 0;void 0===c&&(c=e[l]),a?i(n,l,c):r(n,l,c)}return n}e.exports=o},"90e5":function(e,t){var n=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];function r(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);var i=n.concat(t).sort().reverse(),o=new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+i.join("|")+"|.)","g");return o}e.exports=r},9152:function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+f>=1?d/u:d*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*m}},"91e9":function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},9339:function(e,t,n){(function(t){
+/*!
+ * Quill Editor v1.3.7
+ * https://quilljs.com/
+ * Copyright (c) 2014, Jason Chen
+ * Copyright (c) 2013, salesforce.com
+ */
+(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),u=n(47),l=n(48),c=n(49),f=n(12),d=n(32),h=n(33),p=n(31),m=n(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:l.default,Scroll:a.default,Block:u.default,Inline:s.default,Text:c.default,Attributor:{Attribute:f.default,Class:d.default,Style:h.default,Store:p.default}};t.default=g},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,n=e.call(this,t)||this,n.message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var o,a={},s={},u={},l={};function c(e,t){var n=d(e);if(null==n)throw new i("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e["nodeType"]===Node.TEXT_NODE?e:r.create(t);return new r(o,t)}function f(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?f(e.parentNode,n):null}function d(e,t){var n;if(void 0===t&&(t=o.ANY),"string"===typeof e)n=l[e]||a[e];else if(e instanceof Text||e["nodeType"]===Node.TEXT_NODE)n=l["text"];else if("number"===typeof e)e&o.LEVEL&o.BLOCK?n=l["block"]:e&o.LEVEL&o.INLINE&&(n=l["inline"]);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=s[r[i]],n)break;n=n||u[e.tagName]}return null==n?null:t&o.LEVEL&n.scope&&t&o.TYPE&n.scope?n:null}function h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>1)return e.map((function(e){return h(e)}));var n=e[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");if(l[n.blotName||n.attrName]=n,"string"===typeof n.keyName)a[n.keyName]=n;else if(null!=n.className&&(s[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach((function(e){null!=u[e]&&null!=n.className||(u[e]=n)}))}return n}t.DATA_KEY="__blot",function(e){e[e["TYPE"]=3]="TYPE",e[e["LEVEL"]=12]="LEVEL",e[e["ATTRIBUTE"]=13]="ATTRIBUTE",e[e["BLOT"]=14]="BLOT",e[e["INLINE"]=7]="INLINE",e[e["BLOCK"]=11]="BLOCK",e[e["BLOCK_BLOT"]=10]="BLOCK_BLOT",e[e["INLINE_BLOT"]=6]="INLINE_BLOT",e[e["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",e[e["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",e[e["ANY"]=15]="ANY"}(o=t.Scope||(t.Scope={})),t.create=c,t.find=f,t.query=d,t.register=h},function(e,t,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),u=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};u.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},u.prototype["delete"]=function(e){return e<=0?this:this.push({delete:e})},u.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},u.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=o(!0,{},e),"object"===typeof n){if("number"===typeof e["delete"]&&"number"===typeof n["delete"])return this.ops[t-1]={delete:n["delete"]+e["delete"]},this;if("number"===typeof n["delete"]&&null!=e.insert&&(t-=1,n=this.ops[t-1],"object"!==typeof n))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},u.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},u.prototype.filter=function(e){return this.ops.filter(e)},u.prototype.forEach=function(e){this.ops.forEach(e)},u.prototype.map=function(e){return this.ops.map(e)},u.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){var i=e(r)?t:n;i.push(r)})),[t,n]},u.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},u.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},u.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},u.prototype.slice=function(e,t){e=e||0,"number"!==typeof t&&(t=1/0);var n=[],r=a.iterator(this.ops),i=0;while(i<t&&r.hasNext()){var o;i<e?o=r.next(e-i):(o=r.next(t-i),n.push(o)),i+=a.length(o)}return new u(n)},u.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),r=[],o=n.peek();if(null!=o&&"number"===typeof o.retain&&null==o.attributes){var s=o.retain;while("insert"===t.peekType()&&t.peekLength()<=s)s-=t.peekLength(),r.push(t.next());o.retain-s>0&&n.next(o.retain-s)}var l=new u(r);while(t.hasNext()||n.hasNext())if("insert"===n.peekType())l.push(n.next());else if("delete"===t.peekType())l.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),f=t.next(c),d=n.next(c);if("number"===typeof d.retain){var h={};"number"===typeof f.retain?h.retain=c:h.insert=f.insert;var p=a.attributes.compose(f.attributes,d.attributes,"number"===typeof f.retain);if(p&&(h.attributes=p),l.push(h),!n.hasNext()&&i(l.ops[l.ops.length-1],h)){var m=new u(t.rest());return l.concat(m).chop()}}else"number"===typeof d["delete"]&&"number"===typeof f.retain&&l.push(d)}return l.chop()},u.prototype.concat=function(e){var t=new u(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},u.prototype.diff=function(e,t){if(this.ops===e.ops)return new u;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;var r=t===e?"on":"with";throw new Error("diff() called "+r+" non-document")})).join("")})),o=new u,l=r(n[0],n[1],t),c=a.iterator(this.ops),f=a.iterator(e.ops);return l.forEach((function(e){var t=e[1].length;while(t>0){var n=0;switch(e[0]){case r.INSERT:n=Math.min(f.peekLength(),t),o.push(f.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),o["delete"](n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),t);var s=c.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);break}t-=n}})),o.chop()},u.prototype.eachLine=function(e,t){t=t||"\n";var n=a.iterator(this.ops),r=new u,i=0;while(n.hasNext()){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),l="string"===typeof o.insert?o.insert.indexOf(t,s)-s:-1;if(l<0)r.push(n.next());else if(l>0)r.push(n.next(l));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new u}}r.length()>0&&e(r,{},i)},u.prototype.transform=function(e,t){if(t=!!t,"number"===typeof e)return this.transformPosition(e,t);var n=a.iterator(this.ops),r=a.iterator(e.ops),i=new u;while(n.hasNext()||r.hasNext())if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),l=r.next(o);if(s["delete"])continue;l["delete"]?i.push(l):i.retain(o,a.attributes.transform(s.attributes,l.attributes,t))}else i.retain(a.length(n.next()));return i.chop()},u.prototype.transformPosition=function(e,t){t=!!t;var n=a.iterator(this.ops),r=0;while(n.hasNext()&&r<=e){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<e||!t)&&(e+=i),r+=i):e-=Math.min(i,e-r)}return e},e.exports=u},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},s=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,i=n.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(t in e);return"undefined"===typeof t||n.call(e,t)},u=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var t,n,r,i,o,c,f=arguments[0],d=1,h=arguments.length,p=!1;for("boolean"===typeof f&&(p=f,f=arguments[1]||{},d=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});d<h;++d)if(t=arguments[d],null!=t)for(n in t)r=l(f,n),i=l(t,n),f!==i&&(p&&i&&(s(i)||(o=a(i)))?(o?(o=!1,c=r&&a(r)?r:[]):c=r&&s(r)?r:{},u(f,{name:n,newValue:e(p,c,i)})):"undefined"!==typeof i&&u(f,{name:n,newValue:i}));return f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(3),a=v(o),s=n(2),u=v(s),l=n(0),c=v(l),f=n(16),d=v(f),h=n(6),p=v(h),m=n(7),g=v(m);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function q(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w=1,_=function(e){function t(){return y(this,t),b(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return q(t,e),r(t,[{key:"attach",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new c.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new u.default).insert(this.value(),(0,a.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=c.default.query(e,c.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,n,r){if("string"===typeof n&&n.endsWith("\n")){var o=c.default.create(x.blotName);this.parent.insertBefore(o,0===e?this:this.next),o.insertAt(0,n.slice(0,-1))}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r)}}]),t}(c.default.Embed);_.scope=c.default.Scope.BLOCK_BLOT;var x=function(e){function t(e){y(this,t);var n=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return q(t,e),r(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(c.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),S(t))}),new u.default).insert("\n",S(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,r,o){n<=0||(c.default.query(r,c.default.Scope.BLOCK)?e+n===this.length()&&this.format(r,o):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),r,o),this.cache={})}},{key:"insertAt",value:function(e,n,r){if(null!=r)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);if(0!==n.length){var o=n.split("\n"),a=o.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;o.reduce((function(e,t){return s=s.split(e,!0),s.insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var r=this.children.head;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),r instanceof d.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+w),this.cache.length}},{key:"moveChildren",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-w)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},o}}]),t}(c.default.Block);function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"===typeof e.formats&&(t=(0,a.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:S(e.parent,t))}x.blotName="block",x.tagName="P",x.defaultChild="break",x.allowedChildren=[p.default,c.default.Embed,g.default],t.bubbleFormats=S,t.BlockEmbed=_,t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(u){i=!0,o=u}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(50);var a=n(2),s=S(a),u=n(14),l=S(u),c=n(8),f=S(c),d=n(9),h=S(d),p=n(0),m=S(p),g=n(15),v=S(g),y=n(3),b=S(y),q=n(10),w=S(q),_=n(34),x=S(_);function S(e){return e&&e.__esModule?e:{default:e}}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var E=(0,w.default)("quill"),O=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(C(this,e),this.options=A(t,r),this.container=this.options.container,null==this.container)return E.error("Invalid Quill container",t);this.options.debug&&e.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 f.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new v.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(f.default.events.EDITOR_CHANGE,(function(e){e===f.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(f.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;D.call(n,(function(){return n.editor.update(null,t,i)}),e)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),w.default.level(e)}},{key:"find",value:function(e){return e.__quill||m.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&E.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e){var i=e.attrName||e.blotName;"string"===typeof i?this.register("formats/"+i,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||E.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?m.default.register(t):e.startsWith("modules")&&"function"===typeof t.register&&t.register()}}]),o(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var n=e;e=document.createElement("div"),e.classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,o=T(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],D.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;return D.call(this,(function(){var r=n.getSelection(!0),i=new s.default;if(null==r)return i;if(m.default.query(e,m.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,k({},e,t));else{if(0===r.length)return n.selection.format(e,t),i;i=n.editor.formatText(r.index,r.length,k({},e,t))}return n.setSelection(r,f.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(e,t,n,r,o){var a=this,s=void 0,u=T(e,t,n,r,o),l=i(u,4);return e=l[0],t=l[1],s=l[2],o=l[3],D.call(this,(function(){return a.editor.formatLine(e,t,s)}),o,e,0)}},{key:"formatText",value:function(e,t,n,r,o){var a=this,s=void 0,u=T(e,t,n,r,o),l=i(u,4);return e=l[0],t=l[1],s=l[2],o=l[3],D.call(this,(function(){return a.editor.formatText(e,t,s)}),o,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.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 e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=T(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=T(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return D.call(this,(function(){return i.editor.insertEmbed(t,n,r)}),o,t)}},{key:"insertText",value:function(e,t,n,r,o){var a=this,s=void 0,u=T(e,0,n,r,o),l=i(u,4);return e=l[0],s=l[2],o=l[3],D.call(this,(function(){return a.editor.insertText(e,t,s)}),o,e,t.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(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,o=T(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],D.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return D.call(this,(function(){e=new s.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),i=t.editor.applyDelta(e),o=i.ops[i.ops.length-1];null!=o&&"string"===typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1));var a=r.compose(i);return a}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var o=T(t,n,r),a=i(o,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new g.Range(t,n),r),r!==f.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API,n=(new s.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return D.call(this,(function(){return e=new s.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function A(e,t){if(t=(0,b.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t),t.theme&&t.theme!==O.DEFAULTS.theme){if(t.theme=O.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=x.default;var n=(0,b.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)),i=r.reduce((function(e,t){var n=O.import("modules/"+t);return null==n?E.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,b.default)(!0,{},O.DEFAULTS,{modules:i},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"===typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function D(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===f.default.sources.USER)return new s.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,a=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=P(i,a,t):0!==r&&(i=P(i,n,r,t)),this.setSelection(i,f.default.sources.SILENT)),a.length()>0){var u,l,c=[f.default.events.TEXT_CHANGE,a,o,t];if((u=this.emitter).emit.apply(u,[f.default.events.EDITOR_CHANGE].concat(c)),t!==f.default.sources.SILENT)(l=this.emitter).emit.apply(l,c)}return a}function T(e,t,n,i,o){var a={};return"number"===typeof e.index&&"number"===typeof e.length?"number"!==typeof t?(o=i,i=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!==typeof t&&(o=i,i=n,n=t,t=0),"object"===("undefined"===typeof n?"undefined":r(n))?(a=n,o=i):"string"===typeof n&&(null!=i?a[n]=i:o=n),o=o||f.default.sources.API,[e,t,a,o]}function P(e,t,n,r){if(null==e)return null;var o=void 0,a=void 0;if(t instanceof s.default){var u=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==f.default.sources.USER)})),l=i(u,2);o=l[0],a=l[1]}else{var c=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r===f.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),d=i(c,2);o=d[0],a=d[1]}return new g.Range(o,a-o)}O.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},O.events=f.default.events,O.sources=f.default.sources,O.version="1.3.7",O.imports={delta:s.default,parchment:m.default,"core/module":h.default,"core/theme":x.default},t.expandConfig=A,t.overload=T,t.default=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(7),a=l(o),s=n(0),u=l(s);function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=function(e){function t(){return c(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:"formatAt",value:function(e,n,r,o){if(t.compare(this.statics.blotName,r)<0&&u.default.query(r,u.default.Scope.BLOT)){var a=this.isolate(e,n);o&&a.wrap(r,o)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o)}},{key:"optimize",value:function(e){if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.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(e,n){var r=t.order.indexOf(e),i=t.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e<n?-1:1}}]),t}(u.default.Inline);h.allowedChildren=[h,u.default.Embed,a.default],h.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),t}(i.default.Text);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(54),a=l(o),s=n(10),u=l(s);function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=(0,u.default)("quill:events"),p=["selectionchange","mousedown","mouseup","click"];p.forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var m=function(e){function t(){c(this,t);var e=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",h.error),e}return d(t,e),r(t,[{key:"emit",value:function(){h.log.apply(h,arguments),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach((function(t){var r=t.node,i=t.handler;(e.target===r||r.contains(e.target))&&i.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(a.default);m.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"},m.sources={API:"api",SILENT:"silent",USER:"user"},t.default=m},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.quill=t,this.options=n};i.DEFAULTS={},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(e){if(r.indexOf(e)<=r.indexOf(i)){for(var t,n=arguments.length,o=Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];(t=console)[e].apply(t,o)}}function a(e){return r.reduce((function(t,n){return t[n]=o.bind(console,n,e),t}),{})}o.level=a.level=function(e){i=e},t.default=a},function(e,t,n){var r=Array.prototype.slice,i=n(52),o=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:l(e,t,n))};function s(e){return null===e||void 0===e}function u(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&("function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0]))}function l(e,t,n){var l,c;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(u(e)){if(!u(t))return!1;if(e.length!==t.length)return!1;for(l=0;l<e.length;l++)if(e[l]!==t[l])return!1;return!0}try{var f=i(e),d=i(t)}catch(h){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),l=f.length-1;l>=0;l--)if(f[l]!=d[l])return!1;for(l=f.length-1;l>=0;l--)if(c=f[l],!a(e[c],t[c],n))return!1;return typeof e===typeof t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;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 e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){var n=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return null!=n&&(null==this.whitelist||("string"===typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(u){i=!0,o=u}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(2),s=g(a),u=n(0),l=g(u),c=n(4),f=g(c),d=n(6),h=g(d),p=n(7),m=g(p);function g(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function b(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var q=function(e){function t(){return v(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return b(t,e),t}(h.default);q.blotName="code",q.tagName="CODE";var w=function(e){function t(){return v(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return b(t,e),i(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new s.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var i=this.descendant(m.default,this.length()-1),a=r(i,1),s=a[0];null!=s&&s.deleteAt(s.length()-1,1),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,r,i){if(0!==n&&null!=l.default.query(r,l.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(e);if(!(o<0||o>=e+n)){var a=this.newlineIndex(e,!0)+1,s=o-a+1,u=this.isolate(a,s),c=u.next;u.format(r,i),c instanceof t&&c.formatAt(0,e-a+n-s,r,i)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var i=this.descendant(m.default,e),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(l.default.create("text","\n")),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);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(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=l.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof l.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(f.default);w.blotName="code-block",w.tagName="PRE",w.TAB=" ",t.Code=q,t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(u){i=!0,o=u}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(2),s=C(a),u=n(20),l=C(u),c=n(0),f=C(c),d=n(13),h=C(d),p=n(24),m=C(p),g=n(4),v=C(g),y=n(16),b=C(y),q=n(21),w=C(q),_=n(11),x=C(_),S=n(3),k=C(S);function C(e){return e&&e.__esModule?e:{default:e}}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var A=/^[ -~]*$/,D=function(){function e(t){O(this,e),this.scroll=t,this.delta=this.getDelta()}return o(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),e=P(e),e.reduce((function(e,a){var s=a.retain||a.delete||a.insert.length||1,u=a.attributes||{};if(null!=a.insert){if("string"===typeof a.insert){var c=a.insert;c.endsWith("\n")&&n&&(n=!1,c=c.slice(0,-1)),e>=o&&!c.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,c);var d=t.scroll.line(e),h=i(d,2),p=h[0],m=h[1],y=(0,k.default)({},(0,g.bubbleFormats)(p));if(p instanceof v.default){var b=p.descendant(f.default.Leaf,m),q=i(b,1),w=q[0];y=(0,k.default)(y,(0,g.bubbleFormats)(w))}u=l.default.attributes.diff(y,u)||{}}else if("object"===r(a.insert)){var _=Object.keys(a.insert)[0];if(null==_)return e;t.scroll.insertAt(e,_,a.insert[_])}o+=s}return Object.keys(u).forEach((function(n){t.scroll.formatAt(e,s,n,u[n])})),e+s}),0),e.reduce((function(e,n){return"number"===typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new s.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){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(e,Math.max(t,1)),a=t;o.forEach((function(t){var o=t.length();if(t instanceof h.default){var s=e-t.offset(n.scroll),u=t.newlineIndex(s+a)-s+1;t.formatAt(s,u,i,r[i])}else t.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new s.default).retain(e).retain(t,(0,w.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t,i,r[i])})),this.update((new s.default).retain(e).retain(t,(0,w.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new s.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=i(e,1),o=t[0];o instanceof v.default?n.push(o):o instanceof f.default.Leaf&&r.push(o)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(f.default.Leaf,e,t));var o=[n,r].map((function(e){if(0===e.length)return{};var t=(0,g.bubbleFormats)(e.shift());while(Object.keys(t).length>0){var n=e.shift();if(null==n)return t;t=T((0,g.bubbleFormats)(n),t)}return t}));return k.default.apply(k.default,o)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"===typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new s.default).retain(e).insert(E({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t.length,i,r[i])})),this.update((new s.default).retain(e).insert(t,(0,w.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===v.default.blotName&&(!(e.children.length>1)&&e.children.head instanceof b.default)}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),o=i(r,2),a=o[0],u=o[1],l=0,c=new s.default;null!=a&&(l=a instanceof h.default?a.newlineIndex(u)-u+1:a.length()-u,c=a.delta().slice(u,u+l-1).insert("\n"));var f=this.getContents(e,t+l),d=f.diff((new s.default).insert(n).concat(c)),p=(new s.default).retain(e).concat(d);return this.applyDelta(p)}},{key:"update",value:function(e){var t=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===t.length&&"characterData"===t[0].type&&t[0].target.data.match(A)&&f.default.find(t[0].target)){var i=f.default.find(t[0].target),o=(0,g.bubbleFormats)(i),a=i.offset(this.scroll),u=t[0].oldValue.replace(m.default.CONTENTS,""),l=(new s.default).insert(u),c=(new s.default).insert(i.value()),d=(new s.default).retain(a).concat(l.diff(c,n));e=d.reduce((function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)}),new s.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,x.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function T(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}function P(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,w.default)(t.attributes);return delete n["image"],e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||(t=(0,w.default)(t),t.attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"===typeof t.insert){var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}return e.push(t)}),new s.default)}t.default=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(u){i=!0,o=u}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=m(o),s=n(21),u=m(s),l=n(11),c=m(l),f=n(8),d=m(f),h=n(10),p=m(h);function m(e){return e&&e.__esModule?e:{default:e}}function g(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var y=(0,p.default)("quill:selection"),b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;v(this,e),this.index=t,this.length=n},q=function(){function e(t,n){var r=this;v(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new b(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,d.default.sources.USER),1)})),this.emitter.on(d.default.events.EDITOR_CHANGE,(function(e,t){e===d.default.events.TEXT_CHANGE&&t.length()>0&&r.update(d.default.sources.SILENT)})),this.emitter.on(d.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(d.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(d.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}})),this.update(d.default.sources.SILENT)}return i(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(d.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(e,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=a.default.find(n.start.node,!1);if(null==r)return;if(r instanceof a.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(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var i=void 0,o=this.scroll.leaf(e),a=r(o,2),s=a[0],u=a[1];if(null==s)return null;var l=s.position(u,!0),c=r(l,2);i=c[0],u=c[1];var f=document.createRange();if(t>0){f.setStart(i,u);var d=this.scroll.leaf(e+t),h=r(d,2);if(s=h[0],u=h[1],null==s)return null;var p=s.position(u,!0),m=r(p,2);return i=m[0],u=m[1],f.setEnd(i,u),f.getBoundingClientRect()}var g="left",v=void 0;return i instanceof Text?(u<i.data.length?(f.setStart(i,u),f.setEnd(i,u+1)):(f.setStart(i,u-1),f.setEnd(i,u),g="right"),v=f.getBoundingClientRect()):(v=s.domNode.getBoundingClientRect(),u>0&&(g="right")),{bottom:v.top+v.height,height:v.height,left:v[g],right:v[g],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return y.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();if(null==e)return[null,null];var t=this.normalizedToRange(e);return[t,e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var i=n.map((function(e){var n=r(e,2),i=n[0],o=n[1],s=a.default.find(i,!0),u=s.offset(t.scroll);return 0===o?u:s instanceof a.default.Container?u+s.length():u+s.index(i,o)})),o=Math.min(Math.max.apply(Math,g(i)),this.scroll.length()-1),s=Math.min.apply(Math,[o].concat(g(i)));return new b(s,o-s)}},{key:"normalizeNative",value:function(e){if(!w(this.root,e.startContainer)||!e.collapsed&&!w(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){var t=e.node,n=e.offset;while(!(t instanceof Text)&&t.childNodes.length>0)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;t=t.lastChild,n=t instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],i=[],o=this.scroll.length();return n.forEach((function(e,n){e=Math.min(o-1,e);var a=void 0,s=t.scroll.leaf(e),u=r(s,2),l=u[0],c=u[1],f=l.position(c,0!==n),d=r(f,2);a=d[0],c=d[1],i.push(a,c)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(t.index,i)),a=r(o,1),s=a[0],u=s;if(t.length>0){var l=this.scroll.line(Math.min(t.index+t.length,i)),c=r(l,1);u=c[0]}if(null!=s&&null!=u){var f=e.getBoundingClientRect();n.top<f.top?e.scrollTop-=f.top-n.top:n.bottom>f.bottom&&(e.scrollTop+=n.bottom-f.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(y.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;if("string"===typeof t&&(n=t,t=!1),y.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,g(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default.sources.USER,t=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],a=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,c.default)(t,this.lastRange)){var s;!this.composing&&null!=a&&a.native.collapsed&&a.start.node!==this.cursor.textNode&&this.cursor.restore();var l,f=[d.default.events.SELECTION_CHANGE,(0,u.default)(this.lastRange),(0,u.default)(t),e];if((s=this.emitter).emit.apply(s,[d.default.events.EDITOR_CHANGE].concat(f)),e!==d.default.sources.SILENT)(l=this.emitter).emit.apply(l,f)}}}]),e}();function w(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=b,t.default=q},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"insertInto",value:function(e,n){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(a.default.Embed);f.blotName="break",f.tagName="BR",t.default=f},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),o=n(30),a=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=u(t);e.insertBefore(n,e.children.head||void 0)}catch(r){if(r instanceof a.ParchmentError)return;throw r}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var r=this.children.find(n),i=r[0],o=r[1];return null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e?[i,o]:i instanceof t?i.descendant(e,o):[null,-1]},t.prototype.descendants=function(e,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==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&i.push(n),n instanceof t&&(i=i.concat(n.descendants(e,r,o))),o-=a})),i},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,i){e.formatAt(t,i,n,r)}))},t.prototype.insertAt=function(e,t,n){var r=this.children.find(e),i=r[0],o=r[1];if(i)i.insertAt(o,t,n);else{var s=null==n?a.create("text",t):a.create(t,n);this.appendChild(s)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new a.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var r=this.children.find(e,n),i=r[0],o=r[1],a=[[this,e]];return i instanceof t?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,i){e=e.split(r,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,r=[],i=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),i.push.apply(i,e.removedNodes))})),i.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=a.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),r.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=a.find(e.nextSibling));var r=u(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))}))},t}(o.default);function u(e){var t=a.find(e);if(null==t)try{t=a.create(e)}catch(n){t=a.create(a.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),o=n(31),a=n(17),s=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new o.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=s.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var r=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(r),r},t.prototype.update=function(t,n){var r=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===r.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,r){var i=e.prototype.wrap.call(this,n,r);return i instanceof t&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},t}(a.default);t.default=u},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return e={},e[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=o.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,n){var r=n(11),i=n(3),o={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=i(!0,{},t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"===typeof e["delete"]?e["delete"]:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=o.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t["delete"])return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"===typeof t.retain?i.retain=e:"string"===typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.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"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=o},function(e,n){var r=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var n,r,i;try{n=Map}catch(f){n=function(){}}try{r=Set}catch(f){r=function(){}}try{i=Promise}catch(f){i=function(){}}function o(a,s,u,l,f){"object"===typeof s&&(u=s.depth,l=s.prototype,f=s.includeNonEnumerable,s=s.circular);var d=[],h=[],p="undefined"!=typeof t;function m(a,u){if(null===a)return null;if(0===u)return a;var g,v;if("object"!=typeof a)return a;if(e(a,n))g=new n;else if(e(a,r))g=new r;else if(e(a,i))g=new i((function(e,t){a.then((function(t){e(m(t,u-1))}),(function(e){t(m(e,u-1))}))}));else if(o.__isArray(a))g=[];else if(o.__isRegExp(a))g=new RegExp(a.source,c(a)),a.lastIndex&&(g.lastIndex=a.lastIndex);else if(o.__isDate(a))g=new Date(a.getTime());else{if(p&&t.isBuffer(a))return g=t.allocUnsafe?t.allocUnsafe(a.length):new t(a.length),a.copy(g),g;e(a,Error)?g=Object.create(a):"undefined"==typeof l?(v=Object.getPrototypeOf(a),g=Object.create(v)):(g=Object.create(l),v=l)}if(s){var y=d.indexOf(a);if(-1!=y)return h[y];d.push(a),h.push(g)}for(var b in e(a,n)&&a.forEach((function(e,t){var n=m(t,u-1),r=m(e,u-1);g.set(n,r)})),e(a,r)&&a.forEach((function(e){var t=m(e,u-1);g.add(t)})),a){var q;v&&(q=Object.getOwnPropertyDescriptor(v,b)),q&&null==q.set||(g[b]=m(a[b],u-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(a);for(b=0;b<w.length;b++){var _=w[b],x=Object.getOwnPropertyDescriptor(a,_);(!x||x.enumerable||f)&&(g[_]=m(a[_],u-1),x.enumerable||Object.defineProperty(g,_,{enumerable:!1}))}}if(f){var S=Object.getOwnPropertyNames(a);for(b=0;b<S.length;b++){var k=S[b];x=Object.getOwnPropertyDescriptor(a,k);x&&x.enumerable||(g[k]=m(a[k],u-1),Object.defineProperty(g,k,{enumerable:!1}))}}return g}return"undefined"==typeof s&&(s=!0),"undefined"==typeof u&&(u=1/0),m(a,u)}function a(e){return Object.prototype.toString.call(e)}function s(e){return"object"===typeof e&&"[object Date]"===a(e)}function u(e){return"object"===typeof e&&"[object Array]"===a(e)}function l(e){return"object"===typeof e&&"[object RegExp]"===a(e)}function c(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=a,o.__isDate=s,o.__isArray=u,o.__isRegExp=l,o.__getRegExpFlags=c,o}();"object"===typeof e&&e.exports&&(e.exports=r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(u){i=!0,o=u}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=y(a),u=n(8),l=y(u),c=n(4),f=y(c),d=n(16),h=y(d),p=n(13),m=y(p),g=n(25),v=y(g);function y(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function w(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function _(e){return e instanceof f.default||e instanceof c.BlockEmbed}var x=function(e){function t(e,n){b(this,t);var r=q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return w(t,e),i(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var i=this.line(e),a=r(i,2),s=a[0],u=a[1],l=this.line(e+n),f=r(l,1),d=f[0];if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=d&&s!==d&&u>0){if(s instanceof c.BlockEmbed||d instanceof c.BlockEmbed)return void this.optimize();if(s instanceof m.default){var p=s.newlineIndex(s.length(),!0);if(p>-1&&(s=s.split(p+1),s===d))return void this.optimize()}else if(d instanceof m.default){var g=d.newlineIndex(0);g>-1&&d.split(g+1)}var v=d.children.head instanceof h.default?null:d.children.head;s.moveChildren(d,v),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==s.default.query(n,s.default.Scope.BLOCK)){var i=s.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 a=s.default.create(n,r);this.appendChild(a)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===s.default.Scope.INLINE_BLOT){var r=s.default.create(this.statics.defaultChild);r.appendChild(e),e=r}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(_,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,r){var i=[],o=r;return t.children.forEachAt(n,r,(function(t,n,r){_(t)?i.push(t):t instanceof s.default.Container&&(i=i.concat(e(t,n,o))),o-=r})),i};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=l.default.sources.USER;"string"===typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,n,e),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,n,e)}}}]),t}(s.default.Scroll);x.blotName="scroll",x.className="ql-editor",x.tagName="DIV",x.defaultChild="block",x.allowedChildren=[f.default,c.BlockEmbed,v.default],t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(u){i=!0,o=u}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(21),s=S(a),u=n(11),l=S(u),c=n(3),f=S(c),d=n(2),h=S(d),p=n(20),m=S(p),g=n(0),v=S(g),y=n(5),b=S(y),q=n(10),w=S(q),_=n(9),x=S(_);function S(e){return e&&e.__esModule?e:{default:e}}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function O(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var A=(0,w.default)("quill:keyboard"),D=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",T=function(e){function t(e,n){C(this,t);var r=E(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist["list"])&&r.options.bindings[t]&&r.addBinding(r.options.bindings[t])})),r.addBinding({key:t.keys.ENTER,shiftKey:null},R),r.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},M),r.addBinding({key:t.keys.DELETE},{collapsed:!0},N)):(r.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},M),r.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},N)),r.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},I),r.addBinding({key:t.keys.DELETE},{collapsed:!1},I),r.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},M),r.listen(),r}return O(t,e),o(t,null,[{key:"match",value:function(e,t){return t=L(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),o(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=L(e);if(null==r||null==r.key)return A.warn("Attempted to add invalid keyboard binding",r);"function"===typeof t&&(t={handler:t}),"function"===typeof n&&(n={handler:n}),r=(0,f.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(e.bindings[o]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var u=e.quill.getLine(s.index),c=i(u,2),f=c[0],d=c[1],h=e.quill.getLeaf(s.index),p=i(h,2),m=p[0],g=p[1],y=0===s.length?[m,g]:e.quill.getLeaf(s.index+s.length),b=i(y,2),q=b[0],w=b[1],_=m instanceof v.default.Text?m.value().slice(0,g):"",x=q instanceof v.default.Text?q.value().slice(w):"",S={collapsed:0===s.length,empty:0===s.length&&f.length()<=1,format:e.quill.getFormat(s),offset:d,prefix:_,suffix:x},k=a.some((function(t){if(null!=t.collapsed&&t.collapsed!==S.collapsed)return!1;if(null!=t.empty&&t.empty!==S.empty)return!1;if(null!=t.offset&&t.offset!==S.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==S.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=S.format[e]:!1===t.format[e]?null==S.format[e]:(0,l.default)(t.format[e],S.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(S.prefix))&&(!(null!=t.suffix&&!t.suffix.test(S.suffix))&&!0!==t.handler.call(e,s,S))}));k&&n.preventDefault()}}}}))}}]),t}(x.default);function P(e,t){var n,r=e===T.keys.LEFT?"prefix":"suffix";return n={key:e,shiftKey:t,altKey:null},k(n,r,/^$/),k(n,"handler",(function(n){var r=n.index;e===T.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r),a=i(o,1),s=a[0];return!(s instanceof v.default.Embed)||(e===T.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,b.default.sources.USER):this.quill.setSelection(n.index-1,b.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,b.default.sources.USER):this.quill.setSelection(n.index+n.length+1,b.default.sources.USER),!1)})),n}function M(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=i(n,1),o=r[0],a={};if(0===t.offset){var s=this.quill.getLine(e.index-1),u=i(s,1),l=u[0];if(null!=l&&l.length()>1){var c=o.formats(),f=this.quill.getFormat(e.index-1,1);a=m.default.attributes.diff(c,f)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,b.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(e.index-d,d,a,b.default.sources.USER),this.quill.focus()}}function N(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(e.index),s=i(a,1),u=s[0];if(t.offset>=u.length()-1){var l=this.quill.getLine(e.index+1),c=i(l,1),f=c[0];if(f){var d=u.formats(),h=this.quill.getFormat(e.index,1);r=m.default.attributes.diff(d,h)||{},o=f.length()}}this.quill.deleteText(e.index,n,b.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+o-1,n,r,b.default.sources.USER)}}function I(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),i=t[t.length-1].formats();n=m.default.attributes.diff(i,r)||{}}this.quill.deleteText(e,b.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,b.default.sources.USER),this.quill.setSelection(e.index,b.default.sources.SILENT),this.quill.focus()}function R(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return v.default.query(n,v.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,b.default.sources.USER),this.quill.setSelection(e.index+1,b.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],b.default.sources.USER))}))}function j(e){return{key:T.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=v.default.query("code-block"),r=t.index,o=t.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),u=s[0],l=s[1];if(null!=u){var c=this.quill.getIndex(u),f=u.newlineIndex(l,!0)+1,d=u.newlineIndex(c+l+o),h=u.domNode.textContent.slice(f,d).split("\n");l=0,h.forEach((function(t,i){e?(u.insertAt(f+l,n.TAB),l+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):t.startsWith(n.TAB)&&(u.deleteAt(f+l,n.TAB.length),l-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),l+=t.length+1})),this.quill.update(b.default.sources.USER),this.quill.setSelection(r,o,b.default.sources.SILENT)}}}}function F(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],b.default.sources.USER)}}}function L(e){if("string"===typeof e||"number"===typeof e)return L({key:e});if("object"===("undefined"===typeof e?"undefined":r(e))&&(e=(0,s.default)(e,!1)),"string"===typeof e.key)if(null!=T.keys[e.key.toUpperCase()])e.key=T.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[D]=e.shortKey,delete e.shortKey),e}T.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},T.DEFAULTS={bindings:{bold:F("bold"),italic:F("italic"),underline:F("underline"),indent:{key:T.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",b.default.sources.USER)}},outdent:{key:T.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",b.default.sources.USER)}},"outdent backspace":{key:T.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",b.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,b.default.sources.USER)}},"indent code-block":j(!0),"outdent code-block":j(!1),"remove tab":{key:T.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,b.default.sources.USER)}},tab:{key:T.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new h.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,b.default.sources.SILENT)}},"list empty enter":{key:T.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,b.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,b.default.sources.USER)}},"checklist enter":{key:T.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(0,f.default)({},r.formats(),{list:"checked"}),s=(new h.default).retain(e.index).insert("\n",a).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,b.default.sources.USER),this.quill.setSelection(e.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:T.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=i(n,2),o=r[0],a=r[1],s=(new h.default).retain(e.index).insert("\n",t.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,b.default.sources.USER),this.quill.setSelection(e.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),o=i(r,2),a=o[0],s=o[1];if(s>n)return!0;var u=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":u="unchecked";break;case"[x]":u="checked";break;case"-":case"*":u="bullet";break;default:u="ordered"}this.quill.insertText(e.index," ",b.default.sources.USER),this.quill.history.cutoff();var l=(new h.default).retain(e.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:u});this.quill.updateContents(l,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,b.default.sources.SILENT)}},"code exit":{key:T.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(new h.default).retain(e.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,b.default.sources.USER)}},"embed left":P(T.keys.LEFT,!1),"embed left shift":P(T.keys.LEFT,!0),"embed right":P(T.keys.RIGHT,!1),"embed right shift":P(T.keys.RIGHT,!0)}},t.default=T,t.SHORTKEY=D},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(u){i=!0,o=u}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=c(a),u=n(7),l=c(u);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(e,n){f(this,t);var r=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.selection=n,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return h(t,e),o(t,null,[{key:"value",value:function(){}}]),o(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);var r=this,o=0;while(null!=r&&r.statics.scope!==s.default.Scope.BLOCK_BLOT)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=t.CONTENTS.length,r.optimize(),r.formatAt(o,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),i=void 0,o=void 0,a=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var u=[e,n.start.offset,n.end.offset];i=u[0],o=u[1],a=u[2]}while(null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof l.default?(i=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var f=[o,a].map((function(e){return Math.max(0,Math.min(i.data.length,e-1))})),d=r(f,2);return o=d[0],a=d[1],{startNode:i,startOffset:o,endNode:i,endOffset:a}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),t}(s.default.Embed);p.blotName="cursor",p.className="ql-cursor",p.tagName="span",p.CONTENTS="\ufeff",t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=s(r),o=n(4),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),t}(i.default.Container);f.allowedChildren=[a.default,o.BlockEmbed,f],t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"value",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(a.default.Attributor.Style),d=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),h=new f("color","color",{scope:a.default.Scope.INLINE});t.ColorAttributor=f,t.ColorClass=d,t.ColorStyle=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(6),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return d(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(a.default);function d(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(r)>-1}f.blotName="link",f.tagName="A",f.SANITIZED_URL="about:blank",f.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=f,t.sanitize=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(23),a=l(o),s=n(107),u=l(s);function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=0;function d(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var h=function(){function e(t){var n=this;c(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case a.default.keys.ENTER:n.togglePicker();break;case a.default.keys.ESCAPE:n.escape(),e.preventDefault();break;default:}})),this.select.addEventListener("change",this.update.bind(this))}return i(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),d(this.label,"aria-expanded"),d(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case a.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case a.default.keys.ESCAPE:t.escape(),e.preventDefault();break;default:}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=u.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+f,f+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=A(r),o=n(5),a=A(o),s=n(4),u=A(s),l=n(16),c=A(l),f=n(25),d=A(f),h=n(24),p=A(h),m=n(35),g=A(m),v=n(6),y=A(v),b=n(22),q=A(b),w=n(7),_=A(w),x=n(55),S=A(x),k=n(42),C=A(k),E=n(23),O=A(E);function A(e){return e&&e.__esModule?e:{default:e}}a.default.register({"blots/block":u.default,"blots/block/embed":s.BlockEmbed,"blots/break":c.default,"blots/container":d.default,"blots/cursor":p.default,"blots/embed":g.default,"blots/inline":y.default,"blots/scroll":q.default,"blots/text":_.default,"modules/clipboard":S.default,"modules/history":C.default,"modules/keyboard":O.default}),i.default.register(u.default,c.default,p.default,y.default,q.default,_.default),t.default=a.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"===typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){var n=this.isolate(e,t);n.remove()},e.prototype.formatAt=function(e,t,n,i){var o=this.isolate(e,t);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)}},e.prototype.insertAt=function(e,t,n){var i=null==n?r.create("text",t):r.create(t,n),o=this.split(e);this.parent.insertBefore(i,o)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"===typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"===typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);t.concat(n).concat(s).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12);function o(e,t){var n=e.getAttribute("class")||"";return n.split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){var t=o(e,this.keyName);t.forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=o(e,this.keyName)[0]||"",n=t.slice(this.keyName.length+1);return this.canAdd(e,n)?n:""},t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(12);function o(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){var t=e.split(":");return t[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[o(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[o(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[o(this.keyName)];return this.canAdd(e,t)?t:""},t}(i.default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t,n){i(this,e),this.quill=t,this.options=n,this.modules={}}return r(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=l(o),s=n(7),u=l(s);function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h="\ufeff",p=function(e){function t(e){c(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),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 d(t,e),r(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(h).join("");if(e===this.leftGuard)if(this.prev instanceof u.default){var i=this.prev.length();this.prev.insertAt(i,r),t={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(a.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(this.next instanceof u.default?(this.next.insertAt(0,r),t={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(a.default.create(n),this.next),t={startNode:n,startOffset:r.length}));return e.data=h,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}]),t}(a.default.Embed);t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r=n(0),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new i.default.Attributor.Attribute("align","align",a),u=new i.default.Attributor.Class("align","ql-align",a),l=new i.default.Attributor.Style("align","text-align",a);t.AlignAttribute=s,t.AlignClass=u,t.AlignStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r=n(0),i=a(r),o=n(26);function a(e){return e&&e.__esModule?e:{default:e}}var s=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),u=new o.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});t.BackgroundClass=s,t.BackgroundStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r=n(0),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},s=new i.default.Attributor.Attribute("direction","dir",a),u=new i.default.Attributor.Class("direction","ql-direction",a),l=new i.default.Attributor.Style("direction","direction",a);t.DirectionAttribute=s,t.DirectionClass=u,t.DirectionStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new a.default.Attributor.Class("font","ql-font",f),h=function(e){function t(){return u(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(a.default.Attributor.Style),p=new h("font","font-family",f);t.FontStyle=p,t.FontClass=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r=n(0),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a,t.SizeStyle=s},function(e,t,n){"use strict";e.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(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),o=c(i),a=n(5),s=c(a),u=n(9),l=c(u);function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(e){function t(e,n){f(this,t);var r=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(s.default.events.EDITOR_CHANGE,(function(e,t,n,i){e!==s.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==s.default.sources.USER?r.transform(t):r.record(t,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 h(t,e),r(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],s.default.sources.USER),this.ignoreChange=!1;var r=g(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),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),e=i.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,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(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(l.default);function m(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"===typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}function g(e){var t=e.reduce((function(e,t){return e+=t.delete||0,e}),0),n=e.length()-t;return m(e)&&(n-=1),n}p.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=p,t.getLastChangeIndex=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(3),a=x(o),s=n(2),u=x(s),l=n(8),c=x(l),f=n(23),d=x(f),h=n(34),p=x(h),m=n(59),g=x(m),v=n(60),y=x(v),b=n(28),q=x(b),w=n(61),_=x(w);function x(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function C(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var E=[!1,"center","right","justify"],O=["#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"],A=[!1,"serif","monospace"],D=["1","2","3",!1],T=["small",!1,"large","huge"],P=function(e){function t(e,n){S(this,t);var r=k(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),i=function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);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(e){e.container.contains(n.target)||e.close()}))};return e.emitter.listenDOM("click",document.body,i),r}return C(t,e),r(t,[{key:"addModule",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){var n=e.getAttribute("class")||"";n.split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n]["rtl"];else if("string"===typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&I(e,E),new y.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&I(e,O,"background"===n?"#ffffff":"#000000"),new g.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?I(e,A):e.classList.contains("ql-header")?I(e,D):e.classList.contains("ql-size")&&I(e,T)),new q.default(e)}));var r=function(){n.pickers.forEach((function(e){e.update()}))};this.quill.on(c.default.events.EDITOR_CHANGE,r)}}]),t}(p.default);P.DEFAULTS=(0,a.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&(t=document.createElement("input"),t.setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new u.default).retain(r.index).delete(r.length).insert({image:n.target.result}),c.default.sources.USER),e.quill.setSelection(r.index+1,c.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var M=function(e){function t(e,n){S(this,t);var r=k(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return C(t,e),r(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){d.default.match(t,"enter")?(e.save(),t.preventDefault()):d.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==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-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,c.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=N(e);case"formula":if(!e)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"),e,c.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",c.default.sources.USER),this.quill.setSelection(r+2,c.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),t}(_.default);function N(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=M,t.default=P},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){var t,n=this.iterator();while(t=n())if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){var t=0,n=this.head;while(null!=n){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);var n,r=this.iterator();while(n=r()){var i=n.length();if(e<i||t&&e===i&&(null==n.next||0!==n.next.length()))return[n,e];e-=i}return[null,0]},e.prototype.forEach=function(e){var t,n=this.iterator();while(t=n())e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0)){var r,i=this.find(e),o=i[0],a=i[1],s=e-a,u=this.iterator(o);while((r=u())&&s<e+t){var l=r.length();e>s?n(r,e-s,Math.min(t,s+l-e)):n(r,0,Math.min(l,e+t-s)),s+=l}}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){var n,r=this.iterator();while(n=r())t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,u=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,i){this.update(),e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);var a=[].slice.call(this.observer.takeRecords());while(a.length>0)t.push(a.pop());for(var u=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[o.DATA_KEY].mutations&&(e.domNode[o.DATA_KEY].mutations=[]),t&&u(e.parent))},l=function(e){null!=e.domNode[o.DATA_KEY]&&null!=e.domNode[o.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(l),e.optimize(n))},c=t,f=0;c.length>0;f+=1){if(f>=s)throw new Error("[Parchment] Maximum optimize iterations reached");c.forEach((function(e){var t=o.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(u(o.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=o.find(e,!1);u(t,!1),t instanceof i.default&&t.children.forEach((function(e){u(e,!1)}))}))):"attributes"===e.type&&u(t.prev)),u(t))})),this.children.forEach(l),c=[].slice.call(this.observer.takeRecords()),a=c.slice();while(a.length>0)t.push(a.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),t=t||this.observer.takeRecords(),t.map((function(e){var t=o.find(e.target,!0);return null==t?null:null==t.domNode[o.DATA_KEY].mutations?(t.domNode[o.DATA_KEY].mutations=[e],t):(t.domNode[o.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[o.DATA_KEY]&&e.update(e.domNode[o.DATA_KEY].mutations||[],n)})),null!=this.domNode[o.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=u},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(1);function a(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,i){if(null!=this.formats()[r]||o.query(r,o.Scope.ATTRIBUTE)){var a=this.isolate(t,n);a.format(r,i)}else e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof t&&i.prev===this&&a(r,i.formats())&&(i.moveChildren(this),i.remove())},t.blotName="inline",t.scope=o.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var r=o.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,i){null!=o.query(r,o.Scope.BLOCK)?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=o.query(n,o.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var i=this.split(t),a=o.create(n,r);i.parent.insertBefore(a,i)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,i){0===t&&n===this.length()?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(i.default);t.default=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),o=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t["normalize"]&&(t=t["normalize"]()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=o.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=o.Scope.INLINE_BLOT,t}(i.default);t.default=a},function(e,t,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(e,t){return arguments.length>1&&!this.contains(e)===!t?t:i.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!==typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(t=n[o],e.call(i,t,o,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,r=1,i=0;function o(e,t,n){if(e==t)return e?[[i,e]]:[];(n<0||e.length<n)&&(n=null);var r=l(e,t),o=e.substring(0,r);e=e.substring(r),t=t.substring(r),r=c(e,t);var s=e.substring(e.length-r);e=e.substring(0,e.length-r),t=t.substring(0,t.length-r);var u=a(e,t);return o&&u.unshift([i,o]),s&&u.push([i,s]),d(u),null!=n&&(u=m(u,n)),u=g(u),u}function a(e,t){var a;if(!e)return[[r,t]];if(!t)return[[n,e]];var u=e.length>t.length?e:t,l=e.length>t.length?t:e,c=u.indexOf(l);if(-1!=c)return a=[[r,u.substring(0,c)],[i,l],[r,u.substring(c+l.length)]],e.length>t.length&&(a[0][0]=a[2][0]=n),a;if(1==l.length)return[[n,e],[r,t]];var d=f(e,t);if(d){var h=d[0],p=d[1],m=d[2],g=d[3],v=d[4],y=o(h,m),b=o(p,g);return y.concat([[i,v]],b)}return s(e,t)}function s(e,t){for(var i=e.length,o=t.length,a=Math.ceil((i+o)/2),s=a,l=2*a,c=new Array(l),f=new Array(l),d=0;d<l;d++)c[d]=-1,f[d]=-1;c[s+1]=0,f[s+1]=0;for(var h=i-o,p=h%2!=0,m=0,g=0,v=0,y=0,b=0;b<a;b++){for(var q=-b+m;q<=b-g;q+=2){var w=s+q;E=q==-b||q!=b&&c[w-1]<c[w+1]?c[w+1]:c[w-1]+1;var _=E-q;while(E<i&&_<o&&e.charAt(E)==t.charAt(_))E++,_++;if(c[w]=E,E>i)g+=2;else if(_>o)m+=2;else if(p){var x=s+h-q;if(x>=0&&x<l&&-1!=f[x]){var S=i-f[x];if(E>=S)return u(e,t,E,_)}}}for(var k=-b+v;k<=b-y;k+=2){x=s+k;S=k==-b||k!=b&&f[x-1]<f[x+1]?f[x+1]:f[x-1]+1;var C=S-k;while(S<i&&C<o&&e.charAt(i-S-1)==t.charAt(o-C-1))S++,C++;if(f[x]=S,S>i)y+=2;else if(C>o)v+=2;else if(!p){w=s+h-k;if(w>=0&&w<l&&-1!=c[w]){var E=c[w];_=s+E-w;if(S=i-S,E>=S)return u(e,t,E,_)}}}}return[[n,e],[r,t]]}function u(e,t,n,r){var i=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),u=t.substring(r),l=o(i,a),c=o(s,u);return l.concat(c)}function l(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;var n=0,r=Math.min(e.length,t.length),i=r,o=0;while(n<i)e.substring(o,i)==t.substring(o,i)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function c(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;var n=0,r=Math.min(e.length,t.length),i=r,o=0;while(n<i)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function f(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function i(e,t,n){var r,i,o,a,s=e.substring(n,n+Math.floor(e.length/4)),u=-1,f="";while(-1!=(u=t.indexOf(s,u+1))){var d=l(e.substring(n),t.substring(u)),h=c(e.substring(0,n),t.substring(0,u));f.length<h+d&&(f=t.substring(u-h,u)+t.substring(u,u+d),r=e.substring(0,n-h),i=e.substring(n+d),o=t.substring(0,u-h),a=t.substring(u+d))}return 2*f.length>=e.length?[r,i,o,a,f]:null}var o,a,s,u,f,d=i(n,r,Math.ceil(n.length/4)),h=i(n,r,Math.ceil(n.length/2));if(!d&&!h)return null;o=h?d&&d[4].length>h[4].length?d:h:d,e.length>t.length?(a=o[0],s=o[1],u=o[2],f=o[3]):(u=o[0],f=o[1],a=o[2],s=o[3]);var p=o[4];return[a,s,u,f,p]}function d(e){e.push([i,""]);var t,o=0,a=0,s=0,u="",f="";while(o<e.length)switch(e[o][0]){case r:s++,f+=e[o][1],o++;break;case n:a++,u+=e[o][1],o++;break;case i:a+s>1?(0!==a&&0!==s&&(t=l(f,u),0!==t&&(o-a-s>0&&e[o-a-s-1][0]==i?e[o-a-s-1][1]+=f.substring(0,t):(e.splice(0,0,[i,f.substring(0,t)]),o++),f=f.substring(t),u=u.substring(t)),t=c(f,u),0!==t&&(e[o][1]=f.substring(f.length-t)+e[o][1],f=f.substring(0,f.length-t),u=u.substring(0,u.length-t))),0===a?e.splice(o-s,a+s,[r,f]):0===s?e.splice(o-a,a+s,[n,u]):e.splice(o-a-s,a+s,[n,u],[r,f]),o=o-a-s+(a?1:0)+(s?1:0)+1):0!==o&&e[o-1][0]==i?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,s=0,a=0,u="",f="";break}""===e[e.length-1][1]&&e.pop();var h=!1;o=1;while(o<e.length-1)e[o-1][0]==i&&e[o+1][0]==i&&(e[o][1].substring(e[o][1].length-e[o-1][1].length)==e[o-1][1]?(e[o][1]=e[o-1][1]+e[o][1].substring(0,e[o][1].length-e[o-1][1].length),e[o+1][1]=e[o-1][1]+e[o+1][1],e.splice(o-1,1),h=!0):e[o][1].substring(0,e[o+1][1].length)==e[o+1][1]&&(e[o-1][1]+=e[o+1][1],e[o][1]=e[o][1].substring(e[o+1][1].length)+e[o+1][1],e.splice(o+1,1),h=!0)),o++;h&&d(e)}var h=o;function p(e,t){if(0===t)return[i,e];for(var r=0,o=0;o<e.length;o++){var a=e[o];if(a[0]===n||a[0]===i){var s=r+a[1].length;if(t===s)return[o+1,e];if(t<s){e=e.slice();var u=t-r,l=[a[0],a[1].slice(0,u)],c=[a[0],a[1].slice(u)];return e.splice(o,1,l,c),[o+1,e]}r=s}}throw new Error("cursor_pos is out of bounds!")}function m(e,t){var n=p(e,t),r=n[1],o=n[0],a=r[o],s=r[o+1];if(null==a)return e;if(a[0]!==i)return e;if(null!=s&&a[1]+s[1]===s[1]+a[1])return r.splice(o,2,s,a),v(r,o,2);if(null!=s&&0===s[1].indexOf(a[1])){r.splice(o,2,[s[0],a[1]],[0,a[1]]);var u=s[1].slice(a[1].length);return u.length>0&&r.splice(o+2,0,[s[0],u]),v(r,o,3)}return e}function g(e){for(var t=!1,o=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},s=2;s<e.length;s+=1)e[s-2][0]===i&&a(e[s-2][1])&&e[s-1][0]===n&&o(e[s-1][1])&&e[s][0]===r&&o(e[s][1])&&(t=!0,e[s-1][1]=e[s-2][1].slice(-1)+e[s-1][1],e[s][1]=e[s-2][1].slice(-1)+e[s][1],e[s-2][1]=e[s-2][1].slice(0,-1));if(!t)return e;var u=[];for(s=0;s<e.length;s+=1)e[s][1].length>0&&u.push(e[s]);return u}function v(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1<e.length){var i=e[r],o=e[r+1];i[0]===o[1]&&e.splice(r,2,[i[0],i[1]+o[1]])}return e}h.INSERT=r,h.DELETE=n,h.EQUAL=i,e.exports=h},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"===typeof Object.keys?Object.keys:n,t.shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function i(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}t=e.exports=n?r:i,t.supported=r,t.unsupported=i},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,t,i=[];if(0===this._eventsCount)return i;for(t in e=this._events)n.call(e,t)&&i.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e,t){var n=r?r+e:e,i=this._events[n];if(t)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var o=0,a=i.length,s=new Array(a);o<a;o++)s[o]=i[o].fn;return s},a.prototype.emit=function(e,t,n,i,o,a){var s=r?r+e:e;if(!this._events[s])return!1;var u,l,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,o),!0;case 6:return c.fn.call(c.context,t,n,i,o,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var d,h=c.length;for(l=0;l<h;l++)switch(c[l].once&&this.removeListener(e,c[l].fn,void 0,!0),f){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,t);break;case 3:c[l].fn.call(c[l].context,t,n);break;case 4:c[l].fn.call(c[l].context,t,n,i);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];c[l].fn.apply(c[l].context,u)}}return!0},a.prototype.on=function(e,t,n){var i=new o(t,n||this),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.once=function(e,t,n){var i=new o(t,n||this,!0),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,o){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return 0===--this._eventsCount?this._events=new i:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||(0===--this._eventsCount?this._events=new i:delete this._events[a]);else{for(var u=0,l=[],c=s.length;u<c;u++)(s[u].fn!==t||o&&!s[u].once||n&&s[u].context!==n)&&l.push(s[u]);l.length?this._events[a]=1===l.length?l[0]:l:0===--this._eventsCount?this._events=new i:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0===--this._eventsCount?this._events=new i:delete this._events[t])):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,"undefined"!==typeof e&&(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(u){i=!0,o=u}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(3),s=C(a),u=n(2),l=C(u),c=n(0),f=C(c),d=n(5),h=C(d),p=n(10),m=C(p),g=n(9),v=C(g),y=n(36),b=n(37),q=n(13),w=C(q),_=n(26),x=n(38),S=n(39),k=n(40);function C(e){return e&&e.__esModule?e:{default:e}}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function D(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var T=(0,m.default)("quill:clipboard"),P="__ql-matcher",M=[[Node.TEXT_NODE,J],[Node.TEXT_NODE,G],["br",V],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,$],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,K],["li",X],["b",z.bind(z,"bold")],["i",z.bind(z,"italic")],["style",W]],N=[y.AlignAttribute,x.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),I=[y.AlignStyle,b.BackgroundStyle,_.ColorStyle,x.DirectionStyle,S.FontStyle,k.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),R=function(e){function t(e,n){O(this,t);var r=A(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,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=[],M.concat(r.options.matchers).forEach((function(e){var t=i(e,2),o=t[0],a=t[1];(n.matchVisual||a!==Y)&&r.addMatcher(o,a)})),r}return D(t,e),o(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"===typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[w.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(n,E({},w.default.blotName,t[w.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],s=o[1],u=U(this.container,a,s);return L(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new l.default).retain(u.length()-1).delete(1))),T.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,h.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),h.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new l.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(h.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,h.default.sources.USER),t.quill.setSelection(r.length()-n.length,h.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=i,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[P]=e[P]||[],e[P].push(s)}));break}})),[t,n]}}]),t}(v.default);function j(e,t,n){return"object"===("undefined"===typeof t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return j(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,s.default)({},E({},t,n),r.attributes))}),new l.default)}function F(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function L(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length<t.length;--r){var i=e.ops[r];if("string"!==typeof i.insert)break;n=i.insert+n}return n.slice(-1*t.length)===t}function B(e){if(0===e.childNodes.length)return!1;var t=F(e);return["block","list-item"].indexOf(t.display)>-1}function U(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new l.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,i){var o=U(i,t,n);return i.nodeType===e.ELEMENT_NODE&&(o=t.reduce((function(e,t){return t(i,e)}),o),o=(i[P]||[]).reduce((function(e,t){return t(i,e)}),o)),r.concat(o)}),new l.default):new l.default}function z(e,t,n){return j(n,e,!0)}function H(e,t){var n=f.default.Attributor.Attribute.keys(e),r=f.default.Attributor.Class.keys(e),i=f.default.Attributor.Style.keys(e),o={};return n.concat(r).concat(i).forEach((function(t){var n=f.default.query(t,f.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(e),o[n.attrName])||(n=N[t],null==n||n.attrName!==t&&n.keyName!==t||(o[n.attrName]=n.value(e)||void 0),n=I[t],null==n||n.attrName!==t&&n.keyName!==t||(n=I[t],o[n.attrName]=n.value(e)||void 0))})),Object.keys(o).length>0&&(t=j(t,o)),t}function $(e,t){var n=f.default.query(e);if(null==n)return t;if(n.prototype instanceof f.default.Embed){var r={},i=n.value(e);null!=i&&(r[n.blotName]=i,t=(new l.default).insert(r,n.formats(e)))}else"function"===typeof n.formats&&(t=j(t,n.blotName,n.formats(e)));return t}function V(e,t){return L(t,"\n")||t.insert("\n"),t}function W(){return new l.default}function X(e,t){var n=f.default.query(e);if(null==n||"list-item"!==n.blotName||!L(t,"\n"))return t;var r=-1,i=e.parentNode;while(!i.classList.contains("ql-clipboard"))"list"===(f.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:r}))}function G(e,t){return L(t,"\n")||(B(e)||t.length()>0&&e.nextSibling&&B(e.nextSibling))&&t.insert("\n"),t}function Y(e,t){if(B(e)&&null!=e.nextElementSibling&&!L(t,"\n\n")){var n=e.offsetHeight+parseFloat(F(e).marginTop)+parseFloat(F(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function K(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===F(e).fontStyle&&(n.italic=!0),r.fontWeight&&(F(e).fontWeight.startsWith("bold")||parseInt(F(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=j(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new l.default).insert("\t").concat(t)),t}function J(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!F(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return t=t.replace(/[^\u00a0]/g,""),t.length<1&&e?" ":t};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&B(e.parentNode)||null!=e.previousSibling&&B(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&B(e.parentNode)||null!=e.nextSibling&&B(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}R.DEFAULTS={matchers:[],matchVisual:!0},t.default=R,t.matchAttributor=H,t.matchBlot=$,t.matchNewline=G,t.matchSpacing=Y,t.matchText=J},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(6),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(a.default);f.blotName="bold",f.tagName=["STRONG","B"],t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(u){i=!0,o=u}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(2),a=m(o),s=n(0),u=m(s),l=n(5),c=m(l),f=n(10),d=m(f),h=n(9),p=m(h);function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function b(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var q=(0,d.default)("quill:toolbar"),w=function(e){function t(e,n){v(this,t);var i,o=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(o.options.container)){var a=document.createElement("div");x(a,o.options.container),e.container.parentNode.insertBefore(a,e.container),o.container=a}else"string"===typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(e){o.addHandler(e,o.options.handlers[e])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(e){o.attach(e)})),o.quill.on(c.default.events.EDITOR_CHANGE,(function(e,t){e===c.default.events.SELECTION_CHANGE&&o.update(t)})),o.quill.on(c.default.events.SCROLL_OPTIMIZE,(function(){var e=o.quill.selection.getRange(),t=r(e,1),n=t[0];o.update(n)})),o):(i=q.error("Container required for toolbar",o.options),y(o,i))}return b(t,e),i(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void q.warn("ignoring attaching to disabled format",n,e);if(null==u.default.query(n))return void q.warn("ignoring attaching to nonexistent format",n,e)}var i="SELECT"===e.tagName?"change":"click";e.addEventListener(i,(function(i){var o=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var s=e.options[e.selectedIndex];o=!s.hasAttribute("selected")&&(s.value||!1)}else o=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),i.preventDefault();t.quill.focus();var l=t.quill.selection.getRange(),f=r(l,1),d=f[0];if(null!=t.handlers[n])t.handlers[n].call(t,o);else if(u.default.query(n).prototype instanceof u.default.Embed){if(o=prompt("Enter "+n),!o)return;t.quill.updateContents((new a.default).retain(d.index).delete(d.length).insert(g({},n,o)),c.default.sources.USER)}else t.quill.format(n,o,c.default.sources.USER);t.update(d)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var i=r(n,2),o=i[0],a=i[1];if("SELECT"===a.tagName){var s=void 0;if(null==e)s=null;else if(null==t[o])s=a.querySelector("option[selected]");else if(!Array.isArray(t[o])){var u=t[o];"string"===typeof u&&(u=u.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+u+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var l=t[o]===a.getAttribute("value")||null!=t[o]&&t[o].toString()===a.getAttribute("value")||null==t[o]&&!a.getAttribute("value");a.classList.toggle("ql-active",l)}else a.classList.toggle("ql-active",null!=t[o])}))}}]),t}(p.default);function _(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function x(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"===typeof e)_(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?S(n,t,r):_(n,t,r)}})),e.appendChild(n)}))}function S(e,t,n){var r=document.createElement("select");r.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),r.appendChild(t)})),e.appendChild(r)}w.DEFAULTS={},w.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=u.default.query(t,u.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,c.default.sources.USER)},direction:function(e){var t=this.quill.getFormat()["align"];"rtl"===e&&null==t?this.quill.format("align","right",c.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",e,c.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var i="+1"===e?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,c.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,c.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n["list"]||"unchecked"===n["list"]?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",e,c.default.sources.USER)}}},t.default=w,t.addControls=x},function(e,t){e.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(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(28),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,n){u(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),r}return c(t,e),r(t,[{key:"buildItem",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var r=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),t}(a.default);t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(28),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,n){u(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return c(t,e),r(t,[{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(a.default);t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t,n){var r=this;i(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"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=t+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=t+o+"px"),i.bottom>r.bottom){var a=i.bottom-i.top,s=e.bottom-e.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")}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(u){i=!0,o=u}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(3),s=v(a),u=n(8),l=v(u),c=n(43),f=v(c),d=n(27),h=v(d),p=n(15),m=n(41),g=v(m);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function q(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var w=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],_=function(e){function t(e,n){y(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=w);var r=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-snow"),r}return q(t,e),o(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),g.default),this.tooltip=new x(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers["link"].call(e,!n.format.link)}))}}]),t}(f.default);_.DEFAULTS=(0,s.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);var r=this.quill.theme.tooltip;r.edit("link",n)}else this.quill.format("link",!1)}}}}});var x=function(e){function t(e,n){y(this,t);var r=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return q(t,e),o(t,[{key:"listen",value:function(){var e=this;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,l.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(l.default.events.SELECTION_CHANGE,(function(t,n,i){if(null!=t){if(0===t.length&&i===l.default.sources.USER){var o=e.quill.scroll.descendant(h.default,t.index),a=r(o,2),s=a[0],u=a[1];if(null!=s){e.linkRange=new p.Range(t.index-u,s.length());var c=h.default.formats(s.domNode);return e.preview.textContent=c,e.preview.setAttribute("href",c),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(c.BaseTooltip);x.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" 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(""),t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29),i=ne(r),o=n(36),a=n(38),s=n(64),u=n(65),l=ne(u),c=n(66),f=ne(c),d=n(67),h=ne(d),p=n(37),m=n(26),g=n(39),v=n(40),y=n(56),b=ne(y),q=n(68),w=ne(q),_=n(27),x=ne(_),S=n(69),k=ne(S),C=n(70),E=ne(C),O=n(71),A=ne(O),D=n(72),T=ne(D),P=n(73),M=ne(P),N=n(13),I=ne(N),R=n(74),j=ne(R),F=n(75),L=ne(F),B=n(57),U=ne(B),z=n(41),H=ne(z),$=n(28),V=ne($),W=n(59),X=ne(W),G=n(60),Y=ne(G),K=n(61),J=ne(K),Z=n(108),Q=ne(Z),ee=n(62),te=ne(ee);function ne(e){return e&&e.__esModule?e:{default:e}}i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":g.FontClass,"attributors/class/size":v.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":g.FontStyle,"attributors/style/size":v.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":g.FontClass,"formats/size":v.SizeClass,"formats/blockquote":l.default,"formats/code-block":I.default,"formats/header":f.default,"formats/list":h.default,"formats/bold":b.default,"formats/code":N.Code,"formats/italic":w.default,"formats/link":x.default,"formats/script":k.default,"formats/strike":E.default,"formats/underline":A.default,"formats/image":T.default,"formats/video":M.default,"formats/list/item":d.ListItem,"modules/formula":j.default,"modules/syntax":L.default,"modules/toolbar":U.default,"themes/bubble":Q.default,"themes/snow":te.default,"ui/icons":H.default,"ui/picker":V.default,"ui/icon-picker":Y.default,"ui/color-picker":X.default,"ui/tooltip":J.default},!0),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var r=this.value(e)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(a.default.Attributor.Class),d=new f("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),t}(i.default);l.blotName="blockquote",l.tagName="blockquote",t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(4),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),r(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(o.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=f(o),s=n(4),u=f(s),l=n(25),c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function m(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e){function t(){return h(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return m(t,e),r(t,[{key:"format",value:function(e,n){e!==v.blotName||n?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:i(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(u.default);g.blotName="list-item",g.tagName="LI";var v=function(e){function t(e){h(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=function(t){if(t.target.parentNode===e){var r=n.statics.formats(e),i=a.default.find(t.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return e.addEventListener("touchstart",r),e.addEventListener("mousedown",r),n}return m(t,e),r(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",r=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||r.setAttribute("data-checked","checked"===e),r}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return d({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof g)i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(e,o)}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);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(e){if(e.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(c.default);v.blotName="list",v.scope=a.default.Scope.BLOCK_BLOT,v.tagName=["OL","UL"],v.defaultChild="list-item",v.allowedChildren=[g],t.ListItem=g,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(56),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),t}(i.default);l.blotName="italic",l.tagName=["EM","I"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(6),a=s(o);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return u(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),r(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(a.default);f.blotName="script",f.tagName=["SUB","SUP"],t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),t}(i.default);l.blotName="strike",l.tagName="S",t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),t}(i.default);l.blotName="underline",l.tagName="U",t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=u(o),s=n(27);function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["alt","height","width"],h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.default.Embed);h.blotName="image",h.tagName="IMG",t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(4),a=n(27),s=u(a);function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=["height","width"],h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(o.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(35),a=f(o),s=n(5),u=f(s),l=n(9),c=f(l);function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return d(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),r(t,null,[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(a.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var g=function(e){function t(){d(this,t);var e=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return p(t,e),r(t,null,[{key:"register",value:function(){u.default.register(m,!0)}}]),t}(c.default);t.FormulaBlot=m,t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=h(o),s=n(5),u=h(s),l=n(9),c=h(l),f=n(13),d=h(f);function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function g(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=function(e){function t(){return p(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return g(t,e),r(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(d.default);v.className="ql-syntax";var y=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),b=function(e){function t(e,n){p(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,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 i=null;return r.quill.on(u.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return g(t,e),r(t,null,[{key:"register",value:function(){u.default.register(y,!0),u.default.register(v,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(v).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(u.default.sources.SILENT),null!=t&&this.quill.setSelection(t,u.default.sources.SILENT)}}}]),t}(c.default);b.DEFAULTS={highlight:function(){return null==window.hljs?null:function(e){var t=window.hljs.highlightAuto(e);return t.value}}(),interval:1e3},t.CodeBlock=v,t.CodeToken=y,t.default=b},function(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t){e.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(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(3),a=p(o),s=n(8),u=p(s),l=n(43),c=p(l),f=n(15),d=n(41),h=p(d);function p(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function v(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(e){function t(e,n){m(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=y);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.container.classList.add("ql-bubble"),r}return v(t,e),i(t,[{key:"extendToolbar",value:function(e){this.tooltip=new q(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),h.default)}}]),t}(c.default);b.DEFAULTS=(0,a.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var q=function(e){function t(e,n){m(this,t);var r=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.on(u.default.events.EDITOR_CHANGE,(function(e,t,n,i){if(e===u.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&i===u.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(t.index,t.length);if(1===o.length)r.position(r.quill.getBounds(t));else{var a=o[o.length-1],s=r.quill.getIndex(a),l=Math.min(a.length()-1,t.index+t.length-s),c=r.quill.getBounds(new f.Range(s,l));r.position(c)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return v(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(u.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);q.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(""),t.BubbleTooltip=q,t.default=b},function(e,t,n){e.exports=n(63)}])["default"]}))}).call(this,n("b639").Buffer)},"93ed":function(e,t,n){var r=n("4245");function i(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=i},"94b2":function(e,t,n){"use strict";e.exports=n("8db5")},9520:function(e,t,n){var r=n("3729"),i=n("1a8c"),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";function l(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==u}e.exports=l},9638:function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},"966f":function(e,t,n){var r=n("7e64"),i=n("c05f"),o=1,a=2;function s(e,t,n,s){var u=n.length,l=u,c=!s;if(null==e)return!l;e=Object(e);while(u--){var f=n[u];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}while(++u<l){f=n[u];var d=f[0],h=e[d],p=f[1];if(c&&f[2]){if(void 0===h&&!(d in e))return!1}else{var m=new r;if(s)var g=s(h,p,d,e,t,m);if(!(void 0===g?i(p,h,o|a,s,m):g))return!1}}return!0}e.exports=s},"96ae":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;(function(global){var qq=function(e){"use strict";return{hide:function(){return e.style.display="none",this},attach:function(t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n),function(){qq(e).detach(t,n)}},detach:function(t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.attachEvent&&e.detachEvent("on"+t,n),this},contains:function(t){return!!t&&(e===t||(e.contains?e.contains(t):!!(8&t.compareDocumentPosition(e))))},insertBefore:function(t){return t.parentNode.insertBefore(e,t),this},remove:function(){return e.parentNode.removeChild(e),this},css:function(t){if(null==e.style)throw new qq.Error("Can't apply style to node as it is not on the HTMLElement prototype chain!");return null!=t.opacity&&"string"!==typeof e.style.opacity&&"undefined"!==typeof e.filters&&(t.filter="alpha(opacity="+Math.round(100*t.opacity)+")"),qq.extend(e.style,t),this},hasClass:function(t,n){var r=new RegExp("(^| )"+t+"( |$)");return r.test(e.className)||!(!n||!r.test(e.parentNode.className))},addClass:function(t){return qq(e).hasClass(t)||(e.className+=" "+t),this},removeClass:function(t){var n=new RegExp("(^| )"+t+"( |$)");return e.className=e.className.replace(n," ").replace(/^\s+|\s+$/g,""),this},getByClass:function(t,n){var r,i=[];return n&&e.querySelector?e.querySelector("."+t):e.querySelectorAll?e.querySelectorAll("."+t):(r=e.getElementsByTagName("*"),qq.each(r,(function(e,n){qq(n).hasClass(t)&&i.push(n)})),n?i[0]:i)},getFirstByClass:function(t){return qq(e).getByClass(t,!0)},children:function(){var t=[],n=e.firstChild;while(n)1===n.nodeType&&t.push(n),n=n.nextSibling;return t},setText:function(t){return e.innerText=t,e.textContent=t,this},clearText:function(){return qq(e).setText("")},hasAttribute:function(t){var n;return e.hasAttribute?!!e.hasAttribute(t)&&null==/^false$/i.exec(e.getAttribute(t)):(n=e[t],void 0!==n&&null==/^false$/i.exec(n))}}};(function(){"use strict";qq.canvasToBlob=function(e,t,n){return qq.dataUriToBlob(e.toDataURL(t,n))},qq.dataUriToBlob=function(e){var t,n,r,i,o=function(e,t){var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,r=n&&new n;return r?(r.append(e),r.getBlob(t)):new Blob([e],{type:t})};return n=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):decodeURI(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],t=new ArrayBuffer(n.length),r=new Uint8Array(t),qq.each(n,(function(e,t){r[e]=t.charCodeAt(0)})),o(t,i)},qq.log=function(e,t){window.console&&(t&&"info"!==t?window.console[t]?window.console[t](e):window.console.log("<"+t+"> "+e):window.console.log(e))},qq.isObject=function(e){return e&&!e.nodeType&&"[object Object]"===Object.prototype.toString.call(e)},qq.isFunction=function(e){return"function"===typeof e},qq.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)||e&&window.ArrayBuffer&&e.buffer&&e.buffer.constructor===ArrayBuffer},qq.isItemList=function(e){return"[object DataTransferItemList]"===Object.prototype.toString.call(e)},qq.isNodeList=function(e){return"[object NodeList]"===Object.prototype.toString.call(e)||e.item&&e.namedItem},qq.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},qq.trimStr=function(e){return String.prototype.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},qq.format=function(e){var t=Array.prototype.slice.call(arguments,1),n=e,r=n.indexOf("{}");return qq.each(t,(function(e,t){var i=n.substring(0,r),o=n.substring(r+2);if(n=i+t+o,r=n.indexOf("{}",r+t.length),r<0)return!1})),n},qq.isFile=function(e){return window.File&&"[object File]"===Object.prototype.toString.call(e)},qq.isFileList=function(e){return window.FileList&&"[object FileList]"===Object.prototype.toString.call(e)},qq.isFileOrInput=function(e){return qq.isFile(e)||qq.isInput(e)},qq.isInput=function(e,t){var n=function(e){var n=e.toLowerCase();return t?"file"!==n:"file"===n};return!!(window.HTMLInputElement&&"[object HTMLInputElement]"===Object.prototype.toString.call(e)&&e.type&&n(e.type))||!!(e.tagName&&"input"===e.tagName.toLowerCase()&&e.type&&n(e.type))},qq.isBlob=function(e){if(window.Blob&&"[object Blob]"===Object.prototype.toString.call(e))return!0},qq.isXhrUploadSupported=function(){var e=document.createElement("input");return e.type="file",void 0!==e.multiple&&"undefined"!==typeof File&&"undefined"!==typeof FormData&&"undefined"!==typeof qq.createXhrInstance().upload},qq.createXhrInstance=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(e){return qq.log("Neither XHR or ActiveX are supported!","error"),null}},qq.isFolderDropSupported=function(e){return e.items&&e.items.length>0&&e.items[0].webkitGetAsEntry},qq.isFileChunkingSupported=function(){return!qq.androidStock()&&qq.isXhrUploadSupported()&&(void 0!==File.prototype.slice||void 0!==File.prototype.webkitSlice||void 0!==File.prototype.mozSlice)},qq.sliceBlob=function(e,t,n){var r=e.slice||e.mozSlice||e.webkitSlice;return r.call(e,t,n)},qq.arrayBufferToHex=function(e){var t="",n=new Uint8Array(e);return qq.each(n,(function(e,n){var r=n.toString(16);r.length<2&&(r="0"+r),t+=r})),t},qq.readBlobToHex=function(e,t,n){var r=qq.sliceBlob(e,t,t+n),i=new FileReader,o=new qq.Promise;return i.onload=function(){o.success(qq.arrayBufferToHex(i.result))},i.onerror=o.failure,i.readAsArrayBuffer(r),o},qq.extend=function(e,t,n){return qq.each(t,(function(t,r){n&&qq.isObject(r)?(void 0===e[t]&&(e[t]={}),qq.extend(e[t],r,!0)):e[t]=r})),e},qq.override=function(e,t){var n={},r=t(n);return qq.each(r,(function(t,r){void 0!==e[t]&&(n[t]=e[t]),e[t]=r})),e},qq.indexOf=function(e,t,n){if(e.indexOf)return e.indexOf(t,n);n=n||0;var r=e.length;for(n<0&&(n+=r);n<r;n+=1)if(e.hasOwnProperty(n)&&e[n]===t)return n;return-1},qq.getUniqueId=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)}))},qq.ie=function(){return-1!==navigator.userAgent.indexOf("MSIE")||-1!==navigator.userAgent.indexOf("Trident")},qq.ie7=function(){return-1!==navigator.userAgent.indexOf("MSIE 7")},qq.ie8=function(){return-1!==navigator.userAgent.indexOf("MSIE 8")},qq.ie10=function(){return-1!==navigator.userAgent.indexOf("MSIE 10")},qq.ie11=function(){return qq.ie()&&-1!==navigator.userAgent.indexOf("rv:11")},qq.edge=function(){return navigator.userAgent.indexOf("Edge")>=0},qq.safari=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Apple")},qq.chrome=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Google")},qq.opera=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Opera")},qq.firefox=function(){return!qq.edge()&&!qq.ie11()&&-1!==navigator.userAgent.indexOf("Mozilla")&&void 0!==navigator.vendor&&""===navigator.vendor},qq.windows=function(){return"Win32"===navigator.platform},qq.android=function(){return-1!==navigator.userAgent.toLowerCase().indexOf("android")},qq.androidStock=function(){return qq.android()&&navigator.userAgent.toLowerCase().indexOf("chrome")<0},qq.ios6=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 6_")},qq.ios7=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 7_")},qq.ios8=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 8_")},qq.ios800=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 8_0 ")},qq.ios=function(){return-1!==navigator.userAgent.indexOf("iPad")||-1!==navigator.userAgent.indexOf("iPod")||-1!==navigator.userAgent.indexOf("iPhone")},qq.iosChrome=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf("CriOS")},qq.iosSafari=function(){return qq.ios()&&!qq.iosChrome()&&-1!==navigator.userAgent.indexOf("Safari")},qq.iosSafariWebView=function(){return qq.ios()&&!qq.iosChrome()&&!qq.iosSafari()},qq.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},qq.toElement=function(){var e=document.createElement("div");return function(t){e.innerHTML=t;var n=e.firstChild;return e.removeChild(n),n}}(),qq.each=function(e,t){var n,r;if(e)if(window.Storage&&e.constructor===window.Storage){for(n=0;n<e.length;n++)if(r=t(e.key(n),e.getItem(e.key(n))),!1===r)break}else if(qq.isArray(e)||qq.isItemList(e)||qq.isNodeList(e)){for(n=0;n<e.length;n++)if(r=t(n,e[n]),!1===r)break}else if(qq.isString(e)){for(n=0;n<e.length;n++)if(r=t(n,e.charAt(n)),!1===r)break}else for(n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&(r=t(n,e[n]),!1===r))break},qq.bind=function(e,t){if(qq.isFunction(e)){var n=Array.prototype.slice.call(arguments,2);return function(){var r=qq.extend([],n);return arguments.length&&(r=r.concat(Array.prototype.slice.call(arguments))),e.apply(t,r)}}throw new Error("first parameter must be a function!")},qq.obj2url=function(e,t,n){var r=[],i="&",o=function(e,n){var i=t?/\[\]$/.test(t)?t:t+"["+n+"]":n;"undefined"!==i&&"undefined"!==n&&r.push("object"===typeof e?qq.obj2url(e,i,!0):"[object Function]"===Object.prototype.toString.call(e)?encodeURIComponent(i)+"="+encodeURIComponent(e()):encodeURIComponent(i)+"="+encodeURIComponent(e))};return!n&&t?(i=/\?/.test(t)?/\?$/.test(t)?"":"&":"?",r.push(t),r.push(qq.obj2url(e))):"[object Array]"===Object.prototype.toString.call(e)&&"undefined"!==typeof e?qq.each(e,(function(e,t){o(t,e)})):"undefined"!==typeof e&&null!==e&&"object"===typeof e?qq.each(e,(function(e,t){o(t,e)})):r.push(encodeURIComponent(t)+"="+encodeURIComponent(e)),t?r.join(i):r.join(i).replace(/^&/,"").replace(/%20/g,"+")},qq.obj2FormData=function(e,t,n){return t||(t=new FormData),qq.each(e,(function(e,r){e=n?n+"["+e+"]":e,qq.isObject(r)?qq.obj2FormData(r,t,e):qq.isFunction(r)?t.append(e,r()):t.append(e,r)})),t},qq.obj2Inputs=function(e,t){var n;return t||(t=document.createElement("form")),qq.obj2FormData(e,{append:function(e,r){n=document.createElement("input"),n.setAttribute("name",e),n.setAttribute("value",r),t.appendChild(n)}}),t},qq.parseJson=function(json){return window.JSON&&qq.isFunction(JSON.parse)?JSON.parse(json):eval("("+json+")")},qq.getExtension=function(e){var t=e.lastIndexOf(".")+1;if(t>0)return e.substr(t,e.length-t)},qq.getFilename=function(e){return qq.isInput(e)?e.value.replace(/.*(\/|\\)/,""):qq.isFile(e)&&null!==e.fileName&&void 0!==e.fileName?e.fileName:e.name},qq.DisposeSupport=function(){var e=[];return{dispose:function(){var t;do{t=e.shift(),t&&t()}while(t)},attach:function(){var e=arguments;this.addDisposer(qq(e[0]).attach.apply(this,Array.prototype.slice.call(arguments,1)))},addDisposer:function(t){e.push(t)}}}})(),function(){"use strict";__WEBPACK_AMD_DEFINE_RESULT__=function(){return qq}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(),function(){"use strict";qq.Error=function(e){this.message="[Fine Uploader "+qq.version+"] "+e},qq.Error.prototype=new Error}(),qq.version="5.16.2",qq.supportedFeatures=function(){"use strict";var e,t,n,r,i,o,a,s,u,l,c,f,d,h,p;function m(){var e,t=!0;try{e=document.createElement("input"),e.type="file",qq(e).hide(),e.disabled&&(t=!1)}catch(n){t=!1}return t}function g(){return(qq.chrome()||qq.opera())&&void 0!==navigator.userAgent.match(/Chrome\/[1][4-9]|Chrome\/[2-9][0-9]/)}function v(){if(window.XMLHttpRequest){var e=qq.createXhrInstance();return void 0!==e.withCredentials}return!1}function y(){return void 0!==window.XDomainRequest}function b(){return!!v()||y()}function q(){return void 0!==document.createElement("input").webkitdirectory}function w(){try{return!!window.localStorage&&qq.isFunction(window.localStorage.setItem)}catch(e){return!1}}function _(){var e=document.createElement("span");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&!qq.android()&&!qq.ios()}return e=m(),r=e&&qq.isXhrUploadSupported(),t=r&&!qq.androidStock(),n=r&&_(),i=n&&function(){var e=document.createElement("input");return e.type="file",!!("webkitdirectory"in(e||document.querySelectorAll("input[type=file]")[0]))}(),o=r&&qq.isFileChunkingSupported(),a=r&&o&&w(),s=r&&g(),u=e&&(void 0!==window.postMessage||r),c=v(),l=y(),f=b(),d=q(),h=r&&void 0!==window.FileReader,p=function(){return!!r&&(!qq.androidStock()&&!qq.iosChrome())}(),{ajaxUploading:r,blobUploading:t,canDetermineSize:r,chunking:o,deleteFileCors:f,deleteFileCorsXdr:l,deleteFileCorsXhr:c,dialogElement:!!window.HTMLDialogElement,fileDrop:n,folderDrop:i,folderSelection:d,imagePreviews:h,imageValidation:h,itemSizeValidation:r,pause:o,progressBar:p,resume:a,scaling:h&&t,tiffPreviews:qq.safari(),unlimitedScaledImageSize:!qq.ios(),uploading:e,uploadCors:u,uploadCustomHeaders:r,uploadNonMultipart:r,uploadViaPaste:s}}(),qq.isGenericPromise=function(e){"use strict";return!!(e&&e.then&&qq.isFunction(e.then))},qq.Promise=function(){"use strict";var e,t,n=[],r=[],i=[],o=0;qq.extend(this,{then:function(i,a){return 0===o?(i&&n.push(i),a&&r.push(a)):-1===o?a&&a.apply(null,t):i&&i.apply(null,e),this},done:function(n){return 0===o?i.push(n):n.apply(null,void 0===t?e:t),this},success:function(){return o=1,e=arguments,n.length&&qq.each(n,(function(t,n){n.apply(null,e)})),i.length&&qq.each(i,(function(t,n){n.apply(null,e)})),this},failure:function(){return o=-1,t=arguments,r.length&&qq.each(r,(function(e,n){n.apply(null,t)})),i.length&&qq.each(i,(function(e,n){n.apply(null,t)})),this}})},qq.BlobProxy=function(e,t){"use strict";qq.extend(this,{referenceBlob:e,create:function(){return t(e)}})},qq.UploadButton=function(e){"use strict";var t,n,r=this,i=new qq.DisposeSupport,o={acceptFiles:null,element:null,focusClass:"qq-upload-button-focus",folders:!1,hoverClass:"qq-upload-button-hover",ios8BrowserCrashWorkaround:!1,multiple:!1,name:"qqfile",onChange:function(e){},title:null};function a(){var e=document.createElement("input");return e.setAttribute(qq.UploadButton.BUTTON_ID_ATTR_NAME,n),e.setAttribute("title",o.title),r.setMultiple(o.multiple,e),o.folders&&qq.supportedFeatures.folderSelection&&e.setAttribute("webkitdirectory",""),o.acceptFiles&&e.setAttribute("accept",o.acceptFiles),e.setAttribute("type","file"),e.setAttribute("name",o.name),qq(e).css({position:"absolute",right:0,top:0,fontFamily:"Arial",fontSize:qq.ie()&&!qq.ie8()?"3500px":"118px",margin:0,padding:0,cursor:"pointer",opacity:0}),!qq.ie7()&&qq(e).css({height:"100%"}),o.element.appendChild(e),i.attach(e,"change",(function(){o.onChange(e)})),i.attach(e,"mouseover",(function(){qq(o.element).addClass(o.hoverClass)})),i.attach(e,"mouseout",(function(){qq(o.element).removeClass(o.hoverClass)})),i.attach(e,"focus",(function(){qq(o.element).addClass(o.focusClass)})),i.attach(e,"blur",(function(){qq(o.element).removeClass(o.focusClass)})),e}qq.extend(o,e),n=qq.getUniqueId(),qq(o.element).css({position:"relative",overflow:"hidden",direction:"ltr"}),qq.extend(this,{getInput:function(){return t},getButtonId:function(){return n},setMultiple:function(e,t){var n=t||this.getInput();o.ios8BrowserCrashWorkaround&&qq.ios8()&&(qq.iosChrome()||qq.iosSafariWebView())||e?n.setAttribute("multiple",""):n.removeAttribute("multiple")},setAcceptFiles:function(e){e!==o.acceptFiles&&t.setAttribute("accept",e)},reset:function(){t.parentNode&&qq(t).remove(),qq(o.element).removeClass(o.focusClass),t=null,t=a()}}),t=a()},qq.UploadButton.BUTTON_ID_ATTR_NAME="qq-button-id",qq.UploadData=function(e){"use strict";var t=[],n={},r={},i={},o={};function a(e){if(qq.isArray(e)){var n=[];return qq.each(e,(function(e,r){n.push(t[r])})),n}return t[e]}function s(e){if(qq.isArray(e)){var r=[];return qq.each(e,(function(e,i){r.push(t[n[i]])})),r}return t[n[e]]}function u(e){var n=[],i=[].concat(e);return qq.each(i,(function(e,i){var o=r[i];void 0!==o&&qq.each(o,(function(e,r){n.push(t[r])}))})),n}qq.extend(this,{addFile:function(a){var s=a.status||qq.status.SUBMITTING,u=t.push({name:a.name,originalName:a.name,uuid:a.uuid,size:null==a.size?-1:a.size,status:s,file:a.file})-1;return a.batchId&&(t[u].batchId=a.batchId,void 0===o[a.batchId]&&(o[a.batchId]=[]),o[a.batchId].push(u)),a.proxyGroupId&&(t[u].proxyGroupId=a.proxyGroupId,void 0===i[a.proxyGroupId]&&(i[a.proxyGroupId]=[]),i[a.proxyGroupId].push(u)),t[u].id=u,n[a.uuid]=u,void 0===r[s]&&(r[s]=[]),r[s].push(u),a.onBeforeStatusChange&&a.onBeforeStatusChange(u),e.onStatusChange(u,null,s),u},retrieve:function(e){return qq.isObject(e)&&t.length?void 0!==e.id?a(e.id):void 0!==e.uuid?s(e.uuid):e.status?u(e.status):void 0:qq.extend([],t,!0)},removeFileRef:function(e){var t=a(e);t&&delete t.file},reset:function(){t=[],n={},r={},o={}},setStatus:function(n,i){var o=t[n].status,a=qq.indexOf(r[o],n);r[o].splice(a,1),t[n].status=i,void 0===r[i]&&(r[i]=[]),r[i].push(n),e.onStatusChange(n,o,i)},uuidChanged:function(e,r){var i=t[e].uuid;t[e].uuid=r,n[r]=e,delete n[i]},updateName:function(e,n){t[e].name=n},updateSize:function(e,n){t[e].size=n},setParentId:function(e,n){t[e].parentId=n},getIdsInProxyGroup:function(e){var n=t[e].proxyGroupId;return n?i[n]:[]},getIdsInBatch:function(e){var n=t[e].batchId;return o[n]}})},qq.status={SUBMITTING:"submitting",SUBMITTED:"submitted",REJECTED:"rejected",QUEUED:"queued",CANCELED:"canceled",PAUSED:"paused",UPLOADING:"uploading",UPLOAD_FINALIZING:"upload finalizing",UPLOAD_RETRYING:"retrying upload",UPLOAD_SUCCESSFUL:"upload successful",UPLOAD_FAILED:"upload failed",DELETE_FAILED:"delete failed",DELETING:"deleting",DELETED:"deleted"},function(){"use strict";qq.basePublicApi={addBlobs:function(e,t,n){this.addFiles(e,t,n)},addInitialFiles:function(e){var t=this;qq.each(e,(function(e,n){t._addCannedFile(n)}))},addFiles:function(e,t,n){this._maybeHandleIos8SafariWorkaround();var r=0===this._storedIds.length?qq.getUniqueId():this._currentBatchId,i=qq.bind((function(e){this._handleNewFile({blob:e,name:this._options.blobs.defaultName},r,f)}),this),o=qq.bind((function(e){this._handleNewFile(e,r,f)}),this),a=qq.bind((function(e){var t=qq.canvasToBlob(e);this._handleNewFile({blob:t,name:this._options.blobs.defaultName+".png"},r,f)}),this),s=qq.bind((function(e){var t=e.quality&&e.quality/100,n=qq.canvasToBlob(e.canvas,e.type,t);this._handleNewFile({blob:n,name:e.name},r,f)}),this),u=qq.bind((function(e){if(qq.isInput(e)&&qq.supportedFeatures.ajaxUploading){var t=Array.prototype.slice.call(e.files),n=this;qq.each(t,(function(e,t){n._handleNewFile(t,r,f)}))}else this._handleNewFile(e,r,f)}),this),l=function(){qq.isFileList(e)&&(e=Array.prototype.slice.call(e)),e=[].concat(e)},c=this,f=[];this._currentBatchId=r,e&&(l(),qq.each(e,(function(e,t){qq.isFileOrInput(t)?u(t):qq.isBlob(t)?i(t):qq.isObject(t)?t.blob&&t.name?o(t):t.canvas&&t.name&&s(t):t.tagName&&"canvas"===t.tagName.toLowerCase()?a(t):c.log(t+" is not a valid file container! Ignoring!","warn")})),this.log("Received "+f.length+" files."),this._prepareItemsForUpload(f,t,n))},cancel:function(e){var t=this._uploadData.retrieve({id:e});t&&t.status===qq.status.UPLOAD_FINALIZING?this.log(qq.format("Ignoring cancel for file ID {} ({}). Finalizing upload.",e,this.getName(e)),"error"):this._handler.cancel(e)},cancelAll:function(){var e=[],t=this;qq.extend(e,this._storedIds),qq.each(e,(function(e,n){t.cancel(n)})),this._handler.cancelAll()},clearStoredFiles:function(){this._storedIds=[]},continueUpload:function(e){var t=this._uploadData.retrieve({id:e});return!(!qq.supportedFeatures.pause||!this._options.chunking.enabled)&&(t.status===qq.status.PAUSED?(this.log(qq.format("Paused file ID {} ({}) will be continued. Not paused.",e,this.getName(e))),this._uploadFile(e),!0):(this.log(qq.format("Ignoring continue for file ID {} ({}). Not paused.",e,this.getName(e)),"error"),!1))},deleteFile:function(e){return this._onSubmitDelete(e)},doesExist:function(e){return this._handler.isValid(e)},drawThumbnail:function(e,t,n,r,i){var o,a,s=new qq.Promise;return this._imageGenerator?(o=this._thumbnailUrls[e],a={customResizeFunction:i,maxSize:n>0?n:null,scale:n>0},!r&&qq.supportedFeatures.imagePreviews&&(o=this.getFile(e)),null==o?s.failure({container:t,error:"File or URL not found."}):this._imageGenerator.generate(o,t,a).then((function(e){s.success(e)}),(function(e,t){s.failure({container:e,error:t||"Problem generating thumbnail"})}))):s.failure({container:t,error:"Missing image generator module"}),s},getButton:function(e){return this._getButton(this._buttonIdsForFileIds[e])},getEndpoint:function(e){return this._endpointStore.get(e)},getFile:function(e){var t,n=this._handler.getFile(e);return n||(t=this._uploadData.retrieve({id:e}),t&&(n=t.file)),n||null},getInProgress:function(){return this._uploadData.retrieve({status:[qq.status.UPLOADING,qq.status.UPLOAD_RETRYING,qq.status.QUEUED]}).length},getName:function(e){return this._uploadData.retrieve({id:e}).name},getParentId:function(e){var t=this.getUploads({id:e}),n=null;return t&&void 0!==t.parentId&&(n=t.parentId),n},getResumableFilesData:function(){return this._handler.getResumableFilesData()},getSize:function(e){return this._uploadData.retrieve({id:e}).size},getNetUploads:function(){return this._netUploaded},getRemainingAllowedItems:function(){var e=this._currentItemLimit;return e>0?e-this._netUploadedOrQueued:null},getUploads:function(e){return this._uploadData.retrieve(e)},getUuid:function(e){return this._uploadData.retrieve({id:e}).uuid},isResumable:function(e){return this._handler.hasResumeRecord(e)},log:function(e,t){!this._options.debug||t&&"info"!==t?t&&"info"!==t&&qq.log("[Fine Uploader "+qq.version+"] "+e,t):qq.log("[Fine Uploader "+qq.version+"] "+e)},pauseUpload:function(e){var t=this._uploadData.retrieve({id:e});if(!qq.supportedFeatures.pause||!this._options.chunking.enabled)return!1;if(qq.indexOf([qq.status.UPLOADING,qq.status.UPLOAD_RETRYING],t.status)>=0){if(this._handler.pause(e))return this._uploadData.setStatus(e,qq.status.PAUSED),!0;this.log(qq.format("Unable to pause file ID {} ({}).",e,this.getName(e)),"error")}else this.log(qq.format("Ignoring pause for file ID {} ({}). Not in progress.",e,this.getName(e)),"error");return!1},removeFileRef:function(e){this._handler.expunge(e),this._uploadData.removeFileRef(e)},reset:function(){this.log("Resetting uploader..."),this._handler.reset(),this._storedIds=[],this._autoRetries=[],this._retryTimeouts=[],this._preventRetries=[],this._thumbnailUrls=[],qq.each(this._buttons,(function(e,t){t.reset()})),this._paramsStore.reset(),this._endpointStore.reset(),this._netUploadedOrQueued=0,this._netUploaded=0,this._uploadData.reset(),this._buttonIdsForFileIds=[],this._pasteHandler&&this._pasteHandler.reset(),this._options.session.refreshOnReset&&this._refreshSessionData(),this._succeededSinceLastAllComplete=[],this._failedSinceLastAllComplete=[],this._totalProgress&&this._totalProgress.reset(),this._customResumeDataStore.reset()},retry:function(e){return this._manualRetry(e)},scaleImage:function(e,t){var n=this;return qq.Scaler.prototype.scaleImage(e,t,{log:qq.bind(n.log,n),getFile:qq.bind(n.getFile,n),uploadData:n._uploadData})},setCustomHeaders:function(e,t){this._customHeadersStore.set(e,t)},setCustomResumeData:function(e,t){this._customResumeDataStore.set(t,e)},setDeleteFileCustomHeaders:function(e,t){this._deleteFileCustomHeadersStore.set(e,t)},setDeleteFileEndpoint:function(e,t){this._deleteFileEndpointStore.set(e,t)},setDeleteFileParams:function(e,t){this._deleteFileParamsStore.set(e,t)},setEndpoint:function(e,t){this._endpointStore.set(e,t)},setForm:function(e){this._updateFormSupportAndParams(e)},setItemLimit:function(e){this._currentItemLimit=e},setName:function(e,t){this._uploadData.updateName(e,t)},setParams:function(e,t){this._paramsStore.set(e,t)},setUuid:function(e,t){return this._uploadData.uuidChanged(e,t)},setStatus:function(e,t){var n=this.getUploads({id:e});if(!n)throw new qq.Error(e+" is not a valid file ID.");switch(t){case qq.status.DELETED:this._onDeleteComplete(e,null,!1);break;case qq.status.DELETE_FAILED:this._onDeleteComplete(e,null,!0);break;default:var r="Method setStatus called on '"+name+"' not implemented yet for "+t;throw this.log(r),new qq.Error(r)}},uploadStoredFiles:function(){0===this._storedIds.length?this._itemError("noFilesError"):this._uploadStoredFiles()}},qq.basePrivateApi={_addCannedFile:function(e){var t=this;return this._uploadData.addFile({uuid:e.uuid,name:e.name,size:e.size,status:qq.status.UPLOAD_SUCCESSFUL,onBeforeStatusChange:function(n){e.deleteFileEndpoint&&t.setDeleteFileEndpoint(e.deleteFileEndpoint,n),e.deleteFileParams&&t.setDeleteFileParams(e.deleteFileParams,n),e.thumbnailUrl&&(t._thumbnailUrls[n]=e.thumbnailUrl),t._netUploaded++,t._netUploadedOrQueued++}})},_annotateWithButtonId:function(e,t){qq.isFile(e)&&(e.qqButtonId=this._getButtonId(t))},_batchError:function(e){this._options.callbacks.onError(null,null,e,void 0)},_createDeleteHandler:function(){var e=this;return new qq.DeleteFileAjaxRequester({method:this._options.deleteFile.method.toUpperCase(),maxConnections:this._options.maxConnections,uuidParamName:this._options.request.uuidName,customHeaders:this._deleteFileCustomHeadersStore,paramsStore:this._deleteFileParamsStore,endpointStore:this._deleteFileEndpointStore,cors:this._options.cors,log:qq.bind(e.log,e),onDelete:function(t){e._onDelete(t),e._options.callbacks.onDelete(t)},onDeleteComplete:function(t,n,r){e._onDeleteComplete(t,n,r),e._options.callbacks.onDeleteComplete(t,n,r)}})},_createPasteHandler:function(){var e=this;return new qq.PasteSupport({targetElement:this._options.paste.targetElement,callbacks:{log:qq.bind(e.log,e),pasteReceived:function(t){e._handleCheckedCallback({name:"onPasteReceived",callback:qq.bind(e._options.callbacks.onPasteReceived,e,t),onSuccess:qq.bind(e._handlePasteSuccess,e,t),identifier:"pasted image"})}}})},_createStore:function(e,t){var n={},r=e,i={},o=t,a=function(e){return qq.isObject(e)?qq.extend({},e):e},s=function(){return qq.isFunction(o)?o():o},u=function(e,t){o&&qq.isObject(t)&&qq.extend(t,s()),i[e]&&qq.extend(t,i[e])};return{set:function(e,t){null==t?(n={},r=a(e)):n[t]=a(e)},get:function(e){var t;return t=null!=e&&n[e]?n[e]:a(r),u(e,t),a(t)},addReadOnly:function(e,t){qq.isObject(n)&&(null===e?qq.isFunction(t)?o=t:(o=o||{},qq.extend(o,t)):(i[e]=i[e]||{},qq.extend(i[e],t)))},remove:function(e){return delete n[e]},reset:function(){n={},i={},r=e}}},_createUploadDataTracker:function(){var e=this;return new qq.UploadData({getName:function(t){return e.getName(t)},getUuid:function(t){return e.getUuid(t)},getSize:function(t){return e.getSize(t)},onStatusChange:function(t,n,r){e._onUploadStatusChange(t,n,r),e._options.callbacks.onStatusChange(t,n,r),e._maybeAllComplete(t,r),e._totalProgress&&setTimeout((function(){e._totalProgress.onStatusChange(t,n,r)}),0)}})},_createUploadButton:function(e){var t,n=this,r=e.accept||this._options.validation.acceptFiles,i=e.allowedExtensions||this._options.validation.allowedExtensions;function o(){return!!qq.supportedFeatures.ajaxUploading&&(!(n._options.workarounds.iosEmptyVideos&&qq.ios()&&!qq.ios6()&&n._isAllowedExtension(i,".mov"))&&(void 0===e.multiple?n._options.multiple:e.multiple))}return t=new qq.UploadButton({acceptFiles:r,element:e.element,focusClass:this._options.classes.buttonFocus,folders:e.folders,hoverClass:this._options.classes.buttonHover,ios8BrowserCrashWorkaround:this._options.workarounds.ios8BrowserCrash,multiple:o(),name:this._options.request.inputName,onChange:function(e){n._onInputChange(e)},title:null==e.title?this._options.text.fileInputTitle:e.title}),this._disposeSupport.addDisposer((function(){t.dispose()})),n._buttons.push(t),t},_createUploadHandler:function(e,t){var n=this,r={},i={debug:this._options.debug,maxConnections:this._options.maxConnections,cors:this._options.cors,paramsStore:this._paramsStore,endpointStore:this._endpointStore,chunking:this._options.chunking,resume:this._options.resume,blobs:this._options.blobs,log:qq.bind(n.log,n),preventRetryParam:this._options.retry.preventRetryResponseProperty,onProgress:function(e,t,i,o){i<0||o<0||(r[e]&&r[e].loaded===i&&r[e].total===o||(n._onProgress(e,t,i,o),n._options.callbacks.onProgress(e,t,i,o)),r[e]={loaded:i,total:o})},onComplete:function(e,t,i,o){delete r[e];var a,s=n.getUploads({id:e}).status;s!==qq.status.UPLOAD_SUCCESSFUL&&s!==qq.status.UPLOAD_FAILED&&(a=n._onComplete(e,t,i,o),a instanceof qq.Promise?a.done((function(){n._options.callbacks.onComplete(e,t,i,o)})):n._options.callbacks.onComplete(e,t,i,o))},onCancel:function(e,t,r){var i=new qq.Promise;return n._handleCheckedCallback({name:"onCancel",callback:qq.bind(n._options.callbacks.onCancel,n,e,t),onFailure:i.failure,onSuccess:function(){r.then((function(){n._onCancel(e,t)})),i.success()},identifier:e}),i},onUploadPrep:qq.bind(this._onUploadPrep,this),onUpload:function(e,t){n._onUpload(e,t);var r=n._options.callbacks.onUpload(e,t);return qq.isGenericPromise(r)?(n.log(qq.format("onUpload for {} returned a Promise - waiting for resolution.",e)),r):(new qq.Promise).success()},onUploadChunk:function(e,t,r){n._onUploadChunk(e,r);var i=n._options.callbacks.onUploadChunk(e,t,r);return qq.isGenericPromise(i)?(n.log(qq.format("onUploadChunk for {}.{} returned a Promise - waiting for resolution.",e,r.partIndex)),i):(new qq.Promise).success()},onUploadChunkSuccess:function(e,t,r,i){n._onUploadChunkSuccess(e,t),n._options.callbacks.onUploadChunkSuccess.apply(n,arguments)},onResume:function(e,t,r,i){return n._options.callbacks.onResume(e,t,r,i)},onAutoRetry:function(e,t,r,i){return n._onAutoRetry.apply(n,arguments)},onUuidChanged:function(e,t){n.log("Server requested UUID change from '"+n.getUuid(e)+"' to '"+t+"'"),n.setUuid(e,t)},getName:qq.bind(n.getName,n),getUuid:qq.bind(n.getUuid,n),getSize:qq.bind(n.getSize,n),setSize:qq.bind(n._setSize,n),getDataByUuid:function(e){return n.getUploads({uuid:e})},isQueued:function(e){var t=n.getUploads({id:e}).status;return t===qq.status.QUEUED||t===qq.status.SUBMITTED||t===qq.status.UPLOAD_RETRYING||t===qq.status.PAUSED},getIdsInProxyGroup:n._uploadData.getIdsInProxyGroup,getIdsInBatch:n._uploadData.getIdsInBatch,isInProgress:function(e){return n.getUploads({id:e}).status===qq.status.UPLOADING},getCustomResumeData:qq.bind(n._getCustomResumeData,n),setStatus:function(e,t){n._uploadData.setStatus(e,t)}};return qq.each(this._options.request,(function(e,t){i[e]=t})),i.customHeaders=this._customHeadersStore,e&&qq.each(e,(function(e,t){i[e]=t})),new qq.UploadHandlerController(i,t)},_fileOrBlobRejected:function(e){this._netUploadedOrQueued--,this._uploadData.setStatus(e,qq.status.REJECTED)},_formatSize:function(e){if(0===e)return e+this._options.text.sizeSymbols[0];var t=-1;do{e/=1e3,t++}while(e>999);return Math.max(e,.1).toFixed(1)+this._options.text.sizeSymbols[t]},_generateExtraButtonSpecs:function(){var e=this;this._extraButtonSpecs={},qq.each(this._options.extraButtons,(function(t,n){var r=n.multiple,i=qq.extend({},e._options.validation,!0),o=qq.extend({},n);void 0===r&&(r=e._options.multiple),o.validation&&qq.extend(i,n.validation,!0),qq.extend(o,{multiple:r,validation:i},!0),e._initExtraButton(o)}))},_getButton:function(e){var t=this._extraButtonSpecs[e];return t?t.element:e===this._defaultButtonId?this._options.button:void 0},_getButtonId:function(e){var t,n,r=e;if(r instanceof qq.BlobProxy&&(r=r.referenceBlob),r&&!qq.isBlob(r)){if(qq.isFile(r))return r.qqButtonId;if("input"===r.tagName.toLowerCase()&&"file"===r.type.toLowerCase())return r.getAttribute(qq.UploadButton.BUTTON_ID_ATTR_NAME);if(t=r.getElementsByTagName("input"),qq.each(t,(function(e,t){if("file"===t.getAttribute("type"))return n=t,!1})),n)return n.getAttribute(qq.UploadButton.BUTTON_ID_ATTR_NAME)}},_getCustomResumeData:function(e){return this._customResumeDataStore.get(e)},_getNotFinished:function(){return this._uploadData.retrieve({status:[qq.status.UPLOADING,qq.status.UPLOAD_RETRYING,qq.status.QUEUED,qq.status.SUBMITTING,qq.status.SUBMITTED,qq.status.PAUSED]}).length},_getValidationBase:function(e){var t=this._extraButtonSpecs[e];return t?t.validation:this._options.validation},_getValidationDescriptor:function(e){return e.file instanceof qq.BlobProxy?{name:qq.getFilename(e.file.referenceBlob),size:e.file.referenceBlob.size}:{name:this.getUploads({id:e.id}).name,size:this.getUploads({id:e.id}).size}},_getValidationDescriptors:function(e){var t=this,n=[];return qq.each(e,(function(e,r){n.push(t._getValidationDescriptor(r))})),n},_handleCameraAccess:function(){if(this._options.camera.ios&&qq.ios()){var e="image/*;capture=camera",t=this._options.camera.button,n=t?this._getButtonId(t):this._defaultButtonId,r=this._options;n&&n!==this._defaultButtonId&&(r=this._extraButtonSpecs[n]),r.multiple=!1,null===r.validation.acceptFiles?r.validation.acceptFiles=e:r.validation.acceptFiles+=","+e,qq.each(this._buttons,(function(e,t){if(t.getButtonId()===n)return t.setMultiple(r.multiple),t.setAcceptFiles(r.acceptFiles),!1}))}},_handleCheckedCallback:function(e){var t=this,n=e.callback();return qq.isGenericPromise(n)?(this.log(e.name+" - waiting for "+e.name+" promise to be fulfilled for "+e.identifier),n.then((function(n){t.log(e.name+" promise success for "+e.identifier),e.onSuccess(n)}),(function(){e.onFailure?(t.log(e.name+" promise failure for "+e.identifier),e.onFailure()):t.log(e.name+" promise failure for "+e.identifier)}))):(!1!==n?e.onSuccess(n):e.onFailure?(this.log(e.name+" - return value was 'false' for "+e.identifier+". Invoking failure callback."),e.onFailure()):this.log(e.name+" - return value was 'false' for "+e.identifier+". Will not proceed."),n)},_handleNewFile:function(e,t,n){var r=this,i=qq.getUniqueId(),o=-1,a=qq.getFilename(e),s=e.blob||e,u=this._customNewFileHandler?this._customNewFileHandler:qq.bind(r._handleNewFileGeneric,r);!qq.isInput(s)&&s.size>=0&&(o=s.size),u(s,a,i,o,n,t,this._options.request.uuidName,{uploadData:r._uploadData,paramsStore:r._paramsStore,addFileToHandler:function(e,t){r._handler.add(e,t),r._netUploadedOrQueued++,r._trackButton(e)}})},_handleNewFileGeneric:function(e,t,n,r,i,o){var a=this._uploadData.addFile({uuid:n,name:t,size:r,batchId:o,file:e});this._handler.add(a,e),this._trackButton(a),this._netUploadedOrQueued++,i.push({id:a,file:e})},_handlePasteSuccess:function(e,t){var n=e.type.split("/")[1],r=t;null==r&&(r=this._options.paste.defaultName),r+="."+n,this.addFiles({name:r,blob:e})},_handleDeleteSuccess:function(e){if(this.getUploads({id:e}).status!==qq.status.DELETED){var t=this.getName(e);this._netUploadedOrQueued--,this._netUploaded--,this._handler.expunge(e),this._uploadData.setStatus(e,qq.status.DELETED),this.log("Delete request for '"+t+"' has succeeded.")}},_handleDeleteFailed:function(e,t){var n=this.getName(e);this._uploadData.setStatus(e,qq.status.DELETE_FAILED),this.log("Delete request for '"+n+"' has failed.","error"),t&&void 0!==t.withCredentials?this._options.callbacks.onError(e,n,"Delete request failed with response code "+t.status,t):this._options.callbacks.onError(e,n,"Delete request failed",t)},_initExtraButton:function(e){var t=this._createUploadButton({accept:e.validation.acceptFiles,allowedExtensions:e.validation.allowedExtensions,element:e.element,folders:e.folders,multiple:e.multiple,title:e.fileInputTitle});this._extraButtonSpecs[t.getButtonId()]=e},_initFormSupportAndParams:function(){this._formSupport=qq.FormSupport&&new qq.FormSupport(this._options.form,qq.bind(this.uploadStoredFiles,this),qq.bind(this.log,this)),this._formSupport&&this._formSupport.attachedToForm?(this._paramsStore=this._createStore(this._options.request.params,this._formSupport.getFormInputsAsObject),this._options.autoUpload=this._formSupport.newAutoUpload,this._formSupport.newEndpoint&&(this._options.request.endpoint=this._formSupport.newEndpoint)):this._paramsStore=this._createStore(this._options.request.params)},_isDeletePossible:function(){return!(!qq.DeleteFileAjaxRequester||!this._options.deleteFile.enabled)&&(!this._options.cors.expected||(!!qq.supportedFeatures.deleteFileCorsXhr||!(!qq.supportedFeatures.deleteFileCorsXdr||!this._options.cors.allowXdr)))},_isAllowedExtension:function(e,t){var n=!1;return!e.length||(qq.each(e,(function(e,r){if(qq.isString(r)){var i=new RegExp("\\."+r+"$","i");if(null!=t.match(i))return n=!0,!1}})),n)},_itemError:function(e,t,n){var r,i,o=this._options.messages[e],a=[],s=[].concat(t),u=s[0],l=this._getButtonId(n),c=this._getValidationBase(l);function f(e,t){o=o.replace(e,t)}return qq.each(c.allowedExtensions,(function(e,t){qq.isString(t)&&a.push(t)})),r=a.join(", ").toLowerCase(),f("{file}",this._options.formatFileName(u)),f("{extensions}",r),f("{sizeLimit}",this._formatSize(c.sizeLimit)),f("{minSizeLimit}",this._formatSize(c.minSizeLimit)),i=o.match(/(\{\w+\})/g),null!==i&&qq.each(i,(function(e,t){f(t,s[e])})),this._options.callbacks.onError(null,u,o,void 0),o},_manualRetry:function(e,t){if(this._onBeforeManualRetry(e))return this._netUploadedOrQueued++,this._uploadData.setStatus(e,qq.status.UPLOAD_RETRYING),t?t(e):this._handler.retry(e),!0},_maybeAllComplete:function(e,t){var n=this,r=this._getNotFinished();t===qq.status.UPLOAD_SUCCESSFUL?this._succeededSinceLastAllComplete.push(e):t===qq.status.UPLOAD_FAILED&&this._failedSinceLastAllComplete.push(e),0===r&&(this._succeededSinceLastAllComplete.length||this._failedSinceLastAllComplete.length)&&setTimeout((function(){n._onAllComplete(n._succeededSinceLastAllComplete,n._failedSinceLastAllComplete)}),0)},_maybeHandleIos8SafariWorkaround:function(){var e=this;if(this._options.workarounds.ios8SafariUploads&&qq.ios800()&&qq.iosSafari())throw setTimeout((function(){window.alert(e._options.messages.unsupportedBrowserIos8Safari)}),0),new qq.Error(this._options.messages.unsupportedBrowserIos8Safari)},_maybeParseAndSendUploadError:function(e,t,n,r){if(!n.success)if(r&&200!==r.status&&!n.error)this._options.callbacks.onError(e,t,"XHR returned response code "+r.status,r);else{var i=n.error?n.error:this._options.text.defaultResponseError;this._options.callbacks.onError(e,t,i,r)}},_maybeProcessNextItemAfterOnValidateCallback:function(e,t,n,r,i){var o=this;if(t.length>n)if(e||!this._options.validation.stopOnFirstInvalidFile)setTimeout((function(){var e=o._getValidationDescriptor(t[n]),a=o._getButtonId(t[n].file),s=o._getButton(a);o._handleCheckedCallback({name:"onValidate",callback:qq.bind(o._options.callbacks.onValidate,o,e,s),onSuccess:qq.bind(o._onValidateCallbackSuccess,o,t,n,r,i),onFailure:qq.bind(o._onValidateCallbackFailure,o,t,n,r,i),identifier:"Item '"+e.name+"', size: "+e.size})}),0);else if(!e)for(;n<t.length;n++)o._fileOrBlobRejected(t[n].id)},_onAllComplete:function(e,t){this._totalProgress&&this._totalProgress.onAllComplete(e,t,this._preventRetries),this._options.callbacks.onAllComplete(qq.extend([],e),qq.extend([],t)),this._succeededSinceLastAllComplete=[],this._failedSinceLastAllComplete=[]},_onAutoRetry:function(e,t,n,r,i){var o=this;if(o._preventRetries[e]=n[o._options.retry.preventRetryResponseProperty],o._shouldAutoRetry(e)){var a=1e3*o._options.retry.autoAttemptDelay;return o._maybeParseAndSendUploadError.apply(o,arguments),o._options.callbacks.onAutoRetry(e,t,o._autoRetries[e]),o._onBeforeAutoRetry(e,t),o._uploadData.setStatus(e,qq.status.UPLOAD_RETRYING),o._retryTimeouts[e]=setTimeout((function(){o.log("Starting retry for "+t+"..."),i?i(e):o._handler.retry(e)}),a),!0}},_onBeforeAutoRetry:function(e,t){this.log("Waiting "+this._options.retry.autoAttemptDelay+" seconds before retrying "+t+"...")},_onBeforeManualRetry:function(e){var t,n=this._currentItemLimit;return this._preventRetries[e]?(this.log("Retries are forbidden for id "+e,"warn"),!1):this._handler.isValid(e)?(t=this.getName(e),!1!==this._options.callbacks.onManualRetry(e,t)&&(n>0&&this._netUploadedOrQueued+1>n?(this._itemError("retryFailTooManyItems"),!1):(this.log("Retrying upload for '"+t+"' (id: "+e+")..."),!0))):(this.log("'"+e+"' is not a valid file ID","error"),!1)},_onCancel:function(e,t){this._netUploadedOrQueued--,clearTimeout(this._retryTimeouts[e]);var n=qq.indexOf(this._storedIds,e);!this._options.autoUpload&&n>=0&&this._storedIds.splice(n,1),this._uploadData.setStatus(e,qq.status.CANCELED)},_onComplete:function(e,t,n,r){return n.success?(n.thumbnailUrl&&(this._thumbnailUrls[e]=n.thumbnailUrl),this._netUploaded++,this._uploadData.setStatus(e,qq.status.UPLOAD_SUCCESSFUL)):(this._netUploadedOrQueued--,this._uploadData.setStatus(e,qq.status.UPLOAD_FAILED),!0===n[this._options.retry.preventRetryResponseProperty]&&(this._preventRetries[e]=!0)),this._maybeParseAndSendUploadError(e,t,n,r),!!n.success},_onDelete:function(e){this._uploadData.setStatus(e,qq.status.DELETING)},_onDeleteComplete:function(e,t,n){this.getName(e);n?this._handleDeleteFailed(e,t):this._handleDeleteSuccess(e)},_onInputChange:function(e){var t;if(qq.supportedFeatures.ajaxUploading){for(t=0;t<e.files.length;t++)this._annotateWithButtonId(e.files[t],e);this.addFiles(e.files)}else e.value.length>0&&this.addFiles(e);qq.each(this._buttons,(function(e,t){t.reset()}))},_onProgress:function(e,t,n,r){this._totalProgress&&this._totalProgress.onIndividualProgress(e,n,r)},_onSubmit:function(e,t){},_onSubmitCallbackSuccess:function(e,t){this._onSubmit.apply(this,arguments),this._uploadData.setStatus(e,qq.status.SUBMITTED),this._onSubmitted.apply(this,arguments),this._options.autoUpload?(this._options.callbacks.onSubmitted.apply(this,arguments),this._uploadFile(e)):(this._storeForLater(e),this._options.callbacks.onSubmitted.apply(this,arguments))},_onSubmitDelete:function(e,t,n){var r,i=this.getUuid(e);return t&&(r=qq.bind(t,this,e,i,n)),this._isDeletePossible()?(this._handleCheckedCallback({name:"onSubmitDelete",callback:qq.bind(this._options.callbacks.onSubmitDelete,this,e),onSuccess:r||qq.bind(this._deleteHandler.sendDelete,this,e,i,n),identifier:e}),!0):(this.log("Delete request ignored for ID "+e+", delete feature is disabled or request not possible due to CORS on a user agent that does not support pre-flighting.","warn"),!1)},_onSubmitted:function(e){},_onTotalProgress:function(e,t){this._options.callbacks.onTotalProgress(e,t)},_onUploadPrep:function(e){},_onUpload:function(e,t){this._uploadData.setStatus(e,qq.status.UPLOADING)},_onUploadChunk:function(e,t){},_onUploadChunkSuccess:function(e,t){!this._preventRetries[e]&&this._options.retry.enableAuto&&(this._autoRetries[e]=0)},_onUploadStatusChange:function(e,t,n){n===qq.status.PAUSED&&clearTimeout(this._retryTimeouts[e])},_onValidateBatchCallbackFailure:function(e){var t=this;qq.each(e,(function(e,n){t._fileOrBlobRejected(n.id)}))},_onValidateBatchCallbackSuccess:function(e,t,n,r,i){var o,a=this._currentItemLimit,s=this._netUploadedOrQueued;0===a||s<=a?t.length>0?this._handleCheckedCallback({name:"onValidate",callback:qq.bind(this._options.callbacks.onValidate,this,e[0],i),onSuccess:qq.bind(this._onValidateCallbackSuccess,this,t,0,n,r),onFailure:qq.bind(this._onValidateCallbackFailure,this,t,0,n,r),identifier:"Item '"+t[0].file.name+"', size: "+t[0].file.size}):this._itemError("noFilesError"):(this._onValidateBatchCallbackFailure(t),o=this._options.messages.tooManyItemsError.replace(/\{netItems\}/g,s).replace(/\{itemLimit\}/g,a),this._batchError(o))},_onValidateCallbackFailure:function(e,t,n,r){var i=t+1;this._fileOrBlobRejected(e[t].id,e[t].file.name),this._maybeProcessNextItemAfterOnValidateCallback(!1,e,i,n,r)},_onValidateCallbackSuccess:function(e,t,n,r){var i=this,o=t+1,a=this._getValidationDescriptor(e[t]);this._validateFileOrBlobData(e[t],a).then((function(){i._upload(e[t].id,n,r),i._maybeProcessNextItemAfterOnValidateCallback(!0,e,o,n,r)}),(function(){i._maybeProcessNextItemAfterOnValidateCallback(!1,e,o,n,r)}))},_prepareItemsForUpload:function(e,t,n){if(0!==e.length){var r=this._getValidationDescriptors(e),i=this._getButtonId(e[0].file),o=this._getButton(i);this._handleCheckedCallback({name:"onValidateBatch",callback:qq.bind(this._options.callbacks.onValidateBatch,this,r,o),onSuccess:qq.bind(this._onValidateBatchCallbackSuccess,this,r,e,t,n,o),onFailure:qq.bind(this._onValidateBatchCallbackFailure,this,e),identifier:"batch validation"})}else this._itemError("noFilesError")},_preventLeaveInProgress:function(){var e=this;this._disposeSupport.attach(window,"beforeunload",(function(t){if(e.getInProgress())return t=t||window.event,t.returnValue=e._options.messages.onLeave,e._options.messages.onLeave}))},_refreshSessionData:function(){var e=this,t=this._options.session;qq.Session&&null!=this._options.session.endpoint&&(this._session||(qq.extend(t,{cors:this._options.cors}),t.log=qq.bind(this.log,this),t.addFileRecord=qq.bind(this._addCannedFile,this),this._session=new qq.Session(t)),setTimeout((function(){e._session.refresh().then((function(t,n){e._sessionRequestComplete(),e._options.callbacks.onSessionRequestComplete(t,!0,n)}),(function(t,n){e._options.callbacks.onSessionRequestComplete(t,!1,n)}))}),0))},_sessionRequestComplete:function(){},_setSize:function(e,t){this._uploadData.updateSize(e,t),this._totalProgress&&this._totalProgress.onNewSize(e)},_shouldAutoRetry:function(e){var t=this._uploadData.retrieve({id:e});return!!(!this._preventRetries[e]&&this._options.retry.enableAuto&&t.status!==qq.status.PAUSED&&(void 0===this._autoRetries[e]&&(this._autoRetries[e]=0),this._autoRetries[e]<this._options.retry.maxAutoAttempts))&&(this._autoRetries[e]+=1,!0)},_storeForLater:function(e){this._storedIds.push(e)},_trackButton:function(e){var t;t=qq.supportedFeatures.ajaxUploading?this._handler.getFile(e).qqButtonId:this._getButtonId(this._handler.getInput(e)),t&&(this._buttonIdsForFileIds[e]=t)},_updateFormSupportAndParams:function(e){this._options.form.element=e,this._formSupport=qq.FormSupport&&new qq.FormSupport(this._options.form,qq.bind(this.uploadStoredFiles,this),qq.bind(this.log,this)),this._formSupport&&this._formSupport.attachedToForm&&(this._paramsStore.addReadOnly(null,this._formSupport.getFormInputsAsObject),this._options.autoUpload=this._formSupport.newAutoUpload,this._formSupport.newEndpoint&&this.setEndpoint(this._formSupport.newEndpoint))},_upload:function(e,t,n){var r=this.getName(e);t&&this.setParams(t,e),n&&this.setEndpoint(n,e),this._handleCheckedCallback({name:"onSubmit",callback:qq.bind(this._options.callbacks.onSubmit,this,e,r),onSuccess:qq.bind(this._onSubmitCallbackSuccess,this,e,r),onFailure:qq.bind(this._fileOrBlobRejected,this,e,r),identifier:e})},_uploadFile:function(e){this._handler.upload(e)||this._uploadData.setStatus(e,qq.status.QUEUED)},_uploadStoredFiles:function(){var e,t,n=this;while(this._storedIds.length)e=this._storedIds.shift(),this._uploadFile(e);t=this.getUploads({status:qq.status.SUBMITTING}).length,t&&(qq.log("Still waiting for "+t+" files to clear submit queue. Will re-parse stored IDs array shortly."),setTimeout((function(){n._uploadStoredFiles()}),1e3))},_validateFileOrBlobData:function(e,t){var n=this,r=function(){return e.file instanceof qq.BlobProxy?e.file.referenceBlob:e.file}(),i=t.name,o=t.size,a=this._getButtonId(e.file),s=this._getValidationBase(a),u=new qq.Promise;return u.then((function(){}),(function(){n._fileOrBlobRejected(e.id,i)})),qq.isFileOrInput(r)&&!this._isAllowedExtension(s.allowedExtensions,i)?(this._itemError("typeError",i,r),u.failure()):this._options.validation.allowEmpty||0!==o?o>0&&s.sizeLimit&&o>s.sizeLimit?(this._itemError("sizeError",i,r),u.failure()):o>0&&o<s.minSizeLimit?(this._itemError("minSizeError",i,r),u.failure()):(qq.ImageValidation&&qq.supportedFeatures.imagePreviews&&qq.isFile(r)?new qq.ImageValidation(r,qq.bind(n.log,n)).validate(s.image).then(u.success,(function(e){n._itemError(e+"ImageError",i,r),u.failure()})):u.success(),u):(this._itemError("emptyError",i,r),u.failure())},_wrapCallbacks:function(){var e,t,n;for(n in e=this,t=function(t,n,r){var i;try{return n.apply(e,r)}catch(o){i=o.message||o.toString(),e.log("Caught exception in '"+t+"' callback - "+i,"error")}},this._options.callbacks)(function(){var r,i;r=n,i=e._options.callbacks[r],e._options.callbacks[r]=function(){return t(r,i,arguments)}})()}}}(),function(){"use strict";qq.FineUploaderBasic=function(e){var t=this;this._options={debug:!1,button:null,multiple:!0,maxConnections:3,disableCancelForFormUploads:!1,autoUpload:!0,warnBeforeUnload:!0,request:{customHeaders:{},endpoint:"/server/upload",filenameParam:"qqfilename",forceMultipart:!0,inputName:"qqfile",method:"POST",omitDefaultParams:!1,params:{},paramsInBody:!0,requireSuccessJson:!0,totalFileSizeName:"qqtotalfilesize",uuidName:"qquuid"},validation:{allowedExtensions:[],sizeLimit:0,minSizeLimit:0,itemLimit:0,stopOnFirstInvalidFile:!0,acceptFiles:null,image:{maxHeight:0,maxWidth:0,minHeight:0,minWidth:0},allowEmpty:!1},callbacks:{onSubmit:function(e,t){},onSubmitted:function(e,t){},onComplete:function(e,t,n,r){},onAllComplete:function(e,t){},onCancel:function(e,t){},onUpload:function(e,t){},onUploadChunk:function(e,t,n){},onUploadChunkSuccess:function(e,t,n,r){},onResume:function(e,t,n,r){},onProgress:function(e,t,n,r){},onTotalProgress:function(e,t){},onError:function(e,t,n,r){},onAutoRetry:function(e,t,n){},onManualRetry:function(e,t){},onValidateBatch:function(e){},onValidate:function(e){},onSubmitDelete:function(e){},onDelete:function(e){},onDeleteComplete:function(e,t,n){},onPasteReceived:function(e){},onStatusChange:function(e,t,n){},onSessionRequestComplete:function(e,t,n){}},messages:{typeError:"{file} has an invalid extension. Valid extension(s): {extensions}.",sizeError:"{file} is too large, maximum file size is {sizeLimit}.",minSizeError:"{file} is too small, minimum file size is {minSizeLimit}.",emptyError:"{file} is empty, please select files again without it.",noFilesError:"No files to upload.",tooManyItemsError:"Too many items ({netItems}) would be uploaded. Item limit is {itemLimit}.",maxHeightImageError:"Image is too tall.",maxWidthImageError:"Image is too wide.",minHeightImageError:"Image is not tall enough.",minWidthImageError:"Image is not wide enough.",retryFailTooManyItems:"Retry failed - you have reached your file limit.",onLeave:"The files are being uploaded, if you leave now the upload will be canceled.",unsupportedBrowserIos8Safari:"Unrecoverable error - this browser does not permit file uploading of any kind due to serious bugs in iOS8 Safari. Please use iOS8 Chrome until Apple fixes these issues."},retry:{enableAuto:!1,maxAutoAttempts:3,autoAttemptDelay:5,preventRetryResponseProperty:"preventRetry"},classes:{buttonHover:"qq-upload-button-hover",buttonFocus:"qq-upload-button-focus"},chunking:{enabled:!1,concurrent:{enabled:!1},mandatory:!1,paramNames:{partIndex:"qqpartindex",partByteOffset:"qqpartbyteoffset",chunkSize:"qqchunksize",totalFileSize:"qqtotalfilesize",totalParts:"qqtotalparts"},partSize:function(e){return 2e6},success:{endpoint:null,headers:function(e){return null},jsonPayload:!1,method:"POST",params:function(e){return null},resetOnStatus:[]}},resume:{enabled:!1,recordsExpireIn:7,paramNames:{resuming:"qqresume"},customKeys:function(e){return[]}},formatFileName:function(e){return e},text:{defaultResponseError:"Upload failure reason unknown",fileInputTitle:"file input",sizeSymbols:["kB","MB","GB","TB","PB","EB"]},deleteFile:{enabled:!1,method:"DELETE",endpoint:"/server/upload",customHeaders:{},params:{}},cors:{expected:!1,sendCredentials:!1,allowXdr:!1},blobs:{defaultName:"misc_data"},paste:{targetElement:null,defaultName:"pasted_image"},camera:{ios:!1,button:null},extraButtons:[],session:{endpoint:null,params:{},customHeaders:{},refreshOnReset:!0},form:{element:"qq-form",autoUpload:!1,interceptSubmit:!0},scaling:{customResizer:null,sendOriginal:!0,orient:!0,defaultType:null,defaultQuality:80,failureText:"Failed to scale",includeExif:!1,sizes:[]},workarounds:{iosEmptyVideos:!0,ios8SafariUploads:!0,ios8BrowserCrash:!1}},qq.extend(this._options,e,!0),this._buttons=[],this._extraButtonSpecs={},this._buttonIdsForFileIds=[],this._wrapCallbacks(),this._disposeSupport=new qq.DisposeSupport,this._storedIds=[],this._autoRetries=[],this._retryTimeouts=[],this._preventRetries=[],this._thumbnailUrls=[],this._netUploadedOrQueued=0,this._netUploaded=0,this._uploadData=this._createUploadDataTracker(),this._initFormSupportAndParams(),this._customHeadersStore=this._createStore(this._options.request.customHeaders),this._deleteFileCustomHeadersStore=this._createStore(this._options.deleteFile.customHeaders),this._deleteFileParamsStore=this._createStore(this._options.deleteFile.params),this._endpointStore=this._createStore(this._options.request.endpoint),this._deleteFileEndpointStore=this._createStore(this._options.deleteFile.endpoint),this._handler=this._createUploadHandler(),this._deleteHandler=qq.DeleteFileAjaxRequester&&this._createDeleteHandler(),this._options.button&&(this._defaultButtonId=this._createUploadButton({element:this._options.button,title:this._options.text.fileInputTitle}).getButtonId()),this._generateExtraButtonSpecs(),this._handleCameraAccess(),this._options.paste.targetElement&&(qq.PasteSupport?this._pasteHandler=this._createPasteHandler():this.log("Paste support module not found","error")),this._options.warnBeforeUnload&&this._preventLeaveInProgress(),this._imageGenerator=qq.ImageGenerator&&new qq.ImageGenerator(qq.bind(this.log,this)),this._refreshSessionData(),this._succeededSinceLastAllComplete=[],this._failedSinceLastAllComplete=[],this._scaler=qq.Scaler&&new qq.Scaler(this._options.scaling,qq.bind(this.log,this))||{},this._scaler.enabled&&(this._customNewFileHandler=qq.bind(this._scaler.handleNewFile,this._scaler)),qq.TotalProgress&&qq.supportedFeatures.progressBar&&(this._totalProgress=new qq.TotalProgress(qq.bind(this._onTotalProgress,this),(function(e){var n=t._uploadData.retrieve({id:e});return n&&n.size||0}))),this._currentItemLimit=this._options.validation.itemLimit,this._customResumeDataStore=this._createStore()},qq.FineUploaderBasic.prototype=qq.basePublicApi,qq.extend(qq.FineUploaderBasic.prototype,qq.basePrivateApi)}(),qq.AjaxRequester=function(e){"use strict";var t,n,r=[],i={},o={acceptHeader:null,validMethods:["PATCH","POST","PUT"],method:"POST",contentType:"application/x-www-form-urlencoded",maxConnections:3,customHeaders:{},endpointStore:{},paramsStore:{},mandatedParams:{},allowXRequestedWithAndCacheControl:!0,successfulResponseCodes:{DELETE:[200,202,204],PATCH:[200,201,202,203,204],POST:[200,201,202,203,204],PUT:[200,201,202,203,204],GET:[200]},cors:{expected:!1,sendCredentials:!1},log:function(e,t){},onSend:function(e){},onComplete:function(e,t,n){},onProgress:null};if(qq.extend(o,e),t=o.log,qq.indexOf(o.validMethods,o.method)<0)throw new Error("'"+o.method+"' is not a supported method for this type of request!");function a(){return qq.indexOf(["GET","POST","HEAD"],o.method)>=0}function s(e){var t=!1;return qq.each(t,(function(e,n){if(qq.indexOf(["Accept","Accept-Language","Content-Language","Content-Type"],n)<0)return t=!0,!1})),t}function u(e){return o.cors.expected&&void 0===e.withCredentials}function l(){var e;return(window.XMLHttpRequest||window.ActiveXObject)&&(e=qq.createXhrInstance(),void 0===e.withCredentials&&(e=new XDomainRequest,e.onload=function(){},e.onerror=function(){},e.ontimeout=function(){},e.onprogress=function(){})),e}function c(e,t){var n=i[e]&&i[e].xhr;return n||(n=t||(o.cors.expected?l():qq.createXhrInstance()),i[e].xhr=n),n}function f(e){var t,n=qq.indexOf(r,e),a=o.maxConnections;delete i[e],r.splice(n,1),r.length>=a&&n<a&&(t=r[a-1],p(t))}function d(e,n){var r=c(e),i=o.method,a=!0===n;f(e),a?t(i+" request for "+e+" has failed","error"):u(r)||w(r.status)||(a=!0,t(i+" request for "+e+" has failed - response code "+r.status,"error")),o.onComplete(e,r,a)}function h(e){var t,n=i[e].additionalParams,r=o.mandatedParams;return o.paramsStore.get&&(t=o.paramsStore.get(e)),n&&qq.each(n,(function(e,n){t=t||{},t[e]=n})),r&&qq.each(r,(function(e,n){t=t||{},t[e]=n})),t}function p(e,r){var a,s=c(e,r),l=o.method,f=h(e),d=i[e].payload;return o.onSend(e),a=m(e,f,i[e].additionalQueryParams),u(s)?(s.onload=y(e),s.onerror=b(e)):s.onreadystatechange=g(e),v(e),s.open(l,a,!0),o.cors.expected&&o.cors.sendCredentials&&!u(s)&&(s.withCredentials=!0),q(e),t("Sending "+l+" request for "+e),d?s.send(d):n||!f?s.send():f&&o.contentType&&o.contentType.toLowerCase().indexOf("application/x-www-form-urlencoded")>=0?s.send(qq.obj2url(f,"")):f&&o.contentType&&o.contentType.toLowerCase().indexOf("application/json")>=0?s.send(JSON.stringify(f)):s.send(f),s}function m(e,t,r){var a=o.endpointStore.get(e),s=i[e].addToPath;return void 0!=s&&(a+="/"+s),n&&t&&(a=qq.obj2url(t,a)),r&&(a=qq.obj2url(r,a)),a}function g(e){return function(){4===c(e).readyState&&d(e)}}function v(e){var t=o.onProgress;t&&(c(e).upload.onprogress=function(n){n.lengthComputable&&t(e,n.loaded,n.total)})}function y(e){return function(){d(e)}}function b(e){return function(){d(e,!0)}}function q(e){var t=c(e),n=o.customHeaders,r=i[e].additionalHeaders||{},l=o.method,f={};u(t)||(o.acceptHeader&&t.setRequestHeader("Accept",o.acceptHeader),o.allowXRequestedWithAndCacheControl&&(o.cors.expected&&a()&&!s(n)||(t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.setRequestHeader("Cache-Control","no-cache"))),!o.contentType||"POST"!==l&&"PUT"!==l||t.setRequestHeader("Content-Type",o.contentType),qq.extend(f,qq.isFunction(n)?n(e):n),qq.extend(f,r),qq.each(f,(function(e,n){t.setRequestHeader(e,n)})))}function w(e){return qq.indexOf(o.successfulResponseCodes[o.method],e)>=0}function _(e,t,n,a,s,u,l){i[e]={addToPath:n,additionalParams:a,additionalQueryParams:s,additionalHeaders:u,payload:l};var c=r.push(e);if(c<=o.maxConnections)return p(e,t)}n="GET"===o.method||"DELETE"===o.method,qq.extend(this,{initTransport:function(e){var t,n,r,i,a,s;return{withPath:function(e){return t=e,this},withParams:function(e){return n=e,this},withQueryParams:function(e){return s=e,this},withHeaders:function(e){return r=e,this},withPayload:function(e){return i=e,this},withCacheBuster:function(){return a=!0,this},send:function(u){return a&&qq.indexOf(["GET","DELETE"],o.method)>=0&&(n.qqtimestamp=(new Date).getTime()),_(e,u,t,n,s,r,i)}}},canceled:function(e){f(e)}})},qq.UploadHandler=function(e){"use strict";var t=e.proxy,n={},r=t.onCancel,i=t.getName;qq.extend(this,{add:function(e,t){n[e]=t,n[e].temp={}},cancel:function(e){var t=this,o=new qq.Promise,a=r(e,i(e),o);a.then((function(){t.isValid(e)&&(n[e].canceled=!0,t.expunge(e)),o.success()}))},expunge:function(e){delete n[e]},getThirdPartyFileId:function(e){return n[e].key},isValid:function(e){return void 0!==n[e]},reset:function(){n={}},_getFileState:function(e){return n[e]},_setThirdPartyFileId:function(e,t){n[e].key=t},_wasCanceled:function(e){return!!n[e].canceled}})},qq.UploadHandlerController=function(e,t){"use strict";var n,r,i,o=this,a=!1,s=!1,u={paramsStore:{},maxConnections:3,chunking:{enabled:!1,multiple:{enabled:!1}},log:function(e,t){},onProgress:function(e,t,n,r){},onComplete:function(e,t,n,r){},onCancel:function(e,t){},onUploadPrep:function(e){},onUpload:function(e,t){},onUploadChunk:function(e,t,n){},onUploadChunkSuccess:function(e,t,n,r){},onAutoRetry:function(e,t,n,r){},onResume:function(e,t,n,r){},onUuidChanged:function(e,t){},getName:function(e){},setSize:function(e,t){},isQueued:function(e){},getIdsInProxyGroup:function(e){},getIdsInBatch:function(e){},isInProgress:function(e){}},l={done:function(e,t,n,r){var o=i._getChunkData(e,t);i._getFileState(e).attemptingResume=!1,delete i._getFileState(e).temp.chunkProgress[t],i._getFileState(e).loaded+=o.size,u.onUploadChunkSuccess(e,i._getChunkDataForCallback(o),n,r)},finalize:function(e){var t=u.getSize(e),n=u.getName(e);r("All chunks have been uploaded for "+e+" - finalizing...."),i.finalizeChunks(e).then((function(o,a){r("Finalize successful for "+e);var s=d.normalizeResponse(o,!0);u.onProgress(e,n,t,t),i._maybeDeletePersistedChunkData(e),d.cleanup(e,s,a)}),(function(t,i){var o=d.normalizeResponse(t,!1);r("Problem finalizing chunks for file ID "+e+" - "+o.error,"error"),(o.reset||i&&u.chunking.success.resetOnStatus.indexOf(i.status)>=0)&&l.reset(e),u.onAutoRetry(e,n,o,i)||d.cleanup(e,o,i)}))},handleFailure:function(e,t,n,o){var a=u.getName(t);r("Chunked upload request failed for "+t+", chunk "+e),i.clearCachedChunk(t,e);var f,h=d.normalizeResponse(n,!1);if(h.reset)l.reset(t);else{var p=i._getFileState(t).chunking.inProgress;f=p?qq.indexOf(p,e):-1,f>=0&&(i._getFileState(t).chunking.inProgress.splice(f,1),i._getFileState(t).chunking.remaining.unshift(e))}i._getFileState(t).temp.ignoreFailure||(s&&(i._getFileState(t).temp.ignoreFailure=!0,r(qq.format("Going to attempt to abort these chunks: {}. These are currently in-progress: {}.",JSON.stringify(Object.keys(i._getXhrs(t))),JSON.stringify(i._getFileState(t).chunking.inProgress))),qq.each(i._getXhrs(t),(function(e,n){r(qq.format("Attempting to abort file {}.{}. XHR readyState {}. ",t,e,n.readyState)),n.abort(),n._cancelled=!0})),i.moveInProgressToRemaining(t),c.free(t,!0)),u.onAutoRetry(t,a,h,o)||d.cleanup(t,h,o))},hasMoreParts:function(e){return!!i._getFileState(e).chunking.remaining.length},nextPart:function(e){var t=i._getFileState(e).chunking.remaining.shift();return t>=i._getTotalChunks(e)&&(t=null),t},reset:function(e){r("Server or callback has ordered chunking effort to be restarted on next attempt for item ID "+e,"error"),i._maybeDeletePersistedChunkData(e),i.reevaluateChunking(e),i._getFileState(e).loaded=0,i._getFileState(e).attemptingResume=!1},sendNext:function(e){var t=u.getSize(e),n=u.getName(e),o=l.nextPart(e),a=i._getChunkData(e,o),f=i._getFileState(e),h=f.attemptingResume,p=f.chunking.inProgress||[];if(null==f.loaded&&(f.loaded=0),h&&!1===u.onResume(e,n,a,f.customResumeData)&&(l.reset(e),o=l.nextPart(e),a=i._getChunkData(e,o),h=!1),null==o&&0===p.length)l.finalize(e);else{p.push(o),i._getFileState(e).chunking.inProgress=p,s&&c.open(e,o),s&&c.available()&&i._getFileState(e).chunking.remaining.length&&l.sendNext(e),0===a.blob.size&&(r(qq.format("Chunk {} for file {} will not be uploaded, zero sized chunk.",o,e),"error"),l.handleFailure(o,e,"File is no longer available",null));var m=u.onUploadChunk(e,n,i._getChunkDataForCallback(a));m.then((function(n){if(u.isInProgress(e)){r(qq.format("Sending chunked upload request for item {}.{}, bytes {}-{} of {}.",e,o,a.start+1,a.end,t));var s={chunkIdx:o,id:e,overrides:n,resuming:h};i.uploadChunk(s).then((function(t,n){r("Chunked upload request succeeded for "+e+", chunk "+o),i.clearCachedChunk(e,o);var a=i._getFileState(e).chunking.inProgress||[],s=d.normalizeResponse(t,!0),u=qq.indexOf(a,o);r(qq.format("Chunk {} for file {} uploaded successfully.",o,e)),l.done(e,o,s,n),u>=0&&a.splice(u,1),i._maybePersistChunkedState(e),l.hasMoreParts(e)||0!==a.length?l.hasMoreParts(e)?l.sendNext(e):r(qq.format("File ID {} has no more chunks to send and these chunk indexes are still marked as in-progress: {}",e,JSON.stringify(a))):l.finalize(e)}),(function(t,n){l.handleFailure(o,e,t,n)})).done((function(){i.clearXhr(e,o)}))}else r(qq.format("Not sending chunked upload request for item {}.{} - no longer in progress.",e,o))}),(function(t){l.handleFailure(o,e,t,null)}))}}},c={_open:[],_openChunks:{},_waiting:[],available:function(){var e=u.maxConnections,t=0,n=0;return qq.each(c._openChunks,(function(e,r){t++,n+=r.length})),e-(c._open.length-t+n)},free:function(e,t){var n,o=!t,a=qq.indexOf(c._waiting,e),s=qq.indexOf(c._open,e);delete c._openChunks[e],d.getProxyOrBlob(e)instanceof qq.BlobProxy&&(r("Generated blob upload has ended for "+e+", disposing generated blob."),delete i._getFileState(e).file),a>=0?c._waiting.splice(a,1):o&&s>=0&&(c._open.splice(s,1),n=c._waiting.shift(),n>=0&&(c._open.push(n),d.start(n)))},getWaitingOrConnected:function(){var e=[];return qq.each(c._openChunks,(function(t,n){n&&n.length&&e.push(parseInt(t))})),qq.each(c._open,(function(t,n){c._openChunks[n]||e.push(parseInt(n))})),e=e.concat(c._waiting),e},isUsingConnection:function(e){return qq.indexOf(c._open,e)>=0},open:function(e,t){return null==t&&c._waiting.push(e),!!c.available()&&(null==t?(c._waiting.pop(),c._open.push(e)):function(){var n=c._openChunks[e]||[];n.push(t),c._openChunks[e]=n}(),!0)},reset:function(){c._waiting=[],c._open=[]}},f={send:function(e,t){var n=i._getFileState(e);n?(n.loaded=0,r("Sending simple upload request for "+e),i.uploadFile(e).then((function(n,i){r("Simple upload request succeeded for "+e);var o=d.normalizeResponse(n,!0),a=u.getSize(e);u.onProgress(e,t,a,a),d.maybeNewUuid(e,o),d.cleanup(e,o,i)}),(function(n,i){r("Simple upload request failed for "+e);var o=d.normalizeResponse(n,!1);u.onAutoRetry(e,t,o,i)||d.cleanup(e,o,i)}))):r("Ignoring send request as this upload may have been cancelled, File ID "+e,"warn")}},d={cancel:function(e){r("Cancelling "+e),u.paramsStore.remove(e),c.free(e)},cleanup:function(e,t,n){var r=u.getName(e);u.onComplete(e,r,t,n),i._getFileState(e)&&i._clearXhrs&&i._clearXhrs(e),c.free(e)},getProxyOrBlob:function(e){return i.getProxy&&i.getProxy(e)||i.getFile&&i.getFile(e)},initHandler:function(){var e=t?qq[t]:qq.traditional,n=qq.supportedFeatures.ajaxUploading?"Xhr":"Form";i=new e[n+"UploadHandler"](u,{getCustomResumeData:u.getCustomResumeData,getDataByUuid:u.getDataByUuid,getName:u.getName,getSize:u.getSize,getUuid:u.getUuid,log:r,onCancel:u.onCancel,onProgress:u.onProgress,onUuidChanged:u.onUuidChanged,onFinalizing:function(e){u.setStatus(e,qq.status.UPLOAD_FINALIZING)}}),i._removeExpiredChunkingRecords&&i._removeExpiredChunkingRecords()},isDeferredEligibleForUpload:function(e){return u.isQueued(e)},maybeDefer:function(e,t){return t&&!i.getFile(e)&&t instanceof qq.BlobProxy?(u.onUploadPrep(e),r("Attempting to generate a blob on-demand for "+e),t.create().then((function(t){r("Generated an on-demand blob for "+e),i.updateBlob(e,t),u.setSize(e,t.size),i.reevaluateChunking(e),d.maybeSendDeferredFiles(e)}),(function(t){var i={};t&&(i.error=t),r(qq.format("Failed to generate blob for ID {}. Error message: {}.",e,t),"error"),u.onComplete(e,u.getName(e),qq.extend(i,n),null),d.maybeSendDeferredFiles(e),c.free(e)})),!1):d.maybeSendDeferredFiles(e)},maybeSendDeferredFiles:function(e){var t=u.getIdsInProxyGroup(e),n=!1;return t&&t.length?(r("Maybe ready to upload proxy group file "+e),qq.each(t,(function(t,r){if(d.isDeferredEligibleForUpload(r)&&i.getFile(r))n=r===e,d.now(r);else if(d.isDeferredEligibleForUpload(r))return!1}))):(n=!0,d.now(e)),n},maybeNewUuid:function(e,t){void 0!==t.newUuid&&u.onUuidChanged(e,t.newUuid)},normalizeResponse:function(e,t){var n=e;return qq.isObject(e)||(n={},qq.isString(e)&&!t&&(n.error=e)),n.success=t,n},now:function(e){var t=u.getName(e);if(!o.isValid(e))throw new qq.Error(e+" is not a valid file ID to upload!");u.onUpload(e,t).then((function(n){n&&n.pause?(u.setStatus(e,qq.status.PAUSED),i.pause(e),c.free(e)):a&&i._shouldChunkThisFile(e)?l.sendNext(e):f.send(e,t)}),(function(n){if(n=n||{},r(e+" upload start aborted due to rejected onUpload Promise - details: "+n,"error"),!u.onAutoRetry(e,t,n.responseJSON||{})){var i=d.normalizeResponse(n.responseJSON,!1);d.cleanup(e,i)}}))},start:function(e){var t=d.getProxyOrBlob(e);return t?d.maybeDefer(e,t):(d.now(e),!0)}};qq.extend(this,{add:function(e,t){i.add.apply(this,arguments)},upload:function(e){return!!c.open(e)&&d.start(e)},retry:function(e){return s&&(i._getFileState(e).temp.ignoreFailure=!1),c.isUsingConnection(e)?d.start(e):o.upload(e)},cancel:function(e){var t=i.cancel(e);qq.isGenericPromise(t)?t.then((function(){d.cancel(e)})):!1!==t&&d.cancel(e)},cancelAll:function(){var e,t=c.getWaitingOrConnected();if(t.length)for(e=t.length-1;e>=0;e--)o.cancel(t[e]);c.reset()},getFile:function(e){return i.getProxy&&i.getProxy(e)?i.getProxy(e).referenceBlob:i.getFile&&i.getFile(e)},isProxied:function(e){return!(!i.getProxy||!i.getProxy(e))},getInput:function(e){if(i.getInput)return i.getInput(e)},reset:function(){r("Resetting upload handler"),o.cancelAll(),c.reset(),i.reset()},expunge:function(e){if(o.isValid(e))return i.expunge(e)},isValid:function(e){return i.isValid(e)},hasResumeRecord:function(e){var t=i.isValid(e)&&i._getLocalStorageId&&i._getLocalStorageId(e);return!!t&&!!localStorage.getItem(t)},getResumableFilesData:function(){return i.getResumableFilesData?i.getResumableFilesData():[]},getThirdPartyFileId:function(e){if(o.isValid(e))return i.getThirdPartyFileId(e)},pause:function(e){return!!(o.isResumable(e)&&i.pause&&o.isValid(e)&&i.pause(e))&&(c.free(e),i.moveInProgressToRemaining(e),!0)},isAttemptingResume:function(e){return!!i.isAttemptingResume&&i.isAttemptingResume(e)},isResumable:function(e){return!!i.isResumable&&i.isResumable(e)}}),qq.extend(u,e),r=u.log,a=u.chunking.enabled&&qq.supportedFeatures.chunking,s=a&&u.chunking.concurrent.enabled,n=function(){var e={};return e[u.preventRetryParam]=!0,e}(),d.initHandler()},qq.WindowReceiveMessage=function(e){"use strict";var t={log:function(e,t){}},n={};qq.extend(t,e),qq.extend(this,{receiveMessage:function(e,t){var r=function(e){t(e.data)};window.postMessage?n[e]=qq(window).attach("message",r):log("iframe message passing not supported in this browser!","error")},stopReceivingMessages:function(e){if(window.postMessage){var t=n[e];t&&t()}}})},qq.FormUploadHandler=function(e){"use strict";var t=e.options,n=this,r=e.proxy,i=qq.getUniqueId(),o={},a={},s={},u=t.isCors,l=t.inputName,c=r.getUuid,f=r.log,d=new qq.WindowReceiveMessage({log:f});function h(e){delete a[e],u&&(clearTimeout(s[e]),delete s[e],d.stopReceivingMessages(e));var t=document.getElementById(n._getIframeName(e));t&&(t.setAttribute("src","javascript:false;"),qq(t).remove())}function p(e){return e.split("_")[0]}function m(e){var t=qq.toElement("<iframe src='javascript:false;' name='"+e+"' />");return t.setAttribute("id",e),t.style.display="none",document.body.appendChild(t),t}function g(e,t){var r=e.id,i=p(r),u=c(i);o[u]=t,a[i]=qq(e).attach("load",(function(){n.getInput(i)&&(f("Received iframe load event for CORS upload request (iframe name "+r+")"),s[r]=setTimeout((function(){var e="No valid message received from loaded iframe for iframe name "+r;f(e,"error"),t({error:e})}),1e3))})),d.receiveMessage(r,(function(e){f("Received the following window message: '"+e+"'");p(r);var t,i=n._parseJsonResponse(e),a=i.uuid;a&&o[a]?(f("Handling response for iframe name "+r),clearTimeout(s[r]),delete s[r],n._detachLoadEvent(r),t=o[a],delete o[a],d.stopReceivingMessages(r),t(i)):a||f("'"+e+"' does not contain a UUID - ignoring.")}))}qq.extend(this,new qq.UploadHandler(e)),qq.override(this,(function(e){return{add:function(t,n){e.add(t,{input:n}),n.setAttribute("name",l),n.parentNode&&qq(n).remove()},expunge:function(t){h(t),e.expunge(t)},isValid:function(t){return e.isValid(t)&&void 0!==n._getFileState(t).input}}})),qq.extend(this,{getInput:function(e){return n._getFileState(e).input},_attachLoadEvent:function(e,t){var n;u?g(e,t):a[e.id]=qq(e).attach("load",(function(){if(f("Received response for "+e.id),e.parentNode){try{if(e.contentDocument&&e.contentDocument.body&&"false"==e.contentDocument.body.innerHTML)return}catch(r){f("Error when attempting to access iframe during handling of upload response ("+r.message+")","error"),n={success:!1}}t(n)}}))},_createIframe:function(e){var t=n._getIframeName(e);return m(t)},_detachLoadEvent:function(e){void 0!==a[e]&&(a[e](),delete a[e])},_getIframeName:function(e){return e+"_"+i},_initFormForUpload:function(e){var t=e.method,n=e.endpoint,r=e.params,i=e.paramsInBody,o=e.targetName,a=qq.toElement("<form method='"+t+"' enctype='multipart/form-data'></form>"),s=n;return i?qq.obj2Inputs(r,a):s=qq.obj2url(r,n),a.setAttribute("action",s),a.setAttribute("target",o),a.style.display="none",document.body.appendChild(a),a},_parseJsonResponse:function(e){var t={};try{t=qq.parseJson(e)}catch(n){f("Error when attempting to parse iframe upload response ("+n.message+")","error")}return t}})},qq.XhrUploadHandler=function(e){"use strict";var t=this,n=e.options.namespace,r=e.proxy,i=e.options.chunking,o=function(e){var n=t._getFileState(e);if(n.chunkSize)return n.chunkSize;var r=i.partSize;return qq.isFunction(r)&&(r=r(e,c(e))),n.chunkSize=r,r},a=e.options.resume,s=i&&e.options.chunking.enabled&&qq.supportedFeatures.chunking,u=a&&e.options.resume.enabled&&s&&qq.supportedFeatures.resume,l=r.getName,c=r.getSize,f=r.getUuid,d=r.getEndpoint,h=r.getDataByUuid,p=r.onUuidChanged,m=r.onProgress,g=r.log,v=r.getCustomResumeData;function y(e){qq.each(t._getXhrs(e),(function(n,r){var i=t._getAjaxRequester(e,n);r.onreadystatechange=null,r.upload.onprogress=null,r.abort(),i&&i.canceled&&i.canceled(e)}))}qq.extend(this,new qq.UploadHandler(e)),qq.override(this,(function(e){return{add:function(n,r){if(qq.isFile(r)||qq.isBlob(r))e.add(n,{file:r});else{if(!(r instanceof qq.BlobProxy))throw new Error("Passed obj is not a File, Blob, or proxy");e.add(n,{proxy:r})}t._initTempState(n),u&&t._maybePrepareForResume(n)},expunge:function(n){y(n),t._maybeDeletePersistedChunkData(n),t._clearXhrs(n),e.expunge(n)}}})),qq.extend(this,{clearCachedChunk:function(e,n){var r=t._getFileState(e);r&&delete r.temp.cachedChunks[n]},clearXhr:function(e,n){var r=t._getFileState(e).temp;r.xhrs&&delete r.xhrs[n],r.ajaxRequesters&&delete r.ajaxRequesters[n]},finalizeChunks:function(e,n){var r=t._getTotalChunks(e)-1,i=t._getXhr(e,r);return n?(new qq.Promise).success(n(i),i):(new qq.Promise).success({},i)},getFile:function(e){return t.isValid(e)&&t._getFileState(e).file},getProxy:function(e){return t.isValid(e)&&t._getFileState(e).proxy},getResumableFilesData:function(){var e=[];return t._iterateResumeRecords((function(n,r){t.moveInProgressToRemaining(null,r.chunking.inProgress,r.chunking.remaining);var i={name:r.name,remaining:r.chunking.remaining,size:r.size,uuid:r.uuid};r.key&&(i.key=r.key),r.customResumeData&&(i.customResumeData=r.customResumeData),e.push(i)})),e},isAttemptingResume:function(e){return t._getFileState(e).attemptingResume},isResumable:function(e){return!!i&&t.isValid(e)&&!t._getFileState(e).notResumable},moveInProgressToRemaining:function(e,n,r){var i=t._getFileState(e)||{},o=i.chunking||{},a=n||o.inProgress,s=r||o.remaining;a&&(g(qq.format("Moving these chunks from in-progress {}, to remaining.",JSON.stringify(a))),a.reverse(),qq.each(a,(function(e,t){s.unshift(t)})),a.length=0)},pause:function(e){if(t.isValid(e))return g(qq.format("Aborting XHR upload for {} '{}' due to pause instruction.",e,l(e))),t._getFileState(e).paused=!0,y(e),!0},reevaluateChunking:function(e){if(i&&t.isValid(e)){var n,r,o=t._getFileState(e);if(delete o.chunking,o.chunking={},n=t._getTotalChunks(e),n>1||i.mandatory){for(o.chunking.enabled=!0,o.chunking.parts=n,o.chunking.remaining=[],r=0;r<n;r++)o.chunking.remaining.push(r);t._initTempState(e)}else o.chunking.enabled=!1}},updateBlob:function(e,n){t.isValid(e)&&(t._getFileState(e).file=n)},_clearXhrs:function(e){var n=t._getFileState(e).temp;qq.each(n.ajaxRequesters,(function(e){delete n.ajaxRequesters[e]})),qq.each(n.xhrs,(function(e){delete n.xhrs[e]}))},_createXhr:function(e,n){return t._registerXhr(e,n,qq.createXhrInstance())},_getAjaxRequester:function(e,n){var r=null==n?-1:n;return t._getFileState(e).temp.ajaxRequesters[r]},_getChunkData:function(e,n){var r=o(e),i=c(e),a=t.getFile(e),s=r*n,u=s+r>=i?i:s+r,l=t._getTotalChunks(e),f=this._getFileState(e).temp.cachedChunks,d=f[n]||qq.sliceBlob(a,s,u);return f[n]=d,{part:n,start:s,end:u,count:l,blob:d,size:u-s}},_getChunkDataForCallback:function(e){return{partIndex:e.part,startByte:e.start+1,endByte:e.end,totalParts:e.count}},_getLocalStorageId:function(e){var t="5.0",r=l(e),i=c(e),s=o(e),u=d(e),f=a.customKeys(e),h=qq.format("qq{}resume{}-{}-{}-{}-{}",n,t,r,i,s,u);return f.forEach((function(e){h+="-"+e})),h},_getMimeType:function(e){return t.getFile(e).type},_getPersistableData:function(e){return t._getFileState(e).chunking},_getTotalChunks:function(e){if(i){var t=c(e),n=o(e);return Math.ceil(t/n)}},_getXhr:function(e,n){var r=null==n?-1:n;return t._getFileState(e).temp.xhrs[r]},_getXhrs:function(e){return t._getFileState(e).temp.xhrs},_iterateResumeRecords:function(e){u&&qq.each(localStorage,(function(t,r){if(0===t.indexOf(qq.format("qq{}resume",n))){var i=JSON.parse(r);e(t,i)}}))},_initTempState:function(e){t._getFileState(e).temp={ajaxRequesters:{},chunkProgress:{},xhrs:{},cachedChunks:{}}},_markNotResumable:function(e){t._getFileState(e).notResumable=!0},_maybeDeletePersistedChunkData:function(e){var n;return!!(u&&t.isResumable(e)&&(n=t._getLocalStorageId(e),n&&localStorage.getItem(n)))&&(localStorage.removeItem(n),!0)},_maybePrepareForResume:function(e){var n,r,i=t._getFileState(e);u&&void 0===i.key&&(n=t._getLocalStorageId(e),r=localStorage.getItem(n),r&&(r=JSON.parse(r),h(r.uuid)?t._markNotResumable(e):(g(qq.format("Identified file with ID {} and name of {} as resumable.",e,l(e))),p(e,r.uuid),i.key=r.key,i.chunking=r.chunking,i.loaded=r.loaded,i.customResumeData=r.customResumeData,i.attemptingResume=!0,t.moveInProgressToRemaining(e))))},_maybePersistChunkedState:function(e){var n,r,i=t._getFileState(e);if(u&&t.isResumable(e)){var o=v(e);n=t._getLocalStorageId(e),r={name:l(e),size:c(e),uuid:f(e),key:i.key,chunking:i.chunking,loaded:i.loaded,lastUpdated:Date.now()},o&&(r.customResumeData=o);try{localStorage.setItem(n,JSON.stringify(r))}catch(a){g(qq.format("Unable to save resume data for '{}' due to error: '{}'.",e,a.toString()),"warn")}}},_registerProgressHandler:function(e,n,r){var i=t._getXhr(e,n),o=l(e),a={simple:function(t,n){var r=c(e);m(e,o,t===n?r:t>=r?r-1:t,r)},chunked:function(i,a){var s=t._getFileState(e).temp.chunkProgress,u=t._getFileState(e).loaded,l=i,f=a,d=c(e),h=l-(f-r),p=u;s[n]=h,qq.each(s,(function(e,t){p+=t})),m(e,o,p,d)}};i.upload.onprogress=function(e){if(e.lengthComputable){var t=null==r?"simple":"chunked";a[t](e.loaded,e.total)}}},_registerXhr:function(e,n,r,i){var o=null==n?-1:n,a=t._getFileState(e).temp;return a.xhrs=a.xhrs||{},a.ajaxRequesters=a.ajaxRequesters||{},a.xhrs[o]=r,i&&(a.ajaxRequesters[o]=i),r},_removeExpiredChunkingRecords:function(){var e=a.recordsExpireIn;t._iterateResumeRecords((function(t,n){var r=new Date(n.lastUpdated);r.setDate(r.getDate()+e),r.getTime()<=Date.now()&&(g("Removing expired resume record with key "+t),localStorage.removeItem(t))}))},_shouldChunkThisFile:function(e){var n=t._getFileState(e);if(n)return n.chunking||t.reevaluateChunking(e),n.chunking.enabled}})},qq.DeleteFileAjaxRequester=function(e){"use strict";var t,n={method:"DELETE",uuidParamName:"qquuid",endpointStore:{},maxConnections:3,customHeaders:function(e){return{}},paramsStore:{},cors:{expected:!1,sendCredentials:!1},log:function(e,t){},onDelete:function(e){},onDeleteComplete:function(e,t,n){}};function r(){return"POST"===n.method.toUpperCase()?{_method:"DELETE"}:{}}qq.extend(n,e),t=qq.extend(this,new qq.AjaxRequester({acceptHeader:"application/json",validMethods:["POST","DELETE"],method:n.method,endpointStore:n.endpointStore,paramsStore:n.paramsStore,mandatedParams:r(),maxConnections:n.maxConnections,customHeaders:function(e){return n.customHeaders.get(e)},log:n.log,onSend:n.onDelete,onComplete:n.onDeleteComplete,cors:n.cors})),qq.extend(this,{sendDelete:function(e,r,i){var o=i||{};n.log("Submitting delete file request for "+e),"DELETE"===n.method?t.initTransport(e).withPath(r).withParams(o).send():(o[n.uuidParamName]=r,t.initTransport(e).withParams(o).send())}})},function(){function e(e){var t,n=e.naturalWidth,r=e.naturalHeight,i=document.createElement("canvas");return n*r>1048576&&(i.width=i.height=1,t=i.getContext("2d"),t.drawImage(e,1-n,0),0===t.getImageData(0,0,1,1).data[3])}function t(e,t,n){var r,i,o,a,s=document.createElement("canvas"),u=0,l=n,c=n;s.width=1,s.height=n,r=s.getContext("2d"),r.drawImage(e,0,0),i=r.getImageData(0,0,1,n).data;while(c>u)o=i[4*(c-1)+3],0===o?l=c:u=c,c=l+u>>1;return a=c/n,0===a?1:a}function n(e,t,n,r){var o=document.createElement("canvas"),a=n.mime||"image/jpeg",s=new qq.Promise;return i(e,t,o,n,r).then((function(){s.success(o.toDataURL(a,n.quality||.8))})),s}function r(e){var t=5241e3;if(!qq.ios())throw new qq.Error("Downsampled dimensions can only be reliably calculated for iOS!");if(e.origHeight*e.origWidth>t)return{newHeight:Math.round(Math.sqrt(t*(e.origHeight/e.origWidth))),newWidth:Math.round(Math.sqrt(t*(e.origWidth/e.origHeight)))}}function i(n,i,s,u,l){var c,f=n.naturalWidth,d=n.naturalHeight,h=u.width,p=u.height,m=s.getContext("2d"),g=new qq.Promise;return m.save(),u.resize?o({blob:i,canvas:s,image:n,imageHeight:d,imageWidth:f,orientation:u.orientation,resize:u.resize,targetHeight:p,targetWidth:h}):(qq.supportedFeatures.unlimitedScaledImageSize||(c=r({origWidth:h,origHeight:p}),c&&(qq.log(qq.format("Had to reduce dimensions due to device limitations from {}w / {}h to {}w / {}h",h,p,c.newWidth,c.newHeight),"warn"),h=c.newWidth,p=c.newHeight)),a(s,h,p,u.orientation),qq.ios()?function(){e(n)&&(f/=2,d/=2);var r,i,o,a=1024,s=document.createElement("canvas"),u=l?t(n,f,d):1,c=Math.ceil(a*h/f),g=Math.ceil(a*p/d/u),v=0,y=0;s.width=s.height=a,r=s.getContext("2d");while(v<d){i=0,o=0;while(i<f)r.clearRect(0,0,a,a),r.drawImage(n,-i,-v),m.drawImage(s,0,0,a,a,o,y,c,g),i+=a,o+=c;v+=a,y+=g}m.restore(),s=r=null}():m.drawImage(n,0,0,h,p),s.qqImageRendered&&s.qqImageRendered(),g.success(),g)}function o(e){var t=e.blob,n=e.image,r=e.imageHeight,i=e.imageWidth,o=e.orientation,s=new qq.Promise,u=e.resize,l=document.createElement("canvas"),c=l.getContext("2d"),f=e.canvas,d=e.targetHeight,h=e.targetWidth;return a(l,i,r,o),f.height=d,f.width=h,c.drawImage(n,0,0),u({blob:t,height:d,image:n,sourceCanvas:l,targetCanvas:f,width:h}).then((function(){f.qqImageRendered&&f.qqImageRendered(),s.success()}),s.failure),s}function a(e,t,n,r){switch(r){case 5:case 6:case 7:case 8:e.width=n,e.height=t;break;default:e.width=t,e.height=n}var i=e.getContext("2d");switch(r){case 2:i.translate(t,0),i.scale(-1,1);break;case 3:i.translate(t,n),i.rotate(Math.PI);break;case 4:i.translate(0,n),i.scale(1,-1);break;case 5:i.rotate(.5*Math.PI),i.scale(1,-1);break;case 6:i.rotate(.5*Math.PI),i.translate(0,-n);break;case 7:i.rotate(.5*Math.PI),i.translate(t,-n),i.scale(-1,1);break;case 8:i.rotate(-.5*Math.PI),i.translate(-t,0);break;default:break}}function s(e,t){var n=this;window.Blob&&e instanceof Blob&&function(){var t=new Image,r=window.URL&&window.URL.createObjectURL?window.URL:window.webkitURL&&window.webkitURL.createObjectURL?window.webkitURL:null;if(!r)throw Error("No createObjectURL function found to create blob url");t.src=r.createObjectURL(e),n.blob=e,e=t}(),e.naturalWidth||e.naturalHeight||(e.onload=function(){var e=n.imageLoadListeners;e&&(n.imageLoadListeners=null,setTimeout((function(){for(var t=0,n=e.length;t<n;t++)e[t]()}),0))},e.onerror=t,this.imageLoadListeners=[]),this.srcImage=e}s.prototype.render=function(e,t){t=t||{};var r,o=this,a=this.srcImage.naturalWidth,s=this.srcImage.naturalHeight,u=t.width,l=t.height,c=t.maxWidth,f=t.maxHeight,d=!this.blob||"image/jpeg"===this.blob.type,h=e.tagName.toLowerCase();this.imageLoadListeners?this.imageLoadListeners.push((function(){o.render(e,t)})):(u&&!l?l=s*u/a<<0:l&&!u?u=a*l/s<<0:(u=a,l=s),c&&u>c&&(u=c,l=s*u/a<<0),f&&l>f&&(l=f,u=a*l/s<<0),r={width:u,height:l},qq.each(t,(function(e,t){r[e]=t})),"img"===h?function(){var t=e.src;n(o.srcImage,o.blob,r,d).then((function(n){e.src=n,t===e.src&&e.onload()}))}():"canvas"===h&&i(this.srcImage,this.blob,e,r,d),"function"===typeof this.onrender&&this.onrender(e))},qq.MegaPixImage=s}(),qq.ImageGenerator=function(e){"use strict";function t(e){return"img"===e.tagName.toLowerCase()}function n(e){return"canvas"===e.tagName.toLowerCase()}function r(){return void 0!==(new Image).crossOrigin}function i(){var e=document.createElement("canvas");return e.getContext&&e.getContext("2d")}function o(e){var t=e.split("/"),n=t[t.length-1].split("?")[0],r=qq.getExtension(n);switch(r=r&&r.toLowerCase(),r){case"jpeg":case"jpg":return"image/jpeg";case"png":return"image/png";case"bmp":return"image/bmp";case"gif":return"image/gif";case"tiff":case"tif":return"image/tiff"}}function a(e){var t,n,r,i=document.createElement("a");return i.href=e,t=i.protocol,r=i.port,n=i.hostname,t.toLowerCase()!==window.location.protocol.toLowerCase()||(n.toLowerCase()!==window.location.hostname.toLowerCase()||r!==window.location.port&&!qq.ie())}function s(t,n){t.onload=function(){t.onload=null,t.onerror=null,n.success(t)},t.onerror=function(){t.onload=null,t.onerror=null,e("Problem drawing thumbnail!","error"),n.failure(t,"Problem drawing thumbnail!")}}function u(e,t){e.qqImageRendered=function(){t.success(e)}}function l(r,i){var o=t(r)||n(r);return t(r)?s(r,i):n(r)?u(r,i):(i.failure(r),e(qq.format("Element container of type {} is not supported!",r.tagName),"error")),o}function c(t,n,r){var i=new qq.Promise,o=new qq.Identify(t,e),a=r.maxSize,s=null==r.orient||r.orient,u=function(){n.onerror=null,n.onload=null,e("Could not render preview, file may be too large!","error"),i.failure(n,"Browser cannot render image!")};return o.isPreviewable().then((function(o){var c={parse:function(){return(new qq.Promise).success()}},f=s?new qq.Exif(t,e):c,d=new qq.MegaPixImage(t,u);l(n,i)&&f.parse().then((function(e){var t=e&&e.Orientation;d.render(n,{maxWidth:a,maxHeight:a,orientation:t,mime:o,resize:r.customResizeFunction})}),(function(t){e(qq.format("EXIF data could not be parsed ({}). Assuming orientation = 1.",t)),d.render(n,{maxWidth:a,maxHeight:a,mime:o,resize:r.customResizeFunction})}))}),(function(){e("Not previewable"),i.failure(n,"Not previewable")})),i}function f(e,t,n,r,i){var s=new Image,u=new qq.Promise;l(s,u),a(e)&&(s.crossOrigin="anonymous"),s.src=e,u.then((function(){l(t,n);var a=new qq.MegaPixImage(s);a.render(t,{maxWidth:r,maxHeight:r,mime:o(e),resize:i})}),n.failure)}function d(e,t,n,r){l(t,n),qq(t).css({maxWidth:r+"px",maxHeight:r+"px"}),t.src=e}function h(e,o,s){var u=new qq.Promise,c=s.scale,h=c?s.maxSize:null;return c&&t(o)?i()?a(e)&&!r()?d(e,o,u,h):f(e,o,u,h):d(e,o,u,h):n(o)?f(e,o,u,h):l(o,u)&&(o.src=e),u}qq.extend(this,{generate:function(t,n,r){return qq.isString(t)?(e("Attempting to update thumbnail based on server response."),h(t,n,r||{})):(e("Attempting to draw client-side image preview."),c(t,n,r||{}))}}),this._testing={},this._testing.isImg=t,this._testing.isCanvas=n,this._testing.isCrossOrigin=a,this._testing.determineMimeOfFileName=o},qq.Exif=function(e,t){"use strict";var n=[274],r={274:{name:"Orientation",bytes:2}};function i(e){var t=0,n=0;while(e.length>0)t+=parseInt(e.substring(0,2),16)*Math.pow(2,n),e=e.substring(2,e.length),n+=8;return t}function o(t,n){var r=t,i=n;return void 0===r&&(r=2,i=new qq.Promise),qq.readBlobToHex(e,r,4).then((function(e){var t,n=/^ffe([0-9])/.exec(e);n?"1"!==n[1]?(t=parseInt(e.slice(4,8),16),o(r+t+2,i)):i.success(r):i.failure("No EXIF header to be found!")})),i}function a(){var t=new qq.Promise;return qq.readBlobToHex(e,0,6).then((function(e){0!==e.indexOf("ffd8")?t.failure("Not a valid JPEG!"):o().then((function(e){t.success(e)}),(function(e){t.failure(e)}))})),t}function s(t){var n=new qq.Promise;return qq.readBlobToHex(e,t+10,2).then((function(e){n.success("4949"===e)})),n}function u(t,n){var r=new qq.Promise;return qq.readBlobToHex(e,t+18,2).then((function(e){if(n)return r.success(i(e));r.success(parseInt(e,16))})),r}function l(t,n){var r=t+20,i=12*n;return qq.readBlobToHex(e,r,i)}function c(e){var t=[],n=0;while(n+24<=e.length)t.push(e.slice(n,n+24)),n+=24;return t}function f(e,t){var o=16,a=qq.extend([],n),s={};return qq.each(t,(function(t,n){var u,l,c,f=n.slice(0,4),d=e?i(f):parseInt(f,16),h=a.indexOf(d);if(h>=0&&(l=r[d].name,c=r[d].bytes,u=n.slice(o,o+2*c),s[l]=e?i(u):parseInt(u,16),a.splice(h,1)),0===a.length)return!1})),s}qq.extend(this,{parse:function(){var n=new qq.Promise,r=function(e){t(qq.format("EXIF header parse failed: '{}' ",e)),n.failure(e)};return a().then((function(i){t(qq.format("Moving forward with EXIF header parsing for '{}'",void 0===e.name?"blob":e.name)),s(i).then((function(e){t(qq.format("EXIF Byte order is {} endian",e?"little":"big")),u(i,e).then((function(o){t(qq.format("Found {} APP1 directory entries",o)),l(i,o).then((function(r){var i=c(r),o=f(e,i);t("Successfully parsed some EXIF tags"),n.success(o)}),r)}),r)}),r)}),r),n}}),this._testing={},this._testing.parseLittleEndian=i},qq.Identify=function(e,t){"use strict";function n(e,t){var n=!1,r=[].concat(e);return qq.each(r,(function(e,r){if(0===t.indexOf(r))return n=!0,!1})),n}qq.extend(this,{isPreviewable:function(){var r=this,i=new qq.Promise,o=!1,a=void 0===e.name?"blob":e.name;return t(qq.format("Attempting to determine if {} can be rendered in this browser",a)),t("First pass: check type attribute of blob object."),this.isPreviewableSync()?(t("Second pass: check for magic bytes in file header."),qq.readBlobToHex(e,0,4).then((function(e){qq.each(r.PREVIEWABLE_MIME_TYPES,(function(t,r){if(n(r,e))return("image/tiff"!==t||qq.supportedFeatures.tiffPreviews)&&(o=!0,i.success(t)),!1})),t(qq.format("'{}' is {} able to be rendered in this browser",a,o?"":"NOT")),o||i.failure()}),(function(){t("Error reading file w/ name '"+a+"'. Not able to be rendered in this browser."),i.failure()}))):i.failure(),i},isPreviewableSync:function(){var n=e.type,r=qq.indexOf(Object.keys(this.PREVIEWABLE_MIME_TYPES),n)>=0,i=!1,o=void 0===e.name?"blob":e.name;return r&&(i="image/tiff"!==n||qq.supportedFeatures.tiffPreviews),!i&&t(o+" is not previewable in this browser per the blob's type attr"),i}})},qq.Identify.prototype.PREVIEWABLE_MIME_TYPES={"image/jpeg":"ffd8ff","image/gif":"474946","image/png":"89504e","image/bmp":"424d","image/tiff":["49492a00","4d4d002a"]},qq.ImageValidation=function(e,t){"use strict";function n(e){var t=!1;return qq.each(e,(function(e,n){if(n>0)return t=!0,!1})),t}function r(){var n=new qq.Promise;return new qq.Identify(e,t).isPreviewable().then((function(){var r=new Image,i=window.URL&&window.URL.createObjectURL?window.URL:window.webkitURL&&window.webkitURL.createObjectURL?window.webkitURL:null;i?(r.onerror=function(){t("Cannot determine dimensions for image. May be too large.","error"),n.failure()},r.onload=function(){n.success({width:this.width,height:this.height})},r.src=i.createObjectURL(e)):(t("No createObjectURL function available to generate image URL!","error"),n.failure())}),n.failure),n}function i(e,t){var n;return qq.each(e,(function(e,r){if(r>0){var i=/(max|min)(Width|Height)/.exec(e),o=i[2].charAt(0).toLowerCase()+i[2].slice(1),a=t[o];switch(i[1]){case"min":if(a<r)return n=e,!1;break;case"max":if(a>r)return n=e,!1;break}}})),n}this.validate=function(e){var o=new qq.Promise;return t("Attempting to validate image."),n(e)?r().then((function(t){var n=i(e,t);n?o.failure(n):o.success()}),o.success):o.success(),o}},qq.Session=function(e){"use strict";var t={endpoint:null,params:{},customHeaders:{},cors:{},addFileRecord:function(e){},log:function(e,t){}};function n(e){if(qq.isArray(e))return!0;t.log("Session response is not an array.","error")}function r(e,r,i,o){var a=!1;r=r&&n(e),r&&qq.each(e,(function(e,n){if(null==n.uuid)a=!0,t.log(qq.format("Session response item {} did not include a valid UUID - ignoring.",e),"error");else if(null==n.name)a=!0,t.log(qq.format("Session response item {} did not include a valid name - ignoring.",e),"error");else try{return t.addFileRecord(n),!0}catch(r){a=!0,t.log(r.message,"error")}return!1})),o[r&&!a?"success":"failure"](e,i)}qq.extend(t,e,!0),this.refresh=function(){var e=new qq.Promise,n=function(t,n,i){r(t,n,i,e)},i=qq.extend({},t),o=new qq.SessionAjaxRequester(qq.extend(i,{onComplete:n}));return o.queryServer(),e}},qq.SessionAjaxRequester=function(e){"use strict";var t,n={endpoint:null,customHeaders:{},params:{},cors:{expected:!1,sendCredentials:!1},onComplete:function(e,t,n){},log:function(e,t){}};function r(e,t,r){var i=null;if(null!=t.responseText)try{i=qq.parseJson(t.responseText)}catch(o){n.log("Problem parsing session response: "+o.message,"error"),r=!0}n.onComplete(i,!r,t)}qq.extend(n,e),t=qq.extend(this,new qq.AjaxRequester({acceptHeader:"application/json",validMethods:["GET"],method:"GET",endpointStore:{get:function(){return n.endpoint}},customHeaders:n.customHeaders,log:n.log,onComplete:r,cors:n.cors})),qq.extend(this,{queryServer:function(){var e=qq.extend({},n.params);n.log("Session query request."),t.initTransport("sessionRefresh").withParams(e).withCacheBuster().send()}})},qq.Scaler=function(e,t){"use strict";var n=e.customResizer,r=e.sendOriginal,i=e.orient,o=e.defaultType,a=e.defaultQuality/100,s=e.failureText,u=e.includeExif,l=this._getSortedSizes(e.sizes);qq.extend(this,{enabled:qq.supportedFeatures.scaling&&l.length>0,getFileRecords:function(e,c,f){var d=this,h=[],p=f.blob?f.blob:f,m=new qq.Identify(p,t);return m.isPreviewableSync()?(qq.each(l,(function(e,r){var l=d._determineOutputType({defaultType:o,requestedType:r.type,refType:p.type});h.push({uuid:qq.getUniqueId(),name:d._getName(c,{name:r.name,type:l,refType:p.type}),blob:new qq.BlobProxy(p,qq.bind(d._generateScaledImage,d,{customResizeFunction:n,maxSize:r.maxSize,orient:i,type:l,quality:a,failedText:s,includeExif:u,log:t}))})})),h.push({uuid:e,name:c,size:p.size,blob:r?p:null})):h.push({uuid:e,name:c,size:p.size,blob:p}),h},handleNewFile:function(e,t,n,r,i,o,a,s){var u=this,l=(e.qqButtonId||e.blob&&e.blob.qqButtonId,[]),c=null,f=s.addFileToHandler,d=s.uploadData,h=s.paramsStore,p=qq.getUniqueId();qq.each(u.getFileRecords(n,t,e),(function(e,t){var n,r=t.size;t.blob instanceof qq.BlobProxy&&(r=-1),n=d.addFile({uuid:t.uuid,name:t.name,size:r,batchId:o,proxyGroupId:p}),t.blob instanceof qq.BlobProxy?l.push(n):c=n,t.blob?(f(n,t.blob),i.push({id:n,file:t.blob})):d.setStatus(n,qq.status.REJECTED)})),null!==c&&(qq.each(l,(function(e,t){var n={qqparentuuid:d.retrieve({id:c}).uuid,qqparentsize:d.retrieve({id:c}).size};n[a]=d.retrieve({id:t}).uuid,d.setParentId(t,c),h.addReadOnly(t,n)})),l.length&&function(){var e={};e[a]=d.retrieve({id:c}).uuid,h.addReadOnly(c,e)}())}})},qq.extend(qq.Scaler.prototype,{scaleImage:function(e,t,n){"use strict";if(!qq.supportedFeatures.scaling)throw new qq.Error("Scaling is not supported in this browser!");var r=new qq.Promise,i=n.log,o=n.getFile(e),a=n.uploadData.retrieve({id:e}),s=a&&a.name,u=a&&a.uuid,l={customResizer:t.customResizer,sendOriginal:!1,orient:t.orient,defaultType:t.type||null,defaultQuality:t.quality,failedToScaleText:"Unable to scale",sizes:[{name:"",maxSize:t.maxSize}]},c=new qq.Scaler(l,i);return qq.Scaler&&qq.supportedFeatures.imagePreviews&&o?qq.bind((function(){var t=c.getFileRecords(u,s,o)[0];t&&t.blob instanceof qq.BlobProxy?t.blob.create().then(r.success,r.failure):(i(e+" is not a scalable image!","error"),r.failure())}),this)():(r.failure(),i("Could not generate requested scaled image for "+e+". Scaling is either not possible in this browser, or the file could not be located.","error")),r},_determineOutputType:function(e){"use strict";var t=e.requestedType,n=e.defaultType,r=e.refType;return n||t?t&&qq.indexOf(Object.keys(qq.Identify.prototype.PREVIEWABLE_MIME_TYPES),t)>=0?"image/tiff"===t?qq.supportedFeatures.tiffPreviews?t:n:t:n:"image/jpeg"!==r?"image/png":r},_getName:function(e,t){"use strict";var n=e.lastIndexOf("."),r=t.type||"image/png",i=t.refType,o="",a=qq.getExtension(e),s="";return t.name&&t.name.trim().length&&(s=" ("+t.name+")"),n>=0?(o=e.substr(0,n),i!==r&&(a=r.split("/")[1]),o+=s+"."+a):o=e+s,o},_getSortedSizes:function(e){"use strict";return e=qq.extend([],e),e.sort((function(e,t){return e.maxSize>t.maxSize?1:e.maxSize<t.maxSize?-1:0}))},_generateScaledImage:function(e,t){"use strict";var n=this,r=e.customResizeFunction,i=e.log,o=e.maxSize,a=e.orient,s=e.type,u=e.quality,l=e.failedText,c=e.includeExif&&"image/jpeg"===t.type&&"image/jpeg"===s,f=new qq.Promise,d=new qq.ImageGenerator(i),h=document.createElement("canvas");return i("Attempting to generate scaled version for "+t.name),d.generate(t,h,{maxSize:o,orient:a,customResizeFunction:r}).then((function(){var e=h.toDataURL(s,u),r=function(){i("Success generating scaled version for "+t.name);var n=qq.dataUriToBlob(e);f.success(n)};c?n._insertExifHeader(t,e,i).then((function(t){e=t,r()}),(function(){i("Problem inserting EXIF header into scaled image. Using scaled image w/out EXIF data.","error"),r()})):r()}),(function(){i("Failed attempt to generate scaled version for "+t.name,"error"),f.failure(l)})),f},_insertExifHeader:function(e,t,n){"use strict";var r=new FileReader,i=new qq.Promise,o="";return r.onload=function(){o=r.result,i.success(qq.ExifRestorer.restore(o,t))},r.onerror=function(){n("Problem reading "+e.name+" during attempt to transfer EXIF data to scaled version.","error"),i.failure()},r.readAsDataURL(e),i},_dataUriToBlob:function(e){"use strict";var t,n,r,i;return t=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):decodeURI(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),i=new Uint8Array(r),qq.each(t,(function(e,t){i[e]=t.charCodeAt(0)})),this._createBlob(r,n)},_createBlob:function(e,t){"use strict";var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,r=n&&new n;return r?(r.append(e),r.getBlob(t)):new Blob([e],{type:t})}}),qq.ExifRestorer=function(){var e={KEY_STR:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode64:function(e){var t,n,r,i,o,a="",s="",u="",l=0;do{t=e[l++],n=e[l++],s=e[l++],r=t>>2,i=(3&t)<<4|n>>4,o=(15&n)<<2|s>>6,u=63&s,isNaN(n)?o=u=64:isNaN(s)&&(u=64),a=a+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(u),t=n=s="",r=i=o=u=""}while(l<e.length);return a},restore:function(e,t){var n="data:image/jpeg;base64,";if(!e.match(n))return t;var r=this.decode64(e.replace(n,"")),i=this.slice2Segments(r),o=this.exifManipulation(t,i);return n+this.encode64(o)},exifManipulation:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n),i=new Uint8Array(r);return i},getExifArray:function(e){for(var t,n=0;n<e.length;n++)if(t=e[n],255==t[0]&225==t[1])return t;return[]},insertExif:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),i=r.indexOf(255,3),o=r.slice(0,i),a=r.slice(i),s=o;return s=s.concat(t),s=s.concat(a),s},slice2Segments:function(e){var t=0,n=[];while(1){if(255==e[t]&218==e[t+1])break;if(255==e[t]&216==e[t+1])t+=2;else{var r=256*e[t+2]+e[t+3],i=t+r+2,o=e.slice(t,i);n.push(o),t=i}if(t>e.length)break}return n},decode64:function(e){var t,n,r,i,o,a="",s="",u=0,l=[],c=/[^A-Za-z0-9\+\/\=]/g;if(c.exec(e))throw new Error("There were invalid base64 characters in the input text. Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='");e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{r=this.KEY_STR.indexOf(e.charAt(u++)),i=this.KEY_STR.indexOf(e.charAt(u++)),o=this.KEY_STR.indexOf(e.charAt(u++)),s=this.KEY_STR.indexOf(e.charAt(u++)),t=r<<2|i>>4,n=(15&i)<<4|o>>2,a=(3&o)<<6|s,l.push(t),64!=o&&l.push(n),64!=s&&l.push(a),t=n=a="",r=i=o=s=""}while(u<e.length);return l}};return e}(),qq.TotalProgress=function(e,t){"use strict";var n={},r=0,i=0,o=-1,a=-1,s=function(t,n){t===o&&n===a||e(t,n),o=t,a=n},u=function(e,t){var n=!0;return qq.each(e,(function(e,r){if(qq.indexOf(t,r)>=0)return n=!1,!1})),n},l=function(e){d(e,-1,-1),delete n[e]},c=function(e,t,n){(0===t.length||u(t,n))&&(s(i,i),this.reset())},f=function(e){var r=t(e);r>0&&(d(e,0,r),n[e]={loaded:0,total:r})},d=function(e,t,o){var a=n[e]?n[e].loaded:0,u=n[e]?n[e].total:0;-1===t&&-1===o?(r-=a,i-=u):(t&&(r+=t-a),o&&(i+=o-u)),s(r,i)};qq.extend(this,{onAllComplete:c,onStatusChange:function(e,t,n){n===qq.status.CANCELED||n===qq.status.REJECTED?l(e):n===qq.status.SUBMITTING&&f(e)},onIndividualProgress:function(e,t,r){d(e,t,r),n[e]={loaded:t,total:r}},onNewSize:function(e){f(e)},reset:function(){n={},r=0,i=0}})},qq.PasteSupport=function(e){"use strict";var t,n;function r(e){return e.type&&0===e.type.indexOf("image/")}function i(){n=qq(t.targetElement).attach("paste",(function(e){var n=e.clipboardData;n&&qq.each(n.items,(function(e,n){if(r(n)){var i=n.getAsFile();t.callbacks.pasteReceived(i)}}))}))}function o(){n&&n()}t={targetElement:null,callbacks:{log:function(e,t){},pasteReceived:function(e){}}},qq.extend(t,e),i(),qq.extend(this,{reset:function(){o()}})},qq.FormSupport=function(e,t,n){"use strict";var r=this,i=e.interceptSubmit,o=e.element,a=e.autoUpload;function s(e){e.getAttribute("action")&&(r.newEndpoint=e.getAttribute("action"))}function u(e,t){if(!e.checkValidity||e.checkValidity())return!0;n("Form did not pass validation checks - will not upload.","error"),t()}function l(e){var n=e.submit;qq(e).attach("submit",(function(r){r=r||window.event,r.preventDefault?r.preventDefault():r.returnValue=!1,u(e,n)&&t()})),e.submit=function(){u(e,n)&&t()}}function c(e){return e&&(qq.isString(e)&&(e=document.getElementById(e)),e&&(n("Attaching to form element."),s(e),i&&l(e))),e}qq.extend(this,{newEndpoint:null,newAutoUpload:a,attachedToForm:!1,getFormInputsAsObject:function(){return null==o?null:r._form2Obj(o)}}),o=c(o),this.attachedToForm=!!o},qq.extend(qq.FormSupport.prototype,{_form2Obj:function(e){"use strict";var t={},n=function(e){var t=["button","image","reset","submit"];return qq.indexOf(t,e.toLowerCase())<0},r=function(e){return qq.indexOf(["checkbox","radio"],e.toLowerCase())>=0},i=function(e){return!(!r(e.type)||e.checked)||e.disabled&&"hidden"!==e.type.toLowerCase()},o=function(e){var t=null;return qq.each(qq(e).children(),(function(e,n){if("option"===n.tagName.toLowerCase()&&n.selected)return t=n.value,!1})),t};return qq.each(e.elements,(function(e,r){if(!qq.isInput(r,!0)&&"textarea"!==r.tagName.toLowerCase()||!n(r.type)||i(r)){if("select"===r.tagName.toLowerCase()&&!i(r)){var a=o(r);null!==a&&(t[r.name]=a)}}else t[r.name]=r.value})),t}}),qq.azure=qq.azure||{},qq.azure.util=qq.azure.util||function(){"use strict";return{AZURE_PARAM_PREFIX:"x-ms-meta-",_paramNameMatchesAzureParameter:function(e){switch(e){case"Cache-Control":case"Content-Disposition":case"Content-Encoding":case"Content-MD5":case"x-ms-blob-content-encoding":case"x-ms-blob-content-disposition":case"x-ms-blob-content-md5":case"x-ms-blob-cache-control":return!0;default:return!1}},_getPrefixedParamName:function(e){return qq.azure.util._paramNameMatchesAzureParameter(e)?e:qq.azure.util.AZURE_PARAM_PREFIX+e},getParamsAsHeaders:function(e){var t={};return qq.each(e,(function(e,n){var r=qq.azure.util._getPrefixedParamName(e),i=null;qq.isFunction(n)?i=String(n()):qq.isObject(n)?qq.extend(t,qq.azure.util.getParamsAsHeaders(n)):i=String(n),null!==i&&(qq.azure.util._paramNameMatchesAzureParameter(e)?t[r]=i:t[r]=encodeURIComponent(i))})),t},parseAzureError:function(e,t){var n,r,i=new DOMParser,o=i.parseFromString(e,"application/xml"),a=o.getElementsByTagName("Error")[0],s={};if(t("Received error response: "+e,"error"),a)return r=a.getElementsByTagName("Message")[0],r&&(s.message=r.textContent),n=a.getElementsByTagName("Code")[0],n&&(s.code=n.textContent),t("Parsed Azure error: "+JSON.stringify(s),"error"),s}}}(),function(){"use strict";qq.nonTraditionalBasePublicApi={setUploadSuccessParams:function(e,t){this._uploadSuccessParamsStore.set(e,t)},setUploadSuccessEndpoint:function(e,t){this._uploadSuccessEndpointStore.set(e,t)}},qq.nonTraditionalBasePrivateApi={_onComplete:function(e,t,n,r){var i,o,a=!!n.success,s=this,u=arguments,l=this._uploadSuccessEndpointStore.get(e),c=this._options.uploadSuccess.customHeaders,f=this._options.uploadSuccess.method,d=this._options.cors,h=new qq.Promise,p=this._uploadSuccessParamsStore.get(e),m=this._paramsStore.get(e),g=function(t){delete s._failedSuccessRequestCallbacks[e],qq.extend(n,t),qq.FineUploaderBasic.prototype._onComplete.apply(s,u),h.success(t)},v=function(o){var a=i;qq.extend(n,o),n&&n.reset&&(a=null),a?s._failedSuccessRequestCallbacks[e]=a:delete s._failedSuccessRequestCallbacks[e],s._onAutoRetry(e,t,n,r,a)||(qq.FineUploaderBasic.prototype._onComplete.apply(s,u),h.failure(o))};return a&&l?(o=new qq.UploadSuccessAjaxRequester({endpoint:l,method:f,customHeaders:c,cors:d,log:qq.bind(this.log,this)}),qq.extend(p,s._getEndpointSpecificParams(e,n,r),!0),m&&qq.extend(p,m,!0),i=qq.bind((function(){o.sendSuccessRequest(e,p).then(g,v)}),s),i(),h):qq.FineUploaderBasic.prototype._onComplete.apply(this,arguments)},_manualRetry:function(e){var t=this._failedSuccessRequestCallbacks[e];return qq.FineUploaderBasic.prototype._manualRetry.call(this,e,t)}}}(),function(){"use strict";qq.azure.FineUploaderBasic=function(e){if(!qq.supportedFeatures.ajaxUploading)throw new qq.Error("Uploading directly to Azure is not possible in this browser.");var t={signature:{endpoint:null,customHeaders:{}},blobProperties:{name:"uuid"},uploadSuccess:{endpoint:null,method:"POST",params:{},customHeaders:{}},chunking:{partSize:4e6,minFileSize:4000001}};qq.extend(t,e,!0),qq.FineUploaderBasic.call(this,t),this._uploadSuccessParamsStore=this._createStore(this._options.uploadSuccess.params),this._uploadSuccessEndpointStore=this._createStore(this._options.uploadSuccess.endpoint),this._failedSuccessRequestCallbacks={},this._cannedBlobNames={}},qq.extend(qq.azure.FineUploaderBasic.prototype,qq.basePublicApi),qq.extend(qq.azure.FineUploaderBasic.prototype,qq.basePrivateApi),qq.extend(qq.azure.FineUploaderBasic.prototype,qq.nonTraditionalBasePublicApi),qq.extend(qq.azure.FineUploaderBasic.prototype,qq.nonTraditionalBasePrivateApi),qq.extend(qq.azure.FineUploaderBasic.prototype,{getBlobName:function(e){return null==this._cannedBlobNames[e]?this._handler.getThirdPartyFileId(e):this._cannedBlobNames[e]},_getEndpointSpecificParams:function(e){return{blob:this.getBlobName(e),uuid:this.getUuid(e),name:this.getName(e),container:this._endpointStore.get(e)}},_createUploadHandler:function(){return qq.FineUploaderBasic.prototype._createUploadHandler.call(this,{signature:this._options.signature,onGetBlobName:qq.bind(this._determineBlobName,this),deleteBlob:qq.bind(this._deleteBlob,this,!0)},"azure")},_determineBlobName:function(e){var t=this._options.blobProperties.name,n=this.getUuid(e),r=this.getName(e),i=qq.getExtension(r),o=n;if(!qq.isString(t))return t.call(this,e);switch(t){case"uuid":return void 0!==i&&(o+="."+i),(new qq.Promise).success(o);case"filename":return(new qq.Promise).success(r);default:return new qq.Promise.failure("Invalid blobName option value - "+t)}},_addCannedFile:function(e){var t;if(null==e.blobName)throw new qq.Error("Did not find blob name property in server session response. This is required!");return t=qq.FineUploaderBasic.prototype._addCannedFile.apply(this,arguments),this._cannedBlobNames[t]=e.blobName,t},_deleteBlob:function(e,t){var n=this,r={},i={get:function(e){return n._endpointStore.get(e)+"/"+n.getBlobName(e)}},o={get:function(e){return r[e]}},a=function(e,t){r[e]=t,u.send(e)},s=function(t,r,i){e?(n.log("Will cancel upload, but cannot remove uncommitted parts from Azure due to issue retrieving SAS","error"),qq.FineUploaderBasic.prototype._onCancel.call(n,t,n.getName(t))):(n._onDeleteComplete(t,i,!0),n._options.callbacks.onDeleteComplete(t,i,!0))},u=new qq.azure.DeleteBlob({endpointStore:o,log:qq.bind(n.log,n),onDelete:function(e){n._onDelete(e),n._options.callbacks.onDelete(e)},onDeleteComplete:function(t,i,o){delete r[t],o&&(e?n.log("Will cancel upload, but failed to remove uncommitted parts from Azure.","error"):qq.azure.util.parseAzureError(i.responseText,qq.bind(n.log,n))),e?(qq.FineUploaderBasic.prototype._onCancel.call(n,t,n.getName(t)),n.log("Deleted uncommitted blob chunks for "+t)):(n._onDeleteComplete(t,i,o),n._options.callbacks.onDeleteComplete(t,i,o))}}),l=new qq.azure.GetSas({cors:this._options.cors,customHeaders:this._options.signature.customHeaders,endpointStore:{get:function(){return n._options.signature.endpoint}},restRequestVerb:u.method,log:qq.bind(n.log,n)});l.request(t,i.get(t)).then(qq.bind(a,n,t),qq.bind(s,n,t))},_createDeleteHandler:function(){var e=this;return{sendDelete:function(t,n){e._deleteBlob(!1,t)}}}})}(),qq.azure.XhrUploadHandler=function(e,t){"use strict";var n=this,r=t.log,i=e.cors,o=e.endpointStore,a=e.paramsStore,s=e.signature,u=e.filenameParam,l=e.chunking.minFileSize,c=e.deleteBlob,f=e.onGetBlobName,d=t.getName,h=t.getSize,p=function(e){var t=a.get(e);return t[u]=d(e),t},m={putBlob:new qq.azure.PutBlob({getBlobMetadata:p,log:r}),putBlock:new qq.azure.PutBlock({log:r}),putBlockList:new qq.azure.PutBlockList({getBlobMetadata:p,log:r}),getSasForPutBlobOrBlock:new qq.azure.GetSas({cors:i,customHeaders:s.customHeaders,endpointStore:{get:function(){return s.endpoint}},log:r,restRequestVerb:"PUT"})};function g(e){var t=new qq.Promise;return y(e).then((function(i){var o=n._getMimeType(e),a=n._getPersistableData(e).blockIdEntries;m.putBlockList.send(e,i,a,o,(function(t){n._registerXhr(e,null,t,m.putBlockList)})).then((function(n){r("Success combining chunks for id "+e),t.success({},n)}),(function(n){r("Attempt to combine chunks failed for id "+e,"error"),b(n,t)}))}),t.failure),t}function v(e){var t=o.get(e),r=new qq.Promise,i=function(i){n._setThirdPartyFileId(e,i),r.success(t+"/"+i)},a=function(e){r.failure(e)};return f(e).then(i,a),r}function y(e,t){var n=null==t?e:e+"."+t,i=new qq.Promise,o=function(e){r("GET SAS request succeeded."),i.success(e)},a=function(e,t){r("GET SAS request failed: "+e,"error"),i.failure({error:"Problem communicating with local server"},t)},s=function(e){m.getSasForPutBlobOrBlock.request(n,e).then(o,a)},u=function(t){r(qq.format("Failed to determine blob name for ID {} - {}",e,t),"error"),i.failure({error:t})};return v(e).then(s,u),i}function b(e,t){var n=qq.azure.util.parseAzureError(e.responseText,r),i="Problem sending file to Azure";t.failure({error:i,azureError:n&&n.message,reset:403===e.status})}qq.extend(this,{uploadChunk:function(e){var t=e.chunkIdx,i=e.id,o=new qq.Promise;return y(i,t).then((function(e){var a=n._createXhr(i,t),s=n._getChunkData(i,t);n._registerProgressHandler(i,t,s.size),n._registerXhr(i,t,a,m.putBlock),m.putBlock.upload(i+"."+t,a,e,t,s.blob).then((function(e){n._getPersistableData(i).blockIdEntries||(n._getPersistableData(i).blockIdEntries=[]),n._getPersistableData(i).blockIdEntries.push(e),r("Put Block call succeeded for "+i),o.success({},a)}),(function(){r(qq.format("Put Block call failed for ID {} on part {}",i,t),"error"),b(a,o)}))}),o.failure),o},uploadFile:function(e){var t=new qq.Promise,i=n.getFile(e);return y(e).then((function(o){var a=n._createXhr(e);n._registerProgressHandler(e),m.putBlob.upload(e,a,o,i).then((function(){r("Put Blob call succeeded for "+e),t.success({},a)}),(function(){r("Put Blob call failed for "+e,"error"),b(a,t)}))}),t.failure),t}}),qq.extend(this,new qq.XhrUploadHandler({options:qq.extend({namespace:"azure"},e),proxy:qq.extend({getEndpoint:e.endpointStore.get},t)})),qq.override(this,(function(e){return{expunge:function(t){var r=n._wasCanceled(t),i=n._getPersistableData(t),o=i&&i.blockIdEntries||[];r&&o.length>0&&c(t),e.expunge(t)},finalizeChunks:function(e){return g(e)},_shouldChunkThisFile:function(t){var n=e._shouldChunkThisFile(t);return n&&h(t)>=l}}}))},qq.azure.GetSas=function(e){"use strict";var t,n={cors:{expected:!1,sendCredentials:!1},customHeaders:{},restRequestVerb:"PUT",endpointStore:null,log:function(e,t){}},r={};function i(e,t,n){var i=r[e];n?i.failure("Received response code "+t.status,t):t.responseText.length?i.success(t.responseText):i.failure("Empty response.",t),delete r[e]}qq.extend(n,e),t=qq.extend(this,new qq.AjaxRequester({acceptHeader:"application/json",validMethods:["GET"],method:"GET",successfulResponseCodes:{GET:[200]},contentType:null,customHeaders:n.customHeaders,endpointStore:n.endpointStore,cors:n.cors,log:n.log,onComplete:i})),qq.extend(this,{request:function(e,i){var o=new qq.Promise,a=n.restRequestVerb;return n.log(qq.format("Submitting GET SAS request for a {} REST request related to file ID {}.",a,e)),r[e]=o,t.initTransport(e).withParams({bloburi:i,_method:a}).withCacheBuster().send(),o}})},qq.UploadSuccessAjaxRequester=function(e){"use strict";var t,n=[],r={method:"POST",endpoint:null,maxConnections:3,customHeaders:{},paramsStore:{},cors:{expected:!1,sendCredentials:!1},log:function(e,t){}};function i(e,t,i){var o,a=n[e],s=t.responseText,u={success:!0},l={success:!1};delete n[e],r.log(qq.format("Received the following response body to an upload success request for id {}: {}",e,s));try{o=qq.parseJson(s),i||o&&(o.error||!1===o.success)?(r.log("Upload success request was rejected by the server.","error"),a.failure(qq.extend(o,l))):(r.log("Upload success was acknowledged by the server."),a.success(qq.extend(o,u)))}catch(c){i?(r.log(qq.format("Your server indicated failure in its upload success request response for id {}!",e),"error"),a.failure(l)):(r.log("Upload success was acknowledged by the server."),a.success(u))}}qq.extend(r,e),t=qq.extend(this,new qq.AjaxRequester({acceptHeader:"application/json",method:r.method,endpointStore:{get:function(){return r.endpoint}},paramsStore:r.paramsStore,maxConnections:r.maxConnections,customHeaders:r.customHeaders,log:r.log,onComplete:i,cors:r.cors})),qq.extend(this,{sendSuccessRequest:function(e,i){var o=new qq.Promise;return r.log("Submitting upload success request/notification for "+e),t.initTransport(e).withParams(i).send(),n[e]=o,o}})},qq.azure.DeleteBlob=function(e){"use strict";var t,n="DELETE",r={endpointStore:{},onDelete:function(e){},onDeleteComplete:function(e,t,n){},log:function(e,t){}};qq.extend(r,e),t=qq.extend(this,new qq.AjaxRequester({validMethods:[n],method:n,successfulResponseCodes:function(){var e={};return e[n]=[202],e}(),contentType:null,endpointStore:r.endpointStore,allowXRequestedWithAndCacheControl:!1,cors:{expected:!0},log:r.log,onSend:r.onDelete,onComplete:r.onDeleteComplete})),qq.extend(this,{method:n,send:function(e){return r.log("Submitting Delete Blob request for "+e),t.initTransport(e).send()}})},qq.azure.PutBlob=function(e){"use strict";var t,n="PUT",r={getBlobMetadata:function(e){},log:function(e,t){}},i={},o={},a={get:function(e){return i[e]}};qq.extend(r,e),t=qq.extend(this,new qq.AjaxRequester({validMethods:[n],method:n,successfulResponseCodes:function(){var e={};return e[n]=[201],e}(),contentType:null,customHeaders:function(e){var t=r.getBlobMetadata(e),n=qq.azure.util.getParamsAsHeaders(t);return n["x-ms-blob-type"]="BlockBlob",n},endpointStore:a,allowXRequestedWithAndCacheControl:!1,cors:{expected:!0},log:r.log,onComplete:function(e,t,n){var r=o[e];delete i[e],delete o[e],n?r.failure():r.success()}})),qq.extend(this,{method:n,upload:function(e,n,a,s){var u=new qq.Promise;return r.log("Submitting Put Blob request for "+e),o[e]=u,i[e]=a,t.initTransport(e).withPayload(s).withHeaders({"Content-Type":s.type}).send(n),u}})},qq.azure.PutBlock=function(e){"use strict";var t,n="PUT",r={},i={},o={log:function(e,t){}},a={},s={get:function(e){return a[e]}};function u(e){var t=5,n=new Array(t+1).join("0"),r=(n+e).slice(-t);return btoa(r)}qq.extend(o,e),t=qq.extend(this,new qq.AjaxRequester({validMethods:[n],method:n,successfulResponseCodes:function(){var e={};return e[n]=[201],e}(),contentType:null,endpointStore:s,allowXRequestedWithAndCacheControl:!1,cors:{expected:!0},log:o.log,onComplete:function(e,t,n){var o=i[e],s=r[e];delete a[e],delete i[e],delete r[e],n?o.failure():o.success(s)}})),qq.extend(this,{method:n,upload:function(e,n,s,l,c){var f=new qq.Promise,d=u(l);return i[e]=f,o.log(qq.format("Submitting Put Block request for {} = part {}",e,l)),a[e]=qq.format("{}&comp=block&blockid={}",s,encodeURIComponent(d)),r[e]={part:l,id:d},t.initTransport(e).withPayload(c).send(n),f}})},qq.azure.PutBlockList=function(e){"use strict";var t,n="PUT",r={},i={getBlobMetadata:function(e){},log:function(e,t){}},o={},a={get:function(e){return o[e]}};function s(e){var t=document.implementation.createDocument(null,"BlockList",null);return e.sort((function(e,t){return e.part-t.part})),qq.each(e,(function(e,n){var r=t.createElement("Latest"),i=t.createTextNode(n.id);r.appendChild(i),qq(t).children()[0].appendChild(r)})),(new XMLSerializer).serializeToString(t)}qq.extend(i,e),t=qq.extend(this,new qq.AjaxRequester({validMethods:[n],method:n,successfulResponseCodes:function(){var e={};return e[n]=[201],e}(),customHeaders:function(e){var t=i.getBlobMetadata(e);return qq.azure.util.getParamsAsHeaders(t)},contentType:"text/plain",endpointStore:a,allowXRequestedWithAndCacheControl:!1,cors:{expected:!0},log:i.log,onSend:function(){},onComplete:function(e,t,n){var i=r[e];delete o[e],delete r[e],n?i.failure(t):i.success(t)}})),qq.extend(this,{method:n,send:function(e,n,a,u,l){var c,f=new qq.Promise,d=s(a);return r[e]=f,i.log(qq.format("Submitting Put Block List request for {}",e)),o[e]=qq.format("{}&comp=blocklist",n),c=t.initTransport(e).withPayload(d).withHeaders({"x-ms-blob-content-type":u}).send(),l(c),f}})}})(window)},"96cf":function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(P){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new A(r||[]);return o._invoke=k(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",m={};function g(){}function v(){}function y(){}var b={};b[o]=function(){return this};var q=Object.getPrototypeOf,w=q&&q(q(D([])));w&&w!==n&&r.call(w,o)&&(b=w);var _=y.prototype=g.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(i,o,a,s){var u=c(e[i],e,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;function o(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}this._invoke=o}function k(e,t,n){var r=f;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return T()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=c(e,t,n);if("normal"===u.type){if(r=n.done?p:d,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}function C(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function D(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){while(++i<e.length)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:T}}function T(){return{value:t,done:!0}}return v.prototype=_.constructor=y,y.constructor=v,v.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},x(S.prototype),S.prototype[a]=function(){return this},e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new S(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(_),u(_,s,"Generator"),_[o]=function(){return this},_.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=D,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:D(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},9781:function(e,t,n){var r=n("90e5");function i(){var e=["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],t=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],n=["日","一","二","三","四","五","六"],i=["周日","周一","周二","周三","周四","周五","周六"],a=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],s=["上午","下午"],u={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return i[e.getDay()]},dddd:function(e){return a[e.getDay()]}};u.a=u.aa=u.A=function(e){return e.getHours()/12>=1?s[1]:s[0]};var l=["M","D","DDD","d","Q","W"];return l.forEach((function(e){u[e+"o"]=function(t,n){return o(n[e](t))}})),{formatters:u,formattingTokensRegExp:r(u)}}function o(e){return e.toString()}e.exports=i},9925:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n("320c"),o=u(i),a=n("e50c"),s=u(a);function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=new WeakMap,f=function(){function e(t){var n=t.callbackNames,r=t.options,i=t.qq,a=t.type;l(this,e);var s=r.callbacks||{},u=(0,o.default)({},r);delete u.callbacks,this.options=u,c.set(this,d(n)),m({callbacks:s,callbackProxies:c.get(this)}),this.methods=h({callbackProxies:c.get(this),options:u,qq:i,type:a}),this.qq=i}return r(e,[{key:"off",value:function(e,t){var n=p(e),r=c.get(this)[n];r.remove(t)}},{key:"on",value:function(e,t){var n=p(e),r=c.get(this)[n];r.add(t)}}]),e}();t.default=f;var d=function(e){var t={};return e.forEach((function(e){t[e]=new s.default(e)})),t},h=function(e){var t=e.callbackProxies,n=e.options,r=e.qq,i=e.type,a=(0,o.default)({callbacks:{}},n);return Object.keys(t).forEach((function(e){var n=t[e];a.callbacks[e]=n.proxyFunction})),"traditional"===i?new r.FineUploaderBasic(a):new r[i].FineUploaderBasic(a)},p=function(e){return e.match(/^on[A-Z]/)?e:"on"+e[0].toUpperCase()+e.slice(1)},m=function(e){var t=e.callbacks,n=e.callbackProxies;Object.keys(t).forEach((function(e){var r=n[e];r.add(t[e])}))}},9934:function(e,t,n){var r=n("6fcd"),i=n("41c3"),o=n("30c9");function a(e){return o(e)?r(e,!0):i(e)}e.exports=a},"99cd":function(e,t){function n(e){return function(t,n,r){var i=-1,o=Object(t),a=r(t),s=a.length;while(s--){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}e.exports=n},"99d3":function(e,t,n){(function(e){var r=n("585a"),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a&&r.process,u=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=u}).call(this,n("62e4")(e))},"9aff":function(e,t,n){var r=n("9638"),i=n("30c9"),o=n("c098"),a=n("1a8c");function s(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}e.exports=s},"9b02":function(e,t,n){var r=n("656b");function i(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}e.exports=i},"9ce6":function(e,t,n){var r=n("90e5");function i(){var e=["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],t=["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],n=["nd","pn","wt","śr","cz","pt","sb"],i=["niedz.","pon.","wt.","śr.","czw.","piąt.","sob."],o=["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],a=["w nocy","rano","po południu","wieczorem"],s={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return i[e.getDay()]},dddd:function(e){return o[e.getDay()]},A:function(e){var t=e.getHours();return t>=17?a[3]:t>=12?a[2]:t>=4?a[1]:a[0]}};s.a=s.A,s.aa=s.A;var u=["M","D","DDD","d","Q","W"];return u.forEach((function(e){s[e+"o"]=function(t,n){return n[e](t).toString()}})),{formatters:s,formattingTokensRegExp:r(s)}}e.exports=i},"9e69":function(e,t,n){var r=n("2b3e"),i=r.Symbol;e.exports=i},"9e86":function(e,t,n){var r=n("872a"),i=n("242e"),o=n("badf");function a(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,i,t(e,i,o))})),n}e.exports=a},"9f3f":function(e,t,n){var r=n("2a63"),i=n("5140");e.exports={distanceInWords:r(),format:i()}},a026:function(e,t,n){"use strict";(function(e){
+/*!
+ * Vue.js v2.6.12
+ * (c) 2014-2020 Evan You
+ * Released under the MIT License.
+ */
+var n=Object.freeze({});function r(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function o(e){return!0===e}function a(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function u(e){return null!==e&&"object"===typeof e}var l=Object.prototype.toString;function c(e){return"[object Object]"===l.call(e)}function f(e){return"[object RegExp]"===l.call(e)}function d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var v=g("slot,component",!0),y=g("key,ref,slot,slot-scope,is");function b(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var q=Object.prototype.hasOwnProperty;function w(e,t){return q.call(e,t)}function _(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var x=/-(\w)/g,S=_((function(e){return e.replace(x,(function(e,t){return t?t.toUpperCase():""}))})),k=_((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),C=/\B([A-Z])/g,E=_((function(e){return e.replace(C,"-$1").toLowerCase()}));function O(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function A(e,t){return e.bind(t)}var D=Function.prototype.bind?A:O;function T(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function P(e,t){for(var n in t)e[n]=t[n];return e}function M(e){for(var t={},n=0;n<e.length;n++)e[n]&&P(t,e[n]);return t}function N(e,t,n){}var I=function(e,t,n){return!1},R=function(e){return e};function j(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}function F(e,t){if(e===t)return!0;var n=u(e),r=u(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return F(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return F(e[n],t[n])}))}catch(l){return!1}}function L(e,t){for(var n=0;n<e.length;n++)if(F(e[n],t))return n;return-1}function B(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var U="data-server-rendered",z=["component","directive","filter"],H=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],$={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:I,isReservedAttr:I,isUnknownElement:I,getTagNamespace:N,parsePlatformTagName:R,mustUseProp:I,async:!0,_lifecycleHooks:H},V=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function W(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function X(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var G=new RegExp("[^"+V.source+".$_\\d]");function Y(e){if(!G.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var K,J="__proto__"in{},Z="undefined"!==typeof window,Q="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,ee=Q&&WXEnvironment.platform.toLowerCase(),te=Z&&window.navigator.userAgent.toLowerCase(),ne=te&&/msie|trident/.test(te),re=te&&te.indexOf("msie 9.0")>0,ie=te&&te.indexOf("edge/")>0,oe=(te&&te.indexOf("android"),te&&/iphone|ipad|ipod|ios/.test(te)||"ios"===ee),ae=(te&&/chrome\/\d+/.test(te),te&&/phantomjs/.test(te),te&&te.match(/firefox\/(\d+)/)),se={}.watch,ue=!1;if(Z)try{var le={};Object.defineProperty(le,"passive",{get:function(){ue=!0}}),window.addEventListener("test-passive",null,le)}catch(Jl){}var ce=function(){return void 0===K&&(K=!Z&&!Q&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),K},fe=Z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function de(e){return"function"===typeof e&&/native code/.test(e.toString())}var he,pe="undefined"!==typeof Symbol&&de(Symbol)&&"undefined"!==typeof Reflect&&de(Reflect.ownKeys);he="undefined"!==typeof Set&&de(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var me=N,ge=0,ve=function(){this.id=ge++,this.subs=[]};ve.prototype.addSub=function(e){this.subs.push(e)},ve.prototype.removeSub=function(e){b(this.subs,e)},ve.prototype.depend=function(){ve.target&&ve.target.addDep(this)},ve.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},ve.target=null;var ye=[];function be(e){ye.push(e),ve.target=e}function qe(){ye.pop(),ve.target=ye[ye.length-1]}var we=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},_e={child:{configurable:!0}};_e.child.get=function(){return this.componentInstance},Object.defineProperties(we.prototype,_e);var xe=function(e){void 0===e&&(e="");var t=new we;return t.text=e,t.isComment=!0,t};function Se(e){return new we(void 0,void 0,void 0,String(e))}function ke(e){var t=new we(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Ce=Array.prototype,Ee=Object.create(Ce),Oe=["push","pop","shift","unshift","splice","sort","reverse"];Oe.forEach((function(e){var t=Ce[e];X(Ee,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var Ae=Object.getOwnPropertyNames(Ee),De=!0;function Te(e){De=e}var Pe=function(e){this.value=e,this.dep=new ve,this.vmCount=0,X(e,"__ob__",this),Array.isArray(e)?(J?Me(e,Ee):Ne(e,Ee,Ae),this.observeArray(e)):this.walk(e)};function Me(e,t){e.__proto__=t}function Ne(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];X(e,o,t[o])}}function Ie(e,t){var n;if(u(e)&&!(e instanceof we))return w(e,"__ob__")&&e.__ob__ instanceof Pe?n=e.__ob__:De&&!ce()&&(Array.isArray(e)||c(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Pe(e)),t&&n&&n.vmCount++,n}function Re(e,t,n,r,i){var o=new ve,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,u=a&&a.set;s&&!u||2!==arguments.length||(n=e[t]);var l=!i&&Ie(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return ve.target&&(o.depend(),l&&(l.dep.depend(),Array.isArray(t)&&Le(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!==t&&r!==r||s&&!u||(u?u.call(e,t):n=t,l=!i&&Ie(t),o.notify())}})}}function je(e,t,n){if(Array.isArray(e)&&d(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Re(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Fe(e,t){if(Array.isArray(e)&&d(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||w(e,t)&&(delete e[t],n&&n.dep.notify())}}function Le(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Le(t)}Pe.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Re(e,t[n])},Pe.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ie(e[t])};var Be=$.optionMergeStrategies;function Ue(e,t){if(!t)return e;for(var n,r,i,o=pe?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=e[n],i=t[n],w(e,n)?r!==i&&c(r)&&c(i)&&Ue(r,i):je(e,n,i));return e}function ze(e,t,n){return n?function(){var r="function"===typeof t?t.call(n,n):t,i="function"===typeof e?e.call(n,n):e;return r?Ue(r,i):i}:t?e?function(){return Ue("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function He(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?$e(n):n}function $e(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function Ve(e,t,n,r){var i=Object.create(e||null);return t?P(i,t):i}Be.data=function(e,t,n){return n?ze(e,t,n):t&&"function"!==typeof t?e:ze(e,t)},H.forEach((function(e){Be[e]=He})),z.forEach((function(e){Be[e+"s"]=Ve})),Be.watch=function(e,t,n,r){if(e===se&&(e=void 0),t===se&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in P(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Be.props=Be.methods=Be.inject=Be.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return P(i,e),t&&P(i,t),i},Be.provide=ze;var We=function(e,t){return void 0===t?e:t};function Xe(e,t){var n=e.props;if(n){var r,i,o,a={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=S(i),a[o]={type:null})}else if(c(n))for(var s in n)i=n[s],o=S(s),a[o]=c(i)?i:{type:i};else 0;e.props=a}}function Ge(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(c(n))for(var o in n){var a=n[o];r[o]=c(a)?P({from:o},a):{from:a}}else 0}}function Ye(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"===typeof r&&(t[n]={bind:r,update:r})}}function Ke(e,t,n){if("function"===typeof t&&(t=t.options),Xe(t,n),Ge(t,n),Ye(t),!t._base&&(t.extends&&(e=Ke(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Ke(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)w(e,o)||s(o);function s(r){var i=Be[r]||We;a[r]=i(e[r],t[r],n,r)}return a}function Je(e,t,n,r){if("string"===typeof n){var i=e[t];if(w(i,n))return i[n];var o=S(n);if(w(i,o))return i[o];var a=k(o);if(w(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function Ze(e,t,n,r){var i=t[e],o=!w(n,e),a=n[e],s=nt(Boolean,i.type);if(s>-1)if(o&&!w(i,"default"))a=!1;else if(""===a||a===E(e)){var u=nt(String,i.type);(u<0||s<u)&&(a=!0)}if(void 0===a){a=Qe(r,i,e);var l=De;Te(!0),Ie(a),Te(l)}return a}function Qe(e,t,n){if(w(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof r&&"Function"!==et(t.type)?r.call(e):r}}function et(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function tt(e,t){return et(e)===et(t)}function nt(e,t){if(!Array.isArray(t))return tt(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(tt(t[n],e))return n;return-1}function rt(e,t,n){be();try{if(t){var r=t;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,e,t,n);if(a)return}catch(Jl){ot(Jl,r,"errorCaptured hook")}}}ot(e,t,n)}finally{qe()}}function it(e,t,n,r,i){var o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&h(o)&&!o._handled&&(o.catch((function(e){return rt(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(Jl){rt(Jl,r,i)}return o}function ot(e,t,n){if($.errorHandler)try{return $.errorHandler.call(null,e,t,n)}catch(Jl){Jl!==e&&at(Jl,null,"config.errorHandler")}at(e,t,n)}function at(e,t,n){if(!Z&&!Q||"undefined"===typeof console)throw e;console.error(e)}var st,ut=!1,lt=[],ct=!1;function ft(){ct=!1;var e=lt.slice(0);lt.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&de(Promise)){var dt=Promise.resolve();st=function(){dt.then(ft),oe&&setTimeout(N)},ut=!0}else if(ne||"undefined"===typeof MutationObserver||!de(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())st="undefined"!==typeof setImmediate&&de(setImmediate)?function(){setImmediate(ft)}:function(){setTimeout(ft,0)};else{var ht=1,pt=new MutationObserver(ft),mt=document.createTextNode(String(ht));pt.observe(mt,{characterData:!0}),st=function(){ht=(ht+1)%2,mt.data=String(ht)},ut=!0}function gt(e,t){var n;if(lt.push((function(){if(e)try{e.call(t)}catch(Jl){rt(Jl,t,"nextTick")}else n&&n(t)})),ct||(ct=!0,st()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var vt=new he;function yt(e){bt(e,vt),vt.clear()}function bt(e,t){var n,r,i=Array.isArray(e);if(!(!i&&!u(e)||Object.isFrozen(e)||e instanceof we)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i){n=e.length;while(n--)bt(e[n],t)}else{r=Object.keys(e),n=r.length;while(n--)bt(e[r[n]],t)}}}var qt=_((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function wt(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return it(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)it(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function _t(e,t,n,i,a,s){var u,l,c,f;for(u in e)l=e[u],c=t[u],f=qt(u),r(l)||(r(c)?(r(l.fns)&&(l=e[u]=wt(l,s)),o(f.once)&&(l=e[u]=a(f.name,l,f.capture)),n(f.name,l,f.capture,f.passive,f.params)):l!==c&&(c.fns=l,e[u]=c));for(u in t)r(e[u])&&(f=qt(u),i(f.name,t[u],f.capture))}function xt(e,t,n){var a;e instanceof we&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function u(){n.apply(this,arguments),b(a.fns,u)}r(s)?a=wt([u]):i(s.fns)&&o(s.merged)?(a=s,a.fns.push(u)):a=wt([s,u]),a.merged=!0,e[t]=a}function St(e,t,n){var o=t.options.props;if(!r(o)){var a={},s=e.attrs,u=e.props;if(i(s)||i(u))for(var l in o){var c=E(l);kt(a,u,l,c,!0)||kt(a,s,l,c,!1)}return a}}function kt(e,t,n,r,o){if(i(t)){if(w(t,n))return e[n]=t[n],o||delete t[n],!0;if(w(t,r))return e[n]=t[r],o||delete t[r],!0}return!1}function Ct(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function Et(e){return s(e)?[Se(e)]:Array.isArray(e)?At(e):void 0}function Ot(e){return i(e)&&i(e.text)&&a(e.isComment)}function At(e,t){var n,a,u,l,c=[];for(n=0;n<e.length;n++)a=e[n],r(a)||"boolean"===typeof a||(u=c.length-1,l=c[u],Array.isArray(a)?a.length>0&&(a=At(a,(t||"")+"_"+n),Ot(a[0])&&Ot(l)&&(c[u]=Se(l.text+a[0].text),a.shift()),c.push.apply(c,a)):s(a)?Ot(l)?c[u]=Se(l.text+a):""!==a&&c.push(Se(a)):Ot(a)&&Ot(l)?c[u]=Se(l.text+a.text):(o(e._isVList)&&i(a.tag)&&r(a.key)&&i(t)&&(a.key="__vlist"+t+"_"+n+"__"),c.push(a)));return c}function Dt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Tt(e){var t=Pt(e.$options.inject,e);t&&(Te(!1),Object.keys(t).forEach((function(n){Re(e,n,t[n])})),Te(!0))}function Pt(e,t){if(e){for(var n=Object.create(null),r=pe?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=e[o].from,s=t;while(s){if(s._provided&&w(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[o]){var u=e[o].default;n[o]="function"===typeof u?u.call(t):u}else 0}}return n}}function Mt(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,u=n[s]||(n[s]=[]);"template"===o.tag?u.push.apply(u,o.children||[]):u.push(o)}}for(var l in n)n[l].every(Nt)&&delete n[l];return n}function Nt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function It(e,t,r){var i,o=Object.keys(t).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var u in i={},e)e[u]&&"$"!==u[0]&&(i[u]=Rt(t,u,e[u]))}else i={};for(var l in t)l in i||(i[l]=jt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=i),X(i,"$stable",a),X(i,"$key",s),X(i,"$hasNormal",o),i}function Rt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Et(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function jt(e,t){return function(){return e[t]}}function Ft(e,t){var n,r,o,a,s;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,o=e.length;r<o;r++)n[r]=t(e[r],r);else if("number"===typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(u(e))if(pe&&e[Symbol.iterator]){n=[];var l=e[Symbol.iterator](),c=l.next();while(!c.done)n.push(t(c.value,n.length)),c=l.next()}else for(a=Object.keys(e),n=new Array(a.length),r=0,o=a.length;r<o;r++)s=a[r],n[r]=t(e[s],s,r);return i(n)||(n=[]),n._isVList=!0,n}function Lt(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=P(P({},r),n)),i=o(n)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function Bt(e){return Je(this.$options,"filters",e,!0)||R}function Ut(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function zt(e,t,n,r,i){var o=$.keyCodes[t]||n;return i&&r&&!$.keyCodes[t]?Ut(i,r):o?Ut(o,e):r?E(r)!==t:void 0}function Ht(e,t,n,r,i){if(n)if(u(n)){var o;Array.isArray(n)&&(n=M(n));var a=function(a){if("class"===a||"style"===a||y(a))o=e;else{var s=e.attrs&&e.attrs.type;o=r||$.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var u=S(a),l=E(a);if(!(u in o)&&!(l in o)&&(o[a]=n[a],i)){var c=e.on||(e.on={});c["update:"+a]=function(e){n[a]=e}}};for(var s in n)a(s)}else;return e}function $t(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),Wt(r,"__static__"+e,!1)),r}function Vt(e,t,n){return Wt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Wt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&Xt(e[r],t+"_"+r,n);else Xt(e,t,n)}function Xt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Gt(e,t){if(t)if(c(t)){var n=e.on=e.on?P({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function Yt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?Yt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Kt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"===typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Jt(e,t){return"string"===typeof e?t+e:e}function Zt(e){e._o=Vt,e._n=m,e._s=p,e._l=Ft,e._t=Lt,e._q=F,e._i=L,e._m=$t,e._f=Bt,e._k=zt,e._b=Ht,e._v=Se,e._e=xe,e._u=Yt,e._g=Gt,e._d=Kt,e._p=Jt}function Qt(e,t,r,i,a){var s,u=this,l=a.options;w(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var c=o(l._compiled),f=!c;this.data=e,this.props=t,this.children=r,this.parent=i,this.listeners=e.on||n,this.injections=Pt(l.inject,i),this.slots=function(){return u.$slots||It(e.scopedSlots,u.$slots=Mt(r,i)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return It(e.scopedSlots,this.slots())}}),c&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=It(e.scopedSlots,this.$slots)),l._scopeId?this._c=function(e,t,n,r){var o=hn(s,e,t,n,r,f);return o&&!Array.isArray(o)&&(o.fnScopeId=l._scopeId,o.fnContext=i),o}:this._c=function(e,t,n,r){return hn(s,e,t,n,r,f)}}function en(e,t,r,o,a){var s=e.options,u={},l=s.props;if(i(l))for(var c in l)u[c]=Ze(c,l,t||n);else i(r.attrs)&&nn(u,r.attrs),i(r.props)&&nn(u,r.props);var f=new Qt(r,u,a,o,e),d=s.render.call(null,f._c,f);if(d instanceof we)return tn(d,r,f.parent,s,f);if(Array.isArray(d)){for(var h=Et(d)||[],p=new Array(h.length),m=0;m<h.length;m++)p[m]=tn(h[m],r,f.parent,s,f);return p}}function tn(e,t,n,r,i){var o=ke(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function nn(e,t){for(var n in t)e[S(n)]=t[n]}Zt(Qt.prototype);var rn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;rn.prepatch(n,n)}else{var r=e.componentInstance=sn(e,Pn);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;jn(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,Un(n,"mounted")),e.data.keepAlive&&(t._isMounted?er(n):Ln(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Bn(t,!0):t.$destroy())}},on=Object.keys(rn);function an(e,t,n,a,s){if(!r(e)){var l=n.$options._base;if(u(e)&&(e=l.extend(e)),"function"===typeof e){var c;if(r(e.cid)&&(c=e,e=xn(c,l),void 0===e))return _n(c,t,n,a,s);t=t||{},xr(e),i(t.model)&&cn(e.options,t);var f=St(t,e,s);if(o(e.options.functional))return en(e,f,t,n,a);var d=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var h=t.slot;t={},h&&(t.slot=h)}un(t);var p=e.options.name||s,m=new we("vue-component-"+e.cid+(p?"-"+p:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:f,listeners:d,tag:s,children:a},c);return m}}}function sn(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function un(e){for(var t=e.hook||(e.hook={}),n=0;n<on.length;n++){var r=on[n],i=t[r],o=rn[r];i===o||i&&i._merged||(t[r]=i?ln(o,i):o)}}function ln(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function cn(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),a=o[r],s=t.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}var fn=1,dn=2;function hn(e,t,n,r,i,a){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o(a)&&(i=dn),pn(e,t,n,r,i)}function pn(e,t,n,r,o){if(i(n)&&i(n.__ob__))return xe();if(i(n)&&i(n.is)&&(t=n.is),!t)return xe();var a,s,u;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===dn?r=Et(r):o===fn&&(r=Ct(r)),"string"===typeof t)?(s=e.$vnode&&e.$vnode.ns||$.getTagNamespace(t),a=$.isReservedTag(t)?new we($.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!i(u=Je(e.$options,"components",t))?new we(t,n,r,void 0,void 0,e):an(u,n,e,r,t)):a=an(t,n,e,r);return Array.isArray(a)?a:i(a)?(i(s)&&mn(a,s),i(n)&&gn(n),a):xe()}function mn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),i(e.children))for(var a=0,s=e.children.length;a<s;a++){var u=e.children[a];i(u.tag)&&(r(u.ns)||o(n)&&"svg"!==u.tag)&&mn(u,t,n)}}function gn(e){u(e.style)&&yt(e.style),u(e.class)&&yt(e.class)}function vn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,i=r&&r.context;e.$slots=Mt(t._renderChildren,i),e.$scopedSlots=n,e._c=function(t,n,r,i){return hn(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return hn(e,t,n,r,i,!0)};var o=r&&r.data;Re(e,"$attrs",o&&o.attrs||n,null,!0),Re(e,"$listeners",t._parentListeners||n,null,!0)}var yn,bn=null;function qn(e){Zt(e.prototype),e.prototype.$nextTick=function(e){return gt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=It(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{bn=t,e=r.call(t._renderProxy,t.$createElement)}catch(Jl){rt(Jl,t,"render"),e=t._vnode}finally{bn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof we||(e=xe()),e.parent=i,e}}function wn(e,t){return(e.__esModule||pe&&"Module"===e[Symbol.toStringTag])&&(e=e.default),u(e)?t.extend(e):e}function _n(e,t,n,r,i){var o=xe();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function xn(e,t){if(o(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;var n=bn;if(n&&i(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),o(e.loading)&&i(e.loadingComp))return e.loadingComp;if(n&&!i(e.owners)){var a=e.owners=[n],s=!0,l=null,c=null;n.$on("hook:destroyed",(function(){return b(a,n)}));var f=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==l&&(clearTimeout(l),l=null),null!==c&&(clearTimeout(c),c=null))},d=B((function(n){e.resolved=wn(n,t),s?a.length=0:f(!0)})),p=B((function(t){i(e.errorComp)&&(e.error=!0,f(!0))})),m=e(d,p);return u(m)&&(h(m)?r(e.resolved)&&m.then(d,p):h(m.component)&&(m.component.then(d,p),i(m.error)&&(e.errorComp=wn(m.error,t)),i(m.loading)&&(e.loadingComp=wn(m.loading,t),0===m.delay?e.loading=!0:l=setTimeout((function(){l=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,f(!1))}),m.delay||200)),i(m.timeout)&&(c=setTimeout((function(){c=null,r(e.resolved)&&p(null)}),m.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}function Sn(e){return e.isComment&&e.asyncFactory}function kn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(i(n)&&(i(n.componentOptions)||Sn(n)))return n}}function Cn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Dn(e,t)}function En(e,t){yn.$on(e,t)}function On(e,t){yn.$off(e,t)}function An(e,t){var n=yn;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function Dn(e,t,n){yn=e,_t(t,n||{},En,On,An,e),yn=void 0}function Tn(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;var s=a.length;while(s--)if(o=a[s],o===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?T(n):n;for(var r=T(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;o<a;o++)it(n[o],t,r,t,i)}return t}}var Pn=null;function Mn(e){var t=Pn;return Pn=e,function(){Pn=t}}function Nn(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function In(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=Mn(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Un(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||b(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Un(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function Rn(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=xe),Un(e,"beforeMount"),r=function(){e._update(e._render(),n)},new ir(e,r,N,{before:function(){e._isMounted&&!e._isDestroyed&&Un(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Un(e,"mounted")),e}function jn(e,t,r,i,o){var a=i.data.scopedSlots,s=e.$scopedSlots,u=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),l=!!(o||e.$options._renderChildren||u);if(e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o,e.$attrs=i.data.attrs||n,e.$listeners=r||n,t&&e.$options.props){Te(!1);for(var c=e._props,f=e.$options._propKeys||[],d=0;d<f.length;d++){var h=f[d],p=e.$options.props;c[h]=Ze(h,p,t,e)}Te(!0),e.$options.propsData=t}r=r||n;var m=e.$options._parentListeners;e.$options._parentListeners=r,Dn(e,r,m),l&&(e.$slots=Mt(o,i.context),e.$forceUpdate())}function Fn(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function Ln(e,t){if(t){if(e._directInactive=!1,Fn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Ln(e.$children[n]);Un(e,"activated")}}function Bn(e,t){if((!t||(e._directInactive=!0,!Fn(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Bn(e.$children[n]);Un(e,"deactivated")}}function Un(e,t){be();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)it(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),qe()}var zn=[],Hn=[],$n={},Vn=!1,Wn=!1,Xn=0;function Gn(){Xn=zn.length=Hn.length=0,$n={},Vn=Wn=!1}var Yn=0,Kn=Date.now;if(Z&&!ne){var Jn=window.performance;Jn&&"function"===typeof Jn.now&&Kn()>document.createEvent("Event").timeStamp&&(Kn=function(){return Jn.now()})}function Zn(){var e,t;for(Yn=Kn(),Wn=!0,zn.sort((function(e,t){return e.id-t.id})),Xn=0;Xn<zn.length;Xn++)e=zn[Xn],e.before&&e.before(),t=e.id,$n[t]=null,e.run();var n=Hn.slice(),r=zn.slice();Gn(),tr(n),Qn(r),fe&&$.devtools&&fe.emit("flush")}function Qn(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Un(r,"updated")}}function er(e){e._inactive=!1,Hn.push(e)}function tr(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Ln(e[t],!0)}function nr(e){var t=e.id;if(null==$n[t]){if($n[t]=!0,Wn){var n=zn.length-1;while(n>Xn&&zn[n].id>e.id)n--;zn.splice(n+1,0,e)}else zn.push(e);Vn||(Vn=!0,gt(Zn))}}var rr=0,ir=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++rr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new he,this.newDepIds=new he,this.expression="","function"===typeof t?this.getter=t:(this.getter=Y(t),this.getter||(this.getter=N)),this.value=this.lazy?void 0:this.get()};ir.prototype.get=function(){var e;be(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Jl){if(!this.user)throw Jl;rt(Jl,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&yt(e),qe(),this.cleanupDeps()}return e},ir.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},ir.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ir.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():nr(this)},ir.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||u(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Jl){rt(Jl,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},ir.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ir.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},ir.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var or={enumerable:!0,configurable:!0,get:N,set:N};function ar(e,t,n){or.get=function(){return this[t][n]},or.set=function(e){this[t][n]=e},Object.defineProperty(e,n,or)}function sr(e){e._watchers=[];var t=e.$options;t.props&&ur(e,t.props),t.methods&&gr(e,t.methods),t.data?lr(e):Ie(e._data={},!0),t.computed&&dr(e,t.computed),t.watch&&t.watch!==se&&vr(e,t.watch)}function ur(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||Te(!1);var a=function(o){i.push(o);var a=Ze(o,t,n,e);Re(r,o,a),o in e||ar(e,"_props",o)};for(var s in t)a(s);Te(!0)}function lr(e){var t=e.$options.data;t=e._data="function"===typeof t?cr(t,e):t||{},c(t)||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);while(i--){var o=n[i];0,r&&w(r,o)||W(o)||ar(e,"_data",o)}Ie(t,!0)}function cr(e,t){be();try{return e.call(t,t)}catch(Jl){return rt(Jl,t,"data()"),{}}finally{qe()}}var fr={lazy:!0};function dr(e,t){var n=e._computedWatchers=Object.create(null),r=ce();for(var i in t){var o=t[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new ir(e,a||N,N,fr)),i in e||hr(e,i,o)}}function hr(e,t,n){var r=!ce();"function"===typeof n?(or.get=r?pr(t):mr(n),or.set=N):(or.get=n.get?r&&!1!==n.cache?pr(t):mr(n.get):N,or.set=n.set||N),Object.defineProperty(e,t,or)}function pr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ve.target&&t.depend(),t.value}}function mr(e){return function(){return e.call(this,this)}}function gr(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?N:D(t[n],e)}function vr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)yr(e,n,r[i]);else yr(e,n,r)}}function yr(e,t,n,r){return c(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function br(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=je,e.prototype.$delete=Fe,e.prototype.$watch=function(e,t,n){var r=this;if(c(t))return yr(r,e,t,n);n=n||{},n.user=!0;var i=new ir(r,e,t,n);if(n.immediate)try{t.call(r,i.value)}catch(o){rt(o,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}var qr=0;function wr(e){e.prototype._init=function(e){var t=this;t._uid=qr++,t._isVue=!0,e&&e._isComponent?_r(t,e):t.$options=Ke(xr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Nn(t),Cn(t),vn(t),Un(t,"beforeCreate"),Tt(t),sr(t),Dt(t),Un(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function _r(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function xr(e){var t=e.options;if(e.super){var n=xr(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var i=Sr(e);i&&P(e.extendOptions,i),t=e.options=Ke(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Sr(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function kr(e){this._init(e)}function Cr(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=T(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function Er(e){e.mixin=function(e){return this.options=Ke(this.options,e),this}}function Or(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Ke(n.options,e),a["super"]=n,a.options.props&&Ar(a),a.options.computed&&Dr(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,z.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=P({},a.options),i[r]=a,a}}function Ar(e){var t=e.options.props;for(var n in t)ar(e.prototype,"_props",n)}function Dr(e){var t=e.options.computed;for(var n in t)hr(e.prototype,n,t[n])}function Tr(e){z.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function Pr(e){return e&&(e.Ctor.options.name||e.tag)}function Mr(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function Nr(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=Pr(a.componentOptions);s&&!t(s)&&Ir(n,o,r,i)}}}function Ir(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,b(n,t)}wr(kr),br(kr),Tn(kr),In(kr),qn(kr);var Rr=[String,RegExp,Array],jr={name:"keep-alive",abstract:!0,props:{include:Rr,exclude:Rr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Ir(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Nr(e,(function(e){return Mr(t,e)}))})),this.$watch("exclude",(function(t){Nr(e,(function(e){return!Mr(t,e)}))}))},render:function(){var e=this.$slots.default,t=kn(e),n=t&&t.componentOptions;if(n){var r=Pr(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Mr(o,r))||a&&r&&Mr(a,r))return t;var s=this,u=s.cache,l=s.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;u[c]?(t.componentInstance=u[c].componentInstance,b(l,c),l.push(c)):(u[c]=t,l.push(c),this.max&&l.length>parseInt(this.max)&&Ir(u,l[0],l,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Fr={KeepAlive:jr};function Lr(e){var t={get:function(){return $}};Object.defineProperty(e,"config",t),e.util={warn:me,extend:P,mergeOptions:Ke,defineReactive:Re},e.set=je,e.delete=Fe,e.nextTick=gt,e.observable=function(e){return Ie(e),e},e.options=Object.create(null),z.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,P(e.options.components,Fr),Cr(e),Er(e),Or(e),Tr(e)}Lr(kr),Object.defineProperty(kr.prototype,"$isServer",{get:ce}),Object.defineProperty(kr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(kr,"FunctionalRenderContext",{value:Qt}),kr.version="2.6.12";var Br=g("style,class"),Ur=g("input,textarea,option,select,progress"),zr=function(e,t,n){return"value"===n&&Ur(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Hr=g("contenteditable,draggable,spellcheck"),$r=g("events,caret,typing,plaintext-only"),Vr=function(e,t){return Kr(t)||"false"===t?"false":"contenteditable"===e&&$r(t)?t:"true"},Wr=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Xr="http://www.w3.org/1999/xlink",Gr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Yr=function(e){return Gr(e)?e.slice(6,e.length):""},Kr=function(e){return null==e||!1===e};function Jr(e){var t=e.data,n=e,r=e;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=Zr(r.data,t));while(i(n=n.parent))n&&n.data&&(t=Zr(t,n.data));return Qr(t.staticClass,t.class)}function Zr(e,t){return{staticClass:ei(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Qr(e,t){return i(e)||i(t)?ei(e,ti(t)):""}function ei(e,t){return e?t?e+" "+t:e:t||""}function ti(e){return Array.isArray(e)?ni(e):u(e)?ri(e):"string"===typeof e?e:""}function ni(e){for(var t,n="",r=0,o=e.length;r<o;r++)i(t=ti(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function ri(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var ii={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},oi=g("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),ai=g("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),si=function(e){return"pre"===e},ui=function(e){return oi(e)||ai(e)};function li(e){return ai(e)?"svg":"math"===e?"math":void 0}var ci=Object.create(null);function fi(e){if(!Z)return!0;if(ui(e))return!1;if(e=e.toLowerCase(),null!=ci[e])return ci[e];var t=document.createElement(e);return e.indexOf("-")>-1?ci[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ci[e]=/HTMLUnknownElement/.test(t.toString())}var di=g("text,number,password,search,email,tel,url");function hi(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function pi(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function mi(e,t){return document.createElementNS(ii[e],t)}function gi(e){return document.createTextNode(e)}function vi(e){return document.createComment(e)}function yi(e,t,n){e.insertBefore(t,n)}function bi(e,t){e.removeChild(t)}function qi(e,t){e.appendChild(t)}function wi(e){return e.parentNode}function _i(e){return e.nextSibling}function xi(e){return e.tagName}function Si(e,t){e.textContent=t}function ki(e,t){e.setAttribute(t,"")}var Ci=Object.freeze({createElement:pi,createElementNS:mi,createTextNode:gi,createComment:vi,insertBefore:yi,removeChild:bi,appendChild:qi,parentNode:wi,nextSibling:_i,tagName:xi,setTextContent:Si,setStyleScope:ki}),Ei={create:function(e,t){Oi(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Oi(e,!0),Oi(t))},destroy:function(e){Oi(e,!0)}};function Oi(e,t){var n=e.data.ref;if(i(n)){var r=e.context,o=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?b(a[n],o):a[n]===o&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var Ai=new we("",{},[]),Di=["create","activate","update","remove","destroy"];function Ti(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&i(e.data)===i(t.data)&&Pi(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&r(t.asyncFactory.error))}function Pi(e,t){if("input"!==e.tag)return!0;var n,r=i(n=e.data)&&i(n=n.attrs)&&n.type,o=i(n=t.data)&&i(n=n.attrs)&&n.type;return r===o||di(r)&&di(o)}function Mi(e,t,n){var r,o,a={};for(r=t;r<=n;++r)o=e[r].key,i(o)&&(a[o]=r);return a}function Ni(e){var t,n,a={},u=e.modules,l=e.nodeOps;for(t=0;t<Di.length;++t)for(a[Di[t]]=[],n=0;n<u.length;++n)i(u[n][Di[t]])&&a[Di[t]].push(u[n][Di[t]]);function c(e){return new we(l.tagName(e).toLowerCase(),{},[],void 0,e)}function f(e,t){function n(){0===--n.listeners&&d(e)}return n.listeners=t,n}function d(e){var t=l.parentNode(e);i(t)&&l.removeChild(t,e)}function h(e,t,n,r,a,s,u){if(i(e.elm)&&i(s)&&(e=s[u]=ke(e)),e.isRootInsert=!a,!p(e,t,n,r)){var c=e.data,f=e.children,d=e.tag;i(d)?(e.elm=e.ns?l.createElementNS(e.ns,d):l.createElement(d,e),_(e),b(e,f,t),i(c)&&w(e,t),y(n,e.elm,r)):o(e.isComment)?(e.elm=l.createComment(e.text),y(n,e.elm,r)):(e.elm=l.createTextNode(e.text),y(n,e.elm,r))}}function p(e,t,n,r){var a=e.data;if(i(a)){var s=i(e.componentInstance)&&a.keepAlive;if(i(a=a.hook)&&i(a=a.init)&&a(e,!1),i(e.componentInstance))return m(e,t),y(n,e.elm,r),o(s)&&v(e,t,n,r),!0}}function m(e,t){i(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,q(e)?(w(e,t),_(e)):(Oi(e),t.push(e))}function v(e,t,n,r){var o,s=e;while(s.componentInstance)if(s=s.componentInstance._vnode,i(o=s.data)&&i(o=o.transition)){for(o=0;o<a.activate.length;++o)a.activate[o](Ai,s);t.push(s);break}y(n,e.elm,r)}function y(e,t,n){i(e)&&(i(n)?l.parentNode(n)===e&&l.insertBefore(e,t,n):l.appendChild(e,t))}function b(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)h(t[r],n,e.elm,null,!0,t,r)}else s(e.text)&&l.appendChild(e.elm,l.createTextNode(String(e.text)))}function q(e){while(e.componentInstance)e=e.componentInstance._vnode;return i(e.tag)}function w(e,n){for(var r=0;r<a.create.length;++r)a.create[r](Ai,e);t=e.data.hook,i(t)&&(i(t.create)&&t.create(Ai,e),i(t.insert)&&n.push(e))}function _(e){var t;if(i(t=e.fnScopeId))l.setStyleScope(e.elm,t);else{var n=e;while(n)i(t=n.context)&&i(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t),n=n.parent}i(t=Pn)&&t!==e.context&&t!==e.fnContext&&i(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t)}function x(e,t,n,r,i,o){for(;r<=i;++r)h(n[r],o,e,t,!1,n,r)}function S(e){var t,n,r=e.data;if(i(r))for(i(t=r.hook)&&i(t=t.destroy)&&t(e),t=0;t<a.destroy.length;++t)a.destroy[t](e);if(i(t=e.children))for(n=0;n<e.children.length;++n)S(e.children[n])}function k(e,t,n){for(;t<=n;++t){var r=e[t];i(r)&&(i(r.tag)?(C(r),S(r)):d(r.elm))}}function C(e,t){if(i(t)||i(e.data)){var n,r=a.remove.length+1;for(i(t)?t.listeners+=r:t=f(e.elm,r),i(n=e.componentInstance)&&i(n=n._vnode)&&i(n.data)&&C(n,t),n=0;n<a.remove.length;++n)a.remove[n](e,t);i(n=e.data.hook)&&i(n=n.remove)?n(e,t):t()}else d(e.elm)}function E(e,t,n,o,a){var s,u,c,f,d=0,p=0,m=t.length-1,g=t[0],v=t[m],y=n.length-1,b=n[0],q=n[y],w=!a;while(d<=m&&p<=y)r(g)?g=t[++d]:r(v)?v=t[--m]:Ti(g,b)?(A(g,b,o,n,p),g=t[++d],b=n[++p]):Ti(v,q)?(A(v,q,o,n,y),v=t[--m],q=n[--y]):Ti(g,q)?(A(g,q,o,n,y),w&&l.insertBefore(e,g.elm,l.nextSibling(v.elm)),g=t[++d],q=n[--y]):Ti(v,b)?(A(v,b,o,n,p),w&&l.insertBefore(e,v.elm,g.elm),v=t[--m],b=n[++p]):(r(s)&&(s=Mi(t,d,m)),u=i(b.key)?s[b.key]:O(b,t,d,m),r(u)?h(b,o,e,g.elm,!1,n,p):(c=t[u],Ti(c,b)?(A(c,b,o,n,p),t[u]=void 0,w&&l.insertBefore(e,c.elm,g.elm)):h(b,o,e,g.elm,!1,n,p)),b=n[++p]);d>m?(f=r(n[y+1])?null:n[y+1].elm,x(e,f,n,p,y,o)):p>y&&k(t,d,m)}function O(e,t,n,r){for(var o=n;o<r;o++){var a=t[o];if(i(a)&&Ti(e,a))return o}}function A(e,t,n,s,u,c){if(e!==t){i(t.elm)&&i(s)&&(t=s[u]=ke(t));var f=t.elm=e.elm;if(o(e.isAsyncPlaceholder))i(t.asyncFactory.resolved)?P(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))t.componentInstance=e.componentInstance;else{var d,h=t.data;i(h)&&i(d=h.hook)&&i(d=d.prepatch)&&d(e,t);var p=e.children,m=t.children;if(i(h)&&q(t)){for(d=0;d<a.update.length;++d)a.update[d](e,t);i(d=h.hook)&&i(d=d.update)&&d(e,t)}r(t.text)?i(p)&&i(m)?p!==m&&E(f,p,m,n,c):i(m)?(i(e.text)&&l.setTextContent(f,""),x(f,null,m,0,m.length-1,n)):i(p)?k(p,0,p.length-1):i(e.text)&&l.setTextContent(f,""):e.text!==t.text&&l.setTextContent(f,t.text),i(h)&&i(d=h.hook)&&i(d=d.postpatch)&&d(e,t)}}}function D(e,t,n){if(o(n)&&i(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var T=g("attrs,class,staticClass,staticStyle,key");function P(e,t,n,r){var a,s=t.tag,u=t.data,l=t.children;if(r=r||u&&u.pre,t.elm=e,o(t.isComment)&&i(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(i(u)&&(i(a=u.hook)&&i(a=a.init)&&a(t,!0),i(a=t.componentInstance)))return m(t,n),!0;if(i(s)){if(i(l))if(e.hasChildNodes())if(i(a=u)&&i(a=a.domProps)&&i(a=a.innerHTML)){if(a!==e.innerHTML)return!1}else{for(var c=!0,f=e.firstChild,d=0;d<l.length;d++){if(!f||!P(f,l[d],n,r)){c=!1;break}f=f.nextSibling}if(!c||f)return!1}else b(t,l,n);if(i(u)){var h=!1;for(var p in u)if(!T(p)){h=!0,w(t,n);break}!h&&u["class"]&&yt(u["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,s){if(!r(t)){var u=!1,f=[];if(r(e))u=!0,h(t,f);else{var d=i(e.nodeType);if(!d&&Ti(e,t))A(e,t,f,null,null,s);else{if(d){if(1===e.nodeType&&e.hasAttribute(U)&&(e.removeAttribute(U),n=!0),o(n)&&P(e,t,f))return D(t,f,!0),e;e=c(e)}var p=e.elm,m=l.parentNode(p);if(h(t,f,p._leaveCb?null:m,l.nextSibling(p)),i(t.parent)){var g=t.parent,v=q(t);while(g){for(var y=0;y<a.destroy.length;++y)a.destroy[y](g);if(g.elm=t.elm,v){for(var b=0;b<a.create.length;++b)a.create[b](Ai,g);var w=g.data.hook.insert;if(w.merged)for(var _=1;_<w.fns.length;_++)w.fns[_]()}else Oi(g);g=g.parent}}i(m)?k([e],0,0):i(e.tag)&&S(e)}}return D(t,f,u),t.elm}i(e)&&S(e)}}var Ii={create:Ri,update:Ri,destroy:function(e){Ri(e,Ai)}};function Ri(e,t){(e.data.directives||t.data.directives)&&ji(e,t)}function ji(e,t){var n,r,i,o=e===Ai,a=t===Ai,s=Li(e.data.directives,e.context),u=Li(t.data.directives,t.context),l=[],c=[];for(n in u)r=s[n],i=u[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Ui(i,"update",t,e),i.def&&i.def.componentUpdated&&c.push(i)):(Ui(i,"bind",t,e),i.def&&i.def.inserted&&l.push(i));if(l.length){var f=function(){for(var n=0;n<l.length;n++)Ui(l[n],"inserted",t,e)};o?xt(t,"insert",f):f()}if(c.length&&xt(t,"postpatch",(function(){for(var n=0;n<c.length;n++)Ui(c[n],"componentUpdated",t,e)})),!o)for(n in s)u[n]||Ui(s[n],"unbind",e,e,a)}var Fi=Object.create(null);function Li(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)r=e[n],r.modifiers||(r.modifiers=Fi),i[Bi(r)]=r,r.def=Je(t.$options,"directives",r.name,!0);return i}function Bi(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Ui(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(Jl){rt(Jl,n.context,"directive "+e.name+" "+t+" hook")}}var zi=[Ei,Ii];function Hi(e,t){var n=t.componentOptions;if((!i(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(e.data.attrs)||!r(t.data.attrs))){var o,a,s,u=t.elm,l=e.data.attrs||{},c=t.data.attrs||{};for(o in i(c.__ob__)&&(c=t.data.attrs=P({},c)),c)a=c[o],s=l[o],s!==a&&$i(u,o,a);for(o in(ne||ie)&&c.value!==l.value&&$i(u,"value",c.value),l)r(c[o])&&(Gr(o)?u.removeAttributeNS(Xr,Yr(o)):Hr(o)||u.removeAttribute(o))}}function $i(e,t,n){e.tagName.indexOf("-")>-1?Vi(e,t,n):Wr(t)?Kr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Hr(t)?e.setAttribute(t,Vr(t,n)):Gr(t)?Kr(n)?e.removeAttributeNS(Xr,Yr(t)):e.setAttributeNS(Xr,t,n):Vi(e,t,n)}function Vi(e,t,n){if(Kr(n))e.removeAttribute(t);else{if(ne&&!re&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Wi={create:Hi,update:Hi};function Xi(e,t){var n=t.elm,o=t.data,a=e.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Jr(t),u=n._transitionClasses;i(u)&&(s=ei(s,ti(u))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Gi,Yi,Ki,Ji,Zi,Qi,eo={create:Xi,update:Xi},to=/[\w).+\-_$\]]/;function no(e){var t,n,r,i,o,a=!1,s=!1,u=!1,l=!1,c=0,f=0,d=0,h=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),a)39===t&&92!==n&&(a=!1);else if(s)34===t&&92!==n&&(s=!1);else if(u)96===t&&92!==n&&(u=!1);else if(l)47===t&&92!==n&&(l=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||c||f||d){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:u=!0;break;case 40:d++;break;case 41:d--;break;case 91:f++;break;case 93:f--;break;case 123:c++;break;case 125:c--;break}if(47===t){for(var p=r-1,m=void 0;p>=0;p--)if(m=e.charAt(p)," "!==m)break;m&&to.test(m)||(l=!0)}}else void 0===i?(h=r+1,i=e.slice(0,r).trim()):g();function g(){(o||(o=[])).push(e.slice(h,r).trim()),h=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==h&&g(),o)for(r=0;r<o.length;r++)i=ro(i,o[r]);return i}function ro(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==i?","+i:i)}function io(e,t){console.error("[Vue compiler]: "+e)}function oo(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function ao(e,t,n,r,i){(e.props||(e.props=[])).push(vo({name:t,value:n,dynamic:i},r)),e.plain=!1}function so(e,t,n,r,i){var o=i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[]);o.push(vo({name:t,value:n,dynamic:i},r)),e.plain=!1}function uo(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(vo({name:t,value:n},r))}function lo(e,t,n,r,i,o,a,s){(e.directives||(e.directives=[])).push(vo({name:t,rawName:n,value:r,arg:i,isDynamicArg:o,modifiers:a},s)),e.plain=!1}function co(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function fo(e,t,r,i,o,a,s,u){var l;i=i||n,i.right?u?t="("+t+")==='click'?'contextmenu':("+t+")":"click"===t&&(t="contextmenu",delete i.right):i.middle&&(u?t="("+t+")==='click'?'mouseup':("+t+")":"click"===t&&(t="mouseup")),i.capture&&(delete i.capture,t=co("!",t,u)),i.once&&(delete i.once,t=co("~",t,u)),i.passive&&(delete i.passive,t=co("&",t,u)),i.native?(delete i.native,l=e.nativeEvents||(e.nativeEvents={})):l=e.events||(e.events={});var c=vo({value:r.trim(),dynamic:u},s);i!==n&&(c.modifiers=i);var f=l[t];Array.isArray(f)?o?f.unshift(c):f.push(c):l[t]=f?o?[c,f]:[f,c]:c,e.plain=!1}function ho(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}function po(e,t,n){var r=mo(e,":"+t)||mo(e,"v-bind:"+t);if(null!=r)return no(r);if(!1!==n){var i=mo(e,t);if(null!=i)return JSON.stringify(i)}}function mo(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===t){i.splice(o,1);break}return n&&delete e.attrsMap[t],r}function go(e,t){for(var n=e.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(t.test(o.name))return n.splice(r,1),o}}function vo(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function yo(e,t,n){var r=n||{},i=r.number,o=r.trim,a="$$v",s=a;o&&(s="(typeof "+a+" === 'string'? "+a+".trim(): "+a+")"),i&&(s="_n("+s+")");var u=bo(t,s);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ("+a+") {"+u+"}"}}function bo(e,t){var n=qo(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function qo(e){if(e=e.trim(),Gi=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<Gi-1)return Ji=e.lastIndexOf("."),Ji>-1?{exp:e.slice(0,Ji),key:'"'+e.slice(Ji+1)+'"'}:{exp:e,key:null};Yi=e,Ji=Zi=Qi=0;while(!_o())Ki=wo(),xo(Ki)?ko(Ki):91===Ki&&So(Ki);return{exp:e.slice(0,Zi),key:e.slice(Zi+1,Qi)}}function wo(){return Yi.charCodeAt(++Ji)}function _o(){return Ji>=Gi}function xo(e){return 34===e||39===e}function So(e){var t=1;Zi=Ji;while(!_o())if(e=wo(),xo(e))ko(e);else if(91===e&&t++,93===e&&t--,0===t){Qi=Ji;break}}function ko(e){var t=e;while(!_o())if(e=wo(),e===t)break}var Co,Eo="__r",Oo="__c";function Ao(e,t,n){n;var r=t.value,i=t.modifiers,o=e.tag,a=e.attrsMap.type;if(e.component)return yo(e,r,i),!1;if("select"===o)Po(e,r,i);else if("input"===o&&"checkbox"===a)Do(e,r,i);else if("input"===o&&"radio"===a)To(e,r,i);else if("input"===o||"textarea"===o)Mo(e,r,i);else{if(!$.isReservedTag(o))return yo(e,r,i),!1}return!0}function Do(e,t,n){var r=n&&n.number,i=po(e,"value")||"null",o=po(e,"true-value")||"true",a=po(e,"false-value")||"false";ao(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),fo(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+bo(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+bo(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+bo(t,"$$c")+"}",null,!0)}function To(e,t,n){var r=n&&n.number,i=po(e,"value")||"null";i=r?"_n("+i+")":i,ao(e,"checked","_q("+t+","+i+")"),fo(e,"change",bo(t,i),null,!0)}function Po(e,t,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})",o="$event.target.multiple ? $$selectedVal : $$selectedVal[0]",a="var $$selectedVal = "+i+";";a=a+" "+bo(t,o),fo(e,"change",a,null,!0)}function Mo(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,u=!o&&"range"!==r,l=o?"change":"range"===r?Eo:"input",c="$event.target.value";s&&(c="$event.target.value.trim()"),a&&(c="_n("+c+")");var f=bo(t,c);u&&(f="if($event.target.composing)return;"+f),ao(e,"value","("+t+")"),fo(e,l,f,null,!0),(s||a)&&fo(e,"blur","$forceUpdate()")}function No(e){if(i(e[Eo])){var t=ne?"change":"input";e[t]=[].concat(e[Eo],e[t]||[]),delete e[Eo]}i(e[Oo])&&(e.change=[].concat(e[Oo],e.change||[]),delete e[Oo])}function Io(e,t,n){var r=Co;return function i(){var o=t.apply(null,arguments);null!==o&&Fo(e,i,n,r)}}var Ro=ut&&!(ae&&Number(ae[1])<=53);function jo(e,t,n,r){if(Ro){var i=Yn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Co.addEventListener(e,t,ue?{capture:n,passive:r}:n)}function Fo(e,t,n,r){(r||Co).removeEventListener(e,t._wrapper||t,n)}function Lo(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},i=e.data.on||{};Co=t.elm,No(n),_t(n,i,jo,Fo,Io,t.context),Co=void 0}}var Bo,Uo={create:Lo,update:Lo};function zo(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,o,a=t.elm,s=e.data.domProps||{},u=t.data.domProps||{};for(n in i(u.__ob__)&&(u=t.data.domProps=P({},u)),s)n in u||(a[n]="");for(n in u){if(o=u[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var l=r(o)?"":String(o);Ho(a,l)&&(a.value=l)}else if("innerHTML"===n&&ai(a.tagName)&&r(a.innerHTML)){Bo=Bo||document.createElement("div"),Bo.innerHTML="<svg>"+o+"</svg>";var c=Bo.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(c.firstChild)a.appendChild(c.firstChild)}else if(o!==s[n])try{a[n]=o}catch(Jl){}}}}function Ho(e,t){return!e.composing&&("OPTION"===e.tagName||$o(e,t)||Vo(e,t))}function $o(e,t){var n=!0;try{n=document.activeElement!==e}catch(Jl){}return n&&e.value!==t}function Vo(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.number)return m(n)!==m(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var Wo={create:zo,update:zo},Xo=_((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Go(e){var t=Yo(e.style);return e.staticStyle?P(e.staticStyle,t):t}function Yo(e){return Array.isArray(e)?M(e):"string"===typeof e?Xo(e):e}function Ko(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=Go(i.data))&&P(r,n)}(n=Go(e.data))&&P(r,n);var o=e;while(o=o.parent)o.data&&(n=Go(o.data))&&P(r,n);return r}var Jo,Zo=/^--/,Qo=/\s*!important$/,ea=function(e,t,n){if(Zo.test(t))e.style.setProperty(t,n);else if(Qo.test(n))e.style.setProperty(E(t),n.replace(Qo,""),"important");else{var r=na(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},ta=["Webkit","Moz","ms"],na=_((function(e){if(Jo=Jo||document.createElement("div").style,e=S(e),"filter"!==e&&e in Jo)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<ta.length;n++){var r=ta[n]+t;if(r in Jo)return r}}));function ra(e,t){var n=t.data,o=e.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var a,s,u=t.elm,l=o.staticStyle,c=o.normalizedStyle||o.style||{},f=l||c,d=Yo(t.data.style)||{};t.data.normalizedStyle=i(d.__ob__)?P({},d):d;var h=Ko(t,!0);for(s in f)r(h[s])&&ea(u,s,"");for(s in h)a=h[s],a!==f[s]&&ea(u,s,null==a?"":a)}}var ia={create:ra,update:ra},oa=/\s+/;function aa(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(oa).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function sa(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(oa).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function ua(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&P(t,la(e.name||"v")),P(t,e),t}return"string"===typeof e?la(e):void 0}}var la=_((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),ca=Z&&!re,fa="transition",da="animation",ha="transition",pa="transitionend",ma="animation",ga="animationend";ca&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ha="WebkitTransition",pa="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ma="WebkitAnimation",ga="webkitAnimationEnd"));var va=Z?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ya(e){va((function(){va(e)}))}function ba(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),aa(e,t))}function qa(e,t){e._transitionClasses&&b(e._transitionClasses,t),sa(e,t)}function wa(e,t,n){var r=xa(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===fa?pa:ga,u=0,l=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++u>=a&&l()};setTimeout((function(){u<a&&l()}),o+1),e.addEventListener(s,c)}var _a=/\b(transform|all)(,|$)/;function xa(e,t){var n,r=window.getComputedStyle(e),i=(r[ha+"Delay"]||"").split(", "),o=(r[ha+"Duration"]||"").split(", "),a=Sa(i,o),s=(r[ma+"Delay"]||"").split(", "),u=(r[ma+"Duration"]||"").split(", "),l=Sa(s,u),c=0,f=0;t===fa?a>0&&(n=fa,c=a,f=o.length):t===da?l>0&&(n=da,c=l,f=u.length):(c=Math.max(a,l),n=c>0?a>l?fa:da:null,f=n?n===fa?o.length:u.length:0);var d=n===fa&&_a.test(r[ha+"Property"]);return{type:n,timeout:c,propCount:f,hasTransform:d}}function Sa(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return ka(t)+ka(e[n])})))}function ka(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Ca(e,t){var n=e.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=ua(e.data.transition);if(!r(o)&&!i(n._enterCb)&&1===n.nodeType){var a=o.css,s=o.type,l=o.enterClass,c=o.enterToClass,f=o.enterActiveClass,d=o.appearClass,h=o.appearToClass,p=o.appearActiveClass,g=o.beforeEnter,v=o.enter,y=o.afterEnter,b=o.enterCancelled,q=o.beforeAppear,w=o.appear,_=o.afterAppear,x=o.appearCancelled,S=o.duration,k=Pn,C=Pn.$vnode;while(C&&C.parent)k=C.context,C=C.parent;var E=!k._isMounted||!e.isRootInsert;if(!E||w||""===w){var O=E&&d?d:l,A=E&&p?p:f,D=E&&h?h:c,T=E&&q||g,P=E&&"function"===typeof w?w:v,M=E&&_||y,N=E&&x||b,I=m(u(S)?S.enter:S);0;var R=!1!==a&&!re,j=Aa(P),F=n._enterCb=B((function(){R&&(qa(n,D),qa(n,A)),F.cancelled?(R&&qa(n,O),N&&N(n)):M&&M(n),n._enterCb=null}));e.data.show||xt(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),P&&P(n,F)})),T&&T(n),R&&(ba(n,O),ba(n,A),ya((function(){qa(n,O),F.cancelled||(ba(n,D),j||(Oa(I)?setTimeout(F,I):wa(n,s,F)))}))),e.data.show&&(t&&t(),P&&P(n,F)),R||j||F()}}}function Ea(e,t){var n=e.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=ua(e.data.transition);if(r(o)||1!==n.nodeType)return t();if(!i(n._leaveCb)){var a=o.css,s=o.type,l=o.leaveClass,c=o.leaveToClass,f=o.leaveActiveClass,d=o.beforeLeave,h=o.leave,p=o.afterLeave,g=o.leaveCancelled,v=o.delayLeave,y=o.duration,b=!1!==a&&!re,q=Aa(h),w=m(u(y)?y.leave:y);0;var _=n._leaveCb=B((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),b&&(qa(n,c),qa(n,f)),_.cancelled?(b&&qa(n,l),g&&g(n)):(t(),p&&p(n)),n._leaveCb=null}));v?v(x):x()}function x(){_.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),d&&d(n),b&&(ba(n,l),ba(n,f),ya((function(){qa(n,l),_.cancelled||(ba(n,c),q||(Oa(w)?setTimeout(_,w):wa(n,s,_)))}))),h&&h(n,_),b||q||_())}}function Oa(e){return"number"===typeof e&&!isNaN(e)}function Aa(e){if(r(e))return!1;var t=e.fns;return i(t)?Aa(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Da(e,t){!0!==t.data.show&&Ca(t)}var Ta=Z?{create:Da,activate:Da,remove:function(e,t){!0!==e.data.show?Ea(e,t):t()}}:{},Pa=[Wi,eo,Uo,Wo,ia,Ta],Ma=Pa.concat(zi),Na=Ni({nodeOps:Ci,modules:Ma});re&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&za(e,"input")}));var Ia={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?xt(n,"postpatch",(function(){Ia.componentUpdated(e,t,n)})):Ra(e,t,n.context),e._vOptions=[].map.call(e.options,La)):("textarea"===n.tag||di(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Ba),e.addEventListener("compositionend",Ua),e.addEventListener("change",Ua),re&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Ra(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,La);if(i.some((function(e,t){return!F(e,r[t])}))){var o=e.multiple?t.value.some((function(e){return Fa(e,i)})):t.value!==t.oldValue&&Fa(t.value,i);o&&za(e,"change")}}}};function Ra(e,t,n){ja(e,t,n),(ne||ie)&&setTimeout((function(){ja(e,t,n)}),0)}function ja(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,u=e.options.length;s<u;s++)if(a=e.options[s],i)o=L(r,La(a))>-1,a.selected!==o&&(a.selected=o);else if(F(La(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Fa(e,t){return t.every((function(t){return!F(t,e)}))}function La(e){return"_value"in e?e._value:e.value}function Ba(e){e.target.composing=!0}function Ua(e){e.target.composing&&(e.target.composing=!1,za(e.target,"input"))}function za(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Ha(e){return!e.componentInstance||e.data&&e.data.transition?e:Ha(e.componentInstance._vnode)}var $a={bind:function(e,t,n){var r=t.value;n=Ha(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Ca(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!==!i){n=Ha(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Ca(n,(function(){e.style.display=e.__vOriginalDisplay})):Ea(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Va={model:Ia,show:$a},Wa={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Xa(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Xa(kn(t.children)):e}function Ga(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[S(o)]=i[o];return t}function Ya(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Ka(e){while(e=e.parent)if(e.data.transition)return!0}function Ja(e,t){return t.key===e.key&&t.tag===e.tag}var Za=function(e){return e.tag||Sn(e)},Qa=function(e){return"show"===e.name},es={name:"transition",props:Wa,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Za),n.length)){0;var r=this.mode;0;var i=n[0];if(Ka(this.$vnode))return i;var o=Xa(i);if(!o)return i;if(this._leaving)return Ya(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var u=(o.data||(o.data={})).transition=Ga(this),l=this._vnode,c=Xa(l);if(o.data.directives&&o.data.directives.some(Qa)&&(o.data.show=!0),c&&c.data&&!Ja(o,c)&&!Sn(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var f=c.data.transition=P({},u);if("out-in"===r)return this._leaving=!0,xt(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Ya(e,i);if("in-out"===r){if(Sn(o))return l;var d,h=function(){d()};xt(u,"afterEnter",h),xt(u,"enterCancelled",h),xt(f,"delayLeave",(function(e){d=e}))}}return i}}},ts=P({tag:String,moveClass:String},Wa);delete ts.mode;var ns={props:ts,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Mn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Ga(this),s=0;s<i.length;s++){var u=i[s];if(u.tag)if(null!=u.key&&0!==String(u.key).indexOf("__vlist"))o.push(u),n[u.key]=u,(u.data||(u.data={})).transition=a;else;}if(r){for(var l=[],c=[],f=0;f<r.length;f++){var d=r[f];d.data.transition=a,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?l.push(d):c.push(d)}this.kept=e(t,null,l),this.removed=c}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(rs),e.forEach(is),e.forEach(os),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;ba(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(pa,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(pa,e),n._moveCb=null,qa(n,t))})}})))},methods:{hasMove:function(e,t){if(!ca)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){sa(n,e)})),aa(n,t),n.style.display="none",this.$el.appendChild(n);var r=xa(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function rs(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function is(e){e.data.newPos=e.elm.getBoundingClientRect()}function os(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var as={Transition:es,TransitionGroup:ns};kr.config.mustUseProp=zr,kr.config.isReservedTag=ui,kr.config.isReservedAttr=Br,kr.config.getTagNamespace=li,kr.config.isUnknownElement=fi,P(kr.options.directives,Va),P(kr.options.components,as),kr.prototype.__patch__=Z?Na:N,kr.prototype.$mount=function(e,t){return e=e&&Z?hi(e):void 0,Rn(this,e,t)},Z&&setTimeout((function(){$.devtools&&fe&&fe.emit("init",kr)}),0);var ss=/\{\{((?:.|\r?\n)+?)\}\}/g,us=/[-.*+?^${}()|[\]\/\\]/g,ls=_((function(e){var t=e[0].replace(us,"\\$&"),n=e[1].replace(us,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));function cs(e,t){var n=t?ls(t):ss;if(n.test(e)){var r,i,o,a=[],s=[],u=n.lastIndex=0;while(r=n.exec(e)){i=r.index,i>u&&(s.push(o=e.slice(u,i)),a.push(JSON.stringify(o)));var l=no(r[1].trim());a.push("_s("+l+")"),s.push({"@binding":l}),u=i+r[0].length}return u<e.length&&(s.push(o=e.slice(u)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}function fs(e,t){t.warn;var n=mo(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=po(e,"class",!1);r&&(e.classBinding=r)}function ds(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}var hs={staticKeys:["staticClass"],transformNode:fs,genData:ds};function ps(e,t){t.warn;var n=mo(e,"style");n&&(e.staticStyle=JSON.stringify(Xo(n)));var r=po(e,"style",!1);r&&(e.styleBinding=r)}function ms(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}var gs,vs={staticKeys:["staticStyle"],transformNode:ps,genData:ms},ys={decode:function(e){return gs=gs||document.createElement("div"),gs.innerHTML=e,gs.textContent}},bs=g("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),qs=g("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ws=g("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),_s=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,xs=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ss="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+V.source+"]*",ks="((?:"+Ss+"\\:)?"+Ss+")",Cs=new RegExp("^<"+ks),Es=/^\s*(\/?)>/,Os=new RegExp("^<\\/"+ks+"[^>]*>"),As=/^<!DOCTYPE [^>]+>/i,Ds=/^<!\--/,Ts=/^<!\[/,Ps=g("script,style,textarea",!0),Ms={},Ns={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},Is=/&(?:lt|gt|quot|amp|#39);/g,Rs=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,js=g("pre,textarea",!0),Fs=function(e,t){return e&&js(e)&&"\n"===t[0]};function Ls(e,t){var n=t?Rs:Is;return e.replace(n,(function(e){return Ns[e]}))}function Bs(e,t){var n,r,i=[],o=t.expectHTML,a=t.isUnaryTag||I,s=t.canBeLeftOpenTag||I,u=0;while(e){if(n=e,r&&Ps(r)){var l=0,c=r.toLowerCase(),f=Ms[c]||(Ms[c]=new RegExp("([\\s\\S]*?)(</"+c+"[^>]*>)","i")),d=e.replace(f,(function(e,n,r){return l=r.length,Ps(c)||"noscript"===c||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Fs(c,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));u+=e.length-d.length,e=d,C(c,u-l,u)}else{var h=e.indexOf("<");if(0===h){if(Ds.test(e)){var p=e.indexOf("--\x3e");if(p>=0){t.shouldKeepComment&&t.comment(e.substring(4,p),u,u+p+3),x(p+3);continue}}if(Ts.test(e)){var m=e.indexOf("]>");if(m>=0){x(m+2);continue}}var g=e.match(As);if(g){x(g[0].length);continue}var v=e.match(Os);if(v){var y=u;x(v[0].length),C(v[1],y,u);continue}var b=S();if(b){k(b),Fs(b.tagName,e)&&x(1);continue}}var q=void 0,w=void 0,_=void 0;if(h>=0){w=e.slice(h);while(!Os.test(w)&&!Cs.test(w)&&!Ds.test(w)&&!Ts.test(w)){if(_=w.indexOf("<",1),_<0)break;h+=_,w=e.slice(h)}q=e.substring(0,h)}h<0&&(q=e),q&&x(q.length),t.chars&&q&&t.chars(q,u-q.length,u)}if(e===n){t.chars&&t.chars(e);break}}function x(t){u+=t,e=e.substring(t)}function S(){var t=e.match(Cs);if(t){var n,r,i={tagName:t[1],attrs:[],start:u};x(t[0].length);while(!(n=e.match(Es))&&(r=e.match(xs)||e.match(_s)))r.start=u,x(r[0].length),r.end=u,i.attrs.push(r);if(n)return i.unarySlash=n[1],x(n[0].length),i.end=u,i}}function k(e){var n=e.tagName,u=e.unarySlash;o&&("p"===r&&ws(n)&&C(r),s(n)&&r===n&&C(n));for(var l=a(n)||!!u,c=e.attrs.length,f=new Array(c),d=0;d<c;d++){var h=e.attrs[d],p=h[3]||h[4]||h[5]||"",m="a"===n&&"href"===h[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;f[d]={name:h[1],value:Ls(p,m)}}l||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:f,start:e.start,end:e.end}),r=n),t.start&&t.start(n,f,l,e.start,e.end)}function C(e,n,o){var a,s;if(null==n&&(n=u),null==o&&(o=u),e){for(s=e.toLowerCase(),a=i.length-1;a>=0;a--)if(i[a].lowerCasedTag===s)break}else a=0;if(a>=0){for(var l=i.length-1;l>=a;l--)t.end&&t.end(i[l].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}C()}var Us,zs,Hs,$s,Vs,Ws,Xs,Gs,Ys=/^@|^v-on:/,Ks=/^v-|^@|^:|^#/,Js=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Zs=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Qs=/^\(|\)$/g,eu=/^\[.*\]$/,tu=/:(.*)$/,nu=/^:|^\.|^v-bind:/,ru=/\.[^.\]]+(?=[^\]]*$)/g,iu=/^v-slot(:|$)|^#/,ou=/[\r\n]/,au=/\s+/g,su=_(ys.decode),uu="_empty_";function lu(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:Du(t),rawAttrsMap:{},parent:n,children:[]}}function cu(e,t){Us=t.warn||io,Ws=t.isPreTag||I,Xs=t.mustUseProp||I,Gs=t.getTagNamespace||I;var n=t.isReservedTag||I;(function(e){return!!e.component||!n(e.tag)}),Hs=oo(t.modules,"transformNode"),$s=oo(t.modules,"preTransformNode"),Vs=oo(t.modules,"postTransformNode"),zs=t.delimiters;var r,i,o=[],a=!1!==t.preserveWhitespace,s=t.whitespace,u=!1,l=!1;function c(e){if(f(e),u||e.processed||(e=hu(e,t)),o.length||e===r||r.if&&(e.elseif||e.else)&&wu(r,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)bu(e,i);else{if(e.slotScope){var n=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=e}i.children.push(e),e.parent=i}e.children=e.children.filter((function(e){return!e.slotScope})),f(e),e.pre&&(u=!1),Ws(e.tag)&&(l=!1);for(var a=0;a<Vs.length;a++)Vs[a](e,t)}function f(e){var t;if(!l)while((t=e.children[e.children.length-1])&&3===t.type&&" "===t.text)e.children.pop()}return Bs(e,{warn:Us,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,a,s,f){var d=i&&i.ns||Gs(e);ne&&"svg"===d&&(n=Iu(n));var h=lu(e,n,i);d&&(h.ns=d),Pu(h)&&!ce()&&(h.forbidden=!0);for(var p=0;p<$s.length;p++)h=$s[p](h,t)||h;u||(fu(h),h.pre&&(u=!0)),Ws(h.tag)&&(l=!0),u?du(h):h.processed||(gu(h),yu(h),_u(h)),r||(r=h),a?c(h):(i=h,o.push(h))},end:function(e,t,n){var r=o[o.length-1];o.length-=1,i=o[o.length-1],c(r)},chars:function(e,t,n){if(i&&(!ne||"textarea"!==i.tag||i.attrsMap.placeholder!==e)){var r,o,c=i.children;if(e=l||e.trim()?Tu(i)?e:su(e):c.length?s?"condense"===s&&ou.test(e)?"":" ":a?" ":"":"",e)l||"condense"!==s||(e=e.replace(au," ")),!u&&" "!==e&&(r=cs(e,zs))?o={type:2,expression:r.expression,tokens:r.tokens,text:e}:" "===e&&c.length&&" "===c[c.length-1].text||(o={type:3,text:e}),o&&c.push(o)}},comment:function(e,t,n){if(i){var r={type:3,text:e,isComment:!0};0,i.children.push(r)}}}),r}function fu(e){null!=mo(e,"v-pre")&&(e.pre=!0)}function du(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),i=0;i<n;i++)r[i]={name:t[i].name,value:JSON.stringify(t[i].value)},null!=t[i].start&&(r[i].start=t[i].start,r[i].end=t[i].end);else e.pre||(e.plain=!0)}function hu(e,t){pu(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,mu(e),xu(e),ku(e),Cu(e);for(var n=0;n<Hs.length;n++)e=Hs[n](e,t)||e;return Eu(e),e}function pu(e){var t=po(e,"key");t&&(e.key=t)}function mu(e){var t=po(e,"ref");t&&(e.ref=t,e.refInFor=Ou(e))}function gu(e){var t;if(t=mo(e,"v-for")){var n=vu(t);n&&P(e,n)}}function vu(e){var t=e.match(Js);if(t){var n={};n.for=t[2].trim();var r=t[1].trim().replace(Qs,""),i=r.match(Zs);return i?(n.alias=r.replace(Zs,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r,n}}function yu(e){var t=mo(e,"v-if");if(t)e.if=t,wu(e,{exp:t,block:e});else{null!=mo(e,"v-else")&&(e.else=!0);var n=mo(e,"v-else-if");n&&(e.elseif=n)}}function bu(e,t){var n=qu(t.children);n&&n.if&&wu(n,{exp:e.elseif,block:e})}function qu(e){var t=e.length;while(t--){if(1===e[t].type)return e[t];e.pop()}}function wu(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function _u(e){var t=mo(e,"v-once");null!=t&&(e.once=!0)}function xu(e){var t;"template"===e.tag?(t=mo(e,"scope"),e.slotScope=t||mo(e,"slot-scope")):(t=mo(e,"slot-scope"))&&(e.slotScope=t);var n=po(e,"slot");if(n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||so(e,"slot",n,ho(e,"slot"))),"template"===e.tag){var r=go(e,iu);if(r){0;var i=Su(r),o=i.name,a=i.dynamic;e.slotTarget=o,e.slotTargetDynamic=a,e.slotScope=r.value||uu}}else{var s=go(e,iu);if(s){0;var u=e.scopedSlots||(e.scopedSlots={}),l=Su(s),c=l.name,f=l.dynamic,d=u[c]=lu("template",[],e);d.slotTarget=c,d.slotTargetDynamic=f,d.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=d,!0})),d.slotScope=s.value||uu,e.children=[],e.plain=!1}}}function Su(e){var t=e.name.replace(iu,"");return t||"#"!==e.name[0]&&(t="default"),eu.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function ku(e){"slot"===e.tag&&(e.slotName=po(e,"name"))}function Cu(e){var t;(t=po(e,"is"))&&(e.component=t),null!=mo(e,"inline-template")&&(e.inlineTemplate=!0)}function Eu(e){var t,n,r,i,o,a,s,u,l=e.attrsList;for(t=0,n=l.length;t<n;t++){if(r=i=l[t].name,o=l[t].value,Ks.test(r))if(e.hasBindings=!0,a=Au(r.replace(Ks,"")),a&&(r=r.replace(ru,"")),nu.test(r))r=r.replace(nu,""),o=no(o),u=eu.test(r),u&&(r=r.slice(1,-1)),a&&(a.prop&&!u&&(r=S(r),"innerHtml"===r&&(r="innerHTML")),a.camel&&!u&&(r=S(r)),a.sync&&(s=bo(o,"$event"),u?fo(e,'"update:"+('+r+")",s,null,!1,Us,l[t],!0):(fo(e,"update:"+S(r),s,null,!1,Us,l[t]),E(r)!==S(r)&&fo(e,"update:"+E(r),s,null,!1,Us,l[t])))),a&&a.prop||!e.component&&Xs(e.tag,e.attrsMap.type,r)?ao(e,r,o,l[t],u):so(e,r,o,l[t],u);else if(Ys.test(r))r=r.replace(Ys,""),u=eu.test(r),u&&(r=r.slice(1,-1)),fo(e,r,o,a,!1,Us,l[t],u);else{r=r.replace(Ks,"");var c=r.match(tu),f=c&&c[1];u=!1,f&&(r=r.slice(0,-(f.length+1)),eu.test(f)&&(f=f.slice(1,-1),u=!0)),lo(e,r,i,o,f,u,a,l[t])}else so(e,r,JSON.stringify(o),l[t]),!e.component&&"muted"===r&&Xs(e.tag,e.attrsMap.type,r)&&ao(e,r,"true",l[t])}}function Ou(e){var t=e;while(t){if(void 0!==t.for)return!0;t=t.parent}return!1}function Au(e){var t=e.match(ru);if(t){var n={};return t.forEach((function(e){n[e.slice(1)]=!0})),n}}function Du(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}function Tu(e){return"script"===e.tag||"style"===e.tag}function Pu(e){return"style"===e.tag||"script"===e.tag&&(!e.attrsMap.type||"text/javascript"===e.attrsMap.type)}var Mu=/^xmlns:NS\d+/,Nu=/^NS\d+:/;function Iu(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];Mu.test(r.name)||(r.name=r.name.replace(Nu,""),t.push(r))}return t}function Ru(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=po(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var i=mo(e,"v-if",!0),o=i?"&&("+i+")":"",a=null!=mo(e,"v-else",!0),s=mo(e,"v-else-if",!0),u=ju(e);gu(u),uo(u,"type","checkbox"),hu(u,t),u.processed=!0,u.if="("+n+")==='checkbox'"+o,wu(u,{exp:u.if,block:u});var l=ju(e);mo(l,"v-for",!0),uo(l,"type","radio"),hu(l,t),wu(u,{exp:"("+n+")==='radio'"+o,block:l});var c=ju(e);return mo(c,"v-for",!0),uo(c,":type",n),hu(c,t),wu(u,{exp:i,block:c}),a?u.else=!0:s&&(u.elseif=s),u}}}function ju(e){return lu(e.tag,e.attrsList.slice(),e.parent)}var Fu={preTransformNode:Ru},Lu=[hs,vs,Fu];function Bu(e,t){t.value&&ao(e,"textContent","_s("+t.value+")",t)}function Uu(e,t){t.value&&ao(e,"innerHTML","_s("+t.value+")",t)}var zu,Hu,$u={model:Ao,text:Bu,html:Uu},Vu={expectHTML:!0,modules:Lu,directives:$u,isPreTag:si,isUnaryTag:bs,mustUseProp:zr,canBeLeftOpenTag:qs,isReservedTag:ui,getTagNamespace:li,staticKeys:j(Lu)},Wu=_(Gu);function Xu(e,t){e&&(zu=Wu(t.staticKeys||""),Hu=t.isReservedTag||I,Yu(e),Ku(e,!1))}function Gu(e){return g("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}function Yu(e){if(e.static=Ju(e),1===e.type){if(!Hu(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,n=e.children.length;t<n;t++){var r=e.children[t];Yu(r),r.static||(e.static=!1)}if(e.ifConditions)for(var i=1,o=e.ifConditions.length;i<o;i++){var a=e.ifConditions[i].block;Yu(a),a.static||(e.static=!1)}}}function Ku(e,t){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=t),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,r=e.children.length;n<r;n++)Ku(e.children[n],t||!!e.for);if(e.ifConditions)for(var i=1,o=e.ifConditions.length;i<o;i++)Ku(e.ifConditions[i].block,t)}}function Ju(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||v(e.tag)||!Hu(e.tag)||Zu(e)||!Object.keys(e).every(zu))))}function Zu(e){while(e.parent){if(e=e.parent,"template"!==e.tag)return!1;if(e.for)return!0}return!1}var Qu=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,el=/\([^)]*?\);*$/,tl=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,nl={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},rl={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},il=function(e){return"if("+e+")return null;"},ol={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:il("$event.target !== $event.currentTarget"),ctrl:il("!$event.ctrlKey"),shift:il("!$event.shiftKey"),alt:il("!$event.altKey"),meta:il("!$event.metaKey"),left:il("'button' in $event && $event.button !== 0"),middle:il("'button' in $event && $event.button !== 1"),right:il("'button' in $event && $event.button !== 2")};function al(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=sl(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function sl(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return sl(e)})).join(",")+"]";var t=tl.test(e.value),n=Qu.test(e.value),r=tl.test(e.value.replace(el,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(ol[s])o+=ol[s],nl[s]&&a.push(s);else if("exact"===s){var u=e.modifiers;o+=il(["ctrl","shift","alt","meta"].filter((function(e){return!u[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else a.push(s);a.length&&(i+=ul(a)),o&&(i+=o);var l=t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value;return"function($event){"+i+l+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function ul(e){return"if(!$event.type.indexOf('key')&&"+e.map(ll).join("&&")+")return null;"}function ll(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=nl[e],r=rl[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}function cl(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}}function fl(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}}var dl={on:cl,bind:fl,cloak:N},hl=function(e){this.options=e,this.warn=e.warn||io,this.transforms=oo(e.modules,"transformCode"),this.dataGenFns=oo(e.modules,"genData"),this.directives=P(P({},dl),e.directives);var t=e.isReservedTag||I;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function pl(e,t){var n=new hl(t),r=e?ml(e,n):'_c("div")';return{render:"with(this){return "+r+"}",staticRenderFns:n.staticRenderFns}}function ml(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return gl(e,t);if(e.once&&!e.onceProcessed)return vl(e,t);if(e.for&&!e.forProcessed)return ql(e,t);if(e.if&&!e.ifProcessed)return yl(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return Nl(e,t);var n;if(e.component)n=Il(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=wl(e,t));var i=e.inlineTemplate?null:Ol(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o<t.transforms.length;o++)n=t.transforms[o](e,n);return n}return Ol(e,t)||"void 0"}function gl(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+ml(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function vl(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return yl(e,t);if(e.staticInFor){var n="",r=e.parent;while(r){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+ml(e,t)+","+t.onceId+++","+n+")":ml(e,t)}return gl(e,t)}function yl(e,t,n,r){return e.ifProcessed=!0,bl(e.ifConditions.slice(),t,n,r)}function bl(e,t,n,r){if(!e.length)return r||"_e()";var i=e.shift();return i.exp?"("+i.exp+")?"+o(i.block)+":"+bl(e,t,n,r):""+o(i.block);function o(e){return n?n(e,t):e.once?vl(e,t):ml(e,t)}}function ql(e,t,n,r){var i=e.for,o=e.alias,a=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||ml)(e,t)+"})"}function wl(e,t){var n="{",r=_l(e,t);r&&(n+=r+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var i=0;i<t.dataGenFns.length;i++)n+=t.dataGenFns[i](e);if(e.attrs&&(n+="attrs:"+Rl(e.attrs)+","),e.props&&(n+="domProps:"+Rl(e.props)+","),e.events&&(n+=al(e.events,!1)+","),e.nativeEvents&&(n+=al(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=Sl(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=xl(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Rl(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function _l(e,t){var n=e.directives;if(n){var r,i,o,a,s="directives:[",u=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var l=t.directives[o.name];l&&(a=!!l(e,o,t.warn)),a&&(u=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?",arg:"+(o.isDynamicArg?o.arg:'"'+o.arg+'"'):"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}return u?s.slice(0,-1)+"]":void 0}}function xl(e,t){var n=e.children[0];if(n&&1===n.type){var r=pl(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}function Sl(e,t,n){var r=e.for||Object.keys(t).some((function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||Cl(n)})),i=!!e.if;if(!r){var o=e.parent;while(o){if(o.slotScope&&o.slotScope!==uu||o.for){r=!0;break}o.if&&(i=!0),o=o.parent}}var a=Object.keys(t).map((function(e){return El(t[e],n)})).join(",");return"scopedSlots:_u(["+a+"]"+(r?",null,true":"")+(!r&&i?",null,false,"+kl(a):"")+")"}function kl(e){var t=5381,n=e.length;while(n)t=33*t^e.charCodeAt(--n);return t>>>0}function Cl(e){return 1===e.type&&("slot"===e.tag||e.children.some(Cl))}function El(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return yl(e,t,El,"null");if(e.for&&!e.forProcessed)return ql(e,t,El);var r=e.slotScope===uu?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Ol(e,t)||"undefined")+":undefined":Ol(e,t)||"undefined":ml(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function Ol(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||ml)(a,t)+s}var u=n?Al(o,t.maybeComponent):0,l=i||Tl;return"["+o.map((function(e){return l(e,t)})).join(",")+"]"+(u?","+u:"")}}function Al(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if(Dl(i)||i.ifConditions&&i.ifConditions.some((function(e){return Dl(e.block)}))){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some((function(e){return t(e.block)})))&&(n=1)}}return n}function Dl(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Tl(e,t){return 1===e.type?ml(e,t):3===e.type&&e.isComment?Ml(e):Pl(e)}function Pl(e){return"_v("+(2===e.type?e.expression:jl(JSON.stringify(e.text)))+")"}function Ml(e){return"_e("+JSON.stringify(e.text)+")"}function Nl(e,t){var n=e.slotName||'"default"',r=Ol(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?Rl((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:S(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];return!o&&!a||r||(i+=",null"),o&&(i+=","+o),a&&(i+=(o?"":",null")+","+a),i+")"}function Il(e,t,n){var r=t.inlineTemplate?null:Ol(t,n,!0);return"_c("+e+","+wl(t,n)+(r?","+r:"")+")"}function Rl(e){for(var t="",n="",r=0;r<e.length;r++){var i=e[r],o=jl(i.value);i.dynamic?n+=i.name+","+o+",":t+='"'+i.name+'":'+o+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function jl(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function Fl(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),N}}function Ll(e){var t=Object.create(null);return function(n,r,i){r=P({},r);r.warn;delete r.warn;var o=r.delimiters?String(r.delimiters)+n:n;if(t[o])return t[o];var a=e(n,r);var s={},u=[];return s.render=Fl(a.render,u),s.staticRenderFns=a.staticRenderFns.map((function(e){return Fl(e,u)})),t[o]=s}}function Bl(e){return function(t){function n(n,r){var i=Object.create(t),o=[],a=[],s=function(e,t,n){(n?a:o).push(e)};if(r)for(var u in r.modules&&(i.modules=(t.modules||[]).concat(r.modules)),r.directives&&(i.directives=P(Object.create(t.directives||null),r.directives)),r)"modules"!==u&&"directives"!==u&&(i[u]=r[u]);i.warn=s;var l=e(n.trim(),i);return l.errors=o,l.tips=a,l}return{compile:n,compileToFunctions:Ll(n)}}}var Ul,zl=Bl((function(e,t){var n=cu(e.trim(),t);!1!==t.optimize&&Xu(n,t);var r=pl(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}})),Hl=zl(Vu),$l=(Hl.compile,Hl.compileToFunctions);function Vl(e){return Ul=Ul||document.createElement("div"),Ul.innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Ul.innerHTML.indexOf(" ")>0}var Wl=!!Z&&Vl(!1),Xl=!!Z&&Vl(!0),Gl=_((function(e){var t=hi(e);return t&&t.innerHTML})),Yl=kr.prototype.$mount;function Kl(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}kr.prototype.$mount=function(e,t){if(e=e&&hi(e),e===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"===typeof r)"#"===r.charAt(0)&&(r=Gl(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=Kl(e));if(r){0;var i=$l(r,{outputSourceRange:!1,shouldDecodeNewlines:Wl,shouldDecodeNewlinesForHref:Xl,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Yl.call(this,e,t)},kr.compile=$l,t["a"]=kr}).call(this,n("c8ba"))},a029:function(e,t,n){var r=n("087d"),i=n("2dcb"),o=n("32f4"),a=n("d327"),s=Object.getOwnPropertySymbols,u=s?function(e){var t=[];while(e)r(t,o(e)),e=i(e);return t}:a;e.exports=u},a15f:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return v})),n.d(t,"g",(function(){return y})),n.d(t,"h",(function(){return b})),n.d(t,"i",(function(){return q}));var r=n("65e8");
+/*!
+ * tiptap-utils v1.13.0
+ * (c) 2021 überdosis GbR (limited liability)
+ * @license MIT
+ */function i(e,t){return t?e.createChecked(null,t):e.createAndFill()}function o(e){if(e.cached.tableNodeTypes)return e.cached.tableNodeTypes;const t={};return Object.keys(e.nodes).forEach(n=>{const r=e.nodes[n];r.spec.tableRole&&(t[r.spec.tableRole]=r)}),e.cached.tableNodeTypes=t,t}function a(e,t,n,r,a){const s=o(e),u=[],l=[];for(let o=0;o<n;o+=1){const e=i(s.cell,a);if(e&&l.push(e),r){const e=i(s.header_cell,a);e&&u.push(e)}}const c=[];for(let i=0;i<t;i+=1)c.push(s.row.createChecked(null,r&&0===i?u:l));return s.table.createChecked(null,c)}function s(e,t){return Array.isArray(e)&&e.indexOf(t.type)>-1||t.type===e}function u(e){const t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!e)throw new Error('Invalid "node" parameter');const n=[];return e.descendants((e,r)=>{if(n.push({node:e,pos:r}),!t)return!1}),n}function l(e,t,n){if(!e)throw new Error('Invalid "node" parameter');if(!t)throw new Error('Invalid "predicate" parameter');return u(e,n).filter(e=>t(e.node))}function c(e,t){return l(e,e=>e.isBlock,t)}function f(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function d(e){return t=>f(t.$from,e)}function h(e){return e instanceof r["c"]}function p(e){return function(t){if(h(t)){const{node:n}=t,{$from:r}=t;if(s(e,n))return{node:n,pos:r.pos,depth:r.depth}}}}function m(e,t){const{from:n,to:r}=e.selection;let i=[];e.doc.nodesBetween(n,r,e=>{i=[...i,...e.marks]});const o=i.find(e=>e.type.name===t.name);return o?o.attrs:{}}function g(e=null,t=null){if(!e||!t)return!1;const n=e.parent.childAfter(e.parentOffset);if(!n.node)return!1;const r=n.node.marks.find(e=>e.type===t);if(!r)return!1;let i=e.index(),o=e.start()+n.offset,a=i+1,s=o+n.node.nodeSize;while(i>0&&r.isInSet(e.parent.child(i-1).marks))i-=1,o-=e.parent.child(i).nodeSize;while(a<e.parent.childCount&&r.isInSet(e.parent.child(a).marks))s+=e.parent.child(a).nodeSize,a+=1;return{from:o,to:s}}function v(e,t){const{from:n,to:r}=e.selection;let i=[];e.doc.nodesBetween(n,r,e=>{i=[...i,e]});const o=i.reverse().find(e=>e.type.name===t.name);return o?o.attrs:{}}function y(e,t){const{from:n,$from:r,to:i,empty:o}=e.selection;return o?!!t.isInSet(e.storedMarks||r.marks()):!!e.doc.rangeHasMark(n,i,t)}function b({types:e,node:t}){return Array.isArray(e)&&e.includes(t.type)||t.type===e}function q(e,t,n={}){const r=e=>e.type===t,i=p(t)(e.selection)||d(r)(e.selection);return Object.keys(n).length&&i?i.node.hasMarkup(t,{...i.node.attrs,...n}):!!i}},a2be:function(e,t,n){var r=n("d612"),i=n("4284"),o=n("c584"),a=1,s=2;function u(e,t,n,u,l,c){var f=n&a,d=e.length,h=t.length;if(d!=h&&!(f&&h>d))return!1;var p=c.get(e),m=c.get(t);if(p&&m)return p==t&&m==e;var g=-1,v=!0,y=n&s?new r:void 0;c.set(e,t),c.set(t,e);while(++g<d){var b=e[g],q=t[g];if(u)var w=f?u(q,b,g,t,e,c):u(b,q,g,e,t,c);if(void 0!==w){if(w)continue;v=!1;break}if(y){if(!i(t,(function(e,t){if(!o(y,t)&&(b===e||l(b,e,n,u,c)))return y.push(t)}))){v=!1;break}}else if(b!==q&&!l(b,q,n,u,c)){v=!1;break}}return c["delete"](e),c["delete"](t),v}e.exports=u},a2db:function(e,t,n){var r=n("9e69"),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;function a(e){return o?Object(o.call(e)):{}}e.exports=a},a34a:function(e,t,n){e.exports=n("96cf")},a454:function(e,t,n){var r=n("72f0"),i=n("3b4a"),o=n("cd9d"),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},a4b7:function(e,t,n){var r=n("c8d5");function i(e){var t=r(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}e.exports=i},a524:function(e,t,n){var r=n("4245");function i(e){return r(this,e).has(e)}e.exports=i},a735:function(e,t){function n(e){return e instanceof Date}e.exports=n},a753:function(e,t,n){},a994:function(e,t,n){var r=n("7d1f"),i=n("32f4"),o=n("ec69");function a(e){return r(e,o,i)}e.exports=a},a9de:function(e,t,n){"use strict";n.d(t,"a",(function(){return r["b"]})),n.d(t,"b",(function(){return r["c"]})),n.d(t,"k",(function(){return r["e"]})),n.d(t,"r",(function(){return r["f"]})),n.d(t,"d",(function(){return l})),n.d(t,"l",(function(){return d})),n.d(t,"m",(function(){return u})),n.d(t,"o",(function(){return h["c"]})),n.d(t,"u",(function(){return h["e"]})),n.d(t,"c",(function(){return g})),n.d(t,"e",(function(){return y})),n.d(t,"f",(function(){return w})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return q})),n.d(t,"i",(function(){return _})),n.d(t,"j",(function(){return x})),n.d(t,"n",(function(){return k})),n.d(t,"p",(function(){return C})),n.d(t,"q",(function(){return O})),n.d(t,"s",(function(){return A})),n.d(t,"t",(function(){return D}));var r=n("0010"),i=n("2eae"),o=n("304a");function a(e,t){return function(n,r){var a=n.selection,u=a.$from,l=a.$to,c=u.blockRange(l),f=!1,d=c;if(!c)return!1;if(c.depth>=2&&u.node(c.depth-1).type.compatibleContent(e)&&0==c.startIndex){if(0==u.index(c.depth-1))return!1;var h=n.doc.resolve(c.start-2);d=new o["g"](h,h,c.depth),c.endIndex<c.parent.childCount&&(c=new o["g"](u,n.doc.resolve(l.end(c.depth)),c.depth)),f=!0}var p=Object(i["i"])(d,e,t,c);return!!p&&(r&&r(s(n.tr,c,p,f,e).scrollIntoView()),!0)}}function s(e,t,n,r,a){for(var s=o["c"].empty,u=n.length-1;u>=0;u--)s=o["c"].from(n[u].type.create(n[u].attrs,s));e.step(new i["b"](t.start-(r?2:0),t.end,t.start,t.end,new o["j"](s,0,0),n.length,!0));for(var l=0,c=0;c<n.length;c++)n[c].type==a&&(l=c+1);for(var f=n.length-l,d=t.start+n.length-(r?2:0),h=t.parent,p=t.startIndex,m=t.endIndex,g=!0;p<m;p++,g=!1)!g&&Object(i["g"])(e.doc,d,f)&&(e.split(d,f),d+=2*f),d+=h.child(p).nodeSize;return e}function u(e){return function(t,n){var r=t.selection,a=r.$from,s=r.$to,u=r.node;if(u&&u.isBlock||a.depth<2||!a.sameParent(s))return!1;var l=a.node(-1);if(l.type!=e)return!1;if(0==a.parent.content.size&&a.node(-1).childCount==a.indexAfter(-1)){if(2==a.depth||a.node(-3).type!=e||a.index(-2)!=a.node(-2).childCount-1)return!1;if(n){for(var c=o["c"].empty,f=a.index(-1)?1:a.index(-2)?2:3,d=a.depth-f;d>=a.depth-3;d--)c=o["c"].from(a.node(d).copy(c));var h=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3;c=c.append(o["c"].from(e.createAndFill()));var p=a.before(a.depth-(f-1)),m=t.tr.replace(p,a.after(-h),new o["j"](c,4-f,0)),g=-1;m.doc.nodesBetween(p,m.doc.content.size,(function(e,t){if(g>-1)return!1;e.isTextblock&&0==e.content.size&&(g=t+1)})),g>-1&&m.setSelection(t.selection.constructor.near(m.doc.resolve(g))),n(m.scrollIntoView())}return!0}var v=s.pos==a.end()?l.contentMatchAt(0).defaultType:null,y=t.tr.delete(a.pos,s.pos),b=v&&[null,{type:v}];return!!Object(i["g"])(y.doc,a.pos,2,b)&&(n&&n(y.split(a.pos,2,b).scrollIntoView()),!0)}}function l(e){return function(t,n){var r=t.selection,i=r.$from,o=r.$to,a=i.blockRange(o,(function(t){return t.childCount&&t.firstChild.type==e}));return!!a&&(!n||(i.node(a.depth-1).type==e?c(t,n,e,a):f(t,n,a)))}}function c(e,t,n,r){var a=e.tr,s=r.end,u=r.$to.end(r.depth);return s<u&&(a.step(new i["b"](s-1,u,s,u,new o["j"](o["c"].from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new o["g"](a.doc.resolve(r.$from.pos),a.doc.resolve(u),r.depth)),t(a.lift(r,Object(i["k"])(r)).scrollIntoView()),!0}function f(e,t,n){for(var r=e.tr,a=n.parent,s=n.end,u=n.endIndex-1,l=n.startIndex;u>l;u--)s-=a.child(u).nodeSize,r.delete(s-1,s+1);var c=r.doc.resolve(n.start),f=c.nodeAfter;if(r.mapping.map(n.end)!=n.start+c.nodeAfter.nodeSize)return!1;var d=0==n.startIndex,h=n.endIndex==a.childCount,p=c.node(-1),m=c.index(-1);if(!p.canReplace(m+(d?0:1),m+1,f.content.append(h?o["c"].empty:o["c"].from(a))))return!1;var g=c.pos,v=g+f.nodeSize;return r.step(new i["b"](g-(d?1:0),v+(h?1:0),g+1,v-1,new o["j"]((d?o["c"].empty:o["c"].from(a.copy(o["c"].empty))).append(h?o["c"].empty:o["c"].from(a.copy(o["c"].empty))),d?0:1,h?0:1),d?0:1)),t(r.scrollIntoView()),!0}function d(e){return function(t,n){var r=t.selection,a=r.$from,s=r.$to,u=a.blockRange(s,(function(t){return t.childCount&&t.firstChild.type==e}));if(!u)return!1;var l=u.startIndex;if(0==l)return!1;var c=u.parent,f=c.child(l-1);if(f.type!=e)return!1;if(n){var d=f.lastChild&&f.lastChild.type==c.type,h=o["c"].from(d?e.create():null),p=new o["j"](o["c"].from(e.create(null,o["c"].from(c.type.create(null,h)))),d?3:1,0),m=u.start,g=u.end;n(t.tr.step(new i["b"](m-(d?3:1),g,m,g,p,1,!0)).scrollIntoView())}return!0}}var h=n("f95e"),p=n("65e8"),m=n("a15f");
+/*!
+ * tiptap-commands v1.17.0
+ * (c) 2021 überdosis GbR (limited liability)
+ * @license MIT
+ */
+function g(e=""){return(t,n)=>{const{$from:r}=t.selection,{pos:i}=r.pos;return n(t.tr.insertText(e,i)),!0}}function v(e,t,n){let r=[];return n.doc.nodesBetween(e,t,(e,t)=>{r=[...r,...e.marks.map(n=>({start:t,end:t+e.nodeSize,mark:n}))]}),r}function y(e,t,n){return new h["a"](e,(e,r,i,o)=>{const a=n instanceof Function?n(r):n,{tr:s}=e,u=r.length-1;let l=o,c=i;if(r[u]){const n=i+r[0].indexOf(r[u-1]),a=n+r[u-1].length-1,f=n+r[u-1].lastIndexOf(r[u]),d=f+r[u].length,h=v(i,o,e).filter(e=>{const{excluded:n}=e.mark.type;return n.find(e=>e.name===t.name)}).filter(e=>e.end>n);if(h.length)return!1;d<a&&s.delete(d,a),f>n&&s.delete(n,f),c=n,l=c+r[u].length}return s.addMark(c,l,t.create(a)),s.removeStoredMark(t),s})}function b(e,t,n){return new h["a"](e,(e,r,i,o)=>{const a=n instanceof Function?n(r):n,{tr:s}=e;return r[0]&&s.replaceWith(i-1,o,t.create(a)),s})}function q(e,t,n){const r=i=>{const a=[];return i.forEach(i=>{if(i.isText){const{text:r}=i;let o,s=0;do{if(o=e.exec(r),o){const e=o.index,r=e+o[0].length,u=n instanceof Function?n(o[0]):n;e>0&&a.push(i.cut(s,e)),a.push(i.cut(e,r).mark(t.create(u).addToSet(i.marks))),s=r}}while(o);s<r.length&&a.push(i.cut(s))}else a.push(i.copy(r(i.content)))}),o["c"].fromArray(a)};return new p["d"]({props:{transformPasted:e=>new o["j"](r(e.content),e.openStart,e.openEnd)}})}function w(e,t,n){const r=(i,a)=>{const s=[];return i.forEach(i=>{if(i.isText){const{text:r,marks:o}=i;let u,l=0;const c=!!o.filter(e=>"link"===e.type.name)[0];while(!c&&null!==(u=e.exec(r)))if(a&&a.type.allowsMarkType(t)&&u[1]){const e=u.index,r=e+u[0].length,o=e+u[0].indexOf(u[1]),a=o+u[1].length,c=n instanceof Function?n(u):n;e>0&&s.push(i.cut(l,e)),s.push(i.cut(o,a).mark(t.create(c).addToSet(i.marks))),l=r}l<r.length&&s.push(i.cut(l))}else s.push(i.copy(r(i.content,i)))}),o["c"].fromArray(s)};return new p["d"]({props:{transformPasted:e=>new o["j"](r(e.content),e.openStart,e.openEnd)}})}function _(e){return(t,n)=>{const{tr:r,selection:i}=t;let{from:o,to:a}=i;const{$from:s,empty:u}=i;if(u){const t=Object(m["e"])(s,e);o=t.from,a=t.to}return r.removeMark(o,a,e),n(r)}}function x(e=null,t,n={},r=o["c"].empty){return(i,o)=>{const{$from:a,$to:s}=i.selection,u=a.index(),l=e?e.from:a.pos,c=e?e.to:s.pos;return!!a.parent.canReplaceWith(u,u,t)&&(o&&o(i.tr.replaceWith(l,c,t.create(n,r))),!0)}}function S(e,t,n=1,r){const i=e.resolve(t),o=i.depth-n,a=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let l=i.depth-1,c=n-2;l>o;l--,c--){const e=i.node(l),t=i.index(l);if(e.type.spec.isolating)return!1;let n=e.content.cutByIndex(t,e.childCount);const o=r&&r[c]||e;if(o!=e&&(n=n.replaceChild(0,o.type.create(o.attrs))),!e.canReplace(t+1,e.childCount))return!1}const s=i.indexAfter(o),u=r&&r[0];return i.node(o).canReplaceWith(s,s,u?u.type:i.node(o+1).type)}function k(e){return function(t,n){const{$from:r,$to:i,node:a}=t.selection;if(a&&a.isBlock||r.depth<2||!r.sameParent(i))return!1;const s=r.node(-1);if(s.type!=e)return!1;if(0==r.parent.content.size){if(2==r.depth||r.node(-3).type!=e||r.index(-2)!=r.node(-2).childCount-1)return!1;if(n){let i=o["c"].empty;const a=r.index(-1)>0;for(let e=r.depth-(a?1:2);e>=r.depth-3;e--)i=o["c"].from(r.node(e).copy(i));i=i.append(o["c"].from(e.createAndFill()));const s=t.tr.replace(r.before(a?null:-1),r.after(-3),new o["j"](i,a?3:2,2));s.setSelection(t.selection.constructor.near(s.doc.resolve(r.pos+(a?3:2)))),n(s.scrollIntoView())}return!0}const u=i.pos==r.end()?s.contentMatchAt(r.indexAfter(-1)).defaultType:null,l=t.tr.delete(r.pos,i.pos);let c=u&&[{type:e},{type:u}];return c||(c=[{type:e},null]),!!S(l.doc,r.pos,2,c)&&(n&&n(l.split(r.pos,2,c).scrollIntoView()),!0)}}function C(e,t,n={}){return(i,o,a)=>{const s=Object(m["i"])(i,e,n);return s?Object(r["e"])(t)(i,o,a):Object(r["e"])(e,n)(i,o,a)}}function E(e,t){return e.type===t.nodes.bullet_list||e.type===t.nodes.ordered_list||e.type===t.nodes.todo_list}function O(e,t){return(n,r,i)=>{const{schema:o,selection:s}=n,{$from:u,$to:c}=s,f=u.blockRange(c);if(!f)return!1;const d=Object(m["c"])(e=>E(e,o))(s);if(f.depth>=1&&d&&f.depth-d.depth<=1){if(d.node.type===e)return l(t)(n,r,i);if(E(d.node,o)&&e.validContent(d.node.content)){const{tr:t}=n;return t.setNodeMarkup(d.pos,e),r&&r(t),!1}}return a(e)(n,r,i)}}function A(e,t={}){return(n,i,o)=>{const a=Object(m["i"])(n,e,t);return a?Object(r["d"])(n,i):Object(r["g"])(e,t)(n,i,o)}}function D(e,t){return(n,r)=>{const{tr:i,selection:o,doc:a}=n,{ranges:s,empty:u}=o;if(u){const{from:n,to:r}=Object(m["e"])(o.$from,e);a.rangeHasMark(n,r,e)&&i.removeMark(n,r,e),i.addMark(n,r,e.create(t))}else s.forEach(n=>{const{$to:r,$from:o}=n;a.rangeHasMark(o.pos,r.pos,e)&&i.removeMark(o.pos,r.pos,e),i.addMark(o.pos,r.pos,e.create(t))});return r(i)}}},aa47:function(e,t,n){"use strict";
+/**!
+ * Sortable 1.10.2
+ * @author RubaXa <trash@rubaxa.org>
+ * @author owenm <owen23355@gmail.com>
+ * @license MIT
+ */
+function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function s(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function u(e,t){if(null==e)return{};var n,r,i=s(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e){return c(e)||f(e)||d()}function c(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function f(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance")}n.r(t),n.d(t,"MultiDrag",(function(){return Ft})),n.d(t,"Sortable",(function(){return Ze})),n.d(t,"Swap",(function(){return Ct}));var h="1.10.2";function p(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var m=p(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),g=p(/Edge/i),v=p(/firefox/i),y=p(/safari/i)&&!p(/chrome/i)&&!p(/android/i),b=p(/iP(ad|od|hone)/i),q=p(/chrome/i)&&p(/android/i),w={capture:!1,passive:!1};function _(e,t,n){e.addEventListener(t,n,!m&&w)}function x(e,t,n){e.removeEventListener(t,n,!m&&w)}function S(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function k(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function C(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&S(e,t):S(e,t))||r&&e===n)return e;if(e===n)break}while(e=k(e))}return null}var E,O=/\s+/g;function A(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(O," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(O," ")}}function D(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"===typeof n?"":"px")}}function T(e,t){var n="";if("string"===typeof e)n=e;else do{var r=D(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function P(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function M(){var e=document.scrollingElement;return e||document.documentElement}function N(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var o,a,s,u,l,c,f;if(e!==window&&e!==M()?(o=e.getBoundingClientRect(),a=o.top,s=o.left,u=o.bottom,l=o.right,c=o.height,f=o.width):(a=0,s=0,u=window.innerHeight,l=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!m))do{if(i&&i.getBoundingClientRect&&("none"!==D(i,"transform")||n&&"static"!==D(i,"position"))){var d=i.getBoundingClientRect();a-=d.top+parseInt(D(i,"border-top-width")),s-=d.left+parseInt(D(i,"border-left-width")),u=a+o.height,l=s+o.width;break}}while(i=i.parentNode);if(r&&e!==window){var h=T(i||e),p=h&&h.a,g=h&&h.d;h&&(a/=g,s/=p,f/=p,c/=g,u=a+c,l=s+f)}return{top:a,left:s,bottom:u,right:l,width:f,height:c}}}function I(e,t,n){var r=U(e,!0),i=N(e)[t];while(r){var o=N(r)[n],a=void 0;if(a="top"===n||"left"===n?i>=o:i<=o,!a)return r;if(r===M())break;r=U(r,!1)}return!1}function R(e,t,n){var r=0,i=0,o=e.children;while(i<o.length){if("none"!==o[i].style.display&&o[i]!==Ze.ghost&&o[i]!==Ze.dragged&&C(o[i],n.draggable,e,!1)){if(r===t)return o[i];r++}i++}return null}function j(e,t){var n=e.lastElementChild;while(n&&(n===Ze.ghost||"none"===D(n,"display")||t&&!S(n,t)))n=n.previousElementSibling;return n||null}function F(e,t){var n=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===Ze.clone||t&&!S(e,t)||n++;return n}function L(e){var t=0,n=0,r=M();if(e)do{var i=T(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function B(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}function U(e,t){if(!e||!e.getBoundingClientRect)return M();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=D(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return M();if(r||t)return n;r=!0}}}while(n=n.parentNode);return M()}function z(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function H(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function $(e,t){return function(){if(!E){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),E=setTimeout((function(){E=void 0}),t)}}}function V(){clearTimeout(E),E=void 0}function W(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function X(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function G(e,t){D(e,"position","absolute"),D(e,"top",t.top),D(e,"left",t.left),D(e,"width",t.width),D(e,"height",t.height)}function Y(e){D(e,"position",""),D(e,"top",""),D(e,"left",""),D(e,"width",""),D(e,"height","")}var K="Sortable"+(new Date).getTime();function J(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==D(e,"display")&&e!==Ze.ghost){t.push({target:e,rect:N(e)});var n=a({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=T(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(B(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var i=!1,o=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,s=N(n),u=n.prevFromRect,l=n.prevToRect,c=e.rect,f=T(n,!0);f&&(s.top-=f.f,s.left-=f.e),n.toRect=s,n.thisAnimationDuration&&H(u,s)&&!H(a,s)&&(c.top-s.top)/(c.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(t=Q(c,u,l,r.options)),H(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,c,s,t)),t&&(i=!0,o=Math.max(o,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),i?e=setTimeout((function(){"function"===typeof n&&n()}),o):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){D(e,"transition",""),D(e,"transform","");var i=T(this.el),o=i&&i.a,a=i&&i.d,s=(t.left-n.left)/(o||1),u=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!u,D(e,"transform","translate3d("+s+"px,"+u+"px,0)"),Z(e),D(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),D(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){D(e,"transition",""),D(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}function Z(e){return e.offsetWidth}function Q(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var ee=[],te={initializeByDefault:!0},ne={mount:function(e){for(var t in te)te.hasOwnProperty(t)&&!(t in e)&&(e[t]=te[t]);ee.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";ee.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](a({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](a({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var i in ee.forEach((function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,o(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);"undefined"!==typeof a&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return ee.forEach((function(r){"function"===typeof r.eventProperties&&o(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return ee.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"===typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))})),r}};function re(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,s=e.toEl,u=e.fromEl,l=e.oldIndex,c=e.newIndex,f=e.oldDraggableIndex,d=e.newDraggableIndex,h=e.originalEvent,p=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[K],t){var y,b=t.options,q="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||m||g?(y=document.createEvent("Event"),y.initEvent(r,!0,!0)):y=new CustomEvent(r,{bubbles:!0,cancelable:!0}),y.to=s||n,y.from=u||n,y.item=i||n,y.clone=o,y.oldIndex=l,y.newIndex=c,y.oldDraggableIndex=f,y.newDraggableIndex=d,y.originalEvent=h,y.pullMode=p?p.lastPutMode:void 0;var w=a({},v,ne.getEventProperties(r,t));for(var _ in w)y[_]=w[_];n&&n.dispatchEvent(y),b[q]&&b[q].call(t,y)}}var ie=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=u(n,["evt"]);ne.pluginEvent.bind(Ze)(e,t,a({dragEl:ae,parentEl:se,ghostEl:ue,rootEl:le,nextEl:ce,lastDownEl:fe,cloneEl:de,cloneHidden:he,dragStarted:Ce,putSortable:be,activeSortable:Ze.active,originalEvent:r,oldIndex:pe,oldDraggableIndex:ge,newIndex:me,newDraggableIndex:ve,hideGhostForTarget:Ge,unhideGhostForTarget:Ye,cloneNowHidden:function(){he=!0},cloneNowShown:function(){he=!1},dispatchSortableEvent:function(e){oe({sortable:t,name:e,originalEvent:r})}},i))};function oe(e){re(a({putSortable:be,cloneEl:de,targetEl:ae,rootEl:le,oldIndex:pe,oldDraggableIndex:ge,newIndex:me,newDraggableIndex:ve},e))}var ae,se,ue,le,ce,fe,de,he,pe,me,ge,ve,ye,be,qe,we,_e,xe,Se,ke,Ce,Ee,Oe,Ae,De,Te=!1,Pe=!1,Me=[],Ne=!1,Ie=!1,Re=[],je=!1,Fe=[],Le="undefined"!==typeof document,Be=b,Ue=g||m?"cssFloat":"float",ze=Le&&!q&&!b&&"draggable"in document.createElement("div"),He=function(){if(Le){if(m)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),$e=function(e,t){var n=D(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=R(e,0,t),o=R(e,1,t),a=i&&D(i),s=o&&D(o),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+N(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+N(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a["float"]&&"none"!==a["float"]){var c="left"===a["float"]?"left":"right";return!o||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||u>=r&&"none"===n[Ue]||o&&"none"===n[Ue]&&u+l>r)?"vertical":"horizontal"},Ve=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,u=n?t.width:t.height;return r===a||i===s||r+o/2===a+u/2},We=function(e,t){var n;return Me.some((function(r){if(!j(r)){var i=N(r),o=r[K].options.emptyInsertThreshold,a=e>=i.left-o&&e<=i.right+o,s=t>=i.top-o&&t<=i.bottom+o;return o&&a&&s?n=r:void 0}})),n},Xe=function(e){function t(e,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(r,i,o,a),n)(r,i,o,a);var u=(n?r:i).options.group.name;return!0===e||"string"===typeof e&&e===u||e.join&&e.indexOf(u)>-1}}var n={},i=e.group;i&&"object"==r(i)||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},Ge=function(){!He&&ue&&D(ue,"display","none")},Ye=function(){!He&&ue&&D(ue,"display","")};Le&&document.addEventListener("click",(function(e){if(Pe)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Pe=!1,!1}),!0);var Ke=function(e){if(ae){e=e.touches?e.touches[0]:e;var t=We(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[K]._onDragOver(n)}}},Je=function(e){ae&&ae.parentNode[K]._isOutsideThisEl(e.target)};function Ze(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=o({},t),e[K]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return $e(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ze.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in ne.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in Xe(t),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&ze,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?_(e,"pointerdown",this._onTapStart):(_(e,"mousedown",this._onTapStart),_(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(_(e,"dragover",this),_(e,"dragenter",this)),Me.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),o(this,J())}function Qe(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function et(e,t,n,r,i,o,a,s){var u,l,c=e[K],f=c.options.onMove;return!window.CustomEvent||m||g?(u=document.createEvent("Event"),u.initEvent("move",!0,!0)):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=t,u.from=e,u.dragged=n,u.draggedRect=r,u.related=i||t,u.relatedRect=o||N(t),u.willInsertAfter=s,u.originalEvent=a,e.dispatchEvent(u),f&&(l=f.call(c,u,a)),l}function tt(e){e.draggable=!1}function nt(){je=!1}function rt(e,t,n){var r=N(j(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function it(e,t,n,r,i,o,a,s){var u=r?e.clientY:e.clientX,l=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a)if(s&&Ae<l*i){if(!Ne&&(1===Oe?u>c+l*o/2:u<f-l*o/2)&&(Ne=!0),Ne)d=!0;else if(1===Oe?u<c+Ae:u>f-Ae)return-Oe}else if(u>c+l*(1-i)/2&&u<f-l*(1-i)/2)return ot(t);return d=d||a,d&&(u<c+l*o/2||u>f-l*o/2)?u>c+l/2?1:-1:0}function ot(e){return F(ae)<F(e)?1:-1}function at(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;while(n--)r+=t.charCodeAt(n);return r.toString(36)}function st(e){Fe.length=0;var t=e.getElementsByTagName("input"),n=t.length;while(n--){var r=t[n];r.checked&&Fe.push(r)}}function ut(e){return setTimeout(e,0)}function lt(e){return clearTimeout(e)}Ze.prototype={constructor:Ze,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ee=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,ae):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(st(n),!ae&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||r.disabled)&&!u.isContentEditable&&(s=C(s,r.draggable,n,!1),(!s||!s.animated)&&fe!==s)){if(pe=F(s),ge=F(s,r.draggable),"function"===typeof l){if(l.call(this,e,s,this))return oe({sortable:t,rootEl:u,name:"filter",targetEl:s,toEl:n,fromEl:n}),ie("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(l&&(l=l.split(",").some((function(r){if(r=C(u,r.trim(),n,!1),r)return oe({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),ie("filter",t,{evt:e}),!0})),l))return void(i&&e.cancelable&&e.preventDefault());r.handle&&!C(u,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!ae&&n.parentNode===o){var u=N(n);if(le=o,ae=n,se=ae.parentNode,ce=ae.nextSibling,fe=n,ye=a.group,Ze.dragged=ae,qe={target:ae,clientX:(t||e).clientX,clientY:(t||e).clientY},Se=qe.clientX-u.left,ke=qe.clientY-u.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ae.style["will-change"]="all",r=function(){ie("delayEnded",i,{evt:e}),Ze.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!v&&i.nativeDraggable&&(ae.draggable=!0),i._triggerDragStart(e,t),oe({sortable:i,name:"choose",originalEvent:e}),A(ae,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){P(ae,e.trim(),tt)})),_(s,"dragover",Ke),_(s,"mousemove",Ke),_(s,"touchmove",Ke),_(s,"mouseup",i._onDrop),_(s,"touchend",i._onDrop),_(s,"touchcancel",i._onDrop),v&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ae.draggable=!0),ie("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(g||m))r();else{if(Ze.eventCanceled)return void this._onDrop();_(s,"mouseup",i._disableDelayedDrag),_(s,"touchend",i._disableDelayedDrag),_(s,"touchcancel",i._disableDelayedDrag),_(s,"mousemove",i._delayedDragTouchMoveHandler),_(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&_(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ae&&tt(ae),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;x(e,"mouseup",this._disableDelayedDrag),x(e,"touchend",this._disableDelayedDrag),x(e,"touchcancel",this._disableDelayedDrag),x(e,"mousemove",this._delayedDragTouchMoveHandler),x(e,"touchmove",this._delayedDragTouchMoveHandler),x(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?_(document,"pointermove",this._onTouchMove):_(document,t?"touchmove":"mousemove",this._onTouchMove):(_(ae,"dragend",this),_(le,"dragstart",this._onDragStart));try{document.selection?ut((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Te=!1,le&&ae){ie("dragStarted",this,{evt:t}),this.nativeDraggable&&_(document,"dragover",Je);var n=this.options;!e&&A(ae,n.dragClass,!1),A(ae,n.ghostClass,!0),Ze.active=this,e&&this._appendGhost(),oe({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(we){this._lastX=we.clientX,this._lastY=we.clientY,Ge();var e=document.elementFromPoint(we.clientX,we.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(we.clientX,we.clientY),e===t)break;t=e}if(ae.parentNode[K]._isOutsideThisEl(e),t)do{if(t[K]){var n=void 0;if(n=t[K]._onDragOver({clientX:we.clientX,clientY:we.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Ye()}},_onTouchMove:function(e){if(qe){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=ue&&T(ue,!0),a=ue&&o&&o.a,s=ue&&o&&o.d,u=Be&&De&&L(De),l=(i.clientX-qe.clientX+r.x)/(a||1)+(u?u[0]-Re[0]:0)/(a||1),c=(i.clientY-qe.clientY+r.y)/(s||1)+(u?u[1]-Re[1]:0)/(s||1);if(!Ze.active&&!Te){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(ue){o?(o.e+=l-(_e||0),o.f+=c-(xe||0)):o={a:1,b:0,c:0,d:1,e:l,f:c};var f="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");D(ue,"webkitTransform",f),D(ue,"mozTransform",f),D(ue,"msTransform",f),D(ue,"transform",f),_e=l,xe=c,we=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!ue){var e=this.options.fallbackOnBody?document.body:le,t=N(ae,!0,Be,!0,e),n=this.options;if(Be){De=e;while("static"===D(De,"position")&&"none"===D(De,"transform")&&De!==document)De=De.parentNode;De!==document.body&&De!==document.documentElement?(De===document&&(De=M()),t.top+=De.scrollTop,t.left+=De.scrollLeft):De=M(),Re=L(De)}ue=ae.cloneNode(!0),A(ue,n.ghostClass,!1),A(ue,n.fallbackClass,!0),A(ue,n.dragClass,!0),D(ue,"transition",""),D(ue,"transform",""),D(ue,"box-sizing","border-box"),D(ue,"margin",0),D(ue,"top",t.top),D(ue,"left",t.left),D(ue,"width",t.width),D(ue,"height",t.height),D(ue,"opacity","0.8"),D(ue,"position",Be?"absolute":"fixed"),D(ue,"zIndex","100000"),D(ue,"pointerEvents","none"),Ze.ghost=ue,e.appendChild(ue),D(ue,"transform-origin",Se/parseInt(ue.style.width)*100+"% "+ke/parseInt(ue.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;ie("dragStart",this,{evt:e}),Ze.eventCanceled?this._onDrop():(ie("setupClone",this),Ze.eventCanceled||(de=X(ae),de.draggable=!1,de.style["will-change"]="",this._hideClone(),A(de,this.options.chosenClass,!1),Ze.clone=de),n.cloneId=ut((function(){ie("clone",n),Ze.eventCanceled||(n.options.removeCloneOnHide||le.insertBefore(de,ae),n._hideClone(),oe({sortable:n,name:"clone"}))})),!t&&A(ae,i.dragClass,!0),t?(Pe=!0,n._loopId=setInterval(n._emulateDragOver,50)):(x(document,"mouseup",n._onDrop),x(document,"touchend",n._onDrop),x(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,ae)),_(document,"drop",n),D(ae,"transform","translateZ(0)")),Te=!0,n._dragStartId=ut(n._dragStarted.bind(n,t,e)),_(document,"selectstart",n),Ce=!0,y&&D(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,o=this.el,s=e.target,u=this.options,l=u.group,c=Ze.active,f=ye===l,d=u.sort,h=be||c,p=this,m=!1;if(!je){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=C(s,u.draggable,o,!0),P("dragOver"),Ze.eventCanceled)return m;if(ae.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return R(!1);if(Pe=!1,c&&!u.disabled&&(f?d||(r=!le.contains(ae)):be===this||(this.lastPutMode=ye.checkPull(this,c,ae,e))&&l.checkPut(this,c,ae,e))){if(i="vertical"===this._getDirection(e,s),t=N(ae),P("dragOverValid"),Ze.eventCanceled)return m;if(r)return se=le,M(),this._hideClone(),P("revert"),Ze.eventCanceled||(ce?le.insertBefore(ae,ce):le.appendChild(ae)),R(!0);var g=j(o,u.draggable);if(!g||rt(e,i,this)&&!g.animated){if(g===ae)return R(!1);if(g&&o===e.target&&(s=g),s&&(n=N(s)),!1!==et(le,o,ae,t,s,n,e,!!s))return M(),o.appendChild(ae),se=o,L(),R(!0)}else if(s.parentNode===o){n=N(s);var v,y,b=0,q=ae.parentNode!==o,w=!Ve(ae.animated&&ae.toRect||t,s.animated&&s.toRect||n,i),_=i?"top":"left",x=I(s,"top","top")||I(ae,"top","top"),S=x?x.scrollTop:void 0;if(Ee!==s&&(v=n[_],Ne=!1,Ie=!w&&u.invertSwap||q),b=it(e,s,n,i,w?1:u.swapThreshold,null==u.invertedSwapThreshold?u.swapThreshold:u.invertedSwapThreshold,Ie,Ee===s),0!==b){var k=F(ae);do{k-=b,y=se.children[k]}while(y&&("none"===D(y,"display")||y===ue))}if(0===b||y===s)return R(!1);Ee=s,Oe=b;var E=s.nextElementSibling,O=!1;O=1===b;var T=et(le,o,ae,t,s,n,e,O);if(!1!==T)return 1!==T&&-1!==T||(O=1===T),je=!0,setTimeout(nt,30),M(),O&&!E?o.appendChild(ae):s.parentNode.insertBefore(ae,O?E:s),x&&W(x,0,S-x.scrollTop),se=ae.parentNode,void 0===v||Ie||(Ae=Math.abs(v-N(s)[_])),L(),R(!0)}if(o.contains(ae))return R(!1)}return!1}function P(u,l){ie(u,p,a({evt:e,isOwner:f,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:h,target:s,completed:R,onMove:function(n,r){return et(le,o,ae,t,n,N(n),e,r)},changed:L},l))}function M(){P("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function R(t){return P("dragOverCompleted",{insertion:t}),t&&(f?c._hideClone():c._showClone(p),p!==h&&(A(ae,be?be.options.ghostClass:c.options.ghostClass,!1),A(ae,u.ghostClass,!0)),be!==p&&p!==Ze.active?be=p:p===Ze.active&&be&&(be=null),h===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){P("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(s===ae&&!ae.animated||s===o&&!s.animated)&&(Ee=null),u.dragoverBubble||e.rootEl||s===document||(ae.parentNode[K]._isOutsideThisEl(e.target),!t&&Ke(e)),!u.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function L(){me=F(ae),ve=F(ae,u.draggable),oe({sortable:p,name:"change",toEl:o,newIndex:me,newDraggableIndex:ve,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){x(document,"mousemove",this._onTouchMove),x(document,"touchmove",this._onTouchMove),x(document,"pointermove",this._onTouchMove),x(document,"dragover",Ke),x(document,"mousemove",Ke),x(document,"touchmove",Ke)},_offUpEvents:function(){var e=this.el.ownerDocument;x(e,"mouseup",this._onDrop),x(e,"touchend",this._onDrop),x(e,"pointerup",this._onDrop),x(e,"touchcancel",this._onDrop),x(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;me=F(ae),ve=F(ae,n.draggable),ie("drop",this,{evt:e}),se=ae&&ae.parentNode,me=F(ae),ve=F(ae,n.draggable),Ze.eventCanceled||(Te=!1,Ie=!1,Ne=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),lt(this.cloneId),lt(this._dragStartId),this.nativeDraggable&&(x(document,"drop",this),x(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),y&&D(document.body,"user-select",""),D(ae,"transform",""),e&&(Ce&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),ue&&ue.parentNode&&ue.parentNode.removeChild(ue),(le===se||be&&"clone"!==be.lastPutMode)&&de&&de.parentNode&&de.parentNode.removeChild(de),ae&&(this.nativeDraggable&&x(ae,"dragend",this),tt(ae),ae.style["will-change"]="",Ce&&!Te&&A(ae,be?be.options.ghostClass:this.options.ghostClass,!1),A(ae,this.options.chosenClass,!1),oe({sortable:this,name:"unchoose",toEl:se,newIndex:null,newDraggableIndex:null,originalEvent:e}),le!==se?(me>=0&&(oe({rootEl:se,name:"add",toEl:se,fromEl:le,originalEvent:e}),oe({sortable:this,name:"remove",toEl:se,originalEvent:e}),oe({rootEl:se,name:"sort",toEl:se,fromEl:le,originalEvent:e}),oe({sortable:this,name:"sort",toEl:se,originalEvent:e})),be&&be.save()):me!==pe&&me>=0&&(oe({sortable:this,name:"update",toEl:se,originalEvent:e}),oe({sortable:this,name:"sort",toEl:se,originalEvent:e})),Ze.active&&(null!=me&&-1!==me||(me=pe,ve=ge),oe({sortable:this,name:"end",toEl:se,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){ie("nulling",this),le=ae=se=ue=ce=de=fe=he=qe=we=Ce=me=ve=pe=ge=Ee=Oe=be=ye=Ze.dragged=Ze.ghost=Ze.clone=Ze.active=null,Fe.forEach((function(e){e.checked=!0})),Fe.length=_e=xe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ae&&(this._onDragOver(e),Qe(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)e=n[r],C(e,o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||at(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,r){var i=n.children[r];C(i,this.options.draggable,n,!1)&&(t[e]=i)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return C(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=ne.modifyOption(this,e,t);n[e]="undefined"!==typeof r?r:t,"group"===e&&Xe(n)},destroy:function(){ie("destroy",this);var e=this.el;e[K]=null,x(e,"mousedown",this._onTapStart),x(e,"touchstart",this._onTapStart),x(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(x(e,"dragover",this),x(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Me.splice(Me.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!he){if(ie("hideClone",this),Ze.eventCanceled)return;D(de,"display","none"),this.options.removeCloneOnHide&&de.parentNode&&de.parentNode.removeChild(de),he=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(he){if(ie("showClone",this),Ze.eventCanceled)return;le.contains(ae)&&!this.options.group.revertClone?le.insertBefore(de,ae):ce?le.insertBefore(de,ce):le.appendChild(de),this.options.group.revertClone&&this.animate(ae,de),D(de,"display",""),he=!1}}else this._hideClone()}},Le&&_(document,"touchmove",(function(e){(Ze.active||Te)&&e.cancelable&&e.preventDefault()})),Ze.utils={on:_,off:x,css:D,find:P,is:function(e,t){return!!C(e,t,e,!1)},extend:z,throttle:$,closest:C,toggleClass:A,clone:X,index:F,nextTick:ut,cancelNextTick:lt,detectDirection:$e,getChild:R},Ze.get=function(e){return e[K]},Ze.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Ze.utils=a({},Ze.utils,e.utils)),ne.mount(e)}))},Ze.create=function(e,t){return new Ze(e,t)},Ze.version=h;var ct,ft,dt,ht,pt,mt,gt=[],vt=!1;function yt(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):this.options.supportPointer?_(document,"pointermove",this._handleFallbackAutoScroll):t.touches?_(document,"touchmove",this._handleFallbackAutoScroll):_(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?x(document,"dragover",this._handleAutoScroll):(x(document,"pointermove",this._handleFallbackAutoScroll),x(document,"touchmove",this._handleFallbackAutoScroll),x(document,"mousemove",this._handleFallbackAutoScroll)),qt(),bt(),V()},nulling:function(){pt=ft=ct=vt=mt=dt=ht=null,gt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(r,i);if(pt=e,t||g||m||y){_t(e,this.options,o,t);var a=U(o,!0);!vt||mt&&r===dt&&i===ht||(mt&&qt(),mt=setInterval((function(){var o=U(document.elementFromPoint(r,i),!0);o!==a&&(a=o,bt()),_t(e,n.options,o,t)}),10),dt=r,ht=i)}else{if(!this.options.bubbleScroll||U(o,!0)===M())return void bt();_t(e,this.options,U(o,!1),!1)}}},o(e,{pluginName:"scroll",initializeByDefault:!0})}function bt(){gt.forEach((function(e){clearInterval(e.pid)})),gt=[]}function qt(){clearInterval(mt)}var wt,_t=$((function(e,t,n,r){if(t.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,u=t.scrollSpeed,l=M(),c=!1;ft!==n&&(ft=n,bt(),ct=t.scroll,i=t.scrollFn,!0===ct&&(ct=U(n,!0)));var f=0,d=ct;do{var h=d,p=N(h),m=p.top,g=p.bottom,v=p.left,y=p.right,b=p.width,q=p.height,w=void 0,_=void 0,x=h.scrollWidth,S=h.scrollHeight,k=D(h),C=h.scrollLeft,E=h.scrollTop;h===l?(w=b<x&&("auto"===k.overflowX||"scroll"===k.overflowX||"visible"===k.overflowX),_=q<S&&("auto"===k.overflowY||"scroll"===k.overflowY||"visible"===k.overflowY)):(w=b<x&&("auto"===k.overflowX||"scroll"===k.overflowX),_=q<S&&("auto"===k.overflowY||"scroll"===k.overflowY));var O=w&&(Math.abs(y-o)<=s&&C+b<x)-(Math.abs(v-o)<=s&&!!C),A=_&&(Math.abs(g-a)<=s&&E+q<S)-(Math.abs(m-a)<=s&&!!E);if(!gt[f])for(var T=0;T<=f;T++)gt[T]||(gt[T]={});gt[f].vx==O&>[f].vy==A&>[f].el===h||(gt[f].el=h,gt[f].vx=O,gt[f].vy=A,clearInterval(gt[f].pid),0==O&&0==A||(c=!0,gt[f].pid=setInterval(function(){r&&0===this.layer&&Ze.active._onTouchMove(pt);var t=gt[this.layer].vy?gt[this.layer].vy*u:0,n=gt[this.layer].vx?gt[this.layer].vx*u:0;"function"===typeof i&&"continue"!==i.call(Ze.dragged.parentNode[K],n,t,e,pt,gt[this.layer].el)||W(gt[this.layer].el,n,t)}.bind({layer:f}),24))),f++}while(t.bubbleScroll&&d!==l&&(d=U(d,!1)));vt=c}}),30),xt=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var u=n||i;a();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(l.clientX,l.clientY);s(),u&&!u.el.contains(c)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function St(){}function kt(){}function Ct(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;wt=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,i=e.activeSortable,o=e.changed,a=e.cancel;if(i.options.swap){var s=this.sortable.el,u=this.options;if(n&&n!==s){var l=wt;!1!==r(n)?(A(n,u.swapClass,!0),wt=n):wt=null,l&&l!==wt&&A(l,u.swapClass,!1)}o(),t(!0),a()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,i=n||this.sortable,o=this.options;wt&&A(wt,o.swapClass,!1),wt&&(o.swap||n&&n.options.swap)&&r!==wt&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),Et(r,wt),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){wt=null}},o(e,{pluginName:"swap",eventProperties:function(){return{swapItem:wt}}})}function Et(e,t){var n,r,i=e.parentNode,o=t.parentNode;i&&o&&!i.isEqualNode(t)&&!o.isEqualNode(e)&&(n=F(e),r=F(t),i.isEqualNode(o)&&n<r&&r++,i.insertBefore(t,i.children[n]),o.insertBefore(e,o.children[r]))}St.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=R(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:xt},o(St,{pluginName:"revertOnSpill"}),kt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,r=n||this.sortable;r.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),r.animateAll()},drop:xt},o(kt,{pluginName:"removeOnSpill"});var Ot,At,Dt,Tt,Pt,Mt=[],Nt=[],It=!1,Rt=!1,jt=!1;function Ft(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?_(document,"pointerup",this._deselectMultiDrag):(_(document,"mouseup",this._deselectMultiDrag),_(document,"touchend",this._deselectMultiDrag)),_(document,"keydown",this._checkKeyDown),_(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var r="";Mt.length&&At===e?Mt.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;Dt=t},delayEnded:function(){this.isMultiDrag=~Mt.indexOf(Dt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<Mt.length;r++)Nt.push(X(Mt[r])),Nt[r].sortableIndex=Mt[r].sortableIndex,Nt[r].draggable=!1,Nt[r].style["will-change"]="",A(Nt[r],this.options.selectedClass,!1),Mt[r]===Dt&&A(Nt[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,i=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Mt.length&&At===t&&(Bt(!0,n),r("clone"),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(Bt(!1,n),Nt.forEach((function(e){D(e,"display","")})),t(),Pt=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(Nt.forEach((function(e){D(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),Pt=!0,r())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&At&&At.multiDrag._deselectMultiDrag(),Mt.forEach((function(e){e.sortableIndex=F(e)})),Mt=Mt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),jt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Mt.forEach((function(e){e!==Dt&&D(e,"position","absolute")}));var r=N(Dt,!1,!0,!0);Mt.forEach((function(e){e!==Dt&&G(e,r)})),Rt=!0,It=!0}n.animateAll((function(){Rt=!1,It=!1,t.options.animation&&Mt.forEach((function(e){Y(e)})),t.options.sort&&Ut()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;Rt&&~Mt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;Mt.length>1&&(Mt.forEach((function(e){r.addAnimationState({target:e,rect:Rt?N(e):i}),Y(e),e.fromRect=i,t.removeAnimationState(e)})),Rt=!1,Lt(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,o=e.parentEl,a=e.putSortable,s=this.options;if(r){if(n&&i._hideClone(),It=!1,s.animation&&Mt.length>1&&(Rt||!n&&!i.options.sort&&!a)){var u=N(Dt,!1,!0,!0);Mt.forEach((function(e){e!==Dt&&(G(e,u),o.appendChild(e))})),Rt=!0}if(!n)if(Rt||Ut(),Mt.length>1){var l=Pt;i._showClone(t),i.options.animation&&!Pt&&l&&Nt.forEach((function(e){i.addAnimationState({target:e,rect:Tt}),e.fromRect=Tt,e.thisAnimationDuration=null}))}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(Mt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Tt=o({},t);var i=T(Dt,!0);Tt.top-=i.f,Tt.left-=i.e}},dragOverAnimationComplete:function(){Rt&&(Rt=!1,Ut())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,o=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,u=s||this.sortable;if(t){var l=this.options,c=r.children;if(!jt)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),A(Dt,l.selectedClass,!~Mt.indexOf(Dt)),~Mt.indexOf(Dt))Mt.splice(Mt.indexOf(Dt),1),Ot=null,re({sortable:i,rootEl:n,name:"deselect",targetEl:Dt,originalEvt:t});else{if(Mt.push(Dt),re({sortable:i,rootEl:n,name:"select",targetEl:Dt,originalEvt:t}),t.shiftKey&&Ot&&i.el.contains(Ot)){var f,d,h=F(Ot),p=F(Dt);if(~h&&~p&&h!==p)for(p>h?(d=h,f=p):(d=p,f=h+1);d<f;d++)~Mt.indexOf(c[d])||(A(c[d],l.selectedClass,!0),Mt.push(c[d]),re({sortable:i,rootEl:n,name:"select",targetEl:c[d],originalEvt:t}))}else Ot=Dt;At=u}if(jt&&this.isMultiDrag){if((r[K].options.sort||r!==n)&&Mt.length>1){var m=N(Dt),g=F(Dt,":not(."+this.options.selectedClass+")");if(!It&&l.animation&&(Dt.thisAnimationDuration=null),u.captureAnimationState(),!It&&(l.animation&&(Dt.fromRect=m,Mt.forEach((function(e){if(e.thisAnimationDuration=null,e!==Dt){var t=Rt?N(e):m;e.fromRect=t,u.addAnimationState({target:e,rect:t})}}))),Ut(),Mt.forEach((function(e){c[g]?r.insertBefore(e,c[g]):r.appendChild(e),g++})),a===F(Dt))){var v=!1;Mt.forEach((function(e){e.sortableIndex===F(e)||(v=!0)})),v&&o("update")}Mt.forEach((function(e){Y(e)})),u.animateAll()}At=u}(n===r||s&&"clone"!==s.lastPutMode)&&Nt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=jt=!1,Nt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),x(document,"pointerup",this._deselectMultiDrag),x(document,"mouseup",this._deselectMultiDrag),x(document,"touchend",this._deselectMultiDrag),x(document,"keydown",this._checkKeyDown),x(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(("undefined"===typeof jt||!jt)&&At===this.sortable&&(!e||!C(e.target,this.options.draggable,this.sortable.el,!1))&&(!e||0===e.button))while(Mt.length){var t=Mt[0];A(t,this.options.selectedClass,!1),Mt.shift(),re({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[K];t&&t.options.multiDrag&&!~Mt.indexOf(e)&&(At&&At!==t&&(At.multiDrag._deselectMultiDrag(),At=t),A(e,t.options.selectedClass,!0),Mt.push(e))},deselect:function(e){var t=e.parentNode[K],n=Mt.indexOf(e);t&&t.options.multiDrag&&~n&&(A(e,t.options.selectedClass,!1),Mt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return Mt.forEach((function(r){var i;t.push({multiDragElement:r,index:r.sortableIndex}),i=Rt&&r!==Dt?-1:Rt?F(r,":not(."+e.options.selectedClass+")"):F(r),n.push({multiDragElement:r,index:i})})),{items:l(Mt),clones:[].concat(Nt),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),"ctrl"===e?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Lt(e,t){Mt.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function Bt(e,t){Nt.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function Ut(){Mt.forEach((function(e){e!==Dt&&e.parentNode&&e.parentNode.removeChild(e)}))}Ze.mount(new yt),Ze.mount(kt,St),t["default"]=Ze},ac41:function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}e.exports=n},aefd:function(e,t,n){"use strict";function r(e){return e>=55296&&e<=56319}function i(e){return e>=56320&&e<=57343}e.exports=function(e,t,n){if("string"!==typeof t)throw new Error("Input must be string");for(var o,a,s=t.length,u=0,l=0;l<s;l+=1){if(o=t.charCodeAt(l),a=t[l],r(o)&&i(t.charCodeAt(l+1))&&(l+=1,a+=t[l]),u+=e(a),u===n)return t.slice(0,l+1);if(u>n)return t.slice(0,l-a.length+1)}return t}},b047:function(e,t,n){var r=n("1a8c"),i=n("408c"),o=n("b4b0"),a="Expected a function",s=Math.max,u=Math.min;function l(e,t,n){var l,c,f,d,h,p,m=0,g=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError(a);function b(t){var n=l,r=c;return l=c=void 0,m=t,d=e.apply(r,n),d}function q(e){return m=e,h=setTimeout(x,t),g?b(e):d}function w(e){var n=e-p,r=e-m,i=t-n;return v?u(i,f-r):i}function _(e){var n=e-p,r=e-m;return void 0===p||n>=t||n<0||v&&r>=f}function x(){var e=i();if(_(e))return S(e);h=setTimeout(x,w(e))}function S(e){return h=void 0,y&&l?b(e):(l=c=void 0,d)}function k(){void 0!==h&&clearTimeout(h),m=0,l=p=c=h=void 0}function C(){return void 0===h?d:S(i())}function E(){var e=i(),n=_(e);if(l=arguments,c=this,p=e,n){if(void 0===h)return q(p);if(v)return clearTimeout(h),h=setTimeout(x,t),b(p)}return void 0===h&&(h=setTimeout(x,t)),d}return t=o(t)||0,r(n)&&(g=!!n.leading,v="maxWait"in n,f=v?s(o(n.maxWait)||0,t):f,y="trailing"in n?!!n.trailing:y),E.cancel=k,E.flush=C,E}e.exports=l},b047f:function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},b1e5:function(e,t,n){var r=n("a994"),i=1,o=Object.prototype,a=o.hasOwnProperty;function s(e,t,n,o,s,u){var l=n&i,c=r(e),f=c.length,d=r(t),h=d.length;if(f!=h&&!l)return!1;var p=f;while(p--){var m=c[p];if(!(l?m in t:a.call(t,m)))return!1}var g=u.get(e),v=u.get(t);if(g&&v)return g==t&&v==e;var y=!0;u.set(e,t),u.set(t,e);var b=l;while(++p<f){m=c[p];var q=e[m],w=t[m];if(o)var _=l?o(w,q,m,t,e,u):o(q,w,m,e,t,u);if(!(void 0===_?q===w||s(q,w,n,o,u):_)){y=!1;break}b||(b="constructor"==m)}if(y&&!b){var x=e.constructor,S=t.constructor;x==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof S&&S instanceof S||(y=!1)}return u["delete"](e),u["delete"](t),y}e.exports=s},b218:function(e,t){var n=9007199254740991;function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}e.exports=r},b2e9:function(e,t,n){var r=n("c8d5");function i(e,t){var n=r(e),i=r(t),o=n.getFullYear()-i.getFullYear(),a=n.getMonth()-i.getMonth();return 12*o+a}e.exports=i},b4b0:function(e,t,n){var r=n("8d74"),i=n("1a8c"),o=n("ffd6"),a=NaN,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;function f(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}e.exports=f},b4c07:function(e,t,n){var r=n("cb5a");function i(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}e.exports=i},b4c7:function(e,t,n){var r=n("c7ce");function i(e){return r(e,{weekStartsOn:1})}e.exports=i},b50d:function(e,t,n){"use strict";var r=n("c532"),i=n("467f"),o=n("7aac"),a=n("30b5"),s=n("83b9"),u=n("c345"),l=n("3934"),c=n("2d83");e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers,h=e.responseType;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+g)}var v=s(e.baseURL,e.url);function y(){if(p){var r="getAllResponseHeaders"in p?u(p.getAllResponseHeaders()):null,o=h&&"text"!==h&&"json"!==h?p.response:p.responseText,a={data:o,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};i(t,n,a),p=null}}if(p.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(y)},p.onabort=function(){p&&(n(c("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||l(v))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in p&&r.forEach(d,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),h&&"json"!==h&&(p.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),f||(f=null),p.send(f)}))}},b579:function(e,t,n){
+/* flatpickr v4.3.2, @license MIT */
+(function(e,n){n(t)})(0,(function(e){"use strict";var t="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Nd","Pn","Wt","Śr","Cz","Pt","So"],longhand:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"]},months:{shorthand:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],longhand:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"]},firstDayOfWeek:1,ordinal:function(){return"."}};t.l10ns.pl=n;var r=t.l10ns;e.Polish=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}))},b5a7:function(e,t,n){var r=n("0b07"),i=n("2b3e"),o=r(i,"DataView");e.exports=o},b639:function(e,t,n){"use strict";(function(e){
+/*!
+ * The buffer module from node.js, for the browser.
+ *
+ * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
+ * @license MIT
+ */
+var r=n("1fb5"),i=n("9152"),o=n("e3db");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=l.prototype):(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?g(e,t,n,r):"string"===typeof t?p(e,t,n):v(e,t)}function f(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t,n,r){return f(t),t<=0?u(e,t):void 0!==n?"string"===typeof r?u(e,t).fill(n,r):u(e,t).fill(n):u(e,t)}function h(e,t){if(f(t),e=u(e,t<0?0:0|y(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|q(t,n);e=u(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}function m(e,t){var n=t.length<0?0:0|y(t.length);e=u(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function g(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),l.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=l.prototype):e=m(e,t),e}function v(e,t){if(l.isBuffer(t)){var n=0|y(t.length);return e=u(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?u(e,0):m(e,t);if("Buffer"===t.type&&o(t.data))return m(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),l.alloc(+e)}function q(e,t){if(l.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(r)return K(e).length;t=(""+t).toLowerCase(),r=!0}}function w(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function _(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function x(e,t,n,r,i){if(0===e.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:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,i);if("number"===typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;o<s;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(l(e,o+d)!==l(t,d)){f=!1;break}if(f)return o}return-1}function k(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=t.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(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function C(e,t,n,r){return ee(K(t,e.length-n),e,n,r)}function E(e,t,n,r){return ee(J(t),e,n,r)}function O(e,t,n,r){return E(e,t,n,r)}function A(e,t,n,r){return ee(Q(t),e,n,r)}function D(e,t,n,r){return ee(Z(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(i<n){var o,a,s,u,l=e[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:o=e[i+1],128===(192&o)&&(u=(31&l)<<6|63&o,u>127&&(c=u));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a,u>2047&&(u<55296||u>57343)&&(c=u));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s,u>65535&&u<1114112&&(c=u))}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return N(r)}t.Buffer=l,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return d(null,e,t,n)},l.allocUnsafe=function(e){return h(null,e)},l.allocUnsafeSlow=function(e){return h(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).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}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=q,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)_(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?P(this,0,e):w.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),f=0;f<s;++f)if(u[f]!==c[f]){o=u[f],a=c[f];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return x(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return x(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return k(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return O(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function N(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=M));return n}function I(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function R(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function j(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=Y(e[o]);return i}function F(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function L(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function U(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function z(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function H(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function $(e,t,n,r,o){return o||H(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function V(e,t,n,r,o){return o||H(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);var r=this[e+--t],i=1;while(t>0&&(i*=256))r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||L(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);var r=this[e],i=1,o=0;while(++o<t&&(i*=256))r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||L(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||L(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||L(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;B(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a<n&&(o*=256))this[t+a]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;B(this,e,t,n,i,0)}var o=n-1,a=1;this[t+o]=255&e;while(--o>=0&&(a*=256))this[t+o]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):z(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o<n&&(a*=256))e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):z(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return $(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return $(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<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),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=l.isBuffer(e)?e:K(new l(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function X(e){if(e=G(e).replace(W,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function G(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=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((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function J(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Z(e,t){for(var n,r,i,o=[],a=0;a<e.length;++a){if((t-=2)<0)break;n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function Q(e){return r.toByteArray(X(e))}function ee(e,t,n,r){for(var i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("c8ba"))},b726:function(e,t,n){"use strict";function r(e){return e>=55296&&e<=56319}function i(e){return e>=56320&&e<=57343}e.exports=function(e){if("string"!==typeof e)throw new Error("Input must be string");for(var t=e.length,n=0,o=null,a=null,s=0;s<t;s++)o=e.charCodeAt(s),i(o)?null!=a&&r(a)?n+=1:n+=3:o<=127?n+=1:o>=128&&o<=2047?n+=2:o>=2048&&o<=65535&&(n+=3),a=o;return n}},b760:function(e,t,n){var r=n("872a"),i=n("9638");function o(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}e.exports=o},b8ce:function(e,t,n){var r=n("3818"),i=4;function o(e){return r(e,i)}e.exports=o},bab4:function(e,t,n){
+/*!
+ * Cropper.js v1.5.6
+ * https://fengyuanchen.github.io/cropperjs
+ *
+ * Copyright 2015-present Chen Fengyuan
+ * Released under the MIT license
+ *
+ * Date: 2019-10-04T04:33:48.372Z
+ */
+(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(t){return e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(n,!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e){return u(e)||l(e)||c()}function u(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function l(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var f="undefined"!==typeof window&&"undefined"!==typeof window.document,d=f?window:{},h=!!f&&"ontouchstart"in d.document.documentElement,p=!!f&&"PointerEvent"in d,m="cropper",g="all",v="crop",y="move",b="zoom",q="e",w="w",_="s",x="n",S="ne",k="nw",C="se",E="sw",O="".concat(m,"-crop"),A="".concat(m,"-disabled"),D="".concat(m,"-hidden"),T="".concat(m,"-hide"),P="".concat(m,"-invisible"),M="".concat(m,"-modal"),N="".concat(m,"-move"),I="".concat(m,"Action"),R="".concat(m,"Preview"),j="crop",F="move",L="none",B="crop",U="cropend",z="cropmove",H="cropstart",$="dblclick",V=h?"touchstart":"mousedown",W=h?"touchmove":"mousemove",X=h?"touchend touchcancel":"mouseup",G=p?"pointerdown":V,Y=p?"pointermove":W,K=p?"pointerup pointercancel":X,J="ready",Z="resize",Q="wheel",ee="zoom",te="image/jpeg",ne=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,re=/^data:/,ie=/^data:image\/jpeg;base64,/,oe=/^img|canvas$/i,ae=200,se=100,ue={viewMode:0,dragMode:j,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},le='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',ce=Number.isNaN||d.isNaN;function fe(e){return"number"===typeof e&&!ce(e)}var de=function(e){return e>0&&e<1/0};function he(e){return"undefined"===typeof e}function pe(t){return"object"===e(t)&&null!==t}var me=Object.prototype.hasOwnProperty;function ge(e){if(!pe(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&me.call(n,"isPrototypeOf")}catch(r){return!1}}function ve(e){return"function"===typeof e}var ye=Array.prototype.slice;function be(e){return Array.from?Array.from(e):ye.call(e)}function qe(e,t){return e&&ve(t)&&(Array.isArray(e)||fe(e.length)?be(e).forEach((function(n,r){t.call(e,n,r,e)})):pe(e)&&Object.keys(e).forEach((function(n){t.call(e,e[n],n,e)}))),e}var we=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return pe(e)&&n.length>0&&n.forEach((function(t){pe(t)&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e},_e=/\.\d*(?:0|9){12}\d*$/;function xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return _e.test(e)?Math.round(e*t)/t:e}var Se=/^width|height|left|top|marginLeft|marginTop$/;function ke(e,t){var n=e.style;qe(t,(function(e,t){Se.test(t)&&fe(e)&&(e="".concat(e,"px")),n[t]=e}))}function Ce(e,t){return e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function Ee(e,t){if(t)if(fe(e.length))qe(e,(function(e){Ee(e,t)}));else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function Oe(e,t){t&&(fe(e.length)?qe(e,(function(e){Oe(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function Ae(e,t,n){t&&(fe(e.length)?qe(e,(function(e){Ae(e,t,n)})):n?Ee(e,t):Oe(e,t))}var De=/([a-z\d])([A-Z])/g;function Te(e){return e.replace(De,"$1-$2").toLowerCase()}function Pe(e,t){return pe(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(Te(t)))}function Me(e,t,n){pe(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(Te(t)),n)}function Ne(e,t){if(pe(e[t]))try{delete e[t]}catch(n){e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch(n){e.dataset[t]=void 0}else e.removeAttribute("data-".concat(Te(t)))}var Ie=/\s\s*/,Re=function(){var e=!1;if(f){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});d.addEventListener("test",n,r),d.removeEventListener("test",n,r)}return e}();function je(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(Ie).forEach((function(t){if(!Re){var o=e.listeners;o&&o[t]&&o[t][n]&&(i=o[t][n],delete o[t][n],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,i,r)}))}function Fe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(Ie).forEach((function(t){if(r.once&&!Re){var o=e.listeners,a=void 0===o?{}:o;i=function(){delete a[t][n],e.removeEventListener(t,i,r);for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];n.apply(e,s)},a[t]||(a[t]={}),a[t][n]&&e.removeEventListener(t,a[t][n],r),a[t][n]=i,e.listeners=a}e.addEventListener(t,i,r)}))}function Le(e,t,n){var r;return ve(Event)&&ve(CustomEvent)?r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent"),r.initCustomEvent(t,!0,!0,n)),e.dispatchEvent(r)}function Be(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var Ue=d.location,ze=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function He(e){var t=e.match(ze);return null!==t&&(t[1]!==Ue.protocol||t[2]!==Ue.hostname||t[3]!==Ue.port)}function $e(e){var t="timestamp=".concat((new Date).getTime());return e+(-1===e.indexOf("?")?"?":"&")+t}function Ve(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,o=e.translateY,a=[];fe(i)&&0!==i&&a.push("translateX(".concat(i,"px)")),fe(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),fe(t)&&0!==t&&a.push("rotate(".concat(t,"deg)")),fe(n)&&1!==n&&a.push("scaleX(".concat(n,")")),fe(r)&&1!==r&&a.push("scaleY(".concat(r,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function We(e){var t=a({},e),n=[];return qe(e,(function(e,r){delete t[r],qe(t,(function(t){var r=Math.abs(e.startX-t.startX),i=Math.abs(e.startY-t.startY),o=Math.abs(e.endX-t.endX),a=Math.abs(e.endY-t.endY),s=Math.sqrt(r*r+i*i),u=Math.sqrt(o*o+a*a),l=(u-s)/s;n.push(l)}))})),n.sort((function(e,t){return Math.abs(e)<Math.abs(t)})),n[0]}function Xe(e,t){var n=e.pageX,r=e.pageY,i={endX:n,endY:r};return t?i:a({startX:n,startY:r},i)}function Ge(e){var t=0,n=0,r=0;return qe(e,(function(e){var i=e.startX,o=e.startY;t+=i,n+=o,r+=1})),t/=r,n/=r,{pageX:t,pageY:n}}function Ye(e){var t=e.aspectRatio,n=e.height,r=e.width,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",o=de(r),a=de(n);if(o&&a){var s=n*t;"contain"===i&&s>r||"cover"===i&&s<r?n=r/t:r=n*t}else o?n=r/t:a&&(r=n*t);return{width:r,height:n}}function Ke(e){var t=e.width,n=e.height,r=e.degree;if(r=Math.abs(r)%180,90===r)return{width:n,height:t};var i=r%90*Math.PI/180,o=Math.sin(i),a=Math.cos(i),s=t*a+n*o,u=t*o+n*a;return r>90?{width:u,height:s}:{width:s,height:u}}function Je(e,t,n,r){var i=t.aspectRatio,o=t.naturalWidth,a=t.naturalHeight,u=t.rotate,l=void 0===u?0:u,c=t.scaleX,f=void 0===c?1:c,d=t.scaleY,h=void 0===d?1:d,p=n.aspectRatio,m=n.naturalWidth,g=n.naturalHeight,v=r.fillColor,y=void 0===v?"transparent":v,b=r.imageSmoothingEnabled,q=void 0===b||b,w=r.imageSmoothingQuality,_=void 0===w?"low":w,x=r.maxWidth,S=void 0===x?1/0:x,k=r.maxHeight,C=void 0===k?1/0:k,E=r.minWidth,O=void 0===E?0:E,A=r.minHeight,D=void 0===A?0:A,T=document.createElement("canvas"),P=T.getContext("2d"),M=Ye({aspectRatio:p,width:S,height:C}),N=Ye({aspectRatio:p,width:O,height:D},"cover"),I=Math.min(M.width,Math.max(N.width,m)),R=Math.min(M.height,Math.max(N.height,g)),j=Ye({aspectRatio:i,width:S,height:C}),F=Ye({aspectRatio:i,width:O,height:D},"cover"),L=Math.min(j.width,Math.max(F.width,o)),B=Math.min(j.height,Math.max(F.height,a)),U=[-L/2,-B/2,L,B];return T.width=xe(I),T.height=xe(R),P.fillStyle=y,P.fillRect(0,0,I,R),P.save(),P.translate(I/2,R/2),P.rotate(l*Math.PI/180),P.scale(f,h),P.imageSmoothingEnabled=q,P.imageSmoothingQuality=_,P.drawImage.apply(P,[e].concat(s(U.map((function(e){return Math.floor(xe(e))}))))),P.restore(),T}var Ze=String.fromCharCode;function Qe(e,t,n){var r="";n+=t;for(var i=t;i<n;i+=1)r+=Ze(e.getUint8(i));return r}var et=/^data:.*,/;function tt(e){var t=e.replace(et,""),n=atob(t),r=new ArrayBuffer(n.length),i=new Uint8Array(r);return qe(i,(function(e,t){i[t]=n.charCodeAt(t)})),r}function nt(e,t){var n=[],r=8192,i=new Uint8Array(e);while(i.length>0)n.push(Ze.apply(null,be(i.subarray(0,r)))),i=i.subarray(r);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}function rt(e){var t,n=new DataView(e);try{var r,i,o;if(255===n.getUint8(0)&&216===n.getUint8(1)){var a=n.byteLength,s=2;while(s+1<a){if(255===n.getUint8(s)&&225===n.getUint8(s+1)){i=s;break}s+=1}}if(i){var u=i+4,l=i+10;if("Exif"===Qe(n,u,4)){var c=n.getUint16(l);if(r=18761===c,(r||19789===c)&&42===n.getUint16(l+2,r)){var f=n.getUint32(l+4,r);f>=8&&(o=l+f)}}}if(o){var d,h,p=n.getUint16(o,r);for(h=0;h<p;h+=1)if(d=o+12*h+2,274===n.getUint16(d,r)){d+=8,t=n.getUint16(d,r),n.setUint16(d,1,r);break}}}catch(m){t=1}return t}function it(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90;break;default:}return{rotate:t,scaleX:n,scaleY:r}}var ot={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,n=this.container,r=this.cropper;Ee(r,D),Oe(e,D);var i={width:Math.max(n.offsetWidth,Number(t.minContainerWidth)||200),height:Math.max(n.offsetHeight,Number(t.minContainerHeight)||100)};this.containerData=i,ke(r,{width:i.width,height:i.height}),Ee(e,D),Oe(r,D)},initCanvas:function(){var e=this.containerData,t=this.imageData,n=this.options.viewMode,r=Math.abs(t.rotate)%180===90,i=r?t.naturalHeight:t.naturalWidth,o=r?t.naturalWidth:t.naturalHeight,a=i/o,s=e.width,u=e.height;e.height*a>e.width?3===n?s=e.height*a:u=e.width/a:3===n?u=e.width/a:s=e.height*a;var l={aspectRatio:a,naturalWidth:i,naturalHeight:o,width:s,height:u};l.left=(e.width-s)/2,l.top=(e.height-u)/2,l.oldLeft=l.left,l.oldTop=l.top,this.canvasData=l,this.limited=1===n||2===n,this.limitCanvas(!0,!0),this.initialImageData=we({},t),this.initialCanvasData=we({},l)},limitCanvas:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=n.viewMode,s=i.aspectRatio,u=this.cropped&&o;if(e){var l=Number(n.minCanvasWidth)||0,c=Number(n.minCanvasHeight)||0;a>1?(l=Math.max(l,r.width),c=Math.max(c,r.height),3===a&&(c*s>l?l=c*s:c=l/s)):a>0&&(l?l=Math.max(l,u?o.width:0):c?c=Math.max(c,u?o.height:0):u&&(l=o.width,c=o.height,c*s>l?l=c*s:c=l/s));var f=Ye({aspectRatio:s,width:l,height:c});l=f.width,c=f.height,i.minWidth=l,i.minHeight=c,i.maxWidth=1/0,i.maxHeight=1/0}if(t)if(a>(u?0:1)){var d=r.width-i.width,h=r.height-i.height;i.minLeft=Math.min(0,d),i.minTop=Math.min(0,h),i.maxLeft=Math.max(0,d),i.maxTop=Math.max(0,h),u&&this.limited&&(i.minLeft=Math.min(o.left,o.left+(o.width-i.width)),i.minTop=Math.min(o.top,o.top+(o.height-i.height)),i.maxLeft=o.left,i.maxTop=o.top,2===a&&(i.width>=r.width&&(i.minLeft=Math.min(0,d),i.maxLeft=Math.max(0,d)),i.height>=r.height&&(i.minTop=Math.min(0,h),i.maxTop=Math.max(0,h))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height},renderCanvas:function(e,t){var n=this.canvasData,r=this.imageData;if(t){var i=Ke({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),o=i.width,a=i.height,s=n.width*(o/n.naturalWidth),u=n.height*(a/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(u-n.height)/2,n.width=s,n.height=u,n.aspectRatio=o/a,n.naturalWidth=o,n.naturalHeight=a,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCanvas(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,ke(this.canvas,we({width:n.width,height:n.height},Ve({translateX:n.left,translateY:n.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,n=this.imageData,r=n.naturalWidth*(t.width/t.naturalWidth),i=n.naturalHeight*(t.height/t.naturalHeight);we(n,{width:r,height:i,left:(t.width-r)/2,top:(t.height-i)/2}),ke(this.image,we({width:n.width,height:n.height},Ve(we({translateX:n.left,translateY:n.top},n)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,n=e.aspectRatio||e.initialAspectRatio,r=Number(e.autoCropArea)||.8,i={width:t.width,height:t.height};n&&(t.height*n>t.width?i.height=i.width/n:i.width=i.height*n),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*r),i.height=Math.max(i.minHeight,i.height*r),i.left=t.left+(t.width-i.width)/2,i.top=t.top+(t.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=we({},i)},limitCropBox:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=this.limited,s=n.aspectRatio;if(e){var u=Number(n.minCropBoxWidth)||0,l=Number(n.minCropBoxHeight)||0,c=a?Math.min(r.width,i.width,i.width+i.left,r.width-i.left):r.width,f=a?Math.min(r.height,i.height,i.height+i.top,r.height-i.top):r.height;u=Math.min(u,r.width),l=Math.min(l,r.height),s&&(u&&l?l*s>u?l=u/s:u=l*s:u?l=u/s:l&&(u=l*s),f*s>c?f=c/s:c=f*s),o.minWidth=Math.min(u,c),o.minHeight=Math.min(l,f),o.maxWidth=c,o.maxHeight=f}t&&(a?(o.minLeft=Math.max(0,i.left),o.minTop=Math.max(0,i.top),o.maxLeft=Math.min(r.width,i.left+i.width)-o.width,o.maxTop=Math.min(r.height,i.top+i.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=r.width-o.width,o.maxTop=r.height-o.height))},renderCropBox:function(){var e=this.options,t=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,e.movable&&e.cropBoxMovable&&Me(this.face,I,n.width>=t.width&&n.height>=t.height?y:g),ke(this.cropBox,we({width:n.width,height:n.height},Ve({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Le(this.element,B,this.getData())}},at={initPreview:function(){var e=this.element,t=this.crossOrigin,n=this.options.preview,r=t?this.crossOriginUrl:this.url,i=e.alt||"The image to preview",o=document.createElement("img");if(t&&(o.crossOrigin=t),o.src=r,o.alt=i,this.viewBox.appendChild(o),this.viewBoxImage=o,n){var a=n;"string"===typeof n?a=e.ownerDocument.querySelectorAll(n):n.querySelector&&(a=[n]),this.previews=a,qe(a,(function(e){var n=document.createElement("img");Me(e,R,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),t&&(n.crossOrigin=t),n.src=r,n.alt=i,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(n)}))}},resetPreview:function(){qe(this.previews,(function(e){var t=Pe(e,R);ke(e,{width:t.width,height:t.height}),e.innerHTML=t.html,Ne(e,R)}))},preview:function(){var e=this.imageData,t=this.canvasData,n=this.cropBoxData,r=n.width,i=n.height,o=e.width,a=e.height,s=n.left-t.left-e.left,u=n.top-t.top-e.top;this.cropped&&!this.disabled&&(ke(this.viewBoxImage,we({width:o,height:a},Ve(we({translateX:-s,translateY:-u},e)))),qe(this.previews,(function(t){var n=Pe(t,R),l=n.width,c=n.height,f=l,d=c,h=1;r&&(h=l/r,d=i*h),i&&d>c&&(h=c/i,f=r*h,d=c),ke(t,{width:f,height:d}),ke(t.getElementsByTagName("img")[0],we({width:o*h,height:a*h},Ve(we({translateX:-s*h,translateY:-u*h},e))))})))}},st={bind:function(){var e=this.element,t=this.options,n=this.cropper;ve(t.cropstart)&&Fe(e,H,t.cropstart),ve(t.cropmove)&&Fe(e,z,t.cropmove),ve(t.cropend)&&Fe(e,U,t.cropend),ve(t.crop)&&Fe(e,B,t.crop),ve(t.zoom)&&Fe(e,ee,t.zoom),Fe(n,G,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&Fe(n,Q,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&Fe(n,$,this.onDblclick=this.dblclick.bind(this)),Fe(e.ownerDocument,Y,this.onCropMove=this.cropMove.bind(this)),Fe(e.ownerDocument,K,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&Fe(window,Z,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,n=this.cropper;ve(t.cropstart)&&je(e,H,t.cropstart),ve(t.cropmove)&&je(e,z,t.cropmove),ve(t.cropend)&&je(e,U,t.cropend),ve(t.crop)&&je(e,B,t.crop),ve(t.zoom)&&je(e,ee,t.zoom),je(n,G,this.onCropStart),t.zoomable&&t.zoomOnWheel&&je(n,Q,this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&je(n,$,this.onDblclick),je(e.ownerDocument,Y,this.onCropMove),je(e.ownerDocument,K,this.onCropEnd),t.responsive&&je(window,Z,this.onResize)}},ut={resize:function(){var e=this.options,t=this.container,n=this.containerData,r=Number(e.minContainerWidth)||ae,i=Number(e.minContainerHeight)||se;if(!(this.disabled||n.width<=r||n.height<=i)){var o,a,s=t.offsetWidth/n.width;if(1!==s||t.offsetHeight!==n.height)e.restore&&(o=this.getCanvasData(),a=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(qe(o,(function(e,t){o[t]=e*s}))),this.setCropBoxData(qe(a,(function(e,t){a[t]=e*s}))))}},dblclick:function(){this.disabled||this.options.dragMode===L||this.setDragMode(Ce(this.dragBox,O)?F:j)},wheel:function(e){var t=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(e.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50),e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*n,e)))},cropStart:function(e){var t=e.buttons,n=e.button;if(!(this.disabled||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(fe(t)&&1!==t||fe(n)&&0!==n||e.ctrlKey))){var r,i=this.options,o=this.pointers;e.changedTouches?qe(e.changedTouches,(function(e){o[e.identifier]=Xe(e)})):o[e.pointerId||0]=Xe(e),r=Object.keys(o).length>1&&i.zoomable&&i.zoomOnTouch?b:Pe(e.target,I),ne.test(r)&&!1!==Le(this.element,H,{originalEvent:e,action:r})&&(e.preventDefault(),this.action=r,this.cropping=!1,r===v&&(this.cropping=!0,Ee(this.dragBox,M)))}},cropMove:function(e){var t=this.action;if(!this.disabled&&t){var n=this.pointers;e.preventDefault(),!1!==Le(this.element,z,{originalEvent:e,action:t})&&(e.changedTouches?qe(e.changedTouches,(function(e){we(n[e.identifier]||{},Xe(e,!0))})):we(n[e.pointerId||0]||{},Xe(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var t=this.action,n=this.pointers;e.changedTouches?qe(e.changedTouches,(function(e){delete n[e.identifier]})):delete n[e.pointerId||0],t&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,Ae(this.dragBox,M,this.cropped&&this.options.modal)),Le(this.element,U,{originalEvent:e,action:t}))}}},lt={change:function(e){var t,n=this.options,r=this.canvasData,i=this.containerData,o=this.cropBoxData,a=this.pointers,s=this.action,u=n.aspectRatio,l=o.left,c=o.top,f=o.width,d=o.height,h=l+f,p=c+d,m=0,O=0,A=i.width,T=i.height,P=!0;!u&&e.shiftKey&&(u=f&&d?f/d:1),this.limited&&(m=o.minLeft,O=o.minTop,A=m+Math.min(i.width,r.width,r.left+r.width),T=O+Math.min(i.height,r.height,r.top+r.height));var M=a[Object.keys(a)[0]],N={x:M.endX-M.startX,y:M.endY-M.startY},I=function(e){switch(e){case q:h+N.x>A&&(N.x=A-h);break;case w:l+N.x<m&&(N.x=m-l);break;case x:c+N.y<O&&(N.y=O-c);break;case _:p+N.y>T&&(N.y=T-p);break;default:}};switch(s){case g:l+=N.x,c+=N.y;break;case q:if(N.x>=0&&(h>=A||u&&(c<=O||p>=T))){P=!1;break}I(q),f+=N.x,f<0&&(s=w,f=-f,l-=f),u&&(d=f/u,c+=(o.height-d)/2);break;case x:if(N.y<=0&&(c<=O||u&&(l<=m||h>=A))){P=!1;break}I(x),d-=N.y,c+=N.y,d<0&&(s=_,d=-d,c-=d),u&&(f=d*u,l+=(o.width-f)/2);break;case w:if(N.x<=0&&(l<=m||u&&(c<=O||p>=T))){P=!1;break}I(w),f-=N.x,l+=N.x,f<0&&(s=q,f=-f,l-=f),u&&(d=f/u,c+=(o.height-d)/2);break;case _:if(N.y>=0&&(p>=T||u&&(l<=m||h>=A))){P=!1;break}I(_),d+=N.y,d<0&&(s=x,d=-d,c-=d),u&&(f=d*u,l+=(o.width-f)/2);break;case S:if(u){if(N.y<=0&&(c<=O||h>=A)){P=!1;break}I(x),d-=N.y,c+=N.y,f=d*u}else I(x),I(q),N.x>=0?h<A?f+=N.x:N.y<=0&&c<=O&&(P=!1):f+=N.x,N.y<=0?c>O&&(d-=N.y,c+=N.y):(d-=N.y,c+=N.y);f<0&&d<0?(s=E,d=-d,f=-f,c-=d,l-=f):f<0?(s=k,f=-f,l-=f):d<0&&(s=C,d=-d,c-=d);break;case k:if(u){if(N.y<=0&&(c<=O||l<=m)){P=!1;break}I(x),d-=N.y,c+=N.y,f=d*u,l+=o.width-f}else I(x),I(w),N.x<=0?l>m?(f-=N.x,l+=N.x):N.y<=0&&c<=O&&(P=!1):(f-=N.x,l+=N.x),N.y<=0?c>O&&(d-=N.y,c+=N.y):(d-=N.y,c+=N.y);f<0&&d<0?(s=C,d=-d,f=-f,c-=d,l-=f):f<0?(s=S,f=-f,l-=f):d<0&&(s=E,d=-d,c-=d);break;case E:if(u){if(N.x<=0&&(l<=m||p>=T)){P=!1;break}I(w),f-=N.x,l+=N.x,d=f/u}else I(_),I(w),N.x<=0?l>m?(f-=N.x,l+=N.x):N.y>=0&&p>=T&&(P=!1):(f-=N.x,l+=N.x),N.y>=0?p<T&&(d+=N.y):d+=N.y;f<0&&d<0?(s=S,d=-d,f=-f,c-=d,l-=f):f<0?(s=C,f=-f,l-=f):d<0&&(s=k,d=-d,c-=d);break;case C:if(u){if(N.x>=0&&(h>=A||p>=T)){P=!1;break}I(q),f+=N.x,d=f/u}else I(_),I(q),N.x>=0?h<A?f+=N.x:N.y>=0&&p>=T&&(P=!1):f+=N.x,N.y>=0?p<T&&(d+=N.y):d+=N.y;f<0&&d<0?(s=k,d=-d,f=-f,c-=d,l-=f):f<0?(s=E,f=-f,l-=f):d<0&&(s=S,d=-d,c-=d);break;case y:this.move(N.x,N.y),P=!1;break;case b:this.zoom(We(a),e),P=!1;break;case v:if(!N.x||!N.y){P=!1;break}t=Be(this.cropper),l=M.startX-t.left,c=M.startY-t.top,f=o.minWidth,d=o.minHeight,N.x>0?s=N.y>0?C:S:N.x<0&&(l-=f,s=N.y>0?E:k),N.y<0&&(c-=d),this.cropped||(Oe(this.cropBox,D),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break;default:}P&&(o.width=f,o.height=d,o.left=l,o.top=c,this.action=s,this.renderCropBox()),qe(a,(function(e){e.startX=e.endX,e.startY=e.endY}))}},ct={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Ee(this.dragBox,M),Oe(this.cropBox,D),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=we({},this.initialImageData),this.canvasData=we({},this.initialCanvasData),this.cropBoxData=we({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(we(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Oe(this.dragBox,M),Ee(this.cropBox,D)),this},replace:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,qe(this.previews,(function(t){t.getElementsByTagName("img")[0].src=e})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Oe(this.cropper,A)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Ee(this.cropper,A)),this},destroy:function(){var e=this.element;return e[m]?(e[m]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=n.left,i=n.top;return this.moveTo(he(e)?e:r+Number(e),he(t)?t:i+Number(t))},moveTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(fe(e)&&(n.left=e,r=!0),fe(t)&&(n.top=t,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(e,t){var n=this.canvasData;return e=Number(e),e=e<0?1/(1-e):1+e,this.zoomTo(n.width*e/n.naturalWidth,null,t)},zoomTo:function(e,t,n){var r=this.options,i=this.canvasData,o=i.width,a=i.height,s=i.naturalWidth,u=i.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&r.zoomable){var l=s*e,c=u*e;if(!1===Le(this.element,ee,{ratio:e,oldRatio:o/s,originalEvent:n}))return this;if(n){var f=this.pointers,d=Be(this.cropper),h=f&&Object.keys(f).length?Ge(f):{pageX:n.pageX,pageY:n.pageY};i.left-=(l-o)*((h.pageX-d.left-i.left)/o),i.top-=(c-a)*((h.pageY-d.top-i.top)/a)}else ge(t)&&fe(t.x)&&fe(t.y)?(i.left-=(l-o)*((t.x-i.left)/o),i.top-=(c-a)*((t.y-i.top)/a)):(i.left-=(l-o)/2,i.top-=(c-a)/2);i.width=l,i.height=c,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),fe(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,fe(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(fe(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(fe(e)&&(n.scaleX=e,r=!0),fe(t)&&(n.scaleY=t,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,i=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){e={x:o.left-i.left,y:o.top-i.top,width:o.width,height:o.height};var a=r.width/r.naturalWidth;if(qe(e,(function(t,n){e[n]=t/a})),t){var s=Math.round(e.y+e.height),u=Math.round(e.x+e.width);e.x=Math.round(e.x),e.y=Math.round(e.y),e.width=u-e.x,e.height=s-e.y}}else e={x:0,y:0,width:0,height:0};return n.rotatable&&(e.rotate=r.rotate||0),n.scalable&&(e.scaleX=r.scaleX||1,e.scaleY=r.scaleY||1),e},setData:function(e){var t=this.options,n=this.imageData,r=this.canvasData,i={};if(this.ready&&!this.disabled&&ge(e)){var o=!1;t.rotatable&&fe(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,o=!0),t.scalable&&(fe(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,o=!0),fe(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var a=n.width/n.naturalWidth;fe(e.x)&&(i.left=e.x*a+r.left),fe(e.y)&&(i.top=e.y*a+r.top),fe(e.width)&&(i.width=e.width*a),fe(e.height)&&(i.height=e.height*a),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?we({},this.containerData):{}},getImageData:function(){return this.sized?we({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&qe(["left","top","width","height","naturalWidth","naturalHeight"],(function(n){t[n]=e[n]})),t},setCanvasData:function(e){var t=this.canvasData,n=t.aspectRatio;return this.ready&&!this.disabled&&ge(e)&&(fe(e.left)&&(t.left=e.left),fe(e.top)&&(t.top=e.top),fe(e.width)?(t.width=e.width,t.height=e.width/n):fe(e.height)&&(t.height=e.height,t.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return this.ready&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(e){var t,n,r=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&ge(e)&&(fe(e.left)&&(r.left=e.left),fe(e.top)&&(r.top=e.top),fe(e.width)&&e.width!==r.width&&(t=!0,r.width=e.width),fe(e.height)&&e.height!==r.height&&(n=!0,r.height=e.height),i&&(t?r.height=r.width/i:n&&(r.width=r.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,n=Je(this.image,this.imageData,t,e);if(!this.cropped)return n;var r=this.getData(),i=r.x,o=r.y,a=r.width,u=r.height,l=n.width/Math.floor(t.naturalWidth);1!==l&&(i*=l,o*=l,a*=l,u*=l);var c=a/u,f=Ye({aspectRatio:c,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),d=Ye({aspectRatio:c,width:e.minWidth||0,height:e.minHeight||0},"cover"),h=Ye({aspectRatio:c,width:e.width||(1!==l?n.width:a),height:e.height||(1!==l?n.height:u)}),p=h.width,m=h.height;p=Math.min(f.width,Math.max(d.width,p)),m=Math.min(f.height,Math.max(d.height,m));var g=document.createElement("canvas"),v=g.getContext("2d");g.width=xe(p),g.height=xe(m),v.fillStyle=e.fillColor||"transparent",v.fillRect(0,0,p,m);var y=e.imageSmoothingEnabled,b=void 0===y||y,q=e.imageSmoothingQuality;v.imageSmoothingEnabled=b,q&&(v.imageSmoothingQuality=q);var w,_,x,S,k,C,E=n.width,O=n.height,A=i,D=o;A<=-a||A>E?(A=0,w=0,x=0,k=0):A<=0?(x=-A,A=0,w=Math.min(E,a+A),k=w):A<=E&&(x=0,w=Math.min(a,E-A),k=w),w<=0||D<=-u||D>O?(D=0,_=0,S=0,C=0):D<=0?(S=-D,D=0,_=Math.min(O,u+D),C=_):D<=O&&(S=0,_=Math.min(u,O-D),C=_);var T=[A,D,w,_];if(k>0&&C>0){var P=p/a;T.push(x*P,S*P,k*P,C*P)}return v.drawImage.apply(v,[n].concat(s(T.map((function(e){return Math.floor(xe(e))}))))),g},setAspectRatio:function(e){var t=this.options;return this.disabled||he(e)||(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var i=e===j,o=t.movable&&e===F;e=i||o?e:L,t.dragMode=e,Me(n,I,e),Ae(n,O,i),Ae(n,N,o),t.cropBoxMovable||(Me(r,I,e),Ae(r,O,i),Ae(r,N,o))}return this}},ft=d.Cropper,dt=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,e),!n||!oe.test(n.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=n,this.options=we({},ue,ge(r)&&r),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return r(e,[{key:"init",value:function(){var e,t=this.element,n=t.tagName.toLowerCase();if(!t[m]){if(t[m]=this,"img"===n){if(this.isImg=!0,e=t.getAttribute("src")||"",this.originalUrl=e,!e)return;e=t.src}else"canvas"===n&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t=this;if(e){this.url=e,this.imageData={};var n=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),r.checkOrientation&&window.ArrayBuffer)if(re.test(e))ie.test(e)?this.read(tt(e)):this.clone();else{var i=new XMLHttpRequest,o=this.clone.bind(this);this.reloading=!0,this.xhr=i,i.onabort=o,i.onerror=o,i.ontimeout=o,i.onprogress=function(){i.getResponseHeader("content-type")!==te&&i.abort()},i.onload=function(){t.read(i.response)},i.onloadend=function(){t.reloading=!1,t.xhr=null},r.checkCrossOrigin&&He(e)&&n.crossOrigin&&(e=$e(e)),i.open("GET",e),i.responseType="arraybuffer",i.withCredentials="use-credentials"===n.crossOrigin,i.send()}else this.clone()}}},{key:"read",value:function(e){var t=this.options,n=this.imageData,r=rt(e),i=0,o=1,a=1;if(r>1){this.url=nt(e,te);var s=it(r);i=s.rotate,o=s.scaleX,a=s.scaleY}t.rotatable&&(n.rotate=i),t.scalable&&(n.scaleX=o,n.scaleY=a),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,n=e.crossOrigin,r=t;this.options.checkCrossOrigin&&He(t)&&(n||(n="anonymous"),r=$e(t)),this.crossOrigin=n,this.crossOriginUrl=r;var i=document.createElement("img");n&&(i.crossOrigin=n),i.src=r||t,i.alt=e.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),Ee(i,T),e.parentNode.insertBefore(i,e.nextSibling)}},{key:"start",value:function(){var e=this,t=this.image;t.onload=null,t.onerror=null,this.sizing=!0;var n=d.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(d.navigator.userAgent),r=function(t,n){we(e.imageData,{naturalWidth:t,naturalHeight:n,aspectRatio:t/n}),e.sizing=!1,e.sized=!0,e.build()};if(!t.naturalWidth||n){var i=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){r(i.width,i.height),n||o.removeChild(i)},i.src=t.src,n||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(i))}else r(t.naturalWidth,t.naturalHeight)}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var e=this.element,t=this.options,n=this.image,r=e.parentNode,i=document.createElement("div");i.innerHTML=le;var o=i.querySelector(".".concat(m,"-container")),a=o.querySelector(".".concat(m,"-canvas")),s=o.querySelector(".".concat(m,"-drag-box")),u=o.querySelector(".".concat(m,"-crop-box")),l=u.querySelector(".".concat(m,"-face"));this.container=r,this.cropper=o,this.canvas=a,this.dragBox=s,this.cropBox=u,this.viewBox=o.querySelector(".".concat(m,"-view-box")),this.face=l,a.appendChild(n),Ee(e,D),r.insertBefore(o,e.nextSibling),this.isImg||Oe(n,T),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,Ee(u,D),t.guides||Ee(u.getElementsByClassName("".concat(m,"-dashed")),D),t.center||Ee(u.getElementsByClassName("".concat(m,"-center")),D),t.background&&Ee(o,"".concat(m,"-bg")),t.highlight||Ee(l,P),t.cropBoxMovable&&(Ee(l,N),Me(l,I,g)),t.cropBoxResizable||(Ee(u.getElementsByClassName("".concat(m,"-line")),D),Ee(u.getElementsByClassName("".concat(m,"-point")),D)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),ve(t.ready)&&Fe(e,J,t.ready,{once:!0}),Le(e,J)}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),Oe(this.element,D))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=ft,e}},{key:"setDefaults",value:function(e){we(ue,ge(e)&&e)}}]),e}();return we(dt.prototype,ot,at,st,ut,lt,ct),dt}))},badf:function(e,t,n){var r=n("642a"),i=n("1838"),o=n("cd9d"),a=n("6747"),s=n("f9ce");function u(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}e.exports=u},bbc0:function(e,t,n){var r=n("6044"),i="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function s(e){var t=this.__data__;if(r){var n=t[e];return n===i?void 0:n}return a.call(t,e)?t[e]:void 0}e.exports=s},bc3a:function(e,t,n){e.exports=n("cee4")},c05f:function(e,t,n){var r=n("7b97"),i=n("1310");function o(e,t,n,a,s){return e===t||(null==e||null==t||!i(e)&&!i(t)?e!==e&&t!==t:r(e,t,n,a,o,s))}e.exports=o},c098:function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t=null==t?n:t,!!t&&("number"==i||"symbol"!=i&&r.test(e))&&e>-1&&e%1==0&&e<t}e.exports=i},c1c9:function(e,t,n){var r=n("a454"),i=n("f3c1"),o=i(r);e.exports=o},c2b6:function(e,t,n){var r=n("f8af"),i=n("5d89"),o=n("6f6c"),a=n("a2db"),s=n("c8fe"),u="[object Boolean]",l="[object Date]",c="[object Map]",f="[object Number]",d="[object RegExp]",h="[object Set]",p="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",v="[object DataView]",y="[object Float32Array]",b="[object Float64Array]",q="[object Int8Array]",w="[object Int16Array]",_="[object Int32Array]",x="[object Uint8Array]",S="[object Uint8ClampedArray]",k="[object Uint16Array]",C="[object Uint32Array]";function E(e,t,n){var E=e.constructor;switch(t){case g:return r(e);case u:case l:return new E(+e);case v:return i(e,n);case y:case b:case q:case w:case _:case x:case S:case k:case C:return s(e,n);case c:return new E;case f:case p:return new E(e);case d:return o(e);case h:return new E;case m:return a(e)}}e.exports=E},c345:function(e,t,n){"use strict";var r=n("c532"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},c3fc:function(e,t,n){var r=n("42a2"),i=n("1310"),o="[object Set]";function a(e){return i(e)&&r(e)==o}e.exports=a},c401:function(e,t,n){"use strict";var r=n("c532"),i=n("2444");e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},c532:function(e,t,n){"use strict";var r=n("1d2b"),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function u(e){return"[object ArrayBuffer]"===i.call(e)}function l(e){return"undefined"!==typeof FormData&&e instanceof FormData}function c(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function f(e){return"string"===typeof e}function d(e){return"number"===typeof e}function h(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function m(e){return"[object Date]"===i.call(e)}function g(e){return"[object File]"===i.call(e)}function v(e){return"[object Blob]"===i.call(e)}function y(e){return"[object Function]"===i.call(e)}function b(e){return h(e)&&y(e.pipe)}function q(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function w(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function _(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function x(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function S(){var e={};function t(t,n){p(e[n])&&p(t)?e[n]=S(e[n],t):p(t)?e[n]=S({},t):o(t)?e[n]=t.slice():e[n]=t}for(var n=0,r=arguments.length;n<r;n++)x(arguments[n],t);return e}function k(e,t,n){return x(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e}function C(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:o,isArrayBuffer:u,isBuffer:s,isFormData:l,isArrayBufferView:c,isString:f,isNumber:d,isObject:h,isPlainObject:p,isUndefined:a,isDate:m,isFile:g,isBlob:v,isFunction:y,isStream:b,isURLSearchParams:q,isStandardBrowserEnv:_,forEach:x,merge:S,extend:k,trim:w,stripBOM:C}},c565:function(e,t,n){"use strict";e.exports=n("8c74")},c584:function(e,t){function n(e,t){return e.has(t)}e.exports=n},c7ce:function(e,t,n){var r=n("c8d5");function i(e,t){var n=t&&Number(t.weekStartsOn)||0,i=r(e),o=i.getDay(),a=(o<n?7:0)+o-n;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}e.exports=i},c869:function(e,t,n){var r=n("0b07"),i=n("2b3e"),o=r(i,"Set");e.exports=o},c873:function(e,t,n){var r=n("c8d5");function i(e,t){var n=r(e),i=n.getTime(),o=r(t),a=o.getTime();return i>a?-1:i<a?1:0}e.exports=i},c87c:function(e,t){var n=Object.prototype,r=n.hasOwnProperty;function i(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&r.call(e,"index")&&(n.index=e.index,n.input=e.input),n}e.exports=i},c8af:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8d5:function(e,t,n){var r=n("a735"),i=36e5,o=6e4,a=2,s=/[T ]/,u=/:/,l=/^(\d{2})$/,c=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],f=/^(\d{4})/,d=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],h=/^-(\d{2})$/,p=/^-?(\d{3})$/,m=/^-?(\d{2})-?(\d{2})$/,g=/^-?W(\d{2})$/,v=/^-?W(\d{2})-?(\d{1})$/,y=/^(\d{2}([.,]\d*)?)$/,b=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,q=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,w=/([Z+-].*)$/,_=/^(Z)$/,x=/^([+-])(\d{2})$/,S=/^([+-])(\d{2}):?(\d{2})$/;function k(e,t){if(r(e))return new Date(e.getTime());if("string"!==typeof e)return new Date(e);var n=t||{},i=n.additionalDigits;i=null==i?a:Number(i);var s=C(e),u=E(s.date,i),l=u.year,c=u.restDateString,f=O(c,l);if(f){var d,h=f.getTime(),p=0;return s.time&&(p=A(s.time)),s.timezone?d=D(s.timezone):(d=new Date(h+p).getTimezoneOffset(),d=new Date(h+p+d*o).getTimezoneOffset()),new Date(h+p+d*o)}return new Date(e)}function C(e){var t,n={},r=e.split(s);if(u.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1]),t){var i=w.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}function E(e,t){var n,r=c[t],i=d[t];if(n=f.exec(e)||i.exec(e),n){var o=n[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(n=l.exec(e)||r.exec(e),n){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}function O(e,t){if(null===t)return null;var n,r,i,o;if(0===e.length)return r=new Date(0),r.setUTCFullYear(t),r;if(n=h.exec(e),n)return r=new Date(0),i=parseInt(n[1],10)-1,r.setUTCFullYear(t,i),r;if(n=p.exec(e),n){r=new Date(0);var a=parseInt(n[1],10);return r.setUTCFullYear(t,0,a),r}if(n=m.exec(e),n){r=new Date(0),i=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return r.setUTCFullYear(t,i,s),r}if(n=g.exec(e),n)return o=parseInt(n[1],10)-1,T(t,o);if(n=v.exec(e),n){o=parseInt(n[1],10)-1;var u=parseInt(n[2],10)-1;return T(t,o,u)}return null}function A(e){var t,n,r;if(t=y.exec(e),t)return n=parseFloat(t[1].replace(",",".")),n%24*i;if(t=b.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),n%24*i+r*o;if(t=q.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var a=parseFloat(t[3].replace(",","."));return n%24*i+r*o+1e3*a}return null}function D(e){var t,n;return t=_.exec(e),t?0:(t=x.exec(e),t?(n=60*parseInt(t[2],10),"+"===t[1]?-n:n):(t=S.exec(e),t?(n=60*parseInt(t[2],10)+parseInt(t[3],10),"+"===t[1]?-n:n):0))}function T(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=7*t+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}e.exports=k},c8fe:function(e,t,n){var r=n("f8af");function i(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}e.exports=i},cb5a:function(e,t,n){var r=n("9638");function i(e,t){var n=e.length;while(n--)if(r(e[n][0],t))return n;return-1}e.exports=i},cc45:function(e,t,n){var r=n("1a2d"),i=n("b047f"),o=n("99d3"),a=o&&o.isMap,s=a?i(a):r;e.exports=s},cd42:function(e,t,n){"use strict";n.d(t,"g",(function(){return r["d"]})),n.d(t,"h",(function(){return r["e"]})),n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return F})),n.d(t,"c",(function(){return U})),n.d(t,"d",(function(){return E})),n.d(t,"e",(function(){return D})),n.d(t,"f",(function(){return P}));var r=n("65e8"),i=n("41e5"),o=n("304a"),a=n("2eae");function s(e){return void 0===e&&(e={}),new r["d"]({view:function(t){return new u(t,e)}})}var u=function(e,t){var n=this;this.editorView=e,this.width=t.width||1,this.color=t.color||"black",this.class=t.class,this.cursorPos=null,this.element=null,this.timeout=null,this.handlers=["dragover","dragend","drop","dragleave"].map((function(t){var r=function(e){return n[t](e)};return e.dom.addEventListener(t,r),{name:t,handler:r}}))};u.prototype.destroy=function(){var e=this;this.handlers.forEach((function(t){var n=t.name,r=t.handler;return e.editorView.dom.removeEventListener(n,r)}))},u.prototype.update=function(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&this.updateOverlay()},u.prototype.setCursor=function(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())},u.prototype.updateOverlay=function(){var e,t=this.editorView.state.doc.resolve(this.cursorPos);if(!t.parent.inlineContent){var n=t.nodeBefore,r=t.nodeAfter;if(n||r){var i=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0)).getBoundingClientRect(),o=n?i.bottom:i.top;n&&r&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:i.left,right:i.right,top:o-this.width/2,bottom:o+this.width/2}}}if(!e){var a=this.editorView.coordsAtPos(this.cursorPos);e={left:a.left-this.width/2,right:a.left+this.width/2,top:a.top,bottom:a.bottom}}var s=this.editorView.dom.offsetParent;this.element||(this.element=s.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none; background-color: "+this.color);var u=!s||s==document.body&&"static"==getComputedStyle(s).position?{left:-pageXOffset,top:-pageYOffset}:s.getBoundingClientRect();this.element.style.left=e.left-u.left+"px",this.element.style.top=e.top-u.top+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"},u.prototype.scheduleRemoval=function(e){var t=this;clearTimeout(this.timeout),this.timeout=setTimeout((function(){return t.setCursor(null)}),e)},u.prototype.dragover=function(e){if(this.editorView.editable){var t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY});if(t){var n=t.pos;this.editorView.dragging&&this.editorView.dragging.slice&&(n=Object(a["h"])(this.editorView.state.doc,n,this.editorView.dragging.slice),null==n&&(n=t.pos)),this.setCursor(n),this.scheduleRemoval(5e3)}}},u.prototype.dragend=function(){this.scheduleRemoval(20)},u.prototype.drop=function(){this.scheduleRemoval(20)},u.prototype.dragleave=function(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)};var l=n("7f06"),c=function(e){function t(t){e.call(this,t,t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,r){var i=n.resolve(r.map(this.head));return t.valid(i)?new t(i):e.near(i)},t.prototype.content=function(){return o["j"].empty},t.prototype.eq=function(e){return e instanceof t&&e.head==this.head},t.prototype.toJSON=function(){return{type:"gapcursor",pos:this.head}},t.fromJSON=function(e,n){if("number"!=typeof n.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new t(e.resolve(n.pos))},t.prototype.getBookmark=function(){return new f(this.anchor)},t.valid=function(e){var t=e.parent;if(t.isTextblock||!d(e)||!h(e))return!1;var n=t.type.spec.allowGapCursor;if(null!=n)return n;var r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock},t.findFrom=function(e,n,i){e:for(;;){if(!i&&t.valid(e))return e;for(var o=e.pos,a=null,s=e.depth;;s--){var u=e.node(s);if(n>0?e.indexAfter(s)<u.childCount:e.index(s)>0){a=u.child(n>0?e.indexAfter(s):e.index(s)-1);break}if(0==s)return null;o+=n;var l=e.doc.resolve(o);if(t.valid(l))return l}for(;;){var c=n>0?a.firstChild:a.lastChild;if(!c){if(a.isAtom&&!a.isText&&!r["c"].isSelectable(a)){e=e.doc.resolve(o+a.nodeSize*n),i=!1;continue e}break}a=c,o+=n;var f=e.doc.resolve(o);if(t.valid(f))return f}return null}},t}(r["f"]);c.prototype.visible=!1,r["f"].jsonID("gapcursor",c);var f=function(e){this.pos=e};function d(e){for(var t=e.depth;t>=0;t--){var n=e.index(t);if(0!=n)for(var r=e.node(t).child(n-1);;r=r.lastChild){if(0==r.childCount&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function h(e){for(var t=e.depth;t>=0;t--){var n=e.indexAfter(t),r=e.node(t);if(n!=r.childCount)for(var i=r.child(n);;i=i.firstChild){if(0==i.childCount&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}f.prototype.map=function(e){return new f(e.map(this.pos))},f.prototype.resolve=function(e){var t=e.resolve(this.pos);return c.valid(t)?new c(t):r["f"].near(t)};var p=function(){return new r["d"]({props:{decorations:y,createSelectionBetween:function(e,t,n){if(t.pos==n.pos&&c.valid(n))return new c(n)},handleClick:v,handleKeyDown:m}})},m=Object(l["a"])({ArrowLeft:g("horiz",-1),ArrowRight:g("horiz",1),ArrowUp:g("vert",-1),ArrowDown:g("vert",1)});function g(e,t){var n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,i,o){var a=e.selection,s=t>0?a.$to:a.$from,u=a.empty;if(a instanceof r["h"]){if(!o.endOfTextblock(n)||0==s.depth)return!1;u=!1,s=e.doc.resolve(t>0?s.after():s.before())}var l=c.findFrom(s,t,u);return!!l&&(i&&i(e.tr.setSelection(new c(l))),!0)}}function v(e,t,n){if(!e.editable)return!1;var i=e.state.doc.resolve(t);if(!c.valid(i))return!1;var o=e.posAtCoords({left:n.clientX,top:n.clientY}),a=o.inside;return!(a>-1&&r["c"].isSelectable(e.state.doc.nodeAt(a)))&&(e.dispatch(e.state.tr.setSelection(new c(i))),!0)}function y(e){if(!(e.selection instanceof c))return null;var t=document.createElement("div");return t.className="ProseMirror-gapcursor",i["b"].create(e.doc,[i["a"].widget(e.selection.head,t,{key:"gapcursor"})])}var b=n("0010"),q=n("f95e"),w=n("a15f"),_=n("a026"),x=n("a9de");
+/*!
+ * tiptap v1.32.1
+ * (c) 2021 überdosis GbR (limited liability)
+ * @license MIT
+ */
+function S(e){return e.replace(/(?:^\w|[A-Z]|\b\w)/g,(e,t)=>0===t?e.toLowerCase():e.toUpperCase()).replace(/\s+/g,"")}class k{constructor(e,{editor:t,extension:n,parent:r,node:i,view:o,decorations:a,getPos:s}){this.component=e,this.editor=t,this.extension=n,this.parent=r,this.node=i,this.view=o,this.decorations=a,this.isNode=!!this.node.marks,this.isMark=!this.isNode,this.getPos=this.isMark?this.getMarkPos:s,this.captureEvents=!0,this.dom=this.createDOM(),this.contentDOM=this.vm.$refs.content}createDOM(){const e=_["a"].extend(this.component),t={editor:this.editor,node:this.node,view:this.view,getPos:()=>this.getPos(),decorations:this.decorations,selected:!1,options:this.extension.options,updateAttrs:e=>this.updateAttrs(e)};return"function"===typeof this.extension.setSelection&&(this.setSelection=this.extension.setSelection),"function"===typeof this.extension.update&&(this.update=this.extension.update),this.vm=new e({parent:this.parent,propsData:t}).$mount(),this.vm.$el}update(e,t){return e.type===this.node.type&&(e===this.node&&this.decorations===t||(this.node=e,this.decorations=t,this.updateComponentProps({node:e,decorations:t})),!0)}updateComponentProps(e){if(!this.vm._props)return;const t=_["a"].config.silent;_["a"].config.silent=!0,Object.entries(e).forEach(([e,t])=>{this.vm._props[e]=t}),_["a"].config.silent=t}updateAttrs(e){if(!this.view.editable)return;const{state:t}=this.view,{type:n}=this.node,r=this.getPos(),i={...this.node.attrs,...e},o=this.isMark?t.tr.removeMark(r.from,r.to,n).addMark(r.from,r.to,n.create(i)):t.tr.setNodeMarkup(r,null,i);this.view.dispatch(o)}ignoreMutation(e){return"selection"!==e.type&&(!this.contentDOM||!this.contentDOM.contains(e.target))}stopEvent(e){if("function"===typeof this.extension.stopEvent)return this.extension.stopEvent(e);const t=!!this.extension.schema.draggable;if(t&&"mousedown"===e.type){const t=e.target.closest&&e.target.closest("[data-drag-handle]"),n=t&&(this.dom===t||this.dom.contains(t));n&&(this.captureEvents=!1,document.addEventListener("dragend",()=>{this.captureEvents=!0},{once:!0}))}const n="copy"===e.type,r="paste"===e.type,i="cut"===e.type,o=e.type.startsWith("drag")||"drop"===e.type;return!(t&&o||n||r||i)&&this.captureEvents}selectNode(){this.updateComponentProps({selected:!0})}deselectNode(){this.updateComponentProps({selected:!1})}getMarkPos(){const e=this.view.posAtDOM(this.dom),t=this.view.state.doc.resolve(e),n=Object(w["e"])(t,this.node.type);return n}destroy(){this.vm.$destroy()}}class C{on(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}emit(e,...t){this._callbacks=this._callbacks||{};const n=this._callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){if(arguments.length){const n=this._callbacks?this._callbacks[e]:null;n&&(t?this._callbacks[e]=n.filter(e=>e!==t):delete this._callbacks[e])}else this._callbacks={};return this}}class E{constructor(e={}){this.options={...this.defaultOptions,...e}}init(){return null}bindEditor(e=null){this.editor=e}get name(){return null}get type(){return"extension"}get defaultOptions(){return{}}get plugins(){return[]}inputRules(){return[]}pasteRules(){return[]}keys(){return{}}}class O{constructor(e=[],t){e.forEach(e=>{e.bindEditor(t),e.init()}),this.extensions=e}get nodes(){return this.extensions.filter(e=>"node"===e.type).reduce((e,{name:t,schema:n})=>({...e,[t]:n}),{})}get options(){const{view:e}=this;return this.extensions.reduce((t,n)=>({...t,[n.name]:new Proxy(n.options,{set(t,n,r){const i=t[n]!==r;return Object.assign(t,{[n]:r}),i&&e.updateState(e.state),!0}})}),{})}get marks(){return this.extensions.filter(e=>"mark"===e.type).reduce((e,{name:t,schema:n})=>({...e,[t]:n}),{})}get plugins(){return this.extensions.filter(e=>e.plugins).reduce((e,{plugins:t})=>[...e,...t],[])}keymaps({schema:e}){const t=this.extensions.filter(e=>["extension"].includes(e.type)).filter(e=>e.keys).map(t=>t.keys({schema:e})),n=this.extensions.filter(e=>["node","mark"].includes(e.type)).filter(e=>e.keys).map(t=>t.keys({type:e[t.type+"s"][t.name],schema:e}));return[...t,...n].map(e=>Object(l["b"])(e))}inputRules({schema:e,excludedExtensions:t}){if(!(t instanceof Array)&&t)return[];const n=t instanceof Array?this.extensions.filter(e=>!t.includes(e.name)):this.extensions,r=n.filter(e=>["extension"].includes(e.type)).filter(e=>e.inputRules).map(t=>t.inputRules({schema:e})),i=n.filter(e=>["node","mark"].includes(e.type)).filter(e=>e.inputRules).map(t=>t.inputRules({type:e[t.type+"s"][t.name],schema:e}));return[...r,...i].reduce((e,t)=>[...e,...t],[])}pasteRules({schema:e,excludedExtensions:t}){if(!(t instanceof Array)&&t)return[];const n=t instanceof Array?this.extensions.filter(e=>!t.includes(e.name)):this.extensions,r=n.filter(e=>["extension"].includes(e.type)).filter(e=>e.pasteRules).map(t=>t.pasteRules({schema:e})),i=n.filter(e=>["node","mark"].includes(e.type)).filter(e=>e.pasteRules).map(t=>t.pasteRules({type:e[t.type+"s"][t.name],schema:e}));return[...r,...i].reduce((e,t)=>[...e,...t],[])}commands({schema:e,view:t}){return this.extensions.filter(e=>e.commands).reduce((n,r)=>{const{name:i,type:o}=r,a={},s=r.commands({schema:e,...["node","mark"].includes(o)?{type:e[o+"s"][i]}:{}}),u=(e,n)=>!!t.editable&&(t.focus(),e(n)(t.state,t.dispatch,t)),l=(e,t)=>{Array.isArray(t)?a[e]=e=>t.forEach(t=>u(t,e)):"function"===typeof t&&(a[e]=e=>u(t,e))};return"object"===typeof s?Object.entries(s).forEach(([e,t])=>{l(e,t)}):l(i,s),{...n,...a}},{})}}function A(e){{const t=document.createElement("style");t.type="text/css",t.textContent=e;const{head:n}=document,{firstChild:r}=n;r?n.insertBefore(t,r):n.appendChild(t)}}class D extends E{constructor(e={}){super(e)}get type(){return"mark"}get view(){return null}get schema(){return null}command(){return()=>{}}}function T(e=0,t=0,n=0){return Math.min(Math.max(parseInt(e,10),t),n)}class P extends E{constructor(e={}){super(e)}get type(){return"node"}get view(){return null}get schema(){return null}command(){return()=>{}}}class M extends P{get name(){return"doc"}get schema(){return{content:"block+"}}}class N extends P{get name(){return"paragraph"}get schema(){return{content:"inline*",group:"block",draggable:!1,parseDOM:[{tag:"p"}],toDOM:()=>["p",0]}}commands({type:e}){return()=>Object(x["k"])(e)}}class I extends P{get name(){return"text"}get schema(){return{group:"inline"}}}var R='.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n';class j extends C{constructor(e={}){super(),this.defaultOptions={editorProps:{},editable:!0,autoFocus:null,extensions:[],content:"",topNode:"doc",emptyDocument:{type:"doc",content:[{type:"paragraph"}]},useBuiltInExtensions:!0,disableInputRules:!1,disablePasteRules:!1,dropCursor:{},enableDropCursor:!0,enableGapCursor:!0,parseOptions:{},injectCSS:!0,onInit:()=>{},onTransaction:()=>{},onUpdate:()=>{},onFocus:()=>{},onBlur:()=>{},onPaste:()=>{},onDrop:()=>{}},this.events=["init","transaction","update","focus","blur","paste","drop"],this.init(e)}init(e={}){this.setOptions({...this.defaultOptions,...e}),this.focused=!1,this.selection={from:0,to:0},this.element=document.createElement("div"),this.extensions=this.createExtensions(),this.nodes=this.createNodes(),this.marks=this.createMarks(),this.schema=this.createSchema(),this.plugins=this.createPlugins(),this.keymaps=this.createKeymaps(),this.inputRules=this.createInputRules(),this.pasteRules=this.createPasteRules(),this.view=this.createView(),this.commands=this.createCommands(),this.setActiveNodesAndMarks(),this.options.injectCSS&&A(R),null!==this.options.autoFocus&&this.focus(this.options.autoFocus),this.events.forEach(e=>{this.on(e,this.options[S("on "+e)]||(()=>{}))}),this.emit("init",{view:this.view,state:this.state}),this.extensions.view=this.view}setOptions(e){this.options={...this.options,...e},this.view&&this.state&&this.view.updateState(this.state)}get builtInExtensions(){return this.options.useBuiltInExtensions?[new M,new I,new N]:[]}get state(){return this.view?this.view.state:null}createExtensions(){return new O([...this.builtInExtensions,...this.options.extensions],this)}createPlugins(){return this.extensions.plugins}createKeymaps(){return this.extensions.keymaps({schema:this.schema})}createInputRules(){return this.extensions.inputRules({schema:this.schema,excludedExtensions:this.options.disableInputRules})}createPasteRules(){return this.extensions.pasteRules({schema:this.schema,excludedExtensions:this.options.disablePasteRules})}createCommands(){return this.extensions.commands({schema:this.schema,view:this.view})}createNodes(){return this.extensions.nodes}createMarks(){return this.extensions.marks}createSchema(){return new o["i"]({topNode:this.options.topNode,nodes:this.nodes,marks:this.marks})}createState(){return r["b"].create({schema:this.schema,doc:this.createDocument(this.options.content),plugins:[...this.plugins,Object(q["b"])({rules:this.inputRules}),...this.pasteRules,...this.keymaps,Object(l["b"])({Backspace:q["d"]}),Object(l["b"])(b["a"]),...this.options.enableDropCursor?[s(this.options.dropCursor)]:[],...this.options.enableGapCursor?[p()]:[],new r["d"]({key:new r["e"]("editable"),props:{editable:()=>this.options.editable}}),new r["d"]({props:{attributes:{tabindex:0},handleDOMEvents:{focus:(e,t)=>{this.focused=!0,this.emit("focus",{event:t,state:e.state,view:e});const n=this.state.tr.setMeta("focused",!0);this.view.dispatch(n)},blur:(e,t)=>{this.focused=!1,this.emit("blur",{event:t,state:e.state,view:e});const n=this.state.tr.setMeta("focused",!1);this.view.dispatch(n)}}}}),new r["d"]({props:this.options.editorProps})]})}createDocument(e,t=this.options.parseOptions){if(null===e)return this.schema.nodeFromJSON(this.options.emptyDocument);if("object"===typeof e)try{return this.schema.nodeFromJSON(e)}catch(n){return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",n),this.schema.nodeFromJSON(this.options.emptyDocument)}if("string"===typeof e){const n=`<div>${e}</div>`,r=new window.DOMParser,i=r.parseFromString(n,"text/html").body.firstElementChild;return o["a"].fromSchema(this.schema).parse(i,t)}return!1}createView(){return new i["c"](this.element,{state:this.createState(),handlePaste:(...e)=>{this.emit("paste",...e)},handleDrop:(...e)=>{this.emit("drop",...e)},dispatchTransaction:this.dispatchTransaction.bind(this)})}setParentComponent(e=null){e&&this.view.setProps({nodeViews:this.initNodeViews({parent:e,extensions:[...this.builtInExtensions,...this.options.extensions]})})}initNodeViews({parent:e,extensions:t}){return t.filter(e=>["node","mark"].includes(e.type)).filter(e=>e.view).reduce((t,n)=>{const r=(t,r,i,o)=>{const a=n.view;return new k(a,{editor:this,extension:n,parent:e,node:t,view:r,getPos:i,decorations:o})};return{...t,[n.name]:r}},{})}dispatchTransaction(e){const t=this.state.apply(e);this.view.updateState(t),this.selection={from:this.state.selection.from,to:this.state.selection.to},this.setActiveNodesAndMarks(),this.emit("transaction",{getHTML:this.getHTML.bind(this),getJSON:this.getJSON.bind(this),state:this.state,transaction:e}),e.docChanged&&!e.getMeta("preventUpdate")&&this.emitUpdate(e)}emitUpdate(e){this.emit("update",{getHTML:this.getHTML.bind(this),getJSON:this.getJSON.bind(this),state:this.state,transaction:e})}resolveSelection(e=null){if(this.selection&&null===e)return this.selection;if("start"===e||!0===e)return{from:0,to:0};if("end"===e){const{doc:e}=this.state;return{from:e.content.size,to:e.content.size}}return{from:e,to:e}}focus(e=null){if(this.view.focused&&null===e||!1===e)return;const{from:t,to:n}=this.resolveSelection(e);this.setSelection(t,n),setTimeout(()=>this.view.focus(),10)}setSelection(e=0,t=0){const{doc:n,tr:i}=this.state,o=T(e,0,n.content.size),a=T(t,0,n.content.size),s=r["h"].create(n,o,a),u=i.setSelection(s);this.view.dispatch(u)}blur(){this.view.dom.blur()}getSchemaJSON(){return JSON.parse(JSON.stringify({nodes:this.extensions.nodes,marks:this.extensions.marks}))}getHTML(){const e=document.createElement("div"),t=o["b"].fromSchema(this.schema).serializeFragment(this.state.doc.content);return e.appendChild(t),e.innerHTML}getJSON(){return this.state.doc.toJSON()}setContent(e={},t=!1,n){const{doc:i,tr:o}=this.state,a=this.createDocument(e,n),s=r["h"].create(i,0,i.content.size),u=o.setSelection(s).replaceSelectionWith(a,!1).setMeta("preventUpdate",!t);this.view.dispatch(u)}clearContent(e=!1){this.setContent(this.options.emptyDocument,e)}setActiveNodesAndMarks(){this.activeMarks=Object.entries(this.schema.marks).reduce((e,[t,n])=>({...e,[t]:(e={})=>Object(w["g"])(this.state,n,e)}),{}),this.activeMarkAttrs=Object.entries(this.schema.marks).reduce((e,[t,n])=>({...e,[t]:Object(w["d"])(this.state,n)}),{}),this.activeNodes=Object.entries(this.schema.nodes).reduce((e,[t,n])=>({...e,[t]:(e={})=>Object(w["i"])(this.state,n,e)}),{})}getMarkAttrs(e=null){return this.activeMarkAttrs[e]}getNodeAttrs(e=null){return{...Object(w["f"])(this.state,this.schema.nodes[e])}}get isActive(){return Object.entries({...this.activeMarks,...this.activeNodes}).reduce((e,[t,n])=>({...e,[t]:(e={})=>n(e)}),{})}registerPlugin(e=null,t){const n="function"===typeof t?t(e,this.state.plugins):[e,...this.state.plugins],r=this.state.reconfigure({plugins:n});this.view.updateState(r)}unregisterPlugin(e=null){if(!e||!this.view.docView)return;const t=this.state.reconfigure({plugins:this.state.plugins.filter(t=>!t.key.startsWith(e+"$"))});this.view.updateState(t)}destroy(){this.view&&this.view.destroy()}}var F={props:{editor:{default:null,type:Object}},watch:{editor:{immediate:!0,handler(e){e&&e.element&&this.$nextTick(()=>{this.$el.appendChild(e.element.firstChild),e.setParentComponent(this)})}}},render(e){return e("div")},beforeDestroy(){this.editor.element=this.$el}};class L{constructor({options:e}){this.options=e,this.preventHide=!1,this.mousedownHandler=this.handleClick.bind(this),this.options.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.blurHandler=()=>{this.preventHide?this.preventHide=!1:this.options.editor.emit("menubar:focusUpdate",!1)},this.options.editor.on("blur",this.blurHandler)}handleClick(){this.preventHide=!0}destroy(){this.options.element.removeEventListener("mousedown",this.mousedownHandler),this.options.editor.off("blur",this.blurHandler)}}function B(e){return new r["d"]({key:new r["e"]("menu_bar"),view(t){return new L({editorView:t,options:e})}})}var U={props:{editor:{default:null,type:Object}},data(){return{focused:!1}},watch:{editor:{immediate:!0,handler(e){e&&this.$nextTick(()=>{e.registerPlugin(B({editor:e,element:this.$el})),this.focused=e.focused,e.on("focus",()=>{this.focused=!0}),e.on("menubar:focusUpdate",e=>{this.focused=e})})}}},render(){return this.editor?this.$scopedSlots.default({focused:this.focused,focus:this.editor.focus,commands:this.editor.commands,isActive:this.editor.isActive,getMarkAttrs:this.editor.getMarkAttrs.bind(this.editor),getNodeAttrs:this.editor.getNodeAttrs.bind(this.editor)}):null}};function z(e,t,n){const r=document.createRange();return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,Math.max(t,0)),r}function H(e,t){const n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}function $(e,t,n=!1){const{node:r,offset:i}=e.docView.domFromPos(t);let o,a;if(3===r.nodeType)n&&i<r.nodeValue.length?(a=H(z(r,i-1,i),-1),o="right"):i<r.nodeValue.length&&(a=H(z(r,i,i+1),-1),o="left");else if(r.firstChild){if(i<r.childNodes.length){const e=r.childNodes[i];a=H(3===e.nodeType?z(e):e,-1),o="left"}if((!a||a.top===a.bottom)&&i){const e=r.childNodes[i-1];a=H(3===e.nodeType?z(e):e,1),o="right"}}else a=r.getBoundingClientRect(),o="left";const s=a[o];return{top:a.top,bottom:a.bottom,left:s,right:s}}class V{constructor({options:e,editorView:t}){this.options={element:null,keepInBounds:!0,onUpdate:()=>!1,...e},this.editorView=t,this.isActive=!1,this.left=0,this.bottom=0,this.top=0,this.preventHide=!1,this.mousedownHandler=this.handleClick.bind(this),this.options.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.focusHandler=({view:e})=>{this.update(e)},this.options.editor.on("focus",this.focusHandler),this.blurHandler=({event:e})=>{this.preventHide?this.preventHide=!1:this.hide(e)},this.options.editor.on("blur",this.blurHandler)}handleClick(){this.preventHide=!0}update(e,t){const{state:n}=e;if(e.composing)return;if(t&&t.doc.eq(n.doc)&&t.selection.eq(n.selection))return;if(n.selection.empty)return void this.hide();const{from:r,to:i}=n.selection,o=$(e,r),a=$(e,i,!0),s=this.options.element.offsetParent;if(!s)return void this.hide();const u=s.getBoundingClientRect(),l=this.options.element.getBoundingClientRect(),c=(o.left+a.left)/2-u.left;this.left=Math.round(this.options.keepInBounds?Math.min(u.width-l.width/2,Math.max(c,l.width/2)):c),this.bottom=Math.round(u.bottom-o.top),this.top=Math.round(a.bottom-u.top),this.isActive=!0,this.sendUpdate()}sendUpdate(){this.options.onUpdate({isActive:this.isActive,left:this.left,bottom:this.bottom,top:this.top})}hide(e){e&&e.relatedTarget&&this.options.element.parentNode&&this.options.element.parentNode.contains(e.relatedTarget)||(this.isActive=!1,this.sendUpdate())}destroy(){this.options.element.removeEventListener("mousedown",this.mousedownHandler),this.options.editor.off("focus",this.focusHandler),this.options.editor.off("blur",this.blurHandler)}}function W(e){return new r["d"]({key:new r["e"]("menu_bubble"),view(t){return new V({editorView:t,options:e})}})}Boolean},cd9d:function(e,t){function n(e){return e}e.exports=n},ce86:function(e,t,n){var r=n("9e69"),i=n("7948"),o=n("6747"),a=n("ffd6"),s=1/0,u=r?r.prototype:void 0,l=u?u.toString:void 0;function c(e){if("string"==typeof e)return e;if(o(e))return i(e,c)+"";if(a(e))return l?l.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}e.exports=c},cee4:function(e,t,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),a=n("4a7b"),s=n("2444");function u(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var l=u(s);l.Axios=o,l.create=function(e){return u(a(l.defaults,e))},l.Cancel=n("7a775"),l.CancelToken=n("8df4"),l.isCancel=n("2e67"),l.all=function(e){return Promise.all(e)},l.spread=n("0df6"),l.isAxiosError=n("5f02"),e.exports=l,e.exports.default=l},cf063:function(e,t,n){
+/* flatpickr v4.3.2, @license MIT */
+(function(e,n){n(t)})(0,(function(e){"use strict";
+/*! *****************************************************************************
+Copyright (c) Microsoft Corporation. All rights reserved.
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at http://www.apache.org/licenses/LICENSE-2.0
+
+THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
+WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
+MERCHANTABLITY OR NON-INFRINGEMENT.
+
+See the Apache Version 2.0 License for specific language governing permissions
+and limitations under the License.
+***************************************************************************** */var t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n=function(e){return("0"+e).slice(-2)},r=function(e){return!0===e?1:0};function i(e,t,n){var r;return void 0===n&&(n=!1),function(){var i=this,o=arguments;null!==r&&clearTimeout(r),r=window.setTimeout((function(){r=null,n||e.apply(i,o)}),t),n&&!r&&e.apply(i,o)}}var o=function(e){return e instanceof Array?e:[e]},a=function(){},s={D:a,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*r(new RegExp(n.amPM[1],"i").test(t)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t){var n=parseInt(t);return new Date(e.getFullYear(),0,2+7*(n-1),0,0,0,0)},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:a,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},w:a,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},u={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},l={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[l.w(e,t,n)]},F:function(e,t,n){return p(l.n(e,t,n)-1,!1,t)},G:function(e,t,r){return n(l.h(e,t,r))},H:function(e){return n(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[r(e.getHours()>11)]},M:function(e,t){return p(e.getMonth(),!0,t)},S:function(e){return n(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return n(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return n(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return n(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},c={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"]},f=function(e){var t=e.config,n=void 0===t?v:t,r=e.l10n,i=void 0===r?c:r;return function(e,t,r){if(void 0!==n.formatDate)return n.formatDate(e,t);var o=r||i;return t.split("").map((function(t,r,i){return l[t]&&"\\"!==i[r-1]?l[t](e,o,n):"\\"!==t?t:""})).join("")}},d=function(e){var t=e.config,n=void 0===t?v:t,r=e.l10n,i=void 0===r?c:r;return function(e,t,r){if(0===e||e){var o,a=e;if(e instanceof Date)o=new Date(e.getTime());else if("string"!==typeof e&&void 0!==e.toFixed)o=new Date(e);else if("string"===typeof e){var l=t||(n||v).dateFormat,c=String(e).trim();if("today"===c)o=new Date,r=!0;else if(/Z$/.test(c)||/GMT$/.test(c))o=new Date(e);else if(n&&n.parseDate)o=n.parseDate(e,l);else{o=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var f=void 0,d=[],h=0,p=0,m="";h<l.length;h++){var g=l[h],y="\\"===g,b="\\"===l[h-1]||y;if(u[g]&&!b){m+=u[g];var q=new RegExp(m).exec(e);q&&(f=!0)&&d["Y"!==g?"push":"unshift"]({fn:s[g],val:q[++p]})}else y||(m+=".");d.forEach((function(e){var t=e.fn,n=e.val;return o=t(o,n,i)||o}))}o=f?o:void 0}}if(o instanceof Date)return!0===r&&o.setHours(0,0,0,0),o;n.errorHandler(new Error("Invalid date provided: "+a))}}};function h(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var p=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},m=function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},g={DAY:864e5},v={_disable:[],_enable:[],allowInput:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"===typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:console.warn,getWeek:m,hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1};function y(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function b(e,t,n){var r=window.document.createElement(e);return t=t||"",n=n||"",r.className=t,void 0!==n&&(r.textContent=n),r}function q(e){while(e.firstChild)e.removeChild(e.firstChild)}function w(e,t){return t(e)?e:e.parentNode?w(e.parentNode,t):void 0}function _(e,t){var n=b("div","numInputWrapper"),r=b("input","numInput "+e),i=b("span","arrowUp"),o=b("span","arrowDown");if(r.type="text",r.pattern="\\d*",void 0!==t)for(var a in t)r.setAttribute(a,t[a]);return n.appendChild(r),n.appendChild(i),n.appendChild(o),n}"function"!==typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var r=function(t){t&&Object.keys(t).forEach((function(n){return e[n]=t[n]}))},i=0,o=t;i<o.length;i++){var a=o[i];r(a)}return e});var x,S=300;function k(e,a){var s={config:t({},x.defaultConfig),l10n:c};function l(){s.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=s.currentMonth),void 0===t&&(t=s.currentYear),1===e&&(t%4===0&&t%100!==0||t%400===0)?29:s.l10n.daysInMonth[e]}}}function m(){s.element=s.input=e,s.isOpen=!1,ae(),se(),ye(),ve(),l(),s.isMobile||L(),I(),(s.selectedDates.length||s.config.noCalendar)&&(s.config.enableTime&&A(s.config.noCalendar?s.latestSelectedDateObj||s.config.minDate:void 0),Ce(!1)),s.showTimeInput=s.selectedDates.length>0||s.config.noCalendar,void 0!==s.weekWrapper&&void 0!==s.daysContainer&&(s.calendarContainer.style.visibility="hidden",s.calendarContainer.style.display="block",s.calendarContainer.style.width=s.daysContainer.offsetWidth+s.weekWrapper.offsetWidth+"px",s.calendarContainer.style.visibility="visible",s.calendarContainer.style.display=null);var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!s.isMobile&&t&&ue(),we("onReady")}function v(e){return e.bind(s)}function k(e){s.config.noCalendar&&0===s.selectedDates.length&&(s.setDate(void 0!==s.config.minDate?new Date(s.config.minDate.getTime()):(new Date).setHours(s.config.defaultHour,s.config.defaultMinute,s.config.defaultSeconds,0),!1),O(),Ce()),Oe(e),0!==s.selectedDates.length&&("input"!==e.type?(O(),Ce()):setTimeout((function(){O(),Ce()}),S))}function C(e,t){return e%12+12*r(t===s.l10n.amPM[1])}function E(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}function O(){if(void 0!==s.hourElement&&void 0!==s.minuteElement){var e=(parseInt(s.hourElement.value.slice(-2),10)||0)%24,t=(parseInt(s.minuteElement.value,10)||0)%60,n=void 0!==s.secondElement?(parseInt(s.secondElement.value,10)||0)%60:0;void 0!==s.amPM&&(e=C(e,s.amPM.textContent));var r=void 0!==s.config.minTime||s.config.minDate&&s.minDateHasTime&&s.latestSelectedDateObj&&0===h(s.latestSelectedDateObj,s.config.minDate,!0),i=void 0!==s.config.maxTime||s.config.maxDate&&s.maxDateHasTime&&s.latestSelectedDateObj&&0===h(s.latestSelectedDateObj,s.config.maxDate,!0);if(i){var o=void 0!==s.config.maxTime?s.config.maxTime:s.config.maxDate;e=Math.min(e,o.getHours()),e===o.getHours()&&(t=Math.min(t,o.getMinutes()))}if(r){var a=void 0!==s.config.minTime?s.config.minTime:s.config.minDate;e=Math.max(e,a.getHours()),e===a.getHours()&&(t=Math.max(t,a.getMinutes()))}D(e,t,n)}}function A(e){var t=e||s.latestSelectedDateObj;t&&D(t.getHours(),t.getMinutes(),t.getSeconds())}function D(e,t,i){void 0!==s.latestSelectedDateObj&&s.latestSelectedDateObj.setHours(e%24,t,i||0,0),s.hourElement&&s.minuteElement&&!s.isMobile&&(s.hourElement.value=n(s.config.time_24hr?e:(12+e)%12+12*r(e%12===0)),s.minuteElement.value=n(t),void 0!==s.amPM&&(s.amPM.textContent=s.l10n.amPM[r(e>=12)]),void 0!==s.secondElement&&(s.secondElement.value=n(i)))}function T(e){var t=parseInt(e.target.value)+(e.delta||0);4!==t.toString().length&&"Enter"!==e.key||(s.currentYearElement.blur(),/[^\d]/.test(t.toString())||Q(t))}function P(e,t,n,r){return t instanceof Array?t.forEach((function(t){return P(e,t,n,r)})):e instanceof Array?e.forEach((function(e){return P(e,t,n,r)})):(e.addEventListener(t,n,r),void s._handlers.push({element:e,event:t,handler:n}))}function M(e){return function(t){1===t.which&&e(t)}}function N(){we("onChange")}function I(){if(s.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(s.element.querySelectorAll("[data-"+e+"]"),(function(t){return P(t,"click",s[e])}))})),s.isMobile)be();else{var e=i(re,50);if(s._debouncedChange=i(N,S),s.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&P(s.daysContainer,"mouseover",(function(e){"range"===s.config.mode&&ne(e.target)})),P(window.document.body,"keydown",te),s.config.static||P(s._input,"keydown",te),s.config.inline||s.config.static||P(window,"resize",e),void 0!==window.ontouchstart&&P(window.document,"touchstart",Z),P(window.document,"mousedown",M(Z)),P(window.document,"focus",Z,{capture:!0}),!0===s.config.clickOpens&&(P(s._input,"focus",s.open),P(s._input,"mousedown",M(s.open))),void 0!==s.daysContainer&&(P(s.monthNav,"mousedown",M(Ee)),P(s.monthNav,["keyup","increment"],T),P(s.daysContainer,"mousedown",M(fe))),void 0!==s.timeContainer&&void 0!==s.minuteElement&&void 0!==s.hourElement){var t=function(e){return e.target.select()};P(s.timeContainer,["input","increment"],k),P(s.timeContainer,"mousedown",M(j)),P(s.timeContainer,["input","increment"],s._debouncedChange,{passive:!0}),P([s.hourElement,s.minuteElement],["focus","click"],t),void 0!==s.secondElement&&P(s.secondElement,"focus",(function(){return s.secondElement&&s.secondElement.select()})),void 0!==s.amPM&&P(s.amPM,"mousedown",M((function(e){k(e),N()})))}}}function R(e){var t=void 0!==e?s.parseDate(e):s.latestSelectedDateObj||(s.config.minDate&&s.config.minDate>s.now?s.config.minDate:s.config.maxDate&&s.config.maxDate<s.now?s.config.maxDate:s.now);try{void 0!==t&&(s.currentYear=t.getFullYear(),s.currentMonth=t.getMonth())}catch(n){n.message="Invalid date supplied: "+t,s.config.errorHandler(n)}s.redraw()}function j(e){~e.target.className.indexOf("arrow")&&F(e,e.target.classList.contains("arrowUp")?1:-1)}function F(e,t,n){var r=e&&e.target,i=n||r&&r.parentNode&&r.parentNode.firstChild,o=_e("increment");o.delta=t,i&&i.dispatchEvent(o)}function L(){var e=window.document.createDocumentFragment();if(s.calendarContainer=b("div","flatpickr-calendar"),s.calendarContainer.tabIndex=-1,!s.config.noCalendar){if(e.appendChild(H()),s.innerContainer=b("div","flatpickr-innerContainer"),s.config.weekNumbers){var t=W(),n=t.weekWrapper,r=t.weekNumbers;s.innerContainer.appendChild(n),s.weekNumbers=r,s.weekWrapper=n}s.rContainer=b("div","flatpickr-rContainer"),s.rContainer.appendChild(V()),s.daysContainer||(s.daysContainer=b("div","flatpickr-days"),s.daysContainer.tabIndex=-1),z(),s.rContainer.appendChild(s.daysContainer),s.innerContainer.appendChild(s.rContainer),e.appendChild(s.innerContainer)}s.config.enableTime&&e.appendChild($()),y(s.calendarContainer,"rangeMode","range"===s.config.mode),y(s.calendarContainer,"animate",s.config.animate),s.calendarContainer.appendChild(e);var i=void 0!==s.config.appendTo&&s.config.appendTo.nodeType;if((s.config.inline||s.config.static)&&(s.calendarContainer.classList.add(s.config.inline?"inline":"static"),s.config.inline&&(!i&&s.element.parentNode?s.element.parentNode.insertBefore(s.calendarContainer,s._input.nextSibling):void 0!==s.config.appendTo&&s.config.appendTo.appendChild(s.calendarContainer)),s.config.static)){var o=b("div","flatpickr-wrapper");s.element.parentNode&&s.element.parentNode.insertBefore(o,s.element),o.appendChild(s.element),s.altInput&&o.appendChild(s.altInput),o.appendChild(s.calendarContainer)}s.config.static||s.config.inline||(void 0!==s.config.appendTo?s.config.appendTo:window.document.body).appendChild(s.calendarContainer)}function B(e,t,n,r){var i=ee(t,!0),o=b("span","flatpickr-day "+e,t.getDate().toString());return o.dateObj=t,o.$i=r,o.setAttribute("aria-label",s.formatDate(t,s.config.ariaDateFormat)),0===h(t,s.now)&&(s.todayDateElem=o,o.classList.add("today")),i?(o.tabIndex=-1,xe(t)&&(o.classList.add("selected"),s.selectedDateElem=o,"range"===s.config.mode&&(y(o,"startRange",s.selectedDates[0]&&0===h(t,s.selectedDates[0])),y(o,"endRange",s.selectedDates[1]&&0===h(t,s.selectedDates[1]))))):(o.classList.add("disabled"),s.selectedDates[0]&&s.minRangeDate&&t>s.minRangeDate&&t<s.selectedDates[0]?s.minRangeDate=t:s.selectedDates[0]&&s.maxRangeDate&&t<s.maxRangeDate&&t>s.selectedDates[0]&&(s.maxRangeDate=t)),"range"===s.config.mode&&(Se(t)&&!xe(t)&&o.classList.add("inRange"),1===s.selectedDates.length&&void 0!==s.minRangeDate&&void 0!==s.maxRangeDate&&(t<s.minRangeDate||t>s.maxRangeDate)&&o.classList.add("notAllowed")),s.weekNumbers&&"prevMonthDay"!==e&&n%7===1&&s.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+s.config.getWeek(t)+"</span>"),we("onDayCreate",o),o}function U(e,t){var n=e+t||0,r=void 0!==e?s.days.childNodes[n]:s.selectedDateElem||s.todayDateElem||s.days.childNodes[0],i=function(){r=r||s.days.childNodes[n],r.focus(),"range"===s.config.mode&&ne(r)};void 0===r&&0!==t&&(t>0?(s.changeMonth(1,!0,!0),n%=42):t<0&&(s.changeMonth(-1,!0,!0),n+=42)),i()}function z(){if(void 0!==s.daysContainer){var e=(new Date(s.currentYear,s.currentMonth,1).getDay()-s.l10n.firstDayOfWeek+7)%7,t="range"===s.config.mode,n=s.utils.getDaysInMonth((s.currentMonth-1+12)%12),r=s.utils.getDaysInMonth(),i=window.document.createDocumentFragment(),o=n+1-e,a=0;for(s.weekNumbers&&s.weekNumbers.firstChild&&(s.weekNumbers.textContent=""),t&&(s.minRangeDate=new Date(s.currentYear,s.currentMonth-1,o),s.maxRangeDate=new Date(s.currentYear,s.currentMonth+1,(42-e)%r));o<=n;o++,a++)i.appendChild(B("prevMonthDay",new Date(s.currentYear,s.currentMonth-1,o),o,a));for(o=1;o<=r;o++,a++)i.appendChild(B("",new Date(s.currentYear,s.currentMonth,o),o,a));for(var u=r+1;u<=42-e;u++,a++)i.appendChild(B("nextMonthDay",new Date(s.currentYear,s.currentMonth+1,u%r),u,a));t&&1===s.selectedDates.length&&i.childNodes[0]?(s._hidePrevMonthArrow=s._hidePrevMonthArrow||!!s.minRangeDate&&s.minRangeDate>i.childNodes[0].dateObj,s._hideNextMonthArrow=s._hideNextMonthArrow||!!s.maxRangeDate&&s.maxRangeDate<new Date(s.currentYear,s.currentMonth+1,1)):ke();var l=b("div","dayContainer");l.appendChild(i),q(s.daysContainer),s.daysContainer.insertBefore(l,s.daysContainer.firstChild),s.days=s.daysContainer.firstChild}}function H(){var e=window.document.createDocumentFragment();s.monthNav=b("div","flatpickr-month"),s.prevMonthNav=b("span","flatpickr-prev-month"),s.prevMonthNav.innerHTML=s.config.prevArrow,s.currentMonthElement=b("span","cur-month");var t=_("cur-year",{tabindex:"-1"});return s.currentYearElement=t.childNodes[0],s.config.minDate&&s.currentYearElement.setAttribute("data-min",s.config.minDate.getFullYear().toString()),s.config.maxDate&&(s.currentYearElement.setAttribute("data-max",s.config.maxDate.getFullYear().toString()),s.currentYearElement.disabled=!!s.config.minDate&&s.config.minDate.getFullYear()===s.config.maxDate.getFullYear()),s.nextMonthNav=b("span","flatpickr-next-month"),s.nextMonthNav.innerHTML=s.config.nextArrow,s.navigationCurrentMonth=b("div","flatpickr-current-month"),s.navigationCurrentMonth.appendChild(s.currentMonthElement),s.navigationCurrentMonth.appendChild(t),e.appendChild(s.prevMonthNav),e.appendChild(s.navigationCurrentMonth),e.appendChild(s.nextMonthNav),s.monthNav.appendChild(e),Object.defineProperty(s,"_hidePrevMonthArrow",{get:function(){return s.__hidePrevMonthArrow},set:function(e){s.__hidePrevMonthArrow!==e&&(s.prevMonthNav.style.display=e?"none":"block"),s.__hidePrevMonthArrow=e}}),Object.defineProperty(s,"_hideNextMonthArrow",{get:function(){return s.__hideNextMonthArrow},set:function(e){s.__hideNextMonthArrow!==e&&(s.nextMonthNav.style.display=e?"none":"block"),s.__hideNextMonthArrow=e}}),ke(),s.monthNav}function $(){s.calendarContainer.classList.add("hasTime"),s.config.noCalendar&&s.calendarContainer.classList.add("noCalendar"),s.timeContainer=b("div","flatpickr-time"),s.timeContainer.tabIndex=-1;var e=b("span","flatpickr-time-separator",":"),t=_("flatpickr-hour");s.hourElement=t.childNodes[0];var i=_("flatpickr-minute");if(s.minuteElement=i.childNodes[0],s.hourElement.tabIndex=s.minuteElement.tabIndex=-1,s.hourElement.value=n(s.latestSelectedDateObj?s.latestSelectedDateObj.getHours():s.config.time_24hr?s.config.defaultHour:E(s.config.defaultHour)),s.minuteElement.value=n(s.latestSelectedDateObj?s.latestSelectedDateObj.getMinutes():s.config.defaultMinute),s.hourElement.setAttribute("data-step",s.config.hourIncrement.toString()),s.minuteElement.setAttribute("data-step",s.config.minuteIncrement.toString()),s.hourElement.setAttribute("data-min",s.config.time_24hr?"0":"1"),s.hourElement.setAttribute("data-max",s.config.time_24hr?"23":"12"),s.minuteElement.setAttribute("data-min","0"),s.minuteElement.setAttribute("data-max","59"),s.timeContainer.appendChild(t),s.timeContainer.appendChild(e),s.timeContainer.appendChild(i),s.config.time_24hr&&s.timeContainer.classList.add("time24hr"),s.config.enableSeconds){s.timeContainer.classList.add("hasSeconds");var o=_("flatpickr-second");s.secondElement=o.childNodes[0],s.secondElement.value=n(s.latestSelectedDateObj?s.latestSelectedDateObj.getSeconds():s.config.defaultSeconds),s.secondElement.setAttribute("data-step",s.minuteElement.getAttribute("data-step")),s.secondElement.setAttribute("data-min",s.minuteElement.getAttribute("data-min")),s.secondElement.setAttribute("data-max",s.minuteElement.getAttribute("data-max")),s.timeContainer.appendChild(b("span","flatpickr-time-separator",":")),s.timeContainer.appendChild(o)}return s.config.time_24hr||(s.amPM=b("span","flatpickr-am-pm",s.l10n.amPM[r((s.latestSelectedDateObj?s.hourElement.value:s.config.defaultHour)>11)]),s.amPM.title=s.l10n.toggleTitle,s.amPM.tabIndex=-1,s.timeContainer.appendChild(s.amPM)),s.timeContainer}function V(){s.weekdayContainer||(s.weekdayContainer=b("div","flatpickr-weekdays"));var e=s.l10n.firstDayOfWeek,t=s.l10n.weekdays.shorthand.slice();return e>0&&e<t.length&&(t=t.splice(e,t.length).concat(t.splice(0,e))),s.weekdayContainer.innerHTML="\n <span class=flatpickr-weekday>\n "+t.join("</span><span class=flatpickr-weekday>")+"\n </span>\n ",s.weekdayContainer}function W(){s.calendarContainer.classList.add("hasWeeks");var e=b("div","flatpickr-weekwrapper");e.appendChild(b("span","flatpickr-weekday",s.l10n.weekAbbreviation));var t=b("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}function X(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var r=t?e:e-s.currentMonth;if(!(r<0&&s._hidePrevMonthArrow||r>0&&s._hideNextMonthArrow)&&(s.currentMonth+=r,(s.currentMonth<0||s.currentMonth>11)&&(s.currentYear+=s.currentMonth>11?1:-1,s.currentMonth=(s.currentMonth+12)%12,we("onYearChange")),z(),we("onMonthChange"),ke(),n&&document.activeElement&&document.activeElement.$i)){var i=document.activeElement.$i;U(i,0)}}function G(e){void 0===e&&(e=!0),s.input.value="",s.altInput&&(s.altInput.value=""),s.mobileInput&&(s.mobileInput.value=""),s.selectedDates=[],s.latestSelectedDateObj=void 0,s.showTimeInput=!1,s.config.enableTime&&(void 0!==s.config.minDate?A(s.config.minDate):D(s.config.defaultHour,s.config.defaultMinute,s.config.defaultSeconds)),s.redraw(),e&&we("onChange")}function Y(){s.isOpen=!1,s.isMobile||(s.calendarContainer.classList.remove("open"),s._input.classList.remove("active")),we("onClose")}function K(){void 0!==s.config&&we("onDestroy");for(var e=s._handlers.length;e--;){var t=s._handlers[e];t.element.removeEventListener(t.event,t.handler)}s._handlers=[],s.mobileInput?(s.mobileInput.parentNode&&s.mobileInput.parentNode.removeChild(s.mobileInput),s.mobileInput=void 0):s.calendarContainer&&s.calendarContainer.parentNode&&s.calendarContainer.parentNode.removeChild(s.calendarContainer),s.altInput&&(s.input.type="text",s.altInput.parentNode&&s.altInput.parentNode.removeChild(s.altInput),delete s.altInput),s.input&&(s.input.type=s.input._type,s.input.classList.remove("flatpickr-input"),s.input.removeAttribute("readonly"),s.input.value=""),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(e){try{delete s[e]}catch(t){}}))}function J(e){return!(!s.config.appendTo||!s.config.appendTo.contains(e))||s.calendarContainer.contains(e)}function Z(e){if(s.isOpen&&!s.config.inline){var t=J(e.target),n=e.target===s.input||e.target===s.altInput||s.element.contains(e.target)||e.path&&e.path.indexOf&&(~e.path.indexOf(s.input)||~e.path.indexOf(s.altInput)),r="blur"===e.type?n&&e.relatedTarget&&!J(e.relatedTarget):!n&&!t,i=!s.config.ignoredFocusElements.some((function(t){return t.contains(e.target)}));r&&i&&(s.close(),"range"===s.config.mode&&1===s.selectedDates.length&&(s.clear(!1),s.redraw()))}}function Q(e){if(!(!e||s.currentYearElement.getAttribute("data-min")&&e<parseInt(s.currentYearElement.getAttribute("data-min"))||s.currentYearElement.getAttribute("data-max")&&e>parseInt(s.currentYearElement.getAttribute("data-max")))){var t=e,n=s.currentYear!==t;s.currentYear=t||s.currentYear,s.config.maxDate&&s.currentYear===s.config.maxDate.getFullYear()?s.currentMonth=Math.min(s.config.maxDate.getMonth(),s.currentMonth):s.config.minDate&&s.currentYear===s.config.minDate.getFullYear()&&(s.currentMonth=Math.max(s.config.minDate.getMonth(),s.currentMonth)),n&&(s.redraw(),we("onYearChange"))}}function ee(e,t){void 0===t&&(t=!0);var n=s.parseDate(e,void 0,t);if(s.config.minDate&&n&&h(n,s.config.minDate,void 0!==t?t:!s.minDateHasTime)<0||s.config.maxDate&&n&&h(n,s.config.maxDate,void 0!==t?t:!s.maxDateHasTime)>0)return!1;if(!s.config.enable.length&&!s.config.disable.length)return!0;if(void 0===n)return!1;for(var r=s.config.enable.length>0,i=r?s.config.enable:s.config.disable,o=0,a=void 0;o<i.length;o++){if(a=i[o],"function"===typeof a&&a(n))return r;if(a instanceof Date&&void 0!==n&&a.getTime()===n.getTime())return r;if("string"===typeof a&&void 0!==n){var u=s.parseDate(a,void 0,!0);return u&&u.getTime()===n.getTime()?r:!r}if("object"===typeof a&&void 0!==n&&a.from&&a.to&&n.getTime()>=a.from.getTime()&&n.getTime()<=a.to.getTime())return r}return!r}function te(e){var t=e.target===s._input,n=J(e.target),r=s.config.allowInput,i=s.isOpen&&(!r||!t),o=s.config.inline&&t&&!r;if(13===e.keyCode&&t){if(r)return s.setDate(s._input.value,!0,e.target===s.altInput?s.config.altFormat:s.config.dateFormat),e.target.blur();s.open()}else if(n||i||o){var a=!!s.timeContainer&&s.timeContainer.contains(e.target);switch(e.keyCode){case 13:a?Ce():fe(e);break;case 27:e.preventDefault(),s.close();break;case 8:case 46:t&&!s.config.allowInput&&s.clear();break;case 37:case 39:if(a)s.hourElement&&s.hourElement.focus();else if(e.preventDefault(),s.daysContainer){var u=39===e.keyCode?1:-1;e.ctrlKey?X(u,!0,!0):U(e.target.$i,u)}break;case 38:case 40:e.preventDefault();var l=40===e.keyCode?1:-1;s.daysContainer&&void 0!==e.target.$i?e.ctrlKey?(Q(s.currentYear-l),U(e.target.$i,0)):a||U(e.target.$i,7*l):s.config.enableTime&&(!a&&s.hourElement&&s.hourElement.focus(),k(e),s._debouncedChange());break;case 9:e.target===s.hourElement?(e.preventDefault(),s.minuteElement.select()):e.target===s.minuteElement&&(s.secondElement||s.amPM)?(e.preventDefault(),void 0!==s.secondElement?s.secondElement.focus():void 0!==s.amPM&&s.amPM.focus()):e.target===s.secondElement&&s.amPM&&(e.preventDefault(),s.amPM.focus());break;default:break}switch(e.key){case s.l10n.amPM[0].charAt(0):void 0!==s.amPM&&e.target===s.amPM&&(s.amPM.textContent=s.l10n.amPM[0],O(),Ce());break;case s.l10n.amPM[1].charAt(0):void 0!==s.amPM&&e.target===s.amPM&&(s.amPM.textContent=s.l10n.amPM[1],O(),Ce());break;default:break}we("onKeyDown",e)}}function ne(e){if(1===s.selectedDates.length&&e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled")&&void 0!==s.minRangeDate&&void 0!==s.maxRangeDate){for(var t=e.dateObj,n=s.parseDate(s.selectedDates[0],void 0,!0),r=Math.min(t.getTime(),s.selectedDates[0].getTime()),i=Math.max(t.getTime(),s.selectedDates[0].getTime()),o=!1,a=r;a<i;a+=g.DAY)if(!ee(new Date(a))){o=!0;break}for(var u=function(a,u){var l=u.getTime(),c=l<s.minRangeDate.getTime()||l>s.maxRangeDate.getTime(),f=s.days.childNodes[a];if(c)return f.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach((function(e){f.classList.remove(e)})),"continue";if(o&&!c)return"continue";["startRange","inRange","endRange","notAllowed"].forEach((function(e){f.classList.remove(e)}));var d=Math.max(s.minRangeDate.getTime(),r),h=Math.min(s.maxRangeDate.getTime(),i);e.classList.add(t<s.selectedDates[0]?"startRange":"endRange"),n<t&&l===n.getTime()?f.classList.add("startRange"):n>t&&l===n.getTime()&&f.classList.add("endRange"),l>=d&&l<=h&&f.classList.add("inRange")},l=0,c=s.days.childNodes[l].dateObj;l<42;l++,c=s.days.childNodes[l]&&s.days.childNodes[l].dateObj)u(l,c)}}function re(){!s.isOpen||s.config.static||s.config.inline||ue()}function ie(e,t){if(void 0===t&&(t=s._input),s.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),setTimeout((function(){void 0!==s.mobileInput&&s.mobileInput.click()}),0),void we("onOpen");if(!s._input.disabled&&!s.config.inline){var n=s.isOpen;s.isOpen=!0,n||(s.calendarContainer.classList.add("open"),s._input.classList.add("active"),we("onOpen"),ue(t))}}function oe(e){return function(t){var n=s.config["_"+e+"Date"]=s.parseDate(t,s.config.dateFormat),r=s.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(s["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),s.selectedDates&&(s.selectedDates=s.selectedDates.filter((function(e){return ee(e)})),s.selectedDates.length||"min"!==e||A(n),Ce()),s.daysContainer&&(le(),void 0!==n?s.currentYearElement[e]=n.getFullYear().toString():s.currentYearElement.removeAttribute(e),s.currentYearElement.disabled=!!r&&void 0!==n&&r.getFullYear()===n.getFullYear())}}function ae(){var n=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],r=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],i=t({},a,JSON.parse(JSON.stringify(e.dataset||{}))),u={};s.config.parseDate=i.parseDate,s.config.formatDate=i.formatDate,Object.defineProperty(s.config,"enable",{get:function(){return s.config._enable||[]},set:function(e){s.config._enable=ge(e)}}),Object.defineProperty(s.config,"disable",{get:function(){return s.config._disable||[]},set:function(e){s.config._disable=ge(e)}}),!i.dateFormat&&i.enableTime&&(u.dateFormat=i.noCalendar?"H:i"+(i.enableSeconds?":S":""):x.defaultConfig.dateFormat+" H:i"+(i.enableSeconds?":S":"")),i.altInput&&i.enableTime&&!i.altFormat&&(u.altFormat=i.noCalendar?"h:i"+(i.enableSeconds?":S K":" K"):x.defaultConfig.altFormat+" h:i"+(i.enableSeconds?":S":"")+" K"),Object.defineProperty(s.config,"minDate",{get:function(){return s.config._minDate},set:oe("min")}),Object.defineProperty(s.config,"maxDate",{get:function(){return s.config._maxDate},set:oe("max")});var l=function(e){return function(t){s.config["min"===e?"_minTime":"_maxTime"]=s.parseDate(t,"H:i")}};Object.defineProperty(s.config,"minTime",{get:function(){return s.config._minTime},set:l("min")}),Object.defineProperty(s.config,"maxTime",{get:function(){return s.config._maxTime},set:l("max")}),Object.assign(s.config,u,i);for(var c=0;c<n.length;c++)s.config[n[c]]=!0===s.config[n[c]]||"true"===s.config[n[c]];for(c=r.length;c--;)void 0!==s.config[r[c]]&&(s.config[r[c]]=o(s.config[r[c]]||[]).map(v));for(c=0;c<s.config.plugins.length;c++){var f=s.config.plugins[c](s)||{};for(var d in f)~r.indexOf(d)?s.config[d]=o(f[d]).map(v).concat(s.config[d]):"undefined"===typeof i[d]&&(s.config[d]=f[d])}s.isMobile=!s.config.disableMobile&&!s.config.inline&&"single"===s.config.mode&&!s.config.disable.length&&!s.config.enable.length&&!s.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),we("onParseConfig")}function se(){"object"!==typeof s.config.locale&&"undefined"===typeof x.l10ns[s.config.locale]&&s.config.errorHandler(new Error("flatpickr: invalid locale "+s.config.locale)),s.l10n=t({},x.l10ns.default,"object"===typeof s.config.locale?s.config.locale:"default"!==s.config.locale?x.l10ns[s.config.locale]:void 0),u.K="("+s.l10n.amPM[0]+"|"+s.l10n.amPM[1]+"|"+s.l10n.amPM[0].toLowerCase()+"|"+s.l10n.amPM[1].toLowerCase()+")",s.formatDate=f(s)}function ue(e){if(void 0!==s.calendarContainer){we("onPreCalendarPosition");var t=e||s._positionElement,n=Array.prototype.reduce.call(s.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),r=s.calendarContainer.offsetWidth,i=s.config.position,o=t.getBoundingClientRect(),a=window.innerHeight-o.bottom,u="above"===i||"below"!==i&&a<n&&o.top>n,l=window.pageYOffset+o.top+(u?-n-2:t.offsetHeight+2);if(y(s.calendarContainer,"arrowTop",!u),y(s.calendarContainer,"arrowBottom",u),!s.config.inline){var c=window.pageXOffset+o.left,f=window.document.body.offsetWidth-o.right,d=c+r>window.document.body.offsetWidth;y(s.calendarContainer,"rightMost",d),s.config.static||(s.calendarContainer.style.top=l+"px",d?(s.calendarContainer.style.left="auto",s.calendarContainer.style.right=f+"px"):(s.calendarContainer.style.left=c+"px",s.calendarContainer.style.right="auto"))}}}function le(){s.config.noCalendar||s.isMobile||(V(),ke(),z())}function ce(){s._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(s.close,0):s.close()}function fe(e){e.preventDefault(),e.stopPropagation();var t=function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled")&&!e.classList.contains("notAllowed")},n=w(e.target,t);if(void 0!==n){var r=n,i=s.latestSelectedDateObj=new Date(r.dateObj.getTime()),o=i.getMonth()!==s.currentMonth&&"range"!==s.config.mode;if(s.selectedDateElem=r,"single"===s.config.mode)s.selectedDates=[i];else if("multiple"===s.config.mode){var a=xe(i);a?s.selectedDates.splice(parseInt(a),1):s.selectedDates.push(i)}else"range"===s.config.mode&&(2===s.selectedDates.length&&s.clear(),s.selectedDates.push(i),0!==h(i,s.selectedDates[0],!0)&&s.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(O(),o){var u=s.currentYear!==i.getFullYear();s.currentYear=i.getFullYear(),s.currentMonth=i.getMonth(),u&&we("onYearChange"),we("onMonthChange")}if(z(),s.config.minDate&&s.minDateHasTime&&s.config.enableTime&&0===h(i,s.config.minDate)&&A(s.config.minDate),Ce(),s.config.enableTime&&setTimeout((function(){return s.showTimeInput=!0}),50),"range"===s.config.mode&&(1===s.selectedDates.length?(ne(r),s._hidePrevMonthArrow=s._hidePrevMonthArrow||void 0!==s.minRangeDate&&s.minRangeDate>s.days.childNodes[0].dateObj,s._hideNextMonthArrow=s._hideNextMonthArrow||void 0!==s.maxRangeDate&&s.maxRangeDate<new Date(s.currentYear,s.currentMonth+1,1)):ke()),o?s.selectedDateElem&&s.selectedDateElem.focus():U(r.$i,0),void 0!==s.hourElement&&setTimeout((function(){return void 0!==s.hourElement&&s.hourElement.select()}),451),s.config.closeOnSelect){var l="single"===s.config.mode&&!s.config.enableTime,c="range"===s.config.mode&&2===s.selectedDates.length&&!s.config.enableTime;(l||c)&&ce()}N()}}s.parseDate=d({config:s.config,l10n:s.l10n}),s._handlers=[],s._bind=P,s._setHoursFromDate=A,s.changeMonth=X,s.changeYear=Q,s.clear=G,s.close=Y,s._createElement=b,s.destroy=K,s.isEnabled=ee,s.jumpToDate=R,s.open=ie,s.redraw=le,s.set=he,s.setDate=me,s.toggle=qe;var de={locale:[se]};function he(e,t){null!==e&&"object"===typeof e?Object.assign(s.config,e):(s.config[e]=t,void 0!==de[e]&&de[e].forEach((function(e){return e()}))),s.redraw(),R()}function pe(e,t){var n=[];if(e instanceof Array)n=e.map((function(e){return s.parseDate(e,t)}));else if(e instanceof Date||"number"===typeof e)n=[s.parseDate(e,t)];else if("string"===typeof e)switch(s.config.mode){case"single":n=[s.parseDate(e,t)];break;case"multiple":n=e.split(s.config.conjunction).map((function(e){return s.parseDate(e,t)}));break;case"range":n=e.split(s.l10n.rangeSeparator).map((function(e){return s.parseDate(e,t)}));break;default:break}else s.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));s.selectedDates=n.filter((function(e){return e instanceof Date&&ee(e,!1)})),"range"===s.config.mode&&s.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function me(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=s.config.dateFormat),0!==e&&!e)return s.clear(t);pe(e,n),s.showTimeInput=s.selectedDates.length>0,s.latestSelectedDateObj=s.selectedDates[0],s.redraw(),R(),A(),Ce(t),t&&we("onChange")}function ge(e){return e.map((function(e){return"string"===typeof e||"number"===typeof e||e instanceof Date?s.parseDate(e,void 0,!0):e&&"object"===typeof e&&e.from&&e.to?{from:s.parseDate(e.from,void 0),to:s.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ve(){s.selectedDates=[],s.now=new Date;var e=s.config.defaultDate||s.input.value;e&&pe(e,s.config.dateFormat);var t=s.selectedDates.length?s.selectedDates[0]:s.config.minDate&&s.config.minDate.getTime()>s.now.getTime()?s.config.minDate:s.config.maxDate&&s.config.maxDate.getTime()<s.now.getTime()?s.config.maxDate:s.now;s.currentYear=t.getFullYear(),s.currentMonth=t.getMonth(),s.selectedDates.length&&(s.latestSelectedDateObj=s.selectedDates[0]),void 0!==s.config.minTime&&(s.config.minTime=s.parseDate(s.config.minTime,"H:i")),void 0!==s.config.maxTime&&(s.config.maxTime=s.parseDate(s.config.maxTime,"H:i")),s.minDateHasTime=!!s.config.minDate&&(s.config.minDate.getHours()>0||s.config.minDate.getMinutes()>0||s.config.minDate.getSeconds()>0),s.maxDateHasTime=!!s.config.maxDate&&(s.config.maxDate.getHours()>0||s.config.maxDate.getMinutes()>0||s.config.maxDate.getSeconds()>0),Object.defineProperty(s,"showTimeInput",{get:function(){return s._showTimeInput},set:function(e){s._showTimeInput=e,s.calendarContainer&&y(s.calendarContainer,"showTimeInput",e),s.isOpen&&ue()}})}function ye(){s.input=s.config.wrap?e.querySelector("[data-input]"):e,s.input?(s.input._type=s.input.type,s.input.type="text",s.input.classList.add("flatpickr-input"),s._input=s.input,s.config.altInput&&(s.altInput=b(s.input.nodeName,s.input.className+" "+s.config.altInputClass),s._input=s.altInput,s.altInput.placeholder=s.input.placeholder,s.altInput.disabled=s.input.disabled,s.altInput.required=s.input.required,s.altInput.tabIndex=s.input.tabIndex,s.altInput.type="text",s.input.type="hidden",!s.config.static&&s.input.parentNode&&s.input.parentNode.insertBefore(s.altInput,s.input.nextSibling)),s.config.allowInput||s._input.setAttribute("readonly","readonly"),s._positionElement=s.config.positionElement||s._input):s.config.errorHandler(new Error("Invalid input element specified"))}function be(){var e=s.config.enableTime?s.config.noCalendar?"time":"datetime-local":"date";s.mobileInput=b("input",s.input.className+" flatpickr-mobile"),s.mobileInput.step=s.input.getAttribute("step")||"any",s.mobileInput.tabIndex=1,s.mobileInput.type=e,s.mobileInput.disabled=s.input.disabled,s.mobileInput.required=s.input.required,s.mobileInput.placeholder=s.input.placeholder,s.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",s.selectedDates.length&&(s.mobileInput.defaultValue=s.mobileInput.value=s.formatDate(s.selectedDates[0],s.mobileFormatStr)),s.config.minDate&&(s.mobileInput.min=s.formatDate(s.config.minDate,"Y-m-d")),s.config.maxDate&&(s.mobileInput.max=s.formatDate(s.config.maxDate,"Y-m-d")),s.input.type="hidden",void 0!==s.altInput&&(s.altInput.type="hidden");try{s.input.parentNode&&s.input.parentNode.insertBefore(s.mobileInput,s.input.nextSibling)}catch(t){}P(s.mobileInput,"change",(function(e){s.setDate(e.target.value,!1,s.mobileFormatStr),we("onChange"),we("onClose")}))}function qe(){if(s.isOpen)return s.close();s.open()}function we(e,t){var n=s.config[e];if(void 0!==n&&n.length>0)for(var r=0;n[r]&&r<n.length;r++)n[r](s.selectedDates,s.input.value,s,t);"onChange"===e&&(s.input.dispatchEvent(_e("change")),s.input.dispatchEvent(_e("input")))}function _e(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function xe(e){for(var t=0;t<s.selectedDates.length;t++)if(0===h(s.selectedDates[t],e))return""+t;return!1}function Se(e){return!("range"!==s.config.mode||s.selectedDates.length<2)&&(h(e,s.selectedDates[0])>=0&&h(e,s.selectedDates[1])<=0)}function ke(){s.config.noCalendar||s.isMobile||!s.monthNav||(s.currentMonthElement.textContent=p(s.currentMonth,s.config.shorthandCurrentMonth,s.l10n)+" ",s.currentYearElement.value=s.currentYear.toString(),s._hidePrevMonthArrow=void 0!==s.config.minDate&&(s.currentYear===s.config.minDate.getFullYear()?s.currentMonth<=s.config.minDate.getMonth():s.currentYear<s.config.minDate.getFullYear()),s._hideNextMonthArrow=void 0!==s.config.maxDate&&(s.currentYear===s.config.maxDate.getFullYear()?s.currentMonth+1>s.config.maxDate.getMonth():s.currentYear>s.config.maxDate.getFullYear()))}function Ce(e){if(void 0===e&&(e=!0),!s.selectedDates.length)return s.clear(e);void 0!==s.mobileInput&&s.mobileFormatStr&&(s.mobileInput.value=void 0!==s.latestSelectedDateObj?s.formatDate(s.latestSelectedDateObj,s.mobileFormatStr):"");var t="range"!==s.config.mode?s.config.conjunction:s.l10n.rangeSeparator;s.input.value=s.selectedDates.map((function(e){return s.formatDate(e,s.config.dateFormat)})).join(t),void 0!==s.altInput&&(s.altInput.value=s.selectedDates.map((function(e){return s.formatDate(e,s.config.altFormat)})).join(t)),!1!==e&&we("onValueUpdate")}function Ee(e){e.preventDefault();var t=s.prevMonthNav.contains(e.target),n=s.nextMonthNav.contains(e.target);t||n?X(t?-1:1):e.target===s.currentYearElement?s.currentYearElement.select():"arrowUp"===e.target.className?s.changeYear(s.currentYear+1):"arrowDown"===e.target.className&&s.changeYear(s.currentYear-1)}function Oe(e){e.preventDefault();var t="keydown"===e.type,i=e.target;void 0!==s.amPM&&e.target===s.amPM&&(s.amPM.textContent=s.l10n.amPM[r(s.amPM.textContent===s.l10n.amPM[0])]);var o=parseFloat(i.getAttribute("data-min")),a=parseFloat(i.getAttribute("data-max")),u=parseFloat(i.getAttribute("data-step")),l=parseInt(i.value,10),c=e.delta||(t?38===e.which?1:-1:0),f=l+u*c;if("undefined"!==typeof i.value&&2===i.value.length){var d=i===s.hourElement,h=i===s.minuteElement;f<o?(f=a+f+r(!d)+(r(d)&&r(!s.amPM)),h&&F(void 0,-1,s.hourElement)):f>a&&(f=i===s.hourElement?f-a-r(!s.amPM):o,h&&F(void 0,1,s.hourElement)),s.amPM&&d&&(1===u?f+l===23:Math.abs(f-l)>u)&&(s.amPM.textContent=s.l10n.amPM[r(s.amPM.textContent===s.l10n.amPM[0])]),i.value=n(f)}}return m(),s}function C(e,t){for(var n=Array.prototype.slice.call(e),r=[],i=0;i<n.length;i++){var o=n[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=k(o,t||{}),r.push(o._flatpickr)}catch(a){console.error(a)}}return 1===r.length?r[0]:r}"undefined"!==typeof HTMLElement&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return C(this,e)},HTMLElement.prototype.flatpickr=function(e){return C([this],e)}),x=function(e,t){return e instanceof NodeList?C(e,t):C("string"===typeof e?window.document.querySelectorAll(e):[e],t)},"object"===typeof window&&(window.flatpickr=x),x.defaultConfig=v,x.l10ns={en:t({},c),default:t({},c)},x.localize=function(e){x.l10ns.default=t({},x.l10ns.default,e)},x.setDefaults=function(e){x.defaultConfig=t({},x.defaultConfig,e)},x.parseDate=d({}),x.formatDate=f({}),x.compareDates=h,"undefined"!==typeof jQuery&&(jQuery.fn.flatpickr=function(e){return C(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"===typeof e?parseInt(e,10):e))};var E=x;e.default=E,Object.defineProperty(e,"__esModule",{value:!0})}))},d02c:function(e,t,n){var r=n("5e2e"),i=n("79bc"),o=n("7b83"),a=200;function s(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}e.exports=s},d327:function(e,t){function n(){return[]}e.exports=n},d370:function(e,t,n){var r=n("253c"),i=n("1310"),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},d420:function(e,t,n){var r=n("0978"),i=6e4,o=864e5;function a(e,t){var n=r(e),a=r(t),s=n.getTime()-n.getTimezoneOffset()*i,u=a.getTime()-a.getTimezoneOffset()*i;return Math.round((s-u)/o)}e.exports=a},d612:function(e,t,n){var r=n("7b83"),i=n("7ed2"),o=n("dc0f");function a(e){var t=-1,n=null==e?0:e.length;this.__data__=new r;while(++t<n)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},d7ee:function(e,t,n){var r=n("c3fc"),i=n("b047f"),o=n("99d3"),a=o&&o.isSet,s=a?i(a):r;e.exports=s},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},da03:function(e,t,n){var r=n("2b3e"),i=r["__core-js_shared__"];e.exports=i},da19:function(e,t,n){"use strict";function r(e){return parseInt(e,10)}function i(e,t,n){return r(e.x+n.x)===r(2*t.x)&&r(e.y+n.y)===r(2*t.y)}function o(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function a(e,t,n){var r={x:e.x-t.x,y:e.y-t.y},i=Math.sqrt(r.x*r.x+r.y*r.y),o={x:r.x/i,y:r.y/i};return{x:t.x+o.x*n,y:t.y+o.y*n}}function s(e,t,n){var r=t.minX,i=t.minY,o=t.maxX,a=t.maxY,s=n.max,u=n.min;e=e.map((function(e){return"number"===typeof e?e:e.value}));var l=Math.min.apply(Math,e.concat([u]))-.001,c=(o-r)/(e.length-1),f=(a-i)/(Math.max.apply(Math,e.concat([s]))+.001-l);return e.map((function(t,n){return{x:n*c+r,y:a-(t-l)*f+1e-5*+(n===e.length-1)-1e-5*+(0===n)}}))}function u(e,t){var n=e.shift();return"M"+n.x+" "+n.y+e.map((function(r,s){var u=e[s+1],l=e[s-1]||n,c=u&&i(u,r,l);if(!u||c)return"L"+r.x+" "+r.y;var f=Math.min(o(l,r),o(u,r)),d=f/2<t,h=d?f/2:t,p=a(l,r,h),m=a(u,r,h);return"L"+p.x+" "+p.y+"S"+r.x+" "+r.y+" "+m.x+" "+m.y})).join("")}var l={props:["smooth","data","boundary","radius","id","max","min"],render:function(e){var t=this,n=t.data,r=t.smooth,i=t.boundary,o=t.radius,a=t.id,l=t.max,c=t.min,f=s(n,i,{max:l,min:c}),d=u(f,r?o:0);return e("path",{attrs:{d:d,fill:"none",stroke:"url(#"+a+")"}})}},c={props:["gradient","gradientDirection","id"],render:function(e){var t=this,n=t.gradient,r=t.gradientDirection,i=t.id,o=n.length-1||1,a=n.slice().reverse().map((function(t,n){return e("stop",{attrs:{offset:n/o,"stop-color":t}})}));return e("defs",[e("linearGradient",{attrs:{id:i,x1:+("left"===r),y1:+("top"===r),x2:+("right"===r),y2:+("bottom"===r)}},a)])}},f={name:"Trend",props:{data:{type:Array,required:!0},autoDraw:Boolean,autoDrawDuration:{type:Number,default:2e3},autoDrawEasing:{type:String,default:"ease"},gradient:{type:Array,default:function(){return["#000"]}},gradientDirection:{type:String,default:"top"},max:{type:Number,default:-1/0},min:{type:Number,default:1/0},height:Number,width:Number,padding:{type:Number,default:8},radius:{type:Number,default:10},smooth:Boolean},watch:{data:{immediate:!0,handler:function(e){var t=this;this.$nextTick((function(){if(!t.$isServer&&t.$refs.path&&t.autoDraw){var e=t.$refs.path.$el,n=e.getTotalLength();e.style.transition="none",e.style.strokeDasharray=n+" "+n,e.style.strokeDashoffset=Math.abs(n-(t.lastLength||0)),e.getBoundingClientRect(),e.style.transition="stroke-dashoffset "+t.autoDrawDuration+"ms "+t.autoDrawEasing,e.style.strokeDashoffset=0,t.lastLength=n}}))}}},render:function(e){if(this.data&&!(this.data.length<2)){var t=this,n=t.width,r=t.height,i=t.padding,o=n||300,a=r||75,s={minX:i,minY:i,maxX:o-i,maxY:a-i},u=this.$props;return u.boundary=s,u.id="vue-trend-"+this._uid,e("svg",{attrs:{width:n||"100%",height:r||"25%",viewBox:"0 0 "+o+" "+a}},[e(c,{props:u}),e(l,{props:u,ref:"path"})])}},install:function(e){e.component(f.name,f)}};"undefined"!==typeof window&&window.Vue&&window.Vue.use(f),t["a"]=f},dc0f:function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},dc1c:function(e,t,n){
+/* flatpickr v4.3.2, @license MIT */
+(function(e,n){n(t)})(0,(function(e){"use strict";var t="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["周日","周一","周二","周三","周四","周五","周六"],longhand:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},months:{shorthand:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],longhand:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},rangeSeparator:" 至 ",weekAbbreviation:"周",scrollTitle:"滚动切换",toggleTitle:"点击切换 12/24 小时时制"};t.l10ns.zh=n;var r=t.l10ns;e.Mandarin=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}))},dc57:function(e,t){var n=Function.prototype,r=n.toString;function i(e){if(null!=e){try{return r.call(e)}catch(t){}try{return e+""}catch(t){}}return""}e.exports=i},dcbe:function(e,t,n){var r=n("30c9"),i=n("1310");function o(e){return i(e)&&r(e)}e.exports=o},dce1:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;(function(global){var qq=function(e){"use strict";return{hide:function(){return e.style.display="none",this},attach:function(t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n),function(){qq(e).detach(t,n)}},detach:function(t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.attachEvent&&e.detachEvent("on"+t,n),this},contains:function(t){return!!t&&(e===t||(e.contains?e.contains(t):!!(8&t.compareDocumentPosition(e))))},insertBefore:function(t){return t.parentNode.insertBefore(e,t),this},remove:function(){return e.parentNode.removeChild(e),this},css:function(t){if(null==e.style)throw new qq.Error("Can't apply style to node as it is not on the HTMLElement prototype chain!");return null!=t.opacity&&"string"!==typeof e.style.opacity&&"undefined"!==typeof e.filters&&(t.filter="alpha(opacity="+Math.round(100*t.opacity)+")"),qq.extend(e.style,t),this},hasClass:function(t,n){var r=new RegExp("(^| )"+t+"( |$)");return r.test(e.className)||!(!n||!r.test(e.parentNode.className))},addClass:function(t){return qq(e).hasClass(t)||(e.className+=" "+t),this},removeClass:function(t){var n=new RegExp("(^| )"+t+"( |$)");return e.className=e.className.replace(n," ").replace(/^\s+|\s+$/g,""),this},getByClass:function(t,n){var r,i=[];return n&&e.querySelector?e.querySelector("."+t):e.querySelectorAll?e.querySelectorAll("."+t):(r=e.getElementsByTagName("*"),qq.each(r,(function(e,n){qq(n).hasClass(t)&&i.push(n)})),n?i[0]:i)},getFirstByClass:function(t){return qq(e).getByClass(t,!0)},children:function(){var t=[],n=e.firstChild;while(n)1===n.nodeType&&t.push(n),n=n.nextSibling;return t},setText:function(t){return e.innerText=t,e.textContent=t,this},clearText:function(){return qq(e).setText("")},hasAttribute:function(t){var n;return e.hasAttribute?!!e.hasAttribute(t)&&null==/^false$/i.exec(e.getAttribute(t)):(n=e[t],void 0!==n&&null==/^false$/i.exec(n))}}};(function(){"use strict";qq.canvasToBlob=function(e,t,n){return qq.dataUriToBlob(e.toDataURL(t,n))},qq.dataUriToBlob=function(e){var t,n,r,i,o=function(e,t){var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,r=n&&new n;return r?(r.append(e),r.getBlob(t)):new Blob([e],{type:t})};return n=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):decodeURI(e.split(",")[1]),i=e.split(",")[0].split(":")[1].split(";")[0],t=new ArrayBuffer(n.length),r=new Uint8Array(t),qq.each(n,(function(e,t){r[e]=t.charCodeAt(0)})),o(t,i)},qq.log=function(e,t){window.console&&(t&&"info"!==t?window.console[t]?window.console[t](e):window.console.log("<"+t+"> "+e):window.console.log(e))},qq.isObject=function(e){return e&&!e.nodeType&&"[object Object]"===Object.prototype.toString.call(e)},qq.isFunction=function(e){return"function"===typeof e},qq.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)||e&&window.ArrayBuffer&&e.buffer&&e.buffer.constructor===ArrayBuffer},qq.isItemList=function(e){return"[object DataTransferItemList]"===Object.prototype.toString.call(e)},qq.isNodeList=function(e){return"[object NodeList]"===Object.prototype.toString.call(e)||e.item&&e.namedItem},qq.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},qq.trimStr=function(e){return String.prototype.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},qq.format=function(e){var t=Array.prototype.slice.call(arguments,1),n=e,r=n.indexOf("{}");return qq.each(t,(function(e,t){var i=n.substring(0,r),o=n.substring(r+2);if(n=i+t+o,r=n.indexOf("{}",r+t.length),r<0)return!1})),n},qq.isFile=function(e){return window.File&&"[object File]"===Object.prototype.toString.call(e)},qq.isFileList=function(e){return window.FileList&&"[object FileList]"===Object.prototype.toString.call(e)},qq.isFileOrInput=function(e){return qq.isFile(e)||qq.isInput(e)},qq.isInput=function(e,t){var n=function(e){var n=e.toLowerCase();return t?"file"!==n:"file"===n};return!!(window.HTMLInputElement&&"[object HTMLInputElement]"===Object.prototype.toString.call(e)&&e.type&&n(e.type))||!!(e.tagName&&"input"===e.tagName.toLowerCase()&&e.type&&n(e.type))},qq.isBlob=function(e){if(window.Blob&&"[object Blob]"===Object.prototype.toString.call(e))return!0},qq.isXhrUploadSupported=function(){var e=document.createElement("input");return e.type="file",void 0!==e.multiple&&"undefined"!==typeof File&&"undefined"!==typeof FormData&&"undefined"!==typeof qq.createXhrInstance().upload},qq.createXhrInstance=function(){if(window.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(e){return qq.log("Neither XHR or ActiveX are supported!","error"),null}},qq.isFolderDropSupported=function(e){return e.items&&e.items.length>0&&e.items[0].webkitGetAsEntry},qq.isFileChunkingSupported=function(){return!qq.androidStock()&&qq.isXhrUploadSupported()&&(void 0!==File.prototype.slice||void 0!==File.prototype.webkitSlice||void 0!==File.prototype.mozSlice)},qq.sliceBlob=function(e,t,n){var r=e.slice||e.mozSlice||e.webkitSlice;return r.call(e,t,n)},qq.arrayBufferToHex=function(e){var t="",n=new Uint8Array(e);return qq.each(n,(function(e,n){var r=n.toString(16);r.length<2&&(r="0"+r),t+=r})),t},qq.readBlobToHex=function(e,t,n){var r=qq.sliceBlob(e,t,t+n),i=new FileReader,o=new qq.Promise;return i.onload=function(){o.success(qq.arrayBufferToHex(i.result))},i.onerror=o.failure,i.readAsArrayBuffer(r),o},qq.extend=function(e,t,n){return qq.each(t,(function(t,r){n&&qq.isObject(r)?(void 0===e[t]&&(e[t]={}),qq.extend(e[t],r,!0)):e[t]=r})),e},qq.override=function(e,t){var n={},r=t(n);return qq.each(r,(function(t,r){void 0!==e[t]&&(n[t]=e[t]),e[t]=r})),e},qq.indexOf=function(e,t,n){if(e.indexOf)return e.indexOf(t,n);n=n||0;var r=e.length;for(n<0&&(n+=r);n<r;n+=1)if(e.hasOwnProperty(n)&&e[n]===t)return n;return-1},qq.getUniqueId=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)}))},qq.ie=function(){return-1!==navigator.userAgent.indexOf("MSIE")||-1!==navigator.userAgent.indexOf("Trident")},qq.ie7=function(){return-1!==navigator.userAgent.indexOf("MSIE 7")},qq.ie8=function(){return-1!==navigator.userAgent.indexOf("MSIE 8")},qq.ie10=function(){return-1!==navigator.userAgent.indexOf("MSIE 10")},qq.ie11=function(){return qq.ie()&&-1!==navigator.userAgent.indexOf("rv:11")},qq.edge=function(){return navigator.userAgent.indexOf("Edge")>=0},qq.safari=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Apple")},qq.chrome=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Google")},qq.opera=function(){return void 0!==navigator.vendor&&-1!==navigator.vendor.indexOf("Opera")},qq.firefox=function(){return!qq.edge()&&!qq.ie11()&&-1!==navigator.userAgent.indexOf("Mozilla")&&void 0!==navigator.vendor&&""===navigator.vendor},qq.windows=function(){return"Win32"===navigator.platform},qq.android=function(){return-1!==navigator.userAgent.toLowerCase().indexOf("android")},qq.androidStock=function(){return qq.android()&&navigator.userAgent.toLowerCase().indexOf("chrome")<0},qq.ios6=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 6_")},qq.ios7=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 7_")},qq.ios8=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 8_")},qq.ios800=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf(" OS 8_0 ")},qq.ios=function(){return-1!==navigator.userAgent.indexOf("iPad")||-1!==navigator.userAgent.indexOf("iPod")||-1!==navigator.userAgent.indexOf("iPhone")},qq.iosChrome=function(){return qq.ios()&&-1!==navigator.userAgent.indexOf("CriOS")},qq.iosSafari=function(){return qq.ios()&&!qq.iosChrome()&&-1!==navigator.userAgent.indexOf("Safari")},qq.iosSafariWebView=function(){return qq.ios()&&!qq.iosChrome()&&!qq.iosSafari()},qq.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},qq.toElement=function(){var e=document.createElement("div");return function(t){e.innerHTML=t;var n=e.firstChild;return e.removeChild(n),n}}(),qq.each=function(e,t){var n,r;if(e)if(window.Storage&&e.constructor===window.Storage){for(n=0;n<e.length;n++)if(r=t(e.key(n),e.getItem(e.key(n))),!1===r)break}else if(qq.isArray(e)||qq.isItemList(e)||qq.isNodeList(e)){for(n=0;n<e.length;n++)if(r=t(n,e[n]),!1===r)break}else if(qq.isString(e)){for(n=0;n<e.length;n++)if(r=t(n,e.charAt(n)),!1===r)break}else for(n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&(r=t(n,e[n]),!1===r))break},qq.bind=function(e,t){if(qq.isFunction(e)){var n=Array.prototype.slice.call(arguments,2);return function(){var r=qq.extend([],n);return arguments.length&&(r=r.concat(Array.prototype.slice.call(arguments))),e.apply(t,r)}}throw new Error("first parameter must be a function!")},qq.obj2url=function(e,t,n){var r=[],i="&",o=function(e,n){var i=t?/\[\]$/.test(t)?t:t+"["+n+"]":n;"undefined"!==i&&"undefined"!==n&&r.push("object"===typeof e?qq.obj2url(e,i,!0):"[object Function]"===Object.prototype.toString.call(e)?encodeURIComponent(i)+"="+encodeURIComponent(e()):encodeURIComponent(i)+"="+encodeURIComponent(e))};return!n&&t?(i=/\?/.test(t)?/\?$/.test(t)?"":"&":"?",r.push(t),r.push(qq.obj2url(e))):"[object Array]"===Object.prototype.toString.call(e)&&"undefined"!==typeof e?qq.each(e,(function(e,t){o(t,e)})):"undefined"!==typeof e&&null!==e&&"object"===typeof e?qq.each(e,(function(e,t){o(t,e)})):r.push(encodeURIComponent(t)+"="+encodeURIComponent(e)),t?r.join(i):r.join(i).replace(/^&/,"").replace(/%20/g,"+")},qq.obj2FormData=function(e,t,n){return t||(t=new FormData),qq.each(e,(function(e,r){e=n?n+"["+e+"]":e,qq.isObject(r)?qq.obj2FormData(r,t,e):qq.isFunction(r)?t.append(e,r()):t.append(e,r)})),t},qq.obj2Inputs=function(e,t){var n;return t||(t=document.createElement("form")),qq.obj2FormData(e,{append:function(e,r){n=document.createElement("input"),n.setAttribute("name",e),n.setAttribute("value",r),t.appendChild(n)}}),t},qq.parseJson=function(json){return window.JSON&&qq.isFunction(JSON.parse)?JSON.parse(json):eval("("+json+")")},qq.getExtension=function(e){var t=e.lastIndexOf(".")+1;if(t>0)return e.substr(t,e.length-t)},qq.getFilename=function(e){return qq.isInput(e)?e.value.replace(/.*(\/|\\)/,""):qq.isFile(e)&&null!==e.fileName&&void 0!==e.fileName?e.fileName:e.name},qq.DisposeSupport=function(){var e=[];return{dispose:function(){var t;do{t=e.shift(),t&&t()}while(t)},attach:function(){var e=arguments;this.addDisposer(qq(e[0]).attach.apply(this,Array.prototype.slice.call(arguments,1)))},addDisposer:function(t){e.push(t)}}}})(),function(){"use strict";__WEBPACK_AMD_DEFINE_RESULT__=function(){return qq}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(),function(){"use strict";qq.Error=function(e){this.message="[Fine Uploader "+qq.version+"] "+e},qq.Error.prototype=new Error}(),qq.version="5.16.2",qq.supportedFeatures=function(){"use strict";var e,t,n,r,i,o,a,s,u,l,c,f,d,h,p;function m(){var e,t=!0;try{e=document.createElement("input"),e.type="file",qq(e).hide(),e.disabled&&(t=!1)}catch(n){t=!1}return t}function g(){return(qq.chrome()||qq.opera())&&void 0!==navigator.userAgent.match(/Chrome\/[1][4-9]|Chrome\/[2-9][0-9]/)}function v(){if(window.XMLHttpRequest){var e=qq.createXhrInstance();return void 0!==e.withCredentials}return!1}function y(){return void 0!==window.XDomainRequest}function b(){return!!v()||y()}function q(){return void 0!==document.createElement("input").webkitdirectory}function w(){try{return!!window.localStorage&&qq.isFunction(window.localStorage.setItem)}catch(e){return!1}}function _(){var e=document.createElement("span");return("draggable"in e||"ondragstart"in e&&"ondrop"in e)&&!qq.android()&&!qq.ios()}return e=m(),r=e&&qq.isXhrUploadSupported(),t=r&&!qq.androidStock(),n=r&&_(),i=n&&function(){var e=document.createElement("input");return e.type="file",!!("webkitdirectory"in(e||document.querySelectorAll("input[type=file]")[0]))}(),o=r&&qq.isFileChunkingSupported(),a=r&&o&&w(),s=r&&g(),u=e&&(void 0!==window.postMessage||r),c=v(),l=y(),f=b(),d=q(),h=r&&void 0!==window.FileReader,p=function(){return!!r&&(!qq.androidStock()&&!qq.iosChrome())}(),{ajaxUploading:r,blobUploading:t,canDetermineSize:r,chunking:o,deleteFileCors:f,deleteFileCorsXdr:l,deleteFileCorsXhr:c,dialogElement:!!window.HTMLDialogElement,fileDrop:n,folderDrop:i,folderSelection:d,imagePreviews:h,imageValidation:h,itemSizeValidation:r,pause:o,progressBar:p,resume:a,scaling:h&&t,tiffPreviews:qq.safari(),unlimitedScaledImageSize:!qq.ios(),uploading:e,uploadCors:u,uploadCustomHeaders:r,uploadNonMultipart:r,uploadViaPaste:s}}(),qq.isGenericPromise=function(e){"use strict";return!!(e&&e.then&&qq.isFunction(e.then))},qq.Promise=function(){"use strict";var e,t,n=[],r=[],i=[],o=0;qq.extend(this,{then:function(i,a){return 0===o?(i&&n.push(i),a&&r.push(a)):-1===o?a&&a.apply(null,t):i&&i.apply(null,e),this},done:function(n){return 0===o?i.push(n):n.apply(null,void 0===t?e:t),this},success:function(){return o=1,e=arguments,n.length&&qq.each(n,(function(t,n){n.apply(null,e)})),i.length&&qq.each(i,(function(t,n){n.apply(null,e)})),this},failure:function(){return o=-1,t=arguments,r.length&&qq.each(r,(function(e,n){n.apply(null,t)})),i.length&&qq.each(i,(function(e,n){n.apply(null,t)})),this}})},qq.BlobProxy=function(e,t){"use strict";qq.extend(this,{referenceBlob:e,create:function(){return t(e)}})},qq.UploadButton=function(e){"use strict";var t,n,r=this,i=new qq.DisposeSupport,o={acceptFiles:null,element:null,focusClass:"qq-upload-button-focus",folders:!1,hoverClass:"qq-upload-button-hover",ios8BrowserCrashWorkaround:!1,multiple:!1,name:"qqfile",onChange:function(e){},title:null};function a(){var e=document.createElement("input");return e.setAttribute(qq.UploadButton.BUTTON_ID_ATTR_NAME,n),e.setAttribute("title",o.title),r.setMultiple(o.multiple,e),o.folders&&qq.supportedFeatures.folderSelection&&e.setAttribute("webkitdirectory",""),o.acceptFiles&&e.setAttribute("accept",o.acceptFiles),e.setAttribute("type","file"),e.setAttribute("name",o.name),qq(e).css({position:"absolute",right:0,top:0,fontFamily:"Arial",fontSize:qq.ie()&&!qq.ie8()?"3500px":"118px",margin:0,padding:0,cursor:"pointer",opacity:0}),!qq.ie7()&&qq(e).css({height:"100%"}),o.element.appendChild(e),i.attach(e,"change",(function(){o.onChange(e)})),i.attach(e,"mouseover",(function(){qq(o.element).addClass(o.hoverClass)})),i.attach(e,"mouseout",(function(){qq(o.element).removeClass(o.hoverClass)})),i.attach(e,"focus",(function(){qq(o.element).addClass(o.focusClass)})),i.attach(e,"blur",(function(){qq(o.element).removeClass(o.focusClass)})),e}qq.extend(o,e),n=qq.getUniqueId(),qq(o.element).css({position:"relative",overflow:"hidden",direction:"ltr"}),qq.extend(this,{getInput:function(){return t},getButtonId:function(){return n},setMultiple:function(e,t){var n=t||this.getInput();o.ios8BrowserCrashWorkaround&&qq.ios8()&&(qq.iosChrome()||qq.iosSafariWebView())||e?n.setAttribute("multiple",""):n.removeAttribute("multiple")},setAcceptFiles:function(e){e!==o.acceptFiles&&t.setAttribute("accept",e)},reset:function(){t.parentNode&&qq(t).remove(),qq(o.element).removeClass(o.focusClass),t=null,t=a()}}),t=a()},qq.UploadButton.BUTTON_ID_ATTR_NAME="qq-button-id",qq.UploadData=function(e){"use strict";var t=[],n={},r={},i={},o={};function a(e){if(qq.isArray(e)){var n=[];return qq.each(e,(function(e,r){n.push(t[r])})),n}return t[e]}function s(e){if(qq.isArray(e)){var r=[];return qq.each(e,(function(e,i){r.push(t[n[i]])})),r}return t[n[e]]}function u(e){var n=[],i=[].concat(e);return qq.each(i,(function(e,i){var o=r[i];void 0!==o&&qq.each(o,(function(e,r){n.push(t[r])}))})),n}qq.extend(this,{addFile:function(a){var s=a.status||qq.status.SUBMITTING,u=t.push({name:a.name,originalName:a.name,uuid:a.uuid,size:null==a.size?-1:a.size,status:s,file:a.file})-1;return a.batchId&&(t[u].batchId=a.batchId,void 0===o[a.batchId]&&(o[a.batchId]=[]),o[a.batchId].push(u)),a.proxyGroupId&&(t[u].proxyGroupId=a.proxyGroupId,void 0===i[a.proxyGroupId]&&(i[a.proxyGroupId]=[]),i[a.proxyGroupId].push(u)),t[u].id=u,n[a.uuid]=u,void 0===r[s]&&(r[s]=[]),r[s].push(u),a.onBeforeStatusChange&&a.onBeforeStatusChange(u),e.onStatusChange(u,null,s),u},retrieve:function(e){return qq.isObject(e)&&t.length?void 0!==e.id?a(e.id):void 0!==e.uuid?s(e.uuid):e.status?u(e.status):void 0:qq.extend([],t,!0)},removeFileRef:function(e){var t=a(e);t&&delete t.file},reset:function(){t=[],n={},r={},o={}},setStatus:function(n,i){var o=t[n].status,a=qq.indexOf(r[o],n);r[o].splice(a,1),t[n].status=i,void 0===r[i]&&(r[i]=[]),r[i].push(n),e.onStatusChange(n,o,i)},uuidChanged:function(e,r){var i=t[e].uuid;t[e].uuid=r,n[r]=e,delete n[i]},updateName:function(e,n){t[e].name=n},updateSize:function(e,n){t[e].size=n},setParentId:function(e,n){t[e].parentId=n},getIdsInProxyGroup:function(e){var n=t[e].proxyGroupId;return n?i[n]:[]},getIdsInBatch:function(e){var n=t[e].batchId;return o[n]}})},qq.status={SUBMITTING:"submitting",SUBMITTED:"submitted",REJECTED:"rejected",QUEUED:"queued",CANCELED:"canceled",PAUSED:"paused",UPLOADING:"uploading",UPLOAD_FINALIZING:"upload finalizing",UPLOAD_RETRYING:"retrying upload",UPLOAD_SUCCESSFUL:"upload successful",UPLOAD_FAILED:"upload failed",DELETE_FAILED:"delete failed",DELETING:"deleting",DELETED:"deleted"},function(){"use strict";qq.basePublicApi={addBlobs:function(e,t,n){this.addFiles(e,t,n)},addInitialFiles:function(e){var t=this;qq.each(e,(function(e,n){t._addCannedFile(n)}))},addFiles:function(e,t,n){this._maybeHandleIos8SafariWorkaround();var r=0===this._storedIds.length?qq.getUniqueId():this._currentBatchId,i=qq.bind((function(e){this._handleNewFile({blob:e,name:this._options.blobs.defaultName},r,f)}),this),o=qq.bind((function(e){this._handleNewFile(e,r,f)}),this),a=qq.bind((function(e){var t=qq.canvasToBlob(e);this._handleNewFile({blob:t,name:this._options.blobs.defaultName+".png"},r,f)}),this),s=qq.bind((function(e){var t=e.quality&&e.quality/100,n=qq.canvasToBlob(e.canvas,e.type,t);this._handleNewFile({blob:n,name:e.name},r,f)}),this),u=qq.bind((function(e){if(qq.isInput(e)&&qq.supportedFeatures.ajaxUploading){var t=Array.prototype.slice.call(e.files),n=this;qq.each(t,(function(e,t){n._handleNewFile(t,r,f)}))}else this._handleNewFile(e,r,f)}),this),l=function(){qq.isFileList(e)&&(e=Array.prototype.slice.call(e)),e=[].concat(e)},c=this,f=[];this._currentBatchId=r,e&&(l(),qq.each(e,(function(e,t){qq.isFileOrInput(t)?u(t):qq.isBlob(t)?i(t):qq.isObject(t)?t.blob&&t.name?o(t):t.canvas&&t.name&&s(t):t.tagName&&"canvas"===t.tagName.toLowerCase()?a(t):c.log(t+" is not a valid file container! Ignoring!","warn")})),this.log("Received "+f.length+" files."),this._prepareItemsForUpload(f,t,n))},cancel:function(e){var t=this._uploadData.retrieve({id:e});t&&t.status===qq.status.UPLOAD_FINALIZING?this.log(qq.format("Ignoring cancel for file ID {} ({}). Finalizing upload.",e,this.getName(e)),"error"):this._handler.cancel(e)},cancelAll:function(){var e=[],t=this;qq.extend(e,this._storedIds),qq.each(e,(function(e,n){t.cancel(n)})),this._handler.cancelAll()},clearStoredFiles:function(){this._storedIds=[]},continueUpload:function(e){var t=this._uploadData.retrieve({id:e});return!(!qq.supportedFeatures.pause||!this._options.chunking.enabled)&&(t.status===qq.status.PAUSED?(this.log(qq.format("Paused file ID {} ({}) will be continued. Not paused.",e,this.getName(e))),this._uploadFile(e),!0):(this.log(qq.format("Ignoring continue for file ID {} ({}). Not paused.",e,this.getName(e)),"error"),!1))},deleteFile:function(e){return this._onSubmitDelete(e)},doesExist:function(e){return this._handler.isValid(e)},drawThumbnail:function(e,t,n,r,i){var o,a,s=new qq.Promise;return this._imageGenerator?(o=this._thumbnailUrls[e],a={customResizeFunction:i,maxSize:n>0?n:null,scale:n>0},!r&&qq.supportedFeatures.imagePreviews&&(o=this.getFile(e)),null==o?s.failure({container:t,error:"File or URL not found."}):this._imageGenerator.generate(o,t,a).then((function(e){s.success(e)}),(function(e,t){s.failure({container:e,error:t||"Problem generating thumbnail"})}))):s.failure({container:t,error:"Missing image generator module"}),s},getButton:function(e){return this._getButton(this._buttonIdsForFileIds[e])},getEndpoint:function(e){return this._endpointStore.get(e)},getFile:function(e){var t,n=this._handler.getFile(e);return n||(t=this._uploadData.retrieve({id:e}),t&&(n=t.file)),n||null},getInProgress:function(){return this._uploadData.retrieve({status:[qq.status.UPLOADING,qq.status.UPLOAD_RETRYING,qq.status.QUEUED]}).length},getName:function(e){return this._uploadData.retrieve({id:e}).name},getParentId:function(e){var t=this.getUploads({id:e}),n=null;return t&&void 0!==t.parentId&&(n=t.parentId),n},getResumableFilesData:function(){return this._handler.getResumableFilesData()},getSize:function(e){return this._uploadData.retrieve({id:e}).size},getNetUploads:function(){return this._netUploaded},getRemainingAllowedItems:function(){var e=this._currentItemLimit;return e>0?e-this._netUploadedOrQueued:null},getUploads:function(e){return this._uploadData.retrieve(e)},getUuid:function(e){return this._uploadData.retrieve({id:e}).uuid},isResumable:function(e){return this._handler.hasResumeRecord(e)},log:function(e,t){!this._options.debug||t&&"info"!==t?t&&"info"!==t&&qq.log("[Fine Uploader "+qq.version+"] "+e,t):qq.log("[Fine Uploader "+qq.version+"] "+e)},pauseUpload:function(e){var t=this._uploadData.retrieve({id:e});if(!qq.supportedFeatures.pause||!this._options.chunking.enabled)return!1;if(qq.indexOf([qq.status.UPLOADING,qq.status.UPLOAD_RETRYING],t.status)>=0){if(this._handler.pause(e))return this._uploadData.setStatus(e,qq.status.PAUSED),!0;this.log(qq.format("Unable to pause file ID {} ({}).",e,this.getName(e)),"error")}else this.log(qq.format("Ignoring pause for file ID {} ({}). Not in progress.",e,this.getName(e)),"error");return!1},removeFileRef:function(e){this._handler.expunge(e),this._uploadData.removeFileRef(e)},reset:function(){this.log("Resetting uploader..."),this._handler.reset(),this._storedIds=[],this._autoRetries=[],this._retryTimeouts=[],this._preventRetries=[],this._thumbnailUrls=[],qq.each(this._buttons,(function(e,t){t.reset()})),this._paramsStore.reset(),this._endpointStore.reset(),this._netUploadedOrQueued=0,this._netUploaded=0,this._uploadData.reset(),this._buttonIdsForFileIds=[],this._pasteHandler&&this._pasteHandler.reset(),this._options.session.refreshOnReset&&this._refreshSessionData(),this._succeededSinceLastAllComplete=[],this._failedSinceLastAllComplete=[],this._totalProgress&&this._totalProgress.reset(),this._customResumeDataStore.reset()},retry:function(e){return this._manualRetry(e)},scaleImage:function(e,t){var n=this;return qq.Scaler.prototype.scaleImage(e,t,{log:qq.bind(n.log,n),getFile:qq.bind(n.getFile,n),uploadData:n._uploadData})},setCustomHeaders:function(e,t){this._customHeadersStore.set(e,t)},setCustomResumeData:function(e,t){this._customResumeDataStore.set(t,e)},setDeleteFileCustomHeaders:function(e,t){this._deleteFileCustomHeadersStore.set(e,t)},setDeleteFileEndpoint:function(e,t){this._deleteFileEndpointStore.set(e,t)},setDeleteFileParams:function(e,t){this._deleteFileParamsStore.set(e,t)},setEndpoint:function(e,t){this._endpointStore.set(e,t)},setForm:function(e){this._updateFormSupportAndParams(e)},setItemLimit:function(e){this._currentItemLimit=e},setName:function(e,t){this._uploadData.updateName(e,t)},setParams:function(e,t){this._paramsStore.set(e,t)},setUuid:function(e,t){return this._uploadData.uuidChanged(e,t)},setStatus:function(e,t){var n=this.getUploads({id:e});if(!n)throw new qq.Error(e+" is not a valid file ID.");switch(t){case qq.status.DELETED:this._onDeleteComplete(e,null,!1);break;case qq.status.DELETE_FAILED:this._onDeleteComplete(e,null,!0);break;default:var r="Method setStatus called on '"+name+"' not implemented yet for "+t;throw this.log(r),new qq.Error(r)}},uploadStoredFiles:function(){0===this._storedIds.length?this._itemError("noFilesError"):this._uploadStoredFiles()}},qq.basePrivateApi={_addCannedFile:function(e){var t=this;return this._uploadData.addFile({uuid:e.uuid,name:e.name,size:e.size,status:qq.status.UPLOAD_SUCCESSFUL,onBeforeStatusChange:function(n){e.deleteFileEndpoint&&t.setDeleteFileEndpoint(e.deleteFileEndpoint,n),e.deleteFileParams&&t.setDeleteFileParams(e.deleteFileParams,n),e.thumbnailUrl&&(t._thumbnailUrls[n]=e.thumbnailUrl),t._netUploaded++,t._netUploadedOrQueued++}})},_annotateWithButtonId:function(e,t){qq.isFile(e)&&(e.qqButtonId=this._getButtonId(t))},_batchError:function(e){this._options.callbacks.onError(null,null,e,void 0)},_createDeleteHandler:function(){var e=this;return new qq.DeleteFileAjaxRequester({method:this._options.deleteFile.method.toUpperCase(),maxConnections:this._options.maxConnections,uuidParamName:this._options.request.uuidName,customHeaders:this._deleteFileCustomHeadersStore,paramsStore:this._deleteFileParamsStore,endpointStore:this._deleteFileEndpointStore,cors:this._options.cors,log:qq.bind(e.log,e),onDelete:function(t){e._onDelete(t),e._options.callbacks.onDelete(t)},onDeleteComplete:function(t,n,r){e._onDeleteComplete(t,n,r),e._options.callbacks.onDeleteComplete(t,n,r)}})},_createPasteHandler:function(){var e=this;return new qq.PasteSupport({targetElement:this._options.paste.targetElement,callbacks:{log:qq.bind(e.log,e),pasteReceived:function(t){e._handleCheckedCallback({name:"onPasteReceived",callback:qq.bind(e._options.callbacks.onPasteReceived,e,t),onSuccess:qq.bind(e._handlePasteSuccess,e,t),identifier:"pasted image"})}}})},_createStore:function(e,t){var n={},r=e,i={},o=t,a=function(e){return qq.isObject(e)?qq.extend({},e):e},s=function(){return qq.isFunction(o)?o():o},u=function(e,t){o&&qq.isObject(t)&&qq.extend(t,s()),i[e]&&qq.extend(t,i[e])};return{set:function(e,t){null==t?(n={},r=a(e)):n[t]=a(e)},get:function(e){var t;return t=null!=e&&n[e]?n[e]:a(r),u(e,t),a(t)},addReadOnly:function(e,t){qq.isObject(n)&&(null===e?qq.isFunction(t)?o=t:(o=o||{},qq.extend(o,t)):(i[e]=i[e]||{},qq.extend(i[e],t)))},remove:function(e){return delete n[e]},reset:function(){n={},i={},r=e}}},_createUploadDataTracker:function(){var e=this;return new qq.UploadData({getName:function(t){return e.getName(t)},getUuid:function(t){return e.getUuid(t)},getSize:function(t){return e.getSize(t)},onStatusChange:function(t,n,r){e._onUploadStatusChange(t,n,r),e._options.callbacks.onStatusChange(t,n,r),e._maybeAllComplete(t,r),e._totalProgress&&setTimeout((function(){e._totalProgress.onStatusChange(t,n,r)}),0)}})},_createUploadButton:function(e){var t,n=this,r=e.accept||this._options.validation.acceptFiles,i=e.allowedExtensions||this._options.validation.allowedExtensions;function o(){return!!qq.supportedFeatures.ajaxUploading&&(!(n._options.workarounds.iosEmptyVideos&&qq.ios()&&!qq.ios6()&&n._isAllowedExtension(i,".mov"))&&(void 0===e.multiple?n._options.multiple:e.multiple))}return t=new qq.UploadButton({acceptFiles:r,element:e.element,focusClass:this._options.classes.buttonFocus,folders:e.folders,hoverClass:this._options.classes.buttonHover,ios8BrowserCrashWorkaround:this._options.workarounds.ios8BrowserCrash,multiple:o(),name:this._options.request.inputName,onChange:function(e){n._onInputChange(e)},title:null==e.title?this._options.text.fileInputTitle:e.title}),this._disposeSupport.addDisposer((function(){t.dispose()})),n._buttons.push(t),t},_createUploadHandler:function(e,t){var n=this,r={},i={debug:this._options.debug,maxConnections:this._options.maxConnections,cors:this._options.cors,paramsStore:this._paramsStore,endpointStore:this._endpointStore,chunking:this._options.chunking,resume:this._options.resume,blobs:this._options.blobs,log:qq.bind(n.log,n),preventRetryParam:this._options.retry.preventRetryResponseProperty,onProgress:function(e,t,i,o){i<0||o<0||(r[e]&&r[e].loaded===i&&r[e].total===o||(n._onProgress(e,t,i,o),n._options.callbacks.onProgress(e,t,i,o)),r[e]={loaded:i,total:o})},onComplete:function(e,t,i,o){delete r[e];var a,s=n.getUploads({id:e}).status;s!==qq.status.UPLOAD_SUCCESSFUL&&s!==qq.status.UPLOAD_FAILED&&(a=n._onComplete(e,t,i,o),a instanceof qq.Promise?a.done((function(){n._options.callbacks.onComplete(e,t,i,o)})):n._options.callbacks.onComplete(e,t,i,o))},onCancel:function(e,t,r){var i=new qq.Promise;return n._handleCheckedCallback({name:"onCancel",callback:qq.bind(n._options.callbacks.onCancel,n,e,t),onFailure:i.failure,onSuccess:function(){r.then((function(){n._onCancel(e,t)})),i.success()},identifier:e}),i},onUploadPrep:qq.bind(this._onUploadPrep,this),onUpload:function(e,t){n._onUpload(e,t);var r=n._options.callbacks.onUpload(e,t);return qq.isGenericPromise(r)?(n.log(qq.format("onUpload for {} returned a Promise - waiting for resolution.",e)),r):(new qq.Promise).success()},onUploadChunk:function(e,t,r){n._onUploadChunk(e,r);var i=n._options.callbacks.onUploadChunk(e,t,r);return qq.isGenericPromise(i)?(n.log(qq.format("onUploadChunk for {}.{} returned a Promise - waiting for resolution.",e,r.partIndex)),i):(new qq.Promise).success()},onUploadChunkSuccess:function(e,t,r,i){n._onUploadChunkSuccess(e,t),n._options.callbacks.onUploadChunkSuccess.apply(n,arguments)},onResume:function(e,t,r,i){return n._options.callbacks.onResume(e,t,r,i)},onAutoRetry:function(e,t,r,i){return n._onAutoRetry.apply(n,arguments)},onUuidChanged:function(e,t){n.log("Server requested UUID change from '"+n.getUuid(e)+"' to '"+t+"'"),n.setUuid(e,t)},getName:qq.bind(n.getName,n),getUuid:qq.bind(n.getUuid,n),getSize:qq.bind(n.getSize,n),setSize:qq.bind(n._setSize,n),getDataByUuid:function(e){return n.getUploads({uuid:e})},isQueued:function(e){var t=n.getUploads({id:e}).status;return t===qq.status.QUEUED||t===qq.status.SUBMITTED||t===qq.status.UPLOAD_RETRYING||t===qq.status.PAUSED},getIdsInProxyGroup:n._uploadData.getIdsInProxyGroup,getIdsInBatch:n._uploadData.getIdsInBatch,isInProgress:function(e){return n.getUploads({id:e}).status===qq.status.UPLOADING},getCustomResumeData:qq.bind(n._getCustomResumeData,n),setStatus:function(e,t){n._uploadData.setStatus(e,t)}};return qq.each(this._options.request,(function(e,t){i[e]=t})),i.customHeaders=this._customHeadersStore,e&&qq.each(e,(function(e,t){i[e]=t})),new qq.UploadHandlerController(i,t)},_fileOrBlobRejected:function(e){this._netUploadedOrQueued--,this._uploadData.setStatus(e,qq.status.REJECTED)},_formatSize:function(e){if(0===e)return e+this._options.text.sizeSymbols[0];var t=-1;do{e/=1e3,t++}while(e>999);return Math.max(e,.1).toFixed(1)+this._options.text.sizeSymbols[t]},_generateExtraButtonSpecs:function(){var e=this;this._extraButtonSpecs={},qq.each(this._options.extraButtons,(function(t,n){var r=n.multiple,i=qq.extend({},e._options.validation,!0),o=qq.extend({},n);void 0===r&&(r=e._options.multiple),o.validation&&qq.extend(i,n.validation,!0),qq.extend(o,{multiple:r,validation:i},!0),e._initExtraButton(o)}))},_getButton:function(e){var t=this._extraButtonSpecs[e];return t?t.element:e===this._defaultButtonId?this._options.button:void 0},_getButtonId:function(e){var t,n,r=e;if(r instanceof qq.BlobProxy&&(r=r.referenceBlob),r&&!qq.isBlob(r)){if(qq.isFile(r))return r.qqButtonId;if("input"===r.tagName.toLowerCase()&&"file"===r.type.toLowerCase())return r.getAttribute(qq.UploadButton.BUTTON_ID_ATTR_NAME);if(t=r.getElementsByTagName("input"),qq.each(t,(function(e,t){if("file"===t.getAttribute("type"))return n=t,!1})),n)return n.getAttribute(qq.UploadButton.BUTTON_ID_ATTR_NAME)}},_getCustomResumeData:function(e){return this._customResumeDataStore.get(e)},_getNotFinished:function(){return this._uploadData.retrieve({status:[qq.status.UPLOADING,qq.status.UPLOAD_RETRYING,qq.status.QUEUED,qq.status.SUBMITTING,qq.status.SUBMITTED,qq.status.PAUSED]}).length},_getValidationBase:function(e){var t=this._extraButtonSpecs[e];return t?t.validation:this._options.validation},_getValidationDescriptor:function(e){return e.file instanceof qq.BlobProxy?{name:qq.getFilename(e.file.referenceBlob),size:e.file.referenceBlob.size}:{name:this.getUploads({id:e.id}).name,size:this.getUploads({id:e.id}).size}},_getValidationDescriptors:function(e){var t=this,n=[];return qq.each(e,(function(e,r){n.push(t._getValidationDescriptor(r))})),n},_handleCameraAccess:function(){if(this._options.camera.ios&&qq.ios()){var e="image/*;capture=camera",t=this._options.camera.button,n=t?this._getButtonId(t):this._defaultButtonId,r=this._options;n&&n!==this._defaultButtonId&&(r=this._extraButtonSpecs[n]),r.multiple=!1,null===r.validation.acceptFiles?r.validation.acceptFiles=e:r.validation.acceptFiles+=","+e,qq.each(this._buttons,(function(e,t){if(t.getButtonId()===n)return t.setMultiple(r.multiple),t.setAcceptFiles(r.acceptFiles),!1}))}},_handleCheckedCallback:function(e){var t=this,n=e.callback();return qq.isGenericPromise(n)?(this.log(e.name+" - waiting for "+e.name+" promise to be fulfilled for "+e.identifier),n.then((function(n){t.log(e.name+" promise success for "+e.identifier),e.onSuccess(n)}),(function(){e.onFailure?(t.log(e.name+" promise failure for "+e.identifier),e.onFailure()):t.log(e.name+" promise failure for "+e.identifier)}))):(!1!==n?e.onSuccess(n):e.onFailure?(this.log(e.name+" - return value was 'false' for "+e.identifier+". Invoking failure callback."),e.onFailure()):this.log(e.name+" - return value was 'false' for "+e.identifier+". Will not proceed."),n)},_handleNewFile:function(e,t,n){var r=this,i=qq.getUniqueId(),o=-1,a=qq.getFilename(e),s=e.blob||e,u=this._customNewFileHandler?this._customNewFileHandler:qq.bind(r._handleNewFileGeneric,r);!qq.isInput(s)&&s.size>=0&&(o=s.size),u(s,a,i,o,n,t,this._options.request.uuidName,{uploadData:r._uploadData,paramsStore:r._paramsStore,addFileToHandler:function(e,t){r._handler.add(e,t),r._netUploadedOrQueued++,r._trackButton(e)}})},_handleNewFileGeneric:function(e,t,n,r,i,o){var a=this._uploadData.addFile({uuid:n,name:t,size:r,batchId:o,file:e});this._handler.add(a,e),this._trackButton(a),this._netUploadedOrQueued++,i.push({id:a,file:e})},_handlePasteSuccess:function(e,t){var n=e.type.split("/")[1],r=t;null==r&&(r=this._options.paste.defaultName),r+="."+n,this.addFiles({name:r,blob:e})},_handleDeleteSuccess:function(e){if(this.getUploads({id:e}).status!==qq.status.DELETED){var t=this.getName(e);this._netUploadedOrQueued--,this._netUploaded--,this._handler.expunge(e),this._uploadData.setStatus(e,qq.status.DELETED),this.log("Delete request for '"+t+"' has succeeded.")}},_handleDeleteFailed:function(e,t){var n=this.getName(e);this._uploadData.setStatus(e,qq.status.DELETE_FAILED),this.log("Delete request for '"+n+"' has failed.","error"),t&&void 0!==t.withCredentials?this._options.callbacks.onError(e,n,"Delete request failed with response code "+t.status,t):this._options.callbacks.onError(e,n,"Delete request failed",t)},_initExtraButton:function(e){var t=this._createUploadButton({accept:e.validation.acceptFiles,allowedExtensions:e.validation.allowedExtensions,element:e.element,folders:e.folders,multiple:e.multiple,title:e.fileInputTitle});this._extraButtonSpecs[t.getButtonId()]=e},_initFormSupportAndParams:function(){this._formSupport=qq.FormSupport&&new qq.FormSupport(this._options.form,qq.bind(this.uploadStoredFiles,this),qq.bind(this.log,this)),this._formSupport&&this._formSupport.attachedToForm?(this._paramsStore=this._createStore(this._options.request.params,this._formSupport.getFormInputsAsObject),this._options.autoUpload=this._formSupport.newAutoUpload,this._formSupport.newEndpoint&&(this._options.request.endpoint=this._formSupport.newEndpoint)):this._paramsStore=this._createStore(this._options.request.params)},_isDeletePossible:function(){return!(!qq.DeleteFileAjaxRequester||!this._options.deleteFile.enabled)&&(!this._options.cors.expected||(!!qq.supportedFeatures.deleteFileCorsXhr||!(!qq.supportedFeatures.deleteFileCorsXdr||!this._options.cors.allowXdr)))},_isAllowedExtension:function(e,t){var n=!1;return!e.length||(qq.each(e,(function(e,r){if(qq.isString(r)){var i=new RegExp("\\."+r+"$","i");if(null!=t.match(i))return n=!0,!1}})),n)},_itemError:function(e,t,n){var r,i,o=this._options.messages[e],a=[],s=[].concat(t),u=s[0],l=this._getButtonId(n),c=this._getValidationBase(l);function f(e,t){o=o.replace(e,t)}return qq.each(c.allowedExtensions,(function(e,t){qq.isString(t)&&a.push(t)})),r=a.join(", ").toLowerCase(),f("{file}",this._options.formatFileName(u)),f("{extensions}",r),f("{sizeLimit}",this._formatSize(c.sizeLimit)),f("{minSizeLimit}",this._formatSize(c.minSizeLimit)),i=o.match(/(\{\w+\})/g),null!==i&&qq.each(i,(function(e,t){f(t,s[e])})),this._options.callbacks.onError(null,u,o,void 0),o},_manualRetry:function(e,t){if(this._onBeforeManualRetry(e))return this._netUploadedOrQueued++,this._uploadData.setStatus(e,qq.status.UPLOAD_RETRYING),t?t(e):this._handler.retry(e),!0},_maybeAllComplete:function(e,t){var n=this,r=this._getNotFinished();t===qq.status.UPLOAD_SUCCESSFUL?this._succeededSinceLastAllComplete.push(e):t===qq.status.UPLOAD_FAILED&&this._failedSinceLastAllComplete.push(e),0===r&&(this._succeededSinceLastAllComplete.length||this._failedSinceLastAllComplete.length)&&setTimeout((function(){n._onAllComplete(n._succeededSinceLastAllComplete,n._failedSinceLastAllComplete)}),0)},_maybeHandleIos8SafariWorkaround:function(){var e=this;if(this._options.workarounds.ios8SafariUploads&&qq.ios800()&&qq.iosSafari())throw setTimeout((function(){window.alert(e._options.messages.unsupportedBrowserIos8Safari)}),0),new qq.Error(this._options.messages.unsupportedBrowserIos8Safari)},_maybeParseAndSendUploadError:function(e,t,n,r){if(!n.success)if(r&&200!==r.status&&!n.error)this._options.callbacks.onError(e,t,"XHR returned response code "+r.status,r);else{var i=n.error?n.error:this._options.text.defaultResponseError;this._options.callbacks.onError(e,t,i,r)}},_maybeProcessNextItemAfterOnValidateCallback:function(e,t,n,r,i){var o=this;if(t.length>n)if(e||!this._options.validation.stopOnFirstInvalidFile)setTimeout((function(){var e=o._getValidationDescriptor(t[n]),a=o._getButtonId(t[n].file),s=o._getButton(a);o._handleCheckedCallback({name:"onValidate",callback:qq.bind(o._options.callbacks.onValidate,o,e,s),onSuccess:qq.bind(o._onValidateCallbackSuccess,o,t,n,r,i),onFailure:qq.bind(o._onValidateCallbackFailure,o,t,n,r,i),identifier:"Item '"+e.name+"', size: "+e.size})}),0);else if(!e)for(;n<t.length;n++)o._fileOrBlobRejected(t[n].id)},_onAllComplete:function(e,t){this._totalProgress&&this._totalProgress.onAllComplete(e,t,this._preventRetries),this._options.callbacks.onAllComplete(qq.extend([],e),qq.extend([],t)),this._succeededSinceLastAllComplete=[],this._failedSinceLastAllComplete=[]},_onAutoRetry:function(e,t,n,r,i){var o=this;if(o._preventRetries[e]=n[o._options.retry.preventRetryResponseProperty],o._shouldAutoRetry(e)){var a=1e3*o._options.retry.autoAttemptDelay;return o._maybeParseAndSendUploadError.apply(o,arguments),o._options.callbacks.onAutoRetry(e,t,o._autoRetries[e]),o._onBeforeAutoRetry(e,t),o._uploadData.setStatus(e,qq.status.UPLOAD_RETRYING),o._retryTimeouts[e]=setTimeout((function(){o.log("Starting retry for "+t+"..."),i?i(e):o._handler.retry(e)}),a),!0}},_onBeforeAutoRetry:function(e,t){this.log("Waiting "+this._options.retry.autoAttemptDelay+" seconds before retrying "+t+"...")},_onBeforeManualRetry:function(e){var t,n=this._currentItemLimit;return this._preventRetries[e]?(this.log("Retries are forbidden for id "+e,"warn"),!1):this._handler.isValid(e)?(t=this.getName(e),!1!==this._options.callbacks.onManualRetry(e,t)&&(n>0&&this._netUploadedOrQueued+1>n?(this._itemError("retryFailTooManyItems"),!1):(this.log("Retrying upload for '"+t+"' (id: "+e+")..."),!0))):(this.log("'"+e+"' is not a valid file ID","error"),!1)},_onCancel:function(e,t){this._netUploadedOrQueued--,clearTimeout(this._retryTimeouts[e]);var n=qq.indexOf(this._storedIds,e);!this._options.autoUpload&&n>=0&&this._storedIds.splice(n,1),this._uploadData.setStatus(e,qq.status.CANCELED)},_onComplete:function(e,t,n,r){return n.success?(n.thumbnailUrl&&(this._thumbnailUrls[e]=n.thumbnailUrl),this._netUploaded++,this._uploadData.setStatus(e,qq.status.UPLOAD_SUCCESSFUL)):(this._netUploadedOrQueued--,this._uploadData.setStatus(e,qq.status.UPLOAD_FAILED),!0===n[this._options.retry.preventRetryResponseProperty]&&(this._preventRetries[e]=!0)),this._maybeParseAndSendUploadError(e,t,n,r),!!n.success},_onDelete:function(e){this._uploadData.setStatus(e,qq.status.DELETING)},_onDeleteComplete:function(e,t,n){this.getName(e);n?this._handleDeleteFailed(e,t):this._handleDeleteSuccess(e)},_onInputChange:function(e){var t;if(qq.supportedFeatures.ajaxUploading){for(t=0;t<e.files.length;t++)this._annotateWithButtonId(e.files[t],e);this.addFiles(e.files)}else e.value.length>0&&this.addFiles(e);qq.each(this._buttons,(function(e,t){t.reset()}))},_onProgress:function(e,t,n,r){this._totalProgress&&this._totalProgress.onIndividualProgress(e,n,r)},_onSubmit:function(e,t){},_onSubmitCallbackSuccess:function(e,t){this._onSubmit.apply(this,arguments),this._uploadData.setStatus(e,qq.status.SUBMITTED),this._onSubmitted.apply(this,arguments),this._options.autoUpload?(this._options.callbacks.onSubmitted.apply(this,arguments),this._uploadFile(e)):(this._storeForLater(e),this._options.callbacks.onSubmitted.apply(this,arguments))},_onSubmitDelete:function(e,t,n){var r,i=this.getUuid(e);return t&&(r=qq.bind(t,this,e,i,n)),this._isDeletePossible()?(this._handleCheckedCallback({name:"onSubmitDelete",callback:qq.bind(this._options.callbacks.onSubmitDelete,this,e),onSuccess:r||qq.bind(this._deleteHandler.sendDelete,this,e,i,n),identifier:e}),!0):(this.log("Delete request ignored for ID "+e+", delete feature is disabled or request not possible due to CORS on a user agent that does not support pre-flighting.","warn"),!1)},_onSubmitted:function(e){},_onTotalProgress:function(e,t){this._options.callbacks.onTotalProgress(e,t)},_onUploadPrep:function(e){},_onUpload:function(e,t){this._uploadData.setStatus(e,qq.status.UPLOADING)},_onUploadChunk:function(e,t){},_onUploadChunkSuccess:function(e,t){!this._preventRetries[e]&&this._options.retry.enableAuto&&(this._autoRetries[e]=0)},_onUploadStatusChange:function(e,t,n){n===qq.status.PAUSED&&clearTimeout(this._retryTimeouts[e])},_onValidateBatchCallbackFailure:function(e){var t=this;qq.each(e,(function(e,n){t._fileOrBlobRejected(n.id)}))},_onValidateBatchCallbackSuccess:function(e,t,n,r,i){var o,a=this._currentItemLimit,s=this._netUploadedOrQueued;0===a||s<=a?t.length>0?this._handleCheckedCallback({name:"onValidate",callback:qq.bind(this._options.callbacks.onValidate,this,e[0],i),onSuccess:qq.bind(this._onValidateCallbackSuccess,this,t,0,n,r),onFailure:qq.bind(this._onValidateCallbackFailure,this,t,0,n,r),identifier:"Item '"+t[0].file.name+"', size: "+t[0].file.size}):this._itemError("noFilesError"):(this._onValidateBatchCallbackFailure(t),o=this._options.messages.tooManyItemsError.replace(/\{netItems\}/g,s).replace(/\{itemLimit\}/g,a),this._batchError(o))},_onValidateCallbackFailure:function(e,t,n,r){var i=t+1;this._fileOrBlobRejected(e[t].id,e[t].file.name),this._maybeProcessNextItemAfterOnValidateCallback(!1,e,i,n,r)},_onValidateCallbackSuccess:function(e,t,n,r){var i=this,o=t+1,a=this._getValidationDescriptor(e[t]);this._validateFileOrBlobData(e[t],a).then((function(){i._upload(e[t].id,n,r),i._maybeProcessNextItemAfterOnValidateCallback(!0,e,o,n,r)}),(function(){i._maybeProcessNextItemAfterOnValidateCallback(!1,e,o,n,r)}))},_prepareItemsForUpload:function(e,t,n){if(0!==e.length){var r=this._getValidationDescriptors(e),i=this._getButtonId(e[0].file),o=this._getButton(i);this._handleCheckedCallback({name:"onValidateBatch",callback:qq.bind(this._options.callbacks.onValidateBatch,this,r,o),onSuccess:qq.bind(this._onValidateBatchCallbackSuccess,this,r,e,t,n,o),onFailure:qq.bind(this._onValidateBatchCallbackFailure,this,e),identifier:"batch validation"})}else this._itemError("noFilesError")},_preventLeaveInProgress:function(){var e=this;this._disposeSupport.attach(window,"beforeunload",(function(t){if(e.getInProgress())return t=t||window.event,t.returnValue=e._options.messages.onLeave,e._options.messages.onLeave}))},_refreshSessionData:function(){var e=this,t=this._options.session;qq.Session&&null!=this._options.session.endpoint&&(this._session||(qq.extend(t,{cors:this._options.cors}),t.log=qq.bind(this.log,this),t.addFileRecord=qq.bind(this._addCannedFile,this),this._session=new qq.Session(t)),setTimeout((function(){e._session.refresh().then((function(t,n){e._sessionRequestComplete(),e._options.callbacks.onSessionRequestComplete(t,!0,n)}),(function(t,n){e._options.callbacks.onSessionRequestComplete(t,!1,n)}))}),0))},_sessionRequestComplete:function(){},_setSize:function(e,t){this._uploadData.updateSize(e,t),this._totalProgress&&this._totalProgress.onNewSize(e)},_shouldAutoRetry:function(e){var t=this._uploadData.retrieve({id:e});return!!(!this._preventRetries[e]&&this._options.retry.enableAuto&&t.status!==qq.status.PAUSED&&(void 0===this._autoRetries[e]&&(this._autoRetries[e]=0),this._autoRetries[e]<this._options.retry.maxAutoAttempts))&&(this._autoRetries[e]+=1,!0)},_storeForLater:function(e){this._storedIds.push(e)},_trackButton:function(e){var t;t=qq.supportedFeatures.ajaxUploading?this._handler.getFile(e).qqButtonId:this._getButtonId(this._handler.getInput(e)),t&&(this._buttonIdsForFileIds[e]=t)},_updateFormSupportAndParams:function(e){this._options.form.element=e,this._formSupport=qq.FormSupport&&new qq.FormSupport(this._options.form,qq.bind(this.uploadStoredFiles,this),qq.bind(this.log,this)),this._formSupport&&this._formSupport.attachedToForm&&(this._paramsStore.addReadOnly(null,this._formSupport.getFormInputsAsObject),this._options.autoUpload=this._formSupport.newAutoUpload,this._formSupport.newEndpoint&&this.setEndpoint(this._formSupport.newEndpoint))},_upload:function(e,t,n){var r=this.getName(e);t&&this.setParams(t,e),n&&this.setEndpoint(n,e),this._handleCheckedCallback({name:"onSubmit",callback:qq.bind(this._options.callbacks.onSubmit,this,e,r),onSuccess:qq.bind(this._onSubmitCallbackSuccess,this,e,r),onFailure:qq.bind(this._fileOrBlobRejected,this,e,r),identifier:e})},_uploadFile:function(e){this._handler.upload(e)||this._uploadData.setStatus(e,qq.status.QUEUED)},_uploadStoredFiles:function(){var e,t,n=this;while(this._storedIds.length)e=this._storedIds.shift(),this._uploadFile(e);t=this.getUploads({status:qq.status.SUBMITTING}).length,t&&(qq.log("Still waiting for "+t+" files to clear submit queue. Will re-parse stored IDs array shortly."),setTimeout((function(){n._uploadStoredFiles()}),1e3))},_validateFileOrBlobData:function(e,t){var n=this,r=function(){return e.file instanceof qq.BlobProxy?e.file.referenceBlob:e.file}(),i=t.name,o=t.size,a=this._getButtonId(e.file),s=this._getValidationBase(a),u=new qq.Promise;return u.then((function(){}),(function(){n._fileOrBlobRejected(e.id,i)})),qq.isFileOrInput(r)&&!this._isAllowedExtension(s.allowedExtensions,i)?(this._itemError("typeError",i,r),u.failure()):this._options.validation.allowEmpty||0!==o?o>0&&s.sizeLimit&&o>s.sizeLimit?(this._itemError("sizeError",i,r),u.failure()):o>0&&o<s.minSizeLimit?(this._itemError("minSizeError",i,r),u.failure()):(qq.ImageValidation&&qq.supportedFeatures.imagePreviews&&qq.isFile(r)?new qq.ImageValidation(r,qq.bind(n.log,n)).validate(s.image).then(u.success,(function(e){n._itemError(e+"ImageError",i,r),u.failure()})):u.success(),u):(this._itemError("emptyError",i,r),u.failure())},_wrapCallbacks:function(){var e,t,n;for(n in e=this,t=function(t,n,r){var i;try{return n.apply(e,r)}catch(o){i=o.message||o.toString(),e.log("Caught exception in '"+t+"' callback - "+i,"error")}},this._options.callbacks)(function(){var r,i;r=n,i=e._options.callbacks[r],e._options.callbacks[r]=function(){return t(r,i,arguments)}})()}}}(),function(){"use strict";qq.FineUploaderBasic=function(e){var t=this;this._options={debug:!1,button:null,multiple:!0,maxConnections:3,disableCancelForFormUploads:!1,autoUpload:!0,warnBeforeUnload:!0,request:{customHeaders:{},endpoint:"/server/upload",filenameParam:"qqfilename",forceMultipart:!0,inputName:"qqfile",method:"POST",omitDefaultParams:!1,params:{},paramsInBody:!0,requireSuccessJson:!0,totalFileSizeName:"qqtotalfilesize",uuidName:"qquuid"},validation:{allowedExtensions:[],sizeLimit:0,minSizeLimit:0,itemLimit:0,stopOnFirstInvalidFile:!0,acceptFiles:null,image:{maxHeight:0,maxWidth:0,minHeight:0,minWidth:0},allowEmpty:!1},callbacks:{onSubmit:function(e,t){},onSubmitted:function(e,t){},onComplete:function(e,t,n,r){},onAllComplete:function(e,t){},onCancel:function(e,t){},onUpload:function(e,t){},onUploadChunk:function(e,t,n){},onUploadChunkSuccess:function(e,t,n,r){},onResume:function(e,t,n,r){},onProgress:function(e,t,n,r){},onTotalProgress:function(e,t){},onError:function(e,t,n,r){},onAutoRetry:function(e,t,n){},onManualRetry:function(e,t){},onValidateBatch:function(e){},onValidate:function(e){},onSubmitDelete:function(e){},onDelete:function(e){},onDeleteComplete:function(e,t,n){},onPasteReceived:function(e){},onStatusChange:function(e,t,n){},onSessionRequestComplete:function(e,t,n){}},messages:{typeError:"{file} has an invalid extension. Valid extension(s): {extensions}.",sizeError:"{file} is too large, maximum file size is {sizeLimit}.",minSizeError:"{file} is too small, minimum file size is {minSizeLimit}.",emptyError:"{file} is empty, please select files again without it.",noFilesError:"No files to upload.",tooManyItemsError:"Too many items ({netItems}) would be uploaded. Item limit is {itemLimit}.",maxHeightImageError:"Image is too tall.",maxWidthImageError:"Image is too wide.",minHeightImageError:"Image is not tall enough.",minWidthImageError:"Image is not wide enough.",retryFailTooManyItems:"Retry failed - you have reached your file limit.",onLeave:"The files are being uploaded, if you leave now the upload will be canceled.",unsupportedBrowserIos8Safari:"Unrecoverable error - this browser does not permit file uploading of any kind due to serious bugs in iOS8 Safari. Please use iOS8 Chrome until Apple fixes these issues."},retry:{enableAuto:!1,maxAutoAttempts:3,autoAttemptDelay:5,preventRetryResponseProperty:"preventRetry"},classes:{buttonHover:"qq-upload-button-hover",buttonFocus:"qq-upload-button-focus"},chunking:{enabled:!1,concurrent:{enabled:!1},mandatory:!1,paramNames:{partIndex:"qqpartindex",partByteOffset:"qqpartbyteoffset",chunkSize:"qqchunksize",totalFileSize:"qqtotalfilesize",totalParts:"qqtotalparts"},partSize:function(e){return 2e6},success:{endpoint:null,headers:function(e){return null},jsonPayload:!1,method:"POST",params:function(e){return null},resetOnStatus:[]}},resume:{enabled:!1,recordsExpireIn:7,paramNames:{resuming:"qqresume"},customKeys:function(e){return[]}},formatFileName:function(e){return e},text:{defaultResponseError:"Upload failure reason unknown",fileInputTitle:"file input",sizeSymbols:["kB","MB","GB","TB","PB","EB"]},deleteFile:{enabled:!1,method:"DELETE",endpoint:"/server/upload",customHeaders:{},params:{}},cors:{expected:!1,sendCredentials:!1,allowXdr:!1},blobs:{defaultName:"misc_data"},paste:{targetElement:null,defaultName:"pasted_image"},camera:{ios:!1,button:null},extraButtons:[],session:{endpoint:null,params:{},customHeaders:{},refreshOnReset:!0},form:{element:"qq-form",autoUpload:!1,interceptSubmit:!0},scaling:{customResizer:null,sendOriginal:!0,orient:!0,defaultType:null,defaultQuality:80,failureText:"Failed to scale",includeExif:!1,sizes:[]},workarounds:{iosEmptyVideos:!0,ios8SafariUploads:!0,ios8BrowserCrash:!1}},qq.extend(this._options,e,!0),this._buttons=[],this._extraButtonSpecs={},this._buttonIdsForFileIds=[],this._wrapCallbacks(),this._disposeSupport=new qq.DisposeSupport,this._storedIds=[],this._autoRetries=[],this._retryTimeouts=[],this._preventRetries=[],this._thumbnailUrls=[],this._netUploadedOrQueued=0,this._netUploaded=0,this._uploadData=this._createUploadDataTracker(),this._initFormSupportAndParams(),this._customHeadersStore=this._createStore(this._options.request.customHeaders),this._deleteFileCustomHeadersStore=this._createStore(this._options.deleteFile.customHeaders),this._deleteFileParamsStore=this._createStore(this._options.deleteFile.params),this._endpointStore=this._createStore(this._options.request.endpoint),this._deleteFileEndpointStore=this._createStore(this._options.deleteFile.endpoint),this._handler=this._createUploadHandler(),this._deleteHandler=qq.DeleteFileAjaxRequester&&this._createDeleteHandler(),this._options.button&&(this._defaultButtonId=this._createUploadButton({element:this._options.button,title:this._options.text.fileInputTitle}).getButtonId()),this._generateExtraButtonSpecs(),this._handleCameraAccess(),this._options.paste.targetElement&&(qq.PasteSupport?this._pasteHandler=this._createPasteHandler():this.log("Paste support module not found","error")),this._options.warnBeforeUnload&&this._preventLeaveInProgress(),this._imageGenerator=qq.ImageGenerator&&new qq.ImageGenerator(qq.bind(this.log,this)),this._refreshSessionData(),this._succeededSinceLastAllComplete=[],this._failedSinceLastAllComplete=[],this._scaler=qq.Scaler&&new qq.Scaler(this._options.scaling,qq.bind(this.log,this))||{},this._scaler.enabled&&(this._customNewFileHandler=qq.bind(this._scaler.handleNewFile,this._scaler)),qq.TotalProgress&&qq.supportedFeatures.progressBar&&(this._totalProgress=new qq.TotalProgress(qq.bind(this._onTotalProgress,this),(function(e){var n=t._uploadData.retrieve({id:e});return n&&n.size||0}))),this._currentItemLimit=this._options.validation.itemLimit,this._customResumeDataStore=this._createStore()},qq.FineUploaderBasic.prototype=qq.basePublicApi,qq.extend(qq.FineUploaderBasic.prototype,qq.basePrivateApi)}(),qq.AjaxRequester=function(e){"use strict";var t,n,r=[],i={},o={acceptHeader:null,validMethods:["PATCH","POST","PUT"],method:"POST",contentType:"application/x-www-form-urlencoded",maxConnections:3,customHeaders:{},endpointStore:{},paramsStore:{},mandatedParams:{},allowXRequestedWithAndCacheControl:!0,successfulResponseCodes:{DELETE:[200,202,204],PATCH:[200,201,202,203,204],POST:[200,201,202,203,204],PUT:[200,201,202,203,204],GET:[200]},cors:{expected:!1,sendCredentials:!1},log:function(e,t){},onSend:function(e){},onComplete:function(e,t,n){},onProgress:null};if(qq.extend(o,e),t=o.log,qq.indexOf(o.validMethods,o.method)<0)throw new Error("'"+o.method+"' is not a supported method for this type of request!");function a(){return qq.indexOf(["GET","POST","HEAD"],o.method)>=0}function s(e){var t=!1;return qq.each(t,(function(e,n){if(qq.indexOf(["Accept","Accept-Language","Content-Language","Content-Type"],n)<0)return t=!0,!1})),t}function u(e){return o.cors.expected&&void 0===e.withCredentials}function l(){var e;return(window.XMLHttpRequest||window.ActiveXObject)&&(e=qq.createXhrInstance(),void 0===e.withCredentials&&(e=new XDomainRequest,e.onload=function(){},e.onerror=function(){},e.ontimeout=function(){},e.onprogress=function(){})),e}function c(e,t){var n=i[e]&&i[e].xhr;return n||(n=t||(o.cors.expected?l():qq.createXhrInstance()),i[e].xhr=n),n}function f(e){var t,n=qq.indexOf(r,e),a=o.maxConnections;delete i[e],r.splice(n,1),r.length>=a&&n<a&&(t=r[a-1],p(t))}function d(e,n){var r=c(e),i=o.method,a=!0===n;f(e),a?t(i+" request for "+e+" has failed","error"):u(r)||w(r.status)||(a=!0,t(i+" request for "+e+" has failed - response code "+r.status,"error")),o.onComplete(e,r,a)}function h(e){var t,n=i[e].additionalParams,r=o.mandatedParams;return o.paramsStore.get&&(t=o.paramsStore.get(e)),n&&qq.each(n,(function(e,n){t=t||{},t[e]=n})),r&&qq.each(r,(function(e,n){t=t||{},t[e]=n})),t}function p(e,r){var a,s=c(e,r),l=o.method,f=h(e),d=i[e].payload;return o.onSend(e),a=m(e,f,i[e].additionalQueryParams),u(s)?(s.onload=y(e),s.onerror=b(e)):s.onreadystatechange=g(e),v(e),s.open(l,a,!0),o.cors.expected&&o.cors.sendCredentials&&!u(s)&&(s.withCredentials=!0),q(e),t("Sending "+l+" request for "+e),d?s.send(d):n||!f?s.send():f&&o.contentType&&o.contentType.toLowerCase().indexOf("application/x-www-form-urlencoded")>=0?s.send(qq.obj2url(f,"")):f&&o.contentType&&o.contentType.toLowerCase().indexOf("application/json")>=0?s.send(JSON.stringify(f)):s.send(f),s}function m(e,t,r){var a=o.endpointStore.get(e),s=i[e].addToPath;return void 0!=s&&(a+="/"+s),n&&t&&(a=qq.obj2url(t,a)),r&&(a=qq.obj2url(r,a)),a}function g(e){return function(){4===c(e).readyState&&d(e)}}function v(e){var t=o.onProgress;t&&(c(e).upload.onprogress=function(n){n.lengthComputable&&t(e,n.loaded,n.total)})}function y(e){return function(){d(e)}}function b(e){return function(){d(e,!0)}}function q(e){var t=c(e),n=o.customHeaders,r=i[e].additionalHeaders||{},l=o.method,f={};u(t)||(o.acceptHeader&&t.setRequestHeader("Accept",o.acceptHeader),o.allowXRequestedWithAndCacheControl&&(o.cors.expected&&a()&&!s(n)||(t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.setRequestHeader("Cache-Control","no-cache"))),!o.contentType||"POST"!==l&&"PUT"!==l||t.setRequestHeader("Content-Type",o.contentType),qq.extend(f,qq.isFunction(n)?n(e):n),qq.extend(f,r),qq.each(f,(function(e,n){t.setRequestHeader(e,n)})))}function w(e){return qq.indexOf(o.successfulResponseCodes[o.method],e)>=0}function _(e,t,n,a,s,u,l){i[e]={addToPath:n,additionalParams:a,additionalQueryParams:s,additionalHeaders:u,payload:l};var c=r.push(e);if(c<=o.maxConnections)return p(e,t)}n="GET"===o.method||"DELETE"===o.method,qq.extend(this,{initTransport:function(e){var t,n,r,i,a,s;return{withPath:function(e){return t=e,this},withParams:function(e){return n=e,this},withQueryParams:function(e){return s=e,this},withHeaders:function(e){return r=e,this},withPayload:function(e){return i=e,this},withCacheBuster:function(){return a=!0,this},send:function(u){return a&&qq.indexOf(["GET","DELETE"],o.method)>=0&&(n.qqtimestamp=(new Date).getTime()),_(e,u,t,n,s,r,i)}}},canceled:function(e){f(e)}})},qq.UploadHandler=function(e){"use strict";var t=e.proxy,n={},r=t.onCancel,i=t.getName;qq.extend(this,{add:function(e,t){n[e]=t,n[e].temp={}},cancel:function(e){var t=this,o=new qq.Promise,a=r(e,i(e),o);a.then((function(){t.isValid(e)&&(n[e].canceled=!0,t.expunge(e)),o.success()}))},expunge:function(e){delete n[e]},getThirdPartyFileId:function(e){return n[e].key},isValid:function(e){return void 0!==n[e]},reset:function(){n={}},_getFileState:function(e){return n[e]},_setThirdPartyFileId:function(e,t){n[e].key=t},_wasCanceled:function(e){return!!n[e].canceled}})},qq.UploadHandlerController=function(e,t){"use strict";var n,r,i,o=this,a=!1,s=!1,u={paramsStore:{},maxConnections:3,chunking:{enabled:!1,multiple:{enabled:!1}},log:function(e,t){},onProgress:function(e,t,n,r){},onComplete:function(e,t,n,r){},onCancel:function(e,t){},onUploadPrep:function(e){},onUpload:function(e,t){},onUploadChunk:function(e,t,n){},onUploadChunkSuccess:function(e,t,n,r){},onAutoRetry:function(e,t,n,r){},onResume:function(e,t,n,r){},onUuidChanged:function(e,t){},getName:function(e){},setSize:function(e,t){},isQueued:function(e){},getIdsInProxyGroup:function(e){},getIdsInBatch:function(e){},isInProgress:function(e){}},l={done:function(e,t,n,r){var o=i._getChunkData(e,t);i._getFileState(e).attemptingResume=!1,delete i._getFileState(e).temp.chunkProgress[t],i._getFileState(e).loaded+=o.size,u.onUploadChunkSuccess(e,i._getChunkDataForCallback(o),n,r)},finalize:function(e){var t=u.getSize(e),n=u.getName(e);r("All chunks have been uploaded for "+e+" - finalizing...."),i.finalizeChunks(e).then((function(o,a){r("Finalize successful for "+e);var s=d.normalizeResponse(o,!0);u.onProgress(e,n,t,t),i._maybeDeletePersistedChunkData(e),d.cleanup(e,s,a)}),(function(t,i){var o=d.normalizeResponse(t,!1);r("Problem finalizing chunks for file ID "+e+" - "+o.error,"error"),(o.reset||i&&u.chunking.success.resetOnStatus.indexOf(i.status)>=0)&&l.reset(e),u.onAutoRetry(e,n,o,i)||d.cleanup(e,o,i)}))},handleFailure:function(e,t,n,o){var a=u.getName(t);r("Chunked upload request failed for "+t+", chunk "+e),i.clearCachedChunk(t,e);var f,h=d.normalizeResponse(n,!1);if(h.reset)l.reset(t);else{var p=i._getFileState(t).chunking.inProgress;f=p?qq.indexOf(p,e):-1,f>=0&&(i._getFileState(t).chunking.inProgress.splice(f,1),i._getFileState(t).chunking.remaining.unshift(e))}i._getFileState(t).temp.ignoreFailure||(s&&(i._getFileState(t).temp.ignoreFailure=!0,r(qq.format("Going to attempt to abort these chunks: {}. These are currently in-progress: {}.",JSON.stringify(Object.keys(i._getXhrs(t))),JSON.stringify(i._getFileState(t).chunking.inProgress))),qq.each(i._getXhrs(t),(function(e,n){r(qq.format("Attempting to abort file {}.{}. XHR readyState {}. ",t,e,n.readyState)),n.abort(),n._cancelled=!0})),i.moveInProgressToRemaining(t),c.free(t,!0)),u.onAutoRetry(t,a,h,o)||d.cleanup(t,h,o))},hasMoreParts:function(e){return!!i._getFileState(e).chunking.remaining.length},nextPart:function(e){var t=i._getFileState(e).chunking.remaining.shift();return t>=i._getTotalChunks(e)&&(t=null),t},reset:function(e){r("Server or callback has ordered chunking effort to be restarted on next attempt for item ID "+e,"error"),i._maybeDeletePersistedChunkData(e),i.reevaluateChunking(e),i._getFileState(e).loaded=0,i._getFileState(e).attemptingResume=!1},sendNext:function(e){var t=u.getSize(e),n=u.getName(e),o=l.nextPart(e),a=i._getChunkData(e,o),f=i._getFileState(e),h=f.attemptingResume,p=f.chunking.inProgress||[];if(null==f.loaded&&(f.loaded=0),h&&!1===u.onResume(e,n,a,f.customResumeData)&&(l.reset(e),o=l.nextPart(e),a=i._getChunkData(e,o),h=!1),null==o&&0===p.length)l.finalize(e);else{p.push(o),i._getFileState(e).chunking.inProgress=p,s&&c.open(e,o),s&&c.available()&&i._getFileState(e).chunking.remaining.length&&l.sendNext(e),0===a.blob.size&&(r(qq.format("Chunk {} for file {} will not be uploaded, zero sized chunk.",o,e),"error"),l.handleFailure(o,e,"File is no longer available",null));var m=u.onUploadChunk(e,n,i._getChunkDataForCallback(a));m.then((function(n){if(u.isInProgress(e)){r(qq.format("Sending chunked upload request for item {}.{}, bytes {}-{} of {}.",e,o,a.start+1,a.end,t));var s={chunkIdx:o,id:e,overrides:n,resuming:h};i.uploadChunk(s).then((function(t,n){r("Chunked upload request succeeded for "+e+", chunk "+o),i.clearCachedChunk(e,o);var a=i._getFileState(e).chunking.inProgress||[],s=d.normalizeResponse(t,!0),u=qq.indexOf(a,o);r(qq.format("Chunk {} for file {} uploaded successfully.",o,e)),l.done(e,o,s,n),u>=0&&a.splice(u,1),i._maybePersistChunkedState(e),l.hasMoreParts(e)||0!==a.length?l.hasMoreParts(e)?l.sendNext(e):r(qq.format("File ID {} has no more chunks to send and these chunk indexes are still marked as in-progress: {}",e,JSON.stringify(a))):l.finalize(e)}),(function(t,n){l.handleFailure(o,e,t,n)})).done((function(){i.clearXhr(e,o)}))}else r(qq.format("Not sending chunked upload request for item {}.{} - no longer in progress.",e,o))}),(function(t){l.handleFailure(o,e,t,null)}))}}},c={_open:[],_openChunks:{},_waiting:[],available:function(){var e=u.maxConnections,t=0,n=0;return qq.each(c._openChunks,(function(e,r){t++,n+=r.length})),e-(c._open.length-t+n)},free:function(e,t){var n,o=!t,a=qq.indexOf(c._waiting,e),s=qq.indexOf(c._open,e);delete c._openChunks[e],d.getProxyOrBlob(e)instanceof qq.BlobProxy&&(r("Generated blob upload has ended for "+e+", disposing generated blob."),delete i._getFileState(e).file),a>=0?c._waiting.splice(a,1):o&&s>=0&&(c._open.splice(s,1),n=c._waiting.shift(),n>=0&&(c._open.push(n),d.start(n)))},getWaitingOrConnected:function(){var e=[];return qq.each(c._openChunks,(function(t,n){n&&n.length&&e.push(parseInt(t))})),qq.each(c._open,(function(t,n){c._openChunks[n]||e.push(parseInt(n))})),e=e.concat(c._waiting),e},isUsingConnection:function(e){return qq.indexOf(c._open,e)>=0},open:function(e,t){return null==t&&c._waiting.push(e),!!c.available()&&(null==t?(c._waiting.pop(),c._open.push(e)):function(){var n=c._openChunks[e]||[];n.push(t),c._openChunks[e]=n}(),!0)},reset:function(){c._waiting=[],c._open=[]}},f={send:function(e,t){var n=i._getFileState(e);n?(n.loaded=0,r("Sending simple upload request for "+e),i.uploadFile(e).then((function(n,i){r("Simple upload request succeeded for "+e);var o=d.normalizeResponse(n,!0),a=u.getSize(e);u.onProgress(e,t,a,a),d.maybeNewUuid(e,o),d.cleanup(e,o,i)}),(function(n,i){r("Simple upload request failed for "+e);var o=d.normalizeResponse(n,!1);u.onAutoRetry(e,t,o,i)||d.cleanup(e,o,i)}))):r("Ignoring send request as this upload may have been cancelled, File ID "+e,"warn")}},d={cancel:function(e){r("Cancelling "+e),u.paramsStore.remove(e),c.free(e)},cleanup:function(e,t,n){var r=u.getName(e);u.onComplete(e,r,t,n),i._getFileState(e)&&i._clearXhrs&&i._clearXhrs(e),c.free(e)},getProxyOrBlob:function(e){return i.getProxy&&i.getProxy(e)||i.getFile&&i.getFile(e)},initHandler:function(){var e=t?qq[t]:qq.traditional,n=qq.supportedFeatures.ajaxUploading?"Xhr":"Form";i=new e[n+"UploadHandler"](u,{getCustomResumeData:u.getCustomResumeData,getDataByUuid:u.getDataByUuid,getName:u.getName,getSize:u.getSize,getUuid:u.getUuid,log:r,onCancel:u.onCancel,onProgress:u.onProgress,onUuidChanged:u.onUuidChanged,onFinalizing:function(e){u.setStatus(e,qq.status.UPLOAD_FINALIZING)}}),i._removeExpiredChunkingRecords&&i._removeExpiredChunkingRecords()},isDeferredEligibleForUpload:function(e){return u.isQueued(e)},maybeDefer:function(e,t){return t&&!i.getFile(e)&&t instanceof qq.BlobProxy?(u.onUploadPrep(e),r("Attempting to generate a blob on-demand for "+e),t.create().then((function(t){r("Generated an on-demand blob for "+e),i.updateBlob(e,t),u.setSize(e,t.size),i.reevaluateChunking(e),d.maybeSendDeferredFiles(e)}),(function(t){var i={};t&&(i.error=t),r(qq.format("Failed to generate blob for ID {}. Error message: {}.",e,t),"error"),u.onComplete(e,u.getName(e),qq.extend(i,n),null),d.maybeSendDeferredFiles(e),c.free(e)})),!1):d.maybeSendDeferredFiles(e)},maybeSendDeferredFiles:function(e){var t=u.getIdsInProxyGroup(e),n=!1;return t&&t.length?(r("Maybe ready to upload proxy group file "+e),qq.each(t,(function(t,r){if(d.isDeferredEligibleForUpload(r)&&i.getFile(r))n=r===e,d.now(r);else if(d.isDeferredEligibleForUpload(r))return!1}))):(n=!0,d.now(e)),n},maybeNewUuid:function(e,t){void 0!==t.newUuid&&u.onUuidChanged(e,t.newUuid)},normalizeResponse:function(e,t){var n=e;return qq.isObject(e)||(n={},qq.isString(e)&&!t&&(n.error=e)),n.success=t,n},now:function(e){var t=u.getName(e);if(!o.isValid(e))throw new qq.Error(e+" is not a valid file ID to upload!");u.onUpload(e,t).then((function(n){n&&n.pause?(u.setStatus(e,qq.status.PAUSED),i.pause(e),c.free(e)):a&&i._shouldChunkThisFile(e)?l.sendNext(e):f.send(e,t)}),(function(n){if(n=n||{},r(e+" upload start aborted due to rejected onUpload Promise - details: "+n,"error"),!u.onAutoRetry(e,t,n.responseJSON||{})){var i=d.normalizeResponse(n.responseJSON,!1);d.cleanup(e,i)}}))},start:function(e){var t=d.getProxyOrBlob(e);return t?d.maybeDefer(e,t):(d.now(e),!0)}};qq.extend(this,{add:function(e,t){i.add.apply(this,arguments)},upload:function(e){return!!c.open(e)&&d.start(e)},retry:function(e){return s&&(i._getFileState(e).temp.ignoreFailure=!1),c.isUsingConnection(e)?d.start(e):o.upload(e)},cancel:function(e){var t=i.cancel(e);qq.isGenericPromise(t)?t.then((function(){d.cancel(e)})):!1!==t&&d.cancel(e)},cancelAll:function(){var e,t=c.getWaitingOrConnected();if(t.length)for(e=t.length-1;e>=0;e--)o.cancel(t[e]);c.reset()},getFile:function(e){return i.getProxy&&i.getProxy(e)?i.getProxy(e).referenceBlob:i.getFile&&i.getFile(e)},isProxied:function(e){return!(!i.getProxy||!i.getProxy(e))},getInput:function(e){if(i.getInput)return i.getInput(e)},reset:function(){r("Resetting upload handler"),o.cancelAll(),c.reset(),i.reset()},expunge:function(e){if(o.isValid(e))return i.expunge(e)},isValid:function(e){return i.isValid(e)},hasResumeRecord:function(e){var t=i.isValid(e)&&i._getLocalStorageId&&i._getLocalStorageId(e);return!!t&&!!localStorage.getItem(t)},getResumableFilesData:function(){return i.getResumableFilesData?i.getResumableFilesData():[]},getThirdPartyFileId:function(e){if(o.isValid(e))return i.getThirdPartyFileId(e)},pause:function(e){return!!(o.isResumable(e)&&i.pause&&o.isValid(e)&&i.pause(e))&&(c.free(e),i.moveInProgressToRemaining(e),!0)},isAttemptingResume:function(e){return!!i.isAttemptingResume&&i.isAttemptingResume(e)},isResumable:function(e){return!!i.isResumable&&i.isResumable(e)}}),qq.extend(u,e),r=u.log,a=u.chunking.enabled&&qq.supportedFeatures.chunking,s=a&&u.chunking.concurrent.enabled,n=function(){var e={};return e[u.preventRetryParam]=!0,e}(),d.initHandler()},qq.WindowReceiveMessage=function(e){"use strict";var t={log:function(e,t){}},n={};qq.extend(t,e),qq.extend(this,{receiveMessage:function(e,t){var r=function(e){t(e.data)};window.postMessage?n[e]=qq(window).attach("message",r):log("iframe message passing not supported in this browser!","error")},stopReceivingMessages:function(e){if(window.postMessage){var t=n[e];t&&t()}}})},qq.FormUploadHandler=function(e){"use strict";var t=e.options,n=this,r=e.proxy,i=qq.getUniqueId(),o={},a={},s={},u=t.isCors,l=t.inputName,c=r.getUuid,f=r.log,d=new qq.WindowReceiveMessage({log:f});function h(e){delete a[e],u&&(clearTimeout(s[e]),delete s[e],d.stopReceivingMessages(e));var t=document.getElementById(n._getIframeName(e));t&&(t.setAttribute("src","javascript:false;"),qq(t).remove())}function p(e){return e.split("_")[0]}function m(e){var t=qq.toElement("<iframe src='javascript:false;' name='"+e+"' />");return t.setAttribute("id",e),t.style.display="none",document.body.appendChild(t),t}function g(e,t){var r=e.id,i=p(r),u=c(i);o[u]=t,a[i]=qq(e).attach("load",(function(){n.getInput(i)&&(f("Received iframe load event for CORS upload request (iframe name "+r+")"),s[r]=setTimeout((function(){var e="No valid message received from loaded iframe for iframe name "+r;f(e,"error"),t({error:e})}),1e3))})),d.receiveMessage(r,(function(e){f("Received the following window message: '"+e+"'");p(r);var t,i=n._parseJsonResponse(e),a=i.uuid;a&&o[a]?(f("Handling response for iframe name "+r),clearTimeout(s[r]),delete s[r],n._detachLoadEvent(r),t=o[a],delete o[a],d.stopReceivingMessages(r),t(i)):a||f("'"+e+"' does not contain a UUID - ignoring.")}))}qq.extend(this,new qq.UploadHandler(e)),qq.override(this,(function(e){return{add:function(t,n){e.add(t,{input:n}),n.setAttribute("name",l),n.parentNode&&qq(n).remove()},expunge:function(t){h(t),e.expunge(t)},isValid:function(t){return e.isValid(t)&&void 0!==n._getFileState(t).input}}})),qq.extend(this,{getInput:function(e){return n._getFileState(e).input},_attachLoadEvent:function(e,t){var n;u?g(e,t):a[e.id]=qq(e).attach("load",(function(){if(f("Received response for "+e.id),e.parentNode){try{if(e.contentDocument&&e.contentDocument.body&&"false"==e.contentDocument.body.innerHTML)return}catch(r){f("Error when attempting to access iframe during handling of upload response ("+r.message+")","error"),n={success:!1}}t(n)}}))},_createIframe:function(e){var t=n._getIframeName(e);return m(t)},_detachLoadEvent:function(e){void 0!==a[e]&&(a[e](),delete a[e])},_getIframeName:function(e){return e+"_"+i},_initFormForUpload:function(e){var t=e.method,n=e.endpoint,r=e.params,i=e.paramsInBody,o=e.targetName,a=qq.toElement("<form method='"+t+"' enctype='multipart/form-data'></form>"),s=n;return i?qq.obj2Inputs(r,a):s=qq.obj2url(r,n),a.setAttribute("action",s),a.setAttribute("target",o),a.style.display="none",document.body.appendChild(a),a},_parseJsonResponse:function(e){var t={};try{t=qq.parseJson(e)}catch(n){f("Error when attempting to parse iframe upload response ("+n.message+")","error")}return t}})},qq.XhrUploadHandler=function(e){"use strict";var t=this,n=e.options.namespace,r=e.proxy,i=e.options.chunking,o=function(e){var n=t._getFileState(e);if(n.chunkSize)return n.chunkSize;var r=i.partSize;return qq.isFunction(r)&&(r=r(e,c(e))),n.chunkSize=r,r},a=e.options.resume,s=i&&e.options.chunking.enabled&&qq.supportedFeatures.chunking,u=a&&e.options.resume.enabled&&s&&qq.supportedFeatures.resume,l=r.getName,c=r.getSize,f=r.getUuid,d=r.getEndpoint,h=r.getDataByUuid,p=r.onUuidChanged,m=r.onProgress,g=r.log,v=r.getCustomResumeData;function y(e){qq.each(t._getXhrs(e),(function(n,r){var i=t._getAjaxRequester(e,n);r.onreadystatechange=null,r.upload.onprogress=null,r.abort(),i&&i.canceled&&i.canceled(e)}))}qq.extend(this,new qq.UploadHandler(e)),qq.override(this,(function(e){return{add:function(n,r){if(qq.isFile(r)||qq.isBlob(r))e.add(n,{file:r});else{if(!(r instanceof qq.BlobProxy))throw new Error("Passed obj is not a File, Blob, or proxy");e.add(n,{proxy:r})}t._initTempState(n),u&&t._maybePrepareForResume(n)},expunge:function(n){y(n),t._maybeDeletePersistedChunkData(n),t._clearXhrs(n),e.expunge(n)}}})),qq.extend(this,{clearCachedChunk:function(e,n){var r=t._getFileState(e);r&&delete r.temp.cachedChunks[n]},clearXhr:function(e,n){var r=t._getFileState(e).temp;r.xhrs&&delete r.xhrs[n],r.ajaxRequesters&&delete r.ajaxRequesters[n]},finalizeChunks:function(e,n){var r=t._getTotalChunks(e)-1,i=t._getXhr(e,r);return n?(new qq.Promise).success(n(i),i):(new qq.Promise).success({},i)},getFile:function(e){return t.isValid(e)&&t._getFileState(e).file},getProxy:function(e){return t.isValid(e)&&t._getFileState(e).proxy},getResumableFilesData:function(){var e=[];return t._iterateResumeRecords((function(n,r){t.moveInProgressToRemaining(null,r.chunking.inProgress,r.chunking.remaining);var i={name:r.name,remaining:r.chunking.remaining,size:r.size,uuid:r.uuid};r.key&&(i.key=r.key),r.customResumeData&&(i.customResumeData=r.customResumeData),e.push(i)})),e},isAttemptingResume:function(e){return t._getFileState(e).attemptingResume},isResumable:function(e){return!!i&&t.isValid(e)&&!t._getFileState(e).notResumable},moveInProgressToRemaining:function(e,n,r){var i=t._getFileState(e)||{},o=i.chunking||{},a=n||o.inProgress,s=r||o.remaining;a&&(g(qq.format("Moving these chunks from in-progress {}, to remaining.",JSON.stringify(a))),a.reverse(),qq.each(a,(function(e,t){s.unshift(t)})),a.length=0)},pause:function(e){if(t.isValid(e))return g(qq.format("Aborting XHR upload for {} '{}' due to pause instruction.",e,l(e))),t._getFileState(e).paused=!0,y(e),!0},reevaluateChunking:function(e){if(i&&t.isValid(e)){var n,r,o=t._getFileState(e);if(delete o.chunking,o.chunking={},n=t._getTotalChunks(e),n>1||i.mandatory){for(o.chunking.enabled=!0,o.chunking.parts=n,o.chunking.remaining=[],r=0;r<n;r++)o.chunking.remaining.push(r);t._initTempState(e)}else o.chunking.enabled=!1}},updateBlob:function(e,n){t.isValid(e)&&(t._getFileState(e).file=n)},_clearXhrs:function(e){var n=t._getFileState(e).temp;qq.each(n.ajaxRequesters,(function(e){delete n.ajaxRequesters[e]})),qq.each(n.xhrs,(function(e){delete n.xhrs[e]}))},_createXhr:function(e,n){return t._registerXhr(e,n,qq.createXhrInstance())},_getAjaxRequester:function(e,n){var r=null==n?-1:n;return t._getFileState(e).temp.ajaxRequesters[r]},_getChunkData:function(e,n){var r=o(e),i=c(e),a=t.getFile(e),s=r*n,u=s+r>=i?i:s+r,l=t._getTotalChunks(e),f=this._getFileState(e).temp.cachedChunks,d=f[n]||qq.sliceBlob(a,s,u);return f[n]=d,{part:n,start:s,end:u,count:l,blob:d,size:u-s}},_getChunkDataForCallback:function(e){return{partIndex:e.part,startByte:e.start+1,endByte:e.end,totalParts:e.count}},_getLocalStorageId:function(e){var t="5.0",r=l(e),i=c(e),s=o(e),u=d(e),f=a.customKeys(e),h=qq.format("qq{}resume{}-{}-{}-{}-{}",n,t,r,i,s,u);return f.forEach((function(e){h+="-"+e})),h},_getMimeType:function(e){return t.getFile(e).type},_getPersistableData:function(e){return t._getFileState(e).chunking},_getTotalChunks:function(e){if(i){var t=c(e),n=o(e);return Math.ceil(t/n)}},_getXhr:function(e,n){var r=null==n?-1:n;return t._getFileState(e).temp.xhrs[r]},_getXhrs:function(e){return t._getFileState(e).temp.xhrs},_iterateResumeRecords:function(e){u&&qq.each(localStorage,(function(t,r){if(0===t.indexOf(qq.format("qq{}resume",n))){var i=JSON.parse(r);e(t,i)}}))},_initTempState:function(e){t._getFileState(e).temp={ajaxRequesters:{},chunkProgress:{},xhrs:{},cachedChunks:{}}},_markNotResumable:function(e){t._getFileState(e).notResumable=!0},_maybeDeletePersistedChunkData:function(e){var n;return!!(u&&t.isResumable(e)&&(n=t._getLocalStorageId(e),n&&localStorage.getItem(n)))&&(localStorage.removeItem(n),!0)},_maybePrepareForResume:function(e){var n,r,i=t._getFileState(e);u&&void 0===i.key&&(n=t._getLocalStorageId(e),r=localStorage.getItem(n),r&&(r=JSON.parse(r),h(r.uuid)?t._markNotResumable(e):(g(qq.format("Identified file with ID {} and name of {} as resumable.",e,l(e))),p(e,r.uuid),i.key=r.key,i.chunking=r.chunking,i.loaded=r.loaded,i.customResumeData=r.customResumeData,i.attemptingResume=!0,t.moveInProgressToRemaining(e))))},_maybePersistChunkedState:function(e){var n,r,i=t._getFileState(e);if(u&&t.isResumable(e)){var o=v(e);n=t._getLocalStorageId(e),r={name:l(e),size:c(e),uuid:f(e),key:i.key,chunking:i.chunking,loaded:i.loaded,lastUpdated:Date.now()},o&&(r.customResumeData=o);try{localStorage.setItem(n,JSON.stringify(r))}catch(a){g(qq.format("Unable to save resume data for '{}' due to error: '{}'.",e,a.toString()),"warn")}}},_registerProgressHandler:function(e,n,r){var i=t._getXhr(e,n),o=l(e),a={simple:function(t,n){var r=c(e);m(e,o,t===n?r:t>=r?r-1:t,r)},chunked:function(i,a){var s=t._getFileState(e).temp.chunkProgress,u=t._getFileState(e).loaded,l=i,f=a,d=c(e),h=l-(f-r),p=u;s[n]=h,qq.each(s,(function(e,t){p+=t})),m(e,o,p,d)}};i.upload.onprogress=function(e){if(e.lengthComputable){var t=null==r?"simple":"chunked";a[t](e.loaded,e.total)}}},_registerXhr:function(e,n,r,i){var o=null==n?-1:n,a=t._getFileState(e).temp;return a.xhrs=a.xhrs||{},a.ajaxRequesters=a.ajaxRequesters||{},a.xhrs[o]=r,i&&(a.ajaxRequesters[o]=i),r},_removeExpiredChunkingRecords:function(){var e=a.recordsExpireIn;t._iterateResumeRecords((function(t,n){var r=new Date(n.lastUpdated);r.setDate(r.getDate()+e),r.getTime()<=Date.now()&&(g("Removing expired resume record with key "+t),localStorage.removeItem(t))}))},_shouldChunkThisFile:function(e){var n=t._getFileState(e);if(n)return n.chunking||t.reevaluateChunking(e),n.chunking.enabled}})},qq.DeleteFileAjaxRequester=function(e){"use strict";var t,n={method:"DELETE",uuidParamName:"qquuid",endpointStore:{},maxConnections:3,customHeaders:function(e){return{}},paramsStore:{},cors:{expected:!1,sendCredentials:!1},log:function(e,t){},onDelete:function(e){},onDeleteComplete:function(e,t,n){}};function r(){return"POST"===n.method.toUpperCase()?{_method:"DELETE"}:{}}qq.extend(n,e),t=qq.extend(this,new qq.AjaxRequester({acceptHeader:"application/json",validMethods:["POST","DELETE"],method:n.method,endpointStore:n.endpointStore,paramsStore:n.paramsStore,mandatedParams:r(),maxConnections:n.maxConnections,customHeaders:function(e){return n.customHeaders.get(e)},log:n.log,onSend:n.onDelete,onComplete:n.onDeleteComplete,cors:n.cors})),qq.extend(this,{sendDelete:function(e,r,i){var o=i||{};n.log("Submitting delete file request for "+e),"DELETE"===n.method?t.initTransport(e).withPath(r).withParams(o).send():(o[n.uuidParamName]=r,t.initTransport(e).withParams(o).send())}})},function(){function e(e){var t,n=e.naturalWidth,r=e.naturalHeight,i=document.createElement("canvas");return n*r>1048576&&(i.width=i.height=1,t=i.getContext("2d"),t.drawImage(e,1-n,0),0===t.getImageData(0,0,1,1).data[3])}function t(e,t,n){var r,i,o,a,s=document.createElement("canvas"),u=0,l=n,c=n;s.width=1,s.height=n,r=s.getContext("2d"),r.drawImage(e,0,0),i=r.getImageData(0,0,1,n).data;while(c>u)o=i[4*(c-1)+3],0===o?l=c:u=c,c=l+u>>1;return a=c/n,0===a?1:a}function n(e,t,n,r){var o=document.createElement("canvas"),a=n.mime||"image/jpeg",s=new qq.Promise;return i(e,t,o,n,r).then((function(){s.success(o.toDataURL(a,n.quality||.8))})),s}function r(e){var t=5241e3;if(!qq.ios())throw new qq.Error("Downsampled dimensions can only be reliably calculated for iOS!");if(e.origHeight*e.origWidth>t)return{newHeight:Math.round(Math.sqrt(t*(e.origHeight/e.origWidth))),newWidth:Math.round(Math.sqrt(t*(e.origWidth/e.origHeight)))}}function i(n,i,s,u,l){var c,f=n.naturalWidth,d=n.naturalHeight,h=u.width,p=u.height,m=s.getContext("2d"),g=new qq.Promise;return m.save(),u.resize?o({blob:i,canvas:s,image:n,imageHeight:d,imageWidth:f,orientation:u.orientation,resize:u.resize,targetHeight:p,targetWidth:h}):(qq.supportedFeatures.unlimitedScaledImageSize||(c=r({origWidth:h,origHeight:p}),c&&(qq.log(qq.format("Had to reduce dimensions due to device limitations from {}w / {}h to {}w / {}h",h,p,c.newWidth,c.newHeight),"warn"),h=c.newWidth,p=c.newHeight)),a(s,h,p,u.orientation),qq.ios()?function(){e(n)&&(f/=2,d/=2);var r,i,o,a=1024,s=document.createElement("canvas"),u=l?t(n,f,d):1,c=Math.ceil(a*h/f),g=Math.ceil(a*p/d/u),v=0,y=0;s.width=s.height=a,r=s.getContext("2d");while(v<d){i=0,o=0;while(i<f)r.clearRect(0,0,a,a),r.drawImage(n,-i,-v),m.drawImage(s,0,0,a,a,o,y,c,g),i+=a,o+=c;v+=a,y+=g}m.restore(),s=r=null}():m.drawImage(n,0,0,h,p),s.qqImageRendered&&s.qqImageRendered(),g.success(),g)}function o(e){var t=e.blob,n=e.image,r=e.imageHeight,i=e.imageWidth,o=e.orientation,s=new qq.Promise,u=e.resize,l=document.createElement("canvas"),c=l.getContext("2d"),f=e.canvas,d=e.targetHeight,h=e.targetWidth;return a(l,i,r,o),f.height=d,f.width=h,c.drawImage(n,0,0),u({blob:t,height:d,image:n,sourceCanvas:l,targetCanvas:f,width:h}).then((function(){f.qqImageRendered&&f.qqImageRendered(),s.success()}),s.failure),s}function a(e,t,n,r){switch(r){case 5:case 6:case 7:case 8:e.width=n,e.height=t;break;default:e.width=t,e.height=n}var i=e.getContext("2d");switch(r){case 2:i.translate(t,0),i.scale(-1,1);break;case 3:i.translate(t,n),i.rotate(Math.PI);break;case 4:i.translate(0,n),i.scale(1,-1);break;case 5:i.rotate(.5*Math.PI),i.scale(1,-1);break;case 6:i.rotate(.5*Math.PI),i.translate(0,-n);break;case 7:i.rotate(.5*Math.PI),i.translate(t,-n),i.scale(-1,1);break;case 8:i.rotate(-.5*Math.PI),i.translate(-t,0);break;default:break}}function s(e,t){var n=this;window.Blob&&e instanceof Blob&&function(){var t=new Image,r=window.URL&&window.URL.createObjectURL?window.URL:window.webkitURL&&window.webkitURL.createObjectURL?window.webkitURL:null;if(!r)throw Error("No createObjectURL function found to create blob url");t.src=r.createObjectURL(e),n.blob=e,e=t}(),e.naturalWidth||e.naturalHeight||(e.onload=function(){var e=n.imageLoadListeners;e&&(n.imageLoadListeners=null,setTimeout((function(){for(var t=0,n=e.length;t<n;t++)e[t]()}),0))},e.onerror=t,this.imageLoadListeners=[]),this.srcImage=e}s.prototype.render=function(e,t){t=t||{};var r,o=this,a=this.srcImage.naturalWidth,s=this.srcImage.naturalHeight,u=t.width,l=t.height,c=t.maxWidth,f=t.maxHeight,d=!this.blob||"image/jpeg"===this.blob.type,h=e.tagName.toLowerCase();this.imageLoadListeners?this.imageLoadListeners.push((function(){o.render(e,t)})):(u&&!l?l=s*u/a<<0:l&&!u?u=a*l/s<<0:(u=a,l=s),c&&u>c&&(u=c,l=s*u/a<<0),f&&l>f&&(l=f,u=a*l/s<<0),r={width:u,height:l},qq.each(t,(function(e,t){r[e]=t})),"img"===h?function(){var t=e.src;n(o.srcImage,o.blob,r,d).then((function(n){e.src=n,t===e.src&&e.onload()}))}():"canvas"===h&&i(this.srcImage,this.blob,e,r,d),"function"===typeof this.onrender&&this.onrender(e))},qq.MegaPixImage=s}(),qq.ImageGenerator=function(e){"use strict";function t(e){return"img"===e.tagName.toLowerCase()}function n(e){return"canvas"===e.tagName.toLowerCase()}function r(){return void 0!==(new Image).crossOrigin}function i(){var e=document.createElement("canvas");return e.getContext&&e.getContext("2d")}function o(e){var t=e.split("/"),n=t[t.length-1].split("?")[0],r=qq.getExtension(n);switch(r=r&&r.toLowerCase(),r){case"jpeg":case"jpg":return"image/jpeg";case"png":return"image/png";case"bmp":return"image/bmp";case"gif":return"image/gif";case"tiff":case"tif":return"image/tiff"}}function a(e){var t,n,r,i=document.createElement("a");return i.href=e,t=i.protocol,r=i.port,n=i.hostname,t.toLowerCase()!==window.location.protocol.toLowerCase()||(n.toLowerCase()!==window.location.hostname.toLowerCase()||r!==window.location.port&&!qq.ie())}function s(t,n){t.onload=function(){t.onload=null,t.onerror=null,n.success(t)},t.onerror=function(){t.onload=null,t.onerror=null,e("Problem drawing thumbnail!","error"),n.failure(t,"Problem drawing thumbnail!")}}function u(e,t){e.qqImageRendered=function(){t.success(e)}}function l(r,i){var o=t(r)||n(r);return t(r)?s(r,i):n(r)?u(r,i):(i.failure(r),e(qq.format("Element container of type {} is not supported!",r.tagName),"error")),o}function c(t,n,r){var i=new qq.Promise,o=new qq.Identify(t,e),a=r.maxSize,s=null==r.orient||r.orient,u=function(){n.onerror=null,n.onload=null,e("Could not render preview, file may be too large!","error"),i.failure(n,"Browser cannot render image!")};return o.isPreviewable().then((function(o){var c={parse:function(){return(new qq.Promise).success()}},f=s?new qq.Exif(t,e):c,d=new qq.MegaPixImage(t,u);l(n,i)&&f.parse().then((function(e){var t=e&&e.Orientation;d.render(n,{maxWidth:a,maxHeight:a,orientation:t,mime:o,resize:r.customResizeFunction})}),(function(t){e(qq.format("EXIF data could not be parsed ({}). Assuming orientation = 1.",t)),d.render(n,{maxWidth:a,maxHeight:a,mime:o,resize:r.customResizeFunction})}))}),(function(){e("Not previewable"),i.failure(n,"Not previewable")})),i}function f(e,t,n,r,i){var s=new Image,u=new qq.Promise;l(s,u),a(e)&&(s.crossOrigin="anonymous"),s.src=e,u.then((function(){l(t,n);var a=new qq.MegaPixImage(s);a.render(t,{maxWidth:r,maxHeight:r,mime:o(e),resize:i})}),n.failure)}function d(e,t,n,r){l(t,n),qq(t).css({maxWidth:r+"px",maxHeight:r+"px"}),t.src=e}function h(e,o,s){var u=new qq.Promise,c=s.scale,h=c?s.maxSize:null;return c&&t(o)?i()?a(e)&&!r()?d(e,o,u,h):f(e,o,u,h):d(e,o,u,h):n(o)?f(e,o,u,h):l(o,u)&&(o.src=e),u}qq.extend(this,{generate:function(t,n,r){return qq.isString(t)?(e("Attempting to update thumbnail based on server response."),h(t,n,r||{})):(e("Attempting to draw client-side image preview."),c(t,n,r||{}))}}),this._testing={},this._testing.isImg=t,this._testing.isCanvas=n,this._testing.isCrossOrigin=a,this._testing.determineMimeOfFileName=o},qq.Exif=function(e,t){"use strict";var n=[274],r={274:{name:"Orientation",bytes:2}};function i(e){var t=0,n=0;while(e.length>0)t+=parseInt(e.substring(0,2),16)*Math.pow(2,n),e=e.substring(2,e.length),n+=8;return t}function o(t,n){var r=t,i=n;return void 0===r&&(r=2,i=new qq.Promise),qq.readBlobToHex(e,r,4).then((function(e){var t,n=/^ffe([0-9])/.exec(e);n?"1"!==n[1]?(t=parseInt(e.slice(4,8),16),o(r+t+2,i)):i.success(r):i.failure("No EXIF header to be found!")})),i}function a(){var t=new qq.Promise;return qq.readBlobToHex(e,0,6).then((function(e){0!==e.indexOf("ffd8")?t.failure("Not a valid JPEG!"):o().then((function(e){t.success(e)}),(function(e){t.failure(e)}))})),t}function s(t){var n=new qq.Promise;return qq.readBlobToHex(e,t+10,2).then((function(e){n.success("4949"===e)})),n}function u(t,n){var r=new qq.Promise;return qq.readBlobToHex(e,t+18,2).then((function(e){if(n)return r.success(i(e));r.success(parseInt(e,16))})),r}function l(t,n){var r=t+20,i=12*n;return qq.readBlobToHex(e,r,i)}function c(e){var t=[],n=0;while(n+24<=e.length)t.push(e.slice(n,n+24)),n+=24;return t}function f(e,t){var o=16,a=qq.extend([],n),s={};return qq.each(t,(function(t,n){var u,l,c,f=n.slice(0,4),d=e?i(f):parseInt(f,16),h=a.indexOf(d);if(h>=0&&(l=r[d].name,c=r[d].bytes,u=n.slice(o,o+2*c),s[l]=e?i(u):parseInt(u,16),a.splice(h,1)),0===a.length)return!1})),s}qq.extend(this,{parse:function(){var n=new qq.Promise,r=function(e){t(qq.format("EXIF header parse failed: '{}' ",e)),n.failure(e)};return a().then((function(i){t(qq.format("Moving forward with EXIF header parsing for '{}'",void 0===e.name?"blob":e.name)),s(i).then((function(e){t(qq.format("EXIF Byte order is {} endian",e?"little":"big")),u(i,e).then((function(o){t(qq.format("Found {} APP1 directory entries",o)),l(i,o).then((function(r){var i=c(r),o=f(e,i);t("Successfully parsed some EXIF tags"),n.success(o)}),r)}),r)}),r)}),r),n}}),this._testing={},this._testing.parseLittleEndian=i},qq.Identify=function(e,t){"use strict";function n(e,t){var n=!1,r=[].concat(e);return qq.each(r,(function(e,r){if(0===t.indexOf(r))return n=!0,!1})),n}qq.extend(this,{isPreviewable:function(){var r=this,i=new qq.Promise,o=!1,a=void 0===e.name?"blob":e.name;return t(qq.format("Attempting to determine if {} can be rendered in this browser",a)),t("First pass: check type attribute of blob object."),this.isPreviewableSync()?(t("Second pass: check for magic bytes in file header."),qq.readBlobToHex(e,0,4).then((function(e){qq.each(r.PREVIEWABLE_MIME_TYPES,(function(t,r){if(n(r,e))return("image/tiff"!==t||qq.supportedFeatures.tiffPreviews)&&(o=!0,i.success(t)),!1})),t(qq.format("'{}' is {} able to be rendered in this browser",a,o?"":"NOT")),o||i.failure()}),(function(){t("Error reading file w/ name '"+a+"'. Not able to be rendered in this browser."),i.failure()}))):i.failure(),i},isPreviewableSync:function(){var n=e.type,r=qq.indexOf(Object.keys(this.PREVIEWABLE_MIME_TYPES),n)>=0,i=!1,o=void 0===e.name?"blob":e.name;return r&&(i="image/tiff"!==n||qq.supportedFeatures.tiffPreviews),!i&&t(o+" is not previewable in this browser per the blob's type attr"),i}})},qq.Identify.prototype.PREVIEWABLE_MIME_TYPES={"image/jpeg":"ffd8ff","image/gif":"474946","image/png":"89504e","image/bmp":"424d","image/tiff":["49492a00","4d4d002a"]},qq.ImageValidation=function(e,t){"use strict";function n(e){var t=!1;return qq.each(e,(function(e,n){if(n>0)return t=!0,!1})),t}function r(){var n=new qq.Promise;return new qq.Identify(e,t).isPreviewable().then((function(){var r=new Image,i=window.URL&&window.URL.createObjectURL?window.URL:window.webkitURL&&window.webkitURL.createObjectURL?window.webkitURL:null;i?(r.onerror=function(){t("Cannot determine dimensions for image. May be too large.","error"),n.failure()},r.onload=function(){n.success({width:this.width,height:this.height})},r.src=i.createObjectURL(e)):(t("No createObjectURL function available to generate image URL!","error"),n.failure())}),n.failure),n}function i(e,t){var n;return qq.each(e,(function(e,r){if(r>0){var i=/(max|min)(Width|Height)/.exec(e),o=i[2].charAt(0).toLowerCase()+i[2].slice(1),a=t[o];switch(i[1]){case"min":if(a<r)return n=e,!1;break;case"max":if(a>r)return n=e,!1;break}}})),n}this.validate=function(e){var o=new qq.Promise;return t("Attempting to validate image."),n(e)?r().then((function(t){var n=i(e,t);n?o.failure(n):o.success()}),o.success):o.success(),o}},qq.Session=function(e){"use strict";var t={endpoint:null,params:{},customHeaders:{},cors:{},addFileRecord:function(e){},log:function(e,t){}};function n(e){if(qq.isArray(e))return!0;t.log("Session response is not an array.","error")}function r(e,r,i,o){var a=!1;r=r&&n(e),r&&qq.each(e,(function(e,n){if(null==n.uuid)a=!0,t.log(qq.format("Session response item {} did not include a valid UUID - ignoring.",e),"error");else if(null==n.name)a=!0,t.log(qq.format("Session response item {} did not include a valid name - ignoring.",e),"error");else try{return t.addFileRecord(n),!0}catch(r){a=!0,t.log(r.message,"error")}return!1})),o[r&&!a?"success":"failure"](e,i)}qq.extend(t,e,!0),this.refresh=function(){var e=new qq.Promise,n=function(t,n,i){r(t,n,i,e)},i=qq.extend({},t),o=new qq.SessionAjaxRequester(qq.extend(i,{onComplete:n}));return o.queryServer(),e}},qq.SessionAjaxRequester=function(e){"use strict";var t,n={endpoint:null,customHeaders:{},params:{},cors:{expected:!1,sendCredentials:!1},onComplete:function(e,t,n){},log:function(e,t){}};function r(e,t,r){var i=null;if(null!=t.responseText)try{i=qq.parseJson(t.responseText)}catch(o){n.log("Problem parsing session response: "+o.message,"error"),r=!0}n.onComplete(i,!r,t)}qq.extend(n,e),t=qq.extend(this,new qq.AjaxRequester({acceptHeader:"application/json",validMethods:["GET"],method:"GET",endpointStore:{get:function(){return n.endpoint}},customHeaders:n.customHeaders,log:n.log,onComplete:r,cors:n.cors})),qq.extend(this,{queryServer:function(){var e=qq.extend({},n.params);n.log("Session query request."),t.initTransport("sessionRefresh").withParams(e).withCacheBuster().send()}})},qq.Scaler=function(e,t){"use strict";var n=e.customResizer,r=e.sendOriginal,i=e.orient,o=e.defaultType,a=e.defaultQuality/100,s=e.failureText,u=e.includeExif,l=this._getSortedSizes(e.sizes);qq.extend(this,{enabled:qq.supportedFeatures.scaling&&l.length>0,getFileRecords:function(e,c,f){var d=this,h=[],p=f.blob?f.blob:f,m=new qq.Identify(p,t);return m.isPreviewableSync()?(qq.each(l,(function(e,r){var l=d._determineOutputType({defaultType:o,requestedType:r.type,refType:p.type});h.push({uuid:qq.getUniqueId(),name:d._getName(c,{name:r.name,type:l,refType:p.type}),blob:new qq.BlobProxy(p,qq.bind(d._generateScaledImage,d,{customResizeFunction:n,maxSize:r.maxSize,orient:i,type:l,quality:a,failedText:s,includeExif:u,log:t}))})})),h.push({uuid:e,name:c,size:p.size,blob:r?p:null})):h.push({uuid:e,name:c,size:p.size,blob:p}),h},handleNewFile:function(e,t,n,r,i,o,a,s){var u=this,l=(e.qqButtonId||e.blob&&e.blob.qqButtonId,[]),c=null,f=s.addFileToHandler,d=s.uploadData,h=s.paramsStore,p=qq.getUniqueId();qq.each(u.getFileRecords(n,t,e),(function(e,t){var n,r=t.size;t.blob instanceof qq.BlobProxy&&(r=-1),n=d.addFile({uuid:t.uuid,name:t.name,size:r,batchId:o,proxyGroupId:p}),t.blob instanceof qq.BlobProxy?l.push(n):c=n,t.blob?(f(n,t.blob),i.push({id:n,file:t.blob})):d.setStatus(n,qq.status.REJECTED)})),null!==c&&(qq.each(l,(function(e,t){var n={qqparentuuid:d.retrieve({id:c}).uuid,qqparentsize:d.retrieve({id:c}).size};n[a]=d.retrieve({id:t}).uuid,d.setParentId(t,c),h.addReadOnly(t,n)})),l.length&&function(){var e={};e[a]=d.retrieve({id:c}).uuid,h.addReadOnly(c,e)}())}})},qq.extend(qq.Scaler.prototype,{scaleImage:function(e,t,n){"use strict";if(!qq.supportedFeatures.scaling)throw new qq.Error("Scaling is not supported in this browser!");var r=new qq.Promise,i=n.log,o=n.getFile(e),a=n.uploadData.retrieve({id:e}),s=a&&a.name,u=a&&a.uuid,l={customResizer:t.customResizer,sendOriginal:!1,orient:t.orient,defaultType:t.type||null,defaultQuality:t.quality,failedToScaleText:"Unable to scale",sizes:[{name:"",maxSize:t.maxSize}]},c=new qq.Scaler(l,i);return qq.Scaler&&qq.supportedFeatures.imagePreviews&&o?qq.bind((function(){var t=c.getFileRecords(u,s,o)[0];t&&t.blob instanceof qq.BlobProxy?t.blob.create().then(r.success,r.failure):(i(e+" is not a scalable image!","error"),r.failure())}),this)():(r.failure(),i("Could not generate requested scaled image for "+e+". Scaling is either not possible in this browser, or the file could not be located.","error")),r},_determineOutputType:function(e){"use strict";var t=e.requestedType,n=e.defaultType,r=e.refType;return n||t?t&&qq.indexOf(Object.keys(qq.Identify.prototype.PREVIEWABLE_MIME_TYPES),t)>=0?"image/tiff"===t?qq.supportedFeatures.tiffPreviews?t:n:t:n:"image/jpeg"!==r?"image/png":r},_getName:function(e,t){"use strict";var n=e.lastIndexOf("."),r=t.type||"image/png",i=t.refType,o="",a=qq.getExtension(e),s="";return t.name&&t.name.trim().length&&(s=" ("+t.name+")"),n>=0?(o=e.substr(0,n),i!==r&&(a=r.split("/")[1]),o+=s+"."+a):o=e+s,o},_getSortedSizes:function(e){"use strict";return e=qq.extend([],e),e.sort((function(e,t){return e.maxSize>t.maxSize?1:e.maxSize<t.maxSize?-1:0}))},_generateScaledImage:function(e,t){"use strict";var n=this,r=e.customResizeFunction,i=e.log,o=e.maxSize,a=e.orient,s=e.type,u=e.quality,l=e.failedText,c=e.includeExif&&"image/jpeg"===t.type&&"image/jpeg"===s,f=new qq.Promise,d=new qq.ImageGenerator(i),h=document.createElement("canvas");return i("Attempting to generate scaled version for "+t.name),d.generate(t,h,{maxSize:o,orient:a,customResizeFunction:r}).then((function(){var e=h.toDataURL(s,u),r=function(){i("Success generating scaled version for "+t.name);var n=qq.dataUriToBlob(e);f.success(n)};c?n._insertExifHeader(t,e,i).then((function(t){e=t,r()}),(function(){i("Problem inserting EXIF header into scaled image. Using scaled image w/out EXIF data.","error"),r()})):r()}),(function(){i("Failed attempt to generate scaled version for "+t.name,"error"),f.failure(l)})),f},_insertExifHeader:function(e,t,n){"use strict";var r=new FileReader,i=new qq.Promise,o="";return r.onload=function(){o=r.result,i.success(qq.ExifRestorer.restore(o,t))},r.onerror=function(){n("Problem reading "+e.name+" during attempt to transfer EXIF data to scaled version.","error"),i.failure()},r.readAsDataURL(e),i},_dataUriToBlob:function(e){"use strict";var t,n,r,i;return t=e.split(",")[0].indexOf("base64")>=0?atob(e.split(",")[1]):decodeURI(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),i=new Uint8Array(r),qq.each(t,(function(e,t){i[e]=t.charCodeAt(0)})),this._createBlob(r,n)},_createBlob:function(e,t){"use strict";var n=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,r=n&&new n;return r?(r.append(e),r.getBlob(t)):new Blob([e],{type:t})}}),qq.ExifRestorer=function(){var e={KEY_STR:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode64:function(e){var t,n,r,i,o,a="",s="",u="",l=0;do{t=e[l++],n=e[l++],s=e[l++],r=t>>2,i=(3&t)<<4|n>>4,o=(15&n)<<2|s>>6,u=63&s,isNaN(n)?o=u=64:isNaN(s)&&(u=64),a=a+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(u),t=n=s="",r=i=o=u=""}while(l<e.length);return a},restore:function(e,t){var n="data:image/jpeg;base64,";if(!e.match(n))return t;var r=this.decode64(e.replace(n,"")),i=this.slice2Segments(r),o=this.exifManipulation(t,i);return n+this.encode64(o)},exifManipulation:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n),i=new Uint8Array(r);return i},getExifArray:function(e){for(var t,n=0;n<e.length;n++)if(t=e[n],255==t[0]&225==t[1])return t;return[]},insertExif:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),i=r.indexOf(255,3),o=r.slice(0,i),a=r.slice(i),s=o;return s=s.concat(t),s=s.concat(a),s},slice2Segments:function(e){var t=0,n=[];while(1){if(255==e[t]&218==e[t+1])break;if(255==e[t]&216==e[t+1])t+=2;else{var r=256*e[t+2]+e[t+3],i=t+r+2,o=e.slice(t,i);n.push(o),t=i}if(t>e.length)break}return n},decode64:function(e){var t,n,r,i,o,a="",s="",u=0,l=[],c=/[^A-Za-z0-9\+\/\=]/g;if(c.exec(e))throw new Error("There were invalid base64 characters in the input text. Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='");e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{r=this.KEY_STR.indexOf(e.charAt(u++)),i=this.KEY_STR.indexOf(e.charAt(u++)),o=this.KEY_STR.indexOf(e.charAt(u++)),s=this.KEY_STR.indexOf(e.charAt(u++)),t=r<<2|i>>4,n=(15&i)<<4|o>>2,a=(3&o)<<6|s,l.push(t),64!=o&&l.push(n),64!=s&&l.push(a),t=n=a="",r=i=o=s=""}while(u<e.length);return l}};return e}(),qq.TotalProgress=function(e,t){"use strict";var n={},r=0,i=0,o=-1,a=-1,s=function(t,n){t===o&&n===a||e(t,n),o=t,a=n},u=function(e,t){var n=!0;return qq.each(e,(function(e,r){if(qq.indexOf(t,r)>=0)return n=!1,!1})),n},l=function(e){d(e,-1,-1),delete n[e]},c=function(e,t,n){(0===t.length||u(t,n))&&(s(i,i),this.reset())},f=function(e){var r=t(e);r>0&&(d(e,0,r),n[e]={loaded:0,total:r})},d=function(e,t,o){var a=n[e]?n[e].loaded:0,u=n[e]?n[e].total:0;-1===t&&-1===o?(r-=a,i-=u):(t&&(r+=t-a),o&&(i+=o-u)),s(r,i)};qq.extend(this,{onAllComplete:c,onStatusChange:function(e,t,n){n===qq.status.CANCELED||n===qq.status.REJECTED?l(e):n===qq.status.SUBMITTING&&f(e)},onIndividualProgress:function(e,t,r){d(e,t,r),n[e]={loaded:t,total:r}},onNewSize:function(e){f(e)},reset:function(){n={},r=0,i=0}})},qq.PasteSupport=function(e){"use strict";var t,n;function r(e){return e.type&&0===e.type.indexOf("image/")}function i(){n=qq(t.targetElement).attach("paste",(function(e){var n=e.clipboardData;n&&qq.each(n.items,(function(e,n){if(r(n)){var i=n.getAsFile();t.callbacks.pasteReceived(i)}}))}))}function o(){n&&n()}t={targetElement:null,callbacks:{log:function(e,t){},pasteReceived:function(e){}}},qq.extend(t,e),i(),qq.extend(this,{reset:function(){o()}})},qq.FormSupport=function(e,t,n){"use strict";var r=this,i=e.interceptSubmit,o=e.element,a=e.autoUpload;function s(e){e.getAttribute("action")&&(r.newEndpoint=e.getAttribute("action"))}function u(e,t){if(!e.checkValidity||e.checkValidity())return!0;n("Form did not pass validation checks - will not upload.","error"),t()}function l(e){var n=e.submit;qq(e).attach("submit",(function(r){r=r||window.event,r.preventDefault?r.preventDefault():r.returnValue=!1,u(e,n)&&t()})),e.submit=function(){u(e,n)&&t()}}function c(e){return e&&(qq.isString(e)&&(e=document.getElementById(e)),e&&(n("Attaching to form element."),s(e),i&&l(e))),e}qq.extend(this,{newEndpoint:null,newAutoUpload:a,attachedToForm:!1,getFormInputsAsObject:function(){return null==o?null:r._form2Obj(o)}}),o=c(o),this.attachedToForm=!!o},qq.extend(qq.FormSupport.prototype,{_form2Obj:function(e){"use strict";var t={},n=function(e){var t=["button","image","reset","submit"];return qq.indexOf(t,e.toLowerCase())<0},r=function(e){return qq.indexOf(["checkbox","radio"],e.toLowerCase())>=0},i=function(e){return!(!r(e.type)||e.checked)||e.disabled&&"hidden"!==e.type.toLowerCase()},o=function(e){var t=null;return qq.each(qq(e).children(),(function(e,n){if("option"===n.tagName.toLowerCase()&&n.selected)return t=n.value,!1})),t};return qq.each(e.elements,(function(e,r){if(!qq.isInput(r,!0)&&"textarea"!==r.tagName.toLowerCase()||!n(r.type)||i(r)){if("select"===r.tagName.toLowerCase()&&!i(r)){var a=o(r);null!==a&&(t[r.name]=a)}}else t[r.name]=r.value})),t}}),qq.CryptoJS=function(e,t){var n={},r=n.lib={},i=r.Base=function(){function e(){}return{extend:function(t){e.prototype=this;var n=new e;return t&&n.mixIn(t),n.hasOwnProperty("init")||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),o=r.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||s).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else if(n.length>65535)for(o=0;o<i;o+=4)t[r+o>>>2]=n[o>>>2];else t.push.apply(t,n);return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],r=0;r<t;r+=4)n.push(4294967296*e.random()|0);return new o.init(n,t)}}),a=n.enc={},s=a.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new o.init(n,t/2)}},u=a.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new o.init(n,t)}},l=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},c=r.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,a=this.blockSize,s=4*a,u=i/s;u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0);var l=u*a,c=e.min(4*l,i);if(l){for(var f=0;f<l;f+=a)this._doProcessBlock(r,f);var d=r.splice(0,l);n.sigBytes-=c}return new o.init(d,c)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),f=(r.Hasher=c.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}}),n.algo={});return n}(Math),function(){var e=qq.CryptoJS,t=e.lib,n=t.WordArray,r=e.enc;r.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=t[o>>>2]>>>24-o%4*8&255,s=t[o+1>>>2]>>>24-(o+1)%4*8&255,u=t[o+2>>>2]>>>24-(o+2)%4*8&255,l=a<<16|s<<8|u,c=0;c<4&&o+.75*c<n;c++)i.push(r.charAt(l>>>6*(3-c)&63));var f=r.charAt(64);if(f)while(i.length%4)i.push(f);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=r.charAt(64);if(i){var o=e.indexOf(i);-1!=o&&(t=o)}for(var a=[],s=0,u=0;u<t;u++)if(u%4){var l=r.indexOf(e.charAt(u-1))<<u%4*2,c=r.indexOf(e.charAt(u))>>>6-u%4*2;a[s>>>2]|=(l|c)<<24-s%4*8,s++}return n.create(a,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(){var e=qq.CryptoJS,t=e.lib,n=t.Base,r=e.enc,i=r.Utf8,o=e.algo;o.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,u=a.words,l=0;l<n;l++)s[l]^=1549556828,u[l]^=909522486;o.sigBytes=a.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);t.reset();var r=t.finalize(this._oKey.clone().concat(n));return r}})}(),function(){var e=qq.CryptoJS,t=e.lib,n=t.WordArray,r=t.Hasher,i=e.algo,o=[],a=i.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],s=n[3],u=n[4],l=0;l<80;l++){if(l<16)o[l]=0|e[t+l];else{var c=o[l-3]^o[l-8]^o[l-14]^o[l-16];o[l]=c<<1|c>>>31}var f=(r<<5|r>>>27)+u+o[l];f+=l<20?1518500249+(i&a|~i&s):l<40?1859775393+(i^a^s):l<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,u=s,s=a,a=i<<30|i>>>2,i=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=r._createHelper(a),e.HmacSHA1=r._createHmacHelper(a)}(),function(e){var t=qq.CryptoJS,n=t.lib,r=n.WordArray,i=n.Hasher,o=t.algo,a=[],s=[];(function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}var r=2,i=0;while(i<64)t(r)&&(i<8&&(a[i]=n(e.pow(r,.5))),s[i]=n(e.pow(r,1/3)),i++),r++})();var u=[],l=o.SHA256=i.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],l=n[4],c=n[5],f=n[6],d=n[7],h=0;h<64;h++){if(h<16)u[h]=0|e[t+h];else{var p=u[h-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=u[h-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[h]=m+u[h-7]+v+u[h-16]}var y=l&c^~l&f,b=r&i^r&o^i&o,q=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),_=d+w+y+s[h]+u[h],x=q+b;d=f,f=c,c=l,l=a+_|0,a=o,o=i,i=r,r=_+x|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+l|0,n[5]=n[5]+c|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),function(){if("function"==typeof ArrayBuffer){var e=qq.CryptoJS,t=e.lib,n=t.WordArray,r=n.init,i=n.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],i=0;i<t;i++)n[i>>>2]|=e[i]<<24-i%4*8;r.call(this,n,t)}else r.apply(this,arguments)};i.prototype=n}}(),qq.s3=qq.s3||{},qq.s3.util=qq.s3.util||function(){"use strict";return{ALGORITHM_PARAM_NAME:"x-amz-algorithm",AWS_PARAM_PREFIX:"x-amz-meta-",CREDENTIAL_PARAM_NAME:"x-amz-credential",DATE_PARAM_NAME:"x-amz-date",REDUCED_REDUNDANCY_PARAM_NAME:"x-amz-storage-class",REDUCED_REDUNDANCY_PARAM_VALUE:"REDUCED_REDUNDANCY",SERVER_SIDE_ENCRYPTION_PARAM_NAME:"x-amz-server-side-encryption",SERVER_SIDE_ENCRYPTION_PARAM_VALUE:"AES256",SESSION_TOKEN_PARAM_NAME:"x-amz-security-token",V4_ALGORITHM_PARAM_VALUE:"AWS4-HMAC-SHA256",V4_SIGNATURE_PARAM_NAME:"x-amz-signature",CASE_SENSITIVE_PARAM_NAMES:["Cache-Control","Content-Disposition","Content-Encoding","Content-MD5"],UNSIGNABLE_REST_HEADER_NAMES:["Cache-Control","Content-Disposition","Content-Encoding","Content-MD5"],UNPREFIXED_PARAM_NAMES:["Cache-Control","Content-Disposition","Content-Encoding","Content-MD5","x-amz-server-side-encryption","x-amz-server-side-encryption-aws-kms-key-id","x-amz-server-side-encryption-customer-algorithm","x-amz-server-side-encryption-customer-key","x-amz-server-side-encryption-customer-key-MD5"],getBucket:function(e){var t,n=[/^(?:https?:\/\/)?([a-z0-9.\-_]+)\.s3(?:-[a-z0-9\-]+)?\.amazonaws\.com/i,/^(?:https?:\/\/)?s3(?:-[a-z0-9\-]+)?\.amazonaws\.com\/([a-z0-9.\-_]+)/i,/^(?:https?:\/\/)?([a-z0-9.\-_]+)/i];return qq.each(n,(function(n,r){var i=r.exec(e);if(i)return t=i[1],!1})),t},_getPrefixedParamName:function(e){return qq.indexOf(qq.s3.util.UNPREFIXED_PARAM_NAMES,e)>=0?e:qq.s3.util.AWS_PARAM_PREFIX+e},getPolicy:function(e){var t={},n=[],r=e.bucket,i=e.date,o=e.clockDrift,a=e.key,s=e.accessKey,u=e.acl,l=e.type,c=e.expectedStatus,f=e.sessionToken,d=e.params,h=qq.s3.util.getSuccessRedirectAbsoluteUrl(e.successRedirectUrl),p=e.minFileSize,m=e.maxFileSize,g=e.reducedRedundancy,v=e.region,y=e.serverSideEncryption,b=e.signatureVersion;return t.expiration=qq.s3.util.getPolicyExpirationDate(i,o),n.push({acl:u}),n.push({bucket:r}),l&&n.push({"Content-Type":l}),c&&n.push({success_action_status:c.toString()}),h&&n.push({success_action_redirect:h}),g&&(n.push({}),n[n.length-1][qq.s3.util.REDUCED_REDUNDANCY_PARAM_NAME]=qq.s3.util.REDUCED_REDUNDANCY_PARAM_VALUE),f&&(n.push({}),n[n.length-1][qq.s3.util.SESSION_TOKEN_PARAM_NAME]=f),y&&(n.push({}),n[n.length-1][qq.s3.util.SERVER_SIDE_ENCRYPTION_PARAM_NAME]=qq.s3.util.SERVER_SIDE_ENCRYPTION_PARAM_VALUE),2===b?n.push({key:a}):4===b&&(n.push({}),n[n.length-1][qq.s3.util.ALGORITHM_PARAM_NAME]=qq.s3.util.V4_ALGORITHM_PARAM_VALUE,n.push({}),n[n.length-1].key=a,n.push({}),n[n.length-1][qq.s3.util.CREDENTIAL_PARAM_NAME]=qq.s3.util.getV4CredentialsString({date:i,key:s,region:v}),n.push({}),n[n.length-1][qq.s3.util.DATE_PARAM_NAME]=qq.s3.util.getV4PolicyDate(i,o)),qq.each(d,(function(e,t){var r=qq.s3.util._getPrefixedParamName(e),i={};qq.indexOf(qq.s3.util.UNPREFIXED_PARAM_NAMES,r)>=0?i[r]=t:i[r]=encodeURIComponent(t),n.push(i)})),t.conditions=n,qq.s3.util.enforceSizeLimits(t,p,m),t},refreshPolicyCredentials:function(e,t){var n=!1;qq.each(e.conditions,(function(e,r){qq.each(r,(function(e,i){e===qq.s3.util.SESSION_TOKEN_PARAM_NAME&&(r[e]=t,n=!0)}))})),n||(e.conditions.push({}),e.conditions[e.conditions.length-1][qq.s3.util.SESSION_TOKEN_PARAM_NAME]=t)},generateAwsParams:function(e,t){var n,r={},i=e.params,o=new qq.Promise,a=e.sessionToken,s=e.clockDrift,u=e.type,l=e.key,c=e.accessKey,f=e.acl,d=e.expectedStatus,h=qq.s3.util.getSuccessRedirectAbsoluteUrl(e.successRedirectUrl),p=e.reducedRedundancy,m=e.region,g=e.serverSideEncryption,v=e.signatureVersion,y=new Date,b=e.log;return e.date=y,n=qq.s3.util.getPolicy(e),r.key=l,u&&(r["Content-Type"]=u),d&&(r.success_action_status=d),h&&(r.success_action_redirect=h),p&&(r[qq.s3.util.REDUCED_REDUNDANCY_PARAM_NAME]=qq.s3.util.REDUCED_REDUNDANCY_PARAM_VALUE),g&&(r[qq.s3.util.SERVER_SIDE_ENCRYPTION_PARAM_NAME]=qq.s3.util.SERVER_SIDE_ENCRYPTION_PARAM_VALUE),a&&(r[qq.s3.util.SESSION_TOKEN_PARAM_NAME]=a),r.acl=f,qq.each(i,(function(e,t){var n=qq.s3.util._getPrefixedParamName(e);qq.indexOf(qq.s3.util.UNPREFIXED_PARAM_NAMES,n)>=0?r[n]=t:r[n]=encodeURIComponent(t)})),2===v?r.AWSAccessKeyId=c:4===v&&(r[qq.s3.util.ALGORITHM_PARAM_NAME]=qq.s3.util.V4_ALGORITHM_PARAM_VALUE,r[qq.s3.util.CREDENTIAL_PARAM_NAME]=qq.s3.util.getV4CredentialsString({date:y,key:c,region:m}),r[qq.s3.util.DATE_PARAM_NAME]=qq.s3.util.getV4PolicyDate(y,s)),t(n).then((function(t,n,i){r.policy=t.policy,2===e.signatureVersion?(r.signature=t.signature,n&&(r.AWSAccessKeyId=n)):4===e.signatureVersion&&(r[qq.s3.util.V4_SIGNATURE_PARAM_NAME]=t.signature),i&&(r[qq.s3.util.SESSION_TOKEN_PARAM_NAME]=i),o.success(r)}),(function(e){e=e||"Can't continue further with request to S3 as we did not receive a valid signature and policy from the server.",b("Policy signing failed. "+e,"error"),o.failure(e)})),o},enforceSizeLimits:function(e,t,n){var r=t<0?0:t,i=n<=0?9007199254740992:n;(t>0||n>0)&&e.conditions.push(["content-length-range",r.toString(),i.toString()])},getPolicyExpirationDate:function(e,t){var n=new Date(e.getTime()+t);return qq.s3.util.getPolicyDate(n,5)},getCredentialsDate:function(e){return e.getUTCFullYear()+""+("0"+(e.getUTCMonth()+1)).slice(-2)+("0"+e.getUTCDate()).slice(-2)},getPolicyDate:function(e,t){var n,r,i=t||0;return e.setMinutes(e.getMinutes()+(i||0)),Date.prototype.toISOString?e.toISOString():(n=function(e){return r=String(e),1===r.length&&(r="0"+r),r},e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z")},parseIframeResponse:function(e){var t=e.contentDocument||e.contentWindow.document,n=t.location.search,r=/bucket=(.+)&key=(.+)&etag=(.+)/.exec(n);if(r)return{bucket:r[1],key:r[2],etag:r[3].replace(/%22/g,"")}},getSuccessRedirectAbsoluteUrl:function(e){if(e){var t,n=document.createElement("div");return qq.ie7()?(n.innerHTML="<a href='"+e+"'></a>",t=n.firstChild,t.href):(t=document.createElement("a"),t.href=e,t.href=t.href,t.href)}},getV4CredentialsString:function(e){return e.key+"/"+qq.s3.util.getCredentialsDate(e.date)+"/"+e.region+"/s3/aws4_request"},getV4PolicyDate:function(e,t){var n=new Date(e.getTime()+t);return qq.s3.util.getCredentialsDate(n)+"T"+("0"+n.getUTCHours()).slice(-2)+("0"+n.getUTCMinutes()).slice(-2)+("0"+n.getUTCSeconds()).slice(-2)+"Z"},encodeQueryStringParam:function(e){var t=encodeURIComponent(e);return t=t.replace(/[!'()]/g,escape),t=t.replace(/\*/g,"%2A"),t.replace(/%20/g,"+")},uriEscape:function(e){var t=encodeURIComponent(e);return t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape),t=t.replace(/[*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})),t},uriEscapePath:function(e){var t=[];return qq.each(e.split("/"),(function(e,n){t.push(qq.s3.util.uriEscape(n))})),t.join("/")}}}(),function(){"use strict";qq.nonTraditionalBasePublicApi={setUploadSuccessParams:function(e,t){this._uploadSuccessParamsStore.set(e,t)},setUploadSuccessEndpoint:function(e,t){this._uploadSuccessEndpointStore.set(e,t)}},qq.nonTraditionalBasePrivateApi={_onComplete:function(e,t,n,r){var i,o,a=!!n.success,s=this,u=arguments,l=this._uploadSuccessEndpointStore.get(e),c=this._options.uploadSuccess.customHeaders,f=this._options.uploadSuccess.method,d=this._options.cors,h=new qq.Promise,p=this._uploadSuccessParamsStore.get(e),m=this._paramsStore.get(e),g=function(t){delete s._failedSuccessRequestCallbacks[e],qq.extend(n,t),qq.FineUploaderBasic.prototype._onComplete.apply(s,u),h.success(t)},v=function(o){var a=i;qq.extend(n,o),n&&n.reset&&(a=null),a?s._failedSuccessRequestCallbacks[e]=a:delete s._failedSuccessRequestCallbacks[e],s._onAutoRetry(e,t,n,r,a)||(qq.FineUploaderBasic.prototype._onComplete.apply(s,u),h.failure(o))};return a&&l?(o=new qq.UploadSuccessAjaxRequester({endpoint:l,method:f,customHeaders:c,cors:d,log:qq.bind(this.log,this)}),qq.extend(p,s._getEndpointSpecificParams(e,n,r),!0),m&&qq.extend(p,m,!0),i=qq.bind((function(){o.sendSuccessRequest(e,p).then(g,v)}),s),i(),h):qq.FineUploaderBasic.prototype._onComplete.apply(this,arguments)},_manualRetry:function(e){var t=this._failedSuccessRequestCallbacks[e];return qq.FineUploaderBasic.prototype._manualRetry.call(this,e,t)}}}(),function(){"use strict";qq.s3.FineUploaderBasic=function(e){var t={request:{accessKey:null,clockDrift:0},objectProperties:{acl:"private",bucket:qq.bind((function(e){return qq.s3.util.getBucket(this.getEndpoint(e))}),this),host:qq.bind((function(e){return/(?:http|https):\/\/(.+)(?:\/.+)?/.exec(this._endpointStore.get(e))[1]}),this),key:"uuid",reducedRedundancy:!1,region:"us-east-1",serverSideEncryption:!1},credentials:{accessKey:null,secretKey:null,expiration:null,sessionToken:null},signature:{customHeaders:{},endpoint:null,version:2},uploadSuccess:{endpoint:null,method:"POST",params:{},customHeaders:{}},iframeSupport:{localBlankPagePath:null},chunking:{partSize:5242880},cors:{allowXdr:!0},callbacks:{onCredentialsExpired:function(){}}};qq.extend(t,e,!0),this.setCredentials(t.credentials,!0)||(this._currentCredentials.accessKey=t.request.accessKey),this._aclStore=this._createStore(t.objectProperties.acl),qq.FineUploaderBasic.call(this,t),this._uploadSuccessParamsStore=this._createStore(this._options.uploadSuccess.params),this._uploadSuccessEndpointStore=this._createStore(this._options.uploadSuccess.endpoint),this._failedSuccessRequestCallbacks={},this._cannedKeys={},this._cannedBuckets={},this._buckets={},this._hosts={}},qq.extend(qq.s3.FineUploaderBasic.prototype,qq.basePublicApi),qq.extend(qq.s3.FineUploaderBasic.prototype,qq.basePrivateApi),qq.extend(qq.s3.FineUploaderBasic.prototype,qq.nonTraditionalBasePublicApi),qq.extend(qq.s3.FineUploaderBasic.prototype,qq.nonTraditionalBasePrivateApi),qq.extend(qq.s3.FineUploaderBasic.prototype,{getBucket:function(e){return null==this._cannedBuckets[e]?this._buckets[e]:this._cannedBuckets[e]},getKey:function(e){return null==this._cannedKeys[e]?this._handler.getThirdPartyFileId(e):this._cannedKeys[e]},reset:function(){qq.FineUploaderBasic.prototype.reset.call(this),this._failedSuccessRequestCallbacks=[],this._buckets={},this._hosts={}},setCredentials:function(e,t){if(e&&e.secretKey){if(!e.accessKey)throw new qq.Error("Invalid credentials: no accessKey");if(!e.expiration)throw new qq.Error("Invalid credentials: no expiration");return this._currentCredentials=qq.extend({},e),qq.isString(e.expiration)&&(this._currentCredentials.expiration=new Date(e.expiration)),!0}if(!t)throw new qq.Error("Invalid credentials parameter!");this._currentCredentials={}},setAcl:function(e,t){this._aclStore.set(e,t)},_createUploadHandler:function(){var e=this,t={aclStore:this._aclStore,getBucket:qq.bind(this._determineBucket,this),getHost:qq.bind(this._determineHost,this),getKeyName:qq.bind(this._determineKeyName,this),iframeSupport:this._options.iframeSupport,objectProperties:this._options.objectProperties,signature:this._options.signature,clockDrift:this._options.request.clockDrift,validation:{minSizeLimit:this._options.validation.minSizeLimit,maxSizeLimit:this._options.validation.sizeLimit}};return qq.override(this._endpointStore,(function(e){return{get:function(t){var n=e.get(t);return n.indexOf("http")<0?"http://"+n:n}}})),qq.override(this._paramsStore,(function(e){return{get:function(t){var n=e.get(t),r={};return qq.each(n,(function(e,t){var n=e;qq.indexOf(qq.s3.util.CASE_SENSITIVE_PARAM_NAMES,n)<0&&(n=n.toLowerCase()),r[n]=qq.isFunction(t)?t():t})),r}}})),t.signature.credentialsProvider={get:function(){return e._currentCredentials},onExpired:function(){var t=new qq.Promise,n=e._options.callbacks.onCredentialsExpired();return qq.isGenericPromise(n)?n.then((function(n){try{e.setCredentials(n),t.success()}catch(r){e.log("Invalid credentials returned from onCredentialsExpired callback! ("+r.message+")","error"),t.failure("onCredentialsExpired did not return valid credentials.")}}),(function(n){e.log("onCredentialsExpired callback indicated failure! ("+n+")","error"),t.failure("onCredentialsExpired callback failed.")})):(e.log("onCredentialsExpired callback did not return a promise!","error"),t.failure("Unexpected return value for onCredentialsExpired.")),t}},qq.FineUploaderBasic.prototype._createUploadHandler.call(this,t,"s3")},_determineObjectPropertyValue:function(e,t){var n=this._options.objectProperties[t],r=new qq.Promise,i=this;return qq.isFunction(n)?(n=n(e),qq.isGenericPromise(n)?r=n:r.success(n)):qq.isString(n)&&r.success(n),r.then((function(n){i["_"+t+"s"][e]=n}),(function(n){qq.log("Problem determining "+t+" for ID "+e+" ("+n+")","error")})),r},_determineBucket:function(e){return this._determineObjectPropertyValue(e,"bucket")},_determineHost:function(e){return this._determineObjectPropertyValue(e,"host")},_determineKeyName:function(e,t){var n=new qq.Promise,r=this._options.objectProperties.key,i=qq.getExtension(t),o=n.failure,a=function(e,t){var r=e;void 0!==t&&(r+="."+t),n.success(r)};switch(r){case"uuid":a(this.getUuid(e),i);break;case"filename":a(t);break;default:qq.isFunction(r)?this._handleKeynameFunction(r,e,a,o):(this.log(r+" is not a valid value for the s3.keyname option!","error"),o())}return n},_handleKeynameFunction:function(e,t,n,r){var i=this,o=function(e){n(e)},a=function(e){i.log(qq.format("Failed to retrieve key name for {}. Reason: {}",t,e||"null"),"error"),r(e)},s=e.call(this,t);qq.isGenericPromise(s)?s.then(o,a):null==s?a():o(s)},_getEndpointSpecificParams:function(e,t,n){var r={key:this.getKey(e),uuid:this.getUuid(e),name:this.getName(e),bucket:this.getBucket(e)};return n&&n.getResponseHeader("ETag")?r.etag=n.getResponseHeader("ETag"):t.etag&&(r.etag=t.etag),r},_onSubmitDelete:function(e,t){var n={key:this.getKey(e),bucket:this.getBucket(e)};return qq.FineUploaderBasic.prototype._onSubmitDelete.call(this,e,t,n)},_addCannedFile:function(e){var t;if(null==e.s3Key)throw new qq.Error("Did not find s3Key property in server session response. This is required!");return t=qq.FineUploaderBasic.prototype._addCannedFile.apply(this,arguments),this._cannedKeys[t]=e.s3Key,this._cannedBuckets[t]=e.s3Bucket,t}})}(),window.Uint8ClampedArray||(window.Uint8ClampedArray=function(){}),qq.s3.RequestSigner=function(e){"use strict";var t,n,r=this,i={},o={expectingPolicy:!1,method:"POST",signatureSpec:{drift:0,credentialsProvider:{},endpoint:null,customHeaders:{},version:2},maxConnections:3,endpointStore:{},paramsStore:{},cors:{expected:!1,sendCredentials:!1},log:function(e,t){}},a=function(e,t,n){var r=e.getHeaders();4===o.signatureSpec.version?r.Authorization=qq.s3.util.V4_ALGORITHM_PARAM_VALUE+" Credential="+o.signatureSpec.credentialsProvider.get().accessKey+"/"+qq.s3.util.getCredentialsDate(e.getRequestDate())+"/"+o.signatureSpec.region+"/s3/aws4_request,SignedHeaders="+e.getSignedHeaders()+",Signature="+t:r.Authorization="AWS "+o.signatureSpec.credentialsProvider.get().accessKey+":"+t,n.success(r,e.getEndOfUrl())},s={getStringToSign:function(e){return qq.format("{}\n{}\n{}\n\n{}/{}/{}",e.method,e.contentMd5||"",e.contentType||"",e.headersStr||"\n",e.bucket,e.endOfUrl)},signApiRequest:function(e,t,r){var i=qq.CryptoJS.enc.Utf8.parse(t),o=qq.CryptoJS.HmacSHA1(i,n.get().secretKey),s=qq.CryptoJS.enc.Base64.stringify(o);a(e,s,r)},signPolicy:function(e,t,r,i){var o=JSON.stringify(e),a=qq.CryptoJS.enc.Utf8.parse(o),s=qq.CryptoJS.enc.Base64.stringify(a),u=qq.CryptoJS.HmacSHA1(s,n.get().secretKey),l=qq.CryptoJS.enc.Base64.stringify(u);t.success({policy:s,signature:l},r,i)}},u={getCanonicalQueryString:function(e){var t,n,r,i=e.indexOf("?"),o="";return i>=0&&(t={},r=e.substr(i+1).split("&"),qq.each(r,(function(e,n){var r=n.split("="),i=r[1];null==i&&(i=""),t[encodeURIComponent(r[0])]=encodeURIComponent(i)})),n=Object.keys(t).sort(),n.forEach((function(e,r){o+=e+"="+t[e],r<n.length-1&&(o+="&")}))),o},getCanonicalRequest:function(e){return qq.format("{}\n{}\n{}\n{}\n{}\n{}",e.method,u.getCanonicalUri(e.endOfUrl),u.getCanonicalQueryString(e.endOfUrl),e.headersStr||"\n",u.getSignedHeaders(e.headerNames),e.hashedContent)},getCanonicalUri:function(e){var t=e,n=e.indexOf("?");return n>0&&(t=e.substr(0,n)),"/"+t},getEncodedHashedPayload:function(e){var t,n=new qq.Promise;return qq.isBlob(e)?(t=new FileReader,t.onloadend=function(e){if(e.target.readyState===FileReader.DONE)if(e.target.error)n.failure(e.target.error);else{var t=qq.CryptoJS.lib.WordArray.create(e.target.result);n.success(qq.CryptoJS.SHA256(t).toString())}},t.readAsArrayBuffer(e)):(e=e||"",n.success(qq.CryptoJS.SHA256(e).toString())),n},getScope:function(e,t){return qq.s3.util.getCredentialsDate(e)+"/"+t+"/s3/aws4_request"},getStringToSign:function(e){var t=u.getCanonicalRequest(e),n=qq.s3.util.getV4PolicyDate(e.date,e.drift),r=qq.CryptoJS.SHA256(t).toString(),i=u.getScope(e.date,o.signatureSpec.region),a="AWS4-HMAC-SHA256\n{}\n{}\n{}";return{hashed:qq.format(a,n,i,r),raw:qq.format(a,n,i,t)}},getSignedHeaders:function(e){var t="";return e.forEach((function(n,r){t+=n.toLowerCase(),r<e.length-1&&(t+=";")})),t},signApiRequest:function(e,t,r){var i,o,s,u,l=n.get().secretKey,c=/.+\n.+\n(\d+)\/(.+)\/s3\/.+\n(.+)/,f=c.exec(t);i=qq.CryptoJS.HmacSHA256(f[1],"AWS4"+l),o=qq.CryptoJS.HmacSHA256(f[2],i),s=qq.CryptoJS.HmacSHA256("s3",o),u=qq.CryptoJS.HmacSHA256("aws4_request",s),a(e,qq.CryptoJS.HmacSHA256(t,u),r)},signPolicy:function(e,t,r,i){var o,a,s,u,l,c=JSON.stringify(e),f=qq.CryptoJS.enc.Utf8.parse(c),d=qq.CryptoJS.enc.Base64.stringify(f),h=n.get().secretKey,p=/.+\/(.+)\/(.+)\/s3\/aws4_request/,m=function(){var t=null;return qq.each(e.conditions,(function(e,n){var r=n["x-amz-credential"];if(r)return t=r,!1})),t}();o=p.exec(m),a=qq.CryptoJS.HmacSHA256(o[1],"AWS4"+h),s=qq.CryptoJS.HmacSHA256(o[2],a),u=qq.CryptoJS.HmacSHA256("s3",s),l=qq.CryptoJS.HmacSHA256("aws4_request",u),t.success({policy:d,signature:qq.CryptoJS.HmacSHA256(d,l).toString()},r,i)}};function l(e,t,n){var r,s,u=t.responseText,l=i[e],c=l.promise,f=l.signatureConstructor;if(delete i[e],u)try{s=qq.parseJson(u)}catch(d){o.log("Error attempting to parse signature response: "+d,"error")}s&&s.error?(n=!0,r=s.error):s&&s.invalid?(n=!0,r="Invalid policy document or request headers!"):s?o.expectingPolicy&&!s.policy?(n=!0,r="Response does not include the base64 encoded policy!"):s.signature||(n=!0,r="Response does not include the signature!"):(n=!0,r="Received an empty or invalid response from the server!"),n?(r&&o.log(r,"error"),c.failure(r)):f?a(f,s.signature,c):c.success(s)}function c(e,t,n){var i,a,l,c=new qq.Promise,f="POST",d=[],h="",p=new Date,m=function(e){var n,r=[];return qq.each(e.headers,(function(e){d.push(e)})),d.sort(),qq.each(d,(function(t,i){qq.indexOf(qq.s3.util.UNSIGNABLE_REST_HEADER_NAMES,i)<0?h+=i.toLowerCase()+":"+e.headers[i].trim()+"\n":"Content-MD5"===i?n=e.headers[i]:r.unshift(t)})),qq.each(r,(function(e,t){d.splice(t,1)})),a={bucket:e.bucket,contentMd5:n,contentType:e.contentType,date:p,drift:o.signatureSpec.drift,endOfUrl:i,hashedContent:e.hashedContent,headerNames:d,headersStr:h,method:f},l=2===t?s.getStringToSign(a):u.getStringToSign(a),{date:p,endOfUrl:i,signedHeaders:4===t?u.getSignedHeaders(a.headerNames):null,toSign:4===t?l.hashed:l,toSignRaw:4===t?l.raw:l}};switch(n.type){case r.REQUEST_TYPE.MULTIPART_ABORT:f="DELETE",i=qq.format("uploadId={}",n.uploadId);break;case r.REQUEST_TYPE.MULTIPART_INITIATE:i="uploads";break;case r.REQUEST_TYPE.MULTIPART_COMPLETE:i=qq.format("uploadId={}",n.uploadId);break;case r.REQUEST_TYPE.MULTIPART_UPLOAD:f="PUT",i=qq.format("partNumber={}&uploadId={}",n.partNum,n.uploadId);break}return i=n.key+"?"+i,4===t?u.getEncodedHashedPayload(n.content).then((function(e){n.headers["x-amz-content-sha256"]=e,n.headers.Host=n.host,n.headers["x-amz-date"]=qq.s3.util.getV4PolicyDate(p,o.signatureSpec.drift),n.hashedContent=e,c.success(m(n))}),(function(e){c.failure(e)})):c.success(m(n)),c}function f(e,t,n,r,i){var o;t.signatureConstructor?(i&&(o=t.signatureConstructor.getHeaders(),o[qq.s3.util.SESSION_TOKEN_PARAM_NAME]=i,t.signatureConstructor.withHeaders(o)),t.signatureConstructor.getToSign(e).then((function(e){h(t.signatureConstructor,e.stringToSign,n)}),(function(e){n.failure(e)}))):(i&&qq.s3.util.refreshPolicyCredentials(t,i),d(t,n,r,i))}function d(e,t,n,r){4===o.signatureSpec.version?u.signPolicy(e,t,n,r):s.signPolicy(e,t,n,r)}function h(e,t,n){4===o.signatureSpec.version?u.signApiRequest(e,t,n):s.signApiRequest(e,t,n)}qq.extend(o,e,!0),n=o.signatureSpec.credentialsProvider,t=qq.extend(this,new qq.AjaxRequester({acceptHeader:"application/json",method:o.method,contentType:"application/json; charset=utf-8",endpointStore:{get:function(){return o.signatureSpec.endpoint}},paramsStore:o.paramsStore,maxConnections:o.maxConnections,customHeaders:o.signatureSpec.customHeaders,log:o.log,onComplete:l,cors:o.cors})),qq.extend(this,{getSignature:function(e,r){var a,s=r,u=r.signatureConstructor,l=new qq.Promise;return 4===o.signatureSpec.version&&(a={v4:!0}),n.get().secretKey&&qq.CryptoJS?n.get().expiration.getTime()>Date.now()?f(e,r,l):n.onExpired().then((function(){f(e,r,l,n.get().accessKey,n.get().sessionToken)}),(function(e){o.log("Attempt to update expired credentials apparently failed! Unable to sign request. ","error"),l.failure("Unable to sign request - expired credentials.")})):(o.log("Submitting S3 signature request for "+e),u?u.getToSign(e).then((function(n){s={headers:n.stringToSignRaw},t.initTransport(e).withParams(s).withQueryParams(a).send()}),(function(e){o.log("Failed to construct signature. ","error"),l.failure("Failed to construct signature.")})):t.initTransport(e).withParams(s).withQueryParams(a).send(),i[e]={promise:l,signatureConstructor:u}),l},constructStringToSign:function(e,t,r,i){var a,s,u,l,f,d={};return{withHeaders:function(e){return d=e,this},withUploadId:function(e){return a=e,this},withContent:function(e){return s=e,this},withContentType:function(e){return u=e,this},withPartNum:function(e){return l=e,this},getToSign:function(h){var p=n.get().sessionToken,m=new qq.Promise,g=new Date(Date.now()+o.signatureSpec.drift);return d["x-amz-date"]=g.toUTCString(),p&&(d[qq.s3.util.SESSION_TOKEN_PARAM_NAME]=p),c(h,o.signatureSpec.version,{bucket:t,content:s,contentType:u,headers:d,host:r,key:i,partNum:l,type:e,uploadId:a}).then((function(e){f=e,m.success({headers:function(){return u&&(d["Content-Type"]=u),delete d.Host,d}(),date:f.date,endOfUrl:f.endOfUrl,signedHeaders:f.signedHeaders,stringToSign:f.toSign,stringToSignRaw:f.toSignRaw})}),(function(e){m.failure(e)})),m},getHeaders:function(){return qq.extend({},d)},getEndOfUrl:function(){return f&&f.endOfUrl},getRequestDate:function(){return f&&f.date},getSignedHeaders:function(){return f&&f.signedHeaders}}}})},qq.s3.RequestSigner.prototype.REQUEST_TYPE={MULTIPART_INITIATE:"multipart_initiate",MULTIPART_COMPLETE:"multipart_complete",MULTIPART_ABORT:"multipart_abort",MULTIPART_UPLOAD:"multipart_upload"},qq.UploadSuccessAjaxRequester=function(e){"use strict";var t,n=[],r={method:"POST",endpoint:null,maxConnections:3,customHeaders:{},paramsStore:{},cors:{expected:!1,sendCredentials:!1},log:function(e,t){}};function i(e,t,i){var o,a=n[e],s=t.responseText,u={success:!0},l={success:!1};delete n[e],r.log(qq.format("Received the following response body to an upload success request for id {}: {}",e,s));try{o=qq.parseJson(s),i||o&&(o.error||!1===o.success)?(r.log("Upload success request was rejected by the server.","error"),a.failure(qq.extend(o,l))):(r.log("Upload success was acknowledged by the server."),a.success(qq.extend(o,u)))}catch(c){i?(r.log(qq.format("Your server indicated failure in its upload success request response for id {}!",e),"error"),a.failure(l)):(r.log("Upload success was acknowledged by the server."),a.success(u))}}qq.extend(r,e),t=qq.extend(this,new qq.AjaxRequester({acceptHeader:"application/json",method:r.method,endpointStore:{get:function(){return r.endpoint}},paramsStore:r.paramsStore,maxConnections:r.maxConnections,customHeaders:r.customHeaders,log:r.log,onComplete:i,cors:r.cors})),qq.extend(this,{sendSuccessRequest:function(e,i){var o=new qq.Promise;return r.log("Submitting upload success request/notification for "+e),t.initTransport(e).withParams(i).send(),n[e]=o,o}})},qq.s3.InitiateMultipartAjaxRequester=function(e){"use strict";var t,n,r={},i={filenameParam:"qqfilename",method:"POST",endpointStore:null,paramsStore:null,signatureSpec:null,aclStore:null,reducedRedundancy:!1,serverSideEncryption:!1,maxConnections:3,getContentType:function(e){},getBucket:function(e){},getHost:function(e){},getKey:function(e){},getName:function(e){},log:function(e,t){}};function o(e){var t,r=i.getBucket(e),o=i.getHost(e),a={},s=new qq.Promise,u=i.getKey(e);return a["x-amz-acl"]=i.aclStore.get(e),i.reducedRedundancy&&(a[qq.s3.util.REDUCED_REDUNDANCY_PARAM_NAME]=qq.s3.util.REDUCED_REDUNDANCY_PARAM_VALUE),i.serverSideEncryption&&(a[qq.s3.util.SERVER_SIDE_ENCRYPTION_PARAM_NAME]=qq.s3.util.SERVER_SIDE_ENCRYPTION_PARAM_VALUE),a[qq.s3.util.AWS_PARAM_PREFIX+i.filenameParam]=encodeURIComponent(i.getName(e)),qq.each(i.paramsStore.get(e),(function(e,t){qq.indexOf(qq.s3.util.UNPREFIXED_PARAM_NAMES,e)>=0?a[e]=t:a[qq.s3.util.AWS_PARAM_PREFIX+e]=encodeURIComponent(t)})),t=n.constructStringToSign(n.REQUEST_TYPE.MULTIPART_INITIATE,r,o,u).withContentType(i.getContentType(e)).withHeaders(a),n.getSignature(e,{signatureConstructor:t}).then(s.success,s.failure),s}function a(e,t,n){var o,a,s,u,l,c=r[e],f=new DOMParser,d=f.parseFromString(t.responseText,"application/xml");delete r[e],n?(l=t.status,a=d.getElementsByTagName("Message"),a.length>0&&(u=a[0].textContent)):(o=d.getElementsByTagName("UploadId"),o.length>0?s=o[0].textContent:u="Upload ID missing from request"),void 0===s?(u?i.log(qq.format("Specific problem detected initiating multipart upload request for {}: '{}'.",e,u),"error"):i.log(qq.format("Unexplained error with initiate multipart upload request for {}. Status code {}.",e,l),"error"),c.failure("Problem initiating upload request.",t)):(i.log(qq.format("Initiate multipart upload request successful for {}. Upload ID is {}",e,s)),c.success(s,t))}qq.extend(i,e),n=new qq.s3.RequestSigner({endpointStore:i.endpointStore,signatureSpec:i.signatureSpec,cors:i.cors,log:i.log}),t=qq.extend(this,new qq.AjaxRequester({method:i.method,contentType:null,endpointStore:i.endpointStore,maxConnections:i.maxConnections,allowXRequestedWithAndCacheControl:!1,log:i.log,onComplete:a,successfulResponseCodes:{POST:[200]}})),qq.extend(this,{send:function(e){var n=new qq.Promise;return o(e).then((function(o,a){i.log("Submitting S3 initiate multipart upload request for "+e),r[e]=n,t.initTransport(e).withPath(a).withHeaders(o).send()}),n.failure),n}})},qq.s3.CompleteMultipartAjaxRequester=function(e){"use strict";var t,n,r={},i={method:"POST",contentType:"text/xml",endpointStore:null,signatureSpec:null,maxConnections:3,getBucket:function(e){},getHost:function(e){},getKey:function(e){},log:function(e,t){}};function o(e,t,r){var o=new qq.Promise,a=i.getBucket(e),s=i.getHost(e),u=n.constructStringToSign(n.REQUEST_TYPE.MULTIPART_COMPLETE,a,s,i.getKey(e)).withUploadId(t).withContent(r).withContentType("application/xml; charset=UTF-8");return n.getSignature(e,{signatureConstructor:u}).then(o.success,o.failure),o}function a(e,t,n){var o=r[e],a=new DOMParser,s=i.getBucket(e),u=(i.getKey(e),a.parseFromString(t.responseText,"application/xml")),l=u.getElementsByTagName("Bucket"),c=u.getElementsByTagName("Key");delete r[e],i.log(qq.format("Complete response status {}, body = {}",t.status,t.responseText)),n?i.log(qq.format("Complete Multipart Upload request for {} failed with status {}.",e,t.status),"error"):l.length&&c.length?l[0].textContent!==s&&(n=!0,i.log(qq.format("Wrong bucket in response to Complete Multipart Upload request for {}.",e),"error")):(n=!0,i.log(qq.format("Missing bucket and/or key in response to Complete Multipart Upload request for {}.",e),"error")),n?o.failure("Problem combining the file parts!",t):o.success({},t)}function s(e){var t=document.implementation.createDocument(null,"CompleteMultipartUpload",null);return e.sort((function(e,t){return e.part-t.part})),qq.each(e,(function(e,n){var r=n.part,i=n.etag,o=t.createElement("Part"),a=t.createElement("PartNumber"),s=t.createTextNode(r),u=t.createTextNode(i),l=t.createElement("ETag");l.appendChild(u),a.appendChild(s),o.appendChild(a),o.appendChild(l),qq(t).children()[0].appendChild(o)})),(new XMLSerializer).serializeToString(t)}qq.extend(i,e),n=new qq.s3.RequestSigner({endpointStore:i.endpointStore,signatureSpec:i.signatureSpec,cors:i.cors,log:i.log}),t=qq.extend(this,new qq.AjaxRequester({method:i.method,contentType:"application/xml; charset=UTF-8",endpointStore:i.endpointStore,maxConnections:i.maxConnections,allowXRequestedWithAndCacheControl:!1,log:i.log,onComplete:a,successfulResponseCodes:{POST:[200]}})),qq.extend(this,{send:function(e,n,a){var u=new qq.Promise,l=s(a);return o(e,n,l).then((function(n,o){i.log("Submitting S3 complete multipart upload request for "+e),r[e]=u,delete n["Content-Type"],t.initTransport(e).withPath(o).withHeaders(n).withPayload(l).send()}),u.failure),u}})},qq.s3.AbortMultipartAjaxRequester=function(e){"use strict";var t,n,r={method:"DELETE",endpointStore:null,signatureSpec:null,maxConnections:3,getBucket:function(e){},getHost:function(e){},getKey:function(e){},log:function(e,t){}};function i(e,t){var i=new qq.Promise,o=r.getBucket(e),a=r.getHost(e),s=n.constructStringToSign(n.REQUEST_TYPE.MULTIPART_ABORT,o,a,r.getKey(e)).withUploadId(t);return n.getSignature(e,{signatureConstructor:s}).then(i.success,i.failure),i}function o(e,t,n){var i,o=new DOMParser,a=o.parseFromString(t.responseText,"application/xml"),s=a.getElementsByTagName("Error");r.log(qq.format("Abort response status {}, body = {}",t.status,t.responseText)),n?r.log(qq.format("Abort Multipart Upload request for {} failed with status {}.",e,t.status),"error"):s.length?(n=!0,i=a.getElementsByTagName("Message")[0].textContent,r.log(qq.format("Failed to Abort Multipart Upload request for {}. Error: {}",e,i),"error")):r.log(qq.format("Abort MPU request succeeded for file ID {}.",e))}qq.extend(r,e),n=new qq.s3.RequestSigner({endpointStore:r.endpointStore,signatureSpec:r.signatureSpec,cors:r.cors,log:r.log}),t=qq.extend(this,new qq.AjaxRequester({validMethods:["DELETE"],method:r.method,contentType:null,endpointStore:r.endpointStore,maxConnections:r.maxConnections,allowXRequestedWithAndCacheControl:!1,log:r.log,onComplete:o,successfulResponseCodes:{DELETE:[204]}})),qq.extend(this,{send:function(e,n){i(e,n).then((function(n,i){r.log("Submitting S3 Abort multipart upload request for "+e),t.initTransport(e).withPath(i).withHeaders(n).send()}))}})},qq.s3.XhrUploadHandler=function(e,t){"use strict";var n=t.getName,r=t.log,i=e.clockDrift,o=200,a=e.getBucket,s=e.getHost,u=e.getKeyName,l=e.filenameParam,c=e.paramsStore,f=e.endpointStore,d=e.aclStore,h=e.objectProperties.reducedRedundancy,p=e.objectProperties.region,m=e.objectProperties.serverSideEncryption,g=e.validation,v=qq.extend({region:p,drift:i},e.signature),y=this,b=e.signature.credentialsProvider,q={combine:function(e){var t=y._getPersistableData(e).uploadId,n=y._getPersistableData(e).etags,r=new qq.Promise;return w.completeMultipart.send(e,t,n).then(r.success,(function(t,n){r.failure(x.done(e,n).response,n)})),r},done:function(e,t,n){var r,i=x.response.parse(e,t);i.success&&(r=t.getResponseHeader("ETag"),y._getPersistableData(e).etags||(y._getPersistableData(e).etags=[]),y._getPersistableData(e).etags.push({part:n+1,etag:r}))},initHeaders:function(e,t,n){var r=x.bucket.getName(e),i=x.host.getName(e),o=x.key.urlSafe(e),a=new qq.Promise,s=w.restSignature.constructStringToSign(w.restSignature.REQUEST_TYPE.MULTIPART_UPLOAD,r,i,o).withPartNum(t+1).withContent(n).withUploadId(y._getPersistableData(e).uploadId);return w.restSignature.getSignature(e+"."+t,{signatureConstructor:s}).then(a.success,a.failure),a},put:function(t,n){var i=y._createXhr(t,n),o=y._getChunkData(t,n),a=e.endpointStore.get(t),s=new qq.Promise;return q.initHeaders(t,n,o.blob).then((function(e,u){if(i._cancelled)r(qq.format("Upload of item {}.{} cancelled. Upload will not start after successful signature request.",t,n)),s.failure({error:"Chunk upload cancelled"});else{var l=a+"/"+u;y._registerProgressHandler(t,n,o.size),x.track(t,i,n).then(s.success,s.failure),i.open("PUT",l,!0);var c=!1;qq.each(e,(function(e,t){"Content-Type"===e&&(c=!0),i.setRequestHeader(e,t)})),c||i.setRequestHeader("Content-Type",""),i.send(o.blob)}}),(function(){s.failure({error:"Problem signing the chunk!"},i)})),s},send:function(e,t){var n=new qq.Promise;return q.setup(e).then((function(){q.put(e,t).then(n.success,n.failure)}),(function(e,t){n.failure({error:e},t)})),n},setup:function(e){var t=new qq.Promise,n=y._getPersistableData(e).uploadId,r=new qq.Promise;return n?n instanceof qq.Promise?n.then((function(e){t.success(e)})):t.success(n):(y._getPersistableData(e).uploadId=r,w.initiateMultipart.send(e).then((function(n){y._getPersistableData(e).uploadId=n,r.success(n),t.success(n)}),(function(n,i){y._getPersistableData(e).uploadId=null,t.failure(n,i),r.failure(n,i)}))),t}},w={abortMultipart:new qq.s3.AbortMultipartAjaxRequester({endpointStore:f,signatureSpec:v,cors:e.cors,log:r,getBucket:function(e){return x.bucket.getName(e)},getHost:function(e){return x.host.getName(e)},getKey:function(e){return x.key.urlSafe(e)}}),completeMultipart:new qq.s3.CompleteMultipartAjaxRequester({endpointStore:f,signatureSpec:v,cors:e.cors,log:r,getBucket:function(e){return x.bucket.getName(e)},getHost:function(e){return x.host.getName(e)},getKey:function(e){return x.key.urlSafe(e)}}),initiateMultipart:new qq.s3.InitiateMultipartAjaxRequester({filenameParam:l,endpointStore:f,paramsStore:c,signatureSpec:v,aclStore:d,reducedRedundancy:h,serverSideEncryption:m,cors:e.cors,log:r,getContentType:function(e){return y._getMimeType(e)},getBucket:function(e){return x.bucket.getName(e)},getHost:function(e){return x.host.getName(e)},getKey:function(e){return x.key.urlSafe(e)},getName:function(e){return n(e)}}),policySignature:new qq.s3.RequestSigner({expectingPolicy:!0,signatureSpec:v,cors:e.cors,log:r}),restSignature:new qq.s3.RequestSigner({endpointStore:f,signatureSpec:v,cors:e.cors,log:r})},_={initParams:function(e){var t=c.get(e);return t[l]=n(e),qq.s3.util.generateAwsParams({endpoint:f.get(e),clockDrift:i,params:t,type:y._getMimeType(e),bucket:x.bucket.getName(e),key:y.getThirdPartyFileId(e),accessKey:b.get().accessKey,sessionToken:b.get().sessionToken,acl:d.get(e),expectedStatus:o,minFileSize:g.minSizeLimit,maxFileSize:g.maxSizeLimit,reducedRedundancy:h,region:p,serverSideEncryption:m,signatureVersion:v.version,log:r},qq.bind(w.policySignature.getSignature,this,e))},send:function(e){var t=new qq.Promise,n=y._createXhr(e),i=y.getFile(e);return y._registerProgressHandler(e),x.track(e,n).then(t.success,t.failure),_.setup(e,n,i).then((function(t){r("Sending upload request for "+e),n.send(t)}),t.failure),t},setup:function(e,t,n){var r=new FormData,i=f.get(e),o=i,a=new qq.Promise;return _.initParams(e).then((function(e){t.open("POST",o,!0),qq.obj2FormData(e,r),r.append("file",n),a.success(r)}),(function(e){a.failure({error:e})})),a}},x={bucket:{promise:function(e){var t=new qq.Promise,n=y._getFileState(e).bucket;return n?t.success(n):a(e).then((function(n){y._getFileState(e).bucket=n,t.success(n)}),t.failure),t},getName:function(e){return y._getFileState(e).bucket}},host:{promise:function(e){var t=new qq.Promise,n=y._getFileState(e).host;return n?t.success(n):s(e).then((function(n){y._getFileState(e).host=n,t.success(n)}),t.failure),t},getName:function(e){return y._getFileState(e).host}},done:function(e,t){var n=x.response.parse(e,t),i=!0!==n.success;return i&&x.response.shouldReset(n.code)&&(r("This is an unrecoverable error, we must restart the upload entirely on the next retry attempt.","error"),n.reset=!0),{success:!i,response:n}},key:{promise:function(e){var t=new qq.Promise,r=y.getThirdPartyFileId(e);return null==r?(y._setThirdPartyFileId(e,t),u(e,n(e)).then((function(n){y._setThirdPartyFileId(e,n),t.success(n)}),(function(n){y._setThirdPartyFileId(e,null),t.failure(n)}))):qq.isGenericPromise(r)?r.then(t.success,t.failure):t.success(r),t},urlSafe:function(e){var t=y.getThirdPartyFileId(e);return qq.s3.util.uriEscapePath(t)}},response:{parse:function(e,t){var n,i={};try{r(qq.format("Received response status {} with body: {}",t.status,t.responseText)),t.status===o?i.success=!0:(n=x.response.parseError(t.responseText),n&&(i.error=n.message,i.code=n.code))}catch(a){r("Error when attempting to parse xhr response text ("+a.message+")","error")}return i},parseError:function(e){var t,n,r=new DOMParser,i=r.parseFromString(e,"application/xml"),o=i.getElementsByTagName("Error"),a={};if(o.length)return t=i.getElementsByTagName("Code"),n=i.getElementsByTagName("Message"),n.length&&(a.message=n[0].textContent),t.length&&(a.code=t[0].textContent),a},shouldReset:function(e){return"EntityTooSmall"===e||"InvalidPart"===e||"InvalidPartOrder"===e||"NoSuchUpload"===e}},start:function(e){var t=e.id,n=e.chunkIdx,r=new qq.Promise;return x.key.promise(t).then((function(){x.bucket.promise(t).then((function(){x.host.promise(t).then((function(){null==n?_.send(t).then(r.success,r.failure):q.send(t,n).then(r.success,r.failure)}))}))}),(function(e){r.failure({error:e})})),r},track:function(e,t,n){var r=new qq.Promise;return t.onreadystatechange=function(){var i;4===t.readyState&&(null==n?(i=x.done(e,t),r[i.success?"success":"failure"](i.response,t)):(q.done(e,t,n),i=x.done(e,t),r[i.success?"success":"failure"](i.response,t)))},r}};qq.extend(this,{uploadChunk:x.start,uploadFile:function(e){return x.start({id:e})}}),qq.extend(this,new qq.XhrUploadHandler({options:qq.extend({namespace:"s3"},e),proxy:qq.extend({getEndpoint:e.endpointStore.get},t)})),qq.override(this,(function(e){return{expunge:function(t){var n=y._getPersistableData(t)&&y._getPersistableData(t).uploadId,r=y._maybeDeletePersistedChunkData(t);void 0!==n&&r&&w.abortMultipart.send(t,n),e.expunge(t)},finalizeChunks:function(e){return q.combine(e)},_getLocalStorageId:function(t){var n=e._getLocalStorageId(t),r=x.bucket.getName(t);return n+"-"+r}}}))},qq.s3.FormUploadHandler=function(e,t){"use strict";var n=this,r=e.clockDrift,i=t.onUuidChanged,o=t.getName,a=t.getUuid,s=t.log,u=e.getBucket,l=e.getKeyName,c=e.filenameParam,f=e.paramsStore,d=e.endpointStore,h=e.aclStore,p=e.objectProperties.reducedRedundancy,m=e.objectProperties.region,g=e.objectProperties.serverSideEncryption,v=e.validation,y=e.signature,b=e.iframeSupport.localBlankPagePath,q=e.signature.credentialsProvider,w=new qq.s3.RequestSigner({signatureSpec:y,cors:e.cors,log:s});if(void 0===b)throw new Error("successRedirectEndpoint MUST be defined if you intend to use browsers that do not support the File API!");function _(t,r){e.endpointStore.get(t);var i,o,a=n._getFileState(t).bucket;try{if(i=r.contentDocument||r.contentWindow.document,i.body.innerHTML,o=qq.s3.util.parseIframeResponse(r),o.bucket===a&&o.key===qq.s3.util.encodeQueryStringParam(n.getThirdPartyFileId(t)))return!0;s("Response from AWS included an unexpected bucket or key name.","error")}catch(u){s("Error when attempting to parse form upload response ("+u.message+")","error")}return!1}function x(e){var t=f.get(e);return t[c]=o(e),qq.s3.util.generateAwsParams({endpoint:d.get(e),clockDrift:r,params:t,bucket:n._getFileState(e).bucket,key:n.getThirdPartyFileId(e),accessKey:q.get().accessKey,sessionToken:q.get().sessionToken,acl:h.get(e),minFileSize:v.minSizeLimit,maxFileSize:v.maxSizeLimit,successRedirectUrl:b,reducedRedundancy:p,region:m,serverSideEncryption:g,signatureVersion:y.version,log:s},qq.bind(w.getSignature,this,e))}function S(t,r){var i=new qq.Promise,a="POST",s=e.endpointStore.get(t),u=o(t);return x(t).then((function(e){var t=n._initFormForUpload({method:a,endpoint:s,params:e,paramsInBody:!0,targetName:r.name});i.success(t)}),(function(e){i.failure(e),C(t,r,u,{error:e})})),i}function k(e){var t=n._createIframe(e),r=n.getInput(e),i=new qq.Promise;return S(e,t).then((function(o){o.appendChild(r),n._attachLoadEvent(t,(function(n){s("iframe loaded"),n?!1===n.success&&(s("Amazon likely rejected the upload request","error"),i.failure(n)):(n={},n.success=_(e,t),!1===n.success?(s("A success response was received by Amazon, but it was invalid in some way.","error"),i.failure(n)):(qq.extend(n,qq.s3.util.parseIframeResponse(t)),i.success(n))),C(e,t)})),s("Sending upload request for "+e),o.submit(),qq(o).remove()}),i.failure),i}function C(e,t){n._detachLoadEvent(e),t&&qq(t).remove()}qq.extend(this,new qq.FormUploadHandler({options:{isCors:!1,inputName:"file"},proxy:{onCancel:e.onCancel,onUuidChanged:i,getName:o,getUuid:a,log:s}})),qq.extend(this,{uploadFile:function(e){var t=o(e),r=new qq.Promise;return n.getThirdPartyFileId(e)?n._getFileState(e).bucket?k(e).then(r.success,r.failure):u(e).then((function(t){n._getFileState(e).bucket=t,k(e).then(r.success,r.failure)})):l(e,t).then((function(t){u(e).then((function(i){n._getFileState(e).bucket=i,n._setThirdPartyFileId(e,t),k(e).then(r.success,r.failure)}),(function(e){r.failure({error:e})}))}),(function(e){r.failure({error:e})})),r}})}})(window)},dd95:function(e,t,n){var r=n("6856"),i=n("8e1e");e.exports={distanceInWords:r(),format:i()}},dee5:function(e,t,n){
+/* flatpickr v4.3.2, @license MIT */
+(function(e,n){n(t)})(0,(function(e){"use strict";var t="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["zo","ma","di","wo","do","vr","za"],longhand:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},months:{shorthand:["jan","feb","mrt","apr","mei","jun","jul","aug","sept","okt","nov","dec"],longhand:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},firstDayOfWeek:1,weekAbbreviation:"wk",rangeSeparator:" tot ",scrollTitle:"Scroll voor volgende / vorige",toggleTitle:"Klik om te wisselen",ordinal:function(e){return 1===e||8===e||e>=20?"ste":"de"}};t.l10ns.nl=n;var r=t.l10ns;e.Dutch=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}))},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u<a;u++)if(i[u]!==o[u]){s=u;break}var l=[];for(u=s;u<i.length;u++)l.push("..");return l=l.concat(o.slice(s)),l.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},e13a:function(e,t,n){var r=n("e785");function i(e,t){var n=r(e,t)/1e3;return n>0?Math.floor(n):Math.ceil(n)}e.exports=i},e24b:function(e,t,n){var r=n("49f4"),i=n("1efc"),o=n("bbc0"),a=n("7a48"),s=n("2524");function u(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype["delete"]=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},e2c0:function(e,t,n){var r=n("e2e4"),i=n("d370"),o=n("6747"),a=n("c098"),s=n("b218"),u=n("f4d6");function l(e,t,n){t=r(t,e);var l=-1,c=t.length,f=!1;while(++l<c){var d=u(t[l]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++l!=c?f:(c=null==e?0:e.length,!!c&&s(c)&&a(d,c)&&(o(e)||i(e)))}e.exports=l},e2e4:function(e,t,n){var r=n("6747"),i=n("f608"),o=n("18d8"),a=n("76dd");function s(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}e.exports=s},e380:function(e,t,n){var r=n("7b83"),i="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e3f8:function(e,t,n){var r=n("656b");function i(e){return function(t){return r(t,e)}}e.exports=i},e485:function(e,t){function n(){var e={lessThanXSeconds:{standalone:{one:"weniger als eine Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als einer Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"eine Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"einer Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als eine Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als einer Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"eine Minute",other:"{{count}} Minuten"},withPreposition:{one:"einer Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa eine Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa einer Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"eine Stunde",other:"{{count}} Stunden"},withPreposition:{one:"einer Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"ein Tag",other:"{{count}} Tage"},withPreposition:{one:"einem Tag",other:"{{count}} Tagen"}},aboutXMonths:{standalone:{one:"etwa ein Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa einem Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"ein Monat",other:"{{count}} Monate"},withPreposition:{one:"einem Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa ein Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa einem Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"ein Jahr",other:"{{count}} Jahre"},withPreposition:{one:"einem Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als ein Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als einem Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast ein Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast einem Jahr",other:"fast {{count}} Jahren"}}};function t(t,n,r){r=r||{};var i,o=r.addSuffix?e[t].withPreposition:e[t].standalone;return i="string"===typeof o?o:1===n?o.one:o.other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"in "+i:"vor "+i:i}return{localize:t}}e.exports=n},e50c:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n("320c"),a=u(o),s=n("5ab1");function u(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=new WeakMap,f=new WeakMap,d=function(){function e(t){l(this,e),f.set(this,[]),c.set(this,{name:t,proxyFunction:h.call(this,{name:t})})}return i(e,[{key:"add",value:function(e){f.get(this).push(e)}},{key:"remove",value:function(e){var t=f.get(this).indexOf(e);t>=0&&f.get(this).splice(t,1)}},{key:"name",get:function(){return c.get(this).name}},{key:"proxyFunction",get:function(){return c.get(this).proxyFunction}}]),e}();t.default=d;var h=function(e){var t=e.name,n=this;return function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=s.thenable.indexOf(t)>=0,u=f.get(n),l=void 0;return o?l=p({registeredCallbacks:u,originalCallbackArguments:r}):(0,a.default)([],u).every((function(e){var t=e.apply(null,r);return l=t,!1!==t})),l}},p=function(e){var t=e.registeredCallbacks,n=e.originalCallbackArguments;return t.length?g({registeredCallbacks:(0,a.default)([],t).reverse(),originalCallbackArguments:n}):Promise.resolve()},m=function(e){var t=e.newResult,n=e.previousResult;return null!==t&&"object"===("undefined"===typeof t?"undefined":r(t))?(0,a.default)({},n||{},t):t||n},g=function e(t){var n=t.registeredCallbacks,r=t.originalCallbackArguments,i=t.previousResult;return new Promise((function(t,o){var a=n.pop(),s=a.apply(null,r);if(s&&s.then)s.then((function(a){var s=m({newResult:a,previousResult:i});n.length?e({registeredCallbacks:n,originalCallbackArguments:r,previousResult:s}).then(t,o):t(s)})).catch((function(e){return o(e)}));else if(!1===s)o();else{var u=m({newResult:s,previousResult:i});n.length?e({registeredCallbacks:n,originalCallbackArguments:r,previousResult:u}).then(t,o):t(u)}}))}},e538:function(e,t,n){(function(e){var r=n("2b3e"),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,u=s?s.allocUnsafe:void 0;function l(e,t){if(t)return e.slice();var n=e.length,r=u?u(n):new e.constructor(n);return e.copy(r),r}e.exports=l}).call(this,n("62e4")(e))},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e785:function(e,t,n){var r=n("c8d5");function i(e,t){var n=r(e),i=r(t);return n.getTime()-i.getTime()}e.exports=i},e830:function(e,t,n){var r=n("90e5");function i(){var e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],t=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Su","Mo","Tu","We","Th","Fr","Sa"],i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],a=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s=["AM","PM"],u=["am","pm"],l=["a.m.","p.m."],c={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return i[e.getDay()]},dddd:function(e){return a[e.getDay()]},A:function(e){return e.getHours()/12>=1?s[1]:s[0]},a:function(e){return e.getHours()/12>=1?u[1]:u[0]},aa:function(e){return e.getHours()/12>=1?l[1]:l[0]}},f=["M","D","DDD","d","Q","W"];return f.forEach((function(e){c[e+"o"]=function(t,n){return o(n[e](t))}})),{formatters:c,formattingTokensRegExp:r(c)}}function o(e){var t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"}e.exports=i},eac5:function(e,t){var n=Object.prototype;function r(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||n;return e===r}e.exports=r},ec69:function(e,t,n){var r=n("6fcd"),i=n("03dd"),o=n("30c9");function a(e){return o(e)?r(e):i(e)}e.exports=a},ec8c:function(e,t){function n(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=n},edfa:function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}e.exports=n},ef5d:function(e,t){function n(e){return function(t){return null==t?void 0:t[e]}}e.exports=n},efb6:function(e,t,n){var r=n("5e2e");function i(){this.__data__=new r,this.size=0}e.exports=i},f23d:function(e,t,n){"use strict";n.d(t,"a",(function(){return Dt})),n.d(t,"b",(function(){return zt})),n.d(t,"c",(function(){return Tt})),n.d(t,"d",(function(){return Ht})),n.d(t,"e",(function(){return Pt})),n.d(t,"f",(function(){return Mt})),n.d(t,"g",(function(){return Nt})),n.d(t,"h",(function(){return Gt})),n.d(t,"i",(function(){return $t})),n.d(t,"j",(function(){return Vt})),n.d(t,"k",(function(){return It})),n.d(t,"l",(function(){return Rt})),n.d(t,"m",(function(){return Yt})),n.d(t,"n",(function(){return Wt})),n.d(t,"o",(function(){return Ft})),n.d(t,"p",(function(){return Bt})),n.d(t,"q",(function(){return Lt})),n.d(t,"r",(function(){return Ut})),n.d(t,"s",(function(){return Xt}));var r=n("cd42"),i=n("a9de"),o=(n("3ce4"),n("41e5")),a=n("a15f"),s=n("304a"),u=n("65e8"),l=n("7f06");let c,f;if("undefined"!=typeof WeakMap){let e=new WeakMap;c=t=>e.get(t),f=(t,n)=>(e.set(t,n),n)}else{let e=[],t=10,n=0;c=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},f=(r,i)=>(n==t&&(n=0),e[n++]=r,e[n++]=i)}class d{constructor(e,t,n,r){this.left=e,this.top=t,this.right=n,this.bottom=r}}class h{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){let n=this.map[t];if(n!=e)continue;let r=t%this.width,i=t/this.width|0,o=r+1,a=i+1;for(let e=1;o<this.width&&this.map[t+e]==n;e++)o++;for(let e=1;a<this.height&&this.map[t+this.width*e]==n;e++)a++;return new d(r,i,o,a)}throw new RangeError("No cell with offset "+e+" found")}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError("No cell with offset "+e+" found")}nextCell(e,t,n){let{left:r,right:i,top:o,bottom:a}=this.findCell(e);return"horiz"==t?(n<0?0==r:i==this.width)?null:this.map[o*this.width+(n<0?r-1:i)]:(n<0?0==o:a==this.height)?null:this.map[r+this.width*(n<0?o-1:a)]}rectBetween(e,t){let{left:n,right:r,top:i,bottom:o}=this.findCell(e),{left:a,right:s,top:u,bottom:l}=this.findCell(t);return new d(Math.min(n,a),Math.min(i,u),Math.max(r,s),Math.max(o,l))}cellsInRect(e){let t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){let o=r*this.width+i,a=this.map[o];n[a]||(n[a]=!0,i==e.left&&i&&this.map[o-1]==a||r==e.top&&r&&this.map[o-this.width]==a||t.push(a))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){let o=i+n.child(r).nodeSize;if(r==e){let n=t+e*this.width,r=(e+1)*this.width;while(n<r&&this.map[n]<i)n++;return n==r?o-1:this.map[n]}i=o}}static get(e){return c(e)||f(e,p(e))}}function p(e){if("table"!=e.type.spec.tableRole)throw new RangeError("Not a table node: "+e.type.name);let t=m(e),n=e.childCount,r=[],i=0,o=null,a=[];for(let l=0,c=t*n;l<c;l++)r[l]=0;for(let l=0,c=0;l<n;l++){let s=e.child(l);c++;for(let e=0;;e++){while(i<r.length&&0!=r[i])i++;if(e==s.childCount)break;let u=s.child(e),{colspan:f,rowspan:d,colwidth:h}=u.attrs;for(let e=0;e<d;e++){if(e+l>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:c,n:d-e});break}let s=i+e*t;for(let e=0;e<f;e++){0==r[s+e]?r[s+e]=c:(o||(o=[])).push({type:"collision",row:l,pos:c,n:f-e});let n=h&&h[e];if(n){let r=(s+e)%t*2,i=a[r];null==i||i!=n&&1==a[r+1]?(a[r]=n,a[r+1]=1):i==n&&a[r+1]++}}}i+=f,c+=u.nodeSize}let u=(l+1)*t,f=0;while(i<u)0==r[i++]&&f++;f&&(o||(o=[])).push({type:"missing",row:l,n:f}),c++}let s=new h(t,n,r,o),u=!1;for(let l=0;!u&&l<a.length;l+=2)null!=a[l]&&a[l+1]<n&&(u=!0);return u&&g(s,a,e),s}function m(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){let i=e.child(r),o=0;if(n)for(let t=0;t<r;t++){let n=e.child(t);for(let e=0;e<n.childCount;e++){let i=n.child(e);t+i.attrs.rowspan>r&&(o+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);o+=t.attrs.colspan,t.attrs.rowspan>1&&(n=!0)}-1==t?t=o:t!=o&&(t=Math.max(t,o))}return t}function g(e,t,n){e.problems||(e.problems=[]);for(let r=0,i={};r<e.map.length;r++){let o=e.map[r];if(i[o])continue;i[o]=!0;let a=n.nodeAt(o),s=null;for(let n=0;n<a.attrs.colspan;n++){let i=(r+n)%e.width,o=t[2*i];null==o||a.attrs.colwidth&&a.attrs.colwidth[n]==o||((s||(s=v(a.attrs)))[n]=o)}s&&e.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:s})}}function v(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function y(e,t){let n=e.getAttribute("data-colwidth"),r=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map(e=>Number(e)):null,i=Number(e.getAttribute("colspan")||1),o={colspan:i,rowspan:Number(e.getAttribute("rowspan")||1),colwidth:r&&r.length==i?r:null};for(let a in t){let n=t[a].getFromDOM,r=n&&n(e);null!=r&&(o[a]=r)}return o}function b(e,t){let n={};1!=e.attrs.colspan&&(n.colspan=e.attrs.colspan),1!=e.attrs.rowspan&&(n.rowspan=e.attrs.rowspan),e.attrs.colwidth&&(n["data-colwidth"]=e.attrs.colwidth.join(","));for(let r in t){let i=t[r].setDOMAttr;i&&i(e.attrs[r],n)}return n}function q(e){let t=e.cellAttributes||{},n={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(let r in t)n[r]={default:t[r].default};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:e.tableGroup,parseDOM:[{tag:"table"}],toDOM(){return["table",["tbody",0]]}},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM(){return["tr",0]}},table_cell:{content:e.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:e=>y(e,t)}],toDOM(e){return["td",b(e,t),0]}},table_header:{content:e.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:e=>y(e,t)}],toDOM(e){return["th",b(e,t),0]}}}}function w(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(let n in e.nodes){let r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}}return t}const _=new u["e"]("selectingCells");function x(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function S(e){for(let t=e.depth;t>0;t--){const n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}function k(e){let t=e.selection.$head;for(let n=t.depth;n>0;n--)if("row"==t.node(n).type.spec.tableRole)return!0;return!1}function C(e){let t=e.selection;return t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t.node&&"cell"==t.node.type.spec.tableRole?t.$anchor:x(t.$head)||E(t.$head)}function E(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){let r=t.type.spec.tableRole;if("cell"==r||"header_cell"==r)return e.doc.resolve(n-t.nodeSize)}}function O(e){return"row"==e.parent.type.spec.tableRole&&e.nodeAfter}function A(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function D(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function T(e,t,n){let r=e.start(-1),i=h.get(e.node(-1)),o=i.nextCell(e.pos-r,t,n);return null==o?null:e.node(0).resolve(r+o)}function P(e,t,n){let r={};for(let i in e)r[i]=e[i];return r[t]=n,r}function M(e,t,n=1){let r=P(e,"colspan",e.colspan-n);return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}function N(e,t,n=1){let r=P(e,"colspan",e.colspan+n);if(r.colwidth){r.colwidth=r.colwidth.slice();for(let e=0;e<n;e++)r.colwidth.splice(t,0,0)}return r}function I(e,t,n){let r=w(t.type.schema).header_cell;for(let i=0;i<e.height;i++)if(t.nodeAt(e.map[n+i*e.width]).type!=r)return!1;return!0}class R extends u["f"]{constructor(e,t=e){let n=e.node(-1),r=h.get(n),i=e.start(-1),o=r.rectBetween(e.pos-i,t.pos-i),a=e.node(0),s=r.cellsInRect(o).filter(e=>e!=t.pos-i);s.unshift(t.pos-i);let l=s.map(e=>{let t=n.nodeAt(e),r=e+i+1;return new u["g"](a.resolve(r),a.resolve(r+t.content.size))});super(l[0].$from,l[0].$to,l),this.$anchorCell=e,this.$headCell=t}map(e,t){let n=e.resolve(t.map(this.$anchorCell.pos)),r=e.resolve(t.map(this.$headCell.pos));if(O(n)&&O(r)&&D(n,r)){let e=this.$anchorCell.node(-1)!=n.node(-1);return e&&this.isRowSelection()?R.rowSelection(n,r):e&&this.isColSelection()?R.colSelection(n,r):new R(n,r)}return u["h"].between(n,r)}content(){let e=this.$anchorCell.node(-1),t=h.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},o=[];for(let u=r.top;u<r.bottom;u++){let n=[];for(let o=u*t.width+r.left,a=r.left;a<r.right;a++,o++){let a=t.map[o];if(!i[a]){i[a]=!0;let o=t.findCell(a),s=e.nodeAt(a),u=r.left-o.left,l=o.right-r.right;if(u>0||l>0){let e=s.attrs;u>0&&(e=M(e,0,u)),l>0&&(e=M(e,e.colspan-l,l)),s=o.left<r.left?s.type.createAndFill(e):s.type.create(e,s.content)}if(o.top<r.top||o.bottom>r.bottom){let e=P(s.attrs,"rowspan",Math.min(o.bottom,r.bottom)-Math.max(o.top,r.top));s=o.top<r.top?s.type.createAndFill(e):s.type.create(e,s.content)}n.push(s)}}o.push(e.child(u).copy(s["c"].from(n)))}const a=this.isColSelection()&&this.isRowSelection()?e:o;return new s["j"](s["c"].from(a),1,1)}replace(e,t=s["j"].empty){let n=e.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){let{$from:i,$to:a}=r[o],u=e.mapping.slice(n);e.replace(u.map(i.pos),u.map(a.pos),o?s["j"].empty:t)}let i=u["f"].findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new s["j"](s["c"].from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),n=h.get(t),r=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let o=0;o<i.length;o++)e(t.nodeAt(i[o]),r+i[o])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;let n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(e,t=e){let n=h.get(e.node(-1)),r=e.start(-1),i=n.findCell(e.pos-r),o=n.findCell(t.pos-r),a=e.node(0);return i.top<=o.top?(i.top>0&&(e=a.resolve(r+n.map[i.left])),o.bottom<n.height&&(t=a.resolve(r+n.map[n.width*(n.height-1)+o.right-1]))):(o.top>0&&(t=a.resolve(r+n.map[o.left])),i.bottom<n.height&&(e=a.resolve(r+n.map[n.width*(n.height-1)+i.right-1]))),new R(e,t)}isRowSelection(){let e=h.get(this.$anchorCell.node(-1)),t=this.$anchorCell.start(-1),n=e.colCount(this.$anchorCell.pos-t),r=e.colCount(this.$headCell.pos-t);if(Math.min(n,r)>0)return!1;let i=n+this.$anchorCell.nodeAfter.attrs.colspan,o=r+this.$headCell.nodeAfter.attrs.colspan;return Math.max(i,o)==e.width}eq(e){return e instanceof R&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,t=e){let n=h.get(e.node(-1)),r=e.start(-1),i=n.findCell(e.pos-r),o=n.findCell(t.pos-r),a=e.node(0);return i.left<=o.left?(i.left>0&&(e=a.resolve(r+n.map[i.top*n.width])),o.right<n.width&&(t=a.resolve(r+n.map[n.width*(o.top+1)-1]))):(o.left>0&&(t=a.resolve(r+n.map[o.top*n.width])),i.right<n.width&&(e=a.resolve(r+n.map[n.width*(i.top+1)-1]))),new R(e,t)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,t){return new R(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){return new R(e.resolve(t),e.resolve(n))}getBookmark(){return new j(this.$anchorCell.pos,this.$headCell.pos)}}R.prototype.visible=!1,u["f"].jsonID("cell",R);class j{constructor(e,t){this.anchor=e,this.head=t}map(e){return new j(e.map(this.anchor),e.map(this.head))}resolve(e){let t=e.resolve(this.anchor),n=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&D(t,n)?new R(t,n):u["f"].near(n,1)}}function F(e){if(!(e.selection instanceof R))return null;let t=[];return e.selection.forEachCell((e,n)=>{t.push(o["a"].node(n,n+e.nodeSize,{class:"selectedCell"}))}),o["b"].create(e.doc,t)}function L({$from:e,$to:t}){if(e.pos==t.pos||e.pos<e.pos-6)return!1;let n=e.pos,r=t.pos,i=e.depth;for(;i>=0;i--,n++)if(e.after(i+1)<e.end(i))break;for(let o=t.depth;o>=0;o--,r--)if(t.before(o+1)>t.start(o))break;return n==r&&/row|table/.test(e.node(i).type.spec.tableRole)}function B({$from:e,$to:t}){let n,r;for(let i=e.depth;i>0;i--){let t=e.node(i);if("cell"===t.type.spec.tableRole||"header_cell"===t.type.spec.tableRole){n=t;break}}for(let i=t.depth;i>0;i--){let e=t.node(i);if("cell"===e.type.spec.tableRole||"header_cell"===e.type.spec.tableRole){r=e;break}}return n!==r&&0===t.parentOffset}function U(e,t,n){let r,i,o=(t||e).selection,a=(t||e).doc;if(o instanceof u["c"]&&(i=o.node.type.spec.tableRole)){if("cell"==i||"header_cell"==i)r=R.create(a,o.from);else if("row"==i){let e=a.resolve(o.from+1);r=R.rowSelection(e,e)}else if(!n){let e=h.get(o.node),t=o.from+1,n=t+e.map[e.width*e.height-1];r=R.create(a,t+1,n)}}else o instanceof u["h"]&&L(o)?r=u["h"].create(a,o.from):o instanceof u["h"]&&B(o)&&(r=u["h"].create(a,o.$from.start(),o.$from.end()));return r&&(t||(t=e.tr)).setSelection(r),t}var z=n("2eae");function H(e){if(!e.size)return null;let{content:t,openStart:n,openEnd:r}=e;while(1==t.childCount&&(n>0&&r>0||"table"==t.firstChild.type.spec.tableRole))n--,r--,t=t.firstChild.content;let i=t.firstChild,o=i.type.spec.tableRole,a=i.type.schema,u=[];if("row"==o)for(let l=0;l<t.childCount;l++){let e=t.child(l).content,i=l?0:Math.max(0,n-1),o=l<t.childCount-1?0:Math.max(0,r-1);(i||o)&&(e=V(w(a).row,new s["j"](e,i,o)).content),u.push(e)}else{if("cell"!=o&&"header_cell"!=o)return null;u.push(n||r?V(w(a).row,new s["j"](t,n,r)).content:t)}return $(a,u)}function $(e,t){let n=[];for(let i=0;i<t.length;i++){let e=t[i];for(let t=e.childCount-1;t>=0;t--){let{rowspan:r,colspan:o}=e.child(t).attrs;for(let e=i;e<i+r;e++)n[e]=(n[e]||0)+o}}let r=0;for(let i=0;i<n.length;i++)r=Math.max(r,n[i]);for(let i=0;i<n.length;i++)if(i>=t.length&&t.push(s["c"].empty),n[i]<r){let o=w(e).cell.createAndFill(),a=[];for(let e=n[i];e<r;e++)a.push(o);t[i]=t[i].append(s["c"].from(a))}return{height:t.length,width:r,rows:t}}function V(e,t){let n=e.createAndFill(),r=new z["e"](n).replace(0,n.content.size,t);return r.doc}function W({width:e,height:t,rows:n},r,i){if(e!=r){let t=[],i=[];for(let e=0;e<n.length;e++){let o=n[e],a=[];for(let n=t[e]||0,i=0;n<r;i++){let s=o.child(i%o.childCount);n+s.attrs.colspan>r&&(s=s.type.create(M(s.attrs,s.attrs.colspan,n+s.attrs.colspan-r),s.content)),a.push(s),n+=s.attrs.colspan;for(let n=1;n<s.attrs.rowspan;n++)t[e+n]=(t[e+n]||0)+s.attrs.colspan}i.push(s["c"].from(a))}n=i,e=r}if(t!=i){let e=[];for(let r=0,o=0;r<i;r++,o++){let a=[],u=n[o%t];for(let e=0;e<u.childCount;e++){let t=u.child(e);r+t.attrs.rowspan>i&&(t=t.type.create(P(t.attrs,"rowspan",Math.max(1,i-t.attrs.rowspan)),t.content)),a.push(t)}e.push(s["c"].from(a))}n=e,t=i}return{width:e,height:t,rows:n}}function X(e,t,n,r,i,o,a){let u,l,c=e.doc.type.schema,f=w(c);if(i>t.width)for(let s=0,d=0;s<t.height;s++){let o=n.child(s);d+=o.nodeSize;let c,h=[];c=null==o.lastChild||o.lastChild.type==f.cell?u||(u=f.cell.createAndFill()):l||(l=f.header_cell.createAndFill());for(let e=t.width;e<i;e++)h.push(c);e.insert(e.mapping.slice(a).map(d-1+r),h)}if(o>t.height){let c=[];for(let e=0,r=(t.height-1)*t.width;e<Math.max(t.width,i);e++){let i=!(e>=t.width)&&n.nodeAt(t.map[r+e]).type==f.header_cell;c.push(i?l||(l=f.header_cell.createAndFill()):u||(u=f.cell.createAndFill()))}let d=f.row.create(null,s["c"].from(c)),h=[];for(let e=t.height;e<o;e++)h.push(d);e.insert(e.mapping.slice(a).map(r+n.nodeSize-2),h)}return!(!u&&!l)}function G(e,t,n,r,i,o,a,s){if(0==a||a==t.height)return!1;let u=!1;for(let l=i;l<o;l++){let i=a*t.width+l,o=t.map[i];if(t.map[i-t.width]==o){u=!0;let i=n.nodeAt(o),{top:c,left:f}=t.findCell(o);e.setNodeMarkup(e.mapping.slice(s).map(o+r),null,P(i.attrs,"rowspan",a-c)),e.insert(e.mapping.slice(s).map(t.positionAt(a,f,n)),i.type.createAndFill(P(i.attrs,"rowspan",c+i.attrs.rowspan-a))),l+=i.attrs.colspan-1}}return u}function Y(e,t,n,r,i,o,a,s){if(0==a||a==t.width)return!1;let u=!1;for(let l=i;l<o;l++){let i=l*t.width+a,o=t.map[i];if(t.map[i-1]==o){u=!0;let i=n.nodeAt(o),c=t.colCount(o),f=e.mapping.slice(s).map(o+r);e.setNodeMarkup(f,null,M(i.attrs,a-c,i.attrs.colspan-(a-c))),e.insert(f+i.nodeSize,i.type.createAndFill(M(i.attrs,0,a-c))),l+=i.attrs.rowspan-1}}return u}function K(e,t,n,r,i){let o=n?e.doc.nodeAt(n-1):e.doc,a=h.get(o),{top:u,left:l}=r,c=l+i.width,f=u+i.height,d=e.tr,p=0;function m(){o=n?d.doc.nodeAt(n-1):d.doc,a=h.get(o),p=d.mapping.maps.length}X(d,a,o,n,c,f,p)&&m(),G(d,a,o,n,l,c,u,p)&&m(),G(d,a,o,n,l,c,f,p)&&m(),Y(d,a,o,n,u,f,l,p)&&m(),Y(d,a,o,n,u,f,c,p)&&m();for(let h=u;h<f;h++){let e=a.positionAt(h,l,o),t=a.positionAt(h,c,o);d.replace(d.mapping.slice(p).map(e+n),d.mapping.slice(p).map(t+n),new s["j"](i.rows[h-u],0,0))}m(),d.setSelection(new R(d.doc.resolve(n+a.positionAt(u,l,o)),d.doc.resolve(n+a.positionAt(f-1,c-1,o)))),t(d)}const J=Object(l["a"])({ArrowLeft:Q("horiz",-1),ArrowRight:Q("horiz",1),ArrowUp:Q("vert",-1),ArrowDown:Q("vert",1),"Shift-ArrowLeft":ee("horiz",-1),"Shift-ArrowRight":ee("horiz",1),"Shift-ArrowUp":ee("vert",-1),"Shift-ArrowDown":ee("vert",1),Backspace:te,"Mod-Backspace":te,Delete:te,"Mod-Delete":te});function Z(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function Q(e,t){return(n,r,i)=>{let o=n.selection;if(o instanceof R)return Z(n,r,u["f"].near(o.$headCell,t));if("horiz"!=e&&!o.empty)return!1;let a=oe(i,e,t);if(null==a)return!1;if("horiz"==e)return Z(n,r,u["f"].near(n.doc.resolve(o.head+t),t));{let i,o=n.doc.resolve(a),s=T(o,e,t);return i=s?u["f"].near(s,1):t<0?u["f"].near(n.doc.resolve(o.before(-1)),-1):u["f"].near(n.doc.resolve(o.after(-1)),1),Z(n,r,i)}}}function ee(e,t){return(n,r,i)=>{let o=n.selection;if(!(o instanceof R)){let r=oe(i,e,t);if(null==r)return!1;o=new R(n.doc.resolve(r))}let a=T(o.$headCell,e,t);return!!a&&Z(n,r,new R(o.$anchorCell,a))}}function te(e,t){let n=e.selection;if(!(n instanceof R))return!1;if(t){let r=e.tr,i=w(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(i)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new s["j"](i,0,0))}),r.docChanged&&t(r)}return!0}function ne(e,t){let n=e.state.doc,r=x(n.resolve(t));return!!r&&(e.dispatch(e.state.tr.setSelection(new R(r))),!0)}function re(e,t,n){if(!k(e.state))return!1;let r=H(n),i=e.state.selection;if(i instanceof R){r||(r={width:1,height:1,rows:[s["c"].from(V(w(e.state.schema).cell,n))]});let t=i.$anchorCell.node(-1),o=i.$anchorCell.start(-1),a=h.get(t).rectBetween(i.$anchorCell.pos-o,i.$headCell.pos-o);return r=W(r,a.right-a.left,a.bottom-a.top),K(e.state,e.dispatch,o,a,r),!0}if(r){let t=C(e.state),n=t.start(-1);return K(e.state,e.dispatch,n,h.get(t.node(-1)).findCell(t.pos-n),r),!0}return!1}function ie(e,t){if(t.ctrlKey||t.metaKey)return;let n,r=ae(e,t.target);if(t.shiftKey&&e.state.selection instanceof R)i(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&r&&null!=(n=x(e.state.selection.$anchor))&&se(e,t).pos!=n.pos)i(n,t),t.preventDefault();else if(!r)return;function i(t,n){let r=se(e,n),i=null==_.getState(e.state);if(!r||!D(t,r)){if(!i)return;r=t}let o=new R(t,r);if(i||!e.state.selection.eq(o)){let n=e.state.tr.setSelection(o);i&&n.setMeta(_,t.pos),e.dispatch(n)}}function o(){e.root.removeEventListener("mouseup",o),e.root.removeEventListener("dragstart",o),e.root.removeEventListener("mousemove",a),null!=_.getState(e.state)&&e.dispatch(e.state.tr.setMeta(_,-1))}function a(n){let a,s=_.getState(e.state);if(null!=s)a=e.state.doc.resolve(s);else if(ae(e,n.target)!=r&&(a=se(e,t),!a))return o();a&&i(a,n)}e.root.addEventListener("mouseup",o),e.root.addEventListener("dragstart",o),e.root.addEventListener("mousemove",a)}function oe(e,t,n){if(!(e.state.selection instanceof u["h"]))return null;let{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){let o=r.node(i),a=n<0?r.index(i):r.indexAfter(i);if(a!=(n<0?0:o.childCount))return null;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){let o=r.before(i),a="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(a)?o:null}}return null}function ae(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function se(e,t){let n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?x(e.state.doc.resolve(n.pos)):null}const ue=new u["e"]("fix-tables");function le(e,t,n,r){let i=e.childCount,o=t.childCount;e:for(let a=0,s=0;a<o;a++){let o=t.child(a);for(let t=s,r=Math.min(i,a+3);t<r;t++)if(e.child(t)==o){s=t+1,n+=o.nodeSize;continue e}r(o,n),s<i&&e.child(s).sameMarkup(o)?le(e.child(s),o,n+1,r):o.nodesBetween(0,o.content.size,r,n+1),n+=o.nodeSize}}function ce(e,t){let n,r=(t,r)=>{"table"==t.type.spec.tableRole&&(n=fe(e,t,r,n))};return t?t.doc!=e.doc&&le(t.doc,e.doc,0,r):e.doc.descendants(r),n}function fe(e,t,n,r){let i=h.get(t);if(!i.problems)return r;r||(r=e.tr);let o,a,s=[];for(let u=0;u<i.height;u++)s.push(0);for(let u=0;u<i.problems.length;u++){let e=i.problems[u];if("collision"==e.type){let i=t.nodeAt(e.pos);for(let t=0;t<i.attrs.rowspan;t++)s[e.row+t]+=e.n;r.setNodeMarkup(r.mapping.map(n+1+e.pos),null,M(i.attrs,i.attrs.colspan-e.n,e.n))}else if("missing"==e.type)s[e.row]+=e.n;else if("overlong_rowspan"==e.type){let i=t.nodeAt(e.pos);r.setNodeMarkup(r.mapping.map(n+1+e.pos),null,P(i.attrs,"rowspan",i.attrs.rowspan-e.n))}else if("colwidth mismatch"==e.type){let i=t.nodeAt(e.pos);r.setNodeMarkup(r.mapping.map(n+1+e.pos),null,P(i.attrs,"colwidth",e.colwidth))}}for(let u=0;u<s.length;u++)s[u]&&(null==o&&(o=u),a=u);for(let u=0,l=n+1;u<i.height;u++){let n=t.child(u),i=l+n.nodeSize,c=s[u];if(c>0){let t="cell";n.firstChild&&(t=n.firstChild.type.spec.tableRole);let s=[];for(let n=0;n<c;n++)s.push(w(e.schema)[t].createAndFill());let f=0!=u&&o!=u-1||a!=u?i-1:l+1;r.insert(r.mapping.map(f),s)}l=i}return r.setMeta(ue,{fixTables:!0})}function de(e){let t,n=e.selection,r=C(e),i=r.node(-1),o=r.start(-1),a=h.get(i);return t=n instanceof R?a.rectBetween(n.$anchorCell.pos-o,n.$headCell.pos-o):a.findCell(r.pos-o),t.tableStart=o,t.map=a,t.table=i,t}function he(e,{map:t,tableStart:n,table:r},i){let o=i>0?-1:0;I(t,r,i+o)&&(o=0==i||i==t.width?null:0);for(let a=0;a<t.height;a++){let s=a*t.width+i;if(i>0&&i<t.width&&t.map[s-1]==t.map[s]){let o=t.map[s],u=r.nodeAt(o);e.setNodeMarkup(e.mapping.map(n+o),null,N(u.attrs,i-t.colCount(o))),a+=u.attrs.rowspan-1}else{let u=null==o?w(r.type.schema).cell:r.nodeAt(t.map[s+o]).type,l=t.positionAt(a,i,r);e.insert(e.mapping.map(n+l),u.createAndFill())}}return e}function pe(e,t){if(!k(e))return!1;if(t){let n=de(e);t(he(e.tr,n,n.left))}return!0}function me(e,t){if(!k(e))return!1;if(t){let n=de(e);t(he(e.tr,n,n.right))}return!0}function ge(e,{map:t,table:n,tableStart:r},i){let o=e.mapping.maps.length;for(let a=0;a<t.height;){let s=a*t.width+i,u=t.map[s],l=n.nodeAt(u);if(i>0&&t.map[s-1]==u||i<t.width-1&&t.map[s+1]==u)e.setNodeMarkup(e.mapping.slice(o).map(r+u),null,M(l.attrs,i-t.colCount(u)));else{let t=e.mapping.slice(o).map(r+u);e.delete(t,t+l.nodeSize)}a+=l.attrs.rowspan}}function ve(e,t){if(!k(e))return!1;if(t){let n=de(e),r=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(let e=n.right-1;;e--){if(ge(r,n,e),e==n.left)break;n.table=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc,n.map=h.get(n.table)}t(r)}return!0}function ye(e,t,n){let r=w(t.type.schema).header_cell;for(let i=0;i<e.width;i++)if(t.nodeAt(e.map[i+n*e.width]).type!=r)return!1;return!0}function be(e,{map:t,tableStart:n,table:r},i){let o=n;for(let u=0;u<i;u++)o+=r.child(u).nodeSize;let a=[],s=i>0?-1:0;ye(t,r,i+s)&&(s=0==i||i==t.height?null:0);for(let u=0,l=t.width*i;u<t.width;u++,l++)if(i>0&&i<t.height&&t.map[l]==t.map[l-t.width]){let i=t.map[l],o=r.nodeAt(i).attrs;e.setNodeMarkup(n+i,null,P(o,"rowspan",o.rowspan+1)),u+=o.colspan-1}else{let e=null==s?w(r.type.schema).cell:r.nodeAt(t.map[l+s*t.width]).type;a.push(e.createAndFill())}return e.insert(o,w(r.type.schema).row.create(null,a)),e}function qe(e,t){if(!k(e))return!1;if(t){let n=de(e);t(be(e.tr,n,n.top))}return!0}function we(e,t){if(!k(e))return!1;if(t){let n=de(e);t(be(e.tr,n,n.bottom))}return!0}function _e(e,{map:t,table:n,tableStart:r},i){let o=0;for(let u=0;u<i;u++)o+=n.child(u).nodeSize;let a=o+n.child(i).nodeSize,s=e.mapping.maps.length;e.delete(o+r,a+r);for(let u=0,l=i*t.width;u<t.width;u++,l++){let o=t.map[l];if(i>0&&o==t.map[l-t.width]){let t=n.nodeAt(o).attrs;e.setNodeMarkup(e.mapping.slice(s).map(o+r),null,P(t,"rowspan",t.rowspan-1)),u+=t.colspan-1}else if(i<t.width&&o==t.map[l+t.width]){let a=n.nodeAt(o),l=a.type.create(P(a.attrs,"rowspan",a.attrs.rowspan-1),a.content),c=t.positionAt(i+1,u,n);e.insert(e.mapping.slice(s).map(r+c),l),u+=a.attrs.colspan-1}}}function xe(e,t){if(!k(e))return!1;if(t){let n=de(e),r=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(let e=n.bottom-1;;e--){if(_e(r,n,e),e==n.top)break;n.table=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc,n.map=h.get(n.table)}t(r)}return!0}function Se(e){let t=e.content;return 1==t.childCount&&t.firstChild.isTextblock&&0==t.firstChild.childCount}function ke({width:e,height:t,map:n},r){let i=r.top*e+r.left,o=i,a=(r.bottom-1)*e+r.left,s=i+(r.right-r.left-1);for(let u=r.top;u<r.bottom;u++){if(r.left>0&&n[o]==n[o-1]||r.right<e&&n[s]==n[s+1])return!0;o+=e,s+=e}for(let u=r.left;u<r.right;u++){if(r.top>0&&n[i]==n[i-e]||r.bottom<t&&n[a]==n[a+e])return!0;i++,a++}return!1}function Ce(e,t){let n=e.selection;if(!(n instanceof R)||n.$anchorCell.pos==n.$headCell.pos)return!1;let r=de(e),{map:i}=r;if(ke(i,r))return!1;if(t){let n,o,a=e.tr,u={},l=s["c"].empty;for(let e=r.top;e<r.bottom;e++)for(let t=r.left;t<r.right;t++){let s=i.map[e*i.width+t],c=r.table.nodeAt(s);if(!u[s])if(u[s]=!0,null==n)n=s,o=c;else{Se(c)||(l=l.append(c.content));let e=a.mapping.map(s+r.tableStart);a.delete(e,e+c.nodeSize)}}if(a.setNodeMarkup(n+r.tableStart,null,P(N(o.attrs,o.attrs.colspan,r.right-r.left-o.attrs.colspan),"rowspan",r.bottom-r.top)),l.size){let e=n+1+o.content.size,t=Se(o)?n+1:e;a.replaceWith(t+r.tableStart,e+r.tableStart,l)}a.setSelection(new R(a.doc.resolve(n+r.tableStart))),t(a)}return!0}function Ee(e,t){const n=w(e.schema);return Oe(({node:e})=>n[e.type.spec.tableRole])(e,t)}function Oe(e){return(t,n)=>{let r,i,o=t.selection;if(o instanceof R){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;r=o.$anchorCell.nodeAfter,i=o.$anchorCell.pos}else{if(r=S(o.$from),!r)return!1;i=x(o.$from).pos}if(1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(n){let a=r.attrs,s=[],u=a.colwidth;a.rowspan>1&&(a=P(a,"rowspan",1)),a.colspan>1&&(a=P(a,"colspan",1));let l,c=de(t),f=t.tr;for(let e=0;e<c.right-c.left;e++)s.push(u?P(a,"colwidth",u&&u[e]?[u[e]]:null):a);for(let t=c.top;t<c.bottom;t++){let n=c.map.positionAt(t,c.left,c.table);t==c.top&&(n+=r.nodeSize);for(let i=c.left,o=0;i<c.right;i++,o++)i==c.left&&t==c.top||f.insert(l=f.mapping.map(n+c.tableStart,1),e({node:r,row:t,col:i}).createAndFill(s[o]))}f.setNodeMarkup(i,e({node:r,row:c.top,col:c.left}),s[0]),o instanceof R&&f.setSelection(new R(f.doc.resolve(o.$anchorCell.pos),l&&f.doc.resolve(l))),n(f)}return!0}}function Ae(e,t){return function(n,r){if(!k(n))return!1;let i=C(n);if(i.nodeAfter.attrs[e]===t)return!1;if(r){let o=n.tr;n.selection instanceof R?n.selection.forEachCell((n,r)=>{n.attrs[e]!==t&&o.setNodeMarkup(r,null,P(n.attrs,e,t))}):o.setNodeMarkup(i.pos,null,P(i.nodeAfter.attrs,e,t)),r(o)}return!0}}function De(e){return function(t,n){if(!k(t))return!1;if(n){let r=w(t.schema),i=de(t),o=t.tr,a=i.map.cellsInRect("column"==e?new d(i.left,0,i.right,i.map.height):"row"==e?new d(0,i.top,i.map.width,i.bottom):i),s=a.map(e=>i.table.nodeAt(e));for(let e=0;e<a.length;e++)s[e].type==r.header_cell&&o.setNodeMarkup(i.tableStart+a[e],r.cell,s[e].attrs);if(0==o.steps.length)for(let e=0;e<a.length;e++)o.setNodeMarkup(i.tableStart+a[e],r.header_cell,s[e].attrs);n(o)}return!0}}function Te(e,t,n){const r=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let i=0;i<r.length;i++){const e=t.table.nodeAt(r[i]);if(e&&e.type!==n.header_cell)return!1}return!0}function Pe(e,t){return t=t||{useDeprecatedLogic:!1},t.useDeprecatedLogic?De(e):function(t,n){if(!k(t))return!1;if(n){let r=w(t.schema),i=de(t),o=t.tr,a=Te("row",i,r),s=Te("column",i,r),u="column"===e?a:"row"===e&&s,l=u?1:0,c="column"==e?new d(0,l,1,i.map.height):"row"==e?new d(l,0,i.map.width,1):i,f="column"==e?s?r.cell:r.header_cell:"row"==e?a?r.cell:r.header_cell:r.cell;i.map.cellsInRect(c).forEach(e=>{const t=e+i.tableStart,n=o.doc.nodeAt(t);n&&o.setNodeMarkup(t,f,n.attrs)}),n(o)}return!0}}let Me=Pe("row",{useDeprecatedLogic:!0}),Ne=Pe("column",{useDeprecatedLogic:!0}),Ie=Pe("cell",{useDeprecatedLogic:!0});function Re(e,t){if(t<0){let t=e.nodeBefore;if(t)return e.pos-t.nodeSize;for(let n=e.index(-1)-1,r=e.before();n>=0;n--){let t=e.node(-1).child(n);if(t.childCount)return r-1-t.lastChild.nodeSize;r-=t.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;let t=e.node(-1);for(let n=e.indexAfter(-1),r=e.after();n<t.childCount;n++){let e=t.child(n);if(e.childCount)return r+1;r+=e.nodeSize}}}function je(e){return function(t,n){if(!k(t))return!1;let r=Re(C(t),e);if(null!=r){if(n){let e=t.doc.resolve(r);n(t.tr.setSelection(u["h"].between(e,A(e))).scrollIntoView())}return!0}}}function Fe(e,t){let n=e.selection.$anchor;for(let r=n.depth;r>0;r--){let i=n.node(r);if("table"==i.type.spec.tableRole)return t&&t(e.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0}return!1}class Le{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Be(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type==this.node.type&&(this.node=e,Be(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))}}function Be(e,t,n,r,i,o){let a=0,s=!0,u=t.firstChild,l=e.firstChild;for(let c=0,f=0;c<l.childCount;c++){let{colspan:e,colwidth:n}=l.child(c).attrs;for(let l=0;l<e;l++,f++){let e=i==f?o:n&&n[l],c=e?e+"px":"";a+=e||r,e||(s=!1),u?(u.style.width!=c&&(u.style.width=c),u=u.nextSibling):t.appendChild(document.createElement("col")).style.width=c}}while(u){let e=u.nextSibling;u.parentNode.removeChild(u),u=e}s?(n.style.width=a+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=a+"px")}const Ue=new u["e"]("tableColumnResizing");function ze({handleWidth:e=5,cellMinWidth:t=25,View:n=Le,lastColumnResizable:r=!0}={}){let i=new u["d"]({key:Ue,state:{init(e,r){return this.spec.props.nodeViews[w(r.schema).table.name]=(e,r)=>new n(e,t,r),new He(-1,!1)},apply(e,t){return t.apply(e)}},props:{attributes(e){let t=Ue.getState(e);return t.activeHandle>-1?{class:"resize-cursor"}:null},handleDOMEvents:{mousemove(n,i){$e(n,i,e,t,r)},mouseleave(e){Ve(e)},mousedown(e,n){We(e,n,t)}},decorations(e){let t=Ue.getState(e);if(t.activeHandle>-1)return tt(e,t.activeHandle)},nodeViews:{}}});return i}class He{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(e){let t=this,n=e.getMeta(Ue);if(n&&null!=n.setHandle)return new He(n.setHandle,null);if(n&&void 0!==n.setDragging)return new He(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){let n=e.mapping.map(t.activeHandle,-1);O(e.doc.resolve(n))||(n=null),t=new He(n,t.dragging)}return t}}function $e(e,t,n,r,i){let o=Ue.getState(e.state);if(!o.dragging){let r=Ge(t.target),a=-1;if(r){let{left:i,right:o}=r.getBoundingClientRect();t.clientX-i<=n?a=Ye(e,t,"left"):o-t.clientX<=n&&(a=Ye(e,t,"right"))}if(a!=o.activeHandle){if(!i&&-1!==a){let t=e.state.doc.resolve(a),n=t.node(-1),r=h.get(n),i=t.start(-1),o=r.colCount(t.pos-i)+t.nodeAfter.attrs.colspan-1;if(o==r.width-1)return}Je(e,a)}}}function Ve(e){let t=Ue.getState(e.state);t.activeHandle>-1&&!t.dragging&&Je(e,-1)}function We(e,t,n){let r=Ue.getState(e.state);if(-1==r.activeHandle||r.dragging)return!1;let i=e.state.doc.nodeAt(r.activeHandle),o=Xe(e,r.activeHandle,i.attrs);function a(t){window.removeEventListener("mouseup",a),window.removeEventListener("mousemove",s);let r=Ue.getState(e.state);r.dragging&&(Ze(e,r.activeHandle,Ke(r.dragging,t,n)),e.dispatch(e.state.tr.setMeta(Ue,{setDragging:null})))}function s(t){if(!t.which)return a(t);let r=Ue.getState(e.state),i=Ke(r.dragging,t,n);Qe(e,r.activeHandle,i,n)}return e.dispatch(e.state.tr.setMeta(Ue,{setDragging:{startX:t.clientX,startWidth:o}})),window.addEventListener("mouseup",a),window.addEventListener("mousemove",s),t.preventDefault(),!0}function Xe(e,t,{colspan:n,colwidth:r}){let i=r&&r[r.length-1];if(i)return i;let o=e.domAtPos(t),a=o.node.childNodes[o.offset],s=a.offsetWidth,u=n;if(r)for(let l=0;l<n;l++)r[l]&&(s-=r[l],u--);return s/u}function Ge(e){while(e&&"TD"!=e.nodeName&&"TH"!=e.nodeName)e=e.classList.contains("ProseMirror")?null:e.parentNode;return e}function Ye(e,t,n){let r=e.posAtCoords({left:t.clientX,top:t.clientY});if(!r)return-1;let{pos:i}=r,o=x(e.state.doc.resolve(i));if(!o)return-1;if("right"==n)return o.pos;let a=h.get(o.node(-1)),s=o.start(-1),u=a.map.indexOf(o.pos-s);return u%a.width==0?-1:s+a.map[u-1]}function Ke(e,t,n){let r=t.clientX-e.startX;return Math.max(n,e.startWidth+r)}function Je(e,t){e.dispatch(e.state.tr.setMeta(Ue,{setHandle:t}))}function Ze(e,t,n){let r=e.state.doc.resolve(t),i=r.node(-1),o=h.get(i),a=r.start(-1),s=o.colCount(r.pos-a)+r.nodeAfter.attrs.colspan-1,u=e.state.tr;for(let l=0;l<o.height;l++){let e=l*o.width+s;if(l&&o.map[e]==o.map[e-o.width])continue;let t=o.map[e],{attrs:r}=i.nodeAt(t),c=1==r.colspan?0:s-o.colCount(t);if(r.colwidth&&r.colwidth[c]==n)continue;let f=r.colwidth?r.colwidth.slice():et(r.colspan);f[c]=n,u.setNodeMarkup(a+t,null,P(r,"colwidth",f))}u.docChanged&&e.dispatch(u)}function Qe(e,t,n,r){let i=e.state.doc.resolve(t),o=i.node(-1),a=i.start(-1),s=h.get(o).colCount(i.pos-a)+i.nodeAfter.attrs.colspan-1,u=e.domAtPos(i.start(-1)).node;while("TABLE"!=u.nodeName)u=u.parentNode;Be(o,u.firstChild,u,r,s,n)}function et(e){let t=[];for(let n=0;n<e;n++)t.push(0);return t}function tt(e,t){let n=[],r=e.doc.resolve(t),i=r.node(-1),a=h.get(i),s=r.start(-1),u=a.colCount(r.pos-s)+r.nodeAfter.attrs.colspan;for(let l=0;l<a.height;l++){let e=u+l*a.width-1;if((u==a.width||a.map[e]!=a.map[e+1])&&(0==l||a.map[e-1]!=a.map[e-1-a.width])){let t=a.map[e],r=s+t+i.nodeAt(t).nodeSize-1,u=document.createElement("div");u.className="column-resize-handle",n.push(o["a"].widget(r,u))}}return o["b"].create(e.doc,n)}function nt({allowTableNodeSelection:e=!1}={}){return new u["d"]({key:_,state:{init(){return null},apply(e,t){let n=e.getMeta(_);if(null!=n)return-1==n?null:n;if(null==t||!e.docChanged)return t;let{deleted:r,pos:i}=e.mapping.mapResult(t);return r?null:i}},props:{decorations:F,handleDOMEvents:{mousedown:ie},createSelectionBetween(e){if(null!=_.getState(e.state))return e.state.selection},handleTripleClick:ne,handleKeyDown:J,handlePaste:re},appendTransaction(t,n,r){return U(r,ce(r,n),e)}})}new u["e"]("collab");var rt=200,it=function(){};it.prototype.append=function(e){return e.length?(e=it.from(e),!this.length&&e||e.length<rt&&this.leafAppend(e)||this.length<rt&&e.leafPrepend(this)||this.appendInner(e)):this},it.prototype.prepend=function(e){return e.length?it.from(e).append(this):this},it.prototype.appendInner=function(e){return new at(this,e)},it.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?it.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},it.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},it.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},it.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach((function(t,n){return r.push(e(t,n))}),t,n),r},it.from=function(e){return e instanceof it?e:e&&e.length?new ot(e):it.empty};var ot=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(!1===e(this.values[i],r+i))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(!1===e(this.values[i],r+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=rt)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=rt)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(it);it.empty=new ot([]);var at=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;return!(t<i&&!1===this.left.forEachInner(e,t,Math.min(n,i),r))&&(!(n>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;return!(t>i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i))&&(!(n<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),n,r))&&void 0)},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(it),st=it,ut=st,lt=500,ct=function(e,t){this.items=e,this.eventCount=t};function ft(e,t){var n;return e.forEach((function(e,r){if(e.selection&&0==t--)return n=r,!1})),e.slice(n)}ct.prototype.popEvent=function(e,t){var n=this;if(0==this.eventCount)return null;for(var r,i,o=this.items.length;;o--){var a=this.items.get(o-1);if(a.selection){--o;break}}t&&(r=this.remapping(o,this.items.length),i=r.maps.length);var s,u,l=e.tr,c=[],f=[];return this.items.forEach((function(e,t){if(!e.step)return r||(r=n.remapping(o,t+1),i=r.maps.length),i--,void f.push(e);if(r){f.push(new dt(e.map));var a,d=e.step.map(r.slice(i));d&&l.maybeStep(d).doc&&(a=l.mapping.maps[l.mapping.maps.length-1],c.push(new dt(a,null,null,c.length+f.length))),i--,a&&r.appendMap(a,i)}else l.maybeStep(e.step);return e.selection?(s=r?e.selection.map(r.slice(i)):e.selection,u=new ct(n.items.slice(0,o).append(f.reverse().concat(c)),n.eventCount-1),!1):void 0}),this.items.length,0),{remaining:u,transform:l,selection:s}},ct.prototype.addTransform=function(e,t,n,r){for(var i=[],o=this.eventCount,a=this.items,s=!r&&a.length?a.get(a.length-1):null,u=0;u<e.steps.length;u++){var l=e.steps[u].invert(e.docs[u]),c=new dt(e.mapping.maps[u],l,t),f=void 0;(f=s&&s.merge(c))&&(c=f,u?i.pop():a=a.slice(0,a.length-1)),i.push(c),t&&(o++,t=null),r||(s=c)}var d=o-n.depth;return d>pt&&(a=ft(a,d),o-=d),new ct(a.append(i),o)},ct.prototype.remapping=function(e,t){var n=new z["a"];return this.items.forEach((function(t,r){var i=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:null;n.appendMap(t.map,i)}),e,t),n},ct.prototype.addMaps=function(e){return 0==this.eventCount?this:new ct(this.items.append(e.map((function(e){return new dt(e)}))),this.eventCount)},ct.prototype.rebased=function(e,t){if(!this.eventCount)return this;var n=[],r=Math.max(0,this.items.length-t),i=e.mapping,o=e.steps.length,a=this.eventCount;this.items.forEach((function(e){e.selection&&a--}),r);var s=t;this.items.forEach((function(t){var r=i.getMirror(--s);if(null!=r){o=Math.min(o,r);var u=i.maps[r];if(t.step){var l=e.steps[r].invert(e.docs[r]),c=t.selection&&t.selection.map(i.slice(s+1,r));c&&a++,n.push(new dt(u,l,c))}else n.push(new dt(u))}}),r);for(var u=[],l=t;l<o;l++)u.push(new dt(i.maps[l]));var c=this.items.slice(0,r).append(u).append(n),f=new ct(c,a);return f.emptyItemCount()>lt&&(f=f.compress(this.items.length-n.length)),f},ct.prototype.emptyItemCount=function(){var e=0;return this.items.forEach((function(t){t.step||e++})),e},ct.prototype.compress=function(e){void 0===e&&(e=this.items.length);var t=this.remapping(0,e),n=t.maps.length,r=[],i=0;return this.items.forEach((function(o,a){if(a>=e)r.push(o),o.selection&&i++;else if(o.step){var s=o.step.map(t.slice(n)),u=s&&s.getMap();if(n--,u&&t.appendMap(u,n),s){var l=o.selection&&o.selection.map(t.slice(n));l&&i++;var c,f=new dt(u.invert(),s,l),d=r.length-1;(c=r.length&&r[d].merge(f))?r[d]=c:r.push(f)}}else o.map&&n--}),this.items.length,0),new ct(ut.from(r.reverse()),i)},ct.empty=new ct(ut.empty,0);var dt=function(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r};dt.prototype.merge=function(e){if(this.step&&e.step&&!e.selection){var t=e.step.merge(this.step);if(t)return new dt(t.getMap().invert(),t,this.selection)}};var ht=function(e,t,n,r){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r},pt=20;function mt(e,t,n,r){var i,o=n.getMeta(xt);if(o)return o.historyState;n.getMeta(St)&&(e=new ht(e.done,e.undone,null,0));var a=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(a&&a.getMeta(xt))return a.getMeta(xt).redo?new ht(e.done.addTransform(n,null,r,_t(t)),e.undone,vt(n.mapping.maps[n.steps.length-1]),e.prevTime):new ht(e.done,e.undone.addTransform(n,null,r,_t(t)),null,e.prevTime);if(!1===n.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))return(i=n.getMeta("rebased"))?new ht(e.done.rebased(n,i),e.undone.rebased(n,i),yt(e.prevRanges,n.mapping),e.prevTime):new ht(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),yt(e.prevRanges,n.mapping),e.prevTime);var s=0==e.prevTime||!a&&(e.prevTime<(n.time||0)-r.newGroupDelay||!gt(n,e.prevRanges)),u=a?yt(e.prevRanges,n.mapping):vt(n.mapping.maps[n.steps.length-1]);return new ht(e.done.addTransform(n,s?t.selection.getBookmark():null,r,_t(t)),ct.empty,u,n.time)}function gt(e,t){if(!t)return!1;if(!e.docChanged)return!0;var n=!1;return e.mapping.maps[0].forEach((function(e,r){for(var i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)})),n}function vt(e){var t=[];return e.forEach((function(e,n,r,i){return t.push(r,i)})),t}function yt(e,t){if(!e)return null;for(var n=[],r=0;r<e.length;r+=2){var i=t.map(e[r],1),o=t.map(e[r+1],-1);i<=o&&n.push(i,o)}return n}function bt(e,t,n,r){var i=_t(t),o=xt.get(t).spec.config,a=(r?e.undone:e.done).popEvent(t,i);if(a){var s=a.selection.resolve(a.transform.doc),u=(r?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),o,i),l=new ht(r?u:a.remaining,r?a.remaining:u,null,0);n(a.transform.setSelection(s).setMeta(xt,{redo:r,historyState:l}).scrollIntoView())}}var qt=!1,wt=null;function _t(e){var t=e.plugins;if(wt!=t){qt=!1,wt=t;for(var n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){qt=!0;break}}return qt}var xt=new u["e"]("history"),St=new u["e"]("closeHistory");function kt(e){return e={depth:e&&e.depth||100,newGroupDelay:e&&e.newGroupDelay||500},new u["d"]({key:xt,state:{init:function(){return new ht(ct.empty,ct.empty,null,0)},apply:function(t,n,r){return mt(n,r,t,e)}},config:e})}function Ct(e,t){var n=xt.getState(e);return!(!n||0==n.done.eventCount)&&(t&&bt(n,e,t,!1),!0)}function Et(e,t){var n=xt.getState(e);return!(!n||0==n.undone.eventCount)&&(t&&bt(n,e,t,!0),!0)}function Ot(e){var t=xt.getState(e);return t?t.done.eventCount:0}function At(e){var t=xt.getState(e);return t?t.undone.eventCount:0}
+/*!
+ * tiptap-extensions v1.35.1
+ * (c) 2021 überdosis GbR (limited liability)
+ * @license MIT
+ */class Dt extends r["f"]{get name(){return"blockquote"}get schema(){return{content:"block*",group:"block",defining:!0,draggable:!1,parseDOM:[{tag:"blockquote"}],toDOM:()=>["blockquote",0]}}commands({type:e}){return()=>Object(i["s"])(e)}keys({type:e}){return{"Ctrl->":Object(i["s"])(e)}}inputRules({type:e}){return[Object(i["u"])(/^\s*>\s$/,e)]}}class Tt extends r["f"]{get name(){return"bullet_list"}get schema(){return{content:"list_item+",group:"block",parseDOM:[{tag:"ul"}],toDOM:()=>["ul",0]}}commands({type:e,schema:t}){return()=>Object(i["q"])(e,t.nodes.list_item)}keys({type:e,schema:t}){return{"Shift-Ctrl-8":Object(i["q"])(e,t.nodes.list_item)}}inputRules({type:e}){return[Object(i["u"])(/^\s*([-+*])\s$/,e)]}}class Pt extends r["f"]{get name(){return"code_block"}get schema(){return{content:"text*",marks:"",group:"block",code:!0,defining:!0,draggable:!1,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM:()=>["pre",["code",0]]}}commands({type:e,schema:t}){return()=>Object(i["p"])(e,t.nodes.paragraph)}keys({type:e}){return{"Shift-Ctrl-\\":Object(i["k"])(e)}}inputRules({type:e}){return[Object(i["o"])(/^```$/,e)]}}r["f"];class Mt extends r["f"]{get name(){return"hard_break"}get schema(){return{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]}}commands({type:e}){return()=>Object(i["a"])(i["b"],(t,n)=>(n(t.tr.replaceSelectionWith(e.create()).scrollIntoView()),!0))}keys({type:e}){const t=Object(i["a"])(i["b"],(t,n)=>(n(t.tr.replaceSelectionWith(e.create()).scrollIntoView()),!0));return{"Mod-Enter":t,"Shift-Enter":t}}}class Nt extends r["f"]{get name(){return"heading"}get defaultOptions(){return{levels:[1,2,3,4,5,6]}}get schema(){return{attrs:{level:{default:1}},content:"inline*",group:"block",defining:!0,draggable:!1,parseDOM:this.options.levels.map(e=>({tag:"h"+e,attrs:{level:e}})),toDOM:e=>["h"+e.attrs.level,0]}}commands({type:e,schema:t}){return n=>Object(i["p"])(e,t.nodes.paragraph,n)}keys({type:e}){return this.options.levels.reduce((t,n)=>({...t,["Shift-Ctrl-"+n]:Object(i["k"])(e,{level:n})}),{})}inputRules({type:e}){return this.options.levels.map(t=>Object(i["o"])(new RegExp(`^(#{1,${t}})\\s$`),e,()=>({level:t})))}}r["f"];r["f"];class It extends r["f"]{get name(){return"list_item"}get schema(){return{content:"paragraph block*",defining:!0,draggable:!1,parseDOM:[{tag:"li"}],toDOM:()=>["li",0]}}keys({type:e}){return{Enter:Object(i["m"])(e),Tab:Object(i["l"])(e),"Shift-Tab":Object(i["d"])(e)}}}r["f"];class Rt extends r["f"]{get name(){return"ordered_list"}get schema(){return{attrs:{order:{default:1}},content:"list_item+",group:"block",parseDOM:[{tag:"ol",getAttrs:e=>({order:e.hasAttribute("start")?+e.getAttribute("start"):1})}],toDOM:e=>1===e.attrs.order?["ol",0]:["ol",{start:e.attrs.order},0]}}commands({type:e,schema:t}){return()=>Object(i["q"])(e,t.nodes.list_item)}keys({type:e,schema:t}){return{"Shift-Ctrl-9":Object(i["q"])(e,t.nodes.list_item)}}inputRules({type:e}){return[Object(i["u"])(/^(\d+)\.\s$/,e,e=>({order:+e[1]}),(e,t)=>t.childCount+t.attrs.order===+e[1])]}}var jt=q({tableGroup:"block",cellContent:"block+",cellAttributes:{background:{default:null,getFromDOM(e){return e.style.backgroundColor||null},setDOMAttr(e,t){if(e){const n={style:`${t.style||""}background-color: ${e};`};Object.assign(t,n)}}}}});class Ft extends r["f"]{get name(){return"table"}get defaultOptions(){return{resizable:!1}}get schema(){return jt.table}commands({schema:e}){return{createTable:({rowsCount:t,colsCount:n,withHeaderRow:r})=>(i,o)=>{const s=i.tr.selection.anchor+1,l=Object(a["a"])(e,t,n,r),c=i.tr.replaceSelectionWith(l).scrollIntoView(),f=c.doc.resolve(s);c.setSelection(u["h"].near(f)),o(c)},addColumnBefore:()=>pe,addColumnAfter:()=>me,deleteColumn:()=>ve,addRowBefore:()=>qe,addRowAfter:()=>we,deleteRow:()=>xe,deleteTable:()=>Fe,toggleCellMerge:()=>(e,t)=>{Ce(e,t)||Ee(e,t)},mergeCells:()=>Ce,splitCell:()=>Ee,toggleHeaderColumn:()=>Ne,toggleHeaderRow:()=>Me,toggleHeaderCell:()=>Ie,setCellAttr:({name:e,value:t})=>Ae(e,t),fixTables:()=>ce}}keys(){return{Tab:je(1),"Shift-Tab":je(-1)}}get plugins(){return[...this.options.resizable?[ze()]:[],nt()]}}class Lt extends r["f"]{get name(){return"table_header"}get schema(){return jt.table_header}}class Bt extends r["f"]{get name(){return"table_cell"}get schema(){return jt.table_cell}}class Ut extends r["f"]{get name(){return"table_row"}get schema(){return jt.table_row}}r["f"];r["f"];class zt extends r["e"]{get name(){return"bold"}get schema(){return{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM:()=>["strong",0]}}keys({type:e}){return{"Mod-b":Object(i["r"])(e)}}commands({type:e}){return()=>Object(i["r"])(e)}inputRules({type:e}){return[Object(i["e"])(/(?:\*\*|__)([^*_]+)(?:\*\*|__)$/,e)]}pasteRules({type:e}){return[Object(i["f"])(/(?:\*\*|__)([^*_]+)(?:\*\*|__)/g,e)]}}class Ht extends r["e"]{get name(){return"code"}get schema(){return{excludes:"_",parseDOM:[{tag:"code"}],toDOM:()=>["code",0]}}keys({type:e}){return{"Mod-`":Object(i["r"])(e)}}commands({type:e}){return()=>Object(i["r"])(e)}inputRules({type:e}){return[Object(i["e"])(/(?:`)([^`]+)(?:`)$/,e)]}pasteRules({type:e}){return[Object(i["f"])(/(?:`)([^`]+)(?:`)/g,e)]}}class $t extends r["e"]{get name(){return"italic"}get schema(){return{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"}],toDOM:()=>["em",0]}}keys({type:e}){return{"Mod-i":Object(i["r"])(e)}}commands({type:e}){return()=>Object(i["r"])(e)}inputRules({type:e}){return[Object(i["e"])(/(?:^|[^_])(_([^_]+)_)$/,e),Object(i["e"])(/(?:^|[^*])(\*([^*]+)\*)$/,e)]}pasteRules({type:e}){return[Object(i["f"])(/_([^_]+)_/g,e),Object(i["f"])(/\*([^*]+)\*/g,e)]}}class Vt extends r["e"]{get name(){return"link"}get defaultOptions(){return{openOnClick:!0,target:null}}get schema(){return{attrs:{href:{default:null},target:{default:null}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>({href:e.getAttribute("href"),target:e.getAttribute("target")})}],toDOM:e=>["a",{...e.attrs,rel:"noopener noreferrer nofollow",target:e.attrs.target||this.options.target},0]}}commands({type:e}){return t=>t.href?Object(i["t"])(e,t):Object(i["i"])(e)}pasteRules({type:e}){return[Object(i["h"])(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z]{2,}\b([-a-zA-Z0-9@:%_+.~#?&//=,()!]*)/gi,e,e=>({href:e}))]}get plugins(){return this.options.openOnClick?[new r["g"]({props:{handleClick:(e,t,n)=>{const{schema:r}=e.state,i=Object(a["d"])(e.state,r.marks.link);i.href&&n.target instanceof HTMLAnchorElement&&(n.stopPropagation(),window.open(i.href,i.target))}}})]:[]}}class Wt extends r["e"]{get name(){return"strike"}get schema(){return{parseDOM:[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",getAttrs:e=>"line-through"===e}],toDOM:()=>["s",0]}}keys({type:e}){return{"Mod-d":Object(i["r"])(e)}}commands({type:e}){return()=>Object(i["r"])(e)}inputRules({type:e}){return[Object(i["e"])(/~([^~]+)~$/,e)]}pasteRules({type:e}){return[Object(i["f"])(/~([^~]+)~/g,e)]}}class Xt extends r["e"]{get name(){return"underline"}get schema(){return{parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:e=>"underline"===e}],toDOM:()=>["u",0]}}keys({type:e}){return{"Mod-u":Object(i["r"])(e)}}commands({type:e}){return()=>Object(i["r"])(e)}}r["d"];r["d"];class Gt extends r["d"]{get name(){return"history"}get defaultOptions(){return{depth:"",newGroupDelay:""}}keys(){const e={"Mod-z":Ct,"Mod-y":Et,"Shift-Mod-z":Et,"Mod-я":Ct,"Shift-Mod-я":Et};return e}get plugins(){return[kt({depth:this.options.depth,newGroupDelay:this.options.newGroupDelay})]}commands(){return{undo:()=>Ct,redo:()=>Et,undoDepth:()=>Ot,redoDepth:()=>At}}}class Yt extends r["d"]{get name(){return"placeholder"}get defaultOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",emptyNodeText:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0}}get plugins(){return[new r["g"]({props:{decorations:({doc:e,plugins:t,selection:n})=>{const r=t.find(e=>e.key.startsWith("editable$")),i=r.props.editable(),a=i||!this.options.showOnlyWhenEditable,{anchor:s}=n,u=[],l=0===e.textContent.length;return!!a&&(e.descendants((e,t)=>{const n=s>=t&&s<=t+e.nodeSize,r=0===e.content.size;if((n||!this.options.showOnlyCurrent)&&r){const n=[this.options.emptyNodeClass];l&&n.push(this.options.emptyEditorClass);const r=o["a"].node(t,t+e.nodeSize,{class:n.join(" "),"data-empty-text":"function"===typeof this.options.emptyNodeText?this.options.emptyNodeText(e):this.options.emptyNodeText});u.push(r)}return!1}),o["b"].create(e,u))}}})]}}r["d"];r["d"]},f2d3:function(e,t,n){var r=n("29d0"),i=n("9781");e.exports={distanceInWords:r(),format:i()}},f3c1:function(e,t){var n=800,r=16,i=Date.now;function o(e){var t=0,o=0;return function(){var a=i(),s=r-(a-o);if(o=a,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}e.exports=o},f4d6:function(e,t,n){var r=n("ffd6"),i=1/0;function o(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}e.exports=o},f608:function(e,t,n){var r=n("6747"),i=n("ffd6"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function s(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}e.exports=s},f6b4:function(e,t,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},f80c:function(e,t,n){
+/* flatpickr v4.3.2, @license MIT */
+(function(e,n){n(t)})(0,(function(e){"use strict";var t="undefined"!==typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"],longhand:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},months:{shorthand:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],longhand:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" - ",weekAbbreviation:"Hf",scrollTitle:"Artırmak için kaydırın",toggleTitle:"Aç/Kapa",amPM:["ÖÖ","ÖS"]};t.l10ns.tr=n;var r=t.l10ns;e.Turkish=n,e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}))},f8af:function(e,t,n){var r=n("2474");function i(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}e.exports=i},f909:function(e,t,n){var r=n("7e64"),i=n("b760"),o=n("72af"),a=n("4f50"),s=n("1a8c"),u=n("9934"),l=n("8adb");function c(e,t,n,f,d){e!==t&&o(t,(function(o,u){if(d||(d=new r),s(o))a(e,t,u,n,c,f,d);else{var h=f?f(l(e,u),o,u+"",e,t,d):void 0;void 0===h&&(h=o),i(e,u,h)}}),u)}e.exports=c},f95e:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return f}));var r=n("65e8"),i=n("2eae"),o=function(e,t){this.match=e,this.handler="string"==typeof t?a(t):t};function a(e){return function(t,n,r,i){var o=e;if(n[1]){var a=n[0].lastIndexOf(n[1]);o+=n[0].slice(a+n[1].length),r+=a;var s=r-i;s>0&&(o=n[0].slice(a-s,a)+o,r=i)}return t.tr.insertText(o,r,i)}}var s=500;function u(e){var t=e.rules,n=new r["d"]({state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(this);return n||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:function(e,r,i,o){return l(e,r,i,o,t,n)},handleDOMEvents:{compositionend:function(e){setTimeout((function(){var r=e.state.selection,i=r.$cursor;i&&l(e,i.pos,i.pos,"",t,n)}))}}},isInputRules:!0});return n}function l(e,t,n,r,i,o){if(e.composing)return!1;var a=e.state,u=a.doc.resolve(t);if(u.parent.type.spec.code)return!1;for(var l=u.parent.textBetween(Math.max(0,u.parentOffset-s),u.parentOffset,null,"")+r,c=0;c<i.length;c++){var f=i[c].match.exec(l),d=f&&i[c].handler(a,f,t-(f[0].length-r.length),n);if(d)return e.dispatch(d.setMeta(o,{transform:d,from:t,to:n,text:r})),!0}return!1}function c(e,t){for(var n=e.plugins,r=0;r<n.length;r++){var i=n[r],o=void 0;if(i.spec.isInputRules&&(o=i.getState(e))){if(t){for(var a=e.tr,s=o.transform,u=s.steps.length-1;u>=0;u--)a.step(s.steps[u].invert(s.docs[u]));if(o.text){var l=a.doc.resolve(o.from).marks();a.replaceWith(o.from,o.to,e.schema.text(o.text,l))}else a.delete(o.from,o.to);t(a)}return!0}}return!1}new o(/--$/,"—"),new o(/\.\.\.$/,"…"),new o(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),new o(/"$/,"”"),new o(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),new o(/'$/,"’");function f(e,t,n,r){return new o(e,(function(e,o,a,s){var u=n instanceof Function?n(o):n,l=e.tr.delete(a,s),c=l.doc.resolve(a),f=c.blockRange(),d=f&&Object(i["i"])(f,t,u);if(!d)return null;l.wrap(f,d);var h=l.doc.resolve(a-1).nodeBefore;return h&&h.type==t&&Object(i["f"])(l.doc,a-1)&&(!r||r(o,h))&&l.join(a-1),l}))}function d(e,t,n){return new o(e,(function(e,r,i,o){var a=e.doc.resolve(i),s=n instanceof Function?n(r):n;return a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),t)?e.tr.delete(i,o).setBlockType(i,i,t,s):null}))}},f9ce:function(e,t,n){var r=n("ef5d"),i=n("e3f8"),o=n("f608"),a=n("f4d6");function s(e){return o(e)?r(a(e)):i(e)}e.exports=s},fa21:function(e,t,n){var r=n("7530"),i=n("2dcb"),o=n("eac5");function a(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}e.exports=a},fba5:function(e,t,n){var r=n("cb5a");function i(e){return r(this.__data__,e)>-1}e.exports=i},ffd6:function(e,t,n){var r=n("3729"),i=n("1310"),o="[object Symbol]";function a(e){return"symbol"==typeof e||i(e)&&r(e)==o}e.exports=a}}]);
\ No newline at end of file