@whyour/qinglong 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-en.md +10 -0
- package/README.md +6 -0
- package/docker/front.conf +1 -1
- package/package.json +6 -6
- package/sample/notify.js +11 -1
- package/sample/notify.py +4 -0
- package/shell/otask.sh +1 -1
- package/shell/share.sh +19 -3
- package/shell/update.sh +7 -6
- package/static/build/api/cron.js +6 -0
- package/static/build/api/script.js +1 -1
- package/static/build/config/serverEnv.js +5 -2
- package/static/build/data/auth.js +2 -2
- package/static/build/data/cron.js +7 -1
- package/static/build/data/cronView.js +1 -1
- package/static/build/data/dependence.js +6 -6
- package/static/build/data/env.js +1 -1
- package/static/build/data/notify.js +3 -1
- package/static/build/data/subscription.js +1 -1
- package/static/build/loaders/db.js +12 -0
- package/static/build/protos/cron.js +97 -37
- package/static/build/protos/health.js +25 -30
- package/static/build/schedule/addCron.js +19 -11
- package/static/build/schedule/delCron.js +1 -1
- package/static/build/services/cron.js +23 -21
- package/static/build/services/notify.js +2 -2
- package/static/build/services/system.js +3 -3
- package/static/build/shared/pLimit.js +6 -6
- package/static/dist/1124.0d983222.async.js +1 -0
- package/static/dist/{4906.493cf3fd.async.js → 2393.4404a4fc.async.js} +1 -1
- package/static/dist/{8969.26b0efff.async.js → 3435.4a54080b.async.js} +1 -1
- package/static/dist/419.5de2a140.async.js +1 -0
- package/static/dist/7362.9fde9d80.async.js +1 -0
- package/static/dist/{8130.10d10b7d.async.js → 745.3be9ce9f.async.js} +1 -1
- package/static/dist/7987.5bace809.async.js +1 -0
- package/static/dist/8008.882bf214.async.js +1 -0
- package/static/dist/8078.4add9375.async.js +1 -0
- package/static/dist/833.ca85f497.async.js +1 -0
- package/static/dist/9120.ef78d517.async.js +1 -0
- package/static/dist/index.html +1 -1
- package/static/dist/layouts__index.0909c66d.chunk.css +1 -0
- package/static/dist/layouts__index.ed595716.async.js +1 -0
- package/static/dist/{src__pages__404.f77cf9a2.async.js → src__pages__404.e6b13931.async.js} +1 -1
- package/static/dist/src__pages__config__index.f41a22d4.async.js +1 -0
- package/static/dist/src__pages__crontab__detail.b4fc2995.async.js +1 -0
- package/static/dist/{src__pages__crontab__index.686cdb14.chunk.css → src__pages__crontab__index.6c7b7b2c.chunk.css} +1 -1
- package/static/dist/src__pages__crontab__index.a561edd9.async.js +1 -0
- package/static/dist/src__pages__crontab__logModal.0fb6d62d.async.js +1 -0
- package/static/dist/src__pages__crontab__modal.0b01490c.async.js +1 -0
- package/static/dist/{src__pages__crontab__type.bd5374bd.async.js → src__pages__crontab__type.a798cac7.async.js} +1 -1
- package/static/dist/src__pages__crontab__viewManageModal.67aa809d.async.js +1 -0
- package/static/dist/src__pages__dependence__index.1908bb39.async.js +1 -0
- package/static/dist/src__pages__dependence__logModal.8ecc9316.async.js +1 -0
- package/static/dist/src__pages__dependence__modal.9c12e6bb.async.js +1 -0
- package/static/dist/src__pages__diff__index.e23d088b.async.js +1 -0
- package/static/dist/src__pages__env__editNameModal.6f1edde6.async.js +1 -0
- package/static/dist/src__pages__env__index.3b08292e.async.js +1 -0
- package/static/dist/src__pages__env__modal.ca6133e6.async.js +1 -0
- package/static/dist/src__pages__error__index.0b4f4a22.async.js +1 -0
- package/static/dist/src__pages__initialization__index.51ebefcb.async.js +1 -0
- package/static/dist/src__pages__log__index.4010410c.async.js +1 -0
- package/static/dist/{src__pages__login__index.ce467c16.async.js → src__pages__login__index.8667d8d2.async.js} +1 -1
- package/static/dist/src__pages__script__editModal.b020a209.async.js +1 -0
- package/static/dist/src__pages__script__editNameModal.9220eb1a.async.js +1 -0
- package/static/dist/src__pages__script__index.6184a17e.async.js +1 -0
- package/static/dist/src__pages__script__renameModal.d6192fed.async.js +1 -0
- package/static/dist/src__pages__script__saveModal.eac5e9e7.async.js +1 -0
- package/static/dist/src__pages__script__setting.b958297b.async.js +1 -0
- package/static/dist/src__pages__setting__about.992010a5.async.js +1 -0
- package/static/dist/src__pages__setting__appModal.7563e7b0.async.js +1 -0
- package/static/dist/src__pages__setting__index.2aa66013.async.js +1 -0
- package/static/dist/{src__pages__setting__loginLog.4f883eb7.async.js → src__pages__setting__loginLog.2f2b0a78.async.js} +1 -1
- package/static/dist/src__pages__setting__notification.e8ce9bdc.async.js +1 -0
- package/static/dist/src__pages__setting__other.c6067975.async.js +1 -0
- package/static/dist/{src__pages__setting__progress.ab51bf0a.async.js → src__pages__setting__progress.f58bffae.async.js} +1 -1
- package/static/dist/src__pages__setting__security.cae5c68d.async.js +1 -0
- package/static/dist/src__pages__subscription__index.3266194c.async.js +1 -0
- package/static/dist/{src__pages__subscription__logModal.3037cb57.async.js → src__pages__subscription__logModal.a023b07e.async.js} +1 -1
- package/static/dist/src__pages__subscription__modal.49a1a657.async.js +1 -0
- package/static/dist/umi.dda034c1.js +1 -0
- package/version.yaml +10 -12
- package/static/dist/1925.b3032a5e.async.js +0 -1
- package/static/dist/3330.485d94a3.async.js +0 -1
- package/static/dist/3639.62f45f5e.async.js +0 -1
- package/static/dist/4618.cc1776f5.async.js +0 -1
- package/static/dist/4714.bbe9fae0.async.js +0 -1
- package/static/dist/8044.129359a6.async.js +0 -1
- package/static/dist/819.525cbfda.async.js +0 -1
- package/static/dist/layouts__index.20e4a8b2.async.js +0 -1
- package/static/dist/layouts__index.ddfcd364.chunk.css +0 -1
- package/static/dist/src__pages__config__index.fedea3f9.async.js +0 -1
- package/static/dist/src__pages__crontab__detail.ad4729f7.async.js +0 -1
- package/static/dist/src__pages__crontab__index.a82cfa81.async.js +0 -1
- package/static/dist/src__pages__crontab__logModal.ad170a0f.async.js +0 -1
- package/static/dist/src__pages__crontab__modal.696faf3d.async.js +0 -1
- package/static/dist/src__pages__crontab__viewManageModal.1bb04623.async.js +0 -1
- package/static/dist/src__pages__dependence__index.9f871d7e.async.js +0 -1
- package/static/dist/src__pages__dependence__logModal.b8dfb9bf.async.js +0 -1
- package/static/dist/src__pages__dependence__modal.77688c64.async.js +0 -1
- package/static/dist/src__pages__diff__index.73c27cfb.async.js +0 -1
- package/static/dist/src__pages__env__editNameModal.0b8b8511.async.js +0 -1
- package/static/dist/src__pages__env__index.c2e7f61a.async.js +0 -1
- package/static/dist/src__pages__env__modal.d4bcf3f1.async.js +0 -1
- package/static/dist/src__pages__error__index.9d76a461.async.js +0 -1
- package/static/dist/src__pages__initialization__index.7cb87ba4.async.js +0 -1
- package/static/dist/src__pages__log__index.8da82aea.async.js +0 -1
- package/static/dist/src__pages__script__editModal.dddd633e.async.js +0 -1
- package/static/dist/src__pages__script__editNameModal.159d0a29.async.js +0 -1
- package/static/dist/src__pages__script__index.123b12c6.async.js +0 -1
- package/static/dist/src__pages__script__renameModal.d4788f88.async.js +0 -1
- package/static/dist/src__pages__script__saveModal.f5fc2c94.async.js +0 -1
- package/static/dist/src__pages__script__setting.5004f9a6.async.js +0 -1
- package/static/dist/src__pages__setting__about.ef6f0636.async.js +0 -1
- package/static/dist/src__pages__setting__appModal.52ba0fb4.async.js +0 -1
- package/static/dist/src__pages__setting__index.ccb20d34.async.js +0 -1
- package/static/dist/src__pages__setting__notification.4f6be181.async.js +0 -1
- package/static/dist/src__pages__setting__other.ef42b461.async.js +0 -1
- package/static/dist/src__pages__setting__security.fed987f7.async.js +0 -1
- package/static/dist/src__pages__subscription__index.a434b6c5.async.js +0 -1
- package/static/dist/src__pages__subscription__modal.91d85c79.async.js +0 -1
- package/static/dist/umi.435eb7e2.js +0 -1
- /package/static/dist/{1095.59dcf306.chunk.css → 2182.59dcf306.chunk.css} +0 -0
- /package/static/dist/{8969.d2d0a2c7.chunk.css → 3435.d2d0a2c7.chunk.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[4906],{3513:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(14797),o=n(63313),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},a=n(46420),s=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};s.displayName="UserOutlined";var c=o.forwardRef(s)},24244:function(e,t,n){"use strict";n.d(t,{Z:function(){return Oe}});var r=n(23230),o=n(11527),i=n(63313),a=n.n(i),s=n(84163),c=n(57679);const u=(e,t)=>{const n=h(e),r=h(t),o=n.pop(),i=r.pop(),a=m(n,r);return 0!==a?a:o&&i?m(o.split("."),i.split(".")):o||i?o?-1:1:0},l=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,h=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(l);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},d=e=>"*"===e||"x"===e||"X"===e,p=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},f=(e,t)=>{if(d(e)||d(t))return 0;const[n,r]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(p(e),p(t));return n>r?1:n<r?-1:0},m=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=f(e[n]||"0",t[n]||"0");if(0!==r)return r}return 0},v={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};Object.keys(v);var g=function(e,t){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},g(e,t)};var y=function(){return y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},y.apply(this,arguments)};Object.create;Object.create;var b=n(6210),w=n.n(b);function C(e,t,n,r,o,i){void 0===i&&(i=0);var a=z(e,t,i),s=a.width,c=a.height,u=Math.min(s,n),l=Math.min(c,r);return u>l*o?{width:l*o,height:l}:{width:u,height:u/o}}function x(e,t,n,r,o){void 0===o&&(o=0);var i=z(t.width,t.height,o),a=i.width,s=i.height;return{x:S(e.x,a,n.width,r),y:S(e.y,s,n.height,r)}}function S(e,t,n,r){var o=t*r/2-n/2;return _(e,-o,o)}function E(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function M(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function P(e,t,n,r,o,i,a){void 0===i&&(i=0),void 0===a&&(a=!0);var s=a?R:O,c=z(t.width,t.height,i),u=z(t.naturalWidth,t.naturalHeight,i),l={x:s(100,((c.width-n.width/o)/2-e.x/o)/c.width*100),y:s(100,((c.height-n.height/o)/2-e.y/o)/c.height*100),width:s(100,n.width/c.width*100/o),height:s(100,n.height/c.height*100/o)},h=Math.round(s(u.width,l.width*u.width/100)),d=Math.round(s(u.height,l.height*u.height/100)),p=u.width>=u.height*r?{width:Math.round(d*r),height:d}:{width:h,height:Math.round(h/r)};return{croppedAreaPercentages:l,croppedAreaPixels:y(y({},p),{x:Math.round(s(u.width-p.width,l.x*u.width/100)),y:Math.round(s(u.height-p.height,l.y*u.height/100))})}}function R(e,t){return Math.min(e,Math.max(0,t))}function O(e,t){return t}function D(e,t,n,r,o,i){var a=z(t.width,t.height,n),s=_(r.width/a.width*(100/e.width),o,i);return{crop:{x:s*a.width/2-r.width/2-a.width*s*(e.x/100),y:s*a.height/2-r.height/2-a.height*s*(e.y/100)},zoom:s}}function k(e,t,n,r,o,i){void 0===n&&(n=0);var a=z(t.naturalWidth,t.naturalHeight,n),s=_(function(e,t,n){var r=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return n.height>n.width?n.height/(e.height*r):n.width/(e.width*r)}(e,t,r),o,i),c=r.height>r.width?r.height/e.height:r.width/e.width;return{crop:{x:((a.width-e.width)/2-e.x)*c,y:((a.height-e.height)/2-e.y)*c},zoom:s}}function L(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function z(e,t,n){var r=n*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 _(e,t,n){return Math.min(Math.max(e,t),n)}function A(){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 T=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=a().createRef(),n.videoRef=a().createRef(),n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc="undefined"!=typeof document?document:null,n.currentWindow="undefined"!=typeof window?window:null,n.resizeObserver=null,n.state={cropSize:null,hasWheelJustStarted:!1},n.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&n.containerRef){var e=!0;n.resizeObserver=new window.ResizeObserver((function(t){e?e=!1:n.computeSizes()})),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturemove",n.onGestureMove),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var e=n.computeSizes();e&&(n.emitCropData(),n.setInitialCrop(e)),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(e){if(n.props.initialCroppedAreaPercentages){var t=D(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom),r=t.crop,o=t.zoom;n.props.onCropChange(r),n.props.onZoomChange&&n.props.onZoomChange(o)}else if(n.props.initialCroppedAreaPixels){var i=k(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom);r=i.crop,o=i.zoom;n.props.onCropChange(r),n.props.onZoomChange&&n.props.onZoomChange(o)}},n.computeSizes=function(){var e,t,r,o,i,a,s=n.imageRef.current||n.videoRef.current;if(s&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect();var c=n.containerRect.width/n.containerRect.height,u=(null===(e=n.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,l=(null===(r=n.imageRef.current)||void 0===r?void 0:r.naturalHeight)||(null===(o=n.videoRef.current)||void 0===o?void 0:o.videoHeight)||0,h=u/l,d=void 0;if(s.offsetWidth<u||s.offsetHeight<l)switch(n.props.objectFit){default:case"contain":d=c>h?{width:n.containerRect.height*h,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/h};break;case"horizontal-cover":d={width:n.containerRect.width,height:n.containerRect.width/h};break;case"vertical-cover":d={width:n.containerRect.height*h,height:n.containerRect.height};break;case"auto-cover":d=u>l?{width:n.containerRect.width,height:n.containerRect.width/h}:{width:n.containerRect.height*h,height:n.containerRect.height}}else d={width:s.offsetWidth,height:s.offsetHeight};n.mediaSize=y(y({},d),{naturalWidth:u,naturalHeight:l}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var p=n.props.cropSize?n.props.cropSize:C(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(null===(i=n.state.cropSize)||void 0===i?void 0:i.height)===p.height&&(null===(a=n.state.cropSize)||void 0===a?void 0:a.width)===p.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(p),n.setState({cropSize:p},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(p),p}},n.onMouseDown=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.onDragStart(t.getMousePoint(e)))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onTouchStart=function(e){n.currentDoc&&(n.isTouching=!0,n.props.onTouchRequest&&!n.props.onTouchRequest(e)||(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0]))))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onGestureStart=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureMove),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureMove=function(e){if(e.preventDefault(),!n.isTouching){var r=t.getMousePoint(e),o=n.gestureZoomStart-1+e.scale;if(n.setNewZoom(o,r,{shouldUpdatePosition:!0}),n.props.onRotationChange){var i=n.gestureRotationStart+e.rotation;n.props.onRotationChange(i)}}},n.onGestureEnd=function(e){n.cleanEvents()},n.onDragStart=function(e){var t,r,o=e.x,i=e.y;n.dragStartPosition={x:o,y:i},n.dragStartCrop=y({},n.props.crop),null===(r=(t=n.props).onInteractionStart)||void 0===r||r.call(t)},n.onDrag=function(e){var t=e.x,r=e.y;n.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame((function(){if(n.state.cropSize&&void 0!==t&&void 0!==r){var e=t-n.dragStartPosition.x,o=r-n.dragStartPosition.y,i={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+o},a=n.props.restrictPosition?x(i,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):i;n.props.onCropChange(a)}})))},n.onDragStopped=function(){var e,t;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){if(n.currentWindow&&(!n.props.onWheelRequest||n.props.onWheelRequest(e))){e.preventDefault();var r=t.getMousePoint(e),o=w()(e).pixelY,i=n.props.zoom-o*n.props.zoomSpeed/200;n.setNewZoom(i,r,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout((function(){return n.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)}},n.getPointOnContainer=function(e){var t=e.x,r=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(t-n.containerRect.left),y:n.containerRect.height/2-(r-n.containerRect.top)}},n.getPointOnMedia=function(e){var t=e.x,r=e.y,o=n.props,i=o.crop,a=o.zoom;return{x:(t+i.x)/a,y:(r+i.y)/a}},n.setNewZoom=function(e,t,r){var o=(void 0===r?{}:r).shouldUpdatePosition,i=void 0===o||o;if(n.state.cropSize&&n.props.onZoomChange){var a=_(e,n.props.minZoom,n.props.maxZoom);if(i){var s=n.getPointOnContainer(t),c=n.getPointOnMedia(s),u={x:c.x*a-s.x,y:c.y*a-s.y},l=n.props.restrictPosition?x(u,n.mediaSize,n.state.cropSize,a,n.props.rotation):u;n.props.onCropChange(l)}n.props.onZoomChange(a)}},n.getCropData=function(){return n.state.cropSize?P(n.props.restrictPosition?x(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,r),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,r)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,r)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var e=n.props.restrictPosition?x(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(e),n.emitCropData()}},n}return function(e,t){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(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.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){var t,n,r,o,i,a,s,c,u;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(r=e.cropSize)||void 0===r?void 0:r.width)!==(null===(o=this.props.cropSize)||void 0===o?void 0:o.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())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=E(n,r),this.lastPinchRotation=M(n,r),this.onDragStart(L(n,r))},t.prototype.onPinchMove=function(e){var n=this;if(this.currentDoc&&this.currentWindow){var r=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]),i=L(r,o);this.onDrag(i),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame((function(){var e=E(r,o),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,i,{shouldUpdatePosition:!1}),n.lastPinchDistance=e;var a=M(r,o),s=n.props.rotation+(a-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(s),n.lastPinchRotation=a}))}},t.prototype.render=function(){var e=this,t=this.props,n=t.image,r=t.video,o=t.mediaProps,i=t.transform,s=t.crop,c=s.x,u=s.y,l=t.rotation,h=t.zoom,d=t.cropShape,p=t.showGrid,f=t.style,m=f.containerStyle,v=f.cropAreaStyle,g=f.mediaStyle,b=t.classes,w=b.containerClassName,C=b.cropAreaClassName,x=b.mediaClassName,S=t.objectFit;return a().createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:m,className:A("reactEasyCrop_Container",w)},n?a().createElement("img",y({alt:"",className:A("reactEasyCrop_Image","contain"===S&&"reactEasyCrop_Contain","horizontal-cover"===S&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===S&&"reactEasyCrop_Cover_Vertical","auto-cover"===S&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),x)},o,{src:n,ref:this.imageRef,style:y(y({},g),{transform:i||"translate(".concat(c,"px, ").concat(u,"px) rotate(").concat(l,"deg) scale(").concat(h,")")}),onLoad:this.onMediaLoad})):r&&a().createElement("video",y({autoPlay:!0,loop:!0,muted:!0,className:A("reactEasyCrop_Video","contain"===S&&"reactEasyCrop_Contain","horizontal-cover"===S&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===S&&"reactEasyCrop_Cover_Vertical","auto-cover"===S&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),x)},o,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:y(y({},g),{transform:i||"translate(".concat(c,"px, ").concat(u,"px) rotate(").concat(l,"deg) scale(").concat(h,")")}),controls:!1}),(Array.isArray(r)?r:[{src:r}]).map((function(e){return a().createElement("source",y({key:e.src},e))}))),this.state.cropSize&&a().createElement("div",{style:y(y({},v),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:A("reactEasyCrop_CropArea","round"===d&&"reactEasyCrop_CropAreaRound",p&&"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}(a().Component),N=n(24378),Z=n(18790),j=n(87807),B=n(60795),I=n(17079),F=n(84875),H=n.n(F),W=n(14402),G=n(50631),U=n.n(G),X=n(26230),Y=n(67725),$=n(14797),V=n(25641),K=i.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0});function q(e,t,n){return(e-t)/(n-t)}function J(e,t,n,r){var o=q(t,n,r),i={};switch(e){case"rtl":i.right="".concat(100*o,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*o,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*o,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*o,"%"),i.transform="translateX(-50%)"}return i}function Q(e,t){return Array.isArray(e)?e[t]:e}var ee=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"];var te=i.forwardRef((function(e,t){var n,r,o=e.prefixCls,a=e.value,s=e.valueIndex,c=e.onStartMove,u=e.style,l=e.render,h=e.dragging,d=e.onOffsetChange,p=(0,Y.Z)(e,ee),f=i.useContext(K),m=f.min,v=f.max,g=f.direction,y=f.disabled,b=f.range,w=f.tabIndex,C=f.ariaLabelForHandle,x=f.ariaLabelledByForHandle,S=f.ariaValueTextFormatterForHandle,E="".concat(o,"-handle"),M=function(e){y||c(e,s)},P=J(g,a,m,v),R=i.createElement("div",(0,B.Z)({ref:t,className:H()(E,(n={},(0,j.Z)(n,"".concat(E,"-").concat(s+1),b),(0,j.Z)(n,"".concat(E,"-dragging"),h),n)),style:(0,$.Z)((0,$.Z)({},P),u),onMouseDown:M,onTouchStart:M,onKeyDown:function(e){if(!y){var t=null;switch(e.which||e.keyCode){case V.Z.LEFT:t="ltr"===g||"btt"===g?-1:1;break;case V.Z.RIGHT:t="ltr"===g||"btt"===g?1:-1;break;case V.Z.UP:t="ttb"!==g?1:-1;break;case V.Z.DOWN:t="ttb"!==g?-1:1;break;case V.Z.HOME:t="min";break;case V.Z.END:t="max";break;case V.Z.PAGE_UP:t=2;break;case V.Z.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),d(t,s))}},tabIndex:y?null:Q(w,s),role:"slider","aria-valuemin":m,"aria-valuemax":v,"aria-valuenow":a,"aria-disabled":y,"aria-label":Q(C,s),"aria-labelledby":Q(x,s),"aria-valuetext":null===(r=Q(S,s))||void 0===r?void 0:r(a)},p));return l&&(R=l(R,{index:s,prefixCls:o,value:a,dragging:h})),R})),ne=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"];var re=i.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,s=e.values,c=e.handleRender,u=e.draggingIndex,l=(0,Y.Z)(e,ne),h=i.useRef({});return i.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=h.current[e])||void 0===t||t.focus()}}})),i.createElement(i.Fragment,null,s.map((function(e,t){return i.createElement(te,(0,B.Z)({ref:function(e){e?h.current[t]=e:delete h.current[t]},dragging:u===t,prefixCls:n,style:Q(r,t),key:t,value:e,valueIndex:t,onStartMove:o,onOffsetChange:a,render:c},l))})))}));function oe(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function ie(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,a=e.index,s=e.onStartMove,c=i.useContext(K),u=c.direction,l=c.min,h=c.max,d=c.disabled,p=c.range,f="".concat(t,"-track"),m=q(r,l,h),v=q(o,l,h),g=function(e){!d&&s&&s(e,-1)},y={};switch(u){case"rtl":y.right="".concat(100*m,"%"),y.width="".concat(100*v-100*m,"%");break;case"btt":y.bottom="".concat(100*m,"%"),y.height="".concat(100*v-100*m,"%");break;case"ttb":y.top="".concat(100*m,"%"),y.height="".concat(100*v-100*m,"%");break;default:y.left="".concat(100*m,"%"),y.width="".concat(100*v-100*m,"%")}return i.createElement("div",{className:H()(f,p&&"".concat(f,"-").concat(a+1)),style:(0,$.Z)((0,$.Z)({},y),n),onMouseDown:g,onTouchStart:g})}function ae(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,s=i.useContext(K),c=s.included,u=s.range,l=s.min,h=i.useMemo((function(){if(!u){if(0===r.length)return[];var e=null!=o?o:l,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],i=0;i<r.length-1;i+=1)n.push({start:r[i],end:r[i+1]});return n}),[r,u,o,l]);return c?h.map((function(e,r){var o=e.start,s=e.end;return i.createElement(ie,{index:r,prefixCls:t,style:Q(n,r),start:o,end:s,key:r,onStartMove:a})})):null}function se(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,s=i.useContext(K),c=s.min,u=s.max,l=s.direction,h=s.includedStart,d=s.includedEnd,p=s.included,f="".concat(t,"-text"),m=J(l,o,c,u);return i.createElement("span",{className:H()(f,(0,j.Z)({},"".concat(f,"-active"),p&&h<=o&&o<=d)),style:(0,$.Z)((0,$.Z)({},m),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){a(o)}},r)}function ce(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?i.createElement("div",{className:o},n.map((function(e){var t=e.value,n=e.style,a=e.label;return i.createElement(se,{key:t,prefixCls:o,style:n,value:t,onClick:r},a)}))):null}function ue(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=i.useContext(K),s=a.min,c=a.max,u=a.direction,l=a.included,h=a.includedStart,d=a.includedEnd,p="".concat(t,"-dot"),f=l&&h<=n&&n<=d,m=(0,$.Z)((0,$.Z)({},J(u,n,s,c)),"function"==typeof r?r(n):r);return f&&(m=(0,$.Z)((0,$.Z)({},m),"function"==typeof o?o(n):o)),i.createElement("span",{className:H()(p,(0,j.Z)({},"".concat(p,"-active"),f)),style:m})}function le(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,s=i.useContext(K),c=s.min,u=s.max,l=s.step,h=i.useMemo((function(){var e=new Set;if(n.forEach((function(t){e.add(t.value)})),r&&null!==l)for(var t=c;t<=u;)e.add(t),t+=l;return Array.from(e)}),[c,u,l,r,n]);return i.createElement("div",{className:"".concat(t,"-step")},h.map((function(e){return i.createElement(ue,{prefixCls:t,key:e,value:e,style:o,activeStyle:a})})))}n(62005);var he=i.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-slider":r,a=e.className,s=e.style,c=e.disabled,u=void 0!==c&&c,l=e.autoFocus,h=e.onFocus,d=e.onBlur,p=e.min,f=void 0===p?0:p,m=e.max,v=void 0===m?100:m,g=e.step,y=void 0===g?1:g,b=e.value,w=e.defaultValue,C=e.range,x=e.count,S=e.onChange,E=e.onBeforeChange,M=e.onAfterChange,P=e.allowCross,R=void 0===P||P,O=e.pushable,D=void 0!==O&&O,k=e.draggableTrack,L=e.reverse,z=e.vertical,_=e.included,A=void 0===_||_,T=e.startPoint,N=e.trackStyle,B=e.handleStyle,F=e.railStyle,G=e.dotStyle,Y=e.activeDotStyle,$=e.marks,V=e.dots,q=e.handleRender,J=e.tabIndex,Q=void 0===J?0:J,ee=e.ariaLabelForHandle,te=e.ariaLabelledByForHandle,ne=e.ariaValueTextFormatterForHandle,ie=i.useRef(),se=i.useRef(),ue=i.useMemo((function(){return z?L?"ttb":"btt":L?"rtl":"ltr"}),[L,z]),he=i.useMemo((function(){return isFinite(f)?f:0}),[f]),de=i.useMemo((function(){return isFinite(v)?v:100}),[v]),pe=i.useMemo((function(){return null!==y&&y<=0?1:y}),[y]),fe=i.useMemo((function(){return!0===D?pe:D>=0&&D}),[D,pe]),me=i.useMemo((function(){return Object.keys($||{}).map((function(e){var t=$[e],n={value:Number(e)};return t&&"object"===(0,Z.Z)(t)&&!i.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((function(e){var t=e.label;return t||"number"==typeof t})).sort((function(e,t){return e.value-t.value}))}),[$]),ve=function(e,t,n,r,o,a){var s=i.useCallback((function(n){var r=isFinite(n)?n:e;return r=Math.min(t,n),Math.max(e,r)}),[e,t]),c=i.useCallback((function(r){if(null!==n){var o=e+Math.round((s(r)-e)/n)*n,i=function(e){return(String(e).split(".")[1]||"").length},a=Math.max(i(n),i(t),i(e)),c=Number(o.toFixed(a));return e<=c&&c<=t?c:null}return null}),[n,e,t,s]),u=i.useCallback((function(o){var i=s(o),a=r.map((function(e){return e.value}));null!==n&&a.push(c(o)),a.push(e,t);var u=a[0],l=t-e;return a.forEach((function(e){var t=Math.abs(i-e);t<=l&&(u=e,l=t)})),u}),[e,t,r,n,s,c]),l=function o(i,a,s){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof a){var l,h=i[s],d=h+a,p=[];r.forEach((function(e){p.push(e.value)})),p.push(e,t),p.push(c(h));var f=a>0?1:-1;"unit"===u?p.push(c(h+f*n)):p.push(c(d)),p=p.filter((function(e){return null!==e})).filter((function(e){return a<0?e<=h:e>=h})),"unit"===u&&(p=p.filter((function(e){return e!==h})));var m="unit"===u?h:d;l=p[0];var v=Math.abs(l-m);if(p.forEach((function(e){var t=Math.abs(e-m);t<v&&(l=e,v=t)})),void 0===l)return a<0?e:t;if("dist"===u)return l;if(Math.abs(a)>1){var g=(0,W.Z)(i);return g[s]=l,o(g,a-f,s,u)}return l}return"min"===a?e:"max"===a?t:void 0},h=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=e[n],i=l(e,t,n,r);return{value:i,changed:i!==o}},d=function(e){return null===a&&0===e||"number"==typeof a&&e<a};return[u,function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",i=e.map(u),s=i[n],c=l(i,t,n,r);if(i[n]=c,!1===o){var p=a||0;n>0&&i[n-1]!==s&&(i[n]=Math.max(i[n],i[n-1]+p)),n<i.length-1&&i[n+1]!==s&&(i[n]=Math.min(i[n],i[n+1]-p))}else if("number"==typeof a||null===a){for(var f=n+1;f<i.length;f+=1)for(var m=!0;d(i[f]-i[f-1])&&m;){var v=h(i,1,f);i[f]=v.value,m=v.changed}for(var g=n;g>0;g-=1)for(var y=!0;d(i[g]-i[g-1])&&y;){var b=h(i,-1,g-1);i[g-1]=b.value,y=b.changed}for(var w=i.length-1;w>0;w-=1)for(var C=!0;d(i[w]-i[w-1])&&C;){var x=h(i,-1,w-1);i[w-1]=x.value,C=x.changed}for(var S=0;S<i.length-1;S+=1)for(var E=!0;d(i[S+1]-i[S])&&E;){var M=h(i,1,S+1);i[S+1]=M.value,E=M.changed}}return{value:i[n],values:i}}]}(he,de,pe,me,R,fe),ge=(0,I.Z)(ve,2),ye=ge[0],be=ge[1],we=(0,X.Z)(w,{value:b}),Ce=(0,I.Z)(we,2),xe=Ce[0],Se=Ce[1],Ee=i.useMemo((function(){var e=null==xe?[]:Array.isArray(xe)?xe:[xe],t=(0,I.Z)(e,1)[0],n=null===xe?[]:[void 0===t?he:t];if(C){if(n=(0,W.Z)(e),x||void 0===xe){var r=x>=0?x+1:2;for(n=n.slice(0,r);n.length<r;){var o;n.push(null!==(o=n[n.length-1])&&void 0!==o?o:he)}}n.sort((function(e,t){return e-t}))}return n.forEach((function(e,t){n[t]=ye(e)})),n}),[xe,C,he,x,ye]),Me=i.useRef(Ee);Me.current=Ee;var Pe=function(e){return C?e:e[0]},Re=function(e){var t=(0,W.Z)(e).sort((function(e,t){return e-t}));S&&!U()(t,Me.current)&&S(Pe(t)),Se(t)},Oe=function(e){if(!u){var t=0,n=de-he;Ee.forEach((function(r,o){var i=Math.abs(e-r);i<=n&&(n=i,t=o)}));var r=(0,W.Z)(Ee);r[t]=e,C&&!Ee.length&&void 0===x&&r.push(e),null==E||E(Pe(r)),Re(r),null==M||M(Pe(r))}},De=i.useState(null),ke=(0,I.Z)(De,2),Le=ke[0],ze=ke[1];i.useEffect((function(){if(null!==Le){var e=Ee.indexOf(Le);e>=0&&ie.current.focus(e)}ze(null)}),[Le]);var _e=i.useMemo((function(){return(!k||null!==pe)&&k}),[k,pe]),Ae=function(e,t,n,r,o,a,s,c,u){var l=i.useState(null),h=(0,I.Z)(l,2),d=h[0],p=h[1],f=i.useState(-1),m=(0,I.Z)(f,2),v=m[0],g=m[1],y=i.useState(n),b=(0,I.Z)(y,2),w=b[0],C=b[1],x=i.useState(n),S=(0,I.Z)(x,2),E=S[0],M=S[1],P=i.useRef(null),R=i.useRef(null);i.useEffect((function(){-1===v&&C(n)}),[n,v]),i.useEffect((function(){return function(){document.removeEventListener("mousemove",P.current),document.removeEventListener("mouseup",R.current),document.removeEventListener("touchmove",P.current),document.removeEventListener("touchend",R.current)}}),[]);var O=function(e,t){w.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&p(t),C(e),s(e))},D=function(e,t){if(-1===e){var n=E[0],i=E[E.length-1],s=r-n,c=o-i,l=t*(o-r);l=Math.max(l,s),l=Math.min(l,c);var h=a(n+l);l=h-n;var d=E.map((function(e){return e+l}));O(d)}else{var p=(o-r)*t,f=(0,W.Z)(w);f[e]=E[e];var m=u(f,p,e,"dist");O(m.values,m.value)}},k=i.useRef(D);k.current=D;var L=i.useMemo((function(){var e=(0,W.Z)(n).sort((function(e,t){return e-t})),t=(0,W.Z)(w).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?w:n}),[n,w]);return[v,d,L,function(r,o){r.stopPropagation();var i=n[o];g(o),p(i),M(n);var a=oe(r),s=a.pageX,u=a.pageY,l=function(n){n.preventDefault();var r,i=oe(n),a=i.pageX,c=i.pageY,l=a-s,h=c-u,d=e.current.getBoundingClientRect(),p=d.width,f=d.height;switch(t){case"btt":r=-h/f;break;case"ttb":r=h/f;break;case"rtl":r=-l/p;break;default:r=l/p}k.current(o,r)},h=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",l),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",l),P.current=null,R.current=null,g(-1),c()};document.addEventListener("mouseup",h),document.addEventListener("mousemove",l),document.addEventListener("touchend",h),document.addEventListener("touchmove",l),P.current=l,R.current=h}]}(se,ue,Ee,he,de,ye,Re,(function(){null==M||M(Pe(Me.current))}),be),Te=(0,I.Z)(Ae,4),Ne=Te[0],Ze=Te[1],je=Te[2],Be=Te[3],Ie=function(e,t){Be(e,t),null==E||E(Pe(Me.current))},Fe=-1!==Ne;i.useEffect((function(){if(!Fe){var e=Ee.lastIndexOf(Ze);ie.current.focus(e)}}),[Fe]);var He=i.useMemo((function(){return(0,W.Z)(je).sort((function(e,t){return e-t}))}),[je]),We=i.useMemo((function(){return C?[He[0],He[He.length-1]]:[he,He[0]]}),[He,C,he]),Ge=(0,I.Z)(We,2),Ue=Ge[0],Xe=Ge[1];i.useImperativeHandle(t,(function(){return{focus:function(){ie.current.focus(0)},blur:function(){var e=document.activeElement;se.current.contains(e)&&(null==e||e.blur())}}})),i.useEffect((function(){l&&ie.current.focus(0)}),[]);var Ye=i.useMemo((function(){return{min:he,max:de,direction:ue,disabled:u,step:pe,included:A,includedStart:Ue,includedEnd:Xe,range:C,tabIndex:Q,ariaLabelForHandle:ee,ariaLabelledByForHandle:te,ariaValueTextFormatterForHandle:ne}}),[he,de,ue,u,pe,A,Ue,Xe,C,Q,ee,te,ne]);return i.createElement(K.Provider,{value:Ye},i.createElement("div",{ref:se,className:H()(o,a,(n={},(0,j.Z)(n,"".concat(o,"-disabled"),u),(0,j.Z)(n,"".concat(o,"-vertical"),z),(0,j.Z)(n,"".concat(o,"-horizontal"),!z),(0,j.Z)(n,"".concat(o,"-with-marks"),me.length),n)),style:s,onMouseDown:function(e){e.preventDefault();var t,n=se.current.getBoundingClientRect(),r=n.width,o=n.height,i=n.left,a=n.top,s=n.bottom,c=n.right,u=e.clientX,l=e.clientY;switch(ue){case"btt":t=(s-l)/o;break;case"ttb":t=(l-a)/o;break;case"rtl":t=(c-u)/r;break;default:t=(u-i)/r}Oe(ye(he+t*(de-he)))}},i.createElement("div",{className:"".concat(o,"-rail"),style:F}),i.createElement(ae,{prefixCls:o,style:N,values:He,startPoint:T,onStartMove:_e?Ie:null}),i.createElement(le,{prefixCls:o,marks:me,dots:V,style:G,activeStyle:Y}),i.createElement(re,{ref:ie,prefixCls:o,style:B,values:je,draggingIndex:Ne,onStartMove:Ie,onOffsetChange:function(e,t){if(!u){var n=be(Ee,e,t);null==E||E(Pe(Ee)),Re(n.values),null==M||M(Pe(n.values)),ze(n.value)}},onFocus:h,onBlur:d,handleRender:q}),i.createElement(ce,{prefixCls:o,marks:me,onClick:Oe})))}));var de=he,pe=n(82259),fe=n(4202),me=n(33951),ve=n(15367),ge=i.forwardRef((function(e,t){var n=e.open,r=(0,i.useRef)(null),o=(0,i.useRef)(null);function a(){fe.Z.cancel(o.current),o.current=null}return i.useEffect((function(){return n?o.current=(0,fe.Z)((function(){var e;null===(e=r.current)||void 0===e||e.forcePopupAlign(),o.current=null})):a(),a}),[n,e.title]),i.createElement(ve.Z,(0,B.Z)({ref:(0,me.sQ)(r,t)},e))})),ye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},be=i.forwardRef((function(e,t){var n=i.useContext(pe.E_),r=n.getPrefixCls,o=n.direction,a=n.getPopupContainer,s=i.useState({}),c=(0,I.Z)(s,2),u=c[0],l=c[1],h=function(e,t){l((function(n){return(0,B.Z)((0,B.Z)({},n),(0,j.Z)({},e,t))}))},d=function(e,t){return e||(t?"rtl"===o?"left":"right":"top")},p=e.prefixCls,f=e.range,m=e.className,v=ye(e,["prefixCls","range","className"]),g=r("slider",p),y=H()(m,(0,j.Z)({},"".concat(g,"-rtl"),"rtl"===o));"rtl"!==o||v.vertical||(v.reverse=!v.reverse);var b=i.useMemo((function(){return f?"object"===(0,Z.Z)(f)?[!0,f.draggableTrack]:[!0,!1]:[!1]}),[f]),w=(0,I.Z)(b,2),C=w[0],x=w[1];return i.createElement(de,(0,B.Z)({},v,{step:v.step,range:C,draggableTrack:x,className:y,ref:t,prefixCls:g,handleRender:function(t,n){var o,s=n.index,c=n.dragging,l=r(),p=e.tooltip,f=void 0===p?{}:p,m=e.vertical,v=(0,B.Z)({formatter:null!==(o=e.tipFormatter)&&void 0!==o?o:function(e){return"number"==typeof e?e.toString():""},open:e.tooltipVisible,placement:e.tooltipPlacement,getPopupContainer:e.getTooltipPopupContainer},f),y=v.open,b=v.placement,w=v.getPopupContainer,C=v.prefixCls,x=v.formatter,S=!!x&&(u[s]||c),E=y||void 0===y&&S,M=(0,B.Z)((0,B.Z)({},t.props),{onMouseEnter:function(){return h(s,!0)},onMouseLeave:function(){return h(s,!1)}}),P=r("tooltip",C);return i.createElement(ge,{prefixCls:P,title:x?x(n.value):"",open:E,placement:d(b,m),transitionName:"".concat(l,"-zoom-down"),key:s,overlayClassName:"".concat(g,"-tooltip"),getPopupContainer:w||a},i.cloneElement(t,M))}}))}));var we=be;const Ce="img-crop",xe=.1,Se=.01,Ee=(0,i.forwardRef)(((e,t)=>{const{cropperRef:n,zoomSlider:r,rotationSlider:a,aspectSlider:s,showReset:c,resetBtnText:u,modalImage:l,aspect:h,minZoom:d,maxZoom:p,cropShape:f,showGrid:m,cropperProps:v}=e,[g,y]=(0,i.useState)(1),[b,w]=(0,i.useState)(0),[C,x]=(0,i.useState)(h),S=1!==g||0!==b||C!==h,E=()=>{y(1),w(0),x(h)},[M,P]=(0,i.useState)({x:0,y:0}),R=(0,i.useRef)({width:0,height:0,x:0,y:0}),O=(0,i.useCallback)(((e,t)=>{R.current=t}),[]);(0,i.useImperativeHandle)(t,(()=>({rotation:b,cropPixelsRef:R,onReset:E})));const D="[display:flex] [align-items:center] [width:60%] [margin-inline:auto]",k="[display:flex] [align-items:center] [justify-content:center] [height:32px] [width:32px] [background:transparent] [border:0] [font-family:inherit] [font-size:18px] [cursor:pointer] disabled:[opacity:20%] disabled:[cursor:default]",L="[flex:1]";return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(T,Object.assign({},v,{ref:n,image:l,crop:M,zoom:g,rotation:b,aspect:C,minZoom:d,maxZoom:p,zoomWithScroll:r,cropShape:f,showGrid:m,onCropChange:P,onZoomChange:y,onRotationChange:w,onCropComplete:O,classes:{containerClassName:`${Ce}-container ![position:relative] [width:100%] [height:40vh] [&~section:first-of-type]:[margin-top:16px] [&~section:last-of-type]:[margin-bottom:16px]`,mediaClassName:`${Ce}-media`}})),r&&(0,o.jsxs)("section",Object.assign({className:`${Ce}-control ${Ce}-control-zoom ${D}`},{children:[(0,o.jsx)("button",Object.assign({className:k,onClick:()=>y(g-xe),disabled:g-xe<d},{children:"-"})),(0,o.jsx)(we,{className:L,min:d,max:p,step:xe,value:g,onChange:y}),(0,o.jsx)("button",Object.assign({className:k,onClick:()=>y(g+xe),disabled:g+xe>p},{children:"+"}))]})),a&&(0,o.jsxs)("section",Object.assign({className:`${Ce}-control ${Ce}-control-rotation ${D}`},{children:[(0,o.jsx)("button",Object.assign({className:`${k} [font-size:16px]`,onClick:()=>w(b-1),disabled:-180===b},{children:"↺"})),(0,o.jsx)(we,{className:L,min:-180,max:180,step:1,value:b,onChange:w}),(0,o.jsx)("button",Object.assign({className:`${k} [font-size:16px]`,onClick:()=>w(b+1),disabled:180===b},{children:"↻"}))]})),s&&(0,o.jsxs)("section",Object.assign({className:`${Ce}-control ${Ce}-control-aspect ${D}`},{children:[(0,o.jsx)("button",Object.assign({className:k,onClick:()=>x(C-Se),disabled:C-Se<.5},{children:"↕️"})),(0,o.jsx)(we,{className:L,min:.5,max:2,step:Se,value:C,onChange:x}),(0,o.jsx)("button",Object.assign({className:k,onClick:()=>x(C+Se),disabled:C+Se>2},{children:"↔️"}))]})),c&&(r||a||s)&&(0,o.jsx)(N.Z,Object.assign({className:"[bottom:20px] [position:absolute]",style:S?{}:{opacity:.3,pointerEvents:"none"},onClick:E},{children:u}))]})}));var Me=(0,i.memo)(Ee);!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.visible{visibility:visible}.grid{display:grid}.\\!\\[position\\:relative\\]{position:relative!important}.\\[align-items\\:center\\]{align-items:center}.\\[background\\:transparent\\]{background:transparent}.\\[border\\:0\\]{border:0}.\\[bottom\\:20px\\]{bottom:20px}.\\[cursor\\:pointer\\]{cursor:pointer}.\\[display\\:flex\\]{display:flex}.\\[flex\\:1\\]{flex:1}.\\[font-family\\:inherit\\]{font-family:inherit}.\\[font-size\\:16px\\]{font-size:16px}.\\[font-size\\:18px\\]{font-size:18px}.\\[height\\:32px\\]{height:32px}.\\[height\\:40vh\\]{height:40vh}.\\[justify-content\\:center\\]{justify-content:center}.\\[margin-inline\\:auto\\]{margin-inline:auto}.\\[position\\:absolute\\]{position:absolute}.\\[width\\:100\\%\\]{width:100%}.\\[width\\:32px\\]{width:32px}.\\[width\\:60\\%\\]{width:60%}.disabled\\:\\[cursor\\:default\\]:disabled{cursor:default}.disabled\\:\\[opacity\\:20\\%\\]:disabled{opacity:20%}.\\[\\&\\~section\\:first-of-type\\]\\:\\[margin-top\\:16px\\]~section:first-of-type{margin-top:16px}.\\[\\&\\~section\\:last-of-type\\]\\:\\[margin-bottom\\:16px\\]~section:last-of-type{margin-bottom:16px}");const Pe=-1===u("4.24.10","4.23.0")?"visible":"open",Re=(e,t,n)=>t in e?(console.error(`\`${t}\` is deprecated, please use \`${n}\` instead`),e[t]):e[n],Oe=(0,i.forwardRef)(((e,t)=>{const{quality:n=.4,fillColor:a="white",zoomSlider:u=!0,rotationSlider:l=!1,aspectSlider:h=!1,showReset:d=!1,resetText:p,aspect:f=1,minZoom:m=1,maxZoom:v=3,cropShape:g="rect",showGrid:y=!1,cropperProps:b,modalClassName:w,modalTitle:C,modalWidth:x,modalOk:S,modalCancel:E,onModalOk:M,onModalCancel:P,modalProps:R,beforeCrop:O,children:D}=e,k=Re(e,"zoom","zoomSlider")||!0,L=Re(e,"rotate","rotationSlider")||!1,z=Re(e,"shape","cropShape")||"rect",_=Re(e,"grid","showGrid")||!1;"onUploadFail"in e&&console.error("`onUploadFail` is removed, because the only way it is called, is when the file is rejected by beforeUpload"),Re(e,"modalMaskTransitionName","modalProps.maskTransitionName"),Re(e,"modalTransitionName","modalProps.transitionName");const A=(0,i.useRef)({});A.current.onModalOk=M,A.current.onModalCancel=P,A.current.beforeCrop=O;const T=(0,i.useRef)(null),N=(0,i.useCallback)((e=>{var t;const n=document.createElement("canvas"),r=n.getContext("2d"),o=((null===(t=null==e?void 0:e.getRootNode)||void 0===t?void 0:t.call(e))||document).querySelector(`.${Ce}-media`),{width:i,height:s,x:c,y:u}=T.current.cropPixelsRef.current;if(L&&0!==T.current.rotation){const{naturalWidth:e,naturalHeight:t}=o,l=T.current.rotation*(Math.PI/180),h=Math.abs(Math.sin(l)),d=Math.abs(Math.cos(l)),p=e*d+t*h,f=t*d+e*h;n.width=p,n.height=f,r.fillStyle=a,r.fillRect(0,0,p,f);const m=p/2,v=f/2;r.translate(m,v),r.rotate(l),r.translate(-m,-v);const g=(p-e)/2,y=(f-t)/2;r.drawImage(o,0,0,e,t,g,y,e,t);const b=r.getImageData(0,0,p,f);n.width=i,n.height=s,r.putImageData(b,-c,-u)}else n.width=i,n.height=s,r.fillStyle=a,r.fillRect(0,0,i,s),r.drawImage(o,c,u,i,s,0,0,i,s);return n}),[a,L]),[Z,j]=(0,i.useState)(""),B=(0,i.useRef)(),I=(0,i.useRef)(),F=(0,i.useMemo)((()=>{const e=Array.isArray(D)?D[0]:D,t=e.props,{beforeUpload:o,accept:i}=t,a=(0,r._T)(t,["beforeUpload","accept"]);return Object.assign(Object.assign({},e),{props:Object.assign(Object.assign({},a),{accept:i||"image/*",beforeUpload:(e,t)=>new Promise((i=>(0,r.mG)(void 0,void 0,void 0,(function*(){if("function"==typeof A.current.beforeCrop)try{const n=yield A.current.beforeCrop(e,t);if(!0!==n)return i(n)}catch(e){return i(e)}const a=new FileReader;a.addEventListener("load",(()=>{"string"==typeof a.result&&j(a.result)})),a.readAsDataURL(e),B.current=()=>{var e,t;j(""),T.current.onReset(),i(c.Z.LIST_IGNORE),null===(t=(e=A.current).onModalCancel)||void 0===t||t.call(e)},I.current=t=>(0,r.mG)(void 0,void 0,void 0,(function*(){j(""),T.current.onReset();const a=N(t.target),{type:s,name:c,uid:u}=e;a.toBlob((e=>(0,r.mG)(void 0,void 0,void 0,(function*(){var t,n,r,a,l,h;const d=new File([e],c,{type:s});if(Object.assign(d,{uid:u}),"function"!=typeof o)return i(d),void(null===(n=(t=A.current).onModalOk)||void 0===n||n.call(t,d));try{const e=yield o(d,[d]),t=!0===e?d:e;i(t),null===(a=(r=A.current).onModalOk)||void 0===a||a.call(r,t)}catch(e){i(e),null===(h=(l=A.current).onModalOk)||void 0===h||h.call(l,e)}}))),s,n)}))}))))})})}),[D,N,n]),H=(0,i.useMemo)((()=>{const e={};return void 0!==x&&(e.width=x),void 0!==S&&(e.okText=S),void 0!==E&&(e.cancelText=E),e}),[E,S,x]),W=`${Ce}-modal${w?` ${w}`:""}`,G="zh-CN"===("undefined"==typeof window?"":window.navigator.language),U=C||(G?"编辑图片":"Edit image"),X=p||(G?"重置":"Reset");return(0,o.jsxs)(o.Fragment,{children:[F,Z&&(0,o.jsx)(s.Z,Object.assign({},R,H,{[Pe]:!0},{title:U,onCancel:B.current,onOk:I.current,wrapClassName:W,maskClosable:!1,destroyOnClose:!0},{children:(0,o.jsx)(Me,{ref:T,cropperRef:t,zoomSlider:k,rotationSlider:L,aspectSlider:h,showReset:d,resetBtnText:X,modalImage:Z,aspect:f,minZoom:m,maxZoom:v,cropShape:z,showGrid:_,cropperProps:b})}))]})}))},3057:function(e,t,n){"use strict";n(90265),n(34626)},6210:function(e,t,n){e.exports=n(92782)},72906:function(e){"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},73211:function(e){var t,n,r,o,i,a,s,c,u,l,h,d,p,f,m,v=!1;function g(){if(!v){v=!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),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(d=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),l=/Android/i.exec(e),f=/FBAN\/\w+;/i.exec(e),m=/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 b=/(?:Trident\/(\d+.\d+))/.exec(e);a=b?parseFloat(b[1])+4:t,n=g[2]?parseFloat(g[2]):NaN,r=g[3]?parseFloat(g[3]):NaN,(o=g[4]?parseFloat(g[4]):NaN)?(g=/(?:Chrome\/(\d+\.\d+))/.exec(e),i=g&&g[1]?parseFloat(g[1]):NaN):i=NaN}else t=n=r=i=o=NaN;if(y){if(y[1]){var w=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!w||parseFloat(w[1].replace("_","."))}else s=!1;c=!!y[2],u=!!y[3]}else s=c=u=!1}}var y={ie:function(){return g()||t},ieCompatibilityMode:function(){return g()||a>t},ie64:function(){return y.ie()&&h},firefox:function(){return g()||n},opera:function(){return g()||r},webkit:function(){return g()||o},safari:function(){return y.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()||d},mobile:function(){return g()||d||p||l||m},nativeApp:function(){return g()||f},android:function(){return g()||l},ipad:function(){return g()||p}};e.exports=y},16177:function(e,t,n){"use strict";var r,o=n(72906);o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var a=document.createElement("div");a.setAttribute(n,"return;"),i="function"==typeof a[n]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}},92782:function(e,t,n){"use strict";var r=n(73211),o=n(16177);function i(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}i.getEventType=function(){return r.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=i},31688:function(e,t,n){var r=n(45478);function o(e){this.mode=r.MODE_8BIT_BYTE,this.data=e}o.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},e.exports=o},77572:function(e){function t(){this.buffer=new Array,this.length=0}t.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},12538:function(e){e.exports={L:1,M:0,Q:3,H:2}},14382:function(e,t,n){var r=n(4897);function o(e,t){if(null==e.length)throw new Error(e.length+"/"+t);for(var n=0;n<e.length&&0==e[n];)n++;this.num=new Array(e.length-n+t);for(var r=0;r<e.length-n;r++)this.num[r]=e[r+n]}o.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var i=0;i<e.getLength();i++)t[n+i]^=r.gexp(r.glog(this.get(n))+r.glog(e.get(i)));return new o(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=r.glog(this.get(0))-r.glog(e.get(0)),n=new Array(this.getLength()),i=0;i<this.getLength();i++)n[i]=this.get(i);for(i=0;i<e.getLength();i++)n[i]^=r.gexp(r.glog(e.get(i))+t);return new o(n,0).mod(e)}},e.exports=o},46175:function(e,t,n){var r=n(31688),o=n(77515),i=n(77572),a=n(62739),s=n(14382);function c(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var u=c.prototype;u.addData=function(e){var t=new r(e);this.dataList.push(t),this.dataCache=null},u.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},u.getModuleCount=function(){return this.moduleCount},u.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=o.getRSBlocks(e,this.errorCorrectLevel),n=new i,r=0,s=0;s<t.length;s++)r+=t[s].dataCount;for(s=0;s<this.dataList.length;s++){var c=this.dataList[s];n.put(c.mode,4),n.put(c.getLength(),a.getLengthInBits(c.mode,e)),c.write(n)}if(n.getLengthInBits()<=8*r)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},u.makeImpl=function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[n][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=c.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},u.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=a.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},u.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var o=0;o<this.modules.length;o++)for(var i=1*o,a=0;a<this.modules[o].length;a++){var s=1*a;this.modules[o][a]&&(r.beginFill(0,100),r.moveTo(s,i),r.lineTo(s+1,i),r.lineTo(s+1,i+1),r.lineTo(s,i+1),r.endFill())}return r},u.setupTimingPattern=function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},u.setupPositionAdjustPattern=function(){for(var e=a.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var r=e[t],o=e[n];if(null==this.modules[r][o])for(var i=-2;i<=2;i++)for(var s=-2;s<=2;s++)this.modules[r+i][o+s]=-2==i||2==i||-2==s||2==s||0==i&&0==s}},u.setupTypeNumber=function(e){for(var t=a.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!e&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++){r=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},u.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=a.getBCHTypeInfo(n),o=0;o<15;o++){var i=!e&&1==(r>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++){i=!e&&1==(r>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,o=7,i=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var c=0;c<2;c++)if(null==this.modules[r][s-c]){var u=!1;i<e.length&&(u=1==(e[i]>>>o&1)),a.getMask(t,r,s-c)&&(u=!u),this.modules[r][s-c]=u,-1==--o&&(i++,o=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},c.PAD0=236,c.PAD1=17,c.createData=function(e,t,n){for(var r=o.getRSBlocks(e,t),s=new i,u=0;u<n.length;u++){var l=n[u];s.put(l.mode,4),s.put(l.getLength(),a.getLengthInBits(l.mode,e)),l.write(s)}var h=0;for(u=0;u<r.length;u++)h+=r[u].dataCount;if(s.getLengthInBits()>8*h)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*h+")");for(s.getLengthInBits()+4<=8*h&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*h||(s.put(c.PAD0,8),s.getLengthInBits()>=8*h));)s.put(c.PAD1,8);return c.createBytes(s,r)},c.createBytes=function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),c=new Array(t.length),u=0;u<t.length;u++){var l=t[u].dataCount,h=t[u].totalCount-l;r=Math.max(r,l),o=Math.max(o,h),i[u]=new Array(l);for(var d=0;d<i[u].length;d++)i[u][d]=255&e.buffer[d+n];n+=l;var p=a.getErrorCorrectPolynomial(h),f=new s(i[u],p.getLength()-1).mod(p);c[u]=new Array(p.getLength()-1);for(d=0;d<c[u].length;d++){var m=d+f.getLength()-c[u].length;c[u][d]=m>=0?f.get(m):0}}var v=0;for(d=0;d<t.length;d++)v+=t[d].totalCount;var g=new Array(v),y=0;for(d=0;d<r;d++)for(u=0;u<t.length;u++)d<i[u].length&&(g[y++]=i[u][d]);for(d=0;d<o;d++)for(u=0;u<t.length;u++)d<c[u].length&&(g[y++]=c[u][d]);return g},e.exports=c},77515:function(e,t,n){var r=n(12538);function o(e,t){this.totalCount=e,this.dataCount=t}o.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],o.getRSBlocks=function(e,t){var n=o.getRsBlockTable(e,t);if(null==n)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=n.length/3,i=new Array,a=0;a<r;a++)for(var s=n[3*a+0],c=n[3*a+1],u=n[3*a+2],l=0;l<s;l++)i.push(new o(c,u));return i},o.getRsBlockTable=function(e,t){switch(t){case r.L:return o.RS_BLOCK_TABLE[4*(e-1)+0];case r.M:return o.RS_BLOCK_TABLE[4*(e-1)+1];case r.Q:return o.RS_BLOCK_TABLE[4*(e-1)+2];case r.H:return o.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},e.exports=o},4897:function(e){for(var t={glog:function(e){if(e<1)throw new Error("glog("+e+")");return t.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<<n;for(n=8;n<256;n++)t.EXP_TABLE[n]=t.EXP_TABLE[n-4]^t.EXP_TABLE[n-5]^t.EXP_TABLE[n-6]^t.EXP_TABLE[n-8];for(n=0;n<255;n++)t.LOG_TABLE[t.EXP_TABLE[n]]=n;e.exports=t},45478:function(e){e.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},62739:function(e,t,n){var r=n(45478),o=n(14382),i=n(4897),a=0,s=1,c=2,u=3,l=4,h=5,d=6,p=7,f={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;f.getBCHDigit(t)-f.getBCHDigit(f.G15)>=0;)t^=f.G15<<f.getBCHDigit(t)-f.getBCHDigit(f.G15);return(e<<10|t)^f.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;f.getBCHDigit(t)-f.getBCHDigit(f.G18)>=0;)t^=f.G18<<f.getBCHDigit(t)-f.getBCHDigit(f.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return f.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a:return(t+n)%2==0;case s:return t%2==0;case c:return n%3==0;case u:return(t+n)%3==0;case l:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case h:return t*n%2+t*n%3==0;case d:return(t*n%2+t*n%3)%2==0;case p:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new o([1],0),n=0;n<e;n++)t=t.multiply(new o([1,i.gexp(n)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:case r.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r++)for(var o=0;o<t;o++){for(var i=0,a=e.isDark(r,o),s=-1;s<=1;s++)if(!(r+s<0||t<=r+s))for(var c=-1;c<=1;c++)o+c<0||t<=o+c||0==s&&0==c||a==e.isDark(r+s,o+c)&&i++;i>5&&(n+=3+i-5)}for(r=0;r<t-1;r++)for(o=0;o<t-1;o++){var u=0;e.isDark(r,o)&&u++,e.isDark(r+1,o)&&u++,e.isDark(r,o+1)&&u++,e.isDark(r+1,o+1)&&u++,0!=u&&4!=u||(n+=3)}for(r=0;r<t;r++)for(o=0;o<t-6;o++)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(o=0;o<t;o++)for(r=0;r<t-6;r++)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);var l=0;for(o=0;o<t;o++)for(r=0;r<t;r++)e.isDark(r,o)&&l++;return n+=10*(Math.abs(100*l/t/t-50)/5)}};e.exports=f},48039:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(n,!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function h(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?p(e):t}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=n(63313),y=(n(40507),n(46175)),b=n(12538);function w(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r<2048?(t+=String.fromCharCode(192|r>>6),t+=String.fromCharCode(128|63&r)):r<55296||r>=57344?(t+=String.fromCharCode(224|r>>12),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r)):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t+=String.fromCharCode(240|r>>18),t+=String.fromCharCode(128|r>>12&63),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r))}return t}var C={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1};function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach((function(e,r){var o=null;e.forEach((function(i,a){if(!i&&null!==o)return n.push("M".concat(o+t," ").concat(r+t,"h").concat(a-o,"v1H").concat(o+t,"z")),void(o=null);if(a!==e.length-1)i&&null===o&&(o=a);else{if(!i)return;null===o?n.push("M".concat(a+t,",").concat(r+t," h1v1H").concat(a+t,"z")):n.push("M".concat(o+t,",").concat(r+t," h").concat(a+1-o,"v1H").concat(o+t,"z"))}}))})),n.join("")}function S(e,t){return e.slice().map((function(e,n){return n<t.y||n>=t.y+t.h?e:e.map((function(e,n){return(n<t.x||n>=t.x+t.w)&&e}))}))}function E(e,t){var n=e.imageSettings,r=e.size,o=e.includeMargin;if(null==n)return null;var i=o?4:0,a=t.length+2*i,s=Math.floor(.1*r),c=a/r,u=(n.width||s)*c,l=(n.height||s)*c,h=null==n.x?t.length/2-u/2:n.x*c,d=null==n.y?t.length/2-l/2:n.y*c,p=null;if(n.excavate){var f=Math.floor(h),m=Math.floor(d);p={x:f,y:m,w:Math.ceil(u+h-f),h:Math.ceil(l+d-m)}}return{x:h,y:d,h:l,w:u,excavation:p}}var M=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),P=function(e){function t(){var e,n;c(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return v(p(n=h(this,(e=d(t)).call.apply(e,[this].concat(o)))),"_canvas",void 0),v(p(n),"_image",void 0),v(p(n),"state",{imgLoaded:!1}),v(p(n),"handleImageLoad",(function(){n.setState({imgLoaded:!0})})),n}return f(t,e),l(t,[{key:"componentDidMount",value:function(){this._image&&this._image.complete&&this.handleImageLoad(),this.update()}},{key:"componentWillReceiveProps",value:function(e){var t,n;(null===(t=this.props.imageSettings)||void 0===t?void 0:t.src)!==(null===(n=e.imageSettings)||void 0===n?void 0:n.src)&&this.setState({imgLoaded:!1})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var e=this.props,t=e.value,n=e.size,r=e.level,o=e.bgColor,i=e.fgColor,a=e.includeMargin,s=e.imageSettings,c=new y(-1,b[r]);if(c.addData(w(t)),c.make(),null!=this._canvas){var u=this._canvas,l=u.getContext("2d");if(!l)return;var h=c.modules;if(null===h)return;var d=a?4:0,p=h.length+2*d,f=E(this.props,h);null!=s&&null!=f&&null!=f.excavation&&(h=S(h,f.excavation));var m=window.devicePixelRatio||1;u.height=u.width=n*m;var v=n/p*m;l.scale(v,v),l.fillStyle=o,l.fillRect(0,0,p,p),l.fillStyle=i,M?l.fill(new Path2D(x(h,d))):h.forEach((function(e,t){e.forEach((function(e,n){e&&l.fillRect(n+d,t+d,1,1)}))})),this.state.imgLoaded&&this._image&&null!=f&&l.drawImage(this._image,f.x+d,f.y+d,f.w,f.h)}}},{key:"render",value:function(){var e=this,t=this.props,n=(t.value,t.size),r=(t.level,t.bgColor,t.fgColor,t.style),i=(t.includeMargin,t.imageSettings),c=s(t,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),u=a({height:n,width:n},r),l=null,h=i&&i.src;return null!=i&&null!=h&&(l=g.createElement("img",{src:h,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(t){return e._image=t}})),g.createElement(g.Fragment,null,g.createElement("canvas",o({style:u,height:n,width:n,ref:function(t){return e._canvas=t}},c)),l)}}]),t}(g.PureComponent);v(P,"defaultProps",C);var R=function(e){function t(){return c(this,t),h(this,d(t).apply(this,arguments))}return f(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.value,n=e.size,r=e.level,i=e.bgColor,a=e.fgColor,c=e.includeMargin,u=e.imageSettings,l=s(e,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),h=new y(-1,b[r]);h.addData(w(t)),h.make();var d=h.modules;if(null===d)return null;var p=c?4:0,f=d.length+2*p,m=E(this.props,d),v=null;null!=u&&null!=m&&(null!=m.excavation&&(d=S(d,m.excavation)),v=g.createElement("image",{xlinkHref:u.src,height:m.h,width:m.w,x:m.x+p,y:m.y+p,preserveAspectRatio:"none"}));var C=x(d,p);return g.createElement("svg",o({shapeRendering:"crispEdges",height:n,width:n,viewBox:"0 0 ".concat(f," ").concat(f)},l),g.createElement("path",{fill:i,d:"M0,0 h".concat(f,"v").concat(f,"H0z")}),g.createElement("path",{fill:a,d:C}),v)}}]),t}(g.PureComponent);v(R,"defaultProps",C);var O=function(e){var t=e.renderAs,n=s(e,["renderAs"]),r="svg"===t?R:P;return g.createElement(r,n)};O.defaultProps=a({renderAs:"canvas"},C),e.exports=O},23230:function(e,t,n){"use strict";n.d(t,{CR:function(){return s},Jh:function(){return a},_T:function(){return o},ev:function(){return c},mG:function(){return i},pi:function(){return r}});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function i(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create;function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create}}]);
|
|
1
|
+
(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[2393],{3513:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(14797),o=n(63313),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},a=n(46420),s=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};s.displayName="UserOutlined";var c=o.forwardRef(s)},24244:function(e,t,n){"use strict";n.d(t,{Z:function(){return Oe}});var r=n(23230),o=n(11527),i=n(63313),a=n.n(i),s=n(84163),c=n(57679);const u=(e,t)=>{const n=h(e),r=h(t),o=n.pop(),i=r.pop(),a=m(n,r);return 0!==a?a:o&&i?m(o.split("."),i.split(".")):o||i?o?-1:1:0},l=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,h=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(l);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},d=e=>"*"===e||"x"===e||"X"===e,p=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},f=(e,t)=>{if(d(e)||d(t))return 0;const[n,r]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(p(e),p(t));return n>r?1:n<r?-1:0},m=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=f(e[n]||"0",t[n]||"0");if(0!==r)return r}return 0},v={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};Object.keys(v);var g=function(e,t){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},g(e,t)};var y=function(){return y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},y.apply(this,arguments)};Object.create;Object.create;var b=n(6210),w=n.n(b);function C(e,t,n,r,o,i){void 0===i&&(i=0);var a=z(e,t,i),s=a.width,c=a.height,u=Math.min(s,n),l=Math.min(c,r);return u>l*o?{width:l*o,height:l}:{width:u,height:u/o}}function x(e,t,n,r,o){void 0===o&&(o=0);var i=z(t.width,t.height,o),a=i.width,s=i.height;return{x:S(e.x,a,n.width,r),y:S(e.y,s,n.height,r)}}function S(e,t,n,r){var o=t*r/2-n/2;return _(e,-o,o)}function E(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function M(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function P(e,t,n,r,o,i,a){void 0===i&&(i=0),void 0===a&&(a=!0);var s=a?R:O,c=z(t.width,t.height,i),u=z(t.naturalWidth,t.naturalHeight,i),l={x:s(100,((c.width-n.width/o)/2-e.x/o)/c.width*100),y:s(100,((c.height-n.height/o)/2-e.y/o)/c.height*100),width:s(100,n.width/c.width*100/o),height:s(100,n.height/c.height*100/o)},h=Math.round(s(u.width,l.width*u.width/100)),d=Math.round(s(u.height,l.height*u.height/100)),p=u.width>=u.height*r?{width:Math.round(d*r),height:d}:{width:h,height:Math.round(h/r)};return{croppedAreaPercentages:l,croppedAreaPixels:y(y({},p),{x:Math.round(s(u.width-p.width,l.x*u.width/100)),y:Math.round(s(u.height-p.height,l.y*u.height/100))})}}function R(e,t){return Math.min(e,Math.max(0,t))}function O(e,t){return t}function D(e,t,n,r,o,i){var a=z(t.width,t.height,n),s=_(r.width/a.width*(100/e.width),o,i);return{crop:{x:s*a.width/2-r.width/2-a.width*s*(e.x/100),y:s*a.height/2-r.height/2-a.height*s*(e.y/100)},zoom:s}}function k(e,t,n,r,o,i){void 0===n&&(n=0);var a=z(t.naturalWidth,t.naturalHeight,n),s=_(function(e,t,n){var r=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return n.height>n.width?n.height/(e.height*r):n.width/(e.width*r)}(e,t,r),o,i),c=r.height>r.width?r.height/e.height:r.width/e.width;return{crop:{x:((a.width-e.width)/2-e.x)*c,y:((a.height-e.height)/2-e.y)*c},zoom:s}}function L(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function z(e,t,n){var r=n*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 _(e,t,n){return Math.min(Math.max(e,t),n)}function A(){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 T=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=a().createRef(),n.videoRef=a().createRef(),n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc="undefined"!=typeof document?document:null,n.currentWindow="undefined"!=typeof window?window:null,n.resizeObserver=null,n.state={cropSize:null,hasWheelJustStarted:!1},n.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&n.containerRef){var e=!0;n.resizeObserver=new window.ResizeObserver((function(t){e?e=!1:n.computeSizes()})),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturemove",n.onGestureMove),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var e=n.computeSizes();e&&(n.emitCropData(),n.setInitialCrop(e)),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(e){if(n.props.initialCroppedAreaPercentages){var t=D(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom),r=t.crop,o=t.zoom;n.props.onCropChange(r),n.props.onZoomChange&&n.props.onZoomChange(o)}else if(n.props.initialCroppedAreaPixels){var i=k(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom);r=i.crop,o=i.zoom;n.props.onCropChange(r),n.props.onZoomChange&&n.props.onZoomChange(o)}},n.computeSizes=function(){var e,t,r,o,i,a,s=n.imageRef.current||n.videoRef.current;if(s&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect();var c=n.containerRect.width/n.containerRect.height,u=(null===(e=n.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,l=(null===(r=n.imageRef.current)||void 0===r?void 0:r.naturalHeight)||(null===(o=n.videoRef.current)||void 0===o?void 0:o.videoHeight)||0,h=u/l,d=void 0;if(s.offsetWidth<u||s.offsetHeight<l)switch(n.props.objectFit){default:case"contain":d=c>h?{width:n.containerRect.height*h,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/h};break;case"horizontal-cover":d={width:n.containerRect.width,height:n.containerRect.width/h};break;case"vertical-cover":d={width:n.containerRect.height*h,height:n.containerRect.height};break;case"auto-cover":d=u>l?{width:n.containerRect.width,height:n.containerRect.width/h}:{width:n.containerRect.height*h,height:n.containerRect.height}}else d={width:s.offsetWidth,height:s.offsetHeight};n.mediaSize=y(y({},d),{naturalWidth:u,naturalHeight:l}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var p=n.props.cropSize?n.props.cropSize:C(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(null===(i=n.state.cropSize)||void 0===i?void 0:i.height)===p.height&&(null===(a=n.state.cropSize)||void 0===a?void 0:a.width)===p.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(p),n.setState({cropSize:p},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(p),p}},n.onMouseDown=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.onDragStart(t.getMousePoint(e)))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onTouchStart=function(e){n.currentDoc&&(n.isTouching=!0,n.props.onTouchRequest&&!n.props.onTouchRequest(e)||(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0]))))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onGestureStart=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureMove),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureMove=function(e){if(e.preventDefault(),!n.isTouching){var r=t.getMousePoint(e),o=n.gestureZoomStart-1+e.scale;if(n.setNewZoom(o,r,{shouldUpdatePosition:!0}),n.props.onRotationChange){var i=n.gestureRotationStart+e.rotation;n.props.onRotationChange(i)}}},n.onGestureEnd=function(e){n.cleanEvents()},n.onDragStart=function(e){var t,r,o=e.x,i=e.y;n.dragStartPosition={x:o,y:i},n.dragStartCrop=y({},n.props.crop),null===(r=(t=n.props).onInteractionStart)||void 0===r||r.call(t)},n.onDrag=function(e){var t=e.x,r=e.y;n.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame((function(){if(n.state.cropSize&&void 0!==t&&void 0!==r){var e=t-n.dragStartPosition.x,o=r-n.dragStartPosition.y,i={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+o},a=n.props.restrictPosition?x(i,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):i;n.props.onCropChange(a)}})))},n.onDragStopped=function(){var e,t;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){if(n.currentWindow&&(!n.props.onWheelRequest||n.props.onWheelRequest(e))){e.preventDefault();var r=t.getMousePoint(e),o=w()(e).pixelY,i=n.props.zoom-o*n.props.zoomSpeed/200;n.setNewZoom(i,r,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout((function(){return n.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)}},n.getPointOnContainer=function(e){var t=e.x,r=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(t-n.containerRect.left),y:n.containerRect.height/2-(r-n.containerRect.top)}},n.getPointOnMedia=function(e){var t=e.x,r=e.y,o=n.props,i=o.crop,a=o.zoom;return{x:(t+i.x)/a,y:(r+i.y)/a}},n.setNewZoom=function(e,t,r){var o=(void 0===r?{}:r).shouldUpdatePosition,i=void 0===o||o;if(n.state.cropSize&&n.props.onZoomChange){var a=_(e,n.props.minZoom,n.props.maxZoom);if(i){var s=n.getPointOnContainer(t),c=n.getPointOnMedia(s),u={x:c.x*a-s.x,y:c.y*a-s.y},l=n.props.restrictPosition?x(u,n.mediaSize,n.state.cropSize,a,n.props.rotation):u;n.props.onCropChange(l)}n.props.onZoomChange(a)}},n.getCropData=function(){return n.state.cropSize?P(n.props.restrictPosition?x(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,r),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,r)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,r)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var e=n.props.restrictPosition?x(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(e),n.emitCropData()}},n}return function(e,t){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(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.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){var t,n,r,o,i,a,s,c,u;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(r=e.cropSize)||void 0===r?void 0:r.width)!==(null===(o=this.props.cropSize)||void 0===o?void 0:o.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())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=E(n,r),this.lastPinchRotation=M(n,r),this.onDragStart(L(n,r))},t.prototype.onPinchMove=function(e){var n=this;if(this.currentDoc&&this.currentWindow){var r=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]),i=L(r,o);this.onDrag(i),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame((function(){var e=E(r,o),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,i,{shouldUpdatePosition:!1}),n.lastPinchDistance=e;var a=M(r,o),s=n.props.rotation+(a-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(s),n.lastPinchRotation=a}))}},t.prototype.render=function(){var e=this,t=this.props,n=t.image,r=t.video,o=t.mediaProps,i=t.transform,s=t.crop,c=s.x,u=s.y,l=t.rotation,h=t.zoom,d=t.cropShape,p=t.showGrid,f=t.style,m=f.containerStyle,v=f.cropAreaStyle,g=f.mediaStyle,b=t.classes,w=b.containerClassName,C=b.cropAreaClassName,x=b.mediaClassName,S=t.objectFit;return a().createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:m,className:A("reactEasyCrop_Container",w)},n?a().createElement("img",y({alt:"",className:A("reactEasyCrop_Image","contain"===S&&"reactEasyCrop_Contain","horizontal-cover"===S&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===S&&"reactEasyCrop_Cover_Vertical","auto-cover"===S&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),x)},o,{src:n,ref:this.imageRef,style:y(y({},g),{transform:i||"translate(".concat(c,"px, ").concat(u,"px) rotate(").concat(l,"deg) scale(").concat(h,")")}),onLoad:this.onMediaLoad})):r&&a().createElement("video",y({autoPlay:!0,loop:!0,muted:!0,className:A("reactEasyCrop_Video","contain"===S&&"reactEasyCrop_Contain","horizontal-cover"===S&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===S&&"reactEasyCrop_Cover_Vertical","auto-cover"===S&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),x)},o,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:y(y({},g),{transform:i||"translate(".concat(c,"px, ").concat(u,"px) rotate(").concat(l,"deg) scale(").concat(h,")")}),controls:!1}),(Array.isArray(r)?r:[{src:r}]).map((function(e){return a().createElement("source",y({key:e.src},e))}))),this.state.cropSize&&a().createElement("div",{style:y(y({},v),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:A("reactEasyCrop_CropArea","round"===d&&"reactEasyCrop_CropAreaRound",p&&"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}(a().Component),N=n(24378),Z=n(18790),j=n(87807),B=n(60795),I=n(17079),F=n(84875),H=n.n(F),W=n(14402),G=n(50631),U=n.n(G),X=n(26230),Y=n(67725),$=n(14797),V=n(25641),K=i.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0});function q(e,t,n){return(e-t)/(n-t)}function J(e,t,n,r){var o=q(t,n,r),i={};switch(e){case"rtl":i.right="".concat(100*o,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*o,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*o,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*o,"%"),i.transform="translateX(-50%)"}return i}function Q(e,t){return Array.isArray(e)?e[t]:e}var ee=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"];var te=i.forwardRef((function(e,t){var n,r,o=e.prefixCls,a=e.value,s=e.valueIndex,c=e.onStartMove,u=e.style,l=e.render,h=e.dragging,d=e.onOffsetChange,p=(0,Y.Z)(e,ee),f=i.useContext(K),m=f.min,v=f.max,g=f.direction,y=f.disabled,b=f.range,w=f.tabIndex,C=f.ariaLabelForHandle,x=f.ariaLabelledByForHandle,S=f.ariaValueTextFormatterForHandle,E="".concat(o,"-handle"),M=function(e){y||c(e,s)},P=J(g,a,m,v),R=i.createElement("div",(0,B.Z)({ref:t,className:H()(E,(n={},(0,j.Z)(n,"".concat(E,"-").concat(s+1),b),(0,j.Z)(n,"".concat(E,"-dragging"),h),n)),style:(0,$.Z)((0,$.Z)({},P),u),onMouseDown:M,onTouchStart:M,onKeyDown:function(e){if(!y){var t=null;switch(e.which||e.keyCode){case V.Z.LEFT:t="ltr"===g||"btt"===g?-1:1;break;case V.Z.RIGHT:t="ltr"===g||"btt"===g?1:-1;break;case V.Z.UP:t="ttb"!==g?1:-1;break;case V.Z.DOWN:t="ttb"!==g?-1:1;break;case V.Z.HOME:t="min";break;case V.Z.END:t="max";break;case V.Z.PAGE_UP:t=2;break;case V.Z.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),d(t,s))}},tabIndex:y?null:Q(w,s),role:"slider","aria-valuemin":m,"aria-valuemax":v,"aria-valuenow":a,"aria-disabled":y,"aria-label":Q(C,s),"aria-labelledby":Q(x,s),"aria-valuetext":null===(r=Q(S,s))||void 0===r?void 0:r(a)},p));return l&&(R=l(R,{index:s,prefixCls:o,value:a,dragging:h})),R})),ne=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"];var re=i.forwardRef((function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,a=e.onOffsetChange,s=e.values,c=e.handleRender,u=e.draggingIndex,l=(0,Y.Z)(e,ne),h=i.useRef({});return i.useImperativeHandle(t,(function(){return{focus:function(e){var t;null===(t=h.current[e])||void 0===t||t.focus()}}})),i.createElement(i.Fragment,null,s.map((function(e,t){return i.createElement(te,(0,B.Z)({ref:function(e){e?h.current[t]=e:delete h.current[t]},dragging:u===t,prefixCls:n,style:Q(r,t),key:t,value:e,valueIndex:t,onStartMove:o,onOffsetChange:a,render:c},l))})))}));function oe(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function ie(e){var t=e.prefixCls,n=e.style,r=e.start,o=e.end,a=e.index,s=e.onStartMove,c=i.useContext(K),u=c.direction,l=c.min,h=c.max,d=c.disabled,p=c.range,f="".concat(t,"-track"),m=q(r,l,h),v=q(o,l,h),g=function(e){!d&&s&&s(e,-1)},y={};switch(u){case"rtl":y.right="".concat(100*m,"%"),y.width="".concat(100*v-100*m,"%");break;case"btt":y.bottom="".concat(100*m,"%"),y.height="".concat(100*v-100*m,"%");break;case"ttb":y.top="".concat(100*m,"%"),y.height="".concat(100*v-100*m,"%");break;default:y.left="".concat(100*m,"%"),y.width="".concat(100*v-100*m,"%")}return i.createElement("div",{className:H()(f,p&&"".concat(f,"-").concat(a+1)),style:(0,$.Z)((0,$.Z)({},y),n),onMouseDown:g,onTouchStart:g})}function ae(e){var t=e.prefixCls,n=e.style,r=e.values,o=e.startPoint,a=e.onStartMove,s=i.useContext(K),c=s.included,u=s.range,l=s.min,h=i.useMemo((function(){if(!u){if(0===r.length)return[];var e=null!=o?o:l,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],i=0;i<r.length-1;i+=1)n.push({start:r[i],end:r[i+1]});return n}),[r,u,o,l]);return c?h.map((function(e,r){var o=e.start,s=e.end;return i.createElement(ie,{index:r,prefixCls:t,style:Q(n,r),start:o,end:s,key:r,onStartMove:a})})):null}function se(e){var t=e.prefixCls,n=e.style,r=e.children,o=e.value,a=e.onClick,s=i.useContext(K),c=s.min,u=s.max,l=s.direction,h=s.includedStart,d=s.includedEnd,p=s.included,f="".concat(t,"-text"),m=J(l,o,c,u);return i.createElement("span",{className:H()(f,(0,j.Z)({},"".concat(f,"-active"),p&&h<=o&&o<=d)),style:(0,$.Z)((0,$.Z)({},m),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){a(o)}},r)}function ce(e){var t=e.prefixCls,n=e.marks,r=e.onClick,o="".concat(t,"-mark");return n.length?i.createElement("div",{className:o},n.map((function(e){var t=e.value,n=e.style,a=e.label;return i.createElement(se,{key:t,prefixCls:o,style:n,value:t,onClick:r},a)}))):null}function ue(e){var t=e.prefixCls,n=e.value,r=e.style,o=e.activeStyle,a=i.useContext(K),s=a.min,c=a.max,u=a.direction,l=a.included,h=a.includedStart,d=a.includedEnd,p="".concat(t,"-dot"),f=l&&h<=n&&n<=d,m=(0,$.Z)((0,$.Z)({},J(u,n,s,c)),"function"==typeof r?r(n):r);return f&&(m=(0,$.Z)((0,$.Z)({},m),"function"==typeof o?o(n):o)),i.createElement("span",{className:H()(p,(0,j.Z)({},"".concat(p,"-active"),f)),style:m})}function le(e){var t=e.prefixCls,n=e.marks,r=e.dots,o=e.style,a=e.activeStyle,s=i.useContext(K),c=s.min,u=s.max,l=s.step,h=i.useMemo((function(){var e=new Set;if(n.forEach((function(t){e.add(t.value)})),r&&null!==l)for(var t=c;t<=u;)e.add(t),t+=l;return Array.from(e)}),[c,u,l,r,n]);return i.createElement("div",{className:"".concat(t,"-step")},h.map((function(e){return i.createElement(ue,{prefixCls:t,key:e,value:e,style:o,activeStyle:a})})))}n(62005);var he=i.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-slider":r,a=e.className,s=e.style,c=e.disabled,u=void 0!==c&&c,l=e.autoFocus,h=e.onFocus,d=e.onBlur,p=e.min,f=void 0===p?0:p,m=e.max,v=void 0===m?100:m,g=e.step,y=void 0===g?1:g,b=e.value,w=e.defaultValue,C=e.range,x=e.count,S=e.onChange,E=e.onBeforeChange,M=e.onAfterChange,P=e.allowCross,R=void 0===P||P,O=e.pushable,D=void 0!==O&&O,k=e.draggableTrack,L=e.reverse,z=e.vertical,_=e.included,A=void 0===_||_,T=e.startPoint,N=e.trackStyle,B=e.handleStyle,F=e.railStyle,G=e.dotStyle,Y=e.activeDotStyle,$=e.marks,V=e.dots,q=e.handleRender,J=e.tabIndex,Q=void 0===J?0:J,ee=e.ariaLabelForHandle,te=e.ariaLabelledByForHandle,ne=e.ariaValueTextFormatterForHandle,ie=i.useRef(),se=i.useRef(),ue=i.useMemo((function(){return z?L?"ttb":"btt":L?"rtl":"ltr"}),[L,z]),he=i.useMemo((function(){return isFinite(f)?f:0}),[f]),de=i.useMemo((function(){return isFinite(v)?v:100}),[v]),pe=i.useMemo((function(){return null!==y&&y<=0?1:y}),[y]),fe=i.useMemo((function(){return!0===D?pe:D>=0&&D}),[D,pe]),me=i.useMemo((function(){return Object.keys($||{}).map((function(e){var t=$[e],n={value:Number(e)};return t&&"object"===(0,Z.Z)(t)&&!i.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n})).filter((function(e){var t=e.label;return t||"number"==typeof t})).sort((function(e,t){return e.value-t.value}))}),[$]),ve=function(e,t,n,r,o,a){var s=i.useCallback((function(n){var r=isFinite(n)?n:e;return r=Math.min(t,n),Math.max(e,r)}),[e,t]),c=i.useCallback((function(r){if(null!==n){var o=e+Math.round((s(r)-e)/n)*n,i=function(e){return(String(e).split(".")[1]||"").length},a=Math.max(i(n),i(t),i(e)),c=Number(o.toFixed(a));return e<=c&&c<=t?c:null}return null}),[n,e,t,s]),u=i.useCallback((function(o){var i=s(o),a=r.map((function(e){return e.value}));null!==n&&a.push(c(o)),a.push(e,t);var u=a[0],l=t-e;return a.forEach((function(e){var t=Math.abs(i-e);t<=l&&(u=e,l=t)})),u}),[e,t,r,n,s,c]),l=function o(i,a,s){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof a){var l,h=i[s],d=h+a,p=[];r.forEach((function(e){p.push(e.value)})),p.push(e,t),p.push(c(h));var f=a>0?1:-1;"unit"===u?p.push(c(h+f*n)):p.push(c(d)),p=p.filter((function(e){return null!==e})).filter((function(e){return a<0?e<=h:e>=h})),"unit"===u&&(p=p.filter((function(e){return e!==h})));var m="unit"===u?h:d;l=p[0];var v=Math.abs(l-m);if(p.forEach((function(e){var t=Math.abs(e-m);t<v&&(l=e,v=t)})),void 0===l)return a<0?e:t;if("dist"===u)return l;if(Math.abs(a)>1){var g=(0,W.Z)(i);return g[s]=l,o(g,a-f,s,u)}return l}return"min"===a?e:"max"===a?t:void 0},h=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=e[n],i=l(e,t,n,r);return{value:i,changed:i!==o}},d=function(e){return null===a&&0===e||"number"==typeof a&&e<a};return[u,function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",i=e.map(u),s=i[n],c=l(i,t,n,r);if(i[n]=c,!1===o){var p=a||0;n>0&&i[n-1]!==s&&(i[n]=Math.max(i[n],i[n-1]+p)),n<i.length-1&&i[n+1]!==s&&(i[n]=Math.min(i[n],i[n+1]-p))}else if("number"==typeof a||null===a){for(var f=n+1;f<i.length;f+=1)for(var m=!0;d(i[f]-i[f-1])&&m;){var v=h(i,1,f);i[f]=v.value,m=v.changed}for(var g=n;g>0;g-=1)for(var y=!0;d(i[g]-i[g-1])&&y;){var b=h(i,-1,g-1);i[g-1]=b.value,y=b.changed}for(var w=i.length-1;w>0;w-=1)for(var C=!0;d(i[w]-i[w-1])&&C;){var x=h(i,-1,w-1);i[w-1]=x.value,C=x.changed}for(var S=0;S<i.length-1;S+=1)for(var E=!0;d(i[S+1]-i[S])&&E;){var M=h(i,1,S+1);i[S+1]=M.value,E=M.changed}}return{value:i[n],values:i}}]}(he,de,pe,me,R,fe),ge=(0,I.Z)(ve,2),ye=ge[0],be=ge[1],we=(0,X.Z)(w,{value:b}),Ce=(0,I.Z)(we,2),xe=Ce[0],Se=Ce[1],Ee=i.useMemo((function(){var e=null==xe?[]:Array.isArray(xe)?xe:[xe],t=(0,I.Z)(e,1)[0],n=null===xe?[]:[void 0===t?he:t];if(C){if(n=(0,W.Z)(e),x||void 0===xe){var r=x>=0?x+1:2;for(n=n.slice(0,r);n.length<r;){var o;n.push(null!==(o=n[n.length-1])&&void 0!==o?o:he)}}n.sort((function(e,t){return e-t}))}return n.forEach((function(e,t){n[t]=ye(e)})),n}),[xe,C,he,x,ye]),Me=i.useRef(Ee);Me.current=Ee;var Pe=function(e){return C?e:e[0]},Re=function(e){var t=(0,W.Z)(e).sort((function(e,t){return e-t}));S&&!U()(t,Me.current)&&S(Pe(t)),Se(t)},Oe=function(e){if(!u){var t=0,n=de-he;Ee.forEach((function(r,o){var i=Math.abs(e-r);i<=n&&(n=i,t=o)}));var r=(0,W.Z)(Ee);r[t]=e,C&&!Ee.length&&void 0===x&&r.push(e),null==E||E(Pe(r)),Re(r),null==M||M(Pe(r))}},De=i.useState(null),ke=(0,I.Z)(De,2),Le=ke[0],ze=ke[1];i.useEffect((function(){if(null!==Le){var e=Ee.indexOf(Le);e>=0&&ie.current.focus(e)}ze(null)}),[Le]);var _e=i.useMemo((function(){return(!k||null!==pe)&&k}),[k,pe]),Ae=function(e,t,n,r,o,a,s,c,u){var l=i.useState(null),h=(0,I.Z)(l,2),d=h[0],p=h[1],f=i.useState(-1),m=(0,I.Z)(f,2),v=m[0],g=m[1],y=i.useState(n),b=(0,I.Z)(y,2),w=b[0],C=b[1],x=i.useState(n),S=(0,I.Z)(x,2),E=S[0],M=S[1],P=i.useRef(null),R=i.useRef(null);i.useEffect((function(){-1===v&&C(n)}),[n,v]),i.useEffect((function(){return function(){document.removeEventListener("mousemove",P.current),document.removeEventListener("mouseup",R.current),document.removeEventListener("touchmove",P.current),document.removeEventListener("touchend",R.current)}}),[]);var O=function(e,t){w.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&p(t),C(e),s(e))},D=function(e,t){if(-1===e){var n=E[0],i=E[E.length-1],s=r-n,c=o-i,l=t*(o-r);l=Math.max(l,s),l=Math.min(l,c);var h=a(n+l);l=h-n;var d=E.map((function(e){return e+l}));O(d)}else{var p=(o-r)*t,f=(0,W.Z)(w);f[e]=E[e];var m=u(f,p,e,"dist");O(m.values,m.value)}},k=i.useRef(D);k.current=D;var L=i.useMemo((function(){var e=(0,W.Z)(n).sort((function(e,t){return e-t})),t=(0,W.Z)(w).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?w:n}),[n,w]);return[v,d,L,function(r,o){r.stopPropagation();var i=n[o];g(o),p(i),M(n);var a=oe(r),s=a.pageX,u=a.pageY,l=function(n){n.preventDefault();var r,i=oe(n),a=i.pageX,c=i.pageY,l=a-s,h=c-u,d=e.current.getBoundingClientRect(),p=d.width,f=d.height;switch(t){case"btt":r=-h/f;break;case"ttb":r=h/f;break;case"rtl":r=-l/p;break;default:r=l/p}k.current(o,r)},h=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",l),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",l),P.current=null,R.current=null,g(-1),c()};document.addEventListener("mouseup",h),document.addEventListener("mousemove",l),document.addEventListener("touchend",h),document.addEventListener("touchmove",l),P.current=l,R.current=h}]}(se,ue,Ee,he,de,ye,Re,(function(){null==M||M(Pe(Me.current))}),be),Te=(0,I.Z)(Ae,4),Ne=Te[0],Ze=Te[1],je=Te[2],Be=Te[3],Ie=function(e,t){Be(e,t),null==E||E(Pe(Me.current))},Fe=-1!==Ne;i.useEffect((function(){if(!Fe){var e=Ee.lastIndexOf(Ze);ie.current.focus(e)}}),[Fe]);var He=i.useMemo((function(){return(0,W.Z)(je).sort((function(e,t){return e-t}))}),[je]),We=i.useMemo((function(){return C?[He[0],He[He.length-1]]:[he,He[0]]}),[He,C,he]),Ge=(0,I.Z)(We,2),Ue=Ge[0],Xe=Ge[1];i.useImperativeHandle(t,(function(){return{focus:function(){ie.current.focus(0)},blur:function(){var e=document.activeElement;se.current.contains(e)&&(null==e||e.blur())}}})),i.useEffect((function(){l&&ie.current.focus(0)}),[]);var Ye=i.useMemo((function(){return{min:he,max:de,direction:ue,disabled:u,step:pe,included:A,includedStart:Ue,includedEnd:Xe,range:C,tabIndex:Q,ariaLabelForHandle:ee,ariaLabelledByForHandle:te,ariaValueTextFormatterForHandle:ne}}),[he,de,ue,u,pe,A,Ue,Xe,C,Q,ee,te,ne]);return i.createElement(K.Provider,{value:Ye},i.createElement("div",{ref:se,className:H()(o,a,(n={},(0,j.Z)(n,"".concat(o,"-disabled"),u),(0,j.Z)(n,"".concat(o,"-vertical"),z),(0,j.Z)(n,"".concat(o,"-horizontal"),!z),(0,j.Z)(n,"".concat(o,"-with-marks"),me.length),n)),style:s,onMouseDown:function(e){e.preventDefault();var t,n=se.current.getBoundingClientRect(),r=n.width,o=n.height,i=n.left,a=n.top,s=n.bottom,c=n.right,u=e.clientX,l=e.clientY;switch(ue){case"btt":t=(s-l)/o;break;case"ttb":t=(l-a)/o;break;case"rtl":t=(c-u)/r;break;default:t=(u-i)/r}Oe(ye(he+t*(de-he)))}},i.createElement("div",{className:"".concat(o,"-rail"),style:F}),i.createElement(ae,{prefixCls:o,style:N,values:He,startPoint:T,onStartMove:_e?Ie:null}),i.createElement(le,{prefixCls:o,marks:me,dots:V,style:G,activeStyle:Y}),i.createElement(re,{ref:ie,prefixCls:o,style:B,values:je,draggingIndex:Ne,onStartMove:Ie,onOffsetChange:function(e,t){if(!u){var n=be(Ee,e,t);null==E||E(Pe(Ee)),Re(n.values),null==M||M(Pe(n.values)),ze(n.value)}},onFocus:h,onBlur:d,handleRender:q}),i.createElement(ce,{prefixCls:o,marks:me,onClick:Oe})))}));var de=he,pe=n(82259),fe=n(4202),me=n(33951),ve=n(15367),ge=i.forwardRef((function(e,t){var n=e.open,r=(0,i.useRef)(null),o=(0,i.useRef)(null);function a(){fe.Z.cancel(o.current),o.current=null}return i.useEffect((function(){return n?o.current=(0,fe.Z)((function(){var e;null===(e=r.current)||void 0===e||e.forcePopupAlign(),o.current=null})):a(),a}),[n,e.title]),i.createElement(ve.Z,(0,B.Z)({ref:(0,me.sQ)(r,t)},e))})),ye=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},be=i.forwardRef((function(e,t){var n=i.useContext(pe.E_),r=n.getPrefixCls,o=n.direction,a=n.getPopupContainer,s=i.useState({}),c=(0,I.Z)(s,2),u=c[0],l=c[1],h=function(e,t){l((function(n){return(0,B.Z)((0,B.Z)({},n),(0,j.Z)({},e,t))}))},d=function(e,t){return e||(t?"rtl"===o?"left":"right":"top")},p=e.prefixCls,f=e.range,m=e.className,v=ye(e,["prefixCls","range","className"]),g=r("slider",p),y=H()(m,(0,j.Z)({},"".concat(g,"-rtl"),"rtl"===o));"rtl"!==o||v.vertical||(v.reverse=!v.reverse);var b=i.useMemo((function(){return f?"object"===(0,Z.Z)(f)?[!0,f.draggableTrack]:[!0,!1]:[!1]}),[f]),w=(0,I.Z)(b,2),C=w[0],x=w[1];return i.createElement(de,(0,B.Z)({},v,{step:v.step,range:C,draggableTrack:x,className:y,ref:t,prefixCls:g,handleRender:function(t,n){var o,s=n.index,c=n.dragging,l=r(),p=e.tooltip,f=void 0===p?{}:p,m=e.vertical,v=(0,B.Z)({formatter:null!==(o=e.tipFormatter)&&void 0!==o?o:function(e){return"number"==typeof e?e.toString():""},open:e.tooltipVisible,placement:e.tooltipPlacement,getPopupContainer:e.getTooltipPopupContainer},f),y=v.open,b=v.placement,w=v.getPopupContainer,C=v.prefixCls,x=v.formatter,S=!!x&&(u[s]||c),E=y||void 0===y&&S,M=(0,B.Z)((0,B.Z)({},t.props),{onMouseEnter:function(){return h(s,!0)},onMouseLeave:function(){return h(s,!1)}}),P=r("tooltip",C);return i.createElement(ge,{prefixCls:P,title:x?x(n.value):"",open:E,placement:d(b,m),transitionName:"".concat(l,"-zoom-down"),key:s,overlayClassName:"".concat(g,"-tooltip"),getPopupContainer:w||a},i.cloneElement(t,M))}}))}));var we=be;const Ce="img-crop",xe=.1,Se=.01,Ee=(0,i.forwardRef)(((e,t)=>{const{cropperRef:n,zoomSlider:r,rotationSlider:a,aspectSlider:s,showReset:c,resetBtnText:u,modalImage:l,aspect:h,minZoom:d,maxZoom:p,cropShape:f,showGrid:m,cropperProps:v}=e,[g,y]=(0,i.useState)(1),[b,w]=(0,i.useState)(0),[C,x]=(0,i.useState)(h),S=1!==g||0!==b||C!==h,E=()=>{y(1),w(0),x(h)},[M,P]=(0,i.useState)({x:0,y:0}),R=(0,i.useRef)({width:0,height:0,x:0,y:0}),O=(0,i.useCallback)(((e,t)=>{R.current=t}),[]);(0,i.useImperativeHandle)(t,(()=>({rotation:b,cropPixelsRef:R,onReset:E})));const D="[display:flex] [align-items:center] [width:60%] [margin-inline:auto]",k="[display:flex] [align-items:center] [justify-content:center] [height:32px] [width:32px] [background:transparent] [border:0] [font-family:inherit] [font-size:18px] [cursor:pointer] disabled:[opacity:20%] disabled:[cursor:default]",L="[flex:1]";return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(T,Object.assign({},v,{ref:n,image:l,crop:M,zoom:g,rotation:b,aspect:C,minZoom:d,maxZoom:p,zoomWithScroll:r,cropShape:f,showGrid:m,onCropChange:P,onZoomChange:y,onRotationChange:w,onCropComplete:O,classes:{containerClassName:`${Ce}-container ![position:relative] [width:100%] [height:40vh] [&~section:first-of-type]:[margin-top:16px] [&~section:last-of-type]:[margin-bottom:16px]`,mediaClassName:`${Ce}-media`}})),r&&(0,o.jsxs)("section",Object.assign({className:`${Ce}-control ${Ce}-control-zoom ${D}`},{children:[(0,o.jsx)("button",Object.assign({className:k,onClick:()=>y(g-xe),disabled:g-xe<d},{children:"-"})),(0,o.jsx)(we,{className:L,min:d,max:p,step:xe,value:g,onChange:y}),(0,o.jsx)("button",Object.assign({className:k,onClick:()=>y(g+xe),disabled:g+xe>p},{children:"+"}))]})),a&&(0,o.jsxs)("section",Object.assign({className:`${Ce}-control ${Ce}-control-rotation ${D}`},{children:[(0,o.jsx)("button",Object.assign({className:`${k} [font-size:16px]`,onClick:()=>w(b-1),disabled:-180===b},{children:"↺"})),(0,o.jsx)(we,{className:L,min:-180,max:180,step:1,value:b,onChange:w}),(0,o.jsx)("button",Object.assign({className:`${k} [font-size:16px]`,onClick:()=>w(b+1),disabled:180===b},{children:"↻"}))]})),s&&(0,o.jsxs)("section",Object.assign({className:`${Ce}-control ${Ce}-control-aspect ${D}`},{children:[(0,o.jsx)("button",Object.assign({className:k,onClick:()=>x(C-Se),disabled:C-Se<.5},{children:"↕️"})),(0,o.jsx)(we,{className:L,min:.5,max:2,step:Se,value:C,onChange:x}),(0,o.jsx)("button",Object.assign({className:k,onClick:()=>x(C+Se),disabled:C+Se>2},{children:"↔️"}))]})),c&&(r||a||s)&&(0,o.jsx)(N.Z,Object.assign({className:"[bottom:20px] [position:absolute]",style:S?{}:{opacity:.3,pointerEvents:"none"},onClick:E},{children:u}))]})}));var Me=(0,i.memo)(Ee);!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.visible{visibility:visible}.grid{display:grid}.\\!\\[position\\:relative\\]{position:relative!important}.\\[align-items\\:center\\]{align-items:center}.\\[background\\:transparent\\]{background:transparent}.\\[border\\:0\\]{border:0}.\\[bottom\\:20px\\]{bottom:20px}.\\[cursor\\:pointer\\]{cursor:pointer}.\\[display\\:flex\\]{display:flex}.\\[flex\\:1\\]{flex:1}.\\[font-family\\:inherit\\]{font-family:inherit}.\\[font-size\\:16px\\]{font-size:16px}.\\[font-size\\:18px\\]{font-size:18px}.\\[height\\:32px\\]{height:32px}.\\[height\\:40vh\\]{height:40vh}.\\[justify-content\\:center\\]{justify-content:center}.\\[margin-inline\\:auto\\]{margin-inline:auto}.\\[position\\:absolute\\]{position:absolute}.\\[width\\:100\\%\\]{width:100%}.\\[width\\:32px\\]{width:32px}.\\[width\\:60\\%\\]{width:60%}.disabled\\:\\[cursor\\:default\\]:disabled{cursor:default}.disabled\\:\\[opacity\\:20\\%\\]:disabled{opacity:20%}.\\[\\&\\~section\\:first-of-type\\]\\:\\[margin-top\\:16px\\]~section:first-of-type{margin-top:16px}.\\[\\&\\~section\\:last-of-type\\]\\:\\[margin-bottom\\:16px\\]~section:last-of-type{margin-bottom:16px}");const Pe=-1===u("4.24.10","4.23.0")?"visible":"open",Re=(e,t,n)=>t in e?(console.error(`\`${t}\` is deprecated, please use \`${n}\` instead`),e[t]):e[n],Oe=(0,i.forwardRef)(((e,t)=>{const{quality:n=.4,fillColor:a="white",zoomSlider:u=!0,rotationSlider:l=!1,aspectSlider:h=!1,showReset:d=!1,resetText:p,aspect:f=1,minZoom:m=1,maxZoom:v=3,cropShape:g="rect",showGrid:y=!1,cropperProps:b,modalClassName:w,modalTitle:C,modalWidth:x,modalOk:S,modalCancel:E,onModalOk:M,onModalCancel:P,modalProps:R,beforeCrop:O,children:D}=e,k=Re(e,"zoom","zoomSlider")||!0,L=Re(e,"rotate","rotationSlider")||!1,z=Re(e,"shape","cropShape")||"rect",_=Re(e,"grid","showGrid")||!1;"onUploadFail"in e&&console.error("`onUploadFail` is removed, because the only way it is called, is when the file is rejected by beforeUpload"),Re(e,"modalMaskTransitionName","modalProps.maskTransitionName"),Re(e,"modalTransitionName","modalProps.transitionName");const A=(0,i.useRef)({});A.current.onModalOk=M,A.current.onModalCancel=P,A.current.beforeCrop=O;const T=(0,i.useRef)(null),N=(0,i.useCallback)((e=>{var t;const n=document.createElement("canvas"),r=n.getContext("2d"),o=((null===(t=null==e?void 0:e.getRootNode)||void 0===t?void 0:t.call(e))||document).querySelector(`.${Ce}-media`),{width:i,height:s,x:c,y:u}=T.current.cropPixelsRef.current;if(L&&0!==T.current.rotation){const{naturalWidth:e,naturalHeight:t}=o,l=T.current.rotation*(Math.PI/180),h=Math.abs(Math.sin(l)),d=Math.abs(Math.cos(l)),p=e*d+t*h,f=t*d+e*h;n.width=p,n.height=f,r.fillStyle=a,r.fillRect(0,0,p,f);const m=p/2,v=f/2;r.translate(m,v),r.rotate(l),r.translate(-m,-v);const g=(p-e)/2,y=(f-t)/2;r.drawImage(o,0,0,e,t,g,y,e,t);const b=r.getImageData(0,0,p,f);n.width=i,n.height=s,r.putImageData(b,-c,-u)}else n.width=i,n.height=s,r.fillStyle=a,r.fillRect(0,0,i,s),r.drawImage(o,c,u,i,s,0,0,i,s);return n}),[a,L]),[Z,j]=(0,i.useState)(""),B=(0,i.useRef)(),I=(0,i.useRef)(),F=(0,i.useMemo)((()=>{const e=Array.isArray(D)?D[0]:D,t=e.props,{beforeUpload:o,accept:i}=t,a=(0,r._T)(t,["beforeUpload","accept"]);return Object.assign(Object.assign({},e),{props:Object.assign(Object.assign({},a),{accept:i||"image/*",beforeUpload:(e,t)=>new Promise((i=>(0,r.mG)(void 0,void 0,void 0,(function*(){if("function"==typeof A.current.beforeCrop)try{const n=yield A.current.beforeCrop(e,t);if(!0!==n)return i(n)}catch(e){return i(e)}const a=new FileReader;a.addEventListener("load",(()=>{"string"==typeof a.result&&j(a.result)})),a.readAsDataURL(e),B.current=()=>{var e,t;j(""),T.current.onReset(),i(c.Z.LIST_IGNORE),null===(t=(e=A.current).onModalCancel)||void 0===t||t.call(e)},I.current=t=>(0,r.mG)(void 0,void 0,void 0,(function*(){j(""),T.current.onReset();const a=N(t.target),{type:s,name:c,uid:u}=e;a.toBlob((e=>(0,r.mG)(void 0,void 0,void 0,(function*(){var t,n,r,a,l,h;const d=new File([e],c,{type:s});if(Object.assign(d,{uid:u}),"function"!=typeof o)return i(d),void(null===(n=(t=A.current).onModalOk)||void 0===n||n.call(t,d));try{const e=yield o(d,[d]),t=!0===e?d:e;i(t),null===(a=(r=A.current).onModalOk)||void 0===a||a.call(r,t)}catch(e){i(e),null===(h=(l=A.current).onModalOk)||void 0===h||h.call(l,e)}}))),s,n)}))}))))})})}),[D,N,n]),H=(0,i.useMemo)((()=>{const e={};return void 0!==x&&(e.width=x),void 0!==S&&(e.okText=S),void 0!==E&&(e.cancelText=E),e}),[E,S,x]),W=`${Ce}-modal${w?` ${w}`:""}`,G="zh-CN"===("undefined"==typeof window?"":window.navigator.language),U=C||(G?"编辑图片":"Edit image"),X=p||(G?"重置":"Reset");return(0,o.jsxs)(o.Fragment,{children:[F,Z&&(0,o.jsx)(s.Z,Object.assign({},R,H,{[Pe]:!0},{title:U,onCancel:B.current,onOk:I.current,wrapClassName:W,maskClosable:!1,destroyOnClose:!0},{children:(0,o.jsx)(Me,{ref:T,cropperRef:t,zoomSlider:k,rotationSlider:L,aspectSlider:h,showReset:d,resetBtnText:X,modalImage:Z,aspect:f,minZoom:m,maxZoom:v,cropShape:z,showGrid:_,cropperProps:b})}))]})}))},73324:function(e,t,n){"use strict";n(27548),n(31581)},6210:function(e,t,n){e.exports=n(92782)},72906:function(e){"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},73211:function(e){var t,n,r,o,i,a,s,c,u,l,h,d,p,f,m,v=!1;function g(){if(!v){v=!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),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(d=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),l=/Android/i.exec(e),f=/FBAN\/\w+;/i.exec(e),m=/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 b=/(?:Trident\/(\d+.\d+))/.exec(e);a=b?parseFloat(b[1])+4:t,n=g[2]?parseFloat(g[2]):NaN,r=g[3]?parseFloat(g[3]):NaN,(o=g[4]?parseFloat(g[4]):NaN)?(g=/(?:Chrome\/(\d+\.\d+))/.exec(e),i=g&&g[1]?parseFloat(g[1]):NaN):i=NaN}else t=n=r=i=o=NaN;if(y){if(y[1]){var w=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!w||parseFloat(w[1].replace("_","."))}else s=!1;c=!!y[2],u=!!y[3]}else s=c=u=!1}}var y={ie:function(){return g()||t},ieCompatibilityMode:function(){return g()||a>t},ie64:function(){return y.ie()&&h},firefox:function(){return g()||n},opera:function(){return g()||r},webkit:function(){return g()||o},safari:function(){return y.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()||d},mobile:function(){return g()||d||p||l||m},nativeApp:function(){return g()||f},android:function(){return g()||l},ipad:function(){return g()||p}};e.exports=y},16177:function(e,t,n){"use strict";var r,o=n(72906);o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var a=document.createElement("div");a.setAttribute(n,"return;"),i="function"==typeof a[n]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}},92782:function(e,t,n){"use strict";var r=n(73211),o=n(16177);function i(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}i.getEventType=function(){return r.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=i},31688:function(e,t,n){var r=n(45478);function o(e){this.mode=r.MODE_8BIT_BYTE,this.data=e}o.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},e.exports=o},77572:function(e){function t(){this.buffer=new Array,this.length=0}t.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},12538:function(e){e.exports={L:1,M:0,Q:3,H:2}},14382:function(e,t,n){var r=n(4897);function o(e,t){if(null==e.length)throw new Error(e.length+"/"+t);for(var n=0;n<e.length&&0==e[n];)n++;this.num=new Array(e.length-n+t);for(var r=0;r<e.length-n;r++)this.num[r]=e[r+n]}o.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var i=0;i<e.getLength();i++)t[n+i]^=r.gexp(r.glog(this.get(n))+r.glog(e.get(i)));return new o(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=r.glog(this.get(0))-r.glog(e.get(0)),n=new Array(this.getLength()),i=0;i<this.getLength();i++)n[i]=this.get(i);for(i=0;i<e.getLength();i++)n[i]^=r.gexp(r.glog(e.get(i))+t);return new o(n,0).mod(e)}},e.exports=o},46175:function(e,t,n){var r=n(31688),o=n(77515),i=n(77572),a=n(62739),s=n(14382);function c(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var u=c.prototype;u.addData=function(e){var t=new r(e);this.dataList.push(t),this.dataCache=null},u.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]},u.getModuleCount=function(){return this.moduleCount},u.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=o.getRSBlocks(e,this.errorCorrectLevel),n=new i,r=0,s=0;s<t.length;s++)r+=t[s].dataCount;for(s=0;s<this.dataList.length;s++){var c=this.dataList[s];n.put(c.mode,4),n.put(c.getLength(),a.getLengthInBits(c.mode,e)),c.write(n)}if(n.getLengthInBits()<=8*r)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},u.makeImpl=function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[n][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=c.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},u.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(this.modules[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},u.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=a.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},u.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var o=0;o<this.modules.length;o++)for(var i=1*o,a=0;a<this.modules[o].length;a++){var s=1*a;this.modules[o][a]&&(r.beginFill(0,100),r.moveTo(s,i),r.lineTo(s+1,i),r.lineTo(s+1,i+1),r.lineTo(s,i+1),r.endFill())}return r},u.setupTimingPattern=function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},u.setupPositionAdjustPattern=function(){for(var e=a.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var r=e[t],o=e[n];if(null==this.modules[r][o])for(var i=-2;i<=2;i++)for(var s=-2;s<=2;s++)this.modules[r+i][o+s]=-2==i||2==i||-2==s||2==s||0==i&&0==s}},u.setupTypeNumber=function(e){for(var t=a.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!e&&1==(t>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++){r=!e&&1==(t>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},u.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=a.getBCHTypeInfo(n),o=0;o<15;o++){var i=!e&&1==(r>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++){i=!e&&1==(r>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!e},u.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,o=7,i=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var c=0;c<2;c++)if(null==this.modules[r][s-c]){var u=!1;i<e.length&&(u=1==(e[i]>>>o&1)),a.getMask(t,r,s-c)&&(u=!u),this.modules[r][s-c]=u,-1==--o&&(i++,o=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}},c.PAD0=236,c.PAD1=17,c.createData=function(e,t,n){for(var r=o.getRSBlocks(e,t),s=new i,u=0;u<n.length;u++){var l=n[u];s.put(l.mode,4),s.put(l.getLength(),a.getLengthInBits(l.mode,e)),l.write(s)}var h=0;for(u=0;u<r.length;u++)h+=r[u].dataCount;if(s.getLengthInBits()>8*h)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*h+")");for(s.getLengthInBits()+4<=8*h&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*h||(s.put(c.PAD0,8),s.getLengthInBits()>=8*h));)s.put(c.PAD1,8);return c.createBytes(s,r)},c.createBytes=function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),c=new Array(t.length),u=0;u<t.length;u++){var l=t[u].dataCount,h=t[u].totalCount-l;r=Math.max(r,l),o=Math.max(o,h),i[u]=new Array(l);for(var d=0;d<i[u].length;d++)i[u][d]=255&e.buffer[d+n];n+=l;var p=a.getErrorCorrectPolynomial(h),f=new s(i[u],p.getLength()-1).mod(p);c[u]=new Array(p.getLength()-1);for(d=0;d<c[u].length;d++){var m=d+f.getLength()-c[u].length;c[u][d]=m>=0?f.get(m):0}}var v=0;for(d=0;d<t.length;d++)v+=t[d].totalCount;var g=new Array(v),y=0;for(d=0;d<r;d++)for(u=0;u<t.length;u++)d<i[u].length&&(g[y++]=i[u][d]);for(d=0;d<o;d++)for(u=0;u<t.length;u++)d<c[u].length&&(g[y++]=c[u][d]);return g},e.exports=c},77515:function(e,t,n){var r=n(12538);function o(e,t){this.totalCount=e,this.dataCount=t}o.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],o.getRSBlocks=function(e,t){var n=o.getRsBlockTable(e,t);if(null==n)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=n.length/3,i=new Array,a=0;a<r;a++)for(var s=n[3*a+0],c=n[3*a+1],u=n[3*a+2],l=0;l<s;l++)i.push(new o(c,u));return i},o.getRsBlockTable=function(e,t){switch(t){case r.L:return o.RS_BLOCK_TABLE[4*(e-1)+0];case r.M:return o.RS_BLOCK_TABLE[4*(e-1)+1];case r.Q:return o.RS_BLOCK_TABLE[4*(e-1)+2];case r.H:return o.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},e.exports=o},4897:function(e){for(var t={glog:function(e){if(e<1)throw new Error("glog("+e+")");return t.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},n=0;n<8;n++)t.EXP_TABLE[n]=1<<n;for(n=8;n<256;n++)t.EXP_TABLE[n]=t.EXP_TABLE[n-4]^t.EXP_TABLE[n-5]^t.EXP_TABLE[n-6]^t.EXP_TABLE[n-8];for(n=0;n<255;n++)t.LOG_TABLE[t.EXP_TABLE[n]]=n;e.exports=t},45478:function(e){e.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},62739:function(e,t,n){var r=n(45478),o=n(14382),i=n(4897),a=0,s=1,c=2,u=3,l=4,h=5,d=6,p=7,f={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;f.getBCHDigit(t)-f.getBCHDigit(f.G15)>=0;)t^=f.G15<<f.getBCHDigit(t)-f.getBCHDigit(f.G15);return(e<<10|t)^f.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;f.getBCHDigit(t)-f.getBCHDigit(f.G18)>=0;)t^=f.G18<<f.getBCHDigit(t)-f.getBCHDigit(f.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return f.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a:return(t+n)%2==0;case s:return t%2==0;case c:return n%3==0;case u:return(t+n)%3==0;case l:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case h:return t*n%2+t*n%3==0;case d:return(t*n%2+t*n%3)%2==0;case p:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new o([1],0),n=0;n<e;n++)t=t.multiply(new o([1,i.gexp(n)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:case r.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else{if(!(t<41))throw new Error("type:"+t);switch(e){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r++)for(var o=0;o<t;o++){for(var i=0,a=e.isDark(r,o),s=-1;s<=1;s++)if(!(r+s<0||t<=r+s))for(var c=-1;c<=1;c++)o+c<0||t<=o+c||0==s&&0==c||a==e.isDark(r+s,o+c)&&i++;i>5&&(n+=3+i-5)}for(r=0;r<t-1;r++)for(o=0;o<t-1;o++){var u=0;e.isDark(r,o)&&u++,e.isDark(r+1,o)&&u++,e.isDark(r,o+1)&&u++,e.isDark(r+1,o+1)&&u++,0!=u&&4!=u||(n+=3)}for(r=0;r<t;r++)for(o=0;o<t-6;o++)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(o=0;o<t;o++)for(r=0;r<t-6;r++)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);var l=0;for(o=0;o<t;o++)for(r=0;r<t;r++)e.isDark(r,o)&&l++;return n+=10*(Math.abs(100*l/t/t-50)/5)}};e.exports=f},48039:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(n,!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function h(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?p(e):t}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=n(63313),y=(n(40507),n(46175)),b=n(12538);function w(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r<2048?(t+=String.fromCharCode(192|r>>6),t+=String.fromCharCode(128|63&r)):r<55296||r>=57344?(t+=String.fromCharCode(224|r>>12),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r)):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t+=String.fromCharCode(240|r>>18),t+=String.fromCharCode(128|r>>12&63),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|63&r))}return t}var C={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1};function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach((function(e,r){var o=null;e.forEach((function(i,a){if(!i&&null!==o)return n.push("M".concat(o+t," ").concat(r+t,"h").concat(a-o,"v1H").concat(o+t,"z")),void(o=null);if(a!==e.length-1)i&&null===o&&(o=a);else{if(!i)return;null===o?n.push("M".concat(a+t,",").concat(r+t," h1v1H").concat(a+t,"z")):n.push("M".concat(o+t,",").concat(r+t," h").concat(a+1-o,"v1H").concat(o+t,"z"))}}))})),n.join("")}function S(e,t){return e.slice().map((function(e,n){return n<t.y||n>=t.y+t.h?e:e.map((function(e,n){return(n<t.x||n>=t.x+t.w)&&e}))}))}function E(e,t){var n=e.imageSettings,r=e.size,o=e.includeMargin;if(null==n)return null;var i=o?4:0,a=t.length+2*i,s=Math.floor(.1*r),c=a/r,u=(n.width||s)*c,l=(n.height||s)*c,h=null==n.x?t.length/2-u/2:n.x*c,d=null==n.y?t.length/2-l/2:n.y*c,p=null;if(n.excavate){var f=Math.floor(h),m=Math.floor(d);p={x:f,y:m,w:Math.ceil(u+h-f),h:Math.ceil(l+d-m)}}return{x:h,y:d,h:l,w:u,excavation:p}}var M=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}(),P=function(e){function t(){var e,n;c(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return v(p(n=h(this,(e=d(t)).call.apply(e,[this].concat(o)))),"_canvas",void 0),v(p(n),"_image",void 0),v(p(n),"state",{imgLoaded:!1}),v(p(n),"handleImageLoad",(function(){n.setState({imgLoaded:!0})})),n}return f(t,e),l(t,[{key:"componentDidMount",value:function(){this._image&&this._image.complete&&this.handleImageLoad(),this.update()}},{key:"componentWillReceiveProps",value:function(e){var t,n;(null===(t=this.props.imageSettings)||void 0===t?void 0:t.src)!==(null===(n=e.imageSettings)||void 0===n?void 0:n.src)&&this.setState({imgLoaded:!1})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var e=this.props,t=e.value,n=e.size,r=e.level,o=e.bgColor,i=e.fgColor,a=e.includeMargin,s=e.imageSettings,c=new y(-1,b[r]);if(c.addData(w(t)),c.make(),null!=this._canvas){var u=this._canvas,l=u.getContext("2d");if(!l)return;var h=c.modules;if(null===h)return;var d=a?4:0,p=h.length+2*d,f=E(this.props,h);null!=s&&null!=f&&null!=f.excavation&&(h=S(h,f.excavation));var m=window.devicePixelRatio||1;u.height=u.width=n*m;var v=n/p*m;l.scale(v,v),l.fillStyle=o,l.fillRect(0,0,p,p),l.fillStyle=i,M?l.fill(new Path2D(x(h,d))):h.forEach((function(e,t){e.forEach((function(e,n){e&&l.fillRect(n+d,t+d,1,1)}))})),this.state.imgLoaded&&this._image&&null!=f&&l.drawImage(this._image,f.x+d,f.y+d,f.w,f.h)}}},{key:"render",value:function(){var e=this,t=this.props,n=(t.value,t.size),r=(t.level,t.bgColor,t.fgColor,t.style),i=(t.includeMargin,t.imageSettings),c=s(t,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),u=a({height:n,width:n},r),l=null,h=i&&i.src;return null!=i&&null!=h&&(l=g.createElement("img",{src:h,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(t){return e._image=t}})),g.createElement(g.Fragment,null,g.createElement("canvas",o({style:u,height:n,width:n,ref:function(t){return e._canvas=t}},c)),l)}}]),t}(g.PureComponent);v(P,"defaultProps",C);var R=function(e){function t(){return c(this,t),h(this,d(t).apply(this,arguments))}return f(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.value,n=e.size,r=e.level,i=e.bgColor,a=e.fgColor,c=e.includeMargin,u=e.imageSettings,l=s(e,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),h=new y(-1,b[r]);h.addData(w(t)),h.make();var d=h.modules;if(null===d)return null;var p=c?4:0,f=d.length+2*p,m=E(this.props,d),v=null;null!=u&&null!=m&&(null!=m.excavation&&(d=S(d,m.excavation)),v=g.createElement("image",{xlinkHref:u.src,height:m.h,width:m.w,x:m.x+p,y:m.y+p,preserveAspectRatio:"none"}));var C=x(d,p);return g.createElement("svg",o({shapeRendering:"crispEdges",height:n,width:n,viewBox:"0 0 ".concat(f," ").concat(f)},l),g.createElement("path",{fill:i,d:"M0,0 h".concat(f,"v").concat(f,"H0z")}),g.createElement("path",{fill:a,d:C}),v)}}]),t}(g.PureComponent);v(R,"defaultProps",C);var O=function(e){var t=e.renderAs,n=s(e,["renderAs"]),r="svg"===t?R:P;return g.createElement(r,n)};O.defaultProps=a({renderAs:"canvas"},C),e.exports=O},23230:function(e,t,n){"use strict";n.d(t,{CR:function(){return s},Jh:function(){return a},_T:function(){return o},ev:function(){return c},mG:function(){return i},pi:function(){return r}});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function i(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create;function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function c(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[8969],{8930:function(e,t,n){var r=n(63313),a=(0,r.createContext)({});t.Z=a},78969:function(e,t,n){n.d(t,{ZP:function(){return je}});n(90265);var r=n(60795),a=n(87807),o=n(54183),i=n(9924),l=n(46954),c=n(49994),s=n(18790),u=n(84875),f=n.n(u),d=n(71860),p=n(92976),m=n(63313),v=n.n(m),h=n(82259),g=n(14402),x=n(4202);function y(){return function(e,t,n){var r=n.value,a=!1;return{configurable:!0,get:function(){if(a||this===e.prototype||this.hasOwnProperty(t))return r;var n=function(e){var t,n=function(n){return function(){t=null,e.apply(void 0,(0,g.Z)(n))}},r=function(){if(null==t){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];t=(0,x.Z)(n(r))}};return r.cancel=function(){x.Z.cancel(t),t=null},r}(r.bind(this));return a=!0,Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0}),a=!1,n}}}}var b=n(50416);function Z(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function C(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function E(e,t,n){if(void 0!==n&&t.bottom<e.bottom+n)return n+(window.innerHeight-t.bottom)}var N=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],P=[];function w(e,t){if(e){var n=P.find((function(t){return t.target===e}));n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},P.push(n),N.forEach((function(t){n.eventHandlers[t]=(0,b.Z)(e,t,(function(){n.affixList.forEach((function(e){e.lazyUpdatePosition()}))}))})))}}function O(e){var t=P.find((function(t){var n=t.affixList.some((function(t){return t===e}));return n&&(t.affixList=t.affixList.filter((function(t){return t!==e}))),n}));t&&0===t.affixList.length&&(P=P.filter((function(e){return e!==t})),N.forEach((function(e){var n=t.eventHandlers[e];n&&n.remove&&n.remove()})))}var j,k=function(e,t,n,r){var a,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.Z)(Reflect))&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(i=(o<3?a(i):o>3?a(t,n,i):a(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i};function R(){return"undefined"!=typeof window?window:null}!function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"}(j||(j={}));var S=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;return(0,o.Z)(this,n),(e=t.apply(this,arguments)).state={status:j.None,lastAffix:!1,prevTarget:null},e.getOffsetTop=function(){var t=e.props,n=t.offsetBottom,r=t.offsetTop;return void 0===n&&void 0===r?0:r},e.getOffsetBottom=function(){return e.props.offsetBottom},e.savePlaceholderNode=function(t){e.placeholderNode=t},e.saveFixedNode=function(t){e.fixedNode=t},e.measure=function(){var t=e.state,n=t.status,r=t.lastAffix,a=e.props.onChange,o=e.getTargetFunc();if(n===j.Prepare&&e.fixedNode&&e.placeholderNode&&o){var i=e.getOffsetTop(),l=e.getOffsetBottom(),c=o();if(c){var s={status:j.None},u=Z(c),f=Z(e.placeholderNode),d=C(f,u,i),p=E(f,u,l);0===f.top&&0===f.left&&0===f.width&&0===f.height||(void 0!==d?(s.affixStyle={position:"fixed",top:d,width:f.width,height:f.height},s.placeholderStyle={width:f.width,height:f.height}):void 0!==p&&(s.affixStyle={position:"fixed",bottom:p,width:f.width,height:f.height},s.placeholderStyle={width:f.width,height:f.height}),s.lastAffix=!!s.affixStyle,a&&r!==s.lastAffix&&a(s.lastAffix),e.setState(s))}}},e.prepareMeasure=function(){e.setState({status:j.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e}return(0,i.Z)(n,[{key:"getTargetFunc",value:function(){var e=this.context.getTargetContainer,t=this.props.target;return void 0!==t?t:null!=e?e:R}},{key:"componentDidMount",value:function(){var e=this,t=this.getTargetFunc();t&&(this.timeout=setTimeout((function(){w(t(),e),e.updatePosition()})))}},{key:"componentDidUpdate",value:function(e){var t=this.state.prevTarget,n=this.getTargetFunc(),r=(null==n?void 0:n())||null;t!==r&&(O(this),r&&(w(r,this),this.updatePosition()),this.setState({prevTarget:r})),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),O(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var e=this.getTargetFunc(),t=this.state.affixStyle;if(e&&t){var n=this.getOffsetTop(),r=this.getOffsetBottom(),a=e();if(a&&this.placeholderNode){var o=Z(a),i=Z(this.placeholderNode),l=C(i,o,n),c=E(i,o,r);if(void 0!==l&&t.top===l||void 0!==c&&t.bottom===c)return}}this.prepareMeasure()}},{key:"render",value:function(){var e=this,t=this.state,n=t.affixStyle,o=t.placeholderStyle,i=this.props,l=i.affixPrefixCls,c=i.children,s=f()((0,a.Z)({},l,!!n)),u=(0,p.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls"]);return m.createElement(d.Z,{onResize:function(){e.updatePosition()}},m.createElement("div",(0,r.Z)({},u,{ref:this.savePlaceholderNode}),n&&m.createElement("div",{style:o,"aria-hidden":"true"}),m.createElement("div",{className:s,ref:this.saveFixedNode,style:n},m.createElement(d.Z,{onResize:function(){e.updatePosition()}},c))))}}]),n}(m.Component);S.contextType=h.E_,k([y()],S.prototype,"updatePosition",null),k([y()],S.prototype,"lazyUpdatePosition",null);var T=m.forwardRef((function(e,t){var n=e.prefixCls,a=(0,m.useContext(h.E_).getPrefixCls)("affix",n),o=(0,r.Z)((0,r.Z)({},e),{affixPrefixCls:a});return m.createElement(S,(0,r.Z)({},o,{ref:t}))})),M=(n(41498),n(58347)),z=(n(82621),n(17079)),H=n(14797),B={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},L=n(46420),_=function(e,t){return m.createElement(L.Z,(0,H.Z)((0,H.Z)({},e),{},{ref:t,icon:B}))};_.displayName="ArrowLeftOutlined";var A=m.forwardRef(_),F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},I=function(e,t){return m.createElement(L.Z,(0,H.Z)((0,H.Z)({},e),{},{ref:t,icon:F}))};I.displayName="ArrowRightOutlined";var D=m.forwardRef(I),U=n(5641),W=n(83535),q=n(52604),K=n(21903),V=n(25515),X=n(99604),G=n(70029),Q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},Y=function(e){var t=e.prefixCls,n=e.separator,a=void 0===n?"/":n,o=e.children,i=e.menu,l=e.overlay,c=e.dropdownProps,s=Q(e,["prefixCls","separator","children","menu","overlay","dropdownProps"]),u=(0,m.useContext(h.E_).getPrefixCls)("breadcrumb",t);var f,d;return f="href"in s?m.createElement("a",(0,r.Z)({className:"".concat(u,"-link")},s),o):m.createElement("span",(0,r.Z)({className:"".concat(u,"-link")},s),o),d=f,f=i||l?m.createElement(G.Z,(0,r.Z)({menu:i,overlay:l,placement:"bottom"},c),m.createElement("span",{className:"".concat(u,"-overlay-link")},d,m.createElement(X.Z,null))):d,null!=o?m.createElement("li",null,f,a&&m.createElement("span",{className:"".concat(u,"-separator")},a)):null};Y.__ANT_BREADCRUMB_ITEM=!0;var J=Y,$=function(e){var t=e.children,n=(0,m.useContext(h.E_).getPrefixCls)("breadcrumb");return m.createElement("span",{className:"".concat(n,"-separator")},t||"/")};$.__ANT_BREADCRUMB_SEPARATOR=!0;var ee=$,te=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function ne(e,t,n,r){var a=n.indexOf(e)===n.length-1,o=function(e,t){if(!e.breadcrumbName)return null;var n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(":(".concat(n,")"),"g"),(function(e,n){return t[n]||e}))}(e,t);return a?m.createElement("span",null,o):m.createElement("a",{href:"#/".concat(r.join("/"))},o)}var re=function(e,t){return e=(e||"").replace(/^\//,""),Object.keys(t).forEach((function(n){e=e.replace(":".concat(n),t[n])})),e},ae=function(e,t,n){var r=(0,g.Z)(e),a=re(t||"",n);return a&&r.push(a),r},oe=function(e){var t,n=e.prefixCls,o=e.separator,i=void 0===o?"/":o,l=e.style,c=e.className,s=e.routes,u=e.children,d=e.itemRender,p=void 0===d?ne:d,v=e.params,g=void 0===v?{}:v,x=te(e,["prefixCls","separator","style","className","routes","children","itemRender","params"]),y=m.useContext(h.E_),b=y.getPrefixCls,Z=y.direction,C=b("breadcrumb",n);if(s&&s.length>0){var E=[];t=s.map((function(e){var t,n=re(e.path,g);n&&E.push(n),e.children&&e.children.length&&(t=m.createElement(K.Z,{items:e.children.map((function(e){return{key:e.path||e.breadcrumbName,label:p(e,g,s,ae(E,e.path,g))}}))}));var a={separator:i};return t&&(a.overlay=t),m.createElement(J,(0,r.Z)({},a,{key:n||e.breadcrumbName}),p(e,g,s,E))}))}else u&&(t=(0,q.Z)(u).map((function(e,t){return e?(0,V.Tm)(e,{separator:i,key:t}):e})));var N=f()(C,(0,a.Z)({},"".concat(C,"-rtl"),"rtl"===Z),c);return m.createElement("nav",(0,r.Z)({className:N,style:l},x),m.createElement("ol",null,t))};oe.Item=J,oe.Separator=ee;var ie=oe,le=n(76557),ce=n(2947),se=n(20277),ue=function(e,t,n){return t&&n?m.createElement(le.Z,{componentName:"PageHeader"},(function(r){return m.createElement("div",{className:"".concat(e,"-back")},m.createElement(se.Z,{onClick:function(e){null==n||n(e)},className:"".concat(e,"-back-button"),"aria-label":r.back},t))})):null},fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ltr";return void 0!==e.backIcon?e.backIcon:"rtl"===t?m.createElement(D,null):m.createElement(A,null)},de=function(e){var t=(0,U.Z)(!1),n=(0,z.Z)(t,2),o=n[0],i=n[1],l=function(e){var t=e.width;i(t<768,!0)};return m.createElement(h.C,null,(function(t){var n,i,c=t.getPrefixCls,s=t.pageHeader,u=t.direction,p=e.prefixCls,v=e.style,h=e.footer,g=e.children,x=e.breadcrumb,y=e.breadcrumbRender,b=e.className,Z=!0;"ghost"in e?Z=e.ghost:s&&"ghost"in s&&(Z=s.ghost);var C=c("page-header",p),E=(null==x?void 0:x.routes)?function(e){return m.createElement(ie,(0,r.Z)({},e))}(x):null,N=x&&"props"in x,P=null!==(i=null==y?void 0:y(e,E))&&void 0!==i?i:E,w=N?x:P,O=f()(C,b,(n={"has-breadcrumb":!!w,"has-footer":!!h},(0,a.Z)(n,"".concat(C,"-ghost"),Z),(0,a.Z)(n,"".concat(C,"-rtl"),"rtl"===u),(0,a.Z)(n,"".concat(C,"-compact"),o),n));return m.createElement(d.Z,{onResize:l},m.createElement("div",{className:O,style:v},w,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",a=t.title,o=t.avatar,i=t.subTitle,l=t.tags,c=t.extra,s=t.onBack,u="".concat(e,"-heading"),f=a||i||l||c;if(!f)return null;var d=fe(t,n),p=ue(e,d,s),v=p||o||f;return m.createElement("div",{className:u},v&&m.createElement("div",{className:"".concat(u,"-left")},p,o&&m.createElement(W.C,(0,r.Z)({},o)),a&&m.createElement("span",{className:"".concat(u,"-title"),title:"string"==typeof a?a:void 0},a),i&&m.createElement("span",{className:"".concat(u,"-sub-title"),title:"string"==typeof i?i:void 0},i),l&&m.createElement("span",{className:"".concat(u,"-tags")},l)),c&&m.createElement("span",{className:"".concat(u,"-extra")},m.createElement(ce.Z,null,c)))}(C,e,u),g&&function(e,t){return m.createElement("div",{className:"".concat(e,"-content")},t)}(C,g),function(e,t){return t?m.createElement("div",{className:"".concat(e,"-footer")},t):null}(C,h)))}))},pe=n(67725),me=n(86986),ve=n(11527),he=n(8930),ge=n(71770),xe=["children","className","extra","style","renderContent"],ye=function(e){var t=e.children,n=e.className,r=e.extra,a=e.style,o=e.renderContent,i=(0,pe.Z)(e,xe),l=(0,m.useContext)(M.ZP.ConfigContext).getPrefixCls,c=e.prefixCls||l("pro"),s="".concat(c,"-footer-bar"),u=(0,m.useContext)(he.Z),d=(0,m.useMemo)((function(){var e=u.hasSiderMenu,t=u.isMobile,n=u.siderWidth;if(e)return n?t?"100%":"calc(100% - ".concat(n,"px)"):"100%"}),[u.collapsed,u.hasSiderMenu,u.isMobile,u.siderWidth]),p=(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)("div",{className:"".concat(s,"-left"),children:r}),(0,ve.jsx)("div",{className:"".concat(s,"-right"),children:t})]});return(0,m.useEffect)((function(){return u&&(null==u?void 0:u.setHasFooterToolbar)?(null==u||u.setHasFooterToolbar(!0),function(){var e;null==u||null===(e=u.setHasFooterToolbar)||void 0===e||e.call(u,!1)}):function(){}}),[]),(0,ve.jsx)("div",(0,H.Z)((0,H.Z)({className:f()(n,"".concat(s)),style:(0,H.Z)({width:d},a)},(0,ge.Z)(i,["prefixCls"])),{},{children:o?o((0,H.Z)((0,H.Z)((0,H.Z)({},e),u),{},{leftWidth:d}),p):p}))},be=function(e){var t=(0,m.useContext)(he.Z),n=e.children,r=e.contentWidth,a=e.className,o=e.style,i=(0,m.useContext)(M.ZP.ConfigContext).getPrefixCls,l=e.prefixCls||i("pro"),c=r||t.contentWidth,s="".concat(l,"-grid-content");return(0,ve.jsx)("div",{className:f()(s,a,{wide:"Fixed"===c}),style:o,children:(0,ve.jsx)("div",{className:"".concat(l,"-grid-content-children"),children:n})})},Ze=n(91796),Ce=function(e){var t=e.children,n=e.style,r=e.className,a=e.markStyle,o=e.markClassName,i=e.zIndex,l=void 0===i?9:i,c=e.gapX,s=void 0===c?212:c,u=e.gapY,d=void 0===u?222:u,p=e.width,v=void 0===p?120:p,h=e.height,g=void 0===h?64:h,x=e.rotate,y=void 0===x?-22:x,b=e.image,Z=e.content,C=e.offsetLeft,E=e.offsetTop,N=e.fontStyle,P=void 0===N?"normal":N,w=e.fontWeight,O=void 0===w?"normal":w,j=e.fontColor,k=void 0===j?"rgba(0,0,0,.15)":j,R=e.fontSize,S=void 0===R?16:R,T=e.fontFamily,B=void 0===T?"sans-serif":T,L=e.prefixCls,_=(0,(0,m.useContext)(M.ZP.ConfigContext).getPrefixCls)("pro-layout-watermark",L),A=f()("".concat(_,"-wrapper"),r),F=f()(_,o),I=(0,m.useState)(""),D=(0,z.Z)(I,2),U=D[0],W=D[1];return(0,m.useEffect)((function(){var e=document.createElement("canvas"),t=e.getContext("2d"),n=function(e){if(!e)return 1;var t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}(t),r="".concat((s+v)*n,"px"),a="".concat((d+g)*n,"px"),o=C||s/2,i=E||d/2;if(e.setAttribute("width",r),e.setAttribute("height",a),t){t.translate(o*n,i*n),t.rotate(Math.PI/180*Number(y));var l=v*n,c=g*n;if(b){var u=new Image;u.crossOrigin="anonymous",u.referrerPolicy="no-referrer",u.src=b,u.onload=function(){t.drawImage(u,0,0,l,c),W(e.toDataURL())}}else if(Z){var f=Number(S)*n;t.font="".concat(P," normal ").concat(O," ").concat(f,"px/").concat(c,"px ").concat(B),t.fillStyle=k,Array.isArray(Z)?null==Z||Z.forEach((function(e,n){return t.fillText(e,0,50*n)})):t.fillText(Z,0,0),W(e.toDataURL())}}else console.error("当前环境不支持Canvas")}),[s,d,C,E,y,P,O,v,g,B,k,b,Z,S]),(0,ve.jsxs)("div",{style:(0,H.Z)({position:"relative"},n),className:A,children:[t,(0,ve.jsx)("div",{className:F,style:(0,H.Z)((0,H.Z)({zIndex:l,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(s+v,"px"),pointerEvents:"none",backgroundRepeat:"repeat"},U?{backgroundImage:"url('".concat(U,"')")}:null),a)})]})},Ee=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","style","prefixCls","breadcrumbRender"],Ne=["children","loading","className","style","footer","affixProps","ghost","fixedHeader","breadcrumbRender"];var Pe=function(e){var t=e.tabList,n=e.tabActiveKey,r=e.onTabChange,a=e.tabBarExtraContent,o=e.tabProps,i=e.prefixedClassName;return Array.isArray(t)||a?(0,ve.jsx)(me.Z,(0,H.Z)((0,H.Z)({className:"".concat(i,"-tabs"),activeKey:n,onChange:function(e){r&&r(e)},tabBarExtraContent:a},o),{},{children:null==t?void 0:t.map((function(e,t){return(0,m.createElement)(me.Z.TabPane,(0,H.Z)((0,H.Z)({},e),{},{tab:e.tab,key:e.key||t}))}))})):null},we=function(e,t,n){return e||t?(0,ve.jsx)("div",{className:"".concat(n,"-detail"),children:(0,ve.jsx)("div",{className:"".concat(n,"-main"),children:(0,ve.jsxs)("div",{className:"".concat(n,"-row"),children:[e&&(0,ve.jsx)("div",{className:"".concat(n,"-content"),children:e}),t&&(0,ve.jsx)("div",{className:"".concat(n,"-extraContent"),children:t})]})})}):null},Oe=function(e){var t,n=(0,m.useContext)(he.Z),r=e.title,a=e.content,o=e.pageHeaderRender,i=e.header,l=e.prefixedClassName,c=e.extraContent,s=(e.style,e.prefixCls),u=e.breadcrumbRender,f=(0,pe.Z)(e,Ee),d=(0,m.useMemo)((function(){if(u)return u}),[u]);if(!1===o)return null;if(o)return(0,ve.jsxs)(ve.Fragment,{children:[" ",o((0,H.Z)((0,H.Z)({},e),n))]});var p=r;r||!1===r||(p=n.title);var v=(0,H.Z)((0,H.Z)((0,H.Z)({},n),{},{title:p},f),{},{footer:Pe((0,H.Z)((0,H.Z)({},f),{},{breadcrumbRender:u,prefixedClassName:l}))},i),h=v.breadcrumb,g=!(h&&((null==h?void 0:h.itemRender)||(null==h||null===(t=h.routes)||void 0===t?void 0:t.length))||u);return["title","subTitle","extra","tags","footer","avatar","backIcon"].every((function(e){return!v[e]}))&&g&&!a&&!c?null:(0,ve.jsx)("div",{className:"".concat(l,"-warp"),children:(0,ve.jsx)(de,(0,H.Z)((0,H.Z)({},v),{},{breadcrumb:!1===u?void 0:(0,H.Z)((0,H.Z)({},v.breadcrumb),n.breadcrumbProps),breadcrumbRender:d,prefixCls:s,children:(null==i?void 0:i.children)||we(a,c,l)}))})},je=function(e){var t,n,r=e.children,o=e.loading,i=void 0!==o&&o,l=e.className,c=e.style,u=e.footer,d=e.affixProps,p=e.ghost,h=e.fixedHeader,g=e.breadcrumbRender,x=(0,pe.Z)(e,Ne),y=(0,m.useContext)(he.Z),b=(0,m.useContext)(M.ZP.ConfigContext).getPrefixCls,Z=e.prefixCls||b("pro"),C="".concat(Z,"-page-container"),E=f()(C,l,(t={},(0,a.Z)(t,"".concat(Z,"-page-container-ghost"),p),(0,a.Z)(t,"".concat(Z,"-page-container-with-footer"),u),t)),N=(0,m.useMemo)((function(){return r?(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)("div",{className:"".concat(C,"-children-content"),children:r}),y.hasFooterToolbar&&(0,ve.jsx)("div",{style:{height:48,marginTop:24}})]}):null}),[r,C,y.hasFooterToolbar]),P=(0,m.useMemo)((function(){var e;return 0!=g&&(g||(null==x||null===(e=x.header)||void 0===e?void 0:e.breadcrumbRender))}),[g,null==x||null===(n=x.header)||void 0===n?void 0:n.breadcrumbRender]),w=(0,ve.jsx)(Oe,(0,H.Z)((0,H.Z)({},x),{},{breadcrumbRender:P,ghost:p,prefixCls:void 0,prefixedClassName:C})),O=(0,m.useMemo)((function(){if(v().isValidElement(i))return i;if("boolean"==typeof i&&!i)return null;var e=function(e){return"object"===(0,s.Z)(e)?e:{spinning:e}}(i);return e.spinning?(0,ve.jsx)(Ze.Z,(0,H.Z)({},e)):null}),[i]),j=(0,m.useMemo)((function(){var t=O||N;if(e.waterMarkProps||y.waterMarkProps){var n=(0,H.Z)((0,H.Z)({},y.waterMarkProps),e.waterMarkProps);return(0,ve.jsx)(Ce,(0,H.Z)((0,H.Z)({},n),{},{children:t}))}return t}),[e.waterMarkProps,y.waterMarkProps,O,N]);return(0,ve.jsxs)("div",{style:c,className:E,children:[h&&w?(0,ve.jsx)(T,(0,H.Z)((0,H.Z)({offsetTop:y.hasHeader&&y.fixedHeader?y.headerHeight:0},d),{},{children:w})):w,j&&(0,ve.jsx)(be,{children:j}),u&&(0,ve.jsx)(ye,{prefixCls:Z,children:u})]})}},83535:function(e,t,n){n.d(t,{C:function(){return S}});var r=n(60795),a=n(87807),o=n(18790),i=n(17079),l=n(84875),c=n.n(l),s=n(71860),u=n(33951),f=n(63313),d=n(82259),p=n(99043),m=n(11847),v=f.createContext("default"),h=function(e){var t=e.children,n=e.size;return f.createElement(v.Consumer,null,(function(e){return f.createElement(v.Provider,{value:n||e},t)}))},g=v,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},y=function(e,t){var n,l,v=f.useContext(g),h=f.useState(1),y=(0,i.Z)(h,2),b=y[0],Z=y[1],C=f.useState(!1),E=(0,i.Z)(C,2),N=E[0],P=E[1],w=f.useState(!0),O=(0,i.Z)(w,2),j=O[0],k=O[1],R=f.useRef(null),S=f.useRef(null),T=(0,u.sQ)(t,R),M=f.useContext(d.E_).getPrefixCls,z=function(){if(S.current&&R.current){var t=S.current.offsetWidth,n=R.current.offsetWidth;if(0!==t&&0!==n){var r=e.gap,a=void 0===r?4:r;2*a<n&&Z(n-2*a<t?(n-2*a)/t:1)}}};f.useEffect((function(){P(!0)}),[]),f.useEffect((function(){k(!0),Z(1)}),[e.src]),f.useEffect((function(){z()}),[e.gap]);var H,B=e.prefixCls,L=e.shape,_=void 0===L?"circle":L,A=e.size,F=void 0===A?"default":A,I=e.src,D=e.srcSet,U=e.icon,W=e.className,q=e.alt,K=e.draggable,V=e.children,X=e.crossOrigin,G=x(e,["prefixCls","shape","size","src","srcSet","icon","className","alt","draggable","children","crossOrigin"]),Q="default"===F?v:F,Y=Object.keys("object"===(0,o.Z)(Q)&&Q||{}).some((function(e){return["xs","sm","md","lg","xl","xxl"].includes(e)})),J=(0,p.Z)(Y),$=f.useMemo((function(){if("object"!==(0,o.Z)(Q))return{};var e=m.c4.find((function(e){return J[e]})),t=Q[e];return t?{width:t,height:t,lineHeight:"".concat(t,"px"),fontSize:U?t/2:18}:{}}),[J,Q]),ee=M("avatar",B),te=c()((n={},(0,a.Z)(n,"".concat(ee,"-lg"),"large"===Q),(0,a.Z)(n,"".concat(ee,"-sm"),"small"===Q),n)),ne=f.isValidElement(I),re=c()(ee,te,(l={},(0,a.Z)(l,"".concat(ee,"-").concat(_),!!_),(0,a.Z)(l,"".concat(ee,"-image"),ne||I&&j),(0,a.Z)(l,"".concat(ee,"-icon"),!!U),l),W),ae="number"==typeof Q?{width:Q,height:Q,lineHeight:"".concat(Q,"px"),fontSize:U?Q/2:18}:{};if("string"==typeof I&&j)H=f.createElement("img",{src:I,draggable:K,srcSet:D,onError:function(){var t=e.onError;!1!==(t?t():void 0)&&k(!1)},alt:q,crossOrigin:X});else if(ne)H=I;else if(U)H=U;else if(N||1!==b){var oe="scale(".concat(b,") translateX(-50%)"),ie={msTransform:oe,WebkitTransform:oe,transform:oe},le="number"==typeof Q?{lineHeight:"".concat(Q,"px")}:{};H=f.createElement(s.Z,{onResize:z},f.createElement("span",{className:"".concat(ee,"-string"),ref:S,style:(0,r.Z)((0,r.Z)({},le),ie)},V))}else H=f.createElement("span",{className:"".concat(ee,"-string"),style:{opacity:0},ref:S},V);return delete G.onError,delete G.gap,f.createElement("span",(0,r.Z)({},G,{style:(0,r.Z)((0,r.Z)((0,r.Z)({},ae),$),G.style),className:re,ref:T}),H)};var b=f.forwardRef(y),Z=n(52604),C=n(15367),E=function(e){return e?"function"==typeof e?e():e:null},N=n(16082),P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},w=function(e){var t=e.title,n=e.content,r=e.prefixCls;return t||n?f.createElement(f.Fragment,null,t&&f.createElement("div",{className:"".concat(r,"-title")},E(t)),f.createElement("div",{className:"".concat(r,"-inner-content")},E(n))):null};var O=f.forwardRef((function(e,t){var n=e.prefixCls,a=e.title,o=e.content,i=e._overlay,l=e.placement,c=void 0===l?"top":l,s=e.trigger,u=void 0===s?"hover":s,p=e.mouseEnterDelay,m=void 0===p?.1:p,v=e.mouseLeaveDelay,h=void 0===v?.1:v,g=e.overlayStyle,x=void 0===g?{}:g,y=P(e,["prefixCls","title","content","_overlay","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),b=f.useContext(d.E_).getPrefixCls,Z=b("popover",n),E=b();return f.createElement(C.Z,(0,r.Z)({placement:c,trigger:u,mouseEnterDelay:m,mouseLeaveDelay:h,overlayStyle:x},y,{prefixCls:Z,ref:t,overlay:i||f.createElement(w,{prefixCls:Z,title:a,content:o}),transitionName:(0,N.mL)(E,"zoom-big",y.transitionName)}))})),j=n(25515),k=function(e){var t=f.useContext(d.E_),n=t.getPrefixCls,r=t.direction,o=e.prefixCls,i=e.className,l=void 0===i?"":i,s=e.maxCount,u=e.maxStyle,p=e.size,m=n("avatar-group",o),v=c()(m,(0,a.Z)({},"".concat(m,"-rtl"),"rtl"===r),l),g=e.children,x=e.maxPopoverPlacement,y=void 0===x?"top":x,C=e.maxPopoverTrigger,E=void 0===C?"hover":C,N=(0,Z.Z)(g).map((function(e,t){return(0,j.Tm)(e,{key:"avatar-key-".concat(t)})})),P=N.length;if(s&&s<P){var w=N.slice(0,s),k=N.slice(s,P);return w.push(f.createElement(O,{key:"avatar-popover-key",content:k,trigger:E,placement:y,overlayClassName:"".concat(m,"-popover")},f.createElement(b,{style:u},"+".concat(P-s)))),f.createElement(h,{size:p},f.createElement("div",{className:v,style:e.style},w))}return f.createElement(h,{size:p},f.createElement("div",{className:v,style:e.style},N))},R=b;R.Group=k;var S=R},41498:function(){},82621:function(e,t,n){n(90265),n(34626)},34626:function(e,t,n){n(90265)},71770:function(e,t){t.Z=function(e,t){for(var n=Object.assign({},e),r=0;r<t.length;r+=1){delete n[t[r]]}return n}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[3435],{8930:function(e,t,n){var r=n(63313),a=(0,r.createContext)({});t.Z=a},23435:function(e,t,n){n.d(t,{ZP:function(){return je}});n(27548);var r=n(60795),a=n(87807),o=n(54183),i=n(9924),l=n(46954),c=n(49994),s=n(18790),u=n(84875),f=n.n(u),d=n(71860),p=n(92976),m=n(63313),v=n.n(m),h=n(82259),g=n(14402),x=n(4202);function y(){return function(e,t,n){var r=n.value,a=!1;return{configurable:!0,get:function(){if(a||this===e.prototype||this.hasOwnProperty(t))return r;var n=function(e){var t,n=function(n){return function(){t=null,e.apply(void 0,(0,g.Z)(n))}},r=function(){if(null==t){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];t=(0,x.Z)(n(r))}};return r.cancel=function(){x.Z.cancel(t),t=null},r}(r.bind(this));return a=!0,Object.defineProperty(this,t,{value:n,configurable:!0,writable:!0}),a=!1,n}}}}var b=n(50416);function Z(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function C(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function E(e,t,n){if(void 0!==n&&t.bottom<e.bottom+n)return n+(window.innerHeight-t.bottom)}var N=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],P=[];function w(e,t){if(e){var n=P.find((function(t){return t.target===e}));n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},P.push(n),N.forEach((function(t){n.eventHandlers[t]=(0,b.Z)(e,t,(function(){n.affixList.forEach((function(e){e.lazyUpdatePosition()}))}))})))}}function O(e){var t=P.find((function(t){var n=t.affixList.some((function(t){return t===e}));return n&&(t.affixList=t.affixList.filter((function(t){return t!==e}))),n}));t&&0===t.affixList.length&&(P=P.filter((function(e){return e!==t})),N.forEach((function(e){var n=t.eventHandlers[e];n&&n.remove&&n.remove()})))}var j,k=function(e,t,n,r){var a,o=arguments.length,i=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,s.Z)(Reflect))&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(i=(o<3?a(i):o>3?a(t,n,i):a(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i};function R(){return"undefined"!=typeof window?window:null}!function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"}(j||(j={}));var S=function(e){(0,l.Z)(n,e);var t=(0,c.Z)(n);function n(){var e;return(0,o.Z)(this,n),(e=t.apply(this,arguments)).state={status:j.None,lastAffix:!1,prevTarget:null},e.getOffsetTop=function(){var t=e.props,n=t.offsetBottom,r=t.offsetTop;return void 0===n&&void 0===r?0:r},e.getOffsetBottom=function(){return e.props.offsetBottom},e.savePlaceholderNode=function(t){e.placeholderNode=t},e.saveFixedNode=function(t){e.fixedNode=t},e.measure=function(){var t=e.state,n=t.status,r=t.lastAffix,a=e.props.onChange,o=e.getTargetFunc();if(n===j.Prepare&&e.fixedNode&&e.placeholderNode&&o){var i=e.getOffsetTop(),l=e.getOffsetBottom(),c=o();if(c){var s={status:j.None},u=Z(c),f=Z(e.placeholderNode),d=C(f,u,i),p=E(f,u,l);0===f.top&&0===f.left&&0===f.width&&0===f.height||(void 0!==d?(s.affixStyle={position:"fixed",top:d,width:f.width,height:f.height},s.placeholderStyle={width:f.width,height:f.height}):void 0!==p&&(s.affixStyle={position:"fixed",bottom:p,width:f.width,height:f.height},s.placeholderStyle={width:f.width,height:f.height}),s.lastAffix=!!s.affixStyle,a&&r!==s.lastAffix&&a(s.lastAffix),e.setState(s))}}},e.prepareMeasure=function(){e.setState({status:j.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e}return(0,i.Z)(n,[{key:"getTargetFunc",value:function(){var e=this.context.getTargetContainer,t=this.props.target;return void 0!==t?t:null!=e?e:R}},{key:"componentDidMount",value:function(){var e=this,t=this.getTargetFunc();t&&(this.timeout=setTimeout((function(){w(t(),e),e.updatePosition()})))}},{key:"componentDidUpdate",value:function(e){var t=this.state.prevTarget,n=this.getTargetFunc(),r=(null==n?void 0:n())||null;t!==r&&(O(this),r&&(w(r,this),this.updatePosition()),this.setState({prevTarget:r})),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),O(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var e=this.getTargetFunc(),t=this.state.affixStyle;if(e&&t){var n=this.getOffsetTop(),r=this.getOffsetBottom(),a=e();if(a&&this.placeholderNode){var o=Z(a),i=Z(this.placeholderNode),l=C(i,o,n),c=E(i,o,r);if(void 0!==l&&t.top===l||void 0!==c&&t.bottom===c)return}}this.prepareMeasure()}},{key:"render",value:function(){var e=this,t=this.state,n=t.affixStyle,o=t.placeholderStyle,i=this.props,l=i.affixPrefixCls,c=i.children,s=f()((0,a.Z)({},l,!!n)),u=(0,p.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls"]);return m.createElement(d.Z,{onResize:function(){e.updatePosition()}},m.createElement("div",(0,r.Z)({},u,{ref:this.savePlaceholderNode}),n&&m.createElement("div",{style:o,"aria-hidden":"true"}),m.createElement("div",{className:s,ref:this.saveFixedNode,style:n},m.createElement(d.Z,{onResize:function(){e.updatePosition()}},c))))}}]),n}(m.Component);S.contextType=h.E_,k([y()],S.prototype,"updatePosition",null),k([y()],S.prototype,"lazyUpdatePosition",null);var T=m.forwardRef((function(e,t){var n=e.prefixCls,a=(0,m.useContext(h.E_).getPrefixCls)("affix",n),o=(0,r.Z)((0,r.Z)({},e),{affixPrefixCls:a});return m.createElement(S,(0,r.Z)({},o,{ref:t}))})),M=(n(74693),n(58347)),z=(n(65623),n(17079)),H=n(14797),B={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},L=n(46420),_=function(e,t){return m.createElement(L.Z,(0,H.Z)((0,H.Z)({},e),{},{ref:t,icon:B}))};_.displayName="ArrowLeftOutlined";var A=m.forwardRef(_),F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},I=function(e,t){return m.createElement(L.Z,(0,H.Z)((0,H.Z)({},e),{},{ref:t,icon:F}))};I.displayName="ArrowRightOutlined";var D=m.forwardRef(I),U=n(5641),W=n(36859),q=n(52604),K=n(21903),V=n(25515),X=n(99604),G=n(70029),Q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},Y=function(e){var t=e.prefixCls,n=e.separator,a=void 0===n?"/":n,o=e.children,i=e.menu,l=e.overlay,c=e.dropdownProps,s=Q(e,["prefixCls","separator","children","menu","overlay","dropdownProps"]),u=(0,m.useContext(h.E_).getPrefixCls)("breadcrumb",t);var f,d;return f="href"in s?m.createElement("a",(0,r.Z)({className:"".concat(u,"-link")},s),o):m.createElement("span",(0,r.Z)({className:"".concat(u,"-link")},s),o),d=f,f=i||l?m.createElement(G.Z,(0,r.Z)({menu:i,overlay:l,placement:"bottom"},c),m.createElement("span",{className:"".concat(u,"-overlay-link")},d,m.createElement(X.Z,null))):d,null!=o?m.createElement("li",null,f,a&&m.createElement("span",{className:"".concat(u,"-separator")},a)):null};Y.__ANT_BREADCRUMB_ITEM=!0;var J=Y,$=function(e){var t=e.children,n=(0,m.useContext(h.E_).getPrefixCls)("breadcrumb");return m.createElement("span",{className:"".concat(n,"-separator")},t||"/")};$.__ANT_BREADCRUMB_SEPARATOR=!0;var ee=$,te=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n};function ne(e,t,n,r){var a=n.indexOf(e)===n.length-1,o=function(e,t){if(!e.breadcrumbName)return null;var n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(":(".concat(n,")"),"g"),(function(e,n){return t[n]||e}))}(e,t);return a?m.createElement("span",null,o):m.createElement("a",{href:"#/".concat(r.join("/"))},o)}var re=function(e,t){return e=(e||"").replace(/^\//,""),Object.keys(t).forEach((function(n){e=e.replace(":".concat(n),t[n])})),e},ae=function(e,t,n){var r=(0,g.Z)(e),a=re(t||"",n);return a&&r.push(a),r},oe=function(e){var t,n=e.prefixCls,o=e.separator,i=void 0===o?"/":o,l=e.style,c=e.className,s=e.routes,u=e.children,d=e.itemRender,p=void 0===d?ne:d,v=e.params,g=void 0===v?{}:v,x=te(e,["prefixCls","separator","style","className","routes","children","itemRender","params"]),y=m.useContext(h.E_),b=y.getPrefixCls,Z=y.direction,C=b("breadcrumb",n);if(s&&s.length>0){var E=[];t=s.map((function(e){var t,n=re(e.path,g);n&&E.push(n),e.children&&e.children.length&&(t=m.createElement(K.Z,{items:e.children.map((function(e){return{key:e.path||e.breadcrumbName,label:p(e,g,s,ae(E,e.path,g))}}))}));var a={separator:i};return t&&(a.overlay=t),m.createElement(J,(0,r.Z)({},a,{key:n||e.breadcrumbName}),p(e,g,s,E))}))}else u&&(t=(0,q.Z)(u).map((function(e,t){return e?(0,V.Tm)(e,{separator:i,key:t}):e})));var N=f()(C,(0,a.Z)({},"".concat(C,"-rtl"),"rtl"===Z),c);return m.createElement("nav",(0,r.Z)({className:N,style:l},x),m.createElement("ol",null,t))};oe.Item=J,oe.Separator=ee;var ie=oe,le=n(76557),ce=n(2947),se=n(20277),ue=function(e,t,n){return t&&n?m.createElement(le.Z,{componentName:"PageHeader"},(function(r){return m.createElement("div",{className:"".concat(e,"-back")},m.createElement(se.Z,{onClick:function(e){null==n||n(e)},className:"".concat(e,"-back-button"),"aria-label":r.back},t))})):null},fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ltr";return void 0!==e.backIcon?e.backIcon:"rtl"===t?m.createElement(D,null):m.createElement(A,null)},de=function(e){var t=(0,U.Z)(!1),n=(0,z.Z)(t,2),o=n[0],i=n[1],l=function(e){var t=e.width;i(t<768,!0)};return m.createElement(h.C,null,(function(t){var n,i,c=t.getPrefixCls,s=t.pageHeader,u=t.direction,p=e.prefixCls,v=e.style,h=e.footer,g=e.children,x=e.breadcrumb,y=e.breadcrumbRender,b=e.className,Z=!0;"ghost"in e?Z=e.ghost:s&&"ghost"in s&&(Z=s.ghost);var C=c("page-header",p),E=(null==x?void 0:x.routes)?function(e){return m.createElement(ie,(0,r.Z)({},e))}(x):null,N=x&&"props"in x,P=null!==(i=null==y?void 0:y(e,E))&&void 0!==i?i:E,w=N?x:P,O=f()(C,b,(n={"has-breadcrumb":!!w,"has-footer":!!h},(0,a.Z)(n,"".concat(C,"-ghost"),Z),(0,a.Z)(n,"".concat(C,"-rtl"),"rtl"===u),(0,a.Z)(n,"".concat(C,"-compact"),o),n));return m.createElement(d.Z,{onResize:l},m.createElement("div",{className:O,style:v},w,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",a=t.title,o=t.avatar,i=t.subTitle,l=t.tags,c=t.extra,s=t.onBack,u="".concat(e,"-heading"),f=a||i||l||c;if(!f)return null;var d=fe(t,n),p=ue(e,d,s),v=p||o||f;return m.createElement("div",{className:u},v&&m.createElement("div",{className:"".concat(u,"-left")},p,o&&m.createElement(W.C,(0,r.Z)({},o)),a&&m.createElement("span",{className:"".concat(u,"-title"),title:"string"==typeof a?a:void 0},a),i&&m.createElement("span",{className:"".concat(u,"-sub-title"),title:"string"==typeof i?i:void 0},i),l&&m.createElement("span",{className:"".concat(u,"-tags")},l)),c&&m.createElement("span",{className:"".concat(u,"-extra")},m.createElement(ce.Z,null,c)))}(C,e,u),g&&function(e,t){return m.createElement("div",{className:"".concat(e,"-content")},t)}(C,g),function(e,t){return t?m.createElement("div",{className:"".concat(e,"-footer")},t):null}(C,h)))}))},pe=n(67725),me=n(86986),ve=n(11527),he=n(8930),ge=n(71770),xe=["children","className","extra","style","renderContent"],ye=function(e){var t=e.children,n=e.className,r=e.extra,a=e.style,o=e.renderContent,i=(0,pe.Z)(e,xe),l=(0,m.useContext)(M.ZP.ConfigContext).getPrefixCls,c=e.prefixCls||l("pro"),s="".concat(c,"-footer-bar"),u=(0,m.useContext)(he.Z),d=(0,m.useMemo)((function(){var e=u.hasSiderMenu,t=u.isMobile,n=u.siderWidth;if(e)return n?t?"100%":"calc(100% - ".concat(n,"px)"):"100%"}),[u.collapsed,u.hasSiderMenu,u.isMobile,u.siderWidth]),p=(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)("div",{className:"".concat(s,"-left"),children:r}),(0,ve.jsx)("div",{className:"".concat(s,"-right"),children:t})]});return(0,m.useEffect)((function(){return u&&(null==u?void 0:u.setHasFooterToolbar)?(null==u||u.setHasFooterToolbar(!0),function(){var e;null==u||null===(e=u.setHasFooterToolbar)||void 0===e||e.call(u,!1)}):function(){}}),[]),(0,ve.jsx)("div",(0,H.Z)((0,H.Z)({className:f()(n,"".concat(s)),style:(0,H.Z)({width:d},a)},(0,ge.Z)(i,["prefixCls"])),{},{children:o?o((0,H.Z)((0,H.Z)((0,H.Z)({},e),u),{},{leftWidth:d}),p):p}))},be=function(e){var t=(0,m.useContext)(he.Z),n=e.children,r=e.contentWidth,a=e.className,o=e.style,i=(0,m.useContext)(M.ZP.ConfigContext).getPrefixCls,l=e.prefixCls||i("pro"),c=r||t.contentWidth,s="".concat(l,"-grid-content");return(0,ve.jsx)("div",{className:f()(s,a,{wide:"Fixed"===c}),style:o,children:(0,ve.jsx)("div",{className:"".concat(l,"-grid-content-children"),children:n})})},Ze=n(4574),Ce=function(e){var t=e.children,n=e.style,r=e.className,a=e.markStyle,o=e.markClassName,i=e.zIndex,l=void 0===i?9:i,c=e.gapX,s=void 0===c?212:c,u=e.gapY,d=void 0===u?222:u,p=e.width,v=void 0===p?120:p,h=e.height,g=void 0===h?64:h,x=e.rotate,y=void 0===x?-22:x,b=e.image,Z=e.content,C=e.offsetLeft,E=e.offsetTop,N=e.fontStyle,P=void 0===N?"normal":N,w=e.fontWeight,O=void 0===w?"normal":w,j=e.fontColor,k=void 0===j?"rgba(0,0,0,.15)":j,R=e.fontSize,S=void 0===R?16:R,T=e.fontFamily,B=void 0===T?"sans-serif":T,L=e.prefixCls,_=(0,(0,m.useContext)(M.ZP.ConfigContext).getPrefixCls)("pro-layout-watermark",L),A=f()("".concat(_,"-wrapper"),r),F=f()(_,o),I=(0,m.useState)(""),D=(0,z.Z)(I,2),U=D[0],W=D[1];return(0,m.useEffect)((function(){var e=document.createElement("canvas"),t=e.getContext("2d"),n=function(e){if(!e)return 1;var t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}(t),r="".concat((s+v)*n,"px"),a="".concat((d+g)*n,"px"),o=C||s/2,i=E||d/2;if(e.setAttribute("width",r),e.setAttribute("height",a),t){t.translate(o*n,i*n),t.rotate(Math.PI/180*Number(y));var l=v*n,c=g*n;if(b){var u=new Image;u.crossOrigin="anonymous",u.referrerPolicy="no-referrer",u.src=b,u.onload=function(){t.drawImage(u,0,0,l,c),W(e.toDataURL())}}else if(Z){var f=Number(S)*n;t.font="".concat(P," normal ").concat(O," ").concat(f,"px/").concat(c,"px ").concat(B),t.fillStyle=k,Array.isArray(Z)?null==Z||Z.forEach((function(e,n){return t.fillText(e,0,50*n)})):t.fillText(Z,0,0),W(e.toDataURL())}}else console.error("当前环境不支持Canvas")}),[s,d,C,E,y,P,O,v,g,B,k,b,Z,S]),(0,ve.jsxs)("div",{style:(0,H.Z)({position:"relative"},n),className:A,children:[t,(0,ve.jsx)("div",{className:F,style:(0,H.Z)((0,H.Z)({zIndex:l,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(s+v,"px"),pointerEvents:"none",backgroundRepeat:"repeat"},U?{backgroundImage:"url('".concat(U,"')")}:null),a)})]})},Ee=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","style","prefixCls","breadcrumbRender"],Ne=["children","loading","className","style","footer","affixProps","ghost","fixedHeader","breadcrumbRender"];var Pe=function(e){var t=e.tabList,n=e.tabActiveKey,r=e.onTabChange,a=e.tabBarExtraContent,o=e.tabProps,i=e.prefixedClassName;return Array.isArray(t)||a?(0,ve.jsx)(me.Z,(0,H.Z)((0,H.Z)({className:"".concat(i,"-tabs"),activeKey:n,onChange:function(e){r&&r(e)},tabBarExtraContent:a},o),{},{children:null==t?void 0:t.map((function(e,t){return(0,m.createElement)(me.Z.TabPane,(0,H.Z)((0,H.Z)({},e),{},{tab:e.tab,key:e.key||t}))}))})):null},we=function(e,t,n){return e||t?(0,ve.jsx)("div",{className:"".concat(n,"-detail"),children:(0,ve.jsx)("div",{className:"".concat(n,"-main"),children:(0,ve.jsxs)("div",{className:"".concat(n,"-row"),children:[e&&(0,ve.jsx)("div",{className:"".concat(n,"-content"),children:e}),t&&(0,ve.jsx)("div",{className:"".concat(n,"-extraContent"),children:t})]})})}):null},Oe=function(e){var t,n=(0,m.useContext)(he.Z),r=e.title,a=e.content,o=e.pageHeaderRender,i=e.header,l=e.prefixedClassName,c=e.extraContent,s=(e.style,e.prefixCls),u=e.breadcrumbRender,f=(0,pe.Z)(e,Ee),d=(0,m.useMemo)((function(){if(u)return u}),[u]);if(!1===o)return null;if(o)return(0,ve.jsxs)(ve.Fragment,{children:[" ",o((0,H.Z)((0,H.Z)({},e),n))]});var p=r;r||!1===r||(p=n.title);var v=(0,H.Z)((0,H.Z)((0,H.Z)({},n),{},{title:p},f),{},{footer:Pe((0,H.Z)((0,H.Z)({},f),{},{breadcrumbRender:u,prefixedClassName:l}))},i),h=v.breadcrumb,g=!(h&&((null==h?void 0:h.itemRender)||(null==h||null===(t=h.routes)||void 0===t?void 0:t.length))||u);return["title","subTitle","extra","tags","footer","avatar","backIcon"].every((function(e){return!v[e]}))&&g&&!a&&!c?null:(0,ve.jsx)("div",{className:"".concat(l,"-warp"),children:(0,ve.jsx)(de,(0,H.Z)((0,H.Z)({},v),{},{breadcrumb:!1===u?void 0:(0,H.Z)((0,H.Z)({},v.breadcrumb),n.breadcrumbProps),breadcrumbRender:d,prefixCls:s,children:(null==i?void 0:i.children)||we(a,c,l)}))})},je=function(e){var t,n,r=e.children,o=e.loading,i=void 0!==o&&o,l=e.className,c=e.style,u=e.footer,d=e.affixProps,p=e.ghost,h=e.fixedHeader,g=e.breadcrumbRender,x=(0,pe.Z)(e,Ne),y=(0,m.useContext)(he.Z),b=(0,m.useContext)(M.ZP.ConfigContext).getPrefixCls,Z=e.prefixCls||b("pro"),C="".concat(Z,"-page-container"),E=f()(C,l,(t={},(0,a.Z)(t,"".concat(Z,"-page-container-ghost"),p),(0,a.Z)(t,"".concat(Z,"-page-container-with-footer"),u),t)),N=(0,m.useMemo)((function(){return r?(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)("div",{className:"".concat(C,"-children-content"),children:r}),y.hasFooterToolbar&&(0,ve.jsx)("div",{style:{height:48,marginTop:24}})]}):null}),[r,C,y.hasFooterToolbar]),P=(0,m.useMemo)((function(){var e;return 0!=g&&(g||(null==x||null===(e=x.header)||void 0===e?void 0:e.breadcrumbRender))}),[g,null==x||null===(n=x.header)||void 0===n?void 0:n.breadcrumbRender]),w=(0,ve.jsx)(Oe,(0,H.Z)((0,H.Z)({},x),{},{breadcrumbRender:P,ghost:p,prefixCls:void 0,prefixedClassName:C})),O=(0,m.useMemo)((function(){if(v().isValidElement(i))return i;if("boolean"==typeof i&&!i)return null;var e=function(e){return"object"===(0,s.Z)(e)?e:{spinning:e}}(i);return e.spinning?(0,ve.jsx)(Ze.Z,(0,H.Z)({},e)):null}),[i]),j=(0,m.useMemo)((function(){var t=O||N;if(e.waterMarkProps||y.waterMarkProps){var n=(0,H.Z)((0,H.Z)({},y.waterMarkProps),e.waterMarkProps);return(0,ve.jsx)(Ce,(0,H.Z)((0,H.Z)({},n),{},{children:t}))}return t}),[e.waterMarkProps,y.waterMarkProps,O,N]);return(0,ve.jsxs)("div",{style:c,className:E,children:[h&&w?(0,ve.jsx)(T,(0,H.Z)((0,H.Z)({offsetTop:y.hasHeader&&y.fixedHeader?y.headerHeight:0},d),{},{children:w})):w,j&&(0,ve.jsx)(be,{children:j}),u&&(0,ve.jsx)(ye,{prefixCls:Z,children:u})]})}},36859:function(e,t,n){n.d(t,{C:function(){return w}});var r=n(60795),a=n(87807),o=n(18790),i=n(17079),l=n(84875),c=n.n(l),s=n(71860),u=n(33951),f=n(63313),d=n(82259),p=n(99043),m=n(11847),v=f.createContext("default"),h=function(e){var t=e.children,n=e.size;return f.createElement(v.Consumer,null,(function(e){return f.createElement(v.Provider,{value:n||e},t)}))},g=v,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},y=function(e,t){var n,l,v=f.useContext(g),h=f.useState(1),y=(0,i.Z)(h,2),b=y[0],Z=y[1],C=f.useState(!1),E=(0,i.Z)(C,2),N=E[0],P=E[1],w=f.useState(!0),O=(0,i.Z)(w,2),j=O[0],k=O[1],R=f.useRef(null),S=f.useRef(null),T=(0,u.sQ)(t,R),M=f.useContext(d.E_).getPrefixCls,z=function(){if(S.current&&R.current){var t=S.current.offsetWidth,n=R.current.offsetWidth;if(0!==t&&0!==n){var r=e.gap,a=void 0===r?4:r;2*a<n&&Z(n-2*a<t?(n-2*a)/t:1)}}};f.useEffect((function(){P(!0)}),[]),f.useEffect((function(){k(!0),Z(1)}),[e.src]),f.useEffect((function(){z()}),[e.gap]);var H,B=e.prefixCls,L=e.shape,_=void 0===L?"circle":L,A=e.size,F=void 0===A?"default":A,I=e.src,D=e.srcSet,U=e.icon,W=e.className,q=e.alt,K=e.draggable,V=e.children,X=e.crossOrigin,G=x(e,["prefixCls","shape","size","src","srcSet","icon","className","alt","draggable","children","crossOrigin"]),Q="default"===F?v:F,Y=Object.keys("object"===(0,o.Z)(Q)&&Q||{}).some((function(e){return["xs","sm","md","lg","xl","xxl"].includes(e)})),J=(0,p.Z)(Y),$=f.useMemo((function(){if("object"!==(0,o.Z)(Q))return{};var e=m.c4.find((function(e){return J[e]})),t=Q[e];return t?{width:t,height:t,lineHeight:"".concat(t,"px"),fontSize:U?t/2:18}:{}}),[J,Q]),ee=M("avatar",B),te=c()((n={},(0,a.Z)(n,"".concat(ee,"-lg"),"large"===Q),(0,a.Z)(n,"".concat(ee,"-sm"),"small"===Q),n)),ne=f.isValidElement(I),re=c()(ee,te,(l={},(0,a.Z)(l,"".concat(ee,"-").concat(_),!!_),(0,a.Z)(l,"".concat(ee,"-image"),ne||I&&j),(0,a.Z)(l,"".concat(ee,"-icon"),!!U),l),W),ae="number"==typeof Q?{width:Q,height:Q,lineHeight:"".concat(Q,"px"),fontSize:U?Q/2:18}:{};if("string"==typeof I&&j)H=f.createElement("img",{src:I,draggable:K,srcSet:D,onError:function(){var t=e.onError;!1!==(t?t():void 0)&&k(!1)},alt:q,crossOrigin:X});else if(ne)H=I;else if(U)H=U;else if(N||1!==b){var oe="scale(".concat(b,") translateX(-50%)"),ie={msTransform:oe,WebkitTransform:oe,transform:oe},le="number"==typeof Q?{lineHeight:"".concat(Q,"px")}:{};H=f.createElement(s.Z,{onResize:z},f.createElement("span",{className:"".concat(ee,"-string"),ref:S,style:(0,r.Z)((0,r.Z)({},le),ie)},V))}else H=f.createElement("span",{className:"".concat(ee,"-string"),style:{opacity:0},ref:S},V);return delete G.onError,delete G.gap,f.createElement("span",(0,r.Z)({},G,{style:(0,r.Z)((0,r.Z)((0,r.Z)({},ae),$),G.style),className:re,ref:T}),H)};var b=f.forwardRef(y),Z=n(52604),C=n(83457),E=n(25515),N=function(e){var t=f.useContext(d.E_),n=t.getPrefixCls,r=t.direction,o=e.prefixCls,i=e.className,l=void 0===i?"":i,s=e.maxCount,u=e.maxStyle,p=e.size,m=n("avatar-group",o),v=c()(m,(0,a.Z)({},"".concat(m,"-rtl"),"rtl"===r),l),g=e.children,x=e.maxPopoverPlacement,y=void 0===x?"top":x,N=e.maxPopoverTrigger,P=void 0===N?"hover":N,w=(0,Z.Z)(g).map((function(e,t){return(0,E.Tm)(e,{key:"avatar-key-".concat(t)})})),O=w.length;if(s&&s<O){var j=w.slice(0,s),k=w.slice(s,O);return j.push(f.createElement(C.Z,{key:"avatar-popover-key",content:k,trigger:P,placement:y,overlayClassName:"".concat(m,"-popover")},f.createElement(b,{style:u},"+".concat(O-s)))),f.createElement(h,{size:p},f.createElement("div",{className:v,style:e.style},j))}return f.createElement(h,{size:p},f.createElement("div",{className:v,style:e.style},w))},P=b;P.Group=N;var w=P},74693:function(){},65623:function(e,t,n){n(27548),n(31581)},83457:function(e,t,n){n.d(t,{Z:function(){return f}});var r=n(60795),a=n(63313),o=n(82259),i=n(15367),l=function(e){return e?"function"==typeof e?e():e:null},c=n(16082),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},u=function(e){var t=e.title,n=e.content,r=e.prefixCls;return t||n?a.createElement(a.Fragment,null,t&&a.createElement("div",{className:"".concat(r,"-title")},l(t)),a.createElement("div",{className:"".concat(r,"-inner-content")},l(n))):null};var f=a.forwardRef((function(e,t){var n=e.prefixCls,l=e.title,f=e.content,d=e._overlay,p=e.placement,m=void 0===p?"top":p,v=e.trigger,h=void 0===v?"hover":v,g=e.mouseEnterDelay,x=void 0===g?.1:g,y=e.mouseLeaveDelay,b=void 0===y?.1:y,Z=e.overlayStyle,C=void 0===Z?{}:Z,E=s(e,["prefixCls","title","content","_overlay","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),N=a.useContext(o.E_).getPrefixCls,P=N("popover",n),w=N();return a.createElement(i.Z,(0,r.Z)({placement:m,trigger:h,mouseEnterDelay:x,mouseLeaveDelay:b,overlayStyle:C},E,{prefixCls:P,ref:t,overlay:d||a.createElement(u,{prefixCls:P,title:l,content:f}),transitionName:(0,c.mL)(w,"zoom-big",E.transitionName)}))}))},31581:function(e,t,n){n(27548)},71770:function(e,t){t.Z=function(e,t){for(var n=Object.assign({},e),r=0;r<t.length;r+=1){delete n[t[r]]}return n}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_whyour_qinglong=self.webpackChunk_whyour_qinglong||[]).push([[419,5812],{38582:function(e,t,a){var r=(0,a(55258).Z)({scriptUrl:["//at.alicdn.com/t/c/font_3354854_ob5y15ewlyq.js"]});t.Z=r},91350:function(e,t,a){a.r(t),a.d(t,{CrontabStatus:function(){return r},OperationName:function(){return n},OperationPath:function(){return l}});var r=function(e){return e[e.running=0]="running",e[e.queued=.5]="queued",e[e.idle=1]="idle",e[e.disabled=2]="disabled",e}({}),n=function(e){return e[e["启用"]=0]="启用",e[e["禁用"]=1]="禁用",e[e["运行"]=2]="运行",e[e["停止"]=3]="停止",e[e["置顶"]=4]="置顶",e[e["取消置顶"]=5]="取消置顶",e}({}),l=function(e){return e[e.enable=0]="enable",e[e.disable=1]="disable",e[e.run=2]="run",e[e.stop=3]="stop",e[e.pin=4]="pin",e[e.unpin=5]="unpin",e}({})},10419:function(e,t,a){a.r(t);var r=a(12342),n=a.n(r),l=a(25359),i=a.n(l),o=a(57213),s=a.n(o),u=a(49811),p=a.n(u),c=a(54306),g=a.n(c),d=a(88265),m=a(63313),h=a(67393),Z=a(28756),P=a(84163),b=a(22159),v=a(24378),f=a(2947),y=a(57229),x=a(15207),k=a(32320),w=a(26839),q=a(38582),j=a(91350),B=a(19631),C=a(11527),S=["key","name"],_=["key","name"],I=[{name:d.ZP.get("命令"),value:"command"},{name:d.ZP.get("名称"),value:"name"},{name:d.ZP.get("定时规则"),value:"schedule"},{name:d.ZP.get("状态"),value:"status",onlySelect:!0},{name:d.ZP.get("标签"),value:"labels"},{name:d.ZP.get("订阅"),value:"sub_id",onlySelect:!0}],K={Reg:"",NotReg:"",In:"select",Nin:"select"},R=[{name:d.ZP.get("包含"),value:"Reg"},{name:d.ZP.get("不包含"),value:"NotReg"},{name:d.ZP.get("属于"),value:"In",type:"select"},{name:d.ZP.get("不属于"),value:"Nin",type:"select"}],T=[{name:d.ZP.get("顺序"),value:"ASC"},{name:d.ZP.get("倒序"),value:"DESC"}],A=function(e){return e.and="且",e.or="或",e}(A||{});t.default=function(e){var t=e.view,a=e.handleCancel,r=e.visible,l=h.Z.useForm(),o=g()(l,1)[0],u=(0,m.useState)(!1),c=g()(u,2),U=c[0],H=c[1],N=(0,m.useState)("and"),X=g()(N,2),W=X[0],O=X[1],E=h.Z.useWatch("filters",o),M=(0,B.Z)((function(){return y.W.get("".concat(x.Z.apiPrefix,"subscriptions"))}),{cacheKey:"subscriptions"}).data,G={status:[{name:d.ZP.get("运行中"),value:j.CrontabStatus.running},{name:d.ZP.get("空闲中"),value:j.CrontabStatus.idle},{name:d.ZP.get("已禁用"),value:j.CrontabStatus.disabled}],sub_id:null==M?void 0:M.data.map((function(e){return{name:e.name,value:e.id}}))},D=function(){var e=p()(i()().mark((function e(r){var n,l,o,u;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return H(!0),r.filterRelation=W,n=t?"put":"post",e.prev=3,e.next=6,y.W[n]("".concat(x.Z.apiPrefix,"crons/views"),t?s()(s()({},r),{},{id:t.id}):r);case 6:l=e.sent,o=l.code,u=l.data,200===o&&a(u),H(!1),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),H(!1);case 16:case"end":return e.stop()}}),e,null,[[3,13]])})));return function(t){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){t||o.resetFields(),o.setFieldsValue(t||{filters:[{property:"command"}]})}),[t,r]);var Q=function(e){var t=e.name,a=o.getFieldValue(["filters",t,"property"]);return(0,C.jsx)(Z.Z,{style:{width:120},placeholder:d.ZP.get("请选择操作符"),children:R.filter((function(e){return G[a]?"select"===e.type:e})).map((function(e){return(0,C.jsx)(Z.Z.Option,{value:e.value,children:e.name},e.name)}))})},F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,C.jsx)(Z.Z,{style:t,children:e.map((function(e){return(0,C.jsx)(Z.Z.Option,{value:e.value,children:e.name},e.name)}))})},L=(0,C.jsx)(Z.Z,{style:{width:80},children:T.map((function(e){return(0,C.jsx)(Z.Z.Option,{value:e.value,children:e.name},e.name)}))});return(0,C.jsx)(P.Z,{title:t?d.ZP.get("编辑视图"):d.ZP.get("创建视图"),open:r,forceRender:!0,width:580,centered:!0,maskClosable:!1,onOk:function(){o.validateFields().then((function(e){D(e)})).catch((function(e){console.log("Validate Failed:",e)}))},onCancel:function(){return a()},confirmLoading:U,children:(0,C.jsxs)(h.Z,{form:o,layout:"vertical",name:"env_modal",children:[(0,C.jsx)(h.Z.Item,{name:"name",label:d.ZP.get("视图名称"),rules:[{required:!0,message:d.ZP.get("请输入视图名称")}],children:(0,C.jsx)(b.Z,{placeholder:d.ZP.get("请输入视图名称")})}),(0,C.jsx)(h.Z.List,{name:"filters",children:function(e,t,a){var r=t.add,l=t.remove,i=a.errors;return(0,C.jsxs)("div",{style:{position:"relative"},className:"view-filters-container ".concat(e.length>1?"active":""),children:[e.length>1&&(0,C.jsx)("div",{style:{position:"absolute",width:50,borderRadius:10,border:"1px solid rgb(190, 220, 255)",borderRight:"none",height:56*(e.length-1),top:46,left:15},children:(0,C.jsx)(v.Z,{type:"primary",size:"small",style:{position:"absolute",top:"50%",translate:"-50% -50%",padding:"0 3px",cursor:"pointer"},onClick:function(){O("and"===W?"or":"and")},children:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("span",{children:A[W]}),(0,C.jsx)(q.Z,{type:"ql-icon-d-caret"})]})})}),(0,C.jsxs)("div",{children:[e.map((function(e){var t,a,r=e.key,i=e.name,o=n()(e,S);return(0,C.jsx)(h.Z.Item,{label:0===i?d.ZP.get("筛选条件"):"",style:{marginBottom:0},required:!0,className:"filter-item",children:(0,C.jsxs)(f.Z,{className:"view-create-modal-filters",align:"baseline",children:[(0,C.jsx)(h.Z.Item,s()(s()({},o),{},{name:[i,"property"],rules:[{required:!0}],children:F(I,{width:120})})),(0,C.jsx)(h.Z.Item,s()(s()({},o),{},{name:[i,"operation"],rules:[{required:!0,message:d.ZP.get("请选择操作符")}],children:(0,C.jsx)(Q,{name:i})})),(0,C.jsx)(h.Z.Item,s()(s()({},o),{},{name:[i,"value"],rules:[{required:!0,message:d.ZP.get("请输入内容")}],children:"select"===K[null==E?void 0:E[i].operation]?(t=null==E?void 0:E[i].property,(0,C.jsx)(Z.Z,{mode:"tags",allowClear:!0,placeholder:d.ZP.get("输入后回车增加自定义选项"),children:null===(a=G[t])||void 0===a?void 0:a.map((function(e){return(0,C.jsx)(Z.Z.Option,{value:e.value,children:e.name},e.name)}))})):(0,C.jsx)(b.Z,{placeholder:d.ZP.get("请输入内容")})})),0!==i&&(0,C.jsx)(k.Z,{onClick:function(){return l(i)}})]})},r)})),(0,C.jsx)(h.Z.Item,{children:(0,C.jsxs)("a",{onClick:function(){return r({property:"command",operation:"Reg"})},children:[(0,C.jsx)(w.Z,{}),d.ZP.get("新增筛选条件")]})}),(0,C.jsx)(h.Z.ErrorList,{errors:i})]})]})}}),(0,C.jsx)(h.Z.List,{name:"sorts",children:function(e,t,a){var r=t.add,l=t.remove,i=a.errors;return(0,C.jsxs)("div",{style:{position:"relative"},className:"view-filters-container ".concat(e.length>1?"active":""),children:[e.length>1&&(0,C.jsx)("div",{style:{position:"absolute",width:50,borderRadius:10,border:"1px solid rgb(190, 220, 255)",borderRight:"none",height:56*(e.length-1),top:46,left:15},children:(0,C.jsx)(v.Z,{type:"primary",size:"small",style:{position:"absolute",top:"50%",translate:"-50% -50%",padding:"0 3px",cursor:"pointer"},children:(0,C.jsx)(C.Fragment,{children:(0,C.jsx)("span",{children:A[W]})})})}),(0,C.jsxs)("div",{children:[e.map((function(e){var t=e.key,a=e.name,r=n()(e,_);return(0,C.jsx)(h.Z.Item,{label:0===a?d.ZP.get("排序方式"):"",style:{marginBottom:0},className:"filter-item",children:(0,C.jsxs)(f.Z,{className:"view-create-modal-sorts",align:"baseline",children:[(0,C.jsx)(h.Z.Item,s()(s()({},r),{},{name:[a,"property"],rules:[{required:!0}],children:F(I)})),(0,C.jsx)(h.Z.Item,s()(s()({},r),{},{name:[a,"type"],rules:[{required:!0}],children:L})),(0,C.jsx)(k.Z,{onClick:function(){return l(a)}})]})},t)})),(0,C.jsx)(h.Z.Item,{children:(0,C.jsxs)("a",{onClick:function(){return r({property:"command",type:"ASC"})},children:[(0,C.jsx)(w.Z,{}),d.ZP.get("新增排序方式")]})}),(0,C.jsx)(h.Z.ErrorList,{errors:i})]})]})}})]})})}},15207:function(e,t,a){var r=a(88265),n=window.__ENV__QlBaseUrl||"/";t.Z={siteName:r.ZP.get("青龙"),apiPrefix:"".concat(n,"api/"),authKey:"token",layouts:[{name:"primary",include:[/.*/],exclude:[/(\/(en|zh))*\/login/]}],i18n:{languages:[{key:"pt-br",title:"Português",flag:"/portugal.svg"},{key:"en",title:"English",flag:"/america.svg"},{key:"zh",title:r.ZP.get("中文"),flag:"/china.svg"}],defaultLanguage:"en"},scopes:[{name:r.ZP.get("定时任务"),value:"crons"},{name:r.ZP.get("环境变量"),value:"envs"},{name:r.ZP.get("订阅管理"),value:"subscriptions"},{name:r.ZP.get("配置文件"),value:"configs"},{name:r.ZP.get("脚本管理"),value:"scripts"},{name:r.ZP.get("日志管理"),value:"logs"},{name:r.ZP.get("依赖管理"),value:"dependencies"},{name:r.ZP.get("系统信息"),value:"system"}],scopesMap:{crons:r.ZP.get("定时任务"),envs:r.ZP.get("环境变量"),subscriptions:r.ZP.get("订阅管理"),configs:r.ZP.get("配置文件"),scripts:r.ZP.get("脚本管理"),logs:r.ZP.get("日志管理"),dependencies:r.ZP.get("依赖管理"),system:r.ZP.get("系统信息")},notificationModes:[{value:"gotify",label:"Gotify"},{value:"goCqHttpBot",label:"GoCqHttpBot"},{value:"serverChan",label:r.ZP.get("Server酱")},{value:"pushDeer",label:"PushDeer"},{value:"bark",label:"Bark"},{value:"telegramBot",label:r.ZP.get("Telegram机器人")},{value:"dingtalkBot",label:r.ZP.get("钉钉机器人")},{value:"weWorkBot",label:r.ZP.get("企业微信机器人")},{value:"weWorkApp",label:r.ZP.get("企业微信应用")},{value:"aibotk",label:r.ZP.get("智能微秘书")},{value:"iGot",label:"IGot"},{value:"pushPlus",label:"PushPlus"},{value:"chat",label:r.ZP.get("群晖chat")},{value:"email",label:r.ZP.get("邮箱")},{value:"lark",label:r.ZP.get("飞书机器人")},{value:"pushMe",label:"PushMe"},{value:"webhook",label:r.ZP.get("自定义通知")},{value:"closed",label:r.ZP.get("已关闭")}],notificationModeMap:{gotify:[{label:"gotifyUrl",tip:r.ZP.get("gotify的url地址,例如 https://push.example.de:8080"),required:!0},{label:"gotifyToken",tip:r.ZP.get("gotify的消息应用token码"),required:!0},{label:"gotifyPriority",tip:r.ZP.get("推送消息的优先级")}],chat:[{label:"chatUrl",tip:r.ZP.get("chat的url地址"),required:!0},{label:"chatToken",tip:r.ZP.get("chat的token码"),required:!0}],goCqHttpBot:[{label:"goCqHttpBotUrl",tip:r.ZP.get("推送到个人QQ: http://127.0.0.1/send_private_msg,群:http://127.0.0.1/send_group_msg"),required:!0},{label:"goCqHttpBotToken",tip:r.ZP.get("访问密钥"),required:!0},{label:"goCqHttpBotQq",tip:r.ZP.get("如果GOBOT_URL设置 /send_private_msg 则需要填入 user_id=个人QQ 相反如果是 /send_group_msg 则需要填入 group_id=QQ群"),required:!0}],serverChan:[{label:"serverChanKey",tip:r.ZP.get("Server酱SENDKEY"),required:!0}],pushDeer:[{label:"pushDeerKey",tip:r.ZP.get("PushDeer的Key,https://github.com/easychen/pushdeer"),required:!0},{label:"pushDeerUrl",tip:r.ZP.get("PushDeer的自架API endpoint,默认是 https://api2.pushdeer.com/message/push")}],bark:[{label:"barkPush",tip:r.ZP.get("Bark的信息IP/设备码,例如:https://api.day.app/XXXXXXXX"),required:!0},{label:"barkIcon",tip:r.ZP.get("BARK推送图标,自定义推送图标 (需iOS15或以上才能显示)")},{label:"barkSound",tip:r.ZP.get("BARK推送铃声,铃声列表去APP查看复制填写")},{label:"barkGroup",tip:r.ZP.get("BARK推送消息的分组,默认为qinglong")},{label:"barkLevel",tip:r.ZP.get("BARK推送消息的时效性,默认为active")},{label:"barkUrl",tip:r.ZP.get("BARK推送消息的跳转URL")}],telegramBot:[{label:"telegramBotToken",tip:r.ZP.get("telegram机器人的token,例如:1077xxx4424:AAFjv0FcqxxxxxxgEMGfi22B4yh15R5uw"),required:!0},{label:"telegramBotUserId",tip:r.ZP.get("telegram用户的id,例如:129xxx206"),required:!0},{label:"telegramBotProxyHost",tip:r.ZP.get("代理IP")},{label:"telegramBotProxyPort",tip:r.ZP.get("代理端口")},{label:"telegramBotProxyAuth",tip:r.ZP.get("telegram代理配置认证参数,用户名与密码用英文冒号连接 user:password")},{label:"telegramBotApiHost",tip:r.ZP.get("telegram api自建的反向代理地址,默认tg官方api")}],dingtalkBot:[{label:"dingtalkBotToken",tip:r.ZP.get("钉钉机器人webhook token,例如:5a544165465465645d0f31dca676e7bd07415asdasd"),required:!0},{label:"dingtalkBotSecret",tip:r.ZP.get("密钥,机器人安全设置页面,加签一栏下面显示的SEC开头的字符串")}],weWorkBot:[{label:"weWorkBotKey",tip:r.ZP.get("企业微信机器人的webhook(详见文档 https://work.weixin.qq.com/api/doc/90000/90136/91770),例如:693a91f6-7xxx-4bc4-97a0-0ec2sifa5aaa"),required:!0},{label:"weWorkOrigin",tip:r.ZP.get("企业微信代理地址")}],weWorkApp:[{label:"weWorkAppKey",tip:r.ZP.get("corpid、corpsecret、touser(注:多个成员ID使用|隔开)、agentid、消息类型(选填,不填默认文本消息类型) 注意用,号隔开(英文输入法的逗号),例如:wwcfrs,B-76WERQ,qinglong,1000001,2COat"),required:!0},{label:"weWorkOrigin",tip:r.ZP.get("企业微信代理地址")}],aibotk:[{label:"aibotkKey",tip:r.ZP.get("密钥key,智能微秘书个人中心获取apikey,申请地址:https://wechat.aibotk.com/signup?from=ql"),required:!0},{label:"aibotkType",tip:r.ZP.get("发送的目标,群组或者好友"),required:!0,placeholder:r.ZP.get("请输入要发送的目标"),items:[{value:"room",label:r.ZP.get("群聊")},{value:"contact",label:r.ZP.get("好友")}]},{label:"aibotkName",tip:r.ZP.get("要发送的用户昵称或群名,如果目标是群,需要填群名,如果目标是好友,需要填好友昵称"),required:!0}],iGot:[{label:"iGotPushKey",tip:r.ZP.get("iGot的信息推送key,例如:https://push.hellyw.com/XXXXXXXX"),required:!0}],pushPlus:[{label:"pushPlusToken",tip:r.ZP.get("微信扫码登录后一对一推送或一对多推送下面的token(您的Token),不提供PUSH_PLUS_USER则默认为一对一推送,参考 https://www.pushplus.plus/"),required:!0},{label:"pushPlusUser",tip:r.ZP.get("一对多推送的“群组编码”(一对多推送下面->您的群组(如无则创建)->群组编码,如果您是创建群组人。也需点击“查看二维码”扫描绑定,否则不能接受群组消息推送)")}],lark:[{label:"larkKey",tip:r.ZP.get("飞书群组机器人:https://www.feishu.cn/hc/zh-CN/articles/360024984973"),required:!0}],email:[{label:"emailService",tip:r.ZP.get("邮箱服务名称,比如126、163、Gmail、QQ等,支持列表https://nodemailer.com/smtp/well-known/"),required:!0},{label:"emailUser",tip:r.ZP.get("邮箱地址"),required:!0},{label:"emailPass",tip:r.ZP.get("邮箱SMTP授权码"),required:!0}],pushMe:[{label:"pushMeKey",tip:r.ZP.get("PushMe的Key,https://push.i-i.me/"),required:!0}],webhook:[{label:"webhookMethod",tip:r.ZP.get("请求方法"),required:!0,items:[{value:"GET"},{value:"POST"},{value:"PUT"}]},{label:"webhookContentType",tip:r.ZP.get("请求头Content-Type"),required:!0,items:[{value:"application/json"},{value:"multipart/form-data"},{value:"application/x-www-form-urlencoded"}]},{label:"webhookUrl",tip:r.ZP.get("请求链接以http或者https开头。url或者body中必须包含$title,$content可选,对应api内容的位置"),required:!0,placeholder:"https://xxx.cn/api?content=$title\n"},{label:"webhookHeaders",tip:r.ZP.get("请求头格式Custom-Header1: Header1,多个换行分割"),placeholder:"Custom-Header1: Header1\nCustom-Header2: Header2"},{label:"webhookBody",tip:r.ZP.get("请求体格式key1: value1,多个换行分割。url或者body中必须包含$title,$content可选,对应api内容的位置"),placeholder:"key1: $title\nkey2: $content"}]},documentTitleMap:{"/login":r.ZP.get("登录"),"/initialization":r.ZP.get("初始化"),"/crontab":r.ZP.get("定时任务"),"/env":r.ZP.get("环境变量"),"/subscription":r.ZP.get("订阅管理"),"/config":r.ZP.get("配置文件"),"/script":r.ZP.get("脚本管理"),"/diff":r.ZP.get("对比工具"),"/log":r.ZP.get("日志管理"),"/setting":r.ZP.get("系统设置"),"/error":r.ZP.get("错误日志"),"/dependence":r.ZP.get("依赖管理")},dependenceTypes:["nodejs","python3","linux"]}},57229:function(e,t,a){a.d(t,{W:function(){return h}});var r=a(25359),n=a.n(r),l=a(49811),i=a.n(l),o=a(88265),s=a(9835),u=a(15207),p=a(14851),c=a(73669);s.ZP.config({duration:2});var g=Date.now(),d=c.Z.create({timeout:6e4,params:{t:g}}),m=["/api/user/login","/open/auth/token","/api/user/two-factor/login","/api/system","/api/user/init","/api/user/notification/init"];d.interceptors.request.use((function(e){var t=localStorage.getItem(u.Z.authKey);return t&&!m.includes(e.url)?(e.headers.Authorization="Bearer ".concat(t),e):e})),d.interceptors.response.use(function(){var e=i()(n()().mark((function e(t){var a,r,l;return n()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.status,![502,504].includes(a)){e.next=5;break}p.history.push("/error"),e.next=18;break;case 5:if(401!==a){e.next=9;break}"/login"!==p.history.location.pathname&&(localStorage.removeItem(u.Z.authKey),p.history.push("/login")),e.next=18;break;case 9:return e.prev=9,200!==(r=t.data).code&&(l=r.message||r.data)&&s.ZP.error({content:l,style:{maxWidth:500,margin:"0 auto"}}),e.abrupt("return",r);case 15:e.prev=15,e.t0=e.catch(9);case 17:case 18:return e.abrupt("return",t);case 19:case"end":return e.stop()}}),e,null,[[9,15]])})));return function(t){return e.apply(this,arguments)}}(),(function(e){if(e.response){var t=e.response.data?e.response.data.message||e.message||e.response.data:e.response.statusText,a=e.response.status;[502,504].includes(a)?p.history.push("/error"):401===a?"/login"!==p.history.location.pathname&&(s.ZP.error(o.ZP.get("登录已过期,请重新登录")),localStorage.removeItem(u.Z.authKey),p.history.push("/login")):s.ZP.error({content:t,style:{maxWidth:500,margin:"0 auto"}})}else console.log(e.message);return Promise.reject(e)}));var h=d}}]);
|