jwxwork-1.0.0.js 20 KB

1
  1. !function(){var e,t;try{function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function a(e,t,n){return(a=i()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&o(i,n.prototype),i}).apply(null,arguments)}function c(e){return(c=function(e){if(null===e||(t=e,-1===Function.toString.call(t).indexOf("[native code]")))return e;var t;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");function n(){return a(e,arguments,r(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),o(n,e)})(e)}var u="QQXSyFgatFBSzcn9eTO2/AgS7060NU0hnfBY2tgXfgDn18aT60vIzn3599iiWL88s920IUmfTVZ60WL1BNYkX28vnCmUtG/lxZaCrVsW7BI=";function s(){}var l={};function f(e,t){l.hasOwnProperty(e)||(l[e]=[]),l[e].push(t)}function p(e,t){if(l.hasOwnProperty(e)){var n=l[e],r=n.indexOf(t);r>=0&&n.splice(r,1)}}function d(e,t,n){if(void 0===n&&(n=!1),l.hasOwnProperty(e))if(n){var r={type:e,detail:t};l[e].forEach((function(e){try{e(r)}catch(e){}}))}else d(e,t,!0)}var h=window.encodeURIComponent;function v(){}var w,y=window.navigator.userAgent||"",m=y.match(/(wxwork)\/[.\d]+/i)||y.match(/(MicroMessenger)\/[.\d]+/i),g="https://report.url.cn/sentry/api/"+h(1692)+"/store/?sentry_version="+h(7)+"&sentry_client="+h("raven-js 3.27.2")+"&sentry_key="+h("d44af0cf75b9460eb0a0a8129f3810aa"),b=[],x={},E={host:window.location.host,platform:(null==m?void 0:m[0])||void 0,"platform.name":(null==m?void 0:m[1])||"browser"};function _(e,t){return function(){try{return t.apply(this,arguments)}catch(t){C(t,e),d("error",t)}}}e={captureException:C};var O=A("log",(function(){})),S=A("error",(function(){}));function C(e,t){var n=T();n.request.headers.Referer=window.location.href,n.extra={referer:x.referer,stack:e.stack},n.exception={values:[{type:e.name||"Error",value:e.message||"<empty>",stacktrace:{frames:[{filename:"wwopendata.web.js",function:t||"?"}]}}],mechanism:{type:"generic",handled:!0}},D(n),j({category:"sentry",level:"error",message:"["+t+"] "+e.name+": "+e.message,event_id:n.event_id})}function A(e,t){return function(){for(var n=[],r=0,o=arguments.length;r<o;r++)n.push(arguments[r]);j({category:"console",level:e,message:n.join(" ")}),t.apply(void 0,n)}}function j(e){e.timestamp=+new Date/1e3,b.push(e),b.length>30&&b.shift()}function D(e){var t=new XMLHttpRequest;if(!("withCredentials"in t)){if("undefined"==typeof XDomainRequest)return void((new Image).src=g+"&sentry_data="+h(JSON.stringify(e)));t=new XDomainRequest}t.open("POST",g),t.send(JSON.stringify(e))}function T(){return{user:w,tags:E,extra:x,project:1692,logger:"javascript",platform:"javascript",request:{headers:{"User-Agent":y},url:"wwopendata.web.js"},breadcrumbs:{values:b},release:"201010-193715-683",event_id:"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}}var k=location.origin||location.protocol+"//"+location.host,R="https://open.work.weixin.qq.com",M=R+"/wwopen/openData/frame/index#origin="+h(k);function P(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!0})}function F(e){var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(n){if("prototype"!==n){var r=Object.getOwnPropertyDescriptor(e,n),o=Object.create(null);P(o,"value",r.value),P(o,"get",r.get),P(o,"set",r.set),P(t,n,Object.freeze(o))}})),t}var N,I,W,q=function(){var e={JSON:window.JSON,Promise:window.Promise,Uint8Array:window.Uint8Array,Function:window.Function,Object:window.Object,Array:window.Array,String:window.String,WeakMap:window.WeakMap,Element:window.Element,ShadowRoot:window.ShadowRoot,Image:window.Image,Node:window.Node,EventTarget:window.EventTarget,HTMLIFrameElement:window.HTMLIFrameElement,CanvasRenderingContext2D:window.CanvasRenderingContext2D},t={fetch:window.fetch,parseInt:window.parseInt,setTimeout:window.setTimeout},n=Object.create(null);return P(n,"protected",Object.create(null)),P(n,"singleton",Object.create(null)),Object.keys(e).forEach((function(t){e[t]&&(P(n.singleton,t,e[t]),P(n.protected,t,F(e[t])),e[t].prototype&&(P(n.protected[t],"prototype",F(e[t].prototype)),Object.freeze(n.protected[t].prototype)),Object.freeze(n.protected[t]))})),Object.keys(t).forEach((function(e){P(n.singleton,e,t[e])})),P(n.singleton,"call",Function.prototype.call.bind(Function.prototype.call)),Object.defineProperty(n,"__version__",{value:"wwopendata.web.js@201010-193715-683"}),Object.freeze(n.protected),Object.freeze(n.singleton),Object.freeze(n),n}(),L=null==q?void 0:q.protected,J=null==q?void 0:q.singleton,U=(null==J?void 0:J.call)||Function.prototype.call.bind(Function.prototype.call),z=function(e){return e&&U(H,B,e)},H=pe(L,"Function.prototype.bind"),B=pe(L,"Function.prototype.call"),X=(pe(L,"Object.create"),pe(L,"Object.defineProperty")),V=pe(J,"setTimeout","direct"),K=z(pe(L,"Object.prototype.hasOwnProperty")),Y=(z(pe(L,"Array.prototype.push")),z(pe(L,"Array.prototype.forEach"))),G=z(pe(L,"String.prototype.indexOf")),Q=z(pe(L,"String.prototype.slice")),Z=(pe(J,"Image","direct"),z(pe(L,"Image.prototype.src","set"))||z(pe(L,"HTMLImageElement.prototype.src","set"))||function(e,t){e.src=t}),$=z(pe(L,"HTMLIframeElement.prototype.contentWindow","get"))||function(e){return e.contentWindow},ee=z(pe(L,"HTMLIframeElement.prototype.contentDocument","get"))||function(e){return e.contentDocument},te=z(pe(L,"EventTarget.prototype.addEventListener"))||function(e,t,n){e.addEventListener(t,n)},ne=z(pe(L,"CanvasRenderingContext2D.prototype.fillText")),re=z(pe(L,"CanvasRenderingContext2D.prototype.drawImage")),oe=z(pe(L,"CanvasRenderingContext2D.prototype.strokeText")),ie=z(pe(L,"CanvasRenderingContext2D.prototype.measureText")),ae=pe(J,"WeakMap","direct"),ce=z(pe(L,"WeakMap.prototype.get")),ue=z(pe(L,"WeakMap.prototype.set")),se=z(pe(L,"Element.prototype.attachShadow")),le=z(pe(L,"Node.prototype.textContent","set"));function fe(e){for(var t=pe(L,"JSON.parse"),n=pe(J,"Uint8Array","direct"),r=pe(L,"String.fromCodePoint"),o=r,i=new n(e),a="",c=0,u=i.length;c<u;){var s=i[c++];if(s<=127)a+=o(s);else{var l=63&i[c++];if(s<=223)a+=o((31&s)<<6|l);else{var f=63&i[c++];if(s<=239)a+=o((15&s)<<12|l<<6|f);else{var p=63&i[c++];r?a+=o((7&s)<<18|l<<12|f<<6|p):(a+=o(63),c+=3)}}}}return t(a)}function pe(e,t,n){var r,o,i,a,c;void 0===n&&(n="value");var u=(null==L||null==(r=L.String)?void 0:r.prototype.split.value)||window.String.prototype.split,s=(null==L||null==(o=L.Array)?void 0:o.prototype.pop.value)||window.Array.prototype.pop,l=(null==L||null==(i=L.Array)?void 0:i.prototype.forEach.value)||window.Array.prototype.forEach,f=(null==L||null==(a=L.Object)?void 0:a.getOwnPropertyDescriptor.value)||Object.getOwnPropertyDescriptor,p=U(u,t,"."),d=U(s,p),h=e,v=window;if(U(l,p,(function(e){h&&(h=h[e]),v&&(v=v[e])})),h&&h[d]){if(h=h[d],"direct"===n)return h;if(h[n])return h[n]}if(v)return"direct"===n||"value"===n?v[d]:null==(c=f(v,d))?void 0:c[n]}var de=(null==(N=window.crypto)?void 0:N.subtle)||(null==(I=window.crypto)?void 0:I.webkitSubtle);function he(e,t){if(K(e,t))return e[t]}function ve(e,t,n){X(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function we(e,t,n,r,o){if(window.fetch)window.fetch(e,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((function(e){if(200===e.status)return o?e.arrayBuffer():e.json();throw new Error("Invalid response status "+e.status)})).then(n,r);else{var i=new XMLHttpRequest;i.open("POST",e),i.withCredentials=!0,o&&(i.responseType="arraybuffer"),i.setRequestHeader("Content-Type","application/json"),i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE)if(200===i.status)if(o)n(i.response);else try{n(JSON.parse(i.responseText))}catch(e){r(new Error("Parse response error"))}else r(new Error("Invalid response status "+i.status))},i.onerror=function(){r(new Error("Request error"))},i.send(JSON.stringify(t))}}var ye={},me=1,ge={};function be(e,t){var n=""+me++;ve(ye,n,t),function(e,t){var n=Math.random(),r=R+"/wwopen/openData/getOpenData?f=json&r="+n;O("[fetchData] begin #"+t+" ("+n+")");var o=W||(W=de.importKey("raw",function(e){for(var t=pe(J,"Uint8Array","direct"),n=pe(J,"parseInt","direct"),r=z(pe(L,"String.prototype.substring")),o=new t(e.length/2),i=0,a=e.length;i<a;i+=2)o[i/2]=n(r(e,i,i+2),16);return o}("b982fba4767068643157340abc57cc56c539a95c1a833848fd2d2930c72cb013"),"AES-CBC",!1,["decrypt"]));function i(e){S("[fetchData] fetch err #"+t),C(e,"fetchData callback"),xe(t,{items:[]}),d("error",{errMsg:"wwapp.fetchOpenData:fail",rand:n})}!function(e,t,n,r){we(e,t,n,r,!0)}(r,{items:e,sid:u},(function(e){O("[fetchData] fetch res #"+t),o.then((function(t){return de.decrypt({name:"AES-CBC",iv:new Uint8Array(16)},t,e)})).then(fe).then((function(e){O("[fetchData] fetch parsed #"+t),xe(t,e)})).catch(i)}),i)}(e,n)}function xe(e,t){var n=he(ye,e);if(delete ye[e],n)if(t){var r=he(t,"items");r?(Y(r,(function(e){var t=he(e,"type"),n=he(e,"id"),r=he(e,"corpid");ve(ge,_e(t,n,r),e)})),n(null,t)):n(new Error("Fetch data failed, missing items"))}else n(new Error("Fetch data failed, missing response"))}function Ee(e,t,n){return he(ge,_e(e,t,n))}function _e(e,t,n){return e+"::"+t+"::"+(n||"")}var Oe=new Image,Se=!1,Ce=null,Ae=[];function je(){var e=Ae;Ae=[],Y(e,(function(e){e(Ce)}))}te(Oe,"load",(function(){Se=!0,V(je,1)})),te(Oe,"error",(function(){Ce=new Error("Failed to load crossorigin image"),V(je,1)})),Z(Oe,"https://wwcdn.weixin.qq.com/node/wework/images/1x1-00000000.91e42db1c6.png");var De=String.fromCharCode(8204),Te=String.fromCharCode(8205),ke=String.fromCharCode(8203),Re=[String.fromCharCode(8206),String.fromCharCode(8207),De,Te,ke],Me={},Pe=0;function Fe(e){var t=he(e,"encrypt_token");if(t)return t;var n=he(e,"data"),r=he(e,"encrypt_text_data");if(n&&r){for(var o=(Pe++).toString(5),i="",a=0,c=o.length;a<c;a++)i+=Re[o[a]];var u="\ufeff"+r+i+"\ufeff";return ve(Me,u,n),ve(e,"encrypt_token",u),u}}function Ne(e){var t=G(e,"\ufeff",0);if(-1===t)return e;for(var n=Q(e,0,t);-1!==t;){var r=G(e,"\ufeff",t+1);if(-1===r)break;var o=he(Me,Q(e,t,r+1));o?(n+=o,t=r+1):(n+=Q(e,t,r),t=r)}return n+Q(e,t)}var Ie=ae&&new ae,We=!1,qe=!1;function Le(e){ce(Ie,e)||(qe||re(e,Oe,0,0),ue(Ie,e,!0))}function Je(e,t){var n=null;try{n=ee(e)}catch(e){}if(null!==n)throw new Error("Missing cross origin");$(e).postMessage(t,R)}var Ue,ze,He=function(){function e(){var e=this;this.iframe=document.createElement("iframe"),this.state="loading",this.queue=[],this.timeout=null,this.iframe.onload=_("MainFrame.onload",(function(){O("[MainFrame] onload"),e.state="ready",e.fetchData()})),this.iframe.onerror=function(t){C((null==t?void 0:t.error)||new Error("MainFrame load error"),"MainFrame.onerror"),e.state="error"},this.iframe.style.display="none",this.iframe.referrerPolicy="origin",this.iframe.src=M}var t=e.prototype;return t.enqueueFetch=function(e){var t=this;this.queue.push(e),this.timeout||(this.timeout=setTimeout(_("MainFrame.timeout",(function(){"ready"===t.state&&t.fetchData()})),20))},t.fetchData=function(){var e={},t=[];this.queue.forEach((function(n){var r=n.type+"::"+n.id+"::"+(n.corpid||"");e[r]||(e[r]=!0,t.push(n))})),t.length&&(this.timeout=null,this.queue=[],O("[MainFrame] fetchData"),Je(this.iframe,JSON.stringify({type:"fetch",items:t,sid:u})))},e}(),Be=["fontFamily","fontSize","fontWeight","fontStyle","fontVariant","fontStretch","fontSizeAdjust","color","cursor"],Xe=function(){function e(e,t){this.renderType="emtpy",this.renderEl=null,this.container=e,this.mainFrame=t}var t=e.prototype;return t.update=function(){var e=this.getItem();if(!e.type||!e.id)return this.renderEmpty();this.renderText(e)},t.renderEmpty=function(){this.setChild("empty")},t.renderText=function(e){var t=this;if("frame"!==this.renderType||"error"===this.loadState){var n=document.createElement("iframe");n.onload=_("Frame.onload",(function(){t.renderEl===n&&(t.loadState="ready",t.notifyUpdate())})),n.onerror=function(e){t.renderEl===n&&(C((null==e?void 0:e.error)||new Error("Frame load error"),"Frame.onerror"),t.loadState="error")};var r=h(e.type+"::"+e.id+"::"+(e.corpid||""));n.frameBorder=0,n.referrerPolicy="origin",n.src=M+"&init="+r,this.loadState="loading",this.setChild("frame",n)}this.mainFrame.enqueueFetch(e),"ready"===this.loadState&&this.notifyUpdate(e)},t.setChild=function(e,t){void 0===t&&(t=null);for(var n=this.container;n.firstChild;)n.removeChild(n.firstChild);t&&n.appendChild(t),this.renderEl=t,this.renderType=e},t.getItem=function(){return{type:this.container.getAttribute("type"),id:this.container.getAttribute("openid"),corpid:this.container.getAttribute("corpid")}},t.notifyUpdate=function(e){if(void 0===e&&(e=this.getItem()),e.type&&e.id){var t={},n=getComputedStyle(this.container);Be.forEach((function(e){t[e]=n[e]})),Je(this.renderEl,JSON.stringify({type:"update",item:e,style:t}))}},e}();function Ve(e){e&&(e.__WW_OPENDATA_RENDER__||(e.__WW_OPENDATA_RENDER__=new Xe(e,Ue)),e.__WW_OPENDATA_RENDER__.update())}var Ke={};function Ye(e){if(e.origin===R){var t,n,r;try{t=JSON.parse(e.data)}catch(e){}t&&Ke[t.type]&&(n=document.querySelectorAll("ww-open-data iframe"),r=function(n){n.contentWindow===e.source&&Ke[t.type](e,t,n)},Array.prototype.forEach.call(n,r))}}Ke["ww.opendata.event"]=function(e,t,n){"click"===t.eventType&&n.parentNode.click()},Ke["ww.opendata.resize"]=function(e,t,n){var r=t.size;n.style.width=r.width,n.style.height=r.height,d("update",{el:n.parentNode,hasData:!!r.width})};var Ge=ae&&new ae;function Qe(e){var t=ce(Ge,e);if(t)return t;try{var n=se(e,{mode:"closed"});return ue(Ge,e,n),n}catch(e){d("error",e)}}var Ze=[],$e=null;function et(e){if(e){var t=e.getAttribute("type");if(t){var n=e.getAttribute("openid");if(n){var r=e.getAttribute("corpid"),o=Qe(e);if(o){var i=Ee(t,n,r);if(i){var a=he(i,"data");le(o,a||""),d("update",{element:e,hasData:!!a})}Ze.indexOf(e)<0&&Ze.push(e),$e||($e=setTimeout(_("bindPending",tt),20))}}}}}function tt(){var e=Ze;$e=null,Ze=[];var t=[],n={};Y(e,(function(e){var r=e.getAttribute("type");if(r){var o=e.getAttribute("openid");if(o){var i=e.getAttribute("corpid"),a=_e(r,o,i);n[a]||(n[a]=!0,t.push({type:r,id:o,corpid:i}))}}})),t.length&&be(t,(function(t){t?d("error",t):Y(e,(function(e){var t=Qe(e),n=e.getAttribute("type");if(n){var r=e.getAttribute("openid");if(r){var o=Ee(n,r,e.getAttribute("corpid"));if(o){var i=he(o,"data");le(t,i||""),d("update",{element:e,hasData:!!i})}}}}))}))}var nt=0;se||(nt|=1),de||(nt|=2),"http:"===document.location.protocol&&(nt|=4);var rt,ot=0;window.WeixinSandBox&&(ot|=1),(null==(rt=window.wx)?void 0:rt.agentConfig)&&(ot|=2);var it=navigator.userAgent;/wxwork/i.test(it)&&!/miniProgram/i.test(it)&&(ot|=4);var at=_("bind",nt?Ve:et),ct=_("bindAll",nt?function(e){Array.prototype.forEach.call(e,Ve)}:function(e){Y(e,et)});function ut(e){if(void 0===e&&(e={}),!(e.corpid&&e.agentid&&e.timestamp&&e.nonceStr&&e.signature&&e.jsApiList)){var t={err_Info:"fail",errMsg:"agentConfig:fail",hint:"Missing params"};return null==e.fail||e.fail(t),void(null==e.complete||e.complete(t))}var n={corpid:e.corpid+"",agentid:e.agentid+"",timestamp:e.timestamp+"",nonceStr:e.nonceStr+"",signature:e.signature+"",jsApiList:e.jsApiList,url:window.location.href};st("agentConfig",{config:n,sid:u},e,(function(){ct(document.querySelectorAll("ww-open-data")),function(e){w=e.user||w}({user:n})}))}function st(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r=v),O("[invoke] "+e+" begin"),function(e,t,n,r){we(e,t,n,r,!1)}(R+"/wwopen/openData/"+e+"?f=json",t,(function(t){O("[invoke] "+e+" res",JSON.stringify(t));var o=t.data||{errMsg:e+":fail"};o.errMsg===e+":ok"?(r(o),null==n.success||n.success(o)):(C(new Error("Invalid "+e+" response"),e+" callback"),null==n.fail||n.fail(o)),null==n.complete||n.complete(o)}),(function(t){C(t,e+" fail");var r={errMsg:e+":fail"};null==n.fail||n.fail(r),null==n.complete||n.complete(r)}))}if(!ot){if(t=nt,E.renderer=t,nt&&function(){window.addEventListener?window.addEventListener("message",_("dispatchMessage",Ye)):window.attachEvent("onmessage",_("dispatchMessage",Ye));var e=document.querySelector("head");ze=document.createElement("style"),e.appendChild(ze),Ue=new He,e.appendChild(Ue.iframe);var t=ze.sheet;t.insertRule("ww-open-data {\n display: inline-block;\n vertical-align: text-bottom;\n overflow: hidden;\n }",0),t.insertRule("ww-open-data img {\n display: block;\n width: 100%;\n height: 100%;\n }",1),t.insertRule("ww-open-data iframe {\n display: block;\n width: 0;\n height: 0;\n }",2)}(),window.wx&&window.wx.agentConfig,window.wx||(window.wx={}),window.wx.agentConfig||(window.wx.agentConfig=_("agentConfig",ut)),!window.WWOpenData){var lt={};X(lt,"bindAll",{value:ct,enumerable:!0}),X(lt,"bind",{value:at,enumerable:!0}),X(lt,"on",{value:f,enumerable:!0}),X(lt,"once",{value:function(e,t){f(e,(function e(n){p("name",e),t(n)}))},enumerable:!0}),X(lt,"off",{value:p,enumerable:!0}),X(lt,"report",{value:function(){var e,t;e="Sentry report",(t=T()).message=e,t.request.url=window.location.href,D(t),j({category:"sentry",level:"error",message:e,event_id:t.event_id})},enumerable:!0}),X(lt,"checkSession",{value:function(e){void 0===e&&(e={}),st("checkSession",{sid:u},e)},enumerable:!0}),X(lt,"initCanvas",{value:function(){var e;if(We)return!0;var t=null==(e=window.CanvasRenderingContext2D)?void 0:e.prototype;return!!t&&(t.strokeText=function(e,t,n,r){if(!Se)return null==r?oe(this,e,t,n):oe(this,e,t,n,r);var o=Ne(e);return o!==e&&Le(this),null==r?oe(this,o,t,n):oe(this,o,t,n,r)},t.fillText=function(e,t,n,r){if(!Se)return null==r?ne(this,e,t,n):ne(this,e,t,n,r);var o=Ne(e);return o!==e&&Le(this),null==r?ne(this,o,t,n):ne(this,o,t,n,r)},t.measureText=function(e){return ie(this,Se?Ne(e):e)},We=!0,!0)},enumerable:!0}),X(lt,"enableCanvasSharing",{value:function(){qe=!0},enumerable:!0}),X(lt,"disableCanvasSharing",{value:function(){qe=!1},enumerable:!0}),X(lt,"prefetch",{value:function(e,t){var n=e.items;be(n,(function(e){if(e)return t(e);var r=[];Y(n,(function(e){var t=Ee(e.type,e.id,e.corpid);t&&1===he(t,"datakind")&&r.push({type:e.type,id:e.id,corpid:e.corpid,data:Fe(t)})})),function(e){Se?e():Ce?e(Ce):Ae.push(e)}((function(e){e?t(e):t(null,{items:r})}))}))},enumerable:!0}),X(lt,"__version__",{value:"wwopendata.web.js@201010-193715-683"}),X(lt,"agentConfig",{value:_("agentConfig",ut)}),X(window,"WWOpenData",{value:lt,enumerable:!0})}if("customElements"in window&&!customElements.get("ww-open-data"))try{var ft=function(e){var t,r,o,i;function a(){var t;return pt(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call(this)||this)),t}return r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,a.prototype.attributeChangedCallback=function(){this._current.type===this.getAttribute("type")&&this._current.id===this.getAttribute("openid")&&this._current.corpid===this.getAttribute("corpid")||pt(this)},o=a,i=[{key:"observedAttributes",get:function(){return["type","openid","corpid"]}}],null&&n(o.prototype,null),i&&n(o,i),a}(c(HTMLElement));customElements.define("ww-open-data",ft)}catch(s){C(s,"register custom element")}}function pt(e){e._current={type:e.getAttribute("type"),id:e.getAttribute("openid"),corpid:e.getAttribute("corpid")},at(e)}}catch(s){e.captureException(s,"?")}}();