From 2386142061923d5e2d0e3c66fcc5e5ea0714e19b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E5=8A=A8=E7=89=A9?= <15294745236@163.com> Date: Sun, 25 Aug 2024 19:34:12 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=E5=AE=8C=E5=96=84=E5=B0=8F=E7=AA=97?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/assets/content-i4Tcqm5Z.css | 1 + dist/assets/contentPage-5JqfvJ4U.css | 1 + dist/assets/contentPage-BTHtxcPd.css | 1 + dist/assets/contentPage-BV2zDvp8.css | 2 +- dist/assets/contentPage-i4Tcqm5Z.css | 1 + dist/assets/popup-B5x5mmtl.css | 1 + dist/assets/popup-BQ7USjSk.css | 1 + dist/assets/popup-D9HIifOd.css | 1 + dist/assets/popup-Dd9aUuyz.css | 1 + dist/assets/popup-HH6Qpvam.css | 1 + dist/assets/popup-lKr-Mg4C.css | 1 + dist/content/content.js | 21 +- dist/contentPage/contentPage.js | 62 +- dist/contentPage/index.html | 4 +- dist/js/client-ko8MLNCr.js | 40 + dist/popup/index.html | 4 +- dist/popup/popup.js | 2 +- src/assets/Drag.png | Bin 0 -> 632 bytes src/assets/react.svg | 1 - src/const/iframe.ts | 2 +- src/content/content.ts | 71 +- src/contentPage/App.css | 6 +- src/contentPage/App.tsx | 10 - src/contentPage/main.tsx | 3 +- src/popup/App.css | 77 +- src/popup/App.tsx | 19 +- style/a.html | 102 +++ style/a.scss | 1158 ++++++++++++++++++++++++++ 28 files changed, 1477 insertions(+), 117 deletions(-) create mode 100644 dist/assets/content-i4Tcqm5Z.css create mode 100644 dist/assets/contentPage-5JqfvJ4U.css create mode 100644 dist/assets/contentPage-BTHtxcPd.css create mode 100644 dist/assets/contentPage-i4Tcqm5Z.css create mode 100644 dist/assets/popup-B5x5mmtl.css create mode 100644 dist/assets/popup-BQ7USjSk.css create mode 100644 dist/assets/popup-D9HIifOd.css create mode 100644 dist/assets/popup-Dd9aUuyz.css create mode 100644 dist/assets/popup-HH6Qpvam.css create mode 100644 dist/assets/popup-lKr-Mg4C.css create mode 100644 dist/js/client-ko8MLNCr.js create mode 100644 src/assets/Drag.png delete mode 100644 src/assets/react.svg create mode 100644 style/a.html create mode 100644 style/a.scss diff --git a/dist/assets/content-i4Tcqm5Z.css b/dist/assets/content-i4Tcqm5Z.css new file mode 100644 index 0000000..31293b5 --- /dev/null +++ b/dist/assets/content-i4Tcqm5Z.css @@ -0,0 +1 @@ +#app{width:261px;margin:5px auto 0;height:300px;padding:10px;background-color:#fff;border-radius:5px;box-shadow:0 0 7px 1px #a5a5a5}*{margin:0;padding:0} diff --git a/dist/assets/contentPage-5JqfvJ4U.css b/dist/assets/contentPage-5JqfvJ4U.css new file mode 100644 index 0000000..b1defa7 --- /dev/null +++ b/dist/assets/contentPage-5JqfvJ4U.css @@ -0,0 +1 @@ +#app{width:261px;margin:5px auto 0;height:376px;padding:10px;background-color:#fff;border-radius:5px;box-shadow:0 0 7px 1px #a5a5a5}*{margin:0;padding:0} diff --git a/dist/assets/contentPage-BTHtxcPd.css b/dist/assets/contentPage-BTHtxcPd.css new file mode 100644 index 0000000..07c3512 --- /dev/null +++ b/dist/assets/contentPage-BTHtxcPd.css @@ -0,0 +1 @@ +#app{width:261px;margin:5px auto 0;height:300px;padding:10px;background-color:#fff;border-radius:30px;background:#e0e0e0;box-shadow:15px 15px 30px #bebebe,-15px -15px 30px #fff}*{margin:0;padding:0} diff --git a/dist/assets/contentPage-BV2zDvp8.css b/dist/assets/contentPage-BV2zDvp8.css index 8aaae69..171291b 100644 --- a/dist/assets/contentPage-BV2zDvp8.css +++ b/dist/assets/contentPage-BV2zDvp8.css @@ -1 +1 @@ -#app{width:300px;margin:0 auto;height:300px;padding:5px;background-color:#fff;border-radius:3px;box-shadow:0 0 7px 1px #a5a5a5}#drag-icon{height:30px;width:280px;margin:0 auto;text-align:center}*{margin:0;padding:0} +#app{width:300px;margin:0 auto;height:300px;padding:5px;background-color:#fff;border-radius:5px;box-shadow:0 0 7px 1px #a5a5a5}#drag-icon{height:30px;width:280px;margin:0 auto;text-align:center}*{margin:0;padding:0} diff --git a/dist/assets/contentPage-i4Tcqm5Z.css b/dist/assets/contentPage-i4Tcqm5Z.css new file mode 100644 index 0000000..31293b5 --- /dev/null +++ b/dist/assets/contentPage-i4Tcqm5Z.css @@ -0,0 +1 @@ +#app{width:261px;margin:5px auto 0;height:300px;padding:10px;background-color:#fff;border-radius:5px;box-shadow:0 0 7px 1px #a5a5a5}*{margin:0;padding:0} diff --git a/dist/assets/popup-B5x5mmtl.css b/dist/assets/popup-B5x5mmtl.css new file mode 100644 index 0000000..9f91e64 --- /dev/null +++ b/dist/assets/popup-B5x5mmtl.css @@ -0,0 +1 @@ +#app{width:100px;height:200px;border-radius:10px}.normal label{background:#af4c4c;border:.5px solid rgba(117,117,117,.31);box-shadow:inset 0 0 4px #0003,0 -3px 4px #00000026}.normal label:before{border:none;width:40px;height:40px;box-shadow:inset .5px -1px 1px #00000059;background:#fff;transform:rotate(-25deg)}.normal label:after{background:transparent;height:calc(100% + 8px);border-radius:30px;top:-5px;width:calc(100% + 8px);left:-4px;z-index:0;box-shadow:inset 0 2px 4px -2px #0003,0 1px 2px #97979733}#normal:checked+label{background:#4caf50}#normal:checked+label:before{left:67px}.toggle{position:relative;display:inline-block}label.toggle-item{width:111px;background:#2e394d;height:48px;display:inline-block;border-radius:50px;position:relative;transition:all .3s ease;transform-origin:20% center;cursor:pointer}label.toggle-item:before{display:block;width:40px;height:40px;top:3px;left:4px;border-radius:50%;border:2px solid #88cf8f;transition:.3s ease}*:before,*:after{content:"";position:absolute} diff --git a/dist/assets/popup-BQ7USjSk.css b/dist/assets/popup-BQ7USjSk.css new file mode 100644 index 0000000..bd398f9 --- /dev/null +++ b/dist/assets/popup-BQ7USjSk.css @@ -0,0 +1 @@ +#app{width:100px;height:200px;border-radius:10px} diff --git a/dist/assets/popup-D9HIifOd.css b/dist/assets/popup-D9HIifOd.css new file mode 100644 index 0000000..4b0e0f1 --- /dev/null +++ b/dist/assets/popup-D9HIifOd.css @@ -0,0 +1 @@ +#app{width:100px;height:200px;border-radius:10px}.normal label{background:#af4c4c;border:.5px solid rgba(117,117,117,.31);box-shadow:inset 0 0 4px #0003,0 -3px 4px #00000026}.normal label:before{border:none;width:40px;height:40px;box-shadow:inset .5px -1px 1px #00000059;background:#fff;transform:rotate(-25deg)}.normal label:after{background:transparent;height:calc(100% + 8px);border-radius:30px;top:-5px;width:calc(100% + 8px);left:-4px;z-index:0;box-shadow:inset 0 2px 4px -2px #0003,0 1px 2px #97979733}#normal:checked+label{background:#4caf50}#normal:checked+label:before{left:67px}.toggle{position:relative;display:inline-block}label.toggle-item{width:111px;background:#2e394d;height:48px;display:inline-block;border-radius:50px;position:relative;transition:all .3s ease;transform-origin:20% center;cursor:pointer}label.toggle-item:before{display:block;width:40px;height:40px;top:3px;left:4px;border-radius:50%;border:2px solid #88cf8f;transition:.3s ease}*:before,*:after{content:"";position:absolute}#normal{display:none} diff --git a/dist/assets/popup-Dd9aUuyz.css b/dist/assets/popup-Dd9aUuyz.css new file mode 100644 index 0000000..4bf2eda --- /dev/null +++ b/dist/assets/popup-Dd9aUuyz.css @@ -0,0 +1 @@ +#app{width:100px;height:200px;border-radius:10px}.normal label{background:#af4c4c;border:.5px solid rgba(117,117,117,.31);box-shadow:inset 0 0 4px #0003,0 -3px 4px #00000026}.normal label:before{border:none;width:40px;height:40px;box-shadow:inset .5px -1px 1px #00000059;background:#fff;transform:rotate(-25deg)}.normal label:after{background:transparent;height:calc(100% + 8px);border-radius:30px;top:-5px;width:calc(100% + 8px);left:-4px;z-index:0;box-shadow:inset 0 2px 4px -2px #0003,0 1px 2px #97979733}#normal:checked+label{background:#4caf50}#normal:checked+label:before{left:67px}.toggle{position:relative;display:inline-block}label.toggle-item{width:111px;background:#2e394d;height:48px;display:inline-block;border-radius:50px;position:relative;transition:all .3s ease;transform-origin:20% center;cursor:pointer}label.toggle-item:before{display:block;width:40px;height:40px;top:3px;left:4px;border-radius:50%;border:2px solid #88cf8f;transition:.3s ease} diff --git a/dist/assets/popup-HH6Qpvam.css b/dist/assets/popup-HH6Qpvam.css new file mode 100644 index 0000000..e88a1e8 --- /dev/null +++ b/dist/assets/popup-HH6Qpvam.css @@ -0,0 +1 @@ +#app{width:100px;height:200px;border-radius:50px;background:#e0e0e0;box-shadow:20px 20px 60px #bebebe,-20px -20px 60px #fff} diff --git a/dist/assets/popup-lKr-Mg4C.css b/dist/assets/popup-lKr-Mg4C.css new file mode 100644 index 0000000..fce92c6 --- /dev/null +++ b/dist/assets/popup-lKr-Mg4C.css @@ -0,0 +1 @@ +#app{width:100px;height:200px;border-radius:10px}.normal label{background:#af4c4c;border:.5px solid rgba(117,117,117,.31);box-shadow:inset 0 0 4px #0003,0 -3px 4px #00000026}.normal label:before{border:none;width:40px;height:40px;box-shadow:inset .5px -1px 1px #00000059;background:#fff;transform:rotate(-25deg)}.normal label:after{background:transparent;height:calc(100% + 8px);border-radius:30px;top:-5px;width:calc(100% + 8px);left:-4px;z-index:0;box-shadow:inset 0 2px 4px -2px #0003,0 1px 2px #97979733}#normal:checked+label{background:#4caf50}#normal:checked+label:before{left:67px}.toggle{position:relative;display:inline-block}label.toggle-item{width:111px;background:#2e394d;height:48px;display:inline-block;border-radius:50px;position:relative;transition:all .3s ease;transform-origin:20% center;cursor:pointer}label.toggle-item:before{display:block;width:40px;height:40px;top:3px;left:4px;border-radius:50%;border:2px solid #88cf8f;transition:.3s ease}*:before,*:after{content:"";position:absolute}label{display:none} diff --git a/dist/content/content.js b/dist/content/content.js index 984d5cc..c06660f 100644 --- a/dist/content/content.js +++ b/dist/content/content.js @@ -1,11 +1,16 @@ -var n=(o=>(o.close="closeMeasureTool",o.open="openMeasureTool",o))(n||{});const s={height:"400px",width:"300px"},t="inject-D"+Date.now().toString(),r=` - .${t}{ +var i=(e=>(e.close="closeMeasureTool",e.open="openMeasureTool",e))(i||{});const a={height:"333px",width:"300px"},h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAjJJREFUaEPtmd1VAjEQhTN0IFoAPkAdWInyKBShFiE+qpVgHfDgFqBbAvEE3J8smfxMZtA9Z3mE3eR+2eTOnQVUzz/Qc/1KDODqZTffa/16WCAN7+Vq+iixWCIAR/Fq0wjWhRQEO8Cp+ApDBoIVABcvB8EGEBYvA8ECEC+eHyIbIF18AwFaPX2vZm857pQNMF5vP5WCSVvECNSN7UJKgdYLDXC01fqji3I5u/5XAEb81/30Y7ze6bawcjmFy+ftXRfCfP+nAI0oXYwAFka8EeQCMN9j11Mhsuh9k2IAVKHYfQMAtjLDE4jca8Et1Pi8LlJ8m/oE2vPFBEAvgCtVxvo2FcCuK+EAiAJgFTbWt3kADs2EN4o7ATDxVZGK2Z5UAFex80GcAHCI9xWyGPgUCAuAS3wugF2x7ezUPdg1AD1Vxqwp5zW2G9YArlTJOS3vWE2KrQEu1rsNKDXnnUhqNAeA++BICcgbt+2G1iFOOf0hCVQbrcaNNZQTG+WCyAGIFW9gnYUMgzhvFrKfMVZE0SiBQZw3Cx0hfAnAG+ZyeljqFuraeSi+BOM0tYelAqTOFwQIuc3QkVFX6Pe+4Qn0fgthPSx2iKk9tth7IayHdQHk9NhnAmh6WAXqoT2p64Wv+T22xxYDQLNT5421S0CoSMUYFIsLUaI4h3g0zMWQd69JgeASzwpgBouB4BTPDhCC4BYvAoBBSIgXA6gg9gC3oPSk/c8N5Xz57mFxIW5RKeP1HuAHwGT8QByJd+kAAAAASUVORK5CYII=",n="inject-D"+Date.now().toString(),p=` + .${n}{ outline: 1px solid red; } -`;let i=null;const c=o=>{let e=document.elementFromPoint(o.clientX,o.clientY);e&&e.tagName==="IFRAME"||e!==i&&(i&&i.classList.remove(t),i=e,e&&e.classList.add(t))},d=o=>{n.open?window.addEventListener("mousemove",c):n.close&&window.removeEventListener("mousemove",c)},m=o=>{if(o==n.open){const e=document.querySelector(t)||window.document.createElement("style");e.className=t,e.innerHTML=r,window.document.head.appendChild(e)}else if(o==n.close){const e=document.querySelector("."+t);e&&e.remove()}},a=o=>{if(o==n.open){const e=document.querySelector("#"+t)||document.createElement("iframe");e.id=t,e.style.cssText=`width: ${s.width}; - height: ${s.height}; - position: fixed; - z-index: 10000002; +`;let c=null,d=!1,s=null,A=null,r=!1;const m=e=>{if(d&&s&&(s.style.top=e.clientY+"px",s.style.left=e.clientX+"px"),r)return;let t=document.elementFromPoint(e.clientX,e.clientY);t&&(t.tagName==="IFRAME"||t.id===n||t.id===n+"-")||t!==c&&(c&&c.classList.remove(n),c=t,t&&t.classList.add(n),A=t)},u=e=>{(window.event?e.keyCode:e.which)===81&&(r=!r,r||(A=null),console.log(A))},E=e=>{i.open?window.addEventListener("mousemove",m):i.close&&window.removeEventListener("mousemove",m)},f=e=>{if(e==i.open){window.document.body.addEventListener("keydown",u);const t=document.querySelector(n)||window.document.createElement("style");t.className=n,t.innerHTML=p,window.document.head.appendChild(t)}else if(e==i.close){window.document.body.removeEventListener("keydown",u);const t=document.querySelector("."+n);t&&t.remove()}},w=e=>{if(e==i.open){const t=document.querySelector("#"+n)||document.createElement("iframe");t.id=n,t.style.cssText=`width: ${a.width}; + height: ${a.height}; border: none; - top: 10px; - left: 10px;`;const l=chrome.runtime.getURL("contentPage/index.html");e.src=l,document.body.appendChild(e)}else o==n.close&&document.querySelector(`#${t}`)&&document.querySelector(`#${t}`).remove()};chrome.runtime.onMessage.addListener(o=>{m(o.info),d(o.info),a(o.info)}); + `;const g=chrome.runtime.getURL("contentPage/index.html");t.src=g;let l=document.createElement("div");l.id=n,l.style.cssText=`position: fixed; + z-index: 1000000; + top: 10px; + left: 10px; + padding: 10px;`;let o=document.createElement("img");o.src=h,o.id=n+"-",o.style.cssText=`width: 20px; + height: 20px; + position: absolute; + top: 0px; + left: 0px;`,l.appendChild(o),l.appendChild(t),document.body.appendChild(l),s=l,o.onclick=()=>{d=!d,d?o.style.cursor="grabbing":o.style.cursor="grab"}}else e==i.close&&document.querySelector(`#${n}`)&&document.querySelector(`#${n}`).remove()};chrome.runtime.onMessage.addListener(e=>{f(e.info),E(e.info),w(e.info)}); diff --git a/dist/contentPage/contentPage.js b/dist/contentPage/contentPage.js index 5c74426..845fa68 100644 --- a/dist/contentPage/contentPage.js +++ b/dist/contentPage/contentPage.js @@ -1,61 +1 @@ -import{r as b,g as Se,R as q,j as h,c as ke}from"../js/client-C9r4PM53.js";var oe=b.createContext({});function E(){return E=Object.assign?Object.assign.bind():function(e){for(var n=1;ne.length)&&(n=e.length);for(var r=0,t=Array(n);r1)&&(e=1),e}function O(e){return e<=1?"".concat(Number(e)*100,"%"):e}function P(e){return e.length===1?"0"+e:String(e)}function _e(e,n,r){return{r:g(e,255)*255,g:g(n,255)*255,b:g(r,255)*255}}function I(e,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(n-e)*(6*r):r<1/2?n:r<2/3?e+(n-e)*(2/3-r)*6:e}function De(e,n,r){var t,o,a;if(e=g(e,360),n=g(n,100),r=g(r,100),n===0)o=r,a=r,t=r;else{var i=r<.5?r*(1+n):r+n-r*n,f=2*r-i;t=I(f,i,e+1/3),o=I(f,i,e),a=I(f,i,e-1/3)}return{r:t*255,g:o*255,b:a*255}}function Le(e,n,r){e=g(e,255),n=g(n,255),r=g(r,255);var t=Math.max(e,n,r),o=Math.min(e,n,r),a=0,i=t,f=t-o,c=t===0?0:f/t;if(t===o)a=0;else{switch(t){case e:a=(n-r)/f+(n=60&&Math.round(e.h)<=240?t=r?Math.round(e.h)-j*n:Math.round(e.h)+j*n:t=r?Math.round(e.h)+j*n:Math.round(e.h)-j*n,t<0?t+=360:t>=360&&(t-=360),t}function J(e,n,r){if(e.h===0&&e.s===0)return e.s;var t;return r?t=e.s-Y*n:n===le?t=e.s+Y:t=e.s+qe*n,t>1&&(t=1),r&&n===ue&&t>.1&&(t=.1),t<.06&&(t=.06),Number(t.toFixed(2))}function X(e,n,r){var t;return r?t=e.v+We*n:t=e.v-Ke*n,t>1&&(t=1),Number(t.toFixed(2))}function Ge(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],t=k(e),o=ue;o>0;o-=1){var a=G(t),i=A(k({h:Z(a,o,!0),s:J(a,o,!0),v:X(a,o,!0)}));r.push(i)}r.push(A(t));for(var f=1;f<=le;f+=1){var c=G(t),u=A(k({h:Z(c,f),s:J(c,f),v:X(c,f)}));r.push(u)}return n.theme==="dark"?Qe.map(function(s){var l=s.index,y=s.opacity,S=A(Ye(k(n.backgroundColor||"#141414"),k(r[l]),y*100));return S}):r}var D=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];D.primary=D[5];function ee(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,t)}return r}function v(e){for(var n=1;n0&&arguments[0]!==void 0?arguments[0]:{},n=e.mark;return n?n.startsWith("data-")?n:"data-".concat(n):Xe}function U(e){if(e.attachTo)return e.attachTo;var n=document.querySelector("head");return n||document.body}function er(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function V(e){return Array.from((L.get(e)||e).children).filter(function(n){return n.tagName==="STYLE"})}function de(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ze())return null;var r=n.csp,t=n.prepend,o=n.priority,a=o===void 0?0:o,i=er(t),f=i==="prependQueue",c=document.createElement("style");c.setAttribute(re,i),f&&a&&c.setAttribute(ne,"".concat(a)),r!=null&&r.nonce&&(c.nonce=r==null?void 0:r.nonce),c.innerHTML=e;var u=U(n),s=u.firstChild;if(t){if(f){var l=(n.styles||V(u)).filter(function(y){if(!["prepend","prependQueue"].includes(y.getAttribute(re)))return!1;var S=Number(y.getAttribute(ne)||0);return a>=S});if(l.length)return u.insertBefore(c,l[l.length-1].nextSibling),c}u.insertBefore(c,s)}else u.appendChild(c);return c}function rr(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=U(n);return(n.styles||V(r)).find(function(t){return t.getAttribute(se(n))===e})}function nr(e,n){var r=L.get(e);if(!r||!Je(document,r)){var t=de("",n),o=t.parentNode;L.set(e,o),e.removeChild(t)}}function tr(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=U(r),o=V(t),a=v(v({},r),{},{styles:o});nr(t,a);var i=rr(n,a);if(i){var f,c;if((f=a.csp)!==null&&f!==void 0&&f.nonce&&i.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var u;i.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var s=de(e,a);return s.setAttribute(se(a),n),s}function ge(e){var n;return e==null||(n=e.getRootNode)===null||n===void 0?void 0:n.call(e)}function ar(e){return ge(e)instanceof ShadowRoot}function or(e){return ar(e)?ge(e):null}var z={},ir=function(n){};function fr(e,n){}function cr(e,n){}function ur(){z={}}function me(e,n,r){!n&&!z[r]&&(e(!1,r),z[r]=!0)}function R(e,n){me(fr,e,n)}function lr(e,n){me(cr,e,n)}R.preMessage=ir;R.resetWarned=ur;R.noteOnce=lr;function sr(e){return e.replace(/-(.)/g,function(n,r){return r.toUpperCase()})}function dr(e,n){R(e,"[@ant-design/icons] ".concat(n))}function te(e){return w(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(w(e.icon)==="object"||typeof e.icon=="function")}function ae(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(n,r){var t=e[r];switch(r){case"class":n.className=t,delete n.class;break;default:delete n[r],n[sr(r)]=t}return n},{})}function B(e,n,r){return r?q.createElement(e.tag,v(v({key:n},ae(e.attrs)),r),(e.children||[]).map(function(t,o){return B(t,"".concat(n,"-").concat(e.tag,"-").concat(o))})):q.createElement(e.tag,v({key:n},ae(e.attrs)),(e.children||[]).map(function(t,o){return B(t,"".concat(n,"-").concat(e.tag,"-").concat(o))}))}function be(e){return Ge(e)[0]}function ve(e){return e?Array.isArray(e)?e:[e]:[]}var gr=` -.anticon { - display: inline-flex; - align-items: center; - color: inherit; - font-style: normal; - line-height: 0; - text-align: center; - text-transform: none; - vertical-align: -0.125em; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.anticon > * { - line-height: 1; -} - -.anticon svg { - display: inline-block; -} - -.anticon::before { - display: none; -} - -.anticon .anticon-icon { - display: block; -} - -.anticon[tabindex] { - cursor: pointer; -} - -.anticon-spin::before, -.anticon-spin { - display: inline-block; - -webkit-animation: loadingCircle 1s infinite linear; - animation: loadingCircle 1s infinite linear; -} - -@-webkit-keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -`,mr=function(n){var r=b.useContext(oe),t=r.csp,o=r.prefixCls,a=gr;o&&(a=a.replace(/anticon/g,o)),b.useEffect(function(){var i=n.current,f=or(i);tr(a,"@ant-design-icons",{prepend:!0,csp:t,attachTo:f})},[])},br=["icon","className","onClick","style","primaryColor","secondaryColor"],T={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function vr(e){var n=e.primaryColor,r=e.secondaryColor;T.primaryColor=n,T.secondaryColor=r||be(n),T.calculated=!!r}function pr(){return v({},T)}var x=function(n){var r=n.icon,t=n.className,o=n.onClick,a=n.style,i=n.primaryColor,f=n.secondaryColor,c=fe(n,br),u=b.useRef(),s=T;if(i&&(s={primaryColor:i,secondaryColor:f||be(i)}),mr(u),dr(te(r),"icon should be icon definiton, but got ".concat(r)),!te(r))return null;var l=r;return l&&typeof l.icon=="function"&&(l=v(v({},l),{},{icon:l.icon(s.primaryColor,s.secondaryColor)})),B(l.icon,"svg-".concat(l.name),v(v({className:t,onClick:o,style:a,"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};x.displayName="IconReact";x.getTwoToneColors=pr;x.setTwoToneColors=vr;function pe(e){var n=ve(e),r=ie(n,2),t=r[0],o=r[1];return x.setTwoToneColors({primaryColor:t,secondaryColor:o})}function yr(){var e=x.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var hr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];pe(D.primary);var M=b.forwardRef(function(e,n){var r=e.className,t=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,f=e.onClick,c=e.twoToneColor,u=fe(e,hr),s=b.useContext(oe),l=s.prefixCls,y=l===void 0?"anticon":l,S=s.rootClassName,ye=Pe(S,y,_(_({},"".concat(y,"-").concat(t.name),!!t.name),"".concat(y,"-spin"),!!o||t.name==="loading"),r),N=i;N===void 0&&f&&(N=-1);var he=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,Ce=ve(c),$=ie(Ce,2),we=$[0],xe=$[1];return b.createElement("span",E({role:"img","aria-label":t.name},u,{ref:n,tabIndex:N,onClick:f,className:ye}),b.createElement(x,{icon:t,primaryColor:we,secondaryColor:xe,style:he}))});M.displayName="AntdIcon";M.getTwoToneColor=yr;M.setTwoToneColor=pe;var Cr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.3 506.3L781.7 405.6a7.23 7.23 0 00-11.7 5.7V476H548V254h64.8c6 0 9.4-7 5.7-11.7L517.7 114.7a7.14 7.14 0 00-11.3 0L405.6 242.3a7.23 7.23 0 005.7 11.7H476v222H254v-64.8c0-6-7-9.4-11.7-5.7L114.7 506.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h222v222h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V548h222v64.8c0 6 7 9.4 11.7 5.7l127.5-100.8a7.3 7.3 0 00.1-11.4z"}}]},name:"drag",theme:"outlined"},wr=function(n,r){return b.createElement(M,E({},n,{ref:r,icon:Cr}))},xr=b.forwardRef(wr);function Sr(){return h.jsx(h.Fragment,{children:h.jsx("div",{children:h.jsxs("div",{id:"app",children:[h.jsx("div",{id:"drag-icon",children:h.jsx(xr,{onMouseDown:e=>{e.target.style.cursor="grabbing"},onMouseUp:e=>e.target.style.cursor="grab",style:{float:"right",fontSize:"15px",color:"rgb(53, 150, 235)",cursor:"grab"}})}),h.jsx("div",{children:"当前元素信息"})]})})})}ke.createRoot(document.getElementById("root")).render(h.jsx(Sr,{})); +import{j as e,c as r}from"../js/client-Gw-UosAD.js";function n(){return e.jsx(e.Fragment,{children:e.jsx("div",{children:e.jsx("div",{id:"app",children:e.jsx("div",{children:"当前元素信息"})})})})}r.createRoot(document.getElementById("root")).render(e.jsx(n,{})); diff --git a/dist/contentPage/index.html b/dist/contentPage/index.html index a94406a..09b78d6 100644 --- a/dist/contentPage/index.html +++ b/dist/contentPage/index.html @@ -6,8 +6,8 @@ Measuring Tools - - + +
diff --git a/dist/js/client-ko8MLNCr.js b/dist/js/client-ko8MLNCr.js new file mode 100644 index 0000000..d3de6ee --- /dev/null +++ b/dist/js/client-ko8MLNCr.js @@ -0,0 +1,40 @@ +function nc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bi={exports:{}},qr={},Hi={exports:{}},T={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Kt=Symbol.for("react.element"),tc=Symbol.for("react.portal"),rc=Symbol.for("react.fragment"),lc=Symbol.for("react.strict_mode"),uc=Symbol.for("react.profiler"),oc=Symbol.for("react.provider"),ic=Symbol.for("react.context"),sc=Symbol.for("react.forward_ref"),ac=Symbol.for("react.suspense"),cc=Symbol.for("react.memo"),fc=Symbol.for("react.lazy"),Oo=Symbol.iterator;function dc(e){return e===null||typeof e!="object"?null:(e=Oo&&e[Oo]||e["@@iterator"],typeof e=="function"?e:null)}var Wi={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qi=Object.assign,Ki={};function rt(e,n,t){this.props=e,this.context=n,this.refs=Ki,this.updater=t||Wi}rt.prototype.isReactComponent={};rt.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};rt.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Yi(){}Yi.prototype=rt.prototype;function Iu(e,n,t){this.props=e,this.context=n,this.refs=Ki,this.updater=t||Wi}var Fu=Iu.prototype=new Yi;Fu.constructor=Iu;Qi(Fu,rt.prototype);Fu.isPureReactComponent=!0;var Mo=Array.isArray,Xi=Object.prototype.hasOwnProperty,ju={current:null},Gi={key:!0,ref:!0,__self:!0,__source:!0};function Zi(e,n,t){var r,l={},u=null,o=null;if(n!=null)for(r in n.ref!==void 0&&(o=n.ref),n.key!==void 0&&(u=""+n.key),n)Xi.call(n,r)&&!Gi.hasOwnProperty(r)&&(l[r]=n[r]);var i=arguments.length-2;if(i===1)l.children=t;else if(1>>1,X=_[H];if(0>>1;Hl(hl,z))hnl(qt,hl)?(_[H]=qt,_[hn]=z,H=hn):(_[H]=hl,_[vn]=z,H=vn);else if(hnl(qt,z))_[H]=qt,_[hn]=z,H=hn;else break e}}return N}function l(_,N){var z=_.sortIndex-N.sortIndex;return z!==0?z:_.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var o=Date,i=o.now();e.unstable_now=function(){return o.now()-i}}var s=[],c=[],v=1,m=null,p=3,g=!1,w=!1,k=!1,F=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(_){for(var N=t(c);N!==null;){if(N.callback===null)r(c);else if(N.startTime<=_)r(c),N.sortIndex=N.expirationTime,n(s,N);else break;N=t(c)}}function h(_){if(k=!1,d(_),!w)if(t(s)!==null)w=!0,ml(E);else{var N=t(c);N!==null&&vl(h,N.startTime-_)}}function E(_,N){w=!1,k&&(k=!1,f(P),P=-1),g=!0;var z=p;try{for(d(N),m=t(s);m!==null&&(!(m.expirationTime>N)||_&&!xe());){var H=m.callback;if(typeof H=="function"){m.callback=null,p=m.priorityLevel;var X=H(m.expirationTime<=N);N=e.unstable_now(),typeof X=="function"?m.callback=X:m===t(s)&&r(s),d(N)}else r(s);m=t(s)}if(m!==null)var Jt=!0;else{var vn=t(c);vn!==null&&vl(h,vn.startTime-N),Jt=!1}return Jt}finally{m=null,p=z,g=!1}}var C=!1,x=null,P=-1,B=5,L=-1;function xe(){return!(e.unstable_now()-L_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return t(s)},e.unstable_next=function(_){switch(p){case 1:case 2:case 3:var N=3;break;default:N=p}var z=p;p=N;try{return _()}finally{p=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,N){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var z=p;p=_;try{return N()}finally{p=z}},e.unstable_scheduleCallback=function(_,N,z){var H=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0H?(_.sortIndex=z,n(c,_),t(s)===null&&_===t(c)&&(k?(f(P),P=-1):k=!0,vl(h,z-H))):(_.sortIndex=X,n(s,_),w||g||(w=!0,ml(E))),_},e.unstable_shouldYield=xe,e.unstable_wrapCallback=function(_){var N=p;return function(){var z=p;p=N;try{return _.apply(this,arguments)}finally{p=z}}}})(ns);es.exports=ns;var _c=es.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Cc=$u,he=_c;function y(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hl=Object.prototype.hasOwnProperty,xc=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Fo={},jo={};function Pc(e){return Hl.call(jo,e)?!0:Hl.call(Fo,e)?!1:xc.test(e)?jo[e]=!0:(Fo[e]=!0,!1)}function Nc(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function zc(e,n,t,r){if(n===null||typeof n>"u"||Nc(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function ie(e,n,t,r,l,u,o){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=u,this.removeEmptyString=o}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){b[e]=new ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];b[n]=new ie(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){b[e]=new ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){b[e]=new ie(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){b[e]=new ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){b[e]=new ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){b[e]=new ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){b[e]=new ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){b[e]=new ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var Vu=/[\-:]([a-z])/g;function Au(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(Vu,Au);b[n]=new ie(n,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(Vu,Au);b[n]=new ie(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(Vu,Au);b[n]=new ie(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){b[e]=new ie(e,1,!1,e.toLowerCase(),null,!1,!1)});b.xlinkHref=new ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){b[e]=new ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function Bu(e,n,t,r){var l=b.hasOwnProperty(n)?b[n]:null;(l!==null?l.type!==0:r||!(2i||l[o]!==u[i]){var s=` +`+l[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=i);break}}}finally{wl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?ht(e):""}function Tc(e){switch(e.tag){case 5:return ht(e.type);case 16:return ht("Lazy");case 13:return ht("Suspense");case 19:return ht("SuspenseList");case 0:case 2:case 15:return e=kl(e.type,!1),e;case 11:return e=kl(e.type.render,!1),e;case 1:return e=kl(e.type,!0),e;default:return""}}function Yl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Mn:return"Fragment";case On:return"Portal";case Wl:return"Profiler";case Hu:return"StrictMode";case Ql:return"Suspense";case Kl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ls:return(e.displayName||"Context")+".Consumer";case rs:return(e._context.displayName||"Context")+".Provider";case Wu:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qu:return n=e.displayName||null,n!==null?n:Yl(e.type)||"Memo";case Ge:n=e._payload,e=e._init;try{return Yl(e(n))}catch{}}return null}function Lc(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Yl(n);case 8:return n===Hu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function cn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function os(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Rc(e){var n=os(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,u=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,u.call(this,o)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function nr(e){e._valueTracker||(e._valueTracker=Rc(e))}function is(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=os(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function zr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Xl(e,n){var t=n.checked;return V({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function $o(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=cn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function ss(e,n){n=n.checked,n!=null&&Bu(e,"checked",n,!1)}function Gl(e,n){ss(e,n);var t=cn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Zl(e,n.type,t):n.hasOwnProperty("defaultValue")&&Zl(e,n.type,cn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Vo(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function Zl(e,n,t){(n!=="number"||zr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var yt=Array.isArray;function Wn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l"+n.valueOf().toString()+"",n=tr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Lt(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var kt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Oc=["Webkit","ms","Moz","O"];Object.keys(kt).forEach(function(e){Oc.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),kt[n]=kt[e]})});function ds(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||kt.hasOwnProperty(e)&&kt[e]?(""+n).trim():n+"px"}function ps(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=ds(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Mc=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bl(e,n){if(n){if(Mc[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(y(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(y(61))}if(n.style!=null&&typeof n.style!="object")throw Error(y(62))}}function eu(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var nu=null;function Ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tu=null,Qn=null,Kn=null;function Ho(e){if(e=Gt(e)){if(typeof tu!="function")throw Error(y(280));var n=e.stateNode;n&&(n=rl(n),tu(e.stateNode,e.type,n))}}function ms(e){Qn?Kn?Kn.push(e):Kn=[e]:Qn=e}function vs(){if(Qn){var e=Qn,n=Kn;if(Kn=Qn=null,Ho(e),n)for(e=0;e>>=0,e===0?32:31-(Wc(e)/Qc|0)|0}var rr=64,lr=4194304;function gt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Or(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,u=e.pingedLanes,o=t&268435455;if(o!==0){var i=o&~l;i!==0?r=gt(i):(u&=o,u!==0&&(r=gt(u)))}else o=t&~l,o!==0?r=gt(o):u!==0&&(r=gt(u));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,u=n&-n,l>=u||l===16&&(u&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Yt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Le(n),e[n]=t}function Gc(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Et),qo=" ",bo=!1;function Is(e,n){switch(e){case"keyup":return Cf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dn=!1;function Pf(e,n){switch(e){case"compositionend":return Fs(n);case"keypress":return n.which!==32?null:(bo=!0,qo);case"textInput":return e=n.data,e===qo&&bo?null:e;default:return null}}function Nf(e,n){if(Dn)return e==="compositionend"||!eo&&Is(e,n)?(e=Ms(),wr=Ju=be=null,Dn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=ri(t)}}function Vs(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Vs(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function As(){for(var e=window,n=zr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=zr(e.document)}return n}function no(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Ff(e){var n=As(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Vs(t.ownerDocument.documentElement,t)){if(r!==null&&no(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,u=Math.min(r.start,l);r=r.end===void 0?u:Math.min(r.end,l),!e.extend&&u>r&&(l=r,r=u,u=l),l=li(t,u);var o=li(t,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),u>r?(e.addRange(n),e.extend(o.node,o.offset)):(n.setEnd(o.node,o.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,In=null,su=null,Ct=null,au=!1;function ui(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;au||In==null||In!==zr(r)||(r=In,"selectionStart"in r&&no(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ct&&Ft(Ct,r)||(Ct=r,r=Ir(su,"onSelect"),0Un||(e.current=vu[Un],vu[Un]=null,Un--)}function M(e,n){Un++,vu[Un]=e.current,e.current=n}var fn={},re=pn(fn),ce=pn(!1),Cn=fn;function Jn(e,n){var t=e.type.contextTypes;if(!t)return fn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in t)l[u]=n[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function fe(e){return e=e.childContextTypes,e!=null}function jr(){I(ce),I(re)}function di(e,n,t){if(re.current!==fn)throw Error(y(168));M(re,n),M(ce,t)}function Zs(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(y(108,Lc(e)||"Unknown",l));return V({},t,r)}function Ur(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fn,Cn=re.current,M(re,e),M(ce,ce.current),!0}function pi(e,n,t){var r=e.stateNode;if(!r)throw Error(y(169));t?(e=Zs(e,n,Cn),r.__reactInternalMemoizedMergedChildContext=e,I(ce),I(re),M(re,e)):I(ce),M(ce,t)}var $e=null,ll=!1,Dl=!1;function Js(e){$e===null?$e=[e]:$e.push(e)}function Xf(e){ll=!0,Js(e)}function mn(){if(!Dl&&$e!==null){Dl=!0;var e=0,n=O;try{var t=$e;for(O=1;e>=o,l-=o,Ve=1<<32-Le(n)+l|t<P?(B=x,x=null):B=x.sibling;var L=p(f,x,d[P],h);if(L===null){x===null&&(x=B);break}e&&x&&L.alternate===null&&n(f,x),a=u(L,a,P),C===null?E=L:C.sibling=L,C=L,x=B}if(P===d.length)return t(f,x),j&&yn(f,P),E;if(x===null){for(;PP?(B=x,x=null):B=x.sibling;var xe=p(f,x,L.value,h);if(xe===null){x===null&&(x=B);break}e&&x&&xe.alternate===null&&n(f,x),a=u(xe,a,P),C===null?E=xe:C.sibling=xe,C=xe,x=B}if(L.done)return t(f,x),j&&yn(f,P),E;if(x===null){for(;!L.done;P++,L=d.next())L=m(f,L.value,h),L!==null&&(a=u(L,a,P),C===null?E=L:C.sibling=L,C=L);return j&&yn(f,P),E}for(x=r(f,x);!L.done;P++,L=d.next())L=g(x,f,P,L.value,h),L!==null&&(e&&L.alternate!==null&&x.delete(L.key===null?P:L.key),a=u(L,a,P),C===null?E=L:C.sibling=L,C=L);return e&&x.forEach(function(ot){return n(f,ot)}),j&&yn(f,P),E}function F(f,a,d,h){if(typeof d=="object"&&d!==null&&d.type===Mn&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case er:e:{for(var E=d.key,C=a;C!==null;){if(C.key===E){if(E=d.type,E===Mn){if(C.tag===7){t(f,C.sibling),a=l(C,d.props.children),a.return=f,f=a;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ge&&hi(E)===C.type){t(f,C.sibling),a=l(C,d.props),a.ref=pt(f,C,d),a.return=f,f=a;break e}t(f,C);break}else n(f,C);C=C.sibling}d.type===Mn?(a=_n(d.props.children,f.mode,h,d.key),a.return=f,f=a):(h=Nr(d.type,d.key,d.props,null,f.mode,h),h.ref=pt(f,a,d),h.return=f,f=h)}return o(f);case On:e:{for(C=d.key;a!==null;){if(a.key===C)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){t(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{t(f,a);break}else n(f,a);a=a.sibling}a=Bl(d,f.mode,h),a.return=f,f=a}return o(f);case Ge:return C=d._init,F(f,a,C(d._payload),h)}if(yt(d))return w(f,a,d,h);if(st(d))return k(f,a,d,h);fr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(t(f,a.sibling),a=l(a,d),a.return=f,f=a):(t(f,a),a=Al(d,f.mode,h),a.return=f,f=a),o(f)):t(f,a)}return F}var bn=na(!0),ta=na(!1),Ar=pn(null),Br=null,An=null,uo=null;function oo(){uo=An=Br=null}function io(e){var n=Ar.current;I(Ar),e._currentValue=n}function gu(e,n,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function Xn(e,n){Br=e,uo=An=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(ae=!0),e.firstContext=null)}function _e(e){var n=e._currentValue;if(uo!==e)if(e={context:e,memoizedValue:n,next:null},An===null){if(Br===null)throw Error(y(308));An=e,Br.dependencies={lanes:0,firstContext:e}}else An=An.next=e;return n}var kn=null;function so(e){kn===null?kn=[e]:kn.push(e)}function ra(e,n,t,r){var l=n.interleaved;return l===null?(t.next=t,so(n)):(t.next=l.next,l.next=t),n.interleaved=t,Qe(e,r)}function Qe(e,n){e.lanes|=n;var t=e.alternate;for(t!==null&&(t.lanes|=n),t=e,e=e.return;e!==null;)e.childLanes|=n,t=e.alternate,t!==null&&(t.childLanes|=n),t=e,e=e.return;return t.tag===3?t.stateNode:null}var Ze=!1;function ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function la(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Be(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function un(e,n,t){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,R&2){var l=r.pending;return l===null?n.next=n:(n.next=l.next,l.next=n),r.pending=n,Qe(e,t)}return l=r.interleaved,l===null?(n.next=n,so(r)):(n.next=l.next,l.next=n),r.interleaved=n,Qe(e,t)}function Sr(e,n,t){if(n=n.updateQueue,n!==null&&(n=n.shared,(t&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Xu(e,t)}}function yi(e,n){var t=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var l=null,u=null;if(t=t.firstBaseUpdate,t!==null){do{var o={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};u===null?l=u=o:u=u.next=o,t=t.next}while(t!==null);u===null?l=u=n:u=u.next=n}else l=u=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:u,shared:r.shared,effects:r.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function Hr(e,n,t,r){var l=e.updateQueue;Ze=!1;var u=l.firstBaseUpdate,o=l.lastBaseUpdate,i=l.shared.pending;if(i!==null){l.shared.pending=null;var s=i,c=s.next;s.next=null,o===null?u=c:o.next=c,o=s;var v=e.alternate;v!==null&&(v=v.updateQueue,i=v.lastBaseUpdate,i!==o&&(i===null?v.firstBaseUpdate=c:i.next=c,v.lastBaseUpdate=s))}if(u!==null){var m=l.baseState;o=0,v=c=s=null,i=u;do{var p=i.lane,g=i.eventTime;if((r&p)===p){v!==null&&(v=v.next={eventTime:g,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var w=e,k=i;switch(p=n,g=t,k.tag){case 1:if(w=k.payload,typeof w=="function"){m=w.call(g,m,p);break e}m=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=k.payload,p=typeof w=="function"?w.call(g,m,p):w,p==null)break e;m=V({},m,p);break e;case 2:Ze=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[i]:p.push(i))}else g={eventTime:g,lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},v===null?(c=v=g,s=m):v=v.next=g,o|=p;if(i=i.next,i===null){if(i=l.shared.pending,i===null)break;p=i,i=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(v===null&&(s=m),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=v,n=l.shared.interleaved,n!==null){l=n;do o|=l.lane,l=l.next;while(l!==n)}else u===null&&(l.shared.lanes=0);Nn|=o,e.lanes=o,e.memoizedState=m}}function gi(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;nt?t:4,e(!0);var r=Fl.transition;Fl.transition={};try{e(!1),n()}finally{O=t,Fl.transition=r}}function Sa(){return Ce().memoizedState}function qf(e,n,t){var r=sn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Ea(e))_a(n,t);else if(t=ra(e,n,t,r),t!==null){var l=ue();Re(t,e,r,l),Ca(t,n,r)}}function bf(e,n,t){var r=sn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ea(e))_a(n,l);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=n.lastRenderedReducer,u!==null))try{var o=n.lastRenderedState,i=u(o,t);if(l.hasEagerState=!0,l.eagerState=i,Oe(i,o)){var s=n.interleaved;s===null?(l.next=l,so(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=ra(e,n,l,r),t!==null&&(l=ue(),Re(t,e,r,l),Ca(t,n,r))}}function Ea(e){var n=e.alternate;return e===$||n!==null&&n===$}function _a(e,n){xt=Qr=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Ca(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,Xu(e,t)}}var Kr={readContext:_e,useCallback:ee,useContext:ee,useEffect:ee,useImperativeHandle:ee,useInsertionEffect:ee,useLayoutEffect:ee,useMemo:ee,useReducer:ee,useRef:ee,useState:ee,useDebugValue:ee,useDeferredValue:ee,useTransition:ee,useMutableSource:ee,useSyncExternalStore:ee,useId:ee,unstable_isNewReconciler:!1},ed={readContext:_e,useCallback:function(e,n){return De().memoizedState=[e,n===void 0?null:n],e},useContext:_e,useEffect:ki,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,_r(4194308,4,ha.bind(null,n,e),t)},useLayoutEffect:function(e,n){return _r(4194308,4,e,n)},useInsertionEffect:function(e,n){return _r(4,2,e,n)},useMemo:function(e,n){var t=De();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=De();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=qf.bind(null,$,e),[r.memoizedState,e]},useRef:function(e){var n=De();return e={current:e},n.memoizedState=e},useState:wi,useDebugValue:go,useDeferredValue:function(e){return De().memoizedState=e},useTransition:function(){var e=wi(!1),n=e[0];return e=Jf.bind(null,e[1]),De().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=$,l=De();if(j){if(t===void 0)throw Error(y(407));t=t()}else{if(t=n(),Z===null)throw Error(y(349));Pn&30||sa(r,n,t)}l.memoizedState=t;var u={value:t,getSnapshot:n};return l.queue=u,ki(ca.bind(null,r,u,e),[e]),r.flags|=2048,Wt(9,aa.bind(null,r,u,t,n),void 0,null),t},useId:function(){var e=De(),n=Z.identifierPrefix;if(j){var t=Ae,r=Ve;t=(r&~(1<<32-Le(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Bt++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(t,{is:r.is}):(e=o.createElement(t),t==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,t),e[Ie]=n,e[$t]=r,Da(e,n,!1,!1),n.stateNode=e;e:{switch(o=eu(t,r),t){case"dialog":D("cancel",e),D("close",e),l=r;break;case"iframe":case"object":case"embed":D("load",e),l=r;break;case"video":case"audio":for(l=0;ltt&&(n.flags|=128,r=!0,mt(u,!1),n.lanes=4194304)}else{if(!r)if(e=Wr(o),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),mt(u,!0),u.tail===null&&u.tailMode==="hidden"&&!o.alternate&&!j)return ne(n),null}else 2*W()-u.renderingStartTime>tt&&t!==1073741824&&(n.flags|=128,r=!0,mt(u,!1),n.lanes=4194304);u.isBackwards?(o.sibling=n.child,n.child=o):(t=u.last,t!==null?t.sibling=o:n.child=o,u.last=o)}return u.tail!==null?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=W(),n.sibling=null,t=U.current,M(U,r?t&1|2:t&1),n):(ne(n),null);case 22:case 23:return Co(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?pe&1073741824&&(ne(n),n.subtreeFlags&6&&(n.flags|=8192)):ne(n),null;case 24:return null;case 25:return null}throw Error(y(156,n.tag))}function sd(e,n){switch(ro(n),n.tag){case 1:return fe(n.type)&&jr(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return et(),I(ce),I(re),po(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return fo(n),null;case 13:if(I(U),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(y(340));qn()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return I(U),null;case 4:return et(),null;case 10:return io(n.type._context),null;case 22:case 23:return Co(),null;case 24:return null;default:return null}}var pr=!1,te=!1,ad=typeof WeakSet=="function"?WeakSet:Set,S=null;function Bn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){A(e,n,r)}else t.current=null}function Nu(e,n,t){try{t()}catch(r){A(e,n,r)}}var Ri=!1;function cd(e,n){if(cu=Mr,e=As(),no(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{t.nodeType,u.nodeType}catch{t=null;break e}var o=0,i=-1,s=-1,c=0,v=0,m=e,p=null;n:for(;;){for(var g;m!==t||l!==0&&m.nodeType!==3||(i=o+l),m!==u||r!==0&&m.nodeType!==3||(s=o+r),m.nodeType===3&&(o+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break n;if(p===t&&++c===l&&(i=o),p===u&&++v===r&&(s=o),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}t=i===-1||s===-1?null:{start:i,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(fu={focusedElem:e,selectionRange:t},Mr=!1,S=n;S!==null;)if(n=S,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,S=e;else for(;S!==null;){n=S;try{var w=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var k=w.memoizedProps,F=w.memoizedState,f=n.stateNode,a=f.getSnapshotBeforeUpdate(n.elementType===n.type?k:Ne(n.type,k),F);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=n.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(h){A(n,n.return,h)}if(e=n.sibling,e!==null){e.return=n.return,S=e;break}S=n.return}return w=Ri,Ri=!1,w}function Pt(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var u=l.destroy;l.destroy=void 0,u!==void 0&&Nu(n,t,u)}l=l.next}while(l!==r)}}function il(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function zu(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function ja(e){var n=e.alternate;n!==null&&(e.alternate=null,ja(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Ie],delete n[$t],delete n[mu],delete n[Kf],delete n[Yf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ua(e){return e.tag===5||e.tag===3||e.tag===4}function Oi(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ua(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Tu(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Fr));else if(r!==4&&(e=e.child,e!==null))for(Tu(e,n,t),e=e.sibling;e!==null;)Tu(e,n,t),e=e.sibling}function Lu(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Lu(e,n,t),e=e.sibling;e!==null;)Lu(e,n,t),e=e.sibling}var J=null,ze=!1;function Xe(e,n,t){for(t=t.child;t!==null;)$a(e,n,t),t=t.sibling}function $a(e,n,t){if(Fe&&typeof Fe.onCommitFiberUnmount=="function")try{Fe.onCommitFiberUnmount(br,t)}catch{}switch(t.tag){case 5:te||Bn(t,n);case 6:var r=J,l=ze;J=null,Xe(e,n,t),J=r,ze=l,J!==null&&(ze?(e=J,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):J.removeChild(t.stateNode));break;case 18:J!==null&&(ze?(e=J,t=t.stateNode,e.nodeType===8?Ml(e.parentNode,t):e.nodeType===1&&Ml(e,t),Dt(e)):Ml(J,t.stateNode));break;case 4:r=J,l=ze,J=t.stateNode.containerInfo,ze=!0,Xe(e,n,t),J=r,ze=l;break;case 0:case 11:case 14:case 15:if(!te&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var u=l,o=u.destroy;u=u.tag,o!==void 0&&(u&2||u&4)&&Nu(t,n,o),l=l.next}while(l!==r)}Xe(e,n,t);break;case 1:if(!te&&(Bn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(i){A(t,n,i)}Xe(e,n,t);break;case 21:Xe(e,n,t);break;case 22:t.mode&1?(te=(r=te)||t.memoizedState!==null,Xe(e,n,t),te=r):Xe(e,n,t);break;default:Xe(e,n,t)}}function Mi(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new ad),n.forEach(function(r){var l=wd.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function Pe(e,n){var t=n.deletions;if(t!==null)for(var r=0;rl&&(l=o),r&=~u}if(r=l,r=W()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dd(r/1960))-r,10e?16:e,en===null)var r=!1;else{if(e=en,en=null,Gr=0,R&6)throw Error(y(331));var l=R;for(R|=4,S=e.current;S!==null;){var u=S,o=u.child;if(S.flags&16){var i=u.deletions;if(i!==null){for(var s=0;sW()-Eo?En(e,0):So|=t),de(e,n)}function Ya(e,n){n===0&&(e.mode&1?(n=lr,lr<<=1,!(lr&130023424)&&(lr=4194304)):n=1);var t=ue();e=Qe(e,n),e!==null&&(Yt(e,n,t),de(e,t))}function gd(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),Ya(e,t)}function wd(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(n),Ya(e,t)}var Xa;Xa=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||ce.current)ae=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return ae=!1,od(e,n,t);ae=!!(e.flags&131072)}else ae=!1,j&&n.flags&1048576&&qs(n,Vr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Cr(e,n),e=n.pendingProps;var l=Jn(n,re.current);Xn(n,t),l=vo(null,n,r,e,l,t);var u=ho();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,fe(r)?(u=!0,Ur(n)):u=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,ao(n),l.updater=ol,n.stateNode=l,l._reactInternals=n,ku(n,r,e,t),n=_u(null,n,r,!0,u,t)):(n.tag=0,j&&u&&to(n),le(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Cr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=Sd(r),e=Ne(r,e),l){case 0:n=Eu(null,n,r,e,t);break e;case 1:n=zi(null,n,r,e,t);break e;case 11:n=Pi(null,n,r,e,t);break e;case 14:n=Ni(null,n,r,Ne(r.type,e),t);break e}throw Error(y(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Ne(r,l),Eu(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Ne(r,l),zi(e,n,r,l,t);case 3:e:{if(Ra(n),e===null)throw Error(y(387));r=n.pendingProps,u=n.memoizedState,l=u.element,la(e,n),Hr(n,r,null,t);var o=n.memoizedState;if(r=o.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},n.updateQueue.baseState=u,n.memoizedState=u,n.flags&256){l=nt(Error(y(423)),n),n=Ti(e,n,r,t,l);break e}else if(r!==l){l=nt(Error(y(424)),n),n=Ti(e,n,r,t,l);break e}else for(me=ln(n.stateNode.containerInfo.firstChild),ve=n,j=!0,Te=null,t=ta(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(qn(),r===l){n=Ke(e,n,t);break e}le(e,n,r,t)}n=n.child}return n;case 5:return ua(n),e===null&&yu(n),r=n.type,l=n.pendingProps,u=e!==null?e.memoizedProps:null,o=l.children,du(r,l)?o=null:u!==null&&du(r,u)&&(n.flags|=32),La(e,n),le(e,n,o,t),n.child;case 6:return e===null&&yu(n),null;case 13:return Oa(e,n,t);case 4:return co(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=bn(n,null,r,t):le(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Ne(r,l),Pi(e,n,r,l,t);case 7:return le(e,n,n.pendingProps,t),n.child;case 8:return le(e,n,n.pendingProps.children,t),n.child;case 12:return le(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,u=n.memoizedProps,o=l.value,M(Ar,r._currentValue),r._currentValue=o,u!==null)if(Oe(u.value,o)){if(u.children===l.children&&!ce.current){n=Ke(e,n,t);break e}}else for(u=n.child,u!==null&&(u.return=n);u!==null;){var i=u.dependencies;if(i!==null){o=u.child;for(var s=i.firstContext;s!==null;){if(s.context===r){if(u.tag===1){s=Be(-1,t&-t),s.tag=2;var c=u.updateQueue;if(c!==null){c=c.shared;var v=c.pending;v===null?s.next=s:(s.next=v.next,v.next=s),c.pending=s}}u.lanes|=t,s=u.alternate,s!==null&&(s.lanes|=t),gu(u.return,t,n),i.lanes|=t;break}s=s.next}}else if(u.tag===10)o=u.type===n.type?null:u.child;else if(u.tag===18){if(o=u.return,o===null)throw Error(y(341));o.lanes|=t,i=o.alternate,i!==null&&(i.lanes|=t),gu(o,t,n),o=u.sibling}else o=u.child;if(o!==null)o.return=u;else for(o=u;o!==null;){if(o===n){o=null;break}if(u=o.sibling,u!==null){u.return=o.return,o=u;break}o=o.return}u=o}le(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Xn(n,t),l=_e(l),r=r(l),n.flags|=1,le(e,n,r,t),n.child;case 14:return r=n.type,l=Ne(r,n.pendingProps),l=Ne(r.type,l),Ni(e,n,r,l,t);case 15:return za(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Ne(r,l),Cr(e,n),n.tag=1,fe(r)?(e=!0,Ur(n)):e=!1,Xn(n,t),xa(n,r,l),ku(n,r,l,t),_u(null,n,r,!0,e,t);case 19:return Ma(e,n,t);case 22:return Ta(e,n,t)}throw Error(y(156,n.tag))};function Ga(e,n){return Es(e,n)}function kd(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Se(e,n,t,r){return new kd(e,n,t,r)}function Po(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sd(e){if(typeof e=="function")return Po(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wu)return 11;if(e===Qu)return 14}return 2}function an(e,n){var t=e.alternate;return t===null?(t=Se(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Nr(e,n,t,r,l,u){var o=2;if(r=e,typeof e=="function")Po(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Mn:return _n(t.children,l,u,n);case Hu:o=8,l|=8;break;case Wl:return e=Se(12,t,n,l|2),e.elementType=Wl,e.lanes=u,e;case Ql:return e=Se(13,t,n,l),e.elementType=Ql,e.lanes=u,e;case Kl:return e=Se(19,t,n,l),e.elementType=Kl,e.lanes=u,e;case us:return al(t,l,u,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rs:o=10;break e;case ls:o=9;break e;case Wu:o=11;break e;case Qu:o=14;break e;case Ge:o=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return n=Se(o,t,n,l),n.elementType=e,n.type=r,n.lanes=u,n}function _n(e,n,t,r){return e=Se(7,e,r,n),e.lanes=t,e}function al(e,n,t,r){return e=Se(22,e,r,n),e.elementType=us,e.lanes=t,e.stateNode={isHidden:!1},e}function Al(e,n,t){return e=Se(6,e,null,n),e.lanes=t,e}function Bl(e,n,t){return n=Se(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Ed(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=El(0),this.expirationTimes=El(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=El(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function No(e,n,t,r,l,u,o,i,s){return e=new Ed(e,n,t,i,s),n===1?(n=1,u===!0&&(n|=8)):n=0,u=Se(3,null,null,n),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},ao(u),e}function _d(e,n,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ba)}catch(e){console.error(e)}}ba(),bi.exports=ye;var zd=bi.exports,Ai=zd;Io.createRoot=Ai.createRoot,Io.hydrateRoot=Ai.hydrateRoot;export{Td as R,Io as c,nc as g,Ld as j,$u as r}; diff --git a/dist/popup/index.html b/dist/popup/index.html index 553472b..2fa4715 100644 --- a/dist/popup/index.html +++ b/dist/popup/index.html @@ -6,8 +6,8 @@ Measuring Tools - - + +
diff --git a/dist/popup/popup.js b/dist/popup/popup.js index f6f92b5..4e462b4 100644 --- a/dist/popup/popup.js +++ b/dist/popup/popup.js @@ -1 +1 @@ -import{j as o,c as i}from"../js/client-C9r4PM53.js";function l(){const t=()=>{chrome.tabs.query({active:!0,currentWindow:!0},e=>{let n={info:"openMeasureTool"};e[0]&&e[0].id&&chrome.tabs.sendMessage(e[0].id,n,void 0,r=>{console.log(r)})})},c=()=>{chrome.tabs.query({active:!0,currentWindow:!0},e=>{let n={info:"closeMeasureTool"};e[0]&&e[0].id&&chrome.tabs.sendMessage(e[0].id,n,void 0,r=>{console.log(r)})})},s=e=>{try{e?t():c()}catch(n){console.log(n)}};return o.jsx(o.Fragment,{children:o.jsxs("div",{id:"app",children:[o.jsx("button",{onClick:()=>s(!0),children:"开启测量工具"}),o.jsx("button",{onClick:()=>s(!1),children:"关闭测量工具"})]})})}i.createRoot(document.getElementById("root")).render(o.jsx(l,{})); +import{j as o,c as i}from"../js/client-Gw-UosAD.js";function a(){const r=()=>{chrome.tabs.query({active:!0,currentWindow:!0},e=>{let l={info:"openMeasureTool"};e[0]&&e[0].id&&chrome.tabs.sendMessage(e[0].id,l,void 0,n=>{console.log(n)})})},t=()=>{chrome.tabs.query({active:!0,currentWindow:!0},e=>{let l={info:"closeMeasureTool"};e[0]&&e[0].id&&chrome.tabs.sendMessage(e[0].id,l,void 0,n=>{console.log(n)})})};let s=!1;const c=()=>{s=!s,s?(r(),console.log("open")):(t(),console.log("close"))};return o.jsx(o.Fragment,{children:o.jsx("div",{id:"app",children:o.jsxs("div",{className:"toggle normal",children:[o.jsx("input",{id:"normal",type:"checkbox"}),o.jsx("label",{onClick:c,className:"toggle-item",htmlFor:"normal"})]})})})}i.createRoot(document.getElementById("root")).render(o.jsx(a,{})); diff --git a/src/assets/Drag.png b/src/assets/Drag.png new file mode 100644 index 0000000000000000000000000000000000000000..5251e0dbc9623489e76c8adcc19f9ab0af46d7b5 GIT binary patch literal 632 zcmV-;0*C#HP)Px%GD$>1RA@u(ncYJ-)sGPSRf7W$3*0*^84$Xu&iaP-?@l}zE*`8DYSF!U!oB(i$_Z6}j_!I~WfJ=NX zfL*ce?9@HjH2^(T#;hslHMSep0IpQYIW6y4O^U4nF4nsZC^hGuNNO|(fcxM`3CJ6_ z?S|GNPC5M{2~-=c#*HY+WU>xHlRJ+{Xd13XK&VK?7!->OQKC49cr?t#kaw?1f#4F) z3Sb6{f#4L+4iJLi7B2#TK}d)f1E?VO0Jos@r2Wqg<$U?>VR0dDQ7Pl~9^ePSWc)xJ SiFfG$0000