@ohbug/extension-feedback 0.7.0 → 0.7.2
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/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.mjs +217 -213
- package/package.json +5 -5
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAOlD,QAAA,MAAM,SAAS,YAAa,WAAW,KAAG,cAcxC,CAAA;AAEF,eAAe,SAAS,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const Te=(e,t)=>e===t,C=Symbol("solid-proxy"),fe=Symbol("solid-track"),K={equals:Te};let ge=me;const k=1,W=2,be={owned:null,cleanups:null,context:null,owner:null};var w=null;let ne=null,b=null,$=null,S=null,ee=0;function Pe(e,t){const n=b,l=w,s=e.length===0,o=s?be:{owned:null,cleanups:null,context:null,owner:t===void 0?l:t},i=s?e:()=>e(()=>N(()=>te(o)));w=o,b=null;try{return H(i,!0)}finally{b=n,w=l}}function F(e,t){t=t?Object.assign({},K,t):K;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},l=s=>(typeof s=="function"&&(s=s(n.value)),$e(n,s));return[ye.bind(n),l]}function j(e,t,n){const l=re(e,t,!1,k);G(l)}function pe(e,t,n){ge=Me;const l=re(e,t,!1,k);(!n||!n.render)&&(l.user=!0),S?S.push(l):G(l)}function ae(e,t,n){n=n?Object.assign({},K,n):K;const l=re(e,t,!0,0);return l.observers=null,l.observerSlots=null,l.comparator=n.equals||void 0,G(l),ye.bind(l)}function Le(e){return H(e,!1)}function N(e){if(b===null)return e();const t=b;b=null;try{return e()}finally{b=t}}function ze(e){return w===null||(w.cleanups===null?w.cleanups=[e]:w.cleanups.push(e)),e}function we(){return b}function ye(){if(this.sources&&this.state)if(this.state===k)G(this);else{const e=$;$=null,H(()=>Y(this),!1),$=e}if(b){const e=this.observers?this.observers.length:0;b.sources?(b.sources.push(this),b.sourceSlots.push(e)):(b.sources=[this],b.sourceSlots=[e]),this.observers?(this.observers.push(b),this.observerSlots.push(b.sources.length-1)):(this.observers=[b],this.observerSlots=[b.sources.length-1])}return this.value}function $e(e,t,n){let l=e.value;return(!e.comparator||!e.comparator(l,t))&&(e.value=t,e.observers&&e.observers.length&&H(()=>{for(let s=0;s<e.observers.length;s+=1){const o=e.observers[s],i=ne&&ne.running;i&&ne.disposed.has(o),(i?!o.tState:!o.state)&&(o.pure?$.push(o):S.push(o),o.observers&&ve(o)),i||(o.state=k)}if($.length>1e6)throw $=[],new Error},!1)),t}function G(e){if(!e.fn)return;te(e);const t=w,n=b,l=ee;b=w=e,je(e,e.value,l),b=n,w=t}function je(e,t,n){let l;try{l=e.fn(t)}catch(s){return e.pure&&(e.state=k,e.owned&&e.owned.forEach(te),e.owned=null),e.updatedAt=n+1,xe(s)}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?$e(e,l):e.value=l,e.updatedAt=n)}function re(e,t,n,l=k,s){const o={fn:e,state:l,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:w,context:null,pure:n};return w===null||w!==be&&(w.owned?w.owned.push(o):w.owned=[o]),o}function X(e){if(e.state===0)return;if(e.state===W)return Y(e);if(e.suspense&&N(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<ee);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===k)G(e);else if(e.state===W){const l=$;$=null,H(()=>Y(e,t[0]),!1),$=l}}function H(e,t){if($)return e();let n=!1;t||($=[]),S?n=!0:S=[],ee++;try{const l=e();return He(n),l}catch(l){n||(S=null),$=null,xe(l)}}function He(e){if($&&(me($),$=null),e)return;const t=S;S=null,t.length&&H(()=>ge(t),!1)}function me(e){for(let t=0;t<e.length;t++)X(e[t])}function Me(e){let t,n=0;for(t=0;t<e.length;t++){const l=e[t];l.user?e[n++]=l:X(l)}for(t=0;t<n;t++)X(e[t])}function Y(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const l=e.sources[n];if(l.sources){const s=l.state;s===k?l!==t&&(!l.updatedAt||l.updatedAt<ee)&&X(l):s===W&&Y(l,t)}}}function ve(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=W,n.pure?$.push(n):S.push(n),n.observers&&ve(n))}}function te(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),l=e.sourceSlots.pop(),s=n.observers;if(s&&s.length){const o=s.pop(),i=n.observerSlots.pop();l<s.length&&(o.sourceSlots[i]=l,s[l]=o,n.observerSlots[l]=i)}}if(e.owned){for(t=e.owned.length-1;t>=0;t--)te(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function De(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function xe(e,t=w){throw De(e)}function x(e,t){return N(()=>e(t||{}))}const Be=e=>`Stale read from <${e}>.`;function U(e){const t=e.keyed,n=ae(()=>e.when,void 0,{equals:(l,s)=>t?l===s:!l==!s});return ae(()=>{const l=n();if(l){const s=e.children;return typeof s=="function"&&s.length>0?N(()=>s(t?l:()=>{if(!N(n))throw Be("Show");return e.when})):s}return e.fallback},void 0,void 0)}function Fe(e,t,n){let l=n.length,s=t.length,o=l,i=0,r=0,c=t[s-1].nextSibling,h=null;for(;i<s||r<o;){if(t[i]===n[r]){i++,r++;continue}for(;t[s-1]===n[o-1];)s--,o--;if(s===i){const u=o<l?r?n[r-1].nextSibling:n[o-r]:c;for(;r<o;)e.insertBefore(n[r++],u)}else if(o===r)for(;i<s;)(!h||!h.has(t[i]))&&t[i].remove(),i++;else if(t[i]===n[o-1]&&n[r]===t[s-1]){const u=t[--s].nextSibling;e.insertBefore(n[r++],t[i++].nextSibling),e.insertBefore(n[--o],u),t[s]=n[o]}else{if(!h){h=new Map;let g=r;for(;g<o;)h.set(n[g],g++)}const u=h.get(t[i]);if(u!=null)if(r<u&&u<o){let g=i,m=1,_;for(;++g<s&&g<o&&!((_=h.get(t[g]))==null||_!==u+m);)m++;if(m>u-r){const T=t[i];for(;r<u;)e.insertBefore(n[r++],T)}else e.replaceChild(n[r++],t[i++])}else i++;else t[i++].remove()}}}const de="_$DX_DELEGATE";function Ue(e,t,n,l={}){let s;return Pe(o=>{s=o,t===document?e():v(t,e(),t.firstChild?null:void 0,n)},l.owner),()=>{s(),t.textContent=""}}function A(e,t,n){let l;const s=()=>{const i=document.createElement("template");return i.innerHTML=e,n?i.content.firstChild.firstChild:i.content.firstChild},o=t?()=>N(()=>document.importNode(l||(l=s()),!0)):()=>(l||(l=s())).cloneNode(!0);return o.cloneNode=o,o}function _e(e,t=window.document){const n=t[de]||(t[de]=new Set);for(let l=0,s=e.length;l<s;l++){const o=e[l];n.has(o)||(n.add(o),t.addEventListener(o,Ve))}}function Re(e,t){t==null?e.removeAttribute("class"):e.className=t}function D(e,t,n){return N(()=>e(t,n))}function v(e,t,n,l){if(n!==void 0&&!l&&(l=[]),typeof t!="function")return J(e,t,l,n);j(s=>J(e,t(),s,n),l)}function Ve(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}});n;){const l=n[t];if(l&&!n.disabled){const s=n[`${t}Data`];if(s!==void 0?l.call(n,s,e):l.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function J(e,t,n,l,s){for(;typeof n=="function";)n=n();if(t===n)return n;const o=typeof t,i=l!==void 0;if(e=i&&n[0]&&n[0].parentNode||e,o==="string"||o==="number")if(o==="number"&&(t=t.toString()),i){let r=n[0];r&&r.nodeType===3?r.data=t:r=document.createTextNode(t),n=L(e,n,l,r)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;else if(t==null||o==="boolean")n=L(e,n,l);else{if(o==="function")return j(()=>{let r=t();for(;typeof r=="function";)r=r();n=J(e,r,n,l)}),()=>n;if(Array.isArray(t)){const r=[],c=n&&Array.isArray(n);if(le(r,t,n,s))return j(()=>n=J(e,r,n,l,!0)),()=>n;if(r.length===0){if(n=L(e,n,l),i)return n}else c?n.length===0?he(e,r,l):Fe(e,n,r):(n&&L(e),he(e,r));n=r}else if(t.nodeType){if(Array.isArray(n)){if(i)return n=L(e,n,l,t);L(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}else console.warn("Unrecognized value. Skipped inserting",t)}return n}function le(e,t,n,l){let s=!1;for(let o=0,i=t.length;o<i;o++){let r=t[o],c=n&&n[o],h;if(!(r==null||r===!0||r===!1))if((h=typeof r)=="object"&&r.nodeType)e.push(r);else if(Array.isArray(r))s=le(e,r,c)||s;else if(h==="function")if(l){for(;typeof r=="function";)r=r();s=le(e,Array.isArray(r)?r:[r],Array.isArray(c)?c:[c])||s}else e.push(r),s=!0;else{const u=String(r);c&&c.nodeType===3&&c.data===u?e.push(c):e.push(document.createTextNode(u))}}return s}function he(e,t,n=null){for(let l=0,s=t.length;l<s;l++)e.insertBefore(t[l],n)}function L(e,t,n,l){if(n===void 0)return e.textContent="";const s=l||document.createTextNode("");if(t.length){let o=!1;for(let i=t.length-1;i>=0;i--){const r=t[i];if(s!==r){const c=r.parentNode===e;!o&&!i?c?e.replaceChild(s,r):e.insertBefore(s,n):c&&r.remove()}else o=!0}}else e.insertBefore(s,n);return[s]}function Ge(e,t,...n){if(t===void 0)throw new Error("`Ohbug warning(condition, format, ...args)` requires a warning message argument");if(!e){let l=0;const s=t.replace(/%s/g,()=>n[l++]);throw new Error(`Ohbug ${s}`)}}var Ie={};function qe(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:Ie}function Ke(){const e=qe();return Ge(!!e.__OHBUG__,"Failed to get `OhbugObject`, please confirm if `Ohbug.setup`"),e.__OHBUG__}function Ee(e,t){e.parentNode&&(t.push(e.parentNode),Ee(e.parentNode,t))}function We(e){const t=[];return t.push(e),Ee(e,t),t}var Xe=e=>{const t=e.target||e.srcElement;let n=e.target||e.srcElement;const l=[];for(let i=0;n&&n.nodeType===Node.ELEMENT_NODE&&n.nodeType!==Node.DOCUMENT_TYPE_NODE;n=n.previousSibling)i&&l.push(n),i+=1;const s=typeof e.path>"u"?We(e.target):e.path,{outerHTML:o}=t;return s.reverse().map(i=>(i.localName||"")+(i.id?`#${i.id}`:"")+(i.className?`.${i.className}`:"")+(i.outerHTML===o?`:nth-child(${l.length})`:"")).filter(i=>!!i).join(" > ")};const se=Symbol("store-raw"),R=Symbol("store-node");function Se(e){let t=e[C];if(!t&&(Object.defineProperty(e,C,{value:t=new Proxy(e,Qe)}),!Array.isArray(e))){const n=Object.keys(e),l=Object.getOwnPropertyDescriptors(e);for(let s=0,o=n.length;s<o;s++){const i=n[s];l[i].get&&Object.defineProperty(e,i,{enumerable:l[i].enumerable,get:l[i].get.bind(t)})}}return t}function Q(e){let t;return e!=null&&typeof e=="object"&&(e[C]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function V(e,t=new Set){let n,l,s,o;if(n=e!=null&&e[se])return n;if(!Q(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let i=0,r=e.length;i<r;i++)s=e[i],(l=V(s,t))!==s&&(e[i]=l)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const i=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let c=0,h=i.length;c<h;c++)o=i[c],!r[o].get&&(s=e[o],(l=V(s,t))!==s&&(e[o]=l))}return e}function ce(e){let t=e[R];return t||Object.defineProperty(e,R,{value:t=Object.create(null)}),t}function oe(e,t,n){return e[t]||(e[t]=ke(n))}function Ye(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===C||t===R||(delete n.value,delete n.writable,n.get=()=>e[C][t]),n}function Ae(e){if(we()){const t=ce(e);(t._||(t._=ke()))()}}function Je(e){return Ae(e),Reflect.ownKeys(e)}function ke(e){const[t,n]=F(e,{equals:!1,internal:!0});return t.$=n,t}const Qe={get(e,t,n){if(t===se)return e;if(t===C)return n;if(t===fe)return Ae(e),n;const l=ce(e),s=l[t];let o=s?s():e[t];if(t===R||t==="__proto__")return o;if(!s){const i=Object.getOwnPropertyDescriptor(e,t);we()&&(typeof o!="function"||e.hasOwnProperty(t))&&!(i&&i.get)&&(o=oe(l,t,o)())}return Q(o)?Se(o):o},has(e,t){return t===se||t===C||t===fe||t===R||t==="__proto__"?!0:(this.get(e,t,e),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:Je,getOwnPropertyDescriptor:Ye};function Z(e,t,n,l=!1){if(!l&&e[t]===n)return;const s=e[t],o=e.length;n===void 0?delete e[t]:e[t]=n;let i=ce(e),r;if((r=oe(i,t,s))&&r.$(()=>n),Array.isArray(e)&&e.length!==o){for(let c=e.length;c<o;c++)(r=i[c])&&r.$();(r=oe(i,"length",o))&&r.$(e.length)}(r=i._)&&r.$()}function Oe(e,t){const n=Object.keys(t);for(let l=0;l<n.length;l+=1){const s=n[l];Z(e,s,t[s])}}function Ze(e,t){if(typeof t=="function"&&(t=t(e)),t=V(t),Array.isArray(t)){if(e===t)return;let n=0,l=t.length;for(;n<l;n++){const s=t[n];e[n]!==s&&Z(e,n,s)}Z(e,"length",l)}else Oe(e,t)}function B(e,t,n=[]){let l,s=e;if(t.length>1){l=t.shift();const i=typeof l,r=Array.isArray(e);if(Array.isArray(l)){for(let c=0;c<l.length;c++)B(e,[l[c]].concat(t),n);return}else if(r&&i==="function"){for(let c=0;c<e.length;c++)l(e[c],c)&&B(e,[c].concat(t),n);return}else if(r&&i==="object"){const{from:c=0,to:h=e.length-1,by:u=1}=l;for(let g=c;g<=h;g+=u)B(e,[g].concat(t),n);return}else if(t.length>1){B(e[l],t,[l].concat(n));return}s=e[l],n=[l].concat(n)}let o=t[0];typeof o=="function"&&(o=o(s,n),o===s)||l===void 0&&o==null||(o=V(o),l===void 0||Q(s)&&Q(o)&&!Array.isArray(o)?Oe(s,o):Z(e,l,o))}function et(...[e,t]){const n=V(e||{}),l=Array.isArray(n),s=Se(n);function o(...i){Le(()=>{l&&i.length===1?Ze(n,i[0]):B(n,i)})}return[s,o]}const[p,z]=et({working:!1,selectedElement:null}),tt=A('<svg data-ohbug-selector height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" data-ohbug-selector fill="none"></path><path d="M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z" data-ohbug-selector fill="rgba(255,255,255,1)">'),nt=A('<svg data-ohbug-selector height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" data-ohbug-selector fill="none"></path><path d="M3 3h2v2H3V3zm4 0h2v2H7V3zm4 0h2v2h-2V3zm4 0h2v2h-2V3zm4 0h2v2h-2V3zm0 4h2v2h-2V7zM3 19h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3V7zm7.667 4l1.036-1.555A1 1 0 0 1 12.535 9h2.93a1 1 0 0 1 .832.445L17.333 11H20a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h2.667zM9 19h10v-6h-2.737l-1.333-2h-1.86l-1.333 2H9v6zm5-1a2 2 0 1 1 0-4 2 2 0 0 1 0 4z" data-ohbug-selector>'),ie=()=>tt(),lt=()=>(()=>{const e=nt();return e.firstChild.nextSibling.style.setProperty("fill","var(--color)"),e})(),st=A('<div class="bg-none border-solid border-4 border-blue-500 transition top-0 right-0 bottom-0 left-0 z-10 fixed pointer-events-none" data-ohbug-selector><div class="tips" data-ohbug-selector>Select element on the page<button class="stop-btn" type="button">'),ot=A('<button class="rounded-full cursor-pointer flex bg-red-500 h-6 -top-3 -right-3 w-6 z-10 items-center justify-center absolute pointer-events-auto" data-ohbug-selector type="button">'),it=A('<button class="border-solid cursor-pointer font-semibold bg-red-500 border-4 border-red-500 -bottom-full text-white right-0 absolute pointer-events-auto" data-ohbug-selector type="button">Change'),rt=A('<div class="-z-1 fixed" data-ohbug-selector><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div data-ohbug-selector>'),ct=()=>{const[e,t]=F();let n,l,s,o,i;const r=2;function c(f){if(!f||f.tagName==="HTML")return;const{width:a,height:y,top:E,right:P,bottom:M,left:d}=f.getBoundingClientRect();i==null||i.setAttribute("style",`
|
|
1
|
+
"use strict";const Pe=(e,t)=>e===t,C=Symbol("solid-proxy"),ae=Symbol("solid-track"),W={equals:Pe};let be=ve;const k=1,X=2,pe={owned:null,cleanups:null,context:null,owner:null};var w=null;let le=null,b=null,$=null,S=null,te=0;function Le(e,t){const n=b,l=w,o=e.length===0,s=o?pe:{owned:null,cleanups:null,context:null,owner:t===void 0?l:t},i=o?e:()=>e(()=>N(()=>ne(s)));w=s,b=null;try{return H(i,!0)}finally{b=n,w=l}}function U(e,t){t=t?Object.assign({},W,t):W;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},l=o=>(typeof o=="function"&&(o=o(n.value)),me(n,o));return[$e.bind(n),l]}function D(e,t,n){const l=ce(e,t,!1,k);I(l)}function we(e,t,n){be=Me;const l=ce(e,t,!1,k);(!n||!n.render)&&(l.user=!0),S?S.push(l):I(l)}function de(e,t,n){n=n?Object.assign({},W,n):W;const l=ce(e,t,!0,0);return l.observers=null,l.observerSlots=null,l.comparator=n.equals||void 0,I(l),$e.bind(l)}function ze(e){return H(e,!1)}function N(e){if(b===null)return e();const t=b;b=null;try{return e()}finally{b=t}}function je(e){return w===null||(w.cleanups===null?w.cleanups=[e]:w.cleanups.push(e)),e}function ye(){return b}function $e(){if(this.sources&&this.state)if(this.state===k)I(this);else{const e=$;$=null,H(()=>J(this),!1),$=e}if(b){const e=this.observers?this.observers.length:0;b.sources?(b.sources.push(this),b.sourceSlots.push(e)):(b.sources=[this],b.sourceSlots=[e]),this.observers?(this.observers.push(b),this.observerSlots.push(b.sources.length-1)):(this.observers=[b],this.observerSlots=[b.sources.length-1])}return this.value}function me(e,t,n){let l=e.value;return(!e.comparator||!e.comparator(l,t))&&(e.value=t,e.observers&&e.observers.length&&H(()=>{for(let o=0;o<e.observers.length;o+=1){const s=e.observers[o],i=le&&le.running;i&&le.disposed.has(s),(i?!s.tState:!s.state)&&(s.pure?$.push(s):S.push(s),s.observers&&xe(s)),i||(s.state=k)}if($.length>1e6)throw $=[],new Error},!1)),t}function I(e){if(!e.fn)return;ne(e);const t=w,n=b,l=te;b=w=e,De(e,e.value,l),b=n,w=t}function De(e,t,n){let l;try{l=e.fn(t)}catch(o){return e.pure&&(e.state=k,e.owned&&e.owned.forEach(ne),e.owned=null),e.updatedAt=n+1,_e(o)}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?me(e,l):e.value=l,e.updatedAt=n)}function ce(e,t,n,l=k,o){const s={fn:e,state:l,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:w,context:null,pure:n};return w===null||w!==pe&&(w.owned?w.owned.push(s):w.owned=[s]),s}function Y(e){if(e.state===0)return;if(e.state===X)return J(e);if(e.suspense&&N(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<te);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===k)I(e);else if(e.state===X){const l=$;$=null,H(()=>J(e,t[0]),!1),$=l}}function H(e,t){if($)return e();let n=!1;t||($=[]),S?n=!0:S=[],te++;try{const l=e();return He(n),l}catch(l){n||(S=null),$=null,_e(l)}}function He(e){if($&&(ve($),$=null),e)return;const t=S;S=null,t.length&&H(()=>be(t),!1)}function ve(e){for(let t=0;t<e.length;t++)Y(e[t])}function Me(e){let t,n=0;for(t=0;t<e.length;t++){const l=e[t];l.user?e[n++]=l:Y(l)}for(t=0;t<n;t++)Y(e[t])}function J(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const l=e.sources[n];if(l.sources){const o=l.state;o===k?l!==t&&(!l.updatedAt||l.updatedAt<te)&&Y(l):o===X&&J(l,t)}}}function xe(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=X,n.pure?$.push(n):S.push(n),n.observers&&xe(n))}}function ne(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),l=e.sourceSlots.pop(),o=n.observers;if(o&&o.length){const s=o.pop(),i=n.observerSlots.pop();l<o.length&&(s.sourceSlots[i]=l,o[l]=s,n.observerSlots[l]=i)}}if(e.owned){for(t=e.owned.length-1;t>=0;t--)ne(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function Be(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function _e(e,t=w){throw Be(e)}function x(e,t){return N(()=>e(t||{}))}const Fe=e=>`Stale read from <${e}>.`;function R(e){const t=e.keyed,n=de(()=>e.when,void 0,{equals:(l,o)=>t?l===o:!l==!o});return de(()=>{const l=n();if(l){const o=e.children;return typeof o=="function"&&o.length>0?N(()=>o(t?l:()=>{if(!N(n))throw Fe("Show");return e.when})):o}return e.fallback},void 0,void 0)}function Ue(e,t,n){let l=n.length,o=t.length,s=l,i=0,r=0,c=t[o-1].nextSibling,h=null;for(;i<o||r<s;){if(t[i]===n[r]){i++,r++;continue}for(;t[o-1]===n[s-1];)o--,s--;if(o===i){const u=s<l?r?n[r-1].nextSibling:n[s-r]:c;for(;r<s;)e.insertBefore(n[r++],u)}else if(s===r)for(;i<o;)(!h||!h.has(t[i]))&&t[i].remove(),i++;else if(t[i]===n[s-1]&&n[r]===t[o-1]){const u=t[--o].nextSibling;e.insertBefore(n[r++],t[i++].nextSibling),e.insertBefore(n[--s],u),t[o]=n[s]}else{if(!h){h=new Map;let g=r;for(;g<s;)h.set(n[g],g++)}const u=h.get(t[i]);if(u!=null)if(r<u&&u<s){let g=i,m=1,_;for(;++g<o&&g<s&&!((_=h.get(t[g]))==null||_!==u+m);)m++;if(m>u-r){const T=t[i];for(;r<u;)e.insertBefore(n[r++],T)}else e.replaceChild(n[r++],t[i++])}else i++;else t[i++].remove()}}}const he="_$DX_DELEGATE";function Re(e,t,n,l={}){let o;return Le(s=>{o=s,t===document?e():v(t,e(),t.firstChild?null:void 0,n)},l.owner),()=>{o(),t.textContent=""}}function A(e,t,n){let l;const o=()=>{const i=document.createElement("template");return i.innerHTML=e,n?i.content.firstChild.firstChild:i.content.firstChild},s=t?()=>N(()=>document.importNode(l||(l=o()),!0)):()=>(l||(l=o())).cloneNode(!0);return s.cloneNode=s,s}function Ee(e,t=window.document){const n=t[he]||(t[he]=new Set);for(let l=0,o=e.length;l<o;l++){const s=e[l];n.has(s)||(n.add(s),t.addEventListener(s,Ge))}}function Ve(e,t){t==null?e.removeAttribute("class"):e.className=t}function B(e,t,n){return N(()=>e(t,n))}function v(e,t,n,l){if(n!==void 0&&!l&&(l=[]),typeof t!="function")return Q(e,t,l,n);D(o=>Q(e,t(),o,n),l)}function Ge(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}});n;){const l=n[t];if(l&&!n.disabled){const o=n[`${t}Data`];if(o!==void 0?l.call(n,o,e):l.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function Q(e,t,n,l,o){for(;typeof n=="function";)n=n();if(t===n)return n;const s=typeof t,i=l!==void 0;if(e=i&&n[0]&&n[0].parentNode||e,s==="string"||s==="number")if(s==="number"&&(t=t.toString()),i){let r=n[0];r&&r.nodeType===3?r.data=t:r=document.createTextNode(t),n=L(e,n,l,r)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t;else if(t==null||s==="boolean")n=L(e,n,l);else{if(s==="function")return D(()=>{let r=t();for(;typeof r=="function";)r=r();n=Q(e,r,n,l)}),()=>n;if(Array.isArray(t)){const r=[],c=n&&Array.isArray(n);if(oe(r,t,n,o))return D(()=>n=Q(e,r,n,l,!0)),()=>n;if(r.length===0){if(n=L(e,n,l),i)return n}else c?n.length===0?ge(e,r,l):Ue(e,n,r):(n&&L(e),ge(e,r));n=r}else if(t.nodeType){if(Array.isArray(n)){if(i)return n=L(e,n,l,t);L(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}else console.warn("Unrecognized value. Skipped inserting",t)}return n}function oe(e,t,n,l){let o=!1;for(let s=0,i=t.length;s<i;s++){let r=t[s],c=n&&n[s],h;if(!(r==null||r===!0||r===!1))if((h=typeof r)=="object"&&r.nodeType)e.push(r);else if(Array.isArray(r))o=oe(e,r,c)||o;else if(h==="function")if(l){for(;typeof r=="function";)r=r();o=oe(e,Array.isArray(r)?r:[r],Array.isArray(c)?c:[c])||o}else e.push(r),o=!0;else{const u=String(r);c&&c.nodeType===3&&c.data===u?e.push(c):e.push(document.createTextNode(u))}}return o}function ge(e,t,n=null){for(let l=0,o=t.length;l<o;l++)e.insertBefore(t[l],n)}function L(e,t,n,l){if(n===void 0)return e.textContent="";const o=l||document.createTextNode("");if(t.length){let s=!1;for(let i=t.length-1;i>=0;i--){const r=t[i];if(o!==r){const c=r.parentNode===e;!s&&!i?c?e.replaceChild(o,r):e.insertBefore(o,n):c&&r.remove()}else s=!0}}else e.insertBefore(o,n);return[o]}function Ie(e,t,...n){if(t===void 0)throw new Error("`Ohbug warning(condition, format, ...args)` requires a warning message argument");if(!e){let l=0;const o=t.replace(/%s/g,()=>n[l++]);throw new Error(`Ohbug ${o}`)}}var qe={};function Ke(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:qe}function We(){const e=Ke();return Ie(!!e.__OHBUG__,"Failed to get `OhbugObject`, please confirm if `Ohbug.setup`"),e.__OHBUG__}function Se(e,t){e.parentNode&&(t.push(e.parentNode),Se(e.parentNode,t))}function Xe(e){const t=[];return t.push(e),Se(e,t),t}var Ye=e=>{const t=e.target||e.srcElement;let n=e.target||e.srcElement;const l=[];for(let i=0;n&&n.nodeType===Node.ELEMENT_NODE&&n.nodeType!==Node.DOCUMENT_TYPE_NODE;n=n.previousSibling)i&&l.push(n),i+=1;const o=typeof e.path>"u"?Xe(e.target):e.path,{outerHTML:s}=t;return o.reverse().map(i=>(i.localName||"")+(i.id?`#${i.id}`:"")+(i.className?`.${i.className}`:"")+(i.outerHTML===s?`:nth-child(${l.length})`:"")).filter(i=>!!i).join(" > ")};const se=Symbol("store-raw"),V=Symbol("store-node");function Ae(e){let t=e[C];if(!t&&(Object.defineProperty(e,C,{value:t=new Proxy(e,Ze)}),!Array.isArray(e))){const n=Object.keys(e),l=Object.getOwnPropertyDescriptors(e);for(let o=0,s=n.length;o<s;o++){const i=n[o];l[i].get&&Object.defineProperty(e,i,{enumerable:l[i].enumerable,get:l[i].get.bind(t)})}}return t}function Z(e){let t;return e!=null&&typeof e=="object"&&(e[C]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function G(e,t=new Set){let n,l,o,s;if(n=e!=null&&e[se])return n;if(!Z(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let i=0,r=e.length;i<r;i++)o=e[i],(l=G(o,t))!==o&&(e[i]=l)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const i=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let c=0,h=i.length;c<h;c++)s=i[c],!r[s].get&&(o=e[s],(l=G(o,t))!==o&&(e[s]=l))}return e}function ue(e){let t=e[V];return t||Object.defineProperty(e,V,{value:t=Object.create(null)}),t}function ie(e,t,n){return e[t]||(e[t]=Oe(n))}function Je(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===C||t===V||(delete n.value,delete n.writable,n.get=()=>e[C][t]),n}function ke(e){if(ye()){const t=ue(e);(t._||(t._=Oe()))()}}function Qe(e){return ke(e),Reflect.ownKeys(e)}function Oe(e){const[t,n]=U(e,{equals:!1,internal:!0});return t.$=n,t}const Ze={get(e,t,n){if(t===se)return e;if(t===C)return n;if(t===ae)return ke(e),n;const l=ue(e),o=l[t];let s=o?o():e[t];if(t===V||t==="__proto__")return s;if(!o){const i=Object.getOwnPropertyDescriptor(e,t);ye()&&(typeof s!="function"||e.hasOwnProperty(t))&&!(i&&i.get)&&(s=ie(l,t,s)())}return Z(s)?Ae(s):s},has(e,t){return t===se||t===C||t===ae||t===V||t==="__proto__"?!0:(this.get(e,t,e),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:Qe,getOwnPropertyDescriptor:Je};function ee(e,t,n,l=!1){if(!l&&e[t]===n)return;const o=e[t],s=e.length;n===void 0?delete e[t]:e[t]=n;let i=ue(e),r;if((r=ie(i,t,o))&&r.$(()=>n),Array.isArray(e)&&e.length!==s){for(let c=e.length;c<s;c++)(r=i[c])&&r.$();(r=ie(i,"length",s))&&r.$(e.length)}(r=i._)&&r.$()}function Ce(e,t){const n=Object.keys(t);for(let l=0;l<n.length;l+=1){const o=n[l];ee(e,o,t[o])}}function et(e,t){if(typeof t=="function"&&(t=t(e)),t=G(t),Array.isArray(t)){if(e===t)return;let n=0,l=t.length;for(;n<l;n++){const o=t[n];e[n]!==o&&ee(e,n,o)}ee(e,"length",l)}else Ce(e,t)}function F(e,t,n=[]){let l,o=e;if(t.length>1){l=t.shift();const i=typeof l,r=Array.isArray(e);if(Array.isArray(l)){for(let c=0;c<l.length;c++)F(e,[l[c]].concat(t),n);return}else if(r&&i==="function"){for(let c=0;c<e.length;c++)l(e[c],c)&&F(e,[c].concat(t),n);return}else if(r&&i==="object"){const{from:c=0,to:h=e.length-1,by:u=1}=l;for(let g=c;g<=h;g+=u)F(e,[g].concat(t),n);return}else if(t.length>1){F(e[l],t,[l].concat(n));return}o=e[l],n=[l].concat(n)}let s=t[0];typeof s=="function"&&(s=s(o,n),s===o)||l===void 0&&s==null||(s=G(s),l===void 0||Z(o)&&Z(s)&&!Array.isArray(s)?Ce(o,s):ee(e,l,s))}function tt(...[e,t]){const n=G(e||{}),l=Array.isArray(n),o=Ae(n);function s(...i){ze(()=>{l&&i.length===1?et(n,i[0]):F(n,i)})}return[o,s]}const[p,j]=tt({working:!1,selectedElement:null}),nt=A('<svg data-ohbug-selector height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" data-ohbug-selector fill="none"></path><path d="M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z" data-ohbug-selector fill="rgba(255,255,255,1)">'),lt=A('<svg data-ohbug-selector height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" data-ohbug-selector fill="none"></path><path d="M3 3h2v2H3V3zm4 0h2v2H7V3zm4 0h2v2h-2V3zm4 0h2v2h-2V3zm4 0h2v2h-2V3zm0 4h2v2h-2V7zM3 19h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3V7zm7.667 4l1.036-1.555A1 1 0 0 1 12.535 9h2.93a1 1 0 0 1 .832.445L17.333 11H20a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h2.667zM9 19h10v-6h-2.737l-1.333-2h-1.86l-1.333 2H9v6zm5-1a2 2 0 1 1 0-4 2 2 0 0 1 0 4z" data-ohbug-selector>'),re=()=>nt(),ot=()=>(()=>{const e=lt();return e.firstChild.nextSibling.style.setProperty("fill","var(--color)"),e})(),st=A('<div class="bg-none border-solid border-4 border-blue-500 transition top-0 right-0 bottom-0 left-0 z-10 fixed pointer-events-none" data-ohbug-selector><div class="tips" data-ohbug-selector>Select element on the page<button class="btn-stop" type="button">'),it=A('<button class="rounded-full border-none cursor-pointer flex bg-red-500 h-6 -top-3 -right-3 w-6 z-10 items-center justify-center absolute pointer-events-auto" data-ohbug-selector type="button">'),rt=A('<button class="border-solid cursor-pointer font-semibold bg-red-500 border-4 border-red-500 -bottom-full text-white right-0 absolute pointer-events-auto" data-ohbug-selector type="button">Change'),ct=A('<div class="-z-1 fixed" data-ohbug-selector><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div data-ohbug-selector>'),ut=()=>{const[e,t]=U();let n,l,o,s,i;const r=2;function c(f){if(!f||f.tagName==="HTML")return;const{width:a,height:y,top:E,right:P,bottom:M,left:d}=f.getBoundingClientRect();i==null||i.setAttribute("style",`
|
|
2
2
|
width: ${a+r*2}px;
|
|
3
3
|
height: ${y+r*2}px;
|
|
4
4
|
top: ${E-r}px;
|
|
@@ -13,19 +13,19 @@
|
|
|
13
13
|
right: 0;
|
|
14
14
|
bottom: 0;
|
|
15
15
|
left: ${P}px;
|
|
16
|
-
`),
|
|
16
|
+
`),o==null||o.setAttribute("style",`
|
|
17
17
|
width: ${a+d}px;
|
|
18
18
|
top: ${M}px;
|
|
19
19
|
bottom: 0;
|
|
20
20
|
left: 0;
|
|
21
|
-
`),
|
|
21
|
+
`),s==null||s.setAttribute("style",`
|
|
22
22
|
width: ${d}px;
|
|
23
23
|
height: ${y}px;
|
|
24
24
|
top: ${E}px;
|
|
25
25
|
left: 0;
|
|
26
|
-
`)}function h(f){if(!f||f.tagName==="HTML")return;const{width:a,height:y,top:E,left:P}=f.getBoundingClientRect();
|
|
26
|
+
`)}function h(f){if(!f||f.tagName==="HTML")return;const{width:a,height:y,top:E,left:P}=f.getBoundingClientRect();j({selectedElement:f}),i==null||i.setAttribute("style",`
|
|
27
27
|
width: ${a+r*2}px;
|
|
28
28
|
height: ${y+r*2}px;
|
|
29
29
|
top: ${E-r}px;
|
|
30
30
|
left: ${P-r}px;
|
|
31
|
-
`)}function u(f){var y;z({working:!0});const a=document.elementFromPoint(f.clientX,f.clientY);if(((y=a==null?void 0:a.dataset)==null?void 0:y.ohbugSelector)!==void 0||a.tagName==="HTML")return!1;c(a)}function g(){document.addEventListener("mousemove",u)}function m(){document.removeEventListener("mousemove",u)}function _(f){var y;const a=document.elementFromPoint(f.clientX,f.clientY);if(((y=a==null?void 0:a.dataset)==null?void 0:y.ohbugSelector)!==void 0||a.tagName==="HTML"||p.selectedElement&&p.working)return!1;t(a),h(e()),m()}function T(){document.addEventListener("mousedown",_)}function I(){document.removeEventListener("mousedown",_)}function O(){t(null),m(),I(),z({working:!1,selectedElement:null})}function q(){z({working:!0,selectedElement:null}),t(null),g()}return pe(()=>{p.working?(g(),T()):(m(),I())}),ze(O),(()=>{const f=rt(),a=f.firstChild,y=a.nextSibling,E=y.nextSibling,P=E.nextSibling,M=P.nextSibling;return v(f,x(U,{get when(){return!p.selectedElement&&p.working},get children(){const d=st(),Ce=d.firstChild,Ne=Ce.firstChild,ue=Ne.nextSibling;return ue.$$click=O,v(ue,x(ie,{})),d}}),a),D(d=>{n=d},a),D(d=>{l=d},y),D(d=>{s=d},E),D(d=>{o=d},P),D(d=>{i=d},M),v(M,x(U,{get when(){return p.selectedElement&&p.working},get children(){return[(()=>{const d=ot();return d.$$click=O,v(d,x(ie,{})),d})(),(()=>{const d=it();return d.$$click=q,d.style.setProperty("transform","translate(4px, -8px)"),d})()]}})),j(()=>Re(M,`fixed -z-1 bg-black bg-opacity-20 border-4 rounded-sm transition cursor-pointer box-border pointer-events-none ${e()?"border-red-500 border-solid":"border-blue-500 border-dashed"}`)),f})()};_e(["click"]);const ut=A('<button class="btn-main" data-ohbug-selector type="button">'),ft=A('<div class="bg-white flex flex-col h-60 shadow z-max right-8 bottom-20 w-80 fixed" data-ohbug-selector><div class="bg-gray-300 p-4" data-ohbug-selector><textarea autofocus class="bg-transparent outline-none w-full resize-none" data-ohbug-selector maxlength="1000" placeholder="Tell me how you feel..." rows="4"></textarea><button class="cursor-pointer" data-ohbug-selector type="button"></button></div><div class="flex flex-1 p-4 justify-between items-center" data-ohbug-selector><span class="text-sm" data-ohbug-selector>Try<a class="ml-1 underline" data-ohbug-selector href="https://ohbug.net" rel="noreferrer" target="_blank">Ohbug</a>?</span><button class="btn-send" data-ohbug-selector type="button"></button></div><button class="rounded-full cursor-pointer flex bg-blue-500 h-6 -top-2 -right-2 w-6 z-10 items-center justify-center absolute" data-ohbug-selector type="button">'),at=A('<div class="z-max relative" data-ohbug-selector><div>'),dt=()=>{const[e,t]=F(!1),[n,l]=F("");function s(){z({working:!0})}const[o,i]=F(!1);async function r(){i(!0);let c,h;const u=Ke().client;if(p.selectedElement){const g={target:p.selectedElement};c=Xe(g),h=p.selectedElement.outerHTML;const m=u.createEvent({category:"feedback",type:"feedback",detail:{selector:c,outerHTML:h,feedback:n()}});await u.notify(m)}else{const g=u.createEvent({category:"feedback",type:"feedback",detail:{feedback:n()}});await u.notify(g)}t(!1),l(""),z({working:!1,selectedElement:null}),i(!1)}return pe(()=>{p.working===!1&&p.selectedElement===null||p.working&&!p.selectedElement?t(!1):t(!0)}),(()=>{const c=at(),h=c.firstChild;return v(c,x(U,{get when(){return p.working},get children(){return x(ct,{})}}),h),v(h,x(U,{get when(){return!(p.working&&!p.selectedElement)},get children(){const u=ut();return u.$$click=()=>t(g=>!g),v(u,()=>e()?"😆":"🙂"),u}}),null),v(h,x(U,{get when(){return e()},get children(){const u=ft(),g=u.firstChild,m=g.firstChild,_=m.nextSibling,T=g.nextSibling,I=T.firstChild,O=I.nextSibling,q=T.nextSibling;return m.$$input=f=>l(f.currentTarget.value),_.$$click=s,v(_,x(lt,{})),O.$$click=r,v(O,()=>o()?"Sending...":"Send"),q.$$click=()=>t(f=>!f),v(q,x(ie,{})),j(f=>{const a=p.selectedElement?"blue":"gray",y=!n()||o();return a!==f._v$&&((f._v$=a)!=null?_.style.setProperty("--color",a):_.style.removeProperty("--color")),y!==f._v$2&&(O.disabled=f._v$2=y),f},{_v$:void 0,_v$2:void 0}),j(()=>m.value=n()),u}}),null),c})()};_e(["click","input"]);const ht=e=>({name:"OhbugExtensionFeedback",onSetup:()=>{const t=document.createElement("div");t.id="OhbugExtensionFeedback-ROOT",(e||document.body).appendChild(t),Ue(()=>x(dt,{}),t)}});function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;if(!css||typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}};styleInject("/*\n! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n*/\n\nhtml {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font family by default.\n2. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n\n*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n.btn-main {\n z-index: 99999;\n position: fixed;\n right: 2rem;\n bottom: 2rem;\n display: flex;\n height: 2rem;\n width: 2.5rem;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n align-items: center;\n justify-content: center;\n border-radius: 0.25rem;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.btn-main:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(37 99 235 / var(--tw-bg-opacity));\n --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.btn-send {\n border-radius: 0.125rem;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.btn-send:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n.tips {\n z-index: 99999;\n position: fixed;\n top: 0px;\n left: 50%;\n display: flex;\n --tw-translate-x: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n align-items: center;\n border-bottom-right-radius: 0.5rem;\n border-bottom-left-radius: 0.5rem;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n padding: 0.75rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n.z-max {\n z-index: 99999;\n}\n.pointer-events-none {\n pointer-events: none;\n}\n.pointer-events-auto {\n pointer-events: auto;\n}\n.visible {\n visibility: visible;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.-bottom-full {\n bottom: -100%;\n}\n.-right-2 {\n right: -0.5rem;\n}\n.-right-3 {\n right: -0.75rem;\n}\n.-top-2 {\n top: -0.5rem;\n}\n.-top-3 {\n top: -0.75rem;\n}\n.bottom-0 {\n bottom: 0px;\n}\n.bottom-20 {\n bottom: 5rem;\n}\n.left-0 {\n left: 0px;\n}\n.right-0 {\n right: 0px;\n}\n.right-8 {\n right: 2rem;\n}\n.top-0 {\n top: 0px;\n}\n.z-10 {\n z-index: 10;\n}\n.ml-1 {\n margin-left: 0.25rem;\n}\n.box-border {\n box-sizing: border-box;\n}\n.flex {\n display: flex;\n}\n.h-6 {\n height: 1.5rem;\n}\n.h-60 {\n height: 15rem;\n}\n.w-6 {\n width: 1.5rem;\n}\n.w-80 {\n width: 20rem;\n}\n.w-full {\n width: 100%;\n}\n.flex-1 {\n flex: 1 1 0%;\n}\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.cursor-pointer {\n cursor: pointer;\n}\n.resize-none {\n resize: none;\n}\n.flex-col {\n flex-direction: column;\n}\n.items-center {\n align-items: center;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.rounded-sm {\n border-radius: 0.125rem;\n}\n.border-4 {\n border-width: 4px;\n}\n.border-solid {\n border-style: solid;\n}\n.border-dashed {\n border-style: dashed;\n}\n.border-blue-500 {\n --tw-border-opacity: 1;\n border-color: rgb(59 130 246 / var(--tw-border-opacity));\n}\n.border-red-500 {\n --tw-border-opacity: 1;\n border-color: rgb(239 68 68 / var(--tw-border-opacity));\n}\n.bg-black {\n --tw-bg-opacity: 1;\n background-color: rgb(0 0 0 / var(--tw-bg-opacity));\n}\n.bg-blue-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n}\n.bg-gray-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(209 213 219 / var(--tw-bg-opacity));\n}\n.bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity));\n}\n.bg-transparent {\n background-color: transparent;\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n.bg-opacity-20 {\n --tw-bg-opacity: 0.2;\n}\n.bg-opacity-40 {\n --tw-bg-opacity: 0.4;\n}\n.bg-none {\n background-image: none;\n}\n.p-4 {\n padding: 1rem;\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.font-semibold {\n font-weight: 600;\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n.underline {\n text-decoration-line: underline;\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}");module.exports=ht;
|
|
31
|
+
`)}function u(f){var y;j({working:!0});const a=document.elementFromPoint(f.clientX,f.clientY);if(((y=a==null?void 0:a.dataset)==null?void 0:y.ohbugSelector)!==void 0||a.tagName==="HTML")return!1;c(a)}function g(){document.addEventListener("mousemove",u)}function m(){document.removeEventListener("mousemove",u)}function _(f){var y;const a=document.elementFromPoint(f.clientX,f.clientY);if(((y=a==null?void 0:a.dataset)==null?void 0:y.ohbugSelector)!==void 0||a.tagName==="HTML"||p.selectedElement&&p.working)return!1;t(a),h(e()),m()}function T(){document.addEventListener("mousedown",_)}function q(){document.removeEventListener("mousedown",_)}function O(){t(null),m(),q(),j({working:!1,selectedElement:null})}function K(){j({working:!0,selectedElement:null}),t(null),g()}return we(()=>{p.working?(g(),T()):(m(),q())}),je(O),(()=>{const f=ct(),a=f.firstChild,y=a.nextSibling,E=y.nextSibling,P=E.nextSibling,M=P.nextSibling;return v(f,x(R,{get when(){return!p.selectedElement&&p.working},get children(){const d=st(),Ne=d.firstChild,Te=Ne.firstChild,fe=Te.nextSibling;return fe.$$click=O,v(fe,x(re,{})),d}}),a),B(d=>{n=d},a),B(d=>{l=d},y),B(d=>{o=d},E),B(d=>{s=d},P),B(d=>{i=d},M),v(M,x(R,{get when(){return p.selectedElement&&p.working},get children(){return[(()=>{const d=it();return d.$$click=O,v(d,x(re,{})),d})(),(()=>{const d=rt();return d.$$click=K,d.style.setProperty("transform","translate(4px, -8px)"),d})()]}})),D(()=>Ve(M,`fixed -z-1 bg-black bg-opacity-20 border-4 rounded-sm transition cursor-pointer box-border pointer-events-none ${e()?"border-red-500 border-solid":"border-blue-500 border-dashed"}`)),f})()};Ee(["click"]);const ft=A('<button class="btn-main" data-ohbug-selector type="button">'),at=A('<div class="bg-white flex flex-col h-60 shadow z-max right-8 bottom-20 w-80 fixed" data-ohbug-selector><div class="bg-gray-300 p-4" data-ohbug-selector><textarea autofocus class="bg-transparent outline-none border-none w-full resize-none" data-ohbug-selector maxlength="1000" placeholder="Tell me how you feel..." rows="4"></textarea><button class="cursor-pointer border-none bg-transparent" data-ohbug-selector type="button"></button></div><div class="flex flex-1 p-4 justify-between items-center" data-ohbug-selector><span class="text-sm" data-ohbug-selector>Try<a class="ml-1 underline" data-ohbug-selector href="https://ohbug.net" rel="noreferrer" target="_blank">Ohbug</a>?</span><button class="btn-send" data-ohbug-selector type="button"></button></div><button class="border-none rounded-full cursor-pointer flex bg-blue-500 h-6 -top-2 -right-2 w-6 z-10 items-center justify-center absolute" data-ohbug-selector type="button">'),dt=A('<div class="z-max relative" data-ohbug-selector><div>'),ht=()=>{const[e,t]=U(!1),[n,l]=U("");function o(){j({working:!0})}const[s,i]=U(!1);async function r(){i(!0);let c,h;const u=We().client;if(p.selectedElement){const g={target:p.selectedElement};c=Ye(g),h=p.selectedElement.outerHTML;const m=u.createEvent({category:"feedback",type:"feedback",detail:{selector:c,outerHTML:h,feedback:n()}});await u.notify(m)}else{const g=u.createEvent({category:"feedback",type:"feedback",detail:{feedback:n()}});await u.notify(g)}t(!1),l(""),j({working:!1,selectedElement:null}),i(!1)}return we(()=>{p.working===!1&&p.selectedElement===null||p.working&&!p.selectedElement?t(!1):t(!0)}),(()=>{const c=dt(),h=c.firstChild;return v(c,x(R,{get when(){return p.working},get children(){return x(ut,{})}}),h),v(h,x(R,{get when(){return!(p.working&&!p.selectedElement)},get children(){const u=ft();return u.$$click=()=>t(g=>!g),v(u,()=>e()?"😆":"🙂"),u}}),null),v(h,x(R,{get when(){return e()},get children(){const u=at(),g=u.firstChild,m=g.firstChild,_=m.nextSibling,T=g.nextSibling,q=T.firstChild,O=q.nextSibling,K=T.nextSibling;return m.$$input=f=>l(f.currentTarget.value),_.$$click=o,v(_,x(ot,{})),O.$$click=r,v(O,()=>s()?"Sending...":"Send"),K.$$click=()=>t(f=>!f),v(K,x(re,{})),D(f=>{const a=p.selectedElement?"blue":"gray",y=!n()||s();return a!==f._v$&&((f._v$=a)!=null?_.style.setProperty("--color",a):_.style.removeProperty("--color")),y!==f._v$2&&(O.disabled=f._v$2=y),f},{_v$:void 0,_v$2:void 0}),D(()=>m.value=n()),u}}),null),c})()};Ee(["click","input"]);const gt="OhbugExtensionFeedback-ROOT";let z=null;const bt=e=>({name:"OhbugExtensionFeedback",onSetup:()=>{z=document.createElement("div"),z.id=gt,(e||document.body).appendChild(z),Re(()=>x(ht,{}),z)},onDestroy:()=>{z&&z.remove()}});function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;if(!css||typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}};styleInject("*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: \n}\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: \n}\n.btn-main {\n z-index: 99999;\n position: fixed;\n right: 2rem;\n bottom: 2rem;\n display: flex;\n height: 2rem;\n width: 2.5rem;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n align-items: center;\n justify-content: center;\n border-radius: 0.25rem;\n border-style: none;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n.btn-main:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(37 99 235 / var(--tw-bg-opacity));\n --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n.btn-send {\n cursor: pointer;\n border-radius: 0.125rem;\n border-style: none;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n.btn-send:disabled {\n cursor: not-allowed;\n opacity: 0.5\n}\n.btn-stop {\n pointer-events: auto;\n margin-left: 0.25rem;\n cursor: pointer;\n border-style: none;\n background-color: transparent;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n.btn-stop:hover {\n background-color: rgb(107 114 128 / var(--tw-bg-opacity));\n --tw-bg-opacity: 0.3\n}\n.tips {\n z-index: 99999;\n position: fixed;\n top: 0px;\n left: 50%;\n display: flex;\n --tw-translate-x: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n align-items: center;\n border-bottom-right-radius: 0.5rem;\n border-bottom-left-radius: 0.5rem;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n padding: 0.75rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity))\n}\n.z-max {\n z-index: 99999\n}\n.pointer-events-none {\n pointer-events: none\n}\n.pointer-events-auto {\n pointer-events: auto\n}\n.visible {\n visibility: visible\n}\n.fixed {\n position: fixed\n}\n.absolute {\n position: absolute\n}\n.relative {\n position: relative\n}\n.-bottom-full {\n bottom: -100%\n}\n.-right-2 {\n right: -0.5rem\n}\n.-right-3 {\n right: -0.75rem\n}\n.-top-2 {\n top: -0.5rem\n}\n.-top-3 {\n top: -0.75rem\n}\n.bottom-0 {\n bottom: 0px\n}\n.bottom-20 {\n bottom: 5rem\n}\n.left-0 {\n left: 0px\n}\n.right-0 {\n right: 0px\n}\n.right-8 {\n right: 2rem\n}\n.top-0 {\n top: 0px\n}\n.z-10 {\n z-index: 10\n}\n.ml-1 {\n margin-left: 0.25rem\n}\n.box-border {\n box-sizing: border-box\n}\n.flex {\n display: flex\n}\n.h-6 {\n height: 1.5rem\n}\n.h-60 {\n height: 15rem\n}\n.w-6 {\n width: 1.5rem\n}\n.w-80 {\n width: 20rem\n}\n.w-full {\n width: 100%\n}\n.flex-1 {\n flex: 1 1 0%\n}\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n.cursor-pointer {\n cursor: pointer\n}\n.resize-none {\n resize: none\n}\n.flex-col {\n flex-direction: column\n}\n.items-center {\n align-items: center\n}\n.justify-center {\n justify-content: center\n}\n.justify-between {\n justify-content: space-between\n}\n.rounded-full {\n border-radius: 9999px\n}\n.rounded-sm {\n border-radius: 0.125rem\n}\n.border-4 {\n border-width: 4px\n}\n.border-solid {\n border-style: solid\n}\n.border-dashed {\n border-style: dashed\n}\n.border-none {\n border-style: none\n}\n.border-blue-500 {\n --tw-border-opacity: 1;\n border-color: rgb(59 130 246 / var(--tw-border-opacity))\n}\n.border-red-500 {\n --tw-border-opacity: 1;\n border-color: rgb(239 68 68 / var(--tw-border-opacity))\n}\n.bg-black {\n --tw-bg-opacity: 1;\n background-color: rgb(0 0 0 / var(--tw-bg-opacity))\n}\n.bg-blue-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity))\n}\n.bg-gray-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(209 213 219 / var(--tw-bg-opacity))\n}\n.bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity))\n}\n.bg-transparent {\n background-color: transparent\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity))\n}\n.bg-opacity-20 {\n --tw-bg-opacity: 0.2\n}\n.bg-opacity-40 {\n --tw-bg-opacity: 0.4\n}\n.bg-none {\n background-image: none\n}\n.p-4 {\n padding: 1rem\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n.font-semibold {\n font-weight: 600\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity))\n}\n.underline {\n text-decoration-line: underline\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px\n}\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}");module.exports=bt;
|
package/dist/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
const
|
|
2
|
-
equals:
|
|
1
|
+
const Pe = (e, t) => e === t, C = Symbol("solid-proxy"), ae = Symbol("solid-track"), W = {
|
|
2
|
+
equals: Pe
|
|
3
3
|
};
|
|
4
|
-
let
|
|
5
|
-
const k = 1,
|
|
4
|
+
let be = ve;
|
|
5
|
+
const k = 1, X = 2, pe = {
|
|
6
6
|
owned: null,
|
|
7
7
|
cleanups: null,
|
|
8
8
|
context: null,
|
|
9
9
|
owner: null
|
|
10
10
|
};
|
|
11
11
|
var w = null;
|
|
12
|
-
let
|
|
13
|
-
function
|
|
14
|
-
const n = b, l = w, o = e.length === 0, s = o ?
|
|
12
|
+
let le = null, b = null, $ = null, S = null, te = 0;
|
|
13
|
+
function Le(e, t) {
|
|
14
|
+
const n = b, l = w, o = e.length === 0, s = o ? pe : {
|
|
15
15
|
owned: null,
|
|
16
16
|
cleanups: null,
|
|
17
17
|
context: null,
|
|
18
18
|
owner: t === void 0 ? l : t
|
|
19
|
-
}, i = o ? e : () => e(() => N(() =>
|
|
19
|
+
}, i = o ? e : () => e(() => N(() => ne(s)));
|
|
20
20
|
w = s, b = null;
|
|
21
21
|
try {
|
|
22
22
|
return H(i, !0);
|
|
@@ -24,31 +24,31 @@ function Pe(e, t) {
|
|
|
24
24
|
b = n, w = l;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
t = t ? Object.assign({},
|
|
27
|
+
function U(e, t) {
|
|
28
|
+
t = t ? Object.assign({}, W, t) : W;
|
|
29
29
|
const n = {
|
|
30
30
|
value: e,
|
|
31
31
|
observers: null,
|
|
32
32
|
observerSlots: null,
|
|
33
33
|
comparator: t.equals || void 0
|
|
34
|
-
}, l = (o) => (typeof o == "function" && (o = o(n.value)),
|
|
35
|
-
return [
|
|
34
|
+
}, l = (o) => (typeof o == "function" && (o = o(n.value)), me(n, o));
|
|
35
|
+
return [$e.bind(n), l];
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const l =
|
|
39
|
-
|
|
37
|
+
function D(e, t, n) {
|
|
38
|
+
const l = ce(e, t, !1, k);
|
|
39
|
+
I(l);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
|
|
43
|
-
const l =
|
|
44
|
-
(!n || !n.render) && (l.user = !0), S ? S.push(l) :
|
|
41
|
+
function we(e, t, n) {
|
|
42
|
+
be = Me;
|
|
43
|
+
const l = ce(e, t, !1, k);
|
|
44
|
+
(!n || !n.render) && (l.user = !0), S ? S.push(l) : I(l);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
n = n ? Object.assign({},
|
|
48
|
-
const l =
|
|
49
|
-
return l.observers = null, l.observerSlots = null, l.comparator = n.equals || void 0,
|
|
46
|
+
function de(e, t, n) {
|
|
47
|
+
n = n ? Object.assign({}, W, n) : W;
|
|
48
|
+
const l = ce(e, t, !0, 0);
|
|
49
|
+
return l.observers = null, l.observerSlots = null, l.comparator = n.equals || void 0, I(l), $e.bind(l);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function ze(e) {
|
|
52
52
|
return H(e, !1);
|
|
53
53
|
}
|
|
54
54
|
function N(e) {
|
|
@@ -62,19 +62,19 @@ function N(e) {
|
|
|
62
62
|
b = t;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function je(e) {
|
|
66
66
|
return w === null || (w.cleanups === null ? w.cleanups = [e] : w.cleanups.push(e)), e;
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function ye() {
|
|
69
69
|
return b;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function $e() {
|
|
72
72
|
if (this.sources && this.state)
|
|
73
73
|
if (this.state === k)
|
|
74
|
-
|
|
74
|
+
I(this);
|
|
75
75
|
else {
|
|
76
76
|
const e = $;
|
|
77
|
-
$ = null, H(() =>
|
|
77
|
+
$ = null, H(() => J(this), !1), $ = e;
|
|
78
78
|
}
|
|
79
79
|
if (b) {
|
|
80
80
|
const e = this.observers ? this.observers.length : 0;
|
|
@@ -82,34 +82,34 @@ function ye() {
|
|
|
82
82
|
}
|
|
83
83
|
return this.value;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function me(e, t, n) {
|
|
86
86
|
let l = e.value;
|
|
87
87
|
return (!e.comparator || !e.comparator(l, t)) && (e.value = t, e.observers && e.observers.length && H(() => {
|
|
88
88
|
for (let o = 0; o < e.observers.length; o += 1) {
|
|
89
|
-
const s = e.observers[o], i =
|
|
90
|
-
i &&
|
|
89
|
+
const s = e.observers[o], i = le && le.running;
|
|
90
|
+
i && le.disposed.has(s), (i ? !s.tState : !s.state) && (s.pure ? $.push(s) : S.push(s), s.observers && xe(s)), i || (s.state = k);
|
|
91
91
|
}
|
|
92
92
|
if ($.length > 1e6)
|
|
93
93
|
throw $ = [], new Error();
|
|
94
94
|
}, !1)), t;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function I(e) {
|
|
97
97
|
if (!e.fn)
|
|
98
98
|
return;
|
|
99
|
-
|
|
100
|
-
const t = w, n = b, l =
|
|
101
|
-
b = w = e,
|
|
99
|
+
ne(e);
|
|
100
|
+
const t = w, n = b, l = te;
|
|
101
|
+
b = w = e, De(e, e.value, l), b = n, w = t;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function De(e, t, n) {
|
|
104
104
|
let l;
|
|
105
105
|
try {
|
|
106
106
|
l = e.fn(t);
|
|
107
107
|
} catch (o) {
|
|
108
|
-
return e.pure && (e.state = k, e.owned && e.owned.forEach(
|
|
108
|
+
return e.pure && (e.state = k, e.owned && e.owned.forEach(ne), e.owned = null), e.updatedAt = n + 1, _e(o);
|
|
109
109
|
}
|
|
110
|
-
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ?
|
|
110
|
+
(!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? me(e, l) : e.value = l, e.updatedAt = n);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function ce(e, t, n, l = k, o) {
|
|
113
113
|
const s = {
|
|
114
114
|
fn: e,
|
|
115
115
|
state: l,
|
|
@@ -123,74 +123,74 @@ function re(e, t, n, l = k, o) {
|
|
|
123
123
|
context: null,
|
|
124
124
|
pure: n
|
|
125
125
|
};
|
|
126
|
-
return w === null || w !==
|
|
126
|
+
return w === null || w !== pe && (w.owned ? w.owned.push(s) : w.owned = [s]), s;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function Y(e) {
|
|
129
129
|
if (e.state === 0)
|
|
130
130
|
return;
|
|
131
|
-
if (e.state ===
|
|
132
|
-
return
|
|
131
|
+
if (e.state === X)
|
|
132
|
+
return J(e);
|
|
133
133
|
if (e.suspense && N(e.suspense.inFallback))
|
|
134
134
|
return e.suspense.effects.push(e);
|
|
135
135
|
const t = [e];
|
|
136
|
-
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt <
|
|
136
|
+
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < te); )
|
|
137
137
|
e.state && t.push(e);
|
|
138
138
|
for (let n = t.length - 1; n >= 0; n--)
|
|
139
139
|
if (e = t[n], e.state === k)
|
|
140
|
-
|
|
141
|
-
else if (e.state ===
|
|
140
|
+
I(e);
|
|
141
|
+
else if (e.state === X) {
|
|
142
142
|
const l = $;
|
|
143
|
-
$ = null, H(() =>
|
|
143
|
+
$ = null, H(() => J(e, t[0]), !1), $ = l;
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
function H(e, t) {
|
|
147
147
|
if ($)
|
|
148
148
|
return e();
|
|
149
149
|
let n = !1;
|
|
150
|
-
t || ($ = []), S ? n = !0 : S = [],
|
|
150
|
+
t || ($ = []), S ? n = !0 : S = [], te++;
|
|
151
151
|
try {
|
|
152
152
|
const l = e();
|
|
153
153
|
return He(n), l;
|
|
154
154
|
} catch (l) {
|
|
155
|
-
n || (S = null), $ = null,
|
|
155
|
+
n || (S = null), $ = null, _e(l);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
function He(e) {
|
|
159
|
-
if ($ && (
|
|
159
|
+
if ($ && (ve($), $ = null), e)
|
|
160
160
|
return;
|
|
161
161
|
const t = S;
|
|
162
|
-
S = null, t.length && H(() =>
|
|
162
|
+
S = null, t.length && H(() => be(t), !1);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function ve(e) {
|
|
165
165
|
for (let t = 0; t < e.length; t++)
|
|
166
|
-
|
|
166
|
+
Y(e[t]);
|
|
167
167
|
}
|
|
168
168
|
function Me(e) {
|
|
169
169
|
let t, n = 0;
|
|
170
170
|
for (t = 0; t < e.length; t++) {
|
|
171
171
|
const l = e[t];
|
|
172
|
-
l.user ? e[n++] = l :
|
|
172
|
+
l.user ? e[n++] = l : Y(l);
|
|
173
173
|
}
|
|
174
174
|
for (t = 0; t < n; t++)
|
|
175
|
-
|
|
175
|
+
Y(e[t]);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function J(e, t) {
|
|
178
178
|
e.state = 0;
|
|
179
179
|
for (let n = 0; n < e.sources.length; n += 1) {
|
|
180
180
|
const l = e.sources[n];
|
|
181
181
|
if (l.sources) {
|
|
182
182
|
const o = l.state;
|
|
183
|
-
o === k ? l !== t && (!l.updatedAt || l.updatedAt <
|
|
183
|
+
o === k ? l !== t && (!l.updatedAt || l.updatedAt < te) && Y(l) : o === X && J(l, t);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function xe(e) {
|
|
188
188
|
for (let t = 0; t < e.observers.length; t += 1) {
|
|
189
189
|
const n = e.observers[t];
|
|
190
|
-
n.state || (n.state =
|
|
190
|
+
n.state || (n.state = X, n.pure ? $.push(n) : S.push(n), n.observers && xe(n));
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function ne(e) {
|
|
194
194
|
let t;
|
|
195
195
|
if (e.sources)
|
|
196
196
|
for (; e.sources.length; ) {
|
|
@@ -202,7 +202,7 @@ function te(e) {
|
|
|
202
202
|
}
|
|
203
203
|
if (e.owned) {
|
|
204
204
|
for (t = e.owned.length - 1; t >= 0; t--)
|
|
205
|
-
|
|
205
|
+
ne(e.owned[t]);
|
|
206
206
|
e.owned = null;
|
|
207
207
|
}
|
|
208
208
|
if (e.cleanups) {
|
|
@@ -212,36 +212,36 @@ function te(e) {
|
|
|
212
212
|
}
|
|
213
213
|
e.state = 0, e.context = null;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function Be(e) {
|
|
216
216
|
return e instanceof Error ? e : new Error(typeof e == "string" ? e : "Unknown error", {
|
|
217
217
|
cause: e
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
throw
|
|
220
|
+
function _e(e, t = w) {
|
|
221
|
+
throw Be(e);
|
|
222
222
|
}
|
|
223
223
|
function x(e, t) {
|
|
224
224
|
return N(() => e(t || {}));
|
|
225
225
|
}
|
|
226
|
-
const
|
|
227
|
-
function
|
|
228
|
-
const t = e.keyed, n =
|
|
226
|
+
const Fe = (e) => `Stale read from <${e}>.`;
|
|
227
|
+
function R(e) {
|
|
228
|
+
const t = e.keyed, n = de(() => e.when, void 0, {
|
|
229
229
|
equals: (l, o) => t ? l === o : !l == !o
|
|
230
230
|
});
|
|
231
|
-
return
|
|
231
|
+
return de(() => {
|
|
232
232
|
const l = n();
|
|
233
233
|
if (l) {
|
|
234
234
|
const o = e.children;
|
|
235
235
|
return typeof o == "function" && o.length > 0 ? N(() => o(t ? l : () => {
|
|
236
236
|
if (!N(n))
|
|
237
|
-
throw
|
|
237
|
+
throw Fe("Show");
|
|
238
238
|
return e.when;
|
|
239
239
|
})) : o;
|
|
240
240
|
}
|
|
241
241
|
return e.fallback;
|
|
242
242
|
}, void 0, void 0);
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function Ue(e, t, n) {
|
|
245
245
|
let l = n.length, o = t.length, s = l, i = 0, r = 0, c = t[o - 1].nextSibling, h = null;
|
|
246
246
|
for (; i < o || r < s; ) {
|
|
247
247
|
if (t[i] === n[r]) {
|
|
@@ -286,10 +286,10 @@ function Fe(e, t, n) {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
const
|
|
290
|
-
function
|
|
289
|
+
const he = "_$DX_DELEGATE";
|
|
290
|
+
function Re(e, t, n, l = {}) {
|
|
291
291
|
let o;
|
|
292
|
-
return
|
|
292
|
+
return Le((s) => {
|
|
293
293
|
o = s, t === document ? e() : v(t, e(), t.firstChild ? null : void 0, n);
|
|
294
294
|
}, l.owner), () => {
|
|
295
295
|
o(), t.textContent = "";
|
|
@@ -303,25 +303,25 @@ function A(e, t, n) {
|
|
|
303
303
|
}, s = t ? () => N(() => document.importNode(l || (l = o()), !0)) : () => (l || (l = o())).cloneNode(!0);
|
|
304
304
|
return s.cloneNode = s, s;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
307
|
-
const n = t[
|
|
306
|
+
function Ee(e, t = window.document) {
|
|
307
|
+
const n = t[he] || (t[he] = /* @__PURE__ */ new Set());
|
|
308
308
|
for (let l = 0, o = e.length; l < o; l++) {
|
|
309
309
|
const s = e[l];
|
|
310
|
-
n.has(s) || (n.add(s), t.addEventListener(s,
|
|
310
|
+
n.has(s) || (n.add(s), t.addEventListener(s, Ge));
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function Ve(e, t) {
|
|
314
314
|
t == null ? e.removeAttribute("class") : e.className = t;
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function B(e, t, n) {
|
|
317
317
|
return N(() => e(t, n));
|
|
318
318
|
}
|
|
319
319
|
function v(e, t, n, l) {
|
|
320
320
|
if (n !== void 0 && !l && (l = []), typeof t != "function")
|
|
321
|
-
return
|
|
322
|
-
|
|
321
|
+
return Q(e, t, l, n);
|
|
322
|
+
D((o) => Q(e, t(), o, n), l);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Ge(e) {
|
|
325
325
|
const t = `$$${e.type}`;
|
|
326
326
|
let n = e.composedPath && e.composedPath()[0] || e.target;
|
|
327
327
|
for (e.target !== n && Object.defineProperty(e, "target", {
|
|
@@ -342,7 +342,7 @@ function Ve(e) {
|
|
|
342
342
|
n = n._$host || n.parentNode || n.host;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function Q(e, t, n, l, o) {
|
|
346
346
|
for (; typeof n == "function"; )
|
|
347
347
|
n = n();
|
|
348
348
|
if (t === n)
|
|
@@ -358,21 +358,21 @@ function J(e, t, n, l, o) {
|
|
|
358
358
|
n = L(e, n, l);
|
|
359
359
|
else {
|
|
360
360
|
if (s === "function")
|
|
361
|
-
return
|
|
361
|
+
return D(() => {
|
|
362
362
|
let r = t();
|
|
363
363
|
for (; typeof r == "function"; )
|
|
364
364
|
r = r();
|
|
365
|
-
n =
|
|
365
|
+
n = Q(e, r, n, l);
|
|
366
366
|
}), () => n;
|
|
367
367
|
if (Array.isArray(t)) {
|
|
368
368
|
const r = [], c = n && Array.isArray(n);
|
|
369
|
-
if (
|
|
370
|
-
return
|
|
369
|
+
if (oe(r, t, n, o))
|
|
370
|
+
return D(() => n = Q(e, r, n, l, !0)), () => n;
|
|
371
371
|
if (r.length === 0) {
|
|
372
372
|
if (n = L(e, n, l), i)
|
|
373
373
|
return n;
|
|
374
374
|
} else
|
|
375
|
-
c ? n.length === 0 ?
|
|
375
|
+
c ? n.length === 0 ? ge(e, r, l) : Ue(e, n, r) : (n && L(e), ge(e, r));
|
|
376
376
|
n = r;
|
|
377
377
|
} else if (t.nodeType) {
|
|
378
378
|
if (Array.isArray(n)) {
|
|
@@ -387,7 +387,7 @@ function J(e, t, n, l, o) {
|
|
|
387
387
|
}
|
|
388
388
|
return n;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function oe(e, t, n, l) {
|
|
391
391
|
let o = !1;
|
|
392
392
|
for (let s = 0, i = t.length; s < i; s++) {
|
|
393
393
|
let r = t[s], c = n && n[s], h;
|
|
@@ -395,12 +395,12 @@ function le(e, t, n, l) {
|
|
|
395
395
|
if ((h = typeof r) == "object" && r.nodeType)
|
|
396
396
|
e.push(r);
|
|
397
397
|
else if (Array.isArray(r))
|
|
398
|
-
o =
|
|
398
|
+
o = oe(e, r, c) || o;
|
|
399
399
|
else if (h === "function")
|
|
400
400
|
if (l) {
|
|
401
401
|
for (; typeof r == "function"; )
|
|
402
402
|
r = r();
|
|
403
|
-
o =
|
|
403
|
+
o = oe(e, Array.isArray(r) ? r : [r], Array.isArray(c) ? c : [c]) || o;
|
|
404
404
|
} else
|
|
405
405
|
e.push(r), o = !0;
|
|
406
406
|
else {
|
|
@@ -410,7 +410,7 @@ function le(e, t, n, l) {
|
|
|
410
410
|
}
|
|
411
411
|
return o;
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function ge(e, t, n = null) {
|
|
414
414
|
for (let l = 0, o = t.length; l < o; l++)
|
|
415
415
|
e.insertBefore(t[l], n);
|
|
416
416
|
}
|
|
@@ -432,7 +432,7 @@ function L(e, t, n, l) {
|
|
|
432
432
|
e.insertBefore(o, n);
|
|
433
433
|
return [o];
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function Ie(e, t, ...n) {
|
|
436
436
|
if (t === void 0)
|
|
437
437
|
throw new Error("`Ohbug warning(condition, format, ...args)` requires a warning message argument");
|
|
438
438
|
if (!e) {
|
|
@@ -441,38 +441,38 @@ function Ge(e, t, ...n) {
|
|
|
441
441
|
throw new Error(`Ohbug ${o}`);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
var
|
|
445
|
-
function qe() {
|
|
446
|
-
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : Ie;
|
|
447
|
-
}
|
|
444
|
+
var qe = {};
|
|
448
445
|
function Ke() {
|
|
449
|
-
|
|
450
|
-
|
|
446
|
+
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : qe;
|
|
447
|
+
}
|
|
448
|
+
function We() {
|
|
449
|
+
const e = Ke();
|
|
450
|
+
return Ie(
|
|
451
451
|
!!e.__OHBUG__,
|
|
452
452
|
"Failed to get `OhbugObject`, please confirm if `Ohbug.setup`"
|
|
453
453
|
), e.__OHBUG__;
|
|
454
454
|
}
|
|
455
|
-
function
|
|
456
|
-
e.parentNode && (t.push(e.parentNode),
|
|
455
|
+
function Se(e, t) {
|
|
456
|
+
e.parentNode && (t.push(e.parentNode), Se(e.parentNode, t));
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function Xe(e) {
|
|
459
459
|
const t = [];
|
|
460
|
-
return t.push(e),
|
|
460
|
+
return t.push(e), Se(e, t), t;
|
|
461
461
|
}
|
|
462
|
-
var
|
|
462
|
+
var Ye = (e) => {
|
|
463
463
|
const t = e.target || e.srcElement;
|
|
464
464
|
let n = e.target || e.srcElement;
|
|
465
465
|
const l = [];
|
|
466
466
|
for (let i = 0; n && n.nodeType === Node.ELEMENT_NODE && n.nodeType !== Node.DOCUMENT_TYPE_NODE; n = n.previousSibling)
|
|
467
467
|
i && l.push(n), i += 1;
|
|
468
|
-
const o = typeof e.path > "u" ?
|
|
468
|
+
const o = typeof e.path > "u" ? Xe(e.target) : e.path, { outerHTML: s } = t;
|
|
469
469
|
return o.reverse().map((i) => (i.localName || "") + (i.id ? `#${i.id}` : "") + (i.className ? `.${i.className}` : "") + (i.outerHTML === s ? `:nth-child(${l.length})` : "")).filter((i) => !!i).join(" > ");
|
|
470
470
|
};
|
|
471
|
-
const
|
|
472
|
-
function
|
|
471
|
+
const se = Symbol("store-raw"), V = Symbol("store-node");
|
|
472
|
+
function Ae(e) {
|
|
473
473
|
let t = e[C];
|
|
474
474
|
if (!t && (Object.defineProperty(e, C, {
|
|
475
|
-
value: t = new Proxy(e,
|
|
475
|
+
value: t = new Proxy(e, Ze)
|
|
476
476
|
}), !Array.isArray(e))) {
|
|
477
477
|
const n = Object.keys(e), l = Object.getOwnPropertyDescriptors(e);
|
|
478
478
|
for (let o = 0, s = n.length; o < s; o++) {
|
|
@@ -485,77 +485,77 @@ function Se(e) {
|
|
|
485
485
|
}
|
|
486
486
|
return t;
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function Z(e) {
|
|
489
489
|
let t;
|
|
490
490
|
return e != null && typeof e == "object" && (e[C] || !(t = Object.getPrototypeOf(e)) || t === Object.prototype || Array.isArray(e));
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function G(e, t = /* @__PURE__ */ new Set()) {
|
|
493
493
|
let n, l, o, s;
|
|
494
|
-
if (n = e != null && e[
|
|
494
|
+
if (n = e != null && e[se])
|
|
495
495
|
return n;
|
|
496
|
-
if (!
|
|
496
|
+
if (!Z(e) || t.has(e))
|
|
497
497
|
return e;
|
|
498
498
|
if (Array.isArray(e)) {
|
|
499
499
|
Object.isFrozen(e) ? e = e.slice(0) : t.add(e);
|
|
500
500
|
for (let i = 0, r = e.length; i < r; i++)
|
|
501
|
-
o = e[i], (l =
|
|
501
|
+
o = e[i], (l = G(o, t)) !== o && (e[i] = l);
|
|
502
502
|
} else {
|
|
503
503
|
Object.isFrozen(e) ? e = Object.assign({}, e) : t.add(e);
|
|
504
504
|
const i = Object.keys(e), r = Object.getOwnPropertyDescriptors(e);
|
|
505
505
|
for (let c = 0, h = i.length; c < h; c++)
|
|
506
|
-
s = i[c], !r[s].get && (o = e[s], (l =
|
|
506
|
+
s = i[c], !r[s].get && (o = e[s], (l = G(o, t)) !== o && (e[s] = l));
|
|
507
507
|
}
|
|
508
508
|
return e;
|
|
509
509
|
}
|
|
510
|
-
function
|
|
511
|
-
let t = e[
|
|
512
|
-
return t || Object.defineProperty(e,
|
|
510
|
+
function ue(e) {
|
|
511
|
+
let t = e[V];
|
|
512
|
+
return t || Object.defineProperty(e, V, {
|
|
513
513
|
value: t = /* @__PURE__ */ Object.create(null)
|
|
514
514
|
}), t;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
517
|
-
return e[t] || (e[t] =
|
|
516
|
+
function ie(e, t, n) {
|
|
517
|
+
return e[t] || (e[t] = Oe(n));
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Je(e, t) {
|
|
520
520
|
const n = Reflect.getOwnPropertyDescriptor(e, t);
|
|
521
|
-
return !n || n.get || !n.configurable || t === C || t ===
|
|
521
|
+
return !n || n.get || !n.configurable || t === C || t === V || (delete n.value, delete n.writable, n.get = () => e[C][t]), n;
|
|
522
522
|
}
|
|
523
|
-
function
|
|
524
|
-
if (
|
|
525
|
-
const t =
|
|
526
|
-
(t._ || (t._ =
|
|
523
|
+
function ke(e) {
|
|
524
|
+
if (ye()) {
|
|
525
|
+
const t = ue(e);
|
|
526
|
+
(t._ || (t._ = Oe()))();
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
function
|
|
530
|
-
return
|
|
529
|
+
function Qe(e) {
|
|
530
|
+
return ke(e), Reflect.ownKeys(e);
|
|
531
531
|
}
|
|
532
|
-
function
|
|
533
|
-
const [t, n] =
|
|
532
|
+
function Oe(e) {
|
|
533
|
+
const [t, n] = U(e, {
|
|
534
534
|
equals: !1,
|
|
535
535
|
internal: !0
|
|
536
536
|
});
|
|
537
537
|
return t.$ = n, t;
|
|
538
538
|
}
|
|
539
|
-
const
|
|
539
|
+
const Ze = {
|
|
540
540
|
get(e, t, n) {
|
|
541
|
-
if (t ===
|
|
541
|
+
if (t === se)
|
|
542
542
|
return e;
|
|
543
543
|
if (t === C)
|
|
544
544
|
return n;
|
|
545
|
-
if (t ===
|
|
546
|
-
return
|
|
547
|
-
const l =
|
|
545
|
+
if (t === ae)
|
|
546
|
+
return ke(e), n;
|
|
547
|
+
const l = ue(e), o = l[t];
|
|
548
548
|
let s = o ? o() : e[t];
|
|
549
|
-
if (t ===
|
|
549
|
+
if (t === V || t === "__proto__")
|
|
550
550
|
return s;
|
|
551
551
|
if (!o) {
|
|
552
552
|
const i = Object.getOwnPropertyDescriptor(e, t);
|
|
553
|
-
|
|
553
|
+
ye() && (typeof s != "function" || e.hasOwnProperty(t)) && !(i && i.get) && (s = ie(l, t, s)());
|
|
554
554
|
}
|
|
555
|
-
return
|
|
555
|
+
return Z(s) ? Ae(s) : s;
|
|
556
556
|
},
|
|
557
557
|
has(e, t) {
|
|
558
|
-
return t ===
|
|
558
|
+
return t === se || t === C || t === ae || t === V || t === "__proto__" ? !0 : (this.get(e, t, e), t in e);
|
|
559
559
|
},
|
|
560
560
|
set() {
|
|
561
561
|
return !0;
|
|
@@ -563,54 +563,54 @@ const Qe = {
|
|
|
563
563
|
deleteProperty() {
|
|
564
564
|
return !0;
|
|
565
565
|
},
|
|
566
|
-
ownKeys:
|
|
567
|
-
getOwnPropertyDescriptor:
|
|
566
|
+
ownKeys: Qe,
|
|
567
|
+
getOwnPropertyDescriptor: Je
|
|
568
568
|
};
|
|
569
|
-
function
|
|
569
|
+
function ee(e, t, n, l = !1) {
|
|
570
570
|
if (!l && e[t] === n)
|
|
571
571
|
return;
|
|
572
572
|
const o = e[t], s = e.length;
|
|
573
573
|
n === void 0 ? delete e[t] : e[t] = n;
|
|
574
|
-
let i =
|
|
575
|
-
if ((r =
|
|
574
|
+
let i = ue(e), r;
|
|
575
|
+
if ((r = ie(i, t, o)) && r.$(() => n), Array.isArray(e) && e.length !== s) {
|
|
576
576
|
for (let c = e.length; c < s; c++)
|
|
577
577
|
(r = i[c]) && r.$();
|
|
578
|
-
(r =
|
|
578
|
+
(r = ie(i, "length", s)) && r.$(e.length);
|
|
579
579
|
}
|
|
580
580
|
(r = i._) && r.$();
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function Ce(e, t) {
|
|
583
583
|
const n = Object.keys(t);
|
|
584
584
|
for (let l = 0; l < n.length; l += 1) {
|
|
585
585
|
const o = n[l];
|
|
586
|
-
|
|
586
|
+
ee(e, o, t[o]);
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
function
|
|
590
|
-
if (typeof t == "function" && (t = t(e)), t =
|
|
589
|
+
function et(e, t) {
|
|
590
|
+
if (typeof t == "function" && (t = t(e)), t = G(t), Array.isArray(t)) {
|
|
591
591
|
if (e === t)
|
|
592
592
|
return;
|
|
593
593
|
let n = 0, l = t.length;
|
|
594
594
|
for (; n < l; n++) {
|
|
595
595
|
const o = t[n];
|
|
596
|
-
e[n] !== o &&
|
|
596
|
+
e[n] !== o && ee(e, n, o);
|
|
597
597
|
}
|
|
598
|
-
|
|
598
|
+
ee(e, "length", l);
|
|
599
599
|
} else
|
|
600
|
-
|
|
600
|
+
Ce(e, t);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function F(e, t, n = []) {
|
|
603
603
|
let l, o = e;
|
|
604
604
|
if (t.length > 1) {
|
|
605
605
|
l = t.shift();
|
|
606
606
|
const i = typeof l, r = Array.isArray(e);
|
|
607
607
|
if (Array.isArray(l)) {
|
|
608
608
|
for (let c = 0; c < l.length; c++)
|
|
609
|
-
|
|
609
|
+
F(e, [l[c]].concat(t), n);
|
|
610
610
|
return;
|
|
611
611
|
} else if (r && i === "function") {
|
|
612
612
|
for (let c = 0; c < e.length; c++)
|
|
613
|
-
l(e[c], c) &&
|
|
613
|
+
l(e[c], c) && F(e, [c].concat(t), n);
|
|
614
614
|
return;
|
|
615
615
|
} else if (r && i === "object") {
|
|
616
616
|
const {
|
|
@@ -619,31 +619,31 @@ function B(e, t, n = []) {
|
|
|
619
619
|
by: u = 1
|
|
620
620
|
} = l;
|
|
621
621
|
for (let g = c; g <= h; g += u)
|
|
622
|
-
|
|
622
|
+
F(e, [g].concat(t), n);
|
|
623
623
|
return;
|
|
624
624
|
} else if (t.length > 1) {
|
|
625
|
-
|
|
625
|
+
F(e[l], t, [l].concat(n));
|
|
626
626
|
return;
|
|
627
627
|
}
|
|
628
628
|
o = e[l], n = [l].concat(n);
|
|
629
629
|
}
|
|
630
630
|
let s = t[0];
|
|
631
|
-
typeof s == "function" && (s = s(o, n), s === o) || l === void 0 && s == null || (s =
|
|
631
|
+
typeof s == "function" && (s = s(o, n), s === o) || l === void 0 && s == null || (s = G(s), l === void 0 || Z(o) && Z(s) && !Array.isArray(s) ? Ce(o, s) : ee(e, l, s));
|
|
632
632
|
}
|
|
633
|
-
function
|
|
634
|
-
const n =
|
|
633
|
+
function tt(...[e, t]) {
|
|
634
|
+
const n = G(e || {}), l = Array.isArray(n), o = Ae(n);
|
|
635
635
|
function s(...i) {
|
|
636
|
-
|
|
637
|
-
l && i.length === 1 ?
|
|
636
|
+
ze(() => {
|
|
637
|
+
l && i.length === 1 ? et(n, i[0]) : F(n, i);
|
|
638
638
|
});
|
|
639
639
|
}
|
|
640
640
|
return [o, s];
|
|
641
641
|
}
|
|
642
|
-
const [p,
|
|
643
|
-
const e =
|
|
642
|
+
const [p, j] = tt({ working: !1, selectedElement: null }), nt = /* @__PURE__ */ A('<svg data-ohbug-selector height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" data-ohbug-selector fill="none"></path><path d="M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z" data-ohbug-selector fill="rgba(255,255,255,1)">'), lt = /* @__PURE__ */ A('<svg data-ohbug-selector height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" data-ohbug-selector fill="none"></path><path d="M3 3h2v2H3V3zm4 0h2v2H7V3zm4 0h2v2h-2V3zm4 0h2v2h-2V3zm4 0h2v2h-2V3zm0 4h2v2h-2V7zM3 19h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3v-2zm0-4h2v2H3V7zm7.667 4l1.036-1.555A1 1 0 0 1 12.535 9h2.93a1 1 0 0 1 .832.445L17.333 11H20a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h2.667zM9 19h10v-6h-2.737l-1.333-2h-1.86l-1.333 2H9v6zm5-1a2 2 0 1 1 0-4 2 2 0 0 1 0 4z" data-ohbug-selector>'), re = () => nt(), ot = () => (() => {
|
|
643
|
+
const e = lt();
|
|
644
644
|
return e.firstChild.nextSibling.style.setProperty("fill", "var(--color)"), e;
|
|
645
|
-
})(),
|
|
646
|
-
const [e, t] =
|
|
645
|
+
})(), st = /* @__PURE__ */ A('<div class="bg-none border-solid border-4 border-blue-500 transition top-0 right-0 bottom-0 left-0 z-10 fixed pointer-events-none" data-ohbug-selector><div class="tips" data-ohbug-selector>Select element on the page<button class="btn-stop" type="button">'), it = /* @__PURE__ */ A('<button class="rounded-full border-none cursor-pointer flex bg-red-500 h-6 -top-3 -right-3 w-6 z-10 items-center justify-center absolute pointer-events-auto" data-ohbug-selector type="button">'), rt = /* @__PURE__ */ A('<button class="border-solid cursor-pointer font-semibold bg-red-500 border-4 border-red-500 -bottom-full text-white right-0 absolute pointer-events-auto" data-ohbug-selector type="button">Change'), ct = /* @__PURE__ */ A('<div class="-z-1 fixed" data-ohbug-selector><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div class="bg-black bg-opacity-40 transition -z-1 fixed pointer-events-none" data-ohbug-selector></div><div data-ohbug-selector>'), ut = () => {
|
|
646
|
+
const [e, t] = U();
|
|
647
647
|
let n, l, o, s, i;
|
|
648
648
|
const r = 2;
|
|
649
649
|
function c(f) {
|
|
@@ -693,7 +693,7 @@ const [p, z] = et({ working: !1, selectedElement: null }), tt = /* @__PURE__ */
|
|
|
693
693
|
top: E,
|
|
694
694
|
left: P
|
|
695
695
|
} = f.getBoundingClientRect();
|
|
696
|
-
|
|
696
|
+
j({
|
|
697
697
|
selectedElement: f
|
|
698
698
|
}), i == null || i.setAttribute("style", `
|
|
699
699
|
width: ${a + r * 2}px;
|
|
@@ -704,7 +704,7 @@ const [p, z] = et({ working: !1, selectedElement: null }), tt = /* @__PURE__ */
|
|
|
704
704
|
}
|
|
705
705
|
function u(f) {
|
|
706
706
|
var y;
|
|
707
|
-
|
|
707
|
+
j({
|
|
708
708
|
working: !0
|
|
709
709
|
});
|
|
710
710
|
const a = document.elementFromPoint(f.clientX, f.clientY);
|
|
@@ -728,77 +728,77 @@ const [p, z] = et({ working: !1, selectedElement: null }), tt = /* @__PURE__ */
|
|
|
728
728
|
function T() {
|
|
729
729
|
document.addEventListener("mousedown", _);
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function q() {
|
|
732
732
|
document.removeEventListener("mousedown", _);
|
|
733
733
|
}
|
|
734
734
|
function O() {
|
|
735
|
-
t(null), m(),
|
|
735
|
+
t(null), m(), q(), j({
|
|
736
736
|
working: !1,
|
|
737
737
|
selectedElement: null
|
|
738
738
|
});
|
|
739
739
|
}
|
|
740
|
-
function
|
|
741
|
-
|
|
740
|
+
function K() {
|
|
741
|
+
j({
|
|
742
742
|
working: !0,
|
|
743
743
|
selectedElement: null
|
|
744
744
|
}), t(null), g();
|
|
745
745
|
}
|
|
746
|
-
return
|
|
747
|
-
p.working ? (g(), T()) : (m(),
|
|
748
|
-
}),
|
|
749
|
-
const f =
|
|
750
|
-
return v(f, x(
|
|
746
|
+
return we(() => {
|
|
747
|
+
p.working ? (g(), T()) : (m(), q());
|
|
748
|
+
}), je(O), (() => {
|
|
749
|
+
const f = ct(), a = f.firstChild, y = a.nextSibling, E = y.nextSibling, P = E.nextSibling, M = P.nextSibling;
|
|
750
|
+
return v(f, x(R, {
|
|
751
751
|
get when() {
|
|
752
752
|
return !p.selectedElement && p.working;
|
|
753
753
|
},
|
|
754
754
|
get children() {
|
|
755
|
-
const d =
|
|
756
|
-
return
|
|
755
|
+
const d = st(), Ne = d.firstChild, Te = Ne.firstChild, fe = Te.nextSibling;
|
|
756
|
+
return fe.$$click = O, v(fe, x(re, {})), d;
|
|
757
757
|
}
|
|
758
|
-
}), a),
|
|
758
|
+
}), a), B((d) => {
|
|
759
759
|
n = d;
|
|
760
|
-
}, a),
|
|
760
|
+
}, a), B((d) => {
|
|
761
761
|
l = d;
|
|
762
|
-
}, y),
|
|
762
|
+
}, y), B((d) => {
|
|
763
763
|
o = d;
|
|
764
|
-
}, E),
|
|
764
|
+
}, E), B((d) => {
|
|
765
765
|
s = d;
|
|
766
|
-
}, P),
|
|
766
|
+
}, P), B((d) => {
|
|
767
767
|
i = d;
|
|
768
|
-
}, M), v(M, x(
|
|
768
|
+
}, M), v(M, x(R, {
|
|
769
769
|
get when() {
|
|
770
770
|
return p.selectedElement && p.working;
|
|
771
771
|
},
|
|
772
772
|
get children() {
|
|
773
773
|
return [(() => {
|
|
774
|
-
const d = st();
|
|
775
|
-
return d.$$click = O, v(d, x(ie, {})), d;
|
|
776
|
-
})(), (() => {
|
|
777
774
|
const d = it();
|
|
778
|
-
return d.$$click =
|
|
775
|
+
return d.$$click = O, v(d, x(re, {})), d;
|
|
776
|
+
})(), (() => {
|
|
777
|
+
const d = rt();
|
|
778
|
+
return d.$$click = K, d.style.setProperty("transform", "translate(4px, -8px)"), d;
|
|
779
779
|
})()];
|
|
780
780
|
}
|
|
781
|
-
})),
|
|
781
|
+
})), D(() => Ve(M, `fixed -z-1 bg-black bg-opacity-20 border-4 rounded-sm transition cursor-pointer box-border pointer-events-none ${e() ? "border-red-500 border-solid" : "border-blue-500 border-dashed"}`)), f;
|
|
782
782
|
})();
|
|
783
783
|
};
|
|
784
|
-
|
|
785
|
-
const
|
|
786
|
-
const [e, t] =
|
|
784
|
+
Ee(["click"]);
|
|
785
|
+
const ft = /* @__PURE__ */ A('<button class="btn-main" data-ohbug-selector type="button">'), at = /* @__PURE__ */ A('<div class="bg-white flex flex-col h-60 shadow z-max right-8 bottom-20 w-80 fixed" data-ohbug-selector><div class="bg-gray-300 p-4" data-ohbug-selector><textarea autofocus class="bg-transparent outline-none border-none w-full resize-none" data-ohbug-selector maxlength="1000" placeholder="Tell me how you feel..." rows="4"></textarea><button class="cursor-pointer border-none bg-transparent" data-ohbug-selector type="button"></button></div><div class="flex flex-1 p-4 justify-between items-center" data-ohbug-selector><span class="text-sm" data-ohbug-selector>Try<a class="ml-1 underline" data-ohbug-selector href="https://ohbug.net" rel="noreferrer" target="_blank">Ohbug</a>?</span><button class="btn-send" data-ohbug-selector type="button"></button></div><button class="border-none rounded-full cursor-pointer flex bg-blue-500 h-6 -top-2 -right-2 w-6 z-10 items-center justify-center absolute" data-ohbug-selector type="button">'), dt = /* @__PURE__ */ A('<div class="z-max relative" data-ohbug-selector><div>'), ht = () => {
|
|
786
|
+
const [e, t] = U(!1), [n, l] = U("");
|
|
787
787
|
function o() {
|
|
788
|
-
|
|
788
|
+
j({
|
|
789
789
|
working: !0
|
|
790
790
|
});
|
|
791
791
|
}
|
|
792
|
-
const [s, i] =
|
|
792
|
+
const [s, i] = U(!1);
|
|
793
793
|
async function r() {
|
|
794
794
|
i(!0);
|
|
795
795
|
let c, h;
|
|
796
|
-
const u =
|
|
796
|
+
const u = We().client;
|
|
797
797
|
if (p.selectedElement) {
|
|
798
798
|
const g = {
|
|
799
799
|
target: p.selectedElement
|
|
800
800
|
};
|
|
801
|
-
c =
|
|
801
|
+
c = Ye(g), h = p.selectedElement.outerHTML;
|
|
802
802
|
const m = u.createEvent({
|
|
803
803
|
category: "feedback",
|
|
804
804
|
type: "feedback",
|
|
@@ -819,56 +819,60 @@ const ut = /* @__PURE__ */ A('<button class="btn-main" data-ohbug-selector type=
|
|
|
819
819
|
});
|
|
820
820
|
await u.notify(g);
|
|
821
821
|
}
|
|
822
|
-
t(!1), l(""),
|
|
822
|
+
t(!1), l(""), j({
|
|
823
823
|
working: !1,
|
|
824
824
|
selectedElement: null
|
|
825
825
|
}), i(!1);
|
|
826
826
|
}
|
|
827
|
-
return
|
|
827
|
+
return we(() => {
|
|
828
828
|
p.working === !1 && p.selectedElement === null || p.working && !p.selectedElement ? t(!1) : t(!0);
|
|
829
829
|
}), (() => {
|
|
830
|
-
const c =
|
|
831
|
-
return v(c, x(
|
|
830
|
+
const c = dt(), h = c.firstChild;
|
|
831
|
+
return v(c, x(R, {
|
|
832
832
|
get when() {
|
|
833
833
|
return p.working;
|
|
834
834
|
},
|
|
835
835
|
get children() {
|
|
836
|
-
return x(
|
|
836
|
+
return x(ut, {});
|
|
837
837
|
}
|
|
838
|
-
}), h), v(h, x(
|
|
838
|
+
}), h), v(h, x(R, {
|
|
839
839
|
get when() {
|
|
840
840
|
return !(p.working && !p.selectedElement);
|
|
841
841
|
},
|
|
842
842
|
get children() {
|
|
843
|
-
const u =
|
|
843
|
+
const u = ft();
|
|
844
844
|
return u.$$click = () => t((g) => !g), v(u, () => e() ? "😆" : "🙂"), u;
|
|
845
845
|
}
|
|
846
|
-
}), null), v(h, x(
|
|
846
|
+
}), null), v(h, x(R, {
|
|
847
847
|
get when() {
|
|
848
848
|
return e();
|
|
849
849
|
},
|
|
850
850
|
get children() {
|
|
851
|
-
const u =
|
|
852
|
-
return m.$$input = (f) => l(f.currentTarget.value), _.$$click = o, v(_, x(
|
|
851
|
+
const u = at(), g = u.firstChild, m = g.firstChild, _ = m.nextSibling, T = g.nextSibling, q = T.firstChild, O = q.nextSibling, K = T.nextSibling;
|
|
852
|
+
return m.$$input = (f) => l(f.currentTarget.value), _.$$click = o, v(_, x(ot, {})), O.$$click = r, v(O, () => s() ? "Sending..." : "Send"), K.$$click = () => t((f) => !f), v(K, x(re, {})), D((f) => {
|
|
853
853
|
const a = p.selectedElement ? "blue" : "gray", y = !n() || s();
|
|
854
854
|
return a !== f._v$ && ((f._v$ = a) != null ? _.style.setProperty("--color", a) : _.style.removeProperty("--color")), y !== f._v$2 && (O.disabled = f._v$2 = y), f;
|
|
855
855
|
}, {
|
|
856
856
|
_v$: void 0,
|
|
857
857
|
_v$2: void 0
|
|
858
|
-
}),
|
|
858
|
+
}), D(() => m.value = n()), u;
|
|
859
859
|
}
|
|
860
860
|
}), null), c;
|
|
861
861
|
})();
|
|
862
862
|
};
|
|
863
|
-
|
|
864
|
-
const
|
|
863
|
+
Ee(["click", "input"]);
|
|
864
|
+
const gt = "OhbugExtensionFeedback-ROOT";
|
|
865
|
+
let z = null;
|
|
866
|
+
const bt = (e) => ({
|
|
865
867
|
name: "OhbugExtensionFeedback",
|
|
866
868
|
onSetup: () => {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
+
z = document.createElement("div"), z.id = gt, (e || document.body).appendChild(z), Re(() => x(ht, {}), z);
|
|
870
|
+
},
|
|
871
|
+
onDestroy: () => {
|
|
872
|
+
z && z.remove();
|
|
869
873
|
}
|
|
870
874
|
});
|
|
871
|
-
function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;if(!css||typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}};styleInject("/*\n! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n*/\n\nhtml {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font family by default.\n2. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n\n*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n.btn-main {\n z-index: 99999;\n position: fixed;\n right: 2rem;\n bottom: 2rem;\n display: flex;\n height: 2rem;\n width: 2.5rem;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n align-items: center;\n justify-content: center;\n border-radius: 0.25rem;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.btn-main:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(37 99 235 / var(--tw-bg-opacity));\n --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.btn-send {\n border-radius: 0.125rem;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.btn-send:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n.tips {\n z-index: 99999;\n position: fixed;\n top: 0px;\n left: 50%;\n display: flex;\n --tw-translate-x: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n align-items: center;\n border-bottom-right-radius: 0.5rem;\n border-bottom-left-radius: 0.5rem;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n padding: 0.75rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n.z-max {\n z-index: 99999;\n}\n.pointer-events-none {\n pointer-events: none;\n}\n.pointer-events-auto {\n pointer-events: auto;\n}\n.visible {\n visibility: visible;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.-bottom-full {\n bottom: -100%;\n}\n.-right-2 {\n right: -0.5rem;\n}\n.-right-3 {\n right: -0.75rem;\n}\n.-top-2 {\n top: -0.5rem;\n}\n.-top-3 {\n top: -0.75rem;\n}\n.bottom-0 {\n bottom: 0px;\n}\n.bottom-20 {\n bottom: 5rem;\n}\n.left-0 {\n left: 0px;\n}\n.right-0 {\n right: 0px;\n}\n.right-8 {\n right: 2rem;\n}\n.top-0 {\n top: 0px;\n}\n.z-10 {\n z-index: 10;\n}\n.ml-1 {\n margin-left: 0.25rem;\n}\n.box-border {\n box-sizing: border-box;\n}\n.flex {\n display: flex;\n}\n.h-6 {\n height: 1.5rem;\n}\n.h-60 {\n height: 15rem;\n}\n.w-6 {\n width: 1.5rem;\n}\n.w-80 {\n width: 20rem;\n}\n.w-full {\n width: 100%;\n}\n.flex-1 {\n flex: 1 1 0%;\n}\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.cursor-pointer {\n cursor: pointer;\n}\n.resize-none {\n resize: none;\n}\n.flex-col {\n flex-direction: column;\n}\n.items-center {\n align-items: center;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.rounded-sm {\n border-radius: 0.125rem;\n}\n.border-4 {\n border-width: 4px;\n}\n.border-solid {\n border-style: solid;\n}\n.border-dashed {\n border-style: dashed;\n}\n.border-blue-500 {\n --tw-border-opacity: 1;\n border-color: rgb(59 130 246 / var(--tw-border-opacity));\n}\n.border-red-500 {\n --tw-border-opacity: 1;\n border-color: rgb(239 68 68 / var(--tw-border-opacity));\n}\n.bg-black {\n --tw-bg-opacity: 1;\n background-color: rgb(0 0 0 / var(--tw-bg-opacity));\n}\n.bg-blue-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n}\n.bg-gray-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(209 213 219 / var(--tw-bg-opacity));\n}\n.bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity));\n}\n.bg-transparent {\n background-color: transparent;\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n.bg-opacity-20 {\n --tw-bg-opacity: 0.2;\n}\n.bg-opacity-40 {\n --tw-bg-opacity: 0.4;\n}\n.bg-none {\n background-image: none;\n}\n.p-4 {\n padding: 1rem;\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.font-semibold {\n font-weight: 600;\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n.underline {\n text-decoration-line: underline;\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}");
|
|
875
|
+
function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;if(!css||typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}};styleInject("*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: \n}\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: \n}\n.btn-main {\n z-index: 99999;\n position: fixed;\n right: 2rem;\n bottom: 2rem;\n display: flex;\n height: 2rem;\n width: 2.5rem;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n align-items: center;\n justify-content: center;\n border-radius: 0.25rem;\n border-style: none;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n.btn-main:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(37 99 235 / var(--tw-bg-opacity));\n --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n.btn-send {\n cursor: pointer;\n border-radius: 0.125rem;\n border-style: none;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n.btn-send:disabled {\n cursor: not-allowed;\n opacity: 0.5\n}\n.btn-stop {\n pointer-events: auto;\n margin-left: 0.25rem;\n cursor: pointer;\n border-style: none;\n background-color: transparent;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n.btn-stop:hover {\n background-color: rgb(107 114 128 / var(--tw-bg-opacity));\n --tw-bg-opacity: 0.3\n}\n.tips {\n z-index: 99999;\n position: fixed;\n top: 0px;\n left: 50%;\n display: flex;\n --tw-translate-x: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n align-items: center;\n border-bottom-right-radius: 0.5rem;\n border-bottom-left-radius: 0.5rem;\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n padding: 0.75rem;\n font-size: 0.875rem;\n line-height: 1.25rem;\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity))\n}\n.z-max {\n z-index: 99999\n}\n.pointer-events-none {\n pointer-events: none\n}\n.pointer-events-auto {\n pointer-events: auto\n}\n.visible {\n visibility: visible\n}\n.fixed {\n position: fixed\n}\n.absolute {\n position: absolute\n}\n.relative {\n position: relative\n}\n.-bottom-full {\n bottom: -100%\n}\n.-right-2 {\n right: -0.5rem\n}\n.-right-3 {\n right: -0.75rem\n}\n.-top-2 {\n top: -0.5rem\n}\n.-top-3 {\n top: -0.75rem\n}\n.bottom-0 {\n bottom: 0px\n}\n.bottom-20 {\n bottom: 5rem\n}\n.left-0 {\n left: 0px\n}\n.right-0 {\n right: 0px\n}\n.right-8 {\n right: 2rem\n}\n.top-0 {\n top: 0px\n}\n.z-10 {\n z-index: 10\n}\n.ml-1 {\n margin-left: 0.25rem\n}\n.box-border {\n box-sizing: border-box\n}\n.flex {\n display: flex\n}\n.h-6 {\n height: 1.5rem\n}\n.h-60 {\n height: 15rem\n}\n.w-6 {\n width: 1.5rem\n}\n.w-80 {\n width: 20rem\n}\n.w-full {\n width: 100%\n}\n.flex-1 {\n flex: 1 1 0%\n}\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n.cursor-pointer {\n cursor: pointer\n}\n.resize-none {\n resize: none\n}\n.flex-col {\n flex-direction: column\n}\n.items-center {\n align-items: center\n}\n.justify-center {\n justify-content: center\n}\n.justify-between {\n justify-content: space-between\n}\n.rounded-full {\n border-radius: 9999px\n}\n.rounded-sm {\n border-radius: 0.125rem\n}\n.border-4 {\n border-width: 4px\n}\n.border-solid {\n border-style: solid\n}\n.border-dashed {\n border-style: dashed\n}\n.border-none {\n border-style: none\n}\n.border-blue-500 {\n --tw-border-opacity: 1;\n border-color: rgb(59 130 246 / var(--tw-border-opacity))\n}\n.border-red-500 {\n --tw-border-opacity: 1;\n border-color: rgb(239 68 68 / var(--tw-border-opacity))\n}\n.bg-black {\n --tw-bg-opacity: 1;\n background-color: rgb(0 0 0 / var(--tw-bg-opacity))\n}\n.bg-blue-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity))\n}\n.bg-gray-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(209 213 219 / var(--tw-bg-opacity))\n}\n.bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity))\n}\n.bg-transparent {\n background-color: transparent\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity))\n}\n.bg-opacity-20 {\n --tw-bg-opacity: 0.2\n}\n.bg-opacity-40 {\n --tw-bg-opacity: 0.4\n}\n.bg-none {\n background-image: none\n}\n.p-4 {\n padding: 1rem\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n.font-semibold {\n font-weight: 600\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity))\n}\n.underline {\n text-decoration-line: underline\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n.outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px\n}\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}");
|
|
872
876
|
export {
|
|
873
|
-
|
|
877
|
+
bt as default
|
|
874
878
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohbug/extension-feedback",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Ohbug extension to collect user feedback",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "chenyueban <jasonchan0527@gmail.com>",
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@ohbug/types": "^2.
|
|
30
|
-
"@ohbug/utils": "^2.0.
|
|
29
|
+
"@ohbug/types": "^2.2.1",
|
|
30
|
+
"@ohbug/utils": "^2.0.8",
|
|
31
31
|
"solid-js": "^1.7.7"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"autoprefixer": "^10.4.14",
|
|
35
|
-
"postcss": "^8.4.
|
|
35
|
+
"postcss": "^8.4.25",
|
|
36
36
|
"tailwindcss": "^3.3.2",
|
|
37
|
-
"vite": "^4.
|
|
37
|
+
"vite": "^4.4.1",
|
|
38
38
|
"vite-plugin-dts": "^3.1.0",
|
|
39
39
|
"vite-plugin-solid": "^2.7.0"
|
|
40
40
|
},
|