amis-rpc-design/dist/9762.ed26fa83.bundle.js

2 lines
5.9 MiB
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
/*! For license information please see 9762.ed26fa83.bundle.js.LICENSE.txt */
"use strict";(self.webpackChunkamis_rpc_design=self.webpackChunkamis_rpc_design||[]).push([[9762],{23875:(e,t,i)=>{i.d(t,{$W:()=>_,Dt:()=>f,G6:()=>p,MG:()=>m,Pf:()=>u,WP:()=>r,fX:()=>a,i7:()=>g,ie:()=>l,mX:()=>d,px:()=>s,vU:()=>c});var n=i(77538);class o{constructor(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new n.Q5,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=1}getZoomLevel(){return this._zoomLevel}getTimeSinceLastZoomLevelChanged(){return Date.now()-this._lastZoomLevelChangeTime}getZoomFactor(){return this._zoomFactor}getPixelRatio(){let e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}}function s(){return o.INSTANCE.getZoomLevel()}function r(){return o.INSTANCE.getTimeSinceLastZoomLevelChanged()}function a(e){return o.INSTANCE.onDidChangeZoomLevel(e)}function l(){return o.INSTANCE.getZoomFactor()}function d(){return o.INSTANCE.getPixelRatio()}o.INSTANCE=new o;const h=navigator.userAgent,c=h.indexOf("Firefox")>=0,u=h.indexOf("AppleWebKit")>=0,g=h.indexOf("Chrome")>=0,p=!g&&h.indexOf("Safari")>=0,m=!g&&!p&&u,f=h.indexOf("Android")>=0,_=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},41459:(e,t,i)=>{i.d(t,{D:()=>s});var n=i(23875),o=i(84483);const s={clipboard:{writeText:o.tY||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:o.tY||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:o.tY||n.$W?0:navigator.keyboard||n.G6?1:2,touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}},94961:(e,t,i)=>{i.d(t,{P$:()=>s,TN:()=>o,go:()=>n});const n={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:i(73543).vW.text,TERMINALS:"Terminals"};class o{constructor(e){this.data=e}update(){}getData(){return this.data}}const s={CurrentDragAndDropData:void 0}},48696:(e,t,i)=>{i.d(t,{$:()=>pe,$Z:()=>me,Ay:()=>Z,Ce:()=>de,Cp:()=>fe,D6:()=>M,DI:()=>B,Dx:()=>T,FK:()=>V,Fx:()=>U,Gw:()=>b,H$:()=>_e,If:()=>H,Lo:()=>C,OO:()=>q,PO:()=>g,R3:()=>le,RE:()=>S,Re:()=>te,Ro:()=>A,Uh:()=>ve,Uw:()=>p,V3:()=>be,Y_:()=>I,_0:()=>se,_h:()=>ye,_q:()=>Se,dS:()=>Q,dp:()=>P,fk:()=>X,go:()=>ae,i:()=>F,jL:()=>x,j_:()=>y,jg:()=>K,jt:()=>Ce,lI:()=>L,mc:()=>he,mu:()=>v,nm:()=>f,qV:()=>w,tw:()=>ie,uB:()=>Le,uN:()=>ee,uU:()=>j,vL:()=>oe,vY:()=>G,w:()=>W,wY:()=>we,wn:()=>z,xQ:()=>O,zB:()=>ne});var n=i(23875),o=i(41459),s=i(63304),r=i(76049),a=i(10554),l=i(98147),d=i(77538),h=i(48646),c=i(31633),u=i(84483);function g(e){for(;e.firstChild;)e.firstChild.remove()}function p(e){var t;return null!==(t=null==e?void 0:e.isConnected)&&void 0!==t&&t}class m{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function f(e,t,i,n){return new m(e,t,i,n)}function _(e){return function(t){return e(new r.n(t))}}let v=function(e,t,i,n){let o=i;return"click"===t||"mousedown"===t?o=_(i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=function(e){return function(t){return e(new s.y(t))}}(i)),f(e,t,o,n)},b=function(e,t,i){return C(e,_(t),i)};function C(e,t,i){return f(e,u.gn&&o.D.pointerEvents?ie.POINTER_DOWN:ie.MOUSE_DOWN,t,i)}function w(e,t,i){return f(e,u.gn&&o.D.pointerEvents?ie.POINTER_UP:ie.MOUSE_UP,t,i)}function y(e,t){return f(e,"mouseout",(i=>{let n=i.relatedTarget;for(;n&&n!==e;)n=n.parentNode;n!==e&&t(i)}))}function S(e,t){return f(e,"pointerout",(i=>{let n=i.relatedTarget;for(;n&&n!==e;)n=n.parentNode;n!==e&&t(i)}))}let L,x,k=null;class N{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){thi