1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4217],{3262:function(e){var t;t=function(){"use strict";function e(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,r)}return o}function t(t){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?e(Object(r),!0).forEach(function(e){var o,i;o=e,i=r[e],(o=n(o))in t?Object.defineProperty(t,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function o(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n(r.key),r)}}function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}function n(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var i,a,s,c,u,l,h,p={exports:{}};"undefined"!=typeof window&&(a=(i=window).HTMLCanvasElement&&i.HTMLCanvasElement.prototype,c=(s=i.Blob&&function(){try{return new Blob,!0}catch(e){return!1}}())&&i.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(e){return!1}}(),u=i.BlobBuilder||i.WebKitBlobBuilder||i.MozBlobBuilder||i.MSBlobBuilder,l=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,h=(s||u)&&i.atob&&i.ArrayBuffer&&i.Uint8Array&&function(e){var t,o,r,n,i,a,h,p,d;if(!(t=e.match(l)))throw Error("invalid data URI");for(p=0,o=t[2]?t[1]:"text/plain"+(t[3]||";charset=US-ASCII"),r=!!t[4],n=e.slice(t[0].length),h=new Uint8Array(a=new ArrayBuffer((i=r?atob(n):decodeURIComponent(n)).length));p<i.length;p+=1)h[p]=i.charCodeAt(p);return s?new Blob([c?h:a],{type:o}):((d=new u).append(a),d.getBlob(o))},i.HTMLCanvasElement&&!a.toBlob&&(a.mozGetAsFile?a.toBlob=function(e,t,o){var r=this;setTimeout(function(){o&&a.toDataURL&&h?e(h(r.toDataURL(t,o))):e(r.mozGetAsFile("blob",t))})}:a.toDataURL&&h&&(a.msToBlob?a.toBlob=function(e,t,o){var r=this;setTimeout(function(){(t&&"image/png"!==t||o)&&a.toDataURL&&h?e(h(r.toDataURL(t,o))):e(r.msToBlob(t))})}:a.toBlob=function(e,t,o){var r=this;setTimeout(function(){e(h(r.toDataURL(t,o)))})})),p.exports?p.exports=h:i.dataURLtoBlob=h);var d=p.exports,f={strict:!0,checkOrientation:!0,retainExif:!1,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,resize:"none",quality:.8,mimeType:"auto",convertTypes:["image/png"],convertSize:5e6,beforeDraw:null,drew:null,success:null,error:null},v="undefined"!=typeof window&&void 0!==window.document?window:{},m=function(e){return e>0&&e<1/0},g=Array.prototype.slice;function w(e){return Array.from?Array.from(e):g.call(e)}var y=/^image\/.+$/;function b(e){return y.test(e)}var R=String.fromCharCode,C=v.btoa;function E(e,t){for(var o=[],r=new Uint8Array(e);r.length>0;)o.push(R.apply(null,w(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(t,";base64,").concat(C(o.join("")))}var x=/\.\d*(?:0|9){12}\d*$/;function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return x.test(e)?Math.round(e*t)/t:e}function S(e){var t=e.aspectRatio,o=e.height,r=e.width,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",i=m(r),a=m(o);if(i&&a){var s=o*t;("contain"===n||"none"===n)&&s>r||"cover"===n&&s<r?o=r/t:r=o*t}else i?o=r/t:a&&(r=o*t);return{width:r,height:o}}var P=v.ArrayBuffer,O=v.FileReader,M=v.URL||v.webkitURL,T=/\.\w+$/,z=v.Compressor;return function(){var e,n;function i(e,o){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,i),this.file=e,this.exif=[],this.image=new Image,this.options=t(t({},f),o),this.aborted=!1,this.result=null,this.init()}return e=[{key:"init",value:function(){var e=this,t=this.file,o=this.options;if(!("undefined"!=typeof Blob&&(t instanceof Blob||"[object Blob]"===Object.prototype.toString.call(t)))){this.fail(Error("The first argument must be a File or Blob object."));return}var n=t.type;if(!b(n)){this.fail(Error("The first argument must be an image File or Blob object."));return}if(!M||!O){this.fail(Error("The current browser does not support image compression."));return}P||(o.checkOrientation=!1,o.retainExif=!1);var i="image/jpeg"===n,a=i&&o.checkOrientation,s=i&&o.retainExif;if(!M||a||s){var c=new O;this.reader=c,c.onload=function(o){var i=o.target.result,c={},u=1;a&&(u=function(e){var t=new DataView(e);try{if(255===t.getUint8(0)&&216===t.getUint8(1))for(var o=t.byteLength,r=2;r+1<o;){if(255===t.getUint8(r)&&225===t.getUint8(r+1)){l=r;break}r+=1}if(l){var n=l+4,i=l+10;if("Exif"===function(e,t,o){var r,n="";for(o+=t,r=t;r<o;r+=1)n+=R(e.getUint8(r));return n}(t,n,4)){var a=t.getUint16(i);if(((u=18761===a)||19789===a)&&42===t.getUint16(i+2,u)){var s=t.getUint32(i+4,u);s>=8&&(h=i+s)}}}if(h){var c,u,l,h,p,d,f=t.getUint16(h,u);for(d=0;d<f;d+=1)if(p=h+12*d+2,274===t.getUint16(p,u)){p+=8,c=t.getUint16(p,u),t.setUint16(p,1,u);break}}}catch(e){c=1}return c}(i))>1&&r(c,function(e){var t=0,o=1,r=1;switch(e){case 2:o=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,o=-1;break;case 8:t=-90}return{rotate:t,scaleX:o,scaleY:r}}(u)),s&&(e.exif=function(e){for(var t=w(new Uint8Array(e)),o=t.length,r=[],n=0;n+3<o;){var i=t[n],a=t[n+1];if(255===i&&218===a)break;if(255===i&&216===a)n+=2;else{var s=256*t[n+2]+t[n+3],c=n+s+2,u=t.slice(n,c);r.push(u),n=c}}return r.reduce(function(e,t){return 255===t[0]&&225===t[1]?e.concat(t):e},[])}(i)),a||s?!M||u>1?c.url=E(i,n):c.url=M.createObjectURL(t):c.url=i,e.load(c)},c.onabort=function(){e.fail(Error("Aborted to read the image with FileReader."))},c.onerror=function(){e.fail(Error("Failed to read the image with FileReader."))},c.onloadend=function(){e.reader=null},a||s?c.readAsArrayBuffer(t):c.readAsDataURL(t)}else this.load({url:M.createObjectURL(t)})}},{key:"load",value:function(e){var o=this,r=this.file,n=this.image;n.onload=function(){o.draw(t(t({},e),{}
1,{naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}))},n.onabort=function(){o.fail(Error("Aborted to load the image."))},n.onerror=function(){o.fail(Error("Failed to load the image."))},v.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(v.navigator.userAgent)&&(n.crossOrigin="anonymous"),n.alt=r.name,n.src=e.url}},{key:"draw",value:function(e){var t=this,o=e.naturalWidth,r=e.naturalHeight,n=e.rotate,i=void 0===n?0:n,a=e.scaleX,s=e.scaleY,c=this.file,u=this.image,l=this.options,h=document.createElement("canvas"),p=h.getContext("2d"),f=Math.abs(i)%180==90,v=("contain"===l.resize||"cover"===l.resize)&&m(l.width)&&m(l.height),g=Math.max(l.maxWidth,0)||1/0,y=Math.max(l.maxHeight,0)||1/0,R=Math.max(l.minWidth,0)||0,C=Math.max(l.minHeight,0)||0,x=o/r,P=l.width,M=l.height;if(f){var T=[y,g];g=T[0],y=T[1];var z=[C,R];R=z[0],C=z[1];var _=[M,P];P=_[0],M=_[1]}v&&(x=P/M);var A=S({aspectRatio:x,width:g,height:y},"contain");g=A.width,y=A.height;var L=S({aspectRatio:x,width:R,height:C},"cover");if(R=L.width,C=L.height,v){var F=S({aspectRatio:x,width:P,height:M},l.resize);P=F.width,M=F.height}else{var W=S({aspectRatio:x,width:P,height:M}),U=W.width;P=void 0===U?o:U;var B=W.height;M=void 0===B?r:B}P=Math.floor(D(Math.min(Math.max(P,R),g))),M=Math.floor(D(Math.min(Math.max(M,C),y)));var j=-P/2,I=-M/2,k=P,H=M,N=[];if(v){var Z=0,V=0,G=o,X=r,Y=S({aspectRatio:x,width:o,height:r},{contain:"cover",cover:"contain"}[l.resize]);G=Y.width,X=Y.height,Z=(o-G)/2,V=(r-X)/2,N.push(Z,V,G,X)}if(N.push(j,I,k,H),f){var q=[M,P];P=q[0],M=q[1]}h.width=P,h.height=M,b(l.mimeType)||(l.mimeType=c.type);var J="transparent";c.size>l.convertSize&&l.convertTypes.indexOf(l.mimeType)>=0&&(l.mimeType="image/jpeg");var K="image/jpeg"===l.mimeType;if(K&&(J="#fff"),p.fillStyle=J,p.fillRect(0,0,P,M),l.beforeDraw&&l.beforeDraw.call(this,p,h),!this.aborted&&(p.save(),p.translate(P/2,M/2),p.rotate(i*Math.PI/180),p.scale(void 0===a?1:a,void 0===s?1:s),p.drawImage.apply(p,[u].concat(N)),p.restore(),l.drew&&l.drew.call(this,p,h),!this.aborted)){var $=function(e){if(!t.aborted){var n=function(e){return t.done({naturalWidth:o,naturalHeight:r,result:e})};if(e&&K&&l.retainExif&&t.exif&&t.exif.length>0){var i=function(e){return n(d(E(function(e,t){var o=w(new Uint8Array(e));if(255!==o[2]||224!==o[3])return e;var r=256*o[4]+o[5];return new Uint8Array([255,216].concat(t,o.slice(4+r)))}(e,t.exif),l.mimeType)))};if(e.arrayBuffer)e.arrayBuffer().then(i).catch(function(){t.fail(Error("Failed to read the compressed image with Blob.arrayBuffer()."))});else{var a=new O;t.reader=a,a.onload=function(e){i(e.target.result)},a.onabort=function(){t.fail(Error("Aborted to read the compressed image with FileReader."))},a.onerror=function(){t.fail(Error("Failed to read the compressed image with FileReader."))},a.onloadend=function(){t.reader=null},a.readAsArrayBuffer(e)}}else n(e)}};h.toBlob?h.toBlob($,l.mimeType,l.quality):$(d(h.toDataURL(l.mimeType,l.quality)))}}},{key:"done",value:function(e){var t=e.naturalWidth,o=e.naturalHeight,r=e.result,n=this.file,i=this.image,a=this.options;if(M&&0===i.src.indexOf("blob:")&&M.revokeObjectURL(i.src),r){if(a.strict&&!a.retainExif&&r.size>n.size&&a.mimeType===n.type&&!(a.width>t||a.height>o||a.minWidth>t||a.minHeight>o||a.maxWidth<t||a.maxHeight<o))r=n;else{var s,c,u=new Date;r.lastModified=u.getTime(),r.lastModifiedDate=u,r.name=n.name,r.name&&r.type!==n.type&&(r.name=r.name.replace(T,("jpeg"===(c=b(s=r.type)?s.substr(6):"")&&(c="jpg"),".".concat(c))))}}else r=n;this.result=r,a.success&&a.success.call(this,r)}},{key:"fail",value:function(e){var t=this.options;if(t.error)t.error.call(this,e);else throw e}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}],n=[{key:"noConflict",value:function(){return window.Compressor=z,i}},{key:"setDefaults",value:function(e){r(f,e)}}],e&&o(i.prototype,e),n&&o(i,n),Object.defineProperty(i,"prototype",{writable:!1}),i}()},e.exports=t()},5049:function(e,t){!function(e){"use strict";var t;(t=e.Orientation||(e.Orientation={}))[t.TOP_LEFT=1]="TOP_LEFT",t[t.TOP_RIGHT=2]="TOP_RIGHT",t[t.BOTTOM_RIGHT=3]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=4]="BOTTOM_LEFT",t[t.LEFT_TOP=5]="LEFT_TOP",t[t.RIGHT_TOP=6]="RIGHT_TOP",t[t.RIGHT_BOTTOM=7]="RIGHT_BOTTOM",t[t.LEFT_BOTTOM=8]="LEFT_BOTTOM";let o=new WeakMap;function r(e,t,r){return e instanceof Blob?new Promise((n,i)=>{let a=o.get(e);a||(a=new FileReader,o.set(e,a)),a.onerror=e=>{a.onerror=null,a.onload=null,i(e)},a.onload=()=>{a.onerror=null,a.onload=null,n(a.result)},a.readAsArrayBuffer(e.slice(t,t+r))}):Promise.resolve(e.slice(t,t+r))}e.getOrientation=function(t){var o,n,i,a;return o=this,n=void 0,i=void 0,a=function*(){if(!(t instanceof ArrayBuffer||t instanceof Blob))throw TypeError("Unexpected input type");let o=0,n=t instanceof Blob?t.size:t.byteLength;{let i=yield r(t,o,4);o+=i.byteLength;let a=new DataView(i),s=a.getUint16(0),c=a.getUint16(2);if(65496===s){let a=i.slice(2);do{let n=new DataView(a).getUint16(0);if(65505===n){let e=yield r(t,o,8),n=new DataView(e);if(17784===n.getUint16(2)&&26982===n.getUint16(4)&&0===n.getUint16(6)){o+=e.byteLength;break}o+=n.getUint16(0)}else{if(!(65504<=n)||!(n<=65519))return e.Orientation.TOP_LEFT;let i=yield r(t,o,2);o+=i.byteLength+(new DataView(i).getUint16(0)-2)}a=yield r(t,o,2),o+=a.byteLength}while(o<n)}else{if((18761!==s||10752!==c)&&(19789!==s||42!==c))return e.Orientation.TOP_LEFT;o=0}}let i=new DataView((yield r(t,o,8))),a=18761===i.getUint16(0);o+=i.getUint32(4,a);let s=yield r(t,o,2);o+=s.byteLength;let c=new DataView(s).getUint16(0,a);for(;c-- >0;){let e=yield r(t,o,12);if(o+=e.byteLength,274===new DataView(e).getUint16(0,a)){let t=new DataView(e.slice(8,12)).getUint16(0,a);if(1<=t&&t<=8)return t;throw Error("Unexpected Orientation Value")}}return e.Orientation.TOP_LEFT}
1,new(i||(i=Promise))(function(e,t){function r(e){try{c(a.next(e))}catch(e){t(e)}}function s(e){try{c(a.throw(e))}catch(e){t(e)}}function c(t){t.done?e(t.value):new i(function(e){e(t.value)}).then(r,s)}c((a=a.apply(o,n||[])).next())})},Object.defineProperty(e,"__esModule",{value:!0})}(t)},2002:function(e,t,o){e.exports=o(8341)},4760:function(e){"use strict";var t=!!("undefined"!=typeof window&&window.document&&window.document.createElement),o={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=o},3912:function(e){var t,o,r,n,i,a,s,c,u,l,h,p,d,f,v,m=!1;function g(){if(!m){m=!0;var e=navigator.userAgent,g=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),w=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(p=/\b(iPhone|iP[ao]d)/.exec(e),d=/\b(iP[ao]d)/.exec(e),l=/Android/i.exec(e),f=/FBAN\/\w+;/i.exec(e),v=/Mobile/i.exec(e),h=!!/Win64/.exec(e),g){(t=g[1]?parseFloat(g[1]):g[5]?parseFloat(g[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);a=y?parseFloat(y[1])+4:t,o=g[2]?parseFloat(g[2]):NaN,r=g[3]?parseFloat(g[3]):NaN,i=(n=g[4]?parseFloat(g[4]):NaN)&&(g=/(?:Chrome\/(\d+\.\d+))/.exec(e))&&g[1]?parseFloat(g[1]):NaN}else t=o=r=i=n=NaN;if(w){if(w[1]){var b=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!b||parseFloat(b[1].replace("_","."))}else s=!1;c=!!w[2],u=!!w[3]}else s=c=u=!1}}var w={ie:function(){return g()||t},ieCompatibilityMode:function(){return g()||a>t},ie64:function(){return w.ie()&&h},firefox:function(){return g()||o},opera:function(){return g()||r},webkit:function(){return g()||n},safari:function(){return w.webkit()},chrome:function(){return g()||i},windows:function(){return g()||c},osx:function(){return g()||s},linux:function(){return g()||u},iphone:function(){return g()||p},mobile:function(){return g()||p||d||l||v},nativeApp:function(){return g()||f},android:function(){return g()||l},ipad:function(){return g()||d}};e.exports=w},2969:function(e,t,o){"use strict";var r,n=o(4760);n.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=/** 2 * Checks if an event is supported in the current execution environment. 3 * 4 * NOTE: This will not work correctly for non-generic events such as `change`, 5 * `reset`, `load`, `error`, and `select`. 6 * 7 * Borrows from Modernizr. 8 * 9 * @param {string} eventNameSuffix Event name, e.g. "click". 10 * @param {?boolean} capture Check if the capture phase is supported. 11 * @return {boolean} True if the event is supported. 12 * @internal 13 * @license Modernizr 3.0.0pre (Custom Build) | MIT 14 */function(e,t){if(!n.canUseDOM||t&&!("addEventListener"in document))return!1;var o="on"+e,i=o in document;if(!i){var a=document.createElement("div");a.setAttribute(o,"return;"),i="function"==typeof a[o]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}},8341:function(e,t,o){"use strict";var r=o(3912),n=o(2969);function i(e){var t=0,o=0,r=0,n=0;return"detail"in e&&(o=e.detail),"wheelDelta"in e&&(o=-e.wheelDelta/120),"wheelDeltaY"in e&&(o=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=o,o=0),r=10*t,n=10*o,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||n)&&e.deltaMode&&(1==e.deltaMode?(r*=40,n*=40):(r*=800,n*=800)),r&&!t&&(t=r<1?-1:1),n&&!o&&(o=n<1?-1:1),{spinX:t,spinY:o,pixelX:r,pixelY:n}}i.getEventType=function(){return r.firefox()?"DOMMouseScroll":n("wheel")?"wheel":"mousewheel"},e.exports=i},4367:function(e,t,o){"use strict";o.d(t,{ZP:function(){return w}});/*! ***************************************************************************** 15Copyright (c) Microsoft Corporation. 16 17Permission to use, copy, modify, and/or distribute this software for any 18purpose with or without fee is hereby granted. 19 20THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 21REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 22AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 23INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 24LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 25OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 26PERFORMANCE OF THIS SOFTWARE. 27***************************************************************************** */var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}
27)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)},n=function(){return(n=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},i=o(2983),a=o(2002),s=o.n(a);function c(e,t,o,r,n){void 0===n&&(n=0);var i=v(t.width,t.height,n),a=i.width,s=i.height;return{x:u(e.x,a,o.width,r),y:u(e.y,s,o.height,r)}}function u(e,t,o,r){var n=t*r/2-o/2;return m(e,-n,n)}function l(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function h(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function p(e,t){return Math.min(e,Math.max(0,t))}function d(e,t){return t}function f(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function v(e,t,o){var r=o*Math.PI/180;return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function m(e,t,o){return Math.min(Math.max(e,t),o)}function g(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return"string"==typeof e&&e.length>0}).join(" ").trim()}var w=function(e){function t(){var o=null!==e&&e.apply(this,arguments)||this;return o.imageRef=i.createRef(),o.videoRef=i.createRef(),o.containerPosition={x:0,y:0},o.containerRef=null,o.styleRef=null,o.containerRect=null,o.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},o.dragStartPosition={x:0,y:0},o.dragStartCrop={x:0,y:0},o.gestureZoomStart=0,o.gestureRotationStart=0,o.isTouching=!1,o.lastPinchDistance=0,o.lastPinchRotation=0,o.rafDragTimeout=null,o.rafPinchTimeout=null,o.wheelTimer=null,o.currentDoc="undefined"!=typeof document?document:null,o.currentWindow="undefined"!=typeof window?window:null,o.resizeObserver=null,o.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},o.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&o.containerRef){var e=!0;o.resizeObserver=new window.ResizeObserver(function(t){if(e){e=!1;return}o.computeSizes()}),o.resizeObserver.observe(o.containerRef)}},o.preventZoomSafari=function(e){return e.preventDefault()},o.cleanEvents=function(){o.currentDoc&&(o.currentDoc.removeEventListener("mousemove",o.onMouseMove),o.currentDoc.removeEventListener("mouseup",o.onDragStopped),o.currentDoc.removeEventListener("touchmove",o.onTouchMove),o.currentDoc.removeEventListener("touchend",o.onDragStopped),o.currentDoc.removeEventListener("gesturemove",o.onGestureMove),o.currentDoc.removeEventListener("gestureend",o.onGestureEnd),o.currentDoc.removeEventListener("scroll",o.onScroll))},o.clearScrollEvent=function(){o.containerRef&&o.containerRef.removeEventListener("wheel",o.onWheel),o.wheelTimer&&clearTimeout(o.wheelTimer)},o.onMediaLoad=function(){var e=o.computeSizes();e&&(o.emitCropData(),o.setInitialCrop(e)),o.props.onMediaLoaded&&o.props.onMediaLoaded(o.mediaSize)},o.setInitialCrop=function(e){if(o.props.initialCroppedAreaPercentages){var t,r,n,i,a,s,c,u=(t=o.props.initialCroppedAreaPercentages,r=o.mediaSize,n=o.props.rotation,i=o.props.minZoom,a=o.props.maxZoom,s=v(r.width,r.height,n),{crop:{x:(c=m(e.width/s.width*(100/t.width),i,a))*s.width/2-e.width/2-s.width*c*(t.x/100),y:c*s.height/2-e.height/2-s.height*c*(t.y/100)},zoom:c}),l=u.crop,h=u.zoom;o.props.onCropChange(l),o.props.onZoomChange&&o.props.onZoomChange(h)}else if(o.props.initialCroppedAreaPixels){var p,d,f,g,w,y,b,R,C,E=(p=o.props.initialCroppedAreaPixels,d=o.mediaSize,f=o.props.rotation,g=o.props.minZoom,w=o.props.maxZoom,void 0===f&&(f=0),y=v(d.naturalWidth,d.naturalHeight,f),R=m((b=d.width>d.height?d.width/d.naturalWidth:d.height/d.naturalHeight,e.height>e.width?e.height/(p.height*b):e.width/(p.width*b)),g,w),C=e.height>e.width?e.height/p.height:e.width/p.width,{crop:{x:((y.width-p.width)/2-p.x)*C,y:((y.height-p.height)/2-p.y)*C},zoom:R}),l=E.crop,h=E.zoom;o.props.onCropChange(l),o.props.onZoomChange&&o.props.onZoomChange(h)}},o.computeSizes=function(){var e,t,r,i,a,s,c=o.imageRef.current||o.videoRef.current;
27if(c&&o.containerRef){o.containerRect=o.containerRef.getBoundingClientRect(),o.saveContainerPosition();var u,l,h,p,d,f,m,g,w,y,b,R=o.containerRect.width/o.containerRect.height,C=(null===(e=o.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=o.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,E=(null===(r=o.imageRef.current)||void 0===r?void 0:r.naturalHeight)||(null===(i=o.videoRef.current)||void 0===i?void 0:i.videoHeight)||0,x=c.offsetWidth<C||c.offsetHeight<E,D=C/E,S=void 0;if(x)switch(o.state.mediaObjectFit){default:case"contain":S=R>D?{width:o.containerRect.height*D,height:o.containerRect.height}:{width:o.containerRect.width,height:o.containerRect.width/D};break;case"horizontal-cover":S={width:o.containerRect.width,height:o.containerRect.width/D};break;case"vertical-cover":S={width:o.containerRect.height*D,height:o.containerRect.height}}else S={width:c.offsetWidth,height:c.offsetHeight};o.mediaSize=n(n({},S),{naturalWidth:C,naturalHeight:E}),o.props.setMediaSize&&o.props.setMediaSize(o.mediaSize);var P=o.props.cropSize?o.props.cropSize:(u=o.mediaSize.width,l=o.mediaSize.height,h=o.containerRect.width,p=o.containerRect.height,d=o.props.aspect,void 0===(f=o.props.rotation)&&(f=0),g=(m=v(u,l,f)).width,w=m.height,(y=Math.min(g,h))>(b=Math.min(w,p))*d?{width:b*d,height:b}:{width:y,height:y/d});return((null===(a=o.state.cropSize)||void 0===a?void 0:a.height)!==P.height||(null===(s=o.state.cropSize)||void 0===s?void 0:s.width)!==P.width)&&o.props.onCropSizeChange&&o.props.onCropSizeChange(P),o.setState({cropSize:P},o.recomputeCropPosition),o.props.setCropSize&&o.props.setCropSize(P),P}},o.saveContainerPosition=function(){if(o.containerRef){var e=o.containerRef.getBoundingClientRect();o.containerPosition={x:e.left,y:e.top}}},o.onMouseDown=function(e){o.currentDoc&&(e.preventDefault(),o.currentDoc.addEventListener("mousemove",o.onMouseMove),o.currentDoc.addEventListener("mouseup",o.onDragStopped),o.saveContainerPosition(),o.onDragStart(t.getMousePoint(e)))},o.onMouseMove=function(e){return o.onDrag(t.getMousePoint(e))},o.onScroll=function(e){o.currentDoc&&(e.preventDefault(),o.saveContainerPosition())},o.onTouchStart=function(e){o.currentDoc&&(o.isTouching=!0,(!o.props.onTouchRequest||o.props.onTouchRequest(e))&&(o.currentDoc.addEventListener("touchmove",o.onTouchMove,{passive:!1}),o.currentDoc.addEventListener("touchend",o.onDragStopped),o.saveContainerPosition(),2===e.touches.length?o.onPinchStart(e):1===e.touches.length&&o.onDragStart(t.getTouchPoint(e.touches[0]))))},o.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?o.onPinchMove(e):1===e.touches.length&&o.onDrag(t.getTouchPoint(e.touches[0]))},o.onGestureStart=function(e){o.currentDoc&&(e.preventDefault(),o.currentDoc.addEventListener("gesturechange",o.onGestureMove),o.currentDoc.addEventListener("gestureend",o.onGestureEnd),o.gestureZoomStart=o.props.zoom,o.gestureRotationStart=o.props.rotation)},o.onGestureMove=function(e){if(e.preventDefault(),!o.isTouching){var r=t.getMousePoint(e),n=o.gestureZoomStart-1+e.scale;if(o.setNewZoom(n,r,{shouldUpdatePosition:!0}),o.props.onRotationChange){var i=o.gestureRotationStart+e.rotation;o.props.onRotationChange(i)}}},o.onGestureEnd=function(e){o.cleanEvents()},o.onDragStart=function(e){var t,r,i=e.x,a=e.y;o.dragStartPosition={x:i,y:a},o.dragStartCrop=n({},o.props.crop),null===(r=(t=o.props).onInteractionStart)||void 0===r||r.call(t)},o.onDrag=function(e){var t=e.x,r=e.y;o.currentWindow&&(o.rafDragTimeout&&o.currentWindow.cancelAnimationFrame(o.rafDragTimeout),o.rafDragTimeout=o.currentWindow.requestAnimationFrame(function(){if(o.state.cropSize&&void 0!==t&&void 0!==r){var e=t-o.dragStartPosition.x,n=r-o.dragStartPosition.y,i={x:o.dragStartCrop.x+e,y:o.dragStartCrop.y+n},a=o.props.restrictPosition?c(i,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):i;o.props.onCropChange(a)}}))},o.onDragStopped=function(){var e,t;o.isTouching=!1,o.cleanEvents(),o.emitCropData(),null===(t=(e=o.props).onInteractionEnd)||void 0===t||t.call(e)},o.onWheel=function(e){if(o.currentWindow&&(!o.props.onWheelRequest||o.props.onWheelRequest(e))){e.preventDefault();var r=t.getMousePoint(e),n=s()(e).pixelY,i=o.props.zoom-n*o.props.zoomSpeed/200;o.setNewZoom(i,r,{shouldUpdatePosition:!0}),o.state.hasWheelJustStarted||o.setState({hasWheelJustStarted:!0},function(){var e,t;return null===(t=(e=o.props).onInteractionStart)||void 0===t?void 0:t.call(e)}),o.wheelTimer&&clearTimeout(o.wheelTimer),o.wheelTimer=o.currentWindow.setTimeout(function(){return o.setState({hasWheelJustStarted:!1},function(){var e,t;return null===(t=(e=o.props).onInteractionEnd)||void 0===t?void 0:t.call(e)})},250)}},o.getPointOnContainer=function(e,t){var r=e.x,n=e.y;if(!o.containerRect)throw Error("The Cropper is not mounted");return{x:o.containerRect.width/2-(r-t.x),y:o.containerRect.height/2-(n-t.y)}},o.getPointOnMedia=function(e){var t=e.x,r=e.y,n=o.props,i=n.crop,a=n.zoom;return{x:(t+i.x)/a,y:(r+i.y)/a}},o.setNewZoom=function(e,t,r){var n=(void 0===r?{}:r).shouldUpdatePosition;if(o.state.cropSize&&o.props.onZoomChange){var i=m(e,o.props.minZoom,o.props.maxZoom);if(void 0===n||n){var a=o.getPointOnContainer(t,o.containerPosition),s=o.getPointOnMedia(a),u={x:s.x*i-a.x,y:s.y*i-a.y},l=o.props.restrictPosition?c(u,o.mediaSize,o.state.cropSize,i,o.props.rotation):u;o.props.onCropChange(l)}o.props.onZoomChange(i)}},o.getCropData=function(){var e,t,r,i,a,s,u,l,h,f,m,g,w,y,b;return o.state.cropSize?(e=o.props.restrictPosition?c(o.props.crop,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):o.props.crop,t=o.mediaSize,r=o.state.cropSize,i=o.getAspect(),a=o.props.zoom,s=o.props.rotation,u=o.props.restrictPosition,void 0===s&&(s=0),void 0===u&&(u=!0),l=u?p:d,h=v(t.width,t.height,s),f=v(t.naturalWi
27dth,t.naturalHeight,s),m={x:l(100,((h.width-r.width/a)/2-e.x/a)/h.width*100),y:l(100,((h.height-r.height/a)/2-e.y/a)/h.height*100),width:l(100,r.width/h.width*100/a),height:l(100,r.height/h.height*100/a)},g=Math.round(l(f.width,m.width*f.width/100)),w=Math.round(l(f.height,m.height*f.height/100)),y=f.width>=f.height*i?{width:Math.round(w*i),height:w}:{width:g,height:Math.round(g/i)},b=n(n({},y),{x:Math.round(l(f.width-y.width,m.x*f.width/100)),y:Math.round(l(f.height-y.height,m.y*f.height/100))}),{croppedAreaPercentages:m,croppedAreaPixels:b}):null},o.emitCropData=function(){var e=o.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;o.props.onCropComplete&&o.props.onCropComplete(t,r),o.props.onCropAreaChange&&o.props.onCropAreaChange(t,r)}},o.emitCropAreaChange=function(){var e=o.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;o.props.onCropAreaChange&&o.props.onCropAreaChange(t,r)}},o.recomputeCropPosition=function(){if(o.state.cropSize){var e=o.props.restrictPosition?c(o.props.crop,o.mediaSize,o.state.cropSize,o.props.zoom,o.props.rotation):o.props.crop;o.props.onCropChange(e),o.emitCropData()}},o}return!function(e,t){function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(o=this.props.cropSize)||void 0===o?void 0:o.height)||(null===(r=e.cropSize)||void 0===r?void 0:r.width)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.width)?this.computeSizes():((null===(i=e.crop)||void 0===i?void 0:i.x)!==(null===(a=this.props.crop)||void 0===a?void 0:a.x)||(null===(s=e.crop)||void 0===s?void 0:s.y)!==(null===(c=this.props.crop)||void 0===c?void 0:c.y))&&this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(u=this.videoRef.current)||void 0===u||u.load());var t,o,r,n,i,a,s,c,u,l=this.getObjectFit();l!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:l},this.computeSizes)},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,o=e.aspect;return t?t.width/t.height:o},t.prototype.getObjectFit=function(){var e,t,o,r;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var n=this.containerRect.width/this.containerRect.height;return((null===(e=this.imageRef.current)||void 0===e?void 0:e.naturalWi
27dth)||(null===(t=this.videoRef.current)||void 0===t?void 0:t.videoWidth)||0)/((null===(o=this.imageRef.current)||void 0===o?void 0:o.naturalHeight)||(null===(r=this.videoRef.current)||void 0===r?void 0:r.videoHeight)||0)<n?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(e){var o=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=l(o,r),this.lastPinchRotation=h(o,r),this.onDragStart(f(o,r))},t.prototype.onPinchMove=function(e){var o=this;if(this.currentDoc&&this.currentWindow){var r=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]),i=f(r,n);this.onDrag(i),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var e=l(r,n),t=o.props.zoom*(e/o.lastPinchDistance);o.setNewZoom(t,i,{shouldUpdatePosition:!1}),o.lastPinchDistance=e;var a=h(r,n),s=o.props.rotation+(a-o.lastPinchRotation);o.props.onRotationChange&&o.props.onRotationChange(s),o.lastPinchRotation=a})}},t.prototype.render=function(){var e=this,t=this.props,o=t.image,r=t.video,a=t.mediaProps,s=t.transform,c=t.crop,u=c.x,l=c.y,h=t.rotation,p=t.zoom,d=t.cropShape,f=t.showGrid,v=t.style,m=v.containerStyle,w=v.cropAreaStyle,y=v.mediaStyle,b=t.classes,R=b.containerClassName,C=b.cropAreaClassName,E=b.mediaClassName,x=this.state.mediaObjectFit;return i.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:m,className:g("reactEasyCrop_Container",R)},o?i.createElement("img",n({alt:"",className:g("reactEasyCrop_Image","contain"===x&&"reactEasyCrop_Contain","horizontal-cover"===x&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===x&&"reactEasyCrop_Cover_Vertical",E)},a,{src:o,ref:this.imageRef,style:n(n({},y),{transform:s||"translate(".concat(u,"px, ").concat(l,"px) rotate(").concat(h,"deg) scale(").concat(p,")")}),onLoad:this.onMediaLoad})):r&&i.createElement("video",n({autoPlay:!0,loop:!0,muted:!0,className:g("reactEasyCrop_Video","contain"===x&&"reactEasyCrop_Contain","horizontal-cover"===x&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===x&&"reactEasyCrop_Cover_Vertical",E)},a,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:n(n({},y),{transform:s||"translate(".concat(u,"px, ").concat(l,"px) rotate(").concat(h,"deg) scale(").concat(p,")")}),controls:!1}),(Array.isArray(r)?r:[{src:r}]).map(function(e){return i.createElement("source",n({key:e.src},e))})),this.state.cropSize&&i.createElement("div",{style:n(n({},w),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:g("reactEasyCrop_CropArea","round"===d&&"reactEasyCrop_CropAreaRound",f&&"reactEasyCrop_CropAreaGrid",C)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(i.Component)},3015:function(e,t,o){"use strict";o.d(t,{Dx:function(){return Z},VY:function(){return N},aV:function(){return H},fC:function(){return I},h_:function(){return k}});var r=o(3131),n=o(2983),i=o(2527),a=o(2549),s=o(445),c=o(83),u=o(6619),l=o(1822),h=o(2443),p=o(9858),d=o(3276),f=o(1653),v=o(2986),m=o(4432),g=o(726),w=o(9713);let y="Dialog",[b,R]=(0,s.b)(y),[C,E]=b(y),x="DialogPortal",[D,S]=b(x,{forceMount:void 0}),P="DialogOverlay",O=(0,n.forwardRef)((e,t)=>{let o=S(P,e.__scopeDialog),{forceMount:i=o.forceMount,...a}=e,s=E(P,e.__scopeDialog);return s.modal?(0,n.createElement)(d.z,{present:i||s.open},(0,n.createElement)(M,(0,r.Z)({},a,{ref:t}))):null}),M=(0,n.forwardRef)((e,t)=>{let{__scopeDialog:o,...i}=e,a=E(P,o);return(0,n.createElement)(m.Z,{as:w.g7,allowPinchZoom:!0,shards:[a.contentRef]},(0,n.createElement)(f.WV.div,(0,r.Z)({"data-state":U(a.open)},i,{ref:t,style:{pointerEvents:"auto",...i.style}})))}),T="DialogContent",z=(0,n.forwardRef)((e,t)=>{let o=S(T,e.__scopeDialog),{forceMount:i=o.forceMount,...a}=e,s=E(T,e.__scopeDialog);return(0,n.createElement)(d.z,{present:i||s.open},s.modal?(0,n.createElement)(_,(0,r.Z)({},a,{ref:t})):(0,n.createElement)(A,(0,r.Z)({},a,{ref:t})))}),_=(0,n.forwardRef)((e,t)=>{let o=E(T,e.__scopeDialog),s=(0,n.useRef)(null),c=(0,a.e)(t,o.contentRef,s);return(0,n.useEffect)(()=>{let e=s.current;if(e)return(0,g.Ry)(e)},[]),(0,n.createElement)(L,(0,r.Z)({},e,{ref:c,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=o.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,i.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,o=0===t.button&&!0===t.ctrlKey;(2===t.button||o)&&e.preventDefault()}),onFocusOutside:(0,i.M)(e.onFocusOutside,e=>e.preventDefault())}))}),A=(0,n.forwardRef)((e,t)=>{let o=E(T,e.__scopeDialog),i=(0,n.useRef)(!1),a=(0,n.useRef)(!1);return(0,n.createElement)(L,(0,r.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,n;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(i.current||null===(n=o.triggerRef.current)||void 0===n||n.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{var r,n;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let s=t.target;(null===(n=o.triggerRef.current)||void 0===n?void 0:n.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}}))}),L=(0,n.forwardRef)((e,t)=>{let{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:c,...u}=e,p=E(T,o),d=(0,n.useRef)(null),f=(0,a.e)(t,d);
27return(0,v.EW)(),(0,n.createElement)(n.Fragment,null,(0,n.createElement)(h.M,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:c},(0,n.createElement)(l.XB,(0,r.Z)({role:"dialog",id:p.contentId,"aria-describedby":p.descriptionId,"aria-labelledby":p.titleId,"data-state":U(p.open)},u,{ref:f,onDismiss:()=>p.onOpenChange(!1)}))),!1)}),F="DialogTitle",W=(0,n.forwardRef)((e,t)=>{let{__scopeDialog:o,...i}=e,a=E(F,o);return(0,n.createElement)(f.WV.h2,(0,r.Z)({id:a.titleId},i,{ref:t}))});function U(e){return e?"open":"closed"}let[B,j]=(0,s.k)("DialogTitleWarning",{contentName:T,titleName:F,docsSlug:"dialog"}),I=e=>{let{__scopeDialog:t,children:o,open:r,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=(0,n.useRef)(null),h=(0,n.useRef)(null),[p=!1,d]=(0,u.T)({prop:r,defaultProp:i,onChange:a});return(0,n.createElement)(C,{scope:t,triggerRef:l,contentRef:h,contentId:(0,c.M)(),titleId:(0,c.M)(),descriptionId:(0,c.M)(),open:p,onOpenChange:d,onOpenToggle:(0,n.useCallback)(()=>d(e=>!e),[d]),modal:s},o)},k=e=>{let{__scopeDialog:t,forceMount:o,children:r,container:i}=e,a=E(x,t);return(0,n.createElement)(D,{scope:t,forceMount:o},n.Children.map(r,e=>(0,n.createElement)(d.z,{present:o||a.open},(0,n.createElement)(p.h,{asChild:!0,container:i},e))))},H=O,N=z,Z=W}}]);
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.