text: !function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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=367)}({14: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}},15:function(e,t){e.exports=Vue},16:function(e,t,n){"use strict";(function(e){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})(e)}function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=a(e);if(t){var o=a(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return r(this,n)}}function r(e,n){return!n||"object"!==t(n)&&"function"!=typeof n?o(e):n}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}var f=function(){function e(){c(this,e)}return d(e,[{key:"on",value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(e){this._callbacks=this._callbacks||{};var t=this._callbacks[e];if(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var o,a=s(t);try{for(a.s();!(o=a.n()).done;){var l=o.value;l.apply(this,i)}}catch(e){a.e(e)}finally{a.f()}}return this}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var i=0;i<n.length;i++){var r=n[i];if(r===t){n.splice(i,1);break}}return this}}]),e}(),p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}(a,e);var t=i(a);function a(e,n){var i,s,l;if(c(this,a),(i=t.call(this)).element=e,i.version=a.version,i.defaultOptions.previewTemplate=i.defaultOptions.previewTemplate.replace(/\n*/g,""),i.clickableElements=[],i.listeners=[],i.files=[],"string"==typeof i.element&&(i.element=document.querySelector(i.element)),!i.element||null==i.element.nodeType)throw new Error("Invalid dropzone element.");if(i.element.dropzone)throw new Error("Dropzone already attached.");a.instances.push(o(i)),i.element.dropzone=o(i);var u=null!=(l=a.optionsForElement(i.element))?l:{};if(i.options=a.extend({},i.defaultOptions,u,null!=n?n:{}),i.options.forceFallback||!a.isBrowserSupported())return r(i,i.options.fallback.call(o(i)));if(null==i.options.url&&(i.options.url=i.element.getAttribute("action")),!i.options.url)throw new Error("No URL provided.");if(i.options.acceptedFiles&&i.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(i.options.uploadMultiple&&i.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return i.options.acceptedMimeTypes&&(i.options.acceptedFiles=i.options.acceptedMimeTypes,delete i.options.acceptedMimeTypes),null!=i.options.renameFilename&&(i.options.renameFile=function(e){return i.options.renameFilename.call(o(i),e.name,e)}),"string"==typeof i.options.method&&(i.options.method=i.options.method.toUpperCase()),(s=i.getExistingFallback())&&s.parentNode&&s.parentNode.removeChild(s),!1!==i.options.previewsContainer&&(i.options.previewsContainer?i.previewsContainer=a.getElement(i.options.previewsContainer,"previewsContainer"):i.previewsContainer=i.element),i.options.clickable&&(!0===i.options.clickable?i.clickableElements=[i.element]:i.clickableElements=a.getElements(i.options.clickable,"clickable")),i.init(),i}return d(a,null,[{key:"initClass",value:function(){this.prototype.Emitter=f,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(e,t,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e;this.element.className="".concat(this.element.className," dz-browser-not-supported");var t,n=s(this.element.getElementsByTagName("div"));try{for(n.s();!(t=n.n()).done;){var i=t.value;if(/(^| )dz-message($| )/.test(i.className)){e=i,i.className="dz-message";break}}}catch(e){n.e(e)}finally{n.f()}e||(e=a.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var r=e.getElementsByTagName("span")[0];return r&&(null!=r.textContent?r.textContent=this.options.dictFallbackMessage:null!=r.innerText&&(r.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,i){var r={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},o=e.width/e.height;null==t&&null==n?(t=r.srcWidth,n=r.srcHeight):null==t?t=n*o:null==n&&(n=t/o);var a=(t=Math.min(t,r.srcWidth))/(n=Math.min(n,r.srcHeight));if(r.srcWidth>t||r.srcHeight>n)if("crop"===i)o>a?(r.srcHeight=e.height,r.srcWidth=r.srcHeight*a):(r.srcWidth=e.width,r.srcHeight=r.srcWidth/a);else{if("contain"!==i)throw new Error("Unknown resizeMethod '".concat(i,"'"));o>a?n=t/o:t=n*o}return r.srcX=(e.width-r.srcWidth)/2,r.srcY=(e.height-r.srcHeight)/2,r.trgWidth=t,r.trgHeight=n,r},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'<div class="dz-preview dz-file-preview">\n  <div class="dz-image"><img data-dz-thumbnail /></div>\n  <div class="dz-details">\n    <div class="dz-size"><span data-dz-size></span></div>\n    <div class="dz-filename"><span data-dz-name></span></div>\n  </div>\n  <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n  <div class="dz-error-message"><span data-dz-errormessage></span></div>\n  <div class="dz-success-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n      <title>Check</title>\n      <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n        <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path>\n      </g>\n    </svg>\n  </div>\n  <div class="dz-error-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n      <title>Error</title>\n      <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n        <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n          <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path>\n        </g>\n      </g>\n    </svg>\n  </div>\n</div>',drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:function(e){},dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:function(e){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var t=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){e.previewElement=a.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);var n,i=s(e.previewElement.querySelectorAll("[data-dz-name]"));try{for(i.s();!(n=i.n()).done;){var r=n.value;r.textContent=e.name}}catch(e){i.e(e)}finally{i.f()}var o,l=s(e.previewElement.querySelectorAll("[data-dz-size]"));try{for(l.s();!(o=l.n()).done;)(r=o.value).innerHTML=this.filesize(e.size)}catch(e){l.e(e)}finally{l.f()}this.options.addRemoveLinks&&(e._removeLink=a.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),e.previewElement.appendChild(e._removeLink));var c,u=function(n){return n.preventDefault(),n.stopPropagation(),e.status===a.UPLOADING?a.confirm(t.options.dictCancelUploadConfirmation,(function(){return t.removeFile(e)})):t.options.dictRemoveFileConfirmation?a.confirm(t.options.dictRemoveFileConfirmation,(function(){return t.removeFile(e)})):t.removeFile(e)},d=s(e.previewElement.querySelectorAll("[data-dz-remove]"));try{for(d.s();!(c=d.n()).done;){c.value.addEventListener("click",u)}}catch(e){d.e(e)}finally{d.f()}}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");var n,i=s(e.previewElement.querySelectorAll("[data-dz-thumbnail]"));try{for(i.s();!(n=i.n()).done;){var r=n.value;r.alt=e.name,r.src=t}}catch(e){i.e(e)}finally{i.f()}return setTimeout((function(){return e.previewElement.classList.add("dz-image-preview")}),1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"string"!=typeof t&&t.error&&(t=t.error);var n,i=s(e.previewElement.querySelectorAll("[data-dz-errormessage]"));try{for(i.s();!(n=i.n()).done;){n.value.textContent=t}}catch(e){i.e(e)}finally{i.f()}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,n){if(e.previewElement){var i,r=s(e.previewElement.querySelectorAll("[data-dz-uploadprogress]"));try{for(r.s();!(i=r.n()).done;){var o=i.value;"PROGRESS"===o.nodeName?o.value=t:o.style.width="".concat(t,"%")}}catch(e){r.e(e)}finally{r.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a=o[r];for(var s in a){var l=a[s];e[s]=l}}return e}}]),d(a,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(e){return e.accepted})).map((function(e){return e}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(e){return!e.accepted})).map((function(e){return e}))}},{key:"getFilesWithStatus",value:function(e){return this.files.filter((function(t){return t.status===e})).map((function(e){return e}))}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(a.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(a.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(a.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(e){return e.status===a.UPLOADING||e.status===a.QUEUED})).map((function(e){return e}))}},{key:"init",value:function(){var e=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(a.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){!function t(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null===e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!==e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!==e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",a.getElement(e.options.hiddenInputContainer,"hiddenInputContainer").appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",(function(){var n=e.hiddenFileInput.files;if(n.length){var i,r=s(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;e.addFile(o)}}catch(e){r.e(e)}finally{r.f()}}return e.emit("addedfiles",n),t()}))}()}this.URL=null!==window.URL?window.URL:window.webkitURL;var t,n=s(this.events);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.on(i,this.options[i])}}catch(e){n.e(e)}finally{n.f()}this.on("uploadprogress",(function(){return e.updateTotalUploadProgress()})),this.on("removedfile",(function(){return e.updateTotalUploadProgress()})),this.on("canceled",(function(t){return e.emit("complete",t)})),this.on("complete",(function(t){if(0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length)return setTimeout((function(){return e.emit("queuecomplete")}),0)}));var r=function(e){if(function(e){if(e.dataTransfer.types)for(var t=0;t<e.dataTransfer.types.length;t++)if("Files"===e.dataTransfer.types[t])return!0;return!1}(e))return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return e.emit("dragstart",t)},dragenter:function(t){return r(t),e.emit("dragenter",t)},dragover:function(t){var n;try{n=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",r(t),e.emit("dragover",t)},dragleave:function(t){return e.emit("dragleave",t)},drop:function(t){return r(t),e.drop(t)},dragend:function(t){return e.emit("dragend",t)}}}],this.clickableElements.forEach((function(t){return e.listeners.push({element:t,events:{click:function(n){return(t!==e.element||n.target===e.element||a.elementInside(n.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})})),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,a.instances.splice(a.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e,t=0,n=0;if(this.getActiveFiles().length){var i,r=s(this.getActiveFiles());try{for(r.s();!(i=r.n()).done;){var o=i.value;t+=o.upload.bytesSent,n+=o.upload.total}}catch(e){r.e(e)}finally{r.f()}e=100*t/n}else e=100;return this.emit("totaluploadprogress",e,n,t)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(e,"]"):"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e,t;if(e=this.getExistingFallback())return e;var n='<div class="dz-fallback">';this.options.dictFallbackText&&(n+="<p>".concat(this.options.dictFallbackText,"</p>")),n+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var i=a.createElement(n);return"FORM"!==this.element.tagName?(t=a.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>'))).appendChild(i):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:i}},{key:"getExistingFallback",value:function(){for(var e=function(e){var t,n=s(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(/(^| )fallback($| )/.test(i.className))return i}}catch(e){n.e(e)}finally{n.f()}},t=0,n=["div","form"];t<n.length;t++){var i,r=n[t];if(i=e(this.element.getElementsByTagName(r)))return i}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var i=e.events[n];t.push(e.element.addEventListener(n,i,!1))}return t}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var i=e.events[n];t.push(e.element.removeEventListener(n,i,!1))}return t}()}))}},{key:"disable",value:function(){var e=this;return this.clickableElements.forEach((function(e){return e.classList.remove("dz-clickable")})),this.removeEventListeners(),this.disabled=!0,this.files.map((function(t){return e.cancelUpload(t)}))}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach((function(e){return e.classList.add("dz-clickable")})),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,n="b";if(e>0){for(var i=["tb","gb","mb","kb","b"],r=0;r<i.length;r++){var o=i[r];if(e>=Math.pow(this.options.filesizeBase,4-r)/10){t=e/Math.pow(this.options.filesizeBase,4-r),n=o;break}}t=Math.round(10*t)/10}return"<strong>".concat(t,"</strong> ").concat(this.options.dictFileSizeUnits[n])}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);for(var t=[],n=0;n<e.dataTransfer.files.length;n++)t[n]=e.dataTransfer.files[n];if(t.length){var i=e.dataTransfer.items;i&&i.length&&null!=i[0].webkitGetAsEntry?this._addFilesFromItems(i):this.handleFiles(t)}this.emit("addedfiles",t)}}},{key:"paste",value:function(e){if(null!=(t=null!=e?e.clipboardData:void 0,n=function(e){return e.items},null!=t?n(t):void 0)){var t,n;this.emit("paste",e);var i=e.clipboardData.items;return i.length?this._addFilesFromItems(i):void 0}}},{key:"handleFiles",value:function(e){var t,n=s(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.addFile(i)}}catch(e){n.e(e)}finally{n.f()}}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){var n,i=[],r=s(e);try{for(r.s();!(n=r.n()).done;){var o,a=n.value;null!=a.webkitGetAsEntry&&(o=a.webkitGetAsEntry())?o.isFile?i.push(t.addFile(a.getAsFile())):o.isDirectory?i.push(t._addFilesFromDirectory(o,o.name)):i.push(void 0):null!=a.getAsFile&&(null==a.kind||"file"===a.kind)?i.push(t.addFile(a.getAsFile())):i.push(void 0)}}catch(e){r.e(e)}finally{r.f()}return i}()}},{key:"_addFilesFromDirectory",value:function(e,t){var n=this,i=e.createReader(),r=function(e){return t=console,n="log",i=function(t){return t.log(e)},null!=t&&"function"==typeof t[n]?i(t,n):void 0;var t,n,i};return function e(){return i.readEntries((function(i){if(i.length>0){var r,o=s(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.isFile?a.file((function(e){if(!n.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath="".concat(t,"/").concat(e.name),n.addFile(e)})):a.isDirectory&&n._addFilesFromDirectory(a,"".concat(t,"/").concat(a.name))}}catch(e){o.e(e)}finally{o.f()}e()}return null}),r)}()}},{key:"accept",value:function(e,t){this.options.maxFilesize&&e.size>1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):a.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}},{key:"addFile",value:function(e){var t=this;e.upload={uuid:a.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e)},this.files.push(e),e.status=a.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,(function(n){n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(e){var t,n=s(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.enqueueFile(i)}}catch(e){n.e(e)}finally{n.f()}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==a.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=a.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return t.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout((function(){return t._processThumbnailQueue()}),0)}},{key:"_processThumbnailQueue",value:function(){var e=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var t=this._thumbnailQueue.shift();return this.createThumbnail(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(n){return e.emit("thumbnail",t,n),e._processingThumbnail=!1,e._processThumbnailQueue()}))}}},{key:"removeFile",value:function(e){if(e.status===a.UPLOADING&&this.cancelUpload(e),this.files=h(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);var t,n=s(this.files.slice());try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.status!==a.UPLOADING||e)&&this.removeFile(i)}}catch(e){n.e(e)}finally{n.f()}return null}},{key:"resizeImage",value:function(e,t,n,i,r){var o=this;return this.createThumbnail(e,t,n,i,!0,(function(t,n){if(null==n)return r(e);var i=o.options.resizeMimeType;null==i&&(i=e.type);var s=n.toDataURL(i,o.options.resizeQuality);return"image/jpeg"!==i&&"image/jpg"!==i||(s=g.restore(e.dataURL,s)),r(a.dataURItoBlob(s))}))}},{key:"createThumbnail",value:function(e,t,n,i,r,o){var a=this,s=new FileReader;s.onload=function(){e.dataURL=s.result,"image/svg+xml"!==e.type?a.createThumbnailFromUrl(e,t,n,i,r,o):null!=o&&o(s.result)},s.readAsDataURL(e)}},{key:"displayExistingFile",value:function(e,t,n,i){var r=this,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(this.emit("addedfile",e),this.emit("complete",e),o){var a=function(t){r.emit("thumbnail",e,t),n&&n()};e.dataURL=t,this.createThumbnailFromUrl(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.resizeMethod,this.options.fixOrientation,a,i)}else this.emit("thumbnail",e,t),n&&n()}},{key:"createThumbnailFromUrl",value:function(e,t,n,i,r,o,a){var s=this,l=document.createElement("img");return a&&(l.crossOrigin=a),r="from-image"!=getComputedStyle(document.body).imageOrientation&&r,l.onload=function(){var a=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&r&&(a=function(e){return EXIF.getData(l,(function(){return e(EXIF.getTag(this,"Orientation"))}))}),a((function(r){e.width=l.width,e.height=l.height;var a=s.options.resize.call(s,e,t,n,i),c=document.createElement("canvas"),u=c.getContext("2d");switch(c.width=a.trgWidth,c.height=a.trgHeight,r>4&&(c.width=a.trgHeight,c.height=a.trgWidth),r){case 2:u.translate(c.width,0),u.scale(-1,1);break;case 3:u.translate(c.width,c.height),u.rotate(Math.PI);break;case 4:u.translate(0,c.height),u.scale(1,-1);break;case 5:u.rotate(.5*Math.PI),u.scale(1,-1);break;case 6:u.rotate(.5*Math.PI),u.translate(0,-c.width);break;case 7:u.rotate(.5*Math.PI),u.translate(c.height,-c.width),u.scale(-1,1);break;case 8:u.rotate(-.5*Math.PI),u.translate(-c.height,0)}m(u,l,null!=a.srcX?a.srcX:0,null!=a.srcY?a.srcY:0,a.srcWidth,a.srcHeight,null!=a.trgX?a.trgX:0,null!=a.trgY?a.trgY:0,a.trgWidth,a.trgHeight);var d=c.toDataURL("image/png");if(null!=o)return o(d,c)}))},null!=o&&(l.onerror=o),l.src=e.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(t>=e)){var i=this.getQueuedFiles();if(i.length>0){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,e-t));for(;n<e;){if(!i.length)return;this.processFile(i.shift()),n++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){var t,n=s(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.processing=!0,i.status=a.UPLOADING,this.emit("processing",i)}}catch(e){n.e(e)}finally{n.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(e){return this.files.filter((function(t){return t.xhr===e})).map((function(e){return e}))}},{key:"cancelUpload",value:function(e){if(e.status===a.UPLOADING){var t,n=this._getFilesWithXhr(e.xhr),i=s(n);try{for(i.s();!(t=i.n()).done;){t.value.status=a.CANCELED}}catch(e){i.e(e)}finally{i.f()}void 0!==e.xhr&&e.xhr.abort();var r,o=s(n);try{for(o.s();!(r=o.n()).done;){var l=r.value;this.emit("canceled",l)}}catch(e){o.e(e)}finally{o.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",n)}else e.status!==a.ADDED&&e.status!==a.QUEUED||(e.status=a.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e.apply(this,n)}return e}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(e){var t=this;this._transformFiles(e,(function(n){if(t.options.chunking){var i=n[0];e[0].upload.chunked=t.options.chunking&&(t.options.forceChunking||i.size>t.options.chunkSize),e[0].upload.totalChunkCount=Math.ceil(i.size/t.options.chunkSize)}if(e[0].upload.chunked){var r=e[0],o=n[0];r.upload.chunks=[];var s=function(){for(var n=0;void 0!==r.upload.chunks[n];)n++;if(!(n>=r.upload.totalChunkCount)){0;var i=n*t.options.chunkSize,s=Math.min(i+t.options.chunkSize,o.size),l={name:t._getParamName(0),data:o.webkitSlice?o.webkitSlice(i,s):o.slice(i,s),filename:r.upload.filename,chunkIndex:n};r.upload.chunks[n]={file:r,index:n,dataBlock:l,status:a.UPLOADING,progress:0,retries:0},t._uploadData(e,[l])}};if(r.upload.finishedChunkUpload=function(n){var i=!0;n.status=a.SUCCESS,n.dataBlock=null,n.xhr=null;for(var o=0;o<r.upload.totalChunkCount;o++){if(void 0===r.upload.chunks[o])return s();r.upload.chunks[o].status!==a.SUCCESS&&(i=!1)}i&&t.options.chunksUploaded(r,(function(){t._finished(e,"",null)}))},t.options.parallelChunkUploads)for(var l=0;l<r.upload.totalChunkCount;l++)s();else s()}else{for(var c=[],u=0;u<e.length;u++)c[u]={name:t._getParamName(u),data:n[u],filename:e[u].upload.filename};t._uploadData(e,c)}}))}},{key:"_getChunk",value:function(e,t){for(var n=0;n<e.upload.totalChunkCount;n++)if(void 0!==e.upload.chunks[n]&&e.upload.chunks[n].xhr===t)return e.upload.chunks[n]}},{key:"_uploadData",value:function(e,t){var n,i=this,r=new XMLHttpRequest,o=s(e);try{for(o.s();!(n=o.n()).done;){n.value.xhr=r}}catch(e){o.e(e)}finally{o.f()}e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=r);var l=this.resolveOption(this.options.method,e),c=this.resolveOption(this.options.url,e);r.open(l,c,!0),r.timeout=this.resolveOption(this.options.timeout,e),r.withCredentials=!!this.options.withCredentials,r.onload=function(t){i._finishedUploading(e,r,t)},r.ontimeout=function(){i._handleUploadError(e,r,"Request timedout after ".concat(i.options.timeout/1e3," seconds"))},r.onerror=function(){i._handleUploadError(e,r)},(null!=r.upload?r.upload:r).onprogress=function(t){return i._updateFilesUploadProgress(e,r,t)};var u={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var d in this.options.headers&&a.extend(u,this.options.headers),u){var f=u[d];f&&r.setRequestHeader(d,f)}var p=new FormData;if(this.options.params){var h=this.options.params;for(var v in"function"==typeof h&&(h=h.call(this,e,r,e[0].upload.chunked?this._getChunk(e[0],r):null)),h){var m=h[v];if(Array.isArray(m))for(var g=0;g<m.length;g++)p.append(v,m[g]);else p.append(v,m)}}var y,b=s(e);try{for(b.s();!(y=b.n()).done;){var x=y.value;this.emit("sending",x,r,p)}}catch(e){b.e(e)}finally{b.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",e,r,p),this._addFormElementData(p);for(var w=0;w<t.length;w++){var E=t[w];p.append(E.name,E.data,E.filename)}this.submitRequest(r,p,e)}},{key:"_transformFiles",value:function(e,t){for(var n=this,i=[],r=0,o=function(o){n.options.transformFile.call(n,e[o],(function(n){i[o]=n,++r===e.length&&t(i)}))},a=0;a<e.length;a++)o(a)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName){var t,n=s(this.element.querySelectorAll("input, textarea, select, button"));try{for(n.s();!(t=n.n()).done;){var i=t.value,r=i.getAttribute("name"),o=i.getAttribute("type");if(o&&(o=o.toLowerCase()),null!=r)if("SELECT"===i.tagName&&i.hasAttribute("multiple")){var a,l=s(i.options);try{for(l.s();!(a=l.n()).done;){var c=a.value;c.selected&&e.append(r,c.value)}}catch(e){l.e(e)}finally{l.f()}}else(!o||"checkbox"!==o&&"radio"!==o||i.checked)&&e.append(r,i.value)}}catch(e){n.e(e)}finally{n.f()}}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){var i;if(void 0!==n){if(i=100*n.loaded/n.total,e[0].upload.chunked){var r=e[0],o=this._getChunk(r,t);o.progress=i,o.total=n.total,o.bytesSent=n.loaded;r.upload.progress=0,r.upload.total=0,r.upload.bytesSent=0;for(var a=0;a<r.upload.totalChunkCount;a++)void 0!==r.upload.chunks[a]&&void 0!==r.upload.chunks[a].progress&&(r.upload.progress+=r.upload.chunks[a].progress,r.upload.total+=r.upload.chunks[a].total,r.upload.bytesSent+=r.upload.chunks[a].bytesSent);r.upload.progress=r.upload.progress/r.upload.totalChunkCount}else{var l,c=s(e);try{for(c.s();!(l=c.n()).done;){var u=l.value;u.upload.progress=i,u.upload.total=n.total,u.upload.bytesSent=n.loaded}}catch(e){c.e(e)}finally{c.f()}}var d,f=s(e);try{for(f.s();!(d=f.n()).done;){var p=d.value;this.emit("uploadprogress",p,p.upload.progress,p.upload.bytesSent)}}catch(e){f.e(e)}finally{f.f()}}else{var h=!0;i=100;var v,m=s(e);try{for(m.s();!(v=m.n()).done;){var g=v.value;100===g.upload.progress&&g.upload.bytesSent===g.upload.total||(h=!1),g.upload.progress=i,g.upload.bytesSent=g.upload.total}}catch(e){m.e(e)}finally{m.f()}if(h)return;var y,b=s(e);try{for(b.s();!(y=b.n()).done;){var x=y.value;this.emit("uploadprogress",x,i,x.upload.bytesSent)}}catch(e){b.e(e)}finally{b.f()}}}},{key:"_finishedUploading",value:function(e,t,n){var i;if(e[0].status!==a.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(i=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{i=JSON.parse(i)}catch(e){n=e,i="Invalid JSON response from server."}this._updateFilesUploadProgress(e),200<=t.status&&t.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],t)):this._finished(e,i,n):this._handleUploadError(e,t,i)}}},{key:"_handleUploadError",value:function(e,t,n){if(e[0].status!==a.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var i=this._getChunk(e[0],t);if(i.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[i.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(e,n||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}},{key:"submitRequest",value:function(e,t,n){e.send(t)}},{key:"_finished",value:function(e,t,n){var i,r=s(e);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.status=a.SUCCESS,this.emit("success",o,t,n),this.emit("complete",o)}}catch(e){r.e(e)}finally{r.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,t,n){var i,r=s(e);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.status=a.ERROR,this.emit("error",o,t,n),this.emit("complete",o)}}catch(e){r.e(e)}finally{r.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}}]),a}(f);p.initClass(),p.version="5.7.2",p.options={},p.optionsForElement=function(e){return e.getAttribute("id")?p.options[v(e.getAttribute("id"))]:void 0},p.instances=[],p.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},p.autoDiscover=!0,p.discover=function(){var e;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];var t=function(t){return function(){var n,i=[],r=s(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;/(^| )dropzone($| )/.test(o.className)?i.push(e.push(o)):i.push(void 0)}}catch(e){r.e(e)}finally{r.f()}return i}()};t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return function(){var t,n=[],i=s(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;!1!==p.optionsForElement(r)?n.push(new p(r)):n.push(void 0)}}catch(e){i.e(e)}finally{i.f()}return n}()},p.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],p.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a")){var t,n=s(p.blacklistedBrowsers);try{for(n.s();!(t=n.n()).done;){t.value.test(navigator.userAgent)&&(e=!1)}}catch(e){n.e(e)}finally{n.f()}}else e=!1;else e=!1;return e},p.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(t.length),r=new Uint8Array(i),o=0,a=t.length,s=0<=a;s?o<=a:o>=a;s?o++:o--)r[o]=t.charCodeAt(o);return new Blob([i],{type:n})};var h=function(e,t){return e.filter((function(e){return e!==t})).map((function(e){return e}))},v=function(e){return e.replace(/[\-_](\w)/g,(function(e){return e.charAt(1).toUpperCase()}))};p.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},p.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},p.getElement=function(e,t){var n;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `".concat(t,"` option provided. Please provide a CSS selector or a plain HTML element."));return n},p.getElements=function(e,t){var n,i;if(e instanceof Array){i=[];try{var r,o=s(e);try{for(o.s();!(r=o.n()).done;)n=r.value,i.push(this.getElement(n,t))}catch(e){o.e(e)}finally{o.f()}}catch(e){i=null}}else if("string"==typeof e){i=[];var a,l=s(document.querySelectorAll(e));try{for(l.s();!(a=l.n()).done;)n=a.value,i.push(n)}catch(e){l.e(e)}finally{l.f()}}else null!=e.nodeType&&(i=[e]);if(null==i||!i.length)throw new Error("Invalid `".concat(t,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return i},p.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},p.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");var n,i=e.type,r=i.replace(/\/.*$/,""),o=s(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("."===(a=a.trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0}else if(/\/\*$/.test(a)){if(r===a.replace(/\/.*$/,""))return!0}else if(i===a)return!0}}catch(e){o.e(e)}finally{o.f()}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each((function(){return new p(this,e)}))}),null!==e?e.exports=p:window.Dropzone=p,p.ADDED="added",p.QUEUED="queued",p.ACCEPTED=p.QUEUED,p.UPLOADING="uploading",p.PROCESSING=p.UPLOADING,p.CANCELED="canceled",p.ERROR="error",p.SUCCESS="success";var m=function(e,t,n,i,r,o,a,s,l,c){var u=function(e){e.naturalWidth;var t=e.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=t;var i=n.getContext("2d");i.drawImage(e,0,0);for(var r=i.getImageData(1,0,1,t).data,o=0,a=t,s=t;s>o;){0===r[4*(s-1)+3]?a=s:o=s,s=a+o>>1}var l=s/t;return 0===l?1:l}(t);return e.drawImage(t,n,i,r,o,a,s,l,c/u)},g=function(){function e(){c(this,e)}return d(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",n=void 0,i=void 0,r="",o=void 0,a=void 0,s=void 0,l="",c=0;o=(n=e[c++])>>2,a=(3&n)<<4|(i=e[c++])>>4,s=(15&i)<<2|(r=e[c++])>>6,l=63&r,isNaN(i)?s=l=64:isNaN(r)&&(l=64),t=t+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(l),n=i=r="",o=a=s=l="",c<e.length;);return t}},{key:"restore",value:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;var n=this.decode64(e.replace("data:image/jpeg;base64,","")),i=this.slice2Segments(n),r=this.exifManipulation(t,i);return"data:image/jpeg;base64,".concat(this.encode64(r))}},{key:"exifManipulation",value:function(e,t){var n=this.getExifArray(t),i=this.insertExif(e,n);return new Uint8Array(i)}},{key:"getExifArray",value:function(e){for(var t=void 0,n=0;n<e.length;){if(255===(t=e[n])[0]&225===t[1])return t;n++}return[]}},{key:"insertExif",value:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),i=this.decode64(n),r=i.indexOf(255,3),o=i.slice(0,r),a=i.slice(r),s=o;return s=(s=s.concat(t)).concat(a)}},{key:"slice2Segments",value:function(e){for(var t=0,n=[];;){if(255===e[t]&218===e[t+1])break;if(255===e[t]&216===e[t+1])t+=2;else{var i=t+(256*e[t+2]+e[t+3])+2,r=e.slice(t,i);n.push(r),t=i}if(t>e.length)break}return n}},{key:"decode64",value:function(e){var t=void 0,n=void 0,i="",r=void 0,o=void 0,a="",s=0,l=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");t=this.KEY_STR.indexOf(e.charAt(s++))<<2|(r=this.KEY_STR.indexOf(e.charAt(s++)))>>4,n=(15&r)<<4|(o=this.KEY_STR.indexOf(e.charAt(s++)))>>2,i=(3&o)<<6|(a=this.KEY_STR.indexOf(e.charAt(s++))),l.push(t),64!==o&&l.push(n),64!==a&&l.push(i),t=n=i="",r=o=a="",s<e.length;);return l}}]),e}();g.initClass();p._autoDiscoverFunction=function(){if(p.autoDiscover)return p.discover()},function(e,t){var n=!1,i=!0,r=e.document,o=r.documentElement,a=r.addEventListener?"addEventListener":"attachEvent",s=r.addEventListener?"removeEventListener":"detachEvent",l=r.addEventListener?"":"on",c=function i(o){if("readystatechange"!==o.type||"complete"===r.readyState)return("load"===o.type?e:r)[s](l+o.type,i,!1),!n&&(n=!0)?t.call(e,o.type||o):void 0};if("complete"!==r.readyState){if(r.createEventObject&&o.doScroll){try{i=!e.frameElement}catch(e){}i&&function e(){try{o.doScroll("left")}catch(t){return void setTimeout(e,50)}return c("poll")}()}r[a](l+"DOMContentLoaded",c,!1),r[a](l+"readystatechange",c,!1),e[a](l+"load",c,!1)}}(window,p._autoDiscoverFunction)}).call(this,n(14)(e))},192:function(e,t,n){"use strict";n(193),n(194)},193:function(e,t,n){(function(e){!function(e,t){"use strict";function n(e,n){var i=this;n=t.extend({},n),i.$element=e,i.options=n,ConcreteEvent.unsubscribe("SitemapDeleteRequestComplete"),ConcreteEvent.subscribe("SitemapDeleteRequestComplete",(function(e){i.hideLoader(),t.concreteAjax({dataType:"html",url:i.options.reloadUrl,method:"get",success:function(e){i.$element.replaceWith(e)},complete:function(){i.hideLoader()}})})),i.$element.on("click","div.ccm-pagination-wrapper a",(function(e){e.preventDefault(),i.showLoader(),window.scrollTo(0,0),t.concreteAjax({loader:!1,dataType:"html",url:t(this).attr("href"),method:"get",success:function(e){i.$element.replaceWith(e)},complete:function(){i.hideLoader()}})})),i.$element.find(".dialog-launch").dialog()}n.prototype={showLoader:function(){this.$element.find(".ccm-block-desktop-draft-list-for-me-loader").removeClass("hidden")},hideLoader:function(){this.$element.find(".ccm-block-desktop-draft-list-for-me-loader").addClass("hidden")}},t.fn.concreteDraftList=function(e){return t.each(t(this),(function(i,r){new n(t(this),e)}))},e.ConcreteDraftList=n}(e,jQuery)}).call(this,n(4))},194:function(e,t,n){(function(e){!function(e,t){"use strict";function n(e,n){var i=this;n=t.extend({},n),i.$element=e,i.options=n,i.$element.on("click","[data-notification-action=archive]",(function(e){e.preventDefault();var n=t(this).closest("div[data-notification-alert-id]"),r=n.attr("data-notification-alert-id"),o=n.attr("data-token");t.ajax({url:CCM_DISPATCHER_FILENAME+"/ccm/system/notification/alert/archive",dataType:"json",data:{naID:r,ccm_token:o},type:"post"}),n.queue((function(){n.addClass("animated fadeOut"),n.dequeue()})).delay(500).queue((function(){n.remove(),n.dequeue(),i.handleEmpty()}))})),i.$element.on("change","div[data-form=notification] select",(function(e){t(this).closest("form").ajaxSubmit({dataType:"html",beforeSubmit:function(){i.showLoader()},success:function(e){t("div[data-wrapper=desktop-waiting-for-me]").replaceWith(e)},complete:function(){i.hideLoader()}})})),i.$element.on("click","div.ccm-pagination-wrapper a",(function(e){e.preventDefault(),i.showLoader(),window.scrollTo(0,0),t.concreteAjax({loader:!1,dataType:"html",url:t(this).attr("href"),method:"get",success:function(e){t("div[data-wrapper=desktop-waiting-for-me]").replaceWith(e)},complete:function(){i.hideLoader()}})})),i.$element.on("click","a[data-workflow-task]",(function(e){var n=t(this).attr("data-workflow-task"),r=t(this).closest("form"),o=t(this).closest("div[data-notification-alert-id]");e.preventDefault(),r.append('<input type="hidden" name="action_'+n+'" value="'+n+'">'),r.ajaxSubmit({dataType:"json",beforeSubmit:function(){i.showLoader()},success:function(e){o.addClass("animated fadeOut"),setTimeout((function(){o.remove(),i.handleEmpty()}),500)},complete:function(){i.hideLoader()}})})),i.$element.find(".dialog-launch").dialog()}n.prototype={handleEmpty:function(){this.$element.find("div[data-notification-alert-id]").length<1&&this.$element.find("[data-notification-description=empty]").show()},showLoader:function(){t("div[data-list=notification]").addClass("ccm-block-desktop-waiting-for-me-loading")},hideLoader:function(){t("div[data-list=notification]").removeClass()}},t.fn.concreteNotificationList=function(e){return t.each(t(this),(function(i,r){new n(t(this),e)}))},e.ConcreteNotificationList=n}(e,jQuery)}).call(this,n(4))},2:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},20:function(e,t,n){var i=n(85);"string"==typeof i&&(i=[[e.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(8)(i,r);i.locals&&(e.exports=i.locals)},21:function(e,t,n){var i=n(87);"string"==typeof i&&(i=[[e.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(8)(i,r);i.locals&&(e.exports=i.locals)},23:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n(15),r=n.n(i);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.contexts=t||{}}var t,n,i;return t=e,i=[{key:"bindToWindow",value:function(t){t.Concrete=t.Concrete||{},t.Concrete.Vue||(t.Concrete.Vue=new e,t.dispatchEvent(new CustomEvent("concrete.vue.ready",{detail:t.Concrete.Vue})))}}],(n=[{key:"getContext",value:function(e){return this.contexts[e]||{}}},{key:"activateContext",value:function(e,t){return t(r.a,{components:this.getContext(e)})}},{key:"extendContext",value:function(e,t,n){n=n||e,this.contexts[n]=a(a({},this.getContext(e)),t)}},{key:"createContext",value:function(e,t,n){this.extendContext(n,t,e)}}])&&l(t.prototype,n),i&&l(t,i),e}()},27:function(e,t,n){var i,r;void 0===(r="function"==typeof(i=function(){var e,t,n={version:"0.2.0"},i=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function r(e,t,n){return e<t?t:e>n?n:e}function o(e){return 100*(-1+e)}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(i[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=r(e,i.minimum,1),n.status=1===e?null:e;var l=n.render(!t),c=l.querySelector(i.barSelector),u=i.speed,d=i.easing;return l.offsetWidth,a((function(t){""===i.positionUsing&&(i.positionUsing=n.getPositioningCSS()),s(c,function(e,t,n){var r;return(r="translate3d"===i.positionUsing?{transform:"translate3d("+o(e)+"%,0,0)"}:"translate"===i.positionUsing?{transform:"translate("+o(e)+"%,0)"}:{"margin-left":o(e)+"%"}).transition="all "+t+"ms "+n,r}(e,u,d)),1===e?(s(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout((function(){s(l,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){return n.status||n.set(0),i.trickle&&function e(){setTimeout((function(){n.status&&(n.trickle(),e())}),i.trickleSpeed)}(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*r(Math.random()*t,.1,.95)),t=r(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*i.trickleRate)},e=0,t=0,n.promise=function(i){return i&&"resolved"!==i.state()?(0===t&&n.start(),e++,t++,i.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=i.template;var r,a=t.querySelector(i.barSelector),l=e?"-100":o(n.status||0),u=document.querySelector(i.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),i.showSpinner||(r=t.querySelector(i.spinnerSelector))&&f(r),u!=document.body&&c(u,"nprogress-custom-parent"),u.appendChild(t),t},n.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(i.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var a=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),s=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n){return n=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()})),t[n]||(t[n]=function(t){var n=document.body.style;if(t in n)return t;for(var i,r=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);r--;)if((i=e[r]+o)in n)return i;return t}(n))}function i(e,t,i){t=n(t),e.style[t]=i}return function(e,t){var n,r,o=arguments;if(2==o.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&i(e,n,r);else i(e,o[1],o[2])}}();function l(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function c(e,t){var n=d(e),i=n+t;l(n,t)||(e.className=i.substring(1))}function u(e,t){var n,i=d(e);l(e,t)&&(n=i.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n})?i.call(t,n,t,e):i)||(e.exports=r)},28:function(e,t,n){var i,r,o;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(n){"object"==a(t)&&void 0!==e?e.exports=n():(r=[],void 0===(o="function"==typeof(i=n)?i.apply(t,r):i)||(e.exports=o))}((function(){var e={};Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(e){return!(!e||!e.Window)&&e instanceof e.Window};var t={};Object.defineProperty(t,"__esModule",{value:!0}),t.init=r,t.getWindow=function(t){return(0,e.default)(t)?t:(t.ownerDocument||t).defaultView||i.window},t.window=t.realWindow=void 0;var n=void 0;t.realWindow=n;var i=void 0;function r(e){t.realWindow=n=e;var r=e.document.createTextNode("");r.ownerDocument!==e.document&&"function"==typeof e.wrap&&e.wrap(r)===r&&(e=e.wrap(e)),t.window=i=e}t.window=i,"undefined"!=typeof window&&window&&r(window);var o={};Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var s=function(e){return!!e&&"object"==a(e)},l=function(e){return"function"==typeof e},c={window:function(n){return n===t.window||(0,e.default)(n)},docFrag:function(e){return s(e)&&11===e.nodeType},object:s,func:l,number:function(e){return"number"==typeof e},bool:function(e){return"boolean"==typeof e},string:function(e){return"string"==typeof e},element:function(e){if(!e||"object"!=a(e))return!1;var n=t.getWindow(e)||t.window;return/object|function/.test(a(n.Element))?e instanceof n.Element:1===e.nodeType&&"string"==typeof e.nodeName},plainObject:function(e){return s(e)&&!!e.constructor&&/function Object\b/.test(e.constructor.toString())},array:function(e){return s(e)&&void 0!==e.length&&l(e.splice)}};o.default=c;var u={};function d(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.prepared.axis;"x"===n?(t.coords.cur.page.y=t.coords.start.page.y,t.coords.cur.client.y=t.coords.start.client.y,t.coords.velocity.client.y=0,t.coords.velocity.page.y=0):"y"===n&&(t.coords.cur.page.x=t.coords.start.page.x,t.coords.cur.client.x=t.coords.start.client.x,t.coords.velocity.client.x=0,t.coords.velocity.page.x=0)}}function f(e){var t=e.iEvent,n=e.interaction;if("drag"===n.prepared.name){var i=n.prepared.axis;if("x"===i||"y"===i){var r="x"===i?"y":"x";t.page[r]=n.coords.start.page[r],t.client[r]=n.coords.start.client[r],t.delta[r]=0}}}Object.defineProperty(u,"__esModule",{value:!0}),u.default=void 0;var p={id:"actions/drag",install:function(e){var t=e.actions,n=e.Interactable,i=e.defaults;n.prototype.draggable=p.draggable,t.map.drag=p,t.methodDict.drag="draggable",i.actions.drag=p.defaults},listeners:{"interactions:before-action-move":d,"interactions:action-resume":d,"interactions:action-move":f,"auto-start:check":function(e){var t=e.interaction,n=e.interactable,i=e.buttons,r=n.options.drag;if(r&&r.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||0!=(i&n.options.drag.mouseButtons)))return e.action={name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis},!1}},draggable:function(e){return o.default.object(e)?(this.options.drag.enabled=!1!==e.enabled,this.setPerAction("drag",e),this.setOnEvents("drag",e),/^(xy|x|y|start)$/.test(e.lockAxis)&&(this.options.drag.lockAxis=e.lockAxis),/^(xy|x|y)$/.test(e.startAxis)&&(this.options.drag.startAxis=e.startAxis),this):o.default.bool(e)?(this.options.drag.enabled=e,this):this.options.drag},beforeMove:d,move:f,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"}},h=p;u.default=h;var v={};Object.defineProperty(v,"__esModule",{value:!0}),v.default=void 0;var m={init:function(e){var t=e;m.document=t.document,m.DocumentFragment=t.DocumentFragment||g,m.SVGElement=t.SVGElement||g,m.SVGSVGElement=t.SVGSVGElement||g,m.SVGElementInstance=t.SVGElementInstance||g,m.Element=t.Element||g,m.HTMLElement=t.HTMLElement||m.Element,m.Event=t.Event,m.Touch=t.Touch||g,m.PointerEvent=t.PointerEvent||t.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function g(){}var y=m;v.default=y;var b={};Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var x={init:function(e){var n=v.default.Element,i=t.window.navigator;x.supportsTouch="ontouchstart"in e||o.default.func(e.DocumentTouch)&&v.default.document instanceof e.DocumentTouch,x.supportsPointerEvent=!1!==i.pointerEnabled&&!!v.default.PointerEvent,x.isIOS=/iP(hone|od|ad)/.test(i.platform),x.isIOS7=/iP(hone|od|ad)/.test(i.platform)&&/OS 7[^\d]/.test(i.appVersion),x.isIe9=/MSIE 9/.test(i.userAgent),x.isOperaMobile="Opera"===i.appName&&x.supportsTouch&&/Presto/.test(i.userAgent),x.prefixedMatchesSelector="matches"in n.prototype?"matches":"webkitMatchesSelector"in n.prototype?"webkitMatchesSelector":"mozMatchesSelector"in n.prototype?"mozMatchesSelector":"oMatchesSelector"in n.prototype?"oMatchesSelector":"msMatchesSelector",x.pEventTypes=x.supportsPointerEvent?v.default.PointerEvent===e.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,x.wheelEvent="onmousewheel"in v.default.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},w=x;b.default=w;var E={};function _(e){var t=e.parentNode;if(o.default.docFrag(t)){for(;(t=t.host)&&o.default.docFrag(t););return t}return t}function S(e,n){return t.window!==t.realWindow&&(n=n.replace(/\/deep\//g," ")),e[b.default.prefixedMatchesSelector](n)}Object.defineProperty(E,"__esModule",{value:!0}),E.nodeContains=function(e,t){if(e.contains)return e.contains(t);for(;t;){if(t===e)return!0;t=t.parentNode}return!1},E.closest=function(e,t){for(;o.default.element(e);){if(S(e,t))return e;e=_(e)}return null},E.parentNode=_,E.matchesSelector=S,E.indexOfDeepestElement=function(e){for(var n,i=[],r=0;r<e.length;r++){var o=e[r],a=e[n];if(o&&r!==n)if(a){var s=k(o),l=k(a);if(s!==o.ownerDocument)if(l!==o.ownerDocument)if(s!==l){i=i.length?i:P(a);var c=void 0;if(a instanceof v.default.HTMLElement&&o instanceof v.default.SVGElement&&!(o instanceof v.default.SVGSVGElement)){if(o===l)continue;c=o.ownerSVGElement}else c=o;for(var u=P(c,a.ownerDocument),d=0;u[d]&&u[d]===i[d];)d++;for(var f=[u[d-1],u[d],i[d]],p=f[0].lastChild;p;){if(p===f[1]){n=r,i=u;break}if(p===f[2])break;p=p.previousSibling}}else h=o,m=a,(parseInt(t.getWindow(h).getComputedStyle(h).zIndex,10)||0)>=(parseInt(t.getWindow(m).getComputedStyle(m).zIndex,10)||0)&&(n=r);else n=r}else n=r}var h,m;return n},E.matchesUpTo=function(e,t,n){for(;o.default.element(e);){if(S(e,t))return!0;if((e=_(e))===n)return S(e,t)}return!1},E.getActualElement=function(e){return e.correspondingUseElement||e},E.getScrollXY=T,E.getElementClientRect=C,E.getElementRect=function(e){var n=C(e);if(!b.default.isIOS7&&n){var i=T(t.getWindow(e));n.left+=i.x,n.right+=i.x,n.top+=i.y,n.bottom+=i.y}return n},E.getPath=function(e){for(var t=[];e;)t.push(e),e=_(e);return t},E.trySelector=function(e){return!!o.default.string(e)&&(v.default.document.querySelector(e),!0)};var k=function(e){return e.parentNode||e.host};function P(e,t){for(var n,i=[],r=e;(n=k(r))&&r!==t&&n!==r.ownerDocument;)i.unshift(r),r=n;return i}function T(e){return{x:(e=e||t.window).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop}}function C(e){var t=e instanceof v.default.SVGElement?e.getBoundingClientRect():e.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}}var O={};Object.defineProperty(O,"__esModule",{value:!0}),O.default=function(e,t){for(var n in t)e[n]=t[n];return e};var M={};function z(e,t,n){return"parent"===e?(0,E.parentNode)(n):"self"===e?t.getRect(n):(0,E.closest)(n,e)}Object.defineProperty(M,"__esModule",{value:!0}),M.getStringOptionResult=z,M.resolveRectLike=function(e,t,n,i){var r=e;return o.default.string(r)?r=z(r,t,n):o.default.func(r)&&(r=r.apply(void 0,i)),o.default.element(r)&&(r=(0,E.getElementRect)(r)),r},M.rectToXY=function(e){return e&&{x:"x"in e?e.x:e.left,y:"y"in e?e.y:e.top}},M.xywhToTlbr=function(e){return!e||"left"in e&&"top"in e||((e=(0,O.default)({},e)).left=e.x||0,e.top=e.y||0,e.right=e.right||e.left+e.width,e.bottom=e.bottom||e.top+e.height),e},M.tlbrToXywh=function(e){return!e||"x"in e&&"y"in e||((e=(0,O.default)({},e)).x=e.left||0,e.y=e.top||0,e.width=e.width||(e.right||0)-e.x,e.height=e.height||(e.bottom||0)-e.y),e},M.addEdges=function(e,t,n){e.left&&(t.left+=n.x),e.right&&(t.right+=n.x),e.top&&(t.top+=n.y),e.bottom&&(t.bottom+=n.y),t.width=t.right-t.left,t.height=t.bottom-t.top};var F={};Object.defineProperty(F,"__esModule",{value:!0}),F.default=function(e,t,n){var i=e.options[n],r=i&&i.origin||e.options.origin,o=(0,M.resolveRectLike)(r,e,t,[e&&t]);return(0,M.rectToXY)(o)||{x:0,y:0}};var I={};function D(e){return e.trim().split(/ +/)}Object.defineProperty(I,"__esModule",{value:!0}),I.default=function e(t,n,i){if(i=i||{},o.default.string(t)&&-1!==t.search(" ")&&(t=D(t)),o.default.array(t))return t.reduce((function(t,r){return(0,O.default)(t,e(r,n,i))}),i);if(o.default.object(t)&&(n=t,t=""),o.default.func(n))i[t]=i[t]||[],i[t].push(n);else if(o.default.array(n))for(var r=0;r<n.length;r++){var a;a=n[r],e(t,a,i)}else if(o.default.object(n))for(var s in n){var l=D(s).map((function(e){return""+t+e}));e(l,n[s],i)}return i};var A={};Object.defineProperty(A,"__esModule",{value:!0}),A.default=void 0,A.default=function(e,t){return Math.sqrt(e*e+t*t)};var j={};function R(e,t){for(var n in t){var i=R.prefixedPropREs,r=!1;for(var o in i)if(0===n.indexOf(o)&&i[o].test(n)){r=!0;break}r||"function"==typeof t[n]||(e[n]=t[n])}return e}Object.defineProperty(j,"__esModule",{value:!0}),j.default=void 0,R.prefixedPropREs={webkit:/(Movement[XY]|Radius[XY]|RotationAngle|Force)$/,moz:/(Pressure)$/};var L=R;j.default=L;var U={};function $(e){return e instanceof v.default.Event||e instanceof v.default.Touch}function W(e,t,n){return e=e||"page",(n=n||{}).x=t[e+"X"],n.y=t[e+"Y"],n}function N(e,t){return t=t||{x:0,y:0},b.default.isOperaMobile&&$(e)?(W("screen",e,t),t.x+=window.scrollX,t.y+=window.scrollY):W("page",e,t),t}function H(e,t){return t=t||{},b.default.isOperaMobile&&$(e)?W("screen",e,t):W("client",e,t),t}function B(e){var t=[];return o.default.array(e)?(t[0]=e[0],t[1]=e[1]):"touchend"===e.type?1===e.touches.length?(t[0]=e.touches[0],t[1]=e.changedTouches[0]):0===e.touches.length&&(t[0]=e.changedTouches[0],t[1]=e.changedTouches[1]):(t[0]=e.touches[0],t[1]=e.touches[1]),t}function q(e){for(var t={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<e.length;n++){var i=e[n];for(var r in t)t[r]+=i[r]}for(var o in t)t[o]/=e.length;return t}Object.defineProperty(U,"__esModule",{value:!0}),U.copyCoords=function(e,t){e.page=e.page||{},e.page.x=t.page.x,e.page.y=t.page.y,e.client=e.client||{},e.client.x=t.client.x,e.client.y=t.client.y,e.timeStamp=t.timeStamp},U.setCoordDeltas=function(e,t,n){e.page.x=n.page.x-t.page.x,e.page.y=n.page.y-t.page.y,e.client.x=n.client.x-t.client.x,e.client.y=n.client.y-t.client.y,e.timeStamp=n.timeStamp-t.timeStamp},U.setCoordVelocity=function(e,t){var n=Math.max(t.timeStamp/1e3,.001);e.page.x=t.page.x/n,e.page.y=t.page.y/n,e.client.x=t.client.x/n,e.client.y=t.client.y/n,e.timeStamp=n},U.setZeroCoords=function(e){e.page.x=0,e.page.y=0,e.client.x=0,e.client.y=0},U.isNativePointer=$,U.getXY=W,U.getPageXY=N,U.getClientXY=H,U.getPointerId=function(e){return o.default.number(e.pointerId)?e.pointerId:e.identifier},U.setCoords=function(e,t,n){var i=t.length>1?q(t):t[0];N(i,e.page),H(i,e.client),e.timeStamp=n},U.getTouchPair=B,U.pointerAverage=q,U.touchBBox=function(e){if(!e.length)return null;var t=B(e),n=Math.min(t[0].pageX,t[1].pageX),i=Math.min(t[0].pageY,t[1].pageY),r=Math.max(t[0].pageX,t[1].pageX),o=Math.max(t[0].pageY,t[1].pageY);return{x:n,y:i,left:n,top:i,right:r,bottom:o,width:r-n,height:o-i}},U.touchDistance=function(e,t){var n=t+"X",i=t+"Y",r=B(e),o=r[0][n]-r[1][n],a=r[0][i]-r[1][i];return(0,A.default)(o,a)},U.touchAngle=function(e,t){var n=t+"X",i=t+"Y",r=B(e),o=r[1][n]-r[0][n],a=r[1][i]-r[0][i];return 180*Math.atan2(a,o)/Math.PI},U.getPointerType=function(e){return o.default.string(e.pointerType)?e.pointerType:o.default.number(e.pointerType)?[void 0,void 0,"touch","pen","mouse"][e.pointerType]:/touch/.test(e.type)||e instanceof v.default.Touch?"touch":"mouse"},U.getEventTargets=function(e){var t=o.default.func(e.composedPath)?e.composedPath():e.path;return[E.getActualElement(t?t[0]:e.target),E.getActualElement(e.currentTarget)]},U.newCoords=function(){return{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},U.coordsToEvent=function(e){return{coords:e,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}},Object.defineProperty(U,"pointerExtend",{enumerable:!0,get:function(){return j.default}});var X={};Object.defineProperty(X,"__esModule",{value:!0}),X.BaseEvent=void 0;var Y=function(){function e(e){this.type=void 0,this.target=void 0,this.currentTarget=void 0,this.interactable=void 0,this._interaction=void 0,this.timeStamp=void 0,this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=e}var t=e.prototype;return t.preventDefault=function(){},t.stopPropagation=function(){this.propagationStopped=!0},t.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},e}();X.BaseEvent=Y,Object.defineProperty(Y.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var V={};Object.defineProperty(V,"__esModule",{value:!0}),V.find=V.findIndex=V.from=V.merge=V.remove=V.contains=void 0,V.contains=function(e,t){return-1!==e.indexOf(t)},V.remove=function(e,t){return e.splice(e.indexOf(t),1)};var G=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];e.push(i)}return e};V.merge=G,V.from=function(e){return G([],e)};var Q=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1};V.findIndex=Q,V.find=function(e,t){return e[Q(e,t)]};var K={};Object.defineProperty(K,"__esModule",{value:!0}),K.DropEvent=void 0;var Z=function(e){var t,n;function i(t,n,i){var r;(r=e.call(this,n._interaction)||this).target=void 0,r.dropzone=void 0,r.dragEvent=void 0,r.relatedTarget=void 0,r.draggable=void 0,r.timeStamp=void 0,r.propagationStopped=!1,r.immediatePropagationStopped=!1;var o="dragleave"===i?t.prev:t.cur,a=o.element,s=o.dropzone;return r.type=i,r.target=a,r.currentTarget=a,r.dropzone=s,r.dragEvent=n,r.relatedTarget=n.target,r.draggable=n.interactable,r.timeStamp=n.timeStamp,r}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.reject=function(){var e=this,t=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&t.cur.dropzone===this.dropzone&&t.cur.element===this.target)if(t.prev.dropzone=this.dropzone,t.prev.element=this.target,t.rejected=!0,t.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var n=t.activeDrops,r=V.findIndex(n,(function(t){var n=t.dropzone,i=t.element;return n===e.dropzone&&i===e.target}));t.activeDrops.splice(r,1);var o=new i(t,this.dragEvent,"dropdeactivate");o.dropzone=this.dropzone,o.target=this.target,this.dropzone.fire(o)}else this.dropzone.fire(new i(t,this.dragEvent,"dragleave"))},r.preventDefault=function(){},r.stopPropagation=function(){this.propagationStopped=!0},r.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},i}(X.BaseEvent);K.DropEvent=Z;var J={};function ee(e,t){for(var n=0;n<e.slice().length;n++){var i=e.slice()[n],r=i.dropzone,o=i.element;t.dropzone=r,t.target=o,r.fire(t),t.propagationStopped=t.immediatePropagationStopped=!1}}function te(e,t){for(var n=function(e,t){for(var n=e.interactables,i=[],r=0;r<n.list.length;r++){var a=n.list[r];if(a.options.drop.enabled){var s=a.options.drop.accept;if(!(o.default.element(s)&&s!==t||o.default.string(s)&&!E.matchesSelector(t,s)||o.default.func(s)&&!s({dropzone:a,draggableElement:t})))for(var l=o.default.string(a.target)?a._context.querySelectorAll(a.target):o.default.array(a.target)?a.target:[a.target],c=0;c<l.length;c++){var u=l[c];u!==t&&i.push({dropzone:a,element:u})}}}return i}(e,t),i=0;i<n.length;i++){var r=n[i];r.rect=r.dropzone.getRect(r.element)}return n}function ne(e,t,n){for(var i=e.dropState,r=e.interactable,o=e.element,a=[],s=0;s<i.activeDrops.length;s++){var l=i.activeDrops[s],c=l.dropzone,u=l.element,d=l.rect;a.push(c.dropCheck(t,n,r,o,u,d)?u:null)}var f=E.indexOfDeepestElement(a);return i.activeDrops[f]||null}function ie(e,t,n){var i=e.dropState,r={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===n.type&&(r.activate=new K.DropEvent(i,n,"dropactivate"),r.activate.target=null,r.activate.dropzone=null),"dragend"===n.type&&(r.deactivate=new K.DropEvent(i,n,"dropdeactivate"),r.deactivate.target=null,r.deactivate.dropzone=null),i.rejected||(i.cur.element!==i.prev.element&&(i.prev.dropzone&&(r.leave=new K.DropEvent(i,n,"dragleave"),n.dragLeave=r.leave.target=i.prev.element,n.prevDropzone=r.leave.dropzone=i.prev.dropzone),i.cur.dropzone&&(r.enter=new K.DropEvent(i,n,"dragenter"),n.dragEnter=i.cur.element,n.dropzone=i.cur.dropzone)),"dragend"===n.type&&i.cur.dropzone&&(r.drop=new K.DropEvent(i,n,"drop"),n.dropzone=i.cur.dropzone,n.relatedTarget=i.cur.element),"dragmove"===n.type&&i.cur.dropzone&&(r.move=new K.DropEvent(i,n,"dropmove"),r.move.dragmove=n,n.dropzone=i.cur.dropzone)),r}function re(e,t){var n=e.dropState,i=n.activeDrops,r=n.cur,o=n.prev;t.leave&&o.dropzone.fire(t.leave),t.enter&&r.dropzone.fire(t.enter),t.move&&r.dropzone.fire(t.move),t.drop&&r.dropzone.fire(t.drop),t.deactivate&&ee(i,t.deactivate),n.prev.dropzone=r.dropzone,n.prev.element=r.element}function oe(e,t){var n=e.interaction,i=e.iEvent,r=e.event;if("dragmove"===i.type||"dragend"===i.type){var o=n.dropState;t.dynamicDrop&&(o.activeDrops=te(t,n.element));var a=i,s=ne(n,a,r);o.rejected=o.rejected&&!!s&&s.dropzone===o.cur.dropzone&&s.element===o.cur.element,o.cur.dropzone=s&&s.dropzone,o.cur.element=s&&s.element,o.events=ie(n,0,a)}}Object.defineProperty(J,"__esModule",{value:!0}),J.default=void 0;var ae={id:"actions/drop",install:function(e){var t=e.actions,n=e.interactStatic,i=e.Interactable,r=e.defaults;e.usePlugin(u.default),i.prototype.dropzone=function(e){return function(e,t){if(o.default.object(t)){if(e.options.drop.enabled=!1!==t.enabled,t.listeners){var n=(0,I.default)(t.listeners),i=Object.keys(n).reduce((function(e,t){return e[/^(enter|leave)/.test(t)?"drag"+t:/^(activate|deactivate|move)/.test(t)?"drop"+t:t]=n[t],e}),{});e.off(e.options.drop.listeners),e.on(i),e.options.drop.listeners=i}return o.default.func(t.ondrop)&&e.on("drop",t.ondrop),o.default.func(t.ondropactivate)&&e.on("dropactivate",t.ondropactivate),o.default.func(t.ondropdeactivate)&&e.on("dropdeactivate",t.ondropdeactivate),o.default.func(t.ondragenter)&&e.on("dragenter",t.ondragenter),o.default.func(t.ondragleave)&&e.on("dragleave",t.ondragleave),o.default.func(t.ondropmove)&&e.on("dropmove",t.ondropmove),/^(pointer|center)$/.test(t.overlap)?e.options.drop.overlap=t.overlap:o.default.number(t.overlap)&&(e.options.drop.overlap=Math.max(Math.min(1,t.overlap),0)),"accept"in t&&(e.options.drop.accept=t.accept),"checker"in t&&(e.options.drop.checker=t.checker),e}return o.default.bool(t)?(e.options.drop.enabled=t,e):e.options.drop}(this,e)},i.prototype.dropCheck=function(e,t,n,i,r,a){return function(e,t,n,i,r,a,s){var l=!1;if(!(s=s||e.getRect(a)))return!!e.options.drop.checker&&e.options.drop.checker(t,n,l,e,a,i,r);var c=e.options.drop.overlap;if("pointer"===c){var u=(0,F.default)(i,r,"drag"),d=U.getPageXY(t);d.x+=u.x,d.y+=u.y;var f=d.x>s.left&&d.x<s.right,p=d.y>s.top&&d.y<s.bottom;l=f&&p}var h=i.getRect(r);if(h&&"center"===c){var v=h.left+h.width/2,m=h.top+h.height/2;l=v>=s.left&&v<=s.right&&m>=s.top&&m<=s.bottom}return h&&o.default.number(c)&&(l=Math.max(0,Math.min(s.right,h.right)-Math.max(s.left,h.left))*Math.max(0,Math.min(s.bottom,h.bottom)-Math.max(s.top,h.top))/(h.width*h.height)>=c),e.options.drop.checker&&(l=e.options.drop.checker(t,n,l,e,a,i,r)),l}(this,e,t,n,i,r,a)},n.dynamicDrop=function(t){return o.default.bool(t)?(e.dynamicDrop=t,n):e.dynamicDrop},(0,O.default)(t.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),t.methodDict.drop="dropzone",e.dynamicDrop=!1,r.actions.drop=ae.defaults},listeners:{"interactions:before-action-start":function(e){var t=e.interaction;"drag"===t.prepared.name&&(t.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(e,t){var n=e.interaction,i=(e.event,e.iEvent);if("drag"===n.prepared.name){var r=n.dropState;r.activeDrops=null,r.events=null,r.activeDrops=te(t,n.element),r.events=ie(n,0,i),r.events.activate&&(ee(r.activeDrops,r.events.activate),t.fire("actions/drop:start",{interaction:n,dragEvent:i}))}},"interactions:action-move":oe,"interactions:after-action-move":function(e,t){var n=e.interaction,i=e.iEvent;"drag"===n.prepared.name&&(re(n,n.dropState.events),t.fire("actions/drop:move",{interaction:n,dragEvent:i}),n.dropState.events={})},"interactions:action-end":function(e,t){if("drag"===e.interaction.prepared.name){var n=e.interaction,i=e.iEvent;oe(e,t),re(n,n.dropState.events),t.fire("actions/drop:end",{interaction:n,dragEvent:i})}},"interactions:stop":function(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:te,getDrop:ne,getDropEvents:ie,fireDropEvents:re,defaults:{enabled:!1,accept:null,overlap:"pointer"}},se=ae;J.default=se;var le={};function ce(e){var t=e.interaction,n=e.iEvent,i=e.phase;if("gesture"===t.prepared.name){var r=t.pointers.map((function(e){return e.pointer})),a="start"===i,s="end"===i,l=t.interactable.options.deltaSource;if(n.touches=[r[0],r[1]],a)n.distance=U.touchDistance(r,l),n.box=U.touchBBox(r),n.scale=1,n.ds=0,n.angle=U.touchAngle(r,l),n.da=0,t.gesture.startDistance=n.distance,t.gesture.startAngle=n.angle;else if(s){var c=t.prevEvent;n.distance=c.distance,n.box=c.box,n.scale=c.scale,n.ds=0,n.angle=c.angle,n.da=0}else n.distance=U.touchDistance(r,l),n.box=U.touchBBox(r),n.scale=n.distance/t.gesture.startDistance,n.angle=U.touchAngle(r,l),n.ds=n.scale-t.gesture.scale,n.da=n.angle-t.gesture.angle;t.gesture.distance=n.distance,t.gesture.angle=n.angle,o.default.number(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(t.gesture.scale=n.scale)}}Object.defineProperty(le,"__esModule",{value:!0}),le.default=void 0;var ue={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(e){var t=e.actions,n=e.Interactable,i=e.defaults;n.prototype.gesturable=function(e){return o.default.object(e)?(this.options.gesture.enabled=!1!==e.enabled,this.setPerAction("gesture",e),this.setOnEvents("gesture",e),this):o.default.bool(e)?(this.options.gesture.enabled=e,this):this.options.gesture},t.map.gesture=ue,t.methodDict.gesture="gesturable",i.actions.gesture=ue.defaults},listeners:{"interactions:action-start":ce,"interactions:action-move":ce,"interactions:action-end":ce,"interactions:new":function(e){e.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(e){if(!(e.interaction.pointers.length<2)){var t=e.interactable.options.gesture;if(t&&t.enabled)return e.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""}},de=ue;le.default=de;var fe={};function pe(e,t,n,i,r,a,s){if(!t)return!1;if(!0===t){var l=o.default.number(a.width)?a.width:a.right-a.left,c=o.default.number(a.height)?a.height:a.bottom-a.top;if(s=Math.min(s,Math.abs(("left"===e||"right"===e?l:c)/2)),l<0&&("left"===e?e="right":"right"===e&&(e="left")),c<0&&("top"===e?e="bottom":"bottom"===e&&(e="top")),"left"===e)return n.x<(l>=0?a.left:a.right)+s;if("top"===e)return n.y<(c>=0?a.top:a.bottom)+s;if("right"===e)return n.x>(l>=0?a.right:a.left)-s;if("bottom"===e)return n.y>(c>=0?a.bottom:a.top)-s}return!!o.default.element(i)&&(o.default.element(t)?t===i:E.matchesUpTo(i,t,r))}function he(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.resizeAxes){var i=t;n.interactable.options.resize.square?("y"===n.resizeAxes?i.delta.x=i.delta.y:i.delta.y=i.delta.x,i.axes="xy"):(i.axes=n.resizeAxes,"x"===n.resizeAxes?i.delta.y=0:"y"===n.resizeAxes&&(i.delta.x=0))}}Object.defineProperty(fe,"__esModule",{value:!0}),fe.default=void 0;var ve={id:"actions/resize",before:["actions/drag"],install:function(e){var t=e.actions,n=e.browser,i=e.Interactable,r=e.defaults;ve.cursors=function(e){return e.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),ve.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,i.prototype.resizable=function(t){return function(e,t,n){return o.default.object(t)?(e.options.resize.enabled=!1!==t.enabled,e.setPerAction("resize",t),e.setOnEvents("resize",t),o.default.string(t.axis)&&/^x$|^y$|^xy$/.test(t.axis)?e.options.resize.axis=t.axis:null===t.axis&&(e.options.resize.axis=n.defaults.actions.resize.axis),o.default.bool(t.preserveAspectRatio)?e.options.resize.preserveAspectRatio=t.preserveAspectRatio:o.default.bool(t.square)&&(e.options.resize.square=t.square),e):o.default.bool(t)?(e.options.resize.enabled=t,e):e.options.resize}(this,t,e)},t.map.resize=ve,t.methodDict.resize="resizable",r.actions.resize=ve.defaults},listeners:{"interactions:new":function(e){e.interaction.resizeAxes="xy"},"interactions:action-start":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=t,r=n.rect;n._rects={start:(0,O.default)({},r),corrected:(0,O.default)({},r),previous:(0,O.default)({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}}(e),he(e)},"interactions:action-move":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=t,r=n.interactable.options.resize.invert,o="reposition"===r||"negate"===r,a=n.rect,s=n._rects,l=s.start,c=s.corrected,u=s.delta,d=s.previous;if((0,O.default)(d,c),o){if((0,O.default)(c,a),"reposition"===r){if(c.top>c.bottom){var f=c.top;c.top=c.bottom,c.bottom=f}if(c.left>c.right){var p=c.left;c.left=c.right,c.right=p}}}else c.top=Math.min(a.top,l.bottom),c.bottom=Math.max(a.bottom,l.top),c.left=Math.min(a.left,l.right),c.right=Math.max(a.right,l.left);for(var h in c.width=c.right-c.left,c.height=c.bottom-c.top,c)u[h]=c[h]-d[h];i.edges=n.prepared.edges,i.rect=c,i.deltaRect=u}}(e),he(e)},"interactions:action-end":function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=t;i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}},"auto-start:check":function(e){var t=e.interaction,n=e.interactable,i=e.element,r=e.rect,a=e.buttons;if(r){var s=(0,O.default)({},t.coords.cur.page),l=n.options.resize;if(l&&l.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||0!=(a&l.mouseButtons))){if(o.default.object(l.edges)){var c={left:!1,right:!1,top:!1,bottom:!1};for(var u in c)c[u]=pe(u,l.edges[u],s,t._latestPointer.eventTarget,i,r,l.margin||ve.defaultMargin);c.left=c.left&&!c.right,c.top=c.top&&!c.bottom,(c.left||c.right||c.top||c.bottom)&&(e.action={name:"resize",edges:c})}else{var d="y"!==l.axis&&s.x>r.right-ve.defaultMargin,f="x"!==l.axis&&s.y>r.bottom-ve.defaultMargin;(d||f)&&(e.action={name:"resize",axes:(d?"x":"")+(f?"y":"")})}return!e.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(e){var t=e.edges,n=e.axis,i=e.name,r=ve.cursors,o=null;if(n)o=r[i+n];else if(t){for(var a="",s=["top","bottom","left","right"],l=0;l<s.length;l++){var c=s[l];t[c]&&(a+=c)}o=r[a]}return o},defaultMargin:null},me=ve;fe.default=me;var ge={};Object.defineProperty(ge,"__esModule",{value:!0}),ge.default=void 0;var ye={id:"actions",install:function(e){e.usePlugin(le.default),e.usePlugin(fe.default),e.usePlugin(u.default),e.usePlugin(J.default)}};ge.default=ye;var be={};Object.defineProperty(be,"__esModule",{value:!0}),be.default=void 0,be.default={};var xe={};Object.defineProperty(xe,"__esModule",{value:!0}),xe.default=void 0;var we,Ee,_e=0,Se={request:function(e){return we(e)},cancel:function(e){return Ee(e)},init:function(e){if(we=e.requestAnimationFrame,Ee=e.cancelAnimationFrame,!we)for(var t=["ms","moz","webkit","o"],n=0;n<t.length;n++){var i=t[n];we=e[i+"RequestAnimationFrame"],Ee=e[i+"CancelAnimationFrame"]||e[i+"CancelRequestAnimationFrame"]}we=we&&we.bind(e),Ee=Ee&&Ee.bind(e),we||(we=function(t){var n=Date.now(),i=Math.max(0,16-(n-_e)),r=e.setTimeout((function(){t(n+i)}),i);return _e=n+i,r},Ee=function(e){return clearTimeout(e)})}};xe.default=Se;var ke={};Object.defineProperty(ke,"__esModule",{value:!0}),ke.getContainer=Te,ke.getScroll=Ce,ke.getScrollSize=function(e){return o.default.window(e)&&(e=window.document.body),{x:e.scrollWidth,y:e.scrollHeight}},ke.getScrollSizeDelta=function(e,t){var n=e.interaction,i=e.element,r=n&&n.interactable.options[n.prepared.name].autoScroll;if(!r||!r.enabled)return t(),{x:0,y:0};var o=Te(r.container,n.interactable,i),a=Ce(o);t();var s=Ce(o);return{x:s.x-a.x,y:s.y-a.y}},ke.default=void 0;var Pe={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(e){Pe.isScrolling=!0,xe.default.cancel(Pe.i),e.autoScroll=Pe,Pe.interaction=e,Pe.prevTime=Pe.now(),Pe.i=xe.default.request(Pe.scroll)},stop:function(){Pe.isScrolling=!1,Pe.interaction&&(Pe.interaction.autoScroll=null),xe.default.cancel(Pe.i)},scroll:function(){var e=Pe.interaction,t=e.interactable,n=e.element,i=e.prepared.name,r=t.options[i].autoScroll,a=Te(r.container,t,n),s=Pe.now(),l=(s-Pe.prevTime)/1e3,c=r.speed*l;if(c>=1){var u={x:Pe.x*c,y:Pe.y*c};if(u.x||u.y){var d=Ce(a);o.default.window(a)?a.scrollBy(u.x,u.y):a&&(a.scrollLeft+=u.x,a.scrollTop+=u.y);var f=Ce(a),p={x:f.x-d.x,y:f.y-d.y};(p.x||p.y)&&t.fire({type:"autoscroll",target:n,interactable:t,delta:p,interaction:e,container:a})}Pe.prevTime=s}Pe.isScrolling&&(xe.default.cancel(Pe.i),Pe.i=xe.default.request(Pe.scroll))},check:function(e,t){var n;return null==(n=e.options[t].autoScroll)?void 0:n.enabled},onInteractionMove:function(e){var t=e.interaction,n=e.pointer;if(t.interacting()&&Pe.check(t.interactable,t.prepared.name))if(t.simulation)Pe.x=Pe.y=0;else{var i,r,a,s,l=t.interactable,c=t.element,u=t.prepared.name,d=l.options[u].autoScroll,f=Te(d.container,l,c);if(o.default.window(f))s=n.clientX<Pe.margin,i=n.clientY<Pe.margin,r=n.clientX>f.innerWidth-Pe.margin,a=n.clientY>f.innerHeight-Pe.margin;else{var p=E.getElementClientRect(f);s=n.clientX<p.left+Pe.margin,i=n.clientY<p.top+Pe.margin,r=n.clientX>p.right-Pe.margin,a=n.clientY>p.bottom-Pe.margin}Pe.x=r?1:s?-1:0,Pe.y=a?1:i?-1:0,Pe.isScrolling||(Pe.margin=d.margin,Pe.speed=d.speed,Pe.start(t))}}};function Te(e,n,i){return(o.default.string(e)?(0,M.getStringOptionResult)(e,n,i):e)||(0,t.getWindow)(i)}function Ce(e){return o.default.window(e)&&(e=window.document.body),{x:e.scrollLeft,y:e.scrollTop}}var Oe={id:"auto-scroll",install:function(e){var t=e.defaults,n=e.actions;e.autoScroll=Pe,Pe.now=function(){return e.now()},n.phaselessTypes.autoscroll=!0,t.perAction.autoScroll=Pe.defaults},listeners:{"interactions:new":function(e){e.interaction.autoScroll=null},"interactions:destroy":function(e){e.interaction.autoScroll=null,Pe.stop(),Pe.interaction&&(Pe.interaction=null)},"interactions:stop":Pe.stop,"interactions:action-move":function(e){return Pe.onInteractionMove(e)}}};ke.default=Oe;var Me={};Object.defineProperty(Me,"__esModule",{value:!0}),Me.warnOnce=function(e,n){var i=!1;return function(){return i||(t.window.console.warn(n),i=!0),e.apply(this,arguments)}},Me.copyAction=function(e,t){return e.name=t.name,e.axis=t.axis,e.edges=t.edges,e};var ze={};function Fe(e){return o.default.bool(e)?(this.options.styleCursor=e,this):null===e?(delete this.options.styleCursor,this):this.options.styleCursor}function Ie(e){return o.default.func(e)?(this.options.actionChecker=e,this):null===e?(delete this.options.actionChecker,this):this.options.actionChecker}Object.defineProperty(ze,"__esModule",{value:!0}),ze.default=void 0;var De={id:"auto-start/interactableMethods",install:function(e){var t=e.Interactable;t.prototype.getAction=function(t,n,i,r){var o=function(e,t,n,i,r){var o=e.getRect(i),a={action:null,interactable:e,interaction:n,element:i,rect:o,buttons:t.buttons||{0:1,1:4,3:8,4:16}[t.button]};return r.fire("auto-start:check",a),a.action}(this,n,i,r,e);return this.options.actionChecker?this.options.actionChecker(t,n,o,this,r,i):o},t.prototype.ignoreFrom=(0,Me.warnOnce)((function(e){return this._backCompatOption("ignoreFrom",e)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),t.prototype.allowFrom=(0,Me.warnOnce)((function(e){return this._backCompatOption("allowFrom",e)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),t.prototype.actionChecker=Ie,t.prototype.styleCursor=Fe}};ze.default=De;var Ae={};function je(e,t,n,i,r){return t.testIgnoreAllow(t.options[e.name],n,i)&&t.options[e.name].enabled&&$e(t,n,e,r)?e:null}function Re(e,t,n,i,r,o,a){for(var s=0,l=i.length;s<l;s++){var c=i[s],u=r[s],d=c.getAction(t,n,e,u);if(d){var f=je(d,c,u,o,a);if(f)return{action:f,interactable:c,element:u}}}return{action:null,interactable:null,element:null}}function Le(e,t,n,i,r){var a=[],s=[],l=i;function c(e){a.push(e),s.push(l)}for(;o.default.element(l);){a=[],s=[],r.interactables.forEachMatch(l,c);var u=Re(e,t,n,a,s,i,r);if(u.action&&!u.interactable.options[u.action.name].manualStart)return u;l=E.parentNode(l)}return{action:null,interactable:null,element:null}}function Ue(e,t,n){var i=t.action,r=t.interactable,o=t.element;i=i||{name:null},e.interactable=r,e.element=o,(0,Me.copyAction)(e.prepared,i),e.rect=r&&i.name?r.getRect(o):null,He(e,n),n.fire("autoStart:prepared",{interaction:e})}function $e(e,t,n,i){var r=e.options,o=r[n.name].max,a=r[n.name].maxPerElement,s=i.autoStart.maxInteractions,l=0,c=0,u=0;if(!(o&&a&&s))return!1;for(var d=0;d<i.interactions.list.length;d++){var f=i.interactions.list[d],p=f.prepared.name;if(f.interacting()){if(++l>=s)return!1;if(f.interactable===e){if((c+=p===n.name?1:0)>=o)return!1;if(f.element===t&&(u++,p===n.name&&u>=a))return!1}}}return s>0}function We(e,t){return o.default.number(e)?(t.autoStart.maxInteractions=e,this):t.autoStart.maxInteractions}function Ne(e,t,n){var i=n.autoStart.cursorElement;i&&i!==e&&(i.style.cursor=""),e.ownerDocument.documentElement.style.cursor=t,e.style.cursor=t,n.autoStart.cursorElement=t?e:null}function He(e,t){var n=e.interactable,i=e.element,r=e.prepared;if("mouse"===e.pointerType&&n&&n.options.styleCursor){var a="";if(r.name){var s=n.options[r.name].cursorChecker;a=o.default.func(s)?s(r,n,i,e._interacting):t.actions.map[r.name].getCursor(r)}Ne(e.element,a||"",t)}else t.autoStart.cursorElement&&Ne(t.autoStart.cursorElement,"",t)}Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.default=void 0;var Be={id:"auto-start/base",before:["actions"],install:function(e){var t=e.interactStatic,n=e.defaults;e.usePlugin(ze.default),n.base.actionChecker=null,n.base.styleCursor=!0,(0,O.default)(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),t.maxInteractions=function(t){return We(t,e)},e.autoStart={maxInteractions:1/0,withinInteractionLimit:$e,cursorElement:null}},listeners:{"interactions:down":function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;n.interacting()||Ue(n,Le(n,i,r,o,t),t)},"interactions:move":function(e,t){!function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;"mouse"!==n.pointerType||n.pointerIsDown||n.interacting()||Ue(n,Le(n,i,r,o,t),t)}(e,t),function(e,t){var n=e.interaction;if(n.pointerIsDown&&!n.interacting()&&n.pointerWasMoved&&n.prepared.name){t.fire("autoStart:before-start",e);var i=n.interactable,r=n.prepared.name;r&&i&&(i.options[r].manualStart||!$e(i,n.element,n.prepared,t)?n.stop():(n.start(n.prepared,i,n.element),He(n,t)))}}(e,t)},"interactions:stop":function(e,t){var n=e.interaction,i=n.interactable;i&&i.options.styleCursor&&Ne(n.element,"",t)}},maxInteractions:We,withinInteractionLimit:$e,validateAction:je};Ae.default=Be;var qe={};Object.defineProperty(qe,"__esModule",{value:!0}),qe.default=void 0;var Xe={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(e,t){var n=e.interaction,i=e.eventTarget,r=e.dx,a=e.dy;if("drag"===n.prepared.name){var s=Math.abs(r),l=Math.abs(a),c=n.interactable.options.drag,u=c.startAxis,d=s>l?"x":s<l?"y":"xy";if(n.prepared.axis="start"===c.lockAxis?d[0]:c.lockAxis,"xy"!==d&&"xy"!==u&&u!==d){n.prepared.name=null;for(var f=i,p=function(e){if(e!==n.interactable){var r=n.interactable.options.drag;if(!r.manualStart&&e.testIgnoreAllow(r,f,i)){var o=e.getAction(n.downPointer,n.downEvent,n,f);if(o&&"drag"===o.name&&function(e,t){if(!t)return!1;var n=t.options.drag.startAxis;return"xy"===e||"xy"===n||n===e}(d,e)&&Ae.default.validateAction(o,e,f,i,t))return e}}};o.default.element(f);){var h=t.interactables.forEachMatch(f,p);if(h){n.prepared.name="drag",n.interactable=h,n.element=f;break}f=(0,E.parentNode)(f)}}}}}};qe.default=Xe;var Ye={};function Ve(e){var t=e.prepared&&e.prepared.name;if(!t)return null;var n=e.interactable.options;return n[t].hold||n[t].delay}Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.default=void 0;var Ge={id:"auto-start/hold",install:function(e){var t=e.defaults;e.usePlugin(Ae.default),t.perAction.hold=0,t.perAction.delay=0},listeners:{"interactions:new":function(e){e.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(e){var t=e.interaction,n=Ve(t);n>0&&(t.autoStartHoldTimer=setTimeout((function(){t.start(t.prepared,t.interactable,t.element)}),n))},"interactions:move":function(e){var t=e.interaction,n=e.duplicate;t.autoStartHoldTimer&&t.pointerWasMoved&&!n&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":function(e){var t=e.interaction;Ve(t)>0&&(t.prepared.name=null)}},getHoldDuration:Ve};Ye.default=Ge;var Qe={};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.default=void 0;var Ke={id:"auto-start",install:function(e){e.usePlugin(Ae.default),e.usePlugin(Ye.default),e.usePlugin(qe.default)}};Qe.default=Ke;var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=void 0,Ze.default={};var Je={};function et(e){return/^(always|never|auto)$/.test(e)?(this.options.preventDefault=e,this):o.default.bool(e)?(this.options.preventDefault=e?"always":"never",this):this.options.preventDefault}function tt(e){var t=e.interaction,n=e.event;t.interactable&&t.interactable.checkAndPreventDefault(n)}function nt(e){var n=e.Interactable;n.prototype.preventDefault=et,n.prototype.checkAndPreventDefault=function(n){return function(e,n,i){var r=e.options.preventDefault;if("never"!==r)if("always"!==r){if(n.events.supportsPassive&&/^touch(start|move)$/.test(i.type)){var a=(0,t.getWindow)(i.target).document,s=n.getDocOptions(a);if(!s||!s.events||!1!==s.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(i.type)||o.default.element(i.target)&&(0,E.matchesSelector)(i.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||i.preventDefault()}else i.preventDefault()}(this,e,n)},e.interactions.docEvents.push({type:"dragstart",listener:function(t){for(var n=0;n<e.interactions.list.length;n++){var i=e.interactions.list[n];if(i.element&&(i.element===t.target||(0,E.nodeContains)(i.element,t.target)))return void i.interactable.checkAndPreventDefault(t)}}})}Object.defineProperty(Je,"__esModule",{value:!0}),Je.install=nt,Je.default=void 0;var it={id:"core/interactablePreventDefault",install:nt,listeners:["down","move","up","cancel"].reduce((function(e,t){return e["interactions:"+t]=tt,e}),{})};Je.default=it;var rt,ot={};Object.defineProperty(ot,"__esModule",{value:!0}),ot.default=void 0,function(e){e.touchAction="touchAction",e.boxSizing="boxSizing",e.noListeners="noListeners"}(rt||(rt={}));var at={touchAction:"https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action",boxSizing:"https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing"},st=[{name:rt.touchAction,perform:function(e){return!function(e,t,n){for(var i=e;o.default.element(i);){if(lt(i,"touchAction",n))return!0;i=(0,E.parentNode)(i)}return!1}(e.element,0,/pan-|pinch|none/)},getInfo:function(e){return[e.element,at.touchAction]},text:'Consider adding CSS "touch-action: none" to this element\n'},{name:rt.boxSizing,perform:function(e){var t=e.element;return"resize"===e.prepared.name&&t instanceof v.default.HTMLElement&&!lt(t,"boxSizing",/border-box/)},text:'Consider adding CSS "box-sizing: border-box" to this resizable element',getInfo:function(e){return[e.element,at.boxSizing]}},{name:rt.noListeners,perform:function(e){var t=e.prepared.name;return!(e.interactable.events.types[t+"move"]||[]).length},getInfo:function(e){return[e.prepared.name,e.interactable]},text:"There are no listeners set for this action"}];function lt(e,n,i){var r=e.style[n]||t.window.getComputedStyle(e)[n];return i.test((r||"").toString())}var ct={id:"dev-tools",install:function(e,t){var n=(void 0===t?{}:t).logger,i=e.Interactable,r=e.defaults;e.logger=n||console,r.base.devTools={ignore:{}},i.prototype.devTools=function(e){return e?((0,O.default)(this.options.devTools,e),this):this.options.devTools}},listeners:{"interactions:action-start":function(e,t){for(var n=e.interaction,i=0;i<st.length;i++){var r,o=st[i],a=n.interactable&&n.interactable.options;a&&a.devTools&&a.devTools.ignore[o.name]||!o.perform(n)||(r=t.logger).warn.apply(r,["[interact.js] "+o.text].concat(o.getInfo(n)))}}},checks:st,CheckName:rt,links:at,prefix:"[interact.js] "};ot.default=ct;var ut={};Object.defineProperty(ut,"__esModule",{value:!0}),ut.default=void 0,ut.default={};var dt={};Object.defineProperty(dt,"__esModule",{value:!0}),dt.default=function e(t){var n={};for(var i in t){var r=t[i];o.default.plainObject(r)?n[i]=e(r):o.default.array(r)?n[i]=V.from(r):n[i]=r}return n};var ft={};Object.defineProperty(ft,"__esModule",{value:!0}),ft.getRectOffset=vt,ft.default=void 0;var pt=function(){function e(e){this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=null,this.result=null,this.endResult=null,this.edges=void 0,this.interaction=void 0,this.interaction=e,this.result=ht()}var t=e.prototype;return t.start=function(e,t){var n=e.phase,i=this.interaction,r=function(e){var t=e.interactable.options[e.prepared.name],n=t.modifiers;return n&&n.length?n:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(e){var n=t[e];return n&&n.enabled&&{options:n,methods:n._methods}})).filter((function(e){return!!e}))}(i);this.prepareStates(r),this.edges=(0,O.default)({},i.edges),this.startOffset=vt(i.rect,t),this.startDelta={x:0,y:0};var o={phase:n,pageCoords:t,preEnd:!1};return this.result=ht(),this.startAll(o),this.result=this.setAll(o)},t.fillArg=function(e){var t=this.interaction;e.interaction=t,e.interactable=t.interactable,e.element=t.element,e.rect=e.rect||t.rect,e.edges=this.edges,e.startOffset=this.startOffset},t.startAll=function(e){this.fillArg(e);for(var t=0;t<this.states.length;t++){var n=this.states[t];n.methods.start&&(e.state=n,n.methods.start(e))}},t.setAll=function(e){this.fillArg(e);var t=e.phase,n=e.preEnd,i=e.skipModifiers,r=e.rect;e.coords=(0,O.default)({},e.pageCoords),e.rect=(0,O.default)({},r);for(var o=i?this.states.slice(i):this.states,a=ht(e.coords,e.rect),s=0;s<o.length;s++){var l=o[s],c=l.options,u=(0,O.default)({},e.coords),d=null;l.methods.set&&this.shouldDo(c,n,t)&&(e.state=l,d=l.methods.set(e),M.addEdges(this.interaction.edges,e.rect,{x:e.coords.x-u.x,y:e.coords.y-u.y})),a.eventProps.push(d)}a.delta.x=e.coords.x-e.pageCoords.x,a.delta.y=e.coords.y-e.pageCoords.y,a.rectDelta.left=e.rect.left-r.left,a.rectDelta.right=e.rect.right-r.right,a.rectDelta.top=e.rect.top-r.top,a.rectDelta.bottom=e.rect.bottom-r.bottom;var f=this.result.coords,p=this.result.rect;if(f&&p){var h=a.rect.left!==p.left||a.rect.right!==p.right||a.rect.top!==p.top||a.rect.bottom!==p.bottom;a.changed=h||f.x!==a.coords.x||f.y!==a.coords.y}return a},t.applyToInteraction=function(e){var t=this.interaction,n=e.phase,i=t.coords.cur,r=t.coords.start,o=this.result,a=this.startDelta,s=o.delta;"start"===n&&(0,O.default)(this.startDelta,o.delta);for(var l=[[r,a],[i,s]],c=0;c<l.length;c++){var u=l[c],d=u[0],f=u[1];d.page.x+=f.x,d.page.y+=f.y,d.client.x+=f.x,d.client.y+=f.y}var p=this.result.rectDelta,h=e.rect||t.rect;h.left+=p.left,h.right+=p.right,h.top+=p.top,h.bottom+=p.bottom,h.width=h.right-h.left,h.height=h.bottom-h.top},t.setAndApply=function(e){var t=this.interaction,n=e.phase,i=e.preEnd,r=e.skipModifiers,o=this.setAll({preEnd:i,phase:n,pageCoords:e.modifiedCoords||t.coords.cur.page});if(this.result=o,!o.changed&&(!r||r<this.states.length)&&t.interacting())return!1;if(e.modifiedCoords){var a=t.coords.cur.page,s={x:e.modifiedCoords.x-a.x,y:e.modifiedCoords.y-a.y};o.coords.x+=s.x,o.coords.y+=s.y,o.delta.x+=s.x,o.delta.y+=s.y}this.applyToInteraction(e)},t.beforeEnd=function(e){var t=e.interaction,n=e.event,i=this.states;if(i&&i.length){for(var r=!1,o=0;o<i.length;o++){var a=i[o];e.state=a;var s=a.options,l=a.methods,c=l.beforeEnd&&l.beforeEnd(e);if(c)return this.endResult=c,!1;r=r||!r&&this.shouldDo(s,!0,e.phase,!0)}r&&t.move({event:n,preEnd:!0})}},t.stop=function(e){var t=e.interaction;if(this.states&&this.states.length){var n=(0,O.default)({states:this.states,interactable:t.interactable,element:t.element,rect:null},e);this.fillArg(n);for(var i=0;i<this.states.length;i++){var r=this.states[i];n.state=r,r.methods.stop&&r.methods.stop(n)}this.states=null,this.endResult=null}},t.prepareStates=function(e){this.states=[];for(var t=0;t<e.length;t++){var n=e[t],i=n.options,r=n.methods,o=n.name;this.states.push({options:i,methods:r,index:t,name:o})}return this.states},t.restoreInteractionCoords=function(e){var t=e.interaction,n=t.coords,i=t.rect,r=t.modification;if(r.result){for(var o=r.startDelta,a=r.result,s=a.delta,l=a.rectDelta,c=[[n.start,o],[n.cur,s]],u=0;u<c.length;u++){var d=c[u],f=d[0],p=d[1];f.page.x-=p.x,f.page.y-=p.y,f.client.x-=p.x,f.client.y-=p.y}i.left-=l.left,i.right-=l.right,i.top-=l.top,i.bottom-=l.bottom}},t.shouldDo=function(e,t,n,i){return!(!e||!1===e.enabled||i&&!e.endOnly||e.endOnly&&!t||"start"===n&&!e.setStart)},t.copyFrom=function(e){this.startOffset=e.startOffset,this.startDelta=e.startDelta,this.edges=e.edges,this.states=e.states.map((function(e){return(0,dt.default)(e)})),this.result=ht((0,O.default)({},e.result.coords),(0,O.default)({},e.result.rect))},t.destroy=function(){for(var e in this)this[e]=null},e}();function ht(e,t){return{rect:t,coords:e,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function vt(e,t){return e?{left:t.x-e.left,top:t.y-e.top,right:e.right-t.x,bottom:e.bottom-t.y}:{left:0,top:0,right:0,bottom:0}}ft.default=pt;var mt={};function gt(e){var t=e.iEvent,n=e.interaction.modification.result;n&&(t.modifiers=n.eventProps)}Object.defineProperty(mt,"__esModule",{value:!0}),mt.makeModifier=function(e,t){var n=e.defaults,i={start:e.start,set:e.set,beforeEnd:e.beforeEnd,stop:e.stop},r=function(e){var r=e||{};for(var o in r.enabled=!1!==r.enabled,n)o in r||(r[o]=n[o]);var a={options:r,methods:i,name:t,enable:function(){return r.enabled=!0,a},disable:function(){return r.enabled=!1,a}};return a};return t&&"string"==typeof t&&(r._defaults=n,r._methods=i),r},mt.addEventModifiers=gt,mt.default=void 0;var yt={id:"modifiers/base",before:["actions"],install:function(e){e.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(e){var t=e.interaction;t.modification=new ft.default(t)},"interactions:before-action-start":function(e){var t=e.interaction.modification;t.start(e,e.interaction.coords.start.page),e.interaction.edges=t.edges,t.applyToInteraction(e)},"interactions:before-action-move":function(e){return e.interaction.modification.setAndApply(e)},"interactions:before-action-end":function(e){return e.interaction.modification.beforeEnd(e)},"interactions:action-start":gt,"interactions:action-move":gt,"interactions:action-end":gt,"interactions:after-action-start":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:after-action-move":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:stop":function(e){return e.interaction.modification.stop(e)}}};mt.default=yt;var bt={};Object.defineProperty(bt,"__esModule",{value:!0}),bt.defaults=void 0,bt.defaults={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}};var xt={};Object.defineProperty(xt,"__esModule",{value:!0}),xt.InteractEvent=void 0;var wt=function(e){var t,n;function i(t,n,i,r,o,a,s){var l;(l=e.call(this,t)||this).target=void 0,l.currentTarget=void 0,l.relatedTarget=null,l.screenX=void 0,l.screenY=void 0,l.button=void 0,l.buttons=void 0,l.ctrlKey=void 0,l.shiftKey=void 0,l.altKey=void 0,l.metaKey=void 0,l.page=void 0,l.client=void 0,l.delta=void 0,l.rect=void 0,l.x0=void 0,l.y0=void 0,l.t0=void 0,l.dt=void 0,l.duration=void 0,l.clientX0=void 0,l.clientY0=void 0,l.velocity=void 0,l.speed=void 0,l.swipe=void 0,l.timeStamp=void 0,l.dragEnter=void 0,l.dragLeave=void 0,l.axes=void 0,l.preEnd=void 0,o=o||t.element;var c=t.interactable,u=(c&&c.options||bt.defaults).deltaSource,d=(0,F.default)(c,o,i),f="start"===r,p="end"===r,h=f?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(l):t.prevEvent,v=f?t.coords.start:p?{page:h.page,client:h.client,timeStamp:t.coords.cur.timeStamp}:t.coords.cur;return l.page=(0,O.default)({},v.page),l.client=(0,O.default)({},v.client),l.rect=(0,O.default)({},t.rect),l.timeStamp=v.timeStamp,p||(l.page.x-=d.x,l.page.y-=d.y,l.client.x-=d.x,l.client.y-=d.y),l.ctrlKey=n.ctrlKey,l.altKey=n.altKey,l.shiftKey=n.shiftKey,l.metaKey=n.metaKey,l.button=n.button,l.buttons=n.buttons,l.target=o,l.currentTarget=o,l.preEnd=a,l.type=s||i+(r||""),l.interactable=c,l.t0=f?t.pointers[t.pointers.length-1].downTime:h.t0,l.x0=t.coords.start.page.x-d.x,l.y0=t.coords.start.page.y-d.y,l.clientX0=t.coords.start.client.x-d.x,l.clientY0=t.coords.start.client.y-d.y,l.delta=f||p?{x:0,y:0}:{x:l[u].x-h[u].x,y:l[u].y-h[u].y},l.dt=t.coords.delta.timeStamp,l.duration=l.timeStamp-l.t0,l.velocity=(0,O.default)({},t.coords.velocity[u]),l.speed=(0,A.default)(l.velocity.x,l.velocity.y),l.swipe=p||"inertiastart"===r?l.getSwipe():null,l}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r.getSwipe=function(){var e=this._interaction;if(e.prevEvent.speed<600||this.timeStamp-e.prevEvent.timeStamp>150)return null;var t=180*Math.atan2(e.prevEvent.velocityY,e.prevEvent.velocityX)/Math.PI;t<0&&(t+=360);var n=112.5<=t&&t<247.5,i=202.5<=t&&t<337.5;return{up:i,down:!i&&22.5<=t&&t<157.5,left:n,right:!n&&(292.5<=t||t<67.5),angle:t,speed:e.prevEvent.speed,velocity:{x:e.prevEvent.velocityX,y:e.prevEvent.velocityY}}},r.preventDefault=function(){},r.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},r.stopPropagation=function(){this.propagationStopped=!0},i}(X.BaseEvent);xt.InteractEvent=wt,Object.defineProperties(wt.prototype,{pageX:{get:function(){return this.page.x},set:function(e){this.page.x=e}},pageY:{get:function(){return this.page.y},set:function(e){this.page.y=e}},clientX:{get:function(){return this.client.x},set:function(e){this.client.x=e}},clientY:{get:function(){return this.client.y},set:function(e){this.client.y=e}},dx:{get:function(){return this.delta.x},set:function(e){this.delta.x=e}},dy:{get:function(){return this.delta.y},set:function(e){this.delta.y=e}},velocityX:{get:function(){return this.velocity.x},set:function(e){this.velocity.x=e}},velocityY:{get:function(){return this.velocity.y},set:function(e){this.velocity.y=e}}});var Et={};Object.defineProperty(Et,"__esModule",{value:!0}),Et.PointerInfo=void 0,Et.PointerInfo=function(e,t,n,i,r){this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=e,this.pointer=t,this.event=n,this.downTime=i,this.downTarget=r};var _t,St,kt={};Object.defineProperty(kt,"__esModule",{value:!0}),Object.defineProperty(kt,"PointerInfo",{enumerable:!0,get:function(){return Et.PointerInfo}}),kt.default=kt.Interaction=kt._ProxyMethods=kt._ProxyValues=void 0,kt._ProxyValues=_t,function(e){e.interactable="",e.element="",e.prepared="",e.pointerIsDown="",e.pointerWasMoved="",e._proxy=""}(_t||(kt._ProxyValues=_t={})),kt._ProxyMethods=St,function(e){e.start="",e.move="",e.end="",e.stop="",e.interacting=""}(St||(kt._ProxyMethods=St={}));var Pt=0,Tt=function(){var e;function t(e){var t=this,n=e.pointerType,i=e.scopeFire;this.interactable=null,this.element=null,this.rect=void 0,this._rects=void 0,this.edges=void 0,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=null,this.simulation=null,this.doMove=(0,Me.warnOnce)((function(e){this.move(e)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:U.newCoords(),prev:U.newCoords(),cur:U.newCoords(),delta:U.newCoords(),velocity:U.newCoords()},this._id=Pt++,this._scopeFire=i,this.pointerType=n;var r=this;this._proxy={};var o=function(e){Object.defineProperty(t._proxy,e,{get:function(){return r[e]}})};for(var a in _t)o(a);var s=function(e){Object.defineProperty(t._proxy,e,{value:function(){return r[e].apply(r,arguments)}})};for(var l in St)s(l);this._scopeFire("interactions:new",{interaction:this})}(e=[{key:"pointerMoveTolerance",get:function(){return 1}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(t.prototype,e);var n=t.prototype;return n.pointerDown=function(e,t,n){var i=this.updatePointer(e,t,n,!0),r=this.pointers[i];this._scopeFire("interactions:down",{pointer:e,event:t,eventTarget:n,pointerIndex:i,pointerInfo:r,type:"down",interaction:this})},n.start=function(e,t,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===e.name?2:1)||!t.options[e.name].enabled)&&((0,Me.copyAction)(this.prepared,e),this.interactable=t,this.element=n,this.rect=t.getRect(n),this.edges=this.prepared.edges?(0,O.default)({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)},n.pointerMove=function(e,t,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(e,t,n,!1);var i,r,o=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(i=this.coords.cur.client.x-this.coords.start.client.x,r=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=(0,A.default)(i,r)>this.pointerMoveTolerance);var a=this.getPointerIndex(e),s={pointer:e,pointerIndex:a,pointerInfo:this.pointers[a],event:t,type:"move",eventTarget:n,dx:i,dy:r,duplicate:o,interaction:this};o||U.setCoordVelocity(this.coords.velocity,this.coords.delta),this._scopeFire("interactions:move",s),o||this.simulation||(this.interacting()&&(s.type=null,this.move(s)),this.pointerWasMoved&&U.copyCoords(this.coords.prev,this.coords.cur))},n.move=function(e){e&&e.event||U.setZeroCoords(this.coords.delta),(e=(0,O.default)({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},e||{})).phase="move",this._doPhase(e)},n.pointerUp=function(e,t,n,i){var r=this.getPointerIndex(e);-1===r&&(r=this.updatePointer(e,t,n,!1));var o=/cancel$/i.test(t.type)?"cancel":"up";this._scopeFire("interactions:"+o,{pointer:e,pointerIndex:r,pointerInfo:this.pointers[r],event:t,eventTarget:n,type:o,curEventTarget:i,interaction:this}),this.simulation||this.end(t),this.removePointer(e,t)},n.documentBlur=function(e){this.end(e),this._scopeFire("interactions:blur",{event:e,type:"blur",interaction:this})},n.end=function(e){var t;this._ending=!0,e=e||this._latestPointer.event,this.interacting()&&(t=this._doPhase({event:e,interaction:this,phase:"end"})),this._ending=!1,!0===t&&this.stop()},n.currentAction=function(){return this._interacting?this.prepared.name:null},n.interacting=function(){return this._interacting},n.stop=function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null},n.getPointerIndex=function(e){var t=U.getPointerId(e);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:V.findIndex(this.pointers,(function(e){return e.id===t}))},n.getPointerInfo=function(e){return this.pointers[this.getPointerIndex(e)]},n.updatePointer=function(e,t,n,i){var r=U.getPointerId(e),o=this.getPointerIndex(e),a=this.pointers[o];return i=!1!==i&&(i||/(down|start)$/i.test(t.type)),a?a.pointer=e:(a=new Et.PointerInfo(r,e,t,null,null),o=this.pointers.length,this.pointers.push(a)),U.setCoords(this.coords.cur,this.pointers.map((function(e){return e.pointer})),this._now()),U.setCoordDeltas(this.coords.delta,this.coords.prev,this.coords.cur),i&&(this.pointerIsDown=!0,a.downTime=this.coords.cur.timeStamp,a.downTarget=n,U.pointerExtend(this.downPointer,e),this.interacting()||(U.copyCoords(this.coords.start,this.coords.cur),U.copyCoords(this.coords.prev,this.coords.cur),this.downEvent=t,this.pointerWasMoved=!1)),this._updateLatestPointer(e,t,n),this._scopeFire("interactions:update-pointer",{pointer:e,event:t,eventTarget:n,down:i,pointerInfo:a,pointerIndex:o,interaction:this}),o},n.removePointer=function(e,t){var n=this.getPointerIndex(e);if(-1!==n){var i=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:e,event:t,eventTarget:null,pointerIndex:n,pointerInfo:i,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}},n._updateLatestPointer=function(e,t,n){this._latestPointer.pointer=e,this._latestPointer.event=t,this._latestPointer.eventTarget=n},n.destroy=function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null},n._createPreparedEvent=function(e,t,n,i){return new xt.InteractEvent(this,e,this.prepared.name,t,this.element,n,i)},n._fireEvent=function(e){this.interactable.fire(e),(!this.prevEvent||e.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=e)},n._doPhase=function(e){var t=e.event,n=e.phase,i=e.preEnd,r=e.type,o=this.rect;if(o&&"move"===n&&(M.addEdges(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top),!1===this._scopeFire("interactions:before-action-"+n,e))return!1;var a=e.iEvent=this._createPreparedEvent(t,n,i,r);return this._scopeFire("interactions:action-"+n,e),"start"===n&&(this.prevEvent=a),this._fireEvent(a),this._scopeFire("interactions:after-action-"+n,e),!0},n._now=function(){return Date.now()},t}();kt.Interaction=Tt;var Ct=Tt;kt.default=Ct;var Ot={};function Mt(e){e.pointerIsDown&&(Dt(e.coords.cur,e.offset.total),e.offset.pending.x=0,e.offset.pending.y=0)}function zt(e){Ft(e.interaction)}function Ft(e){if(!function(e){return!(!e.offset.pending.x&&!e.offset.pending.y)}(e))return!1;var t=e.offset.pending;return Dt(e.coords.cur,t),Dt(e.coords.delta,t),M.addEdges(e.edges,e.rect,t),t.x=0,t.y=0,!0}function It(e){var t=e.x,n=e.y;this.offset.pending.x+=t,this.offset.pending.y+=n,this.offset.total.x+=t,this.offset.total.y+=n}function Dt(e,t){var n=e.page,i=e.client,r=t.x,o=t.y;n.x+=r,n.y+=o,i.x+=r,i.y+=o}Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.addTotal=Mt,Ot.applyPending=Ft,Ot.default=void 0,kt._ProxyMethods.offsetBy="";var At={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(e){e.Interaction.prototype.offsetBy=It},listeners:{"interactions:new":function(e){e.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(e){return Mt(e.interaction)},"interactions:before-action-start":zt,"interactions:before-action-move":zt,"interactions:before-action-end":function(e){var t=e.interaction;if(Ft(t))return t.move({offset:!0}),t.end(),!1},"interactions:stop":function(e){var t=e.interaction;t.offset.total.x=0,t.offset.total.y=0,t.offset.pending.x=0,t.offset.pending.y=0}}};Ot.default=At;var jt={};Object.defineProperty(jt,"__esModule",{value:!0}),jt.default=jt.InertiaState=void 0;var Rt=function(){function e(e){this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=null,this.modifierCount=0,this.modifierArg=null,this.startCoords=null,this.t0=0,this.v0=0,this.te=0,this.targetOffset=null,this.modifiedOffset=null,this.currentOffset=null,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=null,this.interaction=void 0,this.interaction=e}var t=e.prototype;return t.start=function(e){var t=this.interaction,n=Lt(t);if(!n||!n.enabled)return!1;var i=t.coords.velocity.client,r=(0,A.default)(i.x,i.y),o=this.modification||(this.modification=new ft.default(t));if(o.copyFrom(t.modification),this.t0=t._now(),this.allowResume=n.allowResume,this.v0=r,this.currentOffset={x:0,y:0},this.startCoords=t.coords.cur.page,this.modifierArg={interaction:t,interactable:t.interactable,element:t.element,rect:t.rect,edges:t.edges,pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"},this.t0-t.coords.cur.timeStamp<50&&r>n.minSpeed&&r>n.endSpeed)this.startInertia();else{if(o.result=o.setAll(this.modifierArg),!o.result.changed)return!1;this.startSmoothEnd()}return t.modification.result.rect=null,t.offsetBy(this.targetOffset),t._doPhase({interaction:t,event:e,phase:"inertiastart"}),t.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),t.modification.result.rect=null,this.active=!0,t.simulation=this,!0},t.startInertia=function(){var e=this,t=this.interaction.coords.velocity.client,n=Lt(this.interaction),i=n.resistance,r=-Math.log(n.endSpeed/this.v0)/i;this.targetOffset={x:(t.x-r)/i,y:(t.y-r)/i},this.te=r,this.lambda_v0=i/this.v0,this.one_ve_v0=1-n.endSpeed/this.v0;var o=this.modification,a=this.modifierArg;a.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},o.result=o.setAll(a),o.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+o.result.delta.x,y:this.targetOffset.y+o.result.delta.y}),this.onNextFrame((function(){return e.inertiaTick()}))},t.startSmoothEnd=function(){var e=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return e.smoothEndTick()}))},t.onNextFrame=function(e){var t=this;this.timeout=xe.default.request((function(){t.active&&e()}))},t.inertiaTick=function(){var e,t,n,i,r,o=this,a=this.interaction,s=Lt(a).resistance,l=(a._now()-this.t0)/1e3;if(l<this.te){var c,u=1-(Math.exp(-s*l)-this.lambda_v0)/this.one_ve_v0;this.isModified?(e=this.targetOffset.x,t=this.targetOffset.y,n=this.modifiedOffset.x,i=this.modifiedOffset.y,c={x:Ut(r=u,0,e,n),y:Ut(r,0,t,i)}):c={x:this.targetOffset.x*u,y:this.targetOffset.y*u};var d={x:c.x-this.currentOffset.x,y:c.y-this.currentOffset.y};this.currentOffset.x+=d.x,this.currentOffset.y+=d.y,a.offsetBy(d),a.move(),this.onNextFrame((function(){return o.inertiaTick()}))}else a.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()},t.smoothEndTick=function(){var e=this,t=this.interaction,n=t._now()-this.t0,i=Lt(t).smoothEndDuration;if(n<i){var r={x:$t(n,0,this.targetOffset.x,i),y:$t(n,0,this.targetOffset.y,i)},o={x:r.x-this.currentOffset.x,y:r.y-this.currentOffset.y};this.currentOffset.x+=o.x,this.currentOffset.y+=o.y,t.offsetBy(o),t.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return e.smoothEndTick()}))}else t.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()},t.resume=function(e){var t=e.pointer,n=e.event,i=e.eventTarget,r=this.interaction;r.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),r.updatePointer(t,n,i,!0),r._doPhase({interaction:r,event:n,phase:"resume"}),(0,U.copyCoords)(r.coords.prev,r.coords.cur),this.stop()},t.end=function(){this.interaction.move(),this.interaction.end(),this.stop()},t.stop=function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,xe.default.cancel(this.timeout)},e}();function Lt(e){var t=e.interactable,n=e.prepared;return t&&t.options&&n.name&&t.options[n.name].inertia}function Ut(e,t,n,i){var r=1-e;return r*r*t+2*r*e*n+e*e*i}function $t(e,t,n,i){return-n*(e/=i)*(e-2)+t}jt.InertiaState=Rt;var Wt={id:"inertia",before:["modifiers","actions"],install:function(e){var t=e.defaults;e.usePlugin(Ot.default),e.usePlugin(mt.default),e.actions.phases.inertiastart=!0,e.actions.phases.resume=!0,t.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(e){var t=e.interaction;t.inertia=new Rt(t)},"interactions:before-action-end":function(e){var t=e.interaction,n=e.event;return(!t._interacting||t.simulation||!t.inertia.start(n))&&null},"interactions:down":function(e){var t=e.interaction,n=e.eventTarget,i=t.inertia;if(i.active)for(var r=n;o.default.element(r);){if(r===t.element){i.resume(e);break}r=E.parentNode(r)}},"interactions:stop":function(e){var t=e.interaction.inertia;t.active&&t.stop()},"interactions:before-action-resume":function(e){var t=e.interaction.modification;t.stop(e),t.start(e,e.interaction.coords.cur.page),t.applyToInteraction(e)},"interactions:before-action-inertiastart":function(e){return e.interaction.modification.setAndApply(e)},"interactions:action-resume":mt.addEventModifiers,"interactions:action-inertiastart":mt.addEventModifiers,"interactions:after-action-inertiastart":function(e){return e.interaction.modification.restoreInteractionCoords(e)},"interactions:after-action-resume":function(e){return e.interaction.modification.restoreInteractionCoords(e)}}};jt.default=Wt;var Nt={};function Ht(e,t){for(var n=0;n<t.length;n++){var i=t[n];if(e.immediatePropagationStopped)break;i(e)}}Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.Eventable=void 0;var Bt=function(){function e(e){this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=(0,O.default)({},e||{})}var t=e.prototype;return t.fire=function(e){var t,n=this.global;(t=this.types[e.type])&&Ht(e,t),!e.propagationStopped&&n&&(t=n[e.type])&&Ht(e,t)},t.on=function(e,t){var n=(0,I.default)(e,t);for(e in n)this.types[e]=V.merge(this.types[e]||[],n[e])},t.off=function(e,t){var n=(0,I.default)(e,t);for(e in n){var i=this.types[e];if(i&&i.length)for(var r=0;r<n[e].length;r++){var o=n[e][r],a=i.indexOf(o);-1!==a&&i.splice(a,1)}}},t.getRect=function(e){return null},e}();Nt.Eventable=Bt;var qt={};Object.defineProperty(qt,"__esModule",{value:!0}),qt.default=function(e,t){if(t.phaselessTypes[e])return!0;for(var n in t.map)if(0===e.indexOf(n)&&e.substr(n.length)in t.phases)return!0;return!1};var Xt={};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.Interactable=void 0;var Yt=function(){var e;function n(e,n,i,r){this.options=void 0,this._actions=void 0,this.target=void 0,this.events=new Nt.Eventable,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._rectChecker=void 0,this._actions=n.actions,this.target=e,this._context=n.context||i,this._win=(0,t.getWindow)((0,E.trySelector)(e)?this._context:e),this._doc=this._win.document,this._scopeEvents=r,this.set(n)}(e=[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(n.prototype,e);var i=n.prototype;return i.setOnEvents=function(e,t){return o.default.func(t.onstart)&&this.on(e+"start",t.onstart),o.default.func(t.onmove)&&this.on(e+"move",t.onmove),o.default.func(t.onend)&&this.on(e+"end",t.onend),o.default.func(t.oninertiastart)&&this.on(e+"inertiastart",t.oninertiastart),this},i.updatePerActionListeners=function(e,t,n){(o.default.array(t)||o.default.object(t))&&this.off(e,t),(o.default.array(n)||o.default.object(n))&&this.on(e,n)},i.setPerAction=function(e,t){var n=this._defaults;for(var i in t){var r=i,a=this.options[e],s=t[r];"listeners"===r&&this.updatePerActionListeners(e,a.listeners,s),o.default.array(s)?a[r]=V.from(s):o.default.plainObject(s)?(a[r]=(0,O.default)(a[r]||{},(0,dt.default)(s)),o.default.object(n.perAction[r])&&"enabled"in n.perAction[r]&&(a[r].enabled=!1!==s.enabled)):o.default.bool(s)&&o.default.object(n.perAction[r])?a[r].enabled=s:a[r]=s}},i.getRect=function(e){return e=e||(o.default.element(this.target)?this.target:null),o.default.string(this.target)&&(e=e||this._context.querySelector(this.target)),(0,E.getElementRect)(e)},i.rectChecker=function(e){var t=this;return o.default.func(e)?(this._rectChecker=e,this.getRect=function(e){var n=(0,O.default)({},t._rectChecker(e));return"width"in n||(n.width=n.right-n.left,n.height=n.bottom-n.top),n},this):null===e?(delete this.getRect,delete this._rectChecker,this):this.getRect},i._backCompatOption=function(e,t){if((0,E.trySelector)(t)||o.default.object(t)){for(var n in this.options[e]=t,this._actions.map)this.options[n][e]=t;return this}return this.options[e]},i.origin=function(e){return this._backCompatOption("origin",e)},i.deltaSource=function(e){return"page"===e||"client"===e?(this.options.deltaSource=e,this):this.options.deltaSource},i.context=function(){return this._context},i.inContext=function(e){return this._context===e.ownerDocument||(0,E.nodeContains)(this._context,e)},i.testIgnoreAllow=function(e,t,n){return!this.testIgnore(e.ignoreFrom,t,n)&&this.testAllow(e.allowFrom,t,n)},i.testAllow=function(e,t,n){return!e||!!o.default.element(n)&&(o.default.string(e)?(0,E.matchesUpTo)(n,e,t):!!o.default.element(e)&&(0,E.nodeContains)(e,n))},i.testIgnore=function(e,t,n){return!(!e||!o.default.element(n))&&(o.default.string(e)?(0,E.matchesUpTo)(n,e,t):!!o.default.element(e)&&(0,E.nodeContains)(e,n))},i.fire=function(e){return this.events.fire(e),this},i._onOff=function(e,t,n,i){o.default.object(t)&&!o.default.array(t)&&(i=n,n=null);var r="on"===e?"add":"remove",a=(0,I.default)(t,n);for(var s in a){"wheel"===s&&(s=b.default.wheelEvent);for(var l=0;l<a[s].length;l++){var c=a[s][l];(0,qt.default)(s,this._actions)?this.events[e](s,c):o.default.string(this.target)?this._scopeEvents[r+"Delegate"](this.target,this._context,s,c,i):this._scopeEvents[r](this.target,s,c,i)}}return this},i.on=function(e,t,n){return this._onOff("on",e,t,n)},i.off=function(e,t,n){return this._onOff("off",e,t,n)},i.set=function(e){var t=this._defaults;for(var n in o.default.object(e)||(e={}),this.options=(0,dt.default)(t.base),this._actions.methodDict){var i=n,r=this._actions.methodDict[i];this.options[i]={},this.setPerAction(i,(0,O.default)((0,O.default)({},t.perAction),t.actions[i])),this[r](e[i])}for(var a in e)o.default.func(this[a])&&this[a](e[a]);return this},i.unset=function(){if(o.default.string(this.target))for(var e in this._scopeEvents.delegatedEvents)for(var t=this._scopeEvents.delegatedEvents[e],n=t.length-1;n>=0;n--){var i=t[n],r=i.selector,a=i.context,s=i.listeners;r===this.target&&a===this._context&&t.splice(n,1);for(var l=s.length-1;l>=0;l--)this._scopeEvents.removeDelegate(this.target,this._context,e,s[l][0],s[l][1])}else this._scopeEvents.remove(this.target,"all")},n}();Xt.Interactable=Yt;var Vt={};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.InteractableSet=void 0;var Gt=function(){function e(e){var t=this;this.list=[],this.selectorMap={},this.scope=void 0,this.scope=e,e.addListeners({"interactable:unset":function(e){var n=e.interactable,i=n.target,r=n._context,a=o.default.string(i)?t.selectorMap[i]:i[t.scope.id],s=V.findIndex(a,(function(e){return e.context===r}));a[s]&&(a[s].context=null,a[s].interactable=null),a.splice(s,1)}})}var t=e.prototype;return t.new=function(e,t){t=(0,O.default)(t||{},{actions:this.scope.actions});var n=new this.scope.Interactable(e,t,this.scope.document,this.scope.events),i={context:n._context,interactable:n};return this.scope.addDocument(n._doc),this.list.push(n),o.default.string(e)?(this.selectorMap[e]||(this.selectorMap[e]=[]),this.selectorMap[e].push(i)):(n.target[this.scope.id]||Object.defineProperty(e,this.scope.id,{value:[],configurable:!0}),e[this.scope.id].push(i)),this.scope.fire("interactable:new",{target:e,options:t,interactable:n,win:this.scope._win}),n},t.get=function(e,t){var n=t&&t.context||this.scope.document,i=o.default.string(e),r=i?this.selectorMap[e]:e[this.scope.id];if(!r)return null;var a=V.find(r,(function(t){return t.context===n&&(i||t.interactable.inContext(e))}));return a&&a.interactable},t.forEachMatch=function(e,t){for(var n=0;n<this.list.length;n++){var i=this.list[n],r=void 0;if((o.default.string(i.target)?o.default.element(e)&&E.matchesSelector(e,i.target):e===i.target)&&i.inContext(e)&&(r=t(i)),void 0!==r)return r}},e}();Vt.InteractableSet=Gt;var Qt={};Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.default=void 0;var Kt=function(){function e(e){this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=e,(0,j.default)(this,e)}var t=e.prototype;return t.preventOriginalDefault=function(){this.originalEvent.preventDefault()},t.stopPropagation=function(){this.originalEvent.stopPropagation()},t.stopImmediatePropagation=function(){this.originalEvent.stopImmediatePropagation()},e}();function Zt(e){if(!o.default.object(e))return{capture:!!e,passive:!1};var t=(0,O.default)({},e);return t.capture=!!e.capture,t.passive=!!e.passive,t}var Jt={id:"events",install:function(e){var t=[],n={},i=[],r={add:a,remove:s,addDelegate:function(e,t,r,o,s){var u=Zt(s);if(!n[r]){n[r]=[];for(var d=0;d<i.length;d++){var f=i[d];a(f,r,l),a(f,r,c,!0)}}var p=n[r],h=V.find(p,(function(n){return n.selector===e&&n.context===t}));h||(h={selector:e,context:t,listeners:[]},p.push(h)),h.listeners.push([o,u])},removeDelegate:function(e,t,i,r,o){var a,u=Zt(o),d=n[i],f=!1;if(d)for(a=d.length-1;a>=0;a--){var p=d[a];if(p.selector===e&&p.context===t){for(var h=p.listeners,v=h.length-1;v>=0;v--){var m=h[v],g=m[0],y=m[1],b=y.capture,x=y.passive;if(g===r&&b===u.capture&&x===u.passive){h.splice(v,1),h.length||(d.splice(a,1),s(t,i,l),s(t,i,c,!0)),f=!0;break}}if(f)break}}},delegateListener:l,delegateUseCapture:c,delegatedEvents:n,documents:i,targets:t,supportsOptions:!1,supportsPassive:!1};function a(e,n,i,o){var a=Zt(o),s=V.find(t,(function(t){return t.eventTarget===e}));s||(s={eventTarget:e,events:{}},t.push(s)),s.events[n]||(s.events[n]=[]),e.addEventListener&&!V.contains(s.events[n],i)&&(e.addEventListener(n,i,r.supportsOptions?a:a.capture),s.events[n].push(i))}function s(e,n,i,o){var a=Zt(o),l=V.findIndex(t,(function(t){return t.eventTarget===e})),c=t[l];if(c&&c.events)if("all"!==n){var u=!1,d=c.events[n];if(d){if("all"===i){for(var f=d.length-1;f>=0;f--)s(e,n,d[f],a);return}for(var p=0;p<d.length;p++)if(d[p]===i){e.removeEventListener(n,i,r.supportsOptions?a:a.capture),d.splice(p,1),0===d.length&&(delete c.events[n],u=!0);break}}u&&!Object.keys(c.events).length&&t.splice(l,1)}else for(n in c.events)c.events.hasOwnProperty(n)&&s(e,n,"all")}function l(e,t){for(var i=Zt(t),r=new Kt(e),a=n[e.type],s=U.getEventTargets(e)[0],l=s;o.default.element(l);){for(var c=0;c<a.length;c++){var u=a[c],d=u.selector,f=u.context;if(E.matchesSelector(l,d)&&E.nodeContains(f,s)&&E.nodeContains(f,l)){var p=u.listeners;r.currentTarget=l;for(var h=0;h<p.length;h++){var v=p[h],m=v[0],g=v[1],y=g.capture,b=g.passive;y===i.capture&&b===i.passive&&m(r)}}}l=E.parentNode(l)}}function c(e){return l(e,!0)}return e.document.createElement("div").addEventListener("test",null,{get capture(){return r.supportsOptions=!0},get passive(){return r.supportsPassive=!0}}),e.events=r,r}};Qt.default=Jt;var en={};Object.defineProperty(en,"__esModule",{value:!0}),en.createInteractStatic=function(e){var t=function t(n,i){var r=e.interactables.get(n,i);return r||((r=e.interactables.new(n,i)).events.global=t.globalEvents),r};return t.getPointerAverage=U.pointerAverage,t.getTouchBBox=U.touchBBox,t.getTouchDistance=U.touchDistance,t.getTouchAngle=U.touchAngle,t.getElementRect=E.getElementRect,t.getElementClientRect=E.getElementClientRect,t.matchesSelector=E.matchesSelector,t.closest=E.closest,t.globalEvents={},t.version="1.10.1",t.scope=e,t.use=function(e,t){return this.scope.usePlugin(e,t),this},t.isSet=function(e,t){return!!this.scope.interactables.get(e,t&&t.context)},t.on=function(e,t,n){if(o.default.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),o.default.array(e)){for(var i=0;i<e.length;i++){var r=e[i];this.on(r,t,n)}return this}if(o.default.object(e)){for(var a in e)this.on(a,e[a],t);return this}return(0,qt.default)(e,this.scope.actions)?this.globalEvents[e]?this.globalEvents[e].push(t):this.globalEvents[e]=[t]:this.scope.events.add(this.scope.document,e,t,{options:n}),this},t.off=function(e,t,n){if(o.default.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),o.default.array(e)){for(var i=0;i<e.length;i++){var r=e[i];this.off(r,t,n)}return this}if(o.default.object(e)){for(var a in e)this.off(a,e[a],t);return this}var s;return(0,qt.default)(e,this.scope.actions)?e in this.globalEvents&&-1!==(s=this.globalEvents[e].indexOf(t))&&this.globalEvents[e].splice(s,1):this.scope.events.remove(this.scope.document,e,t,n),this},t.debug=function(){return this.scope},t.supportsTouch=function(){return b.default.supportsTouch},t.supportsPointerEvent=function(){return b.default.supportsPointerEvent},t.stop=function(){for(var e=0;e<this.scope.interactions.list.length;e++)this.scope.interactions.list[e].stop();return this},t.pointerMoveTolerance=function(e){return o.default.number(e)?(this.scope.interactions.pointerMoveTolerance=e,this):this.scope.interactions.pointerMoveTolerance},t.addDocument=function(e,t){this.scope.addDocument(e,t)},t.removeDocument=function(e){this.scope.removeDocument(e)},t};var tn={};Object.defineProperty(tn,"__esModule",{value:!0}),tn.default=void 0;var nn={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(e){for(var t=0;t<nn.methodOrder.length;t++){var n;n=nn.methodOrder[t];var i=nn[n](e);if(i)return i}return null},simulationResume:function(e){var t=e.pointerType,n=e.eventType,i=e.eventTarget,r=e.scope;if(!/down|start/i.test(n))return null;for(var o=0;o<r.interactions.list.length;o++){var a=r.interactions.list[o],s=i;if(a.simulation&&a.simulation.allowResume&&a.pointerType===t)for(;s;){if(s===a.element)return a;s=E.parentNode(s)}}return null},mouseOrPen:function(e){var t,n=e.pointerId,i=e.pointerType,r=e.eventType,o=e.scope;if("mouse"!==i&&"pen"!==i)return null;for(var a=0;a<o.interactions.list.length;a++){var s=o.interactions.list[a];if(s.pointerType===i){if(s.simulation&&!rn(s,n))continue;if(s.interacting())return s;t||(t=s)}}if(t)return t;for(var l=0;l<o.interactions.list.length;l++){var c=o.interactions.list[l];if(!(c.pointerType!==i||/down/i.test(r)&&c.simulation))return c}return null},hasPointer:function(e){for(var t=e.pointerId,n=e.scope,i=0;i<n.interactions.list.length;i++){var r=n.interactions.list[i];if(rn(r,t))return r}return null},idle:function(e){for(var t=e.pointerType,n=e.scope,i=0;i<n.interactions.list.length;i++){var r=n.interactions.list[i];if(1===r.pointers.length){var o=r.interactable;if(o&&(!o.options.gesture||!o.options.gesture.enabled))continue}else if(r.pointers.length>=2)continue;if(!r.interacting()&&t===r.pointerType)return r}return null}};function rn(e,t){return e.pointers.some((function(e){return e.id===t}))}var on=nn;tn.default=on;var an={};Object.defineProperty(an,"__esModule",{value:!0}),an.default=void 0;var sn=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function ln(e,t){return function(n){var i=t.interactions.list,r=U.getPointerType(n),o=U.getEventTargets(n),a=o[0],s=o[1],l=[];if(/^touch/.test(n.type)){t.prevTouchTime=t.now();for(var c=0;c<n.changedTouches.length;c++){var u=n.changedTouches[c],d={pointer:u,pointerId:U.getPointerId(u),pointerType:r,eventType:n.type,eventTarget:a,curEventTarget:s,scope:t},f=cn(d);l.push([d.pointer,d.eventTarget,d.curEventTarget,f])}}else{var p=!1;if(!b.default.supportsPointerEvent&&/mouse/.test(n.type)){for(var h=0;h<i.length&&!p;h++)p="mouse"!==i[h].pointerType&&i[h].pointerIsDown;p=p||t.now()-t.prevTouchTime<500||0===n.timeStamp}if(!p){var v={pointer:n,pointerId:U.getPointerId(n),pointerType:r,eventType:n.type,curEventTarget:s,eventTarget:a,scope:t},m=cn(v);l.push([v.pointer,v.eventTarget,v.curEventTarget,m])}}for(var g=0;g<l.length;g++){var y=l[g],x=y[0],w=y[1],E=y[2];y[3][e](x,n,w,E)}}}function cn(e){var t=e.pointerType,n=e.scope,i={interaction:tn.default.search(e),searchDetails:e};return n.fire("interactions:find",i),i.interaction||n.interactions.new({pointerType:t})}function un(e,t){var n=e.doc,i=e.scope,r=e.options,o=i.interactions.docEvents,a=i.events,s=a[t];for(var l in i.browser.isIOS&&!r.events&&(r.events={passive:!1}),a.delegatedEvents)s(n,l,a.delegateListener),s(n,l,a.delegateUseCapture,!0);for(var c=r&&r.events,u=0;u<o.length;u++){var d=o[u];s(n,d.type,d.listener,c)}}var dn={id:"core/interactions",install:function(e){for(var t={},n=0;n<sn.length;n++){var i=sn[n];t[i]=ln(i,e)}var r,o=b.default.pEventTypes;function a(){for(var t=0;t<e.interactions.list.length;t++){var n=e.interactions.list[t];if(n.pointerIsDown&&"touch"===n.pointerType&&!n._interacting)for(var i=function(){var t=n.pointers[r];e.documents.some((function(e){var n=e.doc;return(0,E.nodeContains)(n,t.downTarget)}))||n.removePointer(t.pointer,t.event)},r=0;r<n.pointers.length;r++)i()}}(r=v.default.PointerEvent?[{type:o.down,listener:a},{type:o.down,listener:t.pointerDown},{type:o.move,listener:t.pointerMove},{type:o.up,listener:t.pointerUp},{type:o.cancel,listener:t.pointerUp}]:[{type:"mousedown",listener:t.pointerDown},{type:"mousemove",listener:t.pointerMove},{type:"mouseup",listener:t.pointerUp},{type:"touchstart",listener:a},{type:"touchstart",listener:t.pointerDown},{type:"touchmove",listener:t.pointerMove},{type:"touchend",listener:t.pointerUp},{type:"touchcancel",listener:t.pointerUp}]).push({type:"blur",listener:function(t){for(var n=0;n<e.interactions.list.length;n++)e.interactions.list[n].documentBlur(t)}}),e.prevTouchTime=0,e.Interaction=function(t){var n,i,r;function o(){return t.apply(this,arguments)||this}return i=t,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i,o.prototype._now=function(){return e.now()},(r=[{key:"pointerMoveTolerance",get:function(){return e.interactions.pointerMoveTolerance},set:function(t){e.interactions.pointerMoveTolerance=t}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(o.prototype,r),o}(kt.default),e.interactions={list:[],new:function(t){t.scopeFire=function(t,n){return e.fire(t,n)};var n=new e.Interaction(t);return e.interactions.list.push(n),n},listeners:t,docEvents:r,pointerMoveTolerance:1},e.usePlugin(Je.default)},listeners:{"scope:add-document":function(e){return un(e,"add")},"scope:remove-document":function(e){return un(e,"remove")},"interactable:unset":function(e,t){for(var n=e.interactable,i=t.interactions.list.length-1;i>=0;i--){var r=t.interactions.list[i];r.interactable===n&&(r.stop(),t.fire("interactions:destroy",{interaction:r}),r.destroy(),t.interactions.list.length>2&&t.interactions.list.splice(i,1))}}},onDocSignal:un,doOnInteractions:ln,methodNames:sn};an.default=dn;var fn={};Object.defineProperty(fn,"__esModule",{value:!0}),fn.initScope=hn,fn.Scope=void 0;var pn=function(){function e(){var e=this;this.id="__interact_scope_"+Math.floor(100*Math.random()),this.isInitialized=!1,this.listenerMaps=[],this.browser=b.default,this.defaults=(0,dt.default)(bt.defaults),this.Eventable=Nt.Eventable,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=(0,en.createInteractStatic)(this),this.InteractEvent=xt.InteractEvent,this.Interactable=void 0,this.interactables=new Vt.InteractableSet(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(t){return e.removeDocument(t.target)};var t=this;this.Interactable=function(e){var n,i;function r(){return e.apply(this,arguments)||this}i=e,(n=r).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var o,a=r.prototype;return a.set=function(n){return e.prototype.set.call(this,n),t.fire("interactable:set",{options:n,interactable:this}),this},a.unset=function(){e.prototype.unset.call(this),t.interactables.list.splice(t.interactables.list.indexOf(this),1),t.fire("interactable:unset",{interactable:this})},(o=[{key:"_defaults",get:function(){return t.defaults}}])&&function(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(r.prototype,o),r}(Xt.Interactable)}var n=e.prototype;return n.addListeners=function(e,t){this.listenerMaps.push({id:t,map:e})},n.fire=function(e,t){for(var n=0;n<this.listenerMaps.length;n++){var i=this.listenerMaps[n].map[e];if(i&&!1===i(t,this,e))return!1}},n.init=function(e){return this.isInitialized?this:hn(this,e)},n.pluginIsInstalled=function(e){return this._plugins.map[e.id]||-1!==this._plugins.list.indexOf(e)},n.usePlugin=function(e,t){if(!this.isInitialized)return this;if(this.pluginIsInstalled(e))return this;if(e.id&&(this._plugins.map[e.id]=e),this._plugins.list.push(e),e.install&&e.install(this,t),e.listeners&&e.before){for(var n=0,i=this.listenerMaps.length,r=e.before.reduce((function(e,t){return e[t]=!0,e[vn(t)]=!0,e}),{});n<i;n++){var o=this.listenerMaps[n].id;if(r[o]||r[vn(o)])break}this.listenerMaps.splice(n,0,{id:e.id,map:e.listeners})}else e.listeners&&this.listenerMaps.push({id:e.id,map:e.listeners});return this},n.addDocument=function(e,n){if(-1!==this.getDocIndex(e))return!1;var i=t.getWindow(e);n=n?(0,O.default)({},n):{},this.documents.push({doc:e,options:n}),this.events.documents.push(e),e!==this.document&&this.events.add(i,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:e,window:i,scope:this,options:n})},n.removeDocument=function(e){var n=this.getDocIndex(e),i=t.getWindow(e),r=this.documents[n].options;this.events.remove(i,"unload",this.onWindowUnload),this.documents.splice(n,1),this.events.documents.splice(n,1),this.fire("scope:remove-document",{doc:e,window:i,scope:this,options:r})},n.getDocIndex=function(e){for(var t=0;t<this.documents.length;t++)if(this.documents[t].doc===e)return t;return-1},n.getDocOptions=function(e){var t=this.getDocIndex(e);return-1===t?null:this.documents[t].options},n.now=function(){return(this.window.Date||Date).now()},e}();function hn(e,n){return e.isInitialized=!0,t.init(n),v.default.init(n),b.default.init(n),xe.default.init(n),e.window=n,e.document=n.document,e.usePlugin(an.default),e.usePlugin(Qt.default),e}function vn(e){return e&&e.replace(/\/.*$/,"")}fn.Scope=pn;var mn={};Object.defineProperty(mn,"__esModule",{value:!0}),mn.init=mn.default=void 0;var gn=new fn.Scope,yn=gn.interactStatic;mn.default=yn;var bn=function(e){return gn.init(e)};mn.init=bn,"object"==("undefined"==typeof window?"undefined":a(window))&&window&&bn(window);var xn={};Object.defineProperty(xn,"__esModule",{value:!0}),xn.default=void 0,xn.default=function(){};var wn={};Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=void 0,wn.default=function(){};var En={};Object.defineProperty(En,"__esModule",{value:!0}),En.default=void 0,En.default=function(e){var t=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(t){var n=t[0],i=t[1];return n in e||i in e})),n=function(n,i){for(var r=e.range,o=e.limits,a=void 0===o?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:o,s=e.offset,l=void 0===s?{x:0,y:0}:s,c={range:r,grid:e,x:null,y:null},u=0;u<t.length;u++){var d=t[u],f=d[0],p=d[1],h=Math.round((n-l.x)/e[f]),v=Math.round((i-l.y)/e[p]);c[f]=Math.max(a.left,Math.min(a.right,h*e[f]+l.x)),c[p]=Math.max(a.top,Math.min(a.bottom,v*e[p]+l.y))}return c};return n.grid=e,n.coordFields=t,n};var _n={};Object.defineProperty(_n,"__esModule",{value:!0}),Object.defineProperty(_n,"edgeTarget",{enumerable:!0,get:function(){return xn.default}}),Object.defineProperty(_n,"elements",{enumerable:!0,get:function(){return wn.default}}),Object.defineProperty(_n,"grid",{enumerable:!0,get:function(){return En.default}});var Sn={};Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.default=void 0;var kn={id:"snappers",install:function(e){var t=e.interactStatic;t.snappers=(0,O.default)(t.snappers||{},_n),t.createSnapGrid=t.snappers.grid}};Sn.default=kn;var Pn={};function Tn(){return(Tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.aspectRatio=Pn.default=void 0;var Cn={start:function(e){var t=e.state,n=e.rect,i=e.edges,r=e.pageCoords,o=t.options.ratio,a=t.options,s=a.equalDelta,l=a.modifiers;"preserve"===o&&(o=n.width/n.height),t.startCoords=(0,O.default)({},r),t.startRect=(0,O.default)({},n),t.ratio=o,t.equalDelta=s;var c=t.linkedEdges={top:i.top||i.left&&!i.bottom,left:i.left||i.top&&!i.right,bottom:i.bottom||i.right&&!i.top,right:i.right||i.bottom&&!i.left};if(t.xIsPrimaryAxis=!(!i.left&&!i.right),t.equalDelta)t.edgeSign=(c.left?1:-1)*(c.top?1:-1);else{var u=t.xIsPrimaryAxis?c.top:c.left;t.edgeSign=u?-1:1}if((0,O.default)(e.edges,c),l&&l.length){var d=new ft.default(e.interaction);d.copyFrom(e.interaction.modification),d.prepareStates(l),t.subModification=d,d.startAll(Tn({},e))}},set:function(e){var t=e.state,n=e.rect,i=e.coords,r=(0,O.default)({},i),o=t.equalDelta?On:Mn;if(o(t,t.xIsPrimaryAxis,i,n),!t.subModification)return null;var a=(0,O.default)({},n);(0,M.addEdges)(t.linkedEdges,a,{x:i.x-r.x,y:i.y-r.y});var s=t.subModification.setAll(Tn(Tn({},e),{},{rect:a,edges:t.linkedEdges,pageCoords:i,prevCoords:i,prevRect:a})),l=s.delta;return s.changed&&(o(t,Math.abs(l.x)>Math.abs(l.y),s.coords,s.rect),(0,O.default)(i,s.coords)),s.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function On(e,t,n){var i=e.startCoords,r=e.edgeSign;t?n.y=i.y+(n.x-i.x)*r:n.x=i.x+(n.y-i.y)*r}function Mn(e,t,n,i){var r=e.startRect,o=e.startCoords,a=e.ratio,s=e.edgeSign;if(t){var l=i.width/a;n.y=o.y+(l-r.height)*s}else{var c=i.height*a;n.x=o.x+(c-r.width)*s}}Pn.aspectRatio=Cn;var zn=(0,mt.makeModifier)(Cn,"aspectRatio");Pn.default=zn;var Fn={};Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.default=void 0;var In=function(){};In._defaults={};var Dn=In;Fn.default=Dn;var An={};Object.defineProperty(An,"__esModule",{value:!0}),Object.defineProperty(An,"default",{enumerable:!0,get:function(){return Fn.default}});var jn={};function Rn(e,t,n){return o.default.func(e)?M.resolveRectLike(e,t.interactable,t.element,[n.x,n.y,t]):M.resolveRectLike(e,t.interactable,t.element)}Object.defineProperty(jn,"__esModule",{value:!0}),jn.getRestrictionRect=Rn,jn.restrict=jn.default=void 0;var Ln={start:function(e){var t=e.rect,n=e.startOffset,i=e.state,r=e.interaction,o=e.pageCoords,a=i.options,s=a.elementRect,l=(0,O.default)({left:0,top:0,right:0,bottom:0},a.offset||{});if(t&&s){var c=Rn(a.restriction,r,o);if(c){var u=c.right-c.left-t.width,d=c.bottom-c.top-t.height;u<0&&(l.left+=u,l.right+=u),d<0&&(l.top+=d,l.bottom+=d)}l.left+=n.left-t.width*s.left,l.top+=n.top-t.height*s.top,l.right+=n.right-t.width*(1-s.right),l.bottom+=n.bottom-t.height*(1-s.bottom)}i.offset=l},set:function(e){var t=e.coords,n=e.interaction,i=e.state,r=i.options,o=i.offset,a=Rn(r.restriction,n,t);if(a){var s=M.xywhToTlbr(a);t.x=Math.max(Math.min(s.right-o.right,t.x),s.left+o.left),t.y=Math.max(Math.min(s.bottom-o.bottom,t.y),s.top+o.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}};jn.restrict=Ln;var Un=(0,mt.makeModifier)(Ln,"restrict");jn.default=Un;var $n={};Object.defineProperty($n,"__esModule",{value:!0}),$n.restrictEdges=$n.default=void 0;var Wn={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Nn={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Hn(e,t){for(var n=["top","left","bottom","right"],i=0;i<n.length;i++){var r=n[i];r in e||(e[r]=t[r])}return e}var Bn={noInner:Wn,noOuter:Nn,start:function(e){var t,n=e.interaction,i=e.startOffset,r=e.state,o=r.options;if(o){var a=(0,jn.getRestrictionRect)(o.offset,n,n.coords.start.page);t=M.rectToXY(a)}t=t||{x:0,y:0},r.offset={top:t.y+i.top,left:t.x+i.left,bottom:t.y-i.bottom,right:t.x-i.right}},set:function(e){var t=e.coords,n=e.edges,i=e.interaction,r=e.state,o=r.offset,a=r.options;if(n){var s=(0,O.default)({},t),l=(0,jn.getRestrictionRect)(a.inner,i,s)||{},c=(0,jn.getRestrictionRect)(a.outer,i,s)||{};Hn(l,Wn),Hn(c,Nn),n.top?t.y=Math.min(Math.max(c.top+o.top,s.y),l.top+o.top):n.bottom&&(t.y=Math.max(Math.min(c.bottom+o.bottom,s.y),l.bottom+o.bottom)),n.left?t.x=Math.min(Math.max(c.left+o.left,s.x),l.left+o.left):n.right&&(t.x=Math.max(Math.min(c.right+o.right,s.x),l.right+o.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}};$n.restrictEdges=Bn;var qn=(0,mt.makeModifier)(Bn,"restrictEdges");$n.default=qn;var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.restrictRect=Xn.default=void 0;var Yn=(0,O.default)({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(e){}},jn.restrict.defaults),Vn={start:jn.restrict.start,set:jn.restrict.set,defaults:Yn};Xn.restrictRect=Vn;var Gn=(0,mt.makeModifier)(Vn,"restrictRect");Xn.default=Gn;var Qn={};Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.restrictSize=Qn.default=void 0;var Kn={width:-1/0,height:-1/0},Zn={width:1/0,height:1/0},Jn={start:function(e){return $n.restrictEdges.start(e)},set:function(e){var t=e.interaction,n=e.state,i=e.rect,r=e.edges,o=n.options;if(r){var a=M.tlbrToXywh((0,jn.getRestrictionRect)(o.min,t,e.coords))||Kn,s=M.tlbrToXywh((0,jn.getRestrictionRect)(o.max,t,e.coords))||Zn;n.options={endOnly:o.endOnly,inner:(0,O.default)({},$n.restrictEdges.noInner),outer:(0,O.default)({},$n.restrictEdges.noOuter)},r.top?(n.options.inner.top=i.bottom-a.height,n.options.outer.top=i.bottom-s.height):r.bottom&&(n.options.inner.bottom=i.top+a.height,n.options.outer.bottom=i.top+s.height),r.left?(n.options.inner.left=i.right-a.width,n.options.outer.left=i.right-s.width):r.right&&(n.options.inner.right=i.left+a.width,n.options.outer.right=i.left+s.width),$n.restrictEdges.set(e),n.options=o}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}};Qn.restrictSize=Jn;var ei=(0,mt.makeModifier)(Jn,"restrictSize");Qn.default=ei;var ti={};Object.defineProperty(ti,"__esModule",{value:!0}),Object.defineProperty(ti,"default",{enumerable:!0,get:function(){return Fn.default}});var ni={};Object.defineProperty(ni,"__esModule",{value:!0}),ni.snap=ni.default=void 0;var ii={start:function(e){var t,n=e.interaction,i=e.interactable,r=e.element,o=e.rect,a=e.state,s=e.startOffset,l=a.options,c=l.offsetWithOrigin?function(e){var t=e.interaction.element;return(0,M.rectToXY)((0,M.resolveRectLike)(e.state.options.origin,null,null,[t]))||(0,F.default)(e.interactable,t,e.interaction.prepared.name)}(e):{x:0,y:0};if("startCoords"===l.offset)t={x:n.coords.start.page.x,y:n.coords.start.page.y};else{var u=(0,M.resolveRectLike)(l.offset,i,r,[n]);(t=(0,M.rectToXY)(u)||{x:0,y:0}).x+=c.x,t.y+=c.y}var d=l.relativePoints;a.offsets=o&&d&&d.length?d.map((function(e,n){return{index:n,relativePoint:e,x:s.left-o.width*e.x+t.x,y:s.top-o.height*e.y+t.y}})):[(0,O.default)({index:0,relativePoint:null},t)]},set:function(e){var t=e.interaction,n=e.coords,i=e.state,r=i.options,a=i.offsets,s=(0,F.default)(t.interactable,t.element,t.prepared.name),l=(0,O.default)({},n),c=[];r.offsetWithOrigin||(l.x-=s.x,l.y-=s.y);for(var u=0;u<a.length;u++)for(var d=a[u],f=l.x-d.x,p=l.y-d.y,h=0,v=r.targets.length;h<v;h++){var m,g=r.targets[h];(m=o.default.func(g)?g(f,p,t._proxy,d,h):g)&&c.push({x:(o.default.number(m.x)?m.x:f)+d.x,y:(o.default.number(m.y)?m.y:p)+d.y,range:o.default.number(m.range)?m.range:r.range,source:g,index:h,offset:d})}for(var y={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},b=0;b<c.length;b++){var x=c[b],w=x.range,E=x.x-l.x,_=x.y-l.y,S=(0,A.default)(E,_),k=S<=w;w===1/0&&y.inRange&&y.range!==1/0&&(k=!1),y.target&&!(k?y.inRange&&w!==1/0?S/w<y.distance/y.range:w===1/0&&y.range!==1/0||S<y.distance:!y.inRange&&S<y.distance)||(y.target=x,y.distance=S,y.range=w,y.inRange=k,y.delta.x=E,y.delta.y=_)}return y.inRange&&(n.x=y.target.x,n.y=y.target.y),i.closest=y,y},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}};ni.snap=ii;var ri=(0,mt.makeModifier)(ii,"snap");ni.default=ri;var oi={};Object.defineProperty(oi,"__esModule",{value:!0}),oi.snapSize=oi.default=void 0;var ai={start:function(e){var t=e.state,n=e.edges,i=t.options;if(!n)return null;e.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:i.offset||"self",origin:{x:0,y:0},range:i.range}},t.targetFields=t.targetFields||[["width","height"],["x","y"]],ni.snap.start(e),t.offsets=e.state.offsets,e.state=t},set:function(e){var t=e.interaction,n=e.state,i=e.coords,r=n.options,a=n.offsets,s={x:i.x-a[0].x,y:i.y-a[0].y};n.options=(0,O.default)({},r),n.options.targets=[];for(var l=0;l<(r.targets||[]).length;l++){var c=(r.targets||[])[l],u=void 0;if(u=o.default.func(c)?c(s.x,s.y,t):c){for(var d=0;d<n.targetFields.length;d++){var f=n.targetFields[d],p=f[0],h=f[1];if(p in u||h in u){u.x=u[p],u.y=u[h];break}}n.options.targets.push(u)}}var v=ni.snap.set(e);return n.options=r,v},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}};oi.snapSize=ai;var si=(0,mt.makeModifier)(ai,"snapSize");oi.default=si;var li={};Object.defineProperty(li,"__esModule",{value:!0}),li.snapEdges=li.default=void 0;var ci={start:function(e){var t=e.edges;return t?(e.state.targetFields=e.state.targetFields||[[t.left?"left":"right",t.top?"top":"bottom"]],oi.snapSize.start(e)):null},set:oi.snapSize.set,defaults:(0,O.default)((0,dt.default)(oi.snapSize.defaults),{targets:null,range:null,offset:{x:0,y:0}})};li.snapEdges=ci;var ui=(0,mt.makeModifier)(ci,"snapEdges");li.default=ui;var di={};Object.defineProperty(di,"__esModule",{value:!0}),Object.defineProperty(di,"default",{enumerable:!0,get:function(){return Fn.default}});var fi={};Object.defineProperty(fi,"__esModule",{value:!0}),Object.defineProperty(fi,"default",{enumerable:!0,get:function(){return Fn.default}});var pi={};Object.defineProperty(pi,"__esModule",{value:!0}),pi.default=void 0;var hi={aspectRatio:Pn.default,restrictEdges:$n.default,restrict:jn.default,restrictRect:Xn.default,restrictSize:Qn.default,snapEdges:li.default,snap:ni.default,snapSize:oi.default,spring:di.default,avoid:An.default,transform:fi.default,rubberband:ti.default};pi.default=hi;var vi={};Object.defineProperty(vi,"__esModule",{value:!0}),vi.default=void 0;var mi={id:"modifiers",install:function(e){var t=e.interactStatic;for(var n in e.usePlugin(mt.default),e.usePlugin(Sn.default),t.modifiers=pi.default,pi.default){var i=pi.default[n],r=i._defaults,o=i._methods;r._methods=o,e.defaults.perAction[n]=r}}};vi.default=mi;var gi={};Object.defineProperty(gi,"__esModule",{value:!0}),gi.default=void 0,gi.default={};var yi={};function bi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Object.defineProperty(yi,"__esModule",{value:!0}),yi.PointerEvent=yi.default=void 0;var xi=function(e){var t,n;function i(t,n,i,r,o,a){var s;if((s=e.call(this,o)||this).type=void 0,s.originalEvent=void 0,s.pointerId=void 0,s.pointerType=void 0,s.double=void 0,s.pageX=void 0,s.pageY=void 0,s.clientX=void 0,s.clientY=void 0,s.dt=void 0,s.eventable=void 0,U.pointerExtend(bi(s),i),i!==n&&U.pointerExtend(bi(s),n),s.timeStamp=a,s.originalEvent=i,s.type=t,s.pointerId=U.getPointerId(n),s.pointerType=U.getPointerType(n),s.target=r,s.currentTarget=null,"tap"===t){var l=o.getPointerIndex(n);s.dt=s.timeStamp-o.pointers[l].downTime;var c=s.timeStamp-o.tapTime;s.double=!!(o.prevTap&&"doubletap"!==o.prevTap.type&&o.prevTap.target===s.target&&c<500)}else"doubletap"===t&&(s.dt=n.timeStamp-o.tapTime);return s}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=i.prototype;return r._subtractOrigin=function(e){var t=e.x,n=e.y;return this.pageX-=t,this.pageY-=n,this.clientX-=t,this.clientY-=n,this},r._addOrigin=function(e){var t=e.x,n=e.y;return this.pageX+=t,this.pageY+=n,this.clientX+=t,this.clientY+=n,this},r.preventDefault=function(){this.originalEvent.preventDefault()},i}(X.BaseEvent);yi.PointerEvent=yi.default=xi;var wi={};Object.defineProperty(wi,"__esModule",{value:!0}),wi.default=void 0;var Ei={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(e){e.pointerEvents=Ei,e.defaults.actions.pointerEvents=Ei.defaults,(0,O.default)(e.actions.phaselessTypes,Ei.types)},listeners:{"interactions:new":function(e){var t=e.interaction;t.prevTap=null,t.tapTime=0},"interactions:update-pointer":function(e){var t=e.down,n=e.pointerInfo;!t&&n.hold||(n.hold={duration:1/0,timeout:null})},"interactions:move":function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;e.duplicate||n.pointerIsDown&&!n.pointerWasMoved||(n.pointerIsDown&&ki(e),_i({interaction:n,pointer:i,event:r,eventTarget:o,type:"move"},t))},"interactions:down":function(e,t){!function(e,t){for(var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget,a=e.pointerIndex,s=n.pointers[a].hold,l=E.getPath(o),c={interaction:n,pointer:i,event:r,eventTarget:o,type:"hold",targets:[],path:l,node:null},u=0;u<l.length;u++){var d=l[u];c.node=d,t.fire("pointerEvents:collect-targets",c)}if(c.targets.length){for(var f=1/0,p=0;p<c.targets.length;p++){var h=c.targets[p].eventable.options.holdDuration;h<f&&(f=h)}s.duration=f,s.timeout=setTimeout((function(){_i({interaction:n,eventTarget:o,pointer:i,event:r,type:"hold"},t)}),f)}}(e,t),_i(e,t)},"interactions:up":function(e,t){ki(e),_i(e,t),function(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget;n.pointerWasMoved||_i({interaction:n,eventTarget:o,pointer:i,event:r,type:"tap"},t)}(e,t)},"interactions:cancel":function(e,t){ki(e),_i(e,t)}},PointerEvent:yi.PointerEvent,fire:_i,collectEventTargets:Si,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function _i(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget,a=e.type,s=e.targets,l=void 0===s?Si(e,t):s,c=new yi.PointerEvent(a,i,r,o,n,t.now());t.fire("pointerEvents:new",{pointerEvent:c});for(var u={interaction:n,pointer:i,event:r,eventTarget:o,targets:l,type:a,pointerEvent:c},d=0;d<l.length;d++){var f=l[d];for(var p in f.props||{})c[p]=f.props[p];var h=(0,F.default)(f.eventable,f.node);if(c._subtractOrigin(h),c.eventable=f.eventable,c.currentTarget=f.node,f.eventable.fire(c),c._addOrigin(h),c.immediatePropagationStopped||c.propagationStopped&&d+1<l.length&&l[d+1].node!==c.currentTarget)break}if(t.fire("pointerEvents:fired",u),"tap"===a){var v=c.double?_i({interaction:n,pointer:i,event:r,eventTarget:o,type:"doubletap"},t):c;n.prevTap=v,n.tapTime=v.timeStamp}return c}function Si(e,t){var n=e.interaction,i=e.pointer,r=e.event,o=e.eventTarget,a=e.type,s=n.getPointerIndex(i),l=n.pointers[s];if("tap"===a&&(n.pointerWasMoved||!l||l.downTarget!==o))return[];for(var c=E.getPath(o),u={interaction:n,pointer:i,event:r,eventTarget:o,type:a,path:c,targets:[],node:null},d=0;d<c.length;d++){var f=c[d];u.node=f,t.fire("pointerEvents:collect-targets",u)}return"hold"===a&&(u.targets=u.targets.filter((function(e){return e.eventable.options.holdDuration===n.pointers[s].hold.duration}))),u.targets}function ki(e){var t=e.interaction,n=e.pointerIndex,i=t.pointers[n].hold;i&&i.timeout&&(clearTimeout(i.timeout),i.timeout=null)}var Pi=Ei;wi.default=Pi;var Ti={};function Ci(e){var t=e.interaction;t.holdIntervalHandle&&(clearInterval(t.holdIntervalHandle),t.holdIntervalHandle=null)}Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.default=void 0;var Oi={id:"pointer-events/holdRepeat",install:function(e){e.usePlugin(wi.default);var t=e.pointerEvents;t.defaults.holdRepeatInterval=0,t.types.holdrepeat=e.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(e,t){return e["pointerEvents:"+t]=Ci,e}),{"pointerEvents:new":function(e){var t=e.pointerEvent;"hold"===t.type&&(t.count=(t.count||0)+1)},"pointerEvents:fired":function(e,t){var n=e.interaction,i=e.pointerEvent,r=e.eventTarget,o=e.targets;if("hold"===i.type&&o.length){var a=o[0].eventable.options.holdRepeatInterval;a<=0||(n.holdIntervalHandle=setTimeout((function(){t.pointerEvents.fire({interaction:n,eventTarget:r,type:"hold",pointer:i,event:i},t)}),a))}}})};Ti.default=Oi;var Mi={};function zi(e){return(0,O.default)(this.events.options,e),this}Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.default=void 0;var Fi={id:"pointer-events/interactableTargets",install:function(e){var t=e.Interactable;t.prototype.pointerEvents=zi;var n=t.prototype._backCompatOption;t.prototype._backCompatOption=function(e,t){var i=n.call(this,e,t);return i===this&&(this.events.options[e]=t),i}},listeners:{"pointerEvents:collect-targets":function(e,t){var n=e.targets,i=e.node,r=e.type,o=e.eventTarget;t.interactables.forEachMatch(i,(function(e){var t=e.events,a=t.options;t.types[r]&&t.types[r].length&&e.testIgnoreAllow(a,i,o)&&n.push({node:i,eventable:t,props:{interactable:e}})}))},"interactable:new":function(e){var t=e.interactable;t.events.getRect=function(e){return t.getRect(e)}},"interactable:set":function(e,t){var n=e.interactable,i=e.options;(0,O.default)(n.events.options,t.pointerEvents.defaults),(0,O.default)(n.events.options,i.pointerEvents||{})}}};Mi.default=Fi;var Ii={};Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.default=void 0;var Di={id:"pointer-events",install:function(e){e.usePlugin(wi),e.usePlugin(Ti.default),e.usePlugin(Mi.default)}};Ii.default=Di;var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.default=void 0,Ai.default={};var ji={};function Ri(e){var t=e.Interactable;e.actions.phases.reflow=!0,t.prototype.reflow=function(t){return function(e,t,n){for(var i=o.default.string(e.target)?V.from(e._context.querySelectorAll(e.target)):[e.target],r=n.window.Promise,a=r?[]:null,s=function(){var o=i[l],s=e.getRect(o);if(!s)return"break";var c=V.find(n.interactions.list,(function(n){return n.interacting()&&n.interactable===e&&n.element===o&&n.prepared.name===t.name})),u=void 0;if(c)c.move(),a&&(u=c._reflowPromise||new r((function(e){c._reflowResolve=e})));else{var d=(0,M.tlbrToXywh)(s),f={page:{x:d.x,y:d.y},client:{x:d.x,y:d.y},timeStamp:n.now()},p=U.coordsToEvent(f);u=function(e,t,n,i,r){var o=e.interactions.new({pointerType:"reflow"}),a={interaction:o,event:r,pointer:r,eventTarget:n,phase:"reflow"};o.interactable=t,o.element=n,o.prevEvent=r,o.updatePointer(r,r,n,!0),U.setZeroCoords(o.coords.delta),(0,Me.copyAction)(o.prepared,i),o._doPhase(a);var s=e.window.Promise,l=s?new s((function(e){o._reflowResolve=e})):void 0;return o._reflowPromise=l,o.start(i,t,n),o._interacting?(o.move(a),o.end(r)):(o.stop(),o._reflowResolve()),o.removePointer(r,r),l}(n,e,o,t,p)}a&&a.push(u)},l=0;l<i.length&&"break"!==s();l++);return a&&r.all(a).then((function(){return e}))}(this,t,e)}}Object.defineProperty(ji,"__esModule",{value:!0}),ji.install=Ri,ji.default=void 0;var Li={id:"reflow",install:Ri,listeners:{"interactions:stop":function(e,t){var n=e.interaction;"reflow"===n.pointerType&&(n._reflowResolve&&n._reflowResolve(),V.remove(t.interactions.list,n))}}};ji.default=Li;var Ui={};Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.default=void 0,Ui.default={};var $i={};Object.defineProperty($i,"__esModule",{value:!0}),$i.exchange=void 0,$i.exchange={};var Wi={};Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.default=void 0,Wi.default={};var Ni={exports:{}};Object.defineProperty(Ni.exports,"__esModule",{value:!0}),Ni.exports.default=void 0,mn.default.use(gi.default),mn.default.use(Je.default),mn.default.use(Ot.default),mn.default.use(Ze.default),mn.default.use(be.default),mn.default.use(Ii.default),mn.default.use(jt.default),mn.default.use(vi.default),mn.default.use(Qe.default),mn.default.use(ge.default),mn.default.use(ke.default),mn.default.use(ji.default),mn.default.use(ut.default),mn.default.use(Wi.default),mn.default.use(Ai.default),mn.default.__utils={exchange:$i.exchange,displace:Ui,pointer:U},mn.default.use(ot.default);var Hi=mn.default;if(Ni.exports.default=Hi,Ni)try{Ni.exports=mn.default}catch(e){}mn.default.default=mn.default,Ni=Ni.exports;var Bi={exports:{}};Object.defineProperty(Bi.exports,"__esModule",{value:!0}),Bi.exports.default=void 0;var qi=Ni.default;if(Bi.exports.default=qi,Bi)try{Bi.exports=Ni.default}catch(e){}return Ni.default.default=Ni.default,Bi.exports}))},29:function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,i=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var r,o=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(r=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")}))}},3:function(e,t){e.exports=jQuery},367:function(e,t,n){e.exports=n(368)},368:function(e,t,n){"use strict";n.r(t);n(79),n(369),n(88),n(192);var i=n(27),r=n.n(i);window.NProgress=r.a,$(".launch-tooltip").tooltip({placement:"bottom"})},369:function(e,t){!function(e){"use strict";var t=e("div.controls").find("div.authentication-type").hide(),n=e("div.ccm-authentication-type-select > select"),i=e("ul.auth-types > li").each((function(){var r=e(this),o=t.filter('[data-handle="'+r.data("handle")+'"]');r.click((function(){n.val(r.data("handle")),"undefined"!=typeof Concrete&&Concrete.event.fire("AuthenticationTypeSelected",r.data("handle")),o.hasClass("active")||(i.removeClass("active"),r.addClass("active"),t.filter(".active").length?t.stop().filter(".active").removeClass("active").fadeOut(250,(function(){o.addClass("active").fadeIn(250)})):o.addClass("active").show())}))}));n.change((function(){i.filter('[data-handle="'+e(this).val()+'"]').click()})),i.first().click(),e("ul.nav.nav-tabs > li > a").on("click",(function(){var t=e(this);if(t.parent().hasClass("active"))return!1;e("ul.nav.nav-tabs > li.active").removeClass("active");var n=t.attr("data-authType");return t.parent().addClass("active"),e("div.authTypes > div").hide().filter('[data-authType="'+n+'"]').show(),!1}))}(jQuery)},4:function(e,t){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})(e)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}e.exports=i},7:function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var r=(a=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}));return[n].concat(o).concat([r]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<e.length;r++){var a=e[r];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},79:function(e,t,n){"use strict";var i=n(3),r=n.n(i);n(80),n(81),n(82),n(83);n(23).a.bindToWindow(window),window.$=window.jQuery=r.a},8:function(e,t,n){var i,r,o={},a=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=i.apply(this,arguments)),r}),s=function(e,t){return t?t.querySelector(e):document.querySelector(e)},l=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var i=s.call(this,e,n);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[e]=i}return t[e]}}(),c=null,u=0,d=[],f=n(29);function p(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=o[i.id];if(r){r.refs++;for(var a=0;a<r.parts.length;a++)r.parts[a](i.parts[a]);for(;a<i.parts.length;a++)r.parts.push(b(i.parts[a],t))}else{var s=[];for(a=0;a<i.parts.length;a++)s.push(b(i.parts[a],t));o[i.id]={id:i.id,refs:1,parts:s}}}}function h(e,t){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],a=t.base?o[0]+t.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}function v(e,t){var n=l(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=d[d.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),d.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=l(e.insertAt.before,n);n.insertBefore(t,r)}}function m(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=d.indexOf(e);t>=0&&d.splice(t,1)}function g(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var i=function(){0;return n.nc}();i&&(e.attrs.nonce=i)}return y(t,e.attrs),v(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function b(e,t){var n,i,r,o;if(t.transform&&e.css){if(!(o="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=o}if(t.singleton){var a=u++;n=c||(c=g(t)),i=E.bind(null,n,a,!1),r=E.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),v(e,t),t}(t),i=S.bind(null,n,t),r=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(t),i=_.bind(null,n),r=function(){m(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=h(e,t);return p(n,t),function(e){for(var i=[],r=0;r<n.length;r++){var a=n[r];(s=o[a.id]).refs--,i.push(s)}e&&p(h(e,t),t);for(r=0;r<i.length;r++){var s;if(0===(s=i[r]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete o[s.id]}}}};var x,w=(x=[],function(e,t){return x[e]=t,x.filter(Boolean).join("\n")});function E(e,t,n,i){var r=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=w(t,r);else{var o=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function _(e,t){var n=t.css,i=t.media;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function S(e,t,n){var i=n.css,r=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||o)&&(i=f(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([i],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}},80:function(e,t){e.exports=bootstrap},81:function(e,t){var n={build:function(){$.post(CCM_DISPATCHER_FILENAME+"/ccm/system/file/thumbnailer",(function(e){!0===e.built&&(e.path&&$('[src$="'+e.path+'"]').each((function(){var e=$(this);e.attr("src",e.attr("src"))})),setTimeout(n.build,50))}))}};n.build()},82:function(e,t,n){(function(e){var t=!!(window.MutationObserver&&window.MutationObserver.prototype&&window.MutationObserver.prototype.observe);function n(e,t){"string"==typeof e&&""!==$.trim(e)?Object.prototype.hasOwnProperty.call(n.cache,e)?t(e,n.cache[e]):(t(e,{statesProvices:{},addressUsedFields:[]}),$.ajax({cache:!0,data:{countryCode:e,activeLocale:CCM_ACTIVE_LOCALE},dataType:"json",method:"GET",url:CCM_DISPATCHER_FILENAME+"/ccm/system/country-data-link/all"}).done((function(t){var i={};t.statesProvices instanceof Object&&(i=t.statesProvices);var r=[];t.addressUsedFields instanceof Array&&(r=t.addressUsedFields),n.cache[e]={statesProvices:i,addressUsedFields:r}})).fail((function(t,i,r){window.console&&window.console.error&&window.console.error(t.responseJSON||r),n.cache[e]={statesProvices:{},addressUsedFields:[]}})).always((function(){t(e,n.cache[e])}))):t(e,{statesProvices:{},addressUsedFields:[]})}function i(e){var n=this;n.enabled=!1,n.$text=e,n.$select=$("<select />"),n.mutationObserver=t?new window.MutationObserver((function(e){n.updateSelectAttributes(),n.$text.hide(),n.$select.show()})):null,n.originalFocus=n.$text[0].focus,n.$text[0].focus=function(){n.enabled?n.$select.focus():n.originalFocus.apply(n.$text[0])}}function r(e,t,n){var r=this;r.$country=e,r.$stateprovinceWrapper=t,t.is("input")?r.$stateprovince=t:r.$stateprovince=t.find("input:first"),r.config=n,r.replacer=new i(r.$stateprovince),r.$stateprovinceSelect=r.replacer.$select,r.$country.on("change",(function(){r.countryChanged()})),r.$stateprovinceSelect.on("change",(function(){r.$stateprovince.val(r.$stateprovinceSelect.val()).trigger("change")})),r.countryChanged(!0)}n.cache={},i.prototype={updateSelectAttributes:function(){var e=this;$.each(["class","style","required"],(function(t,n){var i=e.$text.attr(n);"string"==typeof i&&e.$select.attr(n,i)}))},setEnabled:function(e){var t=this;(e=!!e)!==t.enabled&&(e?(t.updateSelectAttributes(),t.$text.before(t.$select),t.$text.hide(),t.enabled=!0,null!==t.mutationObserver&&setTimeout((function(){!0===t.enabled&&(t.mutationObserver.disconnect(),t.mutationObserver.observe(t.$text[0],{attributes:!0}))}),0)):(null!==t.mutationObserver&&t.mutationObserver.disconnect(),t.enabled=!1,t.$select.detach(),t.$text.show()))}},r.prototype={countryChanged:function(e){var t=this;n(t.$country.val(),(function(n,i){if(t.$country.val()===n){if(t.$stateprovinceSelect.empty(),!e&&t.config.clearStateProvinceOnChange&&t.$stateprovince.val(""),t.config.hideUnusedStateProvinceField&&(i.addressUsedFields.indexOf("state_province")>-1?t.$stateprovinceWrapper.show():t.$stateprovinceWrapper.hide()),0===Object.keys(i.statesProvices).length)t.replacer.setEnabled(!1);else{var r=$.trim(t.$stateprovince.val());t.$stateprovinceSelect.append($('<option value="" selected="selected" />').text("")),$.each(i.statesProvices,(function(e,n){var i=$("<option />").val(e).text(n);e===r&&i.attr("selected","selected"),t.$stateprovinceSelect.append(i)})),t.replacer.setEnabled(!0)}t.$country.trigger("country-data",[i])}}))}},r.withCountryField=function(e,t){t=$.extend({hideUnusedStateProvinceField:!1,clearStateProvinceOnChange:!1},t);var n=e.closest("form");0===n.length&&(n=$(document.body));var i=[];switch(n.find('[data-countryfield="'+e.attr("id")+'"]').each((function(){i.push(new r(e,$(this),t))})),i.length){case 0:return null;case 1:return i[0];default:return i}},e.ConcreteCountryDataLink=r}).call(this,n(4))},83:function(e,t,n){(function(e){var t=!!(window.MutationObserver&&window.MutationObserver.prototype&&window.MutationObserver.prototype.observe);function n(e,t){"string"==typeof e&&""!==$.trim(e)?Object.prototype.hasOwnProperty.call(n.cache,e)?t(e,n.cache[e]):(t(e,[]),$.ajax({cache:!0,data:{countryCode:e,activeLocale:CCM_ACTIVE_LOCALE},dataType:"json",method:"GET",url:CCM_DISPATCHER_FILENAME+"/ccm/system/country-stateprovince-link/get_stateprovinces"}).fail((function(t,i,r){window.console&&window.console.error&&window.console.error(t.responseJSON||r),n.cache[e]=[]})).success((function(t){n.cache[e]=t instanceof Array?t:[]})).always((function(){t(e,n.cache[e])}))):t(e,[])}function i(e){var n=this;n.enabled=!1,n.$text=e,n.$select=$("<select />"),n.mutationObserver=t?new window.MutationObserver((function(e){n.updateSelectAttributes(),n.$text.hide(),n.$select.show()})):null,n.originalFocus=n.$text[0].focus,n.$text[0].focus=function(){n.enabled?n.$select.focus():n.originalFocus.apply(n.$text[0])}}function r(e,t){var n=this;n.$country=e,n.$stateprovince=t,n.replacer=new i(n.$stateprovince),n.$stateprovinceSelect=n.replacer.$select,n.$country.on("change",(function(){n.countryChanged()})).trigger("change"),n.$stateprovinceSelect.on("change",(function(){n.$stateprovince.val(n.$stateprovinceSelect.val()).trigger("change")}))}n.cache={},i.prototype={updateSelectAttributes:function(){var e=this;$.each(["class","style","required"],(function(t,n){var i=e.$text.attr(n);"string"==typeof i&&e.$select.attr(n,i)}))},setEnabled:function(e){var t=this;(e=!!e)!==t.enabled&&(e?(t.updateSelectAttributes(),t.$text.before(t.$select),t.$text.hide(),t.enabled=!0,null!==t.mutationObserver&&setTimeout((function(){!0===t.enabled&&(t.mutationObserver.disconnect(),t.mutationObserver.observe(t.$text[0],{attributes:!0}))}),0)):(null!==t.mutationObserver&&t.mutationObserver.disconnect(),t.enabled=!1,t.$select.detach(),t.$text.show()))}},r.prototype={countryChanged:function(){var e=this;n(e.$country.val(),(function(t,n){if(e.$country.val()===t){e.$stateprovinceSelect.empty();var i=n.length;if(0===i)e.replacer.setEnabled(!1);else{var r=$.trim(e.$stateprovince.val());e.$stateprovinceSelect.append($('<option value="" selected="selected" />').text(""));for(var o,a=0;a<i;a++)o=$("<option />").val(n[a][0]).text(n[a][1]),n[a][0]===r&&o.attr("selected","selected"),e.$stateprovinceSelect.append(o);e.replacer.setEnabled(!0)}}}))}},r.withCountryField=function(e){var t=e.closest("form");0===t.length&&(t=$(document.body));var n=[];switch(t.find('input[data-countryfield="'+e.attr("id")+'"]').each((function(){n.push(new r(e,$(this)))})),n.length){case 0:return null;case 1:return n[0];default:return n}},e.ConcreteCountryStateprovinceLink=r}).call(this,n(4))},84:function(e,t,n){"use strict";var i=n(20);n.n(i).a},85:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,"img[data-v-6d989a16]{left:0;max-width:inherit;min-width:inherit;top:0}.shadow[data-v-6d989a16]{box-shadow:0 0 10px #000;box-sizing:border-box;left:1px;opacity:.3;outline:1px solid #333;position:absolute;top:1px;z-index:1}",""])},86:function(e,t,n){"use strict";var i=n(21);n.n(i).a},87:function(e,t,n){(e.exports=n(7)(!1)).push([e.i,'@charset "UTF-8";.ccm-avatar-creator-container[data-v-0e144f1a]{position:relative}.ccm-avatar-creator-container .ccm-avatar-actions[data-v-0e144f1a]{position:absolute;z-index:20000}.ccm-avatar-creator-container .ccm-avatar-actions>a[data-v-0e144f1a]{display:inline-block;font-weight:600;opacity:.8;text-align:center;text-decoration:none;transition:all .5s;width:50%}.ccm-avatar-creator-container .ccm-avatar-actions>a[data-v-0e144f1a]:hover{opacity:1}.ccm-avatar-creator-container .ccm-avatar-actions>a[data-v-0e144f1a]:before{font-family:Font Awesome\\ 5 Free;font-size:16px;text-align:center}.ccm-avatar-creator-container .ccm-avatar-actions>a.ccm-avatar-cancel[data-v-0e144f1a]{color:#ff4136;float:right}.ccm-avatar-creator-container .ccm-avatar-actions>a.ccm-avatar-cancel[data-v-0e144f1a]:before{content:"\\F00D"}.ccm-avatar-creator-container .ccm-avatar-actions>a.ccm-avatar-okay[data-v-0e144f1a]{color:#3d9970}.ccm-avatar-creator-container .ccm-avatar-actions>a.ccm-avatar-okay[data-v-0e144f1a]:before{content:"\\F00C"}.ccm-avatar-creator-container .ccm-avatar-creator[data-v-0e144f1a]{border:1px solid #999;overflow:hidden;position:relative;transition:all .3s;z-index:10000}.ccm-avatar-creator-container .ccm-avatar-creator>img.ccm-avatar-current[data-v-0e144f1a]{display:inline;height:100%;width:100%;z-index:998}.ccm-avatar-creator-container .ccm-avatar-creator>div.saving[data-v-0e144f1a]{background:rgba(127,219,255,.5);color:#111;font-size:16px;font-weight:bolder;height:100%;left:0;position:absolute;text-align:center;top:0;width:100%}.ccm-avatar-creator-container .ccm-avatar-creator[data-v-0e144f1a]:before{background-color:hsla(0,0%,93.3%,.8);color:#3d9970;content:"\\F303";display:block;font-family:Font Awesome\\ 5 Free;font-weight:600;height:100%;line-height:0;margin:0 auto;opacity:0;padding-top:50%;position:absolute;text-align:center;transition:all .3s;vertical-align:middle;width:100%;z-index:999}.ccm-avatar-creator-container .ccm-avatar-creator.dz-started[data-v-0e144f1a]:before{-webkit-animation:pulse-data-v-0e144f1a 1s infinite;animation:pulse-data-v-0e144f1a 1s infinite;opacity:1}@-webkit-keyframes pulse-data-v-0e144f1a{0%{transform:scale(1)}50%{transform:scale(1.3)}to{transform:scale(1)}}@keyframes pulse-data-v-0e144f1a{0%{transform:scale(1)}50%{transform:scale(1.3)}to{transform:scale(1)}}.ccm-avatar-creator-container .ccm-avatar-creator.editing[data-v-0e144f1a]:before{display:none}.ccm-avatar-creator-container .ccm-avatar-creator.dz-clickable[data-v-0e144f1a]{cursor:"pointer"}.ccm-avatar-creator-container .ccm-avatar-creator.dz-clickable[data-v-0e144f1a]:hover,.ccm-avatar-creator-container .ccm-avatar-creator.dz-drag-hover[data-v-0e144f1a]{border-color:#3d9970;box-shadow:0 0 20px -10px #2ecc40}.ccm-avatar-creator-container .ccm-avatar-creator.dz-clickable[data-v-0e144f1a]:hover:before,.ccm-avatar-creator-container .ccm-avatar-creator.dz-drag-hover[data-v-0e144f1a]:before{opacity:1}',""])},88:function(e,t,n){"use strict";var i=n(16),r=n.n(i),o=n(28),a=n.n(o),s={props:{img:String,imageHeight:Number,imageWidth:Number,cropperWidth:Number,cropperHeight:Number,shadow:Boolean},data:function(){return{x:0,y:0,adjX:0,adjY:0,resizeHeight:0,resizeWidth:0,viewport:null,outer:null}},beforeUpdate:function(){this.viewport&&(this.viewport.x=this.x,this.viewport.y=this.y,this.viewport.adjX=this.adjX,this.viewport.adjY=this.adjY,this.viewport.resizeWidth=this.resizeWidth,this.viewport.resizeHeight=this.resizeHeight)},mounted:function(){!0===this.shadow&&(this.guessPosition(),this.setupResizing(),this.setupDragging()),this.$emit("mount",this)},methods:{guessPosition:function(){var e=this.adjustedDimensions(this.imageWidth,this.imageHeight),t=0,n=0;this.resizeHeight=e.height,this.resizeWidth=e.width,this.resizeWidth>this.cropperWidth&&(t=-Math.round((this.resizeWidth-this.cropperWidth)/2)),this.resizeHeight>this.cropperHeight&&(n=-Math.round((this.resizeHeight-this.cropperHeight)/2));var i=this.adjustedCoordinates(t,n,this.resizeWidth,this.resizeHeight);this.x+=i.x,this.y+=i.y},setupResizing:function(){var e=this;this.interact=a()(this.$refs.image).resizable({preserveAspectRatio:!0,edges:{left:!0,right:!0,bottom:!0,top:!0}}).on("resizemove",(function(t){return e.handleResizeMove(t)}))},adjustedDimensions:function(e,t){for(var n=1,i=Math.sqrt(Math.min(e,t)),r=2;r<=i;r++)e/r%2==0&&t/r%2==0&&e/r>this.cropperWidth&&t/r>this.cropperHeight&&(n=r);return{width:e/n,height:t/n,factor:n,adjusted:1!==n}},adjustedCoordinates:function(e,t,n,i){var r=this.x+e,o=this.y+t,a={min:{x:-1*(n-this.cropperWidth),y:-1*(i-this.cropperHeight)},max:{x:0,y:0}},s=Math.max(a.min.x,Math.min(a.max.x,r))-this.x,l=Math.max(a.min.y,Math.min(a.max.y,o))-this.y;return{x:s,y:l,adjusted:l!==t||s!==e}},setViewport:function(e){this.viewport=e,e.outer=this,e.setupDragging()},setupDragging:function(){var e=this;this.interact=a()(this.$refs.image).draggable({intertia:!1,restrict:!1,onmove:function(t){return e.outer?e.outer.handleDragMove(t):e.handleDragMove(t)},onstart:function(t){return e.outer?e.outer.handleDragStart(t):e.handleDragStart(t)},onend:function(t){return e.outer?e.outer.handleDragEnd(t):e.handleDragEnd(t)}})},handleDragMove:function(e){var t=this.adjustedCoordinates(e.pageX-this.startEvent.pageX,e.pageY-this.startEvent.pageY,this.resizeWidth,this.resizeHeight);this.adjX=t.x,this.adjY=t.y},handleDragStart:function(e){this.startEvent=e,this.coords={min:{x:-this.resizeWidth+this.cropperWidth,y:-this.resizeHeight+this.cropperHeight},max:{x:0,y:0}}},handleDragEnd:function(e){this.x+=this.adjX,this.y+=this.adjY,this.adjX=0,this.adjY=0},handleResizeMove:function(e){var t=this.adjustedCoordinates(e.deltaRect.left,e.deltaRect.top,e.rect.width,e.rect.height);e.rect.width<this.cropperWidth||e.rect.height<this.cropperHeight?this.imageWidth===this.imageHeight&&(this.resizeWidth=this.cropperWidth,this.resizeHeight=this.cropperHeight,this.x=0,this.y=0):(this.resizeWidth=Math.max(e.rect.width,this.cropperWidth),this.resizeHeight=Math.max(e.rect.height,this.cropperHeight),this.x+=t.x,this.y+=t.y)}}},l=(n(84),n(2)),c=Object(l.a)(s,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("img",{ref:"image",class:{shadow:e.shadow},style:{width:e.resizeWidth+"px",height:e.resizeHeight+"px",transform:"translate("+(e.x+e.adjX)+"px, "+(e.y+e.adjY)+"px)"},attrs:{src:e.img,width:e.imageWidth,height:e.imageHeight}})])}),[],!1,null,"6d989a16",null).exports;r.a.autoDiscover=!1;var u={props:{width:Number,height:Number,uploadurl:String,src:String},data:function(){return{img:null,x:10,y:5,cropWidth:0,cropHeight:0,imageHeight:0,imageWidth:0,saving:!1,currentimage:null,hasError:!1,errorMessage:""}},mounted:function(){this.currentimage=this.src,this.setupUploading()},methods:{setError:function(e){this.hasError=!0,this.errorMessage=e},clearError:function(){this.hasError=!1,this.errorMessage=""},setupUploading:function(){if(!this.dropzone){var e=this;this.dropzone=new r.a(this.$refs.dropzone,{url:this.uploadurl,maxFiles:1,previewTemplate:"<span></span>",transformFileSync:!1,accept:function(t,n){e.file=t,e.done=n},transformFile:function(t,n){return e.finalize(t,n)},init:function(){this.on("thumbnail",(function(){e.img=e.file.dataURL,e.imageWidth=e.file.width,e.imageHeight=e.file.height})),this.on("success",(function(t,n){e.hasError||(e.currentimage=n.avatar)})),this.on("error",(function(t,n){e.setError(n.message),e.currentimage=e.src})),this.on("complete",(function(){e.saving=!1,e.img=null,e.dropzone.destroy(),e.dropzone=null,setTimeout((function(){e.setupUploading()}),0)}))},resize:function(e,t,n){return{srcWidth:e.width,srcHeight:e.height,trgWidth:e.width,trgHeight:e.height}}})}},finalize:function(e,t){var n=document.createElement("canvas"),i=n.getContext("2d"),o=new Image;o.src=e.dataURL,n.width=this.width,n.height=this.height,i.drawImage(o,this.$refs.image.x,this.$refs.image.y,this.$refs.image.resizeWidth,this.$refs.image.resizeHeight),this.saving=!0;var a=n.toDataURL(),s=t(r.a.dataURItoBlob(a));return this.currentimage=a,s},attachShadow:function(){this.$refs.shadow.setViewport(this.$refs.image)},handleOkay:function(){this.done.call(this.dropzone)},handleCancel:function(){window.confirm("Are you sure you want to quit?")&&(this.done.call(this.dropzone,"Cancelled upload."),this.img=null,this.saving=!1,this.dropzone.destroy(),this.clearError(),this.dropzone=null,this.setupUploading())}},components:{Avatar:c}},d=(n(86),Object(l.a)(u,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"ccm-avatar-creator-container"},[null!==e.img?n("avatar",{ref:"shadow",attrs:{shadow:!0,img:e.img,imageHeight:e.imageHeight,imageWidth:e.imageWidth,cropperWidth:e.width,cropperHeight:e.height},on:{mount:e.attachShadow}}):e._e(),e._v(" "),n("div",{ref:"dropzone",staticClass:"ccm-avatar-creator",class:{editing:null!==e.img},style:{width:e.width+"px",height:e.height+"px"}},[e.img?n("avatar",{ref:"image",attrs:{img:e.img,imageHeight:e.imageHeight,imageWidth:e.imageWidth,cropperWidth:e.width,cropperHeight:e.height}}):e._e(),e._v(" "),e.img?e._e():n("img",{staticClass:"ccm-avatar-current",attrs:{src:e.currentimage}}),e._v(" "),e.saving?n("div",{staticClass:"saving",style:{lineHeight:e.height+"px"}},[n("i",{staticClass:"fa fa-spin fa-spinner fa-circle-o-notch"})]):e._e()],1),e._v(" "),e.img?n("div",{staticClass:"ccm-avatar-actions"},[n("a",{staticClass:"ccm-avatar-okay",style:{width:e.width/2+"px"},on:{click:e.handleOkay}}),e._v(" "),n("a",{staticClass:"ccm-avatar-cancel",style:{width:e.width/2+"px"},on:{click:e.handleCancel}})]):e._e(),e._v(" "),n("canvas",{ref:"canvas",staticStyle:{height:"0"}}),e._v(" "),e.hasError?n("div",{staticClass:"alert alert-danger"},[e._v("\n        "+e._s(e.errorMessage)+"\n    ")]):e._e()],1)}),[],!1,null,"0e144f1a",null).exports);window.Concrete.Vue.createContext("frontend",{AvatarCropper:d}),document.querySelectorAll("[data-view=account]").length&&Concrete.Vue.activateContext("frontend",(function(e,t){new e({el:"[data-view=account]",components:t.components})}))}});