1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[519],{11048:function(t,e,i){"use strict";var n=i(64836);e.Z=void 0;var a=n(i(64938)),r=i(85893),o=(0,a.default)((0,r.jsx)("path",{d:"M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"}),"Crop");e.Z=o},40055:function(t,e,i){"use strict";var n=i(64836);e.Z=void 0;var a=n(i(64938)),r=i(85893),o=(0,a.default)((0,r.jsx)("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}),"Done");e.Z=o},75943:function(t,e,i){"use strict";var n=i(64836);e.Z=void 0;var a=n(i(64938)),r=i(85893),o=(0,a.default)((0,r.jsx)("path",{d:"M19.8 18.4 14 10.67V6.5l1.35-1.69c.26-.33.03-.81-.39-.81H9.04c-.42 0-.65.48-.39.81L10 6.5v4.17L4.2 18.4c-.49.66-.02 1.6.8 1.6h14c.82 0 1.29-.94.8-1.6z"}),"Science");e.Z=o},33129:function(t){t.exports=function(){"use strict";function t(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function e(e){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?t(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,e,i){return e&&a(t.prototype,e),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t){return h(t)||c(t)||d(t)||u()}function h(t){if(Array.isArray(t))return l(t)}function c(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function d(t,e){if(t){if("string"===typeof t)return l(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var f="undefined"!==typeof window&&"undefined"!==typeof window.document,p=f?window:{},m=!(!f||!p.document.documentElement)&&"ontouchstart"in p.document.documentElement,g=!!f&&"PointerEvent"in p,v="cropper",w="all",y="crop",E="move",b="zoom",A="e",x="w",T="s",I="n",M="ne",_="nw",O="se",C="sw",D="".concat(v,"-crop"),R="".concat(v,"-disabled"),k="".concat(v,"-hidden"),L="".concat(v,"-hide"),P="".concat(v,"-invisible"),B="".concat(v,"-modal"),N="".concat(v,"-move"),S="".concat(v,"Action"),W="".concat(v,"Preview"),z="crop",G="move",H="none",U="crop",Y="cropend",j="cropmove",F="cropstart",V="dblclick",X=m?"touchstart":"mousedown",q=m?"touchmove":"mousemove",Z=m?"touchend touchcancel":"mouseup",$=g?"pointerdown":X,J=g?"pointermove":q,K=g?"pointerup pointercancel":Z,Q="ready",tt="resize",et="wheel",it="zoom",nt="image/jpeg",at=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,rt=/^data:/,ot=/^data:image\/jpeg;base64,/,st=/^img|canvas$/i,ht=200,ct=100,dt={viewMode:0,dragMode:z,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:ht,minContainerHeight:ct,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},lt='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',ut=Number.isNaN||p.isNaN;function ft(t){return"number"===typeof t&&!ut(t)}var pt=function(t){return t>0&&t<1/0};function mt(t){return"undefined"===typeof t}function gt(t){return"object"===i(t)&&null!==t}var vt=Object.prototype.hasOwnProperty;function wt(t){if(!gt(t))return!1;try{var e=t.constructor,i=e.prototype;return e&&i&&vt.call(i,"isPrototypeOf")}catch(n){return!1}}function yt(t){return"function"===typeof t}var Et=Array.prototype.slice;function bt(t){return Array.from?Array.from(t):Et.call(t)}function At(t,e){return t&&yt(e)&&(Array.isArray(t)||ft(t.length)?bt(t).forEach((function(i,n){e.call(t,i,n,t)})):gt(t)&&Object.keys(t).forEach((function(i){e.call(t,t[i],i,t)}))),t}var xt=Object.assign||function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return gt(t)&&i.length>
vendor: 4,453 bytes, line 1
10&&i.forEach((function(e){gt(e)&&Object.keys(e).forEach((function(i){t[i]=e[i]}))})),t},Tt=/\.\d*(?:0|9){12}\d*$/;function It(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return Tt.test(t)?Math.round(t*e)/e:t}var Mt=/^width|height|left|top|marginLeft|marginTop$/;function _t(t,e){var i=t.style;At(e,(function(t,e){Mt.test(e)&&ft(t)&&(t="".concat(t,"px")),i[e]=t}))}function Ot(t,e){return t.classList?t.classList.contains(e):t.className.indexOf(e)>-1}function Ct(t,e){if(e)if(ft(t.length))At(t,(function(t){Ct(t,e)}));else if(t.classList)t.classList.add(e);else{var i=t.className.trim();i?i.indexOf(e)<0&&(t.className="".concat(i," ").concat(e)):t.className=e}}function Dt(t,e){e&&(ft(t.length)?At(t,(function(t){Dt(t,e)})):t.classList?t.classList.remove(e):t.className.indexOf(e)>=0&&(t.className=t.className.replace(e,"")))}function Rt(t,e,i){e&&(ft(t.length)?At(t,(function(t){Rt(t,e,i)})):i?Ct(t,e):Dt(t,e))}var kt=/([a-z\d])([A-Z])/g;function Lt(t){return t.replace(kt,"$1-$2").toLowerCase()}function Pt(t,e){return gt(t[e])?t[e]:t.dataset?t.dataset[e]:t.getAttribute("data-".concat(Lt(e)))}function Bt(t,e,i){gt(i)?t[e]=i:t.dataset?t.dataset[e]=i:t.setAttribute("data-".concat(Lt(e)),i)}function Nt(t,e){if(gt(t[e]))try{delete t[e]}catch(i){t[e]=void 0}else if(t.dataset)try{delete t.dataset[e]}catch(i){t.dataset[e]=void 0}else t.removeAttribute("data-".concat(Lt(e)))}var St=/\s\s*/,Wt=function(){var t=!1;if(f){var e=!1,i=function(){},n=Object.defineProperty({},"once",{get:function(){return t=!0,e},set:function(t){e=t}});p.addEventListener("test",i,n),p.removeEventListener("test",i,n)}return t}();function zt(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i;e.trim().split(St).forEach((function(e){if(!Wt){var r=t.listeners;r&&r[e]&&r[e][i]&&(a=r[e][i],delete r[e][i],0===Object.keys(r[e]).length&&delete r[e],0===Object.keys(r).length&&delete t.listeners)}t.removeEventListener(e,a,n)}))}function Gt(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i;e.trim().split(St).forEach((function(e){if(n.once&&!Wt){var r=t.listeners,o=void 0===r?{}:r;a=function(){delete o[e][i],t.removeEventListener(e,a,n);for(var r=arguments.length,s=new Array(r),h=0;h<r;h++)s[h]=arguments[h];i.apply(t,s)},o[e]||(o[e]={}),o[e][i]&&t.removeEventListener(e,o[e][i],n),o[e][i]=a,t.listeners=o}t.addEventListener(e,a,n)}))}function Ht(t,e,i){var n;return yt(Event)&&yt(CustomEvent)?n=new CustomEvent(e,{detail:i,bubbles:!0,cancelable:!0}):(n=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,i),t.dispatchEvent(n)}function Ut(t){var e=t.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}var Yt=p.location,jt=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function Ft(t){var e=t.match(jt);return null!==e&&(e[1]!==Yt.protocol||e[2]!==Yt.hostname||e[3]!==Yt.port)}function Vt(t){var e="timestamp=".concat((new Date).getTime());return t+(-1===t.indexOf("?")?"?":"&")+e}function Xt(t){var e=t.rotate,i=t.scaleX,n=t.scaleY,a=t.translateX,r=t.translateY,o=[];ft(a)&&0!==a&&o.push("translateX(".concat(a,"px)")),ft(r)&&0!==r&&o.push("translateY(".concat(r,"px)")),ft(e)&&0!==e&&o.push("rotate(".concat(e,"deg)")),ft(i)&&1!==i&&o.push("scaleX(".concat(i,")")),ft(n)&&1!==n&&o.push("scaleY(".concat(n,")"));var s=o.length?o.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function qt(t){var i=e({},t),n=0;return At(t,(function(t,e){delete i[e],At(i,(function(e){var i=Math.abs(t.startX-e.startX),a=Math.abs(t.startY-e.startY),r=Math.abs(t.endX-e.endX),o=Math.abs(t.endY-e.endY),s=Math.sqrt(i*i+a*a),h=(Math.sqrt(r*r+o*o)-s)/s;Math.abs(h)>Math.abs(n)&&(n=h)}))})),n}function Zt(t,i){var n=t.pageX,a=t.pageY,r={endX:n,endY:a};return i?r:e({startX:n,startY:a},r)}function $t(t){var e=0,i=0,n=0;return At(t,(function(t){var a=t.startX,r=t.startY;e+=a,i+=r,n+=1})),{pageX:e/=n,pageY:i/=n}}function Jt(t){var e=t.aspectRatio,i=t.height,n=t.width,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",r=pt(n),o=pt(i);if(r&&o){var s=i*e;"contain"===a&&s>n||"cover"===a&&s<n?i=n/e:n=i*e}else r?i=n/e:o&&(n=i*e);return{width:n,height:i}}function Kt(t){var e=t.width,i=t.height,n=t.degree;if(90===(n=Math.abs(n)%180))return{width:i,height:e};var a=n%90*Math.PI/180,r=Math.sin(a),o=Math.cos(a),s=e*o+i*r,h=e*r+i*o;return n>90?{width:h,height:s}:{width:s,height:h}}
1function Qt(t,e,i,n){var a=e.aspectRatio,r=e.naturalWidth,o=e.naturalHeight,h=e.rotate,c=void 0===h?0:h,d=e.scaleX,l=void 0===d?1:d,u=e.scaleY,f=void 0===u?1:u,p=i.aspectRatio,m=i.naturalWidth,g=i.naturalHeight,v=n.fillColor,w=void 0===v?"transparent":v,y=n.imageSmoothingEnabled,E=void 0===y||y,b=n.imageSmoothingQuality,A=void 0===b?"low":b,x=n.maxWidth,T=void 0===x?1/0:x,I=n.maxHeight,M=void 0===I?1/0:I,_=n.minWidth,O=void 0===_?0:_,C=n.minHeight,D=void 0===C?0:C,R=document.createElement("canvas"),k=R.getContext("2d"),L=Jt({aspectRatio:p,width:T,height:M}),P=Jt({aspectRatio:p,width:O,height:D},"cover"),B=Math.min(L.width,Math.max(P.width,m)),N=Math.min(L.height,Math.max(P.height,g)),S=Jt({aspectRatio:a,width:T,height:M}),W=Jt({aspectRatio:a,width:O,height:D},"cover"),z=Math.min(S.width,Math.max(W.width,r)),G=Math.min(S.height,Math.max(W.height,o)),H=[-z/2,-G/2,z,G];return R.width=It(B),R.height=It(N),k.fillStyle=w,k.fillRect(0,0,B,N),k.save(),k.translate(B/2,N/2),k.rotate(c*Math.PI/180),k.scale(l,f),k.imageSmoothingEnabled=E,k.imageSmoothingQuality=A,k.drawImage.apply(k,[t].concat(s(H.map((function(t){return Math.floor(It(t))}))))),k.restore(),R}var te=String.fromCharCode;function ee(t,e,i){var n="";i+=e;for(var a=e;a<i;a+=1)n+=te(t.getUint8(a));return n}var ie=/^data:.*,/;function ne(t){var e=t.replace(ie,""),i=atob(e),n=new ArrayBuffer(i.length),a=new Uint8Array(n);return At(a,(function(t,e){a[e]=i.charCodeAt(e)})),n}function ae(t,e){for(var i=[],n=8192,a=new Uint8Array(t);a.length>0;)i.push(te.apply(null,bt(a.subarray(0,n)))),a=a.subarray(n);return"data:".concat(e,";base64,").concat(btoa(i.join("")))}function re(t){var e,i=new DataView(t);try{var n,a,r;if(255===i.getUint8(0)&&216===i.getUint8(1))for(var o=i.byteLength,s=2;s+1<o;){if(255===i.getUint8(s)&&225===i.getUint8(s+1)){a=s;break}s+=1}if(a){var h=a+10;if("Exif"===ee(i,a+4,4)){var c=i.getUint16(h);if(((n=18761===c)||19789===c)&&42===i.getUint16(h+2,n)){var d=i.getUint32(h+4,n);d>=8&&(r=h+d)}}}if(r){var l,u,f=i.getUint16(r,n);for(u=0;u<f;u+=1)if(l=r+12*u+2,274===i.getUint16(l,n)){l+=8,e=i.getUint16(l,n),i.setUint16(l,1,n);break}}}catch(p){e=1}return e}function oe(t){var e=0,i=1,n=1;switch(t){case 2:i=-1;break;case 3:e=-180;break;case 4:n=-1;break;case 5:e=90,n=-1;break;case 6:e=90;break;case 7:e=90,i=-1;break;case 8:e=-90}return{rotate:e,scaleX:i,scaleY:n}}var se={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var t=this.element,e=this.options,i=this.container,n=this.cropper,a=Number(e.minContainerWidth),r=Number(e.minContainerHeight);Ct(n,k),Dt(t,k);var o={width:Math.max(i.offsetWidth,a>=0?a:ht),height:Math.max(i.offsetHeight,r>=0?r:ct)};this.containerData=o,_t(n,{width:o.width,height:o.height}),Ct(t,k),Dt(n,k)},initCanvas:function(){var t=this.containerData,e=this.imageData,i=this.options.viewMode,n=Math.abs(e.rotate)%180===90,a=n?e.naturalHeight:e.naturalWidth,r=n?e.naturalWidth:e.naturalHeight,o=a/r,s=t.width,h=t.height;t.height*o>t.width?3===i?s=t.height*o:h=t.width/o:3===i?h=t.width/o:s=t.height*o;var c={aspectRatio:o,naturalWidth:a,naturalHeight:r,width:s,height:h};this.canvasData=c,this.limited=1===i||2===i,this.limitCanvas(!0,!0),c.width=Math.min(Math.max(c.width,c.minWidth),c.maxWidth),c.height=Math.min(Math.max(c.height,c.minHeight),c.maxHeight),c.left=(t.width-c.width)/2,c.top=(t.height-c.height)/2,c.oldLeft=c.left,c.oldTop=c.top,this.initialCanvasData=xt({},c)},limitCanvas:function(t,e){var i=this.options,n=this.containerData,a=this.canvasData,r=this.cropBoxData,o=i.viewMode,s=a.aspectRatio,h=this.cropped&&r;if(t){var c=Number(i.minCanvasWidth)||0,d=Number(i.minCanvasHeight)||0;o>1?(c=Math.max(c,n.width),d=Math.max(d,n.height),3===o&&(d*s>c?c=d*s:d=c/s)):o>0&&(c?c=Math.max(c,h?r.width:0):d?d=Math.max(d,h?r.height:0):h&&(c=r.width,(d=r.height)*s>c?c=d*s:d=c/s));var l=Jt({aspectRatio:s,width:c,height:d});c=l.width,d=l.height,a.minWidth=c,a.minHeight=d,a.maxWidth=1/0,a.maxHeight=1/0}if(e)if(o>(h?0:1)){var u=n.width-a.width,f=n.height-a.height;a.minLeft=Math.min(0,u),a.minTop=Math.min(0,f),a.maxLeft=Math.max(0,u),a.maxTop=Math.max(0,f),h&&this.limited&&(a.minLeft=Math.min(r.left,r.left+(r.width-a.width)),a.minTop=Math.min(r.top,r.top+(r.height-a.height)),a.maxLeft=r.left,a.maxTop=r.top,2===o&&(a.width>=n.width&&(a.minLeft=Math.min(0,u),a.maxLeft=Math.max(0,u)),a.height>=n.height&&(a.minTop=Math.min(0,f),a.maxTop=Math.max(0,f))))}else a.minLeft=-a.width,a.minTop=-a.height,a.maxLeft=n.width,a.maxTop=n.height},renderCanvas:function(t,e){var i=this.canvasData,n=this.imageData;
vendor: 8,389 bytes, line 1
1if(e){var a=Kt({width:n.naturalWidth*Math.abs(n.scaleX||1),height:n.naturalHeight*Math.abs(n.scaleY||1),degree:n.rotate||0}),r=a.width,o=a.height,s=i.width*(r/i.naturalWidth),h=i.height*(o/i.naturalHeight);i.left-=(s-i.width)/2,i.top-=(h-i.height)/2,i.width=s,i.height=h,i.aspectRatio=r/o,i.naturalWidth=r,i.naturalHeight=o,this.limitCanvas(!0,!1)}(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCanvas(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,_t(this.canvas,xt({width:i.width,height:i.height},Xt({translateX:i.left,translateY:i.top}))),this.renderImage(t),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(t){var e=this.canvasData,i=this.imageData,n=i.naturalWidth*(e.width/e.naturalWidth),a=i.naturalHeight*(e.height/e.naturalHeight);xt(i,{width:n,height:a,left:(e.width-n)/2,top:(e.height-a)/2}),_t(this.image,xt({width:i.width,height:i.height},Xt(xt({translateX:i.left,translateY:i.top},i)))),t&&this.output()},initCropBox:function(){var t=this.options,e=this.canvasData,i=t.aspectRatio||t.initialAspectRatio,n=Number(t.autoCropArea)||.8,a={width:e.width,height:e.height};i&&(e.height*i>e.width?a.height=a.width/i:a.width=a.height*i),this.cropBoxData=a,this.limitCropBox(!0,!0),a.width=Math.min(Math.max(a.width,a.minWidth),a.maxWidth),a.height=Math.min(Math.max(a.height,a.minHeight),a.maxHeight),a.width=Math.max(a.minWidth,a.width*n),a.height=Math.max(a.minHeight,a.height*n),a.left=e.left+(e.width-a.width)/2,a.top=e.top+(e.height-a.height)/2,a.oldLeft=a.left,a.oldTop=a.top,this.initialCropBoxData=xt({},a)},limitCropBox:function(t,e){var i=this.options,n=this.containerData,a=this.canvasData,r=this.cropBoxData,o=this.limited,s=i.aspectRatio;if(t){var h=Number(i.minCropBoxWidth)||0,c=Number(i.minCropBoxHeight)||0,d=o?Math.min(n.width,a.width,a.width+a.left,n.width-a.left):n.width,l=o?Math.min(n.height,a.height,a.height+a.top,n.height-a.top):n.height;h=Math.min(h,n.width),c=Math.min(c,n.height),s&&(h&&c?c*s>h?c=h/s:h=c*s:h?c=h/s:c&&(h=c*s),l*s>d?l=d/s:d=l*s),r.minWidth=Math.min(h,d),r.minHeight=Math.min(c,l),r.maxWidth=d,r.maxHeight=l}e&&(o?(r.minLeft=Math.max(0,a.left),r.minTop=Math.max(0,a.top),r.maxLeft=Math.min(n.width,a.left+a.width)-r.width,r.maxTop=Math.min(n.height,a.top+a.height)-r.height):(r.minLeft=0,r.minTop=0,r.maxLeft=n.width-r.width,r.maxTop=n.height-r.height))},renderCropBox:function(){var t=this.options,e=this.containerData,i=this.cropBoxData;(i.width>i.maxWidth||i.width<i.minWidth)&&(i.left=i.oldLeft),(i.height>i.maxHeight||i.height<i.minHeight)&&(i.top=i.oldTop),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),this.limitCropBox(!1,!0),i.left=Math.min(Math.max(i.left,i.minLeft),i.maxLeft),i.top=Math.min(Math.max(i.top,i.minTop),i.maxTop),i.oldLeft=i.left,i.oldTop=i.top,t.movable&&t.cropBoxMovable&&Bt(this.face,S,i.width>=e.width&&i.height>=e.height?E:w),_t(this.cropBox,xt({width:i.width,height:i.height},Xt({translateX:i.left,translateY:i.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Ht(this.element,U,this.getData())}},he={initPreview:function(){var t=this.element,e=this.crossOrigin,i=this.options.preview,n=e?this.crossOriginUrl:this.url,a=t.alt||"The image to preview",r=document.createElement("img");if(e&&(r.crossOrigin=e),r.src=n,r.alt=a,this.viewBox.appendChild(r),this.viewBoxImage=r,i){var o=i;"string"===typeof i?o=t.ownerDocument.querySelectorAll(i):i.querySelector&&(o=[i]),this.previews=o,At(o,(function(t){var i=document.createElement("img");Bt(t,W,{width:t.offsetWidth,height:t.offsetHeight,html:t.innerHTML}),e&&(i.crossOrigin=e),i.src=n,i.alt=a,i.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',t.innerHTML="",t.appendChild(i)}))}},resetPreview:function(){At(this.previews,(function(t){var e=Pt(t,W);_t(t,{width:e.width,height:e.height}),t.innerHTML=e.html,Nt(t,W)}))},preview:function(){var t=this.imageData,e=this.canvasData,i=this.cropBoxData,n=i.width,a=i.height,r=t.width,o=t.height,s=i.left-e.left-t.left,h=i.top-e.top-t.top;this.cropped&&!this.disabled&&(_t(this.viewBoxImage,xt({width:r,height:o},Xt(xt({translateX:-s,translateY:-h},t)))),At(this.previews,(function(e){var i=Pt(e,W),c=i.width,d=i.height,l=c,u=d,f=1;n&&(u=a*(f=c/n)),a&&u>d&&(l=n*(f=d/a),u=d),_t(e,{width:l,height:u}),_t(e.getElementsByTagName("img")[0],xt({width:r*f,height:o*f},Xt(xt({translateX:-s*f,translateY:-h*f},t))))})))}},ce={bind:function(){var t=this.element,e=this.options,i=this.cropper;yt(e.cropstart)&&Gt(t,F,e.cropstart),yt(e.cropmove)&&Gt(t,j,e.cropmove),yt(e.cropend)&&Gt(t,Y,e.cropend),yt(e.crop)&&Gt(t,U,e.crop),yt(e.zoom)&&Gt(t,it,e.zoom),Gt(i,$,this.onCropStart=this.cropStart.bind(this)),e.zoomable&&e.zoomOnWheel&&Gt(i,et,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&Gt(i,V,this.onDblclick=this.dblclick.bind(this)),Gt(t.ownerDocument,J,this.onCropMove=this.cropMove.bind(this)),Gt(t.ownerDocument,K,this.onCropEnd=this.cropEnd.bind(this)),e.responsive&&Gt(window,tt,this.onResize=this.resize.bind(this))},unbind:function(){var t=this.element,e=this.options,i=this.cropper;yt(e.cropstart)&&zt(t,F,e.cropstart),yt(e.cropmove)&&zt(t,j,e.cropmove),yt(e.cropend)&&zt(t,Y,e.cropend),yt(e.crop)&&zt(t,U,e.crop),yt(e.zoom)&&zt(t,it,e.zoom),zt(i,$,this.onCropStart),e.zoomable&&e.zoomOnWheel&&zt(i,et,this.onWheel,{passive:!1,capture:!0}),e.toggleDragModeOnDblclick&&zt(i,V,this.onDblclick),zt(t.ownerDocument,J,this.onCropMove),zt(t.ownerDocument,K,this.onCropEnd),e.responsive&&zt(window,tt,this.onResize)}},de={resize:function(){if(!this.disabled){var t,e,i=this.options,n=this.container,a=this.containerData,r=n.offsetWidth/a.width,o=n.offsetHeight/a.height,s=Math.abs(r-1)>Math.abs(o-1)?r:o;1!==s&&(i.restore&&(t=this.getCanvasData(),e=this.getCropBoxData()),this.render(),i.restore&&(this.setCanvasData(At(t,(function(e,i){t[i]=e*s}))),this.setCropBoxData(At(e,(function(t,i){e[i]=t*s})))))}},dblclick:function(){this.disabled||this.options.dragMode===H||this.setDragMode(Ot(this.dragBox,D)?G:z)},wheel:function(t){var e=this,i=Number(this.options.wheelZoomRatio)||.1,n=1;this.disabled||(t.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){e.wheeling=!1}),50),t.deltaY?n=t.deltaY>0?1:-1:t.wheelDelta?n=-t.wheelDelta/120:t.detail&&(n=t.detail>0?1:-1),this.zoom(-n*i,t)))},cropStart:function(t){var e=t.buttons,i=t.button;if(!(this.disabled||("mousedown"===t.type||"pointerdown"===t.type&&"mouse"===t.pointerType)&&(ft(e)&&1!==e||ft(i)&&0!==i||t.ctrlKey))){var n,a=this.options,r=this.pointers;t.changedTouches?At(t.changedTouches,(function(t){r[t.identifier]=Zt(t)})):r[t.pointerId||0]=Zt(t),n=Object.keys(r).length>1&&a.zoomable&&a.zoomOnTouch?b:Pt(t.target,S),at.test(n)&&!1!==Ht(this.element,F,{originalEvent:t,action:n})&&(t.preventDefault(),this.action=n,this.cropping=!1,n===y&&(this.cropping=!0,Ct(this.dragBox,B)))}},cropMove:function(t){var e=this.action;if(!this.disabled&&e){var i=this.pointers;t.preventDefault(),!1!==Ht(this.element,j,{originalEvent:t,action:e})&&(t.changedTouches?At(t.changedTouches,(function(t){xt(i[t.identifier]||{},Zt(t,!0))})):xt(i[t.pointerId||0]||{},Zt(t,!0)),this.change(t))}},cropEnd:function(t){if(!this.disabled){var e=this.action,i=this.pointers;t.changedTouches?At(t.changedTouches,(function(t){delete i[t.identifier]})):delete i[t.pointerId||0],e&&(t.preventDefault(),Object.keys(i).length||(this.action=""),this.cropping&&(this.cropping=!1,Rt(this.dragBox,B,this.cropped&&this.options.modal)),Ht(this.element,Y,{originalEvent:t,action:e}))}}},le={change:function(t){var e,i=this.options,n=this.canvasData,a=this.containerData,r=this.cropBoxData,o=this.pointers,s=this.action,h=i.aspectRatio,c=r.left,d=r.top,l=r.width,u=r.height,f=c+l,p=d+u,m=0,g=0,v=a.width,D=a.height,R=!0;!h&&t.shiftKey&&(h=l&&u?l/u:1),this.limited&&(m=r.minLeft,g=r.minTop,v=m+Math.min(a.width,n.width,n.left+n.width),D=g+M
vendor: 13,384 bytes, line 1
1ath.min(a.height,n.height,n.top+n.height));var L=o[Object.keys(o)[0]],P={x:L.endX-L.startX,y:L.endY-L.startY},B=function(t){switch(t){case A:f+P.x>v&&(P.x=v-f);break;case x:c+P.x<m&&(P.x=m-c);break;case I:d+P.y<g&&(P.y=g-d);break;case T:p+P.y>D&&(P.y=D-p)}};switch(s){case w:c+=P.x,d+=P.y;break;case A:if(P.x>=0&&(f>=v||h&&(d<=g||p>=D))){R=!1;break}B(A),(l+=P.x)<0&&(s=x,c-=l=-l),h&&(u=l/h,d+=(r.height-u)/2);break;case I:if(P.y<=0&&(d<=g||h&&(c<=m||f>=v))){R=!1;break}B(I),u-=P.y,d+=P.y,u<0&&(s=T,d-=u=-u),h&&(l=u*h,c+=(r.width-l)/2);break;case x:if(P.x<=0&&(c<=m||h&&(d<=g||p>=D))){R=!1;break}B(x),l-=P.x,c+=P.x,l<0&&(s=A,c-=l=-l),h&&(u=l/h,d+=(r.height-u)/2);break;case T:if(P.y>=0&&(p>=D||h&&(c<=m||f>=v))){R=!1;break}B(T),(u+=P.y)<0&&(s=I,d-=u=-u),h&&(l=u*h,c+=(r.width-l)/2);break;case M:if(h){if(P.y<=0&&(d<=g||f>=v)){R=!1;break}B(I),u-=P.y,d+=P.y,l=u*h}else B(I),B(A),P.x>=0?f<v?l+=P.x:P.y<=0&&d<=g&&(R=!1):l+=P.x,P.y<=0?d>g&&(u-=P.y,d+=P.y):(u-=P.y,d+=P.y);l<0&&u<0?(s=C,d-=u=-u,c-=l=-l):l<0?(s=_,c-=l=-l):u<0&&(s=O,d-=u=-u);break;case _:if(h){if(P.y<=0&&(d<=g||c<=m)){R=!1;break}B(I),u-=P.y,d+=P.y,l=u*h,c+=r.width-l}else B(I),B(x),P.x<=0?c>m?(l-=P.x,c+=P.x):P.y<=0&&d<=g&&(R=!1):(l-=P.x,c+=P.x),P.y<=0?d>g&&(u-=P.y,d+=P.y):(u-=P.y,d+=P.y);l<0&&u<0?(s=O,d-=u=-u,c-=l=-l):l<0?(s=M,c-=l=-l):u<0&&(s=C,d-=u=-u);break;case C:if(h){if(P.x<=0&&(c<=m||p>=D)){R=!1;break}B(x),l-=P.x,c+=P.x,u=l/h}else B(T),B(x),P.x<=0?c>m?(l-=P.x,c+=P.x):P.y>=0&&p>=D&&(R=!1):(l-=P.x,c+=P.x),P.y>=0?p<D&&(u+=P.y):u+=P.y;l<0&&u<0?(s=M,d-=u=-u,c-=l=-l):l<0?(s=O,c-=l=-l):u<0&&(s=_,d-=u=-u);break;case O:if(h){if(P.x>=0&&(f>=v||p>=D)){R=!1;break}B(A),u=(l+=P.x)/h}else B(T),B(A),P.x>=0?f<v?l+=P.x:P.y>=0&&p>=D&&(R=!1):l+=P.x,P.y>=0?p<D&&(u+=P.y):u+=P.y;l<0&&u<0?(s=_,d-=u=-u,c-=l=-l):l<0?(s=C,c-=l=-l):u<0&&(s=M,d-=u=-u);break;case E:this.move(P.x,P.y),R=!1;break;case b:this.zoom(qt(o),t),R=!1;break;case y:if(!P.x||!P.y){R=!1;break}e=Ut(this.cropper),c=L.startX-e.left,d=L.startY-e.top,l=r.minWidth,u=r.minHeight,P.x>0?s=P.y>0?O:M:P.x<0&&(c-=l,s=P.y>0?C:_),P.y<0&&(d-=u),this.cropped||(Dt(this.cropBox,k),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}R&&(r.width=l,r.height=u,r.left=c,r.top=d,this.action=s,this.renderCropBox()),At(o,(function(t){t.startX=t.endX,t.startY=t.endY}))}},ue={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Ct(this.dragBox,B),Dt(this.cropBox,k),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=xt({},this.initialImageData),this.canvasData=xt({},this.initialCanvasData),this.cropBoxData=xt({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(xt(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Dt(this.dragBox,B),Ct(this.cropBox,k)),this},replace:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&t&&(this.isImg&&(this.element.src=t),e?(this.url=t,this.image.src=t,this.ready&&(this.viewBoxImage.src=t,At(this.previews,(function(e){e.getElementsByTagName("img")[0].src=t})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(t))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Dt(this.cropper,R)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Ct(this.cropper,R)),this},destroy:function(){var t=this.element;return t[v]?(t[v]=void 0,this.isImg&&this.replaced&&(t.src=this.originalUrl),this.uncreate(),this):this},move:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,n=i.left,a=i.top;return this.moveTo(mt(t)?t:n+Number(t),mt(e)?e:a+Number(e))},moveTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.canvasData,n=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.movable&&(ft(t)&&(i.left=t,n=!0),ft(e)&&(i.top=e,n=!0),n&&this.renderCanvas(!0)),this},zoom:function(t,e){var i=this.canvasData;return t=(t=Number(t))<0?1/(1-t):1+t,this.zoomTo(i.width*t/i.naturalWidth,null,e)},zoomTo:function(t,e,i){var n=this.options,a=this.canvasData,r=a.width,o=a.height,s=a.naturalWidth,h=a.naturalHeight;if((t=Number(t))>=0&&this.ready&&!this.disabled&&n.zoomable){var c=s*t,d=h*t;if(!1===Ht(this.element,it,{ratio:t,oldRatio:r/s,originalEvent:i}))return this;if(i){var l=this.pointers,u=Ut(this.cropper),f=l&&Object.keys(l).length?$t(l):{pageX:i.pageX,pageY:i.pageY};a.left-=(c-r)*((f.pageX-u.left-a.left)/r),a.top-=(d-o)*((f.pageY-u.top-a.top)/o)}else wt(e)&&ft(e.x)&&ft(e.y)?(a.left-=(c-r)*((e.x-a.left)/r),a.top-=(d-o)*((e.y-a.top)/o)):(a.left-=(c-r)/2,a.top-=(d-o)/2);a.width=c,a.height=d,this.renderCanvas(!0)}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t))},rotateTo:function(t){return ft(t=Number(t))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=t%360,this.renderCanvas(!0,!0)),this},scaleX:function(t){var e=this.imageData.scaleY;return this.scale(t,ft(e)?e:1)},scaleY:function(t){var e=this.imageData.scaleX;return this.scale(ft(e)?e:1,t)},scale:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=this.imageData,n=!1;return t=Number(t),e=Number(e),this.ready&&!this.disabled&&this.options.scalable&&(ft(t)&&(i.scaleX=t,n=!0),ft(e)&&(i.scaleY=e,n=!0),n&&this.renderCanvas(!0,!0)),this},getData:function(){var t,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.options,n=this.imageData,a=this.canvasData,r=this.cropBoxData;if(this.ready&&this.cropped){t={x:r.left-a.left,y:r.top-a.top,width:r.width,height:r.height};var o=n.width/n.naturalWidth;if(At(t,(function(e,i){t[i]=e/o})),e){var s=Math.round(t.y+t.height),h=Math.round(t.x+t.width);t.x=Math.round(t.x),t.y=Math.round(t.y),t.width=h-t.x,t.height=s-t.y}}else t={x:0,y:0,width:0,height:0};return i.rotatable&&(t.rotate=n.rotate||0),i.scalable&&(t.scaleX=n.scaleX||1,t.scaleY=n.scaleY||1),t},setData:function(t){var e=this.options,i=this.imageData,n=this.canvasData,a={};if(this.ready&&!this.disabled&&wt(t)){var r=!1;e.rotatable&&ft(t.rotate)&&t.rotate!==i.rotate&&(i.rotate=t.rotate,r=!0),e.scalable&&(ft(t.scaleX)&&t.scaleX!==i.scaleX&&(i.scaleX=t.scaleX,r=!0),ft(t.scaleY)&&t.scaleY!==i.scaleY&&(i.scaleY=t.scaleY,r=!0)),r&&this.renderCanvas(!0,!0);var o=i.width/i.naturalWidth;ft(t.x)&&(a.left=t.x*o+n.left),ft(t.y)&&(a.top=t.y*o+n.top),ft(t.width)&&(a.width=t.width*o),ft(t.height)&&(a.height=t.height*o),this.setCropBoxData(a)}return this},getContainerData:function(){return this.ready?xt({},this.containerData):{}},getImageData:function(){return this.sized?xt({},this.imageData):{}},getCanvasData:function(){var t=this.canvasData,e={};return this.ready&&At(["left","top","width","height","naturalWidth","naturalHeight"],(function(i){e[i]=t[i]})),e},setCanvasData:function(t){var e=this.canvasData,i=e.aspectRatio;return this.ready&&!this.disabled&&wt(t)&&(ft(t.left)&&(e.left=t.left),ft(t.top)&&(e.top=t.top),ft(t.width)?(e.width=t.width,e.height=t.width/i):ft(t.height)&&(e.height=t.height,e.width=t.height*i),this.renderCanvas(!0)),this},getCropBoxData:function(){var t,e=this.cropBoxData;return this.ready&&this.cropped&&(t={left:e.left,top:e.top,width:e.width,height:e.height}),t||{}},setCropBoxData:function(t){var e,i,n=this.cropBoxData,a=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&wt(t)&&(ft(t.left)&&(n.left=t.left),ft(t.top)&&(n.top=t.top),ft(t.width)&&t.width!==n.width&&(e=!0,n.width=t.width),ft(t.height)&&t.height!==n.height&&(i=!0,n.height=t.height),a&&(e?n.height=n.width/a:i&&(n.width=n.height*a)),this.renderCropBox()),this},getCroppedCanvas:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var e=this.canvasData,i=Qt(this.image,this.imageData,e,t);if(!this.cropped)return i;var n=this.getData(),a=n.x,r=n.y,o=n.width,h=n.height,c=i.width/Math.floor(e.naturalWidth);1!==c&&(a*=c,r*=c,o*=c,h*=c);var d=o/h,l=Jt({aspectRatio:d,width:t.maxWidth||1/0,height:t.maxHeight||1/0}),u=Jt({aspectRatio:d,width:t.minWidth||0,height:t.minHeight||0},"cover"),f=Jt({aspectRatio:d,width:t.width||(1!==c?i.width:o),height:t.height||(1!==c?i.height:h)}),p=f.width,m=f.height;p=Math.min(l.width,Math.max(u.width,p)),m=Math.min(l.height,Math.max(u.height,m));var g=document.createElement("canvas"),v=g.getContext("2d");g.width=It(p),g.height=It(m),v.fillStyle=t.fillColor||"transparent",v.fillRect(0,0,p,m);var w=t.imageSmoothingEnabled,y=void 0===w||w,E=t.imageSmoothingQuality;v.imageSmoothingEnabled=y,E&&(v.imageSmoothingQuality=E);var b,A,x,T,I,M,_=i.width,O=i.height,C=a,D=r;C<=-o||C>_?(C=0,b=0,x=0,I=0):C<=0?(x=-C,C=0,I=b=Math.min(_,o+C)):C<=_&&(x=0,I=b=Math.min(o,_-C)),b<=0||D<=-h||D>O?(D=0,A=0,T=0,M=0):D<=0?(T=-D,D=0,M=A=Math.min(O,h+D)):D<=O&&(T=0,M=A=Math.min(h,O-D));var R=[C,D,b,A];if(I>0&&M>0){var k=p/o;R.push(x*k,T*k,I*k,M*k)}return v.drawImage.apply(v,[i].concat(s(R.map((function(t){return Math.floor(It(t))}))))),g},setAspectRatio:function(t){var e=this.options;return this.disabled||mt(t)||(e.aspectRatio=Math.max(0,t)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(t){var e=this.options,i=this.dragBox,n=this.face;if(this.ready&&!this.disabled){var a=t===z,r=e.movable&&t===G;t=a||r?t:H,e.dragMode=t,Bt(i,S,t),Rt(i,D,a),Rt(i,N,r),e.cropBoxMovable||(Bt(n,S,t),Rt(n,D,a),Rt(n,N,r))}return this}},fe=p.Cropper,pe=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n(this,t),!e||!st.test(e.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=e,this.options=xt({},dt,wt(i)&&i),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return r(t,[{key:"init",value:function(){var t,e=this.element,i=e.tagName.toLowerCase();if(!e[v]){if(e[v]=this,"img"===i){if(this.isImg=!0,t=e.getAttribute("src")||"",this.originalUrl=t,!t)return;t=e.src}else"canvas"===i&&window.HTMLCanvasElement&&(t=e.toDataURL());this.load(t)}}},{key:"load",value:function(t){var e=this;if(t){this.url=t,this.imageData={};var i=this.element,n=this.options;if(n.rotatable||n.scalable||(n.checkOrientation=!1),n.checkOrientation&&window.ArrayBuffer)if(rt.test(t))ot.test(t)?this.read(ne(t)):this.clone();else{var a=new XMLHttpRequest,r=this.clone.bind(this);this.reloading=!0,this.xhr=a,a.onabort=r,a.onerror=r,a.ontimeout=r,a.onprogress=function(){a.getResponseHeader("content-type")!==nt&&a.abort()},a.onload=function(){e.read(a.response)},a.onloadend=function(){e.reloading=!1,e.xhr=null},n.checkCrossOrigin&&Ft(t)&&i.crossOrigin&&(t=Vt(t)),a.open("GET",t,!0),a.responseType="arraybuffer",a.withCredentials="use-credentials"===i.crossOrigin,a.send()}else this.clone()}}},{key:"read",value:function(t){var e=this.options,i=this.imageData,n=re(t),a=0,r=1,o=1;if(n>1){this.url=ae(t,nt);var s=oe(n);a=s.rotate,r=s.scaleX,o=s.scaleY}e.rotatable&&(i.rotate=a),e.scalable&&(i.scaleX=r,i.scaleY=o),this.clone()}},{key:"clone",value:function(){var t=this.element,e=this.url,i=t.crossOrigin,n=e;this.options.checkCrossOrigin&&Ft(e)&&(i||(i="anonymous"),n=Vt(e)),this.crossOrigin=i,this.crossOriginUrl=n;var a=document.createElement("img");i&&(a.crossOrigin=i),a.src=n||e,a.alt=t.alt||"The image to crop",this.image=a,a.onload=this.start.bind(this),a.onerror=this.stop.bind(this),Ct(a,L),t.parentNode.insertBefore(a,t.nextSibling)}},{key:"start",value:function(){var t=this,e=this.image;e.onload=null,e.onerror=null,this.sizing=!0;var i=p.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(p.navigator.userAgent),n=function(e,i){xt(t.imageData,{naturalWidth:e,naturalHeight:i,aspectRatio:e/i}),t.initialImageData=xt({},t.imageData),t.sizing=!1,t.sized=!0,t.build()};if(!e.naturalWidth||i){var a=document.createElement("img"),r=document.body||document.documentElement;this.sizingImage=a,a.onload=function(){n(a.width,a.height),i||r.removeChild(a)},a.src=e.src,i||(a.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",r.appendChild(a))}else n(e.naturalWidth,e.naturalHeight)}},{key:"stop",value:function(){var t=this.image;t.onload=null,t.onerror=null,t.parentNode.removeChild(t),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var t=this.element,e=this.options,i=this.image,n=t.parentNode,a=document.createElement("div");a.innerHTML=lt;var r=a.querySelector(".".concat(v,"-container")),o=r.querySelector(".".concat(v,"-canvas")),s=r.querySelector(".".concat(v,"-drag-box")),h=r.querySelector(".".concat(v,"-crop-box")),c=h.querySelector(".".concat(v,"-face"));this.container=n,this.cropper=r,this.canvas=o,this.dragBox=s,this.cropBox=h,this.viewBox=r.querySelector(".".concat(v,"-view-box")),this.face=c,o.appendChild(i),Ct(t,k),n.insertBefore(r,t.nextSibling),Dt(i,L),this.initPreview(),this.bind(),e.initialAspectRatio=Math.max(0,e.initialAspectRatio)||NaN,e.aspectRatio=Math.max(0,e.aspectRatio)||NaN,e.viewMode=Math.max(0,Math.min(3,Math.round(e.viewM
1ode)))||0,Ct(h,k),e.guides||Ct(h.getElementsByClassName("".concat(v,"-dashed")),k),e.center||Ct(h.getElementsByClassName("".concat(v,"-center")),k),e.background&&Ct(r,"".concat(v,"-bg")),e.highlight||Ct(c,P),e.cropBoxMovable&&(Ct(c,N),Bt(c,S,w)),e.cropBoxResizable||(Ct(h.getElementsByClassName("".concat(v,"-line")),k),Ct(h.getElementsByClassName("".concat(v,"-point")),k)),this.render(),this.ready=!0,this.setDragMode(e.dragMode),e.autoCrop&&this.crop(),this.setData(e.data),yt(e.ready)&&Gt(t,Q,e.ready,{once:!0}),Ht(t,Q)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var t=this.cropper.parentNode;t&&t.removeChild(this.cropper),Dt(this.element,k)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=fe,t}},{key:"setDefaults",value:function(t){xt(dt,wt(t)&&t)}}]),t}();return xt(pe.prototype,se,he,ce,de,le,ue),pe}()},88515:function(t){t.exports=function(){"use strict";var t=function(){self.onmessage=function(e){t(e.data.message,(function(t){self.postMessage({id:e.data.id,message:t})}))};var t=function(t,e){var i=t.file,n=new FileReader;n.onloadend=function(){e(n.result.replace("data:","").replace(/^.+,/,""))},n.readAsDataURL(i)}},e=function(e){var i=e.addFilter,n=e.utils,a=n.Type,r=n.createWorker,o=n.createRoute,s=n.isFile,h=function(e){var i=e.name,n=e.file;return new Promise((function(e){var a=r(t);a.post({file:n},(function(t){e({name:i,data:t}),a.terminate()}))}))},c=[];return i("DID_CREATE_ITEM",(function(t,e){(0,e.query)("GET_ALLOW_FILE_ENCODE")&&(t.extend("getFileEncodeBase64String",(function(){return c[t.id]&&c[t.id].data})),t.extend("getFileEncodeDataURL",(function(){return"data:".concat(t.fileType,";base64,").concat(c[t.id].data)})))})),i("SHOULD_PREPARE_OUTPUT",(function(t,e){var i=e.query;return new Promise((function(t){t(i("GET_ALLOW_FILE_ENCODE"))}))})),i("COMPLETE_PREPARE_OUTPUT",(function(t,e){var i=e.item,n=e.query;return new Promise((function(e){if(!n("GET_ALLOW_FILE_ENCODE")||!s(t)&&!Array.isArray(t))return e(t);c[i.id]={metadata:i.getMetadata(),data:null},Promise.all((t instanceof Blob?[{name:null,file:t}]:t).map(h)).then((function(n){c[i.id].data=t instanceof Blob?n[0].data:n,e(t)}))}))})),i("CREATE_VIEW",(function(t){var e=t.is,i=t.view,n=t.query;e("file-wrapper")&&n("GET_ALLOW_FILE_ENCODE")&&i.registerWriter(o({DID_PREPARE_OUTPUT:function(t){var e=t.root,i=t.action;if(!n("IS_ASYNC")){var a=n("GET_ITEM",i.id);if(a){var r=c[a.id],o=r.metadata,s=r.data,h=JSON.stringify({id:a.id,name:a.file.name,type:a.file.type,size:a.file.size,metadata:o,data:s});e.ref.data?e.ref.data.value=h:e.dispatch("DID_DEFINE_VALUE",{id:a.id,value:h})}}},DID_REMOVE_ITEM:function(t){var e=t.action,i=n("GET_ITEM",e.id);i&&delete c[i.id]}}))})),{options:{allowFileEncode:[!0,a.BOOLEAN]}}};return"undefined"!==typeof window&&"undefined"!==typeof window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:e})),e}()},90521:function(t){t.exports=function(){"use strict";var t=function(t){var e=t.addFilter,i=t.utils,n=i.Type,a=i.isString,r=i.replaceInString,o=i.guesstimateMimeType,s=i.getExtensionFromFilename,h=i.getFilenameFromURL,c=function(t,e){return(/^[^/]+/.exec(t)||[]).pop()===e.slice(0,-2)},d=function(t,e){return t.some((function(t){return/\*$/.test(t)?c(e,t):t===e}))},l=function(t){var e="";if(a(t)){var i=h(t),n=s(i);n&&(e=o(n))}else e=t.type;return e},u=function(t,e,i){if(0===e.length)return!0;var n=l(t);return i?new Promise((function(a,r){i(t,n).then((function(t){d(e,t)?a():r()})).catch(r)})):d(e,n)},f=function(t){return function(e){return null!==t[e]&&(t[e]||e)}};return e("SET_ATTRIBUTE_TO_OPTION_MAP",(function(t){return Object.assign(t,{accept:"acceptedFileTypes"})})),e("ALLOW_HOPPER_ITEM",(function(t,e){var i=e.query;return!i("GET_ALLOW_FILE_TYPE_VALIDATION")||u(t,i("GET_ACCEPTED_FILE_TYPES"))})),e("LOAD_FILE",(function(t,e){var i=e.query;return new Promise((function(e,n){if(i("GET_ALLOW_FILE_TYPE_VALIDATION")){var a=i("GET_ACCEPTED_FILE_TYPES"),o=i("GET_FILE_VALIDATE_TYPE_DETECT_TYPE"),s=u(t,a,o),h=function(){var t=a.map(f(i("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP"))).filter((function(t){return!1!==t})),e=t.filter((function(e,i){return t.indexOf(e)===i}));n({status:{main:i("GET_LABEL_FILE_TYPE_NOT_ALLOWED"),sub:r(i("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES"),{allTypes:e.join(", "),allButLastType:e.slice(0,-1).join(", "),lastType:e[t.length-1]})}})};if("boolean"===typeof s)return s?e(t):h();s.then((function(){e(t)}
1)).catch(h)}else e(t)}))})),{options:{allowFileTypeValidation:[!0,n.BOOLEAN],acceptedFileTypes:[[],n.ARRAY],labelFileTypeNotAllowed:["File is of invalid type",n.STRING],fileValidateTypeLabelExpectedTypes:["Expects {allButLastType} or {lastType}",n.STRING],fileValidateTypeLabelExpectedTypesMap:[{},n.OBJECT],fileValidateTypeDetectType:[null,n.FUNCTION]}}};return"undefined"!==typeof window&&"undefined"!==typeof window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:t})),t}()},75227:function(t){t.exports=function(){"use strict";var t=function(t){return/^image\/jpeg/.test(t.type)},e={JPEG:65496,APP1:65505,EXIF:1165519206,TIFF:18761,Orientation:274,Unknown:65280},i=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.getUint16(e,i)},n=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.getUint32(e,i)},a=function(t){return new Promise((function(a,r){var o=new FileReader;o.onload=function(t){var r=new DataView(t.target.result);if(i(r,0)===e.JPEG){for(var o=r.byteLength,s=2;s<o;){var h=i(r,s);if(s+=2,h===e.APP1){if(n(r,s+=2)!==e.EXIF)break;var c=i(r,s+=6)===e.TIFF;s+=n(r,s+4,c);var d=i(r,s,c);s+=2;for(var l=0;l<d;l++)if(i(r,s+12*l,c)===e.Orientation)return void a(i(r,s+12*l+8,c))}else{if((h&e.Unknown)!==e.Unknown)break;s+=i(r,s)}}a(-1)}else a(-1)},o.readAsArrayBuffer(t.slice(0,65536))}))},r="undefined"!==typeof window&&"undefined"!==typeof window.document,o="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k=",s=void 0,h=r?new Image:{};h.onload=function(){return s=h.naturalWidth>h.naturalHeight},h.src=o;var c=function(){return s},d=function(e){var i=e.addFilter,n=e.utils,r=n.Type,o=n.isFile;return i("DID_LOAD_ITEM",(function(e,i){var n=i.query;return new Promise((function(i,r){var s=e.file;if(!o(s)||!t(s)||!n("GET_ALLOW_IMAGE_EXIF_ORIENTATION")||!c())return i(e);a(s).then((function(t){e.setMetadata("exif",{orientation:t}),i(e)}))}))})),{options:{allowImageExifOrientation:[!0,r.BOOLEAN]}}};return"undefined"!==typeof window&&"undefined"!==typeof window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:d})),d}()},72965:function(t){t.exports=function(){"use strict";var t=function(t){return/^image/.test(t.type)};function e(t){this.wrapped=t}function i(t){var i,n;function a(t,e){return new Promise((function(a,o){var s={key:t,arg:e,resolve:a,reject:o,next:null};n?n=n.next=s:(i=n=s,r(t,e))}))}function r(i,n){try{var a=t[i](n),s=a.value,h=s instanceof e;Promise.resolve(h?s.wrapped:s).then((function(t){h?r("next",t):o(a.done?"return":"normal",t)}),(function(t){r("throw",t)}))}catch(c){o("throw",c)}}function o(t,e){switch(t){case"return":i.resolve({value:e,done:!0});break;case"throw":i.reject(e);break;default:i.resolve({value:e,done:!1})}(i=i.next)?r(i.key,i.arg):n=null}this._invoke=a,"function"!==typeof t.return&&(this.return=void 0)}function n(t,e){return a(t)||r(t,e)||o()}function a(t){if(Array.isArray(t))return t}function r(t,e){var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(h){a=!0,r=h}finally{try{n||null==s.return||s.return()}finally{if(a)throw r}}return i}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}"function"===typeof Symbol&&Symbol.asyncIterator&&(i.prototype[Symbol.asyncIterator]=function(){return this}),i.prototype.next=function(t){return this._invoke("next",t)},i.prototype.throw=function(t){return this._invoke("throw",t)},i.prototype.return=function(t){return this._invoke("return",t)};var s=function(t,e){return l(t.x*e,t.y*e)},h=function(t,e){return l(t.x+e.x,t.y+e.y)},c=function(t){var e=Math.sqrt(t.x*t.x+t.y*t.y);return 0===e?{x:0,y:0}:l(t.x/e,t.y/e)},d=function(t,e,i){var n=Math.cos(e),a=Math.sin(e),r=l(t.x-i.x,t.y-i.y);return l(i.x+n*r.x-a*r.y,i.y+a*r.x+n*r.y)},l=function(){return{x:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,y:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0}},u=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0;return"string"===typeof t?parseFloat(t)*i:"number"===typeof t?t*(n?e[n]:Math.min(e.width,e.height)):void 0}
1,f=function(t,e,i){var n=t.borderStyle||t.lineStyle||"solid",a=t.backgroundColor||t.fontColor||"transparent",r=t.borderColor||t.lineColor||"transparent",o=u(t.borderWidth||t.lineWidth,e,i);return{"stroke-linecap":t.lineCap||"round","stroke-linejoin":t.lineJoin||"round","stroke-width":o||0,"stroke-dasharray":"string"===typeof n?"":n.map((function(t){return u(t,e,i)})).join(","),stroke:r,fill:a,opacity:t.opacity||1}},p=function(t){return null!=t},m=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=u(t.x,e,i,"width")||u(t.left,e,i,"width"),a=u(t.y,e,i,"height")||u(t.top,e,i,"height"),r=u(t.width,e,i,"width"),o=u(t.height,e,i,"height"),s=u(t.right,e,i,"width"),h=u(t.bottom,e,i,"height");return p(a)||(a=p(o)&&p(h)?e.height-o-h:h),p(n)||(n=p(r)&&p(s)?e.width-r-s:s),p(r)||(r=p(n)&&p(s)?e.width-n-s:0),p(o)||(o=p(a)&&p(h)?e.height-a-h:0),{x:n||0,y:a||0,width:r||0,height:o||0}},g=function(t){return t.map((function(t,e){return"".concat(0===e?"M":"L"," ").concat(t.x," ").concat(t.y)})).join(" ")},v=function(t,e){return Object.keys(e).forEach((function(i){return t.setAttribute(i,e[i])}))},w="http://www.w3.org/2000/svg",y=function(t,e){var i=document.createElementNS(w,t);return e&&v(i,e),i},E=function(t){return v(t,Object.assign({},t.rect,t.styles))},b=function(t){var e=t.rect.x+.5*t.rect.width,i=t.rect.y+.5*t.rect.height,n=.5*t.rect.width,a=.5*t.rect.height;return v(t,Object.assign({cx:e,cy:i,rx:n,ry:a},t.styles))},A={contain:"xMidYMid meet",cover:"xMidYMid slice"},x=function(t,e){v(t,Object.assign({},t.rect,t.styles,{preserveAspectRatio:A[e.fit]||"none"}))},T={left:"start",center:"middle",right:"end"},I=function(t,e,i,n){var a=u(e.fontSize,i,n),r=e.fontFamily||"sans-serif",o=e.fontWeight||"normal",s=T[e.textAlign]||"start";v(t,Object.assign({},t.rect,t.styles,{"stroke-width":0,"font-weight":o,"font-size":a,"font-family":r,"text-anchor":s})),t.text!==e.text&&(t.text=e.text,t.textContent=e.text.length?e.text:" ")},M=function(t,e,i,n){v(t,Object.assign({},t.rect,t.styles,{fill:"none"}));var a=t.childNodes[0],r=t.childNodes[1],o=t.childNodes[2],l=t.rect,f={x:t.rect.x+t.rect.width,y:t.rect.y+t.rect.height};if(v(a,{x1:l.x,y1:l.y,x2:f.x,y2:f.y}),e.lineDecoration){r.style.display="none",o.style.display="none";var p=c({x:f.x-l.x,y:f.y-l.y}),m=u(.05,i,n);if(-1!==e.lineDecoration.indexOf("arrow-begin")){var g=s(p,m),w=h(l,g),y=d(l,2,w),E=d(l,-2,w);v(r,{style:"display:block;",d:"M".concat(y.x,",").concat(y.y," L").concat(l.x,",").concat(l.y," L").concat(E.x,",").concat(E.y)})}if(-1!==e.lineDecoration.indexOf("arrow-end")){var b=s(p,-m),A=h(f,b),x=d(f,2,A),T=d(f,-2,A);v(o,{style:"display:block;",d:"M".concat(x.x,",").concat(x.y," L").concat(f.x,",").concat(f.y," L").concat(T.x,",").concat(T.y)})}}},_=function(t,e,i,n){v(t,Object.assign({},t.styles,{fill:"none",d:g(e.points.map((function(t){return{x:u(t.x,i,n,"width"),y:u(t.y,i,n,"height")}})))}))},O=function(t){return function(e){return y(t,{id:e.id})}},C=function(t){var e=y("g",{id:t.id,"stroke-linecap":"round","stroke-linejoin":"round"}),i=y("line");e.appendChild(i);var n=y("path");e.appendChild(n);var a=y("path");return e.appendChild(a),e},D={image:function(t){var e=y("image",{id:t.id,"stroke-linecap":"round","stroke-linejoin":"round",opacity:"0"});return e.onload=function(){e.setAttribute("opacity",t.opacity||1)},e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.src),e},rect:O("rect"),ellipse:O("ellipse"),text:O("text"),path:O("path"),line:C},R={rect:E,ellipse:b,image:x,text:I,path:_,line:M},k=function(t,e){return D[t](e)},L=function(t,e,i,n,a){"path"!==e&&(t.rect=m(i,n,a)),t.styles=f(i,n,a),R[e](t,i,n,a)},P=["x","y","left","top","right","bottom","width","height"],B=function(t){return"string"===typeof t&&/%/.test(t)?parseFloat(t)/100:t},N=function(t){var e=n(t,2),i=e[0],a=e[1],r=a.points?{}:P.reduce((function(t,e){return t[e]=B(a[e]),t}),{});return[i,Object.assign({zIndex:0},a,r)]},S=function(t,e){return t[1].zIndex>e[1].zIndex?1:t[1].zIndex<e[1].zIndex?-1:0},W=function(t){return t.utils.createView({name:"image-preview-markup",tag:"svg",ignoreRect:!0,mixins:{apis:["width","height","crop","markup","resize","dirty"]},write:function(t){var e=t.root,i=t.props;if(i.dirty){var a=i.crop,r=i.resize,o=i.markup,s=i.width,h=i.height,c=a.width,d=a.height;if(r){var l=r.size,u=l&&l.width,f=l&&l.height,p=r.mode,m=r.upscale;u&&!f&&(f=u),f&&!u&&(u=f);var g=c<u&&d<f;if(!g||g&&m){var v,w=u/c,y=f/d;"force"===p?(c=u,d=f):("cover"===p?v=Math.max(w,y):"contain"===p&&(v=Math.min(w,y)),c*=v,d*=v)}}var E={width:s,height:h};e.element.setAttribute("width",E.width),e.element.setAttribute("height",E.height);var b=Math.min(s/c,h/d);e.element.innerHTML="";var A=e.query("GET_IMAGE_PREVIEW_MARKUP_FILTER");
1o.filter(A).map(N).sort(S).forEach((function(t){var i=n(t,2),a=i[0],r=i[1],o=k(a,r);L(o,a,r,E,b),e.element.appendChild(o)}))}}})},z=function(t,e){return{x:t,y:e}},G=function(t,e){return t.x*e.x+t.y*e.y},H=function(t,e){return z(t.x-e.x,t.y-e.y)},U=function(t,e){return G(H(t,e),H(t,e))},Y=function(t,e){return Math.sqrt(U(t,e))},j=function(t,e){var i=t,n=1.5707963267948966,a=e,r=1.5707963267948966-e,o=Math.sin(n),s=Math.sin(a),h=Math.sin(r),c=Math.cos(r),d=i/o;return z(c*(d*s),c*(d*h))},F=function(t,e){var i=t.width,n=t.height,a=j(i,e),r=j(n,e),o=z(t.x+Math.abs(a.x),t.y-Math.abs(a.y)),s=z(t.x+t.width+Math.abs(r.y),t.y+Math.abs(r.x)),h=z(t.x-Math.abs(r.y),t.y+t.height-Math.abs(r.x));return{width:Y(o,s),height:Y(o,h)}},V=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=t.height/t.width,a=1,r=e,o=1,s=n;s>r&&(o=(s=r)/n);var h=Math.max(a/o,r/s),c=t.width/(i*h*o);return{width:c,height:c*e}},X=function(t,e,i,n){var a=n.x>.5?1-n.x:n.x,r=n.y>.5?1-n.y:n.y,o=2*a*t.width,s=2*r*t.height,h=F(e,i);return Math.max(h.width/o,h.height/s)},q=function(t,e){var i=t.width,n=i*e;return n>t.height&&(i=(n=t.height)/e),{x:.5*(t.width-i),y:.5*(t.height-n),width:i,height:n}},Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.zoom,n=e.rotation,a=e.center,r=e.aspectRatio;r||(r=t.height/t.width);var o=V(t,r,i),s={x:.5*o.width,y:.5*o.height},h={x:0,y:0,width:o.width,height:o.height,center:s},c="undefined"===typeof e.scaleToFit||e.scaleToFit,d=i*X(t,q(h,r),n,c?a:{x:.5,y:.5});return{widthFloat:o.width/d,heightFloat:o.height/d,width:Math.round(o.width/d),height:Math.round(o.height/d)}},$={type:"spring",stiffness:.5,damping:.45,mass:10},J=function(t){return t.utils.createView({name:"image-bitmap",ignoreRect:!0,mixins:{styles:["scaleX","scaleY"]},create:function(t){var e=t.root,i=t.props;e.appendChild(i.image)}})},K=function(t){return t.utils.createView({name:"image-canvas-wrapper",tag:"div",ignoreRect:!0,mixins:{apis:["crop","width","height"],styles:["originX","originY","translateX","translateY","scaleX","scaleY","rotateZ"],animations:{originX:$,originY:$,scaleX:$,scaleY:$,translateX:$,translateY:$,rotateZ:$}},create:function(e){var i=e.root,n=e.props;n.width=n.image.width,n.height=n.image.height,i.ref.bitmap=i.appendChildView(i.createChildView(J(t),{image:n.image}))},write:function(t){var e=t.root,i=t.props.crop.flip,n=e.ref.bitmap;n.scaleX=i.horizontal?-1:1,n.scaleY=i.vertical?-1:1}})},Q=function(t){return t.utils.createView({name:"image-clip",tag:"div",ignoreRect:!0,mixins:{apis:["crop","markup","resize","width","height","dirty","background"],styles:["width","height","opacity"],animations:{opacity:{type:"tween",duration:250}}},didWriteView:function(t){var e=t.root,i=t.props;i.background&&(e.element.style.backgroundColor=i.background)},create:function(e){var i=e.root,n=e.props;i.ref.image=i.appendChildView(i.createChildView(K(t),Object.assign({},n))),i.ref.createMarkup=function(){i.ref.markup||(i.ref.markup=i.appendChildView(i.createChildView(W(t),Object.assign({},n))))},i.ref.destroyMarkup=function(){i.ref.markup&&(i.removeChildView(i.ref.markup),i.ref.markup=null)};var a=i.query("GET_IMAGE_PREVIEW_TRANSPARENCY_INDICATOR");null!==a&&(i.element.dataset.transparencyIndicator="grid"===a?a:"color")},write:function(t){var e=t.root,i=t.props,n=t.shouldOptimize,a=i.crop,r=i.markup,o=i.resize,s=i.dirty,h=i.width,c=i.height;e.ref.image.crop=a;var d={x:0,y:0,width:h,height:c,center:{x:.5*h,y:.5*c}},l={width:e.ref.image.width,height:e.ref.image.height},u={x:a.center.x*l.width,y:a.center.y*l.height},f={x:d.center.x-l.width*a.center.x,y:d.center.y-l.height*a.center.y},p=2*Math.PI+a.rotation%(2*Math.PI),m=a.aspectRatio||l.height/l.width,g="undefined"===typeof a.scaleToFit||a.scaleToFit,v=X(l,q(d,m),p,g?a.center:{x:.5,y:.5}),w=a.zoom*v;r&&r.length?(e.ref.createMarkup(),e.ref.markup.width=h,e.ref.markup.height=c,e.ref.markup.resize=o,e.ref.markup.dirty=s,e.ref.markup.markup=r,e.ref.markup.crop=Z(l,a)):e.ref.markup&&e.ref.destroyMarkup();var y=e.ref.image;if(n)return y.originX=null,y.originY=null,y.translateX=null,y.translateY=null,y.rotateZ=null,y.scaleX=null,void(y.scaleY=null);y.originX=u.x,y.originY=u.y,y.translateX=f.x,y.translateY=f.y,y.rotateZ=p,y.scaleX=w,y.scaleY=w}})},tt=function(t){return t.utils.createView({name:"image-preview",tag:"div",ignoreRect:!0,mixins:{apis:["image","crop","markup","resize","dirty","background"],styles:["translateY","scaleX","scaleY","opacity"],animations:{scaleX:$,scaleY:$,translateY:$,opacity:{type:"tween",duration:400}}},create:function(e){var i=e.root,n=e.props;i.ref.clip=i.appendChildView(i.createChildView(Q(t),{id:n.id,image:n.image,crop:n.crop,markup:n.markup,resize:n.resize,dirty:n.dirty,background:n.background}))},write:function(t){var e=t.root,i=t.props,n=t.shouldOptimize,a=e.ref.clip,r=i.image,o=i.crop,s=i.markup,h=i.resize,c=i.dirty;if(a.crop=o,a.markup=s,a.resize=h,a.dirty=c,a.opacity=n?0:1,!n&&!e.rect.element.hidden){var d=r.height/r.width,l=o.aspectRatio||d,u=e.rect.inner.width,f=e.rect.inner.height,p=e.query("GET_IMAGE_PREVIEW_HEIGHT"),m=e.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),g=e.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),v=e.query("GET_PANEL_ASPECT_RATIO"),w=e.query("GET_ALLOW_MULTIPLE");v&&!w&&(p=u*v,l=v);var y=null!==p?p:Math.max(m,Math.min(u*l,g)),E=y/l;E>u&&(y=(E=u)*l),y>f&&(y=f,E=f/l),a.width=E,a.height=y}}})}
1,et='<svg width="500" height="200" viewBox="0 0 500 200" preserveAspectRatio="none">\n <defs>\n <radialGradient id="gradient-__UID__" cx=".5" cy="1.25" r="1.15">\n <stop offset=\'50%\' stop-color=\'#000000\'/>\n <stop offset=\'56%\' stop-color=\'#0a0a0a\'/>\n <stop offset=\'63%\' stop-color=\'#262626\'/>\n <stop offset=\'69%\' stop-color=\'#4f4f4f\'/>\n <stop offset=\'75%\' stop-color=\'#808080\'/>\n <stop offset=\'81%\' stop-color=\'#b1b1b1\'/>\n <stop offset=\'88%\' stop-color=\'#dadada\'/>\n <stop offset=\'94%\' stop-color=\'#f6f6f6\'/>\n <stop offset=\'100%\' stop-color=\'#ffffff\'/>\n </radialGradient>\n <mask id="mask-__UID__">\n <rect x="0" y="0" width="500" height="200" fill="url(#gradient-__UID__)"></rect>\n </mask>\n </defs>\n <rect x="0" width="500" height="200" fill="currentColor" mask="url(#mask-__UID__)"></rect>\n</svg>',it=0,nt=function(t){return t.utils.createView({name:"image-preview-overlay",tag:"div",ignoreRect:!0,create:function(t){var e=t.root,i=t.props,n=et;if(document.querySelector("base")){var a=new URL(window.location.href.replace(window.location.hash,"")).href;n=n.replace(/url\(\#/g,"url("+a+"#")}it++,e.element.classList.add("filepond--image-preview-overlay-".concat(i.status)),e.element.innerHTML=n.replace(/__UID__/g,it)},mixins:{styles:["opacity"],animations:{opacity:{type:"spring",mass:25}}}})},at=function(){self.onmessage=function(t){createImageBitmap(t.data.message.file).then((function(e){self.postMessage({id:t.data.id,message:e},[e])}))}},rt=function(){self.onmessage=function(t){for(var e=t.data.message.imageData,i=t.data.message.colorMatrix,n=e.data,a=n.length,r=i[0],o=i[1],s=i[2],h=i[3],c=i[4],d=i[5],l=i[6],u=i[7],f=i[8],p=i[9],m=i[10],g=i[11],v=i[12],w=i[13],y=i[14],E=i[15],b=i[16],A=i[17],x=i[18],T=i[19],I=0,M=0,_=0,O=0,C=0;I<a;I+=4)M=n[I]/255,_=n[I+1]/255,O=n[I+2]/255,C=n[I+3]/255,n[I]=Math.max(0,Math.min(255*(M*r+_*o+O*s+C*h+c),255)),n[I+1]=Math.max(0,Math.min(255*(M*d+_*l+O*u+C*f+p),255)),n[I+2]=Math.max(0,Math.min(255*(M*m+_*g+O*v+C*w+y),255)),n[I+3]=Math.max(0,Math.min(255*(M*E+_*b+O*A+C*x+T),255));self.postMessage({id:t.data.id,message:e},[e.data.buffer])}},ot=function(t,e){var i=new Image;i.onload=function(){var t=i.naturalWidth,n=i.naturalHeight;i=null,e(t,n)},i.src=t},st={1:function(){return[1,0,0,1,0,0]},2:function(t){return[-1,0,0,1,t,0]},3:function(t,e){return[-1,0,0,-1,t,e]},4:function(t,e){return[1,0,0,-1,0,e]},5:function(){return[0,1,1,0,0,0]},6:function(t,e){return[0,1,-1,0,e,0]},7:function(t,e){return[0,-1,-1,0,e,t]},8:function(t){return[0,-1,1,0,0,t]}},ht=function(t,e,i,n){-1!==n&&t.transform.apply(t,st[n](e,i))},ct=function(t,e,i,n){e=Math.round(e),i=Math.round(i);var a=document.createElement("canvas");a.width=e,a.height=i;var r=a.getContext("2d");if(n>=5&&n<=8){var o=[i,e];e=o[0],i=o[1]}return ht(r,e,i,n),r.drawImage(t,0,0,e,i),a},dt=function(t){return/^image/.test(t.type)&&!/svg/.test(t.type)},lt=10,ut=10,ft=function(t){var e=Math.min(lt/t.width,ut/t.height),i=document.createElement("canvas"),n=i.getContext("2d"),a=i.width=Math.ceil(t.width*e),r=i.height=Math.ceil(t.height*e);n.drawImage(t,0,0,a,r);var o=null;try{o=n.getImageData(0,0,a,r).data}catch(u){return null}for(var s=o.length,h=0,c=0,d=0,l=0;l<s;l+=4)h+=o[l]*o[l],c+=o[l+1]*o[l+1],d+=o[l+2]*o[l+2];return{r:h=pt(h,s),g:c=pt(c,s),b:d=pt(d,s)}},pt=function(t,e){return Math.floor(Math.sqrt(t/(e/4)))},mt=function(t,e){return(e=e||document.createElement("canvas")).width=t.width,e.height=t.height,e.getContext("2d").drawImage(t,0,0),e},gt=function(t){var e;try{e=new ImageData(t.width,t.height)}catch(i){e=document.createElement("canvas").getContext("2d").createImageData(t.width,t.height)}return e.data.set(new Uint8ClampedArray(t.data)),e},vt=function(t){return new Promise((function(e,i){var n=new Image;n.crossOrigin="Anonymous",n.onload=function(){e(n)},n.onerror=function(t){i(t)},n.src=t}))},wt=function(t){var e=nt(t),i=tt(t),n=t.utils.createWorker,a=function(t,e,i){return new Promise((function(a){t.ref.imageData||(t.ref.imageData=i.getContext("2d").getImageData(0,0,i.width,i.height));var r=gt(t.ref.imageData);if(!e||20!==e.length)return i.getContext("2d").putImageData(r,0,0),a();var o=n(rt);o.post({imageData:r,colorMatrix:e},(function(t){i.getContext("2d").putImageData(t,0,0),o.terminate(),a()}),[r.data.buffer])}))},r=function(t,e){t.removeChildView(e),e.image.width=1,e.image.height=1,e._destroy()},o=function(t){var e=t.root,i=e.ref.images.shift();return i.opacity=0,i.translateY=-15,e.ref.imageViewBin.push(i),i},s=function(t){var e=t.root,n=t.props,a=t.image,r=n.id,o=e.query("GET_ITEM",{id:r});if(o){var s,h,c=o.getMetadata("crop")||{center:{x:.5,y:.5},flip:{horizontal:!1,vertical:!1},zoom:1,rotation:0,aspectRatio:null},d=e.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),l=!1;e.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(s=o.getMetadata("markup")||[],h=o.getMetadata("resize"),l=!0);var u=e.appendChildView(e.createChildView(i,{id:r,image:a,crop:c,resize:h,markup:s,dirty:l,background:d,opacity:0,scaleX:1.15,scaleY:1.15,translateY:15}),e.childViews.length);e.ref.images.push(u),u.opacity=1,u.scaleX=1,u.scaleY=1,u.translateY=0,setTimeout((function(){e.dispatch("DID_IMAGE_PREVIEW_SHOW",{id:r})}),250)}},h=function(t){var e=t.root,i=t.props,n=e.query("GET_ITEM",{id:i.id});if(n){var a=e.ref.images[e.ref.images.length-1];a.crop=n.getMetadata("crop"),a.background=e.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),e.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(a.dirty=!0,a.resize=n.getMetadata("resize"),a.markup=n.getMetadata("markup"))}},c=function(t){var e=t.root,i=t.props,n=t.action;if(/crop|filter|markup|resize/.test(n.change.key)&&e.ref.images.length){var r=e.query("GET_ITEM",{id:i.id});if(r)if(/filter/.test(n.change.key)){var c=e.ref.images[e.ref.images.length-1];a(e,n.change.value,c.image)}else if(/crop|markup|resize/.test(n.change.key)){var d=r.getMetadata("crop"),l=e.ref.images[e.ref.images.length-1];if(d&&d.aspectRatio&&l.crop&&l.crop.aspectRatio&&Math.abs(d.aspectRatio-l.crop.aspectRatio)>1e-5){var u=o({root:e});s({root:e,props:i,image:mt(u.image)})}else h({root:e,props:i})}}},d=function(t){var e=window.navigator.userAgent.match(/Firefox\/([0-9]+)\./);return!((e?parseInt(e[1]):null)<=58)&&"createImageBitmap"in window&&dt(t)},l=function(t){var e=t.root,i=t.props.id,n=e.query("GET_ITEM",i);if(n){var a=URL.createObjectURL(n.file);ot(a,(function(t,n){e.dispatch("DID_IMAGE_PREVIEW_CALCULATE_SIZE",{id:i,width:t,height:n})}
1))}},u=function(t){var e=t.root,i=t.props,r=i.id,o=e.query("GET_ITEM",r);if(o){var h=URL.createObjectURL(o.file),c=function(){vt(h).then(l)},l=function(t){URL.revokeObjectURL(h);var n=(o.getMetadata("exif")||{}).orientation||-1,r=t.width,c=t.height;if(r&&c){if(n>=5&&n<=8){var d=[c,r];r=d[0],c=d[1]}var l=Math.max(1,.75*window.devicePixelRatio),u=e.query("GET_IMAGE_PREVIEW_ZOOM_FACTOR")*l,f=c/r,p=e.rect.element.width,m=e.rect.element.height,g=p,v=g*f;f>1?v=(g=Math.min(r,p*u))*f:g=(v=Math.min(c,m*u))/f;var w=ct(t,g,v,n),y=function(){var n=e.query("GET_IMAGE_PREVIEW_CALCULATE_AVERAGE_IMAGE_COLOR")?ft(data):null;o.setMetadata("color",n,!0),"close"in t&&t.close(),e.ref.overlayShadow.opacity=1,s({root:e,props:i,image:w})},E=o.getMetadata("filter");E?a(e,E,w).then(y):y()}};if(d(o.file)){var u=n(at);u.post({file:o.file},(function(t){u.terminate(),t?l(t):c()}))}else c()}},f=function(t){var e=t.root,i=e.ref.images[e.ref.images.length-1];i.translateY=0,i.scaleX=1,i.scaleY=1,i.opacity=1},p=function(t){var e=t.root;e.ref.overlayShadow.opacity=1,e.ref.overlayError.opacity=0,e.ref.overlaySuccess.opacity=0},m=function(t){var e=t.root;e.ref.overlayShadow.opacity=.25,e.ref.overlayError.opacity=1},g=function(t){var e=t.root;e.ref.overlayShadow.opacity=.25,e.ref.overlaySuccess.opacity=1},v=function(t){var i=t.root;i.ref.images=[],i.ref.imageData=null,i.ref.imageViewBin=[],i.ref.overlayShadow=i.appendChildView(i.createChildView(e,{opacity:0,status:"idle"})),i.ref.overlaySuccess=i.appendChildView(i.createChildView(e,{opacity:0,status:"success"})),i.ref.overlayError=i.appendChildView(i.createChildView(e,{opacity:0,status:"failure"}))};return t.utils.createView({name:"image-preview-wrapper",create:v,styles:["height"],apis:["height"],destroy:function(t){t.root.ref.images.forEach((function(t){t.image.width=1,t.image.height=1}))},didWriteView:function(t){t.root.ref.images.forEach((function(t){t.dirty=!1}))},write:t.utils.createRoute({DID_IMAGE_PREVIEW_DRAW:f,DID_IMAGE_PREVIEW_CONTAINER_CREATE:l,DID_FINISH_CALCULATE_PREVIEWSIZE:u,DID_UPDATE_ITEM_METADATA:c,DID_THROW_ITEM_LOAD_ERROR:m,DID_THROW_ITEM_PROCESSING_ERROR:m,DID_THROW_ITEM_INVALID:m,DID_COMPLETE_ITEM_PROCESSING:g,DID_START_ITEM_PROCESSING:p,DID_REVERT_ITEM_PROCESSING:p},(function(t){var e=t.root,i=e.ref.imageViewBin.filter((function(t){return 0===t.opacity}));e.ref.imageViewBin=e.ref.imageViewBin.filter((function(t){return t.opacity>0})),i.forEach((function(t){return r(e,t)})),i.length=0}))})},yt=function(e){var i=e.addFilter,n=e.utils,a=n.Type,r=n.createRoute,o=n.isFile,s=wt(e);return i("CREATE_VIEW",(function(e){var i=e.is,n=e.view,a=e.query;if(i("file")&&a("GET_ALLOW_IMAGE_PREVIEW")){var h=function(e){var i=e.root,r=e.props.id,h=a("GET_ITEM",r);if(h&&o(h.file)&&!h.archived){var c=h.file;if(t(c)&&a("GET_IMAGE_PREVIEW_FILTER_ITEM")(h)){var d="createImageBitmap"in(window||{}),l=a("GET_IMAGE_PREVIEW_MAX_FILE_SIZE");if(!(!d&&l&&c.size>l)){i.ref.imagePreview=n.appendChildView(n.createChildView(s,{id:r}));var u=i.query("GET_IMAGE_PREVIEW_HEIGHT");u&&i.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:h.id,height:u});var f=!d&&c.size>a("GET_IMAGE_PREVIEW_MAX_INSTANT_PREVIEW_FILE_SIZE");i.dispatch("DID_IMAGE_PREVIEW_CONTAINER_CREATE",{id:r},f)}}}},c=function(t,e){if(t.ref.imagePreview){var i=e.id,n=t.query("GET_ITEM",{id:i});if(n){var a=t.query("GET_PANEL_ASPECT_RATIO"),r=t.query("GET_ITEM_PANEL_ASPECT_RATIO"),o=t.query("GET_IMAGE_PREVIEW_HEIGHT");if(!(a||r||o)){var s=t.ref,h=s.imageWidth,c=s.imageHeight;if(h&&c){var d=t.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),l=t.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),u=(n.getMetadata("exif")||{}).orientation||-1;if(u>=5&&u<=8){var f=[c,h];h=f[0],c=f[1]}if(!dt(n.file)||t.query("GET_IMAGE_PREVIEW_UPSCALE")){var p=2048/h;h*=p,c*=p}var m=c/h,g=(n.getMetadata("crop")||{}).aspectRatio||m,v=Math.max(d,Math.min(c,l)),w=t.rect.element.width,y=Math.min(w*g,v);t.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:n.id,height:y})}}}}},d=function(t){t.root.ref.shouldRescale=!0},l=function(t){var e=t.root;"crop"===t.action.change.key&&(e.ref.shouldRescale=!0)},u=function(t){var e=t.root,i=t.action;e.ref.imageWidth=i.width,e.ref.imageHeight=i.height,e.ref.shouldRescale=!0,e.ref.shouldDrawPreview=!0,e.dispatch("KICK")};n.registerWriter(r({DID_RESIZE_ROOT:d,DID_STOP_RESIZE:d,DID_LOAD_ITEM:h,DID_IMAGE_PREVIEW_CALCULATE_SIZE:u,DID_UPDATE_ITEM_METADATA:l},(function(t){var e=t.root,i=t.props;e.ref.imagePreview&&(e.rect.element.hidden||(e.ref.shouldRescale&&(c(e,i),e.ref.shouldRescale=!1),e.ref.shouldDrawPreview&&(requestAnimationFrame((function(){requestAnimationFrame((function(){e.dispatch("DID_FINISH_CALCULATE_PREVIEWSIZE",{id:i.id})}))})),e.ref.shouldDrawPreview=!1)))})))}})),{options:{allowImagePreview:[!0,a.BOOLEAN],imagePreviewFilterItem:[function(){return!0},a.FUNCTION],imagePreviewHeight:[null,a.INT],imagePreviewMinHeight:[44,a.INT],imagePreviewMaxHeight:[256,a.INT],imagePreviewMaxFileSize:[null,a.INT],imagePreviewZo
1omFactor:[2,a.INT],imagePreviewUpscale:[!1,a.BOOLEAN],imagePreviewMaxInstantPreviewFileSize:[1e6,a.INT],imagePreviewTransparencyIndicator:[null,a.STRING],imagePreviewCalculateAverageImageColor:[!1,a.BOOLEAN],imagePreviewMarkupShow:[!0,a.BOOLEAN],imagePreviewMarkupFilter:[function(){return!0},a.FUNCTION]}}};return"undefined"!==typeof window&&"undefined"!==typeof window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:yt})),yt}()},43234:function(){},34331:function(){},30680:function(){},20226:function(t,e,i){"use strict";i.r(e),i.d(e,{InferenceSession:function(){return p},Tensor:function(){return u},env:function(){return o},registerBackend:function(){return r}});const n={},a=[],r=(t,e,i)=>{if(!e||"function"!==typeof e.init||"function"!==typeof e.createSessionHandler)throw new TypeError("not a valid backend");{const r=n[t];if(void 0===r)n[t]={backend:e,priority:i};else{if(r.priority>i)return;if(r.priority===i&&r.backend!==e)throw new Error(`cannot register backend "${t}" using priority ${i}`)}if(i>=0){const e=a.indexOf(t);-1!==e&&a.splice(e,1);for(let r=0;r<a.length;r++)if(n[a[r]].priority<=i)return void a.splice(r,0,t);a.push(t)}}};const o=new class{constructor(){this.wasm={},this.webgl={},this.logLevelInternal="warning"}set logLevel(t){if(void 0!==t){if("string"!==typeof t||-1===["verbose","info","warning","error","fatal"].indexOf(t))throw new Error(`Unsupported logging level: ${t}`);this.logLevelInternal=t}}get logLevel(){return this.logLevelInternal}},s="undefined"!==typeof BigInt64Array&&"function"===typeof BigInt64Array.from,h="undefined"!==typeof BigUint64Array&&"function"===typeof BigUint64Array.from,c=new Map([["float32",Float32Array],["uint8",Uint8Array],["int8",Int8Array],["uint16",Uint16Array],["int16",Int16Array],["int32",Int32Array],["bool",Uint8Array],["float64",Float64Array],["uint32",Uint32Array]]),d=new Map([[Float32Array,"float32"],[Uint8Array,"uint8"],[Int8Array,"int8"],[Uint16Array,"uint16"],[Int16Array,"int16"],[Int32Array,"int32"],[Float64Array,"float64"],[Uint32Array,"uint32"]]);s&&(c.set("int64",BigInt64Array),d.set(BigInt64Array,"int64")),h&&(c.set("uint64",BigUint64Array),d.set(BigUint64Array,"uint64"));class l{constructor(t,e,i){let n,a,r;if("string"===typeof t)if(n=t,r=i,"string"===t){if(!Array.isArray(e))throw new TypeError("A string tensor's data must be a string array.");a=e}else{const i=c.get(t);if(void 0===i)throw new TypeError(`Unsupported tensor type: ${t}.`);if(Array.isArray(e))a=i.from(e);else{if(!(e instanceof i))throw new TypeError(`A ${n} tensor's data must be type of ${i}`);a=e}}else if(r=e,Array.isArray(t)){if(0===t.length)throw new TypeError("Tensor type cannot be inferred from an empty array.");const e=typeof t[0];if("string"===e)n="string",a=t;else{if("boolean"!==e)throw new TypeError(`Invalid element type of data array: ${e}.`);n="bool",a=Uint8Array.from(t)}}else{const e=d.get(t.constructor);if(void 0===e)throw new TypeError(`Unsupported type for tensor data: ${t.constructor}.`);n=e,a=t}if(void 0===r)r=[a.length];else if(!Array.isArray(r))throw new TypeError("A tensor's dims must be a number array");const o=(t=>{let e=1;for(let i=0;i<t.length;i++){const n=t[i];if("number"!==typeof n||!Number.isSafeInteger(n))throw new TypeError(`dims[${i}] must be an integer, got: ${n}`);if(n<0)throw new RangeError(`dims[${i}] must be a non-negative integer, got: ${n}`);e*=n}return e})(r);if(o!==a.length)throw new Error(`Tensor's size(${o}) does not match data length(${a.length}).`);this.dims=r,this.type=n,this.data=a,this.size=o}static bufferToTensor(t,e){if(void 0===t)throw new Error("Image buffer must be defined");if(void 0===e.height||void 0===e.width)throw new Error("Image height and width must be defined");const{height:i,width:n}=e,a=e.norm;let r,o;r=void 0===a||void 0===a.mean?255:a.mean,o=void 0===a||void 0===a.bias?0:a.bias;const s=void 0!==e.bitmapFormat?e.bitmapFormat:"RGBA",h=void 0!==e.tensorFormat&&void 0!==e.tensorFormat?e.tensorFormat:"RGB",c=i*n,d="RGBA"===h?new Float32Array(4*c):new Float32Array(3*c);let u=4,f=0,p=1,m=2,g=3,v=0,w=c,y=2*c,E=-1;"RGB"===s&&(u=3,f=0,p=1,m=2,g=-1),"RGBA"===h?E=3*c:"RBG"===h?(v=0,y=c,w=2*c):"BGR"===h&&
vendor: 4,107 bytes, line 1
1(y=0,w=c,v=2*c);for(let l=0;l<c;l++,f+=u,m+=u,p+=u,g+=u)d[v++]=(t[f]+o)/r,d[w++]=(t[p]+o)/r,d[y++]=(t[m]+o)/r,-1!==E&&-1!==g&&(d[E++]=(t[g]+o)/r);return new l("float32",d,"RGBA"===h?[1,4,i,n]:[1,3,i,n])}static async fromImage(t,e){const i="undefined"!==typeof HTMLImageElement&&t instanceof HTMLImageElement,n="undefined"!==typeof ImageData&&t instanceof ImageData,a="undefined"!==typeof ImageBitmap&&t instanceof ImageBitmap,r="undefined"!==typeof String&&(t instanceof String||"string"===typeof t);let o,s={};if(i){const i=document.createElement("canvas"),n=i.getContext("2d");if(null==n)throw new Error("Can not access image data");{let a=t.naturalHeight,r=t.naturalWidth;if(void 0!==e&&void 0!==e.resizedHeight&&void 0!==e.resizedWidth&&(a=e.resizedHeight,r=e.resizedWidth),void 0!==e){if(s=e,void 0!==e.tensorFormat)throw new Error("Image input config format must be RGBA for HTMLImageElement");if(s.tensorFormat="RGBA",void 0!==e.height&&e.height!==a)throw new Error("Image input config height doesn't match HTMLImageElement height");if(s.height=a,void 0!==e.width&&e.width!==r)throw new Error("Image input config width doesn't match HTMLImageElement width");s.width=r}else s.tensorFormat="RGBA",s.height=a,s.width=r;i.width=r,i.height=a,n.drawImage(t,0,0,r,a),o=n.getImageData(0,0,r,a).data}}else{if(!n){if(a){if(void 0===e)throw new Error("Please provide image config with format for Imagebitmap");if(void 0!==e.bitmapFormat)throw new Error("Image input config format must be defined for ImageBitmap");const i=document.createElement("canvas").getContext("2d");if(null!=i){const n=t.height,a=t.width;if(i.drawImage(t,0,0,a,n),o=i.getImageData(0,0,a,n).data,void 0!==e){if(void 0!==e.height&&e.height!==n)throw new Error("Image input config height doesn't match ImageBitmap height");if(s.height=n,void 0!==e.width&&e.width!==a)throw new Error("Image input config width doesn't match ImageBitmap width");s.width=a}else s.height=n,s.width=a;return l.bufferToTensor(o,s)}throw new Error("Can not access image data")}if(r)return new Promise(((i,n)=>{const a=document.createElement("canvas"),r=a.getContext("2d");if(!t||!r)return n();const o=new Image;o.crossOrigin="Anonymous",o.src=t,o.onload=()=>{a.width=o.width,a.height=o.height,r.drawImage(o,0,0,a.width,a.height);const t=r.getImageData(0,0,a.width,a.height);if(void 0!==e){if(void 0!==e.height&&e.height!==a.height)throw new Error("Image input config height doesn't match ImageBitmap height");if(s.height=a.height,void 0!==e.width&&e.width!==a.width)throw new Error("Image input config width doesn't match ImageBitmap width");s.width=a.width}else s.height=a.height,s.width=a.width;i(l.bufferToTensor(t.data,s))}}));throw new Error("Input data provided is not supported - aborted tensor creation")}{const i="RGBA";let n,a;if(void 0!==e&&void 0!==e.resizedWidth&&void 0!==e.resizedHeight?(n=e.resizedHeight,a=e.resizedWidth):(n=t.height,a=t.width),void 0!==e){if(s=e,void 0!==e.bitmapFormat&&e.bitmapFormat!==i)throw new Error("Image input config format must be RGBA for ImageData");s.bitmapFormat="RGBA"}else s.bitmapFormat="RGBA";if(s.height=n,s.width=a,void 0!==e){const e=document.createElement("canvas");e.width=a,e.height=n;const i=e.getContext("2d");if(null==i)throw new Error("Can not access image data");i.putImageData(t,0,0),o=i.getImageData(0,0,a,n).data}else o=t.data}}if(void 0!==o)return l.bufferToTensor(o,s);throw new Error("Input data provided is not supported - aborted tensor creation")}toImageData(t){var e,i;const n=document.createElement("canvas").getContext("2d");let a;if(null==n)throw new Error("Can not access image data");{const r=this.dims[3],o=this.dims[2],s=this.dims[1],h=void 0!==t&&void 0!==t.format?t.format:"RGB",c=void 0!==t&&void 0!==(null===(e=t.norm)||void 0===e?void 0:e.mean)?t.norm.mean:255,d=void 0!==t&&void 0!==(null===(i=t.norm)||void 0===i?void 0:i.bias)?t.norm.bias:0,l=o*r;if(void 0!==t){if(void 0!==t.height&&t.height!==o)throw new Error("Image output config height doesn't match tensor height");if(void 0!==t.width&&t.width!==r)throw new Error("Image output config width doesn't match tensor width");
1if(void 0!==t.format&&4===s&&"RGBA"!==t.format||3===s&&"RGB"!==t.format&&"BGR"!==t.format)throw new Error("Tensor format doesn't match input tensor dims")}const u=4;let f=0,p=1,m=2,g=3,v=0,w=l,y=2*l,E=-1;"RGBA"===h?(v=0,w=l,y=2*l,E=3*l):"RGB"===h?(v=0,w=l,y=2*l):"RBG"===h&&(v=0,y=l,w=2*l),a=n.createImageData(r,o);for(let t=0;t<o*r;f+=u,p+=u,m+=u,g+=u,t++)a.data[f]=(this.data[v++]-d)*c,a.data[p]=(this.data[w++]-d)*c,a.data[m]=(this.data[y++]-d)*c,a.data[g]=-1===E?255:(this.data[E++]-d)*c}return a}reshape(t){return new l(this.type,this.data,t)}}const u=l;class f{constructor(t){this.handler=t}async run(t,e,i){const n={};let a={};if("object"!==typeof t||null===t||t instanceof u||Array.isArray(t))throw new TypeError("'feeds' must be an object that use input names as keys and OnnxValue as corresponding values.");let r=!0;if("object"===typeof e){if(null===e)throw new TypeError("Unexpected argument[1]: cannot be null.");if(e instanceof u)throw new TypeError("'fetches' cannot be a Tensor");if(Array.isArray(e)){if(0===e.length)throw new TypeError("'fetches' cannot be an empty array.");r=!1;for(const t of e){if("string"!==typeof t)throw new TypeError("'fetches' must be a string array or an object.");if(-1===this.outputNames.indexOf(t))throw new RangeError(`'fetches' contains invalid output name: ${t}.`);n[t]=null}if("object"===typeof i&&null!==i)a=i;else if("undefined"!==typeof i)throw new TypeError("'options' must be an object.")}else{let t=!1;const o=Object.getOwnPropertyNames(e);for(const i of this.outputNames)if(-1!==o.indexOf(i)){const a=e[i];(null===a||a instanceof u)&&(t=!0,r=!1,n[i]=a)}if(t){if("object"===typeof i&&null!==i)a=i;else if("undefined"!==typeof i)throw new TypeError("'options' must be an object.")}else a=e}}else if("undefined"!==typeof e)throw new TypeError("Unexpected argument[1]: must be 'fetches' or 'options'.");for(const h of this.inputNames)if("undefined"===typeof t[h])throw new Error(`input '${h}' is missing in 'feeds'.`);if(r)for(const h of this.outputNames)n[h]=null;const o=await this.handler.run(t,n,a),s={};for(const h in o)Object.hasOwnProperty.call(o,h)&&(s[h]=new u(o[h].type,o[h].data,o[h].dims));return s}static async create(t,e,i,r){let o,s={};if("string"===typeof t){if(o=t,"object"===typeof e&&null!==e)s=e;else if("undefined"!==typeof e)throw new TypeError("'options' must be an object.")}else if(t instanceof Uint8Array){if(o=t,"object"===typeof e&&null!==e)s=e;else if("undefined"!==typeof e)throw new TypeError("'options' must be an object.")}else{if(!(t instanceof ArrayBuffer||"undefined"!==typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer))throw new TypeError("Unexpected argument[0]: must be 'path' or 'buffer'.");{const n=t;let a=0,h=t.byteLength;if("object"===typeof e&&null!==e)s=e;else if("number"===typeof e){if(a=e,!Number.isSafeInteger(a))throw new RangeError("'byteOffset' must be an integer.");if(a<0||a>=n.byteLength)throw new RangeError(`'byteOffset' is out of range [0, ${n.byteLength}).`);if(h=t.byteLength-a,"number"===typeof i){if(h=i,!Number.isSafeInteger(h))throw new RangeError("'byteLength' must be an integer.");if(h<=0||a+h>n.byteLength)throw new RangeError(`'byteLength' is out of range (0, ${n.byteLength-a}].`);if("object"===typeof r&&null!==r)s=r;else if("undefined"!==typeof r)throw new TypeError("'options' must be an object.")}else if("undefined"!==typeof i)throw new TypeError("'byteLength' must be a number.")}else if("undefined"!==typeof e)throw new TypeError("'options' must be an object.");o=new Uint8Array(n,a,h)}}const h=(s.executionProviders||[]).map((t=>"string"===typeof t?t:t.name)),c=await(async t=>{const e=0===t.length?a:t,i=[];for(const a of e){const t=n[a];if(t){if(t.initialized)return t.backend;if(t.aborted)continue;const e=!!t.initPromise;try{return e||(t.initPromise=t.backend.init()),await t.initPromise,t.initialized=!0,t.backend}catch(r){e||i.push({name:a,err:r}),t.aborted=!0}finally{delete t.initPromise}}}throw new Error(`no available backend found. ERR: ${i.map((t=>`[${t.name}] ${t.err}`)).join(", ")}`)})(h),d=await c.createSessionHandler(o,s);return new f(d)}startProfiling(){this.handler.startProfiling()}endProfiling(){this.handler.endProfiling()}get inputNames(){return this.handler.inputNames}
1get outputNames(){return this.handler.outputNames}}const p=f},42016:function(t,e,i){"use strict";i.d(e,{f:function(){return d}});var n=i(67294),a=i(33129),r=i.n(a),o=function(){return o=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var a in e=arguments[i])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},o.apply(this,arguments)};function s(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(t);a<n.length;a++)e.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(t,n[a])&&(i[n[a]]=t[n[a]])}return i}var h=["aspectRatio","autoCrop","autoCropArea","background","center","checkCrossOrigin","checkOrientation","cropBoxMovable","cropBoxResizable","data","dragMode","guides","highlight","initialAspectRatio","minCanvasHeight","minCanvasWidth","minContainerHeight","minContainerWidth","minCropBoxHeight","minCropBoxWidth","modal","movable","preview","responsive","restore","rotatable","scalable","toggleDragModeOnDblclick","viewMode","wheelZoomRatio","zoomOnTouch","zoomOnWheel","zoomable","cropstart","cropmove","cropend","crop","zoom","ready"],c={opacity:0,maxWidth:"100%"},d=n.forwardRef((function(t,e){var i=s(t,[]),a=i.dragMode,d=void 0===a?"crop":a,l=i.src,u=i.style,f=i.className,p=i.crossOrigin,m=i.scaleX,g=i.scaleY,v=i.enable,w=i.zoomTo,y=i.rotateTo,E=i.alt,b=void 0===E?"picture":E,A=i.ready,x=i.onInitialized,T=s(i,["dragMode","src","style","className","crossOrigin","scaleX","scaleY","enable","zoomTo","rotateTo","alt","ready","onInitialized"]),I={scaleY:g,scaleX:m,enable:v,zoomTo:w,rotateTo:y},M=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=(0,n.useRef)(null);return n.useEffect((function(){t.forEach((function(t){t&&("function"==typeof t?t(i.current):t.current=i.current)}))}),[t]),i}(e,(0,n.useRef)(null));(0,n.useEffect)((function(){var t;(null===(t=M.current)||void 0===t?void 0:t.cropper)&&"number"==typeof w&&M.current.cropper.zoomTo(w)}),[i.zoomTo]),(0,n.useEffect)((function(){var t;(null===(t=M.current)||void 0===t?void 0:t.cropper)&&void 0!==l&&M.current.cropper.reset().clear().replace(l)}),[l]),(0,n.useEffect)((function(){if(null!==M.current){var t=new(r())(M.current,o(o({dragMode:d},T),{ready:function(t){null!==t.currentTarget&&function(t,e){void 0===e&&(e={});var i=e.enable,n=void 0===i||i,a=e.scaleX,r=void 0===a?1:a,o=e.scaleY,s=void 0===o?1:o,h=e.zoomTo,c=void 0===h?0:h,d=e.rotateTo;n?t.enable():t.disable(),t.scaleX(r),t.scaleY(s),void 0!==d&&t.rotateTo(d),c>0&&t.zoomTo(c)}(t.currentTarget.cropper,I),A&&A(t)}}));x&&x(t)}return function(){var t,e;null===(e=null===(t=M.current)||void 0===t?void 0:t.cropper)||void 0===e||e.destroy()}}),[M]);var _,O=(_=o(o({},T),{crossOrigin:p,src:l,alt:b}),h.reduce((function(t,e){var i=t,n=e;return i[n],s(i,["symbol"==typeof n?n:n+""])}),_));return n.createElement("div",{style:u,className:f},n.createElement("img",o({},O,{style:c,ref:M})))}))},73042:function(t,e,i){"use strict";e.Q9=e.fo=void 0;var n,a=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=i(67294),o=(n=r)&&n.__esModule?n:{default:n},s=i(66136);e.fo=s.registerPlugin,s.FileStatus;var h=(0,s.supported)(),c=["setOptions","on","off","onOnce","appendTo","insertAfter","insertBefore","isAttachedTo","replaceElement","restoreElement","destroy"];e.Q9=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.allowFilesSync=!0,i}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
1(e,t),a(e,[{key:"componentDidMount",value:function(){var t=this;if(this._input=this._element.querySelector('input[type="file"]'),this._inputClone=this._input.cloneNode(),h){var e=Object.assign({},this.props);if(e.onupdatefiles){var i=e.onupdatefiles;e.onupdatefiles=function(e){t.allowFilesSync=!1,i(e)}}this._pond=(0,s.create)(this._input,e),Object.keys(this._pond).filter((function(t){return!c.includes(t)})).forEach((function(e){t[e]=t._pond[e]}))}}},{key:"componentWillUnmount",value:function(){if(this._pond){var t=document.createElement("div");t.append(this._pond.element),t.id="foo",this._pond.destroy(),this._pond=void 0,this._element.append(this._inputClone)}}},{key:"shouldComponentUpdate",value:function(){return!!this.allowFilesSync||(this.allowFilesSync=!0,!1)}},{key:"componentDidUpdate",value:function(){if(this._pond){var t=Object.assign({},this.props);delete t.onupdatefiles,this._pond.setOptions(t)}}},{key:"render",value:function(){var t=this,e=this.props,i=e.id,n=e.name,a=e.className,o=e.allowMultiple,s=e.required,h=e.captureMethod,c=e.acceptedFileTypes;return(0,r.createElement)("div",{className:"filepond--wrapper",ref:function(e){return t._element=e}},(0,r.createElement)("input",{type:"file",name:n,id:i,accept:c,multiple:o,required:s,className:a,capture:h}))}}]),e}(o.default.Component)},31304:function(t){var e;e=function(){var t=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xa2":"cent","\xa3":"pound","\xa4":"currency","\xa5":"yen","\xa9":"(c)","\xaa":"a","\xae":"(r)","\xba":"o","\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xc6":"AE","\xc7":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xde":"TH","\xdf":"ss","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xe6":"ae","\xe7":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xfe":"th","\xff":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010c":"C","\u010d":"c","\u010e":"D","\u010f":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011a":"E","\u011b":"e","\u011e":"G","\u011f":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012a":"i","\u012b":"i","\u012e":"I","\u012f":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013b":"L","\u013c":"l","\u013d":"L","\u013e":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014c":"O","\u014d":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015a":"S","\u015b":"s","\u015e":"S","\u015f":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016a":"u","\u016b":"u","\u016e":"U","\u016f":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017a":"z","\u017b":"Z","\u017c":"z","\u017d":"Z","\u017e":"z","\u018f":"E","\u0192":"f","\u01a0":"O","\u01a1":"o","\u01af":"U","\u01b0":"u","\u01c8":"LJ","\u01c9":"lj","\u01cb":"NJ","\u01cc":"nj","\u0218":"S","\u0219":"s","\u021a":"T","\u021b":"t","\u0259":"e","\u02da":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038a":"I","\u038c":"O","\u038e":"Y","\u038f":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039a":"K","\u039b":"L","\u039c":"M","\u039d":"N","\u039e":"3","\u039f":"O","\u03a0":"P","\u03a1":"R","\u03a3":"S","\u03a4":"T","\u03a5":"Y","\u03a6":"F","\u03a7":"X","\u03a8":"PS","\u03a9":"W","\u03aa":"I","\u03ab":"Y","\u03ac":"a","\u03ad":"e","\u03ae":"h","\u03af":"i","\u03b0":"y","\u03b1":"a","\u03b2":"b","\u03b3":"g","\u03b4":"d","\u03b5":"e","\u03b6":"z","\u03b7":"h","\u03b8":"8","\u03b9":"i","\u03ba":"k","\u03bb":"l","\u03bc":"m","\u03bd":"n","\u03be":"3","\u03bf":"o","\u03c0":"p","\u03c1":"r","\u03c2":"s","\u03c3":"s","\u03c4":"t","\u03c5":"y","\u03c6":"f","\u03c7":"x","\u03c8":"ps","\u03c9":"w","\u03ca":"i","\u03cb":"y","\u03cc":"o","\u03cd":"y","\u03ce":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040a":"NJ","\u040b":"C","\u040f":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041a":"K","\u041b":"L","\u041c":"M","\u041d":"N","\u041e":"O","\u041f":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042a":"U","\u042b":"Y","\u042c":"","\u042d":"E","\u042e":"Yu","\u042f":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043a":"k","\u043b":"l","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044a":"u","\u044b":"y","\u044c":"","\u044d":"e","\u044e":"yu","\u044f":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045a":"nj","\u045b":"c","\u045d":"u","\u045f":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049a":"KH","\u049b":"kh","\u04a2":"NG","\u04a3":"ng","\u04ae":"UE","\u04af":"ue","\u04b0":"U","\u04b1":"u","\u04ba":"H","\u04bb":"h","\u04d8":"AE","\u04d9":"ae","\u04e8":"OE","\u04e9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E\'","\u0538":"Y\'","\u0539":"T\'","\u053a":"JH","\u053b":"I","\u053c":"L","\u053d":"X","\u053e":"C\'","\u053f":"K","\u0540":"H","\u0541":"D\'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054a":"P","\u054b":"J","\u054c":"R\'","\u054d":"S","\u054e":"V","\u054f":"T","\u0550":"R","\u0551":"C","\u0553":"P\'","\u0554":"Q\'","\u0555":"O\'\'","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062a":"t","\u062b":"th","\u062c":"j","\u062d":"h","\u062e":"kh","\u062f":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063a":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064a":"y","\u064b":"an","\u064c":"on","\u064d":"en","\u064e":"a","\u064f":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067e":"p","\u0686":"ch","\u0698":"zh","\u06a9":"k","\u06af":"g","\u06cc":"y","\u06f0":"0","\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u0e3f":"baht","\u10d0":"a","\u10d1":"b","\u10d2":"g","\u10d3":"d","\u10d4":"e","\u10d5":"v","\u10d6":"z","\u10d7":"t","\u10d8":"i","\u10d9":"k","\u10da":"l","\u10db":"m","\u10dc":"n","\u10dd":"o","\u10de":"p","\u10df":"zh","\u10e0":"r","\u10e1":"s","\u10e2":"t","\u10e3":"u","\u10e4":"f","\u10e5":"k","\u10e6":"gh","\u10e7":"q","\u10e8":"sh","\u10e9":"ch","\u10ea":"ts","\u10eb":"dz","\u10ec":"ts","\u10ed":"ch","\u10ee":"kh","\u10ef":"j","\u10f0":"h","\u1e62":"S","\u1e63":"s","\u1e80":"W","\u1e81":"w","\u1e82":"W","\u1e83":"w","\u1e84":"W","\u1e85":"w","\u1e9e":"SS","\u1ea0":"A","\u1ea1":"a","\u1ea2":"A","\u1ea3":"a","\u1ea4":"A","\u1ea5":"a","\u1ea6":"A","\u1ea7":"a","\u1ea8":"A","\u1ea9":"a","\u1eaa":"A","\u1eab":"a","\u1eac":"A","\u1ead":"a","\u1eae":"A","\u1eaf":"a","\u1eb0":"A","\u1eb1":"a","\u1eb2":"A","\u1eb3":"a","\u1eb4":"A","\u1eb5":"a","\u1eb6":"A","\u1eb7":"a","\u1eb8":"E","\u1eb9":"e","\u1eba":"E","\u1ebb":"e","\u1ebc":"E","\u1ebd":"e","\u1ebe":"E","\u1ebf":"e","\u1ec0":"E","\u1ec1":"e","\u1ec2":"E","\u1ec3":"e","\u1ec4":"E","\u1ec5":"e","\u1ec6":"E","\u1ec7":"e","\u1ec8":"I","\u1ec9":"i","\u1eca":"I","\u1ecb":"i","\u1ecc":"O","\u1ecd":"o","\u1ece":"O","\u1ecf":"o","\u1ed0":"O","\u1ed1":"o","\u1ed2":"O","\u1ed3":"o","\u1ed4":"O","\u1ed5":"o","\u1ed6":"O","\u1ed7":"o","\u1ed8":"O","\u1ed9":"o","\u1eda":"O","\u1edb":"o","\u1edc":"O","\u1edd":"o","\u1ede":"O","\u1edf":"o","\u1ee0":"O","\u1ee1":"o","\u1ee2":"O","\u1ee3":"o","\u1ee4":"U","\u1ee5":"u","\u1ee6":"U","\u1ee7":"u","\u1ee8":"U","\u1ee9":"u","\u1eea":"U","\u1eeb":"u","\u1eec":"U","\u1eed":"u","\u1eee":"U","\u1eef":"u","\u1ef0":"U","\u1ef1":"u","\u1ef2":"Y","\u1ef3":"y","\u1ef4":"Y","\u1ef5":"y","\u1ef6":"Y","\u1ef7":"y","\u1ef8":"Y","\u1ef9":"y","\u2013":"-","\u2018":"\'","\u2019":"\'","\u201c":"\\"","\u201d":"\\"","\u201e":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20a0":"ecu","\u20a2":"cruzeiro","\u20a3":"french franc","\u20a4":"lira","\u20a5":"mill","\u20a6":"naira","\u20a7":"peseta","\u20a8":"rupee","\u20a9":"won","\u20aa":"new shequel","\u20ab":"dong","\u20ac":"euro","\u20ad":"kip","\u20ae":"tugrik","\u20af":"drachma","\u20b0":"penny","\u20b1":"peso","\u20b2":"guarani","\u20b3":"austral","\u20b4":"hryvnia","\u20b5":"cedi","\u20b8":"kazakhstani tenge","\u20b9":"indian rupee","\u20ba":"turkish lira","\u20bd":"russian ruble","\u20bf":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221e":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\ufdfc":"rial","\ufef5":"laa","\ufef7":"laa","\ufef9":"lai","\ufefb":"la"}'),e=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042a":"A","\u042c":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044a":"a","\u044c":"y"},"de":{"\xc4":"AE","\xe4":"ae","\xd6":"OE","\xf6":"oe","\xdc":"UE","\xfc":"ue","\xdf":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221e":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xa2":"centavos","\xa3":"libras","\xa4":"moneda","\u20a3":"francos","\u2211":"suma","\u221e":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xa2":"centime","\xa3":"livre","\xa4":"devise","\u20a3":"franc","\u2211":"somme","\u221e":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xa2":"centavo","\u2211":"soma","\xa3":"libra","\u221e":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xd8":"OE","\xf8":"oe","\xc5":"AA","\xe5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xf8rre end"},"nb":{"&":"og","\xc5":"AA","\xc6":"AE","\xd8":"OE","\xe5":"aa","\xe6":"ae","\xf8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xc5":"AA","\xc4":"AE","\xd6":"OE","\xe5":"aa","\xe4":"ae","\xf6":"oe"}}');function i(i,n){if("string"!==typeof i)throw new Error("slugify: string argument expected");var a=e[(n="string"===typeof n?{replacement:n}:n||{}).locale]||{},r=void 0===n.replacement?"-":n.replacement,o=void 0===n.trim||n.trim,s=i.normalize().split("").reduce((function(e,i){var o=a[i];return void 0===o&&(o=t[i]),void 0===o&&(o=i),o===r&&(o=" "),e+o.replace(n.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")}),"");return n.strict&&(s=s.replace(/[^A-Za-z0-9\s]/g,"")),o&&(s=s.trim()),s=s.replace(/\s+/g,r),n.lower&&(s=s.toLowerCase()),s}return i.extend=function(e){Object.assign(t,e)},i},t.exports=e(),t.exports.default=e()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.